mirror of
https://github.com/textmate/textmate.git
synced 2026-01-23 13:47:54 -05:00
37 lines
1.1 KiB
Objective-C
37 lines
1.1 KiB
Objective-C
#include <network/key_chain.h>
|
|
|
|
@class DownloadWindowController;
|
|
|
|
PUBLIC extern NSString* const kUserDefaultsDisableSoftwareUpdatesKey;
|
|
PUBLIC extern NSString* const kUserDefaultsSoftwareUpdateChannelKey;
|
|
PUBLIC extern NSString* const kUserDefaultsSubmitUsageInfoKey;
|
|
PUBLIC extern NSString* const kUserDefaultsAskBeforeUpdatingKey;
|
|
|
|
PUBLIC extern NSString* const kSoftwareUpdateChannelRelease;
|
|
PUBLIC extern NSString* const kSoftwareUpdateChannelBeta;
|
|
PUBLIC extern NSString* const kSoftwareUpdateChannelNightly;
|
|
|
|
PUBLIC @interface SoftwareUpdate : NSObject
|
|
{
|
|
NSDictionary* channels;
|
|
key_chain_t keyChain;
|
|
|
|
NSTimeInterval pollInterval;
|
|
NSTimer* pollTimer;
|
|
|
|
BOOL isChecking;
|
|
NSString* errorString;
|
|
|
|
DownloadWindowController* downloadWindowController;
|
|
}
|
|
@property (nonatomic, retain) NSDictionary* channels;
|
|
@property (nonatomic, retain, readonly) NSDate* lastPoll;
|
|
@property (nonatomic, assign, readonly) BOOL isChecking;
|
|
@property (nonatomic, retain, readonly) NSString* errorString;
|
|
|
|
- (void)setSignee:(key_chain_t::key_t const&)aSignee;
|
|
|
|
+ (SoftwareUpdate*)sharedInstance;
|
|
- (IBAction)checkForUpdates:(id)sender;
|
|
@end
|