2022-01-20 18:27:56 +00:00
|
|
|
// This file Copyright © 2008-2022 Transmission authors and contributors.
|
|
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2008-08-31 19:47:11 +00:00
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
2018-09-30 10:37:30 +00:00
|
|
|
|
|
|
|
#include <libtransmission/transmission.h>
|
2008-08-31 19:47:11 +00:00
|
|
|
|
|
|
|
@class PrefsController;
|
|
|
|
|
|
|
|
@interface BlocklistDownloaderViewController : NSObject
|
2017-01-24 17:53:16 +00:00
|
|
|
{
|
2021-08-15 09:41:48 +00:00
|
|
|
PrefsController* fPrefsController;
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
IBOutlet NSWindow* fStatusWindow;
|
|
|
|
IBOutlet NSProgressIndicator* fProgressBar;
|
|
|
|
IBOutlet NSTextField* fTextField;
|
|
|
|
IBOutlet NSButton* fButton;
|
2008-08-31 19:47:11 +00:00
|
|
|
}
|
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
+ (void)downloadWithPrefsController:(PrefsController*)prefsController;
|
2008-08-31 19:47:11 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)cancelDownload:(id)sender;
|
2008-08-31 19:47:11 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)setStatusStarting;
|
|
|
|
- (void)setStatusProgressForCurrentSize:(NSUInteger)currentSize expectedSize:(long long)expectedSize;
|
|
|
|
- (void)setStatusProcessing;
|
2008-08-31 19:47:11 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)setFinished;
|
|
|
|
- (void)setFailed:(NSString*)error;
|
2008-08-31 19:47:11 +00:00
|
|
|
|
|
|
|
@end
|