mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
for the fun of it, replace some variables with @property in the file and tracker nodes
This commit is contained in:
@@ -28,18 +28,20 @@
|
||||
|
||||
@interface FileListNode : NSObject <NSCopying>
|
||||
{
|
||||
NSString * fName, * fPath;
|
||||
BOOL fIsFolder;
|
||||
NSMutableIndexSet * fIndexes;
|
||||
|
||||
uint64_t fSize;
|
||||
NSImage * fIcon;
|
||||
|
||||
NSMutableArray * fChildren;
|
||||
|
||||
Torrent * fTorrent;
|
||||
}
|
||||
|
||||
@property (nonatomic, readonly) NSString * name;
|
||||
@property (nonatomic, readonly) NSString * path;
|
||||
|
||||
@property (nonatomic, readonly) Torrent * torrent;
|
||||
|
||||
@property (nonatomic, readonly) uint64_t size;
|
||||
@property (nonatomic, readonly) NSImage * icon;
|
||||
@property (nonatomic, readonly) BOOL isFolder;
|
||||
|
||||
- (id) initWithFolderName: (NSString *) name path: (NSString *) path torrent: (Torrent *) torrent;
|
||||
- (id) initWithFileName: (NSString *) name path: (NSString *) path size: (uint64_t) size index: (NSUInteger) index torrent: (Torrent *) torrent;
|
||||
|
||||
@@ -48,16 +50,8 @@
|
||||
|
||||
- (NSString *) description;
|
||||
|
||||
- (BOOL) isFolder;
|
||||
- (NSString *) name;
|
||||
- (NSString *) path;
|
||||
- (NSIndexSet *) indexes;
|
||||
|
||||
- (uint64_t) size;
|
||||
- (NSImage *) icon;
|
||||
|
||||
- (NSMutableArray *) children;
|
||||
|
||||
- (Torrent *) torrent;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user