5 // Created by C.W. Betts on 10/13/14.
6 // Copyright (c) 2014 Sparkle Project. All rights reserved.
12 #if __has_feature(modules)
15 #import <Foundation/Foundation.h>
20 * Error domain used by Sparkle
22 SU_EXPORT
extern NSString
*const SUSparkleErrorDomain
;
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,
33 // Download phase errors.
34 SUTemporaryDirectoryError
= 2000,
35 SUDownloadError
= 2001,
37 // Extraction phase errors.
38 SUUnarchivingError
= 3000,
39 SUSignatureError
= 3001,
41 // Installation phase errors.
42 SUFileCopyFailure
= 4000,
43 SUAuthenticationFailure
= 4001,
44 SUMissingUpdateError
= 4002,
45 SUMissingInstallerToolError
= 4003,
46 SURelaunchError
= 4004,
47 SUInstallationError
= 4005,
48 SUDowngradeError
= 4006,
49 SUInstallationCancelledError
= 4007,
51 // System phase errors
52 SUSystemPowerOffError
= 5000
54 #pragma clang diagnostic pop