Peter 76e5a7fab6 Add 'submodules/HockeySDK-iOS/' from commit 'c7d0c7026303253e2ac576c02655691e5d314fe2'
git-subtree-dir: submodules/HockeySDK-iOS
git-subtree-mainline: 085acd26c4432939403765234266e3c1be0f3dd9
git-subtree-split: c7d0c7026303253e2ac576c02655691e5d314fe2
2019-06-11 18:53:14 +01:00

188 lines
3.6 KiB
C

//
// HockeySDKEnums.h
// HockeySDK
//
// Created by Lukas Spieß on 08/10/15.
//
//
#ifndef HockeySDK_HockeyEnums_h
#define HockeySDK_HockeyEnums_h
/**
* HockeySDK Log Levels
*/
typedef NS_ENUM(NSUInteger, BITLogLevel) {
/**
* Logging is disabled
*/
BITLogLevelNone = 0,
/**
* Only errors will be logged
*/
BITLogLevelError = 1,
/**
* Errors and warnings will be logged
*/
BITLogLevelWarning = 2,
/**
* Debug information will be logged
*/
BITLogLevelDebug = 3,
/**
* Logging will be very chatty
*/
BITLogLevelVerbose = 4
};
typedef NSString *(^BITLogMessageProvider)(void);
typedef void (^BITLogHandler)(BITLogMessageProvider messageProvider, BITLogLevel logLevel, const char *file, const char *function, uint line);
/**
* HockeySDK App environment
*/
typedef NS_ENUM(NSInteger, BITEnvironment) {
/**
* App has been downloaded from the AppStore
*/
BITEnvironmentAppStore = 0,
/**
* App has been downloaded from TestFlight
*/
BITEnvironmentTestFlight = 1,
/**
* App has been installed by some other mechanism.
* This could be Ad-Hoc, Enterprise, etc.
*/
BITEnvironmentOther = 99
};
/**
* HockeySDK Crash Reporter error domain
*/
typedef NS_ENUM (NSInteger, BITCrashErrorReason) {
/**
* Unknown error
*/
BITCrashErrorUnknown,
/**
* API Server rejected app version
*/
BITCrashAPIAppVersionRejected,
/**
* API Server returned empty response
*/
BITCrashAPIReceivedEmptyResponse,
/**
* Connection error with status code
*/
BITCrashAPIErrorWithStatusCode
};
/**
* HockeySDK Update error domain
*/
typedef NS_ENUM (NSInteger, BITUpdateErrorReason) {
/**
* Unknown error
*/
BITUpdateErrorUnknown,
/**
* API Server returned invalid status
*/
BITUpdateAPIServerReturnedInvalidStatus,
/**
* API Server returned invalid data
*/
BITUpdateAPIServerReturnedInvalidData,
/**
* API Server returned empty response
*/
BITUpdateAPIServerReturnedEmptyResponse,
/**
* Authorization secret missing
*/
BITUpdateAPIClientAuthorizationMissingSecret,
/**
* No internet connection
*/
BITUpdateAPIClientCannotCreateConnection
};
/**
* HockeySDK Feedback error domain
*/
typedef NS_ENUM(NSInteger, BITFeedbackErrorReason) {
/**
* Unknown error
*/
BITFeedbackErrorUnknown,
/**
* API Server returned invalid status
*/
BITFeedbackAPIServerReturnedInvalidStatus,
/**
* API Server returned invalid data
*/
BITFeedbackAPIServerReturnedInvalidData,
/**
* API Server returned empty response
*/
BITFeedbackAPIServerReturnedEmptyResponse,
/**
* Authorization secret missing
*/
BITFeedbackAPIClientAuthorizationMissingSecret,
/**
* No internet connection
*/
BITFeedbackAPIClientCannotCreateConnection
};
/**
* HockeySDK Authenticator error domain
*/
typedef NS_ENUM(NSInteger, BITAuthenticatorReason) {
/**
* Unknown error
*/
BITAuthenticatorErrorUnknown,
/**
* Network error
*/
BITAuthenticatorNetworkError,
/**
* API Server returned invalid response
*/
BITAuthenticatorAPIServerReturnedInvalidResponse,
/**
* Not Authorized
*/
BITAuthenticatorNotAuthorized,
/**
* Unknown Application ID (configuration error)
*/
BITAuthenticatorUnknownApplicationID,
/**
* Authorization secret missing
*/
BITAuthenticatorAuthorizationSecretMissing,
/**
* Not yet identified
*/
BITAuthenticatorNotIdentified,
};
/**
* HockeySDK global error domain
*/
typedef NS_ENUM(NSInteger, BITHockeyErrorReason) {
/**
* Unknown error
*/
BITHockeyErrorUnknown
};
#endif /* HockeySDK_HockeyEnums_h */