summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLOnKeyboardInput.m
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2016-10-13 14:45:23 -0700
committerMuller, Alexander (A.) <amulle19@ford.com>2016-10-13 14:45:23 -0700
commit280b61d326ac0b46957ea81f80f5fb5fb54f879f (patch)
tree2b88f1e4ca61badea0d18f6bd02e111fd1e15929 /SmartDeviceLink/SDLOnKeyboardInput.m
parent50bcf640523d356565e20d93690ed5d6c8e2bd56 (diff)
parent6da602b5f5d8897834657c053727602aaa0e6fa9 (diff)
downloadsdl_ios-280b61d326ac0b46957ea81f80f5fb5fb54f879f.tar.gz
Merge remote-tracking branch 'origin/develop' into feature/issue_425_stringly_typed_enum
* origin/develop: (27 commits) Revert "Changed deviceScale type to silence build warning" Changed deviceScale type to silence build warning Change SDLRPCStruct private method to be a class method Fixed error reference. reverting function renaming in SDLRPCMessage. Removed SDLJsonEncoder/Decoder. Initial removal of SDLSiphonServer Fixed issue with not all instances for SDLRPCMessage function rename applied. reverting function renaming in SDLRPCMessage. Fixed accidental function renaming. Update lock screen to work correctly on iOS 6 - 8 Fixed issue with not being able to support both Swift 3 and pre-iOS 10 Objective-C. Fixed an issue with cocoapods not properly loading icons on pre-iOS 8 devices. Updated SDLFunctionID to project instead of private. Update version checking code to use what we already use Updated assets and support for retrieving bundle images for iOS 6 & 7. Touched SDL Example Images.xcassets Remove `.xctool.args` and update README with current testing information Migrated initWithDictionary to take non-mutable dictionary as parameter. Updated SDLFunctionID to be private. ... # Conflicts: # SmartDeviceLink-iOS.xcodeproj/project.pbxproj # SmartDeviceLink/SDLAirbagStatus.m # SmartDeviceLink/SDLAudioPassThruCapabilities.m # SmartDeviceLink/SDLBeltStatus.m # SmartDeviceLink/SDLBodyInformation.m # SmartDeviceLink/SDLButtonCapabilities.m # SmartDeviceLink/SDLChangeRegistration.m # SmartDeviceLink/SDLClusterModeStatus.m # SmartDeviceLink/SDLDIDResult.m # SmartDeviceLink/SDLDeviceStatus.m # SmartDeviceLink/SDLDisplayCapabilities.m # SmartDeviceLink/SDLECallInfo.m # SmartDeviceLink/SDLEmergencyEvent.m # SmartDeviceLink/SDLGPSData.m # SmartDeviceLink/SDLGetVehicleDataResponse.m # SmartDeviceLink/SDLHMIPermissions.m # SmartDeviceLink/SDLHeadLampStatus.h # SmartDeviceLink/SDLHeadLampStatus.m # SmartDeviceLink/SDLImage.m # SmartDeviceLink/SDLImageField.m # SmartDeviceLink/SDLKeyboardProperties.m # SmartDeviceLink/SDLMyKey.m # SmartDeviceLink/SDLOnAppInterfaceUnregistered.m # SmartDeviceLink/SDLOnButtonEvent.m # SmartDeviceLink/SDLOnButtonPress.m # SmartDeviceLink/SDLOnCommand.m # SmartDeviceLink/SDLOnDriverDistraction.m # SmartDeviceLink/SDLOnHMIStatus.m # SmartDeviceLink/SDLOnKeyboardInput.m # SmartDeviceLink/SDLOnLanguageChange.m # SmartDeviceLink/SDLOnLockScreenStatus.m # SmartDeviceLink/SDLOnSystemRequest.m # SmartDeviceLink/SDLOnTBTClientState.m # SmartDeviceLink/SDLOnTouchEvent.m # SmartDeviceLink/SDLOnVehicleData.m # SmartDeviceLink/SDLPerformAudioPassThru.m # SmartDeviceLink/SDLPerformInteraction.m # SmartDeviceLink/SDLPerformInteractionResponse.m # SmartDeviceLink/SDLProxy.m # SmartDeviceLink/SDLPutFile.m # SmartDeviceLink/SDLRPCResponse.m # SmartDeviceLink/SDLRegisterAppInterface.m # SmartDeviceLink/SDLRegisterAppInterfaceResponse.m # SmartDeviceLink/SDLResetGlobalProperties.m # SmartDeviceLink/SDLSetMediaClockTimer.m # SmartDeviceLink/SDLShow.m # SmartDeviceLink/SDLSingleTireStatus.m # SmartDeviceLink/SDLSoftButton.m # SmartDeviceLink/SDLSubscribeButton.m # SmartDeviceLink/SDLSystemRequest.m # SmartDeviceLink/SDLTTSChunk.m # SmartDeviceLink/SDLTextField.m # SmartDeviceLink/SDLTireStatus.m # SmartDeviceLink/SDLUnsubscribeButton.m # SmartDeviceLink/SDLVehicleDataResult.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAppInterfaceUnregisteredSpec.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonEventSpec.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonPressSpec.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnCommandSpec.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnDriverDistractionSpec.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHMIStatusSpec.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnKeyboardInputSpec.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLanguageChangeSpec.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLockScreenStatusSpec.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSystemRequestSpec.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTBTClientStateSpec.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTouchEventSpec.m # SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m # SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformAudioPassThruSpec.m # SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformInteractionSpec.m # SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPutFileSpec.m # SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLRegisterAppInterfaceSpec.m # SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLResetGlobalPropertiesSpec.m # SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m # SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowSpec.m # SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeButtonSpec.m # SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSystemRequestSpec.m # SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeButtonSpec.m # SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m # SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformInteractionResponseSpec.m # SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLRegisterAppInterfaceResponseSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAirbagStatusSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAudioPassThruCapabilitiesSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBeltStatusSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBodyInformationSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLButtonCapabilitiesSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDIDResult.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceStatusSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDisplayCapabilitiesSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLECallInfoSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLEmergencyEventSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLGPSDataSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMIPermissionsSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHeadLampStatusSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageFieldSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLKeyboardPropertiesSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMyKeySpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLParameterPermissionsSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSingleTireStatusSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTTSChunkSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTextFieldSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTireStatusSpec.m # SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleDataResultSpec.m
Diffstat (limited to 'SmartDeviceLink/SDLOnKeyboardInput.m')
-rw-r--r--SmartDeviceLink/SDLOnKeyboardInput.m21
1 files changed, 7 insertions, 14 deletions
diff --git a/SmartDeviceLink/SDLOnKeyboardInput.m b/SmartDeviceLink/SDLOnKeyboardInput.m
index 42857840d..16848f5b7 100644
--- a/SmartDeviceLink/SDLOnKeyboardInput.m
+++ b/SmartDeviceLink/SDLOnKeyboardInput.m
@@ -5,44 +5,37 @@
#import "SDLNames.h"
-
@implementation SDLOnKeyboardInput
- (instancetype)init {
- if (self = [super initWithName:NAMES_OnKeyboardInput]) {
- }
- return self;
-}
-
-- (instancetype)initWithDictionary:(NSMutableDictionary *)dict {
- if (self = [super initWithDictionary:dict]) {
+ if (self = [super initWithName:SDLNameOnKeyboardInput]) {
}
return self;
}
- (void)setEvent:(SDLKeyboardEvent)event {
if (event != nil) {
- [parameters setObject:event forKey:NAMES_event];
+ [parameters setObject:event forKey:SDLNameEvent];
} else {
- [parameters removeObjectForKey:NAMES_event];
+ [parameters removeObjectForKey:SDLNameEvent];
}
}
- (SDLKeyboardEvent)event {
- NSObject *obj = [parameters objectForKey:NAMES_event];
+ NSObject *obj = [parameters objectForKey:SDLNameEvent];
return (SDLKeyboardEvent)obj;
}
- (void)setData:(NSString *)data {
if (data != nil) {
- [parameters setObject:data forKey:NAMES_data];
+ [parameters setObject:data forKey:SDLNameData];
} else {
- [parameters removeObjectForKey:NAMES_data];
+ [parameters removeObjectForKey:SDLNameData];
}
}
- (NSString *)data {
- return [parameters objectForKey:NAMES_data];
+ return [parameters objectForKey:SDLNameData];
}
@end