1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00
transmission/macosx/BlocklistDownloader.h
2022-06-28 19:15:52 -05:00

24 lines
716 B
Objective-C

// 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.
#import <Foundation/Foundation.h>
@class BlocklistDownloaderViewController;
typedef NS_ENUM(unsigned int, blocklistDownloadState) { //
BLOCKLIST_DL_START,
BLOCKLIST_DL_DOWNLOADING,
BLOCKLIST_DL_PROCESSING
};
@interface BlocklistDownloader : NSObject<NSURLSessionDownloadDelegate>
@property(nonatomic) BlocklistDownloaderViewController* viewController;
@property(nonatomic, class, readonly) BOOL isRunning;
+ (BlocklistDownloader*)downloader; //starts download if not already occurring
- (void)cancelDownload;
@end