2023-02-11 20:49:42 +00:00
|
|
|
// This file Copyright © 2008-2023 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-01-04 04:45:31 +00:00
|
|
|
|
2022-06-29 00:15:52 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
2018-09-30 10:37:30 +00:00
|
|
|
|
2008-01-04 04:45:31 +00:00
|
|
|
@class Controller;
|
2009-10-11 03:36:50 +00:00
|
|
|
@class Torrent;
|
2008-01-04 04:45:31 +00:00
|
|
|
|
|
|
|
@interface AddWindowController : NSWindowController
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2022-02-22 16:04:20 +00:00
|
|
|
@property(nonatomic, readonly) Torrent* torrent;
|
2008-01-04 04:45:31 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
// 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;
|
2008-01-04 04:45:31 +00:00
|
|
|
|
2022-11-15 16:50:16 +00:00
|
|
|
- (IBAction)setDestination:(id)sender;
|
2008-01-04 04:45:31 +00:00
|
|
|
|
2022-11-15 16:50:16 +00:00
|
|
|
- (IBAction)add:(id)sender;
|
|
|
|
- (IBAction)cancelAdd:(id)sender;
|
2008-01-04 04:45:31 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (IBAction)setFileFilterText:(id)sender;
|
|
|
|
- (IBAction)checkAll:(id)sender;
|
|
|
|
- (IBAction)uncheckAll:(id)sender;
|
2012-05-20 00:19:55 +00:00
|
|
|
|
2022-11-15 16:50:16 +00:00
|
|
|
- (IBAction)verifyLocalData:(id)sender;
|
2008-01-09 19:52:11 +00:00
|
|
|
|
2022-11-15 16:50:16 +00:00
|
|
|
- (IBAction)changePriority:(id)sender;
|
2010-02-11 01:34:32 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)updateCheckButtons:(NSNotification*)notification;
|
2008-02-27 19:34:55 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)updateGroupMenu:(NSNotification*)notification;
|
2008-01-04 14:56:29 +00:00
|
|
|
|
2008-01-04 04:45:31 +00:00
|
|
|
@end
|