1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 15:54:57 +00:00
transmission/macosx/BlocklistDownloader.h

25 lines
731 B
C
Raw Normal View History

// This file Copyright © Transmission authors and contributors.
// It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder.
2008-03-29 23:38:38 +00:00
#import <Foundation/Foundation.h>
2008-03-29 23:38:38 +00:00
@class BlocklistDownloaderViewController;
2008-03-29 23:38:38 +00:00
typedef NS_ENUM(NSUInteger, BlocklistDownloadState) { //
BlocklistDownloadStateStart,
BlocklistDownloadStateDownloading,
BlocklistDownloadStateProcessing
};
@interface BlocklistDownloader : NSObject<NSURLSessionDownloadDelegate>
@property(nonatomic) BlocklistDownloaderViewController* viewController;
@property(nonatomic, class, readonly) BOOL isRunning;
+ (BlocklistDownloader*)downloader; //starts download if not already occurring
2008-03-29 23:38:38 +00:00
- (void)cancelDownload;
2008-03-29 23:38:38 +00:00
@end