1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-30 19:46:56 +00:00
transmission/macosx/GroupsController.h
2022-02-22 10:04:20 -06:00

46 lines
1.5 KiB
Objective-C

// This file Copyright © 2007-2022 Transmission authors and contributors.
// It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h>
@class Torrent;
@interface GroupsController : NSObject
@property(nonatomic, class, readonly) GroupsController* groups;
@property(nonatomic, readonly) NSInteger numberOfGroups;
- (NSInteger)rowValueForIndex:(NSInteger)index;
- (NSInteger)indexForRow:(NSInteger)row;
- (NSString*)nameForIndex:(NSInteger)index;
- (void)setName:(NSString*)name forIndex:(NSInteger)index;
- (NSImage*)imageForIndex:(NSInteger)index;
- (NSColor*)colorForIndex:(NSInteger)index;
- (void)setColor:(NSColor*)color forIndex:(NSInteger)index;
- (BOOL)usesCustomDownloadLocationForIndex:(NSInteger)index;
- (void)setUsesCustomDownloadLocation:(BOOL)useCustomLocation forIndex:(NSInteger)index;
- (NSString*)customDownloadLocationForIndex:(NSInteger)index;
- (void)setCustomDownloadLocation:(NSString*)location forIndex:(NSInteger)index;
- (BOOL)usesAutoAssignRulesForIndex:(NSInteger)index;
- (void)setUsesAutoAssignRules:(BOOL)useAutoAssignRules forIndex:(NSInteger)index;
- (NSPredicate*)autoAssignRulesForIndex:(NSInteger)index;
- (void)setAutoAssignRules:(NSPredicate*)predicate forIndex:(NSInteger)index;
- (void)addNewGroup;
- (void)removeGroupWithRowIndex:(NSInteger)row;
- (void)moveGroupAtRow:(NSInteger)oldRow toRow:(NSInteger)newRow;
- (NSMenu*)groupMenuWithTarget:(id)target action:(SEL)action isSmall:(BOOL)small;
- (NSInteger)groupIndexForTorrent:(Torrent*)torrent;
@end