mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
49 lines
1.3 KiB
Objective-C
49 lines
1.3 KiB
Objective-C
//
|
|
// SPUMessageTypes.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 3/11/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class SUHost;
|
|
|
|
extern NSString *SPUAppcastItemArchiveKey;
|
|
|
|
// Order matters; higher stages have higher values.
|
|
typedef NS_ENUM(int32_t, SPUInstallerMessageType)
|
|
{
|
|
SPUInstallerNotStarted = 0,
|
|
SPUExtractionStarted = 1,
|
|
SPUExtractedArchiveWithProgress = 2,
|
|
SPUArchiveExtractionFailed = 3,
|
|
SPUValidationStarted = 4,
|
|
SPUInstallationStartedStage1 = 5,
|
|
SPUInstallationFinishedStage1 = 6,
|
|
SPUInstallationFinishedStage2 = 7,
|
|
SPUInstallationFinishedStage3 = 8,
|
|
SPUUpdaterAlivePing = 9
|
|
};
|
|
|
|
typedef NS_ENUM(int32_t, SPUUpdaterMessageType)
|
|
{
|
|
SPUInstallationData = 0,
|
|
SPUSentUpdateAppcastItemData = 1,
|
|
SPUResumeInstallationToStage2 = 2,
|
|
SPUUpdaterAlivePong = 3
|
|
};
|
|
|
|
BOOL SPUInstallerMessageTypeIsLegal(SPUInstallerMessageType oldMessageType, SPUInstallerMessageType newMessageType);
|
|
|
|
NSString *SPUInstallerServiceNameForBundleIdentifier(NSString *bundleIdentifier);
|
|
|
|
NSString *SPUStatusInfoServiceNameForBundleIdentifier(NSString *bundleIdentifier);
|
|
|
|
NSString *SPUProgressAgentServiceNameForBundleIdentifier(NSString *bundleIdentifier);
|
|
|
|
NS_ASSUME_NONNULL_END
|