Update Sparkle to 1.27.1 for Apple Silicon support.
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / SUErrors.h
1 //
2 // SUErrors.h
3 // Sparkle
4 //
5 // Created by C.W. Betts on 10/13/14.
6 // Copyright (c) 2014 Sparkle Project. All rights reserved.
7 //
8
9 #ifndef SUERRORS_H
10 #define SUERRORS_H
11
12 #if __has_feature(modules)
13 @import Foundation;
14 #else
15 #import <Foundation/Foundation.h>
16 #endif
17 #import "SUExport.h"
18
19 /**
20 * Error domain used by Sparkle
21 */
22 SU_EXPORT extern NSString *const SUSparkleErrorDomain;
23
24 #pragma clang diagnostic push
25 #pragma clang diagnostic ignored "-Wc++98-compat"
26 typedef NS_ENUM(OSStatus, SUError) {
27 // Appcast phase errors.
28 SUAppcastParseError = 1000,
29 SUNoUpdateError = 1001,
30 SUAppcastError = 1002,
31 SURunningFromDiskImageError = 1003,
32 SURunningTranslocated = 1004,
33 SUWebKitTerminationError = 1005,
34
35 // Download phase errors.
36 SUTemporaryDirectoryError = 2000,
37 SUDownloadError = 2001,
38
39 // Extraction phase errors.
40 SUUnarchivingError = 3000,
41 SUSignatureError = 3001,
42
43 // Installation phase errors.
44 SUFileCopyFailure = 4000,
45 SUAuthenticationFailure = 4001,
46 SUMissingUpdateError = 4002,
47 SUMissingInstallerToolError = 4003,
48 SURelaunchError = 4004,
49 SUInstallationError = 4005,
50 SUDowngradeError = 4006,
51 SUInstallationCancelledError = 4007,
52
53 // System phase errors
54 SUSystemPowerOffError = 5000
55 };
56 #pragma clang diagnostic pop
57
58 #endif