mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Re-order methods in SPUUpdater, put more interesting ones up top
This commit is contained in:
1 parent
1d3e5753d3
commit
4bbd3d6c29
1 file changed
+35
-35
Vendored
+35
-35
@@ -66,14 +66,35 @@ SU_EXPORT @interface SPUUpdater : NSObject
|
||||
- (BOOL)startUpdater:(NSError * __autoreleasing *)error;
|
||||
|
||||
/*!
|
||||
* The host bundle that is being updated.
|
||||
* Checks for updates, and displays progress while doing so.
|
||||
*
|
||||
* This is meant for users initiating an update check
|
||||
*/
|
||||
@property (readonly, strong) NSBundle *hostBundle;
|
||||
- (void)checkForUpdates;
|
||||
|
||||
/*!
|
||||
* The bundle this class (SPUUpdater) is loaded into
|
||||
* Checks for updates, but does not display any UI unless an update is found.
|
||||
*
|
||||
* This is meant for programmatically initating a check for updates. That is,
|
||||
* it will display no UI unless it actually finds an update, in which case it
|
||||
* proceeds as usual.
|
||||
*
|
||||
* If the fully automated updating is turned on, however, this will invoke that
|
||||
* behavior, and if an update is found, it will be downloaded and prepped for
|
||||
* installation.
|
||||
*/
|
||||
@property (strong, readonly) NSBundle *sparkleBundle;
|
||||
- (void)checkForUpdatesInBackground;
|
||||
|
||||
/*!
|
||||
* Begins a "probing" check for updates which will not actually offer to
|
||||
* update to that version.
|
||||
*
|
||||
* However, the delegate methods
|
||||
* SPUUpdaterDelegate::updater:didFindValidUpdate: and
|
||||
* SPUUpdaterDelegate::updaterDidNotFindUpdate: will be called,
|
||||
* so you can use that information in your UI.
|
||||
*/
|
||||
- (void)checkForUpdateInformation;
|
||||
|
||||
/*!
|
||||
* A property indicating whether or not to check for updates automatically.
|
||||
@@ -99,6 +120,16 @@ SU_EXPORT @interface SPUUpdater : NSObject
|
||||
*/
|
||||
@property (copy) NSURL *feedURL;
|
||||
|
||||
/*!
|
||||
* The host bundle that is being updated.
|
||||
*/
|
||||
@property (readonly, strong) NSBundle *hostBundle;
|
||||
|
||||
/*!
|
||||
* The bundle this class (SPUUpdater) is loaded into
|
||||
*/
|
||||
@property (strong, readonly) NSBundle *sparkleBundle;
|
||||
|
||||
/*!
|
||||
* The user agent used when checking for updates.
|
||||
*
|
||||
@@ -116,26 +147,6 @@ SU_EXPORT @interface SPUUpdater : NSObject
|
||||
*/
|
||||
@property (nonatomic) BOOL sendsSystemProfile;
|
||||
|
||||
/*!
|
||||
Checks for updates, and displays progress while doing so.
|
||||
|
||||
This is meant for users initiating an update check
|
||||
*/
|
||||
- (void)checkForUpdates;
|
||||
|
||||
/*!
|
||||
Checks for updates, but does not display any UI unless an update is found.
|
||||
|
||||
This is meant for programmatically initating a check for updates. That is,
|
||||
it will display no UI unless it actually finds an update, in which case it
|
||||
proceeds as usual.
|
||||
|
||||
If the fully automated updating is turned on, however, this will invoke that
|
||||
behavior, and if an update is found, it will be downloaded and prepped for
|
||||
installation.
|
||||
*/
|
||||
- (void)checkForUpdatesInBackground;
|
||||
|
||||
/*!
|
||||
Returns the date of last update check.
|
||||
|
||||
@@ -143,17 +154,6 @@ SU_EXPORT @interface SPUUpdater : NSObject
|
||||
*/
|
||||
@property (readonly, copy, nullable) NSDate *lastUpdateCheckDate;
|
||||
|
||||
/*!
|
||||
Begins a "probing" check for updates which will not actually offer to
|
||||
update to that version.
|
||||
|
||||
However, the delegate methods
|
||||
SPUUpdaterDelegate::updater:didFindValidUpdate: and
|
||||
SPUUpdaterDelegate::updaterDidNotFindUpdate: will be called,
|
||||
so you can use that information in your UI.
|
||||
*/
|
||||
- (void)checkForUpdateInformation;
|
||||
|
||||
/*!
|
||||
Appropriately schedules or cancels the update checking timer according to
|
||||
the preferences for time interval and automatic checks.
|
||||
|
||||
Reference in new issue
Block a user