transmission/macosx/AddWindowController.h

42 lines
1.3 KiB
C
Raw Normal View History

// This file Copyright © 2008-2023 Transmission authors and contributors.
// It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder.
#import <AppKit/AppKit.h>
@class Controller;
2009-10-11 03:36:50 +00:00
@class Torrent;
@interface AddWindowController : NSWindowController
@property(nonatomic, readonly) Torrent* torrent;
// if canToggleDelete is NO, we will also not delete the file regardless of the delete check's state
// (this is so it can be disabled and checked for a downloaded torrent, where the file's already deleted)
- (instancetype)initWithTorrent:(Torrent*)torrent
destination:(NSString*)path
lockDestination:(BOOL)lockDestination
controller:(Controller*)controller
torrentFile:(NSString*)torrentFile
deleteTorrentCheckEnableInitially:(BOOL)deleteTorrent
canToggleDelete:(BOOL)canToggleDelete;
2022-11-15 16:50:16 +00:00
- (IBAction)setDestination:(id)sender;
2022-11-15 16:50:16 +00:00
- (IBAction)add:(id)sender;
- (IBAction)cancelAdd:(id)sender;
- (IBAction)setFileFilterText:(id)sender;
- (IBAction)checkAll:(id)sender;
- (IBAction)uncheckAll:(id)sender;
2022-11-15 16:50:16 +00:00
- (IBAction)verifyLocalData:(id)sender;
2022-11-15 16:50:16 +00:00
- (IBAction)changePriority:(id)sender;
- (void)updateCheckButtons:(NSNotification*)notification;
2008-02-27 19:34:55 +00:00
- (void)updateGroupMenu:(NSNotification*)notification;
@end