mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Autoupdate is now responsible for all of this. The user driver implementation is shorter and less complex now.
48 lines
1.6 KiB
Objective-C
48 lines
1.6 KiB
Objective-C
//
|
|
// SUStandardUserDriverRemoteDelegate.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 3/2/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/*!
|
|
A delegate protocol for Sparkle's standard user driver related to efficiency and reliablity when Sparkle's updater lives in a separate process
|
|
*/
|
|
@protocol SUStandardUserDriverRemoteDelegate <NSObject>
|
|
|
|
@optional
|
|
|
|
/*!
|
|
Asks whether or not the delegate is responsible for initiating updater checks.
|
|
|
|
The user driver uses this to decide whether or not it should be the one initiating update checks.
|
|
If the delegate wants to initiate update checks, then the user driver lets the updater know it shouldn't
|
|
wait for a response from the user driver. When the user driver and updater live in separate processes,
|
|
having a delegate implement this can be more efficient for the system and therefore is encouraged.
|
|
|
|
@return Returns if the delegate is responsible for initiating update checks. If the delegate returns YES,
|
|
then the delegate must also implement -initiateUpdateCheck which is when the delegate should
|
|
initiate update checks.
|
|
*/
|
|
- (BOOL)responsibleForInitiatingUpdateCheck;
|
|
|
|
/*!
|
|
Called when user driver tells the delegate to initiate an update check
|
|
|
|
This is called if the delegate returned YES from -responsibleForInitiatingUpdateCheck
|
|
|
|
The delegate will have to find a pathway to tell the SUUpdater instance to check for updates, that
|
|
does not go through the user driver. See -responsibleForInitiatingUpdateCheck as to why
|
|
a delegate may want to implement this.
|
|
*/
|
|
- (void)initiateUpdateCheck;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|