1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-30 19:46:56 +00:00
transmission/macosx/AddWindowController.h
2023-02-11 14:49:42 -06:00

41 lines
1.3 KiB
Objective-C

// 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;
@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;
- (IBAction)setDestination:(id)sender;
- (IBAction)add:(id)sender;
- (IBAction)cancelAdd:(id)sender;
- (IBAction)setFileFilterText:(id)sender;
- (IBAction)checkAll:(id)sender;
- (IBAction)uncheckAll:(id)sender;
- (IBAction)verifyLocalData:(id)sender;
- (IBAction)changePriority:(id)sender;
- (void)updateCheckButtons:(NSNotification*)notification;
- (void)updateGroupMenu:(NSNotification*)notification;
@end