mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Move Sparkle's user updater driver delegate protocol out of SUUserUpdaterDriver
This commit is contained in:
1 parent
0a6db8ef7a
commit
49c10c8cb5
5 files changed
+19
-35
No files matched your search
@@ -181,7 +181,6 @@
|
||||
725CB95B1C7121830064365A /* SUSparkleUserUpdaterDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 725CB9591C7121830064365A /* SUSparkleUserUpdaterDriver.m */; };
|
||||
7268AC631AD634C200C3E0C1 /* SUBinaryDeltaCreate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7268AC621AD634C200C3E0C1 /* SUBinaryDeltaCreate.m */; };
|
||||
726DF88E1C84277600188804 /* SUStatusCompletionResults.h in Headers */ = {isa = PBXBuildFile; fileRef = 726DF88D1C84277500188804 /* SUStatusCompletionResults.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
726DF8901C8429E000188804 /* SUUserUpdaterDriverDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726DF88F1C8429E000188804 /* SUUserUpdaterDriverDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
726F2CDE1BC9BE5B001971A4 /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; };
|
||||
726F2CE51BC9C33D001971A4 /* SUOperatingSystem.h in Headers */ = {isa = PBXBuildFile; fileRef = 726F2CE31BC9C33D001971A4 /* SUOperatingSystem.h */; };
|
||||
726F2CE61BC9C33D001971A4 /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; };
|
||||
@@ -643,7 +642,6 @@
|
||||
7268AC641AD634E400C3E0C1 /* SUBinaryDeltaCreate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBinaryDeltaCreate.h; sourceTree = "<group>"; };
|
||||
726B2B5D1C645FC900388755 /* UI Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UI Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
726DF88D1C84277500188804 /* SUStatusCompletionResults.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStatusCompletionResults.h; sourceTree = "<group>"; };
|
||||
726DF88F1C8429E000188804 /* SUUserUpdaterDriverDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUserUpdaterDriverDelegate.h; sourceTree = "<group>"; };
|
||||
726F2CE31BC9C33D001971A4 /* SUOperatingSystem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUOperatingSystem.h; sourceTree = "<group>"; };
|
||||
726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUOperatingSystem.m; sourceTree = "<group>"; };
|
||||
7275F9BF1B5F1F2900B1D19E /* SUFileManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUFileManager.h; sourceTree = "<group>"; };
|
||||
@@ -1096,7 +1094,6 @@
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
725CB9561C7120410064365A /* SUUserUpdaterDriver.h */,
|
||||
726DF88F1C8429E000188804 /* SUUserUpdaterDriverDelegate.h */,
|
||||
726DF88D1C84277500188804 /* SUStatusCompletionResults.h */,
|
||||
61B93B250DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.h */,
|
||||
61B93B260DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.m */,
|
||||
@@ -1180,7 +1177,6 @@
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
725CB95A1C7121830064365A /* SUSparkleUserUpdaterDriver.h in Headers */,
|
||||
726DF8901C8429E000188804 /* SUUserUpdaterDriverDelegate.h in Headers */,
|
||||
725CB9571C7120410064365A /* SUUserUpdaterDriver.h in Headers */,
|
||||
72162B061C82C8B30013C1C5 /* SUParameterAssert.h in Headers */,
|
||||
726DF88E1C84277600188804 /* SUStatusCompletionResults.h in Headers */,
|
||||
|
||||
Vendored
+17
-1
@@ -9,9 +9,25 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "SUUserUpdaterDriver.h"
|
||||
|
||||
@protocol SUSparkleUserUpdaterDriverDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
|
||||
- (BOOL)responsibleForInitiatingUpdateCheckForUserDriver:(id <SUUserUpdaterDriver>)userUpdaterDriver;
|
||||
- (void)initiateUpdateCheckForUserDriver:(id <SUUserUpdaterDriver>)userUpdaterDriver;
|
||||
|
||||
- (BOOL)responsibleForSignalingApplicationTerminationForUserDriver:(id <SUUserUpdaterDriver>)userUpdaterDriver;
|
||||
|
||||
- (void)userUpdaterDriverWillShowModalAlert:(id <SUUserUpdaterDriver>)userUpdaterDriver;
|
||||
- (void)userUpdaterDriverDidShowModalAlert:(id <SUUserUpdaterDriver>)userUpdaterDriver;
|
||||
|
||||
@end
|
||||
|
||||
@interface SUSparkleUserUpdaterDriver : NSObject <SUUserUpdaterDriver>
|
||||
|
||||
- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(id <SUUserUpdaterDriverDelegate>)delegate;
|
||||
- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(id <SUSparkleUserUpdaterDriverDelegate>)delegate;
|
||||
|
||||
@property (nonatomic, readonly, weak) id <SUSparkleUserUpdaterDriverDelegate> delegate;
|
||||
|
||||
@property (nonatomic, readonly, getter=isUpdateInProgress) BOOL updateInProgress;
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -68,7 +68,7 @@
|
||||
|
||||
#pragma mark Birth
|
||||
|
||||
- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(id<SUUserUpdaterDriverDelegate>)delegate
|
||||
- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(id<SUSparkleUserUpdaterDriverDelegate>)delegate
|
||||
{
|
||||
self = [super init];
|
||||
if (self != nil) {
|
||||
@@ -345,7 +345,7 @@
|
||||
- (void)showAlert:(NSAlert *)alert
|
||||
{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
id <SUUserUpdaterDriverDelegate> delegate = self.delegate;
|
||||
id <SUSparkleUserUpdaterDriverDelegate> delegate = self.delegate;
|
||||
|
||||
if ([delegate respondsToSelector:@selector(userUpdaterDriverWillShowModalAlert:)]) {
|
||||
[delegate userUpdaterDriverWillShowModalAlert:self];
|
||||
|
||||
Vendored
-3
@@ -7,7 +7,6 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "SUUserUpdaterDriverDelegate.h"
|
||||
#import "SUStatusCompletionResults.h"
|
||||
|
||||
@class SUUpdatePermissionPromptResult, SUAppcastItem;
|
||||
@@ -15,8 +14,6 @@
|
||||
|
||||
@protocol SUUserUpdaterDriver <NSObject>
|
||||
|
||||
@property (nonatomic, readonly, weak) id <SUUserUpdaterDriverDelegate> delegate;
|
||||
|
||||
- (void)showUpdateInProgress:(BOOL)isUpdateInProgress;
|
||||
|
||||
- (void)startUpdateCheckTimerWithNextTimeInterval:(NSTimeInterval)timeInterval reply:(void (^)(SUUpdateCheckTimerStatus))reply;
|
||||
|
||||
-25
@@ -1,25 +0,0 @@
|
||||
//
|
||||
// SUUserUpdaterDriverDelegate.h
|
||||
// Sparkle
|
||||
//
|
||||
// Created by Mayur Pawashe on 2/29/16.
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@protocol SUUserUpdaterDriver;
|
||||
|
||||
@protocol SUUserUpdaterDriverDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
|
||||
- (BOOL)responsibleForInitiatingUpdateCheckForUserDriver:(id <SUUserUpdaterDriver>)userUpdaterDriver;
|
||||
- (void)initiateUpdateCheckForUserDriver:(id <SUUserUpdaterDriver>)userUpdaterDriver;
|
||||
|
||||
- (BOOL)responsibleForSignalingApplicationTerminationForUserDriver:(id <SUUserUpdaterDriver>)userUpdaterDriver;
|
||||
|
||||
- (void)userUpdaterDriverWillShowModalAlert:(id <SUUserUpdaterDriver>)userUpdaterDriver;
|
||||
- (void)userUpdaterDriverDidShowModalAlert:(id <SUUserUpdaterDriver>)userUpdaterDriver;
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user