mirror of
https://github.com/ksherlock/ample.git
synced 2025-01-09 15:30:04 +00:00
f90f5a6bf3
only applies if you option quit (quit and save windows) or quit unexpectedly.
43 lines
960 B
Objective-C
43 lines
960 B
Objective-C
//
|
|
// DownloadWindowController.h
|
|
// Ample
|
|
//
|
|
// Created by Kelvin Sherlock on 9/2/2020.
|
|
// Copyright © 2020 Kelvin Sherlock. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface DownloadWindowController : NSWindowController <NSWindowRestoration>
|
|
|
|
@property NSString *currentROM;
|
|
@property NSInteger currentCount;
|
|
@property NSInteger totalCount;
|
|
@property NSInteger errorCount;
|
|
@property BOOL active;
|
|
|
|
+(instancetype)sharedInstance;
|
|
|
|
|
|
@end
|
|
|
|
@interface DownloadWindowController (URL) <NSURLSessionTaskDelegate, NSURLSessionDownloadDelegate>
|
|
@end
|
|
|
|
@interface DownloadWindowController (Table) <NSTableViewDelegate, NSTableViewDataSource>
|
|
@end
|
|
|
|
@interface DownloadWindowController (Menu) <NSMenuDelegate, NSMenuItemValidation>
|
|
|
|
@end
|
|
|
|
|
|
@interface DownloadTableCellView : NSTableCellView
|
|
@property (weak) IBOutlet NSTextField *statusTextField;
|
|
@property (weak) IBOutlet NSProgressIndicator *activity;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|