mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
42 lines
1.2 KiB
Objective-C
42 lines
1.2 KiB
Objective-C
//
|
|
// SUUserDriverCoreComponent.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 3/4/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "SPUStatusCompletionResults.h"
|
|
#import "SUExport.h"
|
|
|
|
@protocol SPUStandardUserDriverDelegate;
|
|
|
|
SU_EXPORT @interface SPUUserDriverCoreComponent : NSObject
|
|
|
|
- (instancetype)initWithDelegate:(id<SPUStandardUserDriverDelegate>)delegate;
|
|
|
|
@property (nonatomic, readonly, weak) id<SPUStandardUserDriverDelegate> delegate;
|
|
|
|
- (void)showCanCheckForUpdates:(BOOL)canCheckForUpdates;
|
|
|
|
@property (nonatomic, readonly) BOOL canCheckForUpdates;
|
|
|
|
- (void)registerInstallUpdateHandler:(void (^)(SPUInstallUpdateStatus))installUpdateHandler;
|
|
- (void)installUpdateWithChoice:(SPUInstallUpdateStatus)choice;
|
|
|
|
- (void)registerUpdateCheckStatusHandler:(void (^)(SPUUserInitiatedCheckStatus))updateCheckStatusCompletion;
|
|
- (void)cancelUpdateCheckStatus;
|
|
- (void)completeUpdateCheckStatus;
|
|
|
|
- (void)registerDownloadStatusHandler:(void (^)(SPUDownloadUpdateStatus))downloadUpdateStatusCompletion;
|
|
- (void)cancelDownloadStatus;
|
|
- (void)completeDownloadStatus;
|
|
|
|
- (void)registerAcknowledgement:(void (^)(void))acknowledgement;
|
|
- (void)acceptAcknowledgement;
|
|
|
|
- (void)dismissUpdateInstallation;
|
|
|
|
@end
|