summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLVehicleDataResultCode.h
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2016-09-21 12:13:36 -0700
committerMuller, Alexander (A.) <amulle19@ford.com>2016-09-21 12:13:36 -0700
commitbe7622fe60babba90276101db79a515597a9fea1 (patch)
tree8bbcc0a3433ae8e42fa2204c9a36712cce0203ca /SmartDeviceLink/SDLVehicleDataResultCode.h
parente6e84cc8c23609ab286c64a2c6a3037313f29908 (diff)
downloadsdl_ios-be7622fe60babba90276101db79a515597a9fea1.tar.gz
Initial conversion of all enum objects to SDLEnum typedef.
Diffstat (limited to 'SmartDeviceLink/SDLVehicleDataResultCode.h')
-rw-r--r--SmartDeviceLink/SDLVehicleDataResultCode.h39
1 files changed, 12 insertions, 27 deletions
diff --git a/SmartDeviceLink/SDLVehicleDataResultCode.h b/SmartDeviceLink/SDLVehicleDataResultCode.h
index 162ecff59..722008d5e 100644
--- a/SmartDeviceLink/SDLVehicleDataResultCode.h
+++ b/SmartDeviceLink/SDLVehicleDataResultCode.h
@@ -7,65 +7,50 @@
/**
Vehicle Data Result Code
*/
-@interface SDLVehicleDataResultCode : SDLEnum {
-}
-
-/**
- * Convert String to SDLVehicleDataResultCode
- * @param value String
- * @return SDLVehicleDataResultCode
- */
-+ (SDLVehicleDataResultCode *)valueOf:(NSString *)value;
-
-/**
- @abstract Store the enumeration of all possible SDLVehicleDataResultCode
- @return an array that store all possible SDLVehicleDataResultCode
- */
-+ (NSArray *)values;
+typedef SDLEnum SDLVehicleDataResultCode NS_EXTENSIBLE_STRING_ENUM;
/**
* Individual vehicle data item / DTC / DID request or subscription successful
*/
-+ (SDLVehicleDataResultCode *)SUCCESS;
+extern SDLVehicleDataResultCode const SDLVehicleDataResultCodeSuccess;
+
/**
* DTC / DID request successful, however, not all active DTCs or full contents of DID location available
*/
-+ (SDLVehicleDataResultCode *)TRUNCATED_DATA;
-
+extern SDLVehicleDataResultCode const SDLVehicleDataResultCodeTruncatedData;
+
/**
* This vehicle data item is not allowed for this app by SDL
*/
-+ (SDLVehicleDataResultCode *)DISALLOWED;
+extern SDLVehicleDataResultCode const SDLVehicleDataResultCodeDisallowed;
/**
* The user has not granted access to this type of vehicle data item at this time
*/
-+ (SDLVehicleDataResultCode *)USER_DISALLOWED;
+extern SDLVehicleDataResultCode const SDLVehicleDataResultCodeUserDisallowed;
/**
* The ECU ID referenced is not a valid ID on the bus / system
*/
-+ (SDLVehicleDataResultCode *)INVALID_ID;
+extern SDLVehicleDataResultCode const SDLVehicleDataResultCodeInvalidId;
/**
* The requested vehicle data item / DTC / DID is not currently available or responding on the bus / system
*/
-+ (SDLVehicleDataResultCode *)VEHICLE_DATA_NOT_AVAILABLE;
+extern SDLVehicleDataResultCode const SDLVehicleDataResultCodeVehicleDataNotAvailable;
/**
* The vehicle data item is already subscribed
*/
-+ (SDLVehicleDataResultCode *)DATA_ALREADY_SUBSCRIBED;
+extern SDLVehicleDataResultCode const SDLVehicleDataResultCodeDataAlreadySubscribed;
/**
* The vehicle data item cannot be unsubscribed because it is not currently subscribed
*/
-+ (SDLVehicleDataResultCode *)DATA_NOT_SUBSCRIBED;
+extern SDLVehicleDataResultCode const SDLVehicleDataResultCodeDataNotSubscribed;
/**
* The request for this item is ignored because it is already in progress
*/
-+ (SDLVehicleDataResultCode *)IGNORED;
-
-@end
+extern SDLVehicleDataResultCode const SDLVehicleDataResultCodeIgnored;