2023-11-01 21:11:11 +00:00
|
|
|
// This file Copyright © Transmission authors and contributors.
|
2022-01-20 18:27:56 +00:00
|
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2008-07-01 01:28:19 +00:00
|
|
|
|
2022-06-29 00:15:52 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
2008-07-01 01:28:19 +00:00
|
|
|
|
2022-04-29 22:51:40 +00:00
|
|
|
@class Torrent;
|
|
|
|
|
2008-07-01 01:28:19 +00:00
|
|
|
@interface TorrentGroup : NSObject
|
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (instancetype)initWithGroup:(NSInteger)group;
|
2008-07-01 01:28:19 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
@property(nonatomic, readonly) NSInteger groupIndex;
|
|
|
|
@property(nonatomic, readonly) NSInteger groupOrderValue;
|
2022-04-29 22:51:40 +00:00
|
|
|
@property(nonatomic, readonly) NSMutableArray<Torrent*>* torrents;
|
2008-07-01 01:28:19 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
@property(nonatomic, readonly) CGFloat ratio;
|
|
|
|
@property(nonatomic, readonly) CGFloat uploadRate;
|
|
|
|
@property(nonatomic, readonly) CGFloat downloadRate;
|
2008-10-16 03:44:54 +00:00
|
|
|
|
2008-07-01 01:28:19 +00:00
|
|
|
@end
|