mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Getting rid of unneeded parentheses. Remove more pre-10.7-only code. Add comments. More property declarations. Make SUUpdatePermissionPromptDelegateInformalProtocol a protocol with the name SUUpdatePermissionPromptDelegateProtocol.
37 lines
763 B
Objective-C
37 lines
763 B
Objective-C
//
|
|
// SUUpdateDriver.h
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 5/7/08.
|
|
// Copyright 2008 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#ifndef SUUPDATEDRIVER_H
|
|
#define SUUPDATEDRIVER_H
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
extern NSString * const SUUpdateDriverFinishedNotification;
|
|
|
|
@class SUHost, SUUpdater;
|
|
@interface SUUpdateDriver : NSObject<NSURLDownloadDelegate>
|
|
{
|
|
SUHost *host;
|
|
SUUpdater *updater; //assigned
|
|
NSURL *appcastURL;
|
|
|
|
BOOL finished;
|
|
BOOL isInterruptible;
|
|
}
|
|
@property (retain) SUHost *host;
|
|
|
|
- (instancetype) initWithUpdater:(SUUpdater *)updater;
|
|
- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)host;
|
|
- (void)abortUpdate;
|
|
@property (getter=isInterruptible, readonly) BOOL interruptible;
|
|
@property (readonly) BOOL finished;
|
|
|
|
@end
|
|
|
|
#endif
|