From fb8e9903a323acaf5fc78819bb3c203567542ab2 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Wed, 25 May 2016 08:44:23 -0400 Subject: Shift files into root directory --- .gitignore | 5 +- Cartfile.private | 4 + Cartfile.resolved | 4 + SmartDeviceLink-iOS.xcodeproj/project.pbxproj | 4244 ++++++++++++++++++++ .../project.xcworkspace/contents.xcworkspacedata | 7 + .../xcschemes/SmartDeviceLink.xcscheme | 100 + SmartDeviceLink-iOS/Cartfile.private | 4 - SmartDeviceLink-iOS/Cartfile.resolved | 4 - .../SmartDeviceLink-iOS.xcodeproj/project.pbxproj | 4244 -------------------- .../project.xcworkspace/contents.xcworkspacedata | 7 - .../xcschemes/SmartDeviceLink.xcscheme | 100 - .../SmartDeviceLink/EAAccessory+SDLProtocols.h | 11 - .../SmartDeviceLink/EAAccessory+SDLProtocols.m | 19 - .../EAAccessoryManager+SDLProtocols.h | 11 - .../EAAccessoryManager+SDLProtocols.m | 20 - SmartDeviceLink-iOS/SmartDeviceLink/Info.plist | 26 - .../SmartDeviceLink/NSThread+ThreadIndex.h | 9 - .../SmartDeviceLink/NSThread+ThreadIndex.m | 23 - .../SmartDeviceLink/SDLAbstractProtocol.h | 31 - .../SmartDeviceLink/SDLAbstractProtocol.m | 77 - .../SmartDeviceLink/SDLAbstractTransport.h | 18 - .../SmartDeviceLink/SDLAbstractTransport.m | 34 - .../SmartDeviceLink/SDLAddCommand.h | 92 - .../SmartDeviceLink/SDLAddCommand.m | 84 - .../SmartDeviceLink/SDLAddCommandResponse.h | 18 - .../SmartDeviceLink/SDLAddCommandResponse.m | 21 - .../SmartDeviceLink/SDLAddSubMenu.h | 66 - .../SmartDeviceLink/SDLAddSubMenu.m | 57 - .../SmartDeviceLink/SDLAddSubMenuResponse.h | 16 - .../SmartDeviceLink/SDLAddSubMenuResponse.m | 21 - .../SmartDeviceLink/SDLAirbagStatus.h | 24 - .../SmartDeviceLink/SDLAirbagStatus.m | 159 - SmartDeviceLink-iOS/SmartDeviceLink/SDLAlert.h | 144 - SmartDeviceLink-iOS/SmartDeviceLink/SDLAlert.m | 137 - .../SmartDeviceLink/SDLAlertManeuver.h | 19 - .../SmartDeviceLink/SDLAlertManeuver.m | 67 - .../SmartDeviceLink/SDLAlertManeuverResponse.h | 16 - .../SmartDeviceLink/SDLAlertManeuverResponse.m | 22 - .../SmartDeviceLink/SDLAlertResponse.h | 19 - .../SmartDeviceLink/SDLAlertResponse.m | 34 - .../SmartDeviceLink/SDLAmbientLightStatus.h | 26 - .../SmartDeviceLink/SDLAmbientLightStatus.m | 100 - .../SmartDeviceLink/SDLAppHMIType.h | 96 - .../SmartDeviceLink/SDLAppHMIType.m | 119 - .../SDLAppInterfaceUnregisteredReason.h | 103 - .../SDLAppInterfaceUnregisteredReason.m | 118 - .../SmartDeviceLink/SDLAudioPassThruCapabilities.h | 74 - .../SmartDeviceLink/SDLAudioPassThruCapabilities.m | 78 - .../SmartDeviceLink/SDLAudioStreamingState.h | 52 - .../SmartDeviceLink/SDLAudioStreamingState.m | 56 - SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioType.h | 38 - SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioType.m | 37 - .../SmartDeviceLink/SDLBeltStatus.h | 31 - .../SmartDeviceLink/SDLBeltStatus.m | 279 -- .../SmartDeviceLink/SDLBitsPerSample.h | 45 - .../SmartDeviceLink/SDLBitsPerSample.m | 47 - .../SmartDeviceLink/SDLBodyInformation.h | 63 - .../SmartDeviceLink/SDLBodyInformation.m | 120 - .../SmartDeviceLink/SDLButtonCapabilities.h | 54 - .../SmartDeviceLink/SDLButtonCapabilities.m | 77 - .../SmartDeviceLink/SDLButtonEventMode.h | 40 - .../SmartDeviceLink/SDLButtonEventMode.m | 47 - .../SmartDeviceLink/SDLButtonName.h | 152 - .../SmartDeviceLink/SDLButtonName.m | 182 - .../SmartDeviceLink/SDLButtonPressMode.h | 45 - .../SmartDeviceLink/SDLButtonPressMode.m | 47 - .../SmartDeviceLink/SDLCarModeStatus.h | 32 - .../SmartDeviceLink/SDLCarModeStatus.m | 65 - .../SmartDeviceLink/SDLChangeRegistration.h | 70 - .../SmartDeviceLink/SDLChangeRegistration.m | 106 - .../SDLChangeRegistrationResponse.h | 18 - .../SDLChangeRegistrationResponse.m | 23 - .../SmartDeviceLink/SDLCharacterSet.h | 39 - .../SmartDeviceLink/SDLCharacterSet.m | 65 - SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.h | 116 - SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.m | 118 - .../SmartDeviceLink/SDLClusterModeStatus.h | 22 - .../SmartDeviceLink/SDLClusterModeStatus.m | 89 - .../SmartDeviceLink/SDLCompassDirection.h | 76 - .../SmartDeviceLink/SDLCompassDirection.m | 101 - .../SmartDeviceLink/SDLComponentVolumeStatus.h | 64 - .../SmartDeviceLink/SDLComponentVolumeStatus.m | 83 - .../SmartDeviceLink/SDLConsoleController.h | 21 - .../SmartDeviceLink/SDLConsoleController.m | 201 - .../SDLCreateInteractionChoiceSet.h | 49 - .../SDLCreateInteractionChoiceSet.m | 57 - .../SDLCreateInteractionChoiceSetResponse.h | 19 - .../SDLCreateInteractionChoiceSetResponse.m | 23 - SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.h | 19 - SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.m | 65 - SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h | 48 - SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.m | 258 -- .../SmartDeviceLink/SDLDebugToolConsole.h | 12 - SmartDeviceLink-iOS/SmartDeviceLink/SDLDecoder.h | 11 - .../SmartDeviceLink/SDLDeleteCommand.h | 43 - .../SmartDeviceLink/SDLDeleteCommand.m | 35 - .../SmartDeviceLink/SDLDeleteCommandResponse.h | 18 - .../SmartDeviceLink/SDLDeleteCommandResponse.m | 23 - .../SmartDeviceLink/SDLDeleteFile.h | 36 - .../SmartDeviceLink/SDLDeleteFile.m | 35 - .../SmartDeviceLink/SDLDeleteFileResponse.h | 20 - .../SmartDeviceLink/SDLDeleteFileResponse.m | 35 - .../SDLDeleteInteractionChoiceSet.h | 45 - .../SDLDeleteInteractionChoiceSet.m | 35 - .../SDLDeleteInteractionChoiceSetResponse.h | 18 - .../SDLDeleteInteractionChoiceSetResponse.m | 23 - .../SmartDeviceLink/SDLDeleteSubMenu.h | 38 - .../SmartDeviceLink/SDLDeleteSubMenu.m | 35 - .../SmartDeviceLink/SDLDeleteSubMenuResponse.h | 18 - .../SmartDeviceLink/SDLDeleteSubMenuResponse.m | 23 - .../SmartDeviceLink/SDLDeviceInfo.h | 20 - .../SmartDeviceLink/SDLDeviceInfo.m | 95 - .../SmartDeviceLink/SDLDeviceLevelStatus.h | 64 - .../SmartDeviceLink/SDLDeviceLevelStatus.m | 83 - .../SmartDeviceLink/SDLDeviceStatus.h | 199 - .../SmartDeviceLink/SDLDeviceStatus.m | 172 - .../SmartDeviceLink/SDLDiagnosticMessage.h | 39 - .../SmartDeviceLink/SDLDiagnosticMessage.m | 59 - .../SmartDeviceLink/SDLDiagnosticMessageResponse.h | 18 - .../SmartDeviceLink/SDLDiagnosticMessageResponse.m | 34 - .../SmartDeviceLink/SDLDialNumber.h | 22 - .../SmartDeviceLink/SDLDialNumber.m | 35 - .../SmartDeviceLink/SDLDialNumberResponse.h | 17 - .../SmartDeviceLink/SDLDialNumberResponse.m | 24 - SmartDeviceLink-iOS/SmartDeviceLink/SDLDimension.h | 51 - SmartDeviceLink-iOS/SmartDeviceLink/SDLDimension.m | 56 - .../SmartDeviceLink/SDLDisplayCapabilities.h | 100 - .../SmartDeviceLink/SDLDisplayCapabilities.m | 161 - .../SmartDeviceLink/SDLDisplayType.h | 61 - .../SmartDeviceLink/SDLDisplayType.m | 119 - .../SmartDeviceLink/SDLDriverDistractionState.h | 45 - .../SmartDeviceLink/SDLDriverDistractionState.m | 47 - .../SmartDeviceLink/SDLECallConfirmationStatus.h | 52 - .../SmartDeviceLink/SDLECallConfirmationStatus.m | 92 - SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.h | 20 - SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.m | 76 - .../SmartDeviceLink/SDLEmergencyEvent.h | 23 - .../SmartDeviceLink/SDLEmergencyEvent.m | 106 - .../SmartDeviceLink/SDLEmergencyEventType.h | 53 - .../SmartDeviceLink/SDLEmergencyEventType.m | 92 - .../SmartDeviceLink/SDLEncodedSyncPData.h | 15 - .../SmartDeviceLink/SDLEncodedSyncPData.m | 35 - .../SmartDeviceLink/SDLEncodedSyncPDataResponse.h | 13 - .../SmartDeviceLink/SDLEncodedSyncPDataResponse.m | 23 - SmartDeviceLink-iOS/SmartDeviceLink/SDLEncoder.h | 11 - .../SmartDeviceLink/SDLEndAudioPassThru.h | 33 - .../SmartDeviceLink/SDLEndAudioPassThru.m | 23 - .../SmartDeviceLink/SDLEndAudioPassThruResponse.h | 18 - .../SmartDeviceLink/SDLEndAudioPassThruResponse.m | 23 - SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.h | 18 - SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.m | 52 - SmartDeviceLink-iOS/SmartDeviceLink/SDLFileType.h | 87 - SmartDeviceLink-iOS/SmartDeviceLink/SDLFileType.m | 101 - .../SmartDeviceLink/SDLFuelCutoffStatus.h | 50 - .../SmartDeviceLink/SDLFuelCutoffStatus.m | 56 - .../SmartDeviceLink/SDLFunctionID.h | 15 - .../SmartDeviceLink/SDLFunctionID.m | 40 - SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.h | 163 - SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.m | 251 -- .../SmartDeviceLink/SDLGenericResponse.h | 18 - .../SmartDeviceLink/SDLGenericResponse.m | 23 - SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCs.h | 41 - SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCs.m | 47 - .../SmartDeviceLink/SDLGetDTCsResponse.h | 21 - .../SmartDeviceLink/SDLGetDTCsResponse.m | 47 - .../SmartDeviceLink/SDLGetVehicleData.h | 140 - .../SmartDeviceLink/SDLGetVehicleData.m | 323 -- .../SmartDeviceLink/SDLGetVehicleDataResponse.h | 150 - .../SmartDeviceLink/SDLGetVehicleDataResponse.m | 414 -- .../SmartDeviceLink/SDLGlobalProperty.h | 50 - .../SmartDeviceLink/SDLGlobalProperty.m | 92 - SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobals.h | 21 - SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobals.m | 77 - .../SmartDeviceLink/SDLHMICapabilities.h | 26 - .../SmartDeviceLink/SDLHMICapabilities.m | 54 - SmartDeviceLink-iOS/SmartDeviceLink/SDLHMILevel.h | 76 - SmartDeviceLink-iOS/SmartDeviceLink/SDLHMILevel.m | 65 - .../SmartDeviceLink/SDLHMIPermissions.h | 44 - .../SmartDeviceLink/SDLHMIPermissions.m | 66 - .../SmartDeviceLink/SDLHMIZoneCapabilities.h | 39 - .../SmartDeviceLink/SDLHMIZoneCapabilities.m | 47 - .../SmartDeviceLink/SDLHeadLampStatus.h | 33 - .../SmartDeviceLink/SDLHeadLampStatus.m | 65 - .../SmartDeviceLink/SDLHexUtility.h | 13 - .../SmartDeviceLink/SDLHexUtility.m | 60 - .../SmartDeviceLink/SDLIAPSession.h | 27 - .../SmartDeviceLink/SDLIAPSession.m | 156 - .../SmartDeviceLink/SDLIAPSessionDelegate.h | 13 - .../SmartDeviceLink/SDLIAPTransport.h | 15 - .../SmartDeviceLink/SDLIAPTransport.m | 477 --- .../SmartDeviceLink/SDLIgnitionStableStatus.h | 42 - .../SmartDeviceLink/SDLIgnitionStableStatus.m | 56 - .../SmartDeviceLink/SDLIgnitionStatus.h | 64 - .../SmartDeviceLink/SDLIgnitionStatus.m | 83 - SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.h | 42 - SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.m | 53 - .../SmartDeviceLink/SDLImageField.h | 20 - .../SmartDeviceLink/SDLImageField.m | 81 - .../SmartDeviceLink/SDLImageFieldName.h | 82 - .../SmartDeviceLink/SDLImageFieldName.m | 137 - .../SmartDeviceLink/SDLImageResolution.h | 16 - .../SmartDeviceLink/SDLImageResolution.m | 47 - SmartDeviceLink-iOS/SmartDeviceLink/SDLImageType.h | 47 - SmartDeviceLink-iOS/SmartDeviceLink/SDLImageType.m | 47 - .../SmartDeviceLink/SDLInteractionMode.h | 56 - .../SmartDeviceLink/SDLInteractionMode.m | 56 - SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.h | 16 - SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.m | 25 - .../SmartDeviceLink/SDLJsonDecoder.h | 14 - .../SmartDeviceLink/SDLJsonDecoder.m | 38 - .../SmartDeviceLink/SDLJsonEncoder.h | 14 - .../SmartDeviceLink/SDLJsonEncoder.m | 38 - .../SmartDeviceLink/SDLKeyboardEvent.h | 45 - .../SmartDeviceLink/SDLKeyboardEvent.m | 74 - .../SmartDeviceLink/SDLKeyboardLayout.h | 33 - .../SmartDeviceLink/SDLKeyboardLayout.m | 56 - .../SmartDeviceLink/SDLKeyboardProperties.h | 23 - .../SmartDeviceLink/SDLKeyboardProperties.m | 101 - .../SmartDeviceLink/SDLKeypressMode.h | 35 - .../SmartDeviceLink/SDLKeypressMode.m | 56 - SmartDeviceLink-iOS/SmartDeviceLink/SDLLanguage.h | 150 - SmartDeviceLink-iOS/SmartDeviceLink/SDLLanguage.m | 245 -- .../SmartDeviceLink/SDLLayoutMode.h | 43 - .../SmartDeviceLink/SDLLayoutMode.m | 74 - SmartDeviceLink-iOS/SmartDeviceLink/SDLListFiles.h | 27 - SmartDeviceLink-iOS/SmartDeviceLink/SDLListFiles.m | 23 - .../SmartDeviceLink/SDLListFilesResponse.h | 21 - .../SmartDeviceLink/SDLListFilesResponse.m | 47 - .../SmartDeviceLink/SDLLockScreenManager.h | 21 - .../SmartDeviceLink/SDLLockScreenManager.m | 95 - .../SmartDeviceLink/SDLLockScreenStatus.h | 24 - .../SmartDeviceLink/SDLLockScreenStatus.m | 59 - .../SmartDeviceLink/SDLMaintenanceModeStatus.h | 50 - .../SmartDeviceLink/SDLMaintenanceModeStatus.m | 65 - .../SmartDeviceLink/SDLMediaClockFormat.h | 154 - .../SmartDeviceLink/SDLMediaClockFormat.m | 92 - .../SmartDeviceLink/SDLMenuParams.h | 56 - .../SmartDeviceLink/SDLMenuParams.m | 59 - SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.h | 17 - SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.m | 41 - SmartDeviceLink-iOS/SmartDeviceLink/SDLNames.h | 406 -- .../SmartDeviceLink/SDLObjectWithPriority.h | 18 - .../SmartDeviceLink/SDLObjectWithPriority.m | 31 - .../SDLOnAppInterfaceUnregistered.h | 35 - .../SDLOnAppInterfaceUnregistered.m | 41 - .../SmartDeviceLink/SDLOnAudioPassThru.h | 39 - .../SmartDeviceLink/SDLOnAudioPassThru.m | 23 - .../SmartDeviceLink/SDLOnButtonEvent.h | 81 - .../SmartDeviceLink/SDLOnButtonEvent.m | 71 - .../SmartDeviceLink/SDLOnButtonPress.h | 94 - .../SmartDeviceLink/SDLOnButtonPress.m | 71 - SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.h | 42 - SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.m | 53 - .../SmartDeviceLink/SDLOnDriverDistraction.h | 46 - .../SmartDeviceLink/SDLOnDriverDistraction.m | 41 - .../SmartDeviceLink/SDLOnEncodedSyncPData.h | 17 - .../SmartDeviceLink/SDLOnEncodedSyncPData.m | 59 - .../SmartDeviceLink/SDLOnHMIStatus.h | 58 - .../SmartDeviceLink/SDLOnHMIStatus.m | 77 - .../SmartDeviceLink/SDLOnHashChange.h | 15 - .../SmartDeviceLink/SDLOnHashChange.m | 35 - .../SmartDeviceLink/SDLOnKeyboardInput.h | 18 - .../SmartDeviceLink/SDLOnKeyboardInput.m | 53 - .../SmartDeviceLink/SDLOnLanguageChange.h | 38 - .../SmartDeviceLink/SDLOnLanguageChange.m | 58 - .../SmartDeviceLink/SDLOnLockScreenStatus.h | 47 - .../SmartDeviceLink/SDLOnLockScreenStatus.m | 84 - .../SmartDeviceLink/SDLOnPermissionsChange.h | 35 - .../SmartDeviceLink/SDLOnPermissionsChange.m | 45 - .../SmartDeviceLink/SDLOnSyncPData.h | 16 - .../SmartDeviceLink/SDLOnSyncPData.m | 47 - .../SmartDeviceLink/SDLOnSystemRequest.h | 23 - .../SmartDeviceLink/SDLOnSystemRequest.m | 107 - .../SmartDeviceLink/SDLOnTBTClientState.h | 17 - .../SmartDeviceLink/SDLOnTBTClientState.m | 41 - .../SmartDeviceLink/SDLOnTouchEvent.h | 18 - .../SmartDeviceLink/SDLOnTouchEvent.m | 63 - .../SmartDeviceLink/SDLOnVehicleData.h | 150 - .../SmartDeviceLink/SDLOnVehicleData.m | 413 -- SmartDeviceLink-iOS/SmartDeviceLink/SDLPRNDL.h | 143 - SmartDeviceLink-iOS/SmartDeviceLink/SDLPRNDL.m | 173 - .../SmartDeviceLink/SDLParameterPermissions.h | 39 - .../SmartDeviceLink/SDLParameterPermissions.m | 47 - .../SmartDeviceLink/SDLPerformAudioPassThru.h | 104 - .../SmartDeviceLink/SDLPerformAudioPassThru.m | 148 - .../SDLPerformAudioPassThruResponse.h | 25 - .../SDLPerformAudioPassThruResponse.m | 23 - .../SmartDeviceLink/SDLPerformInteraction.h | 85 - .../SmartDeviceLink/SDLPerformInteraction.m | 181 - .../SDLPerformInteractionResponse.h | 55 - .../SDLPerformInteractionResponse.m | 66 - .../SmartDeviceLink/SDLPermissionItem.h | 20 - .../SmartDeviceLink/SDLPermissionItem.m | 71 - .../SmartDeviceLink/SDLPermissionStatus.h | 55 - .../SmartDeviceLink/SDLPermissionStatus.m | 65 - .../SmartDeviceLink/SDLPolicyDataParser.h | 31 - .../SmartDeviceLink/SDLPolicyDataParser.m | 140 - .../SDLPowerModeQualificationStatus.h | 18 - .../SDLPowerModeQualificationStatus.m | 65 - .../SmartDeviceLink/SDLPowerModeStatus.h | 23 - .../SmartDeviceLink/SDLPowerModeStatus.m | 110 - .../SmartDeviceLink/SDLPredefinedLayout.h | 34 - .../SmartDeviceLink/SDLPredefinedLayout.m | 209 - .../SmartDeviceLink/SDLPrerecordedSpeech.h | 19 - .../SmartDeviceLink/SDLPrerecordedSpeech.m | 74 - .../SmartDeviceLink/SDLPresetBankCapabilities.h | 33 - .../SmartDeviceLink/SDLPresetBankCapabilities.m | 35 - .../SmartDeviceLink/SDLPrimaryAudioSource.h | 72 - .../SmartDeviceLink/SDLPrimaryAudioSource.m | 92 - .../SDLPrioritizedObjectCollection.h | 27 - .../SDLPrioritizedObjectCollection.m | 66 - SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h | 21 - SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.m | 422 -- .../SmartDeviceLink/SDLProtocolHeader.h | 61 - .../SmartDeviceLink/SDLProtocolHeader.m | 60 - .../SmartDeviceLink/SDLProtocolListener.h | 23 - .../SmartDeviceLink/SDLProtocolMessage.h | 23 - .../SmartDeviceLink/SDLProtocolMessage.m | 99 - .../SmartDeviceLink/SDLProtocolMessageAssembler.h | 22 - .../SmartDeviceLink/SDLProtocolMessageAssembler.m | 94 - .../SDLProtocolMessageDisassembler.h | 13 - .../SDLProtocolMessageDisassembler.m | 89 - .../SDLProtocolReceivedMessageRouter.h | 15 - .../SDLProtocolReceivedMessageRouter.m | 116 - SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h | 62 - SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m | 758 ---- .../SmartDeviceLink/SDLProxyFactory.h | 19 - .../SmartDeviceLink/SDLProxyFactory.m | 37 - .../SmartDeviceLink/SDLProxyListener.h | 135 - SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.h | 80 - SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.m | 101 - .../SmartDeviceLink/SDLPutFileResponse.h | 24 - .../SmartDeviceLink/SDLPutFileResponse.m | 35 - .../SmartDeviceLink/SDLRPCMessage.h | 25 - .../SmartDeviceLink/SDLRPCMessage.m | 81 - .../SmartDeviceLink/SDLRPCMessageType.h | 10 - .../SmartDeviceLink/SDLRPCNotification.h | 13 - .../SmartDeviceLink/SDLRPCNotification.m | 35 - .../SmartDeviceLink/SDLRPCPayload.h | 21 - .../SmartDeviceLink/SDLRPCPayload.m | 121 - .../SmartDeviceLink/SDLRPCRequest.h | 12 - .../SmartDeviceLink/SDLRPCRequest.m | 23 - .../SmartDeviceLink/SDLRPCRequestFactory.h | 210 - .../SmartDeviceLink/SDLRPCRequestFactory.m | 689 ---- .../SmartDeviceLink/SDLRPCResponse.h | 17 - .../SmartDeviceLink/SDLRPCResponse.m | 89 - SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.h | 16 - SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m | 89 - SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDID.h | 52 - SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDID.m | 47 - .../SmartDeviceLink/SDLReadDIDResponse.h | 20 - .../SmartDeviceLink/SDLReadDIDResponse.m | 45 - .../SmartDeviceLink/SDLRegisterAppInterface.h | 217 - .../SmartDeviceLink/SDLRegisterAppInterface.m | 211 - .../SDLRegisterAppInterfaceResponse.h | 166 - .../SDLRegisterAppInterfaceResponse.m | 339 -- .../SmartDeviceLink/SDLRequestType.h | 34 - .../SmartDeviceLink/SDLRequestType.m | 210 - .../SmartDeviceLink/SDLResetGlobalProperties.h | 43 - .../SmartDeviceLink/SDLResetGlobalProperties.m | 45 - .../SDLResetGlobalPropertiesResponse.h | 26 - .../SDLResetGlobalPropertiesResponse.m | 23 - SmartDeviceLink-iOS/SmartDeviceLink/SDLResult.h | 204 - SmartDeviceLink-iOS/SmartDeviceLink/SDLResult.m | 327 -- .../SmartDeviceLink/SDLSamplingRate.h | 56 - .../SmartDeviceLink/SDLSamplingRate.m | 65 - .../SmartDeviceLink/SDLScreenParams.h | 19 - .../SmartDeviceLink/SDLScreenParams.m | 59 - .../SmartDeviceLink/SDLScrollableMessage.h | 56 - .../SmartDeviceLink/SDLScrollableMessage.m | 69 - .../SmartDeviceLink/SDLScrollableMessageResponse.h | 26 - .../SmartDeviceLink/SDLScrollableMessageResponse.m | 23 - .../SmartDeviceLink/SDLSendLocation.h | 65 - .../SmartDeviceLink/SDLSendLocation.m | 119 - .../SmartDeviceLink/SDLSendLocationResponse.h | 12 - .../SmartDeviceLink/SDLSendLocationResponse.m | 30 - .../SmartDeviceLink/SDLSetAppIcon.h | 35 - .../SmartDeviceLink/SDLSetAppIcon.m | 35 - .../SmartDeviceLink/SDLSetAppIconResponse.h | 16 - .../SmartDeviceLink/SDLSetAppIconResponse.m | 23 - .../SmartDeviceLink/SDLSetDisplayLayout.h | 35 - .../SmartDeviceLink/SDLSetDisplayLayout.m | 35 - .../SmartDeviceLink/SDLSetDisplayLayoutResponse.h | 29 - .../SmartDeviceLink/SDLSetDisplayLayoutResponse.m | 104 - .../SmartDeviceLink/SDLSetGlobalProperties.h | 96 - .../SmartDeviceLink/SDLSetGlobalProperties.m | 149 - .../SDLSetGlobalPropertiesResponse.h | 26 - .../SDLSetGlobalPropertiesResponse.m | 23 - .../SmartDeviceLink/SDLSetMediaClockTimer.h | 68 - .../SmartDeviceLink/SDLSetMediaClockTimer.m | 77 - .../SDLSetMediaClockTimerResponse.h | 28 - .../SDLSetMediaClockTimerResponse.m | 23 - SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.h | 233 -- SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.m | 195 - .../SmartDeviceLink/SDLShowConstantTBT.h | 33 - .../SmartDeviceLink/SDLShowConstantTBT.m | 177 - .../SmartDeviceLink/SDLShowConstantTBTResponse.h | 16 - .../SmartDeviceLink/SDLShowConstantTBTResponse.m | 23 - .../SmartDeviceLink/SDLShowResponse.h | 26 - .../SmartDeviceLink/SDLShowResponse.m | 23 - .../SmartDeviceLink/SDLSingleTireStatus.h | 33 - .../SmartDeviceLink/SDLSingleTireStatus.m | 41 - .../SmartDeviceLink/SDLSiphonServer.h | 20 - .../SmartDeviceLink/SDLSiphonServer.m | 452 --- SmartDeviceLink-iOS/SmartDeviceLink/SDLSlider.h | 75 - SmartDeviceLink-iOS/SmartDeviceLink/SDLSlider.m | 83 - .../SmartDeviceLink/SDLSliderResponse.h | 31 - .../SmartDeviceLink/SDLSliderResponse.m | 35 - .../SmartDeviceLink/SDLSoftButton.h | 24 - .../SmartDeviceLink/SDLSoftButton.m | 113 - .../SmartDeviceLink/SDLSoftButtonCapabilities.h | 60 - .../SmartDeviceLink/SDLSoftButtonCapabilities.m | 71 - .../SmartDeviceLink/SDLSoftButtonType.h | 41 - .../SmartDeviceLink/SDLSoftButtonType.m | 56 - SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeak.h | 64 - SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeak.m | 45 - .../SmartDeviceLink/SDLSpeakResponse.h | 26 - .../SmartDeviceLink/SDLSpeakResponse.m | 23 - .../SmartDeviceLink/SDLSpeechCapabilities.h | 46 - .../SmartDeviceLink/SDLSpeechCapabilities.m | 74 - SmartDeviceLink-iOS/SmartDeviceLink/SDLStartTime.h | 49 - SmartDeviceLink-iOS/SmartDeviceLink/SDLStartTime.m | 59 - .../SmartDeviceLink/SDLStreamDelegate.h | 22 - .../SmartDeviceLink/SDLStreamDelegate.m | 92 - .../SmartDeviceLink/SDLStreamingMediaManager.h | 91 - .../SmartDeviceLink/SDLStreamingMediaManager.m | 411 -- .../SmartDeviceLink/SDLSubscribeButton.h | 80 - .../SmartDeviceLink/SDLSubscribeButton.m | 42 - .../SmartDeviceLink/SDLSubscribeButtonResponse.h | 26 - .../SmartDeviceLink/SDLSubscribeButtonResponse.m | 23 - .../SmartDeviceLink/SDLSubscribeVehicleData.h | 139 - .../SmartDeviceLink/SDLSubscribeVehicleData.m | 311 -- .../SDLSubscribeVehicleDataResponse.h | 130 - .../SDLSubscribeVehicleDataResponse.m | 433 -- .../SmartDeviceLink/SDLSyncMsgVersion.h | 39 - .../SmartDeviceLink/SDLSyncMsgVersion.m | 50 - SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.h | 13 - SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.m | 23 - .../SmartDeviceLink/SDLSyncPDataResponse.h | 13 - .../SmartDeviceLink/SDLSyncPDataResponse.m | 23 - .../SmartDeviceLink/SDLSystemAction.h | 39 - .../SmartDeviceLink/SDLSystemAction.m | 56 - .../SmartDeviceLink/SDLSystemContext.h | 70 - .../SmartDeviceLink/SDLSystemContext.m | 74 - .../SmartDeviceLink/SDLSystemRequest.h | 23 - .../SmartDeviceLink/SDLSystemRequest.m | 54 - .../SmartDeviceLink/SDLSystemRequestResponse.h | 16 - .../SmartDeviceLink/SDLSystemRequestResponse.m | 23 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h | 24 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.m | 119 - .../SmartDeviceLink/SDLTCPTransport.h | 13 - .../SmartDeviceLink/SDLTCPTransport.m | 175 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.h | 69 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.m | 53 - .../SmartDeviceLink/SDLTTSChunkFactory.h | 16 - .../SmartDeviceLink/SDLTTSChunkFactory.m | 27 - .../SmartDeviceLink/SDLTextAlignment.h | 52 - .../SmartDeviceLink/SDLTextAlignment.m | 56 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.h | 106 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.m | 83 - .../SmartDeviceLink/SDLTextFieldName.h | 267 -- .../SmartDeviceLink/SDLTextFieldName.m | 281 -- SmartDeviceLink-iOS/SmartDeviceLink/SDLTimer.h | 19 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTimer.m | 79 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.h | 17 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.m | 56 - .../SmartDeviceLink/SDLTireStatus.h | 24 - .../SmartDeviceLink/SDLTireStatus.m | 144 - .../SmartDeviceLink/SDLTouchCoord.h | 16 - .../SmartDeviceLink/SDLTouchCoord.m | 47 - .../SmartDeviceLink/SDLTouchEvent.h | 40 - .../SmartDeviceLink/SDLTouchEvent.m | 69 - .../SmartDeviceLink/SDLTouchEventCapabilities.h | 17 - .../SmartDeviceLink/SDLTouchEventCapabilities.m | 59 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.h | 17 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.m | 56 - .../SmartDeviceLink/SDLTransportDelegate.h | 10 - .../SmartDeviceLink/SDLTriggerSource.h | 46 - .../SmartDeviceLink/SDLTriggerSource.m | 56 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.h | 18 - SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.m | 53 - .../SmartDeviceLink/SDLURLRequestTask.h | 46 - .../SmartDeviceLink/SDLURLRequestTask.m | 110 - .../SmartDeviceLink/SDLURLSession.h | 57 - .../SmartDeviceLink/SDLURLSession.m | 102 - .../SmartDeviceLink/SDLUnregisterAppInterface.h | 36 - .../SmartDeviceLink/SDLUnregisterAppInterface.m | 23 - .../SDLUnregisterAppInterfaceResponse.h | 26 - .../SDLUnregisterAppInterfaceResponse.m | 23 - .../SmartDeviceLink/SDLUnsubscribeButton.h | 43 - .../SmartDeviceLink/SDLUnsubscribeButton.m | 42 - .../SmartDeviceLink/SDLUnsubscribeButtonResponse.h | 26 - .../SmartDeviceLink/SDLUnsubscribeButtonResponse.m | 23 - .../SmartDeviceLink/SDLUnsubscribeVehicleData.h | 130 - .../SmartDeviceLink/SDLUnsubscribeVehicleData.m | 311 -- .../SDLUnsubscribeVehicleDataResponse.h | 129 - .../SDLUnsubscribeVehicleDataResponse.m | 433 -- .../SmartDeviceLink/SDLUpdateMode.h | 57 - .../SmartDeviceLink/SDLUpdateMode.m | 74 - .../SmartDeviceLink/SDLUpdateTurnList.h | 28 - .../SmartDeviceLink/SDLUpdateTurnList.m | 67 - .../SmartDeviceLink/SDLUpdateTurnListResponse.h | 16 - .../SmartDeviceLink/SDLUpdateTurnListResponse.m | 23 - .../SmartDeviceLink/SDLV1ProtocolHeader.h | 14 - .../SmartDeviceLink/SDLV1ProtocolHeader.m | 84 - .../SmartDeviceLink/SDLV1ProtocolMessage.h | 14 - .../SmartDeviceLink/SDLV1ProtocolMessage.m | 24 - .../SmartDeviceLink/SDLV2ProtocolHeader.h | 17 - .../SmartDeviceLink/SDLV2ProtocolHeader.m | 124 - .../SmartDeviceLink/SDLV2ProtocolMessage.h | 15 - .../SmartDeviceLink/SDLV2ProtocolMessage.m | 60 - .../SmartDeviceLink/SDLVehicleDataActiveStatus.h | 46 - .../SmartDeviceLink/SDLVehicleDataActiveStatus.m | 74 - .../SmartDeviceLink/SDLVehicleDataEventStatus.h | 58 - .../SmartDeviceLink/SDLVehicleDataEventStatus.m | 74 - .../SDLVehicleDataNotificationStatus.h | 48 - .../SDLVehicleDataNotificationStatus.m | 65 - .../SmartDeviceLink/SDLVehicleDataResult.h | 19 - .../SmartDeviceLink/SDLVehicleDataResult.m | 59 - .../SmartDeviceLink/SDLVehicleDataResultCode.h | 71 - .../SmartDeviceLink/SDLVehicleDataResultCode.m | 110 - .../SmartDeviceLink/SDLVehicleDataStatus.h | 44 - .../SmartDeviceLink/SDLVehicleDataStatus.m | 56 - .../SmartDeviceLink/SDLVehicleDataType.h | 159 - .../SmartDeviceLink/SDLVehicleDataType.m | 263 -- .../SmartDeviceLink/SDLVehicleType.h | 62 - .../SmartDeviceLink/SDLVehicleType.m | 71 - .../SmartDeviceLink/SDLVrCapabilities.h | 34 - .../SmartDeviceLink/SDLVrCapabilities.m | 42 - .../SmartDeviceLink/SDLVrHelpItem.h | 19 - .../SmartDeviceLink/SDLVrHelpItem.m | 65 - .../SmartDeviceLink/SDLWarningLightStatus.h | 52 - .../SmartDeviceLink/SDLWarningLightStatus.m | 65 - .../SmartDeviceLink/SDLWiperStatus.h | 101 - .../SmartDeviceLink/SDLWiperStatus.m | 164 - .../SmartDeviceLink/SmartDeviceLink.h | 275 -- .../SmartDeviceLinkTests/Info.plist | 24 - .../HeaderSpecs/SDLProtocolHeaderSpec.m | 29 - .../HeaderSpecs/SDLV1ProtocolHeaderSpec.m | 89 - .../HeaderSpecs/SDLV2ProtocolHeaderSpec.m | 93 - .../MessageSpecs/SDLProtocolMessageSpec.m | 72 - .../ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m | 511 --- .../MessageSpecs/SDLV1ProtocolMessageSpec.m | 32 - .../MessageSpecs/SDLV2ProtocolMessageSpec.m | 57 - .../ProtocolSpecs/SDLAbstractProtocolSpec.m | 57 - .../ProtocolSpecs/SDLFunctionIDSpec.m | 152 - .../SDLProtocolMessageAssemblerSpec.m | 100 - .../SDLProtocolMessageDisassemblerSpec.m | 95 - .../SDLProtocolReceivedMessageRouterSpec.m | 176 - .../ProxySpecs/SDLLockScreenManagerSpec.m | 235 -- .../RPCSpecs/EnumSpecs/SDLAmbientLightStatusSpec.m | 71 - .../RPCSpecs/EnumSpecs/SDLAppHMITypeSpec.m | 77 - .../SDLAppInterfaceUnregisteredReasonSpec.m | 85 - .../EnumSpecs/SDLAudioStreamingStateSpec.m | 56 - .../RPCSpecs/EnumSpecs/SDLAudioTypeSpec.m | 50 - .../RPCSpecs/EnumSpecs/SDLBitsPerSampleSpec.m | 53 - .../RPCSpecs/EnumSpecs/SDLButtonEventModeSpec.m | 53 - .../RPCSpecs/EnumSpecs/SDLButtonNameSpec.m | 98 - .../RPCSpecs/EnumSpecs/SDLButtonPressModeSpec.m | 53 - .../RPCSpecs/EnumSpecs/SDLCarModeStatusSpec.m | 60 - .../RPCSpecs/EnumSpecs/SDLCharacterSetSpec.m | 59 - .../RPCSpecs/EnumSpecs/SDLCompassDirectionSpec.m | 71 - .../EnumSpecs/SDLComponentVolumeStatusSpec.m | 65 - .../RPCSpecs/EnumSpecs/SDLDeviceLevelStatusSpec.m | 65 - .../RPCSpecs/EnumSpecs/SDLDimensionSpec.m | 56 - .../RPCSpecs/EnumSpecs/SDLDisplayTypeSpec.m | 80 - .../EnumSpecs/SDLDriverDistractionStateSpec.m | 53 - .../EnumSpecs/SDLECallConfirmationStatusSpec.m | 68 - .../RPCSpecs/EnumSpecs/SDLEmergencyEventTypeSpec.m | 68 - .../RPCSpecs/EnumSpecs/SDLFileTypeSpec.m | 71 - .../RPCSpecs/EnumSpecs/SDLFuelCutoffStatusSpec.m | 56 - .../RPCSpecs/EnumSpecs/SDLGlobalProperySpec.m | 68 - .../RPCSpecs/EnumSpecs/SDLHMILevelSpec.m | 59 - .../EnumSpecs/SDLHMIZoneCapabilitiesSpec.m | 53 - .../EnumSpecs/SDLIgnitionStableStatusSpec.m | 56 - .../RPCSpecs/EnumSpecs/SDLIgnitionStatusSpec.m | 65 - .../RPCSpecs/EnumSpecs/SDLImageFieldNameSpec.m | 86 - .../RPCSpecs/EnumSpecs/SDLImageTypeSpec.m | 53 - .../RPCSpecs/EnumSpecs/SDLInteractionModeSpec.m | 56 - .../RPCSpecs/EnumSpecs/SDLKeyboardEventSpec.m | 64 - .../RPCSpecs/EnumSpecs/SDLKeyboardLayoutSpec.m | 56 - .../RPCSpecs/EnumSpecs/SDLKeypressModeSpec.m | 56 - .../RPCSpecs/EnumSpecs/SDLLanguageSpec.m | 119 - .../RPCSpecs/EnumSpecs/SDLLayoutModeSpec.m | 62 - .../RPCSpecs/EnumSpecs/SDLLockScreenStatusSpec.m | 56 - .../EnumSpecs/SDLMaintenanceModeStatusSpec.m | 59 - .../RPCSpecs/EnumSpecs/SDLMediaClockFormatSpec.m | 68 - .../RPCSpecs/EnumSpecs/SDLPRNDLSpec.m | 95 - .../RPCSpecs/EnumSpecs/SDLPermissionStatusSpec.m | 59 - .../SDLPowerModeQualificationStatusSpec.m | 59 - .../RPCSpecs/EnumSpecs/SDLPowerModeStatusSpec.m | 74 - .../RPCSpecs/EnumSpecs/SDLPredefinedLayoutSpec.m | 107 - .../RPCSpecs/EnumSpecs/SDLPrerecordedSpeechSpec.m | 62 - .../RPCSpecs/EnumSpecs/SDLPrimaryAudioSource.m | 68 - .../RPCSpecs/EnumSpecs/SDLRequestTypeSpec.m | 108 - .../RPCSpecs/EnumSpecs/SDLResultSpec.m | 145 - .../RPCSpecs/EnumSpecs/SDLSamplingRateSpec.m | 59 - .../RPCSpecs/EnumSpecs/SDLSoftButtonTypeSpec.m | 56 - .../RPCSpecs/EnumSpecs/SDLSpeechCapabilitiesSpec.m | 62 - .../RPCSpecs/EnumSpecs/SDLSystemAction.m | 56 - .../RPCSpecs/EnumSpecs/SDLSystemContextSpec.m | 62 - .../RPCSpecs/EnumSpecs/SDLTBTStateSpec.m | 77 - .../RPCSpecs/EnumSpecs/SDLTextAlignmentSpec.m | 56 - .../RPCSpecs/EnumSpecs/SDLTextFieldNameSpec.m | 133 - .../RPCSpecs/EnumSpecs/SDLTimerModeSpec.m | 56 - .../RPCSpecs/EnumSpecs/SDLTouchTypeSpec.m | 56 - .../RPCSpecs/EnumSpecs/SDLTriggerSource.m | 56 - .../RPCSpecs/EnumSpecs/SDLUpdateModeSpec.m | 62 - .../EnumSpecs/SDLVehicleDataActiveStatusSpec.m | 62 - .../EnumSpecs/SDLVehicleDataEventStatusSpec.m | 62 - .../SDLVehicleDataNotificationStatusSpec.m | 60 - .../EnumSpecs/SDLVehicleDataResultCodeSpec.m | 74 - .../RPCSpecs/EnumSpecs/SDLVehicleDataStatusSpec.m | 56 - .../RPCSpecs/EnumSpecs/SDLVehicleDataTypeSpec.m | 125 - .../RPCSpecs/EnumSpecs/SDLVrCapabilitiesSpec.m | 50 - .../RPCSpecs/EnumSpecs/SDLWarningLightStatusSpec.m | 60 - .../RPCSpecs/EnumSpecs/SDLWiperStatusSpec.m | 92 - .../FactorySpecs/SDLRPCRequestFactorySpec.m | 986 ----- .../SDLOnAppInterfaceUnregisteredSpec.m | 43 - .../NotificationSpecs/SDLOnAudioPassThruSpec.m | 16 - .../NotificationSpecs/SDLOnButtonEventSpec.m | 55 - .../NotificationSpecs/SDLOnButtonPressSpec.m | 55 - .../RPCSpecs/NotificationSpecs/SDLOnCommandSpec.m | 48 - .../NotificationSpecs/SDLOnDriverDistractionSpec.m | 43 - .../NotificationSpecs/SDLOnEncodedSyncPDataSpec.m | 52 - .../NotificationSpecs/SDLOnHMIStatusSpec.m | 56 - .../NotificationSpecs/SDLOnHashChangeSpec.m | 42 - .../NotificationSpecs/SDLOnKeyboardInputSpec.m | 48 - .../NotificationSpecs/SDLOnLanguageChangeSpec.m | 49 - .../NotificationSpecs/SDLOnLockScreenStatusSpec.m | 59 - .../NotificationSpecs/SDLOnPermissionsChangeSpec.m | 45 - .../NotificationSpecs/SDLOnSyncPDataSpec.m | 47 - .../NotificationSpecs/SDLOnSystemRequestSpec.m | 70 - .../NotificationSpecs/SDLOnTBTClientStateSpec.m | 44 - .../NotificationSpecs/SDLOnTouchEventSpec.m | 52 - .../NotificationSpecs/SDLOnVehicleDataSpec.m | 175 - .../RPCSpecs/PayloadSpecs/SDLRPCPayloadSpec.m | 75 - .../RPCSpecs/RequestSpecs/SDLAddCommandSpec.m | 62 - .../RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m | 52 - .../RPCSpecs/RequestSpecs/SDLAlertManeuverSpec.m | 52 - .../RPCSpecs/RequestSpecs/SDLAlertSpec.m | 82 - .../RequestSpecs/SDLChangeRegistrationSpec.m | 186 - .../SDLCreateInteractionChoiceSetSpec.m | 50 - .../RPCSpecs/RequestSpecs/SDLDeleteCommandSpec.m | 42 - .../RPCSpecs/RequestSpecs/SDLDeleteFileSpec.m | 42 - .../SDLDeleteInteractionChoiceSetSpec.m | 42 - .../RPCSpecs/RequestSpecs/SDLDeleteSubMenuSpec.m | 42 - .../RequestSpecs/SDLDiagnosticMessageSpec.m | 52 - .../RPCSpecs/RequestSpecs/SDLDialNumberSpec.m | 80 - .../RequestSpecs/SDLEncodedSyncPDataSpec.m | 42 - .../RequestSpecs/SDLEndAudioPassThruSpec.m | 16 - .../RPCSpecs/RequestSpecs/SDLGetDTCsSpec.m | 47 - .../RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m | 162 - .../RPCSpecs/RequestSpecs/SDLListFilesSpec.m | 16 - .../RequestSpecs/SDLPerformAudioPassThruSpec.m | 76 - .../RequestSpecs/SDLPerformInteractionSpec.m | 91 - .../RPCSpecs/RequestSpecs/SDLPutFileSpec.m | 69 - .../RPCSpecs/RequestSpecs/SDLReadDIDSpec.m | 47 - .../RequestSpecs/SDLRegisterAppInterfaceSpec.m | 107 - .../RequestSpecs/SDLResetGlobalPropertiesSpec.m | 43 - .../RequestSpecs/SDLScrollableMessageSpec.m | 55 - .../RPCSpecs/RequestSpecs/SDLSendLocationSpec.m | 222 - .../RPCSpecs/RequestSpecs/SDLSetAppIconSpec.m | 42 - .../RequestSpecs/SDLSetDisplayLayoutSpec.m | 42 - .../RequestSpecs/SDLSetGlobalPropertiesSpec.m | 83 - .../RequestSpecs/SDLSetMediaClockTimerSpec.m | 58 - .../RPCSpecs/RequestSpecs/SDLShowConstantTBTSpec.m | 99 - .../RPCSpecs/RequestSpecs/SDLShowSpec.m | 105 - .../RPCSpecs/RequestSpecs/SDLSliderSpec.m | 62 - .../RPCSpecs/RequestSpecs/SDLSpeakSpec.m | 45 - .../RPCSpecs/RequestSpecs/SDLSubscribeButtonSpec.m | 44 - .../RequestSpecs/SDLSubscribeVehicleDataSpec.m | 157 - .../RPCSpecs/RequestSpecs/SDLSyncPDataSpec.m | 16 - .../RPCSpecs/RequestSpecs/SDLSystemRequestSpec.m | 48 - .../RequestSpecs/SDLUnregisterAppInterfaceSpec.m | 16 - .../RequestSpecs/SDLUnsubscribeButtonSpec.m | 44 - .../RequestSpecs/SDLUnsubscribeVehicleDataSpec.m | 157 - .../RPCSpecs/RequestSpecs/SDLUpdateTurnListSpec.m | 52 - .../ResponseSpecs/SDLAddCommandResponseSpec.m | 16 - .../ResponseSpecs/SDLAddSubMenuResponseSpec.m | 16 - .../ResponseSpecs/SDLAlertManeuverResponseSpec.m | 16 - .../RPCSpecs/ResponseSpecs/SDLAlertResponseSpec.m | 16 - .../SDLChangeRegistrationResponseSpec.m | 16 - .../SDLCreateInteractionChoiceSetResponseSpec.m | 16 - .../ResponseSpecs/SDLDeleteCommandResponseSpec.m | 16 - .../ResponseSpecs/SDLDeleteFileResponseSpec.m | 42 - .../SDLDeleteInteractionChoiceSetResponseSpec.m | 16 - .../ResponseSpecs/SDLDeleteSubMenuResponseSpec.m | 16 - .../SDLDiagnosticMessageResponseSpec.m | 42 - .../ResponseSpecs/SDLDialNumberResponseSpec.m | 10 - .../SDLEncodedSyncPDataResponseSpec.m | 16 - .../SDLEndAudioPassThruResponseSpec.m | 16 - .../ResponseSpecs/SDLGenericResponseSpec.m | 16 - .../ResponseSpecs/SDLGetDTCsResponseSpec.m | 47 - .../ResponseSpecs/SDLGetVehicleDataResponseSpec.m | 175 - .../ResponseSpecs/SDLListFilesResponseSpec.m | 47 - .../SDLPerformAudioPassThruResponseSpec.m | 16 - .../SDLPerformInteractionResponseSpec.m | 54 - .../ResponseSpecs/SDLPutFileResponseSpec.m | 42 - .../ResponseSpecs/SDLReadDIDResponseSpec.m | 45 - .../SDLRegisterAppInterfaceResponseSpec.m | 133 - .../SDLResetGlobalPropertiesResponseSpec.m | 16 - .../SDLScrollableMessageResponseSpec.m | 16 - .../ResponseSpecs/SDLSendLocationResponseSpec.m | 12 - .../ResponseSpecs/SDLSetAppIconResponseSpec.m | 16 - .../SDLSetDisplayLayoutResponseSpec.m | 67 - .../SDLSetGlobalPropertiesResponseSpec.m | 16 - .../SDLSetMediaClockTimerResponseSpec.m | 16 - .../ResponseSpecs/SDLShowConstantTBTResponseSpec.m | 16 - .../RPCSpecs/ResponseSpecs/SDLShowResponseSpec.m | 16 - .../RPCSpecs/ResponseSpecs/SDLSliderResponseSpec.m | 43 - .../RPCSpecs/ResponseSpecs/SDLSpeakResponseSpec.m | 16 - .../ResponseSpecs/SDLSubscribeButtonResponseSpec.m | 16 - .../SDLSubscribeVehicleDataResponseSpec.m | 161 - .../ResponseSpecs/SDLSyncPDataResponseSpec.m | 16 - .../ResponseSpecs/SDLSystemRequestResponseSpec.m | 16 - .../SDLUnregisterAppInterfaceResponseSpec.m | 16 - .../SDLUnsubscribeButtonResponseSpec.m | 16 - .../SDLUnsubscribeVehicleDataResponseSpec.m | 161 - .../ResponseSpecs/SDLUpdateTurnListResponseSpec.m | 16 - .../RPCSpecs/StructSpecs/SDLAirbagStatusSpec.m | 76 - .../StructSpecs/SDLAudioPassThruCapabilitiesSpec.m | 53 - .../RPCSpecs/StructSpecs/SDLBeltStatusSpec.m | 111 - .../RPCSpecs/StructSpecs/SDLBodyInformationSpec.m | 71 - .../StructSpecs/SDLButtonCapabilitiesSpec.m | 56 - .../RPCSpecs/StructSpecs/SDLChoiceSpec.m | 74 - .../StructSpecs/SDLClusterModeStatusSpec.m | 57 - .../RPCSpecs/StructSpecs/SDLDIDResult.m | 51 - .../RPCSpecs/StructSpecs/SDLDeviceInfoSpec.m | 64 - .../RPCSpecs/StructSpecs/SDLDeviceStatusSpec.m | 92 - .../StructSpecs/SDLDisplayCapabilitiesSpec.m | 84 - .../RPCSpecs/StructSpecs/SDLECallInfoSpec.m | 52 - .../RPCSpecs/StructSpecs/SDLEmergencyEventSpec.m | 63 - .../RPCSpecs/StructSpecs/SDLGPSDataSpec.m | 127 - .../RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m | 69 - .../RPCSpecs/StructSpecs/SDLHMIPermissionsSpec.m | 45 - .../RPCSpecs/StructSpecs/SDLHeadLampStatusSpec.m | 51 - .../RPCSpecs/StructSpecs/SDLImageFieldSpec.m | 55 - .../RPCSpecs/StructSpecs/SDLImageSpec.m | 46 - .../StructSpecs/SDLKeyboardPropertiesSpec.m | 63 - .../RPCSpecs/StructSpecs/SDLMenuParamsSpec.m | 49 - .../RPCSpecs/StructSpecs/SDLMyKeySpec.m | 41 - .../StructSpecs/SDLParameterPermissionsSpec.m | 45 - .../RPCSpecs/StructSpecs/SDLPermissionItemSpec.m | 54 - .../StructSpecs/SDLPresetBankCapabilitiesSpec.m | 39 - .../RPCSpecs/StructSpecs/SDLScreenParamsSpec.m | 50 - .../RPCSpecs/StructSpecs/SDLSingleTireStatusSpec.m | 40 - .../StructSpecs/SDLSoftButtonCapabilitiesSpec.m | 54 - .../RPCSpecs/StructSpecs/SDLSoftButtonSpec.m | 70 - .../RPCSpecs/StructSpecs/SDLStartTimeSpec.m | 49 - .../RPCSpecs/StructSpecs/SDLSyncMsgVersionSpec.m | 44 - .../RPCSpecs/StructSpecs/SDLTTSChunkSpec.m | 46 - .../RPCSpecs/StructSpecs/SDLTextFieldSpec.m | 57 - .../RPCSpecs/StructSpecs/SDLTireStatusSpec.m | 78 - .../RPCSpecs/StructSpecs/SDLTouchCoordSpec.m | 44 - .../StructSpecs/SDLTouchEventCapabilitiesSpec.m | 49 - .../RPCSpecs/StructSpecs/SDLTouchEventSpec.m | 52 - .../RPCSpecs/StructSpecs/SDLTurnSpec.m | 47 - .../StructSpecs/SDLVehicleDataResultSpec.m | 46 - .../RPCSpecs/StructSpecs/SDLVehicleTypeSpec.m | 54 - .../RPCSpecs/StructSpecs/SDLVrHelpItemSpec.m | 53 - .../RPCSpecs/SuperclassSpecs/SDLEnumSpec.m | 25 - .../RPCSpecs/SuperclassSpecs/SDLRPCMessageSpec.m | 115 - .../SuperclassSpecs/SDLRPCNotificationSpec.m | 15 - .../RPCSpecs/SuperclassSpecs/SDLRPCRequestSpec.m | 25 - .../RPCSpecs/SuperclassSpecs/SDLRPCResponseSpec.m | 33 - .../RPCSpecs/SuperclassSpecs/SDLRPCStructSpec.m | 24 - .../SmartDeviceLinkTests/SwiftSpec.swift | 5 - .../HTTP Connection/SDLURLRequestTaskSpec.m | 140 - .../HTTP Connection/SDLURLSessionSpec.m | 191 - .../SDLObjectWithPrioritySpec.m | 54 - .../SDLPrioritizedObjectCollectionSpec.m | 89 - .../UtilitiesSpecs/SDLGlobalsSpec.m | 85 - .../UtilitiesSpecs/SDLHexUtilitySpec.m | 36 - .../UtilitiesSpecs/SDLJingleSpec.m | 24 - .../ConnectionIAPTableViewController.storyboard | 61 - .../ConnectionTCPTableViewController.storyboard | 130 - .../Base.lproj/LaunchScreen.xib | 32 - .../Base.lproj/Main.storyboard | 62 - .../SmartDeviceLink_Example/Classes/AppDelegate.h | 13 - .../SmartDeviceLink_Example/Classes/AppDelegate.m | 45 - .../Classes/ConnectionAnimatedTransition.h | 12 - .../Classes/ConnectionAnimatedTransition.m | 43 - .../Classes/ConnectionContainerViewController.h | 9 - .../Classes/ConnectionContainerViewController.m | 121 - .../Classes/ConnectionIAPTableViewController.h | 9 - .../Classes/ConnectionIAPTableViewController.m | 92 - .../Classes/ConnectionTCPTableViewController.h | 9 - .../Classes/ConnectionTCPTableViewController.m | 123 - .../Classes/ConnectionTransitionContext.h | 25 - .../Classes/ConnectionTransitionContext.m | 109 - .../SmartDeviceLink_Example/Classes/Preferences.h | 27 - .../SmartDeviceLink_Example/Classes/Preferences.m | 112 - .../SmartDeviceLink_Example/Classes/ProxyManager.h | 34 - .../SmartDeviceLink_Example/Classes/ProxyManager.m | 148 - .../SmartDeviceLink_Example/Classes/main.m | 12 - .../AppIcon.appiconset/Contents.json | 38 - .../SmartDeviceLink_Example/Info.plist | 91 - SmartDeviceLink/EAAccessory+SDLProtocols.h | 11 + SmartDeviceLink/EAAccessory+SDLProtocols.m | 19 + SmartDeviceLink/EAAccessoryManager+SDLProtocols.h | 11 + SmartDeviceLink/EAAccessoryManager+SDLProtocols.m | 20 + SmartDeviceLink/Info.plist | 26 + SmartDeviceLink/NSThread+ThreadIndex.h | 9 + SmartDeviceLink/NSThread+ThreadIndex.m | 23 + SmartDeviceLink/SDLAbstractProtocol.h | 31 + SmartDeviceLink/SDLAbstractProtocol.m | 77 + SmartDeviceLink/SDLAbstractTransport.h | 18 + SmartDeviceLink/SDLAbstractTransport.m | 34 + SmartDeviceLink/SDLAddCommand.h | 92 + SmartDeviceLink/SDLAddCommand.m | 84 + SmartDeviceLink/SDLAddCommandResponse.h | 18 + SmartDeviceLink/SDLAddCommandResponse.m | 21 + SmartDeviceLink/SDLAddSubMenu.h | 66 + SmartDeviceLink/SDLAddSubMenu.m | 57 + SmartDeviceLink/SDLAddSubMenuResponse.h | 16 + SmartDeviceLink/SDLAddSubMenuResponse.m | 21 + SmartDeviceLink/SDLAirbagStatus.h | 24 + SmartDeviceLink/SDLAirbagStatus.m | 159 + SmartDeviceLink/SDLAlert.h | 144 + SmartDeviceLink/SDLAlert.m | 137 + SmartDeviceLink/SDLAlertManeuver.h | 19 + SmartDeviceLink/SDLAlertManeuver.m | 67 + SmartDeviceLink/SDLAlertManeuverResponse.h | 16 + SmartDeviceLink/SDLAlertManeuverResponse.m | 22 + SmartDeviceLink/SDLAlertResponse.h | 19 + SmartDeviceLink/SDLAlertResponse.m | 34 + SmartDeviceLink/SDLAmbientLightStatus.h | 26 + SmartDeviceLink/SDLAmbientLightStatus.m | 100 + SmartDeviceLink/SDLAppHMIType.h | 96 + SmartDeviceLink/SDLAppHMIType.m | 119 + .../SDLAppInterfaceUnregisteredReason.h | 103 + .../SDLAppInterfaceUnregisteredReason.m | 118 + SmartDeviceLink/SDLAudioPassThruCapabilities.h | 74 + SmartDeviceLink/SDLAudioPassThruCapabilities.m | 78 + SmartDeviceLink/SDLAudioStreamingState.h | 52 + SmartDeviceLink/SDLAudioStreamingState.m | 56 + SmartDeviceLink/SDLAudioType.h | 38 + SmartDeviceLink/SDLAudioType.m | 37 + SmartDeviceLink/SDLBeltStatus.h | 31 + SmartDeviceLink/SDLBeltStatus.m | 279 ++ SmartDeviceLink/SDLBitsPerSample.h | 45 + SmartDeviceLink/SDLBitsPerSample.m | 47 + SmartDeviceLink/SDLBodyInformation.h | 63 + SmartDeviceLink/SDLBodyInformation.m | 120 + SmartDeviceLink/SDLButtonCapabilities.h | 54 + SmartDeviceLink/SDLButtonCapabilities.m | 77 + SmartDeviceLink/SDLButtonEventMode.h | 40 + SmartDeviceLink/SDLButtonEventMode.m | 47 + SmartDeviceLink/SDLButtonName.h | 152 + SmartDeviceLink/SDLButtonName.m | 182 + SmartDeviceLink/SDLButtonPressMode.h | 45 + SmartDeviceLink/SDLButtonPressMode.m | 47 + SmartDeviceLink/SDLCarModeStatus.h | 32 + SmartDeviceLink/SDLCarModeStatus.m | 65 + SmartDeviceLink/SDLChangeRegistration.h | 70 + SmartDeviceLink/SDLChangeRegistration.m | 106 + SmartDeviceLink/SDLChangeRegistrationResponse.h | 18 + SmartDeviceLink/SDLChangeRegistrationResponse.m | 23 + SmartDeviceLink/SDLCharacterSet.h | 39 + SmartDeviceLink/SDLCharacterSet.m | 65 + SmartDeviceLink/SDLChoice.h | 116 + SmartDeviceLink/SDLChoice.m | 118 + SmartDeviceLink/SDLClusterModeStatus.h | 22 + SmartDeviceLink/SDLClusterModeStatus.m | 89 + SmartDeviceLink/SDLCompassDirection.h | 76 + SmartDeviceLink/SDLCompassDirection.m | 101 + SmartDeviceLink/SDLComponentVolumeStatus.h | 64 + SmartDeviceLink/SDLComponentVolumeStatus.m | 83 + SmartDeviceLink/SDLConsoleController.h | 21 + SmartDeviceLink/SDLConsoleController.m | 201 + SmartDeviceLink/SDLCreateInteractionChoiceSet.h | 49 + SmartDeviceLink/SDLCreateInteractionChoiceSet.m | 57 + .../SDLCreateInteractionChoiceSetResponse.h | 19 + .../SDLCreateInteractionChoiceSetResponse.m | 23 + SmartDeviceLink/SDLDIDResult.h | 19 + SmartDeviceLink/SDLDIDResult.m | 65 + SmartDeviceLink/SDLDebugTool.h | 48 + SmartDeviceLink/SDLDebugTool.m | 258 ++ SmartDeviceLink/SDLDebugToolConsole.h | 12 + SmartDeviceLink/SDLDecoder.h | 11 + SmartDeviceLink/SDLDeleteCommand.h | 43 + SmartDeviceLink/SDLDeleteCommand.m | 35 + SmartDeviceLink/SDLDeleteCommandResponse.h | 18 + SmartDeviceLink/SDLDeleteCommandResponse.m | 23 + SmartDeviceLink/SDLDeleteFile.h | 36 + SmartDeviceLink/SDLDeleteFile.m | 35 + SmartDeviceLink/SDLDeleteFileResponse.h | 20 + SmartDeviceLink/SDLDeleteFileResponse.m | 35 + SmartDeviceLink/SDLDeleteInteractionChoiceSet.h | 45 + SmartDeviceLink/SDLDeleteInteractionChoiceSet.m | 35 + .../SDLDeleteInteractionChoiceSetResponse.h | 18 + .../SDLDeleteInteractionChoiceSetResponse.m | 23 + SmartDeviceLink/SDLDeleteSubMenu.h | 38 + SmartDeviceLink/SDLDeleteSubMenu.m | 35 + SmartDeviceLink/SDLDeleteSubMenuResponse.h | 18 + SmartDeviceLink/SDLDeleteSubMenuResponse.m | 23 + SmartDeviceLink/SDLDeviceInfo.h | 20 + SmartDeviceLink/SDLDeviceInfo.m | 95 + SmartDeviceLink/SDLDeviceLevelStatus.h | 64 + SmartDeviceLink/SDLDeviceLevelStatus.m | 83 + SmartDeviceLink/SDLDeviceStatus.h | 199 + SmartDeviceLink/SDLDeviceStatus.m | 172 + SmartDeviceLink/SDLDiagnosticMessage.h | 39 + SmartDeviceLink/SDLDiagnosticMessage.m | 59 + SmartDeviceLink/SDLDiagnosticMessageResponse.h | 18 + SmartDeviceLink/SDLDiagnosticMessageResponse.m | 34 + SmartDeviceLink/SDLDialNumber.h | 22 + SmartDeviceLink/SDLDialNumber.m | 35 + SmartDeviceLink/SDLDialNumberResponse.h | 17 + SmartDeviceLink/SDLDialNumberResponse.m | 24 + SmartDeviceLink/SDLDimension.h | 51 + SmartDeviceLink/SDLDimension.m | 56 + SmartDeviceLink/SDLDisplayCapabilities.h | 100 + SmartDeviceLink/SDLDisplayCapabilities.m | 161 + SmartDeviceLink/SDLDisplayType.h | 61 + SmartDeviceLink/SDLDisplayType.m | 119 + SmartDeviceLink/SDLDriverDistractionState.h | 45 + SmartDeviceLink/SDLDriverDistractionState.m | 47 + SmartDeviceLink/SDLECallConfirmationStatus.h | 52 + SmartDeviceLink/SDLECallConfirmationStatus.m | 92 + SmartDeviceLink/SDLECallInfo.h | 20 + SmartDeviceLink/SDLECallInfo.m | 76 + SmartDeviceLink/SDLEmergencyEvent.h | 23 + SmartDeviceLink/SDLEmergencyEvent.m | 106 + SmartDeviceLink/SDLEmergencyEventType.h | 53 + SmartDeviceLink/SDLEmergencyEventType.m | 92 + SmartDeviceLink/SDLEncodedSyncPData.h | 15 + SmartDeviceLink/SDLEncodedSyncPData.m | 35 + SmartDeviceLink/SDLEncodedSyncPDataResponse.h | 13 + SmartDeviceLink/SDLEncodedSyncPDataResponse.m | 23 + SmartDeviceLink/SDLEncoder.h | 11 + SmartDeviceLink/SDLEndAudioPassThru.h | 33 + SmartDeviceLink/SDLEndAudioPassThru.m | 23 + SmartDeviceLink/SDLEndAudioPassThruResponse.h | 18 + SmartDeviceLink/SDLEndAudioPassThruResponse.m | 23 + SmartDeviceLink/SDLEnum.h | 18 + SmartDeviceLink/SDLEnum.m | 52 + SmartDeviceLink/SDLFileType.h | 87 + SmartDeviceLink/SDLFileType.m | 101 + SmartDeviceLink/SDLFuelCutoffStatus.h | 50 + SmartDeviceLink/SDLFuelCutoffStatus.m | 56 + SmartDeviceLink/SDLFunctionID.h | 15 + SmartDeviceLink/SDLFunctionID.m | 40 + SmartDeviceLink/SDLGPSData.h | 163 + SmartDeviceLink/SDLGPSData.m | 251 ++ SmartDeviceLink/SDLGenericResponse.h | 18 + SmartDeviceLink/SDLGenericResponse.m | 23 + SmartDeviceLink/SDLGetDTCs.h | 41 + SmartDeviceLink/SDLGetDTCs.m | 47 + SmartDeviceLink/SDLGetDTCsResponse.h | 21 + SmartDeviceLink/SDLGetDTCsResponse.m | 47 + SmartDeviceLink/SDLGetVehicleData.h | 140 + SmartDeviceLink/SDLGetVehicleData.m | 323 ++ SmartDeviceLink/SDLGetVehicleDataResponse.h | 150 + SmartDeviceLink/SDLGetVehicleDataResponse.m | 414 ++ SmartDeviceLink/SDLGlobalProperty.h | 50 + SmartDeviceLink/SDLGlobalProperty.m | 92 + SmartDeviceLink/SDLGlobals.h | 21 + SmartDeviceLink/SDLGlobals.m | 77 + SmartDeviceLink/SDLHMICapabilities.h | 26 + SmartDeviceLink/SDLHMICapabilities.m | 54 + SmartDeviceLink/SDLHMILevel.h | 76 + SmartDeviceLink/SDLHMILevel.m | 65 + SmartDeviceLink/SDLHMIPermissions.h | 44 + SmartDeviceLink/SDLHMIPermissions.m | 66 + SmartDeviceLink/SDLHMIZoneCapabilities.h | 39 + SmartDeviceLink/SDLHMIZoneCapabilities.m | 47 + SmartDeviceLink/SDLHeadLampStatus.h | 33 + SmartDeviceLink/SDLHeadLampStatus.m | 65 + SmartDeviceLink/SDLHexUtility.h | 13 + SmartDeviceLink/SDLHexUtility.m | 60 + SmartDeviceLink/SDLIAPSession.h | 27 + SmartDeviceLink/SDLIAPSession.m | 156 + SmartDeviceLink/SDLIAPSessionDelegate.h | 13 + SmartDeviceLink/SDLIAPTransport.h | 15 + SmartDeviceLink/SDLIAPTransport.m | 477 +++ SmartDeviceLink/SDLIgnitionStableStatus.h | 42 + SmartDeviceLink/SDLIgnitionStableStatus.m | 56 + SmartDeviceLink/SDLIgnitionStatus.h | 64 + SmartDeviceLink/SDLIgnitionStatus.m | 83 + SmartDeviceLink/SDLImage.h | 42 + SmartDeviceLink/SDLImage.m | 53 + SmartDeviceLink/SDLImageField.h | 20 + SmartDeviceLink/SDLImageField.m | 81 + SmartDeviceLink/SDLImageFieldName.h | 82 + SmartDeviceLink/SDLImageFieldName.m | 137 + SmartDeviceLink/SDLImageResolution.h | 16 + SmartDeviceLink/SDLImageResolution.m | 47 + SmartDeviceLink/SDLImageType.h | 47 + SmartDeviceLink/SDLImageType.m | 47 + SmartDeviceLink/SDLInteractionMode.h | 56 + SmartDeviceLink/SDLInteractionMode.m | 56 + SmartDeviceLink/SDLJingle.h | 16 + SmartDeviceLink/SDLJingle.m | 25 + SmartDeviceLink/SDLJsonDecoder.h | 14 + SmartDeviceLink/SDLJsonDecoder.m | 38 + SmartDeviceLink/SDLJsonEncoder.h | 14 + SmartDeviceLink/SDLJsonEncoder.m | 38 + SmartDeviceLink/SDLKeyboardEvent.h | 45 + SmartDeviceLink/SDLKeyboardEvent.m | 74 + SmartDeviceLink/SDLKeyboardLayout.h | 33 + SmartDeviceLink/SDLKeyboardLayout.m | 56 + SmartDeviceLink/SDLKeyboardProperties.h | 23 + SmartDeviceLink/SDLKeyboardProperties.m | 101 + SmartDeviceLink/SDLKeypressMode.h | 35 + SmartDeviceLink/SDLKeypressMode.m | 56 + SmartDeviceLink/SDLLanguage.h | 150 + SmartDeviceLink/SDLLanguage.m | 245 ++ SmartDeviceLink/SDLLayoutMode.h | 43 + SmartDeviceLink/SDLLayoutMode.m | 74 + SmartDeviceLink/SDLListFiles.h | 27 + SmartDeviceLink/SDLListFiles.m | 23 + SmartDeviceLink/SDLListFilesResponse.h | 21 + SmartDeviceLink/SDLListFilesResponse.m | 47 + SmartDeviceLink/SDLLockScreenManager.h | 21 + SmartDeviceLink/SDLLockScreenManager.m | 95 + SmartDeviceLink/SDLLockScreenStatus.h | 24 + SmartDeviceLink/SDLLockScreenStatus.m | 59 + SmartDeviceLink/SDLMaintenanceModeStatus.h | 50 + SmartDeviceLink/SDLMaintenanceModeStatus.m | 65 + SmartDeviceLink/SDLMediaClockFormat.h | 154 + SmartDeviceLink/SDLMediaClockFormat.m | 92 + SmartDeviceLink/SDLMenuParams.h | 56 + SmartDeviceLink/SDLMenuParams.m | 59 + SmartDeviceLink/SDLMyKey.h | 17 + SmartDeviceLink/SDLMyKey.m | 41 + SmartDeviceLink/SDLNames.h | 406 ++ SmartDeviceLink/SDLObjectWithPriority.h | 18 + SmartDeviceLink/SDLObjectWithPriority.m | 31 + SmartDeviceLink/SDLOnAppInterfaceUnregistered.h | 35 + SmartDeviceLink/SDLOnAppInterfaceUnregistered.m | 41 + SmartDeviceLink/SDLOnAudioPassThru.h | 39 + SmartDeviceLink/SDLOnAudioPassThru.m | 23 + SmartDeviceLink/SDLOnButtonEvent.h | 81 + SmartDeviceLink/SDLOnButtonEvent.m | 71 + SmartDeviceLink/SDLOnButtonPress.h | 94 + SmartDeviceLink/SDLOnButtonPress.m | 71 + SmartDeviceLink/SDLOnCommand.h | 42 + SmartDeviceLink/SDLOnCommand.m | 53 + SmartDeviceLink/SDLOnDriverDistraction.h | 46 + SmartDeviceLink/SDLOnDriverDistraction.m | 41 + SmartDeviceLink/SDLOnEncodedSyncPData.h | 17 + SmartDeviceLink/SDLOnEncodedSyncPData.m | 59 + SmartDeviceLink/SDLOnHMIStatus.h | 58 + SmartDeviceLink/SDLOnHMIStatus.m | 77 + SmartDeviceLink/SDLOnHashChange.h | 15 + SmartDeviceLink/SDLOnHashChange.m | 35 + SmartDeviceLink/SDLOnKeyboardInput.h | 18 + SmartDeviceLink/SDLOnKeyboardInput.m | 53 + SmartDeviceLink/SDLOnLanguageChange.h | 38 + SmartDeviceLink/SDLOnLanguageChange.m | 58 + SmartDeviceLink/SDLOnLockScreenStatus.h | 47 + SmartDeviceLink/SDLOnLockScreenStatus.m | 84 + SmartDeviceLink/SDLOnPermissionsChange.h | 35 + SmartDeviceLink/SDLOnPermissionsChange.m | 45 + SmartDeviceLink/SDLOnSyncPData.h | 16 + SmartDeviceLink/SDLOnSyncPData.m | 47 + SmartDeviceLink/SDLOnSystemRequest.h | 23 + SmartDeviceLink/SDLOnSystemRequest.m | 107 + SmartDeviceLink/SDLOnTBTClientState.h | 17 + SmartDeviceLink/SDLOnTBTClientState.m | 41 + SmartDeviceLink/SDLOnTouchEvent.h | 18 + SmartDeviceLink/SDLOnTouchEvent.m | 63 + SmartDeviceLink/SDLOnVehicleData.h | 150 + SmartDeviceLink/SDLOnVehicleData.m | 413 ++ SmartDeviceLink/SDLPRNDL.h | 143 + SmartDeviceLink/SDLPRNDL.m | 173 + SmartDeviceLink/SDLParameterPermissions.h | 39 + SmartDeviceLink/SDLParameterPermissions.m | 47 + SmartDeviceLink/SDLPerformAudioPassThru.h | 104 + SmartDeviceLink/SDLPerformAudioPassThru.m | 148 + SmartDeviceLink/SDLPerformAudioPassThruResponse.h | 25 + SmartDeviceLink/SDLPerformAudioPassThruResponse.m | 23 + SmartDeviceLink/SDLPerformInteraction.h | 85 + SmartDeviceLink/SDLPerformInteraction.m | 181 + SmartDeviceLink/SDLPerformInteractionResponse.h | 55 + SmartDeviceLink/SDLPerformInteractionResponse.m | 66 + SmartDeviceLink/SDLPermissionItem.h | 20 + SmartDeviceLink/SDLPermissionItem.m | 71 + SmartDeviceLink/SDLPermissionStatus.h | 55 + SmartDeviceLink/SDLPermissionStatus.m | 65 + SmartDeviceLink/SDLPolicyDataParser.h | 31 + SmartDeviceLink/SDLPolicyDataParser.m | 140 + SmartDeviceLink/SDLPowerModeQualificationStatus.h | 18 + SmartDeviceLink/SDLPowerModeQualificationStatus.m | 65 + SmartDeviceLink/SDLPowerModeStatus.h | 23 + SmartDeviceLink/SDLPowerModeStatus.m | 110 + SmartDeviceLink/SDLPredefinedLayout.h | 34 + SmartDeviceLink/SDLPredefinedLayout.m | 209 + SmartDeviceLink/SDLPrerecordedSpeech.h | 19 + SmartDeviceLink/SDLPrerecordedSpeech.m | 74 + SmartDeviceLink/SDLPresetBankCapabilities.h | 33 + SmartDeviceLink/SDLPresetBankCapabilities.m | 35 + SmartDeviceLink/SDLPrimaryAudioSource.h | 72 + SmartDeviceLink/SDLPrimaryAudioSource.m | 92 + SmartDeviceLink/SDLPrioritizedObjectCollection.h | 27 + SmartDeviceLink/SDLPrioritizedObjectCollection.m | 66 + SmartDeviceLink/SDLProtocol.h | 21 + SmartDeviceLink/SDLProtocol.m | 422 ++ SmartDeviceLink/SDLProtocolHeader.h | 61 + SmartDeviceLink/SDLProtocolHeader.m | 60 + SmartDeviceLink/SDLProtocolListener.h | 23 + SmartDeviceLink/SDLProtocolMessage.h | 23 + SmartDeviceLink/SDLProtocolMessage.m | 99 + SmartDeviceLink/SDLProtocolMessageAssembler.h | 22 + SmartDeviceLink/SDLProtocolMessageAssembler.m | 94 + SmartDeviceLink/SDLProtocolMessageDisassembler.h | 13 + SmartDeviceLink/SDLProtocolMessageDisassembler.m | 89 + SmartDeviceLink/SDLProtocolReceivedMessageRouter.h | 15 + SmartDeviceLink/SDLProtocolReceivedMessageRouter.m | 116 + SmartDeviceLink/SDLProxy.h | 62 + SmartDeviceLink/SDLProxy.m | 758 ++++ SmartDeviceLink/SDLProxyFactory.h | 19 + SmartDeviceLink/SDLProxyFactory.m | 37 + SmartDeviceLink/SDLProxyListener.h | 135 + SmartDeviceLink/SDLPutFile.h | 80 + SmartDeviceLink/SDLPutFile.m | 101 + SmartDeviceLink/SDLPutFileResponse.h | 24 + SmartDeviceLink/SDLPutFileResponse.m | 35 + SmartDeviceLink/SDLRPCMessage.h | 25 + SmartDeviceLink/SDLRPCMessage.m | 81 + SmartDeviceLink/SDLRPCMessageType.h | 10 + SmartDeviceLink/SDLRPCNotification.h | 13 + SmartDeviceLink/SDLRPCNotification.m | 35 + SmartDeviceLink/SDLRPCPayload.h | 21 + SmartDeviceLink/SDLRPCPayload.m | 121 + SmartDeviceLink/SDLRPCRequest.h | 12 + SmartDeviceLink/SDLRPCRequest.m | 23 + SmartDeviceLink/SDLRPCRequestFactory.h | 210 + SmartDeviceLink/SDLRPCRequestFactory.m | 689 ++++ SmartDeviceLink/SDLRPCResponse.h | 17 + SmartDeviceLink/SDLRPCResponse.m | 89 + SmartDeviceLink/SDLRPCStruct.h | 16 + SmartDeviceLink/SDLRPCStruct.m | 89 + SmartDeviceLink/SDLReadDID.h | 52 + SmartDeviceLink/SDLReadDID.m | 47 + SmartDeviceLink/SDLReadDIDResponse.h | 20 + SmartDeviceLink/SDLReadDIDResponse.m | 45 + SmartDeviceLink/SDLRegisterAppInterface.h | 217 + SmartDeviceLink/SDLRegisterAppInterface.m | 211 + SmartDeviceLink/SDLRegisterAppInterfaceResponse.h | 166 + SmartDeviceLink/SDLRegisterAppInterfaceResponse.m | 339 ++ SmartDeviceLink/SDLRequestType.h | 34 + SmartDeviceLink/SDLRequestType.m | 210 + SmartDeviceLink/SDLResetGlobalProperties.h | 43 + SmartDeviceLink/SDLResetGlobalProperties.m | 45 + SmartDeviceLink/SDLResetGlobalPropertiesResponse.h | 26 + SmartDeviceLink/SDLResetGlobalPropertiesResponse.m | 23 + SmartDeviceLink/SDLResult.h | 204 + SmartDeviceLink/SDLResult.m | 327 ++ SmartDeviceLink/SDLSamplingRate.h | 56 + SmartDeviceLink/SDLSamplingRate.m | 65 + SmartDeviceLink/SDLScreenParams.h | 19 + SmartDeviceLink/SDLScreenParams.m | 59 + SmartDeviceLink/SDLScrollableMessage.h | 56 + SmartDeviceLink/SDLScrollableMessage.m | 69 + SmartDeviceLink/SDLScrollableMessageResponse.h | 26 + SmartDeviceLink/SDLScrollableMessageResponse.m | 23 + SmartDeviceLink/SDLSendLocation.h | 65 + SmartDeviceLink/SDLSendLocation.m | 119 + SmartDeviceLink/SDLSendLocationResponse.h | 12 + SmartDeviceLink/SDLSendLocationResponse.m | 30 + SmartDeviceLink/SDLSetAppIcon.h | 35 + SmartDeviceLink/SDLSetAppIcon.m | 35 + SmartDeviceLink/SDLSetAppIconResponse.h | 16 + SmartDeviceLink/SDLSetAppIconResponse.m | 23 + SmartDeviceLink/SDLSetDisplayLayout.h | 35 + SmartDeviceLink/SDLSetDisplayLayout.m | 35 + SmartDeviceLink/SDLSetDisplayLayoutResponse.h | 29 + SmartDeviceLink/SDLSetDisplayLayoutResponse.m | 104 + SmartDeviceLink/SDLSetGlobalProperties.h | 96 + SmartDeviceLink/SDLSetGlobalProperties.m | 149 + SmartDeviceLink/SDLSetGlobalPropertiesResponse.h | 26 + SmartDeviceLink/SDLSetGlobalPropertiesResponse.m | 23 + SmartDeviceLink/SDLSetMediaClockTimer.h | 68 + SmartDeviceLink/SDLSetMediaClockTimer.m | 77 + SmartDeviceLink/SDLSetMediaClockTimerResponse.h | 28 + SmartDeviceLink/SDLSetMediaClockTimerResponse.m | 23 + SmartDeviceLink/SDLShow.h | 233 ++ SmartDeviceLink/SDLShow.m | 195 + SmartDeviceLink/SDLShowConstantTBT.h | 33 + SmartDeviceLink/SDLShowConstantTBT.m | 177 + SmartDeviceLink/SDLShowConstantTBTResponse.h | 16 + SmartDeviceLink/SDLShowConstantTBTResponse.m | 23 + SmartDeviceLink/SDLShowResponse.h | 26 + SmartDeviceLink/SDLShowResponse.m | 23 + SmartDeviceLink/SDLSingleTireStatus.h | 33 + SmartDeviceLink/SDLSingleTireStatus.m | 41 + SmartDeviceLink/SDLSiphonServer.h | 20 + SmartDeviceLink/SDLSiphonServer.m | 452 +++ SmartDeviceLink/SDLSlider.h | 75 + SmartDeviceLink/SDLSlider.m | 83 + SmartDeviceLink/SDLSliderResponse.h | 31 + SmartDeviceLink/SDLSliderResponse.m | 35 + SmartDeviceLink/SDLSoftButton.h | 24 + SmartDeviceLink/SDLSoftButton.m | 113 + SmartDeviceLink/SDLSoftButtonCapabilities.h | 60 + SmartDeviceLink/SDLSoftButtonCapabilities.m | 71 + SmartDeviceLink/SDLSoftButtonType.h | 41 + SmartDeviceLink/SDLSoftButtonType.m | 56 + SmartDeviceLink/SDLSpeak.h | 64 + SmartDeviceLink/SDLSpeak.m | 45 + SmartDeviceLink/SDLSpeakResponse.h | 26 + SmartDeviceLink/SDLSpeakResponse.m | 23 + SmartDeviceLink/SDLSpeechCapabilities.h | 46 + SmartDeviceLink/SDLSpeechCapabilities.m | 74 + SmartDeviceLink/SDLStartTime.h | 49 + SmartDeviceLink/SDLStartTime.m | 59 + SmartDeviceLink/SDLStreamDelegate.h | 22 + SmartDeviceLink/SDLStreamDelegate.m | 92 + SmartDeviceLink/SDLStreamingMediaManager.h | 91 + SmartDeviceLink/SDLStreamingMediaManager.m | 411 ++ SmartDeviceLink/SDLSubscribeButton.h | 80 + SmartDeviceLink/SDLSubscribeButton.m | 42 + SmartDeviceLink/SDLSubscribeButtonResponse.h | 26 + SmartDeviceLink/SDLSubscribeButtonResponse.m | 23 + SmartDeviceLink/SDLSubscribeVehicleData.h | 139 + SmartDeviceLink/SDLSubscribeVehicleData.m | 311 ++ SmartDeviceLink/SDLSubscribeVehicleDataResponse.h | 130 + SmartDeviceLink/SDLSubscribeVehicleDataResponse.m | 433 ++ SmartDeviceLink/SDLSyncMsgVersion.h | 39 + SmartDeviceLink/SDLSyncMsgVersion.m | 50 + SmartDeviceLink/SDLSyncPData.h | 13 + SmartDeviceLink/SDLSyncPData.m | 23 + SmartDeviceLink/SDLSyncPDataResponse.h | 13 + SmartDeviceLink/SDLSyncPDataResponse.m | 23 + SmartDeviceLink/SDLSystemAction.h | 39 + SmartDeviceLink/SDLSystemAction.m | 56 + SmartDeviceLink/SDLSystemContext.h | 70 + SmartDeviceLink/SDLSystemContext.m | 74 + SmartDeviceLink/SDLSystemRequest.h | 23 + SmartDeviceLink/SDLSystemRequest.m | 54 + SmartDeviceLink/SDLSystemRequestResponse.h | 16 + SmartDeviceLink/SDLSystemRequestResponse.m | 23 + SmartDeviceLink/SDLTBTState.h | 24 + SmartDeviceLink/SDLTBTState.m | 119 + SmartDeviceLink/SDLTCPTransport.h | 13 + SmartDeviceLink/SDLTCPTransport.m | 175 + SmartDeviceLink/SDLTTSChunk.h | 69 + SmartDeviceLink/SDLTTSChunk.m | 53 + SmartDeviceLink/SDLTTSChunkFactory.h | 16 + SmartDeviceLink/SDLTTSChunkFactory.m | 27 + SmartDeviceLink/SDLTextAlignment.h | 52 + SmartDeviceLink/SDLTextAlignment.m | 56 + SmartDeviceLink/SDLTextField.h | 106 + SmartDeviceLink/SDLTextField.m | 83 + SmartDeviceLink/SDLTextFieldName.h | 267 ++ SmartDeviceLink/SDLTextFieldName.m | 281 ++ SmartDeviceLink/SDLTimer.h | 19 + SmartDeviceLink/SDLTimer.m | 79 + SmartDeviceLink/SDLTimerMode.h | 17 + SmartDeviceLink/SDLTimerMode.m | 56 + SmartDeviceLink/SDLTireStatus.h | 24 + SmartDeviceLink/SDLTireStatus.m | 144 + SmartDeviceLink/SDLTouchCoord.h | 16 + SmartDeviceLink/SDLTouchCoord.m | 47 + SmartDeviceLink/SDLTouchEvent.h | 40 + SmartDeviceLink/SDLTouchEvent.m | 69 + SmartDeviceLink/SDLTouchEventCapabilities.h | 17 + SmartDeviceLink/SDLTouchEventCapabilities.m | 59 + SmartDeviceLink/SDLTouchType.h | 17 + SmartDeviceLink/SDLTouchType.m | 56 + SmartDeviceLink/SDLTransportDelegate.h | 10 + SmartDeviceLink/SDLTriggerSource.h | 46 + SmartDeviceLink/SDLTriggerSource.m | 56 + SmartDeviceLink/SDLTurn.h | 18 + SmartDeviceLink/SDLTurn.m | 53 + SmartDeviceLink/SDLURLRequestTask.h | 46 + SmartDeviceLink/SDLURLRequestTask.m | 110 + SmartDeviceLink/SDLURLSession.h | 57 + SmartDeviceLink/SDLURLSession.m | 102 + SmartDeviceLink/SDLUnregisterAppInterface.h | 36 + SmartDeviceLink/SDLUnregisterAppInterface.m | 23 + .../SDLUnregisterAppInterfaceResponse.h | 26 + .../SDLUnregisterAppInterfaceResponse.m | 23 + SmartDeviceLink/SDLUnsubscribeButton.h | 43 + SmartDeviceLink/SDLUnsubscribeButton.m | 42 + SmartDeviceLink/SDLUnsubscribeButtonResponse.h | 26 + SmartDeviceLink/SDLUnsubscribeButtonResponse.m | 23 + SmartDeviceLink/SDLUnsubscribeVehicleData.h | 130 + SmartDeviceLink/SDLUnsubscribeVehicleData.m | 311 ++ .../SDLUnsubscribeVehicleDataResponse.h | 129 + .../SDLUnsubscribeVehicleDataResponse.m | 433 ++ SmartDeviceLink/SDLUpdateMode.h | 57 + SmartDeviceLink/SDLUpdateMode.m | 74 + SmartDeviceLink/SDLUpdateTurnList.h | 28 + SmartDeviceLink/SDLUpdateTurnList.m | 67 + SmartDeviceLink/SDLUpdateTurnListResponse.h | 16 + SmartDeviceLink/SDLUpdateTurnListResponse.m | 23 + SmartDeviceLink/SDLV1ProtocolHeader.h | 14 + SmartDeviceLink/SDLV1ProtocolHeader.m | 84 + SmartDeviceLink/SDLV1ProtocolMessage.h | 14 + SmartDeviceLink/SDLV1ProtocolMessage.m | 24 + SmartDeviceLink/SDLV2ProtocolHeader.h | 17 + SmartDeviceLink/SDLV2ProtocolHeader.m | 124 + SmartDeviceLink/SDLV2ProtocolMessage.h | 15 + SmartDeviceLink/SDLV2ProtocolMessage.m | 60 + SmartDeviceLink/SDLVehicleDataActiveStatus.h | 46 + SmartDeviceLink/SDLVehicleDataActiveStatus.m | 74 + SmartDeviceLink/SDLVehicleDataEventStatus.h | 58 + SmartDeviceLink/SDLVehicleDataEventStatus.m | 74 + SmartDeviceLink/SDLVehicleDataNotificationStatus.h | 48 + SmartDeviceLink/SDLVehicleDataNotificationStatus.m | 65 + SmartDeviceLink/SDLVehicleDataResult.h | 19 + SmartDeviceLink/SDLVehicleDataResult.m | 59 + SmartDeviceLink/SDLVehicleDataResultCode.h | 71 + SmartDeviceLink/SDLVehicleDataResultCode.m | 110 + SmartDeviceLink/SDLVehicleDataStatus.h | 44 + SmartDeviceLink/SDLVehicleDataStatus.m | 56 + SmartDeviceLink/SDLVehicleDataType.h | 159 + SmartDeviceLink/SDLVehicleDataType.m | 263 ++ SmartDeviceLink/SDLVehicleType.h | 62 + SmartDeviceLink/SDLVehicleType.m | 71 + SmartDeviceLink/SDLVrCapabilities.h | 34 + SmartDeviceLink/SDLVrCapabilities.m | 42 + SmartDeviceLink/SDLVrHelpItem.h | 19 + SmartDeviceLink/SDLVrHelpItem.m | 65 + SmartDeviceLink/SDLWarningLightStatus.h | 52 + SmartDeviceLink/SDLWarningLightStatus.m | 65 + SmartDeviceLink/SDLWiperStatus.h | 101 + SmartDeviceLink/SDLWiperStatus.m | 164 + SmartDeviceLink/SmartDeviceLink.h | 275 ++ SmartDeviceLinkTests/Info.plist | 24 + .../HeaderSpecs/SDLProtocolHeaderSpec.m | 29 + .../HeaderSpecs/SDLV1ProtocolHeaderSpec.m | 89 + .../HeaderSpecs/SDLV2ProtocolHeaderSpec.m | 93 + .../MessageSpecs/SDLProtocolMessageSpec.m | 72 + .../ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m | 511 +++ .../MessageSpecs/SDLV1ProtocolMessageSpec.m | 32 + .../MessageSpecs/SDLV2ProtocolMessageSpec.m | 57 + .../ProtocolSpecs/SDLAbstractProtocolSpec.m | 57 + .../ProtocolSpecs/SDLFunctionIDSpec.m | 152 + .../SDLProtocolMessageAssemblerSpec.m | 100 + .../SDLProtocolMessageDisassemblerSpec.m | 95 + .../SDLProtocolReceivedMessageRouterSpec.m | 176 + .../ProxySpecs/SDLLockScreenManagerSpec.m | 235 ++ .../RPCSpecs/EnumSpecs/SDLAmbientLightStatusSpec.m | 71 + .../RPCSpecs/EnumSpecs/SDLAppHMITypeSpec.m | 77 + .../SDLAppInterfaceUnregisteredReasonSpec.m | 85 + .../EnumSpecs/SDLAudioStreamingStateSpec.m | 56 + .../RPCSpecs/EnumSpecs/SDLAudioTypeSpec.m | 50 + .../RPCSpecs/EnumSpecs/SDLBitsPerSampleSpec.m | 53 + .../RPCSpecs/EnumSpecs/SDLButtonEventModeSpec.m | 53 + .../RPCSpecs/EnumSpecs/SDLButtonNameSpec.m | 98 + .../RPCSpecs/EnumSpecs/SDLButtonPressModeSpec.m | 53 + .../RPCSpecs/EnumSpecs/SDLCarModeStatusSpec.m | 60 + .../RPCSpecs/EnumSpecs/SDLCharacterSetSpec.m | 59 + .../RPCSpecs/EnumSpecs/SDLCompassDirectionSpec.m | 71 + .../EnumSpecs/SDLComponentVolumeStatusSpec.m | 65 + .../RPCSpecs/EnumSpecs/SDLDeviceLevelStatusSpec.m | 65 + .../RPCSpecs/EnumSpecs/SDLDimensionSpec.m | 56 + .../RPCSpecs/EnumSpecs/SDLDisplayTypeSpec.m | 80 + .../EnumSpecs/SDLDriverDistractionStateSpec.m | 53 + .../EnumSpecs/SDLECallConfirmationStatusSpec.m | 68 + .../RPCSpecs/EnumSpecs/SDLEmergencyEventTypeSpec.m | 68 + .../RPCSpecs/EnumSpecs/SDLFileTypeSpec.m | 71 + .../RPCSpecs/EnumSpecs/SDLFuelCutoffStatusSpec.m | 56 + .../RPCSpecs/EnumSpecs/SDLGlobalProperySpec.m | 68 + .../RPCSpecs/EnumSpecs/SDLHMILevelSpec.m | 59 + .../EnumSpecs/SDLHMIZoneCapabilitiesSpec.m | 53 + .../EnumSpecs/SDLIgnitionStableStatusSpec.m | 56 + .../RPCSpecs/EnumSpecs/SDLIgnitionStatusSpec.m | 65 + .../RPCSpecs/EnumSpecs/SDLImageFieldNameSpec.m | 86 + .../RPCSpecs/EnumSpecs/SDLImageTypeSpec.m | 53 + .../RPCSpecs/EnumSpecs/SDLInteractionModeSpec.m | 56 + .../RPCSpecs/EnumSpecs/SDLKeyboardEventSpec.m | 64 + .../RPCSpecs/EnumSpecs/SDLKeyboardLayoutSpec.m | 56 + .../RPCSpecs/EnumSpecs/SDLKeypressModeSpec.m | 56 + .../RPCSpecs/EnumSpecs/SDLLanguageSpec.m | 119 + .../RPCSpecs/EnumSpecs/SDLLayoutModeSpec.m | 62 + .../RPCSpecs/EnumSpecs/SDLLockScreenStatusSpec.m | 56 + .../EnumSpecs/SDLMaintenanceModeStatusSpec.m | 59 + .../RPCSpecs/EnumSpecs/SDLMediaClockFormatSpec.m | 68 + .../RPCSpecs/EnumSpecs/SDLPRNDLSpec.m | 95 + .../RPCSpecs/EnumSpecs/SDLPermissionStatusSpec.m | 59 + .../SDLPowerModeQualificationStatusSpec.m | 59 + .../RPCSpecs/EnumSpecs/SDLPowerModeStatusSpec.m | 74 + .../RPCSpecs/EnumSpecs/SDLPredefinedLayoutSpec.m | 107 + .../RPCSpecs/EnumSpecs/SDLPrerecordedSpeechSpec.m | 62 + .../RPCSpecs/EnumSpecs/SDLPrimaryAudioSource.m | 68 + .../RPCSpecs/EnumSpecs/SDLRequestTypeSpec.m | 108 + .../RPCSpecs/EnumSpecs/SDLResultSpec.m | 145 + .../RPCSpecs/EnumSpecs/SDLSamplingRateSpec.m | 59 + .../RPCSpecs/EnumSpecs/SDLSoftButtonTypeSpec.m | 56 + .../RPCSpecs/EnumSpecs/SDLSpeechCapabilitiesSpec.m | 62 + .../RPCSpecs/EnumSpecs/SDLSystemAction.m | 56 + .../RPCSpecs/EnumSpecs/SDLSystemContextSpec.m | 62 + .../RPCSpecs/EnumSpecs/SDLTBTStateSpec.m | 77 + .../RPCSpecs/EnumSpecs/SDLTextAlignmentSpec.m | 56 + .../RPCSpecs/EnumSpecs/SDLTextFieldNameSpec.m | 133 + .../RPCSpecs/EnumSpecs/SDLTimerModeSpec.m | 56 + .../RPCSpecs/EnumSpecs/SDLTouchTypeSpec.m | 56 + .../RPCSpecs/EnumSpecs/SDLTriggerSource.m | 56 + .../RPCSpecs/EnumSpecs/SDLUpdateModeSpec.m | 62 + .../EnumSpecs/SDLVehicleDataActiveStatusSpec.m | 62 + .../EnumSpecs/SDLVehicleDataEventStatusSpec.m | 62 + .../SDLVehicleDataNotificationStatusSpec.m | 60 + .../EnumSpecs/SDLVehicleDataResultCodeSpec.m | 74 + .../RPCSpecs/EnumSpecs/SDLVehicleDataStatusSpec.m | 56 + .../RPCSpecs/EnumSpecs/SDLVehicleDataTypeSpec.m | 125 + .../RPCSpecs/EnumSpecs/SDLVrCapabilitiesSpec.m | 50 + .../RPCSpecs/EnumSpecs/SDLWarningLightStatusSpec.m | 60 + .../RPCSpecs/EnumSpecs/SDLWiperStatusSpec.m | 92 + .../FactorySpecs/SDLRPCRequestFactorySpec.m | 986 +++++ .../SDLOnAppInterfaceUnregisteredSpec.m | 43 + .../NotificationSpecs/SDLOnAudioPassThruSpec.m | 16 + .../NotificationSpecs/SDLOnButtonEventSpec.m | 55 + .../NotificationSpecs/SDLOnButtonPressSpec.m | 55 + .../RPCSpecs/NotificationSpecs/SDLOnCommandSpec.m | 48 + .../NotificationSpecs/SDLOnDriverDistractionSpec.m | 43 + .../NotificationSpecs/SDLOnEncodedSyncPDataSpec.m | 52 + .../NotificationSpecs/SDLOnHMIStatusSpec.m | 56 + .../NotificationSpecs/SDLOnHashChangeSpec.m | 42 + .../NotificationSpecs/SDLOnKeyboardInputSpec.m | 48 + .../NotificationSpecs/SDLOnLanguageChangeSpec.m | 49 + .../NotificationSpecs/SDLOnLockScreenStatusSpec.m | 59 + .../NotificationSpecs/SDLOnPermissionsChangeSpec.m | 45 + .../NotificationSpecs/SDLOnSyncPDataSpec.m | 47 + .../NotificationSpecs/SDLOnSystemRequestSpec.m | 70 + .../NotificationSpecs/SDLOnTBTClientStateSpec.m | 44 + .../NotificationSpecs/SDLOnTouchEventSpec.m | 52 + .../NotificationSpecs/SDLOnVehicleDataSpec.m | 175 + .../RPCSpecs/PayloadSpecs/SDLRPCPayloadSpec.m | 75 + .../RPCSpecs/RequestSpecs/SDLAddCommandSpec.m | 62 + .../RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m | 52 + .../RPCSpecs/RequestSpecs/SDLAlertManeuverSpec.m | 52 + .../RPCSpecs/RequestSpecs/SDLAlertSpec.m | 82 + .../RequestSpecs/SDLChangeRegistrationSpec.m | 186 + .../SDLCreateInteractionChoiceSetSpec.m | 50 + .../RPCSpecs/RequestSpecs/SDLDeleteCommandSpec.m | 42 + .../RPCSpecs/RequestSpecs/SDLDeleteFileSpec.m | 42 + .../SDLDeleteInteractionChoiceSetSpec.m | 42 + .../RPCSpecs/RequestSpecs/SDLDeleteSubMenuSpec.m | 42 + .../RequestSpecs/SDLDiagnosticMessageSpec.m | 52 + .../RPCSpecs/RequestSpecs/SDLDialNumberSpec.m | 80 + .../RequestSpecs/SDLEncodedSyncPDataSpec.m | 42 + .../RequestSpecs/SDLEndAudioPassThruSpec.m | 16 + .../RPCSpecs/RequestSpecs/SDLGetDTCsSpec.m | 47 + .../RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m | 162 + .../RPCSpecs/RequestSpecs/SDLListFilesSpec.m | 16 + .../RequestSpecs/SDLPerformAudioPassThruSpec.m | 76 + .../RequestSpecs/SDLPerformInteractionSpec.m | 91 + .../RPCSpecs/RequestSpecs/SDLPutFileSpec.m | 69 + .../RPCSpecs/RequestSpecs/SDLReadDIDSpec.m | 47 + .../RequestSpecs/SDLRegisterAppInterfaceSpec.m | 107 + .../RequestSpecs/SDLResetGlobalPropertiesSpec.m | 43 + .../RequestSpecs/SDLScrollableMessageSpec.m | 55 + .../RPCSpecs/RequestSpecs/SDLSendLocationSpec.m | 222 + .../RPCSpecs/RequestSpecs/SDLSetAppIconSpec.m | 42 + .../RequestSpecs/SDLSetDisplayLayoutSpec.m | 42 + .../RequestSpecs/SDLSetGlobalPropertiesSpec.m | 83 + .../RequestSpecs/SDLSetMediaClockTimerSpec.m | 58 + .../RPCSpecs/RequestSpecs/SDLShowConstantTBTSpec.m | 99 + .../RPCSpecs/RequestSpecs/SDLShowSpec.m | 105 + .../RPCSpecs/RequestSpecs/SDLSliderSpec.m | 62 + .../RPCSpecs/RequestSpecs/SDLSpeakSpec.m | 45 + .../RPCSpecs/RequestSpecs/SDLSubscribeButtonSpec.m | 44 + .../RequestSpecs/SDLSubscribeVehicleDataSpec.m | 157 + .../RPCSpecs/RequestSpecs/SDLSyncPDataSpec.m | 16 + .../RPCSpecs/RequestSpecs/SDLSystemRequestSpec.m | 48 + .../RequestSpecs/SDLUnregisterAppInterfaceSpec.m | 16 + .../RequestSpecs/SDLUnsubscribeButtonSpec.m | 44 + .../RequestSpecs/SDLUnsubscribeVehicleDataSpec.m | 157 + .../RPCSpecs/RequestSpecs/SDLUpdateTurnListSpec.m | 52 + .../ResponseSpecs/SDLAddCommandResponseSpec.m | 16 + .../ResponseSpecs/SDLAddSubMenuResponseSpec.m | 16 + .../ResponseSpecs/SDLAlertManeuverResponseSpec.m | 16 + .../RPCSpecs/ResponseSpecs/SDLAlertResponseSpec.m | 16 + .../SDLChangeRegistrationResponseSpec.m | 16 + .../SDLCreateInteractionChoiceSetResponseSpec.m | 16 + .../ResponseSpecs/SDLDeleteCommandResponseSpec.m | 16 + .../ResponseSpecs/SDLDeleteFileResponseSpec.m | 42 + .../SDLDeleteInteractionChoiceSetResponseSpec.m | 16 + .../ResponseSpecs/SDLDeleteSubMenuResponseSpec.m | 16 + .../SDLDiagnosticMessageResponseSpec.m | 42 + .../ResponseSpecs/SDLDialNumberResponseSpec.m | 10 + .../SDLEncodedSyncPDataResponseSpec.m | 16 + .../SDLEndAudioPassThruResponseSpec.m | 16 + .../ResponseSpecs/SDLGenericResponseSpec.m | 16 + .../ResponseSpecs/SDLGetDTCsResponseSpec.m | 47 + .../ResponseSpecs/SDLGetVehicleDataResponseSpec.m | 175 + .../ResponseSpecs/SDLListFilesResponseSpec.m | 47 + .../SDLPerformAudioPassThruResponseSpec.m | 16 + .../SDLPerformInteractionResponseSpec.m | 54 + .../ResponseSpecs/SDLPutFileResponseSpec.m | 42 + .../ResponseSpecs/SDLReadDIDResponseSpec.m | 45 + .../SDLRegisterAppInterfaceResponseSpec.m | 133 + .../SDLResetGlobalPropertiesResponseSpec.m | 16 + .../SDLScrollableMessageResponseSpec.m | 16 + .../ResponseSpecs/SDLSendLocationResponseSpec.m | 12 + .../ResponseSpecs/SDLSetAppIconResponseSpec.m | 16 + .../SDLSetDisplayLayoutResponseSpec.m | 67 + .../SDLSetGlobalPropertiesResponseSpec.m | 16 + .../SDLSetMediaClockTimerResponseSpec.m | 16 + .../ResponseSpecs/SDLShowConstantTBTResponseSpec.m | 16 + .../RPCSpecs/ResponseSpecs/SDLShowResponseSpec.m | 16 + .../RPCSpecs/ResponseSpecs/SDLSliderResponseSpec.m | 43 + .../RPCSpecs/ResponseSpecs/SDLSpeakResponseSpec.m | 16 + .../ResponseSpecs/SDLSubscribeButtonResponseSpec.m | 16 + .../SDLSubscribeVehicleDataResponseSpec.m | 161 + .../ResponseSpecs/SDLSyncPDataResponseSpec.m | 16 + .../ResponseSpecs/SDLSystemRequestResponseSpec.m | 16 + .../SDLUnregisterAppInterfaceResponseSpec.m | 16 + .../SDLUnsubscribeButtonResponseSpec.m | 16 + .../SDLUnsubscribeVehicleDataResponseSpec.m | 161 + .../ResponseSpecs/SDLUpdateTurnListResponseSpec.m | 16 + .../RPCSpecs/StructSpecs/SDLAirbagStatusSpec.m | 76 + .../StructSpecs/SDLAudioPassThruCapabilitiesSpec.m | 53 + .../RPCSpecs/StructSpecs/SDLBeltStatusSpec.m | 111 + .../RPCSpecs/StructSpecs/SDLBodyInformationSpec.m | 71 + .../StructSpecs/SDLButtonCapabilitiesSpec.m | 56 + .../RPCSpecs/StructSpecs/SDLChoiceSpec.m | 74 + .../StructSpecs/SDLClusterModeStatusSpec.m | 57 + .../RPCSpecs/StructSpecs/SDLDIDResult.m | 51 + .../RPCSpecs/StructSpecs/SDLDeviceInfoSpec.m | 64 + .../RPCSpecs/StructSpecs/SDLDeviceStatusSpec.m | 92 + .../StructSpecs/SDLDisplayCapabilitiesSpec.m | 84 + .../RPCSpecs/StructSpecs/SDLECallInfoSpec.m | 52 + .../RPCSpecs/StructSpecs/SDLEmergencyEventSpec.m | 63 + .../RPCSpecs/StructSpecs/SDLGPSDataSpec.m | 127 + .../RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m | 69 + .../RPCSpecs/StructSpecs/SDLHMIPermissionsSpec.m | 45 + .../RPCSpecs/StructSpecs/SDLHeadLampStatusSpec.m | 51 + .../RPCSpecs/StructSpecs/SDLImageFieldSpec.m | 55 + .../RPCSpecs/StructSpecs/SDLImageSpec.m | 46 + .../StructSpecs/SDLKeyboardPropertiesSpec.m | 63 + .../RPCSpecs/StructSpecs/SDLMenuParamsSpec.m | 49 + .../RPCSpecs/StructSpecs/SDLMyKeySpec.m | 41 + .../StructSpecs/SDLParameterPermissionsSpec.m | 45 + .../RPCSpecs/StructSpecs/SDLPermissionItemSpec.m | 54 + .../StructSpecs/SDLPresetBankCapabilitiesSpec.m | 39 + .../RPCSpecs/StructSpecs/SDLScreenParamsSpec.m | 50 + .../RPCSpecs/StructSpecs/SDLSingleTireStatusSpec.m | 40 + .../StructSpecs/SDLSoftButtonCapabilitiesSpec.m | 54 + .../RPCSpecs/StructSpecs/SDLSoftButtonSpec.m | 70 + .../RPCSpecs/StructSpecs/SDLStartTimeSpec.m | 49 + .../RPCSpecs/StructSpecs/SDLSyncMsgVersionSpec.m | 44 + .../RPCSpecs/StructSpecs/SDLTTSChunkSpec.m | 46 + .../RPCSpecs/StructSpecs/SDLTextFieldSpec.m | 57 + .../RPCSpecs/StructSpecs/SDLTireStatusSpec.m | 78 + .../RPCSpecs/StructSpecs/SDLTouchCoordSpec.m | 44 + .../StructSpecs/SDLTouchEventCapabilitiesSpec.m | 49 + .../RPCSpecs/StructSpecs/SDLTouchEventSpec.m | 52 + .../RPCSpecs/StructSpecs/SDLTurnSpec.m | 47 + .../StructSpecs/SDLVehicleDataResultSpec.m | 46 + .../RPCSpecs/StructSpecs/SDLVehicleTypeSpec.m | 54 + .../RPCSpecs/StructSpecs/SDLVrHelpItemSpec.m | 53 + .../RPCSpecs/SuperclassSpecs/SDLEnumSpec.m | 25 + .../RPCSpecs/SuperclassSpecs/SDLRPCMessageSpec.m | 115 + .../SuperclassSpecs/SDLRPCNotificationSpec.m | 15 + .../RPCSpecs/SuperclassSpecs/SDLRPCRequestSpec.m | 25 + .../RPCSpecs/SuperclassSpecs/SDLRPCResponseSpec.m | 33 + .../RPCSpecs/SuperclassSpecs/SDLRPCStructSpec.m | 24 + SmartDeviceLinkTests/SwiftSpec.swift | 5 + .../HTTP Connection/SDLURLRequestTaskSpec.m | 140 + .../HTTP Connection/SDLURLSessionSpec.m | 191 + .../SDLObjectWithPrioritySpec.m | 54 + .../SDLPrioritizedObjectCollectionSpec.m | 89 + .../UtilitiesSpecs/SDLGlobalsSpec.m | 85 + .../UtilitiesSpecs/SDLHexUtilitySpec.m | 36 + .../UtilitiesSpecs/SDLJingleSpec.m | 24 + .../ConnectionIAPTableViewController.storyboard | 61 + .../ConnectionTCPTableViewController.storyboard | 130 + .../Base.lproj/LaunchScreen.xib | 32 + SmartDeviceLink_Example/Base.lproj/Main.storyboard | 62 + SmartDeviceLink_Example/Classes/AppDelegate.h | 13 + SmartDeviceLink_Example/Classes/AppDelegate.m | 45 + .../Classes/ConnectionAnimatedTransition.h | 12 + .../Classes/ConnectionAnimatedTransition.m | 43 + .../Classes/ConnectionContainerViewController.h | 9 + .../Classes/ConnectionContainerViewController.m | 121 + .../Classes/ConnectionIAPTableViewController.h | 9 + .../Classes/ConnectionIAPTableViewController.m | 92 + .../Classes/ConnectionTCPTableViewController.h | 9 + .../Classes/ConnectionTCPTableViewController.m | 123 + .../Classes/ConnectionTransitionContext.h | 25 + .../Classes/ConnectionTransitionContext.m | 109 + SmartDeviceLink_Example/Classes/Preferences.h | 27 + SmartDeviceLink_Example/Classes/Preferences.m | 112 + SmartDeviceLink_Example/Classes/ProxyManager.h | 34 + SmartDeviceLink_Example/Classes/ProxyManager.m | 148 + SmartDeviceLink_Example/Classes/main.m | 12 + .../AppIcon.appiconset/Contents.json | 38 + SmartDeviceLink_Example/Info.plist | 91 + 1585 files changed, 59352 insertions(+), 59353 deletions(-) create mode 100644 Cartfile.private create mode 100644 Cartfile.resolved create mode 100644 SmartDeviceLink-iOS.xcodeproj/project.pbxproj create mode 100644 SmartDeviceLink-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 SmartDeviceLink-iOS.xcodeproj/xcshareddata/xcschemes/SmartDeviceLink.xcscheme delete mode 100644 SmartDeviceLink-iOS/Cartfile.private delete mode 100644 SmartDeviceLink-iOS/Cartfile.resolved delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj/project.pbxproj delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj/xcshareddata/xcschemes/SmartDeviceLink.xcscheme delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/EAAccessory+SDLProtocols.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/EAAccessory+SDLProtocols.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/EAAccessoryManager+SDLProtocols.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/EAAccessoryManager+SDLProtocols.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/Info.plist delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/NSThread+ThreadIndex.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/NSThread+ThreadIndex.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommandResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommandResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenu.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenu.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenuResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenuResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAlert.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAlert.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuver.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuver.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuverResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuverResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAppHMIType.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAppHMIType.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioStreamingState.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioStreamingState.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioType.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioType.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLBitsPerSample.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLBitsPerSample.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonEventMode.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonEventMode.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonName.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonName.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonPressMode.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonPressMode.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLCarModeStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLCarModeStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistrationResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistrationResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLCharacterSet.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLCharacterSet.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLCompassDirection.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLCompassDirection.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLComponentVolumeStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLComponentVolumeStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSet.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSet.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugToolConsole.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDecoder.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommand.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommand.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommandResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommandResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFile.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFile.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFileResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFileResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSet.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSet.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenu.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenu.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenuResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenuResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceLevelStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceLevelStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessage.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessage.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessageResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessageResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumber.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumber.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumberResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumberResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDimension.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDimension.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDriverDistractionState.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLDriverDistractionState.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLECallConfirmationStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLECallConfirmationStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEventType.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEventType.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPData.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPData.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPDataResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPDataResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEncoder.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThru.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThru.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThruResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThruResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLFileType.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLFileType.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLFuelCutoffStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLFuelCutoffStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLFunctionID.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLFunctionID.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGenericResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGenericResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCs.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCs.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCsResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCsResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobals.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobals.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLHMICapabilities.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLHMICapabilities.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLHMILevel.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLHMILevel.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIPermissions.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIPermissions.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIZoneCapabilities.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIZoneCapabilities.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLHexUtility.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLHexUtility.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSession.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSession.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSessionDelegate.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPTransport.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPTransport.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStableStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStableStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLImageFieldName.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLImageFieldName.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLImageType.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLImageType.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLInteractionMode.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLInteractionMode.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonDecoder.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonDecoder.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonEncoder.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonEncoder.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardEvent.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardEvent.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardLayout.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardLayout.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLKeypressMode.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLKeypressMode.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLLanguage.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLLanguage.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLLayoutMode.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLLayoutMode.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLListFiles.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLListFiles.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLListFilesResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLListFilesResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenManager.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenManager.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLMaintenanceModeStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLMaintenanceModeStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLMediaClockFormat.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLMediaClockFormat.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLMenuParams.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLMenuParams.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLNames.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLObjectWithPriority.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLObjectWithPriority.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAudioPassThru.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAudioPassThru.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHashChange.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHashChange.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnPermissionsChange.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnPermissionsChange.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPRNDL.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPRNDL.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLParameterPermissions.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLParameterPermissions.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThruResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThruResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPolicyDataParser.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPolicyDataParser.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPresetBankCapabilities.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPresetBankCapabilities.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPrimaryAudioSource.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPrimaryAudioSource.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPrioritizedObjectCollection.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPrioritizedObjectCollection.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageAssembler.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageAssembler.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageDisassembler.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageDisassembler.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolReceivedMessageRouter.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolReceivedMessageRouter.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyFactory.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyFactory.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFileResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFileResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessageType.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCNotification.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCNotification.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCPayload.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCPayload.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequest.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequest.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDID.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDID.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDIDResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDIDResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalProperties.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalProperties.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalPropertiesResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalPropertiesResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLResult.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLResult.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSamplingRate.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSamplingRate.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessage.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessage.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessageResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessageResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocationResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocationResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIcon.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIcon.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIconResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIconResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayout.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayout.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalPropertiesResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalPropertiesResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimerResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimerResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBTResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBTResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLShowResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLShowResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSlider.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSlider.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSliderResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSliderResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonCapabilities.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonCapabilities.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonType.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonType.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeak.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeak.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeakResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeakResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLStartTime.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLStartTime.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamDelegate.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamDelegate.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButtonResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButtonResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncMsgVersion.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncMsgVersion.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPDataResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPDataResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemAction.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemAction.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemContext.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemContext.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequestResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequestResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTCPTransport.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTCPTransport.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunkFactory.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunkFactory.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTextAlignment.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTextAlignment.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTextFieldName.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTextFieldName.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTimer.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTimer.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEvent.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEvent.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTransportDelegate.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTriggerSource.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTriggerSource.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLURLRequestTask.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLURLRequestTask.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLURLSession.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLURLSession.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterface.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterface.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButtonResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButtonResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateMode.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateMode.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnList.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnList.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnListResponse.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnListResponse.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolHeader.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolHeader.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolMessage.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolMessage.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolHeader.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolHeader.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolMessage.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolMessage.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataActiveStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataActiveStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataEventStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataEventStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataNotificationStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataNotificationStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResultCode.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResultCode.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataType.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataType.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleType.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleType.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVrCapabilities.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVrCapabilities.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLWarningLightStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLWarningLightStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLWiperStatus.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SDLWiperStatus.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink/SmartDeviceLink.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/Info.plist delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLProtocolHeaderSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV1ProtocolHeaderSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV2ProtocolHeaderSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolMessageSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV1ProtocolMessageSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV2ProtocolMessageSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLAbstractProtocolSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLFunctionIDSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageAssemblerSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageDisassemblerSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolReceivedMessageRouterSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/ProxySpecs/SDLLockScreenManagerSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAmbientLightStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppHMITypeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppInterfaceUnregisteredReasonSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioStreamingStateSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioTypeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLBitsPerSampleSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonEventModeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonNameSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonPressModeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCarModeStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCharacterSetSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCompassDirectionSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLComponentVolumeStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDeviceLevelStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDimensionSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDisplayTypeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDriverDistractionStateSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLECallConfirmationStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLEmergencyEventTypeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFileTypeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFuelCutoffStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLGlobalProperySpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMILevelSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMIZoneCapabilitiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStableStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageFieldNameSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageTypeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLInteractionModeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardEventSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardLayoutSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeypressModeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLanguageSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLayoutModeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLockScreenStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMaintenanceModeStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMediaClockFormatSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPRNDLSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPermissionStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeQualificationStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPredefinedLayoutSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrerecordedSpeechSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrimaryAudioSource.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLRequestTypeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLResultSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSamplingRateSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSoftButtonTypeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSpeechCapabilitiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemAction.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemContextSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTBTStateSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextAlignmentSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextFieldNameSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTimerModeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTouchTypeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTriggerSource.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLUpdateModeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataActiveStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataEventStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataNotificationStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataResultCodeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataTypeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVrCapabilitiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWarningLightStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWiperStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/FactorySpecs/SDLRPCRequestFactorySpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAppInterfaceUnregisteredSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAudioPassThruSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonEventSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonPressSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnCommandSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnDriverDistractionSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnEncodedSyncPDataSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHMIStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHashChangeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnKeyboardInputSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLanguageChangeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLockScreenStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnPermissionsChangeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSyncPDataSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSystemRequestSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTBTClientStateSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTouchEventSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/PayloadSpecs/SDLRPCPayloadSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddCommandSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertManeuverSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLChangeRegistrationSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLCreateInteractionChoiceSetSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteCommandSpec.m delete mode 100755 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteFileSpec.m delete mode 100755 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m delete mode 100755 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteSubMenuSpec.m delete mode 100755 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDiagnosticMessageSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDialNumberSpec.m delete mode 100755 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEndAudioPassThruSpec.m delete mode 100755 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetDTCsSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLListFilesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformAudioPassThruSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformInteractionSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPutFileSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLReadDIDSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLRegisterAppInterfaceSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLResetGlobalPropertiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLScrollableMessageSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSendLocationSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetAppIconSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetDisplayLayoutSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetGlobalPropertiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowConstantTBTSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSliderSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSpeakSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeButtonSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSyncPDataSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSystemRequestSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnregisterAppInterfaceSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeButtonSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUpdateTurnListSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddCommandResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddSubMenuResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertManeuverResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLChangeRegistrationResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLCreateInteractionChoiceSetResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteCommandResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteFileResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteInteractionChoiceSetResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteSubMenuResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDiagnosticMessageResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDialNumberResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEncodedSyncPDataResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEndAudioPassThruResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGenericResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetDTCsResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLListFilesResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformAudioPassThruResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformInteractionResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLReadDIDResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLRegisterAppInterfaceResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLResetGlobalPropertiesResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLScrollableMessageResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSendLocationResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetAppIconResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetDisplayLayoutResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetGlobalPropertiesResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetMediaClockTimerResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowConstantTBTResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSliderResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSpeakResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeButtonResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeVehicleDataResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSyncPDataResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSystemRequestResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnregisterAppInterfaceResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeButtonResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUpdateTurnListResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAirbagStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAudioPassThruCapabilitiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBeltStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBodyInformationSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLButtonCapabilitiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLChoiceSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDIDResult.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceInfoSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDisplayCapabilitiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLECallInfoSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLEmergencyEventSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLGPSDataSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMIPermissionsSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHeadLampStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageFieldSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLKeyboardPropertiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMenuParamsSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMyKeySpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLParameterPermissionsSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPermissionItemSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPresetBankCapabilitiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLScreenParamsSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSingleTireStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonCapabilitiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLStartTimeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSyncMsgVersionSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTTSChunkSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTextFieldSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTireStatusSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchCoordSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventCapabilitiesSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTurnSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleDataResultSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleTypeSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVrHelpItemSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLEnumSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCMessageSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCNotificationSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCRequestSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCResponseSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCStructSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/SwiftSpec.swift delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLRequestTaskSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLSessionSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLObjectWithPrioritySpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLPrioritizedObjectCollectionSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/SDLGlobalsSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/SDLHexUtilitySpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/SDLJingleSpec.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/ConnectionIAPTableViewController.storyboard delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/ConnectionTCPTableViewController.storyboard delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/LaunchScreen.xib delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/Main.storyboard delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/AppDelegate.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/AppDelegate.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/Preferences.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/Preferences.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ProxyManager.h delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ProxyManager.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/main.m delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Images.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 SmartDeviceLink-iOS/SmartDeviceLink_Example/Info.plist create mode 100644 SmartDeviceLink/EAAccessory+SDLProtocols.h create mode 100644 SmartDeviceLink/EAAccessory+SDLProtocols.m create mode 100644 SmartDeviceLink/EAAccessoryManager+SDLProtocols.h create mode 100644 SmartDeviceLink/EAAccessoryManager+SDLProtocols.m create mode 100644 SmartDeviceLink/Info.plist create mode 100644 SmartDeviceLink/NSThread+ThreadIndex.h create mode 100644 SmartDeviceLink/NSThread+ThreadIndex.m create mode 100644 SmartDeviceLink/SDLAbstractProtocol.h create mode 100644 SmartDeviceLink/SDLAbstractProtocol.m create mode 100644 SmartDeviceLink/SDLAbstractTransport.h create mode 100644 SmartDeviceLink/SDLAbstractTransport.m create mode 100644 SmartDeviceLink/SDLAddCommand.h create mode 100644 SmartDeviceLink/SDLAddCommand.m create mode 100644 SmartDeviceLink/SDLAddCommandResponse.h create mode 100644 SmartDeviceLink/SDLAddCommandResponse.m create mode 100644 SmartDeviceLink/SDLAddSubMenu.h create mode 100644 SmartDeviceLink/SDLAddSubMenu.m create mode 100644 SmartDeviceLink/SDLAddSubMenuResponse.h create mode 100644 SmartDeviceLink/SDLAddSubMenuResponse.m create mode 100644 SmartDeviceLink/SDLAirbagStatus.h create mode 100644 SmartDeviceLink/SDLAirbagStatus.m create mode 100644 SmartDeviceLink/SDLAlert.h create mode 100644 SmartDeviceLink/SDLAlert.m create mode 100644 SmartDeviceLink/SDLAlertManeuver.h create mode 100644 SmartDeviceLink/SDLAlertManeuver.m create mode 100644 SmartDeviceLink/SDLAlertManeuverResponse.h create mode 100644 SmartDeviceLink/SDLAlertManeuverResponse.m create mode 100644 SmartDeviceLink/SDLAlertResponse.h create mode 100644 SmartDeviceLink/SDLAlertResponse.m create mode 100644 SmartDeviceLink/SDLAmbientLightStatus.h create mode 100644 SmartDeviceLink/SDLAmbientLightStatus.m create mode 100644 SmartDeviceLink/SDLAppHMIType.h create mode 100644 SmartDeviceLink/SDLAppHMIType.m create mode 100644 SmartDeviceLink/SDLAppInterfaceUnregisteredReason.h create mode 100644 SmartDeviceLink/SDLAppInterfaceUnregisteredReason.m create mode 100644 SmartDeviceLink/SDLAudioPassThruCapabilities.h create mode 100644 SmartDeviceLink/SDLAudioPassThruCapabilities.m create mode 100644 SmartDeviceLink/SDLAudioStreamingState.h create mode 100644 SmartDeviceLink/SDLAudioStreamingState.m create mode 100644 SmartDeviceLink/SDLAudioType.h create mode 100644 SmartDeviceLink/SDLAudioType.m create mode 100644 SmartDeviceLink/SDLBeltStatus.h create mode 100644 SmartDeviceLink/SDLBeltStatus.m create mode 100644 SmartDeviceLink/SDLBitsPerSample.h create mode 100644 SmartDeviceLink/SDLBitsPerSample.m create mode 100644 SmartDeviceLink/SDLBodyInformation.h create mode 100644 SmartDeviceLink/SDLBodyInformation.m create mode 100644 SmartDeviceLink/SDLButtonCapabilities.h create mode 100644 SmartDeviceLink/SDLButtonCapabilities.m create mode 100644 SmartDeviceLink/SDLButtonEventMode.h create mode 100644 SmartDeviceLink/SDLButtonEventMode.m create mode 100644 SmartDeviceLink/SDLButtonName.h create mode 100644 SmartDeviceLink/SDLButtonName.m create mode 100644 SmartDeviceLink/SDLButtonPressMode.h create mode 100644 SmartDeviceLink/SDLButtonPressMode.m create mode 100644 SmartDeviceLink/SDLCarModeStatus.h create mode 100644 SmartDeviceLink/SDLCarModeStatus.m create mode 100644 SmartDeviceLink/SDLChangeRegistration.h create mode 100644 SmartDeviceLink/SDLChangeRegistration.m create mode 100644 SmartDeviceLink/SDLChangeRegistrationResponse.h create mode 100644 SmartDeviceLink/SDLChangeRegistrationResponse.m create mode 100644 SmartDeviceLink/SDLCharacterSet.h create mode 100644 SmartDeviceLink/SDLCharacterSet.m create mode 100644 SmartDeviceLink/SDLChoice.h create mode 100644 SmartDeviceLink/SDLChoice.m create mode 100644 SmartDeviceLink/SDLClusterModeStatus.h create mode 100644 SmartDeviceLink/SDLClusterModeStatus.m create mode 100644 SmartDeviceLink/SDLCompassDirection.h create mode 100644 SmartDeviceLink/SDLCompassDirection.m create mode 100644 SmartDeviceLink/SDLComponentVolumeStatus.h create mode 100644 SmartDeviceLink/SDLComponentVolumeStatus.m create mode 100644 SmartDeviceLink/SDLConsoleController.h create mode 100644 SmartDeviceLink/SDLConsoleController.m create mode 100644 SmartDeviceLink/SDLCreateInteractionChoiceSet.h create mode 100644 SmartDeviceLink/SDLCreateInteractionChoiceSet.m create mode 100644 SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.h create mode 100644 SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.m create mode 100644 SmartDeviceLink/SDLDIDResult.h create mode 100644 SmartDeviceLink/SDLDIDResult.m create mode 100644 SmartDeviceLink/SDLDebugTool.h create mode 100644 SmartDeviceLink/SDLDebugTool.m create mode 100644 SmartDeviceLink/SDLDebugToolConsole.h create mode 100644 SmartDeviceLink/SDLDecoder.h create mode 100644 SmartDeviceLink/SDLDeleteCommand.h create mode 100644 SmartDeviceLink/SDLDeleteCommand.m create mode 100644 SmartDeviceLink/SDLDeleteCommandResponse.h create mode 100644 SmartDeviceLink/SDLDeleteCommandResponse.m create mode 100644 SmartDeviceLink/SDLDeleteFile.h create mode 100644 SmartDeviceLink/SDLDeleteFile.m create mode 100644 SmartDeviceLink/SDLDeleteFileResponse.h create mode 100644 SmartDeviceLink/SDLDeleteFileResponse.m create mode 100644 SmartDeviceLink/SDLDeleteInteractionChoiceSet.h create mode 100644 SmartDeviceLink/SDLDeleteInteractionChoiceSet.m create mode 100644 SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.h create mode 100644 SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.m create mode 100644 SmartDeviceLink/SDLDeleteSubMenu.h create mode 100644 SmartDeviceLink/SDLDeleteSubMenu.m create mode 100644 SmartDeviceLink/SDLDeleteSubMenuResponse.h create mode 100644 SmartDeviceLink/SDLDeleteSubMenuResponse.m create mode 100644 SmartDeviceLink/SDLDeviceInfo.h create mode 100644 SmartDeviceLink/SDLDeviceInfo.m create mode 100644 SmartDeviceLink/SDLDeviceLevelStatus.h create mode 100644 SmartDeviceLink/SDLDeviceLevelStatus.m create mode 100644 SmartDeviceLink/SDLDeviceStatus.h create mode 100644 SmartDeviceLink/SDLDeviceStatus.m create mode 100644 SmartDeviceLink/SDLDiagnosticMessage.h create mode 100644 SmartDeviceLink/SDLDiagnosticMessage.m create mode 100644 SmartDeviceLink/SDLDiagnosticMessageResponse.h create mode 100644 SmartDeviceLink/SDLDiagnosticMessageResponse.m create mode 100644 SmartDeviceLink/SDLDialNumber.h create mode 100644 SmartDeviceLink/SDLDialNumber.m create mode 100644 SmartDeviceLink/SDLDialNumberResponse.h create mode 100644 SmartDeviceLink/SDLDialNumberResponse.m create mode 100644 SmartDeviceLink/SDLDimension.h create mode 100644 SmartDeviceLink/SDLDimension.m create mode 100644 SmartDeviceLink/SDLDisplayCapabilities.h create mode 100644 SmartDeviceLink/SDLDisplayCapabilities.m create mode 100644 SmartDeviceLink/SDLDisplayType.h create mode 100644 SmartDeviceLink/SDLDisplayType.m create mode 100644 SmartDeviceLink/SDLDriverDistractionState.h create mode 100644 SmartDeviceLink/SDLDriverDistractionState.m create mode 100644 SmartDeviceLink/SDLECallConfirmationStatus.h create mode 100644 SmartDeviceLink/SDLECallConfirmationStatus.m create mode 100644 SmartDeviceLink/SDLECallInfo.h create mode 100644 SmartDeviceLink/SDLECallInfo.m create mode 100644 SmartDeviceLink/SDLEmergencyEvent.h create mode 100644 SmartDeviceLink/SDLEmergencyEvent.m create mode 100644 SmartDeviceLink/SDLEmergencyEventType.h create mode 100644 SmartDeviceLink/SDLEmergencyEventType.m create mode 100644 SmartDeviceLink/SDLEncodedSyncPData.h create mode 100644 SmartDeviceLink/SDLEncodedSyncPData.m create mode 100644 SmartDeviceLink/SDLEncodedSyncPDataResponse.h create mode 100644 SmartDeviceLink/SDLEncodedSyncPDataResponse.m create mode 100644 SmartDeviceLink/SDLEncoder.h create mode 100644 SmartDeviceLink/SDLEndAudioPassThru.h create mode 100644 SmartDeviceLink/SDLEndAudioPassThru.m create mode 100644 SmartDeviceLink/SDLEndAudioPassThruResponse.h create mode 100644 SmartDeviceLink/SDLEndAudioPassThruResponse.m create mode 100644 SmartDeviceLink/SDLEnum.h create mode 100644 SmartDeviceLink/SDLEnum.m create mode 100644 SmartDeviceLink/SDLFileType.h create mode 100644 SmartDeviceLink/SDLFileType.m create mode 100644 SmartDeviceLink/SDLFuelCutoffStatus.h create mode 100644 SmartDeviceLink/SDLFuelCutoffStatus.m create mode 100644 SmartDeviceLink/SDLFunctionID.h create mode 100644 SmartDeviceLink/SDLFunctionID.m create mode 100644 SmartDeviceLink/SDLGPSData.h create mode 100644 SmartDeviceLink/SDLGPSData.m create mode 100644 SmartDeviceLink/SDLGenericResponse.h create mode 100644 SmartDeviceLink/SDLGenericResponse.m create mode 100644 SmartDeviceLink/SDLGetDTCs.h create mode 100644 SmartDeviceLink/SDLGetDTCs.m create mode 100644 SmartDeviceLink/SDLGetDTCsResponse.h create mode 100644 SmartDeviceLink/SDLGetDTCsResponse.m create mode 100644 SmartDeviceLink/SDLGetVehicleData.h create mode 100644 SmartDeviceLink/SDLGetVehicleData.m create mode 100644 SmartDeviceLink/SDLGetVehicleDataResponse.h create mode 100644 SmartDeviceLink/SDLGetVehicleDataResponse.m create mode 100644 SmartDeviceLink/SDLGlobalProperty.h create mode 100644 SmartDeviceLink/SDLGlobalProperty.m create mode 100644 SmartDeviceLink/SDLGlobals.h create mode 100644 SmartDeviceLink/SDLGlobals.m create mode 100644 SmartDeviceLink/SDLHMICapabilities.h create mode 100644 SmartDeviceLink/SDLHMICapabilities.m create mode 100644 SmartDeviceLink/SDLHMILevel.h create mode 100644 SmartDeviceLink/SDLHMILevel.m create mode 100644 SmartDeviceLink/SDLHMIPermissions.h create mode 100644 SmartDeviceLink/SDLHMIPermissions.m create mode 100644 SmartDeviceLink/SDLHMIZoneCapabilities.h create mode 100644 SmartDeviceLink/SDLHMIZoneCapabilities.m create mode 100644 SmartDeviceLink/SDLHeadLampStatus.h create mode 100644 SmartDeviceLink/SDLHeadLampStatus.m create mode 100644 SmartDeviceLink/SDLHexUtility.h create mode 100644 SmartDeviceLink/SDLHexUtility.m create mode 100644 SmartDeviceLink/SDLIAPSession.h create mode 100644 SmartDeviceLink/SDLIAPSession.m create mode 100644 SmartDeviceLink/SDLIAPSessionDelegate.h create mode 100644 SmartDeviceLink/SDLIAPTransport.h create mode 100644 SmartDeviceLink/SDLIAPTransport.m create mode 100644 SmartDeviceLink/SDLIgnitionStableStatus.h create mode 100644 SmartDeviceLink/SDLIgnitionStableStatus.m create mode 100644 SmartDeviceLink/SDLIgnitionStatus.h create mode 100644 SmartDeviceLink/SDLIgnitionStatus.m create mode 100644 SmartDeviceLink/SDLImage.h create mode 100644 SmartDeviceLink/SDLImage.m create mode 100644 SmartDeviceLink/SDLImageField.h create mode 100644 SmartDeviceLink/SDLImageField.m create mode 100644 SmartDeviceLink/SDLImageFieldName.h create mode 100644 SmartDeviceLink/SDLImageFieldName.m create mode 100644 SmartDeviceLink/SDLImageResolution.h create mode 100644 SmartDeviceLink/SDLImageResolution.m create mode 100644 SmartDeviceLink/SDLImageType.h create mode 100644 SmartDeviceLink/SDLImageType.m create mode 100644 SmartDeviceLink/SDLInteractionMode.h create mode 100644 SmartDeviceLink/SDLInteractionMode.m create mode 100644 SmartDeviceLink/SDLJingle.h create mode 100644 SmartDeviceLink/SDLJingle.m create mode 100644 SmartDeviceLink/SDLJsonDecoder.h create mode 100644 SmartDeviceLink/SDLJsonDecoder.m create mode 100644 SmartDeviceLink/SDLJsonEncoder.h create mode 100644 SmartDeviceLink/SDLJsonEncoder.m create mode 100644 SmartDeviceLink/SDLKeyboardEvent.h create mode 100644 SmartDeviceLink/SDLKeyboardEvent.m create mode 100644 SmartDeviceLink/SDLKeyboardLayout.h create mode 100644 SmartDeviceLink/SDLKeyboardLayout.m create mode 100644 SmartDeviceLink/SDLKeyboardProperties.h create mode 100644 SmartDeviceLink/SDLKeyboardProperties.m create mode 100644 SmartDeviceLink/SDLKeypressMode.h create mode 100644 SmartDeviceLink/SDLKeypressMode.m create mode 100644 SmartDeviceLink/SDLLanguage.h create mode 100644 SmartDeviceLink/SDLLanguage.m create mode 100644 SmartDeviceLink/SDLLayoutMode.h create mode 100644 SmartDeviceLink/SDLLayoutMode.m create mode 100644 SmartDeviceLink/SDLListFiles.h create mode 100644 SmartDeviceLink/SDLListFiles.m create mode 100644 SmartDeviceLink/SDLListFilesResponse.h create mode 100644 SmartDeviceLink/SDLListFilesResponse.m create mode 100644 SmartDeviceLink/SDLLockScreenManager.h create mode 100644 SmartDeviceLink/SDLLockScreenManager.m create mode 100644 SmartDeviceLink/SDLLockScreenStatus.h create mode 100644 SmartDeviceLink/SDLLockScreenStatus.m create mode 100644 SmartDeviceLink/SDLMaintenanceModeStatus.h create mode 100644 SmartDeviceLink/SDLMaintenanceModeStatus.m create mode 100644 SmartDeviceLink/SDLMediaClockFormat.h create mode 100644 SmartDeviceLink/SDLMediaClockFormat.m create mode 100644 SmartDeviceLink/SDLMenuParams.h create mode 100644 SmartDeviceLink/SDLMenuParams.m create mode 100644 SmartDeviceLink/SDLMyKey.h create mode 100644 SmartDeviceLink/SDLMyKey.m create mode 100644 SmartDeviceLink/SDLNames.h create mode 100644 SmartDeviceLink/SDLObjectWithPriority.h create mode 100644 SmartDeviceLink/SDLObjectWithPriority.m create mode 100644 SmartDeviceLink/SDLOnAppInterfaceUnregistered.h create mode 100644 SmartDeviceLink/SDLOnAppInterfaceUnregistered.m create mode 100644 SmartDeviceLink/SDLOnAudioPassThru.h create mode 100644 SmartDeviceLink/SDLOnAudioPassThru.m create mode 100644 SmartDeviceLink/SDLOnButtonEvent.h create mode 100644 SmartDeviceLink/SDLOnButtonEvent.m create mode 100644 SmartDeviceLink/SDLOnButtonPress.h create mode 100644 SmartDeviceLink/SDLOnButtonPress.m create mode 100644 SmartDeviceLink/SDLOnCommand.h create mode 100644 SmartDeviceLink/SDLOnCommand.m create mode 100644 SmartDeviceLink/SDLOnDriverDistraction.h create mode 100644 SmartDeviceLink/SDLOnDriverDistraction.m create mode 100644 SmartDeviceLink/SDLOnEncodedSyncPData.h create mode 100644 SmartDeviceLink/SDLOnEncodedSyncPData.m create mode 100644 SmartDeviceLink/SDLOnHMIStatus.h create mode 100644 SmartDeviceLink/SDLOnHMIStatus.m create mode 100644 SmartDeviceLink/SDLOnHashChange.h create mode 100644 SmartDeviceLink/SDLOnHashChange.m create mode 100644 SmartDeviceLink/SDLOnKeyboardInput.h create mode 100644 SmartDeviceLink/SDLOnKeyboardInput.m create mode 100644 SmartDeviceLink/SDLOnLanguageChange.h create mode 100644 SmartDeviceLink/SDLOnLanguageChange.m create mode 100644 SmartDeviceLink/SDLOnLockScreenStatus.h create mode 100644 SmartDeviceLink/SDLOnLockScreenStatus.m create mode 100644 SmartDeviceLink/SDLOnPermissionsChange.h create mode 100644 SmartDeviceLink/SDLOnPermissionsChange.m create mode 100644 SmartDeviceLink/SDLOnSyncPData.h create mode 100644 SmartDeviceLink/SDLOnSyncPData.m create mode 100644 SmartDeviceLink/SDLOnSystemRequest.h create mode 100644 SmartDeviceLink/SDLOnSystemRequest.m create mode 100644 SmartDeviceLink/SDLOnTBTClientState.h create mode 100644 SmartDeviceLink/SDLOnTBTClientState.m create mode 100644 SmartDeviceLink/SDLOnTouchEvent.h create mode 100644 SmartDeviceLink/SDLOnTouchEvent.m create mode 100644 SmartDeviceLink/SDLOnVehicleData.h create mode 100644 SmartDeviceLink/SDLOnVehicleData.m create mode 100644 SmartDeviceLink/SDLPRNDL.h create mode 100644 SmartDeviceLink/SDLPRNDL.m create mode 100644 SmartDeviceLink/SDLParameterPermissions.h create mode 100644 SmartDeviceLink/SDLParameterPermissions.m create mode 100644 SmartDeviceLink/SDLPerformAudioPassThru.h create mode 100644 SmartDeviceLink/SDLPerformAudioPassThru.m create mode 100644 SmartDeviceLink/SDLPerformAudioPassThruResponse.h create mode 100644 SmartDeviceLink/SDLPerformAudioPassThruResponse.m create mode 100644 SmartDeviceLink/SDLPerformInteraction.h create mode 100644 SmartDeviceLink/SDLPerformInteraction.m create mode 100644 SmartDeviceLink/SDLPerformInteractionResponse.h create mode 100644 SmartDeviceLink/SDLPerformInteractionResponse.m create mode 100644 SmartDeviceLink/SDLPermissionItem.h create mode 100644 SmartDeviceLink/SDLPermissionItem.m create mode 100644 SmartDeviceLink/SDLPermissionStatus.h create mode 100644 SmartDeviceLink/SDLPermissionStatus.m create mode 100644 SmartDeviceLink/SDLPolicyDataParser.h create mode 100644 SmartDeviceLink/SDLPolicyDataParser.m create mode 100644 SmartDeviceLink/SDLPowerModeQualificationStatus.h create mode 100644 SmartDeviceLink/SDLPowerModeQualificationStatus.m create mode 100644 SmartDeviceLink/SDLPowerModeStatus.h create mode 100644 SmartDeviceLink/SDLPowerModeStatus.m create mode 100644 SmartDeviceLink/SDLPredefinedLayout.h create mode 100644 SmartDeviceLink/SDLPredefinedLayout.m create mode 100644 SmartDeviceLink/SDLPrerecordedSpeech.h create mode 100644 SmartDeviceLink/SDLPrerecordedSpeech.m create mode 100644 SmartDeviceLink/SDLPresetBankCapabilities.h create mode 100644 SmartDeviceLink/SDLPresetBankCapabilities.m create mode 100644 SmartDeviceLink/SDLPrimaryAudioSource.h create mode 100644 SmartDeviceLink/SDLPrimaryAudioSource.m create mode 100644 SmartDeviceLink/SDLPrioritizedObjectCollection.h create mode 100644 SmartDeviceLink/SDLPrioritizedObjectCollection.m create mode 100644 SmartDeviceLink/SDLProtocol.h create mode 100644 SmartDeviceLink/SDLProtocol.m create mode 100644 SmartDeviceLink/SDLProtocolHeader.h create mode 100644 SmartDeviceLink/SDLProtocolHeader.m create mode 100644 SmartDeviceLink/SDLProtocolListener.h create mode 100644 SmartDeviceLink/SDLProtocolMessage.h create mode 100644 SmartDeviceLink/SDLProtocolMessage.m create mode 100644 SmartDeviceLink/SDLProtocolMessageAssembler.h create mode 100644 SmartDeviceLink/SDLProtocolMessageAssembler.m create mode 100644 SmartDeviceLink/SDLProtocolMessageDisassembler.h create mode 100644 SmartDeviceLink/SDLProtocolMessageDisassembler.m create mode 100644 SmartDeviceLink/SDLProtocolReceivedMessageRouter.h create mode 100644 SmartDeviceLink/SDLProtocolReceivedMessageRouter.m create mode 100644 SmartDeviceLink/SDLProxy.h create mode 100644 SmartDeviceLink/SDLProxy.m create mode 100644 SmartDeviceLink/SDLProxyFactory.h create mode 100644 SmartDeviceLink/SDLProxyFactory.m create mode 100644 SmartDeviceLink/SDLProxyListener.h create mode 100644 SmartDeviceLink/SDLPutFile.h create mode 100644 SmartDeviceLink/SDLPutFile.m create mode 100644 SmartDeviceLink/SDLPutFileResponse.h create mode 100644 SmartDeviceLink/SDLPutFileResponse.m create mode 100644 SmartDeviceLink/SDLRPCMessage.h create mode 100644 SmartDeviceLink/SDLRPCMessage.m create mode 100644 SmartDeviceLink/SDLRPCMessageType.h create mode 100644 SmartDeviceLink/SDLRPCNotification.h create mode 100644 SmartDeviceLink/SDLRPCNotification.m create mode 100644 SmartDeviceLink/SDLRPCPayload.h create mode 100644 SmartDeviceLink/SDLRPCPayload.m create mode 100644 SmartDeviceLink/SDLRPCRequest.h create mode 100644 SmartDeviceLink/SDLRPCRequest.m create mode 100644 SmartDeviceLink/SDLRPCRequestFactory.h create mode 100644 SmartDeviceLink/SDLRPCRequestFactory.m create mode 100644 SmartDeviceLink/SDLRPCResponse.h create mode 100644 SmartDeviceLink/SDLRPCResponse.m create mode 100644 SmartDeviceLink/SDLRPCStruct.h create mode 100644 SmartDeviceLink/SDLRPCStruct.m create mode 100644 SmartDeviceLink/SDLReadDID.h create mode 100644 SmartDeviceLink/SDLReadDID.m create mode 100644 SmartDeviceLink/SDLReadDIDResponse.h create mode 100644 SmartDeviceLink/SDLReadDIDResponse.m create mode 100644 SmartDeviceLink/SDLRegisterAppInterface.h create mode 100644 SmartDeviceLink/SDLRegisterAppInterface.m create mode 100644 SmartDeviceLink/SDLRegisterAppInterfaceResponse.h create mode 100644 SmartDeviceLink/SDLRegisterAppInterfaceResponse.m create mode 100644 SmartDeviceLink/SDLRequestType.h create mode 100644 SmartDeviceLink/SDLRequestType.m create mode 100644 SmartDeviceLink/SDLResetGlobalProperties.h create mode 100644 SmartDeviceLink/SDLResetGlobalProperties.m create mode 100644 SmartDeviceLink/SDLResetGlobalPropertiesResponse.h create mode 100644 SmartDeviceLink/SDLResetGlobalPropertiesResponse.m create mode 100644 SmartDeviceLink/SDLResult.h create mode 100644 SmartDeviceLink/SDLResult.m create mode 100644 SmartDeviceLink/SDLSamplingRate.h create mode 100644 SmartDeviceLink/SDLSamplingRate.m create mode 100644 SmartDeviceLink/SDLScreenParams.h create mode 100644 SmartDeviceLink/SDLScreenParams.m create mode 100644 SmartDeviceLink/SDLScrollableMessage.h create mode 100644 SmartDeviceLink/SDLScrollableMessage.m create mode 100644 SmartDeviceLink/SDLScrollableMessageResponse.h create mode 100644 SmartDeviceLink/SDLScrollableMessageResponse.m create mode 100644 SmartDeviceLink/SDLSendLocation.h create mode 100644 SmartDeviceLink/SDLSendLocation.m create mode 100644 SmartDeviceLink/SDLSendLocationResponse.h create mode 100644 SmartDeviceLink/SDLSendLocationResponse.m create mode 100644 SmartDeviceLink/SDLSetAppIcon.h create mode 100644 SmartDeviceLink/SDLSetAppIcon.m create mode 100644 SmartDeviceLink/SDLSetAppIconResponse.h create mode 100644 SmartDeviceLink/SDLSetAppIconResponse.m create mode 100644 SmartDeviceLink/SDLSetDisplayLayout.h create mode 100644 SmartDeviceLink/SDLSetDisplayLayout.m create mode 100644 SmartDeviceLink/SDLSetDisplayLayoutResponse.h create mode 100644 SmartDeviceLink/SDLSetDisplayLayoutResponse.m create mode 100644 SmartDeviceLink/SDLSetGlobalProperties.h create mode 100644 SmartDeviceLink/SDLSetGlobalProperties.m create mode 100644 SmartDeviceLink/SDLSetGlobalPropertiesResponse.h create mode 100644 SmartDeviceLink/SDLSetGlobalPropertiesResponse.m create mode 100644 SmartDeviceLink/SDLSetMediaClockTimer.h create mode 100644 SmartDeviceLink/SDLSetMediaClockTimer.m create mode 100644 SmartDeviceLink/SDLSetMediaClockTimerResponse.h create mode 100644 SmartDeviceLink/SDLSetMediaClockTimerResponse.m create mode 100644 SmartDeviceLink/SDLShow.h create mode 100644 SmartDeviceLink/SDLShow.m create mode 100644 SmartDeviceLink/SDLShowConstantTBT.h create mode 100644 SmartDeviceLink/SDLShowConstantTBT.m create mode 100644 SmartDeviceLink/SDLShowConstantTBTResponse.h create mode 100644 SmartDeviceLink/SDLShowConstantTBTResponse.m create mode 100644 SmartDeviceLink/SDLShowResponse.h create mode 100644 SmartDeviceLink/SDLShowResponse.m create mode 100644 SmartDeviceLink/SDLSingleTireStatus.h create mode 100644 SmartDeviceLink/SDLSingleTireStatus.m create mode 100644 SmartDeviceLink/SDLSiphonServer.h create mode 100644 SmartDeviceLink/SDLSiphonServer.m create mode 100644 SmartDeviceLink/SDLSlider.h create mode 100644 SmartDeviceLink/SDLSlider.m create mode 100644 SmartDeviceLink/SDLSliderResponse.h create mode 100644 SmartDeviceLink/SDLSliderResponse.m create mode 100644 SmartDeviceLink/SDLSoftButton.h create mode 100644 SmartDeviceLink/SDLSoftButton.m create mode 100644 SmartDeviceLink/SDLSoftButtonCapabilities.h create mode 100644 SmartDeviceLink/SDLSoftButtonCapabilities.m create mode 100644 SmartDeviceLink/SDLSoftButtonType.h create mode 100644 SmartDeviceLink/SDLSoftButtonType.m create mode 100644 SmartDeviceLink/SDLSpeak.h create mode 100644 SmartDeviceLink/SDLSpeak.m create mode 100644 SmartDeviceLink/SDLSpeakResponse.h create mode 100644 SmartDeviceLink/SDLSpeakResponse.m create mode 100644 SmartDeviceLink/SDLSpeechCapabilities.h create mode 100644 SmartDeviceLink/SDLSpeechCapabilities.m create mode 100644 SmartDeviceLink/SDLStartTime.h create mode 100644 SmartDeviceLink/SDLStartTime.m create mode 100644 SmartDeviceLink/SDLStreamDelegate.h create mode 100644 SmartDeviceLink/SDLStreamDelegate.m create mode 100644 SmartDeviceLink/SDLStreamingMediaManager.h create mode 100644 SmartDeviceLink/SDLStreamingMediaManager.m create mode 100644 SmartDeviceLink/SDLSubscribeButton.h create mode 100644 SmartDeviceLink/SDLSubscribeButton.m create mode 100644 SmartDeviceLink/SDLSubscribeButtonResponse.h create mode 100644 SmartDeviceLink/SDLSubscribeButtonResponse.m create mode 100644 SmartDeviceLink/SDLSubscribeVehicleData.h create mode 100644 SmartDeviceLink/SDLSubscribeVehicleData.m create mode 100644 SmartDeviceLink/SDLSubscribeVehicleDataResponse.h create mode 100644 SmartDeviceLink/SDLSubscribeVehicleDataResponse.m create mode 100644 SmartDeviceLink/SDLSyncMsgVersion.h create mode 100644 SmartDeviceLink/SDLSyncMsgVersion.m create mode 100644 SmartDeviceLink/SDLSyncPData.h create mode 100644 SmartDeviceLink/SDLSyncPData.m create mode 100644 SmartDeviceLink/SDLSyncPDataResponse.h create mode 100644 SmartDeviceLink/SDLSyncPDataResponse.m create mode 100644 SmartDeviceLink/SDLSystemAction.h create mode 100644 SmartDeviceLink/SDLSystemAction.m create mode 100644 SmartDeviceLink/SDLSystemContext.h create mode 100644 SmartDeviceLink/SDLSystemContext.m create mode 100644 SmartDeviceLink/SDLSystemRequest.h create mode 100644 SmartDeviceLink/SDLSystemRequest.m create mode 100644 SmartDeviceLink/SDLSystemRequestResponse.h create mode 100644 SmartDeviceLink/SDLSystemRequestResponse.m create mode 100644 SmartDeviceLink/SDLTBTState.h create mode 100644 SmartDeviceLink/SDLTBTState.m create mode 100644 SmartDeviceLink/SDLTCPTransport.h create mode 100644 SmartDeviceLink/SDLTCPTransport.m create mode 100644 SmartDeviceLink/SDLTTSChunk.h create mode 100644 SmartDeviceLink/SDLTTSChunk.m create mode 100644 SmartDeviceLink/SDLTTSChunkFactory.h create mode 100644 SmartDeviceLink/SDLTTSChunkFactory.m create mode 100644 SmartDeviceLink/SDLTextAlignment.h create mode 100644 SmartDeviceLink/SDLTextAlignment.m create mode 100644 SmartDeviceLink/SDLTextField.h create mode 100644 SmartDeviceLink/SDLTextField.m create mode 100644 SmartDeviceLink/SDLTextFieldName.h create mode 100644 SmartDeviceLink/SDLTextFieldName.m create mode 100644 SmartDeviceLink/SDLTimer.h create mode 100644 SmartDeviceLink/SDLTimer.m create mode 100644 SmartDeviceLink/SDLTimerMode.h create mode 100644 SmartDeviceLink/SDLTimerMode.m create mode 100644 SmartDeviceLink/SDLTireStatus.h create mode 100644 SmartDeviceLink/SDLTireStatus.m create mode 100644 SmartDeviceLink/SDLTouchCoord.h create mode 100644 SmartDeviceLink/SDLTouchCoord.m create mode 100644 SmartDeviceLink/SDLTouchEvent.h create mode 100644 SmartDeviceLink/SDLTouchEvent.m create mode 100644 SmartDeviceLink/SDLTouchEventCapabilities.h create mode 100644 SmartDeviceLink/SDLTouchEventCapabilities.m create mode 100644 SmartDeviceLink/SDLTouchType.h create mode 100644 SmartDeviceLink/SDLTouchType.m create mode 100644 SmartDeviceLink/SDLTransportDelegate.h create mode 100644 SmartDeviceLink/SDLTriggerSource.h create mode 100644 SmartDeviceLink/SDLTriggerSource.m create mode 100644 SmartDeviceLink/SDLTurn.h create mode 100644 SmartDeviceLink/SDLTurn.m create mode 100644 SmartDeviceLink/SDLURLRequestTask.h create mode 100644 SmartDeviceLink/SDLURLRequestTask.m create mode 100644 SmartDeviceLink/SDLURLSession.h create mode 100644 SmartDeviceLink/SDLURLSession.m create mode 100644 SmartDeviceLink/SDLUnregisterAppInterface.h create mode 100644 SmartDeviceLink/SDLUnregisterAppInterface.m create mode 100644 SmartDeviceLink/SDLUnregisterAppInterfaceResponse.h create mode 100644 SmartDeviceLink/SDLUnregisterAppInterfaceResponse.m create mode 100644 SmartDeviceLink/SDLUnsubscribeButton.h create mode 100644 SmartDeviceLink/SDLUnsubscribeButton.m create mode 100644 SmartDeviceLink/SDLUnsubscribeButtonResponse.h create mode 100644 SmartDeviceLink/SDLUnsubscribeButtonResponse.m create mode 100644 SmartDeviceLink/SDLUnsubscribeVehicleData.h create mode 100644 SmartDeviceLink/SDLUnsubscribeVehicleData.m create mode 100644 SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h create mode 100644 SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m create mode 100644 SmartDeviceLink/SDLUpdateMode.h create mode 100644 SmartDeviceLink/SDLUpdateMode.m create mode 100644 SmartDeviceLink/SDLUpdateTurnList.h create mode 100644 SmartDeviceLink/SDLUpdateTurnList.m create mode 100644 SmartDeviceLink/SDLUpdateTurnListResponse.h create mode 100644 SmartDeviceLink/SDLUpdateTurnListResponse.m create mode 100644 SmartDeviceLink/SDLV1ProtocolHeader.h create mode 100644 SmartDeviceLink/SDLV1ProtocolHeader.m create mode 100644 SmartDeviceLink/SDLV1ProtocolMessage.h create mode 100644 SmartDeviceLink/SDLV1ProtocolMessage.m create mode 100644 SmartDeviceLink/SDLV2ProtocolHeader.h create mode 100644 SmartDeviceLink/SDLV2ProtocolHeader.m create mode 100644 SmartDeviceLink/SDLV2ProtocolMessage.h create mode 100644 SmartDeviceLink/SDLV2ProtocolMessage.m create mode 100644 SmartDeviceLink/SDLVehicleDataActiveStatus.h create mode 100644 SmartDeviceLink/SDLVehicleDataActiveStatus.m create mode 100644 SmartDeviceLink/SDLVehicleDataEventStatus.h create mode 100644 SmartDeviceLink/SDLVehicleDataEventStatus.m create mode 100644 SmartDeviceLink/SDLVehicleDataNotificationStatus.h create mode 100644 SmartDeviceLink/SDLVehicleDataNotificationStatus.m create mode 100644 SmartDeviceLink/SDLVehicleDataResult.h create mode 100644 SmartDeviceLink/SDLVehicleDataResult.m create mode 100644 SmartDeviceLink/SDLVehicleDataResultCode.h create mode 100644 SmartDeviceLink/SDLVehicleDataResultCode.m create mode 100644 SmartDeviceLink/SDLVehicleDataStatus.h create mode 100644 SmartDeviceLink/SDLVehicleDataStatus.m create mode 100644 SmartDeviceLink/SDLVehicleDataType.h create mode 100644 SmartDeviceLink/SDLVehicleDataType.m create mode 100644 SmartDeviceLink/SDLVehicleType.h create mode 100644 SmartDeviceLink/SDLVehicleType.m create mode 100644 SmartDeviceLink/SDLVrCapabilities.h create mode 100644 SmartDeviceLink/SDLVrCapabilities.m create mode 100644 SmartDeviceLink/SDLVrHelpItem.h create mode 100644 SmartDeviceLink/SDLVrHelpItem.m create mode 100644 SmartDeviceLink/SDLWarningLightStatus.h create mode 100644 SmartDeviceLink/SDLWarningLightStatus.m create mode 100644 SmartDeviceLink/SDLWiperStatus.h create mode 100644 SmartDeviceLink/SDLWiperStatus.m create mode 100644 SmartDeviceLink/SmartDeviceLink.h create mode 100644 SmartDeviceLinkTests/Info.plist create mode 100644 SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLProtocolHeaderSpec.m create mode 100644 SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV1ProtocolHeaderSpec.m create mode 100644 SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV2ProtocolHeaderSpec.m create mode 100644 SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolMessageSpec.m create mode 100644 SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m create mode 100644 SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV1ProtocolMessageSpec.m create mode 100644 SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV2ProtocolMessageSpec.m create mode 100644 SmartDeviceLinkTests/ProtocolSpecs/SDLAbstractProtocolSpec.m create mode 100644 SmartDeviceLinkTests/ProtocolSpecs/SDLFunctionIDSpec.m create mode 100644 SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageAssemblerSpec.m create mode 100644 SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageDisassemblerSpec.m create mode 100644 SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolReceivedMessageRouterSpec.m create mode 100644 SmartDeviceLinkTests/ProxySpecs/SDLLockScreenManagerSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAmbientLightStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppHMITypeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppInterfaceUnregisteredReasonSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioStreamingStateSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioTypeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLBitsPerSampleSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonEventModeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonNameSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonPressModeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCarModeStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCharacterSetSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCompassDirectionSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLComponentVolumeStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDeviceLevelStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDimensionSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDisplayTypeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDriverDistractionStateSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLECallConfirmationStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLEmergencyEventTypeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFileTypeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFuelCutoffStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLGlobalProperySpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMILevelSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMIZoneCapabilitiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStableStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageFieldNameSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageTypeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLInteractionModeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardEventSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardLayoutSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeypressModeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLanguageSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLayoutModeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLockScreenStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMaintenanceModeStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMediaClockFormatSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPRNDLSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPermissionStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeQualificationStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPredefinedLayoutSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrerecordedSpeechSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrimaryAudioSource.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLRequestTypeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLResultSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSamplingRateSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSoftButtonTypeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSpeechCapabilitiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemAction.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemContextSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTBTStateSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextAlignmentSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextFieldNameSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTimerModeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTouchTypeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTriggerSource.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLUpdateModeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataActiveStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataEventStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataNotificationStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataResultCodeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataTypeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVrCapabilitiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWarningLightStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWiperStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/FactorySpecs/SDLRPCRequestFactorySpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAppInterfaceUnregisteredSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAudioPassThruSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonEventSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonPressSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnCommandSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnDriverDistractionSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnEncodedSyncPDataSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHMIStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHashChangeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnKeyboardInputSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLanguageChangeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLockScreenStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnPermissionsChangeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSyncPDataSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSystemRequestSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTBTClientStateSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTouchEventSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/PayloadSpecs/SDLRPCPayloadSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddCommandSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertManeuverSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLChangeRegistrationSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLCreateInteractionChoiceSetSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteCommandSpec.m create mode 100755 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteFileSpec.m create mode 100755 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m create mode 100755 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteSubMenuSpec.m create mode 100755 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDiagnosticMessageSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDialNumberSpec.m create mode 100755 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEndAudioPassThruSpec.m create mode 100755 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetDTCsSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLListFilesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformAudioPassThruSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformInteractionSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPutFileSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLReadDIDSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLRegisterAppInterfaceSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLResetGlobalPropertiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLScrollableMessageSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSendLocationSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetAppIconSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetDisplayLayoutSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetGlobalPropertiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowConstantTBTSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSliderSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSpeakSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeButtonSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSyncPDataSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSystemRequestSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnregisterAppInterfaceSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeButtonSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUpdateTurnListSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddCommandResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddSubMenuResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertManeuverResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLChangeRegistrationResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLCreateInteractionChoiceSetResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteCommandResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteFileResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteInteractionChoiceSetResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteSubMenuResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDiagnosticMessageResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDialNumberResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEncodedSyncPDataResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEndAudioPassThruResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGenericResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetDTCsResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLListFilesResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformAudioPassThruResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformInteractionResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLReadDIDResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLRegisterAppInterfaceResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLResetGlobalPropertiesResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLScrollableMessageResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSendLocationResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetAppIconResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetDisplayLayoutResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetGlobalPropertiesResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetMediaClockTimerResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowConstantTBTResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSliderResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSpeakResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeButtonResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeVehicleDataResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSyncPDataResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSystemRequestResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnregisterAppInterfaceResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeButtonResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUpdateTurnListResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAirbagStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAudioPassThruCapabilitiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBeltStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBodyInformationSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLButtonCapabilitiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLChoiceSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDIDResult.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceInfoSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDisplayCapabilitiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLECallInfoSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLEmergencyEventSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLGPSDataSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMIPermissionsSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHeadLampStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageFieldSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLKeyboardPropertiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMenuParamsSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMyKeySpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLParameterPermissionsSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPermissionItemSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPresetBankCapabilitiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLScreenParamsSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSingleTireStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonCapabilitiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLStartTimeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSyncMsgVersionSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTTSChunkSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTextFieldSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTireStatusSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchCoordSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventCapabilitiesSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTurnSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleDataResultSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleTypeSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVrHelpItemSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLEnumSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCMessageSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCNotificationSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCRequestSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCResponseSpec.m create mode 100644 SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCStructSpec.m create mode 100644 SmartDeviceLinkTests/SwiftSpec.swift create mode 100644 SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLRequestTaskSpec.m create mode 100644 SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLSessionSpec.m create mode 100644 SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLObjectWithPrioritySpec.m create mode 100644 SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLPrioritizedObjectCollectionSpec.m create mode 100644 SmartDeviceLinkTests/UtilitiesSpecs/SDLGlobalsSpec.m create mode 100644 SmartDeviceLinkTests/UtilitiesSpecs/SDLHexUtilitySpec.m create mode 100644 SmartDeviceLinkTests/UtilitiesSpecs/SDLJingleSpec.m create mode 100644 SmartDeviceLink_Example/Base.lproj/ConnectionIAPTableViewController.storyboard create mode 100644 SmartDeviceLink_Example/Base.lproj/ConnectionTCPTableViewController.storyboard create mode 100644 SmartDeviceLink_Example/Base.lproj/LaunchScreen.xib create mode 100644 SmartDeviceLink_Example/Base.lproj/Main.storyboard create mode 100644 SmartDeviceLink_Example/Classes/AppDelegate.h create mode 100644 SmartDeviceLink_Example/Classes/AppDelegate.m create mode 100644 SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.h create mode 100644 SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.m create mode 100644 SmartDeviceLink_Example/Classes/ConnectionContainerViewController.h create mode 100644 SmartDeviceLink_Example/Classes/ConnectionContainerViewController.m create mode 100644 SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.h create mode 100644 SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.m create mode 100644 SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.h create mode 100644 SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.m create mode 100644 SmartDeviceLink_Example/Classes/ConnectionTransitionContext.h create mode 100644 SmartDeviceLink_Example/Classes/ConnectionTransitionContext.m create mode 100644 SmartDeviceLink_Example/Classes/Preferences.h create mode 100644 SmartDeviceLink_Example/Classes/Preferences.m create mode 100644 SmartDeviceLink_Example/Classes/ProxyManager.h create mode 100644 SmartDeviceLink_Example/Classes/ProxyManager.m create mode 100644 SmartDeviceLink_Example/Classes/main.m create mode 100644 SmartDeviceLink_Example/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 SmartDeviceLink_Example/Info.plist diff --git a/.gitignore b/.gitignore index a997e37b8..3cd0bdeb9 100644 --- a/.gitignore +++ b/.gitignore @@ -37,9 +37,8 @@ profile # Carthage # ############ Carthage.pkg -SmartDeviceLink-iOS/Carthage/Build -SmartDeviceLink-iOS/Carthage/Checkouts -SmartDeviceLink-iOS/infer-out +Carthage/Checkouts +infer-out # This ignore here is prevent projects fetching sdl_ios as a submodule using # Carthage from resulting as `-dirty` in the `git status`. Carthage/Build diff --git a/Cartfile.private b/Cartfile.private new file mode 100644 index 000000000..3431c663e --- /dev/null +++ b/Cartfile.private @@ -0,0 +1,4 @@ +github "Quick/Quick" ~> 0.9 +github "Quick/Nimble" ~> 4.0 +github "AliSoftware/OHHTTPStubs" ~> 5.0 +github "erikdoe/ocmock" ~> 3.3 diff --git a/Cartfile.resolved b/Cartfile.resolved new file mode 100644 index 000000000..b4e50e149 --- /dev/null +++ b/Cartfile.resolved @@ -0,0 +1,4 @@ +github "Quick/Nimble" "v4.0.1" +github "AliSoftware/OHHTTPStubs" "5.0.0" +github "Quick/Quick" "v0.9.2" +github "erikdoe/ocmock" "v3.3" diff --git a/SmartDeviceLink-iOS.xcodeproj/project.pbxproj b/SmartDeviceLink-iOS.xcodeproj/project.pbxproj new file mode 100644 index 000000000..9e1212d82 --- /dev/null +++ b/SmartDeviceLink-iOS.xcodeproj/project.pbxproj @@ -0,0 +1,4244 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 162E81CA1A9BDD3F00906325 /* Nimble.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 162E81C81A9BDD3F00906325 /* Nimble.framework */; }; + 162E81CB1A9BDD3F00906325 /* Quick.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 162E81C91A9BDD3F00906325 /* Quick.framework */; }; + 162E81CF1A9BDDD800906325 /* Nimble.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 162E81C81A9BDD3F00906325 /* Nimble.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 162E81D01A9BDDD800906325 /* Quick.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 162E81C91A9BDD3F00906325 /* Quick.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 162E82CA1A9BDE8A00906325 /* SDLAmbientLightStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E21A9BDE8A00906325 /* SDLAmbientLightStatusSpec.m */; }; + 162E82CB1A9BDE8A00906325 /* SDLAppHMITypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E31A9BDE8A00906325 /* SDLAppHMITypeSpec.m */; }; + 162E82CC1A9BDE8A00906325 /* SDLAppInterfaceUnregisteredReasonSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E41A9BDE8A00906325 /* SDLAppInterfaceUnregisteredReasonSpec.m */; }; + 162E82CD1A9BDE8A00906325 /* SDLAudioStreamingStateSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E51A9BDE8A00906325 /* SDLAudioStreamingStateSpec.m */; }; + 162E82CE1A9BDE8A00906325 /* SDLAudioTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E61A9BDE8A00906325 /* SDLAudioTypeSpec.m */; }; + 162E82CF1A9BDE8A00906325 /* SDLBitsPerSampleSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E71A9BDE8A00906325 /* SDLBitsPerSampleSpec.m */; }; + 162E82D01A9BDE8A00906325 /* SDLButtonEventModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E81A9BDE8A00906325 /* SDLButtonEventModeSpec.m */; }; + 162E82D11A9BDE8A00906325 /* SDLButtonNameSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E91A9BDE8A00906325 /* SDLButtonNameSpec.m */; }; + 162E82D21A9BDE8A00906325 /* SDLButtonPressModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81EA1A9BDE8A00906325 /* SDLButtonPressModeSpec.m */; }; + 162E82D31A9BDE8A00906325 /* SDLCarModeStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81EB1A9BDE8A00906325 /* SDLCarModeStatusSpec.m */; }; + 162E82D41A9BDE8A00906325 /* SDLCharacterSetSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81EC1A9BDE8A00906325 /* SDLCharacterSetSpec.m */; }; + 162E82D51A9BDE8A00906325 /* SDLCompassDirectionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81ED1A9BDE8A00906325 /* SDLCompassDirectionSpec.m */; }; + 162E82D61A9BDE8A00906325 /* SDLComponentVolumeStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81EE1A9BDE8A00906325 /* SDLComponentVolumeStatusSpec.m */; }; + 162E82D71A9BDE8A00906325 /* SDLDeviceLevelStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81EF1A9BDE8A00906325 /* SDLDeviceLevelStatusSpec.m */; }; + 162E82D81A9BDE8A00906325 /* SDLDimensionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F01A9BDE8A00906325 /* SDLDimensionSpec.m */; }; + 162E82D91A9BDE8A00906325 /* SDLDisplayTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F11A9BDE8A00906325 /* SDLDisplayTypeSpec.m */; }; + 162E82DA1A9BDE8B00906325 /* SDLDriverDistractionStateSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F21A9BDE8A00906325 /* SDLDriverDistractionStateSpec.m */; }; + 162E82DB1A9BDE8B00906325 /* SDLECallConfirmationStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F31A9BDE8A00906325 /* SDLECallConfirmationStatusSpec.m */; }; + 162E82DC1A9BDE8B00906325 /* SDLEmergencyEventTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F41A9BDE8A00906325 /* SDLEmergencyEventTypeSpec.m */; }; + 162E82DD1A9BDE8B00906325 /* SDLFileTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F51A9BDE8A00906325 /* SDLFileTypeSpec.m */; }; + 162E82DE1A9BDE8B00906325 /* SDLFuelCutoffStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F61A9BDE8A00906325 /* SDLFuelCutoffStatusSpec.m */; }; + 162E82DF1A9BDE8B00906325 /* SDLGlobalProperySpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F71A9BDE8A00906325 /* SDLGlobalProperySpec.m */; }; + 162E82E01A9BDE8B00906325 /* SDLHMILevelSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F81A9BDE8A00906325 /* SDLHMILevelSpec.m */; }; + 162E82E11A9BDE8B00906325 /* SDLHMIZoneCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F91A9BDE8A00906325 /* SDLHMIZoneCapabilitiesSpec.m */; }; + 162E82E21A9BDE8B00906325 /* SDLIgnitionStableStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81FA1A9BDE8A00906325 /* SDLIgnitionStableStatusSpec.m */; }; + 162E82E31A9BDE8B00906325 /* SDLIgnitionStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81FB1A9BDE8A00906325 /* SDLIgnitionStatusSpec.m */; }; + 162E82E41A9BDE8B00906325 /* SDLImageFieldNameSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81FC1A9BDE8A00906325 /* SDLImageFieldNameSpec.m */; }; + 162E82E51A9BDE8B00906325 /* SDLImageTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81FD1A9BDE8A00906325 /* SDLImageTypeSpec.m */; }; + 162E82E61A9BDE8B00906325 /* SDLInteractionModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81FE1A9BDE8A00906325 /* SDLInteractionModeSpec.m */; }; + 162E82E71A9BDE8B00906325 /* SDLKeyboardEventSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81FF1A9BDE8A00906325 /* SDLKeyboardEventSpec.m */; }; + 162E82E81A9BDE8B00906325 /* SDLKeyboardLayoutSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82001A9BDE8A00906325 /* SDLKeyboardLayoutSpec.m */; }; + 162E82E91A9BDE8B00906325 /* SDLKeypressModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82011A9BDE8A00906325 /* SDLKeypressModeSpec.m */; }; + 162E82EA1A9BDE8B00906325 /* SDLLanguageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82021A9BDE8A00906325 /* SDLLanguageSpec.m */; }; + 162E82EB1A9BDE8B00906325 /* SDLLayoutModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82031A9BDE8A00906325 /* SDLLayoutModeSpec.m */; }; + 162E82EC1A9BDE8B00906325 /* SDLLockScreenStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82041A9BDE8A00906325 /* SDLLockScreenStatusSpec.m */; }; + 162E82ED1A9BDE8B00906325 /* SDLMaintenanceModeStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82051A9BDE8A00906325 /* SDLMaintenanceModeStatusSpec.m */; }; + 162E82EE1A9BDE8B00906325 /* SDLMediaClockFormatSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82061A9BDE8A00906325 /* SDLMediaClockFormatSpec.m */; }; + 162E82EF1A9BDE8B00906325 /* SDLPermissionStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82071A9BDE8A00906325 /* SDLPermissionStatusSpec.m */; }; + 162E82F01A9BDE8B00906325 /* SDLPowerModeQualificationStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82081A9BDE8A00906325 /* SDLPowerModeQualificationStatusSpec.m */; }; + 162E82F11A9BDE8B00906325 /* SDLPowerModeStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82091A9BDE8A00906325 /* SDLPowerModeStatusSpec.m */; }; + 162E82F21A9BDE8B00906325 /* SDLPredefinedLayoutSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E820A1A9BDE8A00906325 /* SDLPredefinedLayoutSpec.m */; }; + 162E82F31A9BDE8B00906325 /* SDLPrerecordedSpeechSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E820B1A9BDE8A00906325 /* SDLPrerecordedSpeechSpec.m */; }; + 162E82F41A9BDE8B00906325 /* SDLPrimaryAudioSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E820C1A9BDE8A00906325 /* SDLPrimaryAudioSource.m */; }; + 162E82F51A9BDE8B00906325 /* SDLPRNDLSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E820D1A9BDE8A00906325 /* SDLPRNDLSpec.m */; }; + 162E82F61A9BDE8B00906325 /* SDLRequestTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E820E1A9BDE8A00906325 /* SDLRequestTypeSpec.m */; }; + 162E82F71A9BDE8B00906325 /* SDLResultSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E820F1A9BDE8A00906325 /* SDLResultSpec.m */; }; + 162E82F91A9BDE8B00906325 /* SDLSamplingRateSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82111A9BDE8A00906325 /* SDLSamplingRateSpec.m */; }; + 162E82FA1A9BDE8B00906325 /* SDLSoftButtonTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82121A9BDE8A00906325 /* SDLSoftButtonTypeSpec.m */; }; + 162E82FB1A9BDE8B00906325 /* SDLSpeechCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82131A9BDE8A00906325 /* SDLSpeechCapabilitiesSpec.m */; }; + 162E82FC1A9BDE8B00906325 /* SDLSystemAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82141A9BDE8A00906325 /* SDLSystemAction.m */; }; + 162E82FD1A9BDE8B00906325 /* SDLSystemContextSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82151A9BDE8A00906325 /* SDLSystemContextSpec.m */; }; + 162E82FE1A9BDE8B00906325 /* SDLTBTStateSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82161A9BDE8A00906325 /* SDLTBTStateSpec.m */; }; + 162E82FF1A9BDE8B00906325 /* SDLTextAlignmentSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82171A9BDE8A00906325 /* SDLTextAlignmentSpec.m */; }; + 162E83001A9BDE8B00906325 /* SDLTextFieldNameSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82181A9BDE8A00906325 /* SDLTextFieldNameSpec.m */; }; + 162E83011A9BDE8B00906325 /* SDLTimerModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82191A9BDE8A00906325 /* SDLTimerModeSpec.m */; }; + 162E83021A9BDE8B00906325 /* SDLTouchTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E821A1A9BDE8A00906325 /* SDLTouchTypeSpec.m */; }; + 162E83031A9BDE8B00906325 /* SDLTriggerSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E821B1A9BDE8A00906325 /* SDLTriggerSource.m */; }; + 162E83041A9BDE8B00906325 /* SDLUpdateModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E821C1A9BDE8A00906325 /* SDLUpdateModeSpec.m */; }; + 162E83051A9BDE8B00906325 /* SDLVehicleDataActiveStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E821D1A9BDE8A00906325 /* SDLVehicleDataActiveStatusSpec.m */; }; + 162E83061A9BDE8B00906325 /* SDLVehicleDataEventStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E821E1A9BDE8A00906325 /* SDLVehicleDataEventStatusSpec.m */; }; + 162E83071A9BDE8B00906325 /* SDLVehicleDataNotificationStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E821F1A9BDE8A00906325 /* SDLVehicleDataNotificationStatusSpec.m */; }; + 162E83081A9BDE8B00906325 /* SDLVehicleDataResultCodeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82201A9BDE8A00906325 /* SDLVehicleDataResultCodeSpec.m */; }; + 162E83091A9BDE8B00906325 /* SDLVehicleDataStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82211A9BDE8A00906325 /* SDLVehicleDataStatusSpec.m */; }; + 162E830A1A9BDE8B00906325 /* SDLVehicleDataTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82221A9BDE8A00906325 /* SDLVehicleDataTypeSpec.m */; }; + 162E830B1A9BDE8B00906325 /* SDLVrCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82231A9BDE8A00906325 /* SDLVrCapabilitiesSpec.m */; }; + 162E830C1A9BDE8B00906325 /* SDLWarningLightStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82241A9BDE8A00906325 /* SDLWarningLightStatusSpec.m */; }; + 162E830D1A9BDE8B00906325 /* SDLWiperStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82251A9BDE8A00906325 /* SDLWiperStatusSpec.m */; }; + 162E830E1A9BDE8B00906325 /* SDLRPCRequestFactorySpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82271A9BDE8A00906325 /* SDLRPCRequestFactorySpec.m */; }; + 162E830F1A9BDE8B00906325 /* SDLOnAppInterfaceUnregisteredSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82291A9BDE8A00906325 /* SDLOnAppInterfaceUnregisteredSpec.m */; }; + 162E83101A9BDE8B00906325 /* SDLOnAudioPassThruSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E822A1A9BDE8A00906325 /* SDLOnAudioPassThruSpec.m */; }; + 162E83111A9BDE8B00906325 /* SDLOnButtonEventSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E822B1A9BDE8A00906325 /* SDLOnButtonEventSpec.m */; }; + 162E83121A9BDE8B00906325 /* SDLOnButtonPressSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E822C1A9BDE8A00906325 /* SDLOnButtonPressSpec.m */; }; + 162E83131A9BDE8B00906325 /* SDLOnCommandSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E822D1A9BDE8A00906325 /* SDLOnCommandSpec.m */; }; + 162E83141A9BDE8B00906325 /* SDLOnDriverDistractionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E822E1A9BDE8A00906325 /* SDLOnDriverDistractionSpec.m */; }; + 162E83151A9BDE8B00906325 /* SDLOnEncodedSyncPDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E822F1A9BDE8A00906325 /* SDLOnEncodedSyncPDataSpec.m */; }; + 162E83161A9BDE8B00906325 /* SDLOnHashChangeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82301A9BDE8A00906325 /* SDLOnHashChangeSpec.m */; }; + 162E83171A9BDE8B00906325 /* SDLOnHMIStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82311A9BDE8A00906325 /* SDLOnHMIStatusSpec.m */; }; + 162E83181A9BDE8B00906325 /* SDLOnKeyboardInputSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82321A9BDE8A00906325 /* SDLOnKeyboardInputSpec.m */; }; + 162E83191A9BDE8B00906325 /* SDLOnLanguageChangeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82331A9BDE8A00906325 /* SDLOnLanguageChangeSpec.m */; }; + 162E831A1A9BDE8B00906325 /* SDLOnLockScreenStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82341A9BDE8A00906325 /* SDLOnLockScreenStatusSpec.m */; }; + 162E831B1A9BDE8B00906325 /* SDLOnPermissionsChangeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82351A9BDE8A00906325 /* SDLOnPermissionsChangeSpec.m */; }; + 162E831C1A9BDE8B00906325 /* SDLOnSyncPDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82361A9BDE8A00906325 /* SDLOnSyncPDataSpec.m */; }; + 162E831D1A9BDE8B00906325 /* SDLOnSystemRequestSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82371A9BDE8A00906325 /* SDLOnSystemRequestSpec.m */; }; + 162E831E1A9BDE8B00906325 /* SDLOnTBTClientStateSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82381A9BDE8A00906325 /* SDLOnTBTClientStateSpec.m */; }; + 162E831F1A9BDE8B00906325 /* SDLOnTouchEventSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82391A9BDE8A00906325 /* SDLOnTouchEventSpec.m */; }; + 162E83201A9BDE8B00906325 /* SDLOnVehicleDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E823A1A9BDE8A00906325 /* SDLOnVehicleDataSpec.m */; }; + 162E83211A9BDE8B00906325 /* SDLRPCPayloadSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E823C1A9BDE8A00906325 /* SDLRPCPayloadSpec.m */; }; + 162E83221A9BDE8B00906325 /* SDLAddCommandSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E823E1A9BDE8A00906325 /* SDLAddCommandSpec.m */; }; + 162E83231A9BDE8B00906325 /* SDLAddSubMenuSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E823F1A9BDE8A00906325 /* SDLAddSubMenuSpec.m */; }; + 162E83241A9BDE8B00906325 /* SDLAlertManeuverSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82401A9BDE8A00906325 /* SDLAlertManeuverSpec.m */; }; + 162E83251A9BDE8B00906325 /* SDLAlertSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82411A9BDE8A00906325 /* SDLAlertSpec.m */; }; + 162E83261A9BDE8B00906325 /* SDLChangeRegistrationSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82421A9BDE8A00906325 /* SDLChangeRegistrationSpec.m */; }; + 162E83271A9BDE8B00906325 /* SDLCreateInteractionChoiceSetSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82431A9BDE8A00906325 /* SDLCreateInteractionChoiceSetSpec.m */; }; + 162E83281A9BDE8B00906325 /* SDLDeleteCommandSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82441A9BDE8A00906325 /* SDLDeleteCommandSpec.m */; }; + 162E83291A9BDE8B00906325 /* SDLDeleteFileSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82451A9BDE8A00906325 /* SDLDeleteFileSpec.m */; }; + 162E832A1A9BDE8B00906325 /* SDLDeleteInteractionChoiceSetSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82461A9BDE8A00906325 /* SDLDeleteInteractionChoiceSetSpec.m */; }; + 162E832B1A9BDE8B00906325 /* SDLDeleteSubMenuSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82471A9BDE8A00906325 /* SDLDeleteSubMenuSpec.m */; }; + 162E832C1A9BDE8B00906325 /* SDLDiagnosticMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82481A9BDE8A00906325 /* SDLDiagnosticMessageSpec.m */; }; + 162E832D1A9BDE8B00906325 /* SDLEncodedSyncPDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82491A9BDE8A00906325 /* SDLEncodedSyncPDataSpec.m */; }; + 162E832E1A9BDE8B00906325 /* SDLEndAudioPassThruSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E824A1A9BDE8A00906325 /* SDLEndAudioPassThruSpec.m */; }; + 162E832F1A9BDE8B00906325 /* SDLGetDTCsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E824B1A9BDE8A00906325 /* SDLGetDTCsSpec.m */; }; + 162E83301A9BDE8B00906325 /* SDLGetVehicleDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E824C1A9BDE8A00906325 /* SDLGetVehicleDataSpec.m */; }; + 162E83311A9BDE8B00906325 /* SDLListFilesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E824D1A9BDE8A00906325 /* SDLListFilesSpec.m */; }; + 162E83321A9BDE8B00906325 /* SDLPerformAudioPassThruSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E824E1A9BDE8A00906325 /* SDLPerformAudioPassThruSpec.m */; }; + 162E83331A9BDE8B00906325 /* SDLPerformInteractionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E824F1A9BDE8A00906325 /* SDLPerformInteractionSpec.m */; }; + 162E83341A9BDE8B00906325 /* SDLPutFileSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82501A9BDE8A00906325 /* SDLPutFileSpec.m */; }; + 162E83351A9BDE8B00906325 /* SDLReadDIDSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82511A9BDE8A00906325 /* SDLReadDIDSpec.m */; }; + 162E83361A9BDE8B00906325 /* SDLRegisterAppInterfaceSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82521A9BDE8A00906325 /* SDLRegisterAppInterfaceSpec.m */; }; + 162E83371A9BDE8B00906325 /* SDLResetGlobalPropertiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82531A9BDE8A00906325 /* SDLResetGlobalPropertiesSpec.m */; }; + 162E83381A9BDE8B00906325 /* SDLScrollableMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82541A9BDE8A00906325 /* SDLScrollableMessageSpec.m */; }; + 162E83391A9BDE8B00906325 /* SDLSetAppIconSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82551A9BDE8A00906325 /* SDLSetAppIconSpec.m */; }; + 162E833A1A9BDE8B00906325 /* SDLSetDisplayLayoutSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82561A9BDE8A00906325 /* SDLSetDisplayLayoutSpec.m */; }; + 162E833B1A9BDE8B00906325 /* SDLSetGlobalPropertiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82571A9BDE8A00906325 /* SDLSetGlobalPropertiesSpec.m */; }; + 162E833C1A9BDE8B00906325 /* SDLSetMediaClockTimerSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82581A9BDE8A00906325 /* SDLSetMediaClockTimerSpec.m */; }; + 162E833D1A9BDE8B00906325 /* SDLShowConstantTBTSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82591A9BDE8A00906325 /* SDLShowConstantTBTSpec.m */; }; + 162E833E1A9BDE8B00906325 /* SDLShowSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E825A1A9BDE8A00906325 /* SDLShowSpec.m */; }; + 162E833F1A9BDE8B00906325 /* SDLSliderSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E825B1A9BDE8A00906325 /* SDLSliderSpec.m */; }; + 162E83401A9BDE8B00906325 /* SDLSpeakSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E825C1A9BDE8A00906325 /* SDLSpeakSpec.m */; }; + 162E83411A9BDE8B00906325 /* SDLSubscribeButtonSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E825D1A9BDE8A00906325 /* SDLSubscribeButtonSpec.m */; }; + 162E83421A9BDE8B00906325 /* SDLSubscribeVehicleDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E825E1A9BDE8A00906325 /* SDLSubscribeVehicleDataSpec.m */; }; + 162E83431A9BDE8B00906325 /* SDLSyncPDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E825F1A9BDE8A00906325 /* SDLSyncPDataSpec.m */; }; + 162E83441A9BDE8B00906325 /* SDLSystemRequestSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82601A9BDE8A00906325 /* SDLSystemRequestSpec.m */; }; + 162E83451A9BDE8B00906325 /* SDLUnregisterAppInterfaceSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82611A9BDE8A00906325 /* SDLUnregisterAppInterfaceSpec.m */; }; + 162E83461A9BDE8B00906325 /* SDLUnsubscribeButtonSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82621A9BDE8A00906325 /* SDLUnsubscribeButtonSpec.m */; }; + 162E83471A9BDE8B00906325 /* SDLUnsubscribeVehicleDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82631A9BDE8A00906325 /* SDLUnsubscribeVehicleDataSpec.m */; }; + 162E83481A9BDE8B00906325 /* SDLUpdateTurnListSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82641A9BDE8A00906325 /* SDLUpdateTurnListSpec.m */; }; + 162E83491A9BDE8B00906325 /* SDLAddCommandResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82661A9BDE8A00906325 /* SDLAddCommandResponseSpec.m */; }; + 162E834A1A9BDE8B00906325 /* SDLAddSubMenuResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82671A9BDE8A00906325 /* SDLAddSubMenuResponseSpec.m */; }; + 162E834B1A9BDE8B00906325 /* SDLAlertManeuverResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82681A9BDE8A00906325 /* SDLAlertManeuverResponseSpec.m */; }; + 162E834C1A9BDE8B00906325 /* SDLAlertResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82691A9BDE8A00906325 /* SDLAlertResponseSpec.m */; }; + 162E834D1A9BDE8B00906325 /* SDLChangeRegistrationResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E826A1A9BDE8A00906325 /* SDLChangeRegistrationResponseSpec.m */; }; + 162E834E1A9BDE8B00906325 /* SDLCreateInteractionChoiceSetResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E826B1A9BDE8A00906325 /* SDLCreateInteractionChoiceSetResponseSpec.m */; }; + 162E834F1A9BDE8B00906325 /* SDLDeleteCommandResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E826C1A9BDE8A00906325 /* SDLDeleteCommandResponseSpec.m */; }; + 162E83501A9BDE8B00906325 /* SDLDeleteFileResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E826D1A9BDE8A00906325 /* SDLDeleteFileResponseSpec.m */; }; + 162E83511A9BDE8B00906325 /* SDLDeleteInteractionChoiceSetResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E826E1A9BDE8A00906325 /* SDLDeleteInteractionChoiceSetResponseSpec.m */; }; + 162E83521A9BDE8B00906325 /* SDLDeleteSubMenuResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E826F1A9BDE8A00906325 /* SDLDeleteSubMenuResponseSpec.m */; }; + 162E83531A9BDE8B00906325 /* SDLDiagnosticMessageResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82701A9BDE8A00906325 /* SDLDiagnosticMessageResponseSpec.m */; }; + 162E83541A9BDE8B00906325 /* SDLEncodedSyncPDataResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82711A9BDE8A00906325 /* SDLEncodedSyncPDataResponseSpec.m */; }; + 162E83551A9BDE8B00906325 /* SDLEndAudioPassThruResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82721A9BDE8A00906325 /* SDLEndAudioPassThruResponseSpec.m */; }; + 162E83561A9BDE8B00906325 /* SDLGenericResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82731A9BDE8A00906325 /* SDLGenericResponseSpec.m */; }; + 162E83571A9BDE8B00906325 /* SDLGetDTCsResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82741A9BDE8A00906325 /* SDLGetDTCsResponseSpec.m */; }; + 162E83581A9BDE8B00906325 /* SDLGetVehicleDataResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82751A9BDE8A00906325 /* SDLGetVehicleDataResponseSpec.m */; }; + 162E83591A9BDE8B00906325 /* SDLListFilesResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82761A9BDE8A00906325 /* SDLListFilesResponseSpec.m */; }; + 162E835A1A9BDE8B00906325 /* SDLPerformAudioPassThruResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82771A9BDE8A00906325 /* SDLPerformAudioPassThruResponseSpec.m */; }; + 162E835B1A9BDE8B00906325 /* SDLPerformInteractionResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82781A9BDE8A00906325 /* SDLPerformInteractionResponseSpec.m */; }; + 162E835C1A9BDE8B00906325 /* SDLPutFileResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82791A9BDE8A00906325 /* SDLPutFileResponseSpec.m */; }; + 162E835D1A9BDE8B00906325 /* SDLReadDIDResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E827A1A9BDE8A00906325 /* SDLReadDIDResponseSpec.m */; }; + 162E835E1A9BDE8B00906325 /* SDLRegisterAppInterfaceResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E827B1A9BDE8A00906325 /* SDLRegisterAppInterfaceResponseSpec.m */; }; + 162E835F1A9BDE8B00906325 /* SDLResetGlobalPropertiesResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E827C1A9BDE8A00906325 /* SDLResetGlobalPropertiesResponseSpec.m */; }; + 162E83601A9BDE8B00906325 /* SDLScrollableMessageResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E827D1A9BDE8A00906325 /* SDLScrollableMessageResponseSpec.m */; }; + 162E83611A9BDE8B00906325 /* SDLSetAppIconResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E827E1A9BDE8A00906325 /* SDLSetAppIconResponseSpec.m */; }; + 162E83621A9BDE8B00906325 /* SDLSetDisplayLayoutResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E827F1A9BDE8A00906325 /* SDLSetDisplayLayoutResponseSpec.m */; }; + 162E83631A9BDE8B00906325 /* SDLSetGlobalPropertiesResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82801A9BDE8A00906325 /* SDLSetGlobalPropertiesResponseSpec.m */; }; + 162E83641A9BDE8B00906325 /* SDLSetMediaClockTimerResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82811A9BDE8A00906325 /* SDLSetMediaClockTimerResponseSpec.m */; }; + 162E83651A9BDE8B00906325 /* SDLShowConstantTBTResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82821A9BDE8A00906325 /* SDLShowConstantTBTResponseSpec.m */; }; + 162E83661A9BDE8B00906325 /* SDLShowResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82831A9BDE8A00906325 /* SDLShowResponseSpec.m */; }; + 162E83671A9BDE8B00906325 /* SDLSliderResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82841A9BDE8A00906325 /* SDLSliderResponseSpec.m */; }; + 162E83681A9BDE8B00906325 /* SDLSpeakResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82851A9BDE8A00906325 /* SDLSpeakResponseSpec.m */; }; + 162E83691A9BDE8B00906325 /* SDLSubscribeButtonResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82861A9BDE8A00906325 /* SDLSubscribeButtonResponseSpec.m */; }; + 162E836A1A9BDE8B00906325 /* SDLSubscribeVehicleDataResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82871A9BDE8A00906325 /* SDLSubscribeVehicleDataResponseSpec.m */; }; + 162E836B1A9BDE8B00906325 /* SDLSyncPDataResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82881A9BDE8A00906325 /* SDLSyncPDataResponseSpec.m */; }; + 162E836C1A9BDE8B00906325 /* SDLSystemRequestResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82891A9BDE8A00906325 /* SDLSystemRequestResponseSpec.m */; }; + 162E836D1A9BDE8B00906325 /* SDLUnregisterAppInterfaceResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E828A1A9BDE8A00906325 /* SDLUnregisterAppInterfaceResponseSpec.m */; }; + 162E836E1A9BDE8B00906325 /* SDLUnsubscribeButtonResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E828B1A9BDE8A00906325 /* SDLUnsubscribeButtonResponseSpec.m */; }; + 162E836F1A9BDE8B00906325 /* SDLUnsubscribeVehicleDataResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E828C1A9BDE8A00906325 /* SDLUnsubscribeVehicleDataResponseSpec.m */; }; + 162E83701A9BDE8B00906325 /* SDLUpdateTurnListResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E828D1A9BDE8A00906325 /* SDLUpdateTurnListResponseSpec.m */; }; + 162E83711A9BDE8B00906325 /* SDLAirbagStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E828F1A9BDE8A00906325 /* SDLAirbagStatusSpec.m */; }; + 162E83721A9BDE8B00906325 /* SDLAudioPassThruCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82901A9BDE8A00906325 /* SDLAudioPassThruCapabilitiesSpec.m */; }; + 162E83731A9BDE8B00906325 /* SDLBeltStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82911A9BDE8A00906325 /* SDLBeltStatusSpec.m */; }; + 162E83741A9BDE8B00906325 /* SDLBodyInformationSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82921A9BDE8A00906325 /* SDLBodyInformationSpec.m */; }; + 162E83751A9BDE8B00906325 /* SDLButtonCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82931A9BDE8A00906325 /* SDLButtonCapabilitiesSpec.m */; }; + 162E83761A9BDE8B00906325 /* SDLChoiceSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82941A9BDE8A00906325 /* SDLChoiceSpec.m */; }; + 162E83771A9BDE8B00906325 /* SDLClusterModeStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82951A9BDE8A00906325 /* SDLClusterModeStatusSpec.m */; }; + 162E83781A9BDE8B00906325 /* SDLDeviceInfoSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82961A9BDE8A00906325 /* SDLDeviceInfoSpec.m */; }; + 162E83791A9BDE8B00906325 /* SDLDeviceStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82971A9BDE8A00906325 /* SDLDeviceStatusSpec.m */; }; + 162E837A1A9BDE8B00906325 /* SDLDIDResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82981A9BDE8A00906325 /* SDLDIDResult.m */; }; + 162E837B1A9BDE8B00906325 /* SDLDisplayCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82991A9BDE8A00906325 /* SDLDisplayCapabilitiesSpec.m */; }; + 162E837C1A9BDE8B00906325 /* SDLECallInfoSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E829A1A9BDE8A00906325 /* SDLECallInfoSpec.m */; }; + 162E837D1A9BDE8B00906325 /* SDLEmergencyEventSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E829B1A9BDE8A00906325 /* SDLEmergencyEventSpec.m */; }; + 162E837E1A9BDE8B00906325 /* SDLGPSDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E829C1A9BDE8A00906325 /* SDLGPSDataSpec.m */; }; + 162E837F1A9BDE8B00906325 /* SDLHeadLampStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E829D1A9BDE8A00906325 /* SDLHeadLampStatusSpec.m */; }; + 162E83801A9BDE8B00906325 /* SDLHMIPermissionsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E829E1A9BDE8A00906325 /* SDLHMIPermissionsSpec.m */; }; + 162E83811A9BDE8B00906325 /* SDLImageFieldSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E829F1A9BDE8A00906325 /* SDLImageFieldSpec.m */; }; + 162E83821A9BDE8B00906325 /* SDLImageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A01A9BDE8A00906325 /* SDLImageSpec.m */; }; + 162E83831A9BDE8B00906325 /* SDLKeyboardPropertiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A11A9BDE8A00906325 /* SDLKeyboardPropertiesSpec.m */; }; + 162E83841A9BDE8B00906325 /* SDLMenuParamsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A21A9BDE8A00906325 /* SDLMenuParamsSpec.m */; }; + 162E83851A9BDE8B00906325 /* SDLMyKeySpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A31A9BDE8A00906325 /* SDLMyKeySpec.m */; }; + 162E83861A9BDE8B00906325 /* SDLParameterPermissionsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A41A9BDE8A00906325 /* SDLParameterPermissionsSpec.m */; }; + 162E83871A9BDE8B00906325 /* SDLPermissionItemSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A51A9BDE8A00906325 /* SDLPermissionItemSpec.m */; }; + 162E83881A9BDE8B00906325 /* SDLPresetBankCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A61A9BDE8A00906325 /* SDLPresetBankCapabilitiesSpec.m */; }; + 162E83891A9BDE8B00906325 /* SDLScreenParamsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A71A9BDE8A00906325 /* SDLScreenParamsSpec.m */; }; + 162E838A1A9BDE8B00906325 /* SDLSingleTireStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A81A9BDE8A00906325 /* SDLSingleTireStatusSpec.m */; }; + 162E838B1A9BDE8B00906325 /* SDLSoftButtonCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A91A9BDE8A00906325 /* SDLSoftButtonCapabilitiesSpec.m */; }; + 162E838C1A9BDE8B00906325 /* SDLSoftButtonSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82AA1A9BDE8A00906325 /* SDLSoftButtonSpec.m */; }; + 162E838D1A9BDE8B00906325 /* SDLStartTimeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82AB1A9BDE8A00906325 /* SDLStartTimeSpec.m */; }; + 162E838E1A9BDE8B00906325 /* SDLSyncMsgVersionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82AC1A9BDE8A00906325 /* SDLSyncMsgVersionSpec.m */; }; + 162E838F1A9BDE8B00906325 /* SDLTextFieldSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82AD1A9BDE8A00906325 /* SDLTextFieldSpec.m */; }; + 162E83901A9BDE8B00906325 /* SDLTireStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82AE1A9BDE8A00906325 /* SDLTireStatusSpec.m */; }; + 162E83911A9BDE8B00906325 /* SDLTouchCoordSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82AF1A9BDE8A00906325 /* SDLTouchCoordSpec.m */; }; + 162E83921A9BDE8B00906325 /* SDLTouchEventCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B01A9BDE8A00906325 /* SDLTouchEventCapabilitiesSpec.m */; }; + 162E83931A9BDE8B00906325 /* SDLTouchEventSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B11A9BDE8A00906325 /* SDLTouchEventSpec.m */; }; + 162E83941A9BDE8B00906325 /* SDLTTSChunkSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B21A9BDE8A00906325 /* SDLTTSChunkSpec.m */; }; + 162E83951A9BDE8B00906325 /* SDLTurnSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B31A9BDE8A00906325 /* SDLTurnSpec.m */; }; + 162E83961A9BDE8B00906325 /* SDLVehicleDataResultSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B41A9BDE8A00906325 /* SDLVehicleDataResultSpec.m */; }; + 162E83971A9BDE8B00906325 /* SDLVehicleTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B51A9BDE8A00906325 /* SDLVehicleTypeSpec.m */; }; + 162E83981A9BDE8B00906325 /* SDLVrHelpItemSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B61A9BDE8A00906325 /* SDLVrHelpItemSpec.m */; }; + 162E83991A9BDE8B00906325 /* SDLEnumSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B81A9BDE8A00906325 /* SDLEnumSpec.m */; }; + 162E839A1A9BDE8B00906325 /* SDLRPCMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B91A9BDE8A00906325 /* SDLRPCMessageSpec.m */; }; + 162E839B1A9BDE8B00906325 /* SDLRPCNotificationSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82BA1A9BDE8A00906325 /* SDLRPCNotificationSpec.m */; }; + 162E839C1A9BDE8B00906325 /* SDLRPCRequestSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82BB1A9BDE8A00906325 /* SDLRPCRequestSpec.m */; }; + 162E839D1A9BDE8B00906325 /* SDLRPCResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82BC1A9BDE8A00906325 /* SDLRPCResponseSpec.m */; }; + 162E839E1A9BDE8B00906325 /* SDLRPCStructSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82BD1A9BDE8A00906325 /* SDLRPCStructSpec.m */; }; + 167ED93C1A9BCB8A00797BE5 /* SmartDeviceLink.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */; }; + 167ED9461A9BCE5D00797BE5 /* SwiftSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 167ED9451A9BCE5D00797BE5 /* SwiftSpec.swift */; }; + 1680B1131A9CD7AD00DBD79E /* SDLProtocolHeaderSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B1061A9CD7AD00DBD79E /* SDLProtocolHeaderSpec.m */; }; + 1680B1141A9CD7AD00DBD79E /* SDLV1ProtocolHeaderSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B1071A9CD7AD00DBD79E /* SDLV1ProtocolHeaderSpec.m */; }; + 1680B1151A9CD7AD00DBD79E /* SDLV2ProtocolHeaderSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B1081A9CD7AD00DBD79E /* SDLV2ProtocolHeaderSpec.m */; }; + 1680B1161A9CD7AD00DBD79E /* SDLProtocolMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B10A1A9CD7AD00DBD79E /* SDLProtocolMessageSpec.m */; }; + 1680B1171A9CD7AD00DBD79E /* SDLProtocolSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B10B1A9CD7AD00DBD79E /* SDLProtocolSpec.m */; }; + 1680B1181A9CD7AD00DBD79E /* SDLV1ProtocolMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B10C1A9CD7AD00DBD79E /* SDLV1ProtocolMessageSpec.m */; }; + 1680B1191A9CD7AD00DBD79E /* SDLV2ProtocolMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B10D1A9CD7AD00DBD79E /* SDLV2ProtocolMessageSpec.m */; }; + 1680B11A1A9CD7AD00DBD79E /* SDLAbstractProtocolSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B10E1A9CD7AD00DBD79E /* SDLAbstractProtocolSpec.m */; }; + 1680B11B1A9CD7AD00DBD79E /* SDLFunctionIDSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B10F1A9CD7AD00DBD79E /* SDLFunctionIDSpec.m */; }; + 1680B11C1A9CD7AD00DBD79E /* SDLProtocolMessageAssemblerSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B1101A9CD7AD00DBD79E /* SDLProtocolMessageAssemblerSpec.m */; }; + 1680B11D1A9CD7AD00DBD79E /* SDLProtocolMessageDisassemblerSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B1111A9CD7AD00DBD79E /* SDLProtocolMessageDisassemblerSpec.m */; }; + 1680B11E1A9CD7AD00DBD79E /* SDLProtocolReceivedMessageRouterSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B1121A9CD7AD00DBD79E /* SDLProtocolReceivedMessageRouterSpec.m */; }; + 5D0218F61A8E79C400D1BF62 /* ConnectionTCPTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D0218F51A8E79C400D1BF62 /* ConnectionTCPTableViewController.m */; }; + 5D0218F91A8E7A7300D1BF62 /* ConnectionTCPTableViewController.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5D0218F71A8E7A7300D1BF62 /* ConnectionTCPTableViewController.storyboard */; }; + 5D0218FC1A8E7E1700D1BF62 /* ConnectionContainerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D0218FB1A8E7E1700D1BF62 /* ConnectionContainerViewController.m */; }; + 5D0218FF1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D0218FE1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.m */; }; + 5D0219051A8E9F6D00D1BF62 /* ConnectionIAPTableViewController.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5D0219031A8E9F6D00D1BF62 /* ConnectionIAPTableViewController.storyboard */; }; + 5D4029D41A76F0340006B0C2 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5D4029D31A76F0340006B0C2 /* Images.xcassets */; }; + 5D4029E31A76F0760006B0C2 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5D4029DF1A76F0760006B0C2 /* LaunchScreen.xib */; }; + 5D4029E41A76F0760006B0C2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5D4029E11A76F0760006B0C2 /* Main.storyboard */; }; + 5D48329D1A8EA33D00252386 /* Preferences.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D48329C1A8EA33D00252386 /* Preferences.m */; }; + 5D4832A11A92868E00252386 /* ProxyManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D4832A01A92868E00252386 /* ProxyManager.m */; }; + 5D4832A51A94F90D00252386 /* ConnectionTransitionContext.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D4832A41A94F90D00252386 /* ConnectionTransitionContext.m */; }; + 5D4832A81A95191B00252386 /* ConnectionAnimatedTransition.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D4832A71A95191B00252386 /* ConnectionAnimatedTransition.m */; }; + 5D4AB7A21B21EC16004C1AB0 /* SmartDeviceLink.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 5D535DC51B72473800CF7760 /* SDLGlobals.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D535DC31B72473800CF7760 /* SDLGlobals.h */; }; + 5D535DC61B72473800CF7760 /* SDLGlobals.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D535DC41B72473800CF7760 /* SDLGlobals.m */; }; + 5D53C46D1B7A99B9003526EA /* SDLStreamingMediaManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D53C46B1B7A99B9003526EA /* SDLStreamingMediaManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D53C46E1B7A99B9003526EA /* SDLStreamingMediaManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D53C46C1B7A99B9003526EA /* SDLStreamingMediaManager.m */; }; + 5D59350F1A855EB300687FB9 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D59350C1A855EB300687FB9 /* AppDelegate.m */; }; + 5D5935121A855EBE00687FB9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D5935111A855EBE00687FB9 /* main.m */; }; + 5D59DD471B14FDEE00BE744D /* SDLLockScreenManagerSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D59DD461B14FDEE00BE744D /* SDLLockScreenManagerSpec.m */; }; + 5D61FA211A84237100846EE7 /* SmartDeviceLink.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA201A84237100846EE7 /* SmartDeviceLink.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FA331A84237100846EE7 /* SmartDeviceLink.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */; settings = {ATTRIBUTES = (Weak, ); }; }; + 5D61FA341A84237100846EE7 /* SmartDeviceLink.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 5D61FC291A84238C00846EE7 /* SDLAbstractProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA3C1A84238A00846EE7 /* SDLAbstractProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC2A1A84238C00846EE7 /* SDLAbstractProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA3D1A84238A00846EE7 /* SDLAbstractProtocol.m */; }; + 5D61FC2B1A84238C00846EE7 /* SDLAbstractTransport.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA3E1A84238A00846EE7 /* SDLAbstractTransport.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC2C1A84238C00846EE7 /* SDLAbstractTransport.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA3F1A84238A00846EE7 /* SDLAbstractTransport.m */; }; + 5D61FC2D1A84238C00846EE7 /* SDLAddCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA401A84238A00846EE7 /* SDLAddCommand.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC2E1A84238C00846EE7 /* SDLAddCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA411A84238A00846EE7 /* SDLAddCommand.m */; }; + 5D61FC2F1A84238C00846EE7 /* SDLAddCommandResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA421A84238A00846EE7 /* SDLAddCommandResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC301A84238C00846EE7 /* SDLAddCommandResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA431A84238A00846EE7 /* SDLAddCommandResponse.m */; }; + 5D61FC311A84238C00846EE7 /* SDLAddSubMenu.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA441A84238A00846EE7 /* SDLAddSubMenu.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC321A84238C00846EE7 /* SDLAddSubMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA451A84238A00846EE7 /* SDLAddSubMenu.m */; }; + 5D61FC331A84238C00846EE7 /* SDLAddSubMenuResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA461A84238A00846EE7 /* SDLAddSubMenuResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC341A84238C00846EE7 /* SDLAddSubMenuResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA471A84238A00846EE7 /* SDLAddSubMenuResponse.m */; }; + 5D61FC351A84238C00846EE7 /* SDLAirbagStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA481A84238A00846EE7 /* SDLAirbagStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC361A84238C00846EE7 /* SDLAirbagStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA491A84238A00846EE7 /* SDLAirbagStatus.m */; }; + 5D61FC371A84238C00846EE7 /* SDLAlert.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA4A1A84238A00846EE7 /* SDLAlert.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC381A84238C00846EE7 /* SDLAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA4B1A84238A00846EE7 /* SDLAlert.m */; }; + 5D61FC391A84238C00846EE7 /* SDLAlertManeuver.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA4C1A84238A00846EE7 /* SDLAlertManeuver.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC3A1A84238C00846EE7 /* SDLAlertManeuver.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA4D1A84238A00846EE7 /* SDLAlertManeuver.m */; }; + 5D61FC3B1A84238C00846EE7 /* SDLAlertManeuverResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA4E1A84238A00846EE7 /* SDLAlertManeuverResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC3C1A84238C00846EE7 /* SDLAlertManeuverResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA4F1A84238A00846EE7 /* SDLAlertManeuverResponse.m */; }; + 5D61FC3D1A84238C00846EE7 /* SDLAlertResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA501A84238A00846EE7 /* SDLAlertResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC3E1A84238C00846EE7 /* SDLAlertResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA511A84238A00846EE7 /* SDLAlertResponse.m */; }; + 5D61FC3F1A84238C00846EE7 /* SDLAmbientLightStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA521A84238A00846EE7 /* SDLAmbientLightStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC401A84238C00846EE7 /* SDLAmbientLightStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA531A84238A00846EE7 /* SDLAmbientLightStatus.m */; }; + 5D61FC411A84238C00846EE7 /* SDLAppHMIType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA541A84238A00846EE7 /* SDLAppHMIType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC421A84238C00846EE7 /* SDLAppHMIType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA551A84238A00846EE7 /* SDLAppHMIType.m */; }; + 5D61FC431A84238C00846EE7 /* SDLAppInterfaceUnregisteredReason.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA561A84238A00846EE7 /* SDLAppInterfaceUnregisteredReason.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC441A84238C00846EE7 /* SDLAppInterfaceUnregisteredReason.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA571A84238A00846EE7 /* SDLAppInterfaceUnregisteredReason.m */; }; + 5D61FC451A84238C00846EE7 /* SDLAudioPassThruCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA581A84238A00846EE7 /* SDLAudioPassThruCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC461A84238C00846EE7 /* SDLAudioPassThruCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA591A84238A00846EE7 /* SDLAudioPassThruCapabilities.m */; }; + 5D61FC471A84238C00846EE7 /* SDLAudioStreamingState.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA5A1A84238A00846EE7 /* SDLAudioStreamingState.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC481A84238C00846EE7 /* SDLAudioStreamingState.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA5B1A84238A00846EE7 /* SDLAudioStreamingState.m */; }; + 5D61FC491A84238C00846EE7 /* SDLAudioType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA5C1A84238A00846EE7 /* SDLAudioType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC4A1A84238C00846EE7 /* SDLAudioType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA5D1A84238A00846EE7 /* SDLAudioType.m */; }; + 5D61FC4B1A84238C00846EE7 /* SDLBeltStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA5E1A84238A00846EE7 /* SDLBeltStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC4C1A84238C00846EE7 /* SDLBeltStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA5F1A84238A00846EE7 /* SDLBeltStatus.m */; }; + 5D61FC4D1A84238C00846EE7 /* SDLBitsPerSample.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA601A84238A00846EE7 /* SDLBitsPerSample.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC4E1A84238C00846EE7 /* SDLBitsPerSample.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA611A84238A00846EE7 /* SDLBitsPerSample.m */; }; + 5D61FC4F1A84238C00846EE7 /* SDLBodyInformation.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA621A84238A00846EE7 /* SDLBodyInformation.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC501A84238C00846EE7 /* SDLBodyInformation.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA631A84238A00846EE7 /* SDLBodyInformation.m */; }; + 5D61FC511A84238C00846EE7 /* SDLButtonCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA641A84238A00846EE7 /* SDLButtonCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC521A84238C00846EE7 /* SDLButtonCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA651A84238A00846EE7 /* SDLButtonCapabilities.m */; }; + 5D61FC531A84238C00846EE7 /* SDLButtonEventMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA661A84238A00846EE7 /* SDLButtonEventMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC541A84238C00846EE7 /* SDLButtonEventMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA671A84238A00846EE7 /* SDLButtonEventMode.m */; }; + 5D61FC551A84238C00846EE7 /* SDLButtonName.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA681A84238A00846EE7 /* SDLButtonName.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC561A84238C00846EE7 /* SDLButtonName.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA691A84238A00846EE7 /* SDLButtonName.m */; }; + 5D61FC571A84238C00846EE7 /* SDLButtonPressMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA6A1A84238A00846EE7 /* SDLButtonPressMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC581A84238C00846EE7 /* SDLButtonPressMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA6B1A84238A00846EE7 /* SDLButtonPressMode.m */; }; + 5D61FC591A84238C00846EE7 /* SDLCarModeStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA6C1A84238A00846EE7 /* SDLCarModeStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC5A1A84238C00846EE7 /* SDLCarModeStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA6D1A84238A00846EE7 /* SDLCarModeStatus.m */; }; + 5D61FC5B1A84238C00846EE7 /* SDLChangeRegistration.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA6E1A84238A00846EE7 /* SDLChangeRegistration.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC5C1A84238C00846EE7 /* SDLChangeRegistration.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA6F1A84238A00846EE7 /* SDLChangeRegistration.m */; }; + 5D61FC5D1A84238C00846EE7 /* SDLChangeRegistrationResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA701A84238A00846EE7 /* SDLChangeRegistrationResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC5E1A84238C00846EE7 /* SDLChangeRegistrationResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA711A84238A00846EE7 /* SDLChangeRegistrationResponse.m */; }; + 5D61FC5F1A84238C00846EE7 /* SDLCharacterSet.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA721A84238A00846EE7 /* SDLCharacterSet.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC601A84238C00846EE7 /* SDLCharacterSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA731A84238A00846EE7 /* SDLCharacterSet.m */; }; + 5D61FC611A84238C00846EE7 /* SDLChoice.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA741A84238A00846EE7 /* SDLChoice.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC621A84238C00846EE7 /* SDLChoice.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA751A84238A00846EE7 /* SDLChoice.m */; }; + 5D61FC631A84238C00846EE7 /* SDLClusterModeStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA761A84238A00846EE7 /* SDLClusterModeStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC641A84238C00846EE7 /* SDLClusterModeStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA771A84238A00846EE7 /* SDLClusterModeStatus.m */; }; + 5D61FC651A84238C00846EE7 /* SDLCompassDirection.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA781A84238A00846EE7 /* SDLCompassDirection.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC661A84238C00846EE7 /* SDLCompassDirection.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA791A84238A00846EE7 /* SDLCompassDirection.m */; }; + 5D61FC671A84238C00846EE7 /* SDLComponentVolumeStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA7A1A84238A00846EE7 /* SDLComponentVolumeStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC681A84238C00846EE7 /* SDLComponentVolumeStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA7B1A84238A00846EE7 /* SDLComponentVolumeStatus.m */; }; + 5D61FC691A84238C00846EE7 /* SDLConsoleController.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA7C1A84238A00846EE7 /* SDLConsoleController.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC6A1A84238C00846EE7 /* SDLConsoleController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA7D1A84238A00846EE7 /* SDLConsoleController.m */; }; + 5D61FC6B1A84238C00846EE7 /* SDLCreateInteractionChoiceSet.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA7E1A84238A00846EE7 /* SDLCreateInteractionChoiceSet.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC6C1A84238C00846EE7 /* SDLCreateInteractionChoiceSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA7F1A84238A00846EE7 /* SDLCreateInteractionChoiceSet.m */; }; + 5D61FC6D1A84238C00846EE7 /* SDLCreateInteractionChoiceSetResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA801A84238A00846EE7 /* SDLCreateInteractionChoiceSetResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC6E1A84238C00846EE7 /* SDLCreateInteractionChoiceSetResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA811A84238A00846EE7 /* SDLCreateInteractionChoiceSetResponse.m */; }; + 5D61FC6F1A84238C00846EE7 /* SDLDebugTool.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA821A84238A00846EE7 /* SDLDebugTool.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC701A84238C00846EE7 /* SDLDebugTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA831A84238A00846EE7 /* SDLDebugTool.m */; }; + 5D61FC711A84238C00846EE7 /* SDLDecoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA841A84238A00846EE7 /* SDLDecoder.h */; }; + 5D61FC721A84238C00846EE7 /* SDLDeleteCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA851A84238A00846EE7 /* SDLDeleteCommand.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC731A84238C00846EE7 /* SDLDeleteCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA861A84238A00846EE7 /* SDLDeleteCommand.m */; }; + 5D61FC741A84238C00846EE7 /* SDLDeleteCommandResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA871A84238A00846EE7 /* SDLDeleteCommandResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC751A84238C00846EE7 /* SDLDeleteCommandResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA881A84238A00846EE7 /* SDLDeleteCommandResponse.m */; }; + 5D61FC761A84238C00846EE7 /* SDLDeleteFile.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA891A84238A00846EE7 /* SDLDeleteFile.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC771A84238C00846EE7 /* SDLDeleteFile.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA8A1A84238A00846EE7 /* SDLDeleteFile.m */; }; + 5D61FC781A84238C00846EE7 /* SDLDeleteFileResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA8B1A84238A00846EE7 /* SDLDeleteFileResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC791A84238C00846EE7 /* SDLDeleteFileResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA8C1A84238A00846EE7 /* SDLDeleteFileResponse.m */; }; + 5D61FC7A1A84238C00846EE7 /* SDLDeleteInteractionChoiceSet.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA8D1A84238A00846EE7 /* SDLDeleteInteractionChoiceSet.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC7B1A84238C00846EE7 /* SDLDeleteInteractionChoiceSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA8E1A84238A00846EE7 /* SDLDeleteInteractionChoiceSet.m */; }; + 5D61FC7C1A84238C00846EE7 /* SDLDeleteInteractionChoiceSetResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA8F1A84238A00846EE7 /* SDLDeleteInteractionChoiceSetResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC7D1A84238C00846EE7 /* SDLDeleteInteractionChoiceSetResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA901A84238A00846EE7 /* SDLDeleteInteractionChoiceSetResponse.m */; }; + 5D61FC7E1A84238C00846EE7 /* SDLDeleteSubMenu.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA911A84238A00846EE7 /* SDLDeleteSubMenu.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC7F1A84238C00846EE7 /* SDLDeleteSubMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA921A84238A00846EE7 /* SDLDeleteSubMenu.m */; }; + 5D61FC801A84238C00846EE7 /* SDLDeleteSubMenuResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA931A84238A00846EE7 /* SDLDeleteSubMenuResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC811A84238C00846EE7 /* SDLDeleteSubMenuResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA941A84238A00846EE7 /* SDLDeleteSubMenuResponse.m */; }; + 5D61FC821A84238C00846EE7 /* SDLDeviceInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA951A84238A00846EE7 /* SDLDeviceInfo.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC831A84238C00846EE7 /* SDLDeviceInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA961A84238A00846EE7 /* SDLDeviceInfo.m */; }; + 5D61FC841A84238C00846EE7 /* SDLDeviceLevelStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA971A84238A00846EE7 /* SDLDeviceLevelStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC851A84238C00846EE7 /* SDLDeviceLevelStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA981A84238A00846EE7 /* SDLDeviceLevelStatus.m */; }; + 5D61FC861A84238C00846EE7 /* SDLDeviceStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA991A84238A00846EE7 /* SDLDeviceStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC871A84238C00846EE7 /* SDLDeviceStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA9A1A84238A00846EE7 /* SDLDeviceStatus.m */; }; + 5D61FC881A84238C00846EE7 /* SDLDiagnosticMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA9B1A84238A00846EE7 /* SDLDiagnosticMessage.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC891A84238C00846EE7 /* SDLDiagnosticMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA9C1A84238A00846EE7 /* SDLDiagnosticMessage.m */; }; + 5D61FC8A1A84238C00846EE7 /* SDLDiagnosticMessageResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA9D1A84238A00846EE7 /* SDLDiagnosticMessageResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC8B1A84238C00846EE7 /* SDLDiagnosticMessageResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA9E1A84238A00846EE7 /* SDLDiagnosticMessageResponse.m */; }; + 5D61FC8C1A84238C00846EE7 /* SDLDIDResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA9F1A84238A00846EE7 /* SDLDIDResult.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC8D1A84238C00846EE7 /* SDLDIDResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAA01A84238A00846EE7 /* SDLDIDResult.m */; }; + 5D61FC8E1A84238C00846EE7 /* SDLDimension.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAA11A84238A00846EE7 /* SDLDimension.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC8F1A84238C00846EE7 /* SDLDimension.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAA21A84238A00846EE7 /* SDLDimension.m */; }; + 5D61FC901A84238C00846EE7 /* SDLDisplayCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAA31A84238A00846EE7 /* SDLDisplayCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC911A84238C00846EE7 /* SDLDisplayCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAA41A84238A00846EE7 /* SDLDisplayCapabilities.m */; }; + 5D61FC921A84238C00846EE7 /* SDLDisplayType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAA51A84238A00846EE7 /* SDLDisplayType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC931A84238C00846EE7 /* SDLDisplayType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAA61A84238A00846EE7 /* SDLDisplayType.m */; }; + 5D61FC941A84238C00846EE7 /* SDLDriverDistractionState.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAA71A84238A00846EE7 /* SDLDriverDistractionState.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC951A84238C00846EE7 /* SDLDriverDistractionState.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAA81A84238A00846EE7 /* SDLDriverDistractionState.m */; }; + 5D61FC961A84238C00846EE7 /* SDLECallConfirmationStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAA91A84238A00846EE7 /* SDLECallConfirmationStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC971A84238C00846EE7 /* SDLECallConfirmationStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAAA1A84238A00846EE7 /* SDLECallConfirmationStatus.m */; }; + 5D61FC981A84238C00846EE7 /* SDLECallInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAAB1A84238A00846EE7 /* SDLECallInfo.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC991A84238C00846EE7 /* SDLECallInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAAC1A84238A00846EE7 /* SDLECallInfo.m */; }; + 5D61FC9A1A84238C00846EE7 /* SDLEmergencyEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAAD1A84238A00846EE7 /* SDLEmergencyEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC9B1A84238C00846EE7 /* SDLEmergencyEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAAE1A84238A00846EE7 /* SDLEmergencyEvent.m */; }; + 5D61FC9C1A84238C00846EE7 /* SDLEmergencyEventType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAAF1A84238A00846EE7 /* SDLEmergencyEventType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC9D1A84238C00846EE7 /* SDLEmergencyEventType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAB01A84238A00846EE7 /* SDLEmergencyEventType.m */; }; + 5D61FC9E1A84238C00846EE7 /* SDLEncodedSyncPData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAB11A84238A00846EE7 /* SDLEncodedSyncPData.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FC9F1A84238C00846EE7 /* SDLEncodedSyncPData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAB21A84238A00846EE7 /* SDLEncodedSyncPData.m */; }; + 5D61FCA01A84238C00846EE7 /* SDLEncodedSyncPDataResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAB31A84238A00846EE7 /* SDLEncodedSyncPDataResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCA11A84238C00846EE7 /* SDLEncodedSyncPDataResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAB41A84238A00846EE7 /* SDLEncodedSyncPDataResponse.m */; }; + 5D61FCA21A84238C00846EE7 /* SDLEncoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAB51A84238A00846EE7 /* SDLEncoder.h */; }; + 5D61FCA31A84238C00846EE7 /* SDLEndAudioPassThru.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAB61A84238A00846EE7 /* SDLEndAudioPassThru.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCA41A84238C00846EE7 /* SDLEndAudioPassThru.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAB71A84238A00846EE7 /* SDLEndAudioPassThru.m */; }; + 5D61FCA51A84238C00846EE7 /* SDLEndAudioPassThruResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAB81A84238A00846EE7 /* SDLEndAudioPassThruResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCA61A84238C00846EE7 /* SDLEndAudioPassThruResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAB91A84238A00846EE7 /* SDLEndAudioPassThruResponse.m */; }; + 5D61FCA71A84238C00846EE7 /* SDLEnum.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FABA1A84238A00846EE7 /* SDLEnum.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCA81A84238C00846EE7 /* SDLEnum.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FABB1A84238A00846EE7 /* SDLEnum.m */; }; + 5D61FCA91A84238C00846EE7 /* SDLFileType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FABC1A84238A00846EE7 /* SDLFileType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCAA1A84238C00846EE7 /* SDLFileType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FABD1A84238A00846EE7 /* SDLFileType.m */; }; + 5D61FCAB1A84238C00846EE7 /* SDLFuelCutoffStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FABE1A84238A00846EE7 /* SDLFuelCutoffStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCAC1A84238C00846EE7 /* SDLFuelCutoffStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FABF1A84238A00846EE7 /* SDLFuelCutoffStatus.m */; }; + 5D61FCAD1A84238C00846EE7 /* SDLFunctionID.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAC01A84238A00846EE7 /* SDLFunctionID.h */; }; + 5D61FCAE1A84238C00846EE7 /* SDLFunctionID.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAC11A84238A00846EE7 /* SDLFunctionID.m */; }; + 5D61FCAF1A84238C00846EE7 /* SDLGenericResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAC21A84238A00846EE7 /* SDLGenericResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCB01A84238C00846EE7 /* SDLGenericResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAC31A84238A00846EE7 /* SDLGenericResponse.m */; }; + 5D61FCB11A84238C00846EE7 /* SDLGetDTCs.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAC41A84238A00846EE7 /* SDLGetDTCs.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCB21A84238C00846EE7 /* SDLGetDTCs.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAC51A84238A00846EE7 /* SDLGetDTCs.m */; }; + 5D61FCB31A84238C00846EE7 /* SDLGetDTCsResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAC61A84238A00846EE7 /* SDLGetDTCsResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCB41A84238C00846EE7 /* SDLGetDTCsResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAC71A84238A00846EE7 /* SDLGetDTCsResponse.m */; }; + 5D61FCB51A84238C00846EE7 /* SDLGetVehicleData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAC81A84238A00846EE7 /* SDLGetVehicleData.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCB61A84238C00846EE7 /* SDLGetVehicleData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAC91A84238A00846EE7 /* SDLGetVehicleData.m */; }; + 5D61FCB71A84238C00846EE7 /* SDLGetVehicleDataResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FACA1A84238A00846EE7 /* SDLGetVehicleDataResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCB81A84238C00846EE7 /* SDLGetVehicleDataResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FACB1A84238A00846EE7 /* SDLGetVehicleDataResponse.m */; }; + 5D61FCB91A84238C00846EE7 /* SDLGlobalProperty.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FACC1A84238A00846EE7 /* SDLGlobalProperty.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCBA1A84238C00846EE7 /* SDLGlobalProperty.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FACD1A84238A00846EE7 /* SDLGlobalProperty.m */; }; + 5D61FCBB1A84238C00846EE7 /* SDLGPSData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FACE1A84238A00846EE7 /* SDLGPSData.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCBC1A84238C00846EE7 /* SDLGPSData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FACF1A84238A00846EE7 /* SDLGPSData.m */; }; + 5D61FCBD1A84238C00846EE7 /* SDLHeadLampStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAD01A84238A00846EE7 /* SDLHeadLampStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCBE1A84238C00846EE7 /* SDLHeadLampStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAD11A84238A00846EE7 /* SDLHeadLampStatus.m */; }; + 5D61FCBF1A84238C00846EE7 /* SDLHexUtility.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAD21A84238A00846EE7 /* SDLHexUtility.h */; }; + 5D61FCC01A84238C00846EE7 /* SDLHexUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAD31A84238A00846EE7 /* SDLHexUtility.m */; }; + 5D61FCC11A84238C00846EE7 /* SDLHMILevel.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAD41A84238A00846EE7 /* SDLHMILevel.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCC21A84238C00846EE7 /* SDLHMILevel.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAD51A84238A00846EE7 /* SDLHMILevel.m */; }; + 5D61FCC31A84238C00846EE7 /* SDLHMIPermissions.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAD61A84238A00846EE7 /* SDLHMIPermissions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCC41A84238C00846EE7 /* SDLHMIPermissions.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAD71A84238A00846EE7 /* SDLHMIPermissions.m */; }; + 5D61FCC51A84238C00846EE7 /* SDLHMIZoneCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAD81A84238A00846EE7 /* SDLHMIZoneCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCC61A84238C00846EE7 /* SDLHMIZoneCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAD91A84238A00846EE7 /* SDLHMIZoneCapabilities.m */; }; + 5D61FCC71A84238C00846EE7 /* SDLIAPTransport.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FADA1A84238A00846EE7 /* SDLIAPTransport.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCC81A84238C00846EE7 /* SDLIAPTransport.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FADB1A84238A00846EE7 /* SDLIAPTransport.m */; }; + 5D61FCC91A84238C00846EE7 /* SDLIgnitionStableStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FADC1A84238A00846EE7 /* SDLIgnitionStableStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCCA1A84238C00846EE7 /* SDLIgnitionStableStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FADD1A84238A00846EE7 /* SDLIgnitionStableStatus.m */; }; + 5D61FCCB1A84238C00846EE7 /* SDLIgnitionStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FADE1A84238A00846EE7 /* SDLIgnitionStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCCC1A84238C00846EE7 /* SDLIgnitionStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FADF1A84238A00846EE7 /* SDLIgnitionStatus.m */; }; + 5D61FCCD1A84238C00846EE7 /* SDLImage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAE01A84238A00846EE7 /* SDLImage.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCCE1A84238C00846EE7 /* SDLImage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAE11A84238A00846EE7 /* SDLImage.m */; }; + 5D61FCCF1A84238C00846EE7 /* SDLImageField.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAE21A84238A00846EE7 /* SDLImageField.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCD01A84238C00846EE7 /* SDLImageField.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAE31A84238A00846EE7 /* SDLImageField.m */; }; + 5D61FCD11A84238C00846EE7 /* SDLImageFieldName.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAE41A84238A00846EE7 /* SDLImageFieldName.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCD21A84238C00846EE7 /* SDLImageFieldName.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAE51A84238A00846EE7 /* SDLImageFieldName.m */; }; + 5D61FCD31A84238C00846EE7 /* SDLImageResolution.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAE61A84238A00846EE7 /* SDLImageResolution.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCD41A84238C00846EE7 /* SDLImageResolution.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAE71A84238A00846EE7 /* SDLImageResolution.m */; }; + 5D61FCD51A84238C00846EE7 /* SDLImageType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAE81A84238A00846EE7 /* SDLImageType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCD61A84238C00846EE7 /* SDLImageType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAE91A84238A00846EE7 /* SDLImageType.m */; }; + 5D61FCD71A84238C00846EE7 /* SDLInteractionMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAEA1A84238A00846EE7 /* SDLInteractionMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCD81A84238C00846EE7 /* SDLInteractionMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAEB1A84238A00846EE7 /* SDLInteractionMode.m */; }; + 5D61FCDA1A84238C00846EE7 /* SDLJingle.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAED1A84238A00846EE7 /* SDLJingle.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCDB1A84238C00846EE7 /* SDLJingle.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAEE1A84238A00846EE7 /* SDLJingle.m */; }; + 5D61FCDC1A84238C00846EE7 /* SDLJsonDecoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAEF1A84238A00846EE7 /* SDLJsonDecoder.h */; }; + 5D61FCDD1A84238C00846EE7 /* SDLJsonDecoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAF01A84238A00846EE7 /* SDLJsonDecoder.m */; }; + 5D61FCDE1A84238C00846EE7 /* SDLJsonEncoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAF11A84238A00846EE7 /* SDLJsonEncoder.h */; }; + 5D61FCDF1A84238C00846EE7 /* SDLJsonEncoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAF21A84238A00846EE7 /* SDLJsonEncoder.m */; }; + 5D61FCE01A84238C00846EE7 /* SDLKeyboardEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAF31A84238A00846EE7 /* SDLKeyboardEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCE11A84238C00846EE7 /* SDLKeyboardEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAF41A84238A00846EE7 /* SDLKeyboardEvent.m */; }; + 5D61FCE21A84238C00846EE7 /* SDLKeyboardLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAF51A84238A00846EE7 /* SDLKeyboardLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCE31A84238C00846EE7 /* SDLKeyboardLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAF61A84238A00846EE7 /* SDLKeyboardLayout.m */; }; + 5D61FCE41A84238C00846EE7 /* SDLKeyboardProperties.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAF71A84238A00846EE7 /* SDLKeyboardProperties.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCE51A84238C00846EE7 /* SDLKeyboardProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAF81A84238A00846EE7 /* SDLKeyboardProperties.m */; }; + 5D61FCE61A84238C00846EE7 /* SDLKeypressMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAF91A84238A00846EE7 /* SDLKeypressMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCE71A84238C00846EE7 /* SDLKeypressMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAFA1A84238A00846EE7 /* SDLKeypressMode.m */; }; + 5D61FCE81A84238C00846EE7 /* SDLLanguage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAFB1A84238A00846EE7 /* SDLLanguage.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCE91A84238C00846EE7 /* SDLLanguage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAFC1A84238A00846EE7 /* SDLLanguage.m */; }; + 5D61FCEA1A84238C00846EE7 /* SDLLayoutMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAFD1A84238A00846EE7 /* SDLLayoutMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCEB1A84238C00846EE7 /* SDLLayoutMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAFE1A84238A00846EE7 /* SDLLayoutMode.m */; }; + 5D61FCEC1A84238C00846EE7 /* SDLListFiles.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAFF1A84238A00846EE7 /* SDLListFiles.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCED1A84238C00846EE7 /* SDLListFiles.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB001A84238A00846EE7 /* SDLListFiles.m */; }; + 5D61FCEE1A84238C00846EE7 /* SDLListFilesResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB011A84238A00846EE7 /* SDLListFilesResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCEF1A84238C00846EE7 /* SDLListFilesResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB021A84238A00846EE7 /* SDLListFilesResponse.m */; }; + 5D61FCF01A84238C00846EE7 /* SDLLockScreenManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB031A84238A00846EE7 /* SDLLockScreenManager.h */; }; + 5D61FCF11A84238C00846EE7 /* SDLLockScreenManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB041A84238A00846EE7 /* SDLLockScreenManager.m */; }; + 5D61FCF21A84238C00846EE7 /* SDLLockScreenStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB051A84238A00846EE7 /* SDLLockScreenStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCF31A84238C00846EE7 /* SDLLockScreenStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB061A84238A00846EE7 /* SDLLockScreenStatus.m */; }; + 5D61FCF41A84238C00846EE7 /* SDLMaintenanceModeStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB071A84238A00846EE7 /* SDLMaintenanceModeStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCF51A84238C00846EE7 /* SDLMaintenanceModeStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB081A84238A00846EE7 /* SDLMaintenanceModeStatus.m */; }; + 5D61FCF61A84238C00846EE7 /* SDLMediaClockFormat.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB091A84238A00846EE7 /* SDLMediaClockFormat.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCF71A84238C00846EE7 /* SDLMediaClockFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB0A1A84238A00846EE7 /* SDLMediaClockFormat.m */; }; + 5D61FCF81A84238C00846EE7 /* SDLMenuParams.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB0B1A84238A00846EE7 /* SDLMenuParams.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCF91A84238C00846EE7 /* SDLMenuParams.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB0C1A84238A00846EE7 /* SDLMenuParams.m */; }; + 5D61FCFA1A84238C00846EE7 /* SDLMyKey.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB0D1A84238A00846EE7 /* SDLMyKey.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FCFB1A84238C00846EE7 /* SDLMyKey.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB0E1A84238A00846EE7 /* SDLMyKey.m */; }; + 5D61FCFC1A84238C00846EE7 /* SDLNames.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB0F1A84238A00846EE7 /* SDLNames.h */; }; + 5D61FCFD1A84238C00846EE7 /* SDLObjectWithPriority.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB101A84238A00846EE7 /* SDLObjectWithPriority.h */; }; + 5D61FCFE1A84238C00846EE7 /* SDLObjectWithPriority.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB111A84238A00846EE7 /* SDLObjectWithPriority.m */; }; + 5D61FCFF1A84238C00846EE7 /* SDLOnAppInterfaceUnregistered.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB121A84238B00846EE7 /* SDLOnAppInterfaceUnregistered.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD001A84238C00846EE7 /* SDLOnAppInterfaceUnregistered.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB131A84238B00846EE7 /* SDLOnAppInterfaceUnregistered.m */; }; + 5D61FD011A84238C00846EE7 /* SDLOnAudioPassThru.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB141A84238B00846EE7 /* SDLOnAudioPassThru.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD021A84238C00846EE7 /* SDLOnAudioPassThru.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB151A84238B00846EE7 /* SDLOnAudioPassThru.m */; }; + 5D61FD031A84238C00846EE7 /* SDLOnButtonEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB161A84238B00846EE7 /* SDLOnButtonEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD041A84238C00846EE7 /* SDLOnButtonEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB171A84238B00846EE7 /* SDLOnButtonEvent.m */; }; + 5D61FD051A84238C00846EE7 /* SDLOnButtonPress.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB181A84238B00846EE7 /* SDLOnButtonPress.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD061A84238C00846EE7 /* SDLOnButtonPress.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB191A84238B00846EE7 /* SDLOnButtonPress.m */; }; + 5D61FD071A84238C00846EE7 /* SDLOnCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB1A1A84238B00846EE7 /* SDLOnCommand.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD081A84238C00846EE7 /* SDLOnCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB1B1A84238B00846EE7 /* SDLOnCommand.m */; }; + 5D61FD091A84238C00846EE7 /* SDLOnDriverDistraction.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB1C1A84238B00846EE7 /* SDLOnDriverDistraction.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD0A1A84238C00846EE7 /* SDLOnDriverDistraction.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB1D1A84238B00846EE7 /* SDLOnDriverDistraction.m */; }; + 5D61FD0B1A84238C00846EE7 /* SDLOnEncodedSyncPData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB1E1A84238B00846EE7 /* SDLOnEncodedSyncPData.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD0C1A84238C00846EE7 /* SDLOnEncodedSyncPData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB1F1A84238B00846EE7 /* SDLOnEncodedSyncPData.m */; }; + 5D61FD0D1A84238C00846EE7 /* SDLOnHashChange.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB201A84238B00846EE7 /* SDLOnHashChange.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD0E1A84238C00846EE7 /* SDLOnHashChange.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB211A84238B00846EE7 /* SDLOnHashChange.m */; }; + 5D61FD0F1A84238C00846EE7 /* SDLOnHMIStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB221A84238B00846EE7 /* SDLOnHMIStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD101A84238C00846EE7 /* SDLOnHMIStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB231A84238B00846EE7 /* SDLOnHMIStatus.m */; }; + 5D61FD111A84238C00846EE7 /* SDLOnKeyboardInput.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB241A84238B00846EE7 /* SDLOnKeyboardInput.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD121A84238C00846EE7 /* SDLOnKeyboardInput.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB251A84238B00846EE7 /* SDLOnKeyboardInput.m */; }; + 5D61FD131A84238C00846EE7 /* SDLOnLanguageChange.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB261A84238B00846EE7 /* SDLOnLanguageChange.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD141A84238C00846EE7 /* SDLOnLanguageChange.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB271A84238B00846EE7 /* SDLOnLanguageChange.m */; }; + 5D61FD151A84238C00846EE7 /* SDLOnLockScreenStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB281A84238B00846EE7 /* SDLOnLockScreenStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD161A84238C00846EE7 /* SDLOnLockScreenStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB291A84238B00846EE7 /* SDLOnLockScreenStatus.m */; }; + 5D61FD171A84238C00846EE7 /* SDLOnPermissionsChange.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB2A1A84238B00846EE7 /* SDLOnPermissionsChange.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD181A84238C00846EE7 /* SDLOnPermissionsChange.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB2B1A84238B00846EE7 /* SDLOnPermissionsChange.m */; }; + 5D61FD191A84238C00846EE7 /* SDLOnSyncPData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB2C1A84238B00846EE7 /* SDLOnSyncPData.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD1A1A84238C00846EE7 /* SDLOnSyncPData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB2D1A84238B00846EE7 /* SDLOnSyncPData.m */; }; + 5D61FD1B1A84238C00846EE7 /* SDLOnSystemRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB2E1A84238B00846EE7 /* SDLOnSystemRequest.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD1C1A84238C00846EE7 /* SDLOnSystemRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB2F1A84238B00846EE7 /* SDLOnSystemRequest.m */; }; + 5D61FD1D1A84238C00846EE7 /* SDLOnTBTClientState.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB301A84238B00846EE7 /* SDLOnTBTClientState.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD1E1A84238C00846EE7 /* SDLOnTBTClientState.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB311A84238B00846EE7 /* SDLOnTBTClientState.m */; }; + 5D61FD1F1A84238C00846EE7 /* SDLOnTouchEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB321A84238B00846EE7 /* SDLOnTouchEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD201A84238C00846EE7 /* SDLOnTouchEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB331A84238B00846EE7 /* SDLOnTouchEvent.m */; }; + 5D61FD211A84238C00846EE7 /* SDLOnVehicleData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB341A84238B00846EE7 /* SDLOnVehicleData.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD221A84238C00846EE7 /* SDLOnVehicleData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB351A84238B00846EE7 /* SDLOnVehicleData.m */; }; + 5D61FD231A84238C00846EE7 /* SDLParameterPermissions.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB361A84238B00846EE7 /* SDLParameterPermissions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD241A84238C00846EE7 /* SDLParameterPermissions.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB371A84238B00846EE7 /* SDLParameterPermissions.m */; }; + 5D61FD251A84238C00846EE7 /* SDLPerformAudioPassThru.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB381A84238B00846EE7 /* SDLPerformAudioPassThru.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD261A84238C00846EE7 /* SDLPerformAudioPassThru.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB391A84238B00846EE7 /* SDLPerformAudioPassThru.m */; }; + 5D61FD271A84238C00846EE7 /* SDLPerformAudioPassThruResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB3A1A84238B00846EE7 /* SDLPerformAudioPassThruResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD281A84238C00846EE7 /* SDLPerformAudioPassThruResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB3B1A84238B00846EE7 /* SDLPerformAudioPassThruResponse.m */; }; + 5D61FD291A84238C00846EE7 /* SDLPerformInteraction.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB3C1A84238B00846EE7 /* SDLPerformInteraction.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD2A1A84238C00846EE7 /* SDLPerformInteraction.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB3D1A84238B00846EE7 /* SDLPerformInteraction.m */; }; + 5D61FD2B1A84238C00846EE7 /* SDLPerformInteractionResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB3E1A84238B00846EE7 /* SDLPerformInteractionResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD2C1A84238C00846EE7 /* SDLPerformInteractionResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB3F1A84238B00846EE7 /* SDLPerformInteractionResponse.m */; }; + 5D61FD2D1A84238C00846EE7 /* SDLPermissionItem.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB401A84238B00846EE7 /* SDLPermissionItem.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD2E1A84238C00846EE7 /* SDLPermissionItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB411A84238B00846EE7 /* SDLPermissionItem.m */; }; + 5D61FD2F1A84238C00846EE7 /* SDLPermissionStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB421A84238B00846EE7 /* SDLPermissionStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD301A84238C00846EE7 /* SDLPermissionStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB431A84238B00846EE7 /* SDLPermissionStatus.m */; }; + 5D61FD311A84238C00846EE7 /* SDLPolicyDataParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB441A84238B00846EE7 /* SDLPolicyDataParser.h */; }; + 5D61FD321A84238C00846EE7 /* SDLPolicyDataParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB451A84238B00846EE7 /* SDLPolicyDataParser.m */; }; + 5D61FD331A84238C00846EE7 /* SDLPowerModeQualificationStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB461A84238B00846EE7 /* SDLPowerModeQualificationStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD341A84238C00846EE7 /* SDLPowerModeQualificationStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB471A84238B00846EE7 /* SDLPowerModeQualificationStatus.m */; }; + 5D61FD351A84238C00846EE7 /* SDLPowerModeStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB481A84238B00846EE7 /* SDLPowerModeStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD361A84238C00846EE7 /* SDLPowerModeStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB491A84238B00846EE7 /* SDLPowerModeStatus.m */; }; + 5D61FD371A84238C00846EE7 /* SDLPredefinedLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB4A1A84238B00846EE7 /* SDLPredefinedLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD381A84238C00846EE7 /* SDLPredefinedLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB4B1A84238B00846EE7 /* SDLPredefinedLayout.m */; }; + 5D61FD391A84238C00846EE7 /* SDLPrerecordedSpeech.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB4C1A84238B00846EE7 /* SDLPrerecordedSpeech.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD3A1A84238C00846EE7 /* SDLPrerecordedSpeech.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB4D1A84238B00846EE7 /* SDLPrerecordedSpeech.m */; }; + 5D61FD3B1A84238C00846EE7 /* SDLPresetBankCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB4E1A84238B00846EE7 /* SDLPresetBankCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD3C1A84238C00846EE7 /* SDLPresetBankCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB4F1A84238B00846EE7 /* SDLPresetBankCapabilities.m */; }; + 5D61FD3D1A84238C00846EE7 /* SDLPrimaryAudioSource.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB501A84238B00846EE7 /* SDLPrimaryAudioSource.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD3E1A84238C00846EE7 /* SDLPrimaryAudioSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB511A84238B00846EE7 /* SDLPrimaryAudioSource.m */; }; + 5D61FD3F1A84238C00846EE7 /* SDLPrioritizedObjectCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB521A84238B00846EE7 /* SDLPrioritizedObjectCollection.h */; }; + 5D61FD401A84238C00846EE7 /* SDLPrioritizedObjectCollection.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB531A84238B00846EE7 /* SDLPrioritizedObjectCollection.m */; }; + 5D61FD411A84238C00846EE7 /* SDLPRNDL.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB541A84238B00846EE7 /* SDLPRNDL.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD421A84238C00846EE7 /* SDLPRNDL.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB551A84238B00846EE7 /* SDLPRNDL.m */; }; + 5D61FD431A84238C00846EE7 /* SDLProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB561A84238B00846EE7 /* SDLProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD441A84238C00846EE7 /* SDLProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB571A84238B00846EE7 /* SDLProtocol.m */; }; + 5D61FD451A84238C00846EE7 /* SDLProtocolHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB581A84238B00846EE7 /* SDLProtocolHeader.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD461A84238C00846EE7 /* SDLProtocolHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB591A84238B00846EE7 /* SDLProtocolHeader.m */; }; + 5D61FD471A84238C00846EE7 /* SDLProtocolListener.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB5A1A84238B00846EE7 /* SDLProtocolListener.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD481A84238C00846EE7 /* SDLProtocolMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB5B1A84238B00846EE7 /* SDLProtocolMessage.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD491A84238C00846EE7 /* SDLProtocolMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB5C1A84238B00846EE7 /* SDLProtocolMessage.m */; }; + 5D61FD4A1A84238C00846EE7 /* SDLProtocolMessageAssembler.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB5D1A84238B00846EE7 /* SDLProtocolMessageAssembler.h */; }; + 5D61FD4B1A84238C00846EE7 /* SDLProtocolMessageAssembler.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB5E1A84238B00846EE7 /* SDLProtocolMessageAssembler.m */; }; + 5D61FD4C1A84238C00846EE7 /* SDLProtocolMessageDisassembler.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB5F1A84238B00846EE7 /* SDLProtocolMessageDisassembler.h */; }; + 5D61FD4D1A84238C00846EE7 /* SDLProtocolMessageDisassembler.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB601A84238B00846EE7 /* SDLProtocolMessageDisassembler.m */; }; + 5D61FD4E1A84238C00846EE7 /* SDLProtocolReceivedMessageRouter.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB611A84238B00846EE7 /* SDLProtocolReceivedMessageRouter.h */; }; + 5D61FD4F1A84238C00846EE7 /* SDLProtocolReceivedMessageRouter.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB621A84238B00846EE7 /* SDLProtocolReceivedMessageRouter.m */; }; + 5D61FD501A84238C00846EE7 /* SDLProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB631A84238B00846EE7 /* SDLProxy.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD511A84238C00846EE7 /* SDLProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB641A84238B00846EE7 /* SDLProxy.m */; }; + 5D61FD521A84238C00846EE7 /* SDLProxyFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB651A84238B00846EE7 /* SDLProxyFactory.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD531A84238C00846EE7 /* SDLProxyFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB661A84238B00846EE7 /* SDLProxyFactory.m */; }; + 5D61FD541A84238C00846EE7 /* SDLProxyListener.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB671A84238B00846EE7 /* SDLProxyListener.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD551A84238C00846EE7 /* SDLPutFile.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB681A84238B00846EE7 /* SDLPutFile.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD561A84238C00846EE7 /* SDLPutFile.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB691A84238B00846EE7 /* SDLPutFile.m */; }; + 5D61FD571A84238C00846EE7 /* SDLPutFileResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB6A1A84238B00846EE7 /* SDLPutFileResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD581A84238C00846EE7 /* SDLPutFileResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB6B1A84238B00846EE7 /* SDLPutFileResponse.m */; }; + 5D61FD591A84238C00846EE7 /* SDLReadDID.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB6C1A84238B00846EE7 /* SDLReadDID.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD5A1A84238C00846EE7 /* SDLReadDID.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB6D1A84238B00846EE7 /* SDLReadDID.m */; }; + 5D61FD5B1A84238C00846EE7 /* SDLReadDIDResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB6E1A84238B00846EE7 /* SDLReadDIDResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD5C1A84238C00846EE7 /* SDLReadDIDResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB6F1A84238B00846EE7 /* SDLReadDIDResponse.m */; }; + 5D61FD5D1A84238C00846EE7 /* SDLRegisterAppInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB701A84238B00846EE7 /* SDLRegisterAppInterface.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD5E1A84238C00846EE7 /* SDLRegisterAppInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB711A84238B00846EE7 /* SDLRegisterAppInterface.m */; }; + 5D61FD5F1A84238C00846EE7 /* SDLRegisterAppInterfaceResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB721A84238B00846EE7 /* SDLRegisterAppInterfaceResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD601A84238C00846EE7 /* SDLRegisterAppInterfaceResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB731A84238B00846EE7 /* SDLRegisterAppInterfaceResponse.m */; }; + 5D61FD611A84238C00846EE7 /* SDLRequestType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB741A84238B00846EE7 /* SDLRequestType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD621A84238C00846EE7 /* SDLRequestType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB751A84238B00846EE7 /* SDLRequestType.m */; }; + 5D61FD631A84238C00846EE7 /* SDLResetGlobalProperties.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB761A84238B00846EE7 /* SDLResetGlobalProperties.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD641A84238C00846EE7 /* SDLResetGlobalProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB771A84238B00846EE7 /* SDLResetGlobalProperties.m */; }; + 5D61FD651A84238C00846EE7 /* SDLResetGlobalPropertiesResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB781A84238B00846EE7 /* SDLResetGlobalPropertiesResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD661A84238C00846EE7 /* SDLResetGlobalPropertiesResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB791A84238B00846EE7 /* SDLResetGlobalPropertiesResponse.m */; }; + 5D61FD671A84238C00846EE7 /* SDLResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB7A1A84238B00846EE7 /* SDLResult.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD681A84238C00846EE7 /* SDLResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB7B1A84238B00846EE7 /* SDLResult.m */; }; + 5D61FD691A84238C00846EE7 /* SDLRPCMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB7C1A84238B00846EE7 /* SDLRPCMessage.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD6A1A84238C00846EE7 /* SDLRPCMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB7D1A84238B00846EE7 /* SDLRPCMessage.m */; }; + 5D61FD6B1A84238C00846EE7 /* SDLRPCMessageType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB7E1A84238B00846EE7 /* SDLRPCMessageType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD6D1A84238C00846EE7 /* SDLRPCNotification.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB801A84238B00846EE7 /* SDLRPCNotification.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD6E1A84238C00846EE7 /* SDLRPCNotification.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB811A84238B00846EE7 /* SDLRPCNotification.m */; }; + 5D61FD6F1A84238C00846EE7 /* SDLRPCPayload.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB821A84238B00846EE7 /* SDLRPCPayload.h */; }; + 5D61FD701A84238C00846EE7 /* SDLRPCPayload.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB831A84238B00846EE7 /* SDLRPCPayload.m */; }; + 5D61FD711A84238C00846EE7 /* SDLRPCRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB841A84238B00846EE7 /* SDLRPCRequest.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD721A84238C00846EE7 /* SDLRPCRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB851A84238B00846EE7 /* SDLRPCRequest.m */; }; + 5D61FD731A84238C00846EE7 /* SDLRPCRequestFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB861A84238B00846EE7 /* SDLRPCRequestFactory.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD741A84238C00846EE7 /* SDLRPCRequestFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB871A84238B00846EE7 /* SDLRPCRequestFactory.m */; }; + 5D61FD751A84238C00846EE7 /* SDLRPCResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB881A84238B00846EE7 /* SDLRPCResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD761A84238C00846EE7 /* SDLRPCResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB891A84238B00846EE7 /* SDLRPCResponse.m */; }; + 5D61FD771A84238C00846EE7 /* SDLSamplingRate.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB8A1A84238B00846EE7 /* SDLSamplingRate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD781A84238C00846EE7 /* SDLSamplingRate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB8B1A84238B00846EE7 /* SDLSamplingRate.m */; }; + 5D61FD791A84238C00846EE7 /* SDLScreenParams.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB8C1A84238B00846EE7 /* SDLScreenParams.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD7A1A84238C00846EE7 /* SDLScreenParams.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB8D1A84238B00846EE7 /* SDLScreenParams.m */; }; + 5D61FD7B1A84238C00846EE7 /* SDLScrollableMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB8E1A84238B00846EE7 /* SDLScrollableMessage.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD7C1A84238C00846EE7 /* SDLScrollableMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB8F1A84238B00846EE7 /* SDLScrollableMessage.m */; }; + 5D61FD7D1A84238C00846EE7 /* SDLScrollableMessageResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB901A84238B00846EE7 /* SDLScrollableMessageResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD7E1A84238C00846EE7 /* SDLScrollableMessageResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB911A84238B00846EE7 /* SDLScrollableMessageResponse.m */; }; + 5D61FD7F1A84238C00846EE7 /* SDLSetAppIcon.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB921A84238B00846EE7 /* SDLSetAppIcon.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD801A84238C00846EE7 /* SDLSetAppIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB931A84238B00846EE7 /* SDLSetAppIcon.m */; }; + 5D61FD811A84238C00846EE7 /* SDLSetAppIconResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB941A84238B00846EE7 /* SDLSetAppIconResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD821A84238C00846EE7 /* SDLSetAppIconResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB951A84238B00846EE7 /* SDLSetAppIconResponse.m */; }; + 5D61FD831A84238C00846EE7 /* SDLSetDisplayLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB961A84238B00846EE7 /* SDLSetDisplayLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD841A84238C00846EE7 /* SDLSetDisplayLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB971A84238B00846EE7 /* SDLSetDisplayLayout.m */; }; + 5D61FD851A84238C00846EE7 /* SDLSetDisplayLayoutResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB981A84238B00846EE7 /* SDLSetDisplayLayoutResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD861A84238C00846EE7 /* SDLSetDisplayLayoutResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB991A84238B00846EE7 /* SDLSetDisplayLayoutResponse.m */; }; + 5D61FD871A84238C00846EE7 /* SDLSetGlobalProperties.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB9A1A84238B00846EE7 /* SDLSetGlobalProperties.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD881A84238C00846EE7 /* SDLSetGlobalProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB9B1A84238B00846EE7 /* SDLSetGlobalProperties.m */; }; + 5D61FD891A84238C00846EE7 /* SDLSetGlobalPropertiesResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB9C1A84238B00846EE7 /* SDLSetGlobalPropertiesResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD8A1A84238C00846EE7 /* SDLSetGlobalPropertiesResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB9D1A84238B00846EE7 /* SDLSetGlobalPropertiesResponse.m */; }; + 5D61FD8B1A84238C00846EE7 /* SDLSetMediaClockTimer.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB9E1A84238B00846EE7 /* SDLSetMediaClockTimer.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD8C1A84238C00846EE7 /* SDLSetMediaClockTimer.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB9F1A84238B00846EE7 /* SDLSetMediaClockTimer.m */; }; + 5D61FD8D1A84238C00846EE7 /* SDLSetMediaClockTimerResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBA01A84238B00846EE7 /* SDLSetMediaClockTimerResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD8E1A84238C00846EE7 /* SDLSetMediaClockTimerResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBA11A84238B00846EE7 /* SDLSetMediaClockTimerResponse.m */; }; + 5D61FD8F1A84238C00846EE7 /* SDLShow.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBA21A84238B00846EE7 /* SDLShow.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD901A84238C00846EE7 /* SDLShow.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBA31A84238B00846EE7 /* SDLShow.m */; }; + 5D61FD911A84238C00846EE7 /* SDLShowConstantTBT.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBA41A84238B00846EE7 /* SDLShowConstantTBT.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD921A84238C00846EE7 /* SDLShowConstantTBT.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBA51A84238B00846EE7 /* SDLShowConstantTBT.m */; }; + 5D61FD931A84238C00846EE7 /* SDLShowConstantTBTResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBA61A84238B00846EE7 /* SDLShowConstantTBTResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD941A84238C00846EE7 /* SDLShowConstantTBTResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBA71A84238B00846EE7 /* SDLShowConstantTBTResponse.m */; }; + 5D61FD951A84238C00846EE7 /* SDLShowResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBA81A84238B00846EE7 /* SDLShowResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD961A84238C00846EE7 /* SDLShowResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBA91A84238B00846EE7 /* SDLShowResponse.m */; }; + 5D61FD971A84238C00846EE7 /* SDLSingleTireStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBAA1A84238B00846EE7 /* SDLSingleTireStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD981A84238C00846EE7 /* SDLSingleTireStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBAB1A84238B00846EE7 /* SDLSingleTireStatus.m */; }; + 5D61FD991A84238C00846EE7 /* SDLSiphonServer.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBAC1A84238B00846EE7 /* SDLSiphonServer.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD9A1A84238C00846EE7 /* SDLSiphonServer.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBAD1A84238B00846EE7 /* SDLSiphonServer.m */; }; + 5D61FD9B1A84238C00846EE7 /* SDLSlider.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBAE1A84238B00846EE7 /* SDLSlider.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD9C1A84238C00846EE7 /* SDLSlider.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBAF1A84238B00846EE7 /* SDLSlider.m */; }; + 5D61FD9D1A84238C00846EE7 /* SDLSliderResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBB01A84238B00846EE7 /* SDLSliderResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FD9E1A84238C00846EE7 /* SDLSliderResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBB11A84238B00846EE7 /* SDLSliderResponse.m */; }; + 5D61FD9F1A84238C00846EE7 /* SDLSoftButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBB21A84238B00846EE7 /* SDLSoftButton.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDA01A84238C00846EE7 /* SDLSoftButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBB31A84238B00846EE7 /* SDLSoftButton.m */; }; + 5D61FDA11A84238C00846EE7 /* SDLSoftButtonCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBB41A84238B00846EE7 /* SDLSoftButtonCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDA21A84238C00846EE7 /* SDLSoftButtonCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBB51A84238B00846EE7 /* SDLSoftButtonCapabilities.m */; }; + 5D61FDA31A84238C00846EE7 /* SDLSoftButtonType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBB61A84238B00846EE7 /* SDLSoftButtonType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDA41A84238C00846EE7 /* SDLSoftButtonType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBB71A84238B00846EE7 /* SDLSoftButtonType.m */; }; + 5D61FDA51A84238C00846EE7 /* SDLSpeak.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBB81A84238B00846EE7 /* SDLSpeak.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDA61A84238C00846EE7 /* SDLSpeak.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBB91A84238B00846EE7 /* SDLSpeak.m */; }; + 5D61FDA71A84238C00846EE7 /* SDLSpeakResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBBA1A84238B00846EE7 /* SDLSpeakResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDA81A84238C00846EE7 /* SDLSpeakResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBBB1A84238B00846EE7 /* SDLSpeakResponse.m */; }; + 5D61FDA91A84238C00846EE7 /* SDLSpeechCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBBC1A84238B00846EE7 /* SDLSpeechCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDAA1A84238C00846EE7 /* SDLSpeechCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBBD1A84238B00846EE7 /* SDLSpeechCapabilities.m */; }; + 5D61FDAB1A84238C00846EE7 /* SDLStartTime.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBBE1A84238B00846EE7 /* SDLStartTime.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDAC1A84238C00846EE7 /* SDLStartTime.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBBF1A84238B00846EE7 /* SDLStartTime.m */; }; + 5D61FDAD1A84238C00846EE7 /* SDLSubscribeButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBC01A84238B00846EE7 /* SDLSubscribeButton.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDAE1A84238C00846EE7 /* SDLSubscribeButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBC11A84238B00846EE7 /* SDLSubscribeButton.m */; }; + 5D61FDAF1A84238C00846EE7 /* SDLSubscribeButtonResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBC21A84238B00846EE7 /* SDLSubscribeButtonResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDB01A84238C00846EE7 /* SDLSubscribeButtonResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBC31A84238B00846EE7 /* SDLSubscribeButtonResponse.m */; }; + 5D61FDB11A84238C00846EE7 /* SDLSubscribeVehicleData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBC41A84238B00846EE7 /* SDLSubscribeVehicleData.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDB21A84238C00846EE7 /* SDLSubscribeVehicleData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBC51A84238B00846EE7 /* SDLSubscribeVehicleData.m */; }; + 5D61FDB31A84238C00846EE7 /* SDLSubscribeVehicleDataResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBC61A84238B00846EE7 /* SDLSubscribeVehicleDataResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDB41A84238C00846EE7 /* SDLSubscribeVehicleDataResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBC71A84238B00846EE7 /* SDLSubscribeVehicleDataResponse.m */; }; + 5D61FDB51A84238C00846EE7 /* SDLSyncMsgVersion.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBC81A84238B00846EE7 /* SDLSyncMsgVersion.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDB61A84238C00846EE7 /* SDLSyncMsgVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBC91A84238B00846EE7 /* SDLSyncMsgVersion.m */; }; + 5D61FDB71A84238C00846EE7 /* SDLSyncPData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBCA1A84238B00846EE7 /* SDLSyncPData.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDB81A84238C00846EE7 /* SDLSyncPData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBCB1A84238B00846EE7 /* SDLSyncPData.m */; }; + 5D61FDB91A84238C00846EE7 /* SDLSyncPDataResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBCC1A84238B00846EE7 /* SDLSyncPDataResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDBA1A84238C00846EE7 /* SDLSyncPDataResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBCD1A84238B00846EE7 /* SDLSyncPDataResponse.m */; }; + 5D61FDBB1A84238C00846EE7 /* SDLSystemAction.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBCE1A84238B00846EE7 /* SDLSystemAction.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDBC1A84238C00846EE7 /* SDLSystemAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBCF1A84238B00846EE7 /* SDLSystemAction.m */; }; + 5D61FDBD1A84238C00846EE7 /* SDLSystemContext.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBD01A84238B00846EE7 /* SDLSystemContext.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDBE1A84238C00846EE7 /* SDLSystemContext.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBD11A84238B00846EE7 /* SDLSystemContext.m */; }; + 5D61FDC01A84238C00846EE7 /* SDLSystemRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBD31A84238B00846EE7 /* SDLSystemRequest.m */; }; + 5D61FDC21A84238C00846EE7 /* SDLSystemRequestResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBD51A84238B00846EE7 /* SDLSystemRequestResponse.m */; }; + 5D61FDC31A84238C00846EE7 /* SDLTBTState.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBD61A84238B00846EE7 /* SDLTBTState.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDC41A84238C00846EE7 /* SDLTBTState.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBD71A84238B00846EE7 /* SDLTBTState.m */; }; + 5D61FDC51A84238C00846EE7 /* SDLTCPTransport.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBD81A84238B00846EE7 /* SDLTCPTransport.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDC61A84238C00846EE7 /* SDLTCPTransport.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBD91A84238B00846EE7 /* SDLTCPTransport.m */; }; + 5D61FDC71A84238C00846EE7 /* SDLTextAlignment.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBDA1A84238B00846EE7 /* SDLTextAlignment.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDC81A84238C00846EE7 /* SDLTextAlignment.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBDB1A84238C00846EE7 /* SDLTextAlignment.m */; }; + 5D61FDC91A84238C00846EE7 /* SDLTextField.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBDC1A84238C00846EE7 /* SDLTextField.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDCA1A84238C00846EE7 /* SDLTextField.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBDD1A84238C00846EE7 /* SDLTextField.m */; }; + 5D61FDCB1A84238C00846EE7 /* SDLTextFieldName.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBDE1A84238C00846EE7 /* SDLTextFieldName.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDCC1A84238C00846EE7 /* SDLTextFieldName.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBDF1A84238C00846EE7 /* SDLTextFieldName.m */; }; + 5D61FDCD1A84238C00846EE7 /* SDLTimerMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBE01A84238C00846EE7 /* SDLTimerMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDCE1A84238C00846EE7 /* SDLTimerMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBE11A84238C00846EE7 /* SDLTimerMode.m */; }; + 5D61FDCF1A84238C00846EE7 /* SDLTireStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBE21A84238C00846EE7 /* SDLTireStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDD01A84238C00846EE7 /* SDLTireStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBE31A84238C00846EE7 /* SDLTireStatus.m */; }; + 5D61FDD11A84238C00846EE7 /* SDLTouchCoord.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBE41A84238C00846EE7 /* SDLTouchCoord.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDD21A84238C00846EE7 /* SDLTouchCoord.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBE51A84238C00846EE7 /* SDLTouchCoord.m */; }; + 5D61FDD31A84238C00846EE7 /* SDLTouchEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBE61A84238C00846EE7 /* SDLTouchEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDD41A84238C00846EE7 /* SDLTouchEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBE71A84238C00846EE7 /* SDLTouchEvent.m */; }; + 5D61FDD51A84238C00846EE7 /* SDLTouchEventCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBE81A84238C00846EE7 /* SDLTouchEventCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDD61A84238C00846EE7 /* SDLTouchEventCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBE91A84238C00846EE7 /* SDLTouchEventCapabilities.m */; }; + 5D61FDD71A84238C00846EE7 /* SDLTouchType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBEA1A84238C00846EE7 /* SDLTouchType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDD81A84238C00846EE7 /* SDLTouchType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBEB1A84238C00846EE7 /* SDLTouchType.m */; }; + 5D61FDDA1A84238C00846EE7 /* SDLTransportDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBED1A84238C00846EE7 /* SDLTransportDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDDB1A84238C00846EE7 /* SDLTriggerSource.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBEE1A84238C00846EE7 /* SDLTriggerSource.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDDC1A84238C00846EE7 /* SDLTriggerSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBEF1A84238C00846EE7 /* SDLTriggerSource.m */; }; + 5D61FDDD1A84238C00846EE7 /* SDLTTSChunk.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBF01A84238C00846EE7 /* SDLTTSChunk.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDDE1A84238C00846EE7 /* SDLTTSChunk.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBF11A84238C00846EE7 /* SDLTTSChunk.m */; }; + 5D61FDDF1A84238C00846EE7 /* SDLTTSChunkFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBF21A84238C00846EE7 /* SDLTTSChunkFactory.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDE01A84238C00846EE7 /* SDLTTSChunkFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBF31A84238C00846EE7 /* SDLTTSChunkFactory.m */; }; + 5D61FDE11A84238C00846EE7 /* SDLTurn.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBF41A84238C00846EE7 /* SDLTurn.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDE21A84238C00846EE7 /* SDLTurn.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBF51A84238C00846EE7 /* SDLTurn.m */; }; + 5D61FDE31A84238C00846EE7 /* SDLUnregisterAppInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBF61A84238C00846EE7 /* SDLUnregisterAppInterface.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDE41A84238C00846EE7 /* SDLUnregisterAppInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBF71A84238C00846EE7 /* SDLUnregisterAppInterface.m */; }; + 5D61FDE51A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBF81A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDE61A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBF91A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.m */; }; + 5D61FDE71A84238C00846EE7 /* SDLUnsubscribeButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBFA1A84238C00846EE7 /* SDLUnsubscribeButton.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDE81A84238C00846EE7 /* SDLUnsubscribeButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBFB1A84238C00846EE7 /* SDLUnsubscribeButton.m */; }; + 5D61FDE91A84238C00846EE7 /* SDLUnsubscribeButtonResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBFC1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDEA1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBFD1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.m */; }; + 5D61FDEB1A84238C00846EE7 /* SDLUnsubscribeVehicleData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBFE1A84238C00846EE7 /* SDLUnsubscribeVehicleData.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDEC1A84238C00846EE7 /* SDLUnsubscribeVehicleData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBFF1A84238C00846EE7 /* SDLUnsubscribeVehicleData.m */; }; + 5D61FDED1A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC001A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDEE1A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC011A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.m */; }; + 5D61FDEF1A84238C00846EE7 /* SDLUpdateMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC021A84238C00846EE7 /* SDLUpdateMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDF01A84238C00846EE7 /* SDLUpdateMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC031A84238C00846EE7 /* SDLUpdateMode.m */; }; + 5D61FDF11A84238C00846EE7 /* SDLUpdateTurnList.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC041A84238C00846EE7 /* SDLUpdateTurnList.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDF21A84238C00846EE7 /* SDLUpdateTurnList.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC051A84238C00846EE7 /* SDLUpdateTurnList.m */; }; + 5D61FDF31A84238C00846EE7 /* SDLUpdateTurnListResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC061A84238C00846EE7 /* SDLUpdateTurnListResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDF41A84238C00846EE7 /* SDLUpdateTurnListResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC071A84238C00846EE7 /* SDLUpdateTurnListResponse.m */; }; + 5D61FDF51A84238C00846EE7 /* SDLV1ProtocolHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC081A84238C00846EE7 /* SDLV1ProtocolHeader.h */; }; + 5D61FDF61A84238C00846EE7 /* SDLV1ProtocolHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC091A84238C00846EE7 /* SDLV1ProtocolHeader.m */; }; + 5D61FDF71A84238C00846EE7 /* SDLV1ProtocolMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC0A1A84238C00846EE7 /* SDLV1ProtocolMessage.h */; }; + 5D61FDF81A84238C00846EE7 /* SDLV1ProtocolMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC0B1A84238C00846EE7 /* SDLV1ProtocolMessage.m */; }; + 5D61FDF91A84238C00846EE7 /* SDLV2ProtocolHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC0C1A84238C00846EE7 /* SDLV2ProtocolHeader.h */; }; + 5D61FDFA1A84238C00846EE7 /* SDLV2ProtocolHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC0D1A84238C00846EE7 /* SDLV2ProtocolHeader.m */; }; + 5D61FDFB1A84238C00846EE7 /* SDLV2ProtocolMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC0E1A84238C00846EE7 /* SDLV2ProtocolMessage.h */; }; + 5D61FDFC1A84238C00846EE7 /* SDLV2ProtocolMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC0F1A84238C00846EE7 /* SDLV2ProtocolMessage.m */; }; + 5D61FDFD1A84238C00846EE7 /* SDLVehicleDataActiveStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC101A84238C00846EE7 /* SDLVehicleDataActiveStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FDFE1A84238C00846EE7 /* SDLVehicleDataActiveStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC111A84238C00846EE7 /* SDLVehicleDataActiveStatus.m */; }; + 5D61FDFF1A84238C00846EE7 /* SDLVehicleDataEventStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC121A84238C00846EE7 /* SDLVehicleDataEventStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FE001A84238C00846EE7 /* SDLVehicleDataEventStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC131A84238C00846EE7 /* SDLVehicleDataEventStatus.m */; }; + 5D61FE011A84238C00846EE7 /* SDLVehicleDataNotificationStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC141A84238C00846EE7 /* SDLVehicleDataNotificationStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FE021A84238C00846EE7 /* SDLVehicleDataNotificationStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC151A84238C00846EE7 /* SDLVehicleDataNotificationStatus.m */; }; + 5D61FE031A84238C00846EE7 /* SDLVehicleDataResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC161A84238C00846EE7 /* SDLVehicleDataResult.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FE041A84238C00846EE7 /* SDLVehicleDataResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC171A84238C00846EE7 /* SDLVehicleDataResult.m */; }; + 5D61FE051A84238C00846EE7 /* SDLVehicleDataResultCode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC181A84238C00846EE7 /* SDLVehicleDataResultCode.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FE061A84238C00846EE7 /* SDLVehicleDataResultCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC191A84238C00846EE7 /* SDLVehicleDataResultCode.m */; }; + 5D61FE071A84238C00846EE7 /* SDLVehicleDataStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC1A1A84238C00846EE7 /* SDLVehicleDataStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FE081A84238C00846EE7 /* SDLVehicleDataStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC1B1A84238C00846EE7 /* SDLVehicleDataStatus.m */; }; + 5D61FE091A84238C00846EE7 /* SDLVehicleDataType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC1C1A84238C00846EE7 /* SDLVehicleDataType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FE0A1A84238C00846EE7 /* SDLVehicleDataType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC1D1A84238C00846EE7 /* SDLVehicleDataType.m */; }; + 5D61FE0B1A84238C00846EE7 /* SDLVehicleType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC1E1A84238C00846EE7 /* SDLVehicleType.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FE0C1A84238C00846EE7 /* SDLVehicleType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC1F1A84238C00846EE7 /* SDLVehicleType.m */; }; + 5D61FE0D1A84238C00846EE7 /* SDLVRCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC201A84238C00846EE7 /* SDLVRCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FE0E1A84238C00846EE7 /* SDLVRCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC211A84238C00846EE7 /* SDLVRCapabilities.m */; }; + 5D61FE0F1A84238C00846EE7 /* SDLVRHelpItem.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC221A84238C00846EE7 /* SDLVRHelpItem.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FE101A84238C00846EE7 /* SDLVRHelpItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC231A84238C00846EE7 /* SDLVRHelpItem.m */; }; + 5D61FE111A84238C00846EE7 /* SDLWarningLightStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC241A84238C00846EE7 /* SDLWarningLightStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FE121A84238C00846EE7 /* SDLWarningLightStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC251A84238C00846EE7 /* SDLWarningLightStatus.m */; }; + 5D61FE131A84238C00846EE7 /* SDLWiperStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC261A84238C00846EE7 /* SDLWiperStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D61FE141A84238C00846EE7 /* SDLWiperStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC271A84238C00846EE7 /* SDLWiperStatus.m */; }; + 5D86022E1C99AF5100A55266 /* OCMock.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1464351C99AC0900727339 /* OCMock.framework */; }; + 5D86022F1C99AF5900A55266 /* OCMock.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5D1464351C99AC0900727339 /* OCMock.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 5D8602301C99AF8300A55266 /* Nimble.framework.dSYM in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5D1464311C99AC0000727339 /* Nimble.framework.dSYM */; }; + 5D8602311C99AF8300A55266 /* OCMock.framework.dSYM in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5D1464331C99AC0900727339 /* OCMock.framework.dSYM */; }; + 5D8602321C99AF8300A55266 /* Quick.framework.dSYM in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5D1464341C99AC0900727339 /* Quick.framework.dSYM */; }; + 5D8B174F1AC9D266006A6E1C /* SDLDialNumber.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D8B174D1AC9D266006A6E1C /* SDLDialNumber.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D8B17501AC9D266006A6E1C /* SDLDialNumber.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D8B174E1AC9D266006A6E1C /* SDLDialNumber.m */; }; + 5D8B17531AC9E11B006A6E1C /* SDLDialNumberResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D8B17511AC9E11B006A6E1C /* SDLDialNumberResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5D8B17541AC9E11B006A6E1C /* SDLDialNumberResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D8B17521AC9E11B006A6E1C /* SDLDialNumberResponse.m */; }; + 5D8B17561AC9E399006A6E1C /* SDLDialNumberSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D8B17551AC9E399006A6E1C /* SDLDialNumberSpec.m */; }; + 5DA026901AD44EE700019F86 /* SDLDialNumberResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DA0268F1AD44EE700019F86 /* SDLDialNumberResponseSpec.m */; }; + 5DB92D241AC47B2C00C15BB0 /* SDLHexUtilitySpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DB92D231AC47B2C00C15BB0 /* SDLHexUtilitySpec.m */; }; + 5DB92D261AC4836F00C15BB0 /* SDLJingleSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DB92D251AC4836F00C15BB0 /* SDLJingleSpec.m */; }; + 5DB92D2D1AC4A34F00C15BB0 /* SDLPrioritizedObjectCollectionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DB92D2C1AC4A34F00C15BB0 /* SDLPrioritizedObjectCollectionSpec.m */; }; + 5DB92D2F1AC59F0000C15BB0 /* SDLObjectWithPrioritySpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DB92D2E1AC59F0000C15BB0 /* SDLObjectWithPrioritySpec.m */; }; + 5DB92D321AC9C8BA00C15BB0 /* SDLRPCStruct.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DB92D301AC9C8BA00C15BB0 /* SDLRPCStruct.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5DB92D331AC9C8BA00C15BB0 /* SDLRPCStruct.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DB92D311AC9C8BA00C15BB0 /* SDLRPCStruct.m */; }; + 5DC978261B7A38640012C2F1 /* SDLGlobalsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DC978251B7A38640012C2F1 /* SDLGlobalsSpec.m */; }; + 5DCC19A01B8221F3004FFAD9 /* SDLURLSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DCC199E1B8221F3004FFAD9 /* SDLURLSession.h */; }; + 5DCC19A11B8221F3004FFAD9 /* SDLURLSession.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCC199F1B8221F3004FFAD9 /* SDLURLSession.m */; }; + 5DCC19A41B822804004FFAD9 /* SDLURLRequestTask.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DCC19A21B822804004FFAD9 /* SDLURLRequestTask.h */; }; + 5DCC19A51B822804004FFAD9 /* SDLURLRequestTask.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCC19A31B822804004FFAD9 /* SDLURLRequestTask.m */; }; + 5DCF76F51ACDBAD300BB647B /* SDLSendLocation.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DCF76F31ACDBAD300BB647B /* SDLSendLocation.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5DCF76F61ACDBAD300BB647B /* SDLSendLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCF76F41ACDBAD300BB647B /* SDLSendLocation.m */; }; + 5DCF76F91ACDD7CD00BB647B /* SDLSendLocationResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DCF76F71ACDD7CD00BB647B /* SDLSendLocationResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5DCF76FA1ACDD7CD00BB647B /* SDLSendLocationResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCF76F81ACDD7CD00BB647B /* SDLSendLocationResponse.m */; }; + 5DCF76FC1ACDDB4200BB647B /* SDLSendLocationSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCF76FB1ACDDB4200BB647B /* SDLSendLocationSpec.m */; }; + 5DCF76FE1ACDDB5A00BB647B /* SDLSendLocationResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCF76FD1ACDDB5A00BB647B /* SDLSendLocationResponseSpec.m */; }; + 5DE372A11ACB2ED300849FAA /* SDLHMICapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DE3729F1ACB2ED300849FAA /* SDLHMICapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5DE372A21ACB2ED300849FAA /* SDLHMICapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DE372A01ACB2ED300849FAA /* SDLHMICapabilities.m */; }; + 5DE372A41ACB336600849FAA /* SDLHMICapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DE372A31ACB336600849FAA /* SDLHMICapabilitiesSpec.m */; }; + 5DE372A61ACC35B400849FAA /* SDLDebugToolConsole.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DE372A51ACC35B400849FAA /* SDLDebugToolConsole.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5DE5ABB71B0E38C90067BB02 /* SDLSystemRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBD21A84238B00846EE7 /* SDLSystemRequest.h */; }; + 5DE5ABB81B0E38C90067BB02 /* SDLSystemRequestResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBD41A84238B00846EE7 /* SDLSystemRequestResponse.h */; }; + 5DEE55C01B8509CB004F0D0F /* SDLURLRequestTaskSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DEE55BF1B8509CB004F0D0F /* SDLURLRequestTaskSpec.m */; }; + 5DEE55C21B864A7D004F0D0F /* OHHTTPStubs.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DEE55C11B864A7D004F0D0F /* OHHTTPStubs.framework */; }; + 5DEE55C51B864AB3004F0D0F /* OHHTTPStubs.framework.dSYM in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5DEE55C41B864AB3004F0D0F /* OHHTTPStubs.framework.dSYM */; }; + 5DEE55C61B8666A8004F0D0F /* OHHTTPStubs.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5DEE55C11B864A7D004F0D0F /* OHHTTPStubs.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 5DF2BB9D1B94E38A00CE5994 /* SDLURLSessionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DF2BB9C1B94E38A00CE5994 /* SDLURLSessionSpec.m */; }; + E9C32B861AB20B4300F283AF /* NSThread+ThreadIndex.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B841AB20B4300F283AF /* NSThread+ThreadIndex.h */; }; + E9C32B871AB20B4300F283AF /* NSThread+ThreadIndex.m in Sources */ = {isa = PBXBuildFile; fileRef = E9C32B851AB20B4300F283AF /* NSThread+ThreadIndex.m */; }; + E9C32B911AB20BA200F283AF /* SDLIAPSession.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B891AB20BA200F283AF /* SDLIAPSession.h */; }; + E9C32B921AB20BA200F283AF /* SDLIAPSession.m in Sources */ = {isa = PBXBuildFile; fileRef = E9C32B8A1AB20BA200F283AF /* SDLIAPSession.m */; }; + E9C32B931AB20BA200F283AF /* SDLIAPSessionDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B8B1AB20BA200F283AF /* SDLIAPSessionDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + E9C32B941AB20BA200F283AF /* SDLStreamDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B8C1AB20BA200F283AF /* SDLStreamDelegate.h */; }; + E9C32B951AB20BA200F283AF /* SDLStreamDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E9C32B8D1AB20BA200F283AF /* SDLStreamDelegate.m */; }; + E9C32B961AB20BA200F283AF /* SDLTimer.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B8E1AB20BA200F283AF /* SDLTimer.h */; }; + E9C32B971AB20BA200F283AF /* SDLTimer.m in Sources */ = {isa = PBXBuildFile; fileRef = E9C32B8F1AB20BA200F283AF /* SDLTimer.m */; }; + E9C32B9C1AB20C5900F283AF /* EAAccessory+SDLProtocols.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B981AB20C5900F283AF /* EAAccessory+SDLProtocols.h */; }; + E9C32B9D1AB20C5900F283AF /* EAAccessory+SDLProtocols.m in Sources */ = {isa = PBXBuildFile; fileRef = E9C32B991AB20C5900F283AF /* EAAccessory+SDLProtocols.m */; }; + E9C32B9E1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B9A1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.h */; }; + E9C32B9F1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.m in Sources */ = {isa = PBXBuildFile; fileRef = E9C32B9B1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 5D61FA281A84237100846EE7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 5D4019A71A76EC350006B0C2 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 5D61FA1B1A84237100846EE7; + remoteInfo = SmartDeviceLink; + }; + 5D61FA2A1A84237100846EE7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 5D4019A71A76EC350006B0C2 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 5D4019AE1A76EC350006B0C2; + remoteInfo = "SmartDeviceLink-Example"; + }; + 5D61FA311A84237100846EE7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 5D4019A71A76EC350006B0C2 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 5D61FA1B1A84237100846EE7; + remoteInfo = SmartDeviceLink; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 162E81CE1A9BDDBB00906325 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 5DEE55C61B8666A8004F0D0F /* OHHTTPStubs.framework in CopyFiles */, + 5D86022F1C99AF5900A55266 /* OCMock.framework in CopyFiles */, + 5D4AB7A21B21EC16004C1AB0 /* SmartDeviceLink.framework in CopyFiles */, + 162E81CF1A9BDDD800906325 /* Nimble.framework in CopyFiles */, + 162E81D01A9BDDD800906325 /* Quick.framework in CopyFiles */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 5D401CE11A76ED0B0006B0C2 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 5D61FA341A84237100846EE7 /* SmartDeviceLink.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; + 5DEE55C31B864A98004F0D0F /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 16; + files = ( + 5D8602301C99AF8300A55266 /* Nimble.framework.dSYM in CopyFiles */, + 5DEE55C51B864AB3004F0D0F /* OHHTTPStubs.framework.dSYM in CopyFiles */, + 5D8602311C99AF8300A55266 /* OCMock.framework.dSYM in CopyFiles */, + 5D8602321C99AF8300A55266 /* Quick.framework.dSYM in CopyFiles */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 162E81C81A9BDD3F00906325 /* Nimble.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Nimble.framework; path = Carthage/Build/iOS/Nimble.framework; sourceTree = ""; }; + 162E81C91A9BDD3F00906325 /* Quick.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Quick.framework; path = Carthage/Build/iOS/Quick.framework; sourceTree = ""; }; + 162E81E21A9BDE8A00906325 /* SDLAmbientLightStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAmbientLightStatusSpec.m; sourceTree = ""; }; + 162E81E31A9BDE8A00906325 /* SDLAppHMITypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAppHMITypeSpec.m; sourceTree = ""; }; + 162E81E41A9BDE8A00906325 /* SDLAppInterfaceUnregisteredReasonSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAppInterfaceUnregisteredReasonSpec.m; sourceTree = ""; }; + 162E81E51A9BDE8A00906325 /* SDLAudioStreamingStateSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAudioStreamingStateSpec.m; sourceTree = ""; }; + 162E81E61A9BDE8A00906325 /* SDLAudioTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAudioTypeSpec.m; sourceTree = ""; }; + 162E81E71A9BDE8A00906325 /* SDLBitsPerSampleSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLBitsPerSampleSpec.m; sourceTree = ""; }; + 162E81E81A9BDE8A00906325 /* SDLButtonEventModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonEventModeSpec.m; sourceTree = ""; }; + 162E81E91A9BDE8A00906325 /* SDLButtonNameSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonNameSpec.m; sourceTree = ""; }; + 162E81EA1A9BDE8A00906325 /* SDLButtonPressModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonPressModeSpec.m; sourceTree = ""; }; + 162E81EB1A9BDE8A00906325 /* SDLCarModeStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCarModeStatusSpec.m; sourceTree = ""; }; + 162E81EC1A9BDE8A00906325 /* SDLCharacterSetSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCharacterSetSpec.m; sourceTree = ""; }; + 162E81ED1A9BDE8A00906325 /* SDLCompassDirectionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCompassDirectionSpec.m; sourceTree = ""; }; + 162E81EE1A9BDE8A00906325 /* SDLComponentVolumeStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLComponentVolumeStatusSpec.m; sourceTree = ""; }; + 162E81EF1A9BDE8A00906325 /* SDLDeviceLevelStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeviceLevelStatusSpec.m; sourceTree = ""; }; + 162E81F01A9BDE8A00906325 /* SDLDimensionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDimensionSpec.m; sourceTree = ""; }; + 162E81F11A9BDE8A00906325 /* SDLDisplayTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDisplayTypeSpec.m; sourceTree = ""; }; + 162E81F21A9BDE8A00906325 /* SDLDriverDistractionStateSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDriverDistractionStateSpec.m; sourceTree = ""; }; + 162E81F31A9BDE8A00906325 /* SDLECallConfirmationStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLECallConfirmationStatusSpec.m; sourceTree = ""; }; + 162E81F41A9BDE8A00906325 /* SDLEmergencyEventTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEmergencyEventTypeSpec.m; sourceTree = ""; }; + 162E81F51A9BDE8A00906325 /* SDLFileTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLFileTypeSpec.m; sourceTree = ""; }; + 162E81F61A9BDE8A00906325 /* SDLFuelCutoffStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLFuelCutoffStatusSpec.m; sourceTree = ""; }; + 162E81F71A9BDE8A00906325 /* SDLGlobalProperySpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGlobalProperySpec.m; sourceTree = ""; }; + 162E81F81A9BDE8A00906325 /* SDLHMILevelSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMILevelSpec.m; sourceTree = ""; }; + 162E81F91A9BDE8A00906325 /* SDLHMIZoneCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMIZoneCapabilitiesSpec.m; sourceTree = ""; }; + 162E81FA1A9BDE8A00906325 /* SDLIgnitionStableStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLIgnitionStableStatusSpec.m; sourceTree = ""; }; + 162E81FB1A9BDE8A00906325 /* SDLIgnitionStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLIgnitionStatusSpec.m; sourceTree = ""; }; + 162E81FC1A9BDE8A00906325 /* SDLImageFieldNameSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageFieldNameSpec.m; sourceTree = ""; }; + 162E81FD1A9BDE8A00906325 /* SDLImageTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageTypeSpec.m; sourceTree = ""; }; + 162E81FE1A9BDE8A00906325 /* SDLInteractionModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLInteractionModeSpec.m; sourceTree = ""; }; + 162E81FF1A9BDE8A00906325 /* SDLKeyboardEventSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeyboardEventSpec.m; sourceTree = ""; }; + 162E82001A9BDE8A00906325 /* SDLKeyboardLayoutSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeyboardLayoutSpec.m; sourceTree = ""; }; + 162E82011A9BDE8A00906325 /* SDLKeypressModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeypressModeSpec.m; sourceTree = ""; }; + 162E82021A9BDE8A00906325 /* SDLLanguageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLanguageSpec.m; sourceTree = ""; }; + 162E82031A9BDE8A00906325 /* SDLLayoutModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLayoutModeSpec.m; sourceTree = ""; }; + 162E82041A9BDE8A00906325 /* SDLLockScreenStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLockScreenStatusSpec.m; sourceTree = ""; }; + 162E82051A9BDE8A00906325 /* SDLMaintenanceModeStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMaintenanceModeStatusSpec.m; sourceTree = ""; }; + 162E82061A9BDE8A00906325 /* SDLMediaClockFormatSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMediaClockFormatSpec.m; sourceTree = ""; }; + 162E82071A9BDE8A00906325 /* SDLPermissionStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPermissionStatusSpec.m; sourceTree = ""; }; + 162E82081A9BDE8A00906325 /* SDLPowerModeQualificationStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPowerModeQualificationStatusSpec.m; sourceTree = ""; }; + 162E82091A9BDE8A00906325 /* SDLPowerModeStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPowerModeStatusSpec.m; sourceTree = ""; }; + 162E820A1A9BDE8A00906325 /* SDLPredefinedLayoutSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPredefinedLayoutSpec.m; sourceTree = ""; }; + 162E820B1A9BDE8A00906325 /* SDLPrerecordedSpeechSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPrerecordedSpeechSpec.m; sourceTree = ""; }; + 162E820C1A9BDE8A00906325 /* SDLPrimaryAudioSource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPrimaryAudioSource.m; sourceTree = ""; }; + 162E820D1A9BDE8A00906325 /* SDLPRNDLSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPRNDLSpec.m; sourceTree = ""; }; + 162E820E1A9BDE8A00906325 /* SDLRequestTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRequestTypeSpec.m; sourceTree = ""; }; + 162E820F1A9BDE8A00906325 /* SDLResultSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLResultSpec.m; sourceTree = ""; }; + 162E82111A9BDE8A00906325 /* SDLSamplingRateSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSamplingRateSpec.m; sourceTree = ""; }; + 162E82121A9BDE8A00906325 /* SDLSoftButtonTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSoftButtonTypeSpec.m; sourceTree = ""; }; + 162E82131A9BDE8A00906325 /* SDLSpeechCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpeechCapabilitiesSpec.m; sourceTree = ""; }; + 162E82141A9BDE8A00906325 /* SDLSystemAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemAction.m; sourceTree = ""; }; + 162E82151A9BDE8A00906325 /* SDLSystemContextSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemContextSpec.m; sourceTree = ""; }; + 162E82161A9BDE8A00906325 /* SDLTBTStateSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTBTStateSpec.m; sourceTree = ""; }; + 162E82171A9BDE8A00906325 /* SDLTextAlignmentSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTextAlignmentSpec.m; sourceTree = ""; }; + 162E82181A9BDE8A00906325 /* SDLTextFieldNameSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTextFieldNameSpec.m; sourceTree = ""; }; + 162E82191A9BDE8A00906325 /* SDLTimerModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTimerModeSpec.m; sourceTree = ""; }; + 162E821A1A9BDE8A00906325 /* SDLTouchTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchTypeSpec.m; sourceTree = ""; }; + 162E821B1A9BDE8A00906325 /* SDLTriggerSource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTriggerSource.m; sourceTree = ""; }; + 162E821C1A9BDE8A00906325 /* SDLUpdateModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUpdateModeSpec.m; sourceTree = ""; }; + 162E821D1A9BDE8A00906325 /* SDLVehicleDataActiveStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataActiveStatusSpec.m; sourceTree = ""; }; + 162E821E1A9BDE8A00906325 /* SDLVehicleDataEventStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataEventStatusSpec.m; sourceTree = ""; }; + 162E821F1A9BDE8A00906325 /* SDLVehicleDataNotificationStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataNotificationStatusSpec.m; sourceTree = ""; }; + 162E82201A9BDE8A00906325 /* SDLVehicleDataResultCodeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataResultCodeSpec.m; sourceTree = ""; }; + 162E82211A9BDE8A00906325 /* SDLVehicleDataStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataStatusSpec.m; sourceTree = ""; }; + 162E82221A9BDE8A00906325 /* SDLVehicleDataTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataTypeSpec.m; sourceTree = ""; }; + 162E82231A9BDE8A00906325 /* SDLVrCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVrCapabilitiesSpec.m; sourceTree = ""; }; + 162E82241A9BDE8A00906325 /* SDLWarningLightStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLWarningLightStatusSpec.m; sourceTree = ""; }; + 162E82251A9BDE8A00906325 /* SDLWiperStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLWiperStatusSpec.m; sourceTree = ""; }; + 162E82271A9BDE8A00906325 /* SDLRPCRequestFactorySpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCRequestFactorySpec.m; sourceTree = ""; }; + 162E82291A9BDE8A00906325 /* SDLOnAppInterfaceUnregisteredSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnAppInterfaceUnregisteredSpec.m; sourceTree = ""; }; + 162E822A1A9BDE8A00906325 /* SDLOnAudioPassThruSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnAudioPassThruSpec.m; sourceTree = ""; }; + 162E822B1A9BDE8A00906325 /* SDLOnButtonEventSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnButtonEventSpec.m; sourceTree = ""; }; + 162E822C1A9BDE8A00906325 /* SDLOnButtonPressSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnButtonPressSpec.m; sourceTree = ""; }; + 162E822D1A9BDE8A00906325 /* SDLOnCommandSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnCommandSpec.m; sourceTree = ""; }; + 162E822E1A9BDE8A00906325 /* SDLOnDriverDistractionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnDriverDistractionSpec.m; sourceTree = ""; }; + 162E822F1A9BDE8A00906325 /* SDLOnEncodedSyncPDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnEncodedSyncPDataSpec.m; sourceTree = ""; }; + 162E82301A9BDE8A00906325 /* SDLOnHashChangeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnHashChangeSpec.m; sourceTree = ""; }; + 162E82311A9BDE8A00906325 /* SDLOnHMIStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnHMIStatusSpec.m; sourceTree = ""; }; + 162E82321A9BDE8A00906325 /* SDLOnKeyboardInputSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnKeyboardInputSpec.m; sourceTree = ""; }; + 162E82331A9BDE8A00906325 /* SDLOnLanguageChangeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnLanguageChangeSpec.m; sourceTree = ""; }; + 162E82341A9BDE8A00906325 /* SDLOnLockScreenStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnLockScreenStatusSpec.m; sourceTree = ""; }; + 162E82351A9BDE8A00906325 /* SDLOnPermissionsChangeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnPermissionsChangeSpec.m; sourceTree = ""; }; + 162E82361A9BDE8A00906325 /* SDLOnSyncPDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnSyncPDataSpec.m; sourceTree = ""; }; + 162E82371A9BDE8A00906325 /* SDLOnSystemRequestSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnSystemRequestSpec.m; sourceTree = ""; }; + 162E82381A9BDE8A00906325 /* SDLOnTBTClientStateSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnTBTClientStateSpec.m; sourceTree = ""; }; + 162E82391A9BDE8A00906325 /* SDLOnTouchEventSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnTouchEventSpec.m; sourceTree = ""; }; + 162E823A1A9BDE8A00906325 /* SDLOnVehicleDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnVehicleDataSpec.m; sourceTree = ""; }; + 162E823C1A9BDE8A00906325 /* SDLRPCPayloadSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCPayloadSpec.m; sourceTree = ""; }; + 162E823E1A9BDE8A00906325 /* SDLAddCommandSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddCommandSpec.m; sourceTree = ""; }; + 162E823F1A9BDE8A00906325 /* SDLAddSubMenuSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddSubMenuSpec.m; sourceTree = ""; }; + 162E82401A9BDE8A00906325 /* SDLAlertManeuverSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertManeuverSpec.m; sourceTree = ""; }; + 162E82411A9BDE8A00906325 /* SDLAlertSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertSpec.m; sourceTree = ""; }; + 162E82421A9BDE8A00906325 /* SDLChangeRegistrationSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLChangeRegistrationSpec.m; sourceTree = ""; }; + 162E82431A9BDE8A00906325 /* SDLCreateInteractionChoiceSetSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCreateInteractionChoiceSetSpec.m; sourceTree = ""; }; + 162E82441A9BDE8A00906325 /* SDLDeleteCommandSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteCommandSpec.m; sourceTree = ""; }; + 162E82451A9BDE8A00906325 /* SDLDeleteFileSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteFileSpec.m; sourceTree = ""; }; + 162E82461A9BDE8A00906325 /* SDLDeleteInteractionChoiceSetSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteInteractionChoiceSetSpec.m; sourceTree = ""; }; + 162E82471A9BDE8A00906325 /* SDLDeleteSubMenuSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteSubMenuSpec.m; sourceTree = ""; }; + 162E82481A9BDE8A00906325 /* SDLDiagnosticMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDiagnosticMessageSpec.m; sourceTree = ""; }; + 162E82491A9BDE8A00906325 /* SDLEncodedSyncPDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEncodedSyncPDataSpec.m; sourceTree = ""; }; + 162E824A1A9BDE8A00906325 /* SDLEndAudioPassThruSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEndAudioPassThruSpec.m; sourceTree = ""; }; + 162E824B1A9BDE8A00906325 /* SDLGetDTCsSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetDTCsSpec.m; sourceTree = ""; }; + 162E824C1A9BDE8A00906325 /* SDLGetVehicleDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetVehicleDataSpec.m; sourceTree = ""; }; + 162E824D1A9BDE8A00906325 /* SDLListFilesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLListFilesSpec.m; sourceTree = ""; }; + 162E824E1A9BDE8A00906325 /* SDLPerformAudioPassThruSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformAudioPassThruSpec.m; sourceTree = ""; }; + 162E824F1A9BDE8A00906325 /* SDLPerformInteractionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformInteractionSpec.m; sourceTree = ""; }; + 162E82501A9BDE8A00906325 /* SDLPutFileSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPutFileSpec.m; sourceTree = ""; }; + 162E82511A9BDE8A00906325 /* SDLReadDIDSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLReadDIDSpec.m; sourceTree = ""; }; + 162E82521A9BDE8A00906325 /* SDLRegisterAppInterfaceSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRegisterAppInterfaceSpec.m; sourceTree = ""; }; + 162E82531A9BDE8A00906325 /* SDLResetGlobalPropertiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLResetGlobalPropertiesSpec.m; sourceTree = ""; }; + 162E82541A9BDE8A00906325 /* SDLScrollableMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLScrollableMessageSpec.m; sourceTree = ""; }; + 162E82551A9BDE8A00906325 /* SDLSetAppIconSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetAppIconSpec.m; sourceTree = ""; }; + 162E82561A9BDE8A00906325 /* SDLSetDisplayLayoutSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetDisplayLayoutSpec.m; sourceTree = ""; }; + 162E82571A9BDE8A00906325 /* SDLSetGlobalPropertiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetGlobalPropertiesSpec.m; sourceTree = ""; }; + 162E82581A9BDE8A00906325 /* SDLSetMediaClockTimerSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetMediaClockTimerSpec.m; sourceTree = ""; }; + 162E82591A9BDE8A00906325 /* SDLShowConstantTBTSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowConstantTBTSpec.m; sourceTree = ""; }; + 162E825A1A9BDE8A00906325 /* SDLShowSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowSpec.m; sourceTree = ""; }; + 162E825B1A9BDE8A00906325 /* SDLSliderSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSliderSpec.m; sourceTree = ""; }; + 162E825C1A9BDE8A00906325 /* SDLSpeakSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpeakSpec.m; sourceTree = ""; }; + 162E825D1A9BDE8A00906325 /* SDLSubscribeButtonSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeButtonSpec.m; sourceTree = ""; }; + 162E825E1A9BDE8A00906325 /* SDLSubscribeVehicleDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeVehicleDataSpec.m; sourceTree = ""; }; + 162E825F1A9BDE8A00906325 /* SDLSyncPDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSyncPDataSpec.m; sourceTree = ""; }; + 162E82601A9BDE8A00906325 /* SDLSystemRequestSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemRequestSpec.m; sourceTree = ""; }; + 162E82611A9BDE8A00906325 /* SDLUnregisterAppInterfaceSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnregisterAppInterfaceSpec.m; sourceTree = ""; }; + 162E82621A9BDE8A00906325 /* SDLUnsubscribeButtonSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeButtonSpec.m; sourceTree = ""; }; + 162E82631A9BDE8A00906325 /* SDLUnsubscribeVehicleDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeVehicleDataSpec.m; sourceTree = ""; }; + 162E82641A9BDE8A00906325 /* SDLUpdateTurnListSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUpdateTurnListSpec.m; sourceTree = ""; }; + 162E82661A9BDE8A00906325 /* SDLAddCommandResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddCommandResponseSpec.m; sourceTree = ""; }; + 162E82671A9BDE8A00906325 /* SDLAddSubMenuResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddSubMenuResponseSpec.m; sourceTree = ""; }; + 162E82681A9BDE8A00906325 /* SDLAlertManeuverResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertManeuverResponseSpec.m; sourceTree = ""; }; + 162E82691A9BDE8A00906325 /* SDLAlertResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertResponseSpec.m; sourceTree = ""; }; + 162E826A1A9BDE8A00906325 /* SDLChangeRegistrationResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLChangeRegistrationResponseSpec.m; sourceTree = ""; }; + 162E826B1A9BDE8A00906325 /* SDLCreateInteractionChoiceSetResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCreateInteractionChoiceSetResponseSpec.m; sourceTree = ""; }; + 162E826C1A9BDE8A00906325 /* SDLDeleteCommandResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteCommandResponseSpec.m; sourceTree = ""; }; + 162E826D1A9BDE8A00906325 /* SDLDeleteFileResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteFileResponseSpec.m; sourceTree = ""; }; + 162E826E1A9BDE8A00906325 /* SDLDeleteInteractionChoiceSetResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteInteractionChoiceSetResponseSpec.m; sourceTree = ""; }; + 162E826F1A9BDE8A00906325 /* SDLDeleteSubMenuResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteSubMenuResponseSpec.m; sourceTree = ""; }; + 162E82701A9BDE8A00906325 /* SDLDiagnosticMessageResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDiagnosticMessageResponseSpec.m; sourceTree = ""; }; + 162E82711A9BDE8A00906325 /* SDLEncodedSyncPDataResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEncodedSyncPDataResponseSpec.m; sourceTree = ""; }; + 162E82721A9BDE8A00906325 /* SDLEndAudioPassThruResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEndAudioPassThruResponseSpec.m; sourceTree = ""; }; + 162E82731A9BDE8A00906325 /* SDLGenericResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGenericResponseSpec.m; sourceTree = ""; }; + 162E82741A9BDE8A00906325 /* SDLGetDTCsResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetDTCsResponseSpec.m; sourceTree = ""; }; + 162E82751A9BDE8A00906325 /* SDLGetVehicleDataResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetVehicleDataResponseSpec.m; sourceTree = ""; }; + 162E82761A9BDE8A00906325 /* SDLListFilesResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLListFilesResponseSpec.m; sourceTree = ""; }; + 162E82771A9BDE8A00906325 /* SDLPerformAudioPassThruResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformAudioPassThruResponseSpec.m; sourceTree = ""; }; + 162E82781A9BDE8A00906325 /* SDLPerformInteractionResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformInteractionResponseSpec.m; sourceTree = ""; }; + 162E82791A9BDE8A00906325 /* SDLPutFileResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPutFileResponseSpec.m; sourceTree = ""; }; + 162E827A1A9BDE8A00906325 /* SDLReadDIDResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLReadDIDResponseSpec.m; sourceTree = ""; }; + 162E827B1A9BDE8A00906325 /* SDLRegisterAppInterfaceResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRegisterAppInterfaceResponseSpec.m; sourceTree = ""; }; + 162E827C1A9BDE8A00906325 /* SDLResetGlobalPropertiesResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLResetGlobalPropertiesResponseSpec.m; sourceTree = ""; }; + 162E827D1A9BDE8A00906325 /* SDLScrollableMessageResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLScrollableMessageResponseSpec.m; sourceTree = ""; }; + 162E827E1A9BDE8A00906325 /* SDLSetAppIconResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetAppIconResponseSpec.m; sourceTree = ""; }; + 162E827F1A9BDE8A00906325 /* SDLSetDisplayLayoutResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetDisplayLayoutResponseSpec.m; sourceTree = ""; }; + 162E82801A9BDE8A00906325 /* SDLSetGlobalPropertiesResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetGlobalPropertiesResponseSpec.m; sourceTree = ""; }; + 162E82811A9BDE8A00906325 /* SDLSetMediaClockTimerResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetMediaClockTimerResponseSpec.m; sourceTree = ""; }; + 162E82821A9BDE8A00906325 /* SDLShowConstantTBTResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowConstantTBTResponseSpec.m; sourceTree = ""; }; + 162E82831A9BDE8A00906325 /* SDLShowResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowResponseSpec.m; sourceTree = ""; }; + 162E82841A9BDE8A00906325 /* SDLSliderResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSliderResponseSpec.m; sourceTree = ""; }; + 162E82851A9BDE8A00906325 /* SDLSpeakResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpeakResponseSpec.m; sourceTree = ""; }; + 162E82861A9BDE8A00906325 /* SDLSubscribeButtonResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeButtonResponseSpec.m; sourceTree = ""; }; + 162E82871A9BDE8A00906325 /* SDLSubscribeVehicleDataResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeVehicleDataResponseSpec.m; sourceTree = ""; }; + 162E82881A9BDE8A00906325 /* SDLSyncPDataResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSyncPDataResponseSpec.m; sourceTree = ""; }; + 162E82891A9BDE8A00906325 /* SDLSystemRequestResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemRequestResponseSpec.m; sourceTree = ""; }; + 162E828A1A9BDE8A00906325 /* SDLUnregisterAppInterfaceResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnregisterAppInterfaceResponseSpec.m; sourceTree = ""; }; + 162E828B1A9BDE8A00906325 /* SDLUnsubscribeButtonResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeButtonResponseSpec.m; sourceTree = ""; }; + 162E828C1A9BDE8A00906325 /* SDLUnsubscribeVehicleDataResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeVehicleDataResponseSpec.m; sourceTree = ""; }; + 162E828D1A9BDE8A00906325 /* SDLUpdateTurnListResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUpdateTurnListResponseSpec.m; sourceTree = ""; }; + 162E828F1A9BDE8A00906325 /* SDLAirbagStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAirbagStatusSpec.m; sourceTree = ""; }; + 162E82901A9BDE8A00906325 /* SDLAudioPassThruCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAudioPassThruCapabilitiesSpec.m; sourceTree = ""; }; + 162E82911A9BDE8A00906325 /* SDLBeltStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLBeltStatusSpec.m; sourceTree = ""; }; + 162E82921A9BDE8A00906325 /* SDLBodyInformationSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLBodyInformationSpec.m; sourceTree = ""; }; + 162E82931A9BDE8A00906325 /* SDLButtonCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonCapabilitiesSpec.m; sourceTree = ""; }; + 162E82941A9BDE8A00906325 /* SDLChoiceSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLChoiceSpec.m; sourceTree = ""; }; + 162E82951A9BDE8A00906325 /* SDLClusterModeStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLClusterModeStatusSpec.m; sourceTree = ""; }; + 162E82961A9BDE8A00906325 /* SDLDeviceInfoSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeviceInfoSpec.m; sourceTree = ""; }; + 162E82971A9BDE8A00906325 /* SDLDeviceStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeviceStatusSpec.m; sourceTree = ""; }; + 162E82981A9BDE8A00906325 /* SDLDIDResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDIDResult.m; sourceTree = ""; }; + 162E82991A9BDE8A00906325 /* SDLDisplayCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDisplayCapabilitiesSpec.m; sourceTree = ""; }; + 162E829A1A9BDE8A00906325 /* SDLECallInfoSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLECallInfoSpec.m; sourceTree = ""; }; + 162E829B1A9BDE8A00906325 /* SDLEmergencyEventSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEmergencyEventSpec.m; sourceTree = ""; }; + 162E829C1A9BDE8A00906325 /* SDLGPSDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGPSDataSpec.m; sourceTree = ""; }; + 162E829D1A9BDE8A00906325 /* SDLHeadLampStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHeadLampStatusSpec.m; sourceTree = ""; }; + 162E829E1A9BDE8A00906325 /* SDLHMIPermissionsSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMIPermissionsSpec.m; sourceTree = ""; }; + 162E829F1A9BDE8A00906325 /* SDLImageFieldSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageFieldSpec.m; sourceTree = ""; }; + 162E82A01A9BDE8A00906325 /* SDLImageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageSpec.m; sourceTree = ""; }; + 162E82A11A9BDE8A00906325 /* SDLKeyboardPropertiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeyboardPropertiesSpec.m; sourceTree = ""; }; + 162E82A21A9BDE8A00906325 /* SDLMenuParamsSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMenuParamsSpec.m; sourceTree = ""; }; + 162E82A31A9BDE8A00906325 /* SDLMyKeySpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMyKeySpec.m; sourceTree = ""; }; + 162E82A41A9BDE8A00906325 /* SDLParameterPermissionsSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLParameterPermissionsSpec.m; sourceTree = ""; }; + 162E82A51A9BDE8A00906325 /* SDLPermissionItemSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPermissionItemSpec.m; sourceTree = ""; }; + 162E82A61A9BDE8A00906325 /* SDLPresetBankCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPresetBankCapabilitiesSpec.m; sourceTree = ""; }; + 162E82A71A9BDE8A00906325 /* SDLScreenParamsSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLScreenParamsSpec.m; sourceTree = ""; }; + 162E82A81A9BDE8A00906325 /* SDLSingleTireStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSingleTireStatusSpec.m; sourceTree = ""; }; + 162E82A91A9BDE8A00906325 /* SDLSoftButtonCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSoftButtonCapabilitiesSpec.m; sourceTree = ""; }; + 162E82AA1A9BDE8A00906325 /* SDLSoftButtonSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSoftButtonSpec.m; sourceTree = ""; }; + 162E82AB1A9BDE8A00906325 /* SDLStartTimeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLStartTimeSpec.m; sourceTree = ""; }; + 162E82AC1A9BDE8A00906325 /* SDLSyncMsgVersionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSyncMsgVersionSpec.m; sourceTree = ""; }; + 162E82AD1A9BDE8A00906325 /* SDLTextFieldSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTextFieldSpec.m; sourceTree = ""; }; + 162E82AE1A9BDE8A00906325 /* SDLTireStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTireStatusSpec.m; sourceTree = ""; }; + 162E82AF1A9BDE8A00906325 /* SDLTouchCoordSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchCoordSpec.m; sourceTree = ""; }; + 162E82B01A9BDE8A00906325 /* SDLTouchEventCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchEventCapabilitiesSpec.m; sourceTree = ""; }; + 162E82B11A9BDE8A00906325 /* SDLTouchEventSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchEventSpec.m; sourceTree = ""; }; + 162E82B21A9BDE8A00906325 /* SDLTTSChunkSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTTSChunkSpec.m; sourceTree = ""; }; + 162E82B31A9BDE8A00906325 /* SDLTurnSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTurnSpec.m; sourceTree = ""; }; + 162E82B41A9BDE8A00906325 /* SDLVehicleDataResultSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataResultSpec.m; sourceTree = ""; }; + 162E82B51A9BDE8A00906325 /* SDLVehicleTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleTypeSpec.m; sourceTree = ""; }; + 162E82B61A9BDE8A00906325 /* SDLVrHelpItemSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVrHelpItemSpec.m; sourceTree = ""; }; + 162E82B81A9BDE8A00906325 /* SDLEnumSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEnumSpec.m; sourceTree = ""; }; + 162E82B91A9BDE8A00906325 /* SDLRPCMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCMessageSpec.m; sourceTree = ""; }; + 162E82BA1A9BDE8A00906325 /* SDLRPCNotificationSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCNotificationSpec.m; sourceTree = ""; }; + 162E82BB1A9BDE8A00906325 /* SDLRPCRequestSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCRequestSpec.m; sourceTree = ""; }; + 162E82BC1A9BDE8A00906325 /* SDLRPCResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCResponseSpec.m; sourceTree = ""; }; + 162E82BD1A9BDE8A00906325 /* SDLRPCStructSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCStructSpec.m; sourceTree = ""; }; + 167ED9451A9BCE5D00797BE5 /* SwiftSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftSpec.swift; sourceTree = ""; }; + 1680B1061A9CD7AD00DBD79E /* SDLProtocolHeaderSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolHeaderSpec.m; sourceTree = ""; }; + 1680B1071A9CD7AD00DBD79E /* SDLV1ProtocolHeaderSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV1ProtocolHeaderSpec.m; sourceTree = ""; }; + 1680B1081A9CD7AD00DBD79E /* SDLV2ProtocolHeaderSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV2ProtocolHeaderSpec.m; sourceTree = ""; }; + 1680B10A1A9CD7AD00DBD79E /* SDLProtocolMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolMessageSpec.m; sourceTree = ""; }; + 1680B10B1A9CD7AD00DBD79E /* SDLProtocolSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLProtocolSpec.m; path = MessageSpecs/SDLProtocolSpec.m; sourceTree = ""; }; + 1680B10C1A9CD7AD00DBD79E /* SDLV1ProtocolMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV1ProtocolMessageSpec.m; sourceTree = ""; }; + 1680B10D1A9CD7AD00DBD79E /* SDLV2ProtocolMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV2ProtocolMessageSpec.m; sourceTree = ""; }; + 1680B10E1A9CD7AD00DBD79E /* SDLAbstractProtocolSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAbstractProtocolSpec.m; sourceTree = ""; }; + 1680B10F1A9CD7AD00DBD79E /* SDLFunctionIDSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLFunctionIDSpec.m; sourceTree = ""; }; + 1680B1101A9CD7AD00DBD79E /* SDLProtocolMessageAssemblerSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolMessageAssemblerSpec.m; sourceTree = ""; }; + 1680B1111A9CD7AD00DBD79E /* SDLProtocolMessageDisassemblerSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolMessageDisassemblerSpec.m; sourceTree = ""; }; + 1680B1121A9CD7AD00DBD79E /* SDLProtocolReceivedMessageRouterSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolReceivedMessageRouterSpec.m; sourceTree = ""; }; + 5D0218F41A8E79C400D1BF62 /* ConnectionTCPTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ConnectionTCPTableViewController.h; path = SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.h; sourceTree = SOURCE_ROOT; }; + 5D0218F51A8E79C400D1BF62 /* ConnectionTCPTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ConnectionTCPTableViewController.m; path = SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.m; sourceTree = SOURCE_ROOT; }; + 5D0218F81A8E7A7300D1BF62 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = SmartDeviceLink_Example/Base.lproj/ConnectionTCPTableViewController.storyboard; sourceTree = SOURCE_ROOT; }; + 5D0218FA1A8E7E1700D1BF62 /* ConnectionContainerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ConnectionContainerViewController.h; path = SmartDeviceLink_Example/Classes/ConnectionContainerViewController.h; sourceTree = SOURCE_ROOT; }; + 5D0218FB1A8E7E1700D1BF62 /* ConnectionContainerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ConnectionContainerViewController.m; path = SmartDeviceLink_Example/Classes/ConnectionContainerViewController.m; sourceTree = SOURCE_ROOT; }; + 5D0218FD1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ConnectionIAPTableViewController.h; path = SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.h; sourceTree = SOURCE_ROOT; }; + 5D0218FE1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ConnectionIAPTableViewController.m; path = SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.m; sourceTree = SOURCE_ROOT; }; + 5D0219041A8E9F6D00D1BF62 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = SmartDeviceLink_Example/Base.lproj/ConnectionIAPTableViewController.storyboard; sourceTree = SOURCE_ROOT; }; + 5D1464311C99AC0000727339 /* Nimble.framework.dSYM */ = {isa = PBXFileReference; lastKnownFileType = wrapper.dsym; name = Nimble.framework.dSYM; path = Carthage/Build/iOS/Nimble.framework.dSYM; sourceTree = ""; }; + 5D1464331C99AC0900727339 /* OCMock.framework.dSYM */ = {isa = PBXFileReference; lastKnownFileType = wrapper.dsym; name = OCMock.framework.dSYM; path = Carthage/Build/iOS/OCMock.framework.dSYM; sourceTree = ""; }; + 5D1464341C99AC0900727339 /* Quick.framework.dSYM */ = {isa = PBXFileReference; lastKnownFileType = wrapper.dsym; name = Quick.framework.dSYM; path = Carthage/Build/iOS/Quick.framework.dSYM; sourceTree = ""; }; + 5D1464351C99AC0900727339 /* OCMock.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OCMock.framework; path = Carthage/Build/iOS/OCMock.framework; sourceTree = ""; }; + 5D3759BC1CE12E810088C60E /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = CHANGELOG.md; path = ../../CHANGELOG.md; sourceTree = ""; }; + 5D3759BD1CE12E810088C60E /* DEPENDENCIES.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = DEPENDENCIES.md; path = ../../DEPENDENCIES.md; sourceTree = ""; }; + 5D3759BE1CE12E810088C60E /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; name = LICENSE; path = ../../LICENSE; sourceTree = ""; }; + 5D3759BF1CE12E810088C60E /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../../README.md; sourceTree = ""; }; + 5D3759C01CE12E810088C60E /* SmartDeviceLink-iOS.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = "SmartDeviceLink-iOS.podspec"; path = "../../SmartDeviceLink-iOS.podspec"; sourceTree = ""; }; + 5D4019AF1A76EC350006B0C2 /* SmartDeviceLink-Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SmartDeviceLink-Example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 5D4029D31A76F0340006B0C2 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = SmartDeviceLink_Example/Images.xcassets; sourceTree = SOURCE_ROOT; }; + 5D4029D51A76F0410006B0C2 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = SmartDeviceLink_Example/Info.plist; sourceTree = SOURCE_ROOT; }; + 5D4029E01A76F0760006B0C2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = SmartDeviceLink_Example/Base.lproj/LaunchScreen.xib; sourceTree = SOURCE_ROOT; }; + 5D4029E21A76F0760006B0C2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = SmartDeviceLink_Example/Base.lproj/Main.storyboard; sourceTree = SOURCE_ROOT; }; + 5D48329B1A8EA33D00252386 /* Preferences.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Preferences.h; path = SmartDeviceLink_Example/Classes/Preferences.h; sourceTree = SOURCE_ROOT; }; + 5D48329C1A8EA33D00252386 /* Preferences.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Preferences.m; path = SmartDeviceLink_Example/Classes/Preferences.m; sourceTree = SOURCE_ROOT; }; + 5D48329F1A92868E00252386 /* ProxyManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ProxyManager.h; path = SmartDeviceLink_Example/Classes/ProxyManager.h; sourceTree = SOURCE_ROOT; }; + 5D4832A01A92868E00252386 /* ProxyManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ProxyManager.m; path = SmartDeviceLink_Example/Classes/ProxyManager.m; sourceTree = SOURCE_ROOT; }; + 5D4832A31A94F90D00252386 /* ConnectionTransitionContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ConnectionTransitionContext.h; path = SmartDeviceLink_Example/Classes/ConnectionTransitionContext.h; sourceTree = SOURCE_ROOT; }; + 5D4832A41A94F90D00252386 /* ConnectionTransitionContext.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ConnectionTransitionContext.m; path = SmartDeviceLink_Example/Classes/ConnectionTransitionContext.m; sourceTree = SOURCE_ROOT; }; + 5D4832A61A95191B00252386 /* ConnectionAnimatedTransition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ConnectionAnimatedTransition.h; path = SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.h; sourceTree = SOURCE_ROOT; }; + 5D4832A71A95191B00252386 /* ConnectionAnimatedTransition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ConnectionAnimatedTransition.m; path = SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.m; sourceTree = SOURCE_ROOT; }; + 5D535DC31B72473800CF7760 /* SDLGlobals.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGlobals.h; sourceTree = ""; }; + 5D535DC41B72473800CF7760 /* SDLGlobals.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGlobals.m; sourceTree = ""; }; + 5D53C46B1B7A99B9003526EA /* SDLStreamingMediaManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLStreamingMediaManager.h; sourceTree = ""; }; + 5D53C46C1B7A99B9003526EA /* SDLStreamingMediaManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLStreamingMediaManager.m; sourceTree = ""; }; + 5D59350B1A855EB300687FB9 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = SmartDeviceLink_Example/Classes/AppDelegate.h; sourceTree = SOURCE_ROOT; }; + 5D59350C1A855EB300687FB9 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = SmartDeviceLink_Example/Classes/AppDelegate.m; sourceTree = SOURCE_ROOT; }; + 5D5935111A855EBE00687FB9 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = SmartDeviceLink_Example/Classes/main.m; sourceTree = SOURCE_ROOT; }; + 5D59DD461B14FDEE00BE744D /* SDLLockScreenManagerSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLLockScreenManagerSpec.m; path = ProxySpecs/SDLLockScreenManagerSpec.m; sourceTree = ""; }; + 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SmartDeviceLink.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 5D61FA1F1A84237100846EE7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 5D61FA201A84237100846EE7 /* SmartDeviceLink.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SmartDeviceLink.h; sourceTree = ""; }; + 5D61FA261A84237100846EE7 /* SmartDeviceLinkTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SmartDeviceLinkTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 5D61FA2E1A84237100846EE7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 5D61FA3C1A84238A00846EE7 /* SDLAbstractProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAbstractProtocol.h; sourceTree = ""; }; + 5D61FA3D1A84238A00846EE7 /* SDLAbstractProtocol.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAbstractProtocol.m; sourceTree = ""; }; + 5D61FA3E1A84238A00846EE7 /* SDLAbstractTransport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAbstractTransport.h; sourceTree = ""; }; + 5D61FA3F1A84238A00846EE7 /* SDLAbstractTransport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAbstractTransport.m; sourceTree = ""; }; + 5D61FA401A84238A00846EE7 /* SDLAddCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAddCommand.h; sourceTree = ""; }; + 5D61FA411A84238A00846EE7 /* SDLAddCommand.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddCommand.m; sourceTree = ""; }; + 5D61FA421A84238A00846EE7 /* SDLAddCommandResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAddCommandResponse.h; sourceTree = ""; }; + 5D61FA431A84238A00846EE7 /* SDLAddCommandResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddCommandResponse.m; sourceTree = ""; }; + 5D61FA441A84238A00846EE7 /* SDLAddSubMenu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAddSubMenu.h; sourceTree = ""; }; + 5D61FA451A84238A00846EE7 /* SDLAddSubMenu.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddSubMenu.m; sourceTree = ""; }; + 5D61FA461A84238A00846EE7 /* SDLAddSubMenuResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAddSubMenuResponse.h; sourceTree = ""; }; + 5D61FA471A84238A00846EE7 /* SDLAddSubMenuResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddSubMenuResponse.m; sourceTree = ""; }; + 5D61FA481A84238A00846EE7 /* SDLAirbagStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAirbagStatus.h; sourceTree = ""; }; + 5D61FA491A84238A00846EE7 /* SDLAirbagStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAirbagStatus.m; sourceTree = ""; }; + 5D61FA4A1A84238A00846EE7 /* SDLAlert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAlert.h; sourceTree = ""; }; + 5D61FA4B1A84238A00846EE7 /* SDLAlert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlert.m; sourceTree = ""; }; + 5D61FA4C1A84238A00846EE7 /* SDLAlertManeuver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAlertManeuver.h; sourceTree = ""; }; + 5D61FA4D1A84238A00846EE7 /* SDLAlertManeuver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertManeuver.m; sourceTree = ""; }; + 5D61FA4E1A84238A00846EE7 /* SDLAlertManeuverResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAlertManeuverResponse.h; sourceTree = ""; }; + 5D61FA4F1A84238A00846EE7 /* SDLAlertManeuverResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertManeuverResponse.m; sourceTree = ""; }; + 5D61FA501A84238A00846EE7 /* SDLAlertResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAlertResponse.h; sourceTree = ""; }; + 5D61FA511A84238A00846EE7 /* SDLAlertResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertResponse.m; sourceTree = ""; }; + 5D61FA521A84238A00846EE7 /* SDLAmbientLightStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAmbientLightStatus.h; sourceTree = ""; }; + 5D61FA531A84238A00846EE7 /* SDLAmbientLightStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAmbientLightStatus.m; sourceTree = ""; }; + 5D61FA541A84238A00846EE7 /* SDLAppHMIType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAppHMIType.h; sourceTree = ""; }; + 5D61FA551A84238A00846EE7 /* SDLAppHMIType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAppHMIType.m; sourceTree = ""; }; + 5D61FA561A84238A00846EE7 /* SDLAppInterfaceUnregisteredReason.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAppInterfaceUnregisteredReason.h; sourceTree = ""; }; + 5D61FA571A84238A00846EE7 /* SDLAppInterfaceUnregisteredReason.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAppInterfaceUnregisteredReason.m; sourceTree = ""; }; + 5D61FA581A84238A00846EE7 /* SDLAudioPassThruCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAudioPassThruCapabilities.h; sourceTree = ""; }; + 5D61FA591A84238A00846EE7 /* SDLAudioPassThruCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAudioPassThruCapabilities.m; sourceTree = ""; }; + 5D61FA5A1A84238A00846EE7 /* SDLAudioStreamingState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAudioStreamingState.h; sourceTree = ""; }; + 5D61FA5B1A84238A00846EE7 /* SDLAudioStreamingState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAudioStreamingState.m; sourceTree = ""; }; + 5D61FA5C1A84238A00846EE7 /* SDLAudioType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAudioType.h; sourceTree = ""; }; + 5D61FA5D1A84238A00846EE7 /* SDLAudioType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAudioType.m; sourceTree = ""; }; + 5D61FA5E1A84238A00846EE7 /* SDLBeltStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLBeltStatus.h; sourceTree = ""; }; + 5D61FA5F1A84238A00846EE7 /* SDLBeltStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLBeltStatus.m; sourceTree = ""; }; + 5D61FA601A84238A00846EE7 /* SDLBitsPerSample.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLBitsPerSample.h; sourceTree = ""; }; + 5D61FA611A84238A00846EE7 /* SDLBitsPerSample.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLBitsPerSample.m; sourceTree = ""; }; + 5D61FA621A84238A00846EE7 /* SDLBodyInformation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLBodyInformation.h; sourceTree = ""; }; + 5D61FA631A84238A00846EE7 /* SDLBodyInformation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLBodyInformation.m; sourceTree = ""; }; + 5D61FA641A84238A00846EE7 /* SDLButtonCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLButtonCapabilities.h; sourceTree = ""; }; + 5D61FA651A84238A00846EE7 /* SDLButtonCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonCapabilities.m; sourceTree = ""; }; + 5D61FA661A84238A00846EE7 /* SDLButtonEventMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLButtonEventMode.h; sourceTree = ""; }; + 5D61FA671A84238A00846EE7 /* SDLButtonEventMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonEventMode.m; sourceTree = ""; }; + 5D61FA681A84238A00846EE7 /* SDLButtonName.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLButtonName.h; sourceTree = ""; }; + 5D61FA691A84238A00846EE7 /* SDLButtonName.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonName.m; sourceTree = ""; }; + 5D61FA6A1A84238A00846EE7 /* SDLButtonPressMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLButtonPressMode.h; sourceTree = ""; }; + 5D61FA6B1A84238A00846EE7 /* SDLButtonPressMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonPressMode.m; sourceTree = ""; }; + 5D61FA6C1A84238A00846EE7 /* SDLCarModeStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLCarModeStatus.h; sourceTree = ""; }; + 5D61FA6D1A84238A00846EE7 /* SDLCarModeStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCarModeStatus.m; sourceTree = ""; }; + 5D61FA6E1A84238A00846EE7 /* SDLChangeRegistration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLChangeRegistration.h; sourceTree = ""; }; + 5D61FA6F1A84238A00846EE7 /* SDLChangeRegistration.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLChangeRegistration.m; sourceTree = ""; }; + 5D61FA701A84238A00846EE7 /* SDLChangeRegistrationResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLChangeRegistrationResponse.h; sourceTree = ""; }; + 5D61FA711A84238A00846EE7 /* SDLChangeRegistrationResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLChangeRegistrationResponse.m; sourceTree = ""; }; + 5D61FA721A84238A00846EE7 /* SDLCharacterSet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLCharacterSet.h; sourceTree = ""; }; + 5D61FA731A84238A00846EE7 /* SDLCharacterSet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCharacterSet.m; sourceTree = ""; }; + 5D61FA741A84238A00846EE7 /* SDLChoice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLChoice.h; sourceTree = ""; }; + 5D61FA751A84238A00846EE7 /* SDLChoice.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLChoice.m; sourceTree = ""; }; + 5D61FA761A84238A00846EE7 /* SDLClusterModeStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLClusterModeStatus.h; sourceTree = ""; }; + 5D61FA771A84238A00846EE7 /* SDLClusterModeStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLClusterModeStatus.m; sourceTree = ""; }; + 5D61FA781A84238A00846EE7 /* SDLCompassDirection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLCompassDirection.h; sourceTree = ""; }; + 5D61FA791A84238A00846EE7 /* SDLCompassDirection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCompassDirection.m; sourceTree = ""; }; + 5D61FA7A1A84238A00846EE7 /* SDLComponentVolumeStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLComponentVolumeStatus.h; sourceTree = ""; }; + 5D61FA7B1A84238A00846EE7 /* SDLComponentVolumeStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLComponentVolumeStatus.m; sourceTree = ""; }; + 5D61FA7C1A84238A00846EE7 /* SDLConsoleController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLConsoleController.h; sourceTree = ""; }; + 5D61FA7D1A84238A00846EE7 /* SDLConsoleController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLConsoleController.m; sourceTree = ""; }; + 5D61FA7E1A84238A00846EE7 /* SDLCreateInteractionChoiceSet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLCreateInteractionChoiceSet.h; sourceTree = ""; }; + 5D61FA7F1A84238A00846EE7 /* SDLCreateInteractionChoiceSet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCreateInteractionChoiceSet.m; sourceTree = ""; }; + 5D61FA801A84238A00846EE7 /* SDLCreateInteractionChoiceSetResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLCreateInteractionChoiceSetResponse.h; sourceTree = ""; }; + 5D61FA811A84238A00846EE7 /* SDLCreateInteractionChoiceSetResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCreateInteractionChoiceSetResponse.m; sourceTree = ""; }; + 5D61FA821A84238A00846EE7 /* SDLDebugTool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDebugTool.h; sourceTree = ""; }; + 5D61FA831A84238A00846EE7 /* SDLDebugTool.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDebugTool.m; sourceTree = ""; }; + 5D61FA841A84238A00846EE7 /* SDLDecoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDecoder.h; sourceTree = ""; }; + 5D61FA851A84238A00846EE7 /* SDLDeleteCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteCommand.h; sourceTree = ""; }; + 5D61FA861A84238A00846EE7 /* SDLDeleteCommand.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteCommand.m; sourceTree = ""; }; + 5D61FA871A84238A00846EE7 /* SDLDeleteCommandResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteCommandResponse.h; sourceTree = ""; }; + 5D61FA881A84238A00846EE7 /* SDLDeleteCommandResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteCommandResponse.m; sourceTree = ""; }; + 5D61FA891A84238A00846EE7 /* SDLDeleteFile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteFile.h; sourceTree = ""; }; + 5D61FA8A1A84238A00846EE7 /* SDLDeleteFile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteFile.m; sourceTree = ""; }; + 5D61FA8B1A84238A00846EE7 /* SDLDeleteFileResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteFileResponse.h; sourceTree = ""; }; + 5D61FA8C1A84238A00846EE7 /* SDLDeleteFileResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteFileResponse.m; sourceTree = ""; }; + 5D61FA8D1A84238A00846EE7 /* SDLDeleteInteractionChoiceSet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteInteractionChoiceSet.h; sourceTree = ""; }; + 5D61FA8E1A84238A00846EE7 /* SDLDeleteInteractionChoiceSet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteInteractionChoiceSet.m; sourceTree = ""; }; + 5D61FA8F1A84238A00846EE7 /* SDLDeleteInteractionChoiceSetResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteInteractionChoiceSetResponse.h; sourceTree = ""; }; + 5D61FA901A84238A00846EE7 /* SDLDeleteInteractionChoiceSetResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteInteractionChoiceSetResponse.m; sourceTree = ""; }; + 5D61FA911A84238A00846EE7 /* SDLDeleteSubMenu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteSubMenu.h; sourceTree = ""; }; + 5D61FA921A84238A00846EE7 /* SDLDeleteSubMenu.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteSubMenu.m; sourceTree = ""; }; + 5D61FA931A84238A00846EE7 /* SDLDeleteSubMenuResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteSubMenuResponse.h; sourceTree = ""; }; + 5D61FA941A84238A00846EE7 /* SDLDeleteSubMenuResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteSubMenuResponse.m; sourceTree = ""; }; + 5D61FA951A84238A00846EE7 /* SDLDeviceInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeviceInfo.h; sourceTree = ""; }; + 5D61FA961A84238A00846EE7 /* SDLDeviceInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeviceInfo.m; sourceTree = ""; }; + 5D61FA971A84238A00846EE7 /* SDLDeviceLevelStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeviceLevelStatus.h; sourceTree = ""; }; + 5D61FA981A84238A00846EE7 /* SDLDeviceLevelStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeviceLevelStatus.m; sourceTree = ""; }; + 5D61FA991A84238A00846EE7 /* SDLDeviceStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeviceStatus.h; sourceTree = ""; }; + 5D61FA9A1A84238A00846EE7 /* SDLDeviceStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeviceStatus.m; sourceTree = ""; }; + 5D61FA9B1A84238A00846EE7 /* SDLDiagnosticMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDiagnosticMessage.h; sourceTree = ""; }; + 5D61FA9C1A84238A00846EE7 /* SDLDiagnosticMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDiagnosticMessage.m; sourceTree = ""; }; + 5D61FA9D1A84238A00846EE7 /* SDLDiagnosticMessageResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDiagnosticMessageResponse.h; sourceTree = ""; }; + 5D61FA9E1A84238A00846EE7 /* SDLDiagnosticMessageResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDiagnosticMessageResponse.m; sourceTree = ""; }; + 5D61FA9F1A84238A00846EE7 /* SDLDIDResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDIDResult.h; sourceTree = ""; }; + 5D61FAA01A84238A00846EE7 /* SDLDIDResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDIDResult.m; sourceTree = ""; }; + 5D61FAA11A84238A00846EE7 /* SDLDimension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDimension.h; sourceTree = ""; }; + 5D61FAA21A84238A00846EE7 /* SDLDimension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDimension.m; sourceTree = ""; }; + 5D61FAA31A84238A00846EE7 /* SDLDisplayCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDisplayCapabilities.h; sourceTree = ""; }; + 5D61FAA41A84238A00846EE7 /* SDLDisplayCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDisplayCapabilities.m; sourceTree = ""; }; + 5D61FAA51A84238A00846EE7 /* SDLDisplayType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDisplayType.h; sourceTree = ""; }; + 5D61FAA61A84238A00846EE7 /* SDLDisplayType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDisplayType.m; sourceTree = ""; }; + 5D61FAA71A84238A00846EE7 /* SDLDriverDistractionState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDriverDistractionState.h; sourceTree = ""; }; + 5D61FAA81A84238A00846EE7 /* SDLDriverDistractionState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDriverDistractionState.m; sourceTree = ""; }; + 5D61FAA91A84238A00846EE7 /* SDLECallConfirmationStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLECallConfirmationStatus.h; sourceTree = ""; }; + 5D61FAAA1A84238A00846EE7 /* SDLECallConfirmationStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLECallConfirmationStatus.m; sourceTree = ""; }; + 5D61FAAB1A84238A00846EE7 /* SDLECallInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLECallInfo.h; sourceTree = ""; }; + 5D61FAAC1A84238A00846EE7 /* SDLECallInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLECallInfo.m; sourceTree = ""; }; + 5D61FAAD1A84238A00846EE7 /* SDLEmergencyEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEmergencyEvent.h; sourceTree = ""; }; + 5D61FAAE1A84238A00846EE7 /* SDLEmergencyEvent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEmergencyEvent.m; sourceTree = ""; }; + 5D61FAAF1A84238A00846EE7 /* SDLEmergencyEventType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEmergencyEventType.h; sourceTree = ""; }; + 5D61FAB01A84238A00846EE7 /* SDLEmergencyEventType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEmergencyEventType.m; sourceTree = ""; }; + 5D61FAB11A84238A00846EE7 /* SDLEncodedSyncPData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEncodedSyncPData.h; sourceTree = ""; }; + 5D61FAB21A84238A00846EE7 /* SDLEncodedSyncPData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEncodedSyncPData.m; sourceTree = ""; }; + 5D61FAB31A84238A00846EE7 /* SDLEncodedSyncPDataResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEncodedSyncPDataResponse.h; sourceTree = ""; }; + 5D61FAB41A84238A00846EE7 /* SDLEncodedSyncPDataResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEncodedSyncPDataResponse.m; sourceTree = ""; }; + 5D61FAB51A84238A00846EE7 /* SDLEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEncoder.h; sourceTree = ""; }; + 5D61FAB61A84238A00846EE7 /* SDLEndAudioPassThru.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEndAudioPassThru.h; sourceTree = ""; }; + 5D61FAB71A84238A00846EE7 /* SDLEndAudioPassThru.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEndAudioPassThru.m; sourceTree = ""; }; + 5D61FAB81A84238A00846EE7 /* SDLEndAudioPassThruResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEndAudioPassThruResponse.h; sourceTree = ""; }; + 5D61FAB91A84238A00846EE7 /* SDLEndAudioPassThruResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEndAudioPassThruResponse.m; sourceTree = ""; }; + 5D61FABA1A84238A00846EE7 /* SDLEnum.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEnum.h; sourceTree = ""; }; + 5D61FABB1A84238A00846EE7 /* SDLEnum.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEnum.m; sourceTree = ""; }; + 5D61FABC1A84238A00846EE7 /* SDLFileType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLFileType.h; sourceTree = ""; }; + 5D61FABD1A84238A00846EE7 /* SDLFileType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLFileType.m; sourceTree = ""; }; + 5D61FABE1A84238A00846EE7 /* SDLFuelCutoffStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLFuelCutoffStatus.h; sourceTree = ""; }; + 5D61FABF1A84238A00846EE7 /* SDLFuelCutoffStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLFuelCutoffStatus.m; sourceTree = ""; }; + 5D61FAC01A84238A00846EE7 /* SDLFunctionID.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLFunctionID.h; sourceTree = ""; }; + 5D61FAC11A84238A00846EE7 /* SDLFunctionID.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLFunctionID.m; sourceTree = ""; }; + 5D61FAC21A84238A00846EE7 /* SDLGenericResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGenericResponse.h; sourceTree = ""; }; + 5D61FAC31A84238A00846EE7 /* SDLGenericResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGenericResponse.m; sourceTree = ""; }; + 5D61FAC41A84238A00846EE7 /* SDLGetDTCs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGetDTCs.h; sourceTree = ""; }; + 5D61FAC51A84238A00846EE7 /* SDLGetDTCs.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetDTCs.m; sourceTree = ""; }; + 5D61FAC61A84238A00846EE7 /* SDLGetDTCsResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGetDTCsResponse.h; sourceTree = ""; }; + 5D61FAC71A84238A00846EE7 /* SDLGetDTCsResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetDTCsResponse.m; sourceTree = ""; }; + 5D61FAC81A84238A00846EE7 /* SDLGetVehicleData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGetVehicleData.h; sourceTree = ""; }; + 5D61FAC91A84238A00846EE7 /* SDLGetVehicleData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetVehicleData.m; sourceTree = ""; }; + 5D61FACA1A84238A00846EE7 /* SDLGetVehicleDataResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGetVehicleDataResponse.h; sourceTree = ""; }; + 5D61FACB1A84238A00846EE7 /* SDLGetVehicleDataResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetVehicleDataResponse.m; sourceTree = ""; }; + 5D61FACC1A84238A00846EE7 /* SDLGlobalProperty.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGlobalProperty.h; sourceTree = ""; }; + 5D61FACD1A84238A00846EE7 /* SDLGlobalProperty.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGlobalProperty.m; sourceTree = ""; }; + 5D61FACE1A84238A00846EE7 /* SDLGPSData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGPSData.h; sourceTree = ""; }; + 5D61FACF1A84238A00846EE7 /* SDLGPSData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGPSData.m; sourceTree = ""; }; + 5D61FAD01A84238A00846EE7 /* SDLHeadLampStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLHeadLampStatus.h; sourceTree = ""; }; + 5D61FAD11A84238A00846EE7 /* SDLHeadLampStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHeadLampStatus.m; sourceTree = ""; }; + 5D61FAD21A84238A00846EE7 /* SDLHexUtility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLHexUtility.h; sourceTree = ""; }; + 5D61FAD31A84238A00846EE7 /* SDLHexUtility.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHexUtility.m; sourceTree = ""; }; + 5D61FAD41A84238A00846EE7 /* SDLHMILevel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLHMILevel.h; sourceTree = ""; }; + 5D61FAD51A84238A00846EE7 /* SDLHMILevel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMILevel.m; sourceTree = ""; }; + 5D61FAD61A84238A00846EE7 /* SDLHMIPermissions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLHMIPermissions.h; sourceTree = ""; }; + 5D61FAD71A84238A00846EE7 /* SDLHMIPermissions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMIPermissions.m; sourceTree = ""; }; + 5D61FAD81A84238A00846EE7 /* SDLHMIZoneCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLHMIZoneCapabilities.h; sourceTree = ""; }; + 5D61FAD91A84238A00846EE7 /* SDLHMIZoneCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMIZoneCapabilities.m; sourceTree = ""; }; + 5D61FADA1A84238A00846EE7 /* SDLIAPTransport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLIAPTransport.h; sourceTree = ""; }; + 5D61FADB1A84238A00846EE7 /* SDLIAPTransport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLIAPTransport.m; sourceTree = ""; }; + 5D61FADC1A84238A00846EE7 /* SDLIgnitionStableStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLIgnitionStableStatus.h; sourceTree = ""; }; + 5D61FADD1A84238A00846EE7 /* SDLIgnitionStableStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLIgnitionStableStatus.m; sourceTree = ""; }; + 5D61FADE1A84238A00846EE7 /* SDLIgnitionStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLIgnitionStatus.h; sourceTree = ""; }; + 5D61FADF1A84238A00846EE7 /* SDLIgnitionStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLIgnitionStatus.m; sourceTree = ""; }; + 5D61FAE01A84238A00846EE7 /* SDLImage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLImage.h; sourceTree = ""; }; + 5D61FAE11A84238A00846EE7 /* SDLImage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImage.m; sourceTree = ""; }; + 5D61FAE21A84238A00846EE7 /* SDLImageField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLImageField.h; sourceTree = ""; }; + 5D61FAE31A84238A00846EE7 /* SDLImageField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageField.m; sourceTree = ""; }; + 5D61FAE41A84238A00846EE7 /* SDLImageFieldName.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLImageFieldName.h; sourceTree = ""; }; + 5D61FAE51A84238A00846EE7 /* SDLImageFieldName.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageFieldName.m; sourceTree = ""; }; + 5D61FAE61A84238A00846EE7 /* SDLImageResolution.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLImageResolution.h; sourceTree = ""; }; + 5D61FAE71A84238A00846EE7 /* SDLImageResolution.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageResolution.m; sourceTree = ""; }; + 5D61FAE81A84238A00846EE7 /* SDLImageType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLImageType.h; sourceTree = ""; }; + 5D61FAE91A84238A00846EE7 /* SDLImageType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageType.m; sourceTree = ""; }; + 5D61FAEA1A84238A00846EE7 /* SDLInteractionMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLInteractionMode.h; sourceTree = ""; }; + 5D61FAEB1A84238A00846EE7 /* SDLInteractionMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLInteractionMode.m; sourceTree = ""; }; + 5D61FAED1A84238A00846EE7 /* SDLJingle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLJingle.h; sourceTree = ""; }; + 5D61FAEE1A84238A00846EE7 /* SDLJingle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLJingle.m; sourceTree = ""; }; + 5D61FAEF1A84238A00846EE7 /* SDLJsonDecoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLJsonDecoder.h; sourceTree = ""; }; + 5D61FAF01A84238A00846EE7 /* SDLJsonDecoder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLJsonDecoder.m; sourceTree = ""; }; + 5D61FAF11A84238A00846EE7 /* SDLJsonEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLJsonEncoder.h; sourceTree = ""; }; + 5D61FAF21A84238A00846EE7 /* SDLJsonEncoder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLJsonEncoder.m; sourceTree = ""; }; + 5D61FAF31A84238A00846EE7 /* SDLKeyboardEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLKeyboardEvent.h; sourceTree = ""; }; + 5D61FAF41A84238A00846EE7 /* SDLKeyboardEvent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeyboardEvent.m; sourceTree = ""; }; + 5D61FAF51A84238A00846EE7 /* SDLKeyboardLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLKeyboardLayout.h; sourceTree = ""; }; + 5D61FAF61A84238A00846EE7 /* SDLKeyboardLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeyboardLayout.m; sourceTree = ""; }; + 5D61FAF71A84238A00846EE7 /* SDLKeyboardProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLKeyboardProperties.h; sourceTree = ""; }; + 5D61FAF81A84238A00846EE7 /* SDLKeyboardProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeyboardProperties.m; sourceTree = ""; }; + 5D61FAF91A84238A00846EE7 /* SDLKeypressMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLKeypressMode.h; sourceTree = ""; }; + 5D61FAFA1A84238A00846EE7 /* SDLKeypressMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeypressMode.m; sourceTree = ""; }; + 5D61FAFB1A84238A00846EE7 /* SDLLanguage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLLanguage.h; sourceTree = ""; }; + 5D61FAFC1A84238A00846EE7 /* SDLLanguage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLanguage.m; sourceTree = ""; }; + 5D61FAFD1A84238A00846EE7 /* SDLLayoutMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLLayoutMode.h; sourceTree = ""; }; + 5D61FAFE1A84238A00846EE7 /* SDLLayoutMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLayoutMode.m; sourceTree = ""; }; + 5D61FAFF1A84238A00846EE7 /* SDLListFiles.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLListFiles.h; sourceTree = ""; }; + 5D61FB001A84238A00846EE7 /* SDLListFiles.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLListFiles.m; sourceTree = ""; }; + 5D61FB011A84238A00846EE7 /* SDLListFilesResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLListFilesResponse.h; sourceTree = ""; }; + 5D61FB021A84238A00846EE7 /* SDLListFilesResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLListFilesResponse.m; sourceTree = ""; }; + 5D61FB031A84238A00846EE7 /* SDLLockScreenManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLLockScreenManager.h; sourceTree = ""; }; + 5D61FB041A84238A00846EE7 /* SDLLockScreenManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLockScreenManager.m; sourceTree = ""; }; + 5D61FB051A84238A00846EE7 /* SDLLockScreenStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLLockScreenStatus.h; sourceTree = ""; }; + 5D61FB061A84238A00846EE7 /* SDLLockScreenStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLockScreenStatus.m; sourceTree = ""; }; + 5D61FB071A84238A00846EE7 /* SDLMaintenanceModeStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLMaintenanceModeStatus.h; sourceTree = ""; }; + 5D61FB081A84238A00846EE7 /* SDLMaintenanceModeStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMaintenanceModeStatus.m; sourceTree = ""; }; + 5D61FB091A84238A00846EE7 /* SDLMediaClockFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLMediaClockFormat.h; sourceTree = ""; }; + 5D61FB0A1A84238A00846EE7 /* SDLMediaClockFormat.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMediaClockFormat.m; sourceTree = ""; }; + 5D61FB0B1A84238A00846EE7 /* SDLMenuParams.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLMenuParams.h; sourceTree = ""; }; + 5D61FB0C1A84238A00846EE7 /* SDLMenuParams.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMenuParams.m; sourceTree = ""; }; + 5D61FB0D1A84238A00846EE7 /* SDLMyKey.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLMyKey.h; sourceTree = ""; }; + 5D61FB0E1A84238A00846EE7 /* SDLMyKey.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMyKey.m; sourceTree = ""; }; + 5D61FB0F1A84238A00846EE7 /* SDLNames.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLNames.h; sourceTree = ""; }; + 5D61FB101A84238A00846EE7 /* SDLObjectWithPriority.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLObjectWithPriority.h; sourceTree = ""; }; + 5D61FB111A84238A00846EE7 /* SDLObjectWithPriority.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLObjectWithPriority.m; sourceTree = ""; }; + 5D61FB121A84238B00846EE7 /* SDLOnAppInterfaceUnregistered.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnAppInterfaceUnregistered.h; sourceTree = ""; }; + 5D61FB131A84238B00846EE7 /* SDLOnAppInterfaceUnregistered.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnAppInterfaceUnregistered.m; sourceTree = ""; }; + 5D61FB141A84238B00846EE7 /* SDLOnAudioPassThru.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnAudioPassThru.h; sourceTree = ""; }; + 5D61FB151A84238B00846EE7 /* SDLOnAudioPassThru.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnAudioPassThru.m; sourceTree = ""; }; + 5D61FB161A84238B00846EE7 /* SDLOnButtonEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnButtonEvent.h; sourceTree = ""; }; + 5D61FB171A84238B00846EE7 /* SDLOnButtonEvent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnButtonEvent.m; sourceTree = ""; }; + 5D61FB181A84238B00846EE7 /* SDLOnButtonPress.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnButtonPress.h; sourceTree = ""; }; + 5D61FB191A84238B00846EE7 /* SDLOnButtonPress.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnButtonPress.m; sourceTree = ""; }; + 5D61FB1A1A84238B00846EE7 /* SDLOnCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnCommand.h; sourceTree = ""; }; + 5D61FB1B1A84238B00846EE7 /* SDLOnCommand.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnCommand.m; sourceTree = ""; }; + 5D61FB1C1A84238B00846EE7 /* SDLOnDriverDistraction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnDriverDistraction.h; sourceTree = ""; }; + 5D61FB1D1A84238B00846EE7 /* SDLOnDriverDistraction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnDriverDistraction.m; sourceTree = ""; }; + 5D61FB1E1A84238B00846EE7 /* SDLOnEncodedSyncPData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnEncodedSyncPData.h; sourceTree = ""; }; + 5D61FB1F1A84238B00846EE7 /* SDLOnEncodedSyncPData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnEncodedSyncPData.m; sourceTree = ""; }; + 5D61FB201A84238B00846EE7 /* SDLOnHashChange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnHashChange.h; sourceTree = ""; }; + 5D61FB211A84238B00846EE7 /* SDLOnHashChange.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnHashChange.m; sourceTree = ""; }; + 5D61FB221A84238B00846EE7 /* SDLOnHMIStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnHMIStatus.h; sourceTree = ""; }; + 5D61FB231A84238B00846EE7 /* SDLOnHMIStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnHMIStatus.m; sourceTree = ""; }; + 5D61FB241A84238B00846EE7 /* SDLOnKeyboardInput.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnKeyboardInput.h; sourceTree = ""; }; + 5D61FB251A84238B00846EE7 /* SDLOnKeyboardInput.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnKeyboardInput.m; sourceTree = ""; }; + 5D61FB261A84238B00846EE7 /* SDLOnLanguageChange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnLanguageChange.h; sourceTree = ""; }; + 5D61FB271A84238B00846EE7 /* SDLOnLanguageChange.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnLanguageChange.m; sourceTree = ""; }; + 5D61FB281A84238B00846EE7 /* SDLOnLockScreenStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnLockScreenStatus.h; sourceTree = ""; }; + 5D61FB291A84238B00846EE7 /* SDLOnLockScreenStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnLockScreenStatus.m; sourceTree = ""; }; + 5D61FB2A1A84238B00846EE7 /* SDLOnPermissionsChange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnPermissionsChange.h; sourceTree = ""; }; + 5D61FB2B1A84238B00846EE7 /* SDLOnPermissionsChange.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnPermissionsChange.m; sourceTree = ""; }; + 5D61FB2C1A84238B00846EE7 /* SDLOnSyncPData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnSyncPData.h; sourceTree = ""; }; + 5D61FB2D1A84238B00846EE7 /* SDLOnSyncPData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnSyncPData.m; sourceTree = ""; }; + 5D61FB2E1A84238B00846EE7 /* SDLOnSystemRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnSystemRequest.h; sourceTree = ""; }; + 5D61FB2F1A84238B00846EE7 /* SDLOnSystemRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnSystemRequest.m; sourceTree = ""; }; + 5D61FB301A84238B00846EE7 /* SDLOnTBTClientState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnTBTClientState.h; sourceTree = ""; }; + 5D61FB311A84238B00846EE7 /* SDLOnTBTClientState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnTBTClientState.m; sourceTree = ""; }; + 5D61FB321A84238B00846EE7 /* SDLOnTouchEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnTouchEvent.h; sourceTree = ""; }; + 5D61FB331A84238B00846EE7 /* SDLOnTouchEvent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnTouchEvent.m; sourceTree = ""; }; + 5D61FB341A84238B00846EE7 /* SDLOnVehicleData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnVehicleData.h; sourceTree = ""; }; + 5D61FB351A84238B00846EE7 /* SDLOnVehicleData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnVehicleData.m; sourceTree = ""; }; + 5D61FB361A84238B00846EE7 /* SDLParameterPermissions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLParameterPermissions.h; sourceTree = ""; }; + 5D61FB371A84238B00846EE7 /* SDLParameterPermissions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLParameterPermissions.m; sourceTree = ""; }; + 5D61FB381A84238B00846EE7 /* SDLPerformAudioPassThru.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPerformAudioPassThru.h; sourceTree = ""; }; + 5D61FB391A84238B00846EE7 /* SDLPerformAudioPassThru.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformAudioPassThru.m; sourceTree = ""; }; + 5D61FB3A1A84238B00846EE7 /* SDLPerformAudioPassThruResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPerformAudioPassThruResponse.h; sourceTree = ""; }; + 5D61FB3B1A84238B00846EE7 /* SDLPerformAudioPassThruResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformAudioPassThruResponse.m; sourceTree = ""; }; + 5D61FB3C1A84238B00846EE7 /* SDLPerformInteraction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPerformInteraction.h; sourceTree = ""; }; + 5D61FB3D1A84238B00846EE7 /* SDLPerformInteraction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformInteraction.m; sourceTree = ""; }; + 5D61FB3E1A84238B00846EE7 /* SDLPerformInteractionResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPerformInteractionResponse.h; sourceTree = ""; }; + 5D61FB3F1A84238B00846EE7 /* SDLPerformInteractionResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformInteractionResponse.m; sourceTree = ""; }; + 5D61FB401A84238B00846EE7 /* SDLPermissionItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPermissionItem.h; sourceTree = ""; }; + 5D61FB411A84238B00846EE7 /* SDLPermissionItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPermissionItem.m; sourceTree = ""; }; + 5D61FB421A84238B00846EE7 /* SDLPermissionStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPermissionStatus.h; sourceTree = ""; }; + 5D61FB431A84238B00846EE7 /* SDLPermissionStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPermissionStatus.m; sourceTree = ""; }; + 5D61FB441A84238B00846EE7 /* SDLPolicyDataParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPolicyDataParser.h; sourceTree = ""; }; + 5D61FB451A84238B00846EE7 /* SDLPolicyDataParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPolicyDataParser.m; sourceTree = ""; }; + 5D61FB461A84238B00846EE7 /* SDLPowerModeQualificationStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPowerModeQualificationStatus.h; sourceTree = ""; }; + 5D61FB471A84238B00846EE7 /* SDLPowerModeQualificationStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPowerModeQualificationStatus.m; sourceTree = ""; }; + 5D61FB481A84238B00846EE7 /* SDLPowerModeStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPowerModeStatus.h; sourceTree = ""; }; + 5D61FB491A84238B00846EE7 /* SDLPowerModeStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPowerModeStatus.m; sourceTree = ""; }; + 5D61FB4A1A84238B00846EE7 /* SDLPredefinedLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPredefinedLayout.h; sourceTree = ""; }; + 5D61FB4B1A84238B00846EE7 /* SDLPredefinedLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPredefinedLayout.m; sourceTree = ""; }; + 5D61FB4C1A84238B00846EE7 /* SDLPrerecordedSpeech.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPrerecordedSpeech.h; sourceTree = ""; }; + 5D61FB4D1A84238B00846EE7 /* SDLPrerecordedSpeech.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPrerecordedSpeech.m; sourceTree = ""; }; + 5D61FB4E1A84238B00846EE7 /* SDLPresetBankCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPresetBankCapabilities.h; sourceTree = ""; }; + 5D61FB4F1A84238B00846EE7 /* SDLPresetBankCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPresetBankCapabilities.m; sourceTree = ""; }; + 5D61FB501A84238B00846EE7 /* SDLPrimaryAudioSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPrimaryAudioSource.h; sourceTree = ""; }; + 5D61FB511A84238B00846EE7 /* SDLPrimaryAudioSource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPrimaryAudioSource.m; sourceTree = ""; }; + 5D61FB521A84238B00846EE7 /* SDLPrioritizedObjectCollection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPrioritizedObjectCollection.h; sourceTree = ""; }; + 5D61FB531A84238B00846EE7 /* SDLPrioritizedObjectCollection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPrioritizedObjectCollection.m; sourceTree = ""; }; + 5D61FB541A84238B00846EE7 /* SDLPRNDL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPRNDL.h; sourceTree = ""; }; + 5D61FB551A84238B00846EE7 /* SDLPRNDL.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPRNDL.m; sourceTree = ""; }; + 5D61FB561A84238B00846EE7 /* SDLProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocol.h; sourceTree = ""; }; + 5D61FB571A84238B00846EE7 /* SDLProtocol.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocol.m; sourceTree = ""; }; + 5D61FB581A84238B00846EE7 /* SDLProtocolHeader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocolHeader.h; sourceTree = ""; }; + 5D61FB591A84238B00846EE7 /* SDLProtocolHeader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolHeader.m; sourceTree = ""; }; + 5D61FB5A1A84238B00846EE7 /* SDLProtocolListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocolListener.h; sourceTree = ""; }; + 5D61FB5B1A84238B00846EE7 /* SDLProtocolMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocolMessage.h; sourceTree = ""; }; + 5D61FB5C1A84238B00846EE7 /* SDLProtocolMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolMessage.m; sourceTree = ""; }; + 5D61FB5D1A84238B00846EE7 /* SDLProtocolMessageAssembler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocolMessageAssembler.h; sourceTree = ""; }; + 5D61FB5E1A84238B00846EE7 /* SDLProtocolMessageAssembler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolMessageAssembler.m; sourceTree = ""; }; + 5D61FB5F1A84238B00846EE7 /* SDLProtocolMessageDisassembler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocolMessageDisassembler.h; sourceTree = ""; }; + 5D61FB601A84238B00846EE7 /* SDLProtocolMessageDisassembler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolMessageDisassembler.m; sourceTree = ""; }; + 5D61FB611A84238B00846EE7 /* SDLProtocolReceivedMessageRouter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocolReceivedMessageRouter.h; sourceTree = ""; }; + 5D61FB621A84238B00846EE7 /* SDLProtocolReceivedMessageRouter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolReceivedMessageRouter.m; sourceTree = ""; }; + 5D61FB631A84238B00846EE7 /* SDLProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProxy.h; sourceTree = ""; }; + 5D61FB641A84238B00846EE7 /* SDLProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProxy.m; sourceTree = ""; }; + 5D61FB651A84238B00846EE7 /* SDLProxyFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProxyFactory.h; sourceTree = ""; }; + 5D61FB661A84238B00846EE7 /* SDLProxyFactory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProxyFactory.m; sourceTree = ""; }; + 5D61FB671A84238B00846EE7 /* SDLProxyListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProxyListener.h; sourceTree = ""; }; + 5D61FB681A84238B00846EE7 /* SDLPutFile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPutFile.h; sourceTree = ""; }; + 5D61FB691A84238B00846EE7 /* SDLPutFile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPutFile.m; sourceTree = ""; }; + 5D61FB6A1A84238B00846EE7 /* SDLPutFileResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPutFileResponse.h; sourceTree = ""; }; + 5D61FB6B1A84238B00846EE7 /* SDLPutFileResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPutFileResponse.m; sourceTree = ""; }; + 5D61FB6C1A84238B00846EE7 /* SDLReadDID.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLReadDID.h; sourceTree = ""; }; + 5D61FB6D1A84238B00846EE7 /* SDLReadDID.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLReadDID.m; sourceTree = ""; }; + 5D61FB6E1A84238B00846EE7 /* SDLReadDIDResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLReadDIDResponse.h; sourceTree = ""; }; + 5D61FB6F1A84238B00846EE7 /* SDLReadDIDResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLReadDIDResponse.m; sourceTree = ""; }; + 5D61FB701A84238B00846EE7 /* SDLRegisterAppInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRegisterAppInterface.h; sourceTree = ""; }; + 5D61FB711A84238B00846EE7 /* SDLRegisterAppInterface.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRegisterAppInterface.m; sourceTree = ""; }; + 5D61FB721A84238B00846EE7 /* SDLRegisterAppInterfaceResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRegisterAppInterfaceResponse.h; sourceTree = ""; }; + 5D61FB731A84238B00846EE7 /* SDLRegisterAppInterfaceResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRegisterAppInterfaceResponse.m; sourceTree = ""; }; + 5D61FB741A84238B00846EE7 /* SDLRequestType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRequestType.h; sourceTree = ""; }; + 5D61FB751A84238B00846EE7 /* SDLRequestType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRequestType.m; sourceTree = ""; }; + 5D61FB761A84238B00846EE7 /* SDLResetGlobalProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLResetGlobalProperties.h; sourceTree = ""; }; + 5D61FB771A84238B00846EE7 /* SDLResetGlobalProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLResetGlobalProperties.m; sourceTree = ""; }; + 5D61FB781A84238B00846EE7 /* SDLResetGlobalPropertiesResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLResetGlobalPropertiesResponse.h; sourceTree = ""; }; + 5D61FB791A84238B00846EE7 /* SDLResetGlobalPropertiesResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLResetGlobalPropertiesResponse.m; sourceTree = ""; }; + 5D61FB7A1A84238B00846EE7 /* SDLResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLResult.h; sourceTree = ""; }; + 5D61FB7B1A84238B00846EE7 /* SDLResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLResult.m; sourceTree = ""; }; + 5D61FB7C1A84238B00846EE7 /* SDLRPCMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCMessage.h; sourceTree = ""; }; + 5D61FB7D1A84238B00846EE7 /* SDLRPCMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCMessage.m; sourceTree = ""; }; + 5D61FB7E1A84238B00846EE7 /* SDLRPCMessageType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCMessageType.h; sourceTree = ""; }; + 5D61FB801A84238B00846EE7 /* SDLRPCNotification.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCNotification.h; sourceTree = ""; }; + 5D61FB811A84238B00846EE7 /* SDLRPCNotification.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCNotification.m; sourceTree = ""; }; + 5D61FB821A84238B00846EE7 /* SDLRPCPayload.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCPayload.h; sourceTree = ""; }; + 5D61FB831A84238B00846EE7 /* SDLRPCPayload.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCPayload.m; sourceTree = ""; }; + 5D61FB841A84238B00846EE7 /* SDLRPCRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCRequest.h; sourceTree = ""; }; + 5D61FB851A84238B00846EE7 /* SDLRPCRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCRequest.m; sourceTree = ""; }; + 5D61FB861A84238B00846EE7 /* SDLRPCRequestFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCRequestFactory.h; sourceTree = ""; }; + 5D61FB871A84238B00846EE7 /* SDLRPCRequestFactory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCRequestFactory.m; sourceTree = ""; }; + 5D61FB881A84238B00846EE7 /* SDLRPCResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCResponse.h; sourceTree = ""; }; + 5D61FB891A84238B00846EE7 /* SDLRPCResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCResponse.m; sourceTree = ""; }; + 5D61FB8A1A84238B00846EE7 /* SDLSamplingRate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSamplingRate.h; sourceTree = ""; }; + 5D61FB8B1A84238B00846EE7 /* SDLSamplingRate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSamplingRate.m; sourceTree = ""; }; + 5D61FB8C1A84238B00846EE7 /* SDLScreenParams.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLScreenParams.h; sourceTree = ""; }; + 5D61FB8D1A84238B00846EE7 /* SDLScreenParams.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLScreenParams.m; sourceTree = ""; }; + 5D61FB8E1A84238B00846EE7 /* SDLScrollableMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLScrollableMessage.h; sourceTree = ""; }; + 5D61FB8F1A84238B00846EE7 /* SDLScrollableMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLScrollableMessage.m; sourceTree = ""; }; + 5D61FB901A84238B00846EE7 /* SDLScrollableMessageResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLScrollableMessageResponse.h; sourceTree = ""; }; + 5D61FB911A84238B00846EE7 /* SDLScrollableMessageResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLScrollableMessageResponse.m; sourceTree = ""; }; + 5D61FB921A84238B00846EE7 /* SDLSetAppIcon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetAppIcon.h; sourceTree = ""; }; + 5D61FB931A84238B00846EE7 /* SDLSetAppIcon.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetAppIcon.m; sourceTree = ""; }; + 5D61FB941A84238B00846EE7 /* SDLSetAppIconResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetAppIconResponse.h; sourceTree = ""; }; + 5D61FB951A84238B00846EE7 /* SDLSetAppIconResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetAppIconResponse.m; sourceTree = ""; }; + 5D61FB961A84238B00846EE7 /* SDLSetDisplayLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetDisplayLayout.h; sourceTree = ""; }; + 5D61FB971A84238B00846EE7 /* SDLSetDisplayLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetDisplayLayout.m; sourceTree = ""; }; + 5D61FB981A84238B00846EE7 /* SDLSetDisplayLayoutResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetDisplayLayoutResponse.h; sourceTree = ""; }; + 5D61FB991A84238B00846EE7 /* SDLSetDisplayLayoutResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetDisplayLayoutResponse.m; sourceTree = ""; }; + 5D61FB9A1A84238B00846EE7 /* SDLSetGlobalProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetGlobalProperties.h; sourceTree = ""; }; + 5D61FB9B1A84238B00846EE7 /* SDLSetGlobalProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetGlobalProperties.m; sourceTree = ""; }; + 5D61FB9C1A84238B00846EE7 /* SDLSetGlobalPropertiesResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetGlobalPropertiesResponse.h; sourceTree = ""; }; + 5D61FB9D1A84238B00846EE7 /* SDLSetGlobalPropertiesResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetGlobalPropertiesResponse.m; sourceTree = ""; }; + 5D61FB9E1A84238B00846EE7 /* SDLSetMediaClockTimer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetMediaClockTimer.h; sourceTree = ""; }; + 5D61FB9F1A84238B00846EE7 /* SDLSetMediaClockTimer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetMediaClockTimer.m; sourceTree = ""; }; + 5D61FBA01A84238B00846EE7 /* SDLSetMediaClockTimerResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetMediaClockTimerResponse.h; sourceTree = ""; }; + 5D61FBA11A84238B00846EE7 /* SDLSetMediaClockTimerResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetMediaClockTimerResponse.m; sourceTree = ""; }; + 5D61FBA21A84238B00846EE7 /* SDLShow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLShow.h; sourceTree = ""; }; + 5D61FBA31A84238B00846EE7 /* SDLShow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShow.m; sourceTree = ""; }; + 5D61FBA41A84238B00846EE7 /* SDLShowConstantTBT.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLShowConstantTBT.h; sourceTree = ""; }; + 5D61FBA51A84238B00846EE7 /* SDLShowConstantTBT.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowConstantTBT.m; sourceTree = ""; }; + 5D61FBA61A84238B00846EE7 /* SDLShowConstantTBTResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLShowConstantTBTResponse.h; sourceTree = ""; }; + 5D61FBA71A84238B00846EE7 /* SDLShowConstantTBTResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowConstantTBTResponse.m; sourceTree = ""; }; + 5D61FBA81A84238B00846EE7 /* SDLShowResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLShowResponse.h; sourceTree = ""; }; + 5D61FBA91A84238B00846EE7 /* SDLShowResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowResponse.m; sourceTree = ""; }; + 5D61FBAA1A84238B00846EE7 /* SDLSingleTireStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSingleTireStatus.h; sourceTree = ""; }; + 5D61FBAB1A84238B00846EE7 /* SDLSingleTireStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSingleTireStatus.m; sourceTree = ""; }; + 5D61FBAC1A84238B00846EE7 /* SDLSiphonServer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSiphonServer.h; sourceTree = ""; }; + 5D61FBAD1A84238B00846EE7 /* SDLSiphonServer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSiphonServer.m; sourceTree = ""; }; + 5D61FBAE1A84238B00846EE7 /* SDLSlider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSlider.h; sourceTree = ""; }; + 5D61FBAF1A84238B00846EE7 /* SDLSlider.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSlider.m; sourceTree = ""; }; + 5D61FBB01A84238B00846EE7 /* SDLSliderResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSliderResponse.h; sourceTree = ""; }; + 5D61FBB11A84238B00846EE7 /* SDLSliderResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSliderResponse.m; sourceTree = ""; }; + 5D61FBB21A84238B00846EE7 /* SDLSoftButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSoftButton.h; sourceTree = ""; }; + 5D61FBB31A84238B00846EE7 /* SDLSoftButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSoftButton.m; sourceTree = ""; }; + 5D61FBB41A84238B00846EE7 /* SDLSoftButtonCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSoftButtonCapabilities.h; sourceTree = ""; }; + 5D61FBB51A84238B00846EE7 /* SDLSoftButtonCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSoftButtonCapabilities.m; sourceTree = ""; }; + 5D61FBB61A84238B00846EE7 /* SDLSoftButtonType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSoftButtonType.h; sourceTree = ""; }; + 5D61FBB71A84238B00846EE7 /* SDLSoftButtonType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSoftButtonType.m; sourceTree = ""; }; + 5D61FBB81A84238B00846EE7 /* SDLSpeak.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSpeak.h; sourceTree = ""; }; + 5D61FBB91A84238B00846EE7 /* SDLSpeak.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpeak.m; sourceTree = ""; }; + 5D61FBBA1A84238B00846EE7 /* SDLSpeakResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSpeakResponse.h; sourceTree = ""; }; + 5D61FBBB1A84238B00846EE7 /* SDLSpeakResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpeakResponse.m; sourceTree = ""; }; + 5D61FBBC1A84238B00846EE7 /* SDLSpeechCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSpeechCapabilities.h; sourceTree = ""; }; + 5D61FBBD1A84238B00846EE7 /* SDLSpeechCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpeechCapabilities.m; sourceTree = ""; }; + 5D61FBBE1A84238B00846EE7 /* SDLStartTime.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLStartTime.h; sourceTree = ""; }; + 5D61FBBF1A84238B00846EE7 /* SDLStartTime.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLStartTime.m; sourceTree = ""; }; + 5D61FBC01A84238B00846EE7 /* SDLSubscribeButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSubscribeButton.h; sourceTree = ""; }; + 5D61FBC11A84238B00846EE7 /* SDLSubscribeButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeButton.m; sourceTree = ""; }; + 5D61FBC21A84238B00846EE7 /* SDLSubscribeButtonResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSubscribeButtonResponse.h; sourceTree = ""; }; + 5D61FBC31A84238B00846EE7 /* SDLSubscribeButtonResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeButtonResponse.m; sourceTree = ""; }; + 5D61FBC41A84238B00846EE7 /* SDLSubscribeVehicleData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSubscribeVehicleData.h; sourceTree = ""; }; + 5D61FBC51A84238B00846EE7 /* SDLSubscribeVehicleData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeVehicleData.m; sourceTree = ""; }; + 5D61FBC61A84238B00846EE7 /* SDLSubscribeVehicleDataResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSubscribeVehicleDataResponse.h; sourceTree = ""; }; + 5D61FBC71A84238B00846EE7 /* SDLSubscribeVehicleDataResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeVehicleDataResponse.m; sourceTree = ""; }; + 5D61FBC81A84238B00846EE7 /* SDLSyncMsgVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSyncMsgVersion.h; sourceTree = ""; }; + 5D61FBC91A84238B00846EE7 /* SDLSyncMsgVersion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSyncMsgVersion.m; sourceTree = ""; }; + 5D61FBCA1A84238B00846EE7 /* SDLSyncPData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSyncPData.h; sourceTree = ""; }; + 5D61FBCB1A84238B00846EE7 /* SDLSyncPData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSyncPData.m; sourceTree = ""; }; + 5D61FBCC1A84238B00846EE7 /* SDLSyncPDataResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSyncPDataResponse.h; sourceTree = ""; }; + 5D61FBCD1A84238B00846EE7 /* SDLSyncPDataResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSyncPDataResponse.m; sourceTree = ""; }; + 5D61FBCE1A84238B00846EE7 /* SDLSystemAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSystemAction.h; sourceTree = ""; }; + 5D61FBCF1A84238B00846EE7 /* SDLSystemAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemAction.m; sourceTree = ""; }; + 5D61FBD01A84238B00846EE7 /* SDLSystemContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSystemContext.h; sourceTree = ""; }; + 5D61FBD11A84238B00846EE7 /* SDLSystemContext.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemContext.m; sourceTree = ""; }; + 5D61FBD21A84238B00846EE7 /* SDLSystemRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSystemRequest.h; sourceTree = ""; }; + 5D61FBD31A84238B00846EE7 /* SDLSystemRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemRequest.m; sourceTree = ""; }; + 5D61FBD41A84238B00846EE7 /* SDLSystemRequestResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSystemRequestResponse.h; sourceTree = ""; }; + 5D61FBD51A84238B00846EE7 /* SDLSystemRequestResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemRequestResponse.m; sourceTree = ""; }; + 5D61FBD61A84238B00846EE7 /* SDLTBTState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTBTState.h; sourceTree = ""; }; + 5D61FBD71A84238B00846EE7 /* SDLTBTState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTBTState.m; sourceTree = ""; }; + 5D61FBD81A84238B00846EE7 /* SDLTCPTransport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTCPTransport.h; sourceTree = ""; }; + 5D61FBD91A84238B00846EE7 /* SDLTCPTransport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTCPTransport.m; sourceTree = ""; }; + 5D61FBDA1A84238B00846EE7 /* SDLTextAlignment.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTextAlignment.h; sourceTree = ""; }; + 5D61FBDB1A84238C00846EE7 /* SDLTextAlignment.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTextAlignment.m; sourceTree = ""; }; + 5D61FBDC1A84238C00846EE7 /* SDLTextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTextField.h; sourceTree = ""; }; + 5D61FBDD1A84238C00846EE7 /* SDLTextField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTextField.m; sourceTree = ""; }; + 5D61FBDE1A84238C00846EE7 /* SDLTextFieldName.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTextFieldName.h; sourceTree = ""; }; + 5D61FBDF1A84238C00846EE7 /* SDLTextFieldName.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTextFieldName.m; sourceTree = ""; }; + 5D61FBE01A84238C00846EE7 /* SDLTimerMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTimerMode.h; sourceTree = ""; }; + 5D61FBE11A84238C00846EE7 /* SDLTimerMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTimerMode.m; sourceTree = ""; }; + 5D61FBE21A84238C00846EE7 /* SDLTireStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTireStatus.h; sourceTree = ""; }; + 5D61FBE31A84238C00846EE7 /* SDLTireStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTireStatus.m; sourceTree = ""; }; + 5D61FBE41A84238C00846EE7 /* SDLTouchCoord.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTouchCoord.h; sourceTree = ""; }; + 5D61FBE51A84238C00846EE7 /* SDLTouchCoord.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchCoord.m; sourceTree = ""; }; + 5D61FBE61A84238C00846EE7 /* SDLTouchEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTouchEvent.h; sourceTree = ""; }; + 5D61FBE71A84238C00846EE7 /* SDLTouchEvent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchEvent.m; sourceTree = ""; }; + 5D61FBE81A84238C00846EE7 /* SDLTouchEventCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTouchEventCapabilities.h; sourceTree = ""; }; + 5D61FBE91A84238C00846EE7 /* SDLTouchEventCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchEventCapabilities.m; sourceTree = ""; }; + 5D61FBEA1A84238C00846EE7 /* SDLTouchType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTouchType.h; sourceTree = ""; }; + 5D61FBEB1A84238C00846EE7 /* SDLTouchType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchType.m; sourceTree = ""; }; + 5D61FBED1A84238C00846EE7 /* SDLTransportDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTransportDelegate.h; sourceTree = ""; }; + 5D61FBEE1A84238C00846EE7 /* SDLTriggerSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTriggerSource.h; sourceTree = ""; }; + 5D61FBEF1A84238C00846EE7 /* SDLTriggerSource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTriggerSource.m; sourceTree = ""; }; + 5D61FBF01A84238C00846EE7 /* SDLTTSChunk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTTSChunk.h; sourceTree = ""; }; + 5D61FBF11A84238C00846EE7 /* SDLTTSChunk.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTTSChunk.m; sourceTree = ""; }; + 5D61FBF21A84238C00846EE7 /* SDLTTSChunkFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTTSChunkFactory.h; sourceTree = ""; }; + 5D61FBF31A84238C00846EE7 /* SDLTTSChunkFactory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTTSChunkFactory.m; sourceTree = ""; }; + 5D61FBF41A84238C00846EE7 /* SDLTurn.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTurn.h; sourceTree = ""; }; + 5D61FBF51A84238C00846EE7 /* SDLTurn.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTurn.m; sourceTree = ""; }; + 5D61FBF61A84238C00846EE7 /* SDLUnregisterAppInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUnregisterAppInterface.h; sourceTree = ""; }; + 5D61FBF71A84238C00846EE7 /* SDLUnregisterAppInterface.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnregisterAppInterface.m; sourceTree = ""; }; + 5D61FBF81A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUnregisterAppInterfaceResponse.h; sourceTree = ""; }; + 5D61FBF91A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnregisterAppInterfaceResponse.m; sourceTree = ""; }; + 5D61FBFA1A84238C00846EE7 /* SDLUnsubscribeButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUnsubscribeButton.h; sourceTree = ""; }; + 5D61FBFB1A84238C00846EE7 /* SDLUnsubscribeButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeButton.m; sourceTree = ""; }; + 5D61FBFC1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUnsubscribeButtonResponse.h; sourceTree = ""; }; + 5D61FBFD1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeButtonResponse.m; sourceTree = ""; }; + 5D61FBFE1A84238C00846EE7 /* SDLUnsubscribeVehicleData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUnsubscribeVehicleData.h; sourceTree = ""; }; + 5D61FBFF1A84238C00846EE7 /* SDLUnsubscribeVehicleData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeVehicleData.m; sourceTree = ""; }; + 5D61FC001A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUnsubscribeVehicleDataResponse.h; sourceTree = ""; }; + 5D61FC011A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeVehicleDataResponse.m; sourceTree = ""; }; + 5D61FC021A84238C00846EE7 /* SDLUpdateMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUpdateMode.h; sourceTree = ""; }; + 5D61FC031A84238C00846EE7 /* SDLUpdateMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUpdateMode.m; sourceTree = ""; }; + 5D61FC041A84238C00846EE7 /* SDLUpdateTurnList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUpdateTurnList.h; sourceTree = ""; }; + 5D61FC051A84238C00846EE7 /* SDLUpdateTurnList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUpdateTurnList.m; sourceTree = ""; }; + 5D61FC061A84238C00846EE7 /* SDLUpdateTurnListResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUpdateTurnListResponse.h; sourceTree = ""; }; + 5D61FC071A84238C00846EE7 /* SDLUpdateTurnListResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUpdateTurnListResponse.m; sourceTree = ""; }; + 5D61FC081A84238C00846EE7 /* SDLV1ProtocolHeader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLV1ProtocolHeader.h; sourceTree = ""; }; + 5D61FC091A84238C00846EE7 /* SDLV1ProtocolHeader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV1ProtocolHeader.m; sourceTree = ""; }; + 5D61FC0A1A84238C00846EE7 /* SDLV1ProtocolMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLV1ProtocolMessage.h; sourceTree = ""; }; + 5D61FC0B1A84238C00846EE7 /* SDLV1ProtocolMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV1ProtocolMessage.m; sourceTree = ""; }; + 5D61FC0C1A84238C00846EE7 /* SDLV2ProtocolHeader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLV2ProtocolHeader.h; sourceTree = ""; }; + 5D61FC0D1A84238C00846EE7 /* SDLV2ProtocolHeader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV2ProtocolHeader.m; sourceTree = ""; }; + 5D61FC0E1A84238C00846EE7 /* SDLV2ProtocolMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLV2ProtocolMessage.h; sourceTree = ""; }; + 5D61FC0F1A84238C00846EE7 /* SDLV2ProtocolMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV2ProtocolMessage.m; sourceTree = ""; }; + 5D61FC101A84238C00846EE7 /* SDLVehicleDataActiveStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataActiveStatus.h; sourceTree = ""; }; + 5D61FC111A84238C00846EE7 /* SDLVehicleDataActiveStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataActiveStatus.m; sourceTree = ""; }; + 5D61FC121A84238C00846EE7 /* SDLVehicleDataEventStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataEventStatus.h; sourceTree = ""; }; + 5D61FC131A84238C00846EE7 /* SDLVehicleDataEventStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataEventStatus.m; sourceTree = ""; }; + 5D61FC141A84238C00846EE7 /* SDLVehicleDataNotificationStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataNotificationStatus.h; sourceTree = ""; }; + 5D61FC151A84238C00846EE7 /* SDLVehicleDataNotificationStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataNotificationStatus.m; sourceTree = ""; }; + 5D61FC161A84238C00846EE7 /* SDLVehicleDataResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataResult.h; sourceTree = ""; }; + 5D61FC171A84238C00846EE7 /* SDLVehicleDataResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataResult.m; sourceTree = ""; }; + 5D61FC181A84238C00846EE7 /* SDLVehicleDataResultCode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataResultCode.h; sourceTree = ""; }; + 5D61FC191A84238C00846EE7 /* SDLVehicleDataResultCode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataResultCode.m; sourceTree = ""; }; + 5D61FC1A1A84238C00846EE7 /* SDLVehicleDataStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataStatus.h; sourceTree = ""; }; + 5D61FC1B1A84238C00846EE7 /* SDLVehicleDataStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataStatus.m; sourceTree = ""; }; + 5D61FC1C1A84238C00846EE7 /* SDLVehicleDataType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataType.h; sourceTree = ""; }; + 5D61FC1D1A84238C00846EE7 /* SDLVehicleDataType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataType.m; sourceTree = ""; }; + 5D61FC1E1A84238C00846EE7 /* SDLVehicleType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleType.h; sourceTree = ""; }; + 5D61FC1F1A84238C00846EE7 /* SDLVehicleType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleType.m; sourceTree = ""; }; + 5D61FC201A84238C00846EE7 /* SDLVRCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVRCapabilities.h; sourceTree = ""; }; + 5D61FC211A84238C00846EE7 /* SDLVRCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVRCapabilities.m; sourceTree = ""; }; + 5D61FC221A84238C00846EE7 /* SDLVRHelpItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVRHelpItem.h; sourceTree = ""; }; + 5D61FC231A84238C00846EE7 /* SDLVRHelpItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVRHelpItem.m; sourceTree = ""; }; + 5D61FC241A84238C00846EE7 /* SDLWarningLightStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLWarningLightStatus.h; sourceTree = ""; }; + 5D61FC251A84238C00846EE7 /* SDLWarningLightStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLWarningLightStatus.m; sourceTree = ""; }; + 5D61FC261A84238C00846EE7 /* SDLWiperStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLWiperStatus.h; sourceTree = ""; }; + 5D61FC271A84238C00846EE7 /* SDLWiperStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLWiperStatus.m; sourceTree = ""; }; + 5D8B174D1AC9D266006A6E1C /* SDLDialNumber.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDialNumber.h; sourceTree = ""; }; + 5D8B174E1AC9D266006A6E1C /* SDLDialNumber.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDialNumber.m; sourceTree = ""; }; + 5D8B17511AC9E11B006A6E1C /* SDLDialNumberResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDialNumberResponse.h; sourceTree = ""; }; + 5D8B17521AC9E11B006A6E1C /* SDLDialNumberResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDialNumberResponse.m; sourceTree = ""; }; + 5D8B17551AC9E399006A6E1C /* SDLDialNumberSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDialNumberSpec.m; sourceTree = ""; }; + 5DA0268F1AD44EE700019F86 /* SDLDialNumberResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDialNumberResponseSpec.m; sourceTree = ""; }; + 5DB92D231AC47B2C00C15BB0 /* SDLHexUtilitySpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLHexUtilitySpec.m; path = UtilitiesSpecs/SDLHexUtilitySpec.m; sourceTree = ""; }; + 5DB92D251AC4836F00C15BB0 /* SDLJingleSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLJingleSpec.m; path = UtilitiesSpecs/SDLJingleSpec.m; sourceTree = ""; }; + 5DB92D2C1AC4A34F00C15BB0 /* SDLPrioritizedObjectCollectionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLPrioritizedObjectCollectionSpec.m; path = "UtilitiesSpecs/Prioritized Objects/SDLPrioritizedObjectCollectionSpec.m"; sourceTree = ""; }; + 5DB92D2E1AC59F0000C15BB0 /* SDLObjectWithPrioritySpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLObjectWithPrioritySpec.m; path = "UtilitiesSpecs/Prioritized Objects/SDLObjectWithPrioritySpec.m"; sourceTree = ""; }; + 5DB92D301AC9C8BA00C15BB0 /* SDLRPCStruct.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCStruct.h; sourceTree = ""; }; + 5DB92D311AC9C8BA00C15BB0 /* SDLRPCStruct.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCStruct.m; sourceTree = ""; }; + 5DC978251B7A38640012C2F1 /* SDLGlobalsSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLGlobalsSpec.m; path = UtilitiesSpecs/SDLGlobalsSpec.m; sourceTree = ""; }; + 5DCC199E1B8221F3004FFAD9 /* SDLURLSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLURLSession.h; sourceTree = ""; }; + 5DCC199F1B8221F3004FFAD9 /* SDLURLSession.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLURLSession.m; sourceTree = ""; }; + 5DCC19A21B822804004FFAD9 /* SDLURLRequestTask.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLURLRequestTask.h; sourceTree = ""; }; + 5DCC19A31B822804004FFAD9 /* SDLURLRequestTask.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLURLRequestTask.m; sourceTree = ""; }; + 5DCF76F31ACDBAD300BB647B /* SDLSendLocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSendLocation.h; sourceTree = ""; }; + 5DCF76F41ACDBAD300BB647B /* SDLSendLocation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSendLocation.m; sourceTree = ""; }; + 5DCF76F71ACDD7CD00BB647B /* SDLSendLocationResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSendLocationResponse.h; sourceTree = ""; }; + 5DCF76F81ACDD7CD00BB647B /* SDLSendLocationResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSendLocationResponse.m; sourceTree = ""; }; + 5DCF76FB1ACDDB4200BB647B /* SDLSendLocationSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSendLocationSpec.m; sourceTree = ""; }; + 5DCF76FD1ACDDB5A00BB647B /* SDLSendLocationResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSendLocationResponseSpec.m; sourceTree = ""; }; + 5DE3729F1ACB2ED300849FAA /* SDLHMICapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLHMICapabilities.h; sourceTree = ""; }; + 5DE372A01ACB2ED300849FAA /* SDLHMICapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMICapabilities.m; sourceTree = ""; }; + 5DE372A31ACB336600849FAA /* SDLHMICapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMICapabilitiesSpec.m; sourceTree = ""; }; + 5DE372A51ACC35B400849FAA /* SDLDebugToolConsole.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDebugToolConsole.h; sourceTree = ""; }; + 5DEE55BF1B8509CB004F0D0F /* SDLURLRequestTaskSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLURLRequestTaskSpec.m; path = "UtilitiesSpecs/HTTP Connection/SDLURLRequestTaskSpec.m"; sourceTree = ""; }; + 5DEE55C11B864A7D004F0D0F /* OHHTTPStubs.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OHHTTPStubs.framework; path = Carthage/Build/iOS/OHHTTPStubs.framework; sourceTree = ""; }; + 5DEE55C41B864AB3004F0D0F /* OHHTTPStubs.framework.dSYM */ = {isa = PBXFileReference; lastKnownFileType = wrapper.dsym; name = OHHTTPStubs.framework.dSYM; path = Carthage/Build/iOS/OHHTTPStubs.framework.dSYM; sourceTree = ""; }; + 5DF2BB9C1B94E38A00CE5994 /* SDLURLSessionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLURLSessionSpec.m; path = "UtilitiesSpecs/HTTP Connection/SDLURLSessionSpec.m"; sourceTree = ""; }; + E9C32B841AB20B4300F283AF /* NSThread+ThreadIndex.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSThread+ThreadIndex.h"; sourceTree = ""; }; + E9C32B851AB20B4300F283AF /* NSThread+ThreadIndex.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSThread+ThreadIndex.m"; sourceTree = ""; }; + E9C32B891AB20BA200F283AF /* SDLIAPSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLIAPSession.h; sourceTree = ""; }; + E9C32B8A1AB20BA200F283AF /* SDLIAPSession.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLIAPSession.m; sourceTree = ""; }; + E9C32B8B1AB20BA200F283AF /* SDLIAPSessionDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLIAPSessionDelegate.h; sourceTree = ""; }; + E9C32B8C1AB20BA200F283AF /* SDLStreamDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLStreamDelegate.h; sourceTree = ""; }; + E9C32B8D1AB20BA200F283AF /* SDLStreamDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLStreamDelegate.m; sourceTree = ""; }; + E9C32B8E1AB20BA200F283AF /* SDLTimer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTimer.h; sourceTree = ""; }; + E9C32B8F1AB20BA200F283AF /* SDLTimer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTimer.m; sourceTree = ""; }; + E9C32B981AB20C5900F283AF /* EAAccessory+SDLProtocols.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "EAAccessory+SDLProtocols.h"; sourceTree = ""; }; + E9C32B991AB20C5900F283AF /* EAAccessory+SDLProtocols.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "EAAccessory+SDLProtocols.m"; sourceTree = ""; }; + E9C32B9A1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "EAAccessoryManager+SDLProtocols.h"; sourceTree = ""; }; + E9C32B9B1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "EAAccessoryManager+SDLProtocols.m"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 5D4019AC1A76EC350006B0C2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 5D61FA331A84237100846EE7 /* SmartDeviceLink.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 5D61FA181A84237100846EE7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 5D61FA231A84237100846EE7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 167ED93C1A9BCB8A00797BE5 /* SmartDeviceLink.framework in Frameworks */, + 5DEE55C21B864A7D004F0D0F /* OHHTTPStubs.framework in Frameworks */, + 162E81CB1A9BDD3F00906325 /* Quick.framework in Frameworks */, + 5D86022E1C99AF5100A55266 /* OCMock.framework in Frameworks */, + 162E81CA1A9BDD3F00906325 /* Nimble.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 162E81E01A9BDE8A00906325 /* RPCSpecs */ = { + isa = PBXGroup; + children = ( + 162E81E11A9BDE8A00906325 /* EnumSpecs */, + 162E82261A9BDE8A00906325 /* FactorySpecs */, + 162E82281A9BDE8A00906325 /* NotificationSpecs */, + 162E823B1A9BDE8A00906325 /* PayloadSpecs */, + 162E823D1A9BDE8A00906325 /* RequestSpecs */, + 162E82651A9BDE8A00906325 /* ResponseSpecs */, + 162E828E1A9BDE8A00906325 /* StructSpecs */, + 162E82B71A9BDE8A00906325 /* SuperclassSpecs */, + ); + path = RPCSpecs; + sourceTree = ""; + }; + 162E81E11A9BDE8A00906325 /* EnumSpecs */ = { + isa = PBXGroup; + children = ( + 162E81E21A9BDE8A00906325 /* SDLAmbientLightStatusSpec.m */, + 162E81E31A9BDE8A00906325 /* SDLAppHMITypeSpec.m */, + 162E81E41A9BDE8A00906325 /* SDLAppInterfaceUnregisteredReasonSpec.m */, + 162E81E51A9BDE8A00906325 /* SDLAudioStreamingStateSpec.m */, + 162E81E61A9BDE8A00906325 /* SDLAudioTypeSpec.m */, + 162E81E71A9BDE8A00906325 /* SDLBitsPerSampleSpec.m */, + 162E81E81A9BDE8A00906325 /* SDLButtonEventModeSpec.m */, + 162E81E91A9BDE8A00906325 /* SDLButtonNameSpec.m */, + 162E81EA1A9BDE8A00906325 /* SDLButtonPressModeSpec.m */, + 162E81EB1A9BDE8A00906325 /* SDLCarModeStatusSpec.m */, + 162E81EC1A9BDE8A00906325 /* SDLCharacterSetSpec.m */, + 162E81ED1A9BDE8A00906325 /* SDLCompassDirectionSpec.m */, + 162E81EE1A9BDE8A00906325 /* SDLComponentVolumeStatusSpec.m */, + 162E81EF1A9BDE8A00906325 /* SDLDeviceLevelStatusSpec.m */, + 162E81F01A9BDE8A00906325 /* SDLDimensionSpec.m */, + 162E81F11A9BDE8A00906325 /* SDLDisplayTypeSpec.m */, + 162E81F21A9BDE8A00906325 /* SDLDriverDistractionStateSpec.m */, + 162E81F31A9BDE8A00906325 /* SDLECallConfirmationStatusSpec.m */, + 162E81F41A9BDE8A00906325 /* SDLEmergencyEventTypeSpec.m */, + 162E81F51A9BDE8A00906325 /* SDLFileTypeSpec.m */, + 162E81F61A9BDE8A00906325 /* SDLFuelCutoffStatusSpec.m */, + 162E81F71A9BDE8A00906325 /* SDLGlobalProperySpec.m */, + 162E81F81A9BDE8A00906325 /* SDLHMILevelSpec.m */, + 162E81F91A9BDE8A00906325 /* SDLHMIZoneCapabilitiesSpec.m */, + 162E81FA1A9BDE8A00906325 /* SDLIgnitionStableStatusSpec.m */, + 162E81FB1A9BDE8A00906325 /* SDLIgnitionStatusSpec.m */, + 162E81FC1A9BDE8A00906325 /* SDLImageFieldNameSpec.m */, + 162E81FD1A9BDE8A00906325 /* SDLImageTypeSpec.m */, + 162E81FE1A9BDE8A00906325 /* SDLInteractionModeSpec.m */, + 162E81FF1A9BDE8A00906325 /* SDLKeyboardEventSpec.m */, + 162E82001A9BDE8A00906325 /* SDLKeyboardLayoutSpec.m */, + 162E82011A9BDE8A00906325 /* SDLKeypressModeSpec.m */, + 162E82021A9BDE8A00906325 /* SDLLanguageSpec.m */, + 162E82031A9BDE8A00906325 /* SDLLayoutModeSpec.m */, + 162E82041A9BDE8A00906325 /* SDLLockScreenStatusSpec.m */, + 162E82051A9BDE8A00906325 /* SDLMaintenanceModeStatusSpec.m */, + 162E82061A9BDE8A00906325 /* SDLMediaClockFormatSpec.m */, + 162E82071A9BDE8A00906325 /* SDLPermissionStatusSpec.m */, + 162E82081A9BDE8A00906325 /* SDLPowerModeQualificationStatusSpec.m */, + 162E82091A9BDE8A00906325 /* SDLPowerModeStatusSpec.m */, + 162E820A1A9BDE8A00906325 /* SDLPredefinedLayoutSpec.m */, + 162E820B1A9BDE8A00906325 /* SDLPrerecordedSpeechSpec.m */, + 162E820C1A9BDE8A00906325 /* SDLPrimaryAudioSource.m */, + 162E820D1A9BDE8A00906325 /* SDLPRNDLSpec.m */, + 162E820E1A9BDE8A00906325 /* SDLRequestTypeSpec.m */, + 162E820F1A9BDE8A00906325 /* SDLResultSpec.m */, + 162E82111A9BDE8A00906325 /* SDLSamplingRateSpec.m */, + 162E82121A9BDE8A00906325 /* SDLSoftButtonTypeSpec.m */, + 162E82131A9BDE8A00906325 /* SDLSpeechCapabilitiesSpec.m */, + 162E82141A9BDE8A00906325 /* SDLSystemAction.m */, + 162E82151A9BDE8A00906325 /* SDLSystemContextSpec.m */, + 162E82161A9BDE8A00906325 /* SDLTBTStateSpec.m */, + 162E82171A9BDE8A00906325 /* SDLTextAlignmentSpec.m */, + 162E82181A9BDE8A00906325 /* SDLTextFieldNameSpec.m */, + 162E82191A9BDE8A00906325 /* SDLTimerModeSpec.m */, + 162E821A1A9BDE8A00906325 /* SDLTouchTypeSpec.m */, + 162E821B1A9BDE8A00906325 /* SDLTriggerSource.m */, + 162E821C1A9BDE8A00906325 /* SDLUpdateModeSpec.m */, + 162E821D1A9BDE8A00906325 /* SDLVehicleDataActiveStatusSpec.m */, + 162E821E1A9BDE8A00906325 /* SDLVehicleDataEventStatusSpec.m */, + 162E821F1A9BDE8A00906325 /* SDLVehicleDataNotificationStatusSpec.m */, + 162E82201A9BDE8A00906325 /* SDLVehicleDataResultCodeSpec.m */, + 162E82211A9BDE8A00906325 /* SDLVehicleDataStatusSpec.m */, + 162E82221A9BDE8A00906325 /* SDLVehicleDataTypeSpec.m */, + 162E82231A9BDE8A00906325 /* SDLVrCapabilitiesSpec.m */, + 162E82241A9BDE8A00906325 /* SDLWarningLightStatusSpec.m */, + 162E82251A9BDE8A00906325 /* SDLWiperStatusSpec.m */, + ); + path = EnumSpecs; + sourceTree = ""; + }; + 162E82261A9BDE8A00906325 /* FactorySpecs */ = { + isa = PBXGroup; + children = ( + 162E82271A9BDE8A00906325 /* SDLRPCRequestFactorySpec.m */, + ); + path = FactorySpecs; + sourceTree = ""; + }; + 162E82281A9BDE8A00906325 /* NotificationSpecs */ = { + isa = PBXGroup; + children = ( + 162E82291A9BDE8A00906325 /* SDLOnAppInterfaceUnregisteredSpec.m */, + 162E822A1A9BDE8A00906325 /* SDLOnAudioPassThruSpec.m */, + 162E822B1A9BDE8A00906325 /* SDLOnButtonEventSpec.m */, + 162E822C1A9BDE8A00906325 /* SDLOnButtonPressSpec.m */, + 162E822D1A9BDE8A00906325 /* SDLOnCommandSpec.m */, + 162E822E1A9BDE8A00906325 /* SDLOnDriverDistractionSpec.m */, + 162E822F1A9BDE8A00906325 /* SDLOnEncodedSyncPDataSpec.m */, + 162E82301A9BDE8A00906325 /* SDLOnHashChangeSpec.m */, + 162E82311A9BDE8A00906325 /* SDLOnHMIStatusSpec.m */, + 162E82321A9BDE8A00906325 /* SDLOnKeyboardInputSpec.m */, + 162E82331A9BDE8A00906325 /* SDLOnLanguageChangeSpec.m */, + 162E82341A9BDE8A00906325 /* SDLOnLockScreenStatusSpec.m */, + 162E82351A9BDE8A00906325 /* SDLOnPermissionsChangeSpec.m */, + 162E82361A9BDE8A00906325 /* SDLOnSyncPDataSpec.m */, + 162E82371A9BDE8A00906325 /* SDLOnSystemRequestSpec.m */, + 162E82381A9BDE8A00906325 /* SDLOnTBTClientStateSpec.m */, + 162E82391A9BDE8A00906325 /* SDLOnTouchEventSpec.m */, + 162E823A1A9BDE8A00906325 /* SDLOnVehicleDataSpec.m */, + ); + path = NotificationSpecs; + sourceTree = ""; + }; + 162E823B1A9BDE8A00906325 /* PayloadSpecs */ = { + isa = PBXGroup; + children = ( + 162E823C1A9BDE8A00906325 /* SDLRPCPayloadSpec.m */, + ); + path = PayloadSpecs; + sourceTree = ""; + }; + 162E823D1A9BDE8A00906325 /* RequestSpecs */ = { + isa = PBXGroup; + children = ( + 162E823E1A9BDE8A00906325 /* SDLAddCommandSpec.m */, + 162E823F1A9BDE8A00906325 /* SDLAddSubMenuSpec.m */, + 162E82401A9BDE8A00906325 /* SDLAlertManeuverSpec.m */, + 162E82411A9BDE8A00906325 /* SDLAlertSpec.m */, + 162E82421A9BDE8A00906325 /* SDLChangeRegistrationSpec.m */, + 162E82431A9BDE8A00906325 /* SDLCreateInteractionChoiceSetSpec.m */, + 162E82441A9BDE8A00906325 /* SDLDeleteCommandSpec.m */, + 162E82451A9BDE8A00906325 /* SDLDeleteFileSpec.m */, + 162E82461A9BDE8A00906325 /* SDLDeleteInteractionChoiceSetSpec.m */, + 162E82471A9BDE8A00906325 /* SDLDeleteSubMenuSpec.m */, + 162E82481A9BDE8A00906325 /* SDLDiagnosticMessageSpec.m */, + 5D8B17551AC9E399006A6E1C /* SDLDialNumberSpec.m */, + 162E82491A9BDE8A00906325 /* SDLEncodedSyncPDataSpec.m */, + 162E824A1A9BDE8A00906325 /* SDLEndAudioPassThruSpec.m */, + 162E824B1A9BDE8A00906325 /* SDLGetDTCsSpec.m */, + 162E824C1A9BDE8A00906325 /* SDLGetVehicleDataSpec.m */, + 162E824D1A9BDE8A00906325 /* SDLListFilesSpec.m */, + 162E824E1A9BDE8A00906325 /* SDLPerformAudioPassThruSpec.m */, + 162E824F1A9BDE8A00906325 /* SDLPerformInteractionSpec.m */, + 162E82501A9BDE8A00906325 /* SDLPutFileSpec.m */, + 162E82511A9BDE8A00906325 /* SDLReadDIDSpec.m */, + 162E82521A9BDE8A00906325 /* SDLRegisterAppInterfaceSpec.m */, + 162E82531A9BDE8A00906325 /* SDLResetGlobalPropertiesSpec.m */, + 162E82541A9BDE8A00906325 /* SDLScrollableMessageSpec.m */, + 5DCF76FB1ACDDB4200BB647B /* SDLSendLocationSpec.m */, + 162E82551A9BDE8A00906325 /* SDLSetAppIconSpec.m */, + 162E82561A9BDE8A00906325 /* SDLSetDisplayLayoutSpec.m */, + 162E82571A9BDE8A00906325 /* SDLSetGlobalPropertiesSpec.m */, + 162E82581A9BDE8A00906325 /* SDLSetMediaClockTimerSpec.m */, + 162E82591A9BDE8A00906325 /* SDLShowConstantTBTSpec.m */, + 162E825A1A9BDE8A00906325 /* SDLShowSpec.m */, + 162E825B1A9BDE8A00906325 /* SDLSliderSpec.m */, + 162E825C1A9BDE8A00906325 /* SDLSpeakSpec.m */, + 162E825D1A9BDE8A00906325 /* SDLSubscribeButtonSpec.m */, + 162E825E1A9BDE8A00906325 /* SDLSubscribeVehicleDataSpec.m */, + 162E825F1A9BDE8A00906325 /* SDLSyncPDataSpec.m */, + 162E82601A9BDE8A00906325 /* SDLSystemRequestSpec.m */, + 162E82611A9BDE8A00906325 /* SDLUnregisterAppInterfaceSpec.m */, + 162E82621A9BDE8A00906325 /* SDLUnsubscribeButtonSpec.m */, + 162E82631A9BDE8A00906325 /* SDLUnsubscribeVehicleDataSpec.m */, + 162E82641A9BDE8A00906325 /* SDLUpdateTurnListSpec.m */, + ); + path = RequestSpecs; + sourceTree = ""; + }; + 162E82651A9BDE8A00906325 /* ResponseSpecs */ = { + isa = PBXGroup; + children = ( + 162E82661A9BDE8A00906325 /* SDLAddCommandResponseSpec.m */, + 162E82671A9BDE8A00906325 /* SDLAddSubMenuResponseSpec.m */, + 162E82681A9BDE8A00906325 /* SDLAlertManeuverResponseSpec.m */, + 162E82691A9BDE8A00906325 /* SDLAlertResponseSpec.m */, + 162E826A1A9BDE8A00906325 /* SDLChangeRegistrationResponseSpec.m */, + 162E826B1A9BDE8A00906325 /* SDLCreateInteractionChoiceSetResponseSpec.m */, + 162E826C1A9BDE8A00906325 /* SDLDeleteCommandResponseSpec.m */, + 162E826D1A9BDE8A00906325 /* SDLDeleteFileResponseSpec.m */, + 162E826E1A9BDE8A00906325 /* SDLDeleteInteractionChoiceSetResponseSpec.m */, + 162E826F1A9BDE8A00906325 /* SDLDeleteSubMenuResponseSpec.m */, + 162E82701A9BDE8A00906325 /* SDLDiagnosticMessageResponseSpec.m */, + 5DA0268F1AD44EE700019F86 /* SDLDialNumberResponseSpec.m */, + 162E82711A9BDE8A00906325 /* SDLEncodedSyncPDataResponseSpec.m */, + 162E82721A9BDE8A00906325 /* SDLEndAudioPassThruResponseSpec.m */, + 162E82731A9BDE8A00906325 /* SDLGenericResponseSpec.m */, + 162E82741A9BDE8A00906325 /* SDLGetDTCsResponseSpec.m */, + 162E82751A9BDE8A00906325 /* SDLGetVehicleDataResponseSpec.m */, + 162E82761A9BDE8A00906325 /* SDLListFilesResponseSpec.m */, + 162E82771A9BDE8A00906325 /* SDLPerformAudioPassThruResponseSpec.m */, + 162E82781A9BDE8A00906325 /* SDLPerformInteractionResponseSpec.m */, + 162E82791A9BDE8A00906325 /* SDLPutFileResponseSpec.m */, + 162E827A1A9BDE8A00906325 /* SDLReadDIDResponseSpec.m */, + 162E827B1A9BDE8A00906325 /* SDLRegisterAppInterfaceResponseSpec.m */, + 162E827C1A9BDE8A00906325 /* SDLResetGlobalPropertiesResponseSpec.m */, + 162E827D1A9BDE8A00906325 /* SDLScrollableMessageResponseSpec.m */, + 5DCF76FD1ACDDB5A00BB647B /* SDLSendLocationResponseSpec.m */, + 162E827E1A9BDE8A00906325 /* SDLSetAppIconResponseSpec.m */, + 162E827F1A9BDE8A00906325 /* SDLSetDisplayLayoutResponseSpec.m */, + 162E82801A9BDE8A00906325 /* SDLSetGlobalPropertiesResponseSpec.m */, + 162E82811A9BDE8A00906325 /* SDLSetMediaClockTimerResponseSpec.m */, + 162E82821A9BDE8A00906325 /* SDLShowConstantTBTResponseSpec.m */, + 162E82831A9BDE8A00906325 /* SDLShowResponseSpec.m */, + 162E82841A9BDE8A00906325 /* SDLSliderResponseSpec.m */, + 162E82851A9BDE8A00906325 /* SDLSpeakResponseSpec.m */, + 162E82861A9BDE8A00906325 /* SDLSubscribeButtonResponseSpec.m */, + 162E82871A9BDE8A00906325 /* SDLSubscribeVehicleDataResponseSpec.m */, + 162E82881A9BDE8A00906325 /* SDLSyncPDataResponseSpec.m */, + 162E82891A9BDE8A00906325 /* SDLSystemRequestResponseSpec.m */, + 162E828A1A9BDE8A00906325 /* SDLUnregisterAppInterfaceResponseSpec.m */, + 162E828B1A9BDE8A00906325 /* SDLUnsubscribeButtonResponseSpec.m */, + 162E828C1A9BDE8A00906325 /* SDLUnsubscribeVehicleDataResponseSpec.m */, + 162E828D1A9BDE8A00906325 /* SDLUpdateTurnListResponseSpec.m */, + ); + path = ResponseSpecs; + sourceTree = ""; + }; + 162E828E1A9BDE8A00906325 /* StructSpecs */ = { + isa = PBXGroup; + children = ( + 162E828F1A9BDE8A00906325 /* SDLAirbagStatusSpec.m */, + 162E82901A9BDE8A00906325 /* SDLAudioPassThruCapabilitiesSpec.m */, + 162E82911A9BDE8A00906325 /* SDLBeltStatusSpec.m */, + 162E82921A9BDE8A00906325 /* SDLBodyInformationSpec.m */, + 162E82931A9BDE8A00906325 /* SDLButtonCapabilitiesSpec.m */, + 162E82941A9BDE8A00906325 /* SDLChoiceSpec.m */, + 162E82951A9BDE8A00906325 /* SDLClusterModeStatusSpec.m */, + 162E82961A9BDE8A00906325 /* SDLDeviceInfoSpec.m */, + 162E82971A9BDE8A00906325 /* SDLDeviceStatusSpec.m */, + 162E82981A9BDE8A00906325 /* SDLDIDResult.m */, + 162E82991A9BDE8A00906325 /* SDLDisplayCapabilitiesSpec.m */, + 162E829A1A9BDE8A00906325 /* SDLECallInfoSpec.m */, + 162E829B1A9BDE8A00906325 /* SDLEmergencyEventSpec.m */, + 162E829C1A9BDE8A00906325 /* SDLGPSDataSpec.m */, + 162E829D1A9BDE8A00906325 /* SDLHeadLampStatusSpec.m */, + 5DE372A31ACB336600849FAA /* SDLHMICapabilitiesSpec.m */, + 162E829E1A9BDE8A00906325 /* SDLHMIPermissionsSpec.m */, + 162E829F1A9BDE8A00906325 /* SDLImageFieldSpec.m */, + 162E82A01A9BDE8A00906325 /* SDLImageSpec.m */, + 162E82A11A9BDE8A00906325 /* SDLKeyboardPropertiesSpec.m */, + 162E82A21A9BDE8A00906325 /* SDLMenuParamsSpec.m */, + 162E82A31A9BDE8A00906325 /* SDLMyKeySpec.m */, + 162E82A41A9BDE8A00906325 /* SDLParameterPermissionsSpec.m */, + 162E82A51A9BDE8A00906325 /* SDLPermissionItemSpec.m */, + 162E82A61A9BDE8A00906325 /* SDLPresetBankCapabilitiesSpec.m */, + 162E82A71A9BDE8A00906325 /* SDLScreenParamsSpec.m */, + 162E82A81A9BDE8A00906325 /* SDLSingleTireStatusSpec.m */, + 162E82A91A9BDE8A00906325 /* SDLSoftButtonCapabilitiesSpec.m */, + 162E82AA1A9BDE8A00906325 /* SDLSoftButtonSpec.m */, + 162E82AB1A9BDE8A00906325 /* SDLStartTimeSpec.m */, + 162E82AC1A9BDE8A00906325 /* SDLSyncMsgVersionSpec.m */, + 162E82AD1A9BDE8A00906325 /* SDLTextFieldSpec.m */, + 162E82AE1A9BDE8A00906325 /* SDLTireStatusSpec.m */, + 162E82AF1A9BDE8A00906325 /* SDLTouchCoordSpec.m */, + 162E82B01A9BDE8A00906325 /* SDLTouchEventCapabilitiesSpec.m */, + 162E82B11A9BDE8A00906325 /* SDLTouchEventSpec.m */, + 162E82B21A9BDE8A00906325 /* SDLTTSChunkSpec.m */, + 162E82B31A9BDE8A00906325 /* SDLTurnSpec.m */, + 162E82B41A9BDE8A00906325 /* SDLVehicleDataResultSpec.m */, + 162E82B51A9BDE8A00906325 /* SDLVehicleTypeSpec.m */, + 162E82B61A9BDE8A00906325 /* SDLVrHelpItemSpec.m */, + ); + path = StructSpecs; + sourceTree = ""; + }; + 162E82B71A9BDE8A00906325 /* SuperclassSpecs */ = { + isa = PBXGroup; + children = ( + 162E82B81A9BDE8A00906325 /* SDLEnumSpec.m */, + 162E82B91A9BDE8A00906325 /* SDLRPCMessageSpec.m */, + 162E82BA1A9BDE8A00906325 /* SDLRPCNotificationSpec.m */, + 162E82BB1A9BDE8A00906325 /* SDLRPCRequestSpec.m */, + 162E82BC1A9BDE8A00906325 /* SDLRPCResponseSpec.m */, + 162E82BD1A9BDE8A00906325 /* SDLRPCStructSpec.m */, + ); + path = SuperclassSpecs; + sourceTree = ""; + }; + 167ED9231A9BB86300797BE5 /* Libraries */ = { + isa = PBXGroup; + children = ( + 5D1464311C99AC0000727339 /* Nimble.framework.dSYM */, + 5DEE55C41B864AB3004F0D0F /* OHHTTPStubs.framework.dSYM */, + 5D1464331C99AC0900727339 /* OCMock.framework.dSYM */, + 5D1464341C99AC0900727339 /* Quick.framework.dSYM */, + 5D1464351C99AC0900727339 /* OCMock.framework */, + 5DEE55C11B864A7D004F0D0F /* OHHTTPStubs.framework */, + 162E81C81A9BDD3F00906325 /* Nimble.framework */, + 162E81C91A9BDD3F00906325 /* Quick.framework */, + ); + name = Libraries; + sourceTree = ""; + }; + 1680B1041A9CD7AD00DBD79E /* ProtocolSpecs */ = { + isa = PBXGroup; + children = ( + 1680B1051A9CD7AD00DBD79E /* HeaderSpecs */, + 1680B1091A9CD7AD00DBD79E /* MessageSpecs */, + 1680B10E1A9CD7AD00DBD79E /* SDLAbstractProtocolSpec.m */, + 1680B10F1A9CD7AD00DBD79E /* SDLFunctionIDSpec.m */, + 1680B10B1A9CD7AD00DBD79E /* SDLProtocolSpec.m */, + 1680B1101A9CD7AD00DBD79E /* SDLProtocolMessageAssemblerSpec.m */, + 1680B1111A9CD7AD00DBD79E /* SDLProtocolMessageDisassemblerSpec.m */, + 1680B1121A9CD7AD00DBD79E /* SDLProtocolReceivedMessageRouterSpec.m */, + ); + path = ProtocolSpecs; + sourceTree = ""; + }; + 1680B1051A9CD7AD00DBD79E /* HeaderSpecs */ = { + isa = PBXGroup; + children = ( + 1680B1061A9CD7AD00DBD79E /* SDLProtocolHeaderSpec.m */, + 1680B1071A9CD7AD00DBD79E /* SDLV1ProtocolHeaderSpec.m */, + 1680B1081A9CD7AD00DBD79E /* SDLV2ProtocolHeaderSpec.m */, + ); + path = HeaderSpecs; + sourceTree = ""; + }; + 1680B1091A9CD7AD00DBD79E /* MessageSpecs */ = { + isa = PBXGroup; + children = ( + 1680B10A1A9CD7AD00DBD79E /* SDLProtocolMessageSpec.m */, + 1680B10C1A9CD7AD00DBD79E /* SDLV1ProtocolMessageSpec.m */, + 1680B10D1A9CD7AD00DBD79E /* SDLV2ProtocolMessageSpec.m */, + ); + path = MessageSpecs; + sourceTree = ""; + }; + 5D0218E71A8D611600D1BF62 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; + 5D0218EB1A8E795700D1BF62 /* UI */ = { + isa = PBXGroup; + children = ( + 5D0218EC1A8E796100D1BF62 /* Connection */, + ); + name = UI; + sourceTree = ""; + }; + 5D0218EC1A8E796100D1BF62 /* Connection */ = { + isa = PBXGroup; + children = ( + 5D4832991A8EA27200252386 /* Storyboards */, + 5D4832A21A94F8F100252386 /* Transition */, + 5D0218FA1A8E7E1700D1BF62 /* ConnectionContainerViewController.h */, + 5D0218FB1A8E7E1700D1BF62 /* ConnectionContainerViewController.m */, + 5D0218F41A8E79C400D1BF62 /* ConnectionTCPTableViewController.h */, + 5D0218F51A8E79C400D1BF62 /* ConnectionTCPTableViewController.m */, + 5D0218FD1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.h */, + 5D0218FE1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.m */, + ); + name = Connection; + sourceTree = ""; + }; + 5D4019A61A76EC350006B0C2 = { + isa = PBXGroup; + children = ( + 167ED9231A9BB86300797BE5 /* Libraries */, + 5D4019B11A76EC350006B0C2 /* Example */, + 5D61FA1D1A84237100846EE7 /* SmartDeviceLink */, + 5D61FA2C1A84237100846EE7 /* SmartDeviceLinkTests */, + 5D4019B01A76EC350006B0C2 /* Products */, + ); + sourceTree = ""; + }; + 5D4019B01A76EC350006B0C2 /* Products */ = { + isa = PBXGroup; + children = ( + 5D4019AF1A76EC350006B0C2 /* SmartDeviceLink-Example.app */, + 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */, + 5D61FA261A84237100846EE7 /* SmartDeviceLinkTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 5D4019B11A76EC350006B0C2 /* Example */ = { + isa = PBXGroup; + children = ( + 5D48329E1A92865900252386 /* SDL */, + 5D48329A1A8EA31500252386 /* Utilities */, + 5D0218EB1A8E795700D1BF62 /* UI */, + 5D59350B1A855EB300687FB9 /* AppDelegate.h */, + 5D59350C1A855EB300687FB9 /* AppDelegate.m */, + 5D4029D31A76F0340006B0C2 /* Images.xcassets */, + 5D4029DF1A76F0760006B0C2 /* LaunchScreen.xib */, + 5D4029E11A76F0760006B0C2 /* Main.storyboard */, + 5D4019B21A76EC350006B0C2 /* Supporting Files */, + ); + name = Example; + path = "SmartDeviceLink-iOS"; + sourceTree = ""; + }; + 5D4019B21A76EC350006B0C2 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 5D0218E71A8D611600D1BF62 /* Frameworks */, + 5D5935111A855EBE00687FB9 /* main.m */, + 5D4029D51A76F0410006B0C2 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 5D4832991A8EA27200252386 /* Storyboards */ = { + isa = PBXGroup; + children = ( + 5D0218F71A8E7A7300D1BF62 /* ConnectionTCPTableViewController.storyboard */, + 5D0219031A8E9F6D00D1BF62 /* ConnectionIAPTableViewController.storyboard */, + ); + name = Storyboards; + sourceTree = ""; + }; + 5D48329A1A8EA31500252386 /* Utilities */ = { + isa = PBXGroup; + children = ( + 5D48329B1A8EA33D00252386 /* Preferences.h */, + 5D48329C1A8EA33D00252386 /* Preferences.m */, + ); + name = Utilities; + sourceTree = ""; + }; + 5D48329E1A92865900252386 /* SDL */ = { + isa = PBXGroup; + children = ( + 5D48329F1A92868E00252386 /* ProxyManager.h */, + 5D4832A01A92868E00252386 /* ProxyManager.m */, + ); + name = SDL; + sourceTree = ""; + }; + 5D4832A21A94F8F100252386 /* Transition */ = { + isa = PBXGroup; + children = ( + 5D4832A31A94F90D00252386 /* ConnectionTransitionContext.h */, + 5D4832A41A94F90D00252386 /* ConnectionTransitionContext.m */, + 5D4832A61A95191B00252386 /* ConnectionAnimatedTransition.h */, + 5D4832A71A95191B00252386 /* ConnectionAnimatedTransition.m */, + ); + name = Transition; + sourceTree = ""; + }; + 5D5934ED1A85160400687FB9 /* Proxy */ = { + isa = PBXGroup; + children = ( + 5D5934FE1A851B2500687FB9 /* @protocols */, + 5D61FB031A84238A00846EE7 /* SDLLockScreenManager.h */, + 5D61FB041A84238A00846EE7 /* SDLLockScreenManager.m */, + 5D61FB441A84238B00846EE7 /* SDLPolicyDataParser.h */, + 5D61FB451A84238B00846EE7 /* SDLPolicyDataParser.m */, + 5D61FB631A84238B00846EE7 /* SDLProxy.h */, + 5D61FB641A84238B00846EE7 /* SDLProxy.m */, + 5D61FB651A84238B00846EE7 /* SDLProxyFactory.h */, + 5D61FB661A84238B00846EE7 /* SDLProxyFactory.m */, + 5D61FBF21A84238C00846EE7 /* SDLTTSChunkFactory.h */, + 5D61FBF31A84238C00846EE7 /* SDLTTSChunkFactory.m */, + 5D53C46B1B7A99B9003526EA /* SDLStreamingMediaManager.h */, + 5D53C46C1B7A99B9003526EA /* SDLStreamingMediaManager.m */, + ); + name = Proxy; + sourceTree = ""; + }; + 5D5934EE1A85160900687FB9 /* Protocol */ = { + isa = PBXGroup; + children = ( + 5D5934FA1A851AC900687FB9 /* @protocols */, + 5D5935011A851D7E00687FB9 /* Header */, + 5D5935021A851D8700687FB9 /* Message */, + 5D61FA3C1A84238A00846EE7 /* SDLAbstractProtocol.h */, + 5D61FA3D1A84238A00846EE7 /* SDLAbstractProtocol.m */, + 5D61FAC01A84238A00846EE7 /* SDLFunctionID.h */, + 5D61FAC11A84238A00846EE7 /* SDLFunctionID.m */, + 5D61FB561A84238B00846EE7 /* SDLProtocol.h */, + 5D61FB571A84238B00846EE7 /* SDLProtocol.m */, + 5D61FB5D1A84238B00846EE7 /* SDLProtocolMessageAssembler.h */, + 5D61FB5E1A84238B00846EE7 /* SDLProtocolMessageAssembler.m */, + 5D61FB5F1A84238B00846EE7 /* SDLProtocolMessageDisassembler.h */, + 5D61FB601A84238B00846EE7 /* SDLProtocolMessageDisassembler.m */, + 5D61FB611A84238B00846EE7 /* SDLProtocolReceivedMessageRouter.h */, + 5D61FB621A84238B00846EE7 /* SDLProtocolReceivedMessageRouter.m */, + ); + name = Protocol; + sourceTree = ""; + }; + 5D5934EF1A85160F00687FB9 /* RPCs */ = { + isa = PBXGroup; + children = ( + 5D5934FF1A851B8400687FB9 /* Superclasses */, + 5D5935041A851E1A00687FB9 /* Payload */, + 5D5935031A851E1100687FB9 /* Factories */, + 5D5934F11A85162800687FB9 /* Requests */, + 5D5934F21A85163200687FB9 /* Responses */, + 5D5934F31A85164500687FB9 /* Structs */, + 5D5934F41A85165E00687FB9 /* Enums */, + 5D5934F81A8519C300687FB9 /* Notification */, + ); + name = RPCs; + sourceTree = ""; + }; + 5D5934F01A85161A00687FB9 /* Transport */ = { + isa = PBXGroup; + children = ( + 5D5935001A851D0B00687FB9 /* @protocols */, + 5D61FA3E1A84238A00846EE7 /* SDLAbstractTransport.h */, + 5D61FA3F1A84238A00846EE7 /* SDLAbstractTransport.m */, + E9C32B891AB20BA200F283AF /* SDLIAPSession.h */, + E9C32B8A1AB20BA200F283AF /* SDLIAPSession.m */, + E9C32B8B1AB20BA200F283AF /* SDLIAPSessionDelegate.h */, + 5D61FADA1A84238A00846EE7 /* SDLIAPTransport.h */, + 5D61FADB1A84238A00846EE7 /* SDLIAPTransport.m */, + E9C32B8C1AB20BA200F283AF /* SDLStreamDelegate.h */, + E9C32B8D1AB20BA200F283AF /* SDLStreamDelegate.m */, + 5D61FBD81A84238B00846EE7 /* SDLTCPTransport.h */, + 5D61FBD91A84238B00846EE7 /* SDLTCPTransport.m */, + ); + name = Transport; + sourceTree = ""; + }; + 5D5934F11A85162800687FB9 /* Requests */ = { + isa = PBXGroup; + children = ( + 5D61FA401A84238A00846EE7 /* SDLAddCommand.h */, + 5D61FA411A84238A00846EE7 /* SDLAddCommand.m */, + 5D61FA441A84238A00846EE7 /* SDLAddSubMenu.h */, + 5D61FA451A84238A00846EE7 /* SDLAddSubMenu.m */, + 5D61FA4A1A84238A00846EE7 /* SDLAlert.h */, + 5D61FA4B1A84238A00846EE7 /* SDLAlert.m */, + 5D61FA4C1A84238A00846EE7 /* SDLAlertManeuver.h */, + 5D61FA4D1A84238A00846EE7 /* SDLAlertManeuver.m */, + 5D61FA6E1A84238A00846EE7 /* SDLChangeRegistration.h */, + 5D61FA6F1A84238A00846EE7 /* SDLChangeRegistration.m */, + 5D61FA7E1A84238A00846EE7 /* SDLCreateInteractionChoiceSet.h */, + 5D61FA7F1A84238A00846EE7 /* SDLCreateInteractionChoiceSet.m */, + 5D61FA851A84238A00846EE7 /* SDLDeleteCommand.h */, + 5D61FA861A84238A00846EE7 /* SDLDeleteCommand.m */, + 5D61FA891A84238A00846EE7 /* SDLDeleteFile.h */, + 5D61FA8A1A84238A00846EE7 /* SDLDeleteFile.m */, + 5D61FA8D1A84238A00846EE7 /* SDLDeleteInteractionChoiceSet.h */, + 5D61FA8E1A84238A00846EE7 /* SDLDeleteInteractionChoiceSet.m */, + 5D61FA911A84238A00846EE7 /* SDLDeleteSubMenu.h */, + 5D61FA921A84238A00846EE7 /* SDLDeleteSubMenu.m */, + 5D61FA9B1A84238A00846EE7 /* SDLDiagnosticMessage.h */, + 5D61FA9C1A84238A00846EE7 /* SDLDiagnosticMessage.m */, + 5D8B174D1AC9D266006A6E1C /* SDLDialNumber.h */, + 5D8B174E1AC9D266006A6E1C /* SDLDialNumber.m */, + 5D61FAB11A84238A00846EE7 /* SDLEncodedSyncPData.h */, + 5D61FAB21A84238A00846EE7 /* SDLEncodedSyncPData.m */, + 5D61FAB61A84238A00846EE7 /* SDLEndAudioPassThru.h */, + 5D61FAB71A84238A00846EE7 /* SDLEndAudioPassThru.m */, + 5D61FAC41A84238A00846EE7 /* SDLGetDTCs.h */, + 5D61FAC51A84238A00846EE7 /* SDLGetDTCs.m */, + 5D61FAC81A84238A00846EE7 /* SDLGetVehicleData.h */, + 5D61FAC91A84238A00846EE7 /* SDLGetVehicleData.m */, + 5D61FAFF1A84238A00846EE7 /* SDLListFiles.h */, + 5D61FB001A84238A00846EE7 /* SDLListFiles.m */, + 5D61FB381A84238B00846EE7 /* SDLPerformAudioPassThru.h */, + 5D61FB391A84238B00846EE7 /* SDLPerformAudioPassThru.m */, + 5D61FB3C1A84238B00846EE7 /* SDLPerformInteraction.h */, + 5D61FB3D1A84238B00846EE7 /* SDLPerformInteraction.m */, + 5D61FB681A84238B00846EE7 /* SDLPutFile.h */, + 5D61FB691A84238B00846EE7 /* SDLPutFile.m */, + 5D61FB6C1A84238B00846EE7 /* SDLReadDID.h */, + 5D61FB6D1A84238B00846EE7 /* SDLReadDID.m */, + 5D61FB701A84238B00846EE7 /* SDLRegisterAppInterface.h */, + 5D61FB711A84238B00846EE7 /* SDLRegisterAppInterface.m */, + 5D61FB761A84238B00846EE7 /* SDLResetGlobalProperties.h */, + 5D61FB771A84238B00846EE7 /* SDLResetGlobalProperties.m */, + 5D61FB8E1A84238B00846EE7 /* SDLScrollableMessage.h */, + 5D61FB8F1A84238B00846EE7 /* SDLScrollableMessage.m */, + 5D61FB921A84238B00846EE7 /* SDLSetAppIcon.h */, + 5D61FB931A84238B00846EE7 /* SDLSetAppIcon.m */, + 5D61FB961A84238B00846EE7 /* SDLSetDisplayLayout.h */, + 5D61FB971A84238B00846EE7 /* SDLSetDisplayLayout.m */, + 5D61FB9A1A84238B00846EE7 /* SDLSetGlobalProperties.h */, + 5D61FB9B1A84238B00846EE7 /* SDLSetGlobalProperties.m */, + 5D61FB9E1A84238B00846EE7 /* SDLSetMediaClockTimer.h */, + 5D61FB9F1A84238B00846EE7 /* SDLSetMediaClockTimer.m */, + 5D61FBA21A84238B00846EE7 /* SDLShow.h */, + 5D61FBA31A84238B00846EE7 /* SDLShow.m */, + 5D61FBA41A84238B00846EE7 /* SDLShowConstantTBT.h */, + 5D61FBA51A84238B00846EE7 /* SDLShowConstantTBT.m */, + 5D61FBAE1A84238B00846EE7 /* SDLSlider.h */, + 5D61FBAF1A84238B00846EE7 /* SDLSlider.m */, + 5D61FBB81A84238B00846EE7 /* SDLSpeak.h */, + 5D61FBB91A84238B00846EE7 /* SDLSpeak.m */, + 5D61FBC01A84238B00846EE7 /* SDLSubscribeButton.h */, + 5D61FBC11A84238B00846EE7 /* SDLSubscribeButton.m */, + 5D61FBC41A84238B00846EE7 /* SDLSubscribeVehicleData.h */, + 5D61FBC51A84238B00846EE7 /* SDLSubscribeVehicleData.m */, + 5D61FBCA1A84238B00846EE7 /* SDLSyncPData.h */, + 5D61FBCB1A84238B00846EE7 /* SDLSyncPData.m */, + 5D61FBD21A84238B00846EE7 /* SDLSystemRequest.h */, + 5D61FBD31A84238B00846EE7 /* SDLSystemRequest.m */, + 5D61FBF61A84238C00846EE7 /* SDLUnregisterAppInterface.h */, + 5D61FBF71A84238C00846EE7 /* SDLUnregisterAppInterface.m */, + 5D61FBFA1A84238C00846EE7 /* SDLUnsubscribeButton.h */, + 5D61FBFB1A84238C00846EE7 /* SDLUnsubscribeButton.m */, + 5D61FBFE1A84238C00846EE7 /* SDLUnsubscribeVehicleData.h */, + 5D61FBFF1A84238C00846EE7 /* SDLUnsubscribeVehicleData.m */, + 5D61FC041A84238C00846EE7 /* SDLUpdateTurnList.h */, + 5D61FC051A84238C00846EE7 /* SDLUpdateTurnList.m */, + 5DCF76F31ACDBAD300BB647B /* SDLSendLocation.h */, + 5DCF76F41ACDBAD300BB647B /* SDLSendLocation.m */, + ); + name = Requests; + sourceTree = ""; + }; + 5D5934F21A85163200687FB9 /* Responses */ = { + isa = PBXGroup; + children = ( + 5D61FA421A84238A00846EE7 /* SDLAddCommandResponse.h */, + 5D61FA431A84238A00846EE7 /* SDLAddCommandResponse.m */, + 5D61FA461A84238A00846EE7 /* SDLAddSubMenuResponse.h */, + 5D61FA471A84238A00846EE7 /* SDLAddSubMenuResponse.m */, + 5D61FA4E1A84238A00846EE7 /* SDLAlertManeuverResponse.h */, + 5D61FA4F1A84238A00846EE7 /* SDLAlertManeuverResponse.m */, + 5D61FA501A84238A00846EE7 /* SDLAlertResponse.h */, + 5D61FA511A84238A00846EE7 /* SDLAlertResponse.m */, + 5D61FA701A84238A00846EE7 /* SDLChangeRegistrationResponse.h */, + 5D61FA711A84238A00846EE7 /* SDLChangeRegistrationResponse.m */, + 5D61FA801A84238A00846EE7 /* SDLCreateInteractionChoiceSetResponse.h */, + 5D61FA811A84238A00846EE7 /* SDLCreateInteractionChoiceSetResponse.m */, + 5D61FA871A84238A00846EE7 /* SDLDeleteCommandResponse.h */, + 5D61FA881A84238A00846EE7 /* SDLDeleteCommandResponse.m */, + 5D61FA8B1A84238A00846EE7 /* SDLDeleteFileResponse.h */, + 5D61FA8C1A84238A00846EE7 /* SDLDeleteFileResponse.m */, + 5D61FA8F1A84238A00846EE7 /* SDLDeleteInteractionChoiceSetResponse.h */, + 5D61FA901A84238A00846EE7 /* SDLDeleteInteractionChoiceSetResponse.m */, + 5D61FA931A84238A00846EE7 /* SDLDeleteSubMenuResponse.h */, + 5D61FA941A84238A00846EE7 /* SDLDeleteSubMenuResponse.m */, + 5D61FA9D1A84238A00846EE7 /* SDLDiagnosticMessageResponse.h */, + 5D61FA9E1A84238A00846EE7 /* SDLDiagnosticMessageResponse.m */, + 5D8B17511AC9E11B006A6E1C /* SDLDialNumberResponse.h */, + 5D8B17521AC9E11B006A6E1C /* SDLDialNumberResponse.m */, + 5D61FAB31A84238A00846EE7 /* SDLEncodedSyncPDataResponse.h */, + 5D61FAB41A84238A00846EE7 /* SDLEncodedSyncPDataResponse.m */, + 5D61FAB81A84238A00846EE7 /* SDLEndAudioPassThruResponse.h */, + 5D61FAB91A84238A00846EE7 /* SDLEndAudioPassThruResponse.m */, + 5D61FAC21A84238A00846EE7 /* SDLGenericResponse.h */, + 5D61FAC31A84238A00846EE7 /* SDLGenericResponse.m */, + 5D61FAC61A84238A00846EE7 /* SDLGetDTCsResponse.h */, + 5D61FAC71A84238A00846EE7 /* SDLGetDTCsResponse.m */, + 5D61FACA1A84238A00846EE7 /* SDLGetVehicleDataResponse.h */, + 5D61FACB1A84238A00846EE7 /* SDLGetVehicleDataResponse.m */, + 5D61FB011A84238A00846EE7 /* SDLListFilesResponse.h */, + 5D61FB021A84238A00846EE7 /* SDLListFilesResponse.m */, + 5D61FB3A1A84238B00846EE7 /* SDLPerformAudioPassThruResponse.h */, + 5D61FB3B1A84238B00846EE7 /* SDLPerformAudioPassThruResponse.m */, + 5D61FB3E1A84238B00846EE7 /* SDLPerformInteractionResponse.h */, + 5D61FB3F1A84238B00846EE7 /* SDLPerformInteractionResponse.m */, + 5D61FB6A1A84238B00846EE7 /* SDLPutFileResponse.h */, + 5D61FB6B1A84238B00846EE7 /* SDLPutFileResponse.m */, + 5D61FB6E1A84238B00846EE7 /* SDLReadDIDResponse.h */, + 5D61FB6F1A84238B00846EE7 /* SDLReadDIDResponse.m */, + 5D61FB721A84238B00846EE7 /* SDLRegisterAppInterfaceResponse.h */, + 5D61FB731A84238B00846EE7 /* SDLRegisterAppInterfaceResponse.m */, + 5D61FB781A84238B00846EE7 /* SDLResetGlobalPropertiesResponse.h */, + 5D61FB791A84238B00846EE7 /* SDLResetGlobalPropertiesResponse.m */, + 5D61FB901A84238B00846EE7 /* SDLScrollableMessageResponse.h */, + 5D61FB911A84238B00846EE7 /* SDLScrollableMessageResponse.m */, + 5D61FB941A84238B00846EE7 /* SDLSetAppIconResponse.h */, + 5D61FB951A84238B00846EE7 /* SDLSetAppIconResponse.m */, + 5D61FB981A84238B00846EE7 /* SDLSetDisplayLayoutResponse.h */, + 5D61FB991A84238B00846EE7 /* SDLSetDisplayLayoutResponse.m */, + 5D61FB9C1A84238B00846EE7 /* SDLSetGlobalPropertiesResponse.h */, + 5D61FB9D1A84238B00846EE7 /* SDLSetGlobalPropertiesResponse.m */, + 5D61FBA01A84238B00846EE7 /* SDLSetMediaClockTimerResponse.h */, + 5D61FBA11A84238B00846EE7 /* SDLSetMediaClockTimerResponse.m */, + 5D61FBA61A84238B00846EE7 /* SDLShowConstantTBTResponse.h */, + 5D61FBA71A84238B00846EE7 /* SDLShowConstantTBTResponse.m */, + 5D61FBA81A84238B00846EE7 /* SDLShowResponse.h */, + 5D61FBA91A84238B00846EE7 /* SDLShowResponse.m */, + 5D61FBB01A84238B00846EE7 /* SDLSliderResponse.h */, + 5D61FBB11A84238B00846EE7 /* SDLSliderResponse.m */, + 5D61FBBA1A84238B00846EE7 /* SDLSpeakResponse.h */, + 5D61FBBB1A84238B00846EE7 /* SDLSpeakResponse.m */, + 5D61FBC21A84238B00846EE7 /* SDLSubscribeButtonResponse.h */, + 5D61FBC31A84238B00846EE7 /* SDLSubscribeButtonResponse.m */, + 5D61FBC61A84238B00846EE7 /* SDLSubscribeVehicleDataResponse.h */, + 5D61FBC71A84238B00846EE7 /* SDLSubscribeVehicleDataResponse.m */, + 5D61FBCC1A84238B00846EE7 /* SDLSyncPDataResponse.h */, + 5D61FBCD1A84238B00846EE7 /* SDLSyncPDataResponse.m */, + 5D61FBD41A84238B00846EE7 /* SDLSystemRequestResponse.h */, + 5D61FBD51A84238B00846EE7 /* SDLSystemRequestResponse.m */, + 5D61FBF81A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.h */, + 5D61FBF91A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.m */, + 5D61FBFC1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.h */, + 5D61FBFD1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.m */, + 5D61FC001A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.h */, + 5D61FC011A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.m */, + 5D61FC061A84238C00846EE7 /* SDLUpdateTurnListResponse.h */, + 5D61FC071A84238C00846EE7 /* SDLUpdateTurnListResponse.m */, + 5DCF76F71ACDD7CD00BB647B /* SDLSendLocationResponse.h */, + 5DCF76F81ACDD7CD00BB647B /* SDLSendLocationResponse.m */, + ); + name = Responses; + sourceTree = ""; + }; + 5D5934F31A85164500687FB9 /* Structs */ = { + isa = PBXGroup; + children = ( + 5D61FA481A84238A00846EE7 /* SDLAirbagStatus.h */, + 5D61FA491A84238A00846EE7 /* SDLAirbagStatus.m */, + 5D61FA581A84238A00846EE7 /* SDLAudioPassThruCapabilities.h */, + 5D61FA591A84238A00846EE7 /* SDLAudioPassThruCapabilities.m */, + 5D61FA5E1A84238A00846EE7 /* SDLBeltStatus.h */, + 5D61FA5F1A84238A00846EE7 /* SDLBeltStatus.m */, + 5D61FA621A84238A00846EE7 /* SDLBodyInformation.h */, + 5D61FA631A84238A00846EE7 /* SDLBodyInformation.m */, + 5D61FA641A84238A00846EE7 /* SDLButtonCapabilities.h */, + 5D61FA651A84238A00846EE7 /* SDLButtonCapabilities.m */, + 5D61FA741A84238A00846EE7 /* SDLChoice.h */, + 5D61FA751A84238A00846EE7 /* SDLChoice.m */, + 5D61FA761A84238A00846EE7 /* SDLClusterModeStatus.h */, + 5D61FA771A84238A00846EE7 /* SDLClusterModeStatus.m */, + 5D61FA951A84238A00846EE7 /* SDLDeviceInfo.h */, + 5D61FA961A84238A00846EE7 /* SDLDeviceInfo.m */, + 5D61FA991A84238A00846EE7 /* SDLDeviceStatus.h */, + 5D61FA9A1A84238A00846EE7 /* SDLDeviceStatus.m */, + 5D61FA9F1A84238A00846EE7 /* SDLDIDResult.h */, + 5D61FAA01A84238A00846EE7 /* SDLDIDResult.m */, + 5D61FAA31A84238A00846EE7 /* SDLDisplayCapabilities.h */, + 5D61FAA41A84238A00846EE7 /* SDLDisplayCapabilities.m */, + 5D61FAAB1A84238A00846EE7 /* SDLECallInfo.h */, + 5D61FAAC1A84238A00846EE7 /* SDLECallInfo.m */, + 5D61FAAD1A84238A00846EE7 /* SDLEmergencyEvent.h */, + 5D61FAAE1A84238A00846EE7 /* SDLEmergencyEvent.m */, + 5D61FACE1A84238A00846EE7 /* SDLGPSData.h */, + 5D61FACF1A84238A00846EE7 /* SDLGPSData.m */, + 5D61FAD01A84238A00846EE7 /* SDLHeadLampStatus.h */, + 5D61FAD11A84238A00846EE7 /* SDLHeadLampStatus.m */, + 5DE3729F1ACB2ED300849FAA /* SDLHMICapabilities.h */, + 5DE372A01ACB2ED300849FAA /* SDLHMICapabilities.m */, + 5D61FAD61A84238A00846EE7 /* SDLHMIPermissions.h */, + 5D61FAD71A84238A00846EE7 /* SDLHMIPermissions.m */, + 5D61FAE01A84238A00846EE7 /* SDLImage.h */, + 5D61FAE11A84238A00846EE7 /* SDLImage.m */, + 5D61FAE21A84238A00846EE7 /* SDLImageField.h */, + 5D61FAE31A84238A00846EE7 /* SDLImageField.m */, + 5D61FAE61A84238A00846EE7 /* SDLImageResolution.h */, + 5D61FAE71A84238A00846EE7 /* SDLImageResolution.m */, + 5D61FAF71A84238A00846EE7 /* SDLKeyboardProperties.h */, + 5D61FAF81A84238A00846EE7 /* SDLKeyboardProperties.m */, + 5D61FB0B1A84238A00846EE7 /* SDLMenuParams.h */, + 5D61FB0C1A84238A00846EE7 /* SDLMenuParams.m */, + 5D61FB0D1A84238A00846EE7 /* SDLMyKey.h */, + 5D61FB0E1A84238A00846EE7 /* SDLMyKey.m */, + 5D61FB361A84238B00846EE7 /* SDLParameterPermissions.h */, + 5D61FB371A84238B00846EE7 /* SDLParameterPermissions.m */, + 5D61FB401A84238B00846EE7 /* SDLPermissionItem.h */, + 5D61FB411A84238B00846EE7 /* SDLPermissionItem.m */, + 5D61FB4E1A84238B00846EE7 /* SDLPresetBankCapabilities.h */, + 5D61FB4F1A84238B00846EE7 /* SDLPresetBankCapabilities.m */, + 5D61FB8C1A84238B00846EE7 /* SDLScreenParams.h */, + 5D61FB8D1A84238B00846EE7 /* SDLScreenParams.m */, + 5D61FBAA1A84238B00846EE7 /* SDLSingleTireStatus.h */, + 5D61FBAB1A84238B00846EE7 /* SDLSingleTireStatus.m */, + 5D61FBB21A84238B00846EE7 /* SDLSoftButton.h */, + 5D61FBB31A84238B00846EE7 /* SDLSoftButton.m */, + 5D61FBB41A84238B00846EE7 /* SDLSoftButtonCapabilities.h */, + 5D61FBB51A84238B00846EE7 /* SDLSoftButtonCapabilities.m */, + 5D61FBBE1A84238B00846EE7 /* SDLStartTime.h */, + 5D61FBBF1A84238B00846EE7 /* SDLStartTime.m */, + 5D61FBC81A84238B00846EE7 /* SDLSyncMsgVersion.h */, + 5D61FBC91A84238B00846EE7 /* SDLSyncMsgVersion.m */, + 5D61FBDC1A84238C00846EE7 /* SDLTextField.h */, + 5D61FBDD1A84238C00846EE7 /* SDLTextField.m */, + 5D61FBE21A84238C00846EE7 /* SDLTireStatus.h */, + 5D61FBE31A84238C00846EE7 /* SDLTireStatus.m */, + 5D61FBE41A84238C00846EE7 /* SDLTouchCoord.h */, + 5D61FBE51A84238C00846EE7 /* SDLTouchCoord.m */, + 5D61FBE61A84238C00846EE7 /* SDLTouchEvent.h */, + 5D61FBE71A84238C00846EE7 /* SDLTouchEvent.m */, + 5D61FBE81A84238C00846EE7 /* SDLTouchEventCapabilities.h */, + 5D61FBE91A84238C00846EE7 /* SDLTouchEventCapabilities.m */, + 5D61FBF01A84238C00846EE7 /* SDLTTSChunk.h */, + 5D61FBF11A84238C00846EE7 /* SDLTTSChunk.m */, + 5D61FBF41A84238C00846EE7 /* SDLTurn.h */, + 5D61FBF51A84238C00846EE7 /* SDLTurn.m */, + 5D61FC161A84238C00846EE7 /* SDLVehicleDataResult.h */, + 5D61FC171A84238C00846EE7 /* SDLVehicleDataResult.m */, + 5D61FC1E1A84238C00846EE7 /* SDLVehicleType.h */, + 5D61FC1F1A84238C00846EE7 /* SDLVehicleType.m */, + 5D61FC221A84238C00846EE7 /* SDLVRHelpItem.h */, + 5D61FC231A84238C00846EE7 /* SDLVRHelpItem.m */, + ); + name = Structs; + sourceTree = ""; + }; + 5D5934F41A85165E00687FB9 /* Enums */ = { + isa = PBXGroup; + children = ( + 5D61FA521A84238A00846EE7 /* SDLAmbientLightStatus.h */, + 5D61FA531A84238A00846EE7 /* SDLAmbientLightStatus.m */, + 5D61FA541A84238A00846EE7 /* SDLAppHMIType.h */, + 5D61FA551A84238A00846EE7 /* SDLAppHMIType.m */, + 5D61FA561A84238A00846EE7 /* SDLAppInterfaceUnregisteredReason.h */, + 5D61FA571A84238A00846EE7 /* SDLAppInterfaceUnregisteredReason.m */, + 5D61FA5A1A84238A00846EE7 /* SDLAudioStreamingState.h */, + 5D61FA5B1A84238A00846EE7 /* SDLAudioStreamingState.m */, + 5D61FA5C1A84238A00846EE7 /* SDLAudioType.h */, + 5D61FA5D1A84238A00846EE7 /* SDLAudioType.m */, + 5D61FA601A84238A00846EE7 /* SDLBitsPerSample.h */, + 5D61FA611A84238A00846EE7 /* SDLBitsPerSample.m */, + 5D61FA661A84238A00846EE7 /* SDLButtonEventMode.h */, + 5D61FA671A84238A00846EE7 /* SDLButtonEventMode.m */, + 5D61FA681A84238A00846EE7 /* SDLButtonName.h */, + 5D61FA691A84238A00846EE7 /* SDLButtonName.m */, + 5D61FA6A1A84238A00846EE7 /* SDLButtonPressMode.h */, + 5D61FA6B1A84238A00846EE7 /* SDLButtonPressMode.m */, + 5D61FA6C1A84238A00846EE7 /* SDLCarModeStatus.h */, + 5D61FA6D1A84238A00846EE7 /* SDLCarModeStatus.m */, + 5D61FA721A84238A00846EE7 /* SDLCharacterSet.h */, + 5D61FA731A84238A00846EE7 /* SDLCharacterSet.m */, + 5D61FA781A84238A00846EE7 /* SDLCompassDirection.h */, + 5D61FA791A84238A00846EE7 /* SDLCompassDirection.m */, + 5D61FA7A1A84238A00846EE7 /* SDLComponentVolumeStatus.h */, + 5D61FA7B1A84238A00846EE7 /* SDLComponentVolumeStatus.m */, + 5D61FA971A84238A00846EE7 /* SDLDeviceLevelStatus.h */, + 5D61FA981A84238A00846EE7 /* SDLDeviceLevelStatus.m */, + 5D61FAA11A84238A00846EE7 /* SDLDimension.h */, + 5D61FAA21A84238A00846EE7 /* SDLDimension.m */, + 5D61FAA51A84238A00846EE7 /* SDLDisplayType.h */, + 5D61FAA61A84238A00846EE7 /* SDLDisplayType.m */, + 5D61FAA71A84238A00846EE7 /* SDLDriverDistractionState.h */, + 5D61FAA81A84238A00846EE7 /* SDLDriverDistractionState.m */, + 5D61FAA91A84238A00846EE7 /* SDLECallConfirmationStatus.h */, + 5D61FAAA1A84238A00846EE7 /* SDLECallConfirmationStatus.m */, + 5D61FAAF1A84238A00846EE7 /* SDLEmergencyEventType.h */, + 5D61FAB01A84238A00846EE7 /* SDLEmergencyEventType.m */, + 5D61FABC1A84238A00846EE7 /* SDLFileType.h */, + 5D61FABD1A84238A00846EE7 /* SDLFileType.m */, + 5D61FABE1A84238A00846EE7 /* SDLFuelCutoffStatus.h */, + 5D61FABF1A84238A00846EE7 /* SDLFuelCutoffStatus.m */, + 5D61FACC1A84238A00846EE7 /* SDLGlobalProperty.h */, + 5D61FACD1A84238A00846EE7 /* SDLGlobalProperty.m */, + 5D61FAD41A84238A00846EE7 /* SDLHMILevel.h */, + 5D61FAD51A84238A00846EE7 /* SDLHMILevel.m */, + 5D61FAD81A84238A00846EE7 /* SDLHMIZoneCapabilities.h */, + 5D61FAD91A84238A00846EE7 /* SDLHMIZoneCapabilities.m */, + 5D61FADC1A84238A00846EE7 /* SDLIgnitionStableStatus.h */, + 5D61FADD1A84238A00846EE7 /* SDLIgnitionStableStatus.m */, + 5D61FADE1A84238A00846EE7 /* SDLIgnitionStatus.h */, + 5D61FADF1A84238A00846EE7 /* SDLIgnitionStatus.m */, + 5D61FAE41A84238A00846EE7 /* SDLImageFieldName.h */, + 5D61FAE51A84238A00846EE7 /* SDLImageFieldName.m */, + 5D61FAE81A84238A00846EE7 /* SDLImageType.h */, + 5D61FAE91A84238A00846EE7 /* SDLImageType.m */, + 5D61FAEA1A84238A00846EE7 /* SDLInteractionMode.h */, + 5D61FAEB1A84238A00846EE7 /* SDLInteractionMode.m */, + 5D61FAF31A84238A00846EE7 /* SDLKeyboardEvent.h */, + 5D61FAF41A84238A00846EE7 /* SDLKeyboardEvent.m */, + 5D61FAF51A84238A00846EE7 /* SDLKeyboardLayout.h */, + 5D61FAF61A84238A00846EE7 /* SDLKeyboardLayout.m */, + 5D61FAF91A84238A00846EE7 /* SDLKeypressMode.h */, + 5D61FAFA1A84238A00846EE7 /* SDLKeypressMode.m */, + 5D61FAFB1A84238A00846EE7 /* SDLLanguage.h */, + 5D61FAFC1A84238A00846EE7 /* SDLLanguage.m */, + 5D61FAFD1A84238A00846EE7 /* SDLLayoutMode.h */, + 5D61FAFE1A84238A00846EE7 /* SDLLayoutMode.m */, + 5D61FB051A84238A00846EE7 /* SDLLockScreenStatus.h */, + 5D61FB061A84238A00846EE7 /* SDLLockScreenStatus.m */, + 5D61FB071A84238A00846EE7 /* SDLMaintenanceModeStatus.h */, + 5D61FB081A84238A00846EE7 /* SDLMaintenanceModeStatus.m */, + 5D61FB091A84238A00846EE7 /* SDLMediaClockFormat.h */, + 5D61FB0A1A84238A00846EE7 /* SDLMediaClockFormat.m */, + 5D61FB421A84238B00846EE7 /* SDLPermissionStatus.h */, + 5D61FB431A84238B00846EE7 /* SDLPermissionStatus.m */, + 5D61FB461A84238B00846EE7 /* SDLPowerModeQualificationStatus.h */, + 5D61FB471A84238B00846EE7 /* SDLPowerModeQualificationStatus.m */, + 5D61FB481A84238B00846EE7 /* SDLPowerModeStatus.h */, + 5D61FB491A84238B00846EE7 /* SDLPowerModeStatus.m */, + 5D61FB4A1A84238B00846EE7 /* SDLPredefinedLayout.h */, + 5D61FB4B1A84238B00846EE7 /* SDLPredefinedLayout.m */, + 5D61FB4C1A84238B00846EE7 /* SDLPrerecordedSpeech.h */, + 5D61FB4D1A84238B00846EE7 /* SDLPrerecordedSpeech.m */, + 5D61FB501A84238B00846EE7 /* SDLPrimaryAudioSource.h */, + 5D61FB511A84238B00846EE7 /* SDLPrimaryAudioSource.m */, + 5D61FB541A84238B00846EE7 /* SDLPRNDL.h */, + 5D61FB551A84238B00846EE7 /* SDLPRNDL.m */, + 5D61FB741A84238B00846EE7 /* SDLRequestType.h */, + 5D61FB751A84238B00846EE7 /* SDLRequestType.m */, + 5D61FB7A1A84238B00846EE7 /* SDLResult.h */, + 5D61FB7B1A84238B00846EE7 /* SDLResult.m */, + 5D61FB7E1A84238B00846EE7 /* SDLRPCMessageType.h */, + 5D61FB8A1A84238B00846EE7 /* SDLSamplingRate.h */, + 5D61FB8B1A84238B00846EE7 /* SDLSamplingRate.m */, + 5D61FBB61A84238B00846EE7 /* SDLSoftButtonType.h */, + 5D61FBB71A84238B00846EE7 /* SDLSoftButtonType.m */, + 5D61FBBC1A84238B00846EE7 /* SDLSpeechCapabilities.h */, + 5D61FBBD1A84238B00846EE7 /* SDLSpeechCapabilities.m */, + 5D61FBCE1A84238B00846EE7 /* SDLSystemAction.h */, + 5D61FBCF1A84238B00846EE7 /* SDLSystemAction.m */, + 5D61FBD01A84238B00846EE7 /* SDLSystemContext.h */, + 5D61FBD11A84238B00846EE7 /* SDLSystemContext.m */, + 5D61FBD61A84238B00846EE7 /* SDLTBTState.h */, + 5D61FBD71A84238B00846EE7 /* SDLTBTState.m */, + 5D61FBDA1A84238B00846EE7 /* SDLTextAlignment.h */, + 5D61FBDB1A84238C00846EE7 /* SDLTextAlignment.m */, + 5D61FBDE1A84238C00846EE7 /* SDLTextFieldName.h */, + 5D61FBDF1A84238C00846EE7 /* SDLTextFieldName.m */, + 5D61FBE01A84238C00846EE7 /* SDLTimerMode.h */, + 5D61FBE11A84238C00846EE7 /* SDLTimerMode.m */, + 5D61FBEA1A84238C00846EE7 /* SDLTouchType.h */, + 5D61FBEB1A84238C00846EE7 /* SDLTouchType.m */, + 5D61FBEE1A84238C00846EE7 /* SDLTriggerSource.h */, + 5D61FBEF1A84238C00846EE7 /* SDLTriggerSource.m */, + 5D61FC021A84238C00846EE7 /* SDLUpdateMode.h */, + 5D61FC031A84238C00846EE7 /* SDLUpdateMode.m */, + 5D61FC101A84238C00846EE7 /* SDLVehicleDataActiveStatus.h */, + 5D61FC111A84238C00846EE7 /* SDLVehicleDataActiveStatus.m */, + 5D61FC121A84238C00846EE7 /* SDLVehicleDataEventStatus.h */, + 5D61FC131A84238C00846EE7 /* SDLVehicleDataEventStatus.m */, + 5D61FC141A84238C00846EE7 /* SDLVehicleDataNotificationStatus.h */, + 5D61FC151A84238C00846EE7 /* SDLVehicleDataNotificationStatus.m */, + 5D61FC181A84238C00846EE7 /* SDLVehicleDataResultCode.h */, + 5D61FC191A84238C00846EE7 /* SDLVehicleDataResultCode.m */, + 5D61FC1A1A84238C00846EE7 /* SDLVehicleDataStatus.h */, + 5D61FC1B1A84238C00846EE7 /* SDLVehicleDataStatus.m */, + 5D61FC1C1A84238C00846EE7 /* SDLVehicleDataType.h */, + 5D61FC1D1A84238C00846EE7 /* SDLVehicleDataType.m */, + 5D61FC201A84238C00846EE7 /* SDLVRCapabilities.h */, + 5D61FC211A84238C00846EE7 /* SDLVRCapabilities.m */, + 5D61FC241A84238C00846EE7 /* SDLWarningLightStatus.h */, + 5D61FC251A84238C00846EE7 /* SDLWarningLightStatus.m */, + 5D61FC261A84238C00846EE7 /* SDLWiperStatus.h */, + 5D61FC271A84238C00846EE7 /* SDLWiperStatus.m */, + ); + name = Enums; + sourceTree = ""; + }; + 5D5934F51A8516C800687FB9 /* Debug */ = { + isa = PBXGroup; + children = ( + 5DE372A71ACC35C100849FAA /* @protocols */, + 5D61FA7C1A84238A00846EE7 /* SDLConsoleController.h */, + 5D61FA7D1A84238A00846EE7 /* SDLConsoleController.m */, + 5D61FA821A84238A00846EE7 /* SDLDebugTool.h */, + 5D61FA831A84238A00846EE7 /* SDLDebugTool.m */, + 5D61FBAC1A84238B00846EE7 /* SDLSiphonServer.h */, + 5D61FBAD1A84238B00846EE7 /* SDLSiphonServer.m */, + ); + name = Debug; + sourceTree = ""; + }; + 5D5934F61A85189500687FB9 /* Utilities */ = { + isa = PBXGroup; + children = ( + 5DCC199D1B8221D2004FFAD9 /* HTTP Connection */, + E9C32B831AB20B2900F283AF /* @categories */, + 5D5934F71A8519A700687FB9 /* JSON */, + 5D5934F91A851A8000687FB9 /* Prioritized Objects */, + 5D61FAD21A84238A00846EE7 /* SDLHexUtility.h */, + 5D61FAD31A84238A00846EE7 /* SDLHexUtility.m */, + 5D61FAED1A84238A00846EE7 /* SDLJingle.h */, + 5D61FAEE1A84238A00846EE7 /* SDLJingle.m */, + E9C32B8E1AB20BA200F283AF /* SDLTimer.h */, + E9C32B8F1AB20BA200F283AF /* SDLTimer.m */, + 5D61FB0F1A84238A00846EE7 /* SDLNames.h */, + 5D535DC31B72473800CF7760 /* SDLGlobals.h */, + 5D535DC41B72473800CF7760 /* SDLGlobals.m */, + ); + name = Utilities; + sourceTree = ""; + }; + 5D5934F71A8519A700687FB9 /* JSON */ = { + isa = PBXGroup; + children = ( + 5D5934FD1A851B1500687FB9 /* @protocols */, + 5D61FAEF1A84238A00846EE7 /* SDLJsonDecoder.h */, + 5D61FAF01A84238A00846EE7 /* SDLJsonDecoder.m */, + 5D61FAF11A84238A00846EE7 /* SDLJsonEncoder.h */, + 5D61FAF21A84238A00846EE7 /* SDLJsonEncoder.m */, + ); + name = JSON; + sourceTree = ""; + }; + 5D5934F81A8519C300687FB9 /* Notification */ = { + isa = PBXGroup; + children = ( + 5D61FB121A84238B00846EE7 /* SDLOnAppInterfaceUnregistered.h */, + 5D61FB131A84238B00846EE7 /* SDLOnAppInterfaceUnregistered.m */, + 5D61FB141A84238B00846EE7 /* SDLOnAudioPassThru.h */, + 5D61FB151A84238B00846EE7 /* SDLOnAudioPassThru.m */, + 5D61FB161A84238B00846EE7 /* SDLOnButtonEvent.h */, + 5D61FB171A84238B00846EE7 /* SDLOnButtonEvent.m */, + 5D61FB181A84238B00846EE7 /* SDLOnButtonPress.h */, + 5D61FB191A84238B00846EE7 /* SDLOnButtonPress.m */, + 5D61FB1A1A84238B00846EE7 /* SDLOnCommand.h */, + 5D61FB1B1A84238B00846EE7 /* SDLOnCommand.m */, + 5D61FB1C1A84238B00846EE7 /* SDLOnDriverDistraction.h */, + 5D61FB1D1A84238B00846EE7 /* SDLOnDriverDistraction.m */, + 5D61FB1E1A84238B00846EE7 /* SDLOnEncodedSyncPData.h */, + 5D61FB1F1A84238B00846EE7 /* SDLOnEncodedSyncPData.m */, + 5D61FB201A84238B00846EE7 /* SDLOnHashChange.h */, + 5D61FB211A84238B00846EE7 /* SDLOnHashChange.m */, + 5D61FB221A84238B00846EE7 /* SDLOnHMIStatus.h */, + 5D61FB231A84238B00846EE7 /* SDLOnHMIStatus.m */, + 5D61FB241A84238B00846EE7 /* SDLOnKeyboardInput.h */, + 5D61FB251A84238B00846EE7 /* SDLOnKeyboardInput.m */, + 5D61FB261A84238B00846EE7 /* SDLOnLanguageChange.h */, + 5D61FB271A84238B00846EE7 /* SDLOnLanguageChange.m */, + 5D61FB281A84238B00846EE7 /* SDLOnLockScreenStatus.h */, + 5D61FB291A84238B00846EE7 /* SDLOnLockScreenStatus.m */, + 5D61FB2A1A84238B00846EE7 /* SDLOnPermissionsChange.h */, + 5D61FB2B1A84238B00846EE7 /* SDLOnPermissionsChange.m */, + 5D61FB2C1A84238B00846EE7 /* SDLOnSyncPData.h */, + 5D61FB2D1A84238B00846EE7 /* SDLOnSyncPData.m */, + 5D61FB2E1A84238B00846EE7 /* SDLOnSystemRequest.h */, + 5D61FB2F1A84238B00846EE7 /* SDLOnSystemRequest.m */, + 5D61FB301A84238B00846EE7 /* SDLOnTBTClientState.h */, + 5D61FB311A84238B00846EE7 /* SDLOnTBTClientState.m */, + 5D61FB321A84238B00846EE7 /* SDLOnTouchEvent.h */, + 5D61FB331A84238B00846EE7 /* SDLOnTouchEvent.m */, + 5D61FB341A84238B00846EE7 /* SDLOnVehicleData.h */, + 5D61FB351A84238B00846EE7 /* SDLOnVehicleData.m */, + ); + name = Notification; + sourceTree = ""; + }; + 5D5934F91A851A8000687FB9 /* Prioritized Objects */ = { + isa = PBXGroup; + children = ( + 5D61FB101A84238A00846EE7 /* SDLObjectWithPriority.h */, + 5D61FB111A84238A00846EE7 /* SDLObjectWithPriority.m */, + 5D61FB521A84238B00846EE7 /* SDLPrioritizedObjectCollection.h */, + 5D61FB531A84238B00846EE7 /* SDLPrioritizedObjectCollection.m */, + ); + name = "Prioritized Objects"; + sourceTree = ""; + }; + 5D5934FA1A851AC900687FB9 /* @protocols */ = { + isa = PBXGroup; + children = ( + 5D61FB5A1A84238B00846EE7 /* SDLProtocolListener.h */, + ); + name = "@protocols"; + sourceTree = ""; + }; + 5D5934FD1A851B1500687FB9 /* @protocols */ = { + isa = PBXGroup; + children = ( + 5D61FA841A84238A00846EE7 /* SDLDecoder.h */, + 5D61FAB51A84238A00846EE7 /* SDLEncoder.h */, + ); + name = "@protocols"; + sourceTree = ""; + }; + 5D5934FE1A851B2500687FB9 /* @protocols */ = { + isa = PBXGroup; + children = ( + 5D61FB671A84238B00846EE7 /* SDLProxyListener.h */, + ); + name = "@protocols"; + sourceTree = ""; + }; + 5D5934FF1A851B8400687FB9 /* Superclasses */ = { + isa = PBXGroup; + children = ( + 5D61FABA1A84238A00846EE7 /* SDLEnum.h */, + 5D61FABB1A84238A00846EE7 /* SDLEnum.m */, + 5DB92D301AC9C8BA00C15BB0 /* SDLRPCStruct.h */, + 5DB92D311AC9C8BA00C15BB0 /* SDLRPCStruct.m */, + 5D61FB7C1A84238B00846EE7 /* SDLRPCMessage.h */, + 5D61FB7D1A84238B00846EE7 /* SDLRPCMessage.m */, + 5D61FB801A84238B00846EE7 /* SDLRPCNotification.h */, + 5D61FB811A84238B00846EE7 /* SDLRPCNotification.m */, + 5D61FB841A84238B00846EE7 /* SDLRPCRequest.h */, + 5D61FB851A84238B00846EE7 /* SDLRPCRequest.m */, + 5D61FB881A84238B00846EE7 /* SDLRPCResponse.h */, + 5D61FB891A84238B00846EE7 /* SDLRPCResponse.m */, + ); + name = Superclasses; + sourceTree = ""; + }; + 5D5935001A851D0B00687FB9 /* @protocols */ = { + isa = PBXGroup; + children = ( + 5D61FBED1A84238C00846EE7 /* SDLTransportDelegate.h */, + ); + name = "@protocols"; + sourceTree = ""; + }; + 5D5935011A851D7E00687FB9 /* Header */ = { + isa = PBXGroup; + children = ( + 5D61FB581A84238B00846EE7 /* SDLProtocolHeader.h */, + 5D61FB591A84238B00846EE7 /* SDLProtocolHeader.m */, + 5D61FC081A84238C00846EE7 /* SDLV1ProtocolHeader.h */, + 5D61FC091A84238C00846EE7 /* SDLV1ProtocolHeader.m */, + 5D61FC0C1A84238C00846EE7 /* SDLV2ProtocolHeader.h */, + 5D61FC0D1A84238C00846EE7 /* SDLV2ProtocolHeader.m */, + ); + name = Header; + sourceTree = ""; + }; + 5D5935021A851D8700687FB9 /* Message */ = { + isa = PBXGroup; + children = ( + 5D61FB5B1A84238B00846EE7 /* SDLProtocolMessage.h */, + 5D61FB5C1A84238B00846EE7 /* SDLProtocolMessage.m */, + 5D61FC0A1A84238C00846EE7 /* SDLV1ProtocolMessage.h */, + 5D61FC0B1A84238C00846EE7 /* SDLV1ProtocolMessage.m */, + 5D61FC0E1A84238C00846EE7 /* SDLV2ProtocolMessage.h */, + 5D61FC0F1A84238C00846EE7 /* SDLV2ProtocolMessage.m */, + ); + name = Message; + sourceTree = ""; + }; + 5D5935031A851E1100687FB9 /* Factories */ = { + isa = PBXGroup; + children = ( + 5D61FB861A84238B00846EE7 /* SDLRPCRequestFactory.h */, + 5D61FB871A84238B00846EE7 /* SDLRPCRequestFactory.m */, + ); + name = Factories; + sourceTree = ""; + }; + 5D5935041A851E1A00687FB9 /* Payload */ = { + isa = PBXGroup; + children = ( + 5D61FB821A84238B00846EE7 /* SDLRPCPayload.h */, + 5D61FB831A84238B00846EE7 /* SDLRPCPayload.m */, + ); + name = Payload; + sourceTree = ""; + }; + 5D59DD451B14FDD000BE744D /* ProxySpecs */ = { + isa = PBXGroup; + children = ( + 5D59DD461B14FDEE00BE744D /* SDLLockScreenManagerSpec.m */, + ); + name = ProxySpecs; + sourceTree = ""; + }; + 5D61FA1D1A84237100846EE7 /* SmartDeviceLink */ = { + isa = PBXGroup; + children = ( + 5D5934F61A85189500687FB9 /* Utilities */, + 5D5934F51A8516C800687FB9 /* Debug */, + 5D5934F01A85161A00687FB9 /* Transport */, + 5D5934EF1A85160F00687FB9 /* RPCs */, + 5D5934EE1A85160900687FB9 /* Protocol */, + 5D5934ED1A85160400687FB9 /* Proxy */, + 5D61FA201A84237100846EE7 /* SmartDeviceLink.h */, + 5D3759BC1CE12E810088C60E /* CHANGELOG.md */, + 5D3759BD1CE12E810088C60E /* DEPENDENCIES.md */, + 5D3759BE1CE12E810088C60E /* LICENSE */, + 5D3759BF1CE12E810088C60E /* README.md */, + 5D3759C01CE12E810088C60E /* SmartDeviceLink-iOS.podspec */, + 5D61FA1E1A84237100846EE7 /* Supporting Files */, + ); + path = SmartDeviceLink; + sourceTree = ""; + }; + 5D61FA1E1A84237100846EE7 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 5D61FA1F1A84237100846EE7 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 5D61FA2C1A84237100846EE7 /* SmartDeviceLinkTests */ = { + isa = PBXGroup; + children = ( + 5D59DD451B14FDD000BE744D /* ProxySpecs */, + 5DB92D201AC47AC400C15BB0 /* UtilitiesSpecs */, + 1680B1041A9CD7AD00DBD79E /* ProtocolSpecs */, + 162E81E01A9BDE8A00906325 /* RPCSpecs */, + 5D61FA2D1A84237100846EE7 /* Supporting Files */, + 167ED9451A9BCE5D00797BE5 /* SwiftSpec.swift */, + ); + path = SmartDeviceLinkTests; + sourceTree = ""; + }; + 5D61FA2D1A84237100846EE7 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 5D61FA2E1A84237100846EE7 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 5DB92D201AC47AC400C15BB0 /* UtilitiesSpecs */ = { + isa = PBXGroup; + children = ( + 5DEE55BE1B8509A5004F0D0F /* HTTP Connection */, + 5DB92D2B1AC4A32A00C15BB0 /* Prioritized Objects */, + 5DB92D231AC47B2C00C15BB0 /* SDLHexUtilitySpec.m */, + 5DB92D251AC4836F00C15BB0 /* SDLJingleSpec.m */, + 5DC978251B7A38640012C2F1 /* SDLGlobalsSpec.m */, + ); + name = UtilitiesSpecs; + sourceTree = ""; + }; + 5DB92D2B1AC4A32A00C15BB0 /* Prioritized Objects */ = { + isa = PBXGroup; + children = ( + 5DB92D2C1AC4A34F00C15BB0 /* SDLPrioritizedObjectCollectionSpec.m */, + 5DB92D2E1AC59F0000C15BB0 /* SDLObjectWithPrioritySpec.m */, + ); + name = "Prioritized Objects"; + sourceTree = ""; + }; + 5DCC199D1B8221D2004FFAD9 /* HTTP Connection */ = { + isa = PBXGroup; + children = ( + 5DCC199E1B8221F3004FFAD9 /* SDLURLSession.h */, + 5DCC199F1B8221F3004FFAD9 /* SDLURLSession.m */, + 5DCC19A21B822804004FFAD9 /* SDLURLRequestTask.h */, + 5DCC19A31B822804004FFAD9 /* SDLURLRequestTask.m */, + ); + name = "HTTP Connection"; + sourceTree = ""; + }; + 5DE372A71ACC35C100849FAA /* @protocols */ = { + isa = PBXGroup; + children = ( + 5DE372A51ACC35B400849FAA /* SDLDebugToolConsole.h */, + ); + name = "@protocols"; + sourceTree = ""; + }; + 5DEE55BE1B8509A5004F0D0F /* HTTP Connection */ = { + isa = PBXGroup; + children = ( + 5DEE55BF1B8509CB004F0D0F /* SDLURLRequestTaskSpec.m */, + 5DF2BB9C1B94E38A00CE5994 /* SDLURLSessionSpec.m */, + ); + name = "HTTP Connection"; + sourceTree = ""; + }; + E9C32B831AB20B2900F283AF /* @categories */ = { + isa = PBXGroup; + children = ( + E9C32B981AB20C5900F283AF /* EAAccessory+SDLProtocols.h */, + E9C32B991AB20C5900F283AF /* EAAccessory+SDLProtocols.m */, + E9C32B9A1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.h */, + E9C32B9B1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.m */, + E9C32B841AB20B4300F283AF /* NSThread+ThreadIndex.h */, + E9C32B851AB20B4300F283AF /* NSThread+ThreadIndex.m */, + ); + name = "@categories"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 5D61FA191A84237100846EE7 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 5DE5ABB71B0E38C90067BB02 /* SDLSystemRequest.h in Headers */, + E9C32B931AB20BA200F283AF /* SDLIAPSessionDelegate.h in Headers */, + 5DE5ABB81B0E38C90067BB02 /* SDLSystemRequestResponse.h in Headers */, + 5D61FCA51A84238C00846EE7 /* SDLEndAudioPassThruResponse.h in Headers */, + 5D61FD851A84238C00846EE7 /* SDLSetDisplayLayoutResponse.h in Headers */, + 5D61FD751A84238C00846EE7 /* SDLRPCResponse.h in Headers */, + 5D61FC901A84238C00846EE7 /* SDLDisplayCapabilities.h in Headers */, + 5D61FCE81A84238C00846EE7 /* SDLLanguage.h in Headers */, + 5D61FC841A84238C00846EE7 /* SDLDeviceLevelStatus.h in Headers */, + 5DB92D321AC9C8BA00C15BB0 /* SDLRPCStruct.h in Headers */, + 5D61FD151A84238C00846EE7 /* SDLOnLockScreenStatus.h in Headers */, + 5D61FD291A84238C00846EE7 /* SDLPerformInteraction.h in Headers */, + 5D61FD521A84238C00846EE7 /* SDLProxyFactory.h in Headers */, + 5D61FCDA1A84238C00846EE7 /* SDLJingle.h in Headers */, + 5D61FE0D1A84238C00846EE7 /* SDLVRCapabilities.h in Headers */, + 5D61FC531A84238C00846EE7 /* SDLButtonEventMode.h in Headers */, + 5D61FC781A84238C00846EE7 /* SDLDeleteFileResponse.h in Headers */, + 5D61FC5F1A84238C00846EE7 /* SDLCharacterSet.h in Headers */, + 5D61FCFF1A84238C00846EE7 /* SDLOnAppInterfaceUnregistered.h in Headers */, + 5D61FDC51A84238C00846EE7 /* SDLTCPTransport.h in Headers */, + 5D61FCF61A84238C00846EE7 /* SDLMediaClockFormat.h in Headers */, + 5D61FD831A84238C00846EE7 /* SDLSetDisplayLayout.h in Headers */, + 5D61FCC91A84238C00846EE7 /* SDLIgnitionStableStatus.h in Headers */, + E9C32B941AB20BA200F283AF /* SDLStreamDelegate.h in Headers */, + 5D61FDBB1A84238C00846EE7 /* SDLSystemAction.h in Headers */, + 5D61FC9C1A84238C00846EE7 /* SDLEmergencyEventType.h in Headers */, + 5D61FD131A84238C00846EE7 /* SDLOnLanguageChange.h in Headers */, + 5D61FDE71A84238C00846EE7 /* SDLUnsubscribeButton.h in Headers */, + 5D61FC691A84238C00846EE7 /* SDLConsoleController.h in Headers */, + 5D61FCAB1A84238C00846EE7 /* SDLFuelCutoffStatus.h in Headers */, + E9C32B911AB20BA200F283AF /* SDLIAPSession.h in Headers */, + 5D61FCD71A84238C00846EE7 /* SDLInteractionMode.h in Headers */, + 5D61FC391A84238C00846EE7 /* SDLAlertManeuver.h in Headers */, + 5D61FC861A84238C00846EE7 /* SDLDeviceStatus.h in Headers */, + 5D61FCC71A84238C00846EE7 /* SDLIAPTransport.h in Headers */, + 5D61FC6D1A84238C00846EE7 /* SDLCreateInteractionChoiceSetResponse.h in Headers */, + 5D61FE111A84238C00846EE7 /* SDLWarningLightStatus.h in Headers */, + 5D61FC7A1A84238C00846EE7 /* SDLDeleteInteractionChoiceSet.h in Headers */, + 5D61FC3B1A84238C00846EE7 /* SDLAlertManeuverResponse.h in Headers */, + 5D61FC6F1A84238C00846EE7 /* SDLDebugTool.h in Headers */, + 5D61FDB71A84238C00846EE7 /* SDLSyncPData.h in Headers */, + 5D61FD011A84238C00846EE7 /* SDLOnAudioPassThru.h in Headers */, + 5D61FDCB1A84238C00846EE7 /* SDLTextFieldName.h in Headers */, + 5D61FD8B1A84238C00846EE7 /* SDLSetMediaClockTimer.h in Headers */, + 5D61FD031A84238C00846EE7 /* SDLOnButtonEvent.h in Headers */, + 5D61FDAF1A84238C00846EE7 /* SDLSubscribeButtonResponse.h in Headers */, + 5D61FCB51A84238C00846EE7 /* SDLGetVehicleData.h in Headers */, + 5D61FDEB1A84238C00846EE7 /* SDLUnsubscribeVehicleData.h in Headers */, + 5D61FC591A84238C00846EE7 /* SDLCarModeStatus.h in Headers */, + 5D61FC2B1A84238C00846EE7 /* SDLAbstractTransport.h in Headers */, + 5D61FD791A84238C00846EE7 /* SDLScreenParams.h in Headers */, + 5D61FDCF1A84238C00846EE7 /* SDLTireStatus.h in Headers */, + 5D61FDFD1A84238C00846EE7 /* SDLVehicleDataActiveStatus.h in Headers */, + 5D61FD811A84238C00846EE7 /* SDLSetAppIconResponse.h in Headers */, + 5D61FC551A84238C00846EE7 /* SDLButtonName.h in Headers */, + 5D61FD9F1A84238C00846EE7 /* SDLSoftButton.h in Headers */, + 5D61FD551A84238C00846EE7 /* SDLPutFile.h in Headers */, + 5DE372A61ACC35B400849FAA /* SDLDebugToolConsole.h in Headers */, + 5D61FD091A84238C00846EE7 /* SDLOnDriverDistraction.h in Headers */, + E9C32B9E1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.h in Headers */, + 5D61FC4B1A84238C00846EE7 /* SDLBeltStatus.h in Headers */, + 5D61FC351A84238C00846EE7 /* SDLAirbagStatus.h in Headers */, + 5D61FC8A1A84238C00846EE7 /* SDLDiagnosticMessageResponse.h in Headers */, + 5D61FC2D1A84238C00846EE7 /* SDLAddCommand.h in Headers */, + 5D61FD931A84238C00846EE7 /* SDLShowConstantTBTResponse.h in Headers */, + 5D61FCCB1A84238C00846EE7 /* SDLIgnitionStatus.h in Headers */, + 5D61FCB71A84238C00846EE7 /* SDLGetVehicleDataResponse.h in Headers */, + 5D61FDA91A84238C00846EE7 /* SDLSpeechCapabilities.h in Headers */, + 5D61FCE01A84238C00846EE7 /* SDLKeyboardEvent.h in Headers */, + 5D61FCEA1A84238C00846EE7 /* SDLLayoutMode.h in Headers */, + 5D61FD7F1A84238C00846EE7 /* SDLSetAppIcon.h in Headers */, + 5D61FDD11A84238C00846EE7 /* SDLTouchCoord.h in Headers */, + 5D61FC7E1A84238C00846EE7 /* SDLDeleteSubMenu.h in Headers */, + 5D61FC451A84238C00846EE7 /* SDLAudioPassThruCapabilities.h in Headers */, + 5D61FDC71A84238C00846EE7 /* SDLTextAlignment.h in Headers */, + 5D61FD051A84238C00846EE7 /* SDLOnButtonPress.h in Headers */, + 5D61FCC51A84238C00846EE7 /* SDLHMIZoneCapabilities.h in Headers */, + 5D61FCAF1A84238C00846EE7 /* SDLGenericResponse.h in Headers */, + 5D61FC4F1A84238C00846EE7 /* SDLBodyInformation.h in Headers */, + 5D61FDAB1A84238C00846EE7 /* SDLStartTime.h in Headers */, + 5D61FD071A84238C00846EE7 /* SDLOnCommand.h in Headers */, + 5D61FD1D1A84238C00846EE7 /* SDLOnTBTClientState.h in Headers */, + 5D61FD9D1A84238C00846EE7 /* SDLSliderResponse.h in Headers */, + 5D61FDF31A84238C00846EE7 /* SDLUpdateTurnListResponse.h in Headers */, + 5D61FDDA1A84238C00846EE7 /* SDLTransportDelegate.h in Headers */, + 5D61FC411A84238C00846EE7 /* SDLAppHMIType.h in Headers */, + 5D61FCEE1A84238C00846EE7 /* SDLListFilesResponse.h in Headers */, + 5D61FC491A84238C00846EE7 /* SDLAudioType.h in Headers */, + 5D61FC761A84238C00846EE7 /* SDLDeleteFile.h in Headers */, + 5D61FD211A84238C00846EE7 /* SDLOnVehicleData.h in Headers */, + 5D61FD7D1A84238C00846EE7 /* SDLScrollableMessageResponse.h in Headers */, + 5D61FD431A84238C00846EE7 /* SDLProtocol.h in Headers */, + 5D8B17531AC9E11B006A6E1C /* SDLDialNumberResponse.h in Headers */, + 5D61FC921A84238C00846EE7 /* SDLDisplayType.h in Headers */, + 5D61FD0D1A84238C00846EE7 /* SDLOnHashChange.h in Headers */, + 5D61FDDF1A84238C00846EE7 /* SDLTTSChunkFactory.h in Headers */, + 5D61FC6B1A84238C00846EE7 /* SDLCreateInteractionChoiceSet.h in Headers */, + 5D61FCE61A84238C00846EE7 /* SDLKeypressMode.h in Headers */, + 5D61FD871A84238C00846EE7 /* SDLSetGlobalProperties.h in Headers */, + E9C32B861AB20B4300F283AF /* NSThread+ThreadIndex.h in Headers */, + 5D61FC741A84238C00846EE7 /* SDLDeleteCommandResponse.h in Headers */, + 5D61FDF11A84238C00846EE7 /* SDLUpdateTurnList.h in Headers */, + 5D61FD671A84238C00846EE7 /* SDLResult.h in Headers */, + 5D61FD351A84238C00846EE7 /* SDLPowerModeStatus.h in Headers */, + 5D61FD971A84238C00846EE7 /* SDLSingleTireStatus.h in Headers */, + 5D61FCE21A84238C00846EE7 /* SDLKeyboardLayout.h in Headers */, + 5D61FD891A84238C00846EE7 /* SDLSetGlobalPropertiesResponse.h in Headers */, + 5D61FD8D1A84238C00846EE7 /* SDLSetMediaClockTimerResponse.h in Headers */, + 5D61FD3B1A84238C00846EE7 /* SDLPresetBankCapabilities.h in Headers */, + 5D53C46D1B7A99B9003526EA /* SDLStreamingMediaManager.h in Headers */, + 5D61FD0F1A84238C00846EE7 /* SDLOnHMIStatus.h in Headers */, + 5D61FD5F1A84238C00846EE7 /* SDLRegisterAppInterfaceResponse.h in Headers */, + 5D61FD191A84238C00846EE7 /* SDLOnSyncPData.h in Headers */, + 5D61FE091A84238C00846EE7 /* SDLVehicleDataType.h in Headers */, + 5DCC19A01B8221F3004FFAD9 /* SDLURLSession.h in Headers */, + 5D61FDB11A84238C00846EE7 /* SDLSubscribeVehicleData.h in Headers */, + 5DCF76F51ACDBAD300BB647B /* SDLSendLocation.h in Headers */, + 5D61FC9E1A84238C00846EE7 /* SDLEncodedSyncPData.h in Headers */, + 5D61FC291A84238C00846EE7 /* SDLAbstractProtocol.h in Headers */, + 5D61FDE11A84238C00846EE7 /* SDLTurn.h in Headers */, + 5D61FC801A84238C00846EE7 /* SDLDeleteSubMenuResponse.h in Headers */, + 5D61FDBD1A84238C00846EE7 /* SDLSystemContext.h in Headers */, + 5D61FC511A84238C00846EE7 /* SDLButtonCapabilities.h in Headers */, + 5D61FDE91A84238C00846EE7 /* SDLUnsubscribeButtonResponse.h in Headers */, + 5D61FCD51A84238C00846EE7 /* SDLImageType.h in Headers */, + 5D61FC2F1A84238C00846EE7 /* SDLAddCommandResponse.h in Headers */, + 5D61FD631A84238C00846EE7 /* SDLResetGlobalProperties.h in Headers */, + 5D61FDD71A84238C00846EE7 /* SDLTouchType.h in Headers */, + 5D61FDD31A84238C00846EE7 /* SDLTouchEvent.h in Headers */, + 5D61FD451A84238C00846EE7 /* SDLProtocolHeader.h in Headers */, + 5D61FCFA1A84238C00846EE7 /* SDLMyKey.h in Headers */, + 5D61FC981A84238C00846EE7 /* SDLECallInfo.h in Headers */, + 5D61FD7B1A84238C00846EE7 /* SDLScrollableMessage.h in Headers */, + 5D61FD3D1A84238C00846EE7 /* SDLPrimaryAudioSource.h in Headers */, + 5D61FCCD1A84238C00846EE7 /* SDLImage.h in Headers */, + 5D61FD481A84238C00846EE7 /* SDLProtocolMessage.h in Headers */, + 5D61FC8C1A84238C00846EE7 /* SDLDIDResult.h in Headers */, + 5D61FD1F1A84238C00846EE7 /* SDLOnTouchEvent.h in Headers */, + 5D61FCB31A84238C00846EE7 /* SDLGetDTCsResponse.h in Headers */, + 5D61FC4D1A84238C00846EE7 /* SDLBitsPerSample.h in Headers */, + 5D61FD9B1A84238C00846EE7 /* SDLSlider.h in Headers */, + 5D61FD111A84238C00846EE7 /* SDLOnKeyboardInput.h in Headers */, + 5D61FC941A84238C00846EE7 /* SDLDriverDistractionState.h in Headers */, + 5D61FD571A84238C00846EE7 /* SDLPutFileResponse.h in Headers */, + 5D61FD411A84238C00846EE7 /* SDLPRNDL.h in Headers */, + 5D61FDE51A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.h in Headers */, + 5D61FCF81A84238C00846EE7 /* SDLMenuParams.h in Headers */, + 5D61FD651A84238C00846EE7 /* SDLResetGlobalPropertiesResponse.h in Headers */, + 5D61FD611A84238C00846EE7 /* SDLRequestType.h in Headers */, + 5D61FCEC1A84238C00846EE7 /* SDLListFiles.h in Headers */, + 5D61FC881A84238C00846EE7 /* SDLDiagnosticMessage.h in Headers */, + 5D61FDB31A84238C00846EE7 /* SDLSubscribeVehicleDataResponse.h in Headers */, + 5D61FD991A84238C00846EE7 /* SDLSiphonServer.h in Headers */, + 5D61FC961A84238C00846EE7 /* SDLECallConfirmationStatus.h in Headers */, + 5D61FDA51A84238C00846EE7 /* SDLSpeak.h in Headers */, + 5D61FD1B1A84238C00846EE7 /* SDLOnSystemRequest.h in Headers */, + 5D61FD2F1A84238C00846EE7 /* SDLPermissionStatus.h in Headers */, + 5D61FCF21A84238C00846EE7 /* SDLLockScreenStatus.h in Headers */, + 5D61FCD31A84238C00846EE7 /* SDLImageResolution.h in Headers */, + 5D61FD541A84238C00846EE7 /* SDLProxyListener.h in Headers */, + 5D61FD731A84238C00846EE7 /* SDLRPCRequestFactory.h in Headers */, + 5D61FC5D1A84238C00846EE7 /* SDLChangeRegistrationResponse.h in Headers */, + 5D61FDCD1A84238C00846EE7 /* SDLTimerMode.h in Headers */, + E9C32B961AB20BA200F283AF /* SDLTimer.h in Headers */, + 5D61FC3D1A84238C00846EE7 /* SDLAlertResponse.h in Headers */, + 5D61FDAD1A84238C00846EE7 /* SDLSubscribeButton.h in Headers */, + 5D61FCF41A84238C00846EE7 /* SDLMaintenanceModeStatus.h in Headers */, + 5D61FC571A84238C00846EE7 /* SDLButtonPressMode.h in Headers */, + 5D61FC471A84238C00846EE7 /* SDLAudioStreamingState.h in Headers */, + 5D61FE071A84238C00846EE7 /* SDLVehicleDataStatus.h in Headers */, + 5D61FD2D1A84238C00846EE7 /* SDLPermissionItem.h in Headers */, + 5D61FCD11A84238C00846EE7 /* SDLImageFieldName.h in Headers */, + 5DCF76F91ACDD7CD00BB647B /* SDLSendLocationResponse.h in Headers */, + 5D61FD391A84238C00846EE7 /* SDLPrerecordedSpeech.h in Headers */, + 5D61FC671A84238C00846EE7 /* SDLComponentVolumeStatus.h in Headers */, + 5D61FE0F1A84238C00846EE7 /* SDLVRHelpItem.h in Headers */, + 5D61FC721A84238C00846EE7 /* SDLDeleteCommand.h in Headers */, + 5D61FC821A84238C00846EE7 /* SDLDeviceInfo.h in Headers */, + 5D61FCA91A84238C00846EE7 /* SDLFileType.h in Headers */, + 5D61FD591A84238C00846EE7 /* SDLReadDID.h in Headers */, + 5D61FC611A84238C00846EE7 /* SDLChoice.h in Headers */, + 5D61FC7C1A84238C00846EE7 /* SDLDeleteInteractionChoiceSetResponse.h in Headers */, + 5D61FDB91A84238C00846EE7 /* SDLSyncPDataResponse.h in Headers */, + 5D61FC311A84238C00846EE7 /* SDLAddSubMenu.h in Headers */, + 5D61FD171A84238C00846EE7 /* SDLOnPermissionsChange.h in Headers */, + 5D61FDD51A84238C00846EE7 /* SDLTouchEventCapabilities.h in Headers */, + 5D61FD0B1A84238C00846EE7 /* SDLOnEncodedSyncPData.h in Headers */, + 5D61FC631A84238C00846EE7 /* SDLClusterModeStatus.h in Headers */, + 5D61FD371A84238C00846EE7 /* SDLPredefinedLayout.h in Headers */, + 5D61FDE31A84238C00846EE7 /* SDLUnregisterAppInterface.h in Headers */, + 5D61FD331A84238C00846EE7 /* SDLPowerModeQualificationStatus.h in Headers */, + 5D61FE011A84238C00846EE7 /* SDLVehicleDataNotificationStatus.h in Headers */, + 5D61FDC91A84238C00846EE7 /* SDLTextField.h in Headers */, + 5D61FCE41A84238C00846EE7 /* SDLKeyboardProperties.h in Headers */, + 5D61FDED1A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.h in Headers */, + 5DCC19A41B822804004FFAD9 /* SDLURLRequestTask.h in Headers */, + 5D61FCCF1A84238C00846EE7 /* SDLImageField.h in Headers */, + 5D535DC51B72473800CF7760 /* SDLGlobals.h in Headers */, + 5D61FD231A84238C00846EE7 /* SDLParameterPermissions.h in Headers */, + 5D61FCB91A84238C00846EE7 /* SDLGlobalProperty.h in Headers */, + 5D61FE051A84238C00846EE7 /* SDLVehicleDataResultCode.h in Headers */, + 5D61FD2B1A84238C00846EE7 /* SDLPerformInteractionResponse.h in Headers */, + 5D61FDA11A84238C00846EE7 /* SDLSoftButtonCapabilities.h in Headers */, + 5D61FDB51A84238C00846EE7 /* SDLSyncMsgVersion.h in Headers */, + 5D61FE031A84238C00846EE7 /* SDLVehicleDataResult.h in Headers */, + 5D61FD911A84238C00846EE7 /* SDLShowConstantTBT.h in Headers */, + 5D61FC331A84238C00846EE7 /* SDLAddSubMenuResponse.h in Headers */, + 5D61FD5D1A84238C00846EE7 /* SDLRegisterAppInterface.h in Headers */, + 5D61FC9A1A84238C00846EE7 /* SDLEmergencyEvent.h in Headers */, + 5D61FC651A84238C00846EE7 /* SDLCompassDirection.h in Headers */, + 5D61FC8E1A84238C00846EE7 /* SDLDimension.h in Headers */, + 5D61FD6B1A84238C00846EE7 /* SDLRPCMessageType.h in Headers */, + 5D61FD501A84238C00846EE7 /* SDLProxy.h in Headers */, + 5D61FC3F1A84238C00846EE7 /* SDLAmbientLightStatus.h in Headers */, + 5DE372A11ACB2ED300849FAA /* SDLHMICapabilities.h in Headers */, + E9C32B9C1AB20C5900F283AF /* EAAccessory+SDLProtocols.h in Headers */, + 5D61FE0B1A84238C00846EE7 /* SDLVehicleType.h in Headers */, + 5D61FCC31A84238C00846EE7 /* SDLHMIPermissions.h in Headers */, + 5D61FE131A84238C00846EE7 /* SDLWiperStatus.h in Headers */, + 5D61FCBD1A84238C00846EE7 /* SDLHeadLampStatus.h in Headers */, + 5D61FDC31A84238C00846EE7 /* SDLTBTState.h in Headers */, + 5D61FD951A84238C00846EE7 /* SDLShowResponse.h in Headers */, + 5D61FCA31A84238C00846EE7 /* SDLEndAudioPassThru.h in Headers */, + 5D61FCB11A84238C00846EE7 /* SDLGetDTCs.h in Headers */, + 5D61FDFF1A84238C00846EE7 /* SDLVehicleDataEventStatus.h in Headers */, + 5D61FC5B1A84238C00846EE7 /* SDLChangeRegistration.h in Headers */, + 5D61FD5B1A84238C00846EE7 /* SDLReadDIDResponse.h in Headers */, + 5D61FDEF1A84238C00846EE7 /* SDLUpdateMode.h in Headers */, + 5D61FDDB1A84238C00846EE7 /* SDLTriggerSource.h in Headers */, + 5D61FD8F1A84238C00846EE7 /* SDLShow.h in Headers */, + 5D61FDDD1A84238C00846EE7 /* SDLTTSChunk.h in Headers */, + 5D61FC371A84238C00846EE7 /* SDLAlert.h in Headers */, + 5D61FCC11A84238C00846EE7 /* SDLHMILevel.h in Headers */, + 5D61FD471A84238C00846EE7 /* SDLProtocolListener.h in Headers */, + 5D61FCA01A84238C00846EE7 /* SDLEncodedSyncPDataResponse.h in Headers */, + 5D61FD271A84238C00846EE7 /* SDLPerformAudioPassThruResponse.h in Headers */, + 5D61FD251A84238C00846EE7 /* SDLPerformAudioPassThru.h in Headers */, + 5D61FDA71A84238C00846EE7 /* SDLSpeakResponse.h in Headers */, + 5D61FD771A84238C00846EE7 /* SDLSamplingRate.h in Headers */, + 5D61FCBB1A84238C00846EE7 /* SDLGPSData.h in Headers */, + 5D61FDA31A84238C00846EE7 /* SDLSoftButtonType.h in Headers */, + 5D61FC431A84238C00846EE7 /* SDLAppInterfaceUnregisteredReason.h in Headers */, + 5D61FA211A84237100846EE7 /* SmartDeviceLink.h in Headers */, + 5D61FD711A84238C00846EE7 /* SDLRPCRequest.h in Headers */, + 5D61FD6D1A84238C00846EE7 /* SDLRPCNotification.h in Headers */, + 5D61FD691A84238C00846EE7 /* SDLRPCMessage.h in Headers */, + 5D61FCA71A84238C00846EE7 /* SDLEnum.h in Headers */, + 5D8B174F1AC9D266006A6E1C /* SDLDialNumber.h in Headers */, + 5D61FCAD1A84238C00846EE7 /* SDLFunctionID.h in Headers */, + 5D61FDF51A84238C00846EE7 /* SDLV1ProtocolHeader.h in Headers */, + 5D61FDF91A84238C00846EE7 /* SDLV2ProtocolHeader.h in Headers */, + 5D61FD4A1A84238C00846EE7 /* SDLProtocolMessageAssembler.h in Headers */, + 5D61FD4C1A84238C00846EE7 /* SDLProtocolMessageDisassembler.h in Headers */, + 5D61FD4E1A84238C00846EE7 /* SDLProtocolReceivedMessageRouter.h in Headers */, + 5D61FDF71A84238C00846EE7 /* SDLV1ProtocolMessage.h in Headers */, + 5D61FDFB1A84238C00846EE7 /* SDLV2ProtocolMessage.h in Headers */, + 5D61FCFC1A84238C00846EE7 /* SDLNames.h in Headers */, + 5D61FCFD1A84238C00846EE7 /* SDLObjectWithPriority.h in Headers */, + 5D61FD3F1A84238C00846EE7 /* SDLPrioritizedObjectCollection.h in Headers */, + 5D61FCBF1A84238C00846EE7 /* SDLHexUtility.h in Headers */, + 5D61FCA21A84238C00846EE7 /* SDLEncoder.h in Headers */, + 5D61FCDE1A84238C00846EE7 /* SDLJsonEncoder.h in Headers */, + 5D61FCDC1A84238C00846EE7 /* SDLJsonDecoder.h in Headers */, + 5D61FC711A84238C00846EE7 /* SDLDecoder.h in Headers */, + 5D61FD6F1A84238C00846EE7 /* SDLRPCPayload.h in Headers */, + 5D61FCF01A84238C00846EE7 /* SDLLockScreenManager.h in Headers */, + 5D61FD311A84238C00846EE7 /* SDLPolicyDataParser.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 5D4019AE1A76EC350006B0C2 /* SmartDeviceLink-Example */ = { + isa = PBXNativeTarget; + buildConfigurationList = 5D4019D21A76EC350006B0C2 /* Build configuration list for PBXNativeTarget "SmartDeviceLink-Example" */; + buildPhases = ( + 5D4019AB1A76EC350006B0C2 /* Sources */, + 5D4019AC1A76EC350006B0C2 /* Frameworks */, + 5D4019AD1A76EC350006B0C2 /* Resources */, + 5D401CE11A76ED0B0006B0C2 /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 5D61FA321A84237100846EE7 /* PBXTargetDependency */, + ); + name = "SmartDeviceLink-Example"; + productName = "SmartDeviceLink-iOS"; + productReference = 5D4019AF1A76EC350006B0C2 /* SmartDeviceLink-Example.app */; + productType = "com.apple.product-type.application"; + }; + 5D61FA1B1A84237100846EE7 /* SmartDeviceLink */ = { + isa = PBXNativeTarget; + buildConfigurationList = 5D61FA351A84237100846EE7 /* Build configuration list for PBXNativeTarget "SmartDeviceLink" */; + buildPhases = ( + 5D61FA171A84237100846EE7 /* Sources */, + 5D61FA181A84237100846EE7 /* Frameworks */, + 5D61FA191A84237100846EE7 /* Headers */, + 5D61FA1A1A84237100846EE7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SmartDeviceLink; + productName = SmartDeviceLink; + productReference = 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */; + productType = "com.apple.product-type.framework"; + }; + 5D61FA251A84237100846EE7 /* SmartDeviceLinkTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 5D61FA381A84237100846EE7 /* Build configuration list for PBXNativeTarget "SmartDeviceLinkTests" */; + buildPhases = ( + 5D61FA221A84237100846EE7 /* Sources */, + 5D61FA231A84237100846EE7 /* Frameworks */, + 5D61FA241A84237100846EE7 /* Resources */, + 162E81CE1A9BDDBB00906325 /* CopyFiles */, + 5DEE55C31B864A98004F0D0F /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + 5D61FA291A84237100846EE7 /* PBXTargetDependency */, + 5D61FA2B1A84237100846EE7 /* PBXTargetDependency */, + ); + name = SmartDeviceLinkTests; + productName = SmartDeviceLinkTests; + productReference = 5D61FA261A84237100846EE7 /* SmartDeviceLinkTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 5D4019A71A76EC350006B0C2 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0700; + LastUpgradeCheck = 0700; + ORGANIZATIONNAME = smartdevicelink; + TargetAttributes = { + 5D4019AE1A76EC350006B0C2 = { + CreatedOnToolsVersion = 6.1.1; + SystemCapabilities = { + com.apple.BackgroundModes = { + enabled = 1; + }; + com.apple.WAC = { + enabled = 0; + }; + }; + }; + 5D61FA1B1A84237100846EE7 = { + CreatedOnToolsVersion = 6.1.1; + }; + 5D61FA251A84237100846EE7 = { + CreatedOnToolsVersion = 6.1.1; + }; + }; + }; + buildConfigurationList = 5D4019AA1A76EC350006B0C2 /* Build configuration list for PBXProject "SmartDeviceLink-iOS" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 5D4019A61A76EC350006B0C2; + productRefGroup = 5D4019B01A76EC350006B0C2 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 5D4019AE1A76EC350006B0C2 /* SmartDeviceLink-Example */, + 5D61FA1B1A84237100846EE7 /* SmartDeviceLink */, + 5D61FA251A84237100846EE7 /* SmartDeviceLinkTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 5D4019AD1A76EC350006B0C2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5D0218F91A8E7A7300D1BF62 /* ConnectionTCPTableViewController.storyboard in Resources */, + 5D0219051A8E9F6D00D1BF62 /* ConnectionIAPTableViewController.storyboard in Resources */, + 5D4029E31A76F0760006B0C2 /* LaunchScreen.xib in Resources */, + 5D4029D41A76F0340006B0C2 /* Images.xcassets in Resources */, + 5D4029E41A76F0760006B0C2 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 5D61FA1A1A84237100846EE7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 5D61FA241A84237100846EE7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 5D4019AB1A76EC350006B0C2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5D4832A51A94F90D00252386 /* ConnectionTransitionContext.m in Sources */, + 5D0218FC1A8E7E1700D1BF62 /* ConnectionContainerViewController.m in Sources */, + 5D0218FF1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.m in Sources */, + 5D48329D1A8EA33D00252386 /* Preferences.m in Sources */, + 5D59350F1A855EB300687FB9 /* AppDelegate.m in Sources */, + 5D5935121A855EBE00687FB9 /* main.m in Sources */, + 5D4832A81A95191B00252386 /* ConnectionAnimatedTransition.m in Sources */, + 5D4832A11A92868E00252386 /* ProxyManager.m in Sources */, + 5D0218F61A8E79C400D1BF62 /* ConnectionTCPTableViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 5D61FA171A84237100846EE7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5DCC19A51B822804004FFAD9 /* SDLURLRequestTask.m in Sources */, + 5D61FC561A84238C00846EE7 /* SDLButtonName.m in Sources */, + 5D61FCC21A84238C00846EE7 /* SDLHMILevel.m in Sources */, + 5D61FDEC1A84238C00846EE7 /* SDLUnsubscribeVehicleData.m in Sources */, + 5D61FDBE1A84238C00846EE7 /* SDLSystemContext.m in Sources */, + 5D61FC441A84238C00846EE7 /* SDLAppInterfaceUnregisteredReason.m in Sources */, + 5D61FD531A84238C00846EE7 /* SDLProxyFactory.m in Sources */, + 5D61FDCA1A84238C00846EE7 /* SDLTextField.m in Sources */, + 5D61FC9D1A84238C00846EE7 /* SDLEmergencyEventType.m in Sources */, + 5D61FCAC1A84238C00846EE7 /* SDLFuelCutoffStatus.m in Sources */, + 5D61FC871A84238C00846EE7 /* SDLDeviceStatus.m in Sources */, + 5D61FD561A84238C00846EE7 /* SDLPutFile.m in Sources */, + 5D61FCE71A84238C00846EE7 /* SDLKeypressMode.m in Sources */, + 5D61FD9A1A84238C00846EE7 /* SDLSiphonServer.m in Sources */, + 5D61FCDF1A84238C00846EE7 /* SDLJsonEncoder.m in Sources */, + 5D61FD941A84238C00846EE7 /* SDLShowConstantTBTResponse.m in Sources */, + 5D61FE0A1A84238C00846EE7 /* SDLVehicleDataType.m in Sources */, + 5D61FD1A1A84238C00846EE7 /* SDLOnSyncPData.m in Sources */, + 5D61FC461A84238C00846EE7 /* SDLAudioPassThruCapabilities.m in Sources */, + 5D61FD301A84238C00846EE7 /* SDLPermissionStatus.m in Sources */, + 5D61FDEE1A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.m in Sources */, + 5D535DC61B72473800CF7760 /* SDLGlobals.m in Sources */, + 5D61FCAE1A84238C00846EE7 /* SDLFunctionID.m in Sources */, + 5D61FC421A84238C00846EE7 /* SDLAppHMIType.m in Sources */, + 5D61FD421A84238C00846EE7 /* SDLPRNDL.m in Sources */, + E9C32B921AB20BA200F283AF /* SDLIAPSession.m in Sources */, + 5D61FD0C1A84238C00846EE7 /* SDLOnEncodedSyncPData.m in Sources */, + 5D61FCA81A84238C00846EE7 /* SDLEnum.m in Sources */, + 5D61FDE01A84238C00846EE7 /* SDLTTSChunkFactory.m in Sources */, + 5D61FD0A1A84238C00846EE7 /* SDLOnDriverDistraction.m in Sources */, + 5D61FCED1A84238C00846EE7 /* SDLListFiles.m in Sources */, + 5D61FC6E1A84238C00846EE7 /* SDLCreateInteractionChoiceSetResponse.m in Sources */, + 5D61FD061A84238C00846EE7 /* SDLOnButtonPress.m in Sources */, + 5D61FD5E1A84238C00846EE7 /* SDLRegisterAppInterface.m in Sources */, + 5D61FCE11A84238C00846EE7 /* SDLKeyboardEvent.m in Sources */, + 5D61FD491A84238C00846EE7 /* SDLProtocolMessage.m in Sources */, + 5D61FCCE1A84238C00846EE7 /* SDLImage.m in Sources */, + 5D61FD241A84238C00846EE7 /* SDLParameterPermissions.m in Sources */, + 5D61FDD21A84238C00846EE7 /* SDLTouchCoord.m in Sources */, + 5D61FCEF1A84238C00846EE7 /* SDLListFilesResponse.m in Sources */, + 5D61FD1C1A84238C00846EE7 /* SDLOnSystemRequest.m in Sources */, + 5D61FC911A84238C00846EE7 /* SDLDisplayCapabilities.m in Sources */, + 5D61FD261A84238C00846EE7 /* SDLPerformAudioPassThru.m in Sources */, + 5D61FC971A84238C00846EE7 /* SDLECallConfirmationStatus.m in Sources */, + 5D61FC4A1A84238C00846EE7 /* SDLAudioType.m in Sources */, + 5D61FDE61A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.m in Sources */, + 5D61FC481A84238C00846EE7 /* SDLAudioStreamingState.m in Sources */, + 5D61FCC81A84238C00846EE7 /* SDLIAPTransport.m in Sources */, + 5D61FE101A84238C00846EE7 /* SDLVRHelpItem.m in Sources */, + 5D61FCC01A84238C00846EE7 /* SDLHexUtility.m in Sources */, + 5D61FD821A84238C00846EE7 /* SDLSetAppIconResponse.m in Sources */, + 5D61FDF81A84238C00846EE7 /* SDLV1ProtocolMessage.m in Sources */, + 5D61FDC81A84238C00846EE7 /* SDLTextAlignment.m in Sources */, + 5D61FD5A1A84238C00846EE7 /* SDLReadDID.m in Sources */, + 5D61FC8F1A84238C00846EE7 /* SDLDimension.m in Sources */, + 5D61FC9B1A84238C00846EE7 /* SDLEmergencyEvent.m in Sources */, + 5D61FDFE1A84238C00846EE7 /* SDLVehicleDataActiveStatus.m in Sources */, + 5D61FCD01A84238C00846EE7 /* SDLImageField.m in Sources */, + 5D61FC3C1A84238C00846EE7 /* SDLAlertManeuverResponse.m in Sources */, + 5D61FC6A1A84238C00846EE7 /* SDLConsoleController.m in Sources */, + 5D61FD4D1A84238C00846EE7 /* SDLProtocolMessageDisassembler.m in Sources */, + 5D61FC701A84238C00846EE7 /* SDLDebugTool.m in Sources */, + 5D61FD4B1A84238C00846EE7 /* SDLProtocolMessageAssembler.m in Sources */, + 5D61FCC41A84238C00846EE7 /* SDLHMIPermissions.m in Sources */, + 5D61FE141A84238C00846EE7 /* SDLWiperStatus.m in Sources */, + 5D61FC8B1A84238C00846EE7 /* SDLDiagnosticMessageResponse.m in Sources */, + 5D61FD2E1A84238C00846EE7 /* SDLPermissionItem.m in Sources */, + 5D61FD041A84238C00846EE7 /* SDLOnButtonEvent.m in Sources */, + 5D61FD201A84238C00846EE7 /* SDLOnTouchEvent.m in Sources */, + 5D61FD781A84238C00846EE7 /* SDLSamplingRate.m in Sources */, + 5D61FC681A84238C00846EE7 /* SDLComponentVolumeStatus.m in Sources */, + 5D61FDB61A84238C00846EE7 /* SDLSyncMsgVersion.m in Sources */, + 5D61FC501A84238C00846EE7 /* SDLBodyInformation.m in Sources */, + 5D61FD901A84238C00846EE7 /* SDLShow.m in Sources */, + 5D61FDB21A84238C00846EE7 /* SDLSubscribeVehicleData.m in Sources */, + 5D61FC991A84238C00846EE7 /* SDLECallInfo.m in Sources */, + 5D61FD601A84238C00846EE7 /* SDLRegisterAppInterfaceResponse.m in Sources */, + 5D61FCF51A84238C00846EE7 /* SDLMaintenanceModeStatus.m in Sources */, + 5D61FCD81A84238C00846EE7 /* SDLInteractionMode.m in Sources */, + 5D61FCB01A84238C00846EE7 /* SDLGenericResponse.m in Sources */, + 5D61FD681A84238C00846EE7 /* SDLResult.m in Sources */, + E9C32B871AB20B4300F283AF /* NSThread+ThreadIndex.m in Sources */, + 5D61FDE21A84238C00846EE7 /* SDLTurn.m in Sources */, + 5D61FC5A1A84238C00846EE7 /* SDLCarModeStatus.m in Sources */, + 5D61FCBC1A84238C00846EE7 /* SDLGPSData.m in Sources */, + 5D61FD341A84238C00846EE7 /* SDLPowerModeQualificationStatus.m in Sources */, + 5D61FC891A84238C00846EE7 /* SDLDiagnosticMessage.m in Sources */, + 5D61FD6E1A84238C00846EE7 /* SDLRPCNotification.m in Sources */, + 5D8B17501AC9D266006A6E1C /* SDLDialNumber.m in Sources */, + 5D61FDE81A84238C00846EE7 /* SDLUnsubscribeButton.m in Sources */, + 5D61FCF71A84238C00846EE7 /* SDLMediaClockFormat.m in Sources */, + 5D61FD8A1A84238C00846EE7 /* SDLSetGlobalPropertiesResponse.m in Sources */, + 5D61FC4C1A84238C00846EE7 /* SDLBeltStatus.m in Sources */, + 5D61FDA41A84238C00846EE7 /* SDLSoftButtonType.m in Sources */, + 5D61FC521A84238C00846EE7 /* SDLButtonCapabilities.m in Sources */, + 5D61FC791A84238C00846EE7 /* SDLDeleteFileResponse.m in Sources */, + 5D61FC641A84238C00846EE7 /* SDLClusterModeStatus.m in Sources */, + 5D61FCF91A84238C00846EE7 /* SDLMenuParams.m in Sources */, + 5D61FD7C1A84238C00846EE7 /* SDLScrollableMessage.m in Sources */, + 5D61FD801A84238C00846EE7 /* SDLSetAppIcon.m in Sources */, + 5D61FD3C1A84238C00846EE7 /* SDLPresetBankCapabilities.m in Sources */, + 5D61FDB81A84238C00846EE7 /* SDLSyncPData.m in Sources */, + 5D61FD221A84238C00846EE7 /* SDLOnVehicleData.m in Sources */, + 5D61FCD41A84238C00846EE7 /* SDLImageResolution.m in Sources */, + 5D61FDF41A84238C00846EE7 /* SDLUpdateTurnListResponse.m in Sources */, + 5D61FCF31A84238C00846EE7 /* SDLLockScreenStatus.m in Sources */, + 5D61FC731A84238C00846EE7 /* SDLDeleteCommand.m in Sources */, + 5D61FD2A1A84238C00846EE7 /* SDLPerformInteraction.m in Sources */, + 5D61FC541A84238C00846EE7 /* SDLButtonEventMode.m in Sources */, + 5D61FC8D1A84238C00846EE7 /* SDLDIDResult.m in Sources */, + 5D61FC601A84238C00846EE7 /* SDLCharacterSet.m in Sources */, + 5D61FCBE1A84238C00846EE7 /* SDLHeadLampStatus.m in Sources */, + 5D61FD921A84238C00846EE7 /* SDLShowConstantTBT.m in Sources */, + 5D61FC4E1A84238C00846EE7 /* SDLBitsPerSample.m in Sources */, + 5D61FDEA1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.m in Sources */, + 5D61FCA61A84238C00846EE7 /* SDLEndAudioPassThruResponse.m in Sources */, + 5DCC19A11B8221F3004FFAD9 /* SDLURLSession.m in Sources */, + 5D61FD281A84238C00846EE7 /* SDLPerformAudioPassThruResponse.m in Sources */, + 5D61FDCE1A84238C00846EE7 /* SDLTimerMode.m in Sources */, + 5D61FD701A84238C00846EE7 /* SDLRPCPayload.m in Sources */, + 5D61FD9C1A84238C00846EE7 /* SDLSlider.m in Sources */, + 5DCF76FA1ACDD7CD00BB647B /* SDLSendLocationResponse.m in Sources */, + 5D61FD661A84238C00846EE7 /* SDLResetGlobalPropertiesResponse.m in Sources */, + 5D61FCFE1A84238C00846EE7 /* SDLObjectWithPriority.m in Sources */, + 5D61FC401A84238C00846EE7 /* SDLAmbientLightStatus.m in Sources */, + 5D61FC951A84238C00846EE7 /* SDLDriverDistractionState.m in Sources */, + 5D61FD961A84238C00846EE7 /* SDLShowResponse.m in Sources */, + 5D61FD981A84238C00846EE7 /* SDLSingleTireStatus.m in Sources */, + 5D61FD511A84238C00846EE7 /* SDLProxy.m in Sources */, + 5D61FD461A84238C00846EE7 /* SDLProtocolHeader.m in Sources */, + 5D61FDBC1A84238C00846EE7 /* SDLSystemAction.m in Sources */, + 5D61FC381A84238C00846EE7 /* SDLAlert.m in Sources */, + 5D61FD2C1A84238C00846EE7 /* SDLPerformInteractionResponse.m in Sources */, + 5D61FDF21A84238C00846EE7 /* SDLUpdateTurnList.m in Sources */, + 5D61FD101A84238C00846EE7 /* SDLOnHMIStatus.m in Sources */, + 5D61FC301A84238C00846EE7 /* SDLAddCommandResponse.m in Sources */, + 5D61FCCC1A84238C00846EE7 /* SDLIgnitionStatus.m in Sources */, + 5D61FC3A1A84238C00846EE7 /* SDLAlertManeuver.m in Sources */, + 5D61FC5E1A84238C00846EE7 /* SDLChangeRegistrationResponse.m in Sources */, + 5D61FC7D1A84238C00846EE7 /* SDLDeleteInteractionChoiceSetResponse.m in Sources */, + E9C32B9D1AB20C5900F283AF /* EAAccessory+SDLProtocols.m in Sources */, + 5D61FCC61A84238C00846EE7 /* SDLHMIZoneCapabilities.m in Sources */, + 5D61FD161A84238C00846EE7 /* SDLOnLockScreenStatus.m in Sources */, + 5D61FDAE1A84238C00846EE7 /* SDLSubscribeButton.m in Sources */, + 5D61FC581A84238C00846EE7 /* SDLButtonPressMode.m in Sources */, + 5D61FDB01A84238C00846EE7 /* SDLSubscribeButtonResponse.m in Sources */, + 5DCF76F61ACDBAD300BB647B /* SDLSendLocation.m in Sources */, + 5D61FC771A84238C00846EE7 /* SDLDeleteFile.m in Sources */, + 5D61FC811A84238C00846EE7 /* SDLDeleteSubMenuResponse.m in Sources */, + 5D61FC7B1A84238C00846EE7 /* SDLDeleteInteractionChoiceSet.m in Sources */, + 5D61FDC01A84238C00846EE7 /* SDLSystemRequest.m in Sources */, + 5D61FD021A84238C00846EE7 /* SDLOnAudioPassThru.m in Sources */, + 5D61FCE51A84238C00846EE7 /* SDLKeyboardProperties.m in Sources */, + 5D61FDFA1A84238C00846EE7 /* SDLV2ProtocolHeader.m in Sources */, + 5D61FDD01A84238C00846EE7 /* SDLTireStatus.m in Sources */, + 5D61FC321A84238C00846EE7 /* SDLAddSubMenu.m in Sources */, + 5D61FDF61A84238C00846EE7 /* SDLV1ProtocolHeader.m in Sources */, + 5D61FDAA1A84238C00846EE7 /* SDLSpeechCapabilities.m in Sources */, + 5D61FDB41A84238C00846EE7 /* SDLSubscribeVehicleDataResponse.m in Sources */, + 5D61FD121A84238C00846EE7 /* SDLOnKeyboardInput.m in Sources */, + 5D61FCCA1A84238C00846EE7 /* SDLIgnitionStableStatus.m in Sources */, + 5D61FCFB1A84238C00846EE7 /* SDLMyKey.m in Sources */, + 5D61FCAA1A84238C00846EE7 /* SDLFileType.m in Sources */, + 5DE372A21ACB2ED300849FAA /* SDLHMICapabilities.m in Sources */, + 5D61FDD41A84238C00846EE7 /* SDLTouchEvent.m in Sources */, + 5D61FD881A84238C00846EE7 /* SDLSetGlobalProperties.m in Sources */, + 5D61FC7F1A84238C00846EE7 /* SDLDeleteSubMenu.m in Sources */, + 5D61FCE91A84238C00846EE7 /* SDLLanguage.m in Sources */, + 5D61FC3E1A84238C00846EE7 /* SDLAlertResponse.m in Sources */, + 5D61FD8C1A84238C00846EE7 /* SDLSetMediaClockTimer.m in Sources */, + 5D61FE121A84238C00846EE7 /* SDLWarningLightStatus.m in Sources */, + 5D61FCDD1A84238C00846EE7 /* SDLJsonDecoder.m in Sources */, + 5D61FCB81A84238C00846EE7 /* SDLGetVehicleDataResponse.m in Sources */, + 5D61FC661A84238C00846EE7 /* SDLCompassDirection.m in Sources */, + 5D61FD841A84238C00846EE7 /* SDLSetDisplayLayout.m in Sources */, + 5D61FE001A84238C00846EE7 /* SDLVehicleDataEventStatus.m in Sources */, + 5D61FDC41A84238C00846EE7 /* SDLTBTState.m in Sources */, + 5D61FDA61A84238C00846EE7 /* SDLSpeak.m in Sources */, + 5D61FDDE1A84238C00846EE7 /* SDLTTSChunk.m in Sources */, + 5D61FD9E1A84238C00846EE7 /* SDLSliderResponse.m in Sources */, + 5D61FC5C1A84238C00846EE7 /* SDLChangeRegistration.m in Sources */, + 5D61FDBA1A84238C00846EE7 /* SDLSyncPDataResponse.m in Sources */, + 5D61FDDC1A84238C00846EE7 /* SDLTriggerSource.m in Sources */, + E9C32B971AB20BA200F283AF /* SDLTimer.m in Sources */, + 5D61FCB61A84238C00846EE7 /* SDLGetVehicleData.m in Sources */, + 5D61FC9F1A84238C00846EE7 /* SDLEncodedSyncPData.m in Sources */, + 5D61FE061A84238C00846EE7 /* SDLVehicleDataResultCode.m in Sources */, + 5D61FCA41A84238C00846EE7 /* SDLEndAudioPassThru.m in Sources */, + 5D8B17541AC9E11B006A6E1C /* SDLDialNumberResponse.m in Sources */, + 5D61FC851A84238C00846EE7 /* SDLDeviceLevelStatus.m in Sources */, + 5D61FD1E1A84238C00846EE7 /* SDLOnTBTClientState.m in Sources */, + 5D61FD581A84238C00846EE7 /* SDLPutFileResponse.m in Sources */, + 5D61FCB21A84238C00846EE7 /* SDLGetDTCs.m in Sources */, + 5D61FD441A84238C00846EE7 /* SDLProtocol.m in Sources */, + 5D61FC341A84238C00846EE7 /* SDLAddSubMenuResponse.m in Sources */, + 5D61FD141A84238C00846EE7 /* SDLOnLanguageChange.m in Sources */, + 5D61FE041A84238C00846EE7 /* SDLVehicleDataResult.m in Sources */, + 5D61FD5C1A84238C00846EE7 /* SDLReadDIDResponse.m in Sources */, + 5D61FD321A84238C00846EE7 /* SDLPolicyDataParser.m in Sources */, + 5D61FC621A84238C00846EE7 /* SDLChoice.m in Sources */, + 5D61FCEB1A84238C00846EE7 /* SDLLayoutMode.m in Sources */, + 5D61FC2E1A84238C00846EE7 /* SDLAddCommand.m in Sources */, + 5D61FE021A84238C00846EE7 /* SDLVehicleDataNotificationStatus.m in Sources */, + 5D61FDD81A84238C00846EE7 /* SDLTouchType.m in Sources */, + 5D61FDD61A84238C00846EE7 /* SDLTouchEventCapabilities.m in Sources */, + 5D61FCF11A84238C00846EE7 /* SDLLockScreenManager.m in Sources */, + 5D61FDAC1A84238C00846EE7 /* SDLStartTime.m in Sources */, + 5D61FDA01A84238C00846EE7 /* SDLSoftButton.m in Sources */, + E9C32B951AB20BA200F283AF /* SDLStreamDelegate.m in Sources */, + 5D61FCD21A84238C00846EE7 /* SDLImageFieldName.m in Sources */, + 5D61FD761A84238C00846EE7 /* SDLRPCResponse.m in Sources */, + 5D61FE081A84238C00846EE7 /* SDLVehicleDataStatus.m in Sources */, + E9C32B9F1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.m in Sources */, + 5D61FDA81A84238C00846EE7 /* SDLSpeakResponse.m in Sources */, + 5DB92D331AC9C8BA00C15BB0 /* SDLRPCStruct.m in Sources */, + 5D61FCD61A84238C00846EE7 /* SDLImageType.m in Sources */, + 5D61FD7A1A84238C00846EE7 /* SDLScreenParams.m in Sources */, + 5D61FC831A84238C00846EE7 /* SDLDeviceInfo.m in Sources */, + 5D61FD641A84238C00846EE7 /* SDLResetGlobalProperties.m in Sources */, + 5D61FD181A84238C00846EE7 /* SDLOnPermissionsChange.m in Sources */, + 5D61FD3E1A84238C00846EE7 /* SDLPrimaryAudioSource.m in Sources */, + 5D61FC2A1A84238C00846EE7 /* SDLAbstractProtocol.m in Sources */, + 5D61FD381A84238C00846EE7 /* SDLPredefinedLayout.m in Sources */, + 5D61FD0E1A84238C00846EE7 /* SDLOnHashChange.m in Sources */, + 5D61FDE41A84238C00846EE7 /* SDLUnregisterAppInterface.m in Sources */, + 5D61FC361A84238C00846EE7 /* SDLAirbagStatus.m in Sources */, + 5D61FD7E1A84238C00846EE7 /* SDLScrollableMessageResponse.m in Sources */, + 5D61FD3A1A84238C00846EE7 /* SDLPrerecordedSpeech.m in Sources */, + 5D61FCA11A84238C00846EE7 /* SDLEncodedSyncPDataResponse.m in Sources */, + 5D61FD401A84238C00846EE7 /* SDLPrioritizedObjectCollection.m in Sources */, + 5D61FD741A84238C00846EE7 /* SDLRPCRequestFactory.m in Sources */, + 5D61FDC61A84238C00846EE7 /* SDLTCPTransport.m in Sources */, + 5D61FE0E1A84238C00846EE7 /* SDLVRCapabilities.m in Sources */, + 5D61FDC21A84238C00846EE7 /* SDLSystemRequestResponse.m in Sources */, + 5D61FD001A84238C00846EE7 /* SDLOnAppInterfaceUnregistered.m in Sources */, + 5D61FC6C1A84238C00846EE7 /* SDLCreateInteractionChoiceSet.m in Sources */, + 5D61FD081A84238C00846EE7 /* SDLOnCommand.m in Sources */, + 5D53C46E1B7A99B9003526EA /* SDLStreamingMediaManager.m in Sources */, + 5D61FD6A1A84238C00846EE7 /* SDLRPCMessage.m in Sources */, + 5D61FCDB1A84238C00846EE7 /* SDLJingle.m in Sources */, + 5D61FDA21A84238C00846EE7 /* SDLSoftButtonCapabilities.m in Sources */, + 5D61FC2C1A84238C00846EE7 /* SDLAbstractTransport.m in Sources */, + 5D61FD8E1A84238C00846EE7 /* SDLSetMediaClockTimerResponse.m in Sources */, + 5D61FD721A84238C00846EE7 /* SDLRPCRequest.m in Sources */, + 5D61FDF01A84238C00846EE7 /* SDLUpdateMode.m in Sources */, + 5D61FC931A84238C00846EE7 /* SDLDisplayType.m in Sources */, + 5D61FCE31A84238C00846EE7 /* SDLKeyboardLayout.m in Sources */, + 5D61FE0C1A84238C00846EE7 /* SDLVehicleType.m in Sources */, + 5D61FDCC1A84238C00846EE7 /* SDLTextFieldName.m in Sources */, + 5D61FC751A84238C00846EE7 /* SDLDeleteCommandResponse.m in Sources */, + 5D61FD861A84238C00846EE7 /* SDLSetDisplayLayoutResponse.m in Sources */, + 5D61FCB41A84238C00846EE7 /* SDLGetDTCsResponse.m in Sources */, + 5D61FDFC1A84238C00846EE7 /* SDLV2ProtocolMessage.m in Sources */, + 5D61FD361A84238C00846EE7 /* SDLPowerModeStatus.m in Sources */, + 5D61FD621A84238C00846EE7 /* SDLRequestType.m in Sources */, + 5D61FCBA1A84238C00846EE7 /* SDLGlobalProperty.m in Sources */, + 5D61FD4F1A84238C00846EE7 /* SDLProtocolReceivedMessageRouter.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 5D61FA221A84237100846EE7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 162E83951A9BDE8B00906325 /* SDLTurnSpec.m in Sources */, + 162E83481A9BDE8B00906325 /* SDLUpdateTurnListSpec.m in Sources */, + 1680B11E1A9CD7AD00DBD79E /* SDLProtocolReceivedMessageRouterSpec.m in Sources */, + 162E82FD1A9BDE8B00906325 /* SDLSystemContextSpec.m in Sources */, + 162E82E21A9BDE8B00906325 /* SDLIgnitionStableStatusSpec.m in Sources */, + 162E82EE1A9BDE8B00906325 /* SDLMediaClockFormatSpec.m in Sources */, + 5DA026901AD44EE700019F86 /* SDLDialNumberResponseSpec.m in Sources */, + 162E83901A9BDE8B00906325 /* SDLTireStatusSpec.m in Sources */, + 162E82E01A9BDE8B00906325 /* SDLHMILevelSpec.m in Sources */, + 162E83041A9BDE8B00906325 /* SDLUpdateModeSpec.m in Sources */, + 162E83801A9BDE8B00906325 /* SDLHMIPermissionsSpec.m in Sources */, + 162E83021A9BDE8B00906325 /* SDLTouchTypeSpec.m in Sources */, + 5DB92D2F1AC59F0000C15BB0 /* SDLObjectWithPrioritySpec.m in Sources */, + 162E838A1A9BDE8B00906325 /* SDLSingleTireStatusSpec.m in Sources */, + 162E83051A9BDE8B00906325 /* SDLVehicleDataActiveStatusSpec.m in Sources */, + 162E82E61A9BDE8B00906325 /* SDLInteractionModeSpec.m in Sources */, + 162E83931A9BDE8B00906325 /* SDLTouchEventSpec.m in Sources */, + 5DCF76FE1ACDDB5A00BB647B /* SDLSendLocationResponseSpec.m in Sources */, + 162E837D1A9BDE8B00906325 /* SDLEmergencyEventSpec.m in Sources */, + 162E82D31A9BDE8A00906325 /* SDLCarModeStatusSpec.m in Sources */, + 162E82EA1A9BDE8B00906325 /* SDLLanguageSpec.m in Sources */, + 162E83331A9BDE8B00906325 /* SDLPerformInteractionSpec.m in Sources */, + 1680B11A1A9CD7AD00DBD79E /* SDLAbstractProtocolSpec.m in Sources */, + 1680B1151A9CD7AD00DBD79E /* SDLV2ProtocolHeaderSpec.m in Sources */, + 162E83101A9BDE8B00906325 /* SDLOnAudioPassThruSpec.m in Sources */, + 162E82D91A9BDE8A00906325 /* SDLDisplayTypeSpec.m in Sources */, + 162E83871A9BDE8B00906325 /* SDLPermissionItemSpec.m in Sources */, + 162E82E31A9BDE8B00906325 /* SDLIgnitionStatusSpec.m in Sources */, + 162E83511A9BDE8B00906325 /* SDLDeleteInteractionChoiceSetResponseSpec.m in Sources */, + 162E830E1A9BDE8B00906325 /* SDLRPCRequestFactorySpec.m in Sources */, + 162E82E41A9BDE8B00906325 /* SDLImageFieldNameSpec.m in Sources */, + 162E83991A9BDE8B00906325 /* SDLEnumSpec.m in Sources */, + 162E82ED1A9BDE8B00906325 /* SDLMaintenanceModeStatusSpec.m in Sources */, + 5DB92D2D1AC4A34F00C15BB0 /* SDLPrioritizedObjectCollectionSpec.m in Sources */, + 1680B11C1A9CD7AD00DBD79E /* SDLProtocolMessageAssemblerSpec.m in Sources */, + 162E83181A9BDE8B00906325 /* SDLOnKeyboardInputSpec.m in Sources */, + 162E83701A9BDE8B00906325 /* SDLUpdateTurnListResponseSpec.m in Sources */, + 162E833B1A9BDE8B00906325 /* SDLSetGlobalPropertiesSpec.m in Sources */, + 162E82F11A9BDE8B00906325 /* SDLPowerModeStatusSpec.m in Sources */, + 162E83881A9BDE8B00906325 /* SDLPresetBankCapabilitiesSpec.m in Sources */, + 162E837E1A9BDE8B00906325 /* SDLGPSDataSpec.m in Sources */, + 162E82E11A9BDE8B00906325 /* SDLHMIZoneCapabilitiesSpec.m in Sources */, + 162E83721A9BDE8B00906325 /* SDLAudioPassThruCapabilitiesSpec.m in Sources */, + 162E83681A9BDE8B00906325 /* SDLSpeakResponseSpec.m in Sources */, + 162E83661A9BDE8B00906325 /* SDLShowResponseSpec.m in Sources */, + 162E83221A9BDE8B00906325 /* SDLAddCommandSpec.m in Sources */, + 162E83121A9BDE8B00906325 /* SDLOnButtonPressSpec.m in Sources */, + 162E838D1A9BDE8B00906325 /* SDLStartTimeSpec.m in Sources */, + 162E836E1A9BDE8B00906325 /* SDLUnsubscribeButtonResponseSpec.m in Sources */, + 162E835B1A9BDE8B00906325 /* SDLPerformInteractionResponseSpec.m in Sources */, + 162E832D1A9BDE8B00906325 /* SDLEncodedSyncPDataSpec.m in Sources */, + 5DB92D241AC47B2C00C15BB0 /* SDLHexUtilitySpec.m in Sources */, + 162E83281A9BDE8B00906325 /* SDLDeleteCommandSpec.m in Sources */, + 5DB92D261AC4836F00C15BB0 /* SDLJingleSpec.m in Sources */, + 162E83531A9BDE8B00906325 /* SDLDiagnosticMessageResponseSpec.m in Sources */, + 162E83671A9BDE8B00906325 /* SDLSliderResponseSpec.m in Sources */, + 162E836C1A9BDE8B00906325 /* SDLSystemRequestResponseSpec.m in Sources */, + 162E833C1A9BDE8B00906325 /* SDLSetMediaClockTimerSpec.m in Sources */, + 162E83061A9BDE8B00906325 /* SDLVehicleDataEventStatusSpec.m in Sources */, + 5DEE55C01B8509CB004F0D0F /* SDLURLRequestTaskSpec.m in Sources */, + 162E83911A9BDE8B00906325 /* SDLTouchCoordSpec.m in Sources */, + 162E832B1A9BDE8B00906325 /* SDLDeleteSubMenuSpec.m in Sources */, + 162E83411A9BDE8B00906325 /* SDLSubscribeButtonSpec.m in Sources */, + 5D59DD471B14FDEE00BE744D /* SDLLockScreenManagerSpec.m in Sources */, + 162E82F31A9BDE8B00906325 /* SDLPrerecordedSpeechSpec.m in Sources */, + 162E83691A9BDE8B00906325 /* SDLSubscribeButtonResponseSpec.m in Sources */, + 162E83591A9BDE8B00906325 /* SDLListFilesResponseSpec.m in Sources */, + 162E832A1A9BDE8B00906325 /* SDLDeleteInteractionChoiceSetSpec.m in Sources */, + 162E839D1A9BDE8B00906325 /* SDLRPCResponseSpec.m in Sources */, + 162E82E51A9BDE8B00906325 /* SDLImageTypeSpec.m in Sources */, + 162E83421A9BDE8B00906325 /* SDLSubscribeVehicleDataSpec.m in Sources */, + 162E83811A9BDE8B00906325 /* SDLImageFieldSpec.m in Sources */, + 162E834F1A9BDE8B00906325 /* SDLDeleteCommandResponseSpec.m in Sources */, + 162E83231A9BDE8B00906325 /* SDLAddSubMenuSpec.m in Sources */, + 162E82F21A9BDE8B00906325 /* SDLPredefinedLayoutSpec.m in Sources */, + 162E83521A9BDE8B00906325 /* SDLDeleteSubMenuResponseSpec.m in Sources */, + 162E82E91A9BDE8B00906325 /* SDLKeypressModeSpec.m in Sources */, + 162E83211A9BDE8B00906325 /* SDLRPCPayloadSpec.m in Sources */, + 162E83851A9BDE8B00906325 /* SDLMyKeySpec.m in Sources */, + 162E83941A9BDE8B00906325 /* SDLTTSChunkSpec.m in Sources */, + 162E82DC1A9BDE8B00906325 /* SDLEmergencyEventTypeSpec.m in Sources */, + 162E82CE1A9BDE8A00906325 /* SDLAudioTypeSpec.m in Sources */, + 162E831C1A9BDE8B00906325 /* SDLOnSyncPDataSpec.m in Sources */, + 162E83341A9BDE8B00906325 /* SDLPutFileSpec.m in Sources */, + 162E837A1A9BDE8B00906325 /* SDLDIDResult.m in Sources */, + 162E83171A9BDE8B00906325 /* SDLOnHMIStatusSpec.m in Sources */, + 5DE372A41ACB336600849FAA /* SDLHMICapabilitiesSpec.m in Sources */, + 162E82F71A9BDE8B00906325 /* SDLResultSpec.m in Sources */, + 1680B1141A9CD7AD00DBD79E /* SDLV1ProtocolHeaderSpec.m in Sources */, + 1680B1161A9CD7AD00DBD79E /* SDLProtocolMessageSpec.m in Sources */, + 162E83771A9BDE8B00906325 /* SDLClusterModeStatusSpec.m in Sources */, + 162E83981A9BDE8B00906325 /* SDLVrHelpItemSpec.m in Sources */, + 162E83831A9BDE8B00906325 /* SDLKeyboardPropertiesSpec.m in Sources */, + 162E82D11A9BDE8A00906325 /* SDLButtonNameSpec.m in Sources */, + 162E839E1A9BDE8B00906325 /* SDLRPCStructSpec.m in Sources */, + 162E83291A9BDE8B00906325 /* SDLDeleteFileSpec.m in Sources */, + 1680B11D1A9CD7AD00DBD79E /* SDLProtocolMessageDisassemblerSpec.m in Sources */, + 162E838E1A9BDE8B00906325 /* SDLSyncMsgVersionSpec.m in Sources */, + 162E82DA1A9BDE8B00906325 /* SDLDriverDistractionStateSpec.m in Sources */, + 162E83631A9BDE8B00906325 /* SDLSetGlobalPropertiesResponseSpec.m in Sources */, + 162E837B1A9BDE8B00906325 /* SDLDisplayCapabilitiesSpec.m in Sources */, + 162E82DE1A9BDE8B00906325 /* SDLFuelCutoffStatusSpec.m in Sources */, + 162E83271A9BDE8B00906325 /* SDLCreateInteractionChoiceSetSpec.m in Sources */, + 162E83111A9BDE8B00906325 /* SDLOnButtonEventSpec.m in Sources */, + 162E82FA1A9BDE8B00906325 /* SDLSoftButtonTypeSpec.m in Sources */, + 162E83751A9BDE8B00906325 /* SDLButtonCapabilitiesSpec.m in Sources */, + 162E83151A9BDE8B00906325 /* SDLOnEncodedSyncPDataSpec.m in Sources */, + 162E83261A9BDE8B00906325 /* SDLChangeRegistrationSpec.m in Sources */, + 162E82D21A9BDE8A00906325 /* SDLButtonPressModeSpec.m in Sources */, + 162E82D71A9BDE8A00906325 /* SDLDeviceLevelStatusSpec.m in Sources */, + 162E83841A9BDE8B00906325 /* SDLMenuParamsSpec.m in Sources */, + 162E83071A9BDE8B00906325 /* SDLVehicleDataNotificationStatusSpec.m in Sources */, + 162E83361A9BDE8B00906325 /* SDLRegisterAppInterfaceSpec.m in Sources */, + 162E82DD1A9BDE8B00906325 /* SDLFileTypeSpec.m in Sources */, + 162E836A1A9BDE8B00906325 /* SDLSubscribeVehicleDataResponseSpec.m in Sources */, + 162E83761A9BDE8B00906325 /* SDLChoiceSpec.m in Sources */, + 162E83571A9BDE8B00906325 /* SDLGetDTCsResponseSpec.m in Sources */, + 162E83201A9BDE8B00906325 /* SDLOnVehicleDataSpec.m in Sources */, + 162E83141A9BDE8B00906325 /* SDLOnDriverDistractionSpec.m in Sources */, + 162E83371A9BDE8B00906325 /* SDLResetGlobalPropertiesSpec.m in Sources */, + 162E82DF1A9BDE8B00906325 /* SDLGlobalProperySpec.m in Sources */, + 162E82F61A9BDE8B00906325 /* SDLRequestTypeSpec.m in Sources */, + 162E82FB1A9BDE8B00906325 /* SDLSpeechCapabilitiesSpec.m in Sources */, + 162E830D1A9BDE8B00906325 /* SDLWiperStatusSpec.m in Sources */, + 162E832C1A9BDE8B00906325 /* SDLDiagnosticMessageSpec.m in Sources */, + 5DF2BB9D1B94E38A00CE5994 /* SDLURLSessionSpec.m in Sources */, + 162E83381A9BDE8B00906325 /* SDLScrollableMessageSpec.m in Sources */, + 162E82E81A9BDE8B00906325 /* SDLKeyboardLayoutSpec.m in Sources */, + 162E83541A9BDE8B00906325 /* SDLEncodedSyncPDataResponseSpec.m in Sources */, + 162E83161A9BDE8B00906325 /* SDLOnHashChangeSpec.m in Sources */, + 162E82FE1A9BDE8B00906325 /* SDLTBTStateSpec.m in Sources */, + 162E834B1A9BDE8B00906325 /* SDLAlertManeuverResponseSpec.m in Sources */, + 162E833E1A9BDE8B00906325 /* SDLShowSpec.m in Sources */, + 162E83241A9BDE8B00906325 /* SDLAlertManeuverSpec.m in Sources */, + 162E83451A9BDE8B00906325 /* SDLUnregisterAppInterfaceSpec.m in Sources */, + 162E82EF1A9BDE8B00906325 /* SDLPermissionStatusSpec.m in Sources */, + 162E82F01A9BDE8B00906325 /* SDLPowerModeQualificationStatusSpec.m in Sources */, + 162E82CD1A9BDE8A00906325 /* SDLAudioStreamingStateSpec.m in Sources */, + 162E831A1A9BDE8B00906325 /* SDLOnLockScreenStatusSpec.m in Sources */, + 162E83431A9BDE8B00906325 /* SDLSyncPDataSpec.m in Sources */, + 167ED9461A9BCE5D00797BE5 /* SwiftSpec.swift in Sources */, + 162E838B1A9BDE8B00906325 /* SDLSoftButtonCapabilitiesSpec.m in Sources */, + 162E834C1A9BDE8B00906325 /* SDLAlertResponseSpec.m in Sources */, + 1680B11B1A9CD7AD00DBD79E /* SDLFunctionIDSpec.m in Sources */, + 162E83131A9BDE8B00906325 /* SDLOnCommandSpec.m in Sources */, + 162E833A1A9BDE8B00906325 /* SDLSetDisplayLayoutSpec.m in Sources */, + 162E838F1A9BDE8B00906325 /* SDLTextFieldSpec.m in Sources */, + 162E82CA1A9BDE8A00906325 /* SDLAmbientLightStatusSpec.m in Sources */, + 162E83091A9BDE8B00906325 /* SDLVehicleDataStatusSpec.m in Sources */, + 162E83741A9BDE8B00906325 /* SDLBodyInformationSpec.m in Sources */, + 162E83641A9BDE8B00906325 /* SDLSetMediaClockTimerResponseSpec.m in Sources */, + 162E839C1A9BDE8B00906325 /* SDLRPCRequestSpec.m in Sources */, + 5D8B17561AC9E399006A6E1C /* SDLDialNumberSpec.m in Sources */, + 162E833D1A9BDE8B00906325 /* SDLShowConstantTBTSpec.m in Sources */, + 162E83651A9BDE8B00906325 /* SDLShowConstantTBTResponseSpec.m in Sources */, + 162E82F91A9BDE8B00906325 /* SDLSamplingRateSpec.m in Sources */, + 162E82CB1A9BDE8A00906325 /* SDLAppHMITypeSpec.m in Sources */, + 162E83031A9BDE8B00906325 /* SDLTriggerSource.m in Sources */, + 162E82D61A9BDE8A00906325 /* SDLComponentVolumeStatusSpec.m in Sources */, + 162E835C1A9BDE8B00906325 /* SDLPutFileResponseSpec.m in Sources */, + 162E835F1A9BDE8B00906325 /* SDLResetGlobalPropertiesResponseSpec.m in Sources */, + 162E835E1A9BDE8B00906325 /* SDLRegisterAppInterfaceResponseSpec.m in Sources */, + 162E835A1A9BDE8B00906325 /* SDLPerformAudioPassThruResponseSpec.m in Sources */, + 162E83501A9BDE8B00906325 /* SDLDeleteFileResponseSpec.m in Sources */, + 162E83601A9BDE8B00906325 /* SDLScrollableMessageResponseSpec.m in Sources */, + 162E83791A9BDE8B00906325 /* SDLDeviceStatusSpec.m in Sources */, + 162E83821A9BDE8B00906325 /* SDLImageSpec.m in Sources */, + 162E834A1A9BDE8B00906325 /* SDLAddSubMenuResponseSpec.m in Sources */, + 162E830C1A9BDE8B00906325 /* SDLWarningLightStatusSpec.m in Sources */, + 162E82E71A9BDE8B00906325 /* SDLKeyboardEventSpec.m in Sources */, + 162E834E1A9BDE8B00906325 /* SDLCreateInteractionChoiceSetResponseSpec.m in Sources */, + 162E83301A9BDE8B00906325 /* SDLGetVehicleDataSpec.m in Sources */, + 162E833F1A9BDE8B00906325 /* SDLSliderSpec.m in Sources */, + 162E838C1A9BDE8B00906325 /* SDLSoftButtonSpec.m in Sources */, + 162E83191A9BDE8B00906325 /* SDLOnLanguageChangeSpec.m in Sources */, + 162E83611A9BDE8B00906325 /* SDLSetAppIconResponseSpec.m in Sources */, + 162E83471A9BDE8B00906325 /* SDLUnsubscribeVehicleDataSpec.m in Sources */, + 162E839A1A9BDE8B00906325 /* SDLRPCMessageSpec.m in Sources */, + 162E83311A9BDE8B00906325 /* SDLListFilesSpec.m in Sources */, + 5DC978261B7A38640012C2F1 /* SDLGlobalsSpec.m in Sources */, + 162E82FF1A9BDE8B00906325 /* SDLTextAlignmentSpec.m in Sources */, + 162E831F1A9BDE8B00906325 /* SDLOnTouchEventSpec.m in Sources */, + 162E83921A9BDE8B00906325 /* SDLTouchEventCapabilitiesSpec.m in Sources */, + 162E837F1A9BDE8B00906325 /* SDLHeadLampStatusSpec.m in Sources */, + 162E834D1A9BDE8B00906325 /* SDLChangeRegistrationResponseSpec.m in Sources */, + 162E836B1A9BDE8B00906325 /* SDLSyncPDataResponseSpec.m in Sources */, + 162E839B1A9BDE8B00906325 /* SDLRPCNotificationSpec.m in Sources */, + 162E83581A9BDE8B00906325 /* SDLGetVehicleDataResponseSpec.m in Sources */, + 162E831D1A9BDE8B00906325 /* SDLOnSystemRequestSpec.m in Sources */, + 162E835D1A9BDE8B00906325 /* SDLReadDIDResponseSpec.m in Sources */, + 162E82D41A9BDE8A00906325 /* SDLCharacterSetSpec.m in Sources */, + 162E830F1A9BDE8B00906325 /* SDLOnAppInterfaceUnregisteredSpec.m in Sources */, + 162E83971A9BDE8B00906325 /* SDLVehicleTypeSpec.m in Sources */, + 1680B1131A9CD7AD00DBD79E /* SDLProtocolHeaderSpec.m in Sources */, + 162E82D01A9BDE8A00906325 /* SDLButtonEventModeSpec.m in Sources */, + 162E83781A9BDE8B00906325 /* SDLDeviceInfoSpec.m in Sources */, + 162E83391A9BDE8B00906325 /* SDLSetAppIconSpec.m in Sources */, + 162E83011A9BDE8B00906325 /* SDLTimerModeSpec.m in Sources */, + 162E83891A9BDE8B00906325 /* SDLScreenParamsSpec.m in Sources */, + 162E83441A9BDE8B00906325 /* SDLSystemRequestSpec.m in Sources */, + 162E83001A9BDE8B00906325 /* SDLTextFieldNameSpec.m in Sources */, + 162E82FC1A9BDE8B00906325 /* SDLSystemAction.m in Sources */, + 162E82CC1A9BDE8A00906325 /* SDLAppInterfaceUnregisteredReasonSpec.m in Sources */, + 162E83321A9BDE8B00906325 /* SDLPerformAudioPassThruSpec.m in Sources */, + 162E830B1A9BDE8B00906325 /* SDLVrCapabilitiesSpec.m in Sources */, + 162E83081A9BDE8B00906325 /* SDLVehicleDataResultCodeSpec.m in Sources */, + 162E83621A9BDE8B00906325 /* SDLSetDisplayLayoutResponseSpec.m in Sources */, + 162E832E1A9BDE8B00906325 /* SDLEndAudioPassThruSpec.m in Sources */, + 1680B1191A9CD7AD00DBD79E /* SDLV2ProtocolMessageSpec.m in Sources */, + 162E83961A9BDE8B00906325 /* SDLVehicleDataResultSpec.m in Sources */, + 162E83491A9BDE8B00906325 /* SDLAddCommandResponseSpec.m in Sources */, + 162E82F51A9BDE8B00906325 /* SDLPRNDLSpec.m in Sources */, + 1680B1171A9CD7AD00DBD79E /* SDLProtocolSpec.m in Sources */, + 162E836D1A9BDE8B00906325 /* SDLUnregisterAppInterfaceResponseSpec.m in Sources */, + 162E837C1A9BDE8B00906325 /* SDLECallInfoSpec.m in Sources */, + 162E83401A9BDE8B00906325 /* SDLSpeakSpec.m in Sources */, + 5DCF76FC1ACDDB4200BB647B /* SDLSendLocationSpec.m in Sources */, + 162E83561A9BDE8B00906325 /* SDLGenericResponseSpec.m in Sources */, + 162E82D51A9BDE8A00906325 /* SDLCompassDirectionSpec.m in Sources */, + 162E83861A9BDE8B00906325 /* SDLParameterPermissionsSpec.m in Sources */, + 162E831B1A9BDE8B00906325 /* SDLOnPermissionsChangeSpec.m in Sources */, + 162E83711A9BDE8B00906325 /* SDLAirbagStatusSpec.m in Sources */, + 162E82CF1A9BDE8A00906325 /* SDLBitsPerSampleSpec.m in Sources */, + 162E831E1A9BDE8B00906325 /* SDLOnTBTClientStateSpec.m in Sources */, + 162E83351A9BDE8B00906325 /* SDLReadDIDSpec.m in Sources */, + 162E836F1A9BDE8B00906325 /* SDLUnsubscribeVehicleDataResponseSpec.m in Sources */, + 162E82DB1A9BDE8B00906325 /* SDLECallConfirmationStatusSpec.m in Sources */, + 162E82D81A9BDE8A00906325 /* SDLDimensionSpec.m in Sources */, + 162E83731A9BDE8B00906325 /* SDLBeltStatusSpec.m in Sources */, + 162E83551A9BDE8B00906325 /* SDLEndAudioPassThruResponseSpec.m in Sources */, + 162E83251A9BDE8B00906325 /* SDLAlertSpec.m in Sources */, + 162E830A1A9BDE8B00906325 /* SDLVehicleDataTypeSpec.m in Sources */, + 162E82F41A9BDE8B00906325 /* SDLPrimaryAudioSource.m in Sources */, + 162E83461A9BDE8B00906325 /* SDLUnsubscribeButtonSpec.m in Sources */, + 162E82EB1A9BDE8B00906325 /* SDLLayoutModeSpec.m in Sources */, + 1680B1181A9CD7AD00DBD79E /* SDLV1ProtocolMessageSpec.m in Sources */, + 162E82EC1A9BDE8B00906325 /* SDLLockScreenStatusSpec.m in Sources */, + 162E832F1A9BDE8B00906325 /* SDLGetDTCsSpec.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 5D61FA291A84237100846EE7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 5D61FA1B1A84237100846EE7 /* SmartDeviceLink */; + targetProxy = 5D61FA281A84237100846EE7 /* PBXContainerItemProxy */; + }; + 5D61FA2B1A84237100846EE7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 5D4019AE1A76EC350006B0C2 /* SmartDeviceLink-Example */; + targetProxy = 5D61FA2A1A84237100846EE7 /* PBXContainerItemProxy */; + }; + 5D61FA321A84237100846EE7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 5D61FA1B1A84237100846EE7 /* SmartDeviceLink */; + targetProxy = 5D61FA311A84237100846EE7 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 5D0218F71A8E7A7300D1BF62 /* ConnectionTCPTableViewController.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 5D0218F81A8E7A7300D1BF62 /* Base */, + ); + name = ConnectionTCPTableViewController.storyboard; + sourceTree = ""; + }; + 5D0219031A8E9F6D00D1BF62 /* ConnectionIAPTableViewController.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 5D0219041A8E9F6D00D1BF62 /* Base */, + ); + name = ConnectionIAPTableViewController.storyboard; + sourceTree = ""; + }; + 5D4029DF1A76F0760006B0C2 /* LaunchScreen.xib */ = { + isa = PBXVariantGroup; + children = ( + 5D4029E01A76F0760006B0C2 /* Base */, + ); + name = LaunchScreen.xib; + sourceTree = ""; + }; + 5D4029E11A76F0760006B0C2 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 5D4029E21A76F0760006B0C2 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 5D4019D01A76EC350006B0C2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 5D4019D11A76EC350006B0C2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 5D4019D31A76EC350006B0C2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_IDENTITY = "iPhone Developer"; + INFOPLIST_FILE = "$(SRCROOT)/SmartDeviceLink_Example/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.smartdevicelink.SDLTestApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 5D4019D41A76EC350006B0C2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_IDENTITY = "iPhone Developer"; + INFOPLIST_FILE = "$(SRCROOT)/SmartDeviceLink_Example/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.smartdevicelink.SDLTestApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + 5D61FA361A84237100846EE7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES; + CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND = YES; + CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES; + CLANG_STATIC_ANALYZER_MODE = deep; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = NO; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Carthage/Build/iOS", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = SmartDeviceLink/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + LIBRARY_SEARCH_PATHS = "$(inherited)"; + PRODUCT_BUNDLE_IDENTIFIER = com.smartdevicelink.smartdevicelink; + PRODUCT_NAME = "$(TARGET_NAME)"; + RUN_CLANG_STATIC_ANALYZER = YES; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 5D61FA371A84237100846EE7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES; + CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND = YES; + CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES; + CLANG_STATIC_ANALYZER_MODE = deep; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = NO; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Carthage/Build/iOS", + ); + INFOPLIST_FILE = SmartDeviceLink/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + LIBRARY_SEARCH_PATHS = "$(inherited)"; + PRODUCT_BUNDLE_IDENTIFIER = com.smartdevicelink.smartdevicelink; + PRODUCT_NAME = "$(TARGET_NAME)"; + RUN_CLANG_STATIC_ANALYZER = YES; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 5D61FA391A84237100846EE7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + EMBEDDED_CONTENT_CONTAINS_SWIFT = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + "$(PROJECT_DIR)/Carthage/Build/iOS", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + ); + INFOPLIST_FILE = SmartDeviceLinkTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-framework", + XCTest, + "-all_load", + "-ObjC", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.smartdevicelink.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 5D61FA3A1A84237100846EE7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + EMBEDDED_CONTENT_CONTAINS_SWIFT = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + "$(PROJECT_DIR)/Carthage/Build/iOS", + ); + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + ); + INFOPLIST_FILE = SmartDeviceLinkTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-framework", + XCTest, + "-all_load", + "-ObjC", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.smartdevicelink.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 5D4019AA1A76EC350006B0C2 /* Build configuration list for PBXProject "SmartDeviceLink-iOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 5D4019D01A76EC350006B0C2 /* Debug */, + 5D4019D11A76EC350006B0C2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 5D4019D21A76EC350006B0C2 /* Build configuration list for PBXNativeTarget "SmartDeviceLink-Example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 5D4019D31A76EC350006B0C2 /* Debug */, + 5D4019D41A76EC350006B0C2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 5D61FA351A84237100846EE7 /* Build configuration list for PBXNativeTarget "SmartDeviceLink" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 5D61FA361A84237100846EE7 /* Debug */, + 5D61FA371A84237100846EE7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 5D61FA381A84237100846EE7 /* Build configuration list for PBXNativeTarget "SmartDeviceLinkTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 5D61FA391A84237100846EE7 /* Debug */, + 5D61FA3A1A84237100846EE7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 5D4019A71A76EC350006B0C2 /* Project object */; +} diff --git a/SmartDeviceLink-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SmartDeviceLink-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..c7e82e3f6 --- /dev/null +++ b/SmartDeviceLink-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/SmartDeviceLink-iOS.xcodeproj/xcshareddata/xcschemes/SmartDeviceLink.xcscheme b/SmartDeviceLink-iOS.xcodeproj/xcshareddata/xcschemes/SmartDeviceLink.xcscheme new file mode 100644 index 000000000..19549fa11 --- /dev/null +++ b/SmartDeviceLink-iOS.xcodeproj/xcshareddata/xcschemes/SmartDeviceLink.xcscheme @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SmartDeviceLink-iOS/Cartfile.private b/SmartDeviceLink-iOS/Cartfile.private deleted file mode 100644 index 3431c663e..000000000 --- a/SmartDeviceLink-iOS/Cartfile.private +++ /dev/null @@ -1,4 +0,0 @@ -github "Quick/Quick" ~> 0.9 -github "Quick/Nimble" ~> 4.0 -github "AliSoftware/OHHTTPStubs" ~> 5.0 -github "erikdoe/ocmock" ~> 3.3 diff --git a/SmartDeviceLink-iOS/Cartfile.resolved b/SmartDeviceLink-iOS/Cartfile.resolved deleted file mode 100644 index b4e50e149..000000000 --- a/SmartDeviceLink-iOS/Cartfile.resolved +++ /dev/null @@ -1,4 +0,0 @@ -github "Quick/Nimble" "v4.0.1" -github "AliSoftware/OHHTTPStubs" "5.0.0" -github "Quick/Quick" "v0.9.2" -github "erikdoe/ocmock" "v3.3" diff --git a/SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj/project.pbxproj b/SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj/project.pbxproj deleted file mode 100644 index 9e1212d82..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj/project.pbxproj +++ /dev/null @@ -1,4244 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 162E81CA1A9BDD3F00906325 /* Nimble.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 162E81C81A9BDD3F00906325 /* Nimble.framework */; }; - 162E81CB1A9BDD3F00906325 /* Quick.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 162E81C91A9BDD3F00906325 /* Quick.framework */; }; - 162E81CF1A9BDDD800906325 /* Nimble.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 162E81C81A9BDD3F00906325 /* Nimble.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 162E81D01A9BDDD800906325 /* Quick.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 162E81C91A9BDD3F00906325 /* Quick.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 162E82CA1A9BDE8A00906325 /* SDLAmbientLightStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E21A9BDE8A00906325 /* SDLAmbientLightStatusSpec.m */; }; - 162E82CB1A9BDE8A00906325 /* SDLAppHMITypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E31A9BDE8A00906325 /* SDLAppHMITypeSpec.m */; }; - 162E82CC1A9BDE8A00906325 /* SDLAppInterfaceUnregisteredReasonSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E41A9BDE8A00906325 /* SDLAppInterfaceUnregisteredReasonSpec.m */; }; - 162E82CD1A9BDE8A00906325 /* SDLAudioStreamingStateSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E51A9BDE8A00906325 /* SDLAudioStreamingStateSpec.m */; }; - 162E82CE1A9BDE8A00906325 /* SDLAudioTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E61A9BDE8A00906325 /* SDLAudioTypeSpec.m */; }; - 162E82CF1A9BDE8A00906325 /* SDLBitsPerSampleSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E71A9BDE8A00906325 /* SDLBitsPerSampleSpec.m */; }; - 162E82D01A9BDE8A00906325 /* SDLButtonEventModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E81A9BDE8A00906325 /* SDLButtonEventModeSpec.m */; }; - 162E82D11A9BDE8A00906325 /* SDLButtonNameSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81E91A9BDE8A00906325 /* SDLButtonNameSpec.m */; }; - 162E82D21A9BDE8A00906325 /* SDLButtonPressModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81EA1A9BDE8A00906325 /* SDLButtonPressModeSpec.m */; }; - 162E82D31A9BDE8A00906325 /* SDLCarModeStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81EB1A9BDE8A00906325 /* SDLCarModeStatusSpec.m */; }; - 162E82D41A9BDE8A00906325 /* SDLCharacterSetSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81EC1A9BDE8A00906325 /* SDLCharacterSetSpec.m */; }; - 162E82D51A9BDE8A00906325 /* SDLCompassDirectionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81ED1A9BDE8A00906325 /* SDLCompassDirectionSpec.m */; }; - 162E82D61A9BDE8A00906325 /* SDLComponentVolumeStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81EE1A9BDE8A00906325 /* SDLComponentVolumeStatusSpec.m */; }; - 162E82D71A9BDE8A00906325 /* SDLDeviceLevelStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81EF1A9BDE8A00906325 /* SDLDeviceLevelStatusSpec.m */; }; - 162E82D81A9BDE8A00906325 /* SDLDimensionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F01A9BDE8A00906325 /* SDLDimensionSpec.m */; }; - 162E82D91A9BDE8A00906325 /* SDLDisplayTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F11A9BDE8A00906325 /* SDLDisplayTypeSpec.m */; }; - 162E82DA1A9BDE8B00906325 /* SDLDriverDistractionStateSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F21A9BDE8A00906325 /* SDLDriverDistractionStateSpec.m */; }; - 162E82DB1A9BDE8B00906325 /* SDLECallConfirmationStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F31A9BDE8A00906325 /* SDLECallConfirmationStatusSpec.m */; }; - 162E82DC1A9BDE8B00906325 /* SDLEmergencyEventTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F41A9BDE8A00906325 /* SDLEmergencyEventTypeSpec.m */; }; - 162E82DD1A9BDE8B00906325 /* SDLFileTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F51A9BDE8A00906325 /* SDLFileTypeSpec.m */; }; - 162E82DE1A9BDE8B00906325 /* SDLFuelCutoffStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F61A9BDE8A00906325 /* SDLFuelCutoffStatusSpec.m */; }; - 162E82DF1A9BDE8B00906325 /* SDLGlobalProperySpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F71A9BDE8A00906325 /* SDLGlobalProperySpec.m */; }; - 162E82E01A9BDE8B00906325 /* SDLHMILevelSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F81A9BDE8A00906325 /* SDLHMILevelSpec.m */; }; - 162E82E11A9BDE8B00906325 /* SDLHMIZoneCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81F91A9BDE8A00906325 /* SDLHMIZoneCapabilitiesSpec.m */; }; - 162E82E21A9BDE8B00906325 /* SDLIgnitionStableStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81FA1A9BDE8A00906325 /* SDLIgnitionStableStatusSpec.m */; }; - 162E82E31A9BDE8B00906325 /* SDLIgnitionStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81FB1A9BDE8A00906325 /* SDLIgnitionStatusSpec.m */; }; - 162E82E41A9BDE8B00906325 /* SDLImageFieldNameSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81FC1A9BDE8A00906325 /* SDLImageFieldNameSpec.m */; }; - 162E82E51A9BDE8B00906325 /* SDLImageTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81FD1A9BDE8A00906325 /* SDLImageTypeSpec.m */; }; - 162E82E61A9BDE8B00906325 /* SDLInteractionModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81FE1A9BDE8A00906325 /* SDLInteractionModeSpec.m */; }; - 162E82E71A9BDE8B00906325 /* SDLKeyboardEventSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E81FF1A9BDE8A00906325 /* SDLKeyboardEventSpec.m */; }; - 162E82E81A9BDE8B00906325 /* SDLKeyboardLayoutSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82001A9BDE8A00906325 /* SDLKeyboardLayoutSpec.m */; }; - 162E82E91A9BDE8B00906325 /* SDLKeypressModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82011A9BDE8A00906325 /* SDLKeypressModeSpec.m */; }; - 162E82EA1A9BDE8B00906325 /* SDLLanguageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82021A9BDE8A00906325 /* SDLLanguageSpec.m */; }; - 162E82EB1A9BDE8B00906325 /* SDLLayoutModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82031A9BDE8A00906325 /* SDLLayoutModeSpec.m */; }; - 162E82EC1A9BDE8B00906325 /* SDLLockScreenStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82041A9BDE8A00906325 /* SDLLockScreenStatusSpec.m */; }; - 162E82ED1A9BDE8B00906325 /* SDLMaintenanceModeStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82051A9BDE8A00906325 /* SDLMaintenanceModeStatusSpec.m */; }; - 162E82EE1A9BDE8B00906325 /* SDLMediaClockFormatSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82061A9BDE8A00906325 /* SDLMediaClockFormatSpec.m */; }; - 162E82EF1A9BDE8B00906325 /* SDLPermissionStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82071A9BDE8A00906325 /* SDLPermissionStatusSpec.m */; }; - 162E82F01A9BDE8B00906325 /* SDLPowerModeQualificationStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82081A9BDE8A00906325 /* SDLPowerModeQualificationStatusSpec.m */; }; - 162E82F11A9BDE8B00906325 /* SDLPowerModeStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82091A9BDE8A00906325 /* SDLPowerModeStatusSpec.m */; }; - 162E82F21A9BDE8B00906325 /* SDLPredefinedLayoutSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E820A1A9BDE8A00906325 /* SDLPredefinedLayoutSpec.m */; }; - 162E82F31A9BDE8B00906325 /* SDLPrerecordedSpeechSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E820B1A9BDE8A00906325 /* SDLPrerecordedSpeechSpec.m */; }; - 162E82F41A9BDE8B00906325 /* SDLPrimaryAudioSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E820C1A9BDE8A00906325 /* SDLPrimaryAudioSource.m */; }; - 162E82F51A9BDE8B00906325 /* SDLPRNDLSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E820D1A9BDE8A00906325 /* SDLPRNDLSpec.m */; }; - 162E82F61A9BDE8B00906325 /* SDLRequestTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E820E1A9BDE8A00906325 /* SDLRequestTypeSpec.m */; }; - 162E82F71A9BDE8B00906325 /* SDLResultSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E820F1A9BDE8A00906325 /* SDLResultSpec.m */; }; - 162E82F91A9BDE8B00906325 /* SDLSamplingRateSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82111A9BDE8A00906325 /* SDLSamplingRateSpec.m */; }; - 162E82FA1A9BDE8B00906325 /* SDLSoftButtonTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82121A9BDE8A00906325 /* SDLSoftButtonTypeSpec.m */; }; - 162E82FB1A9BDE8B00906325 /* SDLSpeechCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82131A9BDE8A00906325 /* SDLSpeechCapabilitiesSpec.m */; }; - 162E82FC1A9BDE8B00906325 /* SDLSystemAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82141A9BDE8A00906325 /* SDLSystemAction.m */; }; - 162E82FD1A9BDE8B00906325 /* SDLSystemContextSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82151A9BDE8A00906325 /* SDLSystemContextSpec.m */; }; - 162E82FE1A9BDE8B00906325 /* SDLTBTStateSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82161A9BDE8A00906325 /* SDLTBTStateSpec.m */; }; - 162E82FF1A9BDE8B00906325 /* SDLTextAlignmentSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82171A9BDE8A00906325 /* SDLTextAlignmentSpec.m */; }; - 162E83001A9BDE8B00906325 /* SDLTextFieldNameSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82181A9BDE8A00906325 /* SDLTextFieldNameSpec.m */; }; - 162E83011A9BDE8B00906325 /* SDLTimerModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82191A9BDE8A00906325 /* SDLTimerModeSpec.m */; }; - 162E83021A9BDE8B00906325 /* SDLTouchTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E821A1A9BDE8A00906325 /* SDLTouchTypeSpec.m */; }; - 162E83031A9BDE8B00906325 /* SDLTriggerSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E821B1A9BDE8A00906325 /* SDLTriggerSource.m */; }; - 162E83041A9BDE8B00906325 /* SDLUpdateModeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E821C1A9BDE8A00906325 /* SDLUpdateModeSpec.m */; }; - 162E83051A9BDE8B00906325 /* SDLVehicleDataActiveStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E821D1A9BDE8A00906325 /* SDLVehicleDataActiveStatusSpec.m */; }; - 162E83061A9BDE8B00906325 /* SDLVehicleDataEventStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E821E1A9BDE8A00906325 /* SDLVehicleDataEventStatusSpec.m */; }; - 162E83071A9BDE8B00906325 /* SDLVehicleDataNotificationStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E821F1A9BDE8A00906325 /* SDLVehicleDataNotificationStatusSpec.m */; }; - 162E83081A9BDE8B00906325 /* SDLVehicleDataResultCodeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82201A9BDE8A00906325 /* SDLVehicleDataResultCodeSpec.m */; }; - 162E83091A9BDE8B00906325 /* SDLVehicleDataStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82211A9BDE8A00906325 /* SDLVehicleDataStatusSpec.m */; }; - 162E830A1A9BDE8B00906325 /* SDLVehicleDataTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82221A9BDE8A00906325 /* SDLVehicleDataTypeSpec.m */; }; - 162E830B1A9BDE8B00906325 /* SDLVrCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82231A9BDE8A00906325 /* SDLVrCapabilitiesSpec.m */; }; - 162E830C1A9BDE8B00906325 /* SDLWarningLightStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82241A9BDE8A00906325 /* SDLWarningLightStatusSpec.m */; }; - 162E830D1A9BDE8B00906325 /* SDLWiperStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82251A9BDE8A00906325 /* SDLWiperStatusSpec.m */; }; - 162E830E1A9BDE8B00906325 /* SDLRPCRequestFactorySpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82271A9BDE8A00906325 /* SDLRPCRequestFactorySpec.m */; }; - 162E830F1A9BDE8B00906325 /* SDLOnAppInterfaceUnregisteredSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82291A9BDE8A00906325 /* SDLOnAppInterfaceUnregisteredSpec.m */; }; - 162E83101A9BDE8B00906325 /* SDLOnAudioPassThruSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E822A1A9BDE8A00906325 /* SDLOnAudioPassThruSpec.m */; }; - 162E83111A9BDE8B00906325 /* SDLOnButtonEventSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E822B1A9BDE8A00906325 /* SDLOnButtonEventSpec.m */; }; - 162E83121A9BDE8B00906325 /* SDLOnButtonPressSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E822C1A9BDE8A00906325 /* SDLOnButtonPressSpec.m */; }; - 162E83131A9BDE8B00906325 /* SDLOnCommandSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E822D1A9BDE8A00906325 /* SDLOnCommandSpec.m */; }; - 162E83141A9BDE8B00906325 /* SDLOnDriverDistractionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E822E1A9BDE8A00906325 /* SDLOnDriverDistractionSpec.m */; }; - 162E83151A9BDE8B00906325 /* SDLOnEncodedSyncPDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E822F1A9BDE8A00906325 /* SDLOnEncodedSyncPDataSpec.m */; }; - 162E83161A9BDE8B00906325 /* SDLOnHashChangeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82301A9BDE8A00906325 /* SDLOnHashChangeSpec.m */; }; - 162E83171A9BDE8B00906325 /* SDLOnHMIStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82311A9BDE8A00906325 /* SDLOnHMIStatusSpec.m */; }; - 162E83181A9BDE8B00906325 /* SDLOnKeyboardInputSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82321A9BDE8A00906325 /* SDLOnKeyboardInputSpec.m */; }; - 162E83191A9BDE8B00906325 /* SDLOnLanguageChangeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82331A9BDE8A00906325 /* SDLOnLanguageChangeSpec.m */; }; - 162E831A1A9BDE8B00906325 /* SDLOnLockScreenStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82341A9BDE8A00906325 /* SDLOnLockScreenStatusSpec.m */; }; - 162E831B1A9BDE8B00906325 /* SDLOnPermissionsChangeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82351A9BDE8A00906325 /* SDLOnPermissionsChangeSpec.m */; }; - 162E831C1A9BDE8B00906325 /* SDLOnSyncPDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82361A9BDE8A00906325 /* SDLOnSyncPDataSpec.m */; }; - 162E831D1A9BDE8B00906325 /* SDLOnSystemRequestSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82371A9BDE8A00906325 /* SDLOnSystemRequestSpec.m */; }; - 162E831E1A9BDE8B00906325 /* SDLOnTBTClientStateSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82381A9BDE8A00906325 /* SDLOnTBTClientStateSpec.m */; }; - 162E831F1A9BDE8B00906325 /* SDLOnTouchEventSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82391A9BDE8A00906325 /* SDLOnTouchEventSpec.m */; }; - 162E83201A9BDE8B00906325 /* SDLOnVehicleDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E823A1A9BDE8A00906325 /* SDLOnVehicleDataSpec.m */; }; - 162E83211A9BDE8B00906325 /* SDLRPCPayloadSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E823C1A9BDE8A00906325 /* SDLRPCPayloadSpec.m */; }; - 162E83221A9BDE8B00906325 /* SDLAddCommandSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E823E1A9BDE8A00906325 /* SDLAddCommandSpec.m */; }; - 162E83231A9BDE8B00906325 /* SDLAddSubMenuSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E823F1A9BDE8A00906325 /* SDLAddSubMenuSpec.m */; }; - 162E83241A9BDE8B00906325 /* SDLAlertManeuverSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82401A9BDE8A00906325 /* SDLAlertManeuverSpec.m */; }; - 162E83251A9BDE8B00906325 /* SDLAlertSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82411A9BDE8A00906325 /* SDLAlertSpec.m */; }; - 162E83261A9BDE8B00906325 /* SDLChangeRegistrationSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82421A9BDE8A00906325 /* SDLChangeRegistrationSpec.m */; }; - 162E83271A9BDE8B00906325 /* SDLCreateInteractionChoiceSetSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82431A9BDE8A00906325 /* SDLCreateInteractionChoiceSetSpec.m */; }; - 162E83281A9BDE8B00906325 /* SDLDeleteCommandSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82441A9BDE8A00906325 /* SDLDeleteCommandSpec.m */; }; - 162E83291A9BDE8B00906325 /* SDLDeleteFileSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82451A9BDE8A00906325 /* SDLDeleteFileSpec.m */; }; - 162E832A1A9BDE8B00906325 /* SDLDeleteInteractionChoiceSetSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82461A9BDE8A00906325 /* SDLDeleteInteractionChoiceSetSpec.m */; }; - 162E832B1A9BDE8B00906325 /* SDLDeleteSubMenuSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82471A9BDE8A00906325 /* SDLDeleteSubMenuSpec.m */; }; - 162E832C1A9BDE8B00906325 /* SDLDiagnosticMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82481A9BDE8A00906325 /* SDLDiagnosticMessageSpec.m */; }; - 162E832D1A9BDE8B00906325 /* SDLEncodedSyncPDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82491A9BDE8A00906325 /* SDLEncodedSyncPDataSpec.m */; }; - 162E832E1A9BDE8B00906325 /* SDLEndAudioPassThruSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E824A1A9BDE8A00906325 /* SDLEndAudioPassThruSpec.m */; }; - 162E832F1A9BDE8B00906325 /* SDLGetDTCsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E824B1A9BDE8A00906325 /* SDLGetDTCsSpec.m */; }; - 162E83301A9BDE8B00906325 /* SDLGetVehicleDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E824C1A9BDE8A00906325 /* SDLGetVehicleDataSpec.m */; }; - 162E83311A9BDE8B00906325 /* SDLListFilesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E824D1A9BDE8A00906325 /* SDLListFilesSpec.m */; }; - 162E83321A9BDE8B00906325 /* SDLPerformAudioPassThruSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E824E1A9BDE8A00906325 /* SDLPerformAudioPassThruSpec.m */; }; - 162E83331A9BDE8B00906325 /* SDLPerformInteractionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E824F1A9BDE8A00906325 /* SDLPerformInteractionSpec.m */; }; - 162E83341A9BDE8B00906325 /* SDLPutFileSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82501A9BDE8A00906325 /* SDLPutFileSpec.m */; }; - 162E83351A9BDE8B00906325 /* SDLReadDIDSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82511A9BDE8A00906325 /* SDLReadDIDSpec.m */; }; - 162E83361A9BDE8B00906325 /* SDLRegisterAppInterfaceSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82521A9BDE8A00906325 /* SDLRegisterAppInterfaceSpec.m */; }; - 162E83371A9BDE8B00906325 /* SDLResetGlobalPropertiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82531A9BDE8A00906325 /* SDLResetGlobalPropertiesSpec.m */; }; - 162E83381A9BDE8B00906325 /* SDLScrollableMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82541A9BDE8A00906325 /* SDLScrollableMessageSpec.m */; }; - 162E83391A9BDE8B00906325 /* SDLSetAppIconSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82551A9BDE8A00906325 /* SDLSetAppIconSpec.m */; }; - 162E833A1A9BDE8B00906325 /* SDLSetDisplayLayoutSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82561A9BDE8A00906325 /* SDLSetDisplayLayoutSpec.m */; }; - 162E833B1A9BDE8B00906325 /* SDLSetGlobalPropertiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82571A9BDE8A00906325 /* SDLSetGlobalPropertiesSpec.m */; }; - 162E833C1A9BDE8B00906325 /* SDLSetMediaClockTimerSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82581A9BDE8A00906325 /* SDLSetMediaClockTimerSpec.m */; }; - 162E833D1A9BDE8B00906325 /* SDLShowConstantTBTSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82591A9BDE8A00906325 /* SDLShowConstantTBTSpec.m */; }; - 162E833E1A9BDE8B00906325 /* SDLShowSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E825A1A9BDE8A00906325 /* SDLShowSpec.m */; }; - 162E833F1A9BDE8B00906325 /* SDLSliderSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E825B1A9BDE8A00906325 /* SDLSliderSpec.m */; }; - 162E83401A9BDE8B00906325 /* SDLSpeakSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E825C1A9BDE8A00906325 /* SDLSpeakSpec.m */; }; - 162E83411A9BDE8B00906325 /* SDLSubscribeButtonSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E825D1A9BDE8A00906325 /* SDLSubscribeButtonSpec.m */; }; - 162E83421A9BDE8B00906325 /* SDLSubscribeVehicleDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E825E1A9BDE8A00906325 /* SDLSubscribeVehicleDataSpec.m */; }; - 162E83431A9BDE8B00906325 /* SDLSyncPDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E825F1A9BDE8A00906325 /* SDLSyncPDataSpec.m */; }; - 162E83441A9BDE8B00906325 /* SDLSystemRequestSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82601A9BDE8A00906325 /* SDLSystemRequestSpec.m */; }; - 162E83451A9BDE8B00906325 /* SDLUnregisterAppInterfaceSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82611A9BDE8A00906325 /* SDLUnregisterAppInterfaceSpec.m */; }; - 162E83461A9BDE8B00906325 /* SDLUnsubscribeButtonSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82621A9BDE8A00906325 /* SDLUnsubscribeButtonSpec.m */; }; - 162E83471A9BDE8B00906325 /* SDLUnsubscribeVehicleDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82631A9BDE8A00906325 /* SDLUnsubscribeVehicleDataSpec.m */; }; - 162E83481A9BDE8B00906325 /* SDLUpdateTurnListSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82641A9BDE8A00906325 /* SDLUpdateTurnListSpec.m */; }; - 162E83491A9BDE8B00906325 /* SDLAddCommandResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82661A9BDE8A00906325 /* SDLAddCommandResponseSpec.m */; }; - 162E834A1A9BDE8B00906325 /* SDLAddSubMenuResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82671A9BDE8A00906325 /* SDLAddSubMenuResponseSpec.m */; }; - 162E834B1A9BDE8B00906325 /* SDLAlertManeuverResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82681A9BDE8A00906325 /* SDLAlertManeuverResponseSpec.m */; }; - 162E834C1A9BDE8B00906325 /* SDLAlertResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82691A9BDE8A00906325 /* SDLAlertResponseSpec.m */; }; - 162E834D1A9BDE8B00906325 /* SDLChangeRegistrationResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E826A1A9BDE8A00906325 /* SDLChangeRegistrationResponseSpec.m */; }; - 162E834E1A9BDE8B00906325 /* SDLCreateInteractionChoiceSetResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E826B1A9BDE8A00906325 /* SDLCreateInteractionChoiceSetResponseSpec.m */; }; - 162E834F1A9BDE8B00906325 /* SDLDeleteCommandResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E826C1A9BDE8A00906325 /* SDLDeleteCommandResponseSpec.m */; }; - 162E83501A9BDE8B00906325 /* SDLDeleteFileResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E826D1A9BDE8A00906325 /* SDLDeleteFileResponseSpec.m */; }; - 162E83511A9BDE8B00906325 /* SDLDeleteInteractionChoiceSetResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E826E1A9BDE8A00906325 /* SDLDeleteInteractionChoiceSetResponseSpec.m */; }; - 162E83521A9BDE8B00906325 /* SDLDeleteSubMenuResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E826F1A9BDE8A00906325 /* SDLDeleteSubMenuResponseSpec.m */; }; - 162E83531A9BDE8B00906325 /* SDLDiagnosticMessageResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82701A9BDE8A00906325 /* SDLDiagnosticMessageResponseSpec.m */; }; - 162E83541A9BDE8B00906325 /* SDLEncodedSyncPDataResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82711A9BDE8A00906325 /* SDLEncodedSyncPDataResponseSpec.m */; }; - 162E83551A9BDE8B00906325 /* SDLEndAudioPassThruResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82721A9BDE8A00906325 /* SDLEndAudioPassThruResponseSpec.m */; }; - 162E83561A9BDE8B00906325 /* SDLGenericResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82731A9BDE8A00906325 /* SDLGenericResponseSpec.m */; }; - 162E83571A9BDE8B00906325 /* SDLGetDTCsResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82741A9BDE8A00906325 /* SDLGetDTCsResponseSpec.m */; }; - 162E83581A9BDE8B00906325 /* SDLGetVehicleDataResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82751A9BDE8A00906325 /* SDLGetVehicleDataResponseSpec.m */; }; - 162E83591A9BDE8B00906325 /* SDLListFilesResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82761A9BDE8A00906325 /* SDLListFilesResponseSpec.m */; }; - 162E835A1A9BDE8B00906325 /* SDLPerformAudioPassThruResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82771A9BDE8A00906325 /* SDLPerformAudioPassThruResponseSpec.m */; }; - 162E835B1A9BDE8B00906325 /* SDLPerformInteractionResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82781A9BDE8A00906325 /* SDLPerformInteractionResponseSpec.m */; }; - 162E835C1A9BDE8B00906325 /* SDLPutFileResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82791A9BDE8A00906325 /* SDLPutFileResponseSpec.m */; }; - 162E835D1A9BDE8B00906325 /* SDLReadDIDResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E827A1A9BDE8A00906325 /* SDLReadDIDResponseSpec.m */; }; - 162E835E1A9BDE8B00906325 /* SDLRegisterAppInterfaceResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E827B1A9BDE8A00906325 /* SDLRegisterAppInterfaceResponseSpec.m */; }; - 162E835F1A9BDE8B00906325 /* SDLResetGlobalPropertiesResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E827C1A9BDE8A00906325 /* SDLResetGlobalPropertiesResponseSpec.m */; }; - 162E83601A9BDE8B00906325 /* SDLScrollableMessageResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E827D1A9BDE8A00906325 /* SDLScrollableMessageResponseSpec.m */; }; - 162E83611A9BDE8B00906325 /* SDLSetAppIconResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E827E1A9BDE8A00906325 /* SDLSetAppIconResponseSpec.m */; }; - 162E83621A9BDE8B00906325 /* SDLSetDisplayLayoutResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E827F1A9BDE8A00906325 /* SDLSetDisplayLayoutResponseSpec.m */; }; - 162E83631A9BDE8B00906325 /* SDLSetGlobalPropertiesResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82801A9BDE8A00906325 /* SDLSetGlobalPropertiesResponseSpec.m */; }; - 162E83641A9BDE8B00906325 /* SDLSetMediaClockTimerResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82811A9BDE8A00906325 /* SDLSetMediaClockTimerResponseSpec.m */; }; - 162E83651A9BDE8B00906325 /* SDLShowConstantTBTResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82821A9BDE8A00906325 /* SDLShowConstantTBTResponseSpec.m */; }; - 162E83661A9BDE8B00906325 /* SDLShowResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82831A9BDE8A00906325 /* SDLShowResponseSpec.m */; }; - 162E83671A9BDE8B00906325 /* SDLSliderResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82841A9BDE8A00906325 /* SDLSliderResponseSpec.m */; }; - 162E83681A9BDE8B00906325 /* SDLSpeakResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82851A9BDE8A00906325 /* SDLSpeakResponseSpec.m */; }; - 162E83691A9BDE8B00906325 /* SDLSubscribeButtonResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82861A9BDE8A00906325 /* SDLSubscribeButtonResponseSpec.m */; }; - 162E836A1A9BDE8B00906325 /* SDLSubscribeVehicleDataResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82871A9BDE8A00906325 /* SDLSubscribeVehicleDataResponseSpec.m */; }; - 162E836B1A9BDE8B00906325 /* SDLSyncPDataResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82881A9BDE8A00906325 /* SDLSyncPDataResponseSpec.m */; }; - 162E836C1A9BDE8B00906325 /* SDLSystemRequestResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82891A9BDE8A00906325 /* SDLSystemRequestResponseSpec.m */; }; - 162E836D1A9BDE8B00906325 /* SDLUnregisterAppInterfaceResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E828A1A9BDE8A00906325 /* SDLUnregisterAppInterfaceResponseSpec.m */; }; - 162E836E1A9BDE8B00906325 /* SDLUnsubscribeButtonResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E828B1A9BDE8A00906325 /* SDLUnsubscribeButtonResponseSpec.m */; }; - 162E836F1A9BDE8B00906325 /* SDLUnsubscribeVehicleDataResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E828C1A9BDE8A00906325 /* SDLUnsubscribeVehicleDataResponseSpec.m */; }; - 162E83701A9BDE8B00906325 /* SDLUpdateTurnListResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E828D1A9BDE8A00906325 /* SDLUpdateTurnListResponseSpec.m */; }; - 162E83711A9BDE8B00906325 /* SDLAirbagStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E828F1A9BDE8A00906325 /* SDLAirbagStatusSpec.m */; }; - 162E83721A9BDE8B00906325 /* SDLAudioPassThruCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82901A9BDE8A00906325 /* SDLAudioPassThruCapabilitiesSpec.m */; }; - 162E83731A9BDE8B00906325 /* SDLBeltStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82911A9BDE8A00906325 /* SDLBeltStatusSpec.m */; }; - 162E83741A9BDE8B00906325 /* SDLBodyInformationSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82921A9BDE8A00906325 /* SDLBodyInformationSpec.m */; }; - 162E83751A9BDE8B00906325 /* SDLButtonCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82931A9BDE8A00906325 /* SDLButtonCapabilitiesSpec.m */; }; - 162E83761A9BDE8B00906325 /* SDLChoiceSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82941A9BDE8A00906325 /* SDLChoiceSpec.m */; }; - 162E83771A9BDE8B00906325 /* SDLClusterModeStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82951A9BDE8A00906325 /* SDLClusterModeStatusSpec.m */; }; - 162E83781A9BDE8B00906325 /* SDLDeviceInfoSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82961A9BDE8A00906325 /* SDLDeviceInfoSpec.m */; }; - 162E83791A9BDE8B00906325 /* SDLDeviceStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82971A9BDE8A00906325 /* SDLDeviceStatusSpec.m */; }; - 162E837A1A9BDE8B00906325 /* SDLDIDResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82981A9BDE8A00906325 /* SDLDIDResult.m */; }; - 162E837B1A9BDE8B00906325 /* SDLDisplayCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82991A9BDE8A00906325 /* SDLDisplayCapabilitiesSpec.m */; }; - 162E837C1A9BDE8B00906325 /* SDLECallInfoSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E829A1A9BDE8A00906325 /* SDLECallInfoSpec.m */; }; - 162E837D1A9BDE8B00906325 /* SDLEmergencyEventSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E829B1A9BDE8A00906325 /* SDLEmergencyEventSpec.m */; }; - 162E837E1A9BDE8B00906325 /* SDLGPSDataSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E829C1A9BDE8A00906325 /* SDLGPSDataSpec.m */; }; - 162E837F1A9BDE8B00906325 /* SDLHeadLampStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E829D1A9BDE8A00906325 /* SDLHeadLampStatusSpec.m */; }; - 162E83801A9BDE8B00906325 /* SDLHMIPermissionsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E829E1A9BDE8A00906325 /* SDLHMIPermissionsSpec.m */; }; - 162E83811A9BDE8B00906325 /* SDLImageFieldSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E829F1A9BDE8A00906325 /* SDLImageFieldSpec.m */; }; - 162E83821A9BDE8B00906325 /* SDLImageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A01A9BDE8A00906325 /* SDLImageSpec.m */; }; - 162E83831A9BDE8B00906325 /* SDLKeyboardPropertiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A11A9BDE8A00906325 /* SDLKeyboardPropertiesSpec.m */; }; - 162E83841A9BDE8B00906325 /* SDLMenuParamsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A21A9BDE8A00906325 /* SDLMenuParamsSpec.m */; }; - 162E83851A9BDE8B00906325 /* SDLMyKeySpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A31A9BDE8A00906325 /* SDLMyKeySpec.m */; }; - 162E83861A9BDE8B00906325 /* SDLParameterPermissionsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A41A9BDE8A00906325 /* SDLParameterPermissionsSpec.m */; }; - 162E83871A9BDE8B00906325 /* SDLPermissionItemSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A51A9BDE8A00906325 /* SDLPermissionItemSpec.m */; }; - 162E83881A9BDE8B00906325 /* SDLPresetBankCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A61A9BDE8A00906325 /* SDLPresetBankCapabilitiesSpec.m */; }; - 162E83891A9BDE8B00906325 /* SDLScreenParamsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A71A9BDE8A00906325 /* SDLScreenParamsSpec.m */; }; - 162E838A1A9BDE8B00906325 /* SDLSingleTireStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A81A9BDE8A00906325 /* SDLSingleTireStatusSpec.m */; }; - 162E838B1A9BDE8B00906325 /* SDLSoftButtonCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82A91A9BDE8A00906325 /* SDLSoftButtonCapabilitiesSpec.m */; }; - 162E838C1A9BDE8B00906325 /* SDLSoftButtonSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82AA1A9BDE8A00906325 /* SDLSoftButtonSpec.m */; }; - 162E838D1A9BDE8B00906325 /* SDLStartTimeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82AB1A9BDE8A00906325 /* SDLStartTimeSpec.m */; }; - 162E838E1A9BDE8B00906325 /* SDLSyncMsgVersionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82AC1A9BDE8A00906325 /* SDLSyncMsgVersionSpec.m */; }; - 162E838F1A9BDE8B00906325 /* SDLTextFieldSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82AD1A9BDE8A00906325 /* SDLTextFieldSpec.m */; }; - 162E83901A9BDE8B00906325 /* SDLTireStatusSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82AE1A9BDE8A00906325 /* SDLTireStatusSpec.m */; }; - 162E83911A9BDE8B00906325 /* SDLTouchCoordSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82AF1A9BDE8A00906325 /* SDLTouchCoordSpec.m */; }; - 162E83921A9BDE8B00906325 /* SDLTouchEventCapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B01A9BDE8A00906325 /* SDLTouchEventCapabilitiesSpec.m */; }; - 162E83931A9BDE8B00906325 /* SDLTouchEventSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B11A9BDE8A00906325 /* SDLTouchEventSpec.m */; }; - 162E83941A9BDE8B00906325 /* SDLTTSChunkSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B21A9BDE8A00906325 /* SDLTTSChunkSpec.m */; }; - 162E83951A9BDE8B00906325 /* SDLTurnSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B31A9BDE8A00906325 /* SDLTurnSpec.m */; }; - 162E83961A9BDE8B00906325 /* SDLVehicleDataResultSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B41A9BDE8A00906325 /* SDLVehicleDataResultSpec.m */; }; - 162E83971A9BDE8B00906325 /* SDLVehicleTypeSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B51A9BDE8A00906325 /* SDLVehicleTypeSpec.m */; }; - 162E83981A9BDE8B00906325 /* SDLVrHelpItemSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B61A9BDE8A00906325 /* SDLVrHelpItemSpec.m */; }; - 162E83991A9BDE8B00906325 /* SDLEnumSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B81A9BDE8A00906325 /* SDLEnumSpec.m */; }; - 162E839A1A9BDE8B00906325 /* SDLRPCMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82B91A9BDE8A00906325 /* SDLRPCMessageSpec.m */; }; - 162E839B1A9BDE8B00906325 /* SDLRPCNotificationSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82BA1A9BDE8A00906325 /* SDLRPCNotificationSpec.m */; }; - 162E839C1A9BDE8B00906325 /* SDLRPCRequestSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82BB1A9BDE8A00906325 /* SDLRPCRequestSpec.m */; }; - 162E839D1A9BDE8B00906325 /* SDLRPCResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82BC1A9BDE8A00906325 /* SDLRPCResponseSpec.m */; }; - 162E839E1A9BDE8B00906325 /* SDLRPCStructSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 162E82BD1A9BDE8A00906325 /* SDLRPCStructSpec.m */; }; - 167ED93C1A9BCB8A00797BE5 /* SmartDeviceLink.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */; }; - 167ED9461A9BCE5D00797BE5 /* SwiftSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 167ED9451A9BCE5D00797BE5 /* SwiftSpec.swift */; }; - 1680B1131A9CD7AD00DBD79E /* SDLProtocolHeaderSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B1061A9CD7AD00DBD79E /* SDLProtocolHeaderSpec.m */; }; - 1680B1141A9CD7AD00DBD79E /* SDLV1ProtocolHeaderSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B1071A9CD7AD00DBD79E /* SDLV1ProtocolHeaderSpec.m */; }; - 1680B1151A9CD7AD00DBD79E /* SDLV2ProtocolHeaderSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B1081A9CD7AD00DBD79E /* SDLV2ProtocolHeaderSpec.m */; }; - 1680B1161A9CD7AD00DBD79E /* SDLProtocolMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B10A1A9CD7AD00DBD79E /* SDLProtocolMessageSpec.m */; }; - 1680B1171A9CD7AD00DBD79E /* SDLProtocolSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B10B1A9CD7AD00DBD79E /* SDLProtocolSpec.m */; }; - 1680B1181A9CD7AD00DBD79E /* SDLV1ProtocolMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B10C1A9CD7AD00DBD79E /* SDLV1ProtocolMessageSpec.m */; }; - 1680B1191A9CD7AD00DBD79E /* SDLV2ProtocolMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B10D1A9CD7AD00DBD79E /* SDLV2ProtocolMessageSpec.m */; }; - 1680B11A1A9CD7AD00DBD79E /* SDLAbstractProtocolSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B10E1A9CD7AD00DBD79E /* SDLAbstractProtocolSpec.m */; }; - 1680B11B1A9CD7AD00DBD79E /* SDLFunctionIDSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B10F1A9CD7AD00DBD79E /* SDLFunctionIDSpec.m */; }; - 1680B11C1A9CD7AD00DBD79E /* SDLProtocolMessageAssemblerSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B1101A9CD7AD00DBD79E /* SDLProtocolMessageAssemblerSpec.m */; }; - 1680B11D1A9CD7AD00DBD79E /* SDLProtocolMessageDisassemblerSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B1111A9CD7AD00DBD79E /* SDLProtocolMessageDisassemblerSpec.m */; }; - 1680B11E1A9CD7AD00DBD79E /* SDLProtocolReceivedMessageRouterSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 1680B1121A9CD7AD00DBD79E /* SDLProtocolReceivedMessageRouterSpec.m */; }; - 5D0218F61A8E79C400D1BF62 /* ConnectionTCPTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D0218F51A8E79C400D1BF62 /* ConnectionTCPTableViewController.m */; }; - 5D0218F91A8E7A7300D1BF62 /* ConnectionTCPTableViewController.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5D0218F71A8E7A7300D1BF62 /* ConnectionTCPTableViewController.storyboard */; }; - 5D0218FC1A8E7E1700D1BF62 /* ConnectionContainerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D0218FB1A8E7E1700D1BF62 /* ConnectionContainerViewController.m */; }; - 5D0218FF1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D0218FE1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.m */; }; - 5D0219051A8E9F6D00D1BF62 /* ConnectionIAPTableViewController.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5D0219031A8E9F6D00D1BF62 /* ConnectionIAPTableViewController.storyboard */; }; - 5D4029D41A76F0340006B0C2 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5D4029D31A76F0340006B0C2 /* Images.xcassets */; }; - 5D4029E31A76F0760006B0C2 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5D4029DF1A76F0760006B0C2 /* LaunchScreen.xib */; }; - 5D4029E41A76F0760006B0C2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5D4029E11A76F0760006B0C2 /* Main.storyboard */; }; - 5D48329D1A8EA33D00252386 /* Preferences.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D48329C1A8EA33D00252386 /* Preferences.m */; }; - 5D4832A11A92868E00252386 /* ProxyManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D4832A01A92868E00252386 /* ProxyManager.m */; }; - 5D4832A51A94F90D00252386 /* ConnectionTransitionContext.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D4832A41A94F90D00252386 /* ConnectionTransitionContext.m */; }; - 5D4832A81A95191B00252386 /* ConnectionAnimatedTransition.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D4832A71A95191B00252386 /* ConnectionAnimatedTransition.m */; }; - 5D4AB7A21B21EC16004C1AB0 /* SmartDeviceLink.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 5D535DC51B72473800CF7760 /* SDLGlobals.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D535DC31B72473800CF7760 /* SDLGlobals.h */; }; - 5D535DC61B72473800CF7760 /* SDLGlobals.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D535DC41B72473800CF7760 /* SDLGlobals.m */; }; - 5D53C46D1B7A99B9003526EA /* SDLStreamingMediaManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D53C46B1B7A99B9003526EA /* SDLStreamingMediaManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D53C46E1B7A99B9003526EA /* SDLStreamingMediaManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D53C46C1B7A99B9003526EA /* SDLStreamingMediaManager.m */; }; - 5D59350F1A855EB300687FB9 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D59350C1A855EB300687FB9 /* AppDelegate.m */; }; - 5D5935121A855EBE00687FB9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D5935111A855EBE00687FB9 /* main.m */; }; - 5D59DD471B14FDEE00BE744D /* SDLLockScreenManagerSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D59DD461B14FDEE00BE744D /* SDLLockScreenManagerSpec.m */; }; - 5D61FA211A84237100846EE7 /* SmartDeviceLink.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA201A84237100846EE7 /* SmartDeviceLink.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FA331A84237100846EE7 /* SmartDeviceLink.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */; settings = {ATTRIBUTES = (Weak, ); }; }; - 5D61FA341A84237100846EE7 /* SmartDeviceLink.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 5D61FC291A84238C00846EE7 /* SDLAbstractProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA3C1A84238A00846EE7 /* SDLAbstractProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC2A1A84238C00846EE7 /* SDLAbstractProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA3D1A84238A00846EE7 /* SDLAbstractProtocol.m */; }; - 5D61FC2B1A84238C00846EE7 /* SDLAbstractTransport.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA3E1A84238A00846EE7 /* SDLAbstractTransport.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC2C1A84238C00846EE7 /* SDLAbstractTransport.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA3F1A84238A00846EE7 /* SDLAbstractTransport.m */; }; - 5D61FC2D1A84238C00846EE7 /* SDLAddCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA401A84238A00846EE7 /* SDLAddCommand.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC2E1A84238C00846EE7 /* SDLAddCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA411A84238A00846EE7 /* SDLAddCommand.m */; }; - 5D61FC2F1A84238C00846EE7 /* SDLAddCommandResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA421A84238A00846EE7 /* SDLAddCommandResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC301A84238C00846EE7 /* SDLAddCommandResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA431A84238A00846EE7 /* SDLAddCommandResponse.m */; }; - 5D61FC311A84238C00846EE7 /* SDLAddSubMenu.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA441A84238A00846EE7 /* SDLAddSubMenu.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC321A84238C00846EE7 /* SDLAddSubMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA451A84238A00846EE7 /* SDLAddSubMenu.m */; }; - 5D61FC331A84238C00846EE7 /* SDLAddSubMenuResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA461A84238A00846EE7 /* SDLAddSubMenuResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC341A84238C00846EE7 /* SDLAddSubMenuResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA471A84238A00846EE7 /* SDLAddSubMenuResponse.m */; }; - 5D61FC351A84238C00846EE7 /* SDLAirbagStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA481A84238A00846EE7 /* SDLAirbagStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC361A84238C00846EE7 /* SDLAirbagStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA491A84238A00846EE7 /* SDLAirbagStatus.m */; }; - 5D61FC371A84238C00846EE7 /* SDLAlert.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA4A1A84238A00846EE7 /* SDLAlert.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC381A84238C00846EE7 /* SDLAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA4B1A84238A00846EE7 /* SDLAlert.m */; }; - 5D61FC391A84238C00846EE7 /* SDLAlertManeuver.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA4C1A84238A00846EE7 /* SDLAlertManeuver.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC3A1A84238C00846EE7 /* SDLAlertManeuver.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA4D1A84238A00846EE7 /* SDLAlertManeuver.m */; }; - 5D61FC3B1A84238C00846EE7 /* SDLAlertManeuverResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA4E1A84238A00846EE7 /* SDLAlertManeuverResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC3C1A84238C00846EE7 /* SDLAlertManeuverResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA4F1A84238A00846EE7 /* SDLAlertManeuverResponse.m */; }; - 5D61FC3D1A84238C00846EE7 /* SDLAlertResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA501A84238A00846EE7 /* SDLAlertResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC3E1A84238C00846EE7 /* SDLAlertResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA511A84238A00846EE7 /* SDLAlertResponse.m */; }; - 5D61FC3F1A84238C00846EE7 /* SDLAmbientLightStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA521A84238A00846EE7 /* SDLAmbientLightStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC401A84238C00846EE7 /* SDLAmbientLightStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA531A84238A00846EE7 /* SDLAmbientLightStatus.m */; }; - 5D61FC411A84238C00846EE7 /* SDLAppHMIType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA541A84238A00846EE7 /* SDLAppHMIType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC421A84238C00846EE7 /* SDLAppHMIType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA551A84238A00846EE7 /* SDLAppHMIType.m */; }; - 5D61FC431A84238C00846EE7 /* SDLAppInterfaceUnregisteredReason.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA561A84238A00846EE7 /* SDLAppInterfaceUnregisteredReason.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC441A84238C00846EE7 /* SDLAppInterfaceUnregisteredReason.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA571A84238A00846EE7 /* SDLAppInterfaceUnregisteredReason.m */; }; - 5D61FC451A84238C00846EE7 /* SDLAudioPassThruCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA581A84238A00846EE7 /* SDLAudioPassThruCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC461A84238C00846EE7 /* SDLAudioPassThruCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA591A84238A00846EE7 /* SDLAudioPassThruCapabilities.m */; }; - 5D61FC471A84238C00846EE7 /* SDLAudioStreamingState.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA5A1A84238A00846EE7 /* SDLAudioStreamingState.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC481A84238C00846EE7 /* SDLAudioStreamingState.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA5B1A84238A00846EE7 /* SDLAudioStreamingState.m */; }; - 5D61FC491A84238C00846EE7 /* SDLAudioType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA5C1A84238A00846EE7 /* SDLAudioType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC4A1A84238C00846EE7 /* SDLAudioType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA5D1A84238A00846EE7 /* SDLAudioType.m */; }; - 5D61FC4B1A84238C00846EE7 /* SDLBeltStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA5E1A84238A00846EE7 /* SDLBeltStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC4C1A84238C00846EE7 /* SDLBeltStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA5F1A84238A00846EE7 /* SDLBeltStatus.m */; }; - 5D61FC4D1A84238C00846EE7 /* SDLBitsPerSample.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA601A84238A00846EE7 /* SDLBitsPerSample.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC4E1A84238C00846EE7 /* SDLBitsPerSample.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA611A84238A00846EE7 /* SDLBitsPerSample.m */; }; - 5D61FC4F1A84238C00846EE7 /* SDLBodyInformation.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA621A84238A00846EE7 /* SDLBodyInformation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC501A84238C00846EE7 /* SDLBodyInformation.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA631A84238A00846EE7 /* SDLBodyInformation.m */; }; - 5D61FC511A84238C00846EE7 /* SDLButtonCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA641A84238A00846EE7 /* SDLButtonCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC521A84238C00846EE7 /* SDLButtonCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA651A84238A00846EE7 /* SDLButtonCapabilities.m */; }; - 5D61FC531A84238C00846EE7 /* SDLButtonEventMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA661A84238A00846EE7 /* SDLButtonEventMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC541A84238C00846EE7 /* SDLButtonEventMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA671A84238A00846EE7 /* SDLButtonEventMode.m */; }; - 5D61FC551A84238C00846EE7 /* SDLButtonName.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA681A84238A00846EE7 /* SDLButtonName.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC561A84238C00846EE7 /* SDLButtonName.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA691A84238A00846EE7 /* SDLButtonName.m */; }; - 5D61FC571A84238C00846EE7 /* SDLButtonPressMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA6A1A84238A00846EE7 /* SDLButtonPressMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC581A84238C00846EE7 /* SDLButtonPressMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA6B1A84238A00846EE7 /* SDLButtonPressMode.m */; }; - 5D61FC591A84238C00846EE7 /* SDLCarModeStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA6C1A84238A00846EE7 /* SDLCarModeStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC5A1A84238C00846EE7 /* SDLCarModeStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA6D1A84238A00846EE7 /* SDLCarModeStatus.m */; }; - 5D61FC5B1A84238C00846EE7 /* SDLChangeRegistration.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA6E1A84238A00846EE7 /* SDLChangeRegistration.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC5C1A84238C00846EE7 /* SDLChangeRegistration.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA6F1A84238A00846EE7 /* SDLChangeRegistration.m */; }; - 5D61FC5D1A84238C00846EE7 /* SDLChangeRegistrationResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA701A84238A00846EE7 /* SDLChangeRegistrationResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC5E1A84238C00846EE7 /* SDLChangeRegistrationResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA711A84238A00846EE7 /* SDLChangeRegistrationResponse.m */; }; - 5D61FC5F1A84238C00846EE7 /* SDLCharacterSet.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA721A84238A00846EE7 /* SDLCharacterSet.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC601A84238C00846EE7 /* SDLCharacterSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA731A84238A00846EE7 /* SDLCharacterSet.m */; }; - 5D61FC611A84238C00846EE7 /* SDLChoice.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA741A84238A00846EE7 /* SDLChoice.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC621A84238C00846EE7 /* SDLChoice.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA751A84238A00846EE7 /* SDLChoice.m */; }; - 5D61FC631A84238C00846EE7 /* SDLClusterModeStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA761A84238A00846EE7 /* SDLClusterModeStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC641A84238C00846EE7 /* SDLClusterModeStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA771A84238A00846EE7 /* SDLClusterModeStatus.m */; }; - 5D61FC651A84238C00846EE7 /* SDLCompassDirection.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA781A84238A00846EE7 /* SDLCompassDirection.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC661A84238C00846EE7 /* SDLCompassDirection.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA791A84238A00846EE7 /* SDLCompassDirection.m */; }; - 5D61FC671A84238C00846EE7 /* SDLComponentVolumeStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA7A1A84238A00846EE7 /* SDLComponentVolumeStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC681A84238C00846EE7 /* SDLComponentVolumeStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA7B1A84238A00846EE7 /* SDLComponentVolumeStatus.m */; }; - 5D61FC691A84238C00846EE7 /* SDLConsoleController.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA7C1A84238A00846EE7 /* SDLConsoleController.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC6A1A84238C00846EE7 /* SDLConsoleController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA7D1A84238A00846EE7 /* SDLConsoleController.m */; }; - 5D61FC6B1A84238C00846EE7 /* SDLCreateInteractionChoiceSet.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA7E1A84238A00846EE7 /* SDLCreateInteractionChoiceSet.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC6C1A84238C00846EE7 /* SDLCreateInteractionChoiceSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA7F1A84238A00846EE7 /* SDLCreateInteractionChoiceSet.m */; }; - 5D61FC6D1A84238C00846EE7 /* SDLCreateInteractionChoiceSetResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA801A84238A00846EE7 /* SDLCreateInteractionChoiceSetResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC6E1A84238C00846EE7 /* SDLCreateInteractionChoiceSetResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA811A84238A00846EE7 /* SDLCreateInteractionChoiceSetResponse.m */; }; - 5D61FC6F1A84238C00846EE7 /* SDLDebugTool.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA821A84238A00846EE7 /* SDLDebugTool.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC701A84238C00846EE7 /* SDLDebugTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA831A84238A00846EE7 /* SDLDebugTool.m */; }; - 5D61FC711A84238C00846EE7 /* SDLDecoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA841A84238A00846EE7 /* SDLDecoder.h */; }; - 5D61FC721A84238C00846EE7 /* SDLDeleteCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA851A84238A00846EE7 /* SDLDeleteCommand.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC731A84238C00846EE7 /* SDLDeleteCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA861A84238A00846EE7 /* SDLDeleteCommand.m */; }; - 5D61FC741A84238C00846EE7 /* SDLDeleteCommandResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA871A84238A00846EE7 /* SDLDeleteCommandResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC751A84238C00846EE7 /* SDLDeleteCommandResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA881A84238A00846EE7 /* SDLDeleteCommandResponse.m */; }; - 5D61FC761A84238C00846EE7 /* SDLDeleteFile.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA891A84238A00846EE7 /* SDLDeleteFile.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC771A84238C00846EE7 /* SDLDeleteFile.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA8A1A84238A00846EE7 /* SDLDeleteFile.m */; }; - 5D61FC781A84238C00846EE7 /* SDLDeleteFileResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA8B1A84238A00846EE7 /* SDLDeleteFileResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC791A84238C00846EE7 /* SDLDeleteFileResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA8C1A84238A00846EE7 /* SDLDeleteFileResponse.m */; }; - 5D61FC7A1A84238C00846EE7 /* SDLDeleteInteractionChoiceSet.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA8D1A84238A00846EE7 /* SDLDeleteInteractionChoiceSet.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC7B1A84238C00846EE7 /* SDLDeleteInteractionChoiceSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA8E1A84238A00846EE7 /* SDLDeleteInteractionChoiceSet.m */; }; - 5D61FC7C1A84238C00846EE7 /* SDLDeleteInteractionChoiceSetResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA8F1A84238A00846EE7 /* SDLDeleteInteractionChoiceSetResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC7D1A84238C00846EE7 /* SDLDeleteInteractionChoiceSetResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA901A84238A00846EE7 /* SDLDeleteInteractionChoiceSetResponse.m */; }; - 5D61FC7E1A84238C00846EE7 /* SDLDeleteSubMenu.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA911A84238A00846EE7 /* SDLDeleteSubMenu.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC7F1A84238C00846EE7 /* SDLDeleteSubMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA921A84238A00846EE7 /* SDLDeleteSubMenu.m */; }; - 5D61FC801A84238C00846EE7 /* SDLDeleteSubMenuResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA931A84238A00846EE7 /* SDLDeleteSubMenuResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC811A84238C00846EE7 /* SDLDeleteSubMenuResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA941A84238A00846EE7 /* SDLDeleteSubMenuResponse.m */; }; - 5D61FC821A84238C00846EE7 /* SDLDeviceInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA951A84238A00846EE7 /* SDLDeviceInfo.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC831A84238C00846EE7 /* SDLDeviceInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA961A84238A00846EE7 /* SDLDeviceInfo.m */; }; - 5D61FC841A84238C00846EE7 /* SDLDeviceLevelStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA971A84238A00846EE7 /* SDLDeviceLevelStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC851A84238C00846EE7 /* SDLDeviceLevelStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA981A84238A00846EE7 /* SDLDeviceLevelStatus.m */; }; - 5D61FC861A84238C00846EE7 /* SDLDeviceStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA991A84238A00846EE7 /* SDLDeviceStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC871A84238C00846EE7 /* SDLDeviceStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA9A1A84238A00846EE7 /* SDLDeviceStatus.m */; }; - 5D61FC881A84238C00846EE7 /* SDLDiagnosticMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA9B1A84238A00846EE7 /* SDLDiagnosticMessage.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC891A84238C00846EE7 /* SDLDiagnosticMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA9C1A84238A00846EE7 /* SDLDiagnosticMessage.m */; }; - 5D61FC8A1A84238C00846EE7 /* SDLDiagnosticMessageResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA9D1A84238A00846EE7 /* SDLDiagnosticMessageResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC8B1A84238C00846EE7 /* SDLDiagnosticMessageResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FA9E1A84238A00846EE7 /* SDLDiagnosticMessageResponse.m */; }; - 5D61FC8C1A84238C00846EE7 /* SDLDIDResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FA9F1A84238A00846EE7 /* SDLDIDResult.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC8D1A84238C00846EE7 /* SDLDIDResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAA01A84238A00846EE7 /* SDLDIDResult.m */; }; - 5D61FC8E1A84238C00846EE7 /* SDLDimension.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAA11A84238A00846EE7 /* SDLDimension.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC8F1A84238C00846EE7 /* SDLDimension.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAA21A84238A00846EE7 /* SDLDimension.m */; }; - 5D61FC901A84238C00846EE7 /* SDLDisplayCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAA31A84238A00846EE7 /* SDLDisplayCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC911A84238C00846EE7 /* SDLDisplayCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAA41A84238A00846EE7 /* SDLDisplayCapabilities.m */; }; - 5D61FC921A84238C00846EE7 /* SDLDisplayType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAA51A84238A00846EE7 /* SDLDisplayType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC931A84238C00846EE7 /* SDLDisplayType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAA61A84238A00846EE7 /* SDLDisplayType.m */; }; - 5D61FC941A84238C00846EE7 /* SDLDriverDistractionState.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAA71A84238A00846EE7 /* SDLDriverDistractionState.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC951A84238C00846EE7 /* SDLDriverDistractionState.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAA81A84238A00846EE7 /* SDLDriverDistractionState.m */; }; - 5D61FC961A84238C00846EE7 /* SDLECallConfirmationStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAA91A84238A00846EE7 /* SDLECallConfirmationStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC971A84238C00846EE7 /* SDLECallConfirmationStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAAA1A84238A00846EE7 /* SDLECallConfirmationStatus.m */; }; - 5D61FC981A84238C00846EE7 /* SDLECallInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAAB1A84238A00846EE7 /* SDLECallInfo.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC991A84238C00846EE7 /* SDLECallInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAAC1A84238A00846EE7 /* SDLECallInfo.m */; }; - 5D61FC9A1A84238C00846EE7 /* SDLEmergencyEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAAD1A84238A00846EE7 /* SDLEmergencyEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC9B1A84238C00846EE7 /* SDLEmergencyEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAAE1A84238A00846EE7 /* SDLEmergencyEvent.m */; }; - 5D61FC9C1A84238C00846EE7 /* SDLEmergencyEventType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAAF1A84238A00846EE7 /* SDLEmergencyEventType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC9D1A84238C00846EE7 /* SDLEmergencyEventType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAB01A84238A00846EE7 /* SDLEmergencyEventType.m */; }; - 5D61FC9E1A84238C00846EE7 /* SDLEncodedSyncPData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAB11A84238A00846EE7 /* SDLEncodedSyncPData.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FC9F1A84238C00846EE7 /* SDLEncodedSyncPData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAB21A84238A00846EE7 /* SDLEncodedSyncPData.m */; }; - 5D61FCA01A84238C00846EE7 /* SDLEncodedSyncPDataResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAB31A84238A00846EE7 /* SDLEncodedSyncPDataResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCA11A84238C00846EE7 /* SDLEncodedSyncPDataResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAB41A84238A00846EE7 /* SDLEncodedSyncPDataResponse.m */; }; - 5D61FCA21A84238C00846EE7 /* SDLEncoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAB51A84238A00846EE7 /* SDLEncoder.h */; }; - 5D61FCA31A84238C00846EE7 /* SDLEndAudioPassThru.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAB61A84238A00846EE7 /* SDLEndAudioPassThru.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCA41A84238C00846EE7 /* SDLEndAudioPassThru.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAB71A84238A00846EE7 /* SDLEndAudioPassThru.m */; }; - 5D61FCA51A84238C00846EE7 /* SDLEndAudioPassThruResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAB81A84238A00846EE7 /* SDLEndAudioPassThruResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCA61A84238C00846EE7 /* SDLEndAudioPassThruResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAB91A84238A00846EE7 /* SDLEndAudioPassThruResponse.m */; }; - 5D61FCA71A84238C00846EE7 /* SDLEnum.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FABA1A84238A00846EE7 /* SDLEnum.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCA81A84238C00846EE7 /* SDLEnum.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FABB1A84238A00846EE7 /* SDLEnum.m */; }; - 5D61FCA91A84238C00846EE7 /* SDLFileType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FABC1A84238A00846EE7 /* SDLFileType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCAA1A84238C00846EE7 /* SDLFileType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FABD1A84238A00846EE7 /* SDLFileType.m */; }; - 5D61FCAB1A84238C00846EE7 /* SDLFuelCutoffStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FABE1A84238A00846EE7 /* SDLFuelCutoffStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCAC1A84238C00846EE7 /* SDLFuelCutoffStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FABF1A84238A00846EE7 /* SDLFuelCutoffStatus.m */; }; - 5D61FCAD1A84238C00846EE7 /* SDLFunctionID.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAC01A84238A00846EE7 /* SDLFunctionID.h */; }; - 5D61FCAE1A84238C00846EE7 /* SDLFunctionID.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAC11A84238A00846EE7 /* SDLFunctionID.m */; }; - 5D61FCAF1A84238C00846EE7 /* SDLGenericResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAC21A84238A00846EE7 /* SDLGenericResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCB01A84238C00846EE7 /* SDLGenericResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAC31A84238A00846EE7 /* SDLGenericResponse.m */; }; - 5D61FCB11A84238C00846EE7 /* SDLGetDTCs.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAC41A84238A00846EE7 /* SDLGetDTCs.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCB21A84238C00846EE7 /* SDLGetDTCs.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAC51A84238A00846EE7 /* SDLGetDTCs.m */; }; - 5D61FCB31A84238C00846EE7 /* SDLGetDTCsResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAC61A84238A00846EE7 /* SDLGetDTCsResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCB41A84238C00846EE7 /* SDLGetDTCsResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAC71A84238A00846EE7 /* SDLGetDTCsResponse.m */; }; - 5D61FCB51A84238C00846EE7 /* SDLGetVehicleData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAC81A84238A00846EE7 /* SDLGetVehicleData.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCB61A84238C00846EE7 /* SDLGetVehicleData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAC91A84238A00846EE7 /* SDLGetVehicleData.m */; }; - 5D61FCB71A84238C00846EE7 /* SDLGetVehicleDataResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FACA1A84238A00846EE7 /* SDLGetVehicleDataResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCB81A84238C00846EE7 /* SDLGetVehicleDataResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FACB1A84238A00846EE7 /* SDLGetVehicleDataResponse.m */; }; - 5D61FCB91A84238C00846EE7 /* SDLGlobalProperty.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FACC1A84238A00846EE7 /* SDLGlobalProperty.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCBA1A84238C00846EE7 /* SDLGlobalProperty.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FACD1A84238A00846EE7 /* SDLGlobalProperty.m */; }; - 5D61FCBB1A84238C00846EE7 /* SDLGPSData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FACE1A84238A00846EE7 /* SDLGPSData.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCBC1A84238C00846EE7 /* SDLGPSData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FACF1A84238A00846EE7 /* SDLGPSData.m */; }; - 5D61FCBD1A84238C00846EE7 /* SDLHeadLampStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAD01A84238A00846EE7 /* SDLHeadLampStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCBE1A84238C00846EE7 /* SDLHeadLampStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAD11A84238A00846EE7 /* SDLHeadLampStatus.m */; }; - 5D61FCBF1A84238C00846EE7 /* SDLHexUtility.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAD21A84238A00846EE7 /* SDLHexUtility.h */; }; - 5D61FCC01A84238C00846EE7 /* SDLHexUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAD31A84238A00846EE7 /* SDLHexUtility.m */; }; - 5D61FCC11A84238C00846EE7 /* SDLHMILevel.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAD41A84238A00846EE7 /* SDLHMILevel.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCC21A84238C00846EE7 /* SDLHMILevel.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAD51A84238A00846EE7 /* SDLHMILevel.m */; }; - 5D61FCC31A84238C00846EE7 /* SDLHMIPermissions.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAD61A84238A00846EE7 /* SDLHMIPermissions.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCC41A84238C00846EE7 /* SDLHMIPermissions.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAD71A84238A00846EE7 /* SDLHMIPermissions.m */; }; - 5D61FCC51A84238C00846EE7 /* SDLHMIZoneCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAD81A84238A00846EE7 /* SDLHMIZoneCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCC61A84238C00846EE7 /* SDLHMIZoneCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAD91A84238A00846EE7 /* SDLHMIZoneCapabilities.m */; }; - 5D61FCC71A84238C00846EE7 /* SDLIAPTransport.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FADA1A84238A00846EE7 /* SDLIAPTransport.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCC81A84238C00846EE7 /* SDLIAPTransport.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FADB1A84238A00846EE7 /* SDLIAPTransport.m */; }; - 5D61FCC91A84238C00846EE7 /* SDLIgnitionStableStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FADC1A84238A00846EE7 /* SDLIgnitionStableStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCCA1A84238C00846EE7 /* SDLIgnitionStableStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FADD1A84238A00846EE7 /* SDLIgnitionStableStatus.m */; }; - 5D61FCCB1A84238C00846EE7 /* SDLIgnitionStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FADE1A84238A00846EE7 /* SDLIgnitionStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCCC1A84238C00846EE7 /* SDLIgnitionStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FADF1A84238A00846EE7 /* SDLIgnitionStatus.m */; }; - 5D61FCCD1A84238C00846EE7 /* SDLImage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAE01A84238A00846EE7 /* SDLImage.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCCE1A84238C00846EE7 /* SDLImage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAE11A84238A00846EE7 /* SDLImage.m */; }; - 5D61FCCF1A84238C00846EE7 /* SDLImageField.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAE21A84238A00846EE7 /* SDLImageField.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCD01A84238C00846EE7 /* SDLImageField.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAE31A84238A00846EE7 /* SDLImageField.m */; }; - 5D61FCD11A84238C00846EE7 /* SDLImageFieldName.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAE41A84238A00846EE7 /* SDLImageFieldName.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCD21A84238C00846EE7 /* SDLImageFieldName.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAE51A84238A00846EE7 /* SDLImageFieldName.m */; }; - 5D61FCD31A84238C00846EE7 /* SDLImageResolution.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAE61A84238A00846EE7 /* SDLImageResolution.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCD41A84238C00846EE7 /* SDLImageResolution.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAE71A84238A00846EE7 /* SDLImageResolution.m */; }; - 5D61FCD51A84238C00846EE7 /* SDLImageType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAE81A84238A00846EE7 /* SDLImageType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCD61A84238C00846EE7 /* SDLImageType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAE91A84238A00846EE7 /* SDLImageType.m */; }; - 5D61FCD71A84238C00846EE7 /* SDLInteractionMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAEA1A84238A00846EE7 /* SDLInteractionMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCD81A84238C00846EE7 /* SDLInteractionMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAEB1A84238A00846EE7 /* SDLInteractionMode.m */; }; - 5D61FCDA1A84238C00846EE7 /* SDLJingle.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAED1A84238A00846EE7 /* SDLJingle.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCDB1A84238C00846EE7 /* SDLJingle.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAEE1A84238A00846EE7 /* SDLJingle.m */; }; - 5D61FCDC1A84238C00846EE7 /* SDLJsonDecoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAEF1A84238A00846EE7 /* SDLJsonDecoder.h */; }; - 5D61FCDD1A84238C00846EE7 /* SDLJsonDecoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAF01A84238A00846EE7 /* SDLJsonDecoder.m */; }; - 5D61FCDE1A84238C00846EE7 /* SDLJsonEncoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAF11A84238A00846EE7 /* SDLJsonEncoder.h */; }; - 5D61FCDF1A84238C00846EE7 /* SDLJsonEncoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAF21A84238A00846EE7 /* SDLJsonEncoder.m */; }; - 5D61FCE01A84238C00846EE7 /* SDLKeyboardEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAF31A84238A00846EE7 /* SDLKeyboardEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCE11A84238C00846EE7 /* SDLKeyboardEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAF41A84238A00846EE7 /* SDLKeyboardEvent.m */; }; - 5D61FCE21A84238C00846EE7 /* SDLKeyboardLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAF51A84238A00846EE7 /* SDLKeyboardLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCE31A84238C00846EE7 /* SDLKeyboardLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAF61A84238A00846EE7 /* SDLKeyboardLayout.m */; }; - 5D61FCE41A84238C00846EE7 /* SDLKeyboardProperties.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAF71A84238A00846EE7 /* SDLKeyboardProperties.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCE51A84238C00846EE7 /* SDLKeyboardProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAF81A84238A00846EE7 /* SDLKeyboardProperties.m */; }; - 5D61FCE61A84238C00846EE7 /* SDLKeypressMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAF91A84238A00846EE7 /* SDLKeypressMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCE71A84238C00846EE7 /* SDLKeypressMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAFA1A84238A00846EE7 /* SDLKeypressMode.m */; }; - 5D61FCE81A84238C00846EE7 /* SDLLanguage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAFB1A84238A00846EE7 /* SDLLanguage.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCE91A84238C00846EE7 /* SDLLanguage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAFC1A84238A00846EE7 /* SDLLanguage.m */; }; - 5D61FCEA1A84238C00846EE7 /* SDLLayoutMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAFD1A84238A00846EE7 /* SDLLayoutMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCEB1A84238C00846EE7 /* SDLLayoutMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FAFE1A84238A00846EE7 /* SDLLayoutMode.m */; }; - 5D61FCEC1A84238C00846EE7 /* SDLListFiles.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FAFF1A84238A00846EE7 /* SDLListFiles.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCED1A84238C00846EE7 /* SDLListFiles.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB001A84238A00846EE7 /* SDLListFiles.m */; }; - 5D61FCEE1A84238C00846EE7 /* SDLListFilesResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB011A84238A00846EE7 /* SDLListFilesResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCEF1A84238C00846EE7 /* SDLListFilesResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB021A84238A00846EE7 /* SDLListFilesResponse.m */; }; - 5D61FCF01A84238C00846EE7 /* SDLLockScreenManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB031A84238A00846EE7 /* SDLLockScreenManager.h */; }; - 5D61FCF11A84238C00846EE7 /* SDLLockScreenManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB041A84238A00846EE7 /* SDLLockScreenManager.m */; }; - 5D61FCF21A84238C00846EE7 /* SDLLockScreenStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB051A84238A00846EE7 /* SDLLockScreenStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCF31A84238C00846EE7 /* SDLLockScreenStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB061A84238A00846EE7 /* SDLLockScreenStatus.m */; }; - 5D61FCF41A84238C00846EE7 /* SDLMaintenanceModeStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB071A84238A00846EE7 /* SDLMaintenanceModeStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCF51A84238C00846EE7 /* SDLMaintenanceModeStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB081A84238A00846EE7 /* SDLMaintenanceModeStatus.m */; }; - 5D61FCF61A84238C00846EE7 /* SDLMediaClockFormat.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB091A84238A00846EE7 /* SDLMediaClockFormat.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCF71A84238C00846EE7 /* SDLMediaClockFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB0A1A84238A00846EE7 /* SDLMediaClockFormat.m */; }; - 5D61FCF81A84238C00846EE7 /* SDLMenuParams.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB0B1A84238A00846EE7 /* SDLMenuParams.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCF91A84238C00846EE7 /* SDLMenuParams.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB0C1A84238A00846EE7 /* SDLMenuParams.m */; }; - 5D61FCFA1A84238C00846EE7 /* SDLMyKey.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB0D1A84238A00846EE7 /* SDLMyKey.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FCFB1A84238C00846EE7 /* SDLMyKey.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB0E1A84238A00846EE7 /* SDLMyKey.m */; }; - 5D61FCFC1A84238C00846EE7 /* SDLNames.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB0F1A84238A00846EE7 /* SDLNames.h */; }; - 5D61FCFD1A84238C00846EE7 /* SDLObjectWithPriority.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB101A84238A00846EE7 /* SDLObjectWithPriority.h */; }; - 5D61FCFE1A84238C00846EE7 /* SDLObjectWithPriority.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB111A84238A00846EE7 /* SDLObjectWithPriority.m */; }; - 5D61FCFF1A84238C00846EE7 /* SDLOnAppInterfaceUnregistered.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB121A84238B00846EE7 /* SDLOnAppInterfaceUnregistered.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD001A84238C00846EE7 /* SDLOnAppInterfaceUnregistered.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB131A84238B00846EE7 /* SDLOnAppInterfaceUnregistered.m */; }; - 5D61FD011A84238C00846EE7 /* SDLOnAudioPassThru.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB141A84238B00846EE7 /* SDLOnAudioPassThru.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD021A84238C00846EE7 /* SDLOnAudioPassThru.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB151A84238B00846EE7 /* SDLOnAudioPassThru.m */; }; - 5D61FD031A84238C00846EE7 /* SDLOnButtonEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB161A84238B00846EE7 /* SDLOnButtonEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD041A84238C00846EE7 /* SDLOnButtonEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB171A84238B00846EE7 /* SDLOnButtonEvent.m */; }; - 5D61FD051A84238C00846EE7 /* SDLOnButtonPress.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB181A84238B00846EE7 /* SDLOnButtonPress.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD061A84238C00846EE7 /* SDLOnButtonPress.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB191A84238B00846EE7 /* SDLOnButtonPress.m */; }; - 5D61FD071A84238C00846EE7 /* SDLOnCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB1A1A84238B00846EE7 /* SDLOnCommand.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD081A84238C00846EE7 /* SDLOnCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB1B1A84238B00846EE7 /* SDLOnCommand.m */; }; - 5D61FD091A84238C00846EE7 /* SDLOnDriverDistraction.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB1C1A84238B00846EE7 /* SDLOnDriverDistraction.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD0A1A84238C00846EE7 /* SDLOnDriverDistraction.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB1D1A84238B00846EE7 /* SDLOnDriverDistraction.m */; }; - 5D61FD0B1A84238C00846EE7 /* SDLOnEncodedSyncPData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB1E1A84238B00846EE7 /* SDLOnEncodedSyncPData.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD0C1A84238C00846EE7 /* SDLOnEncodedSyncPData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB1F1A84238B00846EE7 /* SDLOnEncodedSyncPData.m */; }; - 5D61FD0D1A84238C00846EE7 /* SDLOnHashChange.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB201A84238B00846EE7 /* SDLOnHashChange.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD0E1A84238C00846EE7 /* SDLOnHashChange.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB211A84238B00846EE7 /* SDLOnHashChange.m */; }; - 5D61FD0F1A84238C00846EE7 /* SDLOnHMIStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB221A84238B00846EE7 /* SDLOnHMIStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD101A84238C00846EE7 /* SDLOnHMIStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB231A84238B00846EE7 /* SDLOnHMIStatus.m */; }; - 5D61FD111A84238C00846EE7 /* SDLOnKeyboardInput.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB241A84238B00846EE7 /* SDLOnKeyboardInput.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD121A84238C00846EE7 /* SDLOnKeyboardInput.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB251A84238B00846EE7 /* SDLOnKeyboardInput.m */; }; - 5D61FD131A84238C00846EE7 /* SDLOnLanguageChange.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB261A84238B00846EE7 /* SDLOnLanguageChange.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD141A84238C00846EE7 /* SDLOnLanguageChange.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB271A84238B00846EE7 /* SDLOnLanguageChange.m */; }; - 5D61FD151A84238C00846EE7 /* SDLOnLockScreenStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB281A84238B00846EE7 /* SDLOnLockScreenStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD161A84238C00846EE7 /* SDLOnLockScreenStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB291A84238B00846EE7 /* SDLOnLockScreenStatus.m */; }; - 5D61FD171A84238C00846EE7 /* SDLOnPermissionsChange.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB2A1A84238B00846EE7 /* SDLOnPermissionsChange.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD181A84238C00846EE7 /* SDLOnPermissionsChange.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB2B1A84238B00846EE7 /* SDLOnPermissionsChange.m */; }; - 5D61FD191A84238C00846EE7 /* SDLOnSyncPData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB2C1A84238B00846EE7 /* SDLOnSyncPData.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD1A1A84238C00846EE7 /* SDLOnSyncPData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB2D1A84238B00846EE7 /* SDLOnSyncPData.m */; }; - 5D61FD1B1A84238C00846EE7 /* SDLOnSystemRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB2E1A84238B00846EE7 /* SDLOnSystemRequest.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD1C1A84238C00846EE7 /* SDLOnSystemRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB2F1A84238B00846EE7 /* SDLOnSystemRequest.m */; }; - 5D61FD1D1A84238C00846EE7 /* SDLOnTBTClientState.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB301A84238B00846EE7 /* SDLOnTBTClientState.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD1E1A84238C00846EE7 /* SDLOnTBTClientState.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB311A84238B00846EE7 /* SDLOnTBTClientState.m */; }; - 5D61FD1F1A84238C00846EE7 /* SDLOnTouchEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB321A84238B00846EE7 /* SDLOnTouchEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD201A84238C00846EE7 /* SDLOnTouchEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB331A84238B00846EE7 /* SDLOnTouchEvent.m */; }; - 5D61FD211A84238C00846EE7 /* SDLOnVehicleData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB341A84238B00846EE7 /* SDLOnVehicleData.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD221A84238C00846EE7 /* SDLOnVehicleData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB351A84238B00846EE7 /* SDLOnVehicleData.m */; }; - 5D61FD231A84238C00846EE7 /* SDLParameterPermissions.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB361A84238B00846EE7 /* SDLParameterPermissions.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD241A84238C00846EE7 /* SDLParameterPermissions.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB371A84238B00846EE7 /* SDLParameterPermissions.m */; }; - 5D61FD251A84238C00846EE7 /* SDLPerformAudioPassThru.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB381A84238B00846EE7 /* SDLPerformAudioPassThru.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD261A84238C00846EE7 /* SDLPerformAudioPassThru.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB391A84238B00846EE7 /* SDLPerformAudioPassThru.m */; }; - 5D61FD271A84238C00846EE7 /* SDLPerformAudioPassThruResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB3A1A84238B00846EE7 /* SDLPerformAudioPassThruResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD281A84238C00846EE7 /* SDLPerformAudioPassThruResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB3B1A84238B00846EE7 /* SDLPerformAudioPassThruResponse.m */; }; - 5D61FD291A84238C00846EE7 /* SDLPerformInteraction.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB3C1A84238B00846EE7 /* SDLPerformInteraction.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD2A1A84238C00846EE7 /* SDLPerformInteraction.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB3D1A84238B00846EE7 /* SDLPerformInteraction.m */; }; - 5D61FD2B1A84238C00846EE7 /* SDLPerformInteractionResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB3E1A84238B00846EE7 /* SDLPerformInteractionResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD2C1A84238C00846EE7 /* SDLPerformInteractionResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB3F1A84238B00846EE7 /* SDLPerformInteractionResponse.m */; }; - 5D61FD2D1A84238C00846EE7 /* SDLPermissionItem.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB401A84238B00846EE7 /* SDLPermissionItem.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD2E1A84238C00846EE7 /* SDLPermissionItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB411A84238B00846EE7 /* SDLPermissionItem.m */; }; - 5D61FD2F1A84238C00846EE7 /* SDLPermissionStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB421A84238B00846EE7 /* SDLPermissionStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD301A84238C00846EE7 /* SDLPermissionStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB431A84238B00846EE7 /* SDLPermissionStatus.m */; }; - 5D61FD311A84238C00846EE7 /* SDLPolicyDataParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB441A84238B00846EE7 /* SDLPolicyDataParser.h */; }; - 5D61FD321A84238C00846EE7 /* SDLPolicyDataParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB451A84238B00846EE7 /* SDLPolicyDataParser.m */; }; - 5D61FD331A84238C00846EE7 /* SDLPowerModeQualificationStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB461A84238B00846EE7 /* SDLPowerModeQualificationStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD341A84238C00846EE7 /* SDLPowerModeQualificationStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB471A84238B00846EE7 /* SDLPowerModeQualificationStatus.m */; }; - 5D61FD351A84238C00846EE7 /* SDLPowerModeStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB481A84238B00846EE7 /* SDLPowerModeStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD361A84238C00846EE7 /* SDLPowerModeStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB491A84238B00846EE7 /* SDLPowerModeStatus.m */; }; - 5D61FD371A84238C00846EE7 /* SDLPredefinedLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB4A1A84238B00846EE7 /* SDLPredefinedLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD381A84238C00846EE7 /* SDLPredefinedLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB4B1A84238B00846EE7 /* SDLPredefinedLayout.m */; }; - 5D61FD391A84238C00846EE7 /* SDLPrerecordedSpeech.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB4C1A84238B00846EE7 /* SDLPrerecordedSpeech.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD3A1A84238C00846EE7 /* SDLPrerecordedSpeech.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB4D1A84238B00846EE7 /* SDLPrerecordedSpeech.m */; }; - 5D61FD3B1A84238C00846EE7 /* SDLPresetBankCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB4E1A84238B00846EE7 /* SDLPresetBankCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD3C1A84238C00846EE7 /* SDLPresetBankCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB4F1A84238B00846EE7 /* SDLPresetBankCapabilities.m */; }; - 5D61FD3D1A84238C00846EE7 /* SDLPrimaryAudioSource.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB501A84238B00846EE7 /* SDLPrimaryAudioSource.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD3E1A84238C00846EE7 /* SDLPrimaryAudioSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB511A84238B00846EE7 /* SDLPrimaryAudioSource.m */; }; - 5D61FD3F1A84238C00846EE7 /* SDLPrioritizedObjectCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB521A84238B00846EE7 /* SDLPrioritizedObjectCollection.h */; }; - 5D61FD401A84238C00846EE7 /* SDLPrioritizedObjectCollection.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB531A84238B00846EE7 /* SDLPrioritizedObjectCollection.m */; }; - 5D61FD411A84238C00846EE7 /* SDLPRNDL.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB541A84238B00846EE7 /* SDLPRNDL.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD421A84238C00846EE7 /* SDLPRNDL.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB551A84238B00846EE7 /* SDLPRNDL.m */; }; - 5D61FD431A84238C00846EE7 /* SDLProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB561A84238B00846EE7 /* SDLProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD441A84238C00846EE7 /* SDLProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB571A84238B00846EE7 /* SDLProtocol.m */; }; - 5D61FD451A84238C00846EE7 /* SDLProtocolHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB581A84238B00846EE7 /* SDLProtocolHeader.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD461A84238C00846EE7 /* SDLProtocolHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB591A84238B00846EE7 /* SDLProtocolHeader.m */; }; - 5D61FD471A84238C00846EE7 /* SDLProtocolListener.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB5A1A84238B00846EE7 /* SDLProtocolListener.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD481A84238C00846EE7 /* SDLProtocolMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB5B1A84238B00846EE7 /* SDLProtocolMessage.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD491A84238C00846EE7 /* SDLProtocolMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB5C1A84238B00846EE7 /* SDLProtocolMessage.m */; }; - 5D61FD4A1A84238C00846EE7 /* SDLProtocolMessageAssembler.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB5D1A84238B00846EE7 /* SDLProtocolMessageAssembler.h */; }; - 5D61FD4B1A84238C00846EE7 /* SDLProtocolMessageAssembler.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB5E1A84238B00846EE7 /* SDLProtocolMessageAssembler.m */; }; - 5D61FD4C1A84238C00846EE7 /* SDLProtocolMessageDisassembler.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB5F1A84238B00846EE7 /* SDLProtocolMessageDisassembler.h */; }; - 5D61FD4D1A84238C00846EE7 /* SDLProtocolMessageDisassembler.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB601A84238B00846EE7 /* SDLProtocolMessageDisassembler.m */; }; - 5D61FD4E1A84238C00846EE7 /* SDLProtocolReceivedMessageRouter.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB611A84238B00846EE7 /* SDLProtocolReceivedMessageRouter.h */; }; - 5D61FD4F1A84238C00846EE7 /* SDLProtocolReceivedMessageRouter.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB621A84238B00846EE7 /* SDLProtocolReceivedMessageRouter.m */; }; - 5D61FD501A84238C00846EE7 /* SDLProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB631A84238B00846EE7 /* SDLProxy.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD511A84238C00846EE7 /* SDLProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB641A84238B00846EE7 /* SDLProxy.m */; }; - 5D61FD521A84238C00846EE7 /* SDLProxyFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB651A84238B00846EE7 /* SDLProxyFactory.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD531A84238C00846EE7 /* SDLProxyFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB661A84238B00846EE7 /* SDLProxyFactory.m */; }; - 5D61FD541A84238C00846EE7 /* SDLProxyListener.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB671A84238B00846EE7 /* SDLProxyListener.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD551A84238C00846EE7 /* SDLPutFile.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB681A84238B00846EE7 /* SDLPutFile.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD561A84238C00846EE7 /* SDLPutFile.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB691A84238B00846EE7 /* SDLPutFile.m */; }; - 5D61FD571A84238C00846EE7 /* SDLPutFileResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB6A1A84238B00846EE7 /* SDLPutFileResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD581A84238C00846EE7 /* SDLPutFileResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB6B1A84238B00846EE7 /* SDLPutFileResponse.m */; }; - 5D61FD591A84238C00846EE7 /* SDLReadDID.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB6C1A84238B00846EE7 /* SDLReadDID.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD5A1A84238C00846EE7 /* SDLReadDID.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB6D1A84238B00846EE7 /* SDLReadDID.m */; }; - 5D61FD5B1A84238C00846EE7 /* SDLReadDIDResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB6E1A84238B00846EE7 /* SDLReadDIDResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD5C1A84238C00846EE7 /* SDLReadDIDResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB6F1A84238B00846EE7 /* SDLReadDIDResponse.m */; }; - 5D61FD5D1A84238C00846EE7 /* SDLRegisterAppInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB701A84238B00846EE7 /* SDLRegisterAppInterface.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD5E1A84238C00846EE7 /* SDLRegisterAppInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB711A84238B00846EE7 /* SDLRegisterAppInterface.m */; }; - 5D61FD5F1A84238C00846EE7 /* SDLRegisterAppInterfaceResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB721A84238B00846EE7 /* SDLRegisterAppInterfaceResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD601A84238C00846EE7 /* SDLRegisterAppInterfaceResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB731A84238B00846EE7 /* SDLRegisterAppInterfaceResponse.m */; }; - 5D61FD611A84238C00846EE7 /* SDLRequestType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB741A84238B00846EE7 /* SDLRequestType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD621A84238C00846EE7 /* SDLRequestType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB751A84238B00846EE7 /* SDLRequestType.m */; }; - 5D61FD631A84238C00846EE7 /* SDLResetGlobalProperties.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB761A84238B00846EE7 /* SDLResetGlobalProperties.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD641A84238C00846EE7 /* SDLResetGlobalProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB771A84238B00846EE7 /* SDLResetGlobalProperties.m */; }; - 5D61FD651A84238C00846EE7 /* SDLResetGlobalPropertiesResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB781A84238B00846EE7 /* SDLResetGlobalPropertiesResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD661A84238C00846EE7 /* SDLResetGlobalPropertiesResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB791A84238B00846EE7 /* SDLResetGlobalPropertiesResponse.m */; }; - 5D61FD671A84238C00846EE7 /* SDLResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB7A1A84238B00846EE7 /* SDLResult.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD681A84238C00846EE7 /* SDLResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB7B1A84238B00846EE7 /* SDLResult.m */; }; - 5D61FD691A84238C00846EE7 /* SDLRPCMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB7C1A84238B00846EE7 /* SDLRPCMessage.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD6A1A84238C00846EE7 /* SDLRPCMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB7D1A84238B00846EE7 /* SDLRPCMessage.m */; }; - 5D61FD6B1A84238C00846EE7 /* SDLRPCMessageType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB7E1A84238B00846EE7 /* SDLRPCMessageType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD6D1A84238C00846EE7 /* SDLRPCNotification.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB801A84238B00846EE7 /* SDLRPCNotification.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD6E1A84238C00846EE7 /* SDLRPCNotification.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB811A84238B00846EE7 /* SDLRPCNotification.m */; }; - 5D61FD6F1A84238C00846EE7 /* SDLRPCPayload.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB821A84238B00846EE7 /* SDLRPCPayload.h */; }; - 5D61FD701A84238C00846EE7 /* SDLRPCPayload.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB831A84238B00846EE7 /* SDLRPCPayload.m */; }; - 5D61FD711A84238C00846EE7 /* SDLRPCRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB841A84238B00846EE7 /* SDLRPCRequest.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD721A84238C00846EE7 /* SDLRPCRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB851A84238B00846EE7 /* SDLRPCRequest.m */; }; - 5D61FD731A84238C00846EE7 /* SDLRPCRequestFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB861A84238B00846EE7 /* SDLRPCRequestFactory.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD741A84238C00846EE7 /* SDLRPCRequestFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB871A84238B00846EE7 /* SDLRPCRequestFactory.m */; }; - 5D61FD751A84238C00846EE7 /* SDLRPCResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB881A84238B00846EE7 /* SDLRPCResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD761A84238C00846EE7 /* SDLRPCResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB891A84238B00846EE7 /* SDLRPCResponse.m */; }; - 5D61FD771A84238C00846EE7 /* SDLSamplingRate.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB8A1A84238B00846EE7 /* SDLSamplingRate.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD781A84238C00846EE7 /* SDLSamplingRate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB8B1A84238B00846EE7 /* SDLSamplingRate.m */; }; - 5D61FD791A84238C00846EE7 /* SDLScreenParams.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB8C1A84238B00846EE7 /* SDLScreenParams.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD7A1A84238C00846EE7 /* SDLScreenParams.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB8D1A84238B00846EE7 /* SDLScreenParams.m */; }; - 5D61FD7B1A84238C00846EE7 /* SDLScrollableMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB8E1A84238B00846EE7 /* SDLScrollableMessage.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD7C1A84238C00846EE7 /* SDLScrollableMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB8F1A84238B00846EE7 /* SDLScrollableMessage.m */; }; - 5D61FD7D1A84238C00846EE7 /* SDLScrollableMessageResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB901A84238B00846EE7 /* SDLScrollableMessageResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD7E1A84238C00846EE7 /* SDLScrollableMessageResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB911A84238B00846EE7 /* SDLScrollableMessageResponse.m */; }; - 5D61FD7F1A84238C00846EE7 /* SDLSetAppIcon.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB921A84238B00846EE7 /* SDLSetAppIcon.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD801A84238C00846EE7 /* SDLSetAppIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB931A84238B00846EE7 /* SDLSetAppIcon.m */; }; - 5D61FD811A84238C00846EE7 /* SDLSetAppIconResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB941A84238B00846EE7 /* SDLSetAppIconResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD821A84238C00846EE7 /* SDLSetAppIconResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB951A84238B00846EE7 /* SDLSetAppIconResponse.m */; }; - 5D61FD831A84238C00846EE7 /* SDLSetDisplayLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB961A84238B00846EE7 /* SDLSetDisplayLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD841A84238C00846EE7 /* SDLSetDisplayLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB971A84238B00846EE7 /* SDLSetDisplayLayout.m */; }; - 5D61FD851A84238C00846EE7 /* SDLSetDisplayLayoutResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB981A84238B00846EE7 /* SDLSetDisplayLayoutResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD861A84238C00846EE7 /* SDLSetDisplayLayoutResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB991A84238B00846EE7 /* SDLSetDisplayLayoutResponse.m */; }; - 5D61FD871A84238C00846EE7 /* SDLSetGlobalProperties.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB9A1A84238B00846EE7 /* SDLSetGlobalProperties.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD881A84238C00846EE7 /* SDLSetGlobalProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB9B1A84238B00846EE7 /* SDLSetGlobalProperties.m */; }; - 5D61FD891A84238C00846EE7 /* SDLSetGlobalPropertiesResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB9C1A84238B00846EE7 /* SDLSetGlobalPropertiesResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD8A1A84238C00846EE7 /* SDLSetGlobalPropertiesResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB9D1A84238B00846EE7 /* SDLSetGlobalPropertiesResponse.m */; }; - 5D61FD8B1A84238C00846EE7 /* SDLSetMediaClockTimer.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FB9E1A84238B00846EE7 /* SDLSetMediaClockTimer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD8C1A84238C00846EE7 /* SDLSetMediaClockTimer.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FB9F1A84238B00846EE7 /* SDLSetMediaClockTimer.m */; }; - 5D61FD8D1A84238C00846EE7 /* SDLSetMediaClockTimerResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBA01A84238B00846EE7 /* SDLSetMediaClockTimerResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD8E1A84238C00846EE7 /* SDLSetMediaClockTimerResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBA11A84238B00846EE7 /* SDLSetMediaClockTimerResponse.m */; }; - 5D61FD8F1A84238C00846EE7 /* SDLShow.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBA21A84238B00846EE7 /* SDLShow.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD901A84238C00846EE7 /* SDLShow.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBA31A84238B00846EE7 /* SDLShow.m */; }; - 5D61FD911A84238C00846EE7 /* SDLShowConstantTBT.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBA41A84238B00846EE7 /* SDLShowConstantTBT.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD921A84238C00846EE7 /* SDLShowConstantTBT.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBA51A84238B00846EE7 /* SDLShowConstantTBT.m */; }; - 5D61FD931A84238C00846EE7 /* SDLShowConstantTBTResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBA61A84238B00846EE7 /* SDLShowConstantTBTResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD941A84238C00846EE7 /* SDLShowConstantTBTResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBA71A84238B00846EE7 /* SDLShowConstantTBTResponse.m */; }; - 5D61FD951A84238C00846EE7 /* SDLShowResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBA81A84238B00846EE7 /* SDLShowResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD961A84238C00846EE7 /* SDLShowResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBA91A84238B00846EE7 /* SDLShowResponse.m */; }; - 5D61FD971A84238C00846EE7 /* SDLSingleTireStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBAA1A84238B00846EE7 /* SDLSingleTireStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD981A84238C00846EE7 /* SDLSingleTireStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBAB1A84238B00846EE7 /* SDLSingleTireStatus.m */; }; - 5D61FD991A84238C00846EE7 /* SDLSiphonServer.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBAC1A84238B00846EE7 /* SDLSiphonServer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD9A1A84238C00846EE7 /* SDLSiphonServer.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBAD1A84238B00846EE7 /* SDLSiphonServer.m */; }; - 5D61FD9B1A84238C00846EE7 /* SDLSlider.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBAE1A84238B00846EE7 /* SDLSlider.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD9C1A84238C00846EE7 /* SDLSlider.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBAF1A84238B00846EE7 /* SDLSlider.m */; }; - 5D61FD9D1A84238C00846EE7 /* SDLSliderResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBB01A84238B00846EE7 /* SDLSliderResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FD9E1A84238C00846EE7 /* SDLSliderResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBB11A84238B00846EE7 /* SDLSliderResponse.m */; }; - 5D61FD9F1A84238C00846EE7 /* SDLSoftButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBB21A84238B00846EE7 /* SDLSoftButton.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDA01A84238C00846EE7 /* SDLSoftButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBB31A84238B00846EE7 /* SDLSoftButton.m */; }; - 5D61FDA11A84238C00846EE7 /* SDLSoftButtonCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBB41A84238B00846EE7 /* SDLSoftButtonCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDA21A84238C00846EE7 /* SDLSoftButtonCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBB51A84238B00846EE7 /* SDLSoftButtonCapabilities.m */; }; - 5D61FDA31A84238C00846EE7 /* SDLSoftButtonType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBB61A84238B00846EE7 /* SDLSoftButtonType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDA41A84238C00846EE7 /* SDLSoftButtonType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBB71A84238B00846EE7 /* SDLSoftButtonType.m */; }; - 5D61FDA51A84238C00846EE7 /* SDLSpeak.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBB81A84238B00846EE7 /* SDLSpeak.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDA61A84238C00846EE7 /* SDLSpeak.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBB91A84238B00846EE7 /* SDLSpeak.m */; }; - 5D61FDA71A84238C00846EE7 /* SDLSpeakResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBBA1A84238B00846EE7 /* SDLSpeakResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDA81A84238C00846EE7 /* SDLSpeakResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBBB1A84238B00846EE7 /* SDLSpeakResponse.m */; }; - 5D61FDA91A84238C00846EE7 /* SDLSpeechCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBBC1A84238B00846EE7 /* SDLSpeechCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDAA1A84238C00846EE7 /* SDLSpeechCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBBD1A84238B00846EE7 /* SDLSpeechCapabilities.m */; }; - 5D61FDAB1A84238C00846EE7 /* SDLStartTime.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBBE1A84238B00846EE7 /* SDLStartTime.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDAC1A84238C00846EE7 /* SDLStartTime.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBBF1A84238B00846EE7 /* SDLStartTime.m */; }; - 5D61FDAD1A84238C00846EE7 /* SDLSubscribeButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBC01A84238B00846EE7 /* SDLSubscribeButton.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDAE1A84238C00846EE7 /* SDLSubscribeButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBC11A84238B00846EE7 /* SDLSubscribeButton.m */; }; - 5D61FDAF1A84238C00846EE7 /* SDLSubscribeButtonResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBC21A84238B00846EE7 /* SDLSubscribeButtonResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDB01A84238C00846EE7 /* SDLSubscribeButtonResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBC31A84238B00846EE7 /* SDLSubscribeButtonResponse.m */; }; - 5D61FDB11A84238C00846EE7 /* SDLSubscribeVehicleData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBC41A84238B00846EE7 /* SDLSubscribeVehicleData.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDB21A84238C00846EE7 /* SDLSubscribeVehicleData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBC51A84238B00846EE7 /* SDLSubscribeVehicleData.m */; }; - 5D61FDB31A84238C00846EE7 /* SDLSubscribeVehicleDataResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBC61A84238B00846EE7 /* SDLSubscribeVehicleDataResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDB41A84238C00846EE7 /* SDLSubscribeVehicleDataResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBC71A84238B00846EE7 /* SDLSubscribeVehicleDataResponse.m */; }; - 5D61FDB51A84238C00846EE7 /* SDLSyncMsgVersion.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBC81A84238B00846EE7 /* SDLSyncMsgVersion.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDB61A84238C00846EE7 /* SDLSyncMsgVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBC91A84238B00846EE7 /* SDLSyncMsgVersion.m */; }; - 5D61FDB71A84238C00846EE7 /* SDLSyncPData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBCA1A84238B00846EE7 /* SDLSyncPData.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDB81A84238C00846EE7 /* SDLSyncPData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBCB1A84238B00846EE7 /* SDLSyncPData.m */; }; - 5D61FDB91A84238C00846EE7 /* SDLSyncPDataResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBCC1A84238B00846EE7 /* SDLSyncPDataResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDBA1A84238C00846EE7 /* SDLSyncPDataResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBCD1A84238B00846EE7 /* SDLSyncPDataResponse.m */; }; - 5D61FDBB1A84238C00846EE7 /* SDLSystemAction.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBCE1A84238B00846EE7 /* SDLSystemAction.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDBC1A84238C00846EE7 /* SDLSystemAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBCF1A84238B00846EE7 /* SDLSystemAction.m */; }; - 5D61FDBD1A84238C00846EE7 /* SDLSystemContext.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBD01A84238B00846EE7 /* SDLSystemContext.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDBE1A84238C00846EE7 /* SDLSystemContext.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBD11A84238B00846EE7 /* SDLSystemContext.m */; }; - 5D61FDC01A84238C00846EE7 /* SDLSystemRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBD31A84238B00846EE7 /* SDLSystemRequest.m */; }; - 5D61FDC21A84238C00846EE7 /* SDLSystemRequestResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBD51A84238B00846EE7 /* SDLSystemRequestResponse.m */; }; - 5D61FDC31A84238C00846EE7 /* SDLTBTState.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBD61A84238B00846EE7 /* SDLTBTState.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDC41A84238C00846EE7 /* SDLTBTState.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBD71A84238B00846EE7 /* SDLTBTState.m */; }; - 5D61FDC51A84238C00846EE7 /* SDLTCPTransport.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBD81A84238B00846EE7 /* SDLTCPTransport.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDC61A84238C00846EE7 /* SDLTCPTransport.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBD91A84238B00846EE7 /* SDLTCPTransport.m */; }; - 5D61FDC71A84238C00846EE7 /* SDLTextAlignment.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBDA1A84238B00846EE7 /* SDLTextAlignment.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDC81A84238C00846EE7 /* SDLTextAlignment.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBDB1A84238C00846EE7 /* SDLTextAlignment.m */; }; - 5D61FDC91A84238C00846EE7 /* SDLTextField.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBDC1A84238C00846EE7 /* SDLTextField.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDCA1A84238C00846EE7 /* SDLTextField.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBDD1A84238C00846EE7 /* SDLTextField.m */; }; - 5D61FDCB1A84238C00846EE7 /* SDLTextFieldName.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBDE1A84238C00846EE7 /* SDLTextFieldName.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDCC1A84238C00846EE7 /* SDLTextFieldName.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBDF1A84238C00846EE7 /* SDLTextFieldName.m */; }; - 5D61FDCD1A84238C00846EE7 /* SDLTimerMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBE01A84238C00846EE7 /* SDLTimerMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDCE1A84238C00846EE7 /* SDLTimerMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBE11A84238C00846EE7 /* SDLTimerMode.m */; }; - 5D61FDCF1A84238C00846EE7 /* SDLTireStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBE21A84238C00846EE7 /* SDLTireStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDD01A84238C00846EE7 /* SDLTireStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBE31A84238C00846EE7 /* SDLTireStatus.m */; }; - 5D61FDD11A84238C00846EE7 /* SDLTouchCoord.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBE41A84238C00846EE7 /* SDLTouchCoord.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDD21A84238C00846EE7 /* SDLTouchCoord.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBE51A84238C00846EE7 /* SDLTouchCoord.m */; }; - 5D61FDD31A84238C00846EE7 /* SDLTouchEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBE61A84238C00846EE7 /* SDLTouchEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDD41A84238C00846EE7 /* SDLTouchEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBE71A84238C00846EE7 /* SDLTouchEvent.m */; }; - 5D61FDD51A84238C00846EE7 /* SDLTouchEventCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBE81A84238C00846EE7 /* SDLTouchEventCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDD61A84238C00846EE7 /* SDLTouchEventCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBE91A84238C00846EE7 /* SDLTouchEventCapabilities.m */; }; - 5D61FDD71A84238C00846EE7 /* SDLTouchType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBEA1A84238C00846EE7 /* SDLTouchType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDD81A84238C00846EE7 /* SDLTouchType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBEB1A84238C00846EE7 /* SDLTouchType.m */; }; - 5D61FDDA1A84238C00846EE7 /* SDLTransportDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBED1A84238C00846EE7 /* SDLTransportDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDDB1A84238C00846EE7 /* SDLTriggerSource.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBEE1A84238C00846EE7 /* SDLTriggerSource.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDDC1A84238C00846EE7 /* SDLTriggerSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBEF1A84238C00846EE7 /* SDLTriggerSource.m */; }; - 5D61FDDD1A84238C00846EE7 /* SDLTTSChunk.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBF01A84238C00846EE7 /* SDLTTSChunk.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDDE1A84238C00846EE7 /* SDLTTSChunk.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBF11A84238C00846EE7 /* SDLTTSChunk.m */; }; - 5D61FDDF1A84238C00846EE7 /* SDLTTSChunkFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBF21A84238C00846EE7 /* SDLTTSChunkFactory.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDE01A84238C00846EE7 /* SDLTTSChunkFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBF31A84238C00846EE7 /* SDLTTSChunkFactory.m */; }; - 5D61FDE11A84238C00846EE7 /* SDLTurn.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBF41A84238C00846EE7 /* SDLTurn.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDE21A84238C00846EE7 /* SDLTurn.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBF51A84238C00846EE7 /* SDLTurn.m */; }; - 5D61FDE31A84238C00846EE7 /* SDLUnregisterAppInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBF61A84238C00846EE7 /* SDLUnregisterAppInterface.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDE41A84238C00846EE7 /* SDLUnregisterAppInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBF71A84238C00846EE7 /* SDLUnregisterAppInterface.m */; }; - 5D61FDE51A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBF81A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDE61A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBF91A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.m */; }; - 5D61FDE71A84238C00846EE7 /* SDLUnsubscribeButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBFA1A84238C00846EE7 /* SDLUnsubscribeButton.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDE81A84238C00846EE7 /* SDLUnsubscribeButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBFB1A84238C00846EE7 /* SDLUnsubscribeButton.m */; }; - 5D61FDE91A84238C00846EE7 /* SDLUnsubscribeButtonResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBFC1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDEA1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBFD1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.m */; }; - 5D61FDEB1A84238C00846EE7 /* SDLUnsubscribeVehicleData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBFE1A84238C00846EE7 /* SDLUnsubscribeVehicleData.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDEC1A84238C00846EE7 /* SDLUnsubscribeVehicleData.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FBFF1A84238C00846EE7 /* SDLUnsubscribeVehicleData.m */; }; - 5D61FDED1A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC001A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDEE1A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC011A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.m */; }; - 5D61FDEF1A84238C00846EE7 /* SDLUpdateMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC021A84238C00846EE7 /* SDLUpdateMode.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDF01A84238C00846EE7 /* SDLUpdateMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC031A84238C00846EE7 /* SDLUpdateMode.m */; }; - 5D61FDF11A84238C00846EE7 /* SDLUpdateTurnList.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC041A84238C00846EE7 /* SDLUpdateTurnList.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDF21A84238C00846EE7 /* SDLUpdateTurnList.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC051A84238C00846EE7 /* SDLUpdateTurnList.m */; }; - 5D61FDF31A84238C00846EE7 /* SDLUpdateTurnListResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC061A84238C00846EE7 /* SDLUpdateTurnListResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDF41A84238C00846EE7 /* SDLUpdateTurnListResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC071A84238C00846EE7 /* SDLUpdateTurnListResponse.m */; }; - 5D61FDF51A84238C00846EE7 /* SDLV1ProtocolHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC081A84238C00846EE7 /* SDLV1ProtocolHeader.h */; }; - 5D61FDF61A84238C00846EE7 /* SDLV1ProtocolHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC091A84238C00846EE7 /* SDLV1ProtocolHeader.m */; }; - 5D61FDF71A84238C00846EE7 /* SDLV1ProtocolMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC0A1A84238C00846EE7 /* SDLV1ProtocolMessage.h */; }; - 5D61FDF81A84238C00846EE7 /* SDLV1ProtocolMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC0B1A84238C00846EE7 /* SDLV1ProtocolMessage.m */; }; - 5D61FDF91A84238C00846EE7 /* SDLV2ProtocolHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC0C1A84238C00846EE7 /* SDLV2ProtocolHeader.h */; }; - 5D61FDFA1A84238C00846EE7 /* SDLV2ProtocolHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC0D1A84238C00846EE7 /* SDLV2ProtocolHeader.m */; }; - 5D61FDFB1A84238C00846EE7 /* SDLV2ProtocolMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC0E1A84238C00846EE7 /* SDLV2ProtocolMessage.h */; }; - 5D61FDFC1A84238C00846EE7 /* SDLV2ProtocolMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC0F1A84238C00846EE7 /* SDLV2ProtocolMessage.m */; }; - 5D61FDFD1A84238C00846EE7 /* SDLVehicleDataActiveStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC101A84238C00846EE7 /* SDLVehicleDataActiveStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FDFE1A84238C00846EE7 /* SDLVehicleDataActiveStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC111A84238C00846EE7 /* SDLVehicleDataActiveStatus.m */; }; - 5D61FDFF1A84238C00846EE7 /* SDLVehicleDataEventStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC121A84238C00846EE7 /* SDLVehicleDataEventStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FE001A84238C00846EE7 /* SDLVehicleDataEventStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC131A84238C00846EE7 /* SDLVehicleDataEventStatus.m */; }; - 5D61FE011A84238C00846EE7 /* SDLVehicleDataNotificationStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC141A84238C00846EE7 /* SDLVehicleDataNotificationStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FE021A84238C00846EE7 /* SDLVehicleDataNotificationStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC151A84238C00846EE7 /* SDLVehicleDataNotificationStatus.m */; }; - 5D61FE031A84238C00846EE7 /* SDLVehicleDataResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC161A84238C00846EE7 /* SDLVehicleDataResult.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FE041A84238C00846EE7 /* SDLVehicleDataResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC171A84238C00846EE7 /* SDLVehicleDataResult.m */; }; - 5D61FE051A84238C00846EE7 /* SDLVehicleDataResultCode.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC181A84238C00846EE7 /* SDLVehicleDataResultCode.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FE061A84238C00846EE7 /* SDLVehicleDataResultCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC191A84238C00846EE7 /* SDLVehicleDataResultCode.m */; }; - 5D61FE071A84238C00846EE7 /* SDLVehicleDataStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC1A1A84238C00846EE7 /* SDLVehicleDataStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FE081A84238C00846EE7 /* SDLVehicleDataStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC1B1A84238C00846EE7 /* SDLVehicleDataStatus.m */; }; - 5D61FE091A84238C00846EE7 /* SDLVehicleDataType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC1C1A84238C00846EE7 /* SDLVehicleDataType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FE0A1A84238C00846EE7 /* SDLVehicleDataType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC1D1A84238C00846EE7 /* SDLVehicleDataType.m */; }; - 5D61FE0B1A84238C00846EE7 /* SDLVehicleType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC1E1A84238C00846EE7 /* SDLVehicleType.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FE0C1A84238C00846EE7 /* SDLVehicleType.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC1F1A84238C00846EE7 /* SDLVehicleType.m */; }; - 5D61FE0D1A84238C00846EE7 /* SDLVRCapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC201A84238C00846EE7 /* SDLVRCapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FE0E1A84238C00846EE7 /* SDLVRCapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC211A84238C00846EE7 /* SDLVRCapabilities.m */; }; - 5D61FE0F1A84238C00846EE7 /* SDLVRHelpItem.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC221A84238C00846EE7 /* SDLVRHelpItem.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FE101A84238C00846EE7 /* SDLVRHelpItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC231A84238C00846EE7 /* SDLVRHelpItem.m */; }; - 5D61FE111A84238C00846EE7 /* SDLWarningLightStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC241A84238C00846EE7 /* SDLWarningLightStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FE121A84238C00846EE7 /* SDLWarningLightStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC251A84238C00846EE7 /* SDLWarningLightStatus.m */; }; - 5D61FE131A84238C00846EE7 /* SDLWiperStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FC261A84238C00846EE7 /* SDLWiperStatus.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D61FE141A84238C00846EE7 /* SDLWiperStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D61FC271A84238C00846EE7 /* SDLWiperStatus.m */; }; - 5D86022E1C99AF5100A55266 /* OCMock.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1464351C99AC0900727339 /* OCMock.framework */; }; - 5D86022F1C99AF5900A55266 /* OCMock.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5D1464351C99AC0900727339 /* OCMock.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 5D8602301C99AF8300A55266 /* Nimble.framework.dSYM in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5D1464311C99AC0000727339 /* Nimble.framework.dSYM */; }; - 5D8602311C99AF8300A55266 /* OCMock.framework.dSYM in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5D1464331C99AC0900727339 /* OCMock.framework.dSYM */; }; - 5D8602321C99AF8300A55266 /* Quick.framework.dSYM in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5D1464341C99AC0900727339 /* Quick.framework.dSYM */; }; - 5D8B174F1AC9D266006A6E1C /* SDLDialNumber.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D8B174D1AC9D266006A6E1C /* SDLDialNumber.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D8B17501AC9D266006A6E1C /* SDLDialNumber.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D8B174E1AC9D266006A6E1C /* SDLDialNumber.m */; }; - 5D8B17531AC9E11B006A6E1C /* SDLDialNumberResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D8B17511AC9E11B006A6E1C /* SDLDialNumberResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D8B17541AC9E11B006A6E1C /* SDLDialNumberResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D8B17521AC9E11B006A6E1C /* SDLDialNumberResponse.m */; }; - 5D8B17561AC9E399006A6E1C /* SDLDialNumberSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D8B17551AC9E399006A6E1C /* SDLDialNumberSpec.m */; }; - 5DA026901AD44EE700019F86 /* SDLDialNumberResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DA0268F1AD44EE700019F86 /* SDLDialNumberResponseSpec.m */; }; - 5DB92D241AC47B2C00C15BB0 /* SDLHexUtilitySpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DB92D231AC47B2C00C15BB0 /* SDLHexUtilitySpec.m */; }; - 5DB92D261AC4836F00C15BB0 /* SDLJingleSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DB92D251AC4836F00C15BB0 /* SDLJingleSpec.m */; }; - 5DB92D2D1AC4A34F00C15BB0 /* SDLPrioritizedObjectCollectionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DB92D2C1AC4A34F00C15BB0 /* SDLPrioritizedObjectCollectionSpec.m */; }; - 5DB92D2F1AC59F0000C15BB0 /* SDLObjectWithPrioritySpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DB92D2E1AC59F0000C15BB0 /* SDLObjectWithPrioritySpec.m */; }; - 5DB92D321AC9C8BA00C15BB0 /* SDLRPCStruct.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DB92D301AC9C8BA00C15BB0 /* SDLRPCStruct.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5DB92D331AC9C8BA00C15BB0 /* SDLRPCStruct.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DB92D311AC9C8BA00C15BB0 /* SDLRPCStruct.m */; }; - 5DC978261B7A38640012C2F1 /* SDLGlobalsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DC978251B7A38640012C2F1 /* SDLGlobalsSpec.m */; }; - 5DCC19A01B8221F3004FFAD9 /* SDLURLSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DCC199E1B8221F3004FFAD9 /* SDLURLSession.h */; }; - 5DCC19A11B8221F3004FFAD9 /* SDLURLSession.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCC199F1B8221F3004FFAD9 /* SDLURLSession.m */; }; - 5DCC19A41B822804004FFAD9 /* SDLURLRequestTask.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DCC19A21B822804004FFAD9 /* SDLURLRequestTask.h */; }; - 5DCC19A51B822804004FFAD9 /* SDLURLRequestTask.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCC19A31B822804004FFAD9 /* SDLURLRequestTask.m */; }; - 5DCF76F51ACDBAD300BB647B /* SDLSendLocation.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DCF76F31ACDBAD300BB647B /* SDLSendLocation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5DCF76F61ACDBAD300BB647B /* SDLSendLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCF76F41ACDBAD300BB647B /* SDLSendLocation.m */; }; - 5DCF76F91ACDD7CD00BB647B /* SDLSendLocationResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DCF76F71ACDD7CD00BB647B /* SDLSendLocationResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5DCF76FA1ACDD7CD00BB647B /* SDLSendLocationResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCF76F81ACDD7CD00BB647B /* SDLSendLocationResponse.m */; }; - 5DCF76FC1ACDDB4200BB647B /* SDLSendLocationSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCF76FB1ACDDB4200BB647B /* SDLSendLocationSpec.m */; }; - 5DCF76FE1ACDDB5A00BB647B /* SDLSendLocationResponseSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCF76FD1ACDDB5A00BB647B /* SDLSendLocationResponseSpec.m */; }; - 5DE372A11ACB2ED300849FAA /* SDLHMICapabilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DE3729F1ACB2ED300849FAA /* SDLHMICapabilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5DE372A21ACB2ED300849FAA /* SDLHMICapabilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DE372A01ACB2ED300849FAA /* SDLHMICapabilities.m */; }; - 5DE372A41ACB336600849FAA /* SDLHMICapabilitiesSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DE372A31ACB336600849FAA /* SDLHMICapabilitiesSpec.m */; }; - 5DE372A61ACC35B400849FAA /* SDLDebugToolConsole.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DE372A51ACC35B400849FAA /* SDLDebugToolConsole.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5DE5ABB71B0E38C90067BB02 /* SDLSystemRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBD21A84238B00846EE7 /* SDLSystemRequest.h */; }; - 5DE5ABB81B0E38C90067BB02 /* SDLSystemRequestResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBD41A84238B00846EE7 /* SDLSystemRequestResponse.h */; }; - 5DEE55C01B8509CB004F0D0F /* SDLURLRequestTaskSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DEE55BF1B8509CB004F0D0F /* SDLURLRequestTaskSpec.m */; }; - 5DEE55C21B864A7D004F0D0F /* OHHTTPStubs.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DEE55C11B864A7D004F0D0F /* OHHTTPStubs.framework */; }; - 5DEE55C51B864AB3004F0D0F /* OHHTTPStubs.framework.dSYM in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5DEE55C41B864AB3004F0D0F /* OHHTTPStubs.framework.dSYM */; }; - 5DEE55C61B8666A8004F0D0F /* OHHTTPStubs.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5DEE55C11B864A7D004F0D0F /* OHHTTPStubs.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 5DF2BB9D1B94E38A00CE5994 /* SDLURLSessionSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DF2BB9C1B94E38A00CE5994 /* SDLURLSessionSpec.m */; }; - E9C32B861AB20B4300F283AF /* NSThread+ThreadIndex.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B841AB20B4300F283AF /* NSThread+ThreadIndex.h */; }; - E9C32B871AB20B4300F283AF /* NSThread+ThreadIndex.m in Sources */ = {isa = PBXBuildFile; fileRef = E9C32B851AB20B4300F283AF /* NSThread+ThreadIndex.m */; }; - E9C32B911AB20BA200F283AF /* SDLIAPSession.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B891AB20BA200F283AF /* SDLIAPSession.h */; }; - E9C32B921AB20BA200F283AF /* SDLIAPSession.m in Sources */ = {isa = PBXBuildFile; fileRef = E9C32B8A1AB20BA200F283AF /* SDLIAPSession.m */; }; - E9C32B931AB20BA200F283AF /* SDLIAPSessionDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B8B1AB20BA200F283AF /* SDLIAPSessionDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; - E9C32B941AB20BA200F283AF /* SDLStreamDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B8C1AB20BA200F283AF /* SDLStreamDelegate.h */; }; - E9C32B951AB20BA200F283AF /* SDLStreamDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E9C32B8D1AB20BA200F283AF /* SDLStreamDelegate.m */; }; - E9C32B961AB20BA200F283AF /* SDLTimer.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B8E1AB20BA200F283AF /* SDLTimer.h */; }; - E9C32B971AB20BA200F283AF /* SDLTimer.m in Sources */ = {isa = PBXBuildFile; fileRef = E9C32B8F1AB20BA200F283AF /* SDLTimer.m */; }; - E9C32B9C1AB20C5900F283AF /* EAAccessory+SDLProtocols.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B981AB20C5900F283AF /* EAAccessory+SDLProtocols.h */; }; - E9C32B9D1AB20C5900F283AF /* EAAccessory+SDLProtocols.m in Sources */ = {isa = PBXBuildFile; fileRef = E9C32B991AB20C5900F283AF /* EAAccessory+SDLProtocols.m */; }; - E9C32B9E1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.h in Headers */ = {isa = PBXBuildFile; fileRef = E9C32B9A1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.h */; }; - E9C32B9F1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.m in Sources */ = {isa = PBXBuildFile; fileRef = E9C32B9B1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 5D61FA281A84237100846EE7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 5D4019A71A76EC350006B0C2 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 5D61FA1B1A84237100846EE7; - remoteInfo = SmartDeviceLink; - }; - 5D61FA2A1A84237100846EE7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 5D4019A71A76EC350006B0C2 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 5D4019AE1A76EC350006B0C2; - remoteInfo = "SmartDeviceLink-Example"; - }; - 5D61FA311A84237100846EE7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 5D4019A71A76EC350006B0C2 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 5D61FA1B1A84237100846EE7; - remoteInfo = SmartDeviceLink; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 162E81CE1A9BDDBB00906325 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 5DEE55C61B8666A8004F0D0F /* OHHTTPStubs.framework in CopyFiles */, - 5D86022F1C99AF5900A55266 /* OCMock.framework in CopyFiles */, - 5D4AB7A21B21EC16004C1AB0 /* SmartDeviceLink.framework in CopyFiles */, - 162E81CF1A9BDDD800906325 /* Nimble.framework in CopyFiles */, - 162E81D01A9BDDD800906325 /* Quick.framework in CopyFiles */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5D401CE11A76ED0B0006B0C2 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 5D61FA341A84237100846EE7 /* SmartDeviceLink.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; - 5DEE55C31B864A98004F0D0F /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 16; - files = ( - 5D8602301C99AF8300A55266 /* Nimble.framework.dSYM in CopyFiles */, - 5DEE55C51B864AB3004F0D0F /* OHHTTPStubs.framework.dSYM in CopyFiles */, - 5D8602311C99AF8300A55266 /* OCMock.framework.dSYM in CopyFiles */, - 5D8602321C99AF8300A55266 /* Quick.framework.dSYM in CopyFiles */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 162E81C81A9BDD3F00906325 /* Nimble.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Nimble.framework; path = Carthage/Build/iOS/Nimble.framework; sourceTree = ""; }; - 162E81C91A9BDD3F00906325 /* Quick.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Quick.framework; path = Carthage/Build/iOS/Quick.framework; sourceTree = ""; }; - 162E81E21A9BDE8A00906325 /* SDLAmbientLightStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAmbientLightStatusSpec.m; sourceTree = ""; }; - 162E81E31A9BDE8A00906325 /* SDLAppHMITypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAppHMITypeSpec.m; sourceTree = ""; }; - 162E81E41A9BDE8A00906325 /* SDLAppInterfaceUnregisteredReasonSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAppInterfaceUnregisteredReasonSpec.m; sourceTree = ""; }; - 162E81E51A9BDE8A00906325 /* SDLAudioStreamingStateSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAudioStreamingStateSpec.m; sourceTree = ""; }; - 162E81E61A9BDE8A00906325 /* SDLAudioTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAudioTypeSpec.m; sourceTree = ""; }; - 162E81E71A9BDE8A00906325 /* SDLBitsPerSampleSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLBitsPerSampleSpec.m; sourceTree = ""; }; - 162E81E81A9BDE8A00906325 /* SDLButtonEventModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonEventModeSpec.m; sourceTree = ""; }; - 162E81E91A9BDE8A00906325 /* SDLButtonNameSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonNameSpec.m; sourceTree = ""; }; - 162E81EA1A9BDE8A00906325 /* SDLButtonPressModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonPressModeSpec.m; sourceTree = ""; }; - 162E81EB1A9BDE8A00906325 /* SDLCarModeStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCarModeStatusSpec.m; sourceTree = ""; }; - 162E81EC1A9BDE8A00906325 /* SDLCharacterSetSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCharacterSetSpec.m; sourceTree = ""; }; - 162E81ED1A9BDE8A00906325 /* SDLCompassDirectionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCompassDirectionSpec.m; sourceTree = ""; }; - 162E81EE1A9BDE8A00906325 /* SDLComponentVolumeStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLComponentVolumeStatusSpec.m; sourceTree = ""; }; - 162E81EF1A9BDE8A00906325 /* SDLDeviceLevelStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeviceLevelStatusSpec.m; sourceTree = ""; }; - 162E81F01A9BDE8A00906325 /* SDLDimensionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDimensionSpec.m; sourceTree = ""; }; - 162E81F11A9BDE8A00906325 /* SDLDisplayTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDisplayTypeSpec.m; sourceTree = ""; }; - 162E81F21A9BDE8A00906325 /* SDLDriverDistractionStateSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDriverDistractionStateSpec.m; sourceTree = ""; }; - 162E81F31A9BDE8A00906325 /* SDLECallConfirmationStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLECallConfirmationStatusSpec.m; sourceTree = ""; }; - 162E81F41A9BDE8A00906325 /* SDLEmergencyEventTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEmergencyEventTypeSpec.m; sourceTree = ""; }; - 162E81F51A9BDE8A00906325 /* SDLFileTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLFileTypeSpec.m; sourceTree = ""; }; - 162E81F61A9BDE8A00906325 /* SDLFuelCutoffStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLFuelCutoffStatusSpec.m; sourceTree = ""; }; - 162E81F71A9BDE8A00906325 /* SDLGlobalProperySpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGlobalProperySpec.m; sourceTree = ""; }; - 162E81F81A9BDE8A00906325 /* SDLHMILevelSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMILevelSpec.m; sourceTree = ""; }; - 162E81F91A9BDE8A00906325 /* SDLHMIZoneCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMIZoneCapabilitiesSpec.m; sourceTree = ""; }; - 162E81FA1A9BDE8A00906325 /* SDLIgnitionStableStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLIgnitionStableStatusSpec.m; sourceTree = ""; }; - 162E81FB1A9BDE8A00906325 /* SDLIgnitionStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLIgnitionStatusSpec.m; sourceTree = ""; }; - 162E81FC1A9BDE8A00906325 /* SDLImageFieldNameSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageFieldNameSpec.m; sourceTree = ""; }; - 162E81FD1A9BDE8A00906325 /* SDLImageTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageTypeSpec.m; sourceTree = ""; }; - 162E81FE1A9BDE8A00906325 /* SDLInteractionModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLInteractionModeSpec.m; sourceTree = ""; }; - 162E81FF1A9BDE8A00906325 /* SDLKeyboardEventSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeyboardEventSpec.m; sourceTree = ""; }; - 162E82001A9BDE8A00906325 /* SDLKeyboardLayoutSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeyboardLayoutSpec.m; sourceTree = ""; }; - 162E82011A9BDE8A00906325 /* SDLKeypressModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeypressModeSpec.m; sourceTree = ""; }; - 162E82021A9BDE8A00906325 /* SDLLanguageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLanguageSpec.m; sourceTree = ""; }; - 162E82031A9BDE8A00906325 /* SDLLayoutModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLayoutModeSpec.m; sourceTree = ""; }; - 162E82041A9BDE8A00906325 /* SDLLockScreenStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLockScreenStatusSpec.m; sourceTree = ""; }; - 162E82051A9BDE8A00906325 /* SDLMaintenanceModeStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMaintenanceModeStatusSpec.m; sourceTree = ""; }; - 162E82061A9BDE8A00906325 /* SDLMediaClockFormatSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMediaClockFormatSpec.m; sourceTree = ""; }; - 162E82071A9BDE8A00906325 /* SDLPermissionStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPermissionStatusSpec.m; sourceTree = ""; }; - 162E82081A9BDE8A00906325 /* SDLPowerModeQualificationStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPowerModeQualificationStatusSpec.m; sourceTree = ""; }; - 162E82091A9BDE8A00906325 /* SDLPowerModeStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPowerModeStatusSpec.m; sourceTree = ""; }; - 162E820A1A9BDE8A00906325 /* SDLPredefinedLayoutSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPredefinedLayoutSpec.m; sourceTree = ""; }; - 162E820B1A9BDE8A00906325 /* SDLPrerecordedSpeechSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPrerecordedSpeechSpec.m; sourceTree = ""; }; - 162E820C1A9BDE8A00906325 /* SDLPrimaryAudioSource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPrimaryAudioSource.m; sourceTree = ""; }; - 162E820D1A9BDE8A00906325 /* SDLPRNDLSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPRNDLSpec.m; sourceTree = ""; }; - 162E820E1A9BDE8A00906325 /* SDLRequestTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRequestTypeSpec.m; sourceTree = ""; }; - 162E820F1A9BDE8A00906325 /* SDLResultSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLResultSpec.m; sourceTree = ""; }; - 162E82111A9BDE8A00906325 /* SDLSamplingRateSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSamplingRateSpec.m; sourceTree = ""; }; - 162E82121A9BDE8A00906325 /* SDLSoftButtonTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSoftButtonTypeSpec.m; sourceTree = ""; }; - 162E82131A9BDE8A00906325 /* SDLSpeechCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpeechCapabilitiesSpec.m; sourceTree = ""; }; - 162E82141A9BDE8A00906325 /* SDLSystemAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemAction.m; sourceTree = ""; }; - 162E82151A9BDE8A00906325 /* SDLSystemContextSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemContextSpec.m; sourceTree = ""; }; - 162E82161A9BDE8A00906325 /* SDLTBTStateSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTBTStateSpec.m; sourceTree = ""; }; - 162E82171A9BDE8A00906325 /* SDLTextAlignmentSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTextAlignmentSpec.m; sourceTree = ""; }; - 162E82181A9BDE8A00906325 /* SDLTextFieldNameSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTextFieldNameSpec.m; sourceTree = ""; }; - 162E82191A9BDE8A00906325 /* SDLTimerModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTimerModeSpec.m; sourceTree = ""; }; - 162E821A1A9BDE8A00906325 /* SDLTouchTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchTypeSpec.m; sourceTree = ""; }; - 162E821B1A9BDE8A00906325 /* SDLTriggerSource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTriggerSource.m; sourceTree = ""; }; - 162E821C1A9BDE8A00906325 /* SDLUpdateModeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUpdateModeSpec.m; sourceTree = ""; }; - 162E821D1A9BDE8A00906325 /* SDLVehicleDataActiveStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataActiveStatusSpec.m; sourceTree = ""; }; - 162E821E1A9BDE8A00906325 /* SDLVehicleDataEventStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataEventStatusSpec.m; sourceTree = ""; }; - 162E821F1A9BDE8A00906325 /* SDLVehicleDataNotificationStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataNotificationStatusSpec.m; sourceTree = ""; }; - 162E82201A9BDE8A00906325 /* SDLVehicleDataResultCodeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataResultCodeSpec.m; sourceTree = ""; }; - 162E82211A9BDE8A00906325 /* SDLVehicleDataStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataStatusSpec.m; sourceTree = ""; }; - 162E82221A9BDE8A00906325 /* SDLVehicleDataTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataTypeSpec.m; sourceTree = ""; }; - 162E82231A9BDE8A00906325 /* SDLVrCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVrCapabilitiesSpec.m; sourceTree = ""; }; - 162E82241A9BDE8A00906325 /* SDLWarningLightStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLWarningLightStatusSpec.m; sourceTree = ""; }; - 162E82251A9BDE8A00906325 /* SDLWiperStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLWiperStatusSpec.m; sourceTree = ""; }; - 162E82271A9BDE8A00906325 /* SDLRPCRequestFactorySpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCRequestFactorySpec.m; sourceTree = ""; }; - 162E82291A9BDE8A00906325 /* SDLOnAppInterfaceUnregisteredSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnAppInterfaceUnregisteredSpec.m; sourceTree = ""; }; - 162E822A1A9BDE8A00906325 /* SDLOnAudioPassThruSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnAudioPassThruSpec.m; sourceTree = ""; }; - 162E822B1A9BDE8A00906325 /* SDLOnButtonEventSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnButtonEventSpec.m; sourceTree = ""; }; - 162E822C1A9BDE8A00906325 /* SDLOnButtonPressSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnButtonPressSpec.m; sourceTree = ""; }; - 162E822D1A9BDE8A00906325 /* SDLOnCommandSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnCommandSpec.m; sourceTree = ""; }; - 162E822E1A9BDE8A00906325 /* SDLOnDriverDistractionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnDriverDistractionSpec.m; sourceTree = ""; }; - 162E822F1A9BDE8A00906325 /* SDLOnEncodedSyncPDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnEncodedSyncPDataSpec.m; sourceTree = ""; }; - 162E82301A9BDE8A00906325 /* SDLOnHashChangeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnHashChangeSpec.m; sourceTree = ""; }; - 162E82311A9BDE8A00906325 /* SDLOnHMIStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnHMIStatusSpec.m; sourceTree = ""; }; - 162E82321A9BDE8A00906325 /* SDLOnKeyboardInputSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnKeyboardInputSpec.m; sourceTree = ""; }; - 162E82331A9BDE8A00906325 /* SDLOnLanguageChangeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnLanguageChangeSpec.m; sourceTree = ""; }; - 162E82341A9BDE8A00906325 /* SDLOnLockScreenStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnLockScreenStatusSpec.m; sourceTree = ""; }; - 162E82351A9BDE8A00906325 /* SDLOnPermissionsChangeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnPermissionsChangeSpec.m; sourceTree = ""; }; - 162E82361A9BDE8A00906325 /* SDLOnSyncPDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnSyncPDataSpec.m; sourceTree = ""; }; - 162E82371A9BDE8A00906325 /* SDLOnSystemRequestSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnSystemRequestSpec.m; sourceTree = ""; }; - 162E82381A9BDE8A00906325 /* SDLOnTBTClientStateSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnTBTClientStateSpec.m; sourceTree = ""; }; - 162E82391A9BDE8A00906325 /* SDLOnTouchEventSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnTouchEventSpec.m; sourceTree = ""; }; - 162E823A1A9BDE8A00906325 /* SDLOnVehicleDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnVehicleDataSpec.m; sourceTree = ""; }; - 162E823C1A9BDE8A00906325 /* SDLRPCPayloadSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCPayloadSpec.m; sourceTree = ""; }; - 162E823E1A9BDE8A00906325 /* SDLAddCommandSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddCommandSpec.m; sourceTree = ""; }; - 162E823F1A9BDE8A00906325 /* SDLAddSubMenuSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddSubMenuSpec.m; sourceTree = ""; }; - 162E82401A9BDE8A00906325 /* SDLAlertManeuverSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertManeuverSpec.m; sourceTree = ""; }; - 162E82411A9BDE8A00906325 /* SDLAlertSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertSpec.m; sourceTree = ""; }; - 162E82421A9BDE8A00906325 /* SDLChangeRegistrationSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLChangeRegistrationSpec.m; sourceTree = ""; }; - 162E82431A9BDE8A00906325 /* SDLCreateInteractionChoiceSetSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCreateInteractionChoiceSetSpec.m; sourceTree = ""; }; - 162E82441A9BDE8A00906325 /* SDLDeleteCommandSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteCommandSpec.m; sourceTree = ""; }; - 162E82451A9BDE8A00906325 /* SDLDeleteFileSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteFileSpec.m; sourceTree = ""; }; - 162E82461A9BDE8A00906325 /* SDLDeleteInteractionChoiceSetSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteInteractionChoiceSetSpec.m; sourceTree = ""; }; - 162E82471A9BDE8A00906325 /* SDLDeleteSubMenuSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteSubMenuSpec.m; sourceTree = ""; }; - 162E82481A9BDE8A00906325 /* SDLDiagnosticMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDiagnosticMessageSpec.m; sourceTree = ""; }; - 162E82491A9BDE8A00906325 /* SDLEncodedSyncPDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEncodedSyncPDataSpec.m; sourceTree = ""; }; - 162E824A1A9BDE8A00906325 /* SDLEndAudioPassThruSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEndAudioPassThruSpec.m; sourceTree = ""; }; - 162E824B1A9BDE8A00906325 /* SDLGetDTCsSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetDTCsSpec.m; sourceTree = ""; }; - 162E824C1A9BDE8A00906325 /* SDLGetVehicleDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetVehicleDataSpec.m; sourceTree = ""; }; - 162E824D1A9BDE8A00906325 /* SDLListFilesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLListFilesSpec.m; sourceTree = ""; }; - 162E824E1A9BDE8A00906325 /* SDLPerformAudioPassThruSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformAudioPassThruSpec.m; sourceTree = ""; }; - 162E824F1A9BDE8A00906325 /* SDLPerformInteractionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformInteractionSpec.m; sourceTree = ""; }; - 162E82501A9BDE8A00906325 /* SDLPutFileSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPutFileSpec.m; sourceTree = ""; }; - 162E82511A9BDE8A00906325 /* SDLReadDIDSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLReadDIDSpec.m; sourceTree = ""; }; - 162E82521A9BDE8A00906325 /* SDLRegisterAppInterfaceSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRegisterAppInterfaceSpec.m; sourceTree = ""; }; - 162E82531A9BDE8A00906325 /* SDLResetGlobalPropertiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLResetGlobalPropertiesSpec.m; sourceTree = ""; }; - 162E82541A9BDE8A00906325 /* SDLScrollableMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLScrollableMessageSpec.m; sourceTree = ""; }; - 162E82551A9BDE8A00906325 /* SDLSetAppIconSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetAppIconSpec.m; sourceTree = ""; }; - 162E82561A9BDE8A00906325 /* SDLSetDisplayLayoutSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetDisplayLayoutSpec.m; sourceTree = ""; }; - 162E82571A9BDE8A00906325 /* SDLSetGlobalPropertiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetGlobalPropertiesSpec.m; sourceTree = ""; }; - 162E82581A9BDE8A00906325 /* SDLSetMediaClockTimerSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetMediaClockTimerSpec.m; sourceTree = ""; }; - 162E82591A9BDE8A00906325 /* SDLShowConstantTBTSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowConstantTBTSpec.m; sourceTree = ""; }; - 162E825A1A9BDE8A00906325 /* SDLShowSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowSpec.m; sourceTree = ""; }; - 162E825B1A9BDE8A00906325 /* SDLSliderSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSliderSpec.m; sourceTree = ""; }; - 162E825C1A9BDE8A00906325 /* SDLSpeakSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpeakSpec.m; sourceTree = ""; }; - 162E825D1A9BDE8A00906325 /* SDLSubscribeButtonSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeButtonSpec.m; sourceTree = ""; }; - 162E825E1A9BDE8A00906325 /* SDLSubscribeVehicleDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeVehicleDataSpec.m; sourceTree = ""; }; - 162E825F1A9BDE8A00906325 /* SDLSyncPDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSyncPDataSpec.m; sourceTree = ""; }; - 162E82601A9BDE8A00906325 /* SDLSystemRequestSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemRequestSpec.m; sourceTree = ""; }; - 162E82611A9BDE8A00906325 /* SDLUnregisterAppInterfaceSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnregisterAppInterfaceSpec.m; sourceTree = ""; }; - 162E82621A9BDE8A00906325 /* SDLUnsubscribeButtonSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeButtonSpec.m; sourceTree = ""; }; - 162E82631A9BDE8A00906325 /* SDLUnsubscribeVehicleDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeVehicleDataSpec.m; sourceTree = ""; }; - 162E82641A9BDE8A00906325 /* SDLUpdateTurnListSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUpdateTurnListSpec.m; sourceTree = ""; }; - 162E82661A9BDE8A00906325 /* SDLAddCommandResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddCommandResponseSpec.m; sourceTree = ""; }; - 162E82671A9BDE8A00906325 /* SDLAddSubMenuResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddSubMenuResponseSpec.m; sourceTree = ""; }; - 162E82681A9BDE8A00906325 /* SDLAlertManeuverResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertManeuverResponseSpec.m; sourceTree = ""; }; - 162E82691A9BDE8A00906325 /* SDLAlertResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertResponseSpec.m; sourceTree = ""; }; - 162E826A1A9BDE8A00906325 /* SDLChangeRegistrationResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLChangeRegistrationResponseSpec.m; sourceTree = ""; }; - 162E826B1A9BDE8A00906325 /* SDLCreateInteractionChoiceSetResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCreateInteractionChoiceSetResponseSpec.m; sourceTree = ""; }; - 162E826C1A9BDE8A00906325 /* SDLDeleteCommandResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteCommandResponseSpec.m; sourceTree = ""; }; - 162E826D1A9BDE8A00906325 /* SDLDeleteFileResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteFileResponseSpec.m; sourceTree = ""; }; - 162E826E1A9BDE8A00906325 /* SDLDeleteInteractionChoiceSetResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteInteractionChoiceSetResponseSpec.m; sourceTree = ""; }; - 162E826F1A9BDE8A00906325 /* SDLDeleteSubMenuResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteSubMenuResponseSpec.m; sourceTree = ""; }; - 162E82701A9BDE8A00906325 /* SDLDiagnosticMessageResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDiagnosticMessageResponseSpec.m; sourceTree = ""; }; - 162E82711A9BDE8A00906325 /* SDLEncodedSyncPDataResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEncodedSyncPDataResponseSpec.m; sourceTree = ""; }; - 162E82721A9BDE8A00906325 /* SDLEndAudioPassThruResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEndAudioPassThruResponseSpec.m; sourceTree = ""; }; - 162E82731A9BDE8A00906325 /* SDLGenericResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGenericResponseSpec.m; sourceTree = ""; }; - 162E82741A9BDE8A00906325 /* SDLGetDTCsResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetDTCsResponseSpec.m; sourceTree = ""; }; - 162E82751A9BDE8A00906325 /* SDLGetVehicleDataResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetVehicleDataResponseSpec.m; sourceTree = ""; }; - 162E82761A9BDE8A00906325 /* SDLListFilesResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLListFilesResponseSpec.m; sourceTree = ""; }; - 162E82771A9BDE8A00906325 /* SDLPerformAudioPassThruResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformAudioPassThruResponseSpec.m; sourceTree = ""; }; - 162E82781A9BDE8A00906325 /* SDLPerformInteractionResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformInteractionResponseSpec.m; sourceTree = ""; }; - 162E82791A9BDE8A00906325 /* SDLPutFileResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPutFileResponseSpec.m; sourceTree = ""; }; - 162E827A1A9BDE8A00906325 /* SDLReadDIDResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLReadDIDResponseSpec.m; sourceTree = ""; }; - 162E827B1A9BDE8A00906325 /* SDLRegisterAppInterfaceResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRegisterAppInterfaceResponseSpec.m; sourceTree = ""; }; - 162E827C1A9BDE8A00906325 /* SDLResetGlobalPropertiesResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLResetGlobalPropertiesResponseSpec.m; sourceTree = ""; }; - 162E827D1A9BDE8A00906325 /* SDLScrollableMessageResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLScrollableMessageResponseSpec.m; sourceTree = ""; }; - 162E827E1A9BDE8A00906325 /* SDLSetAppIconResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetAppIconResponseSpec.m; sourceTree = ""; }; - 162E827F1A9BDE8A00906325 /* SDLSetDisplayLayoutResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetDisplayLayoutResponseSpec.m; sourceTree = ""; }; - 162E82801A9BDE8A00906325 /* SDLSetGlobalPropertiesResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetGlobalPropertiesResponseSpec.m; sourceTree = ""; }; - 162E82811A9BDE8A00906325 /* SDLSetMediaClockTimerResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetMediaClockTimerResponseSpec.m; sourceTree = ""; }; - 162E82821A9BDE8A00906325 /* SDLShowConstantTBTResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowConstantTBTResponseSpec.m; sourceTree = ""; }; - 162E82831A9BDE8A00906325 /* SDLShowResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowResponseSpec.m; sourceTree = ""; }; - 162E82841A9BDE8A00906325 /* SDLSliderResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSliderResponseSpec.m; sourceTree = ""; }; - 162E82851A9BDE8A00906325 /* SDLSpeakResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpeakResponseSpec.m; sourceTree = ""; }; - 162E82861A9BDE8A00906325 /* SDLSubscribeButtonResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeButtonResponseSpec.m; sourceTree = ""; }; - 162E82871A9BDE8A00906325 /* SDLSubscribeVehicleDataResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeVehicleDataResponseSpec.m; sourceTree = ""; }; - 162E82881A9BDE8A00906325 /* SDLSyncPDataResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSyncPDataResponseSpec.m; sourceTree = ""; }; - 162E82891A9BDE8A00906325 /* SDLSystemRequestResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemRequestResponseSpec.m; sourceTree = ""; }; - 162E828A1A9BDE8A00906325 /* SDLUnregisterAppInterfaceResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnregisterAppInterfaceResponseSpec.m; sourceTree = ""; }; - 162E828B1A9BDE8A00906325 /* SDLUnsubscribeButtonResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeButtonResponseSpec.m; sourceTree = ""; }; - 162E828C1A9BDE8A00906325 /* SDLUnsubscribeVehicleDataResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeVehicleDataResponseSpec.m; sourceTree = ""; }; - 162E828D1A9BDE8A00906325 /* SDLUpdateTurnListResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUpdateTurnListResponseSpec.m; sourceTree = ""; }; - 162E828F1A9BDE8A00906325 /* SDLAirbagStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAirbagStatusSpec.m; sourceTree = ""; }; - 162E82901A9BDE8A00906325 /* SDLAudioPassThruCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAudioPassThruCapabilitiesSpec.m; sourceTree = ""; }; - 162E82911A9BDE8A00906325 /* SDLBeltStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLBeltStatusSpec.m; sourceTree = ""; }; - 162E82921A9BDE8A00906325 /* SDLBodyInformationSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLBodyInformationSpec.m; sourceTree = ""; }; - 162E82931A9BDE8A00906325 /* SDLButtonCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonCapabilitiesSpec.m; sourceTree = ""; }; - 162E82941A9BDE8A00906325 /* SDLChoiceSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLChoiceSpec.m; sourceTree = ""; }; - 162E82951A9BDE8A00906325 /* SDLClusterModeStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLClusterModeStatusSpec.m; sourceTree = ""; }; - 162E82961A9BDE8A00906325 /* SDLDeviceInfoSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeviceInfoSpec.m; sourceTree = ""; }; - 162E82971A9BDE8A00906325 /* SDLDeviceStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeviceStatusSpec.m; sourceTree = ""; }; - 162E82981A9BDE8A00906325 /* SDLDIDResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDIDResult.m; sourceTree = ""; }; - 162E82991A9BDE8A00906325 /* SDLDisplayCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDisplayCapabilitiesSpec.m; sourceTree = ""; }; - 162E829A1A9BDE8A00906325 /* SDLECallInfoSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLECallInfoSpec.m; sourceTree = ""; }; - 162E829B1A9BDE8A00906325 /* SDLEmergencyEventSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEmergencyEventSpec.m; sourceTree = ""; }; - 162E829C1A9BDE8A00906325 /* SDLGPSDataSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGPSDataSpec.m; sourceTree = ""; }; - 162E829D1A9BDE8A00906325 /* SDLHeadLampStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHeadLampStatusSpec.m; sourceTree = ""; }; - 162E829E1A9BDE8A00906325 /* SDLHMIPermissionsSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMIPermissionsSpec.m; sourceTree = ""; }; - 162E829F1A9BDE8A00906325 /* SDLImageFieldSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageFieldSpec.m; sourceTree = ""; }; - 162E82A01A9BDE8A00906325 /* SDLImageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageSpec.m; sourceTree = ""; }; - 162E82A11A9BDE8A00906325 /* SDLKeyboardPropertiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeyboardPropertiesSpec.m; sourceTree = ""; }; - 162E82A21A9BDE8A00906325 /* SDLMenuParamsSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMenuParamsSpec.m; sourceTree = ""; }; - 162E82A31A9BDE8A00906325 /* SDLMyKeySpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMyKeySpec.m; sourceTree = ""; }; - 162E82A41A9BDE8A00906325 /* SDLParameterPermissionsSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLParameterPermissionsSpec.m; sourceTree = ""; }; - 162E82A51A9BDE8A00906325 /* SDLPermissionItemSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPermissionItemSpec.m; sourceTree = ""; }; - 162E82A61A9BDE8A00906325 /* SDLPresetBankCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPresetBankCapabilitiesSpec.m; sourceTree = ""; }; - 162E82A71A9BDE8A00906325 /* SDLScreenParamsSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLScreenParamsSpec.m; sourceTree = ""; }; - 162E82A81A9BDE8A00906325 /* SDLSingleTireStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSingleTireStatusSpec.m; sourceTree = ""; }; - 162E82A91A9BDE8A00906325 /* SDLSoftButtonCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSoftButtonCapabilitiesSpec.m; sourceTree = ""; }; - 162E82AA1A9BDE8A00906325 /* SDLSoftButtonSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSoftButtonSpec.m; sourceTree = ""; }; - 162E82AB1A9BDE8A00906325 /* SDLStartTimeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLStartTimeSpec.m; sourceTree = ""; }; - 162E82AC1A9BDE8A00906325 /* SDLSyncMsgVersionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSyncMsgVersionSpec.m; sourceTree = ""; }; - 162E82AD1A9BDE8A00906325 /* SDLTextFieldSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTextFieldSpec.m; sourceTree = ""; }; - 162E82AE1A9BDE8A00906325 /* SDLTireStatusSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTireStatusSpec.m; sourceTree = ""; }; - 162E82AF1A9BDE8A00906325 /* SDLTouchCoordSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchCoordSpec.m; sourceTree = ""; }; - 162E82B01A9BDE8A00906325 /* SDLTouchEventCapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchEventCapabilitiesSpec.m; sourceTree = ""; }; - 162E82B11A9BDE8A00906325 /* SDLTouchEventSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchEventSpec.m; sourceTree = ""; }; - 162E82B21A9BDE8A00906325 /* SDLTTSChunkSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTTSChunkSpec.m; sourceTree = ""; }; - 162E82B31A9BDE8A00906325 /* SDLTurnSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTurnSpec.m; sourceTree = ""; }; - 162E82B41A9BDE8A00906325 /* SDLVehicleDataResultSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataResultSpec.m; sourceTree = ""; }; - 162E82B51A9BDE8A00906325 /* SDLVehicleTypeSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleTypeSpec.m; sourceTree = ""; }; - 162E82B61A9BDE8A00906325 /* SDLVrHelpItemSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVrHelpItemSpec.m; sourceTree = ""; }; - 162E82B81A9BDE8A00906325 /* SDLEnumSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEnumSpec.m; sourceTree = ""; }; - 162E82B91A9BDE8A00906325 /* SDLRPCMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCMessageSpec.m; sourceTree = ""; }; - 162E82BA1A9BDE8A00906325 /* SDLRPCNotificationSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCNotificationSpec.m; sourceTree = ""; }; - 162E82BB1A9BDE8A00906325 /* SDLRPCRequestSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCRequestSpec.m; sourceTree = ""; }; - 162E82BC1A9BDE8A00906325 /* SDLRPCResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCResponseSpec.m; sourceTree = ""; }; - 162E82BD1A9BDE8A00906325 /* SDLRPCStructSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCStructSpec.m; sourceTree = ""; }; - 167ED9451A9BCE5D00797BE5 /* SwiftSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftSpec.swift; sourceTree = ""; }; - 1680B1061A9CD7AD00DBD79E /* SDLProtocolHeaderSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolHeaderSpec.m; sourceTree = ""; }; - 1680B1071A9CD7AD00DBD79E /* SDLV1ProtocolHeaderSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV1ProtocolHeaderSpec.m; sourceTree = ""; }; - 1680B1081A9CD7AD00DBD79E /* SDLV2ProtocolHeaderSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV2ProtocolHeaderSpec.m; sourceTree = ""; }; - 1680B10A1A9CD7AD00DBD79E /* SDLProtocolMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolMessageSpec.m; sourceTree = ""; }; - 1680B10B1A9CD7AD00DBD79E /* SDLProtocolSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLProtocolSpec.m; path = MessageSpecs/SDLProtocolSpec.m; sourceTree = ""; }; - 1680B10C1A9CD7AD00DBD79E /* SDLV1ProtocolMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV1ProtocolMessageSpec.m; sourceTree = ""; }; - 1680B10D1A9CD7AD00DBD79E /* SDLV2ProtocolMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV2ProtocolMessageSpec.m; sourceTree = ""; }; - 1680B10E1A9CD7AD00DBD79E /* SDLAbstractProtocolSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAbstractProtocolSpec.m; sourceTree = ""; }; - 1680B10F1A9CD7AD00DBD79E /* SDLFunctionIDSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLFunctionIDSpec.m; sourceTree = ""; }; - 1680B1101A9CD7AD00DBD79E /* SDLProtocolMessageAssemblerSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolMessageAssemblerSpec.m; sourceTree = ""; }; - 1680B1111A9CD7AD00DBD79E /* SDLProtocolMessageDisassemblerSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolMessageDisassemblerSpec.m; sourceTree = ""; }; - 1680B1121A9CD7AD00DBD79E /* SDLProtocolReceivedMessageRouterSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolReceivedMessageRouterSpec.m; sourceTree = ""; }; - 5D0218F41A8E79C400D1BF62 /* ConnectionTCPTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ConnectionTCPTableViewController.h; path = SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.h; sourceTree = SOURCE_ROOT; }; - 5D0218F51A8E79C400D1BF62 /* ConnectionTCPTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ConnectionTCPTableViewController.m; path = SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.m; sourceTree = SOURCE_ROOT; }; - 5D0218F81A8E7A7300D1BF62 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = SmartDeviceLink_Example/Base.lproj/ConnectionTCPTableViewController.storyboard; sourceTree = SOURCE_ROOT; }; - 5D0218FA1A8E7E1700D1BF62 /* ConnectionContainerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ConnectionContainerViewController.h; path = SmartDeviceLink_Example/Classes/ConnectionContainerViewController.h; sourceTree = SOURCE_ROOT; }; - 5D0218FB1A8E7E1700D1BF62 /* ConnectionContainerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ConnectionContainerViewController.m; path = SmartDeviceLink_Example/Classes/ConnectionContainerViewController.m; sourceTree = SOURCE_ROOT; }; - 5D0218FD1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ConnectionIAPTableViewController.h; path = SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.h; sourceTree = SOURCE_ROOT; }; - 5D0218FE1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ConnectionIAPTableViewController.m; path = SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.m; sourceTree = SOURCE_ROOT; }; - 5D0219041A8E9F6D00D1BF62 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = SmartDeviceLink_Example/Base.lproj/ConnectionIAPTableViewController.storyboard; sourceTree = SOURCE_ROOT; }; - 5D1464311C99AC0000727339 /* Nimble.framework.dSYM */ = {isa = PBXFileReference; lastKnownFileType = wrapper.dsym; name = Nimble.framework.dSYM; path = Carthage/Build/iOS/Nimble.framework.dSYM; sourceTree = ""; }; - 5D1464331C99AC0900727339 /* OCMock.framework.dSYM */ = {isa = PBXFileReference; lastKnownFileType = wrapper.dsym; name = OCMock.framework.dSYM; path = Carthage/Build/iOS/OCMock.framework.dSYM; sourceTree = ""; }; - 5D1464341C99AC0900727339 /* Quick.framework.dSYM */ = {isa = PBXFileReference; lastKnownFileType = wrapper.dsym; name = Quick.framework.dSYM; path = Carthage/Build/iOS/Quick.framework.dSYM; sourceTree = ""; }; - 5D1464351C99AC0900727339 /* OCMock.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OCMock.framework; path = Carthage/Build/iOS/OCMock.framework; sourceTree = ""; }; - 5D3759BC1CE12E810088C60E /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = CHANGELOG.md; path = ../../CHANGELOG.md; sourceTree = ""; }; - 5D3759BD1CE12E810088C60E /* DEPENDENCIES.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = DEPENDENCIES.md; path = ../../DEPENDENCIES.md; sourceTree = ""; }; - 5D3759BE1CE12E810088C60E /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; name = LICENSE; path = ../../LICENSE; sourceTree = ""; }; - 5D3759BF1CE12E810088C60E /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../../README.md; sourceTree = ""; }; - 5D3759C01CE12E810088C60E /* SmartDeviceLink-iOS.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = "SmartDeviceLink-iOS.podspec"; path = "../../SmartDeviceLink-iOS.podspec"; sourceTree = ""; }; - 5D4019AF1A76EC350006B0C2 /* SmartDeviceLink-Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SmartDeviceLink-Example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 5D4029D31A76F0340006B0C2 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = SmartDeviceLink_Example/Images.xcassets; sourceTree = SOURCE_ROOT; }; - 5D4029D51A76F0410006B0C2 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = SmartDeviceLink_Example/Info.plist; sourceTree = SOURCE_ROOT; }; - 5D4029E01A76F0760006B0C2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = SmartDeviceLink_Example/Base.lproj/LaunchScreen.xib; sourceTree = SOURCE_ROOT; }; - 5D4029E21A76F0760006B0C2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = SmartDeviceLink_Example/Base.lproj/Main.storyboard; sourceTree = SOURCE_ROOT; }; - 5D48329B1A8EA33D00252386 /* Preferences.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Preferences.h; path = SmartDeviceLink_Example/Classes/Preferences.h; sourceTree = SOURCE_ROOT; }; - 5D48329C1A8EA33D00252386 /* Preferences.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Preferences.m; path = SmartDeviceLink_Example/Classes/Preferences.m; sourceTree = SOURCE_ROOT; }; - 5D48329F1A92868E00252386 /* ProxyManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ProxyManager.h; path = SmartDeviceLink_Example/Classes/ProxyManager.h; sourceTree = SOURCE_ROOT; }; - 5D4832A01A92868E00252386 /* ProxyManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ProxyManager.m; path = SmartDeviceLink_Example/Classes/ProxyManager.m; sourceTree = SOURCE_ROOT; }; - 5D4832A31A94F90D00252386 /* ConnectionTransitionContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ConnectionTransitionContext.h; path = SmartDeviceLink_Example/Classes/ConnectionTransitionContext.h; sourceTree = SOURCE_ROOT; }; - 5D4832A41A94F90D00252386 /* ConnectionTransitionContext.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ConnectionTransitionContext.m; path = SmartDeviceLink_Example/Classes/ConnectionTransitionContext.m; sourceTree = SOURCE_ROOT; }; - 5D4832A61A95191B00252386 /* ConnectionAnimatedTransition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ConnectionAnimatedTransition.h; path = SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.h; sourceTree = SOURCE_ROOT; }; - 5D4832A71A95191B00252386 /* ConnectionAnimatedTransition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ConnectionAnimatedTransition.m; path = SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.m; sourceTree = SOURCE_ROOT; }; - 5D535DC31B72473800CF7760 /* SDLGlobals.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGlobals.h; sourceTree = ""; }; - 5D535DC41B72473800CF7760 /* SDLGlobals.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGlobals.m; sourceTree = ""; }; - 5D53C46B1B7A99B9003526EA /* SDLStreamingMediaManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLStreamingMediaManager.h; sourceTree = ""; }; - 5D53C46C1B7A99B9003526EA /* SDLStreamingMediaManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLStreamingMediaManager.m; sourceTree = ""; }; - 5D59350B1A855EB300687FB9 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = SmartDeviceLink_Example/Classes/AppDelegate.h; sourceTree = SOURCE_ROOT; }; - 5D59350C1A855EB300687FB9 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = SmartDeviceLink_Example/Classes/AppDelegate.m; sourceTree = SOURCE_ROOT; }; - 5D5935111A855EBE00687FB9 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = SmartDeviceLink_Example/Classes/main.m; sourceTree = SOURCE_ROOT; }; - 5D59DD461B14FDEE00BE744D /* SDLLockScreenManagerSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLLockScreenManagerSpec.m; path = ProxySpecs/SDLLockScreenManagerSpec.m; sourceTree = ""; }; - 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SmartDeviceLink.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 5D61FA1F1A84237100846EE7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 5D61FA201A84237100846EE7 /* SmartDeviceLink.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SmartDeviceLink.h; sourceTree = ""; }; - 5D61FA261A84237100846EE7 /* SmartDeviceLinkTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SmartDeviceLinkTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 5D61FA2E1A84237100846EE7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 5D61FA3C1A84238A00846EE7 /* SDLAbstractProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAbstractProtocol.h; sourceTree = ""; }; - 5D61FA3D1A84238A00846EE7 /* SDLAbstractProtocol.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAbstractProtocol.m; sourceTree = ""; }; - 5D61FA3E1A84238A00846EE7 /* SDLAbstractTransport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAbstractTransport.h; sourceTree = ""; }; - 5D61FA3F1A84238A00846EE7 /* SDLAbstractTransport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAbstractTransport.m; sourceTree = ""; }; - 5D61FA401A84238A00846EE7 /* SDLAddCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAddCommand.h; sourceTree = ""; }; - 5D61FA411A84238A00846EE7 /* SDLAddCommand.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddCommand.m; sourceTree = ""; }; - 5D61FA421A84238A00846EE7 /* SDLAddCommandResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAddCommandResponse.h; sourceTree = ""; }; - 5D61FA431A84238A00846EE7 /* SDLAddCommandResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddCommandResponse.m; sourceTree = ""; }; - 5D61FA441A84238A00846EE7 /* SDLAddSubMenu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAddSubMenu.h; sourceTree = ""; }; - 5D61FA451A84238A00846EE7 /* SDLAddSubMenu.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddSubMenu.m; sourceTree = ""; }; - 5D61FA461A84238A00846EE7 /* SDLAddSubMenuResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAddSubMenuResponse.h; sourceTree = ""; }; - 5D61FA471A84238A00846EE7 /* SDLAddSubMenuResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAddSubMenuResponse.m; sourceTree = ""; }; - 5D61FA481A84238A00846EE7 /* SDLAirbagStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAirbagStatus.h; sourceTree = ""; }; - 5D61FA491A84238A00846EE7 /* SDLAirbagStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAirbagStatus.m; sourceTree = ""; }; - 5D61FA4A1A84238A00846EE7 /* SDLAlert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAlert.h; sourceTree = ""; }; - 5D61FA4B1A84238A00846EE7 /* SDLAlert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlert.m; sourceTree = ""; }; - 5D61FA4C1A84238A00846EE7 /* SDLAlertManeuver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAlertManeuver.h; sourceTree = ""; }; - 5D61FA4D1A84238A00846EE7 /* SDLAlertManeuver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertManeuver.m; sourceTree = ""; }; - 5D61FA4E1A84238A00846EE7 /* SDLAlertManeuverResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAlertManeuverResponse.h; sourceTree = ""; }; - 5D61FA4F1A84238A00846EE7 /* SDLAlertManeuverResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertManeuverResponse.m; sourceTree = ""; }; - 5D61FA501A84238A00846EE7 /* SDLAlertResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAlertResponse.h; sourceTree = ""; }; - 5D61FA511A84238A00846EE7 /* SDLAlertResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAlertResponse.m; sourceTree = ""; }; - 5D61FA521A84238A00846EE7 /* SDLAmbientLightStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAmbientLightStatus.h; sourceTree = ""; }; - 5D61FA531A84238A00846EE7 /* SDLAmbientLightStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAmbientLightStatus.m; sourceTree = ""; }; - 5D61FA541A84238A00846EE7 /* SDLAppHMIType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAppHMIType.h; sourceTree = ""; }; - 5D61FA551A84238A00846EE7 /* SDLAppHMIType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAppHMIType.m; sourceTree = ""; }; - 5D61FA561A84238A00846EE7 /* SDLAppInterfaceUnregisteredReason.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAppInterfaceUnregisteredReason.h; sourceTree = ""; }; - 5D61FA571A84238A00846EE7 /* SDLAppInterfaceUnregisteredReason.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAppInterfaceUnregisteredReason.m; sourceTree = ""; }; - 5D61FA581A84238A00846EE7 /* SDLAudioPassThruCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAudioPassThruCapabilities.h; sourceTree = ""; }; - 5D61FA591A84238A00846EE7 /* SDLAudioPassThruCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAudioPassThruCapabilities.m; sourceTree = ""; }; - 5D61FA5A1A84238A00846EE7 /* SDLAudioStreamingState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAudioStreamingState.h; sourceTree = ""; }; - 5D61FA5B1A84238A00846EE7 /* SDLAudioStreamingState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAudioStreamingState.m; sourceTree = ""; }; - 5D61FA5C1A84238A00846EE7 /* SDLAudioType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLAudioType.h; sourceTree = ""; }; - 5D61FA5D1A84238A00846EE7 /* SDLAudioType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLAudioType.m; sourceTree = ""; }; - 5D61FA5E1A84238A00846EE7 /* SDLBeltStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLBeltStatus.h; sourceTree = ""; }; - 5D61FA5F1A84238A00846EE7 /* SDLBeltStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLBeltStatus.m; sourceTree = ""; }; - 5D61FA601A84238A00846EE7 /* SDLBitsPerSample.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLBitsPerSample.h; sourceTree = ""; }; - 5D61FA611A84238A00846EE7 /* SDLBitsPerSample.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLBitsPerSample.m; sourceTree = ""; }; - 5D61FA621A84238A00846EE7 /* SDLBodyInformation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLBodyInformation.h; sourceTree = ""; }; - 5D61FA631A84238A00846EE7 /* SDLBodyInformation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLBodyInformation.m; sourceTree = ""; }; - 5D61FA641A84238A00846EE7 /* SDLButtonCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLButtonCapabilities.h; sourceTree = ""; }; - 5D61FA651A84238A00846EE7 /* SDLButtonCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonCapabilities.m; sourceTree = ""; }; - 5D61FA661A84238A00846EE7 /* SDLButtonEventMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLButtonEventMode.h; sourceTree = ""; }; - 5D61FA671A84238A00846EE7 /* SDLButtonEventMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonEventMode.m; sourceTree = ""; }; - 5D61FA681A84238A00846EE7 /* SDLButtonName.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLButtonName.h; sourceTree = ""; }; - 5D61FA691A84238A00846EE7 /* SDLButtonName.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonName.m; sourceTree = ""; }; - 5D61FA6A1A84238A00846EE7 /* SDLButtonPressMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLButtonPressMode.h; sourceTree = ""; }; - 5D61FA6B1A84238A00846EE7 /* SDLButtonPressMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLButtonPressMode.m; sourceTree = ""; }; - 5D61FA6C1A84238A00846EE7 /* SDLCarModeStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLCarModeStatus.h; sourceTree = ""; }; - 5D61FA6D1A84238A00846EE7 /* SDLCarModeStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCarModeStatus.m; sourceTree = ""; }; - 5D61FA6E1A84238A00846EE7 /* SDLChangeRegistration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLChangeRegistration.h; sourceTree = ""; }; - 5D61FA6F1A84238A00846EE7 /* SDLChangeRegistration.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLChangeRegistration.m; sourceTree = ""; }; - 5D61FA701A84238A00846EE7 /* SDLChangeRegistrationResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLChangeRegistrationResponse.h; sourceTree = ""; }; - 5D61FA711A84238A00846EE7 /* SDLChangeRegistrationResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLChangeRegistrationResponse.m; sourceTree = ""; }; - 5D61FA721A84238A00846EE7 /* SDLCharacterSet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLCharacterSet.h; sourceTree = ""; }; - 5D61FA731A84238A00846EE7 /* SDLCharacterSet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCharacterSet.m; sourceTree = ""; }; - 5D61FA741A84238A00846EE7 /* SDLChoice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLChoice.h; sourceTree = ""; }; - 5D61FA751A84238A00846EE7 /* SDLChoice.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLChoice.m; sourceTree = ""; }; - 5D61FA761A84238A00846EE7 /* SDLClusterModeStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLClusterModeStatus.h; sourceTree = ""; }; - 5D61FA771A84238A00846EE7 /* SDLClusterModeStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLClusterModeStatus.m; sourceTree = ""; }; - 5D61FA781A84238A00846EE7 /* SDLCompassDirection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLCompassDirection.h; sourceTree = ""; }; - 5D61FA791A84238A00846EE7 /* SDLCompassDirection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCompassDirection.m; sourceTree = ""; }; - 5D61FA7A1A84238A00846EE7 /* SDLComponentVolumeStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLComponentVolumeStatus.h; sourceTree = ""; }; - 5D61FA7B1A84238A00846EE7 /* SDLComponentVolumeStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLComponentVolumeStatus.m; sourceTree = ""; }; - 5D61FA7C1A84238A00846EE7 /* SDLConsoleController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLConsoleController.h; sourceTree = ""; }; - 5D61FA7D1A84238A00846EE7 /* SDLConsoleController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLConsoleController.m; sourceTree = ""; }; - 5D61FA7E1A84238A00846EE7 /* SDLCreateInteractionChoiceSet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLCreateInteractionChoiceSet.h; sourceTree = ""; }; - 5D61FA7F1A84238A00846EE7 /* SDLCreateInteractionChoiceSet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCreateInteractionChoiceSet.m; sourceTree = ""; }; - 5D61FA801A84238A00846EE7 /* SDLCreateInteractionChoiceSetResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLCreateInteractionChoiceSetResponse.h; sourceTree = ""; }; - 5D61FA811A84238A00846EE7 /* SDLCreateInteractionChoiceSetResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLCreateInteractionChoiceSetResponse.m; sourceTree = ""; }; - 5D61FA821A84238A00846EE7 /* SDLDebugTool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDebugTool.h; sourceTree = ""; }; - 5D61FA831A84238A00846EE7 /* SDLDebugTool.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDebugTool.m; sourceTree = ""; }; - 5D61FA841A84238A00846EE7 /* SDLDecoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDecoder.h; sourceTree = ""; }; - 5D61FA851A84238A00846EE7 /* SDLDeleteCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteCommand.h; sourceTree = ""; }; - 5D61FA861A84238A00846EE7 /* SDLDeleteCommand.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteCommand.m; sourceTree = ""; }; - 5D61FA871A84238A00846EE7 /* SDLDeleteCommandResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteCommandResponse.h; sourceTree = ""; }; - 5D61FA881A84238A00846EE7 /* SDLDeleteCommandResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteCommandResponse.m; sourceTree = ""; }; - 5D61FA891A84238A00846EE7 /* SDLDeleteFile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteFile.h; sourceTree = ""; }; - 5D61FA8A1A84238A00846EE7 /* SDLDeleteFile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteFile.m; sourceTree = ""; }; - 5D61FA8B1A84238A00846EE7 /* SDLDeleteFileResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteFileResponse.h; sourceTree = ""; }; - 5D61FA8C1A84238A00846EE7 /* SDLDeleteFileResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteFileResponse.m; sourceTree = ""; }; - 5D61FA8D1A84238A00846EE7 /* SDLDeleteInteractionChoiceSet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteInteractionChoiceSet.h; sourceTree = ""; }; - 5D61FA8E1A84238A00846EE7 /* SDLDeleteInteractionChoiceSet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteInteractionChoiceSet.m; sourceTree = ""; }; - 5D61FA8F1A84238A00846EE7 /* SDLDeleteInteractionChoiceSetResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteInteractionChoiceSetResponse.h; sourceTree = ""; }; - 5D61FA901A84238A00846EE7 /* SDLDeleteInteractionChoiceSetResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteInteractionChoiceSetResponse.m; sourceTree = ""; }; - 5D61FA911A84238A00846EE7 /* SDLDeleteSubMenu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteSubMenu.h; sourceTree = ""; }; - 5D61FA921A84238A00846EE7 /* SDLDeleteSubMenu.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteSubMenu.m; sourceTree = ""; }; - 5D61FA931A84238A00846EE7 /* SDLDeleteSubMenuResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeleteSubMenuResponse.h; sourceTree = ""; }; - 5D61FA941A84238A00846EE7 /* SDLDeleteSubMenuResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeleteSubMenuResponse.m; sourceTree = ""; }; - 5D61FA951A84238A00846EE7 /* SDLDeviceInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeviceInfo.h; sourceTree = ""; }; - 5D61FA961A84238A00846EE7 /* SDLDeviceInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeviceInfo.m; sourceTree = ""; }; - 5D61FA971A84238A00846EE7 /* SDLDeviceLevelStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeviceLevelStatus.h; sourceTree = ""; }; - 5D61FA981A84238A00846EE7 /* SDLDeviceLevelStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeviceLevelStatus.m; sourceTree = ""; }; - 5D61FA991A84238A00846EE7 /* SDLDeviceStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDeviceStatus.h; sourceTree = ""; }; - 5D61FA9A1A84238A00846EE7 /* SDLDeviceStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDeviceStatus.m; sourceTree = ""; }; - 5D61FA9B1A84238A00846EE7 /* SDLDiagnosticMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDiagnosticMessage.h; sourceTree = ""; }; - 5D61FA9C1A84238A00846EE7 /* SDLDiagnosticMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDiagnosticMessage.m; sourceTree = ""; }; - 5D61FA9D1A84238A00846EE7 /* SDLDiagnosticMessageResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDiagnosticMessageResponse.h; sourceTree = ""; }; - 5D61FA9E1A84238A00846EE7 /* SDLDiagnosticMessageResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDiagnosticMessageResponse.m; sourceTree = ""; }; - 5D61FA9F1A84238A00846EE7 /* SDLDIDResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDIDResult.h; sourceTree = ""; }; - 5D61FAA01A84238A00846EE7 /* SDLDIDResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDIDResult.m; sourceTree = ""; }; - 5D61FAA11A84238A00846EE7 /* SDLDimension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDimension.h; sourceTree = ""; }; - 5D61FAA21A84238A00846EE7 /* SDLDimension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDimension.m; sourceTree = ""; }; - 5D61FAA31A84238A00846EE7 /* SDLDisplayCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDisplayCapabilities.h; sourceTree = ""; }; - 5D61FAA41A84238A00846EE7 /* SDLDisplayCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDisplayCapabilities.m; sourceTree = ""; }; - 5D61FAA51A84238A00846EE7 /* SDLDisplayType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDisplayType.h; sourceTree = ""; }; - 5D61FAA61A84238A00846EE7 /* SDLDisplayType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDisplayType.m; sourceTree = ""; }; - 5D61FAA71A84238A00846EE7 /* SDLDriverDistractionState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDriverDistractionState.h; sourceTree = ""; }; - 5D61FAA81A84238A00846EE7 /* SDLDriverDistractionState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDriverDistractionState.m; sourceTree = ""; }; - 5D61FAA91A84238A00846EE7 /* SDLECallConfirmationStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLECallConfirmationStatus.h; sourceTree = ""; }; - 5D61FAAA1A84238A00846EE7 /* SDLECallConfirmationStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLECallConfirmationStatus.m; sourceTree = ""; }; - 5D61FAAB1A84238A00846EE7 /* SDLECallInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLECallInfo.h; sourceTree = ""; }; - 5D61FAAC1A84238A00846EE7 /* SDLECallInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLECallInfo.m; sourceTree = ""; }; - 5D61FAAD1A84238A00846EE7 /* SDLEmergencyEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEmergencyEvent.h; sourceTree = ""; }; - 5D61FAAE1A84238A00846EE7 /* SDLEmergencyEvent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEmergencyEvent.m; sourceTree = ""; }; - 5D61FAAF1A84238A00846EE7 /* SDLEmergencyEventType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEmergencyEventType.h; sourceTree = ""; }; - 5D61FAB01A84238A00846EE7 /* SDLEmergencyEventType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEmergencyEventType.m; sourceTree = ""; }; - 5D61FAB11A84238A00846EE7 /* SDLEncodedSyncPData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEncodedSyncPData.h; sourceTree = ""; }; - 5D61FAB21A84238A00846EE7 /* SDLEncodedSyncPData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEncodedSyncPData.m; sourceTree = ""; }; - 5D61FAB31A84238A00846EE7 /* SDLEncodedSyncPDataResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEncodedSyncPDataResponse.h; sourceTree = ""; }; - 5D61FAB41A84238A00846EE7 /* SDLEncodedSyncPDataResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEncodedSyncPDataResponse.m; sourceTree = ""; }; - 5D61FAB51A84238A00846EE7 /* SDLEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEncoder.h; sourceTree = ""; }; - 5D61FAB61A84238A00846EE7 /* SDLEndAudioPassThru.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEndAudioPassThru.h; sourceTree = ""; }; - 5D61FAB71A84238A00846EE7 /* SDLEndAudioPassThru.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEndAudioPassThru.m; sourceTree = ""; }; - 5D61FAB81A84238A00846EE7 /* SDLEndAudioPassThruResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEndAudioPassThruResponse.h; sourceTree = ""; }; - 5D61FAB91A84238A00846EE7 /* SDLEndAudioPassThruResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEndAudioPassThruResponse.m; sourceTree = ""; }; - 5D61FABA1A84238A00846EE7 /* SDLEnum.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLEnum.h; sourceTree = ""; }; - 5D61FABB1A84238A00846EE7 /* SDLEnum.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLEnum.m; sourceTree = ""; }; - 5D61FABC1A84238A00846EE7 /* SDLFileType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLFileType.h; sourceTree = ""; }; - 5D61FABD1A84238A00846EE7 /* SDLFileType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLFileType.m; sourceTree = ""; }; - 5D61FABE1A84238A00846EE7 /* SDLFuelCutoffStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLFuelCutoffStatus.h; sourceTree = ""; }; - 5D61FABF1A84238A00846EE7 /* SDLFuelCutoffStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLFuelCutoffStatus.m; sourceTree = ""; }; - 5D61FAC01A84238A00846EE7 /* SDLFunctionID.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLFunctionID.h; sourceTree = ""; }; - 5D61FAC11A84238A00846EE7 /* SDLFunctionID.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLFunctionID.m; sourceTree = ""; }; - 5D61FAC21A84238A00846EE7 /* SDLGenericResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGenericResponse.h; sourceTree = ""; }; - 5D61FAC31A84238A00846EE7 /* SDLGenericResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGenericResponse.m; sourceTree = ""; }; - 5D61FAC41A84238A00846EE7 /* SDLGetDTCs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGetDTCs.h; sourceTree = ""; }; - 5D61FAC51A84238A00846EE7 /* SDLGetDTCs.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetDTCs.m; sourceTree = ""; }; - 5D61FAC61A84238A00846EE7 /* SDLGetDTCsResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGetDTCsResponse.h; sourceTree = ""; }; - 5D61FAC71A84238A00846EE7 /* SDLGetDTCsResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetDTCsResponse.m; sourceTree = ""; }; - 5D61FAC81A84238A00846EE7 /* SDLGetVehicleData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGetVehicleData.h; sourceTree = ""; }; - 5D61FAC91A84238A00846EE7 /* SDLGetVehicleData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetVehicleData.m; sourceTree = ""; }; - 5D61FACA1A84238A00846EE7 /* SDLGetVehicleDataResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGetVehicleDataResponse.h; sourceTree = ""; }; - 5D61FACB1A84238A00846EE7 /* SDLGetVehicleDataResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGetVehicleDataResponse.m; sourceTree = ""; }; - 5D61FACC1A84238A00846EE7 /* SDLGlobalProperty.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGlobalProperty.h; sourceTree = ""; }; - 5D61FACD1A84238A00846EE7 /* SDLGlobalProperty.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGlobalProperty.m; sourceTree = ""; }; - 5D61FACE1A84238A00846EE7 /* SDLGPSData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLGPSData.h; sourceTree = ""; }; - 5D61FACF1A84238A00846EE7 /* SDLGPSData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLGPSData.m; sourceTree = ""; }; - 5D61FAD01A84238A00846EE7 /* SDLHeadLampStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLHeadLampStatus.h; sourceTree = ""; }; - 5D61FAD11A84238A00846EE7 /* SDLHeadLampStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHeadLampStatus.m; sourceTree = ""; }; - 5D61FAD21A84238A00846EE7 /* SDLHexUtility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLHexUtility.h; sourceTree = ""; }; - 5D61FAD31A84238A00846EE7 /* SDLHexUtility.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHexUtility.m; sourceTree = ""; }; - 5D61FAD41A84238A00846EE7 /* SDLHMILevel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLHMILevel.h; sourceTree = ""; }; - 5D61FAD51A84238A00846EE7 /* SDLHMILevel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMILevel.m; sourceTree = ""; }; - 5D61FAD61A84238A00846EE7 /* SDLHMIPermissions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLHMIPermissions.h; sourceTree = ""; }; - 5D61FAD71A84238A00846EE7 /* SDLHMIPermissions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMIPermissions.m; sourceTree = ""; }; - 5D61FAD81A84238A00846EE7 /* SDLHMIZoneCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLHMIZoneCapabilities.h; sourceTree = ""; }; - 5D61FAD91A84238A00846EE7 /* SDLHMIZoneCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMIZoneCapabilities.m; sourceTree = ""; }; - 5D61FADA1A84238A00846EE7 /* SDLIAPTransport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLIAPTransport.h; sourceTree = ""; }; - 5D61FADB1A84238A00846EE7 /* SDLIAPTransport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLIAPTransport.m; sourceTree = ""; }; - 5D61FADC1A84238A00846EE7 /* SDLIgnitionStableStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLIgnitionStableStatus.h; sourceTree = ""; }; - 5D61FADD1A84238A00846EE7 /* SDLIgnitionStableStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLIgnitionStableStatus.m; sourceTree = ""; }; - 5D61FADE1A84238A00846EE7 /* SDLIgnitionStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLIgnitionStatus.h; sourceTree = ""; }; - 5D61FADF1A84238A00846EE7 /* SDLIgnitionStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLIgnitionStatus.m; sourceTree = ""; }; - 5D61FAE01A84238A00846EE7 /* SDLImage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLImage.h; sourceTree = ""; }; - 5D61FAE11A84238A00846EE7 /* SDLImage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImage.m; sourceTree = ""; }; - 5D61FAE21A84238A00846EE7 /* SDLImageField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLImageField.h; sourceTree = ""; }; - 5D61FAE31A84238A00846EE7 /* SDLImageField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageField.m; sourceTree = ""; }; - 5D61FAE41A84238A00846EE7 /* SDLImageFieldName.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLImageFieldName.h; sourceTree = ""; }; - 5D61FAE51A84238A00846EE7 /* SDLImageFieldName.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageFieldName.m; sourceTree = ""; }; - 5D61FAE61A84238A00846EE7 /* SDLImageResolution.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLImageResolution.h; sourceTree = ""; }; - 5D61FAE71A84238A00846EE7 /* SDLImageResolution.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageResolution.m; sourceTree = ""; }; - 5D61FAE81A84238A00846EE7 /* SDLImageType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLImageType.h; sourceTree = ""; }; - 5D61FAE91A84238A00846EE7 /* SDLImageType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLImageType.m; sourceTree = ""; }; - 5D61FAEA1A84238A00846EE7 /* SDLInteractionMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLInteractionMode.h; sourceTree = ""; }; - 5D61FAEB1A84238A00846EE7 /* SDLInteractionMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLInteractionMode.m; sourceTree = ""; }; - 5D61FAED1A84238A00846EE7 /* SDLJingle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLJingle.h; sourceTree = ""; }; - 5D61FAEE1A84238A00846EE7 /* SDLJingle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLJingle.m; sourceTree = ""; }; - 5D61FAEF1A84238A00846EE7 /* SDLJsonDecoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLJsonDecoder.h; sourceTree = ""; }; - 5D61FAF01A84238A00846EE7 /* SDLJsonDecoder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLJsonDecoder.m; sourceTree = ""; }; - 5D61FAF11A84238A00846EE7 /* SDLJsonEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLJsonEncoder.h; sourceTree = ""; }; - 5D61FAF21A84238A00846EE7 /* SDLJsonEncoder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLJsonEncoder.m; sourceTree = ""; }; - 5D61FAF31A84238A00846EE7 /* SDLKeyboardEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLKeyboardEvent.h; sourceTree = ""; }; - 5D61FAF41A84238A00846EE7 /* SDLKeyboardEvent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeyboardEvent.m; sourceTree = ""; }; - 5D61FAF51A84238A00846EE7 /* SDLKeyboardLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLKeyboardLayout.h; sourceTree = ""; }; - 5D61FAF61A84238A00846EE7 /* SDLKeyboardLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeyboardLayout.m; sourceTree = ""; }; - 5D61FAF71A84238A00846EE7 /* SDLKeyboardProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLKeyboardProperties.h; sourceTree = ""; }; - 5D61FAF81A84238A00846EE7 /* SDLKeyboardProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeyboardProperties.m; sourceTree = ""; }; - 5D61FAF91A84238A00846EE7 /* SDLKeypressMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLKeypressMode.h; sourceTree = ""; }; - 5D61FAFA1A84238A00846EE7 /* SDLKeypressMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLKeypressMode.m; sourceTree = ""; }; - 5D61FAFB1A84238A00846EE7 /* SDLLanguage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLLanguage.h; sourceTree = ""; }; - 5D61FAFC1A84238A00846EE7 /* SDLLanguage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLanguage.m; sourceTree = ""; }; - 5D61FAFD1A84238A00846EE7 /* SDLLayoutMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLLayoutMode.h; sourceTree = ""; }; - 5D61FAFE1A84238A00846EE7 /* SDLLayoutMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLayoutMode.m; sourceTree = ""; }; - 5D61FAFF1A84238A00846EE7 /* SDLListFiles.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLListFiles.h; sourceTree = ""; }; - 5D61FB001A84238A00846EE7 /* SDLListFiles.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLListFiles.m; sourceTree = ""; }; - 5D61FB011A84238A00846EE7 /* SDLListFilesResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLListFilesResponse.h; sourceTree = ""; }; - 5D61FB021A84238A00846EE7 /* SDLListFilesResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLListFilesResponse.m; sourceTree = ""; }; - 5D61FB031A84238A00846EE7 /* SDLLockScreenManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLLockScreenManager.h; sourceTree = ""; }; - 5D61FB041A84238A00846EE7 /* SDLLockScreenManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLockScreenManager.m; sourceTree = ""; }; - 5D61FB051A84238A00846EE7 /* SDLLockScreenStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLLockScreenStatus.h; sourceTree = ""; }; - 5D61FB061A84238A00846EE7 /* SDLLockScreenStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLLockScreenStatus.m; sourceTree = ""; }; - 5D61FB071A84238A00846EE7 /* SDLMaintenanceModeStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLMaintenanceModeStatus.h; sourceTree = ""; }; - 5D61FB081A84238A00846EE7 /* SDLMaintenanceModeStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMaintenanceModeStatus.m; sourceTree = ""; }; - 5D61FB091A84238A00846EE7 /* SDLMediaClockFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLMediaClockFormat.h; sourceTree = ""; }; - 5D61FB0A1A84238A00846EE7 /* SDLMediaClockFormat.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMediaClockFormat.m; sourceTree = ""; }; - 5D61FB0B1A84238A00846EE7 /* SDLMenuParams.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLMenuParams.h; sourceTree = ""; }; - 5D61FB0C1A84238A00846EE7 /* SDLMenuParams.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMenuParams.m; sourceTree = ""; }; - 5D61FB0D1A84238A00846EE7 /* SDLMyKey.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLMyKey.h; sourceTree = ""; }; - 5D61FB0E1A84238A00846EE7 /* SDLMyKey.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLMyKey.m; sourceTree = ""; }; - 5D61FB0F1A84238A00846EE7 /* SDLNames.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLNames.h; sourceTree = ""; }; - 5D61FB101A84238A00846EE7 /* SDLObjectWithPriority.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLObjectWithPriority.h; sourceTree = ""; }; - 5D61FB111A84238A00846EE7 /* SDLObjectWithPriority.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLObjectWithPriority.m; sourceTree = ""; }; - 5D61FB121A84238B00846EE7 /* SDLOnAppInterfaceUnregistered.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnAppInterfaceUnregistered.h; sourceTree = ""; }; - 5D61FB131A84238B00846EE7 /* SDLOnAppInterfaceUnregistered.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnAppInterfaceUnregistered.m; sourceTree = ""; }; - 5D61FB141A84238B00846EE7 /* SDLOnAudioPassThru.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnAudioPassThru.h; sourceTree = ""; }; - 5D61FB151A84238B00846EE7 /* SDLOnAudioPassThru.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnAudioPassThru.m; sourceTree = ""; }; - 5D61FB161A84238B00846EE7 /* SDLOnButtonEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnButtonEvent.h; sourceTree = ""; }; - 5D61FB171A84238B00846EE7 /* SDLOnButtonEvent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnButtonEvent.m; sourceTree = ""; }; - 5D61FB181A84238B00846EE7 /* SDLOnButtonPress.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnButtonPress.h; sourceTree = ""; }; - 5D61FB191A84238B00846EE7 /* SDLOnButtonPress.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnButtonPress.m; sourceTree = ""; }; - 5D61FB1A1A84238B00846EE7 /* SDLOnCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnCommand.h; sourceTree = ""; }; - 5D61FB1B1A84238B00846EE7 /* SDLOnCommand.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnCommand.m; sourceTree = ""; }; - 5D61FB1C1A84238B00846EE7 /* SDLOnDriverDistraction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnDriverDistraction.h; sourceTree = ""; }; - 5D61FB1D1A84238B00846EE7 /* SDLOnDriverDistraction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnDriverDistraction.m; sourceTree = ""; }; - 5D61FB1E1A84238B00846EE7 /* SDLOnEncodedSyncPData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnEncodedSyncPData.h; sourceTree = ""; }; - 5D61FB1F1A84238B00846EE7 /* SDLOnEncodedSyncPData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnEncodedSyncPData.m; sourceTree = ""; }; - 5D61FB201A84238B00846EE7 /* SDLOnHashChange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnHashChange.h; sourceTree = ""; }; - 5D61FB211A84238B00846EE7 /* SDLOnHashChange.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnHashChange.m; sourceTree = ""; }; - 5D61FB221A84238B00846EE7 /* SDLOnHMIStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnHMIStatus.h; sourceTree = ""; }; - 5D61FB231A84238B00846EE7 /* SDLOnHMIStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnHMIStatus.m; sourceTree = ""; }; - 5D61FB241A84238B00846EE7 /* SDLOnKeyboardInput.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnKeyboardInput.h; sourceTree = ""; }; - 5D61FB251A84238B00846EE7 /* SDLOnKeyboardInput.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnKeyboardInput.m; sourceTree = ""; }; - 5D61FB261A84238B00846EE7 /* SDLOnLanguageChange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnLanguageChange.h; sourceTree = ""; }; - 5D61FB271A84238B00846EE7 /* SDLOnLanguageChange.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnLanguageChange.m; sourceTree = ""; }; - 5D61FB281A84238B00846EE7 /* SDLOnLockScreenStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnLockScreenStatus.h; sourceTree = ""; }; - 5D61FB291A84238B00846EE7 /* SDLOnLockScreenStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnLockScreenStatus.m; sourceTree = ""; }; - 5D61FB2A1A84238B00846EE7 /* SDLOnPermissionsChange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnPermissionsChange.h; sourceTree = ""; }; - 5D61FB2B1A84238B00846EE7 /* SDLOnPermissionsChange.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnPermissionsChange.m; sourceTree = ""; }; - 5D61FB2C1A84238B00846EE7 /* SDLOnSyncPData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnSyncPData.h; sourceTree = ""; }; - 5D61FB2D1A84238B00846EE7 /* SDLOnSyncPData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnSyncPData.m; sourceTree = ""; }; - 5D61FB2E1A84238B00846EE7 /* SDLOnSystemRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnSystemRequest.h; sourceTree = ""; }; - 5D61FB2F1A84238B00846EE7 /* SDLOnSystemRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnSystemRequest.m; sourceTree = ""; }; - 5D61FB301A84238B00846EE7 /* SDLOnTBTClientState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnTBTClientState.h; sourceTree = ""; }; - 5D61FB311A84238B00846EE7 /* SDLOnTBTClientState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnTBTClientState.m; sourceTree = ""; }; - 5D61FB321A84238B00846EE7 /* SDLOnTouchEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnTouchEvent.h; sourceTree = ""; }; - 5D61FB331A84238B00846EE7 /* SDLOnTouchEvent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnTouchEvent.m; sourceTree = ""; }; - 5D61FB341A84238B00846EE7 /* SDLOnVehicleData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLOnVehicleData.h; sourceTree = ""; }; - 5D61FB351A84238B00846EE7 /* SDLOnVehicleData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLOnVehicleData.m; sourceTree = ""; }; - 5D61FB361A84238B00846EE7 /* SDLParameterPermissions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLParameterPermissions.h; sourceTree = ""; }; - 5D61FB371A84238B00846EE7 /* SDLParameterPermissions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLParameterPermissions.m; sourceTree = ""; }; - 5D61FB381A84238B00846EE7 /* SDLPerformAudioPassThru.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPerformAudioPassThru.h; sourceTree = ""; }; - 5D61FB391A84238B00846EE7 /* SDLPerformAudioPassThru.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformAudioPassThru.m; sourceTree = ""; }; - 5D61FB3A1A84238B00846EE7 /* SDLPerformAudioPassThruResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPerformAudioPassThruResponse.h; sourceTree = ""; }; - 5D61FB3B1A84238B00846EE7 /* SDLPerformAudioPassThruResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformAudioPassThruResponse.m; sourceTree = ""; }; - 5D61FB3C1A84238B00846EE7 /* SDLPerformInteraction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPerformInteraction.h; sourceTree = ""; }; - 5D61FB3D1A84238B00846EE7 /* SDLPerformInteraction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformInteraction.m; sourceTree = ""; }; - 5D61FB3E1A84238B00846EE7 /* SDLPerformInteractionResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPerformInteractionResponse.h; sourceTree = ""; }; - 5D61FB3F1A84238B00846EE7 /* SDLPerformInteractionResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPerformInteractionResponse.m; sourceTree = ""; }; - 5D61FB401A84238B00846EE7 /* SDLPermissionItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPermissionItem.h; sourceTree = ""; }; - 5D61FB411A84238B00846EE7 /* SDLPermissionItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPermissionItem.m; sourceTree = ""; }; - 5D61FB421A84238B00846EE7 /* SDLPermissionStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPermissionStatus.h; sourceTree = ""; }; - 5D61FB431A84238B00846EE7 /* SDLPermissionStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPermissionStatus.m; sourceTree = ""; }; - 5D61FB441A84238B00846EE7 /* SDLPolicyDataParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPolicyDataParser.h; sourceTree = ""; }; - 5D61FB451A84238B00846EE7 /* SDLPolicyDataParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPolicyDataParser.m; sourceTree = ""; }; - 5D61FB461A84238B00846EE7 /* SDLPowerModeQualificationStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPowerModeQualificationStatus.h; sourceTree = ""; }; - 5D61FB471A84238B00846EE7 /* SDLPowerModeQualificationStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPowerModeQualificationStatus.m; sourceTree = ""; }; - 5D61FB481A84238B00846EE7 /* SDLPowerModeStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPowerModeStatus.h; sourceTree = ""; }; - 5D61FB491A84238B00846EE7 /* SDLPowerModeStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPowerModeStatus.m; sourceTree = ""; }; - 5D61FB4A1A84238B00846EE7 /* SDLPredefinedLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPredefinedLayout.h; sourceTree = ""; }; - 5D61FB4B1A84238B00846EE7 /* SDLPredefinedLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPredefinedLayout.m; sourceTree = ""; }; - 5D61FB4C1A84238B00846EE7 /* SDLPrerecordedSpeech.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPrerecordedSpeech.h; sourceTree = ""; }; - 5D61FB4D1A84238B00846EE7 /* SDLPrerecordedSpeech.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPrerecordedSpeech.m; sourceTree = ""; }; - 5D61FB4E1A84238B00846EE7 /* SDLPresetBankCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPresetBankCapabilities.h; sourceTree = ""; }; - 5D61FB4F1A84238B00846EE7 /* SDLPresetBankCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPresetBankCapabilities.m; sourceTree = ""; }; - 5D61FB501A84238B00846EE7 /* SDLPrimaryAudioSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPrimaryAudioSource.h; sourceTree = ""; }; - 5D61FB511A84238B00846EE7 /* SDLPrimaryAudioSource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPrimaryAudioSource.m; sourceTree = ""; }; - 5D61FB521A84238B00846EE7 /* SDLPrioritizedObjectCollection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPrioritizedObjectCollection.h; sourceTree = ""; }; - 5D61FB531A84238B00846EE7 /* SDLPrioritizedObjectCollection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPrioritizedObjectCollection.m; sourceTree = ""; }; - 5D61FB541A84238B00846EE7 /* SDLPRNDL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPRNDL.h; sourceTree = ""; }; - 5D61FB551A84238B00846EE7 /* SDLPRNDL.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPRNDL.m; sourceTree = ""; }; - 5D61FB561A84238B00846EE7 /* SDLProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocol.h; sourceTree = ""; }; - 5D61FB571A84238B00846EE7 /* SDLProtocol.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocol.m; sourceTree = ""; }; - 5D61FB581A84238B00846EE7 /* SDLProtocolHeader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocolHeader.h; sourceTree = ""; }; - 5D61FB591A84238B00846EE7 /* SDLProtocolHeader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolHeader.m; sourceTree = ""; }; - 5D61FB5A1A84238B00846EE7 /* SDLProtocolListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocolListener.h; sourceTree = ""; }; - 5D61FB5B1A84238B00846EE7 /* SDLProtocolMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocolMessage.h; sourceTree = ""; }; - 5D61FB5C1A84238B00846EE7 /* SDLProtocolMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolMessage.m; sourceTree = ""; }; - 5D61FB5D1A84238B00846EE7 /* SDLProtocolMessageAssembler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocolMessageAssembler.h; sourceTree = ""; }; - 5D61FB5E1A84238B00846EE7 /* SDLProtocolMessageAssembler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolMessageAssembler.m; sourceTree = ""; }; - 5D61FB5F1A84238B00846EE7 /* SDLProtocolMessageDisassembler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocolMessageDisassembler.h; sourceTree = ""; }; - 5D61FB601A84238B00846EE7 /* SDLProtocolMessageDisassembler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolMessageDisassembler.m; sourceTree = ""; }; - 5D61FB611A84238B00846EE7 /* SDLProtocolReceivedMessageRouter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProtocolReceivedMessageRouter.h; sourceTree = ""; }; - 5D61FB621A84238B00846EE7 /* SDLProtocolReceivedMessageRouter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProtocolReceivedMessageRouter.m; sourceTree = ""; }; - 5D61FB631A84238B00846EE7 /* SDLProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProxy.h; sourceTree = ""; }; - 5D61FB641A84238B00846EE7 /* SDLProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProxy.m; sourceTree = ""; }; - 5D61FB651A84238B00846EE7 /* SDLProxyFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProxyFactory.h; sourceTree = ""; }; - 5D61FB661A84238B00846EE7 /* SDLProxyFactory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLProxyFactory.m; sourceTree = ""; }; - 5D61FB671A84238B00846EE7 /* SDLProxyListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLProxyListener.h; sourceTree = ""; }; - 5D61FB681A84238B00846EE7 /* SDLPutFile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPutFile.h; sourceTree = ""; }; - 5D61FB691A84238B00846EE7 /* SDLPutFile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPutFile.m; sourceTree = ""; }; - 5D61FB6A1A84238B00846EE7 /* SDLPutFileResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLPutFileResponse.h; sourceTree = ""; }; - 5D61FB6B1A84238B00846EE7 /* SDLPutFileResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLPutFileResponse.m; sourceTree = ""; }; - 5D61FB6C1A84238B00846EE7 /* SDLReadDID.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLReadDID.h; sourceTree = ""; }; - 5D61FB6D1A84238B00846EE7 /* SDLReadDID.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLReadDID.m; sourceTree = ""; }; - 5D61FB6E1A84238B00846EE7 /* SDLReadDIDResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLReadDIDResponse.h; sourceTree = ""; }; - 5D61FB6F1A84238B00846EE7 /* SDLReadDIDResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLReadDIDResponse.m; sourceTree = ""; }; - 5D61FB701A84238B00846EE7 /* SDLRegisterAppInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRegisterAppInterface.h; sourceTree = ""; }; - 5D61FB711A84238B00846EE7 /* SDLRegisterAppInterface.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRegisterAppInterface.m; sourceTree = ""; }; - 5D61FB721A84238B00846EE7 /* SDLRegisterAppInterfaceResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRegisterAppInterfaceResponse.h; sourceTree = ""; }; - 5D61FB731A84238B00846EE7 /* SDLRegisterAppInterfaceResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRegisterAppInterfaceResponse.m; sourceTree = ""; }; - 5D61FB741A84238B00846EE7 /* SDLRequestType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRequestType.h; sourceTree = ""; }; - 5D61FB751A84238B00846EE7 /* SDLRequestType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRequestType.m; sourceTree = ""; }; - 5D61FB761A84238B00846EE7 /* SDLResetGlobalProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLResetGlobalProperties.h; sourceTree = ""; }; - 5D61FB771A84238B00846EE7 /* SDLResetGlobalProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLResetGlobalProperties.m; sourceTree = ""; }; - 5D61FB781A84238B00846EE7 /* SDLResetGlobalPropertiesResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLResetGlobalPropertiesResponse.h; sourceTree = ""; }; - 5D61FB791A84238B00846EE7 /* SDLResetGlobalPropertiesResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLResetGlobalPropertiesResponse.m; sourceTree = ""; }; - 5D61FB7A1A84238B00846EE7 /* SDLResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLResult.h; sourceTree = ""; }; - 5D61FB7B1A84238B00846EE7 /* SDLResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLResult.m; sourceTree = ""; }; - 5D61FB7C1A84238B00846EE7 /* SDLRPCMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCMessage.h; sourceTree = ""; }; - 5D61FB7D1A84238B00846EE7 /* SDLRPCMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCMessage.m; sourceTree = ""; }; - 5D61FB7E1A84238B00846EE7 /* SDLRPCMessageType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCMessageType.h; sourceTree = ""; }; - 5D61FB801A84238B00846EE7 /* SDLRPCNotification.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCNotification.h; sourceTree = ""; }; - 5D61FB811A84238B00846EE7 /* SDLRPCNotification.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCNotification.m; sourceTree = ""; }; - 5D61FB821A84238B00846EE7 /* SDLRPCPayload.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCPayload.h; sourceTree = ""; }; - 5D61FB831A84238B00846EE7 /* SDLRPCPayload.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCPayload.m; sourceTree = ""; }; - 5D61FB841A84238B00846EE7 /* SDLRPCRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCRequest.h; sourceTree = ""; }; - 5D61FB851A84238B00846EE7 /* SDLRPCRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCRequest.m; sourceTree = ""; }; - 5D61FB861A84238B00846EE7 /* SDLRPCRequestFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCRequestFactory.h; sourceTree = ""; }; - 5D61FB871A84238B00846EE7 /* SDLRPCRequestFactory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCRequestFactory.m; sourceTree = ""; }; - 5D61FB881A84238B00846EE7 /* SDLRPCResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCResponse.h; sourceTree = ""; }; - 5D61FB891A84238B00846EE7 /* SDLRPCResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCResponse.m; sourceTree = ""; }; - 5D61FB8A1A84238B00846EE7 /* SDLSamplingRate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSamplingRate.h; sourceTree = ""; }; - 5D61FB8B1A84238B00846EE7 /* SDLSamplingRate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSamplingRate.m; sourceTree = ""; }; - 5D61FB8C1A84238B00846EE7 /* SDLScreenParams.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLScreenParams.h; sourceTree = ""; }; - 5D61FB8D1A84238B00846EE7 /* SDLScreenParams.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLScreenParams.m; sourceTree = ""; }; - 5D61FB8E1A84238B00846EE7 /* SDLScrollableMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLScrollableMessage.h; sourceTree = ""; }; - 5D61FB8F1A84238B00846EE7 /* SDLScrollableMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLScrollableMessage.m; sourceTree = ""; }; - 5D61FB901A84238B00846EE7 /* SDLScrollableMessageResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLScrollableMessageResponse.h; sourceTree = ""; }; - 5D61FB911A84238B00846EE7 /* SDLScrollableMessageResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLScrollableMessageResponse.m; sourceTree = ""; }; - 5D61FB921A84238B00846EE7 /* SDLSetAppIcon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetAppIcon.h; sourceTree = ""; }; - 5D61FB931A84238B00846EE7 /* SDLSetAppIcon.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetAppIcon.m; sourceTree = ""; }; - 5D61FB941A84238B00846EE7 /* SDLSetAppIconResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetAppIconResponse.h; sourceTree = ""; }; - 5D61FB951A84238B00846EE7 /* SDLSetAppIconResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetAppIconResponse.m; sourceTree = ""; }; - 5D61FB961A84238B00846EE7 /* SDLSetDisplayLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetDisplayLayout.h; sourceTree = ""; }; - 5D61FB971A84238B00846EE7 /* SDLSetDisplayLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetDisplayLayout.m; sourceTree = ""; }; - 5D61FB981A84238B00846EE7 /* SDLSetDisplayLayoutResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetDisplayLayoutResponse.h; sourceTree = ""; }; - 5D61FB991A84238B00846EE7 /* SDLSetDisplayLayoutResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetDisplayLayoutResponse.m; sourceTree = ""; }; - 5D61FB9A1A84238B00846EE7 /* SDLSetGlobalProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetGlobalProperties.h; sourceTree = ""; }; - 5D61FB9B1A84238B00846EE7 /* SDLSetGlobalProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetGlobalProperties.m; sourceTree = ""; }; - 5D61FB9C1A84238B00846EE7 /* SDLSetGlobalPropertiesResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetGlobalPropertiesResponse.h; sourceTree = ""; }; - 5D61FB9D1A84238B00846EE7 /* SDLSetGlobalPropertiesResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetGlobalPropertiesResponse.m; sourceTree = ""; }; - 5D61FB9E1A84238B00846EE7 /* SDLSetMediaClockTimer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetMediaClockTimer.h; sourceTree = ""; }; - 5D61FB9F1A84238B00846EE7 /* SDLSetMediaClockTimer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetMediaClockTimer.m; sourceTree = ""; }; - 5D61FBA01A84238B00846EE7 /* SDLSetMediaClockTimerResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSetMediaClockTimerResponse.h; sourceTree = ""; }; - 5D61FBA11A84238B00846EE7 /* SDLSetMediaClockTimerResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSetMediaClockTimerResponse.m; sourceTree = ""; }; - 5D61FBA21A84238B00846EE7 /* SDLShow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLShow.h; sourceTree = ""; }; - 5D61FBA31A84238B00846EE7 /* SDLShow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShow.m; sourceTree = ""; }; - 5D61FBA41A84238B00846EE7 /* SDLShowConstantTBT.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLShowConstantTBT.h; sourceTree = ""; }; - 5D61FBA51A84238B00846EE7 /* SDLShowConstantTBT.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowConstantTBT.m; sourceTree = ""; }; - 5D61FBA61A84238B00846EE7 /* SDLShowConstantTBTResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLShowConstantTBTResponse.h; sourceTree = ""; }; - 5D61FBA71A84238B00846EE7 /* SDLShowConstantTBTResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowConstantTBTResponse.m; sourceTree = ""; }; - 5D61FBA81A84238B00846EE7 /* SDLShowResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLShowResponse.h; sourceTree = ""; }; - 5D61FBA91A84238B00846EE7 /* SDLShowResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLShowResponse.m; sourceTree = ""; }; - 5D61FBAA1A84238B00846EE7 /* SDLSingleTireStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSingleTireStatus.h; sourceTree = ""; }; - 5D61FBAB1A84238B00846EE7 /* SDLSingleTireStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSingleTireStatus.m; sourceTree = ""; }; - 5D61FBAC1A84238B00846EE7 /* SDLSiphonServer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSiphonServer.h; sourceTree = ""; }; - 5D61FBAD1A84238B00846EE7 /* SDLSiphonServer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSiphonServer.m; sourceTree = ""; }; - 5D61FBAE1A84238B00846EE7 /* SDLSlider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSlider.h; sourceTree = ""; }; - 5D61FBAF1A84238B00846EE7 /* SDLSlider.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSlider.m; sourceTree = ""; }; - 5D61FBB01A84238B00846EE7 /* SDLSliderResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSliderResponse.h; sourceTree = ""; }; - 5D61FBB11A84238B00846EE7 /* SDLSliderResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSliderResponse.m; sourceTree = ""; }; - 5D61FBB21A84238B00846EE7 /* SDLSoftButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSoftButton.h; sourceTree = ""; }; - 5D61FBB31A84238B00846EE7 /* SDLSoftButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSoftButton.m; sourceTree = ""; }; - 5D61FBB41A84238B00846EE7 /* SDLSoftButtonCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSoftButtonCapabilities.h; sourceTree = ""; }; - 5D61FBB51A84238B00846EE7 /* SDLSoftButtonCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSoftButtonCapabilities.m; sourceTree = ""; }; - 5D61FBB61A84238B00846EE7 /* SDLSoftButtonType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSoftButtonType.h; sourceTree = ""; }; - 5D61FBB71A84238B00846EE7 /* SDLSoftButtonType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSoftButtonType.m; sourceTree = ""; }; - 5D61FBB81A84238B00846EE7 /* SDLSpeak.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSpeak.h; sourceTree = ""; }; - 5D61FBB91A84238B00846EE7 /* SDLSpeak.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpeak.m; sourceTree = ""; }; - 5D61FBBA1A84238B00846EE7 /* SDLSpeakResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSpeakResponse.h; sourceTree = ""; }; - 5D61FBBB1A84238B00846EE7 /* SDLSpeakResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpeakResponse.m; sourceTree = ""; }; - 5D61FBBC1A84238B00846EE7 /* SDLSpeechCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSpeechCapabilities.h; sourceTree = ""; }; - 5D61FBBD1A84238B00846EE7 /* SDLSpeechCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpeechCapabilities.m; sourceTree = ""; }; - 5D61FBBE1A84238B00846EE7 /* SDLStartTime.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLStartTime.h; sourceTree = ""; }; - 5D61FBBF1A84238B00846EE7 /* SDLStartTime.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLStartTime.m; sourceTree = ""; }; - 5D61FBC01A84238B00846EE7 /* SDLSubscribeButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSubscribeButton.h; sourceTree = ""; }; - 5D61FBC11A84238B00846EE7 /* SDLSubscribeButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeButton.m; sourceTree = ""; }; - 5D61FBC21A84238B00846EE7 /* SDLSubscribeButtonResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSubscribeButtonResponse.h; sourceTree = ""; }; - 5D61FBC31A84238B00846EE7 /* SDLSubscribeButtonResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeButtonResponse.m; sourceTree = ""; }; - 5D61FBC41A84238B00846EE7 /* SDLSubscribeVehicleData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSubscribeVehicleData.h; sourceTree = ""; }; - 5D61FBC51A84238B00846EE7 /* SDLSubscribeVehicleData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeVehicleData.m; sourceTree = ""; }; - 5D61FBC61A84238B00846EE7 /* SDLSubscribeVehicleDataResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSubscribeVehicleDataResponse.h; sourceTree = ""; }; - 5D61FBC71A84238B00846EE7 /* SDLSubscribeVehicleDataResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSubscribeVehicleDataResponse.m; sourceTree = ""; }; - 5D61FBC81A84238B00846EE7 /* SDLSyncMsgVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSyncMsgVersion.h; sourceTree = ""; }; - 5D61FBC91A84238B00846EE7 /* SDLSyncMsgVersion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSyncMsgVersion.m; sourceTree = ""; }; - 5D61FBCA1A84238B00846EE7 /* SDLSyncPData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSyncPData.h; sourceTree = ""; }; - 5D61FBCB1A84238B00846EE7 /* SDLSyncPData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSyncPData.m; sourceTree = ""; }; - 5D61FBCC1A84238B00846EE7 /* SDLSyncPDataResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSyncPDataResponse.h; sourceTree = ""; }; - 5D61FBCD1A84238B00846EE7 /* SDLSyncPDataResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSyncPDataResponse.m; sourceTree = ""; }; - 5D61FBCE1A84238B00846EE7 /* SDLSystemAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSystemAction.h; sourceTree = ""; }; - 5D61FBCF1A84238B00846EE7 /* SDLSystemAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemAction.m; sourceTree = ""; }; - 5D61FBD01A84238B00846EE7 /* SDLSystemContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSystemContext.h; sourceTree = ""; }; - 5D61FBD11A84238B00846EE7 /* SDLSystemContext.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemContext.m; sourceTree = ""; }; - 5D61FBD21A84238B00846EE7 /* SDLSystemRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSystemRequest.h; sourceTree = ""; }; - 5D61FBD31A84238B00846EE7 /* SDLSystemRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemRequest.m; sourceTree = ""; }; - 5D61FBD41A84238B00846EE7 /* SDLSystemRequestResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSystemRequestResponse.h; sourceTree = ""; }; - 5D61FBD51A84238B00846EE7 /* SDLSystemRequestResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSystemRequestResponse.m; sourceTree = ""; }; - 5D61FBD61A84238B00846EE7 /* SDLTBTState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTBTState.h; sourceTree = ""; }; - 5D61FBD71A84238B00846EE7 /* SDLTBTState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTBTState.m; sourceTree = ""; }; - 5D61FBD81A84238B00846EE7 /* SDLTCPTransport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTCPTransport.h; sourceTree = ""; }; - 5D61FBD91A84238B00846EE7 /* SDLTCPTransport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTCPTransport.m; sourceTree = ""; }; - 5D61FBDA1A84238B00846EE7 /* SDLTextAlignment.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTextAlignment.h; sourceTree = ""; }; - 5D61FBDB1A84238C00846EE7 /* SDLTextAlignment.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTextAlignment.m; sourceTree = ""; }; - 5D61FBDC1A84238C00846EE7 /* SDLTextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTextField.h; sourceTree = ""; }; - 5D61FBDD1A84238C00846EE7 /* SDLTextField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTextField.m; sourceTree = ""; }; - 5D61FBDE1A84238C00846EE7 /* SDLTextFieldName.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTextFieldName.h; sourceTree = ""; }; - 5D61FBDF1A84238C00846EE7 /* SDLTextFieldName.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTextFieldName.m; sourceTree = ""; }; - 5D61FBE01A84238C00846EE7 /* SDLTimerMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTimerMode.h; sourceTree = ""; }; - 5D61FBE11A84238C00846EE7 /* SDLTimerMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTimerMode.m; sourceTree = ""; }; - 5D61FBE21A84238C00846EE7 /* SDLTireStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTireStatus.h; sourceTree = ""; }; - 5D61FBE31A84238C00846EE7 /* SDLTireStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTireStatus.m; sourceTree = ""; }; - 5D61FBE41A84238C00846EE7 /* SDLTouchCoord.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTouchCoord.h; sourceTree = ""; }; - 5D61FBE51A84238C00846EE7 /* SDLTouchCoord.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchCoord.m; sourceTree = ""; }; - 5D61FBE61A84238C00846EE7 /* SDLTouchEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTouchEvent.h; sourceTree = ""; }; - 5D61FBE71A84238C00846EE7 /* SDLTouchEvent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchEvent.m; sourceTree = ""; }; - 5D61FBE81A84238C00846EE7 /* SDLTouchEventCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTouchEventCapabilities.h; sourceTree = ""; }; - 5D61FBE91A84238C00846EE7 /* SDLTouchEventCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchEventCapabilities.m; sourceTree = ""; }; - 5D61FBEA1A84238C00846EE7 /* SDLTouchType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTouchType.h; sourceTree = ""; }; - 5D61FBEB1A84238C00846EE7 /* SDLTouchType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTouchType.m; sourceTree = ""; }; - 5D61FBED1A84238C00846EE7 /* SDLTransportDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTransportDelegate.h; sourceTree = ""; }; - 5D61FBEE1A84238C00846EE7 /* SDLTriggerSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTriggerSource.h; sourceTree = ""; }; - 5D61FBEF1A84238C00846EE7 /* SDLTriggerSource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTriggerSource.m; sourceTree = ""; }; - 5D61FBF01A84238C00846EE7 /* SDLTTSChunk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTTSChunk.h; sourceTree = ""; }; - 5D61FBF11A84238C00846EE7 /* SDLTTSChunk.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTTSChunk.m; sourceTree = ""; }; - 5D61FBF21A84238C00846EE7 /* SDLTTSChunkFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTTSChunkFactory.h; sourceTree = ""; }; - 5D61FBF31A84238C00846EE7 /* SDLTTSChunkFactory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTTSChunkFactory.m; sourceTree = ""; }; - 5D61FBF41A84238C00846EE7 /* SDLTurn.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTurn.h; sourceTree = ""; }; - 5D61FBF51A84238C00846EE7 /* SDLTurn.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTurn.m; sourceTree = ""; }; - 5D61FBF61A84238C00846EE7 /* SDLUnregisterAppInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUnregisterAppInterface.h; sourceTree = ""; }; - 5D61FBF71A84238C00846EE7 /* SDLUnregisterAppInterface.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnregisterAppInterface.m; sourceTree = ""; }; - 5D61FBF81A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUnregisterAppInterfaceResponse.h; sourceTree = ""; }; - 5D61FBF91A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnregisterAppInterfaceResponse.m; sourceTree = ""; }; - 5D61FBFA1A84238C00846EE7 /* SDLUnsubscribeButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUnsubscribeButton.h; sourceTree = ""; }; - 5D61FBFB1A84238C00846EE7 /* SDLUnsubscribeButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeButton.m; sourceTree = ""; }; - 5D61FBFC1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUnsubscribeButtonResponse.h; sourceTree = ""; }; - 5D61FBFD1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeButtonResponse.m; sourceTree = ""; }; - 5D61FBFE1A84238C00846EE7 /* SDLUnsubscribeVehicleData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUnsubscribeVehicleData.h; sourceTree = ""; }; - 5D61FBFF1A84238C00846EE7 /* SDLUnsubscribeVehicleData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeVehicleData.m; sourceTree = ""; }; - 5D61FC001A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUnsubscribeVehicleDataResponse.h; sourceTree = ""; }; - 5D61FC011A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUnsubscribeVehicleDataResponse.m; sourceTree = ""; }; - 5D61FC021A84238C00846EE7 /* SDLUpdateMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUpdateMode.h; sourceTree = ""; }; - 5D61FC031A84238C00846EE7 /* SDLUpdateMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUpdateMode.m; sourceTree = ""; }; - 5D61FC041A84238C00846EE7 /* SDLUpdateTurnList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUpdateTurnList.h; sourceTree = ""; }; - 5D61FC051A84238C00846EE7 /* SDLUpdateTurnList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUpdateTurnList.m; sourceTree = ""; }; - 5D61FC061A84238C00846EE7 /* SDLUpdateTurnListResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLUpdateTurnListResponse.h; sourceTree = ""; }; - 5D61FC071A84238C00846EE7 /* SDLUpdateTurnListResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLUpdateTurnListResponse.m; sourceTree = ""; }; - 5D61FC081A84238C00846EE7 /* SDLV1ProtocolHeader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLV1ProtocolHeader.h; sourceTree = ""; }; - 5D61FC091A84238C00846EE7 /* SDLV1ProtocolHeader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV1ProtocolHeader.m; sourceTree = ""; }; - 5D61FC0A1A84238C00846EE7 /* SDLV1ProtocolMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLV1ProtocolMessage.h; sourceTree = ""; }; - 5D61FC0B1A84238C00846EE7 /* SDLV1ProtocolMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV1ProtocolMessage.m; sourceTree = ""; }; - 5D61FC0C1A84238C00846EE7 /* SDLV2ProtocolHeader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLV2ProtocolHeader.h; sourceTree = ""; }; - 5D61FC0D1A84238C00846EE7 /* SDLV2ProtocolHeader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV2ProtocolHeader.m; sourceTree = ""; }; - 5D61FC0E1A84238C00846EE7 /* SDLV2ProtocolMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLV2ProtocolMessage.h; sourceTree = ""; }; - 5D61FC0F1A84238C00846EE7 /* SDLV2ProtocolMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLV2ProtocolMessage.m; sourceTree = ""; }; - 5D61FC101A84238C00846EE7 /* SDLVehicleDataActiveStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataActiveStatus.h; sourceTree = ""; }; - 5D61FC111A84238C00846EE7 /* SDLVehicleDataActiveStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataActiveStatus.m; sourceTree = ""; }; - 5D61FC121A84238C00846EE7 /* SDLVehicleDataEventStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataEventStatus.h; sourceTree = ""; }; - 5D61FC131A84238C00846EE7 /* SDLVehicleDataEventStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataEventStatus.m; sourceTree = ""; }; - 5D61FC141A84238C00846EE7 /* SDLVehicleDataNotificationStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataNotificationStatus.h; sourceTree = ""; }; - 5D61FC151A84238C00846EE7 /* SDLVehicleDataNotificationStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataNotificationStatus.m; sourceTree = ""; }; - 5D61FC161A84238C00846EE7 /* SDLVehicleDataResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataResult.h; sourceTree = ""; }; - 5D61FC171A84238C00846EE7 /* SDLVehicleDataResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataResult.m; sourceTree = ""; }; - 5D61FC181A84238C00846EE7 /* SDLVehicleDataResultCode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataResultCode.h; sourceTree = ""; }; - 5D61FC191A84238C00846EE7 /* SDLVehicleDataResultCode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataResultCode.m; sourceTree = ""; }; - 5D61FC1A1A84238C00846EE7 /* SDLVehicleDataStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataStatus.h; sourceTree = ""; }; - 5D61FC1B1A84238C00846EE7 /* SDLVehicleDataStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataStatus.m; sourceTree = ""; }; - 5D61FC1C1A84238C00846EE7 /* SDLVehicleDataType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleDataType.h; sourceTree = ""; }; - 5D61FC1D1A84238C00846EE7 /* SDLVehicleDataType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleDataType.m; sourceTree = ""; }; - 5D61FC1E1A84238C00846EE7 /* SDLVehicleType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVehicleType.h; sourceTree = ""; }; - 5D61FC1F1A84238C00846EE7 /* SDLVehicleType.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVehicleType.m; sourceTree = ""; }; - 5D61FC201A84238C00846EE7 /* SDLVRCapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVRCapabilities.h; sourceTree = ""; }; - 5D61FC211A84238C00846EE7 /* SDLVRCapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVRCapabilities.m; sourceTree = ""; }; - 5D61FC221A84238C00846EE7 /* SDLVRHelpItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVRHelpItem.h; sourceTree = ""; }; - 5D61FC231A84238C00846EE7 /* SDLVRHelpItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVRHelpItem.m; sourceTree = ""; }; - 5D61FC241A84238C00846EE7 /* SDLWarningLightStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLWarningLightStatus.h; sourceTree = ""; }; - 5D61FC251A84238C00846EE7 /* SDLWarningLightStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLWarningLightStatus.m; sourceTree = ""; }; - 5D61FC261A84238C00846EE7 /* SDLWiperStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLWiperStatus.h; sourceTree = ""; }; - 5D61FC271A84238C00846EE7 /* SDLWiperStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLWiperStatus.m; sourceTree = ""; }; - 5D8B174D1AC9D266006A6E1C /* SDLDialNumber.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDialNumber.h; sourceTree = ""; }; - 5D8B174E1AC9D266006A6E1C /* SDLDialNumber.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDialNumber.m; sourceTree = ""; }; - 5D8B17511AC9E11B006A6E1C /* SDLDialNumberResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDialNumberResponse.h; sourceTree = ""; }; - 5D8B17521AC9E11B006A6E1C /* SDLDialNumberResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDialNumberResponse.m; sourceTree = ""; }; - 5D8B17551AC9E399006A6E1C /* SDLDialNumberSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDialNumberSpec.m; sourceTree = ""; }; - 5DA0268F1AD44EE700019F86 /* SDLDialNumberResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLDialNumberResponseSpec.m; sourceTree = ""; }; - 5DB92D231AC47B2C00C15BB0 /* SDLHexUtilitySpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLHexUtilitySpec.m; path = UtilitiesSpecs/SDLHexUtilitySpec.m; sourceTree = ""; }; - 5DB92D251AC4836F00C15BB0 /* SDLJingleSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLJingleSpec.m; path = UtilitiesSpecs/SDLJingleSpec.m; sourceTree = ""; }; - 5DB92D2C1AC4A34F00C15BB0 /* SDLPrioritizedObjectCollectionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLPrioritizedObjectCollectionSpec.m; path = "UtilitiesSpecs/Prioritized Objects/SDLPrioritizedObjectCollectionSpec.m"; sourceTree = ""; }; - 5DB92D2E1AC59F0000C15BB0 /* SDLObjectWithPrioritySpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLObjectWithPrioritySpec.m; path = "UtilitiesSpecs/Prioritized Objects/SDLObjectWithPrioritySpec.m"; sourceTree = ""; }; - 5DB92D301AC9C8BA00C15BB0 /* SDLRPCStruct.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLRPCStruct.h; sourceTree = ""; }; - 5DB92D311AC9C8BA00C15BB0 /* SDLRPCStruct.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLRPCStruct.m; sourceTree = ""; }; - 5DC978251B7A38640012C2F1 /* SDLGlobalsSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLGlobalsSpec.m; path = UtilitiesSpecs/SDLGlobalsSpec.m; sourceTree = ""; }; - 5DCC199E1B8221F3004FFAD9 /* SDLURLSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLURLSession.h; sourceTree = ""; }; - 5DCC199F1B8221F3004FFAD9 /* SDLURLSession.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLURLSession.m; sourceTree = ""; }; - 5DCC19A21B822804004FFAD9 /* SDLURLRequestTask.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLURLRequestTask.h; sourceTree = ""; }; - 5DCC19A31B822804004FFAD9 /* SDLURLRequestTask.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLURLRequestTask.m; sourceTree = ""; }; - 5DCF76F31ACDBAD300BB647B /* SDLSendLocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSendLocation.h; sourceTree = ""; }; - 5DCF76F41ACDBAD300BB647B /* SDLSendLocation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSendLocation.m; sourceTree = ""; }; - 5DCF76F71ACDD7CD00BB647B /* SDLSendLocationResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSendLocationResponse.h; sourceTree = ""; }; - 5DCF76F81ACDD7CD00BB647B /* SDLSendLocationResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSendLocationResponse.m; sourceTree = ""; }; - 5DCF76FB1ACDDB4200BB647B /* SDLSendLocationSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSendLocationSpec.m; sourceTree = ""; }; - 5DCF76FD1ACDDB5A00BB647B /* SDLSendLocationResponseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSendLocationResponseSpec.m; sourceTree = ""; }; - 5DE3729F1ACB2ED300849FAA /* SDLHMICapabilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLHMICapabilities.h; sourceTree = ""; }; - 5DE372A01ACB2ED300849FAA /* SDLHMICapabilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMICapabilities.m; sourceTree = ""; }; - 5DE372A31ACB336600849FAA /* SDLHMICapabilitiesSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLHMICapabilitiesSpec.m; sourceTree = ""; }; - 5DE372A51ACC35B400849FAA /* SDLDebugToolConsole.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLDebugToolConsole.h; sourceTree = ""; }; - 5DEE55BF1B8509CB004F0D0F /* SDLURLRequestTaskSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLURLRequestTaskSpec.m; path = "UtilitiesSpecs/HTTP Connection/SDLURLRequestTaskSpec.m"; sourceTree = ""; }; - 5DEE55C11B864A7D004F0D0F /* OHHTTPStubs.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OHHTTPStubs.framework; path = Carthage/Build/iOS/OHHTTPStubs.framework; sourceTree = ""; }; - 5DEE55C41B864AB3004F0D0F /* OHHTTPStubs.framework.dSYM */ = {isa = PBXFileReference; lastKnownFileType = wrapper.dsym; name = OHHTTPStubs.framework.dSYM; path = Carthage/Build/iOS/OHHTTPStubs.framework.dSYM; sourceTree = ""; }; - 5DF2BB9C1B94E38A00CE5994 /* SDLURLSessionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLURLSessionSpec.m; path = "UtilitiesSpecs/HTTP Connection/SDLURLSessionSpec.m"; sourceTree = ""; }; - E9C32B841AB20B4300F283AF /* NSThread+ThreadIndex.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSThread+ThreadIndex.h"; sourceTree = ""; }; - E9C32B851AB20B4300F283AF /* NSThread+ThreadIndex.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSThread+ThreadIndex.m"; sourceTree = ""; }; - E9C32B891AB20BA200F283AF /* SDLIAPSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLIAPSession.h; sourceTree = ""; }; - E9C32B8A1AB20BA200F283AF /* SDLIAPSession.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLIAPSession.m; sourceTree = ""; }; - E9C32B8B1AB20BA200F283AF /* SDLIAPSessionDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLIAPSessionDelegate.h; sourceTree = ""; }; - E9C32B8C1AB20BA200F283AF /* SDLStreamDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLStreamDelegate.h; sourceTree = ""; }; - E9C32B8D1AB20BA200F283AF /* SDLStreamDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLStreamDelegate.m; sourceTree = ""; }; - E9C32B8E1AB20BA200F283AF /* SDLTimer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLTimer.h; sourceTree = ""; }; - E9C32B8F1AB20BA200F283AF /* SDLTimer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLTimer.m; sourceTree = ""; }; - E9C32B981AB20C5900F283AF /* EAAccessory+SDLProtocols.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "EAAccessory+SDLProtocols.h"; sourceTree = ""; }; - E9C32B991AB20C5900F283AF /* EAAccessory+SDLProtocols.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "EAAccessory+SDLProtocols.m"; sourceTree = ""; }; - E9C32B9A1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "EAAccessoryManager+SDLProtocols.h"; sourceTree = ""; }; - E9C32B9B1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "EAAccessoryManager+SDLProtocols.m"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 5D4019AC1A76EC350006B0C2 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 5D61FA331A84237100846EE7 /* SmartDeviceLink.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5D61FA181A84237100846EE7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5D61FA231A84237100846EE7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 167ED93C1A9BCB8A00797BE5 /* SmartDeviceLink.framework in Frameworks */, - 5DEE55C21B864A7D004F0D0F /* OHHTTPStubs.framework in Frameworks */, - 162E81CB1A9BDD3F00906325 /* Quick.framework in Frameworks */, - 5D86022E1C99AF5100A55266 /* OCMock.framework in Frameworks */, - 162E81CA1A9BDD3F00906325 /* Nimble.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 162E81E01A9BDE8A00906325 /* RPCSpecs */ = { - isa = PBXGroup; - children = ( - 162E81E11A9BDE8A00906325 /* EnumSpecs */, - 162E82261A9BDE8A00906325 /* FactorySpecs */, - 162E82281A9BDE8A00906325 /* NotificationSpecs */, - 162E823B1A9BDE8A00906325 /* PayloadSpecs */, - 162E823D1A9BDE8A00906325 /* RequestSpecs */, - 162E82651A9BDE8A00906325 /* ResponseSpecs */, - 162E828E1A9BDE8A00906325 /* StructSpecs */, - 162E82B71A9BDE8A00906325 /* SuperclassSpecs */, - ); - path = RPCSpecs; - sourceTree = ""; - }; - 162E81E11A9BDE8A00906325 /* EnumSpecs */ = { - isa = PBXGroup; - children = ( - 162E81E21A9BDE8A00906325 /* SDLAmbientLightStatusSpec.m */, - 162E81E31A9BDE8A00906325 /* SDLAppHMITypeSpec.m */, - 162E81E41A9BDE8A00906325 /* SDLAppInterfaceUnregisteredReasonSpec.m */, - 162E81E51A9BDE8A00906325 /* SDLAudioStreamingStateSpec.m */, - 162E81E61A9BDE8A00906325 /* SDLAudioTypeSpec.m */, - 162E81E71A9BDE8A00906325 /* SDLBitsPerSampleSpec.m */, - 162E81E81A9BDE8A00906325 /* SDLButtonEventModeSpec.m */, - 162E81E91A9BDE8A00906325 /* SDLButtonNameSpec.m */, - 162E81EA1A9BDE8A00906325 /* SDLButtonPressModeSpec.m */, - 162E81EB1A9BDE8A00906325 /* SDLCarModeStatusSpec.m */, - 162E81EC1A9BDE8A00906325 /* SDLCharacterSetSpec.m */, - 162E81ED1A9BDE8A00906325 /* SDLCompassDirectionSpec.m */, - 162E81EE1A9BDE8A00906325 /* SDLComponentVolumeStatusSpec.m */, - 162E81EF1A9BDE8A00906325 /* SDLDeviceLevelStatusSpec.m */, - 162E81F01A9BDE8A00906325 /* SDLDimensionSpec.m */, - 162E81F11A9BDE8A00906325 /* SDLDisplayTypeSpec.m */, - 162E81F21A9BDE8A00906325 /* SDLDriverDistractionStateSpec.m */, - 162E81F31A9BDE8A00906325 /* SDLECallConfirmationStatusSpec.m */, - 162E81F41A9BDE8A00906325 /* SDLEmergencyEventTypeSpec.m */, - 162E81F51A9BDE8A00906325 /* SDLFileTypeSpec.m */, - 162E81F61A9BDE8A00906325 /* SDLFuelCutoffStatusSpec.m */, - 162E81F71A9BDE8A00906325 /* SDLGlobalProperySpec.m */, - 162E81F81A9BDE8A00906325 /* SDLHMILevelSpec.m */, - 162E81F91A9BDE8A00906325 /* SDLHMIZoneCapabilitiesSpec.m */, - 162E81FA1A9BDE8A00906325 /* SDLIgnitionStableStatusSpec.m */, - 162E81FB1A9BDE8A00906325 /* SDLIgnitionStatusSpec.m */, - 162E81FC1A9BDE8A00906325 /* SDLImageFieldNameSpec.m */, - 162E81FD1A9BDE8A00906325 /* SDLImageTypeSpec.m */, - 162E81FE1A9BDE8A00906325 /* SDLInteractionModeSpec.m */, - 162E81FF1A9BDE8A00906325 /* SDLKeyboardEventSpec.m */, - 162E82001A9BDE8A00906325 /* SDLKeyboardLayoutSpec.m */, - 162E82011A9BDE8A00906325 /* SDLKeypressModeSpec.m */, - 162E82021A9BDE8A00906325 /* SDLLanguageSpec.m */, - 162E82031A9BDE8A00906325 /* SDLLayoutModeSpec.m */, - 162E82041A9BDE8A00906325 /* SDLLockScreenStatusSpec.m */, - 162E82051A9BDE8A00906325 /* SDLMaintenanceModeStatusSpec.m */, - 162E82061A9BDE8A00906325 /* SDLMediaClockFormatSpec.m */, - 162E82071A9BDE8A00906325 /* SDLPermissionStatusSpec.m */, - 162E82081A9BDE8A00906325 /* SDLPowerModeQualificationStatusSpec.m */, - 162E82091A9BDE8A00906325 /* SDLPowerModeStatusSpec.m */, - 162E820A1A9BDE8A00906325 /* SDLPredefinedLayoutSpec.m */, - 162E820B1A9BDE8A00906325 /* SDLPrerecordedSpeechSpec.m */, - 162E820C1A9BDE8A00906325 /* SDLPrimaryAudioSource.m */, - 162E820D1A9BDE8A00906325 /* SDLPRNDLSpec.m */, - 162E820E1A9BDE8A00906325 /* SDLRequestTypeSpec.m */, - 162E820F1A9BDE8A00906325 /* SDLResultSpec.m */, - 162E82111A9BDE8A00906325 /* SDLSamplingRateSpec.m */, - 162E82121A9BDE8A00906325 /* SDLSoftButtonTypeSpec.m */, - 162E82131A9BDE8A00906325 /* SDLSpeechCapabilitiesSpec.m */, - 162E82141A9BDE8A00906325 /* SDLSystemAction.m */, - 162E82151A9BDE8A00906325 /* SDLSystemContextSpec.m */, - 162E82161A9BDE8A00906325 /* SDLTBTStateSpec.m */, - 162E82171A9BDE8A00906325 /* SDLTextAlignmentSpec.m */, - 162E82181A9BDE8A00906325 /* SDLTextFieldNameSpec.m */, - 162E82191A9BDE8A00906325 /* SDLTimerModeSpec.m */, - 162E821A1A9BDE8A00906325 /* SDLTouchTypeSpec.m */, - 162E821B1A9BDE8A00906325 /* SDLTriggerSource.m */, - 162E821C1A9BDE8A00906325 /* SDLUpdateModeSpec.m */, - 162E821D1A9BDE8A00906325 /* SDLVehicleDataActiveStatusSpec.m */, - 162E821E1A9BDE8A00906325 /* SDLVehicleDataEventStatusSpec.m */, - 162E821F1A9BDE8A00906325 /* SDLVehicleDataNotificationStatusSpec.m */, - 162E82201A9BDE8A00906325 /* SDLVehicleDataResultCodeSpec.m */, - 162E82211A9BDE8A00906325 /* SDLVehicleDataStatusSpec.m */, - 162E82221A9BDE8A00906325 /* SDLVehicleDataTypeSpec.m */, - 162E82231A9BDE8A00906325 /* SDLVrCapabilitiesSpec.m */, - 162E82241A9BDE8A00906325 /* SDLWarningLightStatusSpec.m */, - 162E82251A9BDE8A00906325 /* SDLWiperStatusSpec.m */, - ); - path = EnumSpecs; - sourceTree = ""; - }; - 162E82261A9BDE8A00906325 /* FactorySpecs */ = { - isa = PBXGroup; - children = ( - 162E82271A9BDE8A00906325 /* SDLRPCRequestFactorySpec.m */, - ); - path = FactorySpecs; - sourceTree = ""; - }; - 162E82281A9BDE8A00906325 /* NotificationSpecs */ = { - isa = PBXGroup; - children = ( - 162E82291A9BDE8A00906325 /* SDLOnAppInterfaceUnregisteredSpec.m */, - 162E822A1A9BDE8A00906325 /* SDLOnAudioPassThruSpec.m */, - 162E822B1A9BDE8A00906325 /* SDLOnButtonEventSpec.m */, - 162E822C1A9BDE8A00906325 /* SDLOnButtonPressSpec.m */, - 162E822D1A9BDE8A00906325 /* SDLOnCommandSpec.m */, - 162E822E1A9BDE8A00906325 /* SDLOnDriverDistractionSpec.m */, - 162E822F1A9BDE8A00906325 /* SDLOnEncodedSyncPDataSpec.m */, - 162E82301A9BDE8A00906325 /* SDLOnHashChangeSpec.m */, - 162E82311A9BDE8A00906325 /* SDLOnHMIStatusSpec.m */, - 162E82321A9BDE8A00906325 /* SDLOnKeyboardInputSpec.m */, - 162E82331A9BDE8A00906325 /* SDLOnLanguageChangeSpec.m */, - 162E82341A9BDE8A00906325 /* SDLOnLockScreenStatusSpec.m */, - 162E82351A9BDE8A00906325 /* SDLOnPermissionsChangeSpec.m */, - 162E82361A9BDE8A00906325 /* SDLOnSyncPDataSpec.m */, - 162E82371A9BDE8A00906325 /* SDLOnSystemRequestSpec.m */, - 162E82381A9BDE8A00906325 /* SDLOnTBTClientStateSpec.m */, - 162E82391A9BDE8A00906325 /* SDLOnTouchEventSpec.m */, - 162E823A1A9BDE8A00906325 /* SDLOnVehicleDataSpec.m */, - ); - path = NotificationSpecs; - sourceTree = ""; - }; - 162E823B1A9BDE8A00906325 /* PayloadSpecs */ = { - isa = PBXGroup; - children = ( - 162E823C1A9BDE8A00906325 /* SDLRPCPayloadSpec.m */, - ); - path = PayloadSpecs; - sourceTree = ""; - }; - 162E823D1A9BDE8A00906325 /* RequestSpecs */ = { - isa = PBXGroup; - children = ( - 162E823E1A9BDE8A00906325 /* SDLAddCommandSpec.m */, - 162E823F1A9BDE8A00906325 /* SDLAddSubMenuSpec.m */, - 162E82401A9BDE8A00906325 /* SDLAlertManeuverSpec.m */, - 162E82411A9BDE8A00906325 /* SDLAlertSpec.m */, - 162E82421A9BDE8A00906325 /* SDLChangeRegistrationSpec.m */, - 162E82431A9BDE8A00906325 /* SDLCreateInteractionChoiceSetSpec.m */, - 162E82441A9BDE8A00906325 /* SDLDeleteCommandSpec.m */, - 162E82451A9BDE8A00906325 /* SDLDeleteFileSpec.m */, - 162E82461A9BDE8A00906325 /* SDLDeleteInteractionChoiceSetSpec.m */, - 162E82471A9BDE8A00906325 /* SDLDeleteSubMenuSpec.m */, - 162E82481A9BDE8A00906325 /* SDLDiagnosticMessageSpec.m */, - 5D8B17551AC9E399006A6E1C /* SDLDialNumberSpec.m */, - 162E82491A9BDE8A00906325 /* SDLEncodedSyncPDataSpec.m */, - 162E824A1A9BDE8A00906325 /* SDLEndAudioPassThruSpec.m */, - 162E824B1A9BDE8A00906325 /* SDLGetDTCsSpec.m */, - 162E824C1A9BDE8A00906325 /* SDLGetVehicleDataSpec.m */, - 162E824D1A9BDE8A00906325 /* SDLListFilesSpec.m */, - 162E824E1A9BDE8A00906325 /* SDLPerformAudioPassThruSpec.m */, - 162E824F1A9BDE8A00906325 /* SDLPerformInteractionSpec.m */, - 162E82501A9BDE8A00906325 /* SDLPutFileSpec.m */, - 162E82511A9BDE8A00906325 /* SDLReadDIDSpec.m */, - 162E82521A9BDE8A00906325 /* SDLRegisterAppInterfaceSpec.m */, - 162E82531A9BDE8A00906325 /* SDLResetGlobalPropertiesSpec.m */, - 162E82541A9BDE8A00906325 /* SDLScrollableMessageSpec.m */, - 5DCF76FB1ACDDB4200BB647B /* SDLSendLocationSpec.m */, - 162E82551A9BDE8A00906325 /* SDLSetAppIconSpec.m */, - 162E82561A9BDE8A00906325 /* SDLSetDisplayLayoutSpec.m */, - 162E82571A9BDE8A00906325 /* SDLSetGlobalPropertiesSpec.m */, - 162E82581A9BDE8A00906325 /* SDLSetMediaClockTimerSpec.m */, - 162E82591A9BDE8A00906325 /* SDLShowConstantTBTSpec.m */, - 162E825A1A9BDE8A00906325 /* SDLShowSpec.m */, - 162E825B1A9BDE8A00906325 /* SDLSliderSpec.m */, - 162E825C1A9BDE8A00906325 /* SDLSpeakSpec.m */, - 162E825D1A9BDE8A00906325 /* SDLSubscribeButtonSpec.m */, - 162E825E1A9BDE8A00906325 /* SDLSubscribeVehicleDataSpec.m */, - 162E825F1A9BDE8A00906325 /* SDLSyncPDataSpec.m */, - 162E82601A9BDE8A00906325 /* SDLSystemRequestSpec.m */, - 162E82611A9BDE8A00906325 /* SDLUnregisterAppInterfaceSpec.m */, - 162E82621A9BDE8A00906325 /* SDLUnsubscribeButtonSpec.m */, - 162E82631A9BDE8A00906325 /* SDLUnsubscribeVehicleDataSpec.m */, - 162E82641A9BDE8A00906325 /* SDLUpdateTurnListSpec.m */, - ); - path = RequestSpecs; - sourceTree = ""; - }; - 162E82651A9BDE8A00906325 /* ResponseSpecs */ = { - isa = PBXGroup; - children = ( - 162E82661A9BDE8A00906325 /* SDLAddCommandResponseSpec.m */, - 162E82671A9BDE8A00906325 /* SDLAddSubMenuResponseSpec.m */, - 162E82681A9BDE8A00906325 /* SDLAlertManeuverResponseSpec.m */, - 162E82691A9BDE8A00906325 /* SDLAlertResponseSpec.m */, - 162E826A1A9BDE8A00906325 /* SDLChangeRegistrationResponseSpec.m */, - 162E826B1A9BDE8A00906325 /* SDLCreateInteractionChoiceSetResponseSpec.m */, - 162E826C1A9BDE8A00906325 /* SDLDeleteCommandResponseSpec.m */, - 162E826D1A9BDE8A00906325 /* SDLDeleteFileResponseSpec.m */, - 162E826E1A9BDE8A00906325 /* SDLDeleteInteractionChoiceSetResponseSpec.m */, - 162E826F1A9BDE8A00906325 /* SDLDeleteSubMenuResponseSpec.m */, - 162E82701A9BDE8A00906325 /* SDLDiagnosticMessageResponseSpec.m */, - 5DA0268F1AD44EE700019F86 /* SDLDialNumberResponseSpec.m */, - 162E82711A9BDE8A00906325 /* SDLEncodedSyncPDataResponseSpec.m */, - 162E82721A9BDE8A00906325 /* SDLEndAudioPassThruResponseSpec.m */, - 162E82731A9BDE8A00906325 /* SDLGenericResponseSpec.m */, - 162E82741A9BDE8A00906325 /* SDLGetDTCsResponseSpec.m */, - 162E82751A9BDE8A00906325 /* SDLGetVehicleDataResponseSpec.m */, - 162E82761A9BDE8A00906325 /* SDLListFilesResponseSpec.m */, - 162E82771A9BDE8A00906325 /* SDLPerformAudioPassThruResponseSpec.m */, - 162E82781A9BDE8A00906325 /* SDLPerformInteractionResponseSpec.m */, - 162E82791A9BDE8A00906325 /* SDLPutFileResponseSpec.m */, - 162E827A1A9BDE8A00906325 /* SDLReadDIDResponseSpec.m */, - 162E827B1A9BDE8A00906325 /* SDLRegisterAppInterfaceResponseSpec.m */, - 162E827C1A9BDE8A00906325 /* SDLResetGlobalPropertiesResponseSpec.m */, - 162E827D1A9BDE8A00906325 /* SDLScrollableMessageResponseSpec.m */, - 5DCF76FD1ACDDB5A00BB647B /* SDLSendLocationResponseSpec.m */, - 162E827E1A9BDE8A00906325 /* SDLSetAppIconResponseSpec.m */, - 162E827F1A9BDE8A00906325 /* SDLSetDisplayLayoutResponseSpec.m */, - 162E82801A9BDE8A00906325 /* SDLSetGlobalPropertiesResponseSpec.m */, - 162E82811A9BDE8A00906325 /* SDLSetMediaClockTimerResponseSpec.m */, - 162E82821A9BDE8A00906325 /* SDLShowConstantTBTResponseSpec.m */, - 162E82831A9BDE8A00906325 /* SDLShowResponseSpec.m */, - 162E82841A9BDE8A00906325 /* SDLSliderResponseSpec.m */, - 162E82851A9BDE8A00906325 /* SDLSpeakResponseSpec.m */, - 162E82861A9BDE8A00906325 /* SDLSubscribeButtonResponseSpec.m */, - 162E82871A9BDE8A00906325 /* SDLSubscribeVehicleDataResponseSpec.m */, - 162E82881A9BDE8A00906325 /* SDLSyncPDataResponseSpec.m */, - 162E82891A9BDE8A00906325 /* SDLSystemRequestResponseSpec.m */, - 162E828A1A9BDE8A00906325 /* SDLUnregisterAppInterfaceResponseSpec.m */, - 162E828B1A9BDE8A00906325 /* SDLUnsubscribeButtonResponseSpec.m */, - 162E828C1A9BDE8A00906325 /* SDLUnsubscribeVehicleDataResponseSpec.m */, - 162E828D1A9BDE8A00906325 /* SDLUpdateTurnListResponseSpec.m */, - ); - path = ResponseSpecs; - sourceTree = ""; - }; - 162E828E1A9BDE8A00906325 /* StructSpecs */ = { - isa = PBXGroup; - children = ( - 162E828F1A9BDE8A00906325 /* SDLAirbagStatusSpec.m */, - 162E82901A9BDE8A00906325 /* SDLAudioPassThruCapabilitiesSpec.m */, - 162E82911A9BDE8A00906325 /* SDLBeltStatusSpec.m */, - 162E82921A9BDE8A00906325 /* SDLBodyInformationSpec.m */, - 162E82931A9BDE8A00906325 /* SDLButtonCapabilitiesSpec.m */, - 162E82941A9BDE8A00906325 /* SDLChoiceSpec.m */, - 162E82951A9BDE8A00906325 /* SDLClusterModeStatusSpec.m */, - 162E82961A9BDE8A00906325 /* SDLDeviceInfoSpec.m */, - 162E82971A9BDE8A00906325 /* SDLDeviceStatusSpec.m */, - 162E82981A9BDE8A00906325 /* SDLDIDResult.m */, - 162E82991A9BDE8A00906325 /* SDLDisplayCapabilitiesSpec.m */, - 162E829A1A9BDE8A00906325 /* SDLECallInfoSpec.m */, - 162E829B1A9BDE8A00906325 /* SDLEmergencyEventSpec.m */, - 162E829C1A9BDE8A00906325 /* SDLGPSDataSpec.m */, - 162E829D1A9BDE8A00906325 /* SDLHeadLampStatusSpec.m */, - 5DE372A31ACB336600849FAA /* SDLHMICapabilitiesSpec.m */, - 162E829E1A9BDE8A00906325 /* SDLHMIPermissionsSpec.m */, - 162E829F1A9BDE8A00906325 /* SDLImageFieldSpec.m */, - 162E82A01A9BDE8A00906325 /* SDLImageSpec.m */, - 162E82A11A9BDE8A00906325 /* SDLKeyboardPropertiesSpec.m */, - 162E82A21A9BDE8A00906325 /* SDLMenuParamsSpec.m */, - 162E82A31A9BDE8A00906325 /* SDLMyKeySpec.m */, - 162E82A41A9BDE8A00906325 /* SDLParameterPermissionsSpec.m */, - 162E82A51A9BDE8A00906325 /* SDLPermissionItemSpec.m */, - 162E82A61A9BDE8A00906325 /* SDLPresetBankCapabilitiesSpec.m */, - 162E82A71A9BDE8A00906325 /* SDLScreenParamsSpec.m */, - 162E82A81A9BDE8A00906325 /* SDLSingleTireStatusSpec.m */, - 162E82A91A9BDE8A00906325 /* SDLSoftButtonCapabilitiesSpec.m */, - 162E82AA1A9BDE8A00906325 /* SDLSoftButtonSpec.m */, - 162E82AB1A9BDE8A00906325 /* SDLStartTimeSpec.m */, - 162E82AC1A9BDE8A00906325 /* SDLSyncMsgVersionSpec.m */, - 162E82AD1A9BDE8A00906325 /* SDLTextFieldSpec.m */, - 162E82AE1A9BDE8A00906325 /* SDLTireStatusSpec.m */, - 162E82AF1A9BDE8A00906325 /* SDLTouchCoordSpec.m */, - 162E82B01A9BDE8A00906325 /* SDLTouchEventCapabilitiesSpec.m */, - 162E82B11A9BDE8A00906325 /* SDLTouchEventSpec.m */, - 162E82B21A9BDE8A00906325 /* SDLTTSChunkSpec.m */, - 162E82B31A9BDE8A00906325 /* SDLTurnSpec.m */, - 162E82B41A9BDE8A00906325 /* SDLVehicleDataResultSpec.m */, - 162E82B51A9BDE8A00906325 /* SDLVehicleTypeSpec.m */, - 162E82B61A9BDE8A00906325 /* SDLVrHelpItemSpec.m */, - ); - path = StructSpecs; - sourceTree = ""; - }; - 162E82B71A9BDE8A00906325 /* SuperclassSpecs */ = { - isa = PBXGroup; - children = ( - 162E82B81A9BDE8A00906325 /* SDLEnumSpec.m */, - 162E82B91A9BDE8A00906325 /* SDLRPCMessageSpec.m */, - 162E82BA1A9BDE8A00906325 /* SDLRPCNotificationSpec.m */, - 162E82BB1A9BDE8A00906325 /* SDLRPCRequestSpec.m */, - 162E82BC1A9BDE8A00906325 /* SDLRPCResponseSpec.m */, - 162E82BD1A9BDE8A00906325 /* SDLRPCStructSpec.m */, - ); - path = SuperclassSpecs; - sourceTree = ""; - }; - 167ED9231A9BB86300797BE5 /* Libraries */ = { - isa = PBXGroup; - children = ( - 5D1464311C99AC0000727339 /* Nimble.framework.dSYM */, - 5DEE55C41B864AB3004F0D0F /* OHHTTPStubs.framework.dSYM */, - 5D1464331C99AC0900727339 /* OCMock.framework.dSYM */, - 5D1464341C99AC0900727339 /* Quick.framework.dSYM */, - 5D1464351C99AC0900727339 /* OCMock.framework */, - 5DEE55C11B864A7D004F0D0F /* OHHTTPStubs.framework */, - 162E81C81A9BDD3F00906325 /* Nimble.framework */, - 162E81C91A9BDD3F00906325 /* Quick.framework */, - ); - name = Libraries; - sourceTree = ""; - }; - 1680B1041A9CD7AD00DBD79E /* ProtocolSpecs */ = { - isa = PBXGroup; - children = ( - 1680B1051A9CD7AD00DBD79E /* HeaderSpecs */, - 1680B1091A9CD7AD00DBD79E /* MessageSpecs */, - 1680B10E1A9CD7AD00DBD79E /* SDLAbstractProtocolSpec.m */, - 1680B10F1A9CD7AD00DBD79E /* SDLFunctionIDSpec.m */, - 1680B10B1A9CD7AD00DBD79E /* SDLProtocolSpec.m */, - 1680B1101A9CD7AD00DBD79E /* SDLProtocolMessageAssemblerSpec.m */, - 1680B1111A9CD7AD00DBD79E /* SDLProtocolMessageDisassemblerSpec.m */, - 1680B1121A9CD7AD00DBD79E /* SDLProtocolReceivedMessageRouterSpec.m */, - ); - path = ProtocolSpecs; - sourceTree = ""; - }; - 1680B1051A9CD7AD00DBD79E /* HeaderSpecs */ = { - isa = PBXGroup; - children = ( - 1680B1061A9CD7AD00DBD79E /* SDLProtocolHeaderSpec.m */, - 1680B1071A9CD7AD00DBD79E /* SDLV1ProtocolHeaderSpec.m */, - 1680B1081A9CD7AD00DBD79E /* SDLV2ProtocolHeaderSpec.m */, - ); - path = HeaderSpecs; - sourceTree = ""; - }; - 1680B1091A9CD7AD00DBD79E /* MessageSpecs */ = { - isa = PBXGroup; - children = ( - 1680B10A1A9CD7AD00DBD79E /* SDLProtocolMessageSpec.m */, - 1680B10C1A9CD7AD00DBD79E /* SDLV1ProtocolMessageSpec.m */, - 1680B10D1A9CD7AD00DBD79E /* SDLV2ProtocolMessageSpec.m */, - ); - path = MessageSpecs; - sourceTree = ""; - }; - 5D0218E71A8D611600D1BF62 /* Frameworks */ = { - isa = PBXGroup; - children = ( - ); - name = Frameworks; - sourceTree = ""; - }; - 5D0218EB1A8E795700D1BF62 /* UI */ = { - isa = PBXGroup; - children = ( - 5D0218EC1A8E796100D1BF62 /* Connection */, - ); - name = UI; - sourceTree = ""; - }; - 5D0218EC1A8E796100D1BF62 /* Connection */ = { - isa = PBXGroup; - children = ( - 5D4832991A8EA27200252386 /* Storyboards */, - 5D4832A21A94F8F100252386 /* Transition */, - 5D0218FA1A8E7E1700D1BF62 /* ConnectionContainerViewController.h */, - 5D0218FB1A8E7E1700D1BF62 /* ConnectionContainerViewController.m */, - 5D0218F41A8E79C400D1BF62 /* ConnectionTCPTableViewController.h */, - 5D0218F51A8E79C400D1BF62 /* ConnectionTCPTableViewController.m */, - 5D0218FD1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.h */, - 5D0218FE1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.m */, - ); - name = Connection; - sourceTree = ""; - }; - 5D4019A61A76EC350006B0C2 = { - isa = PBXGroup; - children = ( - 167ED9231A9BB86300797BE5 /* Libraries */, - 5D4019B11A76EC350006B0C2 /* Example */, - 5D61FA1D1A84237100846EE7 /* SmartDeviceLink */, - 5D61FA2C1A84237100846EE7 /* SmartDeviceLinkTests */, - 5D4019B01A76EC350006B0C2 /* Products */, - ); - sourceTree = ""; - }; - 5D4019B01A76EC350006B0C2 /* Products */ = { - isa = PBXGroup; - children = ( - 5D4019AF1A76EC350006B0C2 /* SmartDeviceLink-Example.app */, - 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */, - 5D61FA261A84237100846EE7 /* SmartDeviceLinkTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 5D4019B11A76EC350006B0C2 /* Example */ = { - isa = PBXGroup; - children = ( - 5D48329E1A92865900252386 /* SDL */, - 5D48329A1A8EA31500252386 /* Utilities */, - 5D0218EB1A8E795700D1BF62 /* UI */, - 5D59350B1A855EB300687FB9 /* AppDelegate.h */, - 5D59350C1A855EB300687FB9 /* AppDelegate.m */, - 5D4029D31A76F0340006B0C2 /* Images.xcassets */, - 5D4029DF1A76F0760006B0C2 /* LaunchScreen.xib */, - 5D4029E11A76F0760006B0C2 /* Main.storyboard */, - 5D4019B21A76EC350006B0C2 /* Supporting Files */, - ); - name = Example; - path = "SmartDeviceLink-iOS"; - sourceTree = ""; - }; - 5D4019B21A76EC350006B0C2 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 5D0218E71A8D611600D1BF62 /* Frameworks */, - 5D5935111A855EBE00687FB9 /* main.m */, - 5D4029D51A76F0410006B0C2 /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 5D4832991A8EA27200252386 /* Storyboards */ = { - isa = PBXGroup; - children = ( - 5D0218F71A8E7A7300D1BF62 /* ConnectionTCPTableViewController.storyboard */, - 5D0219031A8E9F6D00D1BF62 /* ConnectionIAPTableViewController.storyboard */, - ); - name = Storyboards; - sourceTree = ""; - }; - 5D48329A1A8EA31500252386 /* Utilities */ = { - isa = PBXGroup; - children = ( - 5D48329B1A8EA33D00252386 /* Preferences.h */, - 5D48329C1A8EA33D00252386 /* Preferences.m */, - ); - name = Utilities; - sourceTree = ""; - }; - 5D48329E1A92865900252386 /* SDL */ = { - isa = PBXGroup; - children = ( - 5D48329F1A92868E00252386 /* ProxyManager.h */, - 5D4832A01A92868E00252386 /* ProxyManager.m */, - ); - name = SDL; - sourceTree = ""; - }; - 5D4832A21A94F8F100252386 /* Transition */ = { - isa = PBXGroup; - children = ( - 5D4832A31A94F90D00252386 /* ConnectionTransitionContext.h */, - 5D4832A41A94F90D00252386 /* ConnectionTransitionContext.m */, - 5D4832A61A95191B00252386 /* ConnectionAnimatedTransition.h */, - 5D4832A71A95191B00252386 /* ConnectionAnimatedTransition.m */, - ); - name = Transition; - sourceTree = ""; - }; - 5D5934ED1A85160400687FB9 /* Proxy */ = { - isa = PBXGroup; - children = ( - 5D5934FE1A851B2500687FB9 /* @protocols */, - 5D61FB031A84238A00846EE7 /* SDLLockScreenManager.h */, - 5D61FB041A84238A00846EE7 /* SDLLockScreenManager.m */, - 5D61FB441A84238B00846EE7 /* SDLPolicyDataParser.h */, - 5D61FB451A84238B00846EE7 /* SDLPolicyDataParser.m */, - 5D61FB631A84238B00846EE7 /* SDLProxy.h */, - 5D61FB641A84238B00846EE7 /* SDLProxy.m */, - 5D61FB651A84238B00846EE7 /* SDLProxyFactory.h */, - 5D61FB661A84238B00846EE7 /* SDLProxyFactory.m */, - 5D61FBF21A84238C00846EE7 /* SDLTTSChunkFactory.h */, - 5D61FBF31A84238C00846EE7 /* SDLTTSChunkFactory.m */, - 5D53C46B1B7A99B9003526EA /* SDLStreamingMediaManager.h */, - 5D53C46C1B7A99B9003526EA /* SDLStreamingMediaManager.m */, - ); - name = Proxy; - sourceTree = ""; - }; - 5D5934EE1A85160900687FB9 /* Protocol */ = { - isa = PBXGroup; - children = ( - 5D5934FA1A851AC900687FB9 /* @protocols */, - 5D5935011A851D7E00687FB9 /* Header */, - 5D5935021A851D8700687FB9 /* Message */, - 5D61FA3C1A84238A00846EE7 /* SDLAbstractProtocol.h */, - 5D61FA3D1A84238A00846EE7 /* SDLAbstractProtocol.m */, - 5D61FAC01A84238A00846EE7 /* SDLFunctionID.h */, - 5D61FAC11A84238A00846EE7 /* SDLFunctionID.m */, - 5D61FB561A84238B00846EE7 /* SDLProtocol.h */, - 5D61FB571A84238B00846EE7 /* SDLProtocol.m */, - 5D61FB5D1A84238B00846EE7 /* SDLProtocolMessageAssembler.h */, - 5D61FB5E1A84238B00846EE7 /* SDLProtocolMessageAssembler.m */, - 5D61FB5F1A84238B00846EE7 /* SDLProtocolMessageDisassembler.h */, - 5D61FB601A84238B00846EE7 /* SDLProtocolMessageDisassembler.m */, - 5D61FB611A84238B00846EE7 /* SDLProtocolReceivedMessageRouter.h */, - 5D61FB621A84238B00846EE7 /* SDLProtocolReceivedMessageRouter.m */, - ); - name = Protocol; - sourceTree = ""; - }; - 5D5934EF1A85160F00687FB9 /* RPCs */ = { - isa = PBXGroup; - children = ( - 5D5934FF1A851B8400687FB9 /* Superclasses */, - 5D5935041A851E1A00687FB9 /* Payload */, - 5D5935031A851E1100687FB9 /* Factories */, - 5D5934F11A85162800687FB9 /* Requests */, - 5D5934F21A85163200687FB9 /* Responses */, - 5D5934F31A85164500687FB9 /* Structs */, - 5D5934F41A85165E00687FB9 /* Enums */, - 5D5934F81A8519C300687FB9 /* Notification */, - ); - name = RPCs; - sourceTree = ""; - }; - 5D5934F01A85161A00687FB9 /* Transport */ = { - isa = PBXGroup; - children = ( - 5D5935001A851D0B00687FB9 /* @protocols */, - 5D61FA3E1A84238A00846EE7 /* SDLAbstractTransport.h */, - 5D61FA3F1A84238A00846EE7 /* SDLAbstractTransport.m */, - E9C32B891AB20BA200F283AF /* SDLIAPSession.h */, - E9C32B8A1AB20BA200F283AF /* SDLIAPSession.m */, - E9C32B8B1AB20BA200F283AF /* SDLIAPSessionDelegate.h */, - 5D61FADA1A84238A00846EE7 /* SDLIAPTransport.h */, - 5D61FADB1A84238A00846EE7 /* SDLIAPTransport.m */, - E9C32B8C1AB20BA200F283AF /* SDLStreamDelegate.h */, - E9C32B8D1AB20BA200F283AF /* SDLStreamDelegate.m */, - 5D61FBD81A84238B00846EE7 /* SDLTCPTransport.h */, - 5D61FBD91A84238B00846EE7 /* SDLTCPTransport.m */, - ); - name = Transport; - sourceTree = ""; - }; - 5D5934F11A85162800687FB9 /* Requests */ = { - isa = PBXGroup; - children = ( - 5D61FA401A84238A00846EE7 /* SDLAddCommand.h */, - 5D61FA411A84238A00846EE7 /* SDLAddCommand.m */, - 5D61FA441A84238A00846EE7 /* SDLAddSubMenu.h */, - 5D61FA451A84238A00846EE7 /* SDLAddSubMenu.m */, - 5D61FA4A1A84238A00846EE7 /* SDLAlert.h */, - 5D61FA4B1A84238A00846EE7 /* SDLAlert.m */, - 5D61FA4C1A84238A00846EE7 /* SDLAlertManeuver.h */, - 5D61FA4D1A84238A00846EE7 /* SDLAlertManeuver.m */, - 5D61FA6E1A84238A00846EE7 /* SDLChangeRegistration.h */, - 5D61FA6F1A84238A00846EE7 /* SDLChangeRegistration.m */, - 5D61FA7E1A84238A00846EE7 /* SDLCreateInteractionChoiceSet.h */, - 5D61FA7F1A84238A00846EE7 /* SDLCreateInteractionChoiceSet.m */, - 5D61FA851A84238A00846EE7 /* SDLDeleteCommand.h */, - 5D61FA861A84238A00846EE7 /* SDLDeleteCommand.m */, - 5D61FA891A84238A00846EE7 /* SDLDeleteFile.h */, - 5D61FA8A1A84238A00846EE7 /* SDLDeleteFile.m */, - 5D61FA8D1A84238A00846EE7 /* SDLDeleteInteractionChoiceSet.h */, - 5D61FA8E1A84238A00846EE7 /* SDLDeleteInteractionChoiceSet.m */, - 5D61FA911A84238A00846EE7 /* SDLDeleteSubMenu.h */, - 5D61FA921A84238A00846EE7 /* SDLDeleteSubMenu.m */, - 5D61FA9B1A84238A00846EE7 /* SDLDiagnosticMessage.h */, - 5D61FA9C1A84238A00846EE7 /* SDLDiagnosticMessage.m */, - 5D8B174D1AC9D266006A6E1C /* SDLDialNumber.h */, - 5D8B174E1AC9D266006A6E1C /* SDLDialNumber.m */, - 5D61FAB11A84238A00846EE7 /* SDLEncodedSyncPData.h */, - 5D61FAB21A84238A00846EE7 /* SDLEncodedSyncPData.m */, - 5D61FAB61A84238A00846EE7 /* SDLEndAudioPassThru.h */, - 5D61FAB71A84238A00846EE7 /* SDLEndAudioPassThru.m */, - 5D61FAC41A84238A00846EE7 /* SDLGetDTCs.h */, - 5D61FAC51A84238A00846EE7 /* SDLGetDTCs.m */, - 5D61FAC81A84238A00846EE7 /* SDLGetVehicleData.h */, - 5D61FAC91A84238A00846EE7 /* SDLGetVehicleData.m */, - 5D61FAFF1A84238A00846EE7 /* SDLListFiles.h */, - 5D61FB001A84238A00846EE7 /* SDLListFiles.m */, - 5D61FB381A84238B00846EE7 /* SDLPerformAudioPassThru.h */, - 5D61FB391A84238B00846EE7 /* SDLPerformAudioPassThru.m */, - 5D61FB3C1A84238B00846EE7 /* SDLPerformInteraction.h */, - 5D61FB3D1A84238B00846EE7 /* SDLPerformInteraction.m */, - 5D61FB681A84238B00846EE7 /* SDLPutFile.h */, - 5D61FB691A84238B00846EE7 /* SDLPutFile.m */, - 5D61FB6C1A84238B00846EE7 /* SDLReadDID.h */, - 5D61FB6D1A84238B00846EE7 /* SDLReadDID.m */, - 5D61FB701A84238B00846EE7 /* SDLRegisterAppInterface.h */, - 5D61FB711A84238B00846EE7 /* SDLRegisterAppInterface.m */, - 5D61FB761A84238B00846EE7 /* SDLResetGlobalProperties.h */, - 5D61FB771A84238B00846EE7 /* SDLResetGlobalProperties.m */, - 5D61FB8E1A84238B00846EE7 /* SDLScrollableMessage.h */, - 5D61FB8F1A84238B00846EE7 /* SDLScrollableMessage.m */, - 5D61FB921A84238B00846EE7 /* SDLSetAppIcon.h */, - 5D61FB931A84238B00846EE7 /* SDLSetAppIcon.m */, - 5D61FB961A84238B00846EE7 /* SDLSetDisplayLayout.h */, - 5D61FB971A84238B00846EE7 /* SDLSetDisplayLayout.m */, - 5D61FB9A1A84238B00846EE7 /* SDLSetGlobalProperties.h */, - 5D61FB9B1A84238B00846EE7 /* SDLSetGlobalProperties.m */, - 5D61FB9E1A84238B00846EE7 /* SDLSetMediaClockTimer.h */, - 5D61FB9F1A84238B00846EE7 /* SDLSetMediaClockTimer.m */, - 5D61FBA21A84238B00846EE7 /* SDLShow.h */, - 5D61FBA31A84238B00846EE7 /* SDLShow.m */, - 5D61FBA41A84238B00846EE7 /* SDLShowConstantTBT.h */, - 5D61FBA51A84238B00846EE7 /* SDLShowConstantTBT.m */, - 5D61FBAE1A84238B00846EE7 /* SDLSlider.h */, - 5D61FBAF1A84238B00846EE7 /* SDLSlider.m */, - 5D61FBB81A84238B00846EE7 /* SDLSpeak.h */, - 5D61FBB91A84238B00846EE7 /* SDLSpeak.m */, - 5D61FBC01A84238B00846EE7 /* SDLSubscribeButton.h */, - 5D61FBC11A84238B00846EE7 /* SDLSubscribeButton.m */, - 5D61FBC41A84238B00846EE7 /* SDLSubscribeVehicleData.h */, - 5D61FBC51A84238B00846EE7 /* SDLSubscribeVehicleData.m */, - 5D61FBCA1A84238B00846EE7 /* SDLSyncPData.h */, - 5D61FBCB1A84238B00846EE7 /* SDLSyncPData.m */, - 5D61FBD21A84238B00846EE7 /* SDLSystemRequest.h */, - 5D61FBD31A84238B00846EE7 /* SDLSystemRequest.m */, - 5D61FBF61A84238C00846EE7 /* SDLUnregisterAppInterface.h */, - 5D61FBF71A84238C00846EE7 /* SDLUnregisterAppInterface.m */, - 5D61FBFA1A84238C00846EE7 /* SDLUnsubscribeButton.h */, - 5D61FBFB1A84238C00846EE7 /* SDLUnsubscribeButton.m */, - 5D61FBFE1A84238C00846EE7 /* SDLUnsubscribeVehicleData.h */, - 5D61FBFF1A84238C00846EE7 /* SDLUnsubscribeVehicleData.m */, - 5D61FC041A84238C00846EE7 /* SDLUpdateTurnList.h */, - 5D61FC051A84238C00846EE7 /* SDLUpdateTurnList.m */, - 5DCF76F31ACDBAD300BB647B /* SDLSendLocation.h */, - 5DCF76F41ACDBAD300BB647B /* SDLSendLocation.m */, - ); - name = Requests; - sourceTree = ""; - }; - 5D5934F21A85163200687FB9 /* Responses */ = { - isa = PBXGroup; - children = ( - 5D61FA421A84238A00846EE7 /* SDLAddCommandResponse.h */, - 5D61FA431A84238A00846EE7 /* SDLAddCommandResponse.m */, - 5D61FA461A84238A00846EE7 /* SDLAddSubMenuResponse.h */, - 5D61FA471A84238A00846EE7 /* SDLAddSubMenuResponse.m */, - 5D61FA4E1A84238A00846EE7 /* SDLAlertManeuverResponse.h */, - 5D61FA4F1A84238A00846EE7 /* SDLAlertManeuverResponse.m */, - 5D61FA501A84238A00846EE7 /* SDLAlertResponse.h */, - 5D61FA511A84238A00846EE7 /* SDLAlertResponse.m */, - 5D61FA701A84238A00846EE7 /* SDLChangeRegistrationResponse.h */, - 5D61FA711A84238A00846EE7 /* SDLChangeRegistrationResponse.m */, - 5D61FA801A84238A00846EE7 /* SDLCreateInteractionChoiceSetResponse.h */, - 5D61FA811A84238A00846EE7 /* SDLCreateInteractionChoiceSetResponse.m */, - 5D61FA871A84238A00846EE7 /* SDLDeleteCommandResponse.h */, - 5D61FA881A84238A00846EE7 /* SDLDeleteCommandResponse.m */, - 5D61FA8B1A84238A00846EE7 /* SDLDeleteFileResponse.h */, - 5D61FA8C1A84238A00846EE7 /* SDLDeleteFileResponse.m */, - 5D61FA8F1A84238A00846EE7 /* SDLDeleteInteractionChoiceSetResponse.h */, - 5D61FA901A84238A00846EE7 /* SDLDeleteInteractionChoiceSetResponse.m */, - 5D61FA931A84238A00846EE7 /* SDLDeleteSubMenuResponse.h */, - 5D61FA941A84238A00846EE7 /* SDLDeleteSubMenuResponse.m */, - 5D61FA9D1A84238A00846EE7 /* SDLDiagnosticMessageResponse.h */, - 5D61FA9E1A84238A00846EE7 /* SDLDiagnosticMessageResponse.m */, - 5D8B17511AC9E11B006A6E1C /* SDLDialNumberResponse.h */, - 5D8B17521AC9E11B006A6E1C /* SDLDialNumberResponse.m */, - 5D61FAB31A84238A00846EE7 /* SDLEncodedSyncPDataResponse.h */, - 5D61FAB41A84238A00846EE7 /* SDLEncodedSyncPDataResponse.m */, - 5D61FAB81A84238A00846EE7 /* SDLEndAudioPassThruResponse.h */, - 5D61FAB91A84238A00846EE7 /* SDLEndAudioPassThruResponse.m */, - 5D61FAC21A84238A00846EE7 /* SDLGenericResponse.h */, - 5D61FAC31A84238A00846EE7 /* SDLGenericResponse.m */, - 5D61FAC61A84238A00846EE7 /* SDLGetDTCsResponse.h */, - 5D61FAC71A84238A00846EE7 /* SDLGetDTCsResponse.m */, - 5D61FACA1A84238A00846EE7 /* SDLGetVehicleDataResponse.h */, - 5D61FACB1A84238A00846EE7 /* SDLGetVehicleDataResponse.m */, - 5D61FB011A84238A00846EE7 /* SDLListFilesResponse.h */, - 5D61FB021A84238A00846EE7 /* SDLListFilesResponse.m */, - 5D61FB3A1A84238B00846EE7 /* SDLPerformAudioPassThruResponse.h */, - 5D61FB3B1A84238B00846EE7 /* SDLPerformAudioPassThruResponse.m */, - 5D61FB3E1A84238B00846EE7 /* SDLPerformInteractionResponse.h */, - 5D61FB3F1A84238B00846EE7 /* SDLPerformInteractionResponse.m */, - 5D61FB6A1A84238B00846EE7 /* SDLPutFileResponse.h */, - 5D61FB6B1A84238B00846EE7 /* SDLPutFileResponse.m */, - 5D61FB6E1A84238B00846EE7 /* SDLReadDIDResponse.h */, - 5D61FB6F1A84238B00846EE7 /* SDLReadDIDResponse.m */, - 5D61FB721A84238B00846EE7 /* SDLRegisterAppInterfaceResponse.h */, - 5D61FB731A84238B00846EE7 /* SDLRegisterAppInterfaceResponse.m */, - 5D61FB781A84238B00846EE7 /* SDLResetGlobalPropertiesResponse.h */, - 5D61FB791A84238B00846EE7 /* SDLResetGlobalPropertiesResponse.m */, - 5D61FB901A84238B00846EE7 /* SDLScrollableMessageResponse.h */, - 5D61FB911A84238B00846EE7 /* SDLScrollableMessageResponse.m */, - 5D61FB941A84238B00846EE7 /* SDLSetAppIconResponse.h */, - 5D61FB951A84238B00846EE7 /* SDLSetAppIconResponse.m */, - 5D61FB981A84238B00846EE7 /* SDLSetDisplayLayoutResponse.h */, - 5D61FB991A84238B00846EE7 /* SDLSetDisplayLayoutResponse.m */, - 5D61FB9C1A84238B00846EE7 /* SDLSetGlobalPropertiesResponse.h */, - 5D61FB9D1A84238B00846EE7 /* SDLSetGlobalPropertiesResponse.m */, - 5D61FBA01A84238B00846EE7 /* SDLSetMediaClockTimerResponse.h */, - 5D61FBA11A84238B00846EE7 /* SDLSetMediaClockTimerResponse.m */, - 5D61FBA61A84238B00846EE7 /* SDLShowConstantTBTResponse.h */, - 5D61FBA71A84238B00846EE7 /* SDLShowConstantTBTResponse.m */, - 5D61FBA81A84238B00846EE7 /* SDLShowResponse.h */, - 5D61FBA91A84238B00846EE7 /* SDLShowResponse.m */, - 5D61FBB01A84238B00846EE7 /* SDLSliderResponse.h */, - 5D61FBB11A84238B00846EE7 /* SDLSliderResponse.m */, - 5D61FBBA1A84238B00846EE7 /* SDLSpeakResponse.h */, - 5D61FBBB1A84238B00846EE7 /* SDLSpeakResponse.m */, - 5D61FBC21A84238B00846EE7 /* SDLSubscribeButtonResponse.h */, - 5D61FBC31A84238B00846EE7 /* SDLSubscribeButtonResponse.m */, - 5D61FBC61A84238B00846EE7 /* SDLSubscribeVehicleDataResponse.h */, - 5D61FBC71A84238B00846EE7 /* SDLSubscribeVehicleDataResponse.m */, - 5D61FBCC1A84238B00846EE7 /* SDLSyncPDataResponse.h */, - 5D61FBCD1A84238B00846EE7 /* SDLSyncPDataResponse.m */, - 5D61FBD41A84238B00846EE7 /* SDLSystemRequestResponse.h */, - 5D61FBD51A84238B00846EE7 /* SDLSystemRequestResponse.m */, - 5D61FBF81A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.h */, - 5D61FBF91A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.m */, - 5D61FBFC1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.h */, - 5D61FBFD1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.m */, - 5D61FC001A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.h */, - 5D61FC011A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.m */, - 5D61FC061A84238C00846EE7 /* SDLUpdateTurnListResponse.h */, - 5D61FC071A84238C00846EE7 /* SDLUpdateTurnListResponse.m */, - 5DCF76F71ACDD7CD00BB647B /* SDLSendLocationResponse.h */, - 5DCF76F81ACDD7CD00BB647B /* SDLSendLocationResponse.m */, - ); - name = Responses; - sourceTree = ""; - }; - 5D5934F31A85164500687FB9 /* Structs */ = { - isa = PBXGroup; - children = ( - 5D61FA481A84238A00846EE7 /* SDLAirbagStatus.h */, - 5D61FA491A84238A00846EE7 /* SDLAirbagStatus.m */, - 5D61FA581A84238A00846EE7 /* SDLAudioPassThruCapabilities.h */, - 5D61FA591A84238A00846EE7 /* SDLAudioPassThruCapabilities.m */, - 5D61FA5E1A84238A00846EE7 /* SDLBeltStatus.h */, - 5D61FA5F1A84238A00846EE7 /* SDLBeltStatus.m */, - 5D61FA621A84238A00846EE7 /* SDLBodyInformation.h */, - 5D61FA631A84238A00846EE7 /* SDLBodyInformation.m */, - 5D61FA641A84238A00846EE7 /* SDLButtonCapabilities.h */, - 5D61FA651A84238A00846EE7 /* SDLButtonCapabilities.m */, - 5D61FA741A84238A00846EE7 /* SDLChoice.h */, - 5D61FA751A84238A00846EE7 /* SDLChoice.m */, - 5D61FA761A84238A00846EE7 /* SDLClusterModeStatus.h */, - 5D61FA771A84238A00846EE7 /* SDLClusterModeStatus.m */, - 5D61FA951A84238A00846EE7 /* SDLDeviceInfo.h */, - 5D61FA961A84238A00846EE7 /* SDLDeviceInfo.m */, - 5D61FA991A84238A00846EE7 /* SDLDeviceStatus.h */, - 5D61FA9A1A84238A00846EE7 /* SDLDeviceStatus.m */, - 5D61FA9F1A84238A00846EE7 /* SDLDIDResult.h */, - 5D61FAA01A84238A00846EE7 /* SDLDIDResult.m */, - 5D61FAA31A84238A00846EE7 /* SDLDisplayCapabilities.h */, - 5D61FAA41A84238A00846EE7 /* SDLDisplayCapabilities.m */, - 5D61FAAB1A84238A00846EE7 /* SDLECallInfo.h */, - 5D61FAAC1A84238A00846EE7 /* SDLECallInfo.m */, - 5D61FAAD1A84238A00846EE7 /* SDLEmergencyEvent.h */, - 5D61FAAE1A84238A00846EE7 /* SDLEmergencyEvent.m */, - 5D61FACE1A84238A00846EE7 /* SDLGPSData.h */, - 5D61FACF1A84238A00846EE7 /* SDLGPSData.m */, - 5D61FAD01A84238A00846EE7 /* SDLHeadLampStatus.h */, - 5D61FAD11A84238A00846EE7 /* SDLHeadLampStatus.m */, - 5DE3729F1ACB2ED300849FAA /* SDLHMICapabilities.h */, - 5DE372A01ACB2ED300849FAA /* SDLHMICapabilities.m */, - 5D61FAD61A84238A00846EE7 /* SDLHMIPermissions.h */, - 5D61FAD71A84238A00846EE7 /* SDLHMIPermissions.m */, - 5D61FAE01A84238A00846EE7 /* SDLImage.h */, - 5D61FAE11A84238A00846EE7 /* SDLImage.m */, - 5D61FAE21A84238A00846EE7 /* SDLImageField.h */, - 5D61FAE31A84238A00846EE7 /* SDLImageField.m */, - 5D61FAE61A84238A00846EE7 /* SDLImageResolution.h */, - 5D61FAE71A84238A00846EE7 /* SDLImageResolution.m */, - 5D61FAF71A84238A00846EE7 /* SDLKeyboardProperties.h */, - 5D61FAF81A84238A00846EE7 /* SDLKeyboardProperties.m */, - 5D61FB0B1A84238A00846EE7 /* SDLMenuParams.h */, - 5D61FB0C1A84238A00846EE7 /* SDLMenuParams.m */, - 5D61FB0D1A84238A00846EE7 /* SDLMyKey.h */, - 5D61FB0E1A84238A00846EE7 /* SDLMyKey.m */, - 5D61FB361A84238B00846EE7 /* SDLParameterPermissions.h */, - 5D61FB371A84238B00846EE7 /* SDLParameterPermissions.m */, - 5D61FB401A84238B00846EE7 /* SDLPermissionItem.h */, - 5D61FB411A84238B00846EE7 /* SDLPermissionItem.m */, - 5D61FB4E1A84238B00846EE7 /* SDLPresetBankCapabilities.h */, - 5D61FB4F1A84238B00846EE7 /* SDLPresetBankCapabilities.m */, - 5D61FB8C1A84238B00846EE7 /* SDLScreenParams.h */, - 5D61FB8D1A84238B00846EE7 /* SDLScreenParams.m */, - 5D61FBAA1A84238B00846EE7 /* SDLSingleTireStatus.h */, - 5D61FBAB1A84238B00846EE7 /* SDLSingleTireStatus.m */, - 5D61FBB21A84238B00846EE7 /* SDLSoftButton.h */, - 5D61FBB31A84238B00846EE7 /* SDLSoftButton.m */, - 5D61FBB41A84238B00846EE7 /* SDLSoftButtonCapabilities.h */, - 5D61FBB51A84238B00846EE7 /* SDLSoftButtonCapabilities.m */, - 5D61FBBE1A84238B00846EE7 /* SDLStartTime.h */, - 5D61FBBF1A84238B00846EE7 /* SDLStartTime.m */, - 5D61FBC81A84238B00846EE7 /* SDLSyncMsgVersion.h */, - 5D61FBC91A84238B00846EE7 /* SDLSyncMsgVersion.m */, - 5D61FBDC1A84238C00846EE7 /* SDLTextField.h */, - 5D61FBDD1A84238C00846EE7 /* SDLTextField.m */, - 5D61FBE21A84238C00846EE7 /* SDLTireStatus.h */, - 5D61FBE31A84238C00846EE7 /* SDLTireStatus.m */, - 5D61FBE41A84238C00846EE7 /* SDLTouchCoord.h */, - 5D61FBE51A84238C00846EE7 /* SDLTouchCoord.m */, - 5D61FBE61A84238C00846EE7 /* SDLTouchEvent.h */, - 5D61FBE71A84238C00846EE7 /* SDLTouchEvent.m */, - 5D61FBE81A84238C00846EE7 /* SDLTouchEventCapabilities.h */, - 5D61FBE91A84238C00846EE7 /* SDLTouchEventCapabilities.m */, - 5D61FBF01A84238C00846EE7 /* SDLTTSChunk.h */, - 5D61FBF11A84238C00846EE7 /* SDLTTSChunk.m */, - 5D61FBF41A84238C00846EE7 /* SDLTurn.h */, - 5D61FBF51A84238C00846EE7 /* SDLTurn.m */, - 5D61FC161A84238C00846EE7 /* SDLVehicleDataResult.h */, - 5D61FC171A84238C00846EE7 /* SDLVehicleDataResult.m */, - 5D61FC1E1A84238C00846EE7 /* SDLVehicleType.h */, - 5D61FC1F1A84238C00846EE7 /* SDLVehicleType.m */, - 5D61FC221A84238C00846EE7 /* SDLVRHelpItem.h */, - 5D61FC231A84238C00846EE7 /* SDLVRHelpItem.m */, - ); - name = Structs; - sourceTree = ""; - }; - 5D5934F41A85165E00687FB9 /* Enums */ = { - isa = PBXGroup; - children = ( - 5D61FA521A84238A00846EE7 /* SDLAmbientLightStatus.h */, - 5D61FA531A84238A00846EE7 /* SDLAmbientLightStatus.m */, - 5D61FA541A84238A00846EE7 /* SDLAppHMIType.h */, - 5D61FA551A84238A00846EE7 /* SDLAppHMIType.m */, - 5D61FA561A84238A00846EE7 /* SDLAppInterfaceUnregisteredReason.h */, - 5D61FA571A84238A00846EE7 /* SDLAppInterfaceUnregisteredReason.m */, - 5D61FA5A1A84238A00846EE7 /* SDLAudioStreamingState.h */, - 5D61FA5B1A84238A00846EE7 /* SDLAudioStreamingState.m */, - 5D61FA5C1A84238A00846EE7 /* SDLAudioType.h */, - 5D61FA5D1A84238A00846EE7 /* SDLAudioType.m */, - 5D61FA601A84238A00846EE7 /* SDLBitsPerSample.h */, - 5D61FA611A84238A00846EE7 /* SDLBitsPerSample.m */, - 5D61FA661A84238A00846EE7 /* SDLButtonEventMode.h */, - 5D61FA671A84238A00846EE7 /* SDLButtonEventMode.m */, - 5D61FA681A84238A00846EE7 /* SDLButtonName.h */, - 5D61FA691A84238A00846EE7 /* SDLButtonName.m */, - 5D61FA6A1A84238A00846EE7 /* SDLButtonPressMode.h */, - 5D61FA6B1A84238A00846EE7 /* SDLButtonPressMode.m */, - 5D61FA6C1A84238A00846EE7 /* SDLCarModeStatus.h */, - 5D61FA6D1A84238A00846EE7 /* SDLCarModeStatus.m */, - 5D61FA721A84238A00846EE7 /* SDLCharacterSet.h */, - 5D61FA731A84238A00846EE7 /* SDLCharacterSet.m */, - 5D61FA781A84238A00846EE7 /* SDLCompassDirection.h */, - 5D61FA791A84238A00846EE7 /* SDLCompassDirection.m */, - 5D61FA7A1A84238A00846EE7 /* SDLComponentVolumeStatus.h */, - 5D61FA7B1A84238A00846EE7 /* SDLComponentVolumeStatus.m */, - 5D61FA971A84238A00846EE7 /* SDLDeviceLevelStatus.h */, - 5D61FA981A84238A00846EE7 /* SDLDeviceLevelStatus.m */, - 5D61FAA11A84238A00846EE7 /* SDLDimension.h */, - 5D61FAA21A84238A00846EE7 /* SDLDimension.m */, - 5D61FAA51A84238A00846EE7 /* SDLDisplayType.h */, - 5D61FAA61A84238A00846EE7 /* SDLDisplayType.m */, - 5D61FAA71A84238A00846EE7 /* SDLDriverDistractionState.h */, - 5D61FAA81A84238A00846EE7 /* SDLDriverDistractionState.m */, - 5D61FAA91A84238A00846EE7 /* SDLECallConfirmationStatus.h */, - 5D61FAAA1A84238A00846EE7 /* SDLECallConfirmationStatus.m */, - 5D61FAAF1A84238A00846EE7 /* SDLEmergencyEventType.h */, - 5D61FAB01A84238A00846EE7 /* SDLEmergencyEventType.m */, - 5D61FABC1A84238A00846EE7 /* SDLFileType.h */, - 5D61FABD1A84238A00846EE7 /* SDLFileType.m */, - 5D61FABE1A84238A00846EE7 /* SDLFuelCutoffStatus.h */, - 5D61FABF1A84238A00846EE7 /* SDLFuelCutoffStatus.m */, - 5D61FACC1A84238A00846EE7 /* SDLGlobalProperty.h */, - 5D61FACD1A84238A00846EE7 /* SDLGlobalProperty.m */, - 5D61FAD41A84238A00846EE7 /* SDLHMILevel.h */, - 5D61FAD51A84238A00846EE7 /* SDLHMILevel.m */, - 5D61FAD81A84238A00846EE7 /* SDLHMIZoneCapabilities.h */, - 5D61FAD91A84238A00846EE7 /* SDLHMIZoneCapabilities.m */, - 5D61FADC1A84238A00846EE7 /* SDLIgnitionStableStatus.h */, - 5D61FADD1A84238A00846EE7 /* SDLIgnitionStableStatus.m */, - 5D61FADE1A84238A00846EE7 /* SDLIgnitionStatus.h */, - 5D61FADF1A84238A00846EE7 /* SDLIgnitionStatus.m */, - 5D61FAE41A84238A00846EE7 /* SDLImageFieldName.h */, - 5D61FAE51A84238A00846EE7 /* SDLImageFieldName.m */, - 5D61FAE81A84238A00846EE7 /* SDLImageType.h */, - 5D61FAE91A84238A00846EE7 /* SDLImageType.m */, - 5D61FAEA1A84238A00846EE7 /* SDLInteractionMode.h */, - 5D61FAEB1A84238A00846EE7 /* SDLInteractionMode.m */, - 5D61FAF31A84238A00846EE7 /* SDLKeyboardEvent.h */, - 5D61FAF41A84238A00846EE7 /* SDLKeyboardEvent.m */, - 5D61FAF51A84238A00846EE7 /* SDLKeyboardLayout.h */, - 5D61FAF61A84238A00846EE7 /* SDLKeyboardLayout.m */, - 5D61FAF91A84238A00846EE7 /* SDLKeypressMode.h */, - 5D61FAFA1A84238A00846EE7 /* SDLKeypressMode.m */, - 5D61FAFB1A84238A00846EE7 /* SDLLanguage.h */, - 5D61FAFC1A84238A00846EE7 /* SDLLanguage.m */, - 5D61FAFD1A84238A00846EE7 /* SDLLayoutMode.h */, - 5D61FAFE1A84238A00846EE7 /* SDLLayoutMode.m */, - 5D61FB051A84238A00846EE7 /* SDLLockScreenStatus.h */, - 5D61FB061A84238A00846EE7 /* SDLLockScreenStatus.m */, - 5D61FB071A84238A00846EE7 /* SDLMaintenanceModeStatus.h */, - 5D61FB081A84238A00846EE7 /* SDLMaintenanceModeStatus.m */, - 5D61FB091A84238A00846EE7 /* SDLMediaClockFormat.h */, - 5D61FB0A1A84238A00846EE7 /* SDLMediaClockFormat.m */, - 5D61FB421A84238B00846EE7 /* SDLPermissionStatus.h */, - 5D61FB431A84238B00846EE7 /* SDLPermissionStatus.m */, - 5D61FB461A84238B00846EE7 /* SDLPowerModeQualificationStatus.h */, - 5D61FB471A84238B00846EE7 /* SDLPowerModeQualificationStatus.m */, - 5D61FB481A84238B00846EE7 /* SDLPowerModeStatus.h */, - 5D61FB491A84238B00846EE7 /* SDLPowerModeStatus.m */, - 5D61FB4A1A84238B00846EE7 /* SDLPredefinedLayout.h */, - 5D61FB4B1A84238B00846EE7 /* SDLPredefinedLayout.m */, - 5D61FB4C1A84238B00846EE7 /* SDLPrerecordedSpeech.h */, - 5D61FB4D1A84238B00846EE7 /* SDLPrerecordedSpeech.m */, - 5D61FB501A84238B00846EE7 /* SDLPrimaryAudioSource.h */, - 5D61FB511A84238B00846EE7 /* SDLPrimaryAudioSource.m */, - 5D61FB541A84238B00846EE7 /* SDLPRNDL.h */, - 5D61FB551A84238B00846EE7 /* SDLPRNDL.m */, - 5D61FB741A84238B00846EE7 /* SDLRequestType.h */, - 5D61FB751A84238B00846EE7 /* SDLRequestType.m */, - 5D61FB7A1A84238B00846EE7 /* SDLResult.h */, - 5D61FB7B1A84238B00846EE7 /* SDLResult.m */, - 5D61FB7E1A84238B00846EE7 /* SDLRPCMessageType.h */, - 5D61FB8A1A84238B00846EE7 /* SDLSamplingRate.h */, - 5D61FB8B1A84238B00846EE7 /* SDLSamplingRate.m */, - 5D61FBB61A84238B00846EE7 /* SDLSoftButtonType.h */, - 5D61FBB71A84238B00846EE7 /* SDLSoftButtonType.m */, - 5D61FBBC1A84238B00846EE7 /* SDLSpeechCapabilities.h */, - 5D61FBBD1A84238B00846EE7 /* SDLSpeechCapabilities.m */, - 5D61FBCE1A84238B00846EE7 /* SDLSystemAction.h */, - 5D61FBCF1A84238B00846EE7 /* SDLSystemAction.m */, - 5D61FBD01A84238B00846EE7 /* SDLSystemContext.h */, - 5D61FBD11A84238B00846EE7 /* SDLSystemContext.m */, - 5D61FBD61A84238B00846EE7 /* SDLTBTState.h */, - 5D61FBD71A84238B00846EE7 /* SDLTBTState.m */, - 5D61FBDA1A84238B00846EE7 /* SDLTextAlignment.h */, - 5D61FBDB1A84238C00846EE7 /* SDLTextAlignment.m */, - 5D61FBDE1A84238C00846EE7 /* SDLTextFieldName.h */, - 5D61FBDF1A84238C00846EE7 /* SDLTextFieldName.m */, - 5D61FBE01A84238C00846EE7 /* SDLTimerMode.h */, - 5D61FBE11A84238C00846EE7 /* SDLTimerMode.m */, - 5D61FBEA1A84238C00846EE7 /* SDLTouchType.h */, - 5D61FBEB1A84238C00846EE7 /* SDLTouchType.m */, - 5D61FBEE1A84238C00846EE7 /* SDLTriggerSource.h */, - 5D61FBEF1A84238C00846EE7 /* SDLTriggerSource.m */, - 5D61FC021A84238C00846EE7 /* SDLUpdateMode.h */, - 5D61FC031A84238C00846EE7 /* SDLUpdateMode.m */, - 5D61FC101A84238C00846EE7 /* SDLVehicleDataActiveStatus.h */, - 5D61FC111A84238C00846EE7 /* SDLVehicleDataActiveStatus.m */, - 5D61FC121A84238C00846EE7 /* SDLVehicleDataEventStatus.h */, - 5D61FC131A84238C00846EE7 /* SDLVehicleDataEventStatus.m */, - 5D61FC141A84238C00846EE7 /* SDLVehicleDataNotificationStatus.h */, - 5D61FC151A84238C00846EE7 /* SDLVehicleDataNotificationStatus.m */, - 5D61FC181A84238C00846EE7 /* SDLVehicleDataResultCode.h */, - 5D61FC191A84238C00846EE7 /* SDLVehicleDataResultCode.m */, - 5D61FC1A1A84238C00846EE7 /* SDLVehicleDataStatus.h */, - 5D61FC1B1A84238C00846EE7 /* SDLVehicleDataStatus.m */, - 5D61FC1C1A84238C00846EE7 /* SDLVehicleDataType.h */, - 5D61FC1D1A84238C00846EE7 /* SDLVehicleDataType.m */, - 5D61FC201A84238C00846EE7 /* SDLVRCapabilities.h */, - 5D61FC211A84238C00846EE7 /* SDLVRCapabilities.m */, - 5D61FC241A84238C00846EE7 /* SDLWarningLightStatus.h */, - 5D61FC251A84238C00846EE7 /* SDLWarningLightStatus.m */, - 5D61FC261A84238C00846EE7 /* SDLWiperStatus.h */, - 5D61FC271A84238C00846EE7 /* SDLWiperStatus.m */, - ); - name = Enums; - sourceTree = ""; - }; - 5D5934F51A8516C800687FB9 /* Debug */ = { - isa = PBXGroup; - children = ( - 5DE372A71ACC35C100849FAA /* @protocols */, - 5D61FA7C1A84238A00846EE7 /* SDLConsoleController.h */, - 5D61FA7D1A84238A00846EE7 /* SDLConsoleController.m */, - 5D61FA821A84238A00846EE7 /* SDLDebugTool.h */, - 5D61FA831A84238A00846EE7 /* SDLDebugTool.m */, - 5D61FBAC1A84238B00846EE7 /* SDLSiphonServer.h */, - 5D61FBAD1A84238B00846EE7 /* SDLSiphonServer.m */, - ); - name = Debug; - sourceTree = ""; - }; - 5D5934F61A85189500687FB9 /* Utilities */ = { - isa = PBXGroup; - children = ( - 5DCC199D1B8221D2004FFAD9 /* HTTP Connection */, - E9C32B831AB20B2900F283AF /* @categories */, - 5D5934F71A8519A700687FB9 /* JSON */, - 5D5934F91A851A8000687FB9 /* Prioritized Objects */, - 5D61FAD21A84238A00846EE7 /* SDLHexUtility.h */, - 5D61FAD31A84238A00846EE7 /* SDLHexUtility.m */, - 5D61FAED1A84238A00846EE7 /* SDLJingle.h */, - 5D61FAEE1A84238A00846EE7 /* SDLJingle.m */, - E9C32B8E1AB20BA200F283AF /* SDLTimer.h */, - E9C32B8F1AB20BA200F283AF /* SDLTimer.m */, - 5D61FB0F1A84238A00846EE7 /* SDLNames.h */, - 5D535DC31B72473800CF7760 /* SDLGlobals.h */, - 5D535DC41B72473800CF7760 /* SDLGlobals.m */, - ); - name = Utilities; - sourceTree = ""; - }; - 5D5934F71A8519A700687FB9 /* JSON */ = { - isa = PBXGroup; - children = ( - 5D5934FD1A851B1500687FB9 /* @protocols */, - 5D61FAEF1A84238A00846EE7 /* SDLJsonDecoder.h */, - 5D61FAF01A84238A00846EE7 /* SDLJsonDecoder.m */, - 5D61FAF11A84238A00846EE7 /* SDLJsonEncoder.h */, - 5D61FAF21A84238A00846EE7 /* SDLJsonEncoder.m */, - ); - name = JSON; - sourceTree = ""; - }; - 5D5934F81A8519C300687FB9 /* Notification */ = { - isa = PBXGroup; - children = ( - 5D61FB121A84238B00846EE7 /* SDLOnAppInterfaceUnregistered.h */, - 5D61FB131A84238B00846EE7 /* SDLOnAppInterfaceUnregistered.m */, - 5D61FB141A84238B00846EE7 /* SDLOnAudioPassThru.h */, - 5D61FB151A84238B00846EE7 /* SDLOnAudioPassThru.m */, - 5D61FB161A84238B00846EE7 /* SDLOnButtonEvent.h */, - 5D61FB171A84238B00846EE7 /* SDLOnButtonEvent.m */, - 5D61FB181A84238B00846EE7 /* SDLOnButtonPress.h */, - 5D61FB191A84238B00846EE7 /* SDLOnButtonPress.m */, - 5D61FB1A1A84238B00846EE7 /* SDLOnCommand.h */, - 5D61FB1B1A84238B00846EE7 /* SDLOnCommand.m */, - 5D61FB1C1A84238B00846EE7 /* SDLOnDriverDistraction.h */, - 5D61FB1D1A84238B00846EE7 /* SDLOnDriverDistraction.m */, - 5D61FB1E1A84238B00846EE7 /* SDLOnEncodedSyncPData.h */, - 5D61FB1F1A84238B00846EE7 /* SDLOnEncodedSyncPData.m */, - 5D61FB201A84238B00846EE7 /* SDLOnHashChange.h */, - 5D61FB211A84238B00846EE7 /* SDLOnHashChange.m */, - 5D61FB221A84238B00846EE7 /* SDLOnHMIStatus.h */, - 5D61FB231A84238B00846EE7 /* SDLOnHMIStatus.m */, - 5D61FB241A84238B00846EE7 /* SDLOnKeyboardInput.h */, - 5D61FB251A84238B00846EE7 /* SDLOnKeyboardInput.m */, - 5D61FB261A84238B00846EE7 /* SDLOnLanguageChange.h */, - 5D61FB271A84238B00846EE7 /* SDLOnLanguageChange.m */, - 5D61FB281A84238B00846EE7 /* SDLOnLockScreenStatus.h */, - 5D61FB291A84238B00846EE7 /* SDLOnLockScreenStatus.m */, - 5D61FB2A1A84238B00846EE7 /* SDLOnPermissionsChange.h */, - 5D61FB2B1A84238B00846EE7 /* SDLOnPermissionsChange.m */, - 5D61FB2C1A84238B00846EE7 /* SDLOnSyncPData.h */, - 5D61FB2D1A84238B00846EE7 /* SDLOnSyncPData.m */, - 5D61FB2E1A84238B00846EE7 /* SDLOnSystemRequest.h */, - 5D61FB2F1A84238B00846EE7 /* SDLOnSystemRequest.m */, - 5D61FB301A84238B00846EE7 /* SDLOnTBTClientState.h */, - 5D61FB311A84238B00846EE7 /* SDLOnTBTClientState.m */, - 5D61FB321A84238B00846EE7 /* SDLOnTouchEvent.h */, - 5D61FB331A84238B00846EE7 /* SDLOnTouchEvent.m */, - 5D61FB341A84238B00846EE7 /* SDLOnVehicleData.h */, - 5D61FB351A84238B00846EE7 /* SDLOnVehicleData.m */, - ); - name = Notification; - sourceTree = ""; - }; - 5D5934F91A851A8000687FB9 /* Prioritized Objects */ = { - isa = PBXGroup; - children = ( - 5D61FB101A84238A00846EE7 /* SDLObjectWithPriority.h */, - 5D61FB111A84238A00846EE7 /* SDLObjectWithPriority.m */, - 5D61FB521A84238B00846EE7 /* SDLPrioritizedObjectCollection.h */, - 5D61FB531A84238B00846EE7 /* SDLPrioritizedObjectCollection.m */, - ); - name = "Prioritized Objects"; - sourceTree = ""; - }; - 5D5934FA1A851AC900687FB9 /* @protocols */ = { - isa = PBXGroup; - children = ( - 5D61FB5A1A84238B00846EE7 /* SDLProtocolListener.h */, - ); - name = "@protocols"; - sourceTree = ""; - }; - 5D5934FD1A851B1500687FB9 /* @protocols */ = { - isa = PBXGroup; - children = ( - 5D61FA841A84238A00846EE7 /* SDLDecoder.h */, - 5D61FAB51A84238A00846EE7 /* SDLEncoder.h */, - ); - name = "@protocols"; - sourceTree = ""; - }; - 5D5934FE1A851B2500687FB9 /* @protocols */ = { - isa = PBXGroup; - children = ( - 5D61FB671A84238B00846EE7 /* SDLProxyListener.h */, - ); - name = "@protocols"; - sourceTree = ""; - }; - 5D5934FF1A851B8400687FB9 /* Superclasses */ = { - isa = PBXGroup; - children = ( - 5D61FABA1A84238A00846EE7 /* SDLEnum.h */, - 5D61FABB1A84238A00846EE7 /* SDLEnum.m */, - 5DB92D301AC9C8BA00C15BB0 /* SDLRPCStruct.h */, - 5DB92D311AC9C8BA00C15BB0 /* SDLRPCStruct.m */, - 5D61FB7C1A84238B00846EE7 /* SDLRPCMessage.h */, - 5D61FB7D1A84238B00846EE7 /* SDLRPCMessage.m */, - 5D61FB801A84238B00846EE7 /* SDLRPCNotification.h */, - 5D61FB811A84238B00846EE7 /* SDLRPCNotification.m */, - 5D61FB841A84238B00846EE7 /* SDLRPCRequest.h */, - 5D61FB851A84238B00846EE7 /* SDLRPCRequest.m */, - 5D61FB881A84238B00846EE7 /* SDLRPCResponse.h */, - 5D61FB891A84238B00846EE7 /* SDLRPCResponse.m */, - ); - name = Superclasses; - sourceTree = ""; - }; - 5D5935001A851D0B00687FB9 /* @protocols */ = { - isa = PBXGroup; - children = ( - 5D61FBED1A84238C00846EE7 /* SDLTransportDelegate.h */, - ); - name = "@protocols"; - sourceTree = ""; - }; - 5D5935011A851D7E00687FB9 /* Header */ = { - isa = PBXGroup; - children = ( - 5D61FB581A84238B00846EE7 /* SDLProtocolHeader.h */, - 5D61FB591A84238B00846EE7 /* SDLProtocolHeader.m */, - 5D61FC081A84238C00846EE7 /* SDLV1ProtocolHeader.h */, - 5D61FC091A84238C00846EE7 /* SDLV1ProtocolHeader.m */, - 5D61FC0C1A84238C00846EE7 /* SDLV2ProtocolHeader.h */, - 5D61FC0D1A84238C00846EE7 /* SDLV2ProtocolHeader.m */, - ); - name = Header; - sourceTree = ""; - }; - 5D5935021A851D8700687FB9 /* Message */ = { - isa = PBXGroup; - children = ( - 5D61FB5B1A84238B00846EE7 /* SDLProtocolMessage.h */, - 5D61FB5C1A84238B00846EE7 /* SDLProtocolMessage.m */, - 5D61FC0A1A84238C00846EE7 /* SDLV1ProtocolMessage.h */, - 5D61FC0B1A84238C00846EE7 /* SDLV1ProtocolMessage.m */, - 5D61FC0E1A84238C00846EE7 /* SDLV2ProtocolMessage.h */, - 5D61FC0F1A84238C00846EE7 /* SDLV2ProtocolMessage.m */, - ); - name = Message; - sourceTree = ""; - }; - 5D5935031A851E1100687FB9 /* Factories */ = { - isa = PBXGroup; - children = ( - 5D61FB861A84238B00846EE7 /* SDLRPCRequestFactory.h */, - 5D61FB871A84238B00846EE7 /* SDLRPCRequestFactory.m */, - ); - name = Factories; - sourceTree = ""; - }; - 5D5935041A851E1A00687FB9 /* Payload */ = { - isa = PBXGroup; - children = ( - 5D61FB821A84238B00846EE7 /* SDLRPCPayload.h */, - 5D61FB831A84238B00846EE7 /* SDLRPCPayload.m */, - ); - name = Payload; - sourceTree = ""; - }; - 5D59DD451B14FDD000BE744D /* ProxySpecs */ = { - isa = PBXGroup; - children = ( - 5D59DD461B14FDEE00BE744D /* SDLLockScreenManagerSpec.m */, - ); - name = ProxySpecs; - sourceTree = ""; - }; - 5D61FA1D1A84237100846EE7 /* SmartDeviceLink */ = { - isa = PBXGroup; - children = ( - 5D5934F61A85189500687FB9 /* Utilities */, - 5D5934F51A8516C800687FB9 /* Debug */, - 5D5934F01A85161A00687FB9 /* Transport */, - 5D5934EF1A85160F00687FB9 /* RPCs */, - 5D5934EE1A85160900687FB9 /* Protocol */, - 5D5934ED1A85160400687FB9 /* Proxy */, - 5D61FA201A84237100846EE7 /* SmartDeviceLink.h */, - 5D3759BC1CE12E810088C60E /* CHANGELOG.md */, - 5D3759BD1CE12E810088C60E /* DEPENDENCIES.md */, - 5D3759BE1CE12E810088C60E /* LICENSE */, - 5D3759BF1CE12E810088C60E /* README.md */, - 5D3759C01CE12E810088C60E /* SmartDeviceLink-iOS.podspec */, - 5D61FA1E1A84237100846EE7 /* Supporting Files */, - ); - path = SmartDeviceLink; - sourceTree = ""; - }; - 5D61FA1E1A84237100846EE7 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 5D61FA1F1A84237100846EE7 /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 5D61FA2C1A84237100846EE7 /* SmartDeviceLinkTests */ = { - isa = PBXGroup; - children = ( - 5D59DD451B14FDD000BE744D /* ProxySpecs */, - 5DB92D201AC47AC400C15BB0 /* UtilitiesSpecs */, - 1680B1041A9CD7AD00DBD79E /* ProtocolSpecs */, - 162E81E01A9BDE8A00906325 /* RPCSpecs */, - 5D61FA2D1A84237100846EE7 /* Supporting Files */, - 167ED9451A9BCE5D00797BE5 /* SwiftSpec.swift */, - ); - path = SmartDeviceLinkTests; - sourceTree = ""; - }; - 5D61FA2D1A84237100846EE7 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 5D61FA2E1A84237100846EE7 /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 5DB92D201AC47AC400C15BB0 /* UtilitiesSpecs */ = { - isa = PBXGroup; - children = ( - 5DEE55BE1B8509A5004F0D0F /* HTTP Connection */, - 5DB92D2B1AC4A32A00C15BB0 /* Prioritized Objects */, - 5DB92D231AC47B2C00C15BB0 /* SDLHexUtilitySpec.m */, - 5DB92D251AC4836F00C15BB0 /* SDLJingleSpec.m */, - 5DC978251B7A38640012C2F1 /* SDLGlobalsSpec.m */, - ); - name = UtilitiesSpecs; - sourceTree = ""; - }; - 5DB92D2B1AC4A32A00C15BB0 /* Prioritized Objects */ = { - isa = PBXGroup; - children = ( - 5DB92D2C1AC4A34F00C15BB0 /* SDLPrioritizedObjectCollectionSpec.m */, - 5DB92D2E1AC59F0000C15BB0 /* SDLObjectWithPrioritySpec.m */, - ); - name = "Prioritized Objects"; - sourceTree = ""; - }; - 5DCC199D1B8221D2004FFAD9 /* HTTP Connection */ = { - isa = PBXGroup; - children = ( - 5DCC199E1B8221F3004FFAD9 /* SDLURLSession.h */, - 5DCC199F1B8221F3004FFAD9 /* SDLURLSession.m */, - 5DCC19A21B822804004FFAD9 /* SDLURLRequestTask.h */, - 5DCC19A31B822804004FFAD9 /* SDLURLRequestTask.m */, - ); - name = "HTTP Connection"; - sourceTree = ""; - }; - 5DE372A71ACC35C100849FAA /* @protocols */ = { - isa = PBXGroup; - children = ( - 5DE372A51ACC35B400849FAA /* SDLDebugToolConsole.h */, - ); - name = "@protocols"; - sourceTree = ""; - }; - 5DEE55BE1B8509A5004F0D0F /* HTTP Connection */ = { - isa = PBXGroup; - children = ( - 5DEE55BF1B8509CB004F0D0F /* SDLURLRequestTaskSpec.m */, - 5DF2BB9C1B94E38A00CE5994 /* SDLURLSessionSpec.m */, - ); - name = "HTTP Connection"; - sourceTree = ""; - }; - E9C32B831AB20B2900F283AF /* @categories */ = { - isa = PBXGroup; - children = ( - E9C32B981AB20C5900F283AF /* EAAccessory+SDLProtocols.h */, - E9C32B991AB20C5900F283AF /* EAAccessory+SDLProtocols.m */, - E9C32B9A1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.h */, - E9C32B9B1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.m */, - E9C32B841AB20B4300F283AF /* NSThread+ThreadIndex.h */, - E9C32B851AB20B4300F283AF /* NSThread+ThreadIndex.m */, - ); - name = "@categories"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 5D61FA191A84237100846EE7 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 5DE5ABB71B0E38C90067BB02 /* SDLSystemRequest.h in Headers */, - E9C32B931AB20BA200F283AF /* SDLIAPSessionDelegate.h in Headers */, - 5DE5ABB81B0E38C90067BB02 /* SDLSystemRequestResponse.h in Headers */, - 5D61FCA51A84238C00846EE7 /* SDLEndAudioPassThruResponse.h in Headers */, - 5D61FD851A84238C00846EE7 /* SDLSetDisplayLayoutResponse.h in Headers */, - 5D61FD751A84238C00846EE7 /* SDLRPCResponse.h in Headers */, - 5D61FC901A84238C00846EE7 /* SDLDisplayCapabilities.h in Headers */, - 5D61FCE81A84238C00846EE7 /* SDLLanguage.h in Headers */, - 5D61FC841A84238C00846EE7 /* SDLDeviceLevelStatus.h in Headers */, - 5DB92D321AC9C8BA00C15BB0 /* SDLRPCStruct.h in Headers */, - 5D61FD151A84238C00846EE7 /* SDLOnLockScreenStatus.h in Headers */, - 5D61FD291A84238C00846EE7 /* SDLPerformInteraction.h in Headers */, - 5D61FD521A84238C00846EE7 /* SDLProxyFactory.h in Headers */, - 5D61FCDA1A84238C00846EE7 /* SDLJingle.h in Headers */, - 5D61FE0D1A84238C00846EE7 /* SDLVRCapabilities.h in Headers */, - 5D61FC531A84238C00846EE7 /* SDLButtonEventMode.h in Headers */, - 5D61FC781A84238C00846EE7 /* SDLDeleteFileResponse.h in Headers */, - 5D61FC5F1A84238C00846EE7 /* SDLCharacterSet.h in Headers */, - 5D61FCFF1A84238C00846EE7 /* SDLOnAppInterfaceUnregistered.h in Headers */, - 5D61FDC51A84238C00846EE7 /* SDLTCPTransport.h in Headers */, - 5D61FCF61A84238C00846EE7 /* SDLMediaClockFormat.h in Headers */, - 5D61FD831A84238C00846EE7 /* SDLSetDisplayLayout.h in Headers */, - 5D61FCC91A84238C00846EE7 /* SDLIgnitionStableStatus.h in Headers */, - E9C32B941AB20BA200F283AF /* SDLStreamDelegate.h in Headers */, - 5D61FDBB1A84238C00846EE7 /* SDLSystemAction.h in Headers */, - 5D61FC9C1A84238C00846EE7 /* SDLEmergencyEventType.h in Headers */, - 5D61FD131A84238C00846EE7 /* SDLOnLanguageChange.h in Headers */, - 5D61FDE71A84238C00846EE7 /* SDLUnsubscribeButton.h in Headers */, - 5D61FC691A84238C00846EE7 /* SDLConsoleController.h in Headers */, - 5D61FCAB1A84238C00846EE7 /* SDLFuelCutoffStatus.h in Headers */, - E9C32B911AB20BA200F283AF /* SDLIAPSession.h in Headers */, - 5D61FCD71A84238C00846EE7 /* SDLInteractionMode.h in Headers */, - 5D61FC391A84238C00846EE7 /* SDLAlertManeuver.h in Headers */, - 5D61FC861A84238C00846EE7 /* SDLDeviceStatus.h in Headers */, - 5D61FCC71A84238C00846EE7 /* SDLIAPTransport.h in Headers */, - 5D61FC6D1A84238C00846EE7 /* SDLCreateInteractionChoiceSetResponse.h in Headers */, - 5D61FE111A84238C00846EE7 /* SDLWarningLightStatus.h in Headers */, - 5D61FC7A1A84238C00846EE7 /* SDLDeleteInteractionChoiceSet.h in Headers */, - 5D61FC3B1A84238C00846EE7 /* SDLAlertManeuverResponse.h in Headers */, - 5D61FC6F1A84238C00846EE7 /* SDLDebugTool.h in Headers */, - 5D61FDB71A84238C00846EE7 /* SDLSyncPData.h in Headers */, - 5D61FD011A84238C00846EE7 /* SDLOnAudioPassThru.h in Headers */, - 5D61FDCB1A84238C00846EE7 /* SDLTextFieldName.h in Headers */, - 5D61FD8B1A84238C00846EE7 /* SDLSetMediaClockTimer.h in Headers */, - 5D61FD031A84238C00846EE7 /* SDLOnButtonEvent.h in Headers */, - 5D61FDAF1A84238C00846EE7 /* SDLSubscribeButtonResponse.h in Headers */, - 5D61FCB51A84238C00846EE7 /* SDLGetVehicleData.h in Headers */, - 5D61FDEB1A84238C00846EE7 /* SDLUnsubscribeVehicleData.h in Headers */, - 5D61FC591A84238C00846EE7 /* SDLCarModeStatus.h in Headers */, - 5D61FC2B1A84238C00846EE7 /* SDLAbstractTransport.h in Headers */, - 5D61FD791A84238C00846EE7 /* SDLScreenParams.h in Headers */, - 5D61FDCF1A84238C00846EE7 /* SDLTireStatus.h in Headers */, - 5D61FDFD1A84238C00846EE7 /* SDLVehicleDataActiveStatus.h in Headers */, - 5D61FD811A84238C00846EE7 /* SDLSetAppIconResponse.h in Headers */, - 5D61FC551A84238C00846EE7 /* SDLButtonName.h in Headers */, - 5D61FD9F1A84238C00846EE7 /* SDLSoftButton.h in Headers */, - 5D61FD551A84238C00846EE7 /* SDLPutFile.h in Headers */, - 5DE372A61ACC35B400849FAA /* SDLDebugToolConsole.h in Headers */, - 5D61FD091A84238C00846EE7 /* SDLOnDriverDistraction.h in Headers */, - E9C32B9E1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.h in Headers */, - 5D61FC4B1A84238C00846EE7 /* SDLBeltStatus.h in Headers */, - 5D61FC351A84238C00846EE7 /* SDLAirbagStatus.h in Headers */, - 5D61FC8A1A84238C00846EE7 /* SDLDiagnosticMessageResponse.h in Headers */, - 5D61FC2D1A84238C00846EE7 /* SDLAddCommand.h in Headers */, - 5D61FD931A84238C00846EE7 /* SDLShowConstantTBTResponse.h in Headers */, - 5D61FCCB1A84238C00846EE7 /* SDLIgnitionStatus.h in Headers */, - 5D61FCB71A84238C00846EE7 /* SDLGetVehicleDataResponse.h in Headers */, - 5D61FDA91A84238C00846EE7 /* SDLSpeechCapabilities.h in Headers */, - 5D61FCE01A84238C00846EE7 /* SDLKeyboardEvent.h in Headers */, - 5D61FCEA1A84238C00846EE7 /* SDLLayoutMode.h in Headers */, - 5D61FD7F1A84238C00846EE7 /* SDLSetAppIcon.h in Headers */, - 5D61FDD11A84238C00846EE7 /* SDLTouchCoord.h in Headers */, - 5D61FC7E1A84238C00846EE7 /* SDLDeleteSubMenu.h in Headers */, - 5D61FC451A84238C00846EE7 /* SDLAudioPassThruCapabilities.h in Headers */, - 5D61FDC71A84238C00846EE7 /* SDLTextAlignment.h in Headers */, - 5D61FD051A84238C00846EE7 /* SDLOnButtonPress.h in Headers */, - 5D61FCC51A84238C00846EE7 /* SDLHMIZoneCapabilities.h in Headers */, - 5D61FCAF1A84238C00846EE7 /* SDLGenericResponse.h in Headers */, - 5D61FC4F1A84238C00846EE7 /* SDLBodyInformation.h in Headers */, - 5D61FDAB1A84238C00846EE7 /* SDLStartTime.h in Headers */, - 5D61FD071A84238C00846EE7 /* SDLOnCommand.h in Headers */, - 5D61FD1D1A84238C00846EE7 /* SDLOnTBTClientState.h in Headers */, - 5D61FD9D1A84238C00846EE7 /* SDLSliderResponse.h in Headers */, - 5D61FDF31A84238C00846EE7 /* SDLUpdateTurnListResponse.h in Headers */, - 5D61FDDA1A84238C00846EE7 /* SDLTransportDelegate.h in Headers */, - 5D61FC411A84238C00846EE7 /* SDLAppHMIType.h in Headers */, - 5D61FCEE1A84238C00846EE7 /* SDLListFilesResponse.h in Headers */, - 5D61FC491A84238C00846EE7 /* SDLAudioType.h in Headers */, - 5D61FC761A84238C00846EE7 /* SDLDeleteFile.h in Headers */, - 5D61FD211A84238C00846EE7 /* SDLOnVehicleData.h in Headers */, - 5D61FD7D1A84238C00846EE7 /* SDLScrollableMessageResponse.h in Headers */, - 5D61FD431A84238C00846EE7 /* SDLProtocol.h in Headers */, - 5D8B17531AC9E11B006A6E1C /* SDLDialNumberResponse.h in Headers */, - 5D61FC921A84238C00846EE7 /* SDLDisplayType.h in Headers */, - 5D61FD0D1A84238C00846EE7 /* SDLOnHashChange.h in Headers */, - 5D61FDDF1A84238C00846EE7 /* SDLTTSChunkFactory.h in Headers */, - 5D61FC6B1A84238C00846EE7 /* SDLCreateInteractionChoiceSet.h in Headers */, - 5D61FCE61A84238C00846EE7 /* SDLKeypressMode.h in Headers */, - 5D61FD871A84238C00846EE7 /* SDLSetGlobalProperties.h in Headers */, - E9C32B861AB20B4300F283AF /* NSThread+ThreadIndex.h in Headers */, - 5D61FC741A84238C00846EE7 /* SDLDeleteCommandResponse.h in Headers */, - 5D61FDF11A84238C00846EE7 /* SDLUpdateTurnList.h in Headers */, - 5D61FD671A84238C00846EE7 /* SDLResult.h in Headers */, - 5D61FD351A84238C00846EE7 /* SDLPowerModeStatus.h in Headers */, - 5D61FD971A84238C00846EE7 /* SDLSingleTireStatus.h in Headers */, - 5D61FCE21A84238C00846EE7 /* SDLKeyboardLayout.h in Headers */, - 5D61FD891A84238C00846EE7 /* SDLSetGlobalPropertiesResponse.h in Headers */, - 5D61FD8D1A84238C00846EE7 /* SDLSetMediaClockTimerResponse.h in Headers */, - 5D61FD3B1A84238C00846EE7 /* SDLPresetBankCapabilities.h in Headers */, - 5D53C46D1B7A99B9003526EA /* SDLStreamingMediaManager.h in Headers */, - 5D61FD0F1A84238C00846EE7 /* SDLOnHMIStatus.h in Headers */, - 5D61FD5F1A84238C00846EE7 /* SDLRegisterAppInterfaceResponse.h in Headers */, - 5D61FD191A84238C00846EE7 /* SDLOnSyncPData.h in Headers */, - 5D61FE091A84238C00846EE7 /* SDLVehicleDataType.h in Headers */, - 5DCC19A01B8221F3004FFAD9 /* SDLURLSession.h in Headers */, - 5D61FDB11A84238C00846EE7 /* SDLSubscribeVehicleData.h in Headers */, - 5DCF76F51ACDBAD300BB647B /* SDLSendLocation.h in Headers */, - 5D61FC9E1A84238C00846EE7 /* SDLEncodedSyncPData.h in Headers */, - 5D61FC291A84238C00846EE7 /* SDLAbstractProtocol.h in Headers */, - 5D61FDE11A84238C00846EE7 /* SDLTurn.h in Headers */, - 5D61FC801A84238C00846EE7 /* SDLDeleteSubMenuResponse.h in Headers */, - 5D61FDBD1A84238C00846EE7 /* SDLSystemContext.h in Headers */, - 5D61FC511A84238C00846EE7 /* SDLButtonCapabilities.h in Headers */, - 5D61FDE91A84238C00846EE7 /* SDLUnsubscribeButtonResponse.h in Headers */, - 5D61FCD51A84238C00846EE7 /* SDLImageType.h in Headers */, - 5D61FC2F1A84238C00846EE7 /* SDLAddCommandResponse.h in Headers */, - 5D61FD631A84238C00846EE7 /* SDLResetGlobalProperties.h in Headers */, - 5D61FDD71A84238C00846EE7 /* SDLTouchType.h in Headers */, - 5D61FDD31A84238C00846EE7 /* SDLTouchEvent.h in Headers */, - 5D61FD451A84238C00846EE7 /* SDLProtocolHeader.h in Headers */, - 5D61FCFA1A84238C00846EE7 /* SDLMyKey.h in Headers */, - 5D61FC981A84238C00846EE7 /* SDLECallInfo.h in Headers */, - 5D61FD7B1A84238C00846EE7 /* SDLScrollableMessage.h in Headers */, - 5D61FD3D1A84238C00846EE7 /* SDLPrimaryAudioSource.h in Headers */, - 5D61FCCD1A84238C00846EE7 /* SDLImage.h in Headers */, - 5D61FD481A84238C00846EE7 /* SDLProtocolMessage.h in Headers */, - 5D61FC8C1A84238C00846EE7 /* SDLDIDResult.h in Headers */, - 5D61FD1F1A84238C00846EE7 /* SDLOnTouchEvent.h in Headers */, - 5D61FCB31A84238C00846EE7 /* SDLGetDTCsResponse.h in Headers */, - 5D61FC4D1A84238C00846EE7 /* SDLBitsPerSample.h in Headers */, - 5D61FD9B1A84238C00846EE7 /* SDLSlider.h in Headers */, - 5D61FD111A84238C00846EE7 /* SDLOnKeyboardInput.h in Headers */, - 5D61FC941A84238C00846EE7 /* SDLDriverDistractionState.h in Headers */, - 5D61FD571A84238C00846EE7 /* SDLPutFileResponse.h in Headers */, - 5D61FD411A84238C00846EE7 /* SDLPRNDL.h in Headers */, - 5D61FDE51A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.h in Headers */, - 5D61FCF81A84238C00846EE7 /* SDLMenuParams.h in Headers */, - 5D61FD651A84238C00846EE7 /* SDLResetGlobalPropertiesResponse.h in Headers */, - 5D61FD611A84238C00846EE7 /* SDLRequestType.h in Headers */, - 5D61FCEC1A84238C00846EE7 /* SDLListFiles.h in Headers */, - 5D61FC881A84238C00846EE7 /* SDLDiagnosticMessage.h in Headers */, - 5D61FDB31A84238C00846EE7 /* SDLSubscribeVehicleDataResponse.h in Headers */, - 5D61FD991A84238C00846EE7 /* SDLSiphonServer.h in Headers */, - 5D61FC961A84238C00846EE7 /* SDLECallConfirmationStatus.h in Headers */, - 5D61FDA51A84238C00846EE7 /* SDLSpeak.h in Headers */, - 5D61FD1B1A84238C00846EE7 /* SDLOnSystemRequest.h in Headers */, - 5D61FD2F1A84238C00846EE7 /* SDLPermissionStatus.h in Headers */, - 5D61FCF21A84238C00846EE7 /* SDLLockScreenStatus.h in Headers */, - 5D61FCD31A84238C00846EE7 /* SDLImageResolution.h in Headers */, - 5D61FD541A84238C00846EE7 /* SDLProxyListener.h in Headers */, - 5D61FD731A84238C00846EE7 /* SDLRPCRequestFactory.h in Headers */, - 5D61FC5D1A84238C00846EE7 /* SDLChangeRegistrationResponse.h in Headers */, - 5D61FDCD1A84238C00846EE7 /* SDLTimerMode.h in Headers */, - E9C32B961AB20BA200F283AF /* SDLTimer.h in Headers */, - 5D61FC3D1A84238C00846EE7 /* SDLAlertResponse.h in Headers */, - 5D61FDAD1A84238C00846EE7 /* SDLSubscribeButton.h in Headers */, - 5D61FCF41A84238C00846EE7 /* SDLMaintenanceModeStatus.h in Headers */, - 5D61FC571A84238C00846EE7 /* SDLButtonPressMode.h in Headers */, - 5D61FC471A84238C00846EE7 /* SDLAudioStreamingState.h in Headers */, - 5D61FE071A84238C00846EE7 /* SDLVehicleDataStatus.h in Headers */, - 5D61FD2D1A84238C00846EE7 /* SDLPermissionItem.h in Headers */, - 5D61FCD11A84238C00846EE7 /* SDLImageFieldName.h in Headers */, - 5DCF76F91ACDD7CD00BB647B /* SDLSendLocationResponse.h in Headers */, - 5D61FD391A84238C00846EE7 /* SDLPrerecordedSpeech.h in Headers */, - 5D61FC671A84238C00846EE7 /* SDLComponentVolumeStatus.h in Headers */, - 5D61FE0F1A84238C00846EE7 /* SDLVRHelpItem.h in Headers */, - 5D61FC721A84238C00846EE7 /* SDLDeleteCommand.h in Headers */, - 5D61FC821A84238C00846EE7 /* SDLDeviceInfo.h in Headers */, - 5D61FCA91A84238C00846EE7 /* SDLFileType.h in Headers */, - 5D61FD591A84238C00846EE7 /* SDLReadDID.h in Headers */, - 5D61FC611A84238C00846EE7 /* SDLChoice.h in Headers */, - 5D61FC7C1A84238C00846EE7 /* SDLDeleteInteractionChoiceSetResponse.h in Headers */, - 5D61FDB91A84238C00846EE7 /* SDLSyncPDataResponse.h in Headers */, - 5D61FC311A84238C00846EE7 /* SDLAddSubMenu.h in Headers */, - 5D61FD171A84238C00846EE7 /* SDLOnPermissionsChange.h in Headers */, - 5D61FDD51A84238C00846EE7 /* SDLTouchEventCapabilities.h in Headers */, - 5D61FD0B1A84238C00846EE7 /* SDLOnEncodedSyncPData.h in Headers */, - 5D61FC631A84238C00846EE7 /* SDLClusterModeStatus.h in Headers */, - 5D61FD371A84238C00846EE7 /* SDLPredefinedLayout.h in Headers */, - 5D61FDE31A84238C00846EE7 /* SDLUnregisterAppInterface.h in Headers */, - 5D61FD331A84238C00846EE7 /* SDLPowerModeQualificationStatus.h in Headers */, - 5D61FE011A84238C00846EE7 /* SDLVehicleDataNotificationStatus.h in Headers */, - 5D61FDC91A84238C00846EE7 /* SDLTextField.h in Headers */, - 5D61FCE41A84238C00846EE7 /* SDLKeyboardProperties.h in Headers */, - 5D61FDED1A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.h in Headers */, - 5DCC19A41B822804004FFAD9 /* SDLURLRequestTask.h in Headers */, - 5D61FCCF1A84238C00846EE7 /* SDLImageField.h in Headers */, - 5D535DC51B72473800CF7760 /* SDLGlobals.h in Headers */, - 5D61FD231A84238C00846EE7 /* SDLParameterPermissions.h in Headers */, - 5D61FCB91A84238C00846EE7 /* SDLGlobalProperty.h in Headers */, - 5D61FE051A84238C00846EE7 /* SDLVehicleDataResultCode.h in Headers */, - 5D61FD2B1A84238C00846EE7 /* SDLPerformInteractionResponse.h in Headers */, - 5D61FDA11A84238C00846EE7 /* SDLSoftButtonCapabilities.h in Headers */, - 5D61FDB51A84238C00846EE7 /* SDLSyncMsgVersion.h in Headers */, - 5D61FE031A84238C00846EE7 /* SDLVehicleDataResult.h in Headers */, - 5D61FD911A84238C00846EE7 /* SDLShowConstantTBT.h in Headers */, - 5D61FC331A84238C00846EE7 /* SDLAddSubMenuResponse.h in Headers */, - 5D61FD5D1A84238C00846EE7 /* SDLRegisterAppInterface.h in Headers */, - 5D61FC9A1A84238C00846EE7 /* SDLEmergencyEvent.h in Headers */, - 5D61FC651A84238C00846EE7 /* SDLCompassDirection.h in Headers */, - 5D61FC8E1A84238C00846EE7 /* SDLDimension.h in Headers */, - 5D61FD6B1A84238C00846EE7 /* SDLRPCMessageType.h in Headers */, - 5D61FD501A84238C00846EE7 /* SDLProxy.h in Headers */, - 5D61FC3F1A84238C00846EE7 /* SDLAmbientLightStatus.h in Headers */, - 5DE372A11ACB2ED300849FAA /* SDLHMICapabilities.h in Headers */, - E9C32B9C1AB20C5900F283AF /* EAAccessory+SDLProtocols.h in Headers */, - 5D61FE0B1A84238C00846EE7 /* SDLVehicleType.h in Headers */, - 5D61FCC31A84238C00846EE7 /* SDLHMIPermissions.h in Headers */, - 5D61FE131A84238C00846EE7 /* SDLWiperStatus.h in Headers */, - 5D61FCBD1A84238C00846EE7 /* SDLHeadLampStatus.h in Headers */, - 5D61FDC31A84238C00846EE7 /* SDLTBTState.h in Headers */, - 5D61FD951A84238C00846EE7 /* SDLShowResponse.h in Headers */, - 5D61FCA31A84238C00846EE7 /* SDLEndAudioPassThru.h in Headers */, - 5D61FCB11A84238C00846EE7 /* SDLGetDTCs.h in Headers */, - 5D61FDFF1A84238C00846EE7 /* SDLVehicleDataEventStatus.h in Headers */, - 5D61FC5B1A84238C00846EE7 /* SDLChangeRegistration.h in Headers */, - 5D61FD5B1A84238C00846EE7 /* SDLReadDIDResponse.h in Headers */, - 5D61FDEF1A84238C00846EE7 /* SDLUpdateMode.h in Headers */, - 5D61FDDB1A84238C00846EE7 /* SDLTriggerSource.h in Headers */, - 5D61FD8F1A84238C00846EE7 /* SDLShow.h in Headers */, - 5D61FDDD1A84238C00846EE7 /* SDLTTSChunk.h in Headers */, - 5D61FC371A84238C00846EE7 /* SDLAlert.h in Headers */, - 5D61FCC11A84238C00846EE7 /* SDLHMILevel.h in Headers */, - 5D61FD471A84238C00846EE7 /* SDLProtocolListener.h in Headers */, - 5D61FCA01A84238C00846EE7 /* SDLEncodedSyncPDataResponse.h in Headers */, - 5D61FD271A84238C00846EE7 /* SDLPerformAudioPassThruResponse.h in Headers */, - 5D61FD251A84238C00846EE7 /* SDLPerformAudioPassThru.h in Headers */, - 5D61FDA71A84238C00846EE7 /* SDLSpeakResponse.h in Headers */, - 5D61FD771A84238C00846EE7 /* SDLSamplingRate.h in Headers */, - 5D61FCBB1A84238C00846EE7 /* SDLGPSData.h in Headers */, - 5D61FDA31A84238C00846EE7 /* SDLSoftButtonType.h in Headers */, - 5D61FC431A84238C00846EE7 /* SDLAppInterfaceUnregisteredReason.h in Headers */, - 5D61FA211A84237100846EE7 /* SmartDeviceLink.h in Headers */, - 5D61FD711A84238C00846EE7 /* SDLRPCRequest.h in Headers */, - 5D61FD6D1A84238C00846EE7 /* SDLRPCNotification.h in Headers */, - 5D61FD691A84238C00846EE7 /* SDLRPCMessage.h in Headers */, - 5D61FCA71A84238C00846EE7 /* SDLEnum.h in Headers */, - 5D8B174F1AC9D266006A6E1C /* SDLDialNumber.h in Headers */, - 5D61FCAD1A84238C00846EE7 /* SDLFunctionID.h in Headers */, - 5D61FDF51A84238C00846EE7 /* SDLV1ProtocolHeader.h in Headers */, - 5D61FDF91A84238C00846EE7 /* SDLV2ProtocolHeader.h in Headers */, - 5D61FD4A1A84238C00846EE7 /* SDLProtocolMessageAssembler.h in Headers */, - 5D61FD4C1A84238C00846EE7 /* SDLProtocolMessageDisassembler.h in Headers */, - 5D61FD4E1A84238C00846EE7 /* SDLProtocolReceivedMessageRouter.h in Headers */, - 5D61FDF71A84238C00846EE7 /* SDLV1ProtocolMessage.h in Headers */, - 5D61FDFB1A84238C00846EE7 /* SDLV2ProtocolMessage.h in Headers */, - 5D61FCFC1A84238C00846EE7 /* SDLNames.h in Headers */, - 5D61FCFD1A84238C00846EE7 /* SDLObjectWithPriority.h in Headers */, - 5D61FD3F1A84238C00846EE7 /* SDLPrioritizedObjectCollection.h in Headers */, - 5D61FCBF1A84238C00846EE7 /* SDLHexUtility.h in Headers */, - 5D61FCA21A84238C00846EE7 /* SDLEncoder.h in Headers */, - 5D61FCDE1A84238C00846EE7 /* SDLJsonEncoder.h in Headers */, - 5D61FCDC1A84238C00846EE7 /* SDLJsonDecoder.h in Headers */, - 5D61FC711A84238C00846EE7 /* SDLDecoder.h in Headers */, - 5D61FD6F1A84238C00846EE7 /* SDLRPCPayload.h in Headers */, - 5D61FCF01A84238C00846EE7 /* SDLLockScreenManager.h in Headers */, - 5D61FD311A84238C00846EE7 /* SDLPolicyDataParser.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 5D4019AE1A76EC350006B0C2 /* SmartDeviceLink-Example */ = { - isa = PBXNativeTarget; - buildConfigurationList = 5D4019D21A76EC350006B0C2 /* Build configuration list for PBXNativeTarget "SmartDeviceLink-Example" */; - buildPhases = ( - 5D4019AB1A76EC350006B0C2 /* Sources */, - 5D4019AC1A76EC350006B0C2 /* Frameworks */, - 5D4019AD1A76EC350006B0C2 /* Resources */, - 5D401CE11A76ED0B0006B0C2 /* Embed Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 5D61FA321A84237100846EE7 /* PBXTargetDependency */, - ); - name = "SmartDeviceLink-Example"; - productName = "SmartDeviceLink-iOS"; - productReference = 5D4019AF1A76EC350006B0C2 /* SmartDeviceLink-Example.app */; - productType = "com.apple.product-type.application"; - }; - 5D61FA1B1A84237100846EE7 /* SmartDeviceLink */ = { - isa = PBXNativeTarget; - buildConfigurationList = 5D61FA351A84237100846EE7 /* Build configuration list for PBXNativeTarget "SmartDeviceLink" */; - buildPhases = ( - 5D61FA171A84237100846EE7 /* Sources */, - 5D61FA181A84237100846EE7 /* Frameworks */, - 5D61FA191A84237100846EE7 /* Headers */, - 5D61FA1A1A84237100846EE7 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = SmartDeviceLink; - productName = SmartDeviceLink; - productReference = 5D61FA1C1A84237100846EE7 /* SmartDeviceLink.framework */; - productType = "com.apple.product-type.framework"; - }; - 5D61FA251A84237100846EE7 /* SmartDeviceLinkTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 5D61FA381A84237100846EE7 /* Build configuration list for PBXNativeTarget "SmartDeviceLinkTests" */; - buildPhases = ( - 5D61FA221A84237100846EE7 /* Sources */, - 5D61FA231A84237100846EE7 /* Frameworks */, - 5D61FA241A84237100846EE7 /* Resources */, - 162E81CE1A9BDDBB00906325 /* CopyFiles */, - 5DEE55C31B864A98004F0D0F /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - 5D61FA291A84237100846EE7 /* PBXTargetDependency */, - 5D61FA2B1A84237100846EE7 /* PBXTargetDependency */, - ); - name = SmartDeviceLinkTests; - productName = SmartDeviceLinkTests; - productReference = 5D61FA261A84237100846EE7 /* SmartDeviceLinkTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 5D4019A71A76EC350006B0C2 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0700; - LastUpgradeCheck = 0700; - ORGANIZATIONNAME = smartdevicelink; - TargetAttributes = { - 5D4019AE1A76EC350006B0C2 = { - CreatedOnToolsVersion = 6.1.1; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - com.apple.WAC = { - enabled = 0; - }; - }; - }; - 5D61FA1B1A84237100846EE7 = { - CreatedOnToolsVersion = 6.1.1; - }; - 5D61FA251A84237100846EE7 = { - CreatedOnToolsVersion = 6.1.1; - }; - }; - }; - buildConfigurationList = 5D4019AA1A76EC350006B0C2 /* Build configuration list for PBXProject "SmartDeviceLink-iOS" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 5D4019A61A76EC350006B0C2; - productRefGroup = 5D4019B01A76EC350006B0C2 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 5D4019AE1A76EC350006B0C2 /* SmartDeviceLink-Example */, - 5D61FA1B1A84237100846EE7 /* SmartDeviceLink */, - 5D61FA251A84237100846EE7 /* SmartDeviceLinkTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 5D4019AD1A76EC350006B0C2 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5D0218F91A8E7A7300D1BF62 /* ConnectionTCPTableViewController.storyboard in Resources */, - 5D0219051A8E9F6D00D1BF62 /* ConnectionIAPTableViewController.storyboard in Resources */, - 5D4029E31A76F0760006B0C2 /* LaunchScreen.xib in Resources */, - 5D4029D41A76F0340006B0C2 /* Images.xcassets in Resources */, - 5D4029E41A76F0760006B0C2 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5D61FA1A1A84237100846EE7 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5D61FA241A84237100846EE7 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 5D4019AB1A76EC350006B0C2 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5D4832A51A94F90D00252386 /* ConnectionTransitionContext.m in Sources */, - 5D0218FC1A8E7E1700D1BF62 /* ConnectionContainerViewController.m in Sources */, - 5D0218FF1A8E9E0D00D1BF62 /* ConnectionIAPTableViewController.m in Sources */, - 5D48329D1A8EA33D00252386 /* Preferences.m in Sources */, - 5D59350F1A855EB300687FB9 /* AppDelegate.m in Sources */, - 5D5935121A855EBE00687FB9 /* main.m in Sources */, - 5D4832A81A95191B00252386 /* ConnectionAnimatedTransition.m in Sources */, - 5D4832A11A92868E00252386 /* ProxyManager.m in Sources */, - 5D0218F61A8E79C400D1BF62 /* ConnectionTCPTableViewController.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5D61FA171A84237100846EE7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5DCC19A51B822804004FFAD9 /* SDLURLRequestTask.m in Sources */, - 5D61FC561A84238C00846EE7 /* SDLButtonName.m in Sources */, - 5D61FCC21A84238C00846EE7 /* SDLHMILevel.m in Sources */, - 5D61FDEC1A84238C00846EE7 /* SDLUnsubscribeVehicleData.m in Sources */, - 5D61FDBE1A84238C00846EE7 /* SDLSystemContext.m in Sources */, - 5D61FC441A84238C00846EE7 /* SDLAppInterfaceUnregisteredReason.m in Sources */, - 5D61FD531A84238C00846EE7 /* SDLProxyFactory.m in Sources */, - 5D61FDCA1A84238C00846EE7 /* SDLTextField.m in Sources */, - 5D61FC9D1A84238C00846EE7 /* SDLEmergencyEventType.m in Sources */, - 5D61FCAC1A84238C00846EE7 /* SDLFuelCutoffStatus.m in Sources */, - 5D61FC871A84238C00846EE7 /* SDLDeviceStatus.m in Sources */, - 5D61FD561A84238C00846EE7 /* SDLPutFile.m in Sources */, - 5D61FCE71A84238C00846EE7 /* SDLKeypressMode.m in Sources */, - 5D61FD9A1A84238C00846EE7 /* SDLSiphonServer.m in Sources */, - 5D61FCDF1A84238C00846EE7 /* SDLJsonEncoder.m in Sources */, - 5D61FD941A84238C00846EE7 /* SDLShowConstantTBTResponse.m in Sources */, - 5D61FE0A1A84238C00846EE7 /* SDLVehicleDataType.m in Sources */, - 5D61FD1A1A84238C00846EE7 /* SDLOnSyncPData.m in Sources */, - 5D61FC461A84238C00846EE7 /* SDLAudioPassThruCapabilities.m in Sources */, - 5D61FD301A84238C00846EE7 /* SDLPermissionStatus.m in Sources */, - 5D61FDEE1A84238C00846EE7 /* SDLUnsubscribeVehicleDataResponse.m in Sources */, - 5D535DC61B72473800CF7760 /* SDLGlobals.m in Sources */, - 5D61FCAE1A84238C00846EE7 /* SDLFunctionID.m in Sources */, - 5D61FC421A84238C00846EE7 /* SDLAppHMIType.m in Sources */, - 5D61FD421A84238C00846EE7 /* SDLPRNDL.m in Sources */, - E9C32B921AB20BA200F283AF /* SDLIAPSession.m in Sources */, - 5D61FD0C1A84238C00846EE7 /* SDLOnEncodedSyncPData.m in Sources */, - 5D61FCA81A84238C00846EE7 /* SDLEnum.m in Sources */, - 5D61FDE01A84238C00846EE7 /* SDLTTSChunkFactory.m in Sources */, - 5D61FD0A1A84238C00846EE7 /* SDLOnDriverDistraction.m in Sources */, - 5D61FCED1A84238C00846EE7 /* SDLListFiles.m in Sources */, - 5D61FC6E1A84238C00846EE7 /* SDLCreateInteractionChoiceSetResponse.m in Sources */, - 5D61FD061A84238C00846EE7 /* SDLOnButtonPress.m in Sources */, - 5D61FD5E1A84238C00846EE7 /* SDLRegisterAppInterface.m in Sources */, - 5D61FCE11A84238C00846EE7 /* SDLKeyboardEvent.m in Sources */, - 5D61FD491A84238C00846EE7 /* SDLProtocolMessage.m in Sources */, - 5D61FCCE1A84238C00846EE7 /* SDLImage.m in Sources */, - 5D61FD241A84238C00846EE7 /* SDLParameterPermissions.m in Sources */, - 5D61FDD21A84238C00846EE7 /* SDLTouchCoord.m in Sources */, - 5D61FCEF1A84238C00846EE7 /* SDLListFilesResponse.m in Sources */, - 5D61FD1C1A84238C00846EE7 /* SDLOnSystemRequest.m in Sources */, - 5D61FC911A84238C00846EE7 /* SDLDisplayCapabilities.m in Sources */, - 5D61FD261A84238C00846EE7 /* SDLPerformAudioPassThru.m in Sources */, - 5D61FC971A84238C00846EE7 /* SDLECallConfirmationStatus.m in Sources */, - 5D61FC4A1A84238C00846EE7 /* SDLAudioType.m in Sources */, - 5D61FDE61A84238C00846EE7 /* SDLUnregisterAppInterfaceResponse.m in Sources */, - 5D61FC481A84238C00846EE7 /* SDLAudioStreamingState.m in Sources */, - 5D61FCC81A84238C00846EE7 /* SDLIAPTransport.m in Sources */, - 5D61FE101A84238C00846EE7 /* SDLVRHelpItem.m in Sources */, - 5D61FCC01A84238C00846EE7 /* SDLHexUtility.m in Sources */, - 5D61FD821A84238C00846EE7 /* SDLSetAppIconResponse.m in Sources */, - 5D61FDF81A84238C00846EE7 /* SDLV1ProtocolMessage.m in Sources */, - 5D61FDC81A84238C00846EE7 /* SDLTextAlignment.m in Sources */, - 5D61FD5A1A84238C00846EE7 /* SDLReadDID.m in Sources */, - 5D61FC8F1A84238C00846EE7 /* SDLDimension.m in Sources */, - 5D61FC9B1A84238C00846EE7 /* SDLEmergencyEvent.m in Sources */, - 5D61FDFE1A84238C00846EE7 /* SDLVehicleDataActiveStatus.m in Sources */, - 5D61FCD01A84238C00846EE7 /* SDLImageField.m in Sources */, - 5D61FC3C1A84238C00846EE7 /* SDLAlertManeuverResponse.m in Sources */, - 5D61FC6A1A84238C00846EE7 /* SDLConsoleController.m in Sources */, - 5D61FD4D1A84238C00846EE7 /* SDLProtocolMessageDisassembler.m in Sources */, - 5D61FC701A84238C00846EE7 /* SDLDebugTool.m in Sources */, - 5D61FD4B1A84238C00846EE7 /* SDLProtocolMessageAssembler.m in Sources */, - 5D61FCC41A84238C00846EE7 /* SDLHMIPermissions.m in Sources */, - 5D61FE141A84238C00846EE7 /* SDLWiperStatus.m in Sources */, - 5D61FC8B1A84238C00846EE7 /* SDLDiagnosticMessageResponse.m in Sources */, - 5D61FD2E1A84238C00846EE7 /* SDLPermissionItem.m in Sources */, - 5D61FD041A84238C00846EE7 /* SDLOnButtonEvent.m in Sources */, - 5D61FD201A84238C00846EE7 /* SDLOnTouchEvent.m in Sources */, - 5D61FD781A84238C00846EE7 /* SDLSamplingRate.m in Sources */, - 5D61FC681A84238C00846EE7 /* SDLComponentVolumeStatus.m in Sources */, - 5D61FDB61A84238C00846EE7 /* SDLSyncMsgVersion.m in Sources */, - 5D61FC501A84238C00846EE7 /* SDLBodyInformation.m in Sources */, - 5D61FD901A84238C00846EE7 /* SDLShow.m in Sources */, - 5D61FDB21A84238C00846EE7 /* SDLSubscribeVehicleData.m in Sources */, - 5D61FC991A84238C00846EE7 /* SDLECallInfo.m in Sources */, - 5D61FD601A84238C00846EE7 /* SDLRegisterAppInterfaceResponse.m in Sources */, - 5D61FCF51A84238C00846EE7 /* SDLMaintenanceModeStatus.m in Sources */, - 5D61FCD81A84238C00846EE7 /* SDLInteractionMode.m in Sources */, - 5D61FCB01A84238C00846EE7 /* SDLGenericResponse.m in Sources */, - 5D61FD681A84238C00846EE7 /* SDLResult.m in Sources */, - E9C32B871AB20B4300F283AF /* NSThread+ThreadIndex.m in Sources */, - 5D61FDE21A84238C00846EE7 /* SDLTurn.m in Sources */, - 5D61FC5A1A84238C00846EE7 /* SDLCarModeStatus.m in Sources */, - 5D61FCBC1A84238C00846EE7 /* SDLGPSData.m in Sources */, - 5D61FD341A84238C00846EE7 /* SDLPowerModeQualificationStatus.m in Sources */, - 5D61FC891A84238C00846EE7 /* SDLDiagnosticMessage.m in Sources */, - 5D61FD6E1A84238C00846EE7 /* SDLRPCNotification.m in Sources */, - 5D8B17501AC9D266006A6E1C /* SDLDialNumber.m in Sources */, - 5D61FDE81A84238C00846EE7 /* SDLUnsubscribeButton.m in Sources */, - 5D61FCF71A84238C00846EE7 /* SDLMediaClockFormat.m in Sources */, - 5D61FD8A1A84238C00846EE7 /* SDLSetGlobalPropertiesResponse.m in Sources */, - 5D61FC4C1A84238C00846EE7 /* SDLBeltStatus.m in Sources */, - 5D61FDA41A84238C00846EE7 /* SDLSoftButtonType.m in Sources */, - 5D61FC521A84238C00846EE7 /* SDLButtonCapabilities.m in Sources */, - 5D61FC791A84238C00846EE7 /* SDLDeleteFileResponse.m in Sources */, - 5D61FC641A84238C00846EE7 /* SDLClusterModeStatus.m in Sources */, - 5D61FCF91A84238C00846EE7 /* SDLMenuParams.m in Sources */, - 5D61FD7C1A84238C00846EE7 /* SDLScrollableMessage.m in Sources */, - 5D61FD801A84238C00846EE7 /* SDLSetAppIcon.m in Sources */, - 5D61FD3C1A84238C00846EE7 /* SDLPresetBankCapabilities.m in Sources */, - 5D61FDB81A84238C00846EE7 /* SDLSyncPData.m in Sources */, - 5D61FD221A84238C00846EE7 /* SDLOnVehicleData.m in Sources */, - 5D61FCD41A84238C00846EE7 /* SDLImageResolution.m in Sources */, - 5D61FDF41A84238C00846EE7 /* SDLUpdateTurnListResponse.m in Sources */, - 5D61FCF31A84238C00846EE7 /* SDLLockScreenStatus.m in Sources */, - 5D61FC731A84238C00846EE7 /* SDLDeleteCommand.m in Sources */, - 5D61FD2A1A84238C00846EE7 /* SDLPerformInteraction.m in Sources */, - 5D61FC541A84238C00846EE7 /* SDLButtonEventMode.m in Sources */, - 5D61FC8D1A84238C00846EE7 /* SDLDIDResult.m in Sources */, - 5D61FC601A84238C00846EE7 /* SDLCharacterSet.m in Sources */, - 5D61FCBE1A84238C00846EE7 /* SDLHeadLampStatus.m in Sources */, - 5D61FD921A84238C00846EE7 /* SDLShowConstantTBT.m in Sources */, - 5D61FC4E1A84238C00846EE7 /* SDLBitsPerSample.m in Sources */, - 5D61FDEA1A84238C00846EE7 /* SDLUnsubscribeButtonResponse.m in Sources */, - 5D61FCA61A84238C00846EE7 /* SDLEndAudioPassThruResponse.m in Sources */, - 5DCC19A11B8221F3004FFAD9 /* SDLURLSession.m in Sources */, - 5D61FD281A84238C00846EE7 /* SDLPerformAudioPassThruResponse.m in Sources */, - 5D61FDCE1A84238C00846EE7 /* SDLTimerMode.m in Sources */, - 5D61FD701A84238C00846EE7 /* SDLRPCPayload.m in Sources */, - 5D61FD9C1A84238C00846EE7 /* SDLSlider.m in Sources */, - 5DCF76FA1ACDD7CD00BB647B /* SDLSendLocationResponse.m in Sources */, - 5D61FD661A84238C00846EE7 /* SDLResetGlobalPropertiesResponse.m in Sources */, - 5D61FCFE1A84238C00846EE7 /* SDLObjectWithPriority.m in Sources */, - 5D61FC401A84238C00846EE7 /* SDLAmbientLightStatus.m in Sources */, - 5D61FC951A84238C00846EE7 /* SDLDriverDistractionState.m in Sources */, - 5D61FD961A84238C00846EE7 /* SDLShowResponse.m in Sources */, - 5D61FD981A84238C00846EE7 /* SDLSingleTireStatus.m in Sources */, - 5D61FD511A84238C00846EE7 /* SDLProxy.m in Sources */, - 5D61FD461A84238C00846EE7 /* SDLProtocolHeader.m in Sources */, - 5D61FDBC1A84238C00846EE7 /* SDLSystemAction.m in Sources */, - 5D61FC381A84238C00846EE7 /* SDLAlert.m in Sources */, - 5D61FD2C1A84238C00846EE7 /* SDLPerformInteractionResponse.m in Sources */, - 5D61FDF21A84238C00846EE7 /* SDLUpdateTurnList.m in Sources */, - 5D61FD101A84238C00846EE7 /* SDLOnHMIStatus.m in Sources */, - 5D61FC301A84238C00846EE7 /* SDLAddCommandResponse.m in Sources */, - 5D61FCCC1A84238C00846EE7 /* SDLIgnitionStatus.m in Sources */, - 5D61FC3A1A84238C00846EE7 /* SDLAlertManeuver.m in Sources */, - 5D61FC5E1A84238C00846EE7 /* SDLChangeRegistrationResponse.m in Sources */, - 5D61FC7D1A84238C00846EE7 /* SDLDeleteInteractionChoiceSetResponse.m in Sources */, - E9C32B9D1AB20C5900F283AF /* EAAccessory+SDLProtocols.m in Sources */, - 5D61FCC61A84238C00846EE7 /* SDLHMIZoneCapabilities.m in Sources */, - 5D61FD161A84238C00846EE7 /* SDLOnLockScreenStatus.m in Sources */, - 5D61FDAE1A84238C00846EE7 /* SDLSubscribeButton.m in Sources */, - 5D61FC581A84238C00846EE7 /* SDLButtonPressMode.m in Sources */, - 5D61FDB01A84238C00846EE7 /* SDLSubscribeButtonResponse.m in Sources */, - 5DCF76F61ACDBAD300BB647B /* SDLSendLocation.m in Sources */, - 5D61FC771A84238C00846EE7 /* SDLDeleteFile.m in Sources */, - 5D61FC811A84238C00846EE7 /* SDLDeleteSubMenuResponse.m in Sources */, - 5D61FC7B1A84238C00846EE7 /* SDLDeleteInteractionChoiceSet.m in Sources */, - 5D61FDC01A84238C00846EE7 /* SDLSystemRequest.m in Sources */, - 5D61FD021A84238C00846EE7 /* SDLOnAudioPassThru.m in Sources */, - 5D61FCE51A84238C00846EE7 /* SDLKeyboardProperties.m in Sources */, - 5D61FDFA1A84238C00846EE7 /* SDLV2ProtocolHeader.m in Sources */, - 5D61FDD01A84238C00846EE7 /* SDLTireStatus.m in Sources */, - 5D61FC321A84238C00846EE7 /* SDLAddSubMenu.m in Sources */, - 5D61FDF61A84238C00846EE7 /* SDLV1ProtocolHeader.m in Sources */, - 5D61FDAA1A84238C00846EE7 /* SDLSpeechCapabilities.m in Sources */, - 5D61FDB41A84238C00846EE7 /* SDLSubscribeVehicleDataResponse.m in Sources */, - 5D61FD121A84238C00846EE7 /* SDLOnKeyboardInput.m in Sources */, - 5D61FCCA1A84238C00846EE7 /* SDLIgnitionStableStatus.m in Sources */, - 5D61FCFB1A84238C00846EE7 /* SDLMyKey.m in Sources */, - 5D61FCAA1A84238C00846EE7 /* SDLFileType.m in Sources */, - 5DE372A21ACB2ED300849FAA /* SDLHMICapabilities.m in Sources */, - 5D61FDD41A84238C00846EE7 /* SDLTouchEvent.m in Sources */, - 5D61FD881A84238C00846EE7 /* SDLSetGlobalProperties.m in Sources */, - 5D61FC7F1A84238C00846EE7 /* SDLDeleteSubMenu.m in Sources */, - 5D61FCE91A84238C00846EE7 /* SDLLanguage.m in Sources */, - 5D61FC3E1A84238C00846EE7 /* SDLAlertResponse.m in Sources */, - 5D61FD8C1A84238C00846EE7 /* SDLSetMediaClockTimer.m in Sources */, - 5D61FE121A84238C00846EE7 /* SDLWarningLightStatus.m in Sources */, - 5D61FCDD1A84238C00846EE7 /* SDLJsonDecoder.m in Sources */, - 5D61FCB81A84238C00846EE7 /* SDLGetVehicleDataResponse.m in Sources */, - 5D61FC661A84238C00846EE7 /* SDLCompassDirection.m in Sources */, - 5D61FD841A84238C00846EE7 /* SDLSetDisplayLayout.m in Sources */, - 5D61FE001A84238C00846EE7 /* SDLVehicleDataEventStatus.m in Sources */, - 5D61FDC41A84238C00846EE7 /* SDLTBTState.m in Sources */, - 5D61FDA61A84238C00846EE7 /* SDLSpeak.m in Sources */, - 5D61FDDE1A84238C00846EE7 /* SDLTTSChunk.m in Sources */, - 5D61FD9E1A84238C00846EE7 /* SDLSliderResponse.m in Sources */, - 5D61FC5C1A84238C00846EE7 /* SDLChangeRegistration.m in Sources */, - 5D61FDBA1A84238C00846EE7 /* SDLSyncPDataResponse.m in Sources */, - 5D61FDDC1A84238C00846EE7 /* SDLTriggerSource.m in Sources */, - E9C32B971AB20BA200F283AF /* SDLTimer.m in Sources */, - 5D61FCB61A84238C00846EE7 /* SDLGetVehicleData.m in Sources */, - 5D61FC9F1A84238C00846EE7 /* SDLEncodedSyncPData.m in Sources */, - 5D61FE061A84238C00846EE7 /* SDLVehicleDataResultCode.m in Sources */, - 5D61FCA41A84238C00846EE7 /* SDLEndAudioPassThru.m in Sources */, - 5D8B17541AC9E11B006A6E1C /* SDLDialNumberResponse.m in Sources */, - 5D61FC851A84238C00846EE7 /* SDLDeviceLevelStatus.m in Sources */, - 5D61FD1E1A84238C00846EE7 /* SDLOnTBTClientState.m in Sources */, - 5D61FD581A84238C00846EE7 /* SDLPutFileResponse.m in Sources */, - 5D61FCB21A84238C00846EE7 /* SDLGetDTCs.m in Sources */, - 5D61FD441A84238C00846EE7 /* SDLProtocol.m in Sources */, - 5D61FC341A84238C00846EE7 /* SDLAddSubMenuResponse.m in Sources */, - 5D61FD141A84238C00846EE7 /* SDLOnLanguageChange.m in Sources */, - 5D61FE041A84238C00846EE7 /* SDLVehicleDataResult.m in Sources */, - 5D61FD5C1A84238C00846EE7 /* SDLReadDIDResponse.m in Sources */, - 5D61FD321A84238C00846EE7 /* SDLPolicyDataParser.m in Sources */, - 5D61FC621A84238C00846EE7 /* SDLChoice.m in Sources */, - 5D61FCEB1A84238C00846EE7 /* SDLLayoutMode.m in Sources */, - 5D61FC2E1A84238C00846EE7 /* SDLAddCommand.m in Sources */, - 5D61FE021A84238C00846EE7 /* SDLVehicleDataNotificationStatus.m in Sources */, - 5D61FDD81A84238C00846EE7 /* SDLTouchType.m in Sources */, - 5D61FDD61A84238C00846EE7 /* SDLTouchEventCapabilities.m in Sources */, - 5D61FCF11A84238C00846EE7 /* SDLLockScreenManager.m in Sources */, - 5D61FDAC1A84238C00846EE7 /* SDLStartTime.m in Sources */, - 5D61FDA01A84238C00846EE7 /* SDLSoftButton.m in Sources */, - E9C32B951AB20BA200F283AF /* SDLStreamDelegate.m in Sources */, - 5D61FCD21A84238C00846EE7 /* SDLImageFieldName.m in Sources */, - 5D61FD761A84238C00846EE7 /* SDLRPCResponse.m in Sources */, - 5D61FE081A84238C00846EE7 /* SDLVehicleDataStatus.m in Sources */, - E9C32B9F1AB20C5900F283AF /* EAAccessoryManager+SDLProtocols.m in Sources */, - 5D61FDA81A84238C00846EE7 /* SDLSpeakResponse.m in Sources */, - 5DB92D331AC9C8BA00C15BB0 /* SDLRPCStruct.m in Sources */, - 5D61FCD61A84238C00846EE7 /* SDLImageType.m in Sources */, - 5D61FD7A1A84238C00846EE7 /* SDLScreenParams.m in Sources */, - 5D61FC831A84238C00846EE7 /* SDLDeviceInfo.m in Sources */, - 5D61FD641A84238C00846EE7 /* SDLResetGlobalProperties.m in Sources */, - 5D61FD181A84238C00846EE7 /* SDLOnPermissionsChange.m in Sources */, - 5D61FD3E1A84238C00846EE7 /* SDLPrimaryAudioSource.m in Sources */, - 5D61FC2A1A84238C00846EE7 /* SDLAbstractProtocol.m in Sources */, - 5D61FD381A84238C00846EE7 /* SDLPredefinedLayout.m in Sources */, - 5D61FD0E1A84238C00846EE7 /* SDLOnHashChange.m in Sources */, - 5D61FDE41A84238C00846EE7 /* SDLUnregisterAppInterface.m in Sources */, - 5D61FC361A84238C00846EE7 /* SDLAirbagStatus.m in Sources */, - 5D61FD7E1A84238C00846EE7 /* SDLScrollableMessageResponse.m in Sources */, - 5D61FD3A1A84238C00846EE7 /* SDLPrerecordedSpeech.m in Sources */, - 5D61FCA11A84238C00846EE7 /* SDLEncodedSyncPDataResponse.m in Sources */, - 5D61FD401A84238C00846EE7 /* SDLPrioritizedObjectCollection.m in Sources */, - 5D61FD741A84238C00846EE7 /* SDLRPCRequestFactory.m in Sources */, - 5D61FDC61A84238C00846EE7 /* SDLTCPTransport.m in Sources */, - 5D61FE0E1A84238C00846EE7 /* SDLVRCapabilities.m in Sources */, - 5D61FDC21A84238C00846EE7 /* SDLSystemRequestResponse.m in Sources */, - 5D61FD001A84238C00846EE7 /* SDLOnAppInterfaceUnregistered.m in Sources */, - 5D61FC6C1A84238C00846EE7 /* SDLCreateInteractionChoiceSet.m in Sources */, - 5D61FD081A84238C00846EE7 /* SDLOnCommand.m in Sources */, - 5D53C46E1B7A99B9003526EA /* SDLStreamingMediaManager.m in Sources */, - 5D61FD6A1A84238C00846EE7 /* SDLRPCMessage.m in Sources */, - 5D61FCDB1A84238C00846EE7 /* SDLJingle.m in Sources */, - 5D61FDA21A84238C00846EE7 /* SDLSoftButtonCapabilities.m in Sources */, - 5D61FC2C1A84238C00846EE7 /* SDLAbstractTransport.m in Sources */, - 5D61FD8E1A84238C00846EE7 /* SDLSetMediaClockTimerResponse.m in Sources */, - 5D61FD721A84238C00846EE7 /* SDLRPCRequest.m in Sources */, - 5D61FDF01A84238C00846EE7 /* SDLUpdateMode.m in Sources */, - 5D61FC931A84238C00846EE7 /* SDLDisplayType.m in Sources */, - 5D61FCE31A84238C00846EE7 /* SDLKeyboardLayout.m in Sources */, - 5D61FE0C1A84238C00846EE7 /* SDLVehicleType.m in Sources */, - 5D61FDCC1A84238C00846EE7 /* SDLTextFieldName.m in Sources */, - 5D61FC751A84238C00846EE7 /* SDLDeleteCommandResponse.m in Sources */, - 5D61FD861A84238C00846EE7 /* SDLSetDisplayLayoutResponse.m in Sources */, - 5D61FCB41A84238C00846EE7 /* SDLGetDTCsResponse.m in Sources */, - 5D61FDFC1A84238C00846EE7 /* SDLV2ProtocolMessage.m in Sources */, - 5D61FD361A84238C00846EE7 /* SDLPowerModeStatus.m in Sources */, - 5D61FD621A84238C00846EE7 /* SDLRequestType.m in Sources */, - 5D61FCBA1A84238C00846EE7 /* SDLGlobalProperty.m in Sources */, - 5D61FD4F1A84238C00846EE7 /* SDLProtocolReceivedMessageRouter.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5D61FA221A84237100846EE7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 162E83951A9BDE8B00906325 /* SDLTurnSpec.m in Sources */, - 162E83481A9BDE8B00906325 /* SDLUpdateTurnListSpec.m in Sources */, - 1680B11E1A9CD7AD00DBD79E /* SDLProtocolReceivedMessageRouterSpec.m in Sources */, - 162E82FD1A9BDE8B00906325 /* SDLSystemContextSpec.m in Sources */, - 162E82E21A9BDE8B00906325 /* SDLIgnitionStableStatusSpec.m in Sources */, - 162E82EE1A9BDE8B00906325 /* SDLMediaClockFormatSpec.m in Sources */, - 5DA026901AD44EE700019F86 /* SDLDialNumberResponseSpec.m in Sources */, - 162E83901A9BDE8B00906325 /* SDLTireStatusSpec.m in Sources */, - 162E82E01A9BDE8B00906325 /* SDLHMILevelSpec.m in Sources */, - 162E83041A9BDE8B00906325 /* SDLUpdateModeSpec.m in Sources */, - 162E83801A9BDE8B00906325 /* SDLHMIPermissionsSpec.m in Sources */, - 162E83021A9BDE8B00906325 /* SDLTouchTypeSpec.m in Sources */, - 5DB92D2F1AC59F0000C15BB0 /* SDLObjectWithPrioritySpec.m in Sources */, - 162E838A1A9BDE8B00906325 /* SDLSingleTireStatusSpec.m in Sources */, - 162E83051A9BDE8B00906325 /* SDLVehicleDataActiveStatusSpec.m in Sources */, - 162E82E61A9BDE8B00906325 /* SDLInteractionModeSpec.m in Sources */, - 162E83931A9BDE8B00906325 /* SDLTouchEventSpec.m in Sources */, - 5DCF76FE1ACDDB5A00BB647B /* SDLSendLocationResponseSpec.m in Sources */, - 162E837D1A9BDE8B00906325 /* SDLEmergencyEventSpec.m in Sources */, - 162E82D31A9BDE8A00906325 /* SDLCarModeStatusSpec.m in Sources */, - 162E82EA1A9BDE8B00906325 /* SDLLanguageSpec.m in Sources */, - 162E83331A9BDE8B00906325 /* SDLPerformInteractionSpec.m in Sources */, - 1680B11A1A9CD7AD00DBD79E /* SDLAbstractProtocolSpec.m in Sources */, - 1680B1151A9CD7AD00DBD79E /* SDLV2ProtocolHeaderSpec.m in Sources */, - 162E83101A9BDE8B00906325 /* SDLOnAudioPassThruSpec.m in Sources */, - 162E82D91A9BDE8A00906325 /* SDLDisplayTypeSpec.m in Sources */, - 162E83871A9BDE8B00906325 /* SDLPermissionItemSpec.m in Sources */, - 162E82E31A9BDE8B00906325 /* SDLIgnitionStatusSpec.m in Sources */, - 162E83511A9BDE8B00906325 /* SDLDeleteInteractionChoiceSetResponseSpec.m in Sources */, - 162E830E1A9BDE8B00906325 /* SDLRPCRequestFactorySpec.m in Sources */, - 162E82E41A9BDE8B00906325 /* SDLImageFieldNameSpec.m in Sources */, - 162E83991A9BDE8B00906325 /* SDLEnumSpec.m in Sources */, - 162E82ED1A9BDE8B00906325 /* SDLMaintenanceModeStatusSpec.m in Sources */, - 5DB92D2D1AC4A34F00C15BB0 /* SDLPrioritizedObjectCollectionSpec.m in Sources */, - 1680B11C1A9CD7AD00DBD79E /* SDLProtocolMessageAssemblerSpec.m in Sources */, - 162E83181A9BDE8B00906325 /* SDLOnKeyboardInputSpec.m in Sources */, - 162E83701A9BDE8B00906325 /* SDLUpdateTurnListResponseSpec.m in Sources */, - 162E833B1A9BDE8B00906325 /* SDLSetGlobalPropertiesSpec.m in Sources */, - 162E82F11A9BDE8B00906325 /* SDLPowerModeStatusSpec.m in Sources */, - 162E83881A9BDE8B00906325 /* SDLPresetBankCapabilitiesSpec.m in Sources */, - 162E837E1A9BDE8B00906325 /* SDLGPSDataSpec.m in Sources */, - 162E82E11A9BDE8B00906325 /* SDLHMIZoneCapabilitiesSpec.m in Sources */, - 162E83721A9BDE8B00906325 /* SDLAudioPassThruCapabilitiesSpec.m in Sources */, - 162E83681A9BDE8B00906325 /* SDLSpeakResponseSpec.m in Sources */, - 162E83661A9BDE8B00906325 /* SDLShowResponseSpec.m in Sources */, - 162E83221A9BDE8B00906325 /* SDLAddCommandSpec.m in Sources */, - 162E83121A9BDE8B00906325 /* SDLOnButtonPressSpec.m in Sources */, - 162E838D1A9BDE8B00906325 /* SDLStartTimeSpec.m in Sources */, - 162E836E1A9BDE8B00906325 /* SDLUnsubscribeButtonResponseSpec.m in Sources */, - 162E835B1A9BDE8B00906325 /* SDLPerformInteractionResponseSpec.m in Sources */, - 162E832D1A9BDE8B00906325 /* SDLEncodedSyncPDataSpec.m in Sources */, - 5DB92D241AC47B2C00C15BB0 /* SDLHexUtilitySpec.m in Sources */, - 162E83281A9BDE8B00906325 /* SDLDeleteCommandSpec.m in Sources */, - 5DB92D261AC4836F00C15BB0 /* SDLJingleSpec.m in Sources */, - 162E83531A9BDE8B00906325 /* SDLDiagnosticMessageResponseSpec.m in Sources */, - 162E83671A9BDE8B00906325 /* SDLSliderResponseSpec.m in Sources */, - 162E836C1A9BDE8B00906325 /* SDLSystemRequestResponseSpec.m in Sources */, - 162E833C1A9BDE8B00906325 /* SDLSetMediaClockTimerSpec.m in Sources */, - 162E83061A9BDE8B00906325 /* SDLVehicleDataEventStatusSpec.m in Sources */, - 5DEE55C01B8509CB004F0D0F /* SDLURLRequestTaskSpec.m in Sources */, - 162E83911A9BDE8B00906325 /* SDLTouchCoordSpec.m in Sources */, - 162E832B1A9BDE8B00906325 /* SDLDeleteSubMenuSpec.m in Sources */, - 162E83411A9BDE8B00906325 /* SDLSubscribeButtonSpec.m in Sources */, - 5D59DD471B14FDEE00BE744D /* SDLLockScreenManagerSpec.m in Sources */, - 162E82F31A9BDE8B00906325 /* SDLPrerecordedSpeechSpec.m in Sources */, - 162E83691A9BDE8B00906325 /* SDLSubscribeButtonResponseSpec.m in Sources */, - 162E83591A9BDE8B00906325 /* SDLListFilesResponseSpec.m in Sources */, - 162E832A1A9BDE8B00906325 /* SDLDeleteInteractionChoiceSetSpec.m in Sources */, - 162E839D1A9BDE8B00906325 /* SDLRPCResponseSpec.m in Sources */, - 162E82E51A9BDE8B00906325 /* SDLImageTypeSpec.m in Sources */, - 162E83421A9BDE8B00906325 /* SDLSubscribeVehicleDataSpec.m in Sources */, - 162E83811A9BDE8B00906325 /* SDLImageFieldSpec.m in Sources */, - 162E834F1A9BDE8B00906325 /* SDLDeleteCommandResponseSpec.m in Sources */, - 162E83231A9BDE8B00906325 /* SDLAddSubMenuSpec.m in Sources */, - 162E82F21A9BDE8B00906325 /* SDLPredefinedLayoutSpec.m in Sources */, - 162E83521A9BDE8B00906325 /* SDLDeleteSubMenuResponseSpec.m in Sources */, - 162E82E91A9BDE8B00906325 /* SDLKeypressModeSpec.m in Sources */, - 162E83211A9BDE8B00906325 /* SDLRPCPayloadSpec.m in Sources */, - 162E83851A9BDE8B00906325 /* SDLMyKeySpec.m in Sources */, - 162E83941A9BDE8B00906325 /* SDLTTSChunkSpec.m in Sources */, - 162E82DC1A9BDE8B00906325 /* SDLEmergencyEventTypeSpec.m in Sources */, - 162E82CE1A9BDE8A00906325 /* SDLAudioTypeSpec.m in Sources */, - 162E831C1A9BDE8B00906325 /* SDLOnSyncPDataSpec.m in Sources */, - 162E83341A9BDE8B00906325 /* SDLPutFileSpec.m in Sources */, - 162E837A1A9BDE8B00906325 /* SDLDIDResult.m in Sources */, - 162E83171A9BDE8B00906325 /* SDLOnHMIStatusSpec.m in Sources */, - 5DE372A41ACB336600849FAA /* SDLHMICapabilitiesSpec.m in Sources */, - 162E82F71A9BDE8B00906325 /* SDLResultSpec.m in Sources */, - 1680B1141A9CD7AD00DBD79E /* SDLV1ProtocolHeaderSpec.m in Sources */, - 1680B1161A9CD7AD00DBD79E /* SDLProtocolMessageSpec.m in Sources */, - 162E83771A9BDE8B00906325 /* SDLClusterModeStatusSpec.m in Sources */, - 162E83981A9BDE8B00906325 /* SDLVrHelpItemSpec.m in Sources */, - 162E83831A9BDE8B00906325 /* SDLKeyboardPropertiesSpec.m in Sources */, - 162E82D11A9BDE8A00906325 /* SDLButtonNameSpec.m in Sources */, - 162E839E1A9BDE8B00906325 /* SDLRPCStructSpec.m in Sources */, - 162E83291A9BDE8B00906325 /* SDLDeleteFileSpec.m in Sources */, - 1680B11D1A9CD7AD00DBD79E /* SDLProtocolMessageDisassemblerSpec.m in Sources */, - 162E838E1A9BDE8B00906325 /* SDLSyncMsgVersionSpec.m in Sources */, - 162E82DA1A9BDE8B00906325 /* SDLDriverDistractionStateSpec.m in Sources */, - 162E83631A9BDE8B00906325 /* SDLSetGlobalPropertiesResponseSpec.m in Sources */, - 162E837B1A9BDE8B00906325 /* SDLDisplayCapabilitiesSpec.m in Sources */, - 162E82DE1A9BDE8B00906325 /* SDLFuelCutoffStatusSpec.m in Sources */, - 162E83271A9BDE8B00906325 /* SDLCreateInteractionChoiceSetSpec.m in Sources */, - 162E83111A9BDE8B00906325 /* SDLOnButtonEventSpec.m in Sources */, - 162E82FA1A9BDE8B00906325 /* SDLSoftButtonTypeSpec.m in Sources */, - 162E83751A9BDE8B00906325 /* SDLButtonCapabilitiesSpec.m in Sources */, - 162E83151A9BDE8B00906325 /* SDLOnEncodedSyncPDataSpec.m in Sources */, - 162E83261A9BDE8B00906325 /* SDLChangeRegistrationSpec.m in Sources */, - 162E82D21A9BDE8A00906325 /* SDLButtonPressModeSpec.m in Sources */, - 162E82D71A9BDE8A00906325 /* SDLDeviceLevelStatusSpec.m in Sources */, - 162E83841A9BDE8B00906325 /* SDLMenuParamsSpec.m in Sources */, - 162E83071A9BDE8B00906325 /* SDLVehicleDataNotificationStatusSpec.m in Sources */, - 162E83361A9BDE8B00906325 /* SDLRegisterAppInterfaceSpec.m in Sources */, - 162E82DD1A9BDE8B00906325 /* SDLFileTypeSpec.m in Sources */, - 162E836A1A9BDE8B00906325 /* SDLSubscribeVehicleDataResponseSpec.m in Sources */, - 162E83761A9BDE8B00906325 /* SDLChoiceSpec.m in Sources */, - 162E83571A9BDE8B00906325 /* SDLGetDTCsResponseSpec.m in Sources */, - 162E83201A9BDE8B00906325 /* SDLOnVehicleDataSpec.m in Sources */, - 162E83141A9BDE8B00906325 /* SDLOnDriverDistractionSpec.m in Sources */, - 162E83371A9BDE8B00906325 /* SDLResetGlobalPropertiesSpec.m in Sources */, - 162E82DF1A9BDE8B00906325 /* SDLGlobalProperySpec.m in Sources */, - 162E82F61A9BDE8B00906325 /* SDLRequestTypeSpec.m in Sources */, - 162E82FB1A9BDE8B00906325 /* SDLSpeechCapabilitiesSpec.m in Sources */, - 162E830D1A9BDE8B00906325 /* SDLWiperStatusSpec.m in Sources */, - 162E832C1A9BDE8B00906325 /* SDLDiagnosticMessageSpec.m in Sources */, - 5DF2BB9D1B94E38A00CE5994 /* SDLURLSessionSpec.m in Sources */, - 162E83381A9BDE8B00906325 /* SDLScrollableMessageSpec.m in Sources */, - 162E82E81A9BDE8B00906325 /* SDLKeyboardLayoutSpec.m in Sources */, - 162E83541A9BDE8B00906325 /* SDLEncodedSyncPDataResponseSpec.m in Sources */, - 162E83161A9BDE8B00906325 /* SDLOnHashChangeSpec.m in Sources */, - 162E82FE1A9BDE8B00906325 /* SDLTBTStateSpec.m in Sources */, - 162E834B1A9BDE8B00906325 /* SDLAlertManeuverResponseSpec.m in Sources */, - 162E833E1A9BDE8B00906325 /* SDLShowSpec.m in Sources */, - 162E83241A9BDE8B00906325 /* SDLAlertManeuverSpec.m in Sources */, - 162E83451A9BDE8B00906325 /* SDLUnregisterAppInterfaceSpec.m in Sources */, - 162E82EF1A9BDE8B00906325 /* SDLPermissionStatusSpec.m in Sources */, - 162E82F01A9BDE8B00906325 /* SDLPowerModeQualificationStatusSpec.m in Sources */, - 162E82CD1A9BDE8A00906325 /* SDLAudioStreamingStateSpec.m in Sources */, - 162E831A1A9BDE8B00906325 /* SDLOnLockScreenStatusSpec.m in Sources */, - 162E83431A9BDE8B00906325 /* SDLSyncPDataSpec.m in Sources */, - 167ED9461A9BCE5D00797BE5 /* SwiftSpec.swift in Sources */, - 162E838B1A9BDE8B00906325 /* SDLSoftButtonCapabilitiesSpec.m in Sources */, - 162E834C1A9BDE8B00906325 /* SDLAlertResponseSpec.m in Sources */, - 1680B11B1A9CD7AD00DBD79E /* SDLFunctionIDSpec.m in Sources */, - 162E83131A9BDE8B00906325 /* SDLOnCommandSpec.m in Sources */, - 162E833A1A9BDE8B00906325 /* SDLSetDisplayLayoutSpec.m in Sources */, - 162E838F1A9BDE8B00906325 /* SDLTextFieldSpec.m in Sources */, - 162E82CA1A9BDE8A00906325 /* SDLAmbientLightStatusSpec.m in Sources */, - 162E83091A9BDE8B00906325 /* SDLVehicleDataStatusSpec.m in Sources */, - 162E83741A9BDE8B00906325 /* SDLBodyInformationSpec.m in Sources */, - 162E83641A9BDE8B00906325 /* SDLSetMediaClockTimerResponseSpec.m in Sources */, - 162E839C1A9BDE8B00906325 /* SDLRPCRequestSpec.m in Sources */, - 5D8B17561AC9E399006A6E1C /* SDLDialNumberSpec.m in Sources */, - 162E833D1A9BDE8B00906325 /* SDLShowConstantTBTSpec.m in Sources */, - 162E83651A9BDE8B00906325 /* SDLShowConstantTBTResponseSpec.m in Sources */, - 162E82F91A9BDE8B00906325 /* SDLSamplingRateSpec.m in Sources */, - 162E82CB1A9BDE8A00906325 /* SDLAppHMITypeSpec.m in Sources */, - 162E83031A9BDE8B00906325 /* SDLTriggerSource.m in Sources */, - 162E82D61A9BDE8A00906325 /* SDLComponentVolumeStatusSpec.m in Sources */, - 162E835C1A9BDE8B00906325 /* SDLPutFileResponseSpec.m in Sources */, - 162E835F1A9BDE8B00906325 /* SDLResetGlobalPropertiesResponseSpec.m in Sources */, - 162E835E1A9BDE8B00906325 /* SDLRegisterAppInterfaceResponseSpec.m in Sources */, - 162E835A1A9BDE8B00906325 /* SDLPerformAudioPassThruResponseSpec.m in Sources */, - 162E83501A9BDE8B00906325 /* SDLDeleteFileResponseSpec.m in Sources */, - 162E83601A9BDE8B00906325 /* SDLScrollableMessageResponseSpec.m in Sources */, - 162E83791A9BDE8B00906325 /* SDLDeviceStatusSpec.m in Sources */, - 162E83821A9BDE8B00906325 /* SDLImageSpec.m in Sources */, - 162E834A1A9BDE8B00906325 /* SDLAddSubMenuResponseSpec.m in Sources */, - 162E830C1A9BDE8B00906325 /* SDLWarningLightStatusSpec.m in Sources */, - 162E82E71A9BDE8B00906325 /* SDLKeyboardEventSpec.m in Sources */, - 162E834E1A9BDE8B00906325 /* SDLCreateInteractionChoiceSetResponseSpec.m in Sources */, - 162E83301A9BDE8B00906325 /* SDLGetVehicleDataSpec.m in Sources */, - 162E833F1A9BDE8B00906325 /* SDLSliderSpec.m in Sources */, - 162E838C1A9BDE8B00906325 /* SDLSoftButtonSpec.m in Sources */, - 162E83191A9BDE8B00906325 /* SDLOnLanguageChangeSpec.m in Sources */, - 162E83611A9BDE8B00906325 /* SDLSetAppIconResponseSpec.m in Sources */, - 162E83471A9BDE8B00906325 /* SDLUnsubscribeVehicleDataSpec.m in Sources */, - 162E839A1A9BDE8B00906325 /* SDLRPCMessageSpec.m in Sources */, - 162E83311A9BDE8B00906325 /* SDLListFilesSpec.m in Sources */, - 5DC978261B7A38640012C2F1 /* SDLGlobalsSpec.m in Sources */, - 162E82FF1A9BDE8B00906325 /* SDLTextAlignmentSpec.m in Sources */, - 162E831F1A9BDE8B00906325 /* SDLOnTouchEventSpec.m in Sources */, - 162E83921A9BDE8B00906325 /* SDLTouchEventCapabilitiesSpec.m in Sources */, - 162E837F1A9BDE8B00906325 /* SDLHeadLampStatusSpec.m in Sources */, - 162E834D1A9BDE8B00906325 /* SDLChangeRegistrationResponseSpec.m in Sources */, - 162E836B1A9BDE8B00906325 /* SDLSyncPDataResponseSpec.m in Sources */, - 162E839B1A9BDE8B00906325 /* SDLRPCNotificationSpec.m in Sources */, - 162E83581A9BDE8B00906325 /* SDLGetVehicleDataResponseSpec.m in Sources */, - 162E831D1A9BDE8B00906325 /* SDLOnSystemRequestSpec.m in Sources */, - 162E835D1A9BDE8B00906325 /* SDLReadDIDResponseSpec.m in Sources */, - 162E82D41A9BDE8A00906325 /* SDLCharacterSetSpec.m in Sources */, - 162E830F1A9BDE8B00906325 /* SDLOnAppInterfaceUnregisteredSpec.m in Sources */, - 162E83971A9BDE8B00906325 /* SDLVehicleTypeSpec.m in Sources */, - 1680B1131A9CD7AD00DBD79E /* SDLProtocolHeaderSpec.m in Sources */, - 162E82D01A9BDE8A00906325 /* SDLButtonEventModeSpec.m in Sources */, - 162E83781A9BDE8B00906325 /* SDLDeviceInfoSpec.m in Sources */, - 162E83391A9BDE8B00906325 /* SDLSetAppIconSpec.m in Sources */, - 162E83011A9BDE8B00906325 /* SDLTimerModeSpec.m in Sources */, - 162E83891A9BDE8B00906325 /* SDLScreenParamsSpec.m in Sources */, - 162E83441A9BDE8B00906325 /* SDLSystemRequestSpec.m in Sources */, - 162E83001A9BDE8B00906325 /* SDLTextFieldNameSpec.m in Sources */, - 162E82FC1A9BDE8B00906325 /* SDLSystemAction.m in Sources */, - 162E82CC1A9BDE8A00906325 /* SDLAppInterfaceUnregisteredReasonSpec.m in Sources */, - 162E83321A9BDE8B00906325 /* SDLPerformAudioPassThruSpec.m in Sources */, - 162E830B1A9BDE8B00906325 /* SDLVrCapabilitiesSpec.m in Sources */, - 162E83081A9BDE8B00906325 /* SDLVehicleDataResultCodeSpec.m in Sources */, - 162E83621A9BDE8B00906325 /* SDLSetDisplayLayoutResponseSpec.m in Sources */, - 162E832E1A9BDE8B00906325 /* SDLEndAudioPassThruSpec.m in Sources */, - 1680B1191A9CD7AD00DBD79E /* SDLV2ProtocolMessageSpec.m in Sources */, - 162E83961A9BDE8B00906325 /* SDLVehicleDataResultSpec.m in Sources */, - 162E83491A9BDE8B00906325 /* SDLAddCommandResponseSpec.m in Sources */, - 162E82F51A9BDE8B00906325 /* SDLPRNDLSpec.m in Sources */, - 1680B1171A9CD7AD00DBD79E /* SDLProtocolSpec.m in Sources */, - 162E836D1A9BDE8B00906325 /* SDLUnregisterAppInterfaceResponseSpec.m in Sources */, - 162E837C1A9BDE8B00906325 /* SDLECallInfoSpec.m in Sources */, - 162E83401A9BDE8B00906325 /* SDLSpeakSpec.m in Sources */, - 5DCF76FC1ACDDB4200BB647B /* SDLSendLocationSpec.m in Sources */, - 162E83561A9BDE8B00906325 /* SDLGenericResponseSpec.m in Sources */, - 162E82D51A9BDE8A00906325 /* SDLCompassDirectionSpec.m in Sources */, - 162E83861A9BDE8B00906325 /* SDLParameterPermissionsSpec.m in Sources */, - 162E831B1A9BDE8B00906325 /* SDLOnPermissionsChangeSpec.m in Sources */, - 162E83711A9BDE8B00906325 /* SDLAirbagStatusSpec.m in Sources */, - 162E82CF1A9BDE8A00906325 /* SDLBitsPerSampleSpec.m in Sources */, - 162E831E1A9BDE8B00906325 /* SDLOnTBTClientStateSpec.m in Sources */, - 162E83351A9BDE8B00906325 /* SDLReadDIDSpec.m in Sources */, - 162E836F1A9BDE8B00906325 /* SDLUnsubscribeVehicleDataResponseSpec.m in Sources */, - 162E82DB1A9BDE8B00906325 /* SDLECallConfirmationStatusSpec.m in Sources */, - 162E82D81A9BDE8A00906325 /* SDLDimensionSpec.m in Sources */, - 162E83731A9BDE8B00906325 /* SDLBeltStatusSpec.m in Sources */, - 162E83551A9BDE8B00906325 /* SDLEndAudioPassThruResponseSpec.m in Sources */, - 162E83251A9BDE8B00906325 /* SDLAlertSpec.m in Sources */, - 162E830A1A9BDE8B00906325 /* SDLVehicleDataTypeSpec.m in Sources */, - 162E82F41A9BDE8B00906325 /* SDLPrimaryAudioSource.m in Sources */, - 162E83461A9BDE8B00906325 /* SDLUnsubscribeButtonSpec.m in Sources */, - 162E82EB1A9BDE8B00906325 /* SDLLayoutModeSpec.m in Sources */, - 1680B1181A9CD7AD00DBD79E /* SDLV1ProtocolMessageSpec.m in Sources */, - 162E82EC1A9BDE8B00906325 /* SDLLockScreenStatusSpec.m in Sources */, - 162E832F1A9BDE8B00906325 /* SDLGetDTCsSpec.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 5D61FA291A84237100846EE7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 5D61FA1B1A84237100846EE7 /* SmartDeviceLink */; - targetProxy = 5D61FA281A84237100846EE7 /* PBXContainerItemProxy */; - }; - 5D61FA2B1A84237100846EE7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 5D4019AE1A76EC350006B0C2 /* SmartDeviceLink-Example */; - targetProxy = 5D61FA2A1A84237100846EE7 /* PBXContainerItemProxy */; - }; - 5D61FA321A84237100846EE7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 5D61FA1B1A84237100846EE7 /* SmartDeviceLink */; - targetProxy = 5D61FA311A84237100846EE7 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 5D0218F71A8E7A7300D1BF62 /* ConnectionTCPTableViewController.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 5D0218F81A8E7A7300D1BF62 /* Base */, - ); - name = ConnectionTCPTableViewController.storyboard; - sourceTree = ""; - }; - 5D0219031A8E9F6D00D1BF62 /* ConnectionIAPTableViewController.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 5D0219041A8E9F6D00D1BF62 /* Base */, - ); - name = ConnectionIAPTableViewController.storyboard; - sourceTree = ""; - }; - 5D4029DF1A76F0760006B0C2 /* LaunchScreen.xib */ = { - isa = PBXVariantGroup; - children = ( - 5D4029E01A76F0760006B0C2 /* Base */, - ); - name = LaunchScreen.xib; - sourceTree = ""; - }; - 5D4029E11A76F0760006B0C2 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 5D4029E21A76F0760006B0C2 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 5D4019D01A76EC350006B0C2 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - }; - name = Debug; - }; - 5D4019D11A76EC350006B0C2 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = YES; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 5D4019D31A76EC350006B0C2 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_IDENTITY = "iPhone Developer"; - INFOPLIST_FILE = "$(SRCROOT)/SmartDeviceLink_Example/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.smartdevicelink.SDLTestApp; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 5D4019D41A76EC350006B0C2 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_IDENTITY = "iPhone Developer"; - INFOPLIST_FILE = "$(SRCROOT)/SmartDeviceLink_Example/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.smartdevicelink.SDLTestApp; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; - 5D61FA361A84237100846EE7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES; - CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND = YES; - CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES; - CLANG_STATIC_ANALYZER_MODE = deep; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = NO; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Carthage/Build/iOS", - ); - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = SmartDeviceLink/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - LIBRARY_SEARCH_PATHS = "$(inherited)"; - PRODUCT_BUNDLE_IDENTIFIER = com.smartdevicelink.smartdevicelink; - PRODUCT_NAME = "$(TARGET_NAME)"; - RUN_CLANG_STATIC_ANALYZER = YES; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 5D61FA371A84237100846EE7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES; - CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND = YES; - CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES; - CLANG_STATIC_ANALYZER_MODE = deep; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = NO; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Carthage/Build/iOS", - ); - INFOPLIST_FILE = SmartDeviceLink/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - LIBRARY_SEARCH_PATHS = "$(inherited)"; - PRODUCT_BUNDLE_IDENTIFIER = com.smartdevicelink.smartdevicelink; - PRODUCT_NAME = "$(TARGET_NAME)"; - RUN_CLANG_STATIC_ANALYZER = YES; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 5D61FA391A84237100846EE7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - EMBEDDED_CONTENT_CONTAINS_SWIFT = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - "$(PROJECT_DIR)/Carthage/Build/iOS", - ); - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - ); - INFOPLIST_FILE = SmartDeviceLinkTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-framework", - XCTest, - "-all_load", - "-ObjC", - ); - PRODUCT_BUNDLE_IDENTIFIER = "com.smartdevicelink.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 5D61FA3A1A84237100846EE7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - EMBEDDED_CONTENT_CONTAINS_SWIFT = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - "$(PROJECT_DIR)/Carthage/Build/iOS", - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - ); - INFOPLIST_FILE = SmartDeviceLinkTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-framework", - XCTest, - "-all_load", - "-ObjC", - ); - PRODUCT_BUNDLE_IDENTIFIER = "com.smartdevicelink.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 5D4019AA1A76EC350006B0C2 /* Build configuration list for PBXProject "SmartDeviceLink-iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5D4019D01A76EC350006B0C2 /* Debug */, - 5D4019D11A76EC350006B0C2 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 5D4019D21A76EC350006B0C2 /* Build configuration list for PBXNativeTarget "SmartDeviceLink-Example" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5D4019D31A76EC350006B0C2 /* Debug */, - 5D4019D41A76EC350006B0C2 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 5D61FA351A84237100846EE7 /* Build configuration list for PBXNativeTarget "SmartDeviceLink" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5D61FA361A84237100846EE7 /* Debug */, - 5D61FA371A84237100846EE7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 5D61FA381A84237100846EE7 /* Build configuration list for PBXNativeTarget "SmartDeviceLinkTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5D61FA391A84237100846EE7 /* Debug */, - 5D61FA3A1A84237100846EE7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 5D4019A71A76EC350006B0C2 /* Project object */; -} diff --git a/SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index c7e82e3f6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj/xcshareddata/xcschemes/SmartDeviceLink.xcscheme b/SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj/xcshareddata/xcschemes/SmartDeviceLink.xcscheme deleted file mode 100644 index 19549fa11..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj/xcshareddata/xcschemes/SmartDeviceLink.xcscheme +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/EAAccessory+SDLProtocols.h b/SmartDeviceLink-iOS/SmartDeviceLink/EAAccessory+SDLProtocols.h deleted file mode 100644 index 417b5b07b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/EAAccessory+SDLProtocols.h +++ /dev/null @@ -1,11 +0,0 @@ -// -// EAAccessory+SyncProtocols.h -// - -#import - -@interface EAAccessory (SDLProtocols) - -- (BOOL)supportsProtocol:(NSString *)protocol; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/EAAccessory+SDLProtocols.m b/SmartDeviceLink-iOS/SmartDeviceLink/EAAccessory+SDLProtocols.m deleted file mode 100644 index bffeeb829..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/EAAccessory+SDLProtocols.m +++ /dev/null @@ -1,19 +0,0 @@ -// -// EAAccessory+SyncProtocols.m -// - -#import "EAAccessory+SDLProtocols.h" - -@implementation EAAccessory (SDLProtocols) - -- (BOOL)supportsProtocol:(NSString *)protocol { - for (NSString *supportedProtocol in self.protocolStrings) { - if ([supportedProtocol isEqualToString:protocol]) { - return YES; - } - } - - return NO; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/EAAccessoryManager+SDLProtocols.h b/SmartDeviceLink-iOS/SmartDeviceLink/EAAccessoryManager+SDLProtocols.h deleted file mode 100644 index b4b39d943..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/EAAccessoryManager+SDLProtocols.h +++ /dev/null @@ -1,11 +0,0 @@ -// -// EAAccessoryManager+SyncProtocols.h -// - -#import - -@interface EAAccessoryManager (SDLProtocols) - -+ (EAAccessory *)findAccessoryForProtocol:(NSString *)protocol; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/EAAccessoryManager+SDLProtocols.m b/SmartDeviceLink-iOS/SmartDeviceLink/EAAccessoryManager+SDLProtocols.m deleted file mode 100644 index 38b0b2477..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/EAAccessoryManager+SDLProtocols.m +++ /dev/null @@ -1,20 +0,0 @@ -// -// EAAccessoryManager+SyncProtocols.m -// - -#import "EAAccessory+SDLProtocols.h" -#import "EAAccessoryManager+SDLProtocols.h" - -@implementation EAAccessoryManager (SDLProtocols) - -+ (EAAccessory *)findAccessoryForProtocol:(NSString *)protocol { - for (EAAccessory *accessory in [[EAAccessoryManager sharedAccessoryManager] connectedAccessories]) { - if ([accessory supportsProtocol:protocol]) { - return accessory; - } - } - - return nil; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/Info.plist b/SmartDeviceLink-iOS/SmartDeviceLink/Info.plist deleted file mode 100644 index 438715f90..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - FMWK - CFBundleShortVersionString - 4.1.2 - CFBundleSignature - ???? - CFBundleVersion - $(CURRENT_PROJECT_VERSION) - NSPrincipalClass - - - diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/NSThread+ThreadIndex.h b/SmartDeviceLink-iOS/SmartDeviceLink/NSThread+ThreadIndex.h deleted file mode 100644 index 60459e3e2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/NSThread+ThreadIndex.h +++ /dev/null @@ -1,9 +0,0 @@ -// -// NSThread+ThreadIndex.h -// - -#import - -@interface NSThread (ThreadIndex) -- (NSInteger)threadIndex; -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/NSThread+ThreadIndex.m b/SmartDeviceLink-iOS/SmartDeviceLink/NSThread+ThreadIndex.m deleted file mode 100644 index 89cbbd5c2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/NSThread+ThreadIndex.m +++ /dev/null @@ -1,23 +0,0 @@ -// -// NSThread+ThreadIndex.m -// - -#import "NSThread+ThreadIndex.h" - -@implementation NSThread (ThreadIndex) - -- (NSInteger)threadIndex { - NSString *description = [self description]; - NSArray *keyValuePairs = [description componentsSeparatedByString:@","]; - for (NSString *keyValuePair in keyValuePairs) { - NSArray *components = [keyValuePair componentsSeparatedByString:@"="]; - NSString *key = components[0]; - key = [key stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; - if ([key rangeOfString:@"num"].location != NSNotFound) { - return [components[1] integerValue]; - } - } - return -1; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h deleted file mode 100644 index 01a4c7e9d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h +++ /dev/null @@ -1,31 +0,0 @@ -// SDLAbstractProtocol.h -// - -@class SDLAbstractTransport; -@class SDLRPCMessage; -@class SDLRPCRequest; - -#import "SDLProtocolListener.h" -#import "SDLTransportDelegate.h" - - -@interface SDLAbstractProtocol : NSObject - -@property (strong) NSString *debugConsoleGroupName; -@property (weak) SDLAbstractTransport *transport; -@property (strong) NSHashTable *protocolDelegateTable; // table of id - -// Sending -- (void)sendStartSessionWithType:(SDLServiceType)serviceType; -- (void)sendEndSessionWithType:(SDLServiceType)serviceType; -- (void)sendRPC:(SDLRPCMessage *)message; -- (void)sendRPCRequest:(SDLRPCRequest *)rpcRequest __deprecated_msg(("Use sendRPC: instead")); -- (void)sendHeartbeat __deprecated_msg("Heartbeat is no longer used."); -- (void)sendRawDataStream:(NSInputStream *)inputStream withServiceType:(SDLServiceType)serviceType; -- (void)sendRawData:(NSData *)data withServiceType:(SDLServiceType)serviceType; - -// Recieving -- (void)handleBytesFromTransport:(NSData *)receivedData; -- (void)dispose; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.m deleted file mode 100644 index ad536761c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.m +++ /dev/null @@ -1,77 +0,0 @@ -// SDLAbstractProtocol.m - -#import "SDLAbstractProtocol.h" - -#import "SDLRPCMessage.h" - - -@implementation SDLAbstractProtocol - -- (instancetype)init { - if (self = [super init]) { - _protocolDelegateTable = [NSHashTable weakObjectsHashTable]; - _debugConsoleGroupName = @"default"; - } - return self; -} - -// Implement in subclasses. -- (void)sendStartSessionWithType:(SDLServiceType)serviceType { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void)sendEndSessionWithType:(SDLServiceType)serviceType { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void)sendRPC:(SDLRPCMessage *)message { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void)sendRPCRequest:(SDLRPCRequest *)rpcRequest { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void)sendHeartbeat { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void)handleBytesFromTransport:(NSData *)receivedData { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void)sendRawDataStream:(NSInputStream *)inputStream withServiceType:(SDLServiceType)serviceType { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void)sendRawData:(NSData *)data withServiceType:(SDLServiceType)serviceType { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void)dispose { - [self doesNotRecognizeSelector:_cmd]; -} - - -#pragma - SDLTransportListener Implementation -- (void)onTransportConnected { - for (id listener in self.protocolDelegateTable.allObjects) { - if ([listener respondsToSelector:@selector(onProtocolOpened)]) { - [listener onProtocolOpened]; - } - } -} - -- (void)onTransportDisconnected { - for (id listener in self.protocolDelegateTable.allObjects) { - if ([listener respondsToSelector:@selector(onProtocolClosed)]) { - [listener onProtocolClosed]; - } - } -} - -- (void)onDataReceived:(NSData *)receivedData { - [self handleBytesFromTransport:receivedData]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.h deleted file mode 100644 index a8a1f61be..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLAbstractTransport.h - -#import - -#import "SDLTransportDelegate.h" - -@interface SDLAbstractTransport : NSObject - -@property (weak) id delegate; -@property (strong) NSString *debugConsoleGroupName; - -- (void)connect; -- (void)disconnect; -- (void)sendData:(NSData *)dataToSend; -- (void)dispose; -- (double)retryDelay; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.m deleted file mode 100644 index 6d7437748..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.m +++ /dev/null @@ -1,34 +0,0 @@ -// SDLAbstractTransport.m - -#import "SDLAbstractTransport.h" - -@implementation SDLAbstractTransport - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (void)connect { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void)disconnect { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void)sendData:(NSData *)dataToSend { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void)dispose { - [self doesNotRecognizeSelector:_cmd]; -} - -- (double)retryDelay { - [self doesNotRecognizeSelector:_cmd]; - return 0.0; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.h deleted file mode 100644 index bce12fafd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.h +++ /dev/null @@ -1,92 +0,0 @@ -// SDLAddCommand.h - - -#import "SDLRPCRequest.h" - -@class SDLMenuParams; -@class SDLImage; - - -/** - * This class will add a command to the application's Command Menu SDLMenuParams - * - * A command will be added to the end of the list of elements in - * the Command Menu under the following conditions: - *
  • When a SDLCommand is added with no SDLMenuParams value provided
  • - *
  • When a SDLMenuParams value is provided with a SDLMenuParam.position value - * greater than or equal to the number of menu items currently defined in the - * menu specified by the SDLMenuParam.parentID value
  • - * - * The set of choices which the application builds using SDLAddCommand can be a - * mixture of: - *
  • Choices having only VR synonym definitions, but no SDLMenuParams definitions - *
  • - *
  • Choices having only SDLMenuParams definitions, but no VR synonym definitions - *
  • - *
  • Choices having both SDLMenuParams and VR synonym definitions
  • - * - * HMILevel needs to be FULL, LIMITED or BACKGROUD - * - * @since SDL 1.0 - * - * @see SDLDeleteCommand SDLAddSubMenu SDLDeleteSubMenu - */ -@interface SDLAddCommand : SDLRPCRequest { -} - -/** - * Constructs a new SDLAddCommand object - */ -- (instancetype)init; - -/** - * Constructs a new *SDLAddCommand* object indicated by the dictionary parameter - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A Unique Command ID that identifies the command - * - * @discussion Is returned in an *SDLOnCommand* notification to identify the command selected by the user - * - * Required, Integer, 0 - 2,000,000,000 - */ -@property (strong) NSNumber *cmdID; - -/** - * @abstract a *SDLMenuParams* pointer which will defined the command and how it is added to the Command Menu - * - * @discussion If provided, this will define the command and how it is added to the - * Command Menu - * - * If null, commands will not be accessible through the HMI application menu - * - * Optional - */ -@property (strong) SDLMenuParams *menuParams; - -/** - * @abstract An array of strings to be used as VR synonyms for this command. - * - * @discussion If provided, defines one or more VR phrases the recognition of any of which triggers the *SDLOnCommand* notification with this cmdID - * - * If null, commands will not be accessible by voice commands (when the user hits push-to-talk) - * - * Optional, Array of Strings, Max String length 99 chars, Array size 1 - 100 - */ -@property (strong) NSMutableArray *vrCommands; - -/** - * @abstract Image struct containing a static or dynamic icon - * - * @discussion If provided, defines the image to be be shown along with a command - * - * If omitted on supported displays, no (or the default if applicable) icon will be displayed - * - * Optional - */ -@property (strong) SDLImage *cmdIcon; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.m deleted file mode 100644 index e9630665e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.m +++ /dev/null @@ -1,84 +0,0 @@ -// SDLAddCommand.m -// - - -#import "SDLAddCommand.h" - -#import "SDLImage.h" -#import "SDLMenuParams.h" -#import "SDLNames.h" - - -@implementation SDLAddCommand - -- (instancetype)init { - if (self = [super initWithName:NAMES_AddCommand]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setCmdID:(NSNumber *)cmdID { - if (cmdID != nil) { - [parameters setObject:cmdID forKey:NAMES_cmdID]; - } else { - [parameters removeObjectForKey:NAMES_cmdID]; - } -} - -- (NSNumber *)cmdID { - return [parameters objectForKey:NAMES_cmdID]; -} - -- (void)setMenuParams:(SDLMenuParams *)menuParams { - if (menuParams != nil) { - [parameters setObject:menuParams forKey:NAMES_menuParams]; - } else { - [parameters removeObjectForKey:NAMES_menuParams]; - } -} - -- (SDLMenuParams *)menuParams { - NSObject *obj = [parameters objectForKey:NAMES_menuParams]; - if (obj == nil || [obj isKindOfClass:SDLMenuParams.class]) { - return (SDLMenuParams *)obj; - } else { - return [[SDLMenuParams alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setVrCommands:(NSMutableArray *)vrCommands { - if (vrCommands != nil) { - [parameters setObject:vrCommands forKey:NAMES_vrCommands]; - } else { - [parameters removeObjectForKey:NAMES_vrCommands]; - } -} - -- (NSMutableArray *)vrCommands { - return [parameters objectForKey:NAMES_vrCommands]; -} - -- (void)setCmdIcon:(SDLImage *)cmdIcon { - if (cmdIcon != nil) { - [parameters setObject:cmdIcon forKey:NAMES_cmdIcon]; - } else { - [parameters removeObjectForKey:NAMES_cmdIcon]; - } -} - -- (SDLImage *)cmdIcon { - NSObject *obj = [parameters objectForKey:NAMES_cmdIcon]; - if (obj == nil || [obj isKindOfClass:SDLImage.class]) { - return (SDLImage *)obj; - } else { - return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommandResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommandResponse.h deleted file mode 100644 index dfa132f6d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommandResponse.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLAddCommandResponse.h - - -#import "SDLRPCResponse.h" - - -/** - * SDLAddCommandResponse is sent, when SDLAddCommand has been called - * - * Since SmartDeviceLink 1.0 - */ -@interface SDLAddCommandResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommandResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommandResponse.m deleted file mode 100644 index 3beba9db6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommandResponse.m +++ /dev/null @@ -1,21 +0,0 @@ -// SDLAddCommandResponse.m - -#import "SDLAddCommandResponse.h" - -#import "SDLNames.h" - -@implementation SDLAddCommandResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_AddCommand]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenu.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenu.h deleted file mode 100644 index 0a749b382..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenu.h +++ /dev/null @@ -1,66 +0,0 @@ -// SDLAddSubMenu.h - - -#import "SDLRPCRequest.h" - -/** - * Add a SDLSubMenu to the Command Menu - *

    - * A SDLSubMenu can only be added to the Top Level Menu (i.e.a SDLSubMenu cannot be - * added to a SDLSubMenu), and may only contain commands as children - *

    - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUD - *

    - * - * Since SmartDeviceLink 1.0
    - * see SDLDeleteSubMenu SDLAddCommand SDLDeleteCommand - */ -@interface SDLAddSubMenu : SDLRPCRequest { -} - -/** - * Constructs a new SDLAddSubMenu object - */ -- (instancetype)init; -/** - * Constructs a new SDLAddSubMenu object indicated by the dictionary parameter - *

    - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract a Menu ID that identifies a sub menu - * @discussion This value is used in - * SDLAddCommand to which SDLSubMenu is the parent of the command being added - *

    - */ -@property (strong) NSNumber *menuID; -/** - * @abstract a position of menu - * @discussion An NSNumber pointer representing the position within the items - * of the top level Command Menu. 0 will insert at the front, 1 - * will insert after the first existing element, etc. Position of - * any submenu will always be located before the return and exit - * options - *

    - * Notes:
    - *

      - *
    • - * Min Value: 0; Max Value: 1000
    • - *
    • If position is greater or equal than the number of items - * on top level, the sub menu will be appended by the end
    • - *
    • If this parameter is omitted, the entry will be added at - * the end of the list
    • - *
    - */ -@property (strong) NSNumber *position; -/** - * @abstract a menuName which is displayed representing this submenu item - * @discussion NSString which will be displayed representing this submenu item - */ -@property (strong) NSString *menuName; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenu.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenu.m deleted file mode 100644 index f02192b00..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenu.m +++ /dev/null @@ -1,57 +0,0 @@ -// SDLAddSubMenu.m - -#import "SDLAddSubMenu.h" - -#import "SDLNames.h" - -@implementation SDLAddSubMenu - -- (instancetype)init { - if (self = [super initWithName:NAMES_AddSubMenu]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setMenuID:(NSNumber *)menuID { - if (menuID != nil) { - [parameters setObject:menuID forKey:NAMES_menuID]; - } else { - [parameters removeObjectForKey:NAMES_menuID]; - } -} - -- (NSNumber *)menuID { - return [parameters objectForKey:NAMES_menuID]; -} - -- (void)setPosition:(NSNumber *)position { - if (position != nil) { - [parameters setObject:position forKey:NAMES_position]; - } else { - [parameters removeObjectForKey:NAMES_position]; - } -} - -- (NSNumber *)position { - return [parameters objectForKey:NAMES_position]; -} - -- (void)setMenuName:(NSString *)menuName { - if (menuName != nil) { - [parameters setObject:menuName forKey:NAMES_menuName]; - } else { - [parameters removeObjectForKey:NAMES_menuName]; - } -} - -- (NSString *)menuName { - return [parameters objectForKey:NAMES_menuName]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenuResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenuResponse.h deleted file mode 100644 index 2ea2157d7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenuResponse.h +++ /dev/null @@ -1,16 +0,0 @@ -// SDLAddSubMenuResponse.h - - -#import "SDLRPCResponse.h" - -/** - * SDLAddSubMenuResponse is sent, when SDLAddSubMenu has been called - * Since SmartDeviceLink 1.0 - */ -@interface SDLAddSubMenuResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenuResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenuResponse.m deleted file mode 100644 index 5df2745b5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenuResponse.m +++ /dev/null @@ -1,21 +0,0 @@ -// SDLAddSubMenuResponse.m - -#import "SDLAddSubMenuResponse.h" - -#import "SDLNames.h" - -@implementation SDLAddSubMenuResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_AddSubMenu]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h deleted file mode 100644 index 3681795b5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h +++ /dev/null @@ -1,24 +0,0 @@ -// SDLAirbagStatus.h -// - -#import "SDLRPCMessage.h" - -@class SDLVehicleDataEventStatus; - - -@interface SDLAirbagStatus : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLVehicleDataEventStatus *driverAirbagDeployed; -@property (strong) SDLVehicleDataEventStatus *driverSideAirbagDeployed; -@property (strong) SDLVehicleDataEventStatus *driverCurtainAirbagDeployed; -@property (strong) SDLVehicleDataEventStatus *passengerAirbagDeployed; -@property (strong) SDLVehicleDataEventStatus *passengerCurtainAirbagDeployed; -@property (strong) SDLVehicleDataEventStatus *driverKneeAirbagDeployed; -@property (strong) SDLVehicleDataEventStatus *passengerSideAirbagDeployed; -@property (strong) SDLVehicleDataEventStatus *passengerKneeAirbagDeployed; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.m deleted file mode 100644 index a3ce06689..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.m +++ /dev/null @@ -1,159 +0,0 @@ -// SDLAirbagStatus.m - -#import "SDLAirbagStatus.h" - -#import "SDLNames.h" -#import "SDLVehicleDataEventStatus.h" - - -@implementation SDLAirbagStatus - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setDriverAirbagDeployed:(SDLVehicleDataEventStatus *)driverAirbagDeployed { - if (driverAirbagDeployed != nil) { - [store setObject:driverAirbagDeployed forKey:NAMES_driverAirbagDeployed]; - } else { - [store removeObjectForKey:NAMES_driverAirbagDeployed]; - } -} - -- (SDLVehicleDataEventStatus *)driverAirbagDeployed { - NSObject *obj = [store objectForKey:NAMES_driverAirbagDeployed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setDriverSideAirbagDeployed:(SDLVehicleDataEventStatus *)driverSideAirbagDeployed { - if (driverSideAirbagDeployed != nil) { - [store setObject:driverSideAirbagDeployed forKey:NAMES_driverSideAirbagDeployed]; - } else { - [store removeObjectForKey:NAMES_driverSideAirbagDeployed]; - } -} - -- (SDLVehicleDataEventStatus *)driverSideAirbagDeployed { - NSObject *obj = [store objectForKey:NAMES_driverSideAirbagDeployed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setDriverCurtainAirbagDeployed:(SDLVehicleDataEventStatus *)driverCurtainAirbagDeployed { - if (driverCurtainAirbagDeployed != nil) { - [store setObject:driverCurtainAirbagDeployed forKey:NAMES_driverCurtainAirbagDeployed]; - } else { - [store removeObjectForKey:NAMES_driverCurtainAirbagDeployed]; - } -} - -- (SDLVehicleDataEventStatus *)driverCurtainAirbagDeployed { - NSObject *obj = [store objectForKey:NAMES_driverCurtainAirbagDeployed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setPassengerAirbagDeployed:(SDLVehicleDataEventStatus *)passengerAirbagDeployed { - if (passengerAirbagDeployed != nil) { - [store setObject:passengerAirbagDeployed forKey:NAMES_passengerAirbagDeployed]; - } else { - [store removeObjectForKey:NAMES_passengerAirbagDeployed]; - } -} - -- (SDLVehicleDataEventStatus *)passengerAirbagDeployed { - NSObject *obj = [store objectForKey:NAMES_passengerAirbagDeployed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setPassengerCurtainAirbagDeployed:(SDLVehicleDataEventStatus *)passengerCurtainAirbagDeployed { - if (passengerCurtainAirbagDeployed != nil) { - [store setObject:passengerCurtainAirbagDeployed forKey:NAMES_passengerCurtainAirbagDeployed]; - } else { - [store removeObjectForKey:NAMES_passengerCurtainAirbagDeployed]; - } -} - -- (SDLVehicleDataEventStatus *)passengerCurtainAirbagDeployed { - NSObject *obj = [store objectForKey:NAMES_passengerCurtainAirbagDeployed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setDriverKneeAirbagDeployed:(SDLVehicleDataEventStatus *)driverKneeAirbagDeployed { - if (driverKneeAirbagDeployed != nil) { - [store setObject:driverKneeAirbagDeployed forKey:NAMES_driverKneeAirbagDeployed]; - } else { - [store removeObjectForKey:NAMES_driverKneeAirbagDeployed]; - } -} - -- (SDLVehicleDataEventStatus *)driverKneeAirbagDeployed { - NSObject *obj = [store objectForKey:NAMES_driverKneeAirbagDeployed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setPassengerSideAirbagDeployed:(SDLVehicleDataEventStatus *)passengerSideAirbagDeployed { - if (passengerSideAirbagDeployed != nil) { - [store setObject:passengerSideAirbagDeployed forKey:NAMES_passengerSideAirbagDeployed]; - } else { - [store removeObjectForKey:NAMES_passengerSideAirbagDeployed]; - } -} - -- (SDLVehicleDataEventStatus *)passengerSideAirbagDeployed { - NSObject *obj = [store objectForKey:NAMES_passengerSideAirbagDeployed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setPassengerKneeAirbagDeployed:(SDLVehicleDataEventStatus *)passengerKneeAirbagDeployed { - if (passengerKneeAirbagDeployed != nil) { - [store setObject:passengerKneeAirbagDeployed forKey:NAMES_passengerKneeAirbagDeployed]; - } else { - [store removeObjectForKey:NAMES_passengerKneeAirbagDeployed]; - } -} - -- (SDLVehicleDataEventStatus *)passengerKneeAirbagDeployed { - NSObject *obj = [store objectForKey:NAMES_passengerKneeAirbagDeployed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlert.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlert.h deleted file mode 100644 index 59f909caa..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlert.h +++ /dev/null @@ -1,144 +0,0 @@ -// SDLAlert.h -// - - -#import "SDLRPCRequest.h" - -/** - * Shows an alert which typically consists of text-to-speech message and text on the display. At least either alertText1, alertText2 or TTSChunks need to be provided. - * - *
      - *
    • The displayed portion of the SDLAlert, if any, will persist until the - * specified timeout has elapsed, or the SDLAlert is preempted
    • - *
    • An SDLAlert will preempt (abort) any SmartDeviceLink Operation that is in-progress, - * except an already-in-progress SDLAlert
    • - *
    • An SDLAlert cannot be preempted by any SmartDeviceLink Operation
    • - *
    • An SDLAlert can be preempted by a user action (button push)
    • - *
    • An SDLAlert will fail if it is issued while another SDLAlert is in progress
    • - *
    • Although each Alert parameter is optional, in fact each SDLAlert request - * must supply at least one of the following parameters:
      - *
        - *
      • alertText1
      • - *
      • alertText2
      • - *
      • alertText3
      • - *
      • ttsChunks
      • - *
      - *
    • - *
    - *
    - * HMILevel needs to be FULL or LIMITED.
    - * If the app has been granted function group Notification the SDLHMILevel can - * also be BACKGROUND
    - * - * @since SDL 1.0 - */ -@interface SDLAlert : SDLRPCRequest { -} - -/** - * Constructs a new SDLAlert object - */ -- (instancetype)init; - -/** - * Constructs a new SDLAlert object indicated by the dictionary parameter - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - - -/** - * @abstract The String to be displayed in the first field of the display during the Alert - * - * @discussion Length is limited to what is indicated in *SDLRegisterAppInterface* response - * - * If omitted, top display line will be cleared - * - * Text is always centered - * - * Optional, Max length 500 chars - */ -@property (strong) NSString *alertText1; - -/** - * @abstract The String to be displayed in the second field of the display during the Alert - * - * @discussion Only permitted if HMI supports a second display line - * - * Length is limited to what is indicated in *SDLRegisterAppInterface* response - * - * If omitted, second display line will be cleared - * - * Text is always centered - * - * Optional, Max length 500 chars - */ -@property (strong) NSString *alertText2; - -/** - * @abstract the String to be displayed in the third field of the display during the Alert - * @discussion Only permitted if HMI supports a third display line - * - * Length is limited to what is indicated in *SDLRegisterAppInterface* response - * - * If omitted, third display line will be cleared - * - * Text is always centered - * - * Optional, Max length 500 chars - */ -@property (strong) NSString *alertText3; - -/** - * @abstract An array which, taken together, specify what is to be spoken to the user - * - * Optional, Array of SDLTTSChunk, Array length 1 - 100 - * - * @see SDLTTSChunk - */ -@property (strong) NSMutableArray *ttsChunks; - -/** - * @abstract The duration of the displayed portion of the alert, in milliseconds. - * - * @discussion After this amount of time has passed, the display fields alertText1 and alertText2 will revert to what was displayed in those fields before the alert began. - * - * Typical timeouts are 3 - 5 seconds - * - * If omitted, the timeout is set to 5 seconds - * - * Optional, Integer, 3000 - 10000 - */ -@property (strong) NSNumber *duration; - -/** - * @abstract Whether the alert tone should be played before the TTS (if any) is spoken. - * - * @discussion If ommitted, no tone is played - * - * Optional, Boolean - */ -@property (strong) NSNumber *playTone; - -/** - * @abstract If supported on the given platform, the alert GUI will include some sort of animation indicating that loading of a feature is progressing. e.g. a spinning wheel or hourglass, etc. - * - * Optional, Boolean - * - * @since SmartDeviceLink 2.0 - */ -@property (strong) NSNumber *progressIndicator; - -/** - * @abstract App defined SoftButtons. - * - * @discussion If omitted on supported displays, the displayed alert shall not have any SoftButtons - * - * Optional, Array of SDLSoftButton, Array size 0 - 4 - * - * @see SDLSoftButton - */ -@property (strong) NSMutableArray *softButtons; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlert.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlert.m deleted file mode 100644 index ddc7fdc3a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlert.m +++ /dev/null @@ -1,137 +0,0 @@ -// SDLAlert.m - -#import "SDLAlert.h" - -#import "SDLNames.h" -#import "SDLSoftButton.h" -#import "SDLTTSChunk.h" - -@implementation SDLAlert - -- (instancetype)init { - if (self = [super initWithName:NAMES_Alert]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setAlertText1:(NSString *)alertText1 { - if (alertText1 != nil) { - [parameters setObject:alertText1 forKey:NAMES_alertText1]; - } else { - [parameters removeObjectForKey:NAMES_alertText1]; - } -} - -- (NSString *)alertText1 { - return [parameters objectForKey:NAMES_alertText1]; -} - -- (void)setAlertText2:(NSString *)alertText2 { - if (alertText2 != nil) { - [parameters setObject:alertText2 forKey:NAMES_alertText2]; - } else { - [parameters removeObjectForKey:NAMES_alertText2]; - } -} - -- (NSString *)alertText2 { - return [parameters objectForKey:NAMES_alertText2]; -} - -- (void)setAlertText3:(NSString *)alertText3 { - if (alertText3 != nil) { - [parameters setObject:alertText3 forKey:NAMES_alertText3]; - } else { - [parameters removeObjectForKey:NAMES_alertText3]; - } -} - -- (NSString *)alertText3 { - return [parameters objectForKey:NAMES_alertText3]; -} - -- (void)setTtsChunks:(NSMutableArray *)ttsChunks { - if (ttsChunks != nil) { - [parameters setObject:ttsChunks forKey:NAMES_ttsChunks]; - } else { - [parameters removeObjectForKey:NAMES_ttsChunks]; - } -} - -- (NSMutableArray *)ttsChunks { - NSMutableArray *array = [parameters objectForKey:NAMES_ttsChunks]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setDuration:(NSNumber *)duration { - if (duration != nil) { - [parameters setObject:duration forKey:NAMES_duration]; - } else { - [parameters removeObjectForKey:NAMES_duration]; - } -} - -- (NSNumber *)duration { - return [parameters objectForKey:NAMES_duration]; -} - -- (void)setPlayTone:(NSNumber *)playTone { - if (playTone != nil) { - [parameters setObject:playTone forKey:NAMES_playTone]; - } else { - [parameters removeObjectForKey:NAMES_playTone]; - } -} - -- (NSNumber *)playTone { - return [parameters objectForKey:NAMES_playTone]; -} - -- (void)setProgressIndicator:(NSNumber *)progressIndicator { - if (progressIndicator != nil) { - [parameters setObject:progressIndicator forKey:NAMES_progressIndicator]; - } else { - [parameters removeObjectForKey:NAMES_progressIndicator]; - } -} - -- (NSNumber *)progressIndicator { - return [parameters objectForKey:NAMES_progressIndicator]; -} - -- (void)setSoftButtons:(NSMutableArray *)softButtons { - if (softButtons != nil) { - [parameters setObject:softButtons forKey:NAMES_softButtons]; - } else { - [parameters removeObjectForKey:NAMES_softButtons]; - } -} - -- (NSMutableArray *)softButtons { - NSMutableArray *array = [parameters objectForKey:NAMES_softButtons]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButton.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuver.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuver.h deleted file mode 100644 index 2bb8e12ed..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuver.h +++ /dev/null @@ -1,19 +0,0 @@ -// SDLAlertManeuver.h -// - - -#import "SDLRPCRequest.h" - -/** - * @since SmartDeviceLink 1.0 - */ -@interface SDLAlertManeuver : SDLRPCRequest { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSMutableArray *ttsChunks; -@property (strong) NSMutableArray *softButtons; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuver.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuver.m deleted file mode 100644 index 81717506f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuver.m +++ /dev/null @@ -1,67 +0,0 @@ -// SDLAlertManeuver.m -// - - -#import "SDLAlertManeuver.h" - -#import "SDLNames.h" -#import "SDLSoftButton.h" -#import "SDLTTSChunk.h" - -@implementation SDLAlertManeuver - -- (instancetype)init { - if (self = [super initWithName:NAMES_AlertManeuver]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setTtsChunks:(NSMutableArray *)ttsChunks { - if (ttsChunks != nil) { - [parameters setObject:ttsChunks forKey:NAMES_ttsChunks]; - } else { - [parameters removeObjectForKey:NAMES_ttsChunks]; - } -} - -- (NSMutableArray *)ttsChunks { - NSMutableArray *array = [parameters objectForKey:NAMES_ttsChunks]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setSoftButtons:(NSMutableArray *)softButtons { - if (softButtons != nil) { - [parameters setObject:softButtons forKey:NAMES_softButtons]; - } else { - [parameters removeObjectForKey:NAMES_softButtons]; - } -} - -- (NSMutableArray *)softButtons { - NSMutableArray *array = [parameters objectForKey:NAMES_softButtons]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButton.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuverResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuverResponse.h deleted file mode 100644 index b7d3d6c0a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuverResponse.h +++ /dev/null @@ -1,16 +0,0 @@ -// SDLAlertManeuverResponse.h -// - - -#import "SDLRPCResponse.h" - -/** SDLAlertManeuverResponse is sent, when SDLAlertManeuver has been called. - * @since SmartDeviceLink 1.0 - */ -@interface SDLAlertManeuverResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuverResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuverResponse.m deleted file mode 100644 index 5687d3117..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuverResponse.m +++ /dev/null @@ -1,22 +0,0 @@ -// SDLAlertManeuverResponse.m -// - -#import "SDLAlertManeuverResponse.h" - -#import "SDLNames.h" - -@implementation SDLAlertManeuverResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_AlertManeuver]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertResponse.h deleted file mode 100644 index 81228d34a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertResponse.h +++ /dev/null @@ -1,19 +0,0 @@ -// SDLAlertResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Sent after SDLAlert has been sent - * @since SDL 1.0 - */ -@interface SDLAlertResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSNumber *tryAgainTime; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertResponse.m deleted file mode 100644 index f55982377..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertResponse.m +++ /dev/null @@ -1,34 +0,0 @@ -// SDLAlertResponse.m -// - -#import "SDLAlertResponse.h" - -#import "SDLNames.h" - -@implementation SDLAlertResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_Alert]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setTryAgainTime:(NSNumber *)tryAgainTime { - if (tryAgainTime != nil) { - [parameters setObject:tryAgainTime forKey:NAMES_tryAgainTime]; - } else { - [parameters removeObjectForKey:NAMES_tryAgainTime]; - } -} - -- (NSNumber *)tryAgainTime { - return [parameters objectForKey:NAMES_tryAgainTime]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h deleted file mode 100644 index c778c2104..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h +++ /dev/null @@ -1,26 +0,0 @@ -// SDLAmbientLightStatus.h -// - - -#import "SDLEnum.h" - -/** - * Reflects the status of the ambient light sensor - * @since SDL 3.0 - */ -@interface SDLAmbientLightStatus : SDLEnum { -} - -+ (SDLAmbientLightStatus *)valueOf:(NSString *)value; -+ (NSArray *)values; - -+ (SDLAmbientLightStatus *)NIGHT; -+ (SDLAmbientLightStatus *)TWILIGHT_1; -+ (SDLAmbientLightStatus *)TWILIGHT_2; -+ (SDLAmbientLightStatus *)TWILIGHT_3; -+ (SDLAmbientLightStatus *)TWILIGHT_4; -+ (SDLAmbientLightStatus *)DAY; -+ (SDLAmbientLightStatus *)UNKNOWN; -+ (SDLAmbientLightStatus *)INVALID; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.m deleted file mode 100644 index 7fa21db4a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.m +++ /dev/null @@ -1,100 +0,0 @@ -// SDLAmbientLightStatus.m -// - -#import "SDLAmbientLightStatus.h" - -SDLAmbientLightStatus *SDLAmbientLightStatus_NIGHT = nil; -SDLAmbientLightStatus *SDLAmbientLightStatus_TWILIGHT_1 = nil; -SDLAmbientLightStatus *SDLAmbientLightStatus_TWILIGHT_2 = nil; -SDLAmbientLightStatus *SDLAmbientLightStatus_TWILIGHT_3 = nil; -SDLAmbientLightStatus *SDLAmbientLightStatus_TWILIGHT_4 = nil; -SDLAmbientLightStatus *SDLAmbientLightStatus_DAY = nil; -SDLAmbientLightStatus *SDLAmbientLightStatus_UNKNOWN = nil; -SDLAmbientLightStatus *SDLAmbientLightStatus_INVALID = nil; - -NSArray *SDLAmbientLightStatus_values = nil; - -@implementation SDLAmbientLightStatus - -+ (SDLAmbientLightStatus *)valueOf:(NSString *)value { - for (SDLAmbientLightStatus *item in SDLAmbientLightStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLAmbientLightStatus_values == nil) { - SDLAmbientLightStatus_values = @[ - SDLAmbientLightStatus.NIGHT, - SDLAmbientLightStatus.TWILIGHT_1, - SDLAmbientLightStatus.TWILIGHT_2, - SDLAmbientLightStatus.TWILIGHT_3, - SDLAmbientLightStatus.TWILIGHT_4, - SDLAmbientLightStatus.DAY, - SDLAmbientLightStatus.UNKNOWN, - SDLAmbientLightStatus.INVALID, - ]; - } - return SDLAmbientLightStatus_values; -} - -+ (SDLAmbientLightStatus *)NIGHT { - if (SDLAmbientLightStatus_NIGHT == nil) { - SDLAmbientLightStatus_NIGHT = [[SDLAmbientLightStatus alloc] initWithValue:@"NIGHT"]; - } - return SDLAmbientLightStatus_NIGHT; -} - -+ (SDLAmbientLightStatus *)TWILIGHT_1 { - if (SDLAmbientLightStatus_TWILIGHT_1 == nil) { - SDLAmbientLightStatus_TWILIGHT_1 = [[SDLAmbientLightStatus alloc] initWithValue:@"TWILIGHT_1"]; - } - return SDLAmbientLightStatus_TWILIGHT_1; -} - -+ (SDLAmbientLightStatus *)TWILIGHT_2 { - if (SDLAmbientLightStatus_TWILIGHT_2 == nil) { - SDLAmbientLightStatus_TWILIGHT_2 = [[SDLAmbientLightStatus alloc] initWithValue:@"TWILIGHT_2"]; - } - return SDLAmbientLightStatus_TWILIGHT_2; -} - -+ (SDLAmbientLightStatus *)TWILIGHT_3 { - if (SDLAmbientLightStatus_TWILIGHT_3 == nil) { - SDLAmbientLightStatus_TWILIGHT_3 = [[SDLAmbientLightStatus alloc] initWithValue:@"TWILIGHT_3"]; - } - return SDLAmbientLightStatus_TWILIGHT_3; -} - -+ (SDLAmbientLightStatus *)TWILIGHT_4 { - if (SDLAmbientLightStatus_TWILIGHT_4 == nil) { - SDLAmbientLightStatus_TWILIGHT_4 = [[SDLAmbientLightStatus alloc] initWithValue:@"TWILIGHT_4"]; - } - return SDLAmbientLightStatus_TWILIGHT_4; -} - -+ (SDLAmbientLightStatus *)DAY { - if (SDLAmbientLightStatus_DAY == nil) { - SDLAmbientLightStatus_DAY = [[SDLAmbientLightStatus alloc] initWithValue:@"DAY"]; - } - return SDLAmbientLightStatus_DAY; -} - -+ (SDLAmbientLightStatus *)UNKNOWN { - if (SDLAmbientLightStatus_UNKNOWN == nil) { - SDLAmbientLightStatus_UNKNOWN = [[SDLAmbientLightStatus alloc] initWithValue:@"UNKNOWN"]; - } - return SDLAmbientLightStatus_UNKNOWN; -} - -+ (SDLAmbientLightStatus *)INVALID { - if (SDLAmbientLightStatus_INVALID == nil) { - SDLAmbientLightStatus_INVALID = [[SDLAmbientLightStatus alloc] initWithValue:@"INVALID"]; - } - return SDLAmbientLightStatus_INVALID; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppHMIType.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppHMIType.h deleted file mode 100644 index 3aaa45170..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppHMIType.h +++ /dev/null @@ -1,96 +0,0 @@ -// SDLAppHMIType.h -// - - -#import "SDLEnum.h" - -/** - * Enumeration listing possible app hmi types. - * - * @since SDL 2.0 - */ -@interface SDLAppHMIType : SDLEnum { -} - -/** - * @abstract Convert String to AppHMIType - * - * @param value The value of the string to get an object for - * - * @return SDLAppHMIType - */ -+ (SDLAppHMIType *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLAppHMIType - * - * @return an array that store all possible SDLAppHMIType - */ -+ (NSArray *)values; - -/** - * @abstract The App will have default rights. - * - * @return SDLAppHMIType with value *DEFAULT* - */ -+ (SDLAppHMIType *)DEFAULT; - -/** - * @abstract Communication type of App - * - * @return SDLAppHMIType with value *COMMUNICATION* - */ -+ (SDLAppHMIType *)COMMUNICATION; - -/** - * @abstract App dealing with Media - * - * @return SDLAppHMIType with value *MEDIA* - */ -+ (SDLAppHMIType *)MEDIA; - -/** - * @abstract Messaging App - * - * @return SDLAppHMIType with value *MESSAGING* - */ -+ (SDLAppHMIType *)MESSAGING; - -/** - * @abstract Navigation App - * - * @return SDLAppHMIType with value *NAVIGATION* - */ -+ (SDLAppHMIType *)NAVIGATION; - -/** - * @abstract Information App - * - * @return SDLAppHMIType with value *INFORMATION* - */ -+ (SDLAppHMIType *)INFORMATION; - -/** - * @abstract App dealing with social media - * - * @return SDLAppHMIType with value *SOCIAL* - */ -+ (SDLAppHMIType *)SOCIAL; - -+ (SDLAppHMIType *)BACKGROUND_PROCESS; - -/** - * @abstract App only for Testing purposes - * - * @return SDLAppHMIType with value *TESTING* - */ -+ (SDLAppHMIType *)TESTING; - -/** - * @abstract System App - * - * @return SDLAppHMIType with value *SYSTEM* - */ -+ (SDLAppHMIType *)SYSTEM; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppHMIType.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppHMIType.m deleted file mode 100644 index f09f3af44..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppHMIType.m +++ /dev/null @@ -1,119 +0,0 @@ -// SDLAppHMIType.m -// - - -#import "SDLAppHMIType.h" - -SDLAppHMIType *SDLAppHMIType_DEFAULT = nil; -SDLAppHMIType *SDLAppHMIType_COMMUNICATION = nil; -SDLAppHMIType *SDLAppHMIType_MEDIA = nil; -SDLAppHMIType *SDLAppHMIType_MESSAGING = nil; -SDLAppHMIType *SDLAppHMIType_NAVIGATION = nil; -SDLAppHMIType *SDLAppHMIType_INFORMATION = nil; -SDLAppHMIType *SDLAppHMIType_SOCIAL = nil; -SDLAppHMIType *SDLAppHMIType_BACKGROUND_PROCESS = nil; -SDLAppHMIType *SDLAppHMIType_TESTING = nil; -SDLAppHMIType *SDLAppHMIType_SYSTEM = nil; - -NSArray *SDLAppHMIType_values = nil; - -@implementation SDLAppHMIType - -+ (SDLAppHMIType *)valueOf:(NSString *)value { - for (SDLAppHMIType *item in SDLAppHMIType.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLAppHMIType_values == nil) { - SDLAppHMIType_values = @[ - SDLAppHMIType.DEFAULT, - SDLAppHMIType.COMMUNICATION, - SDLAppHMIType.MEDIA, - SDLAppHMIType.MESSAGING, - SDLAppHMIType.NAVIGATION, - SDLAppHMIType.INFORMATION, - SDLAppHMIType.SOCIAL, - SDLAppHMIType.BACKGROUND_PROCESS, - SDLAppHMIType.TESTING, - SDLAppHMIType.SYSTEM, - ]; - } - return SDLAppHMIType_values; -} - -+ (SDLAppHMIType *)DEFAULT { - if (SDLAppHMIType_DEFAULT == nil) { - SDLAppHMIType_DEFAULT = [[SDLAppHMIType alloc] initWithValue:@"DEFAULT"]; - } - return SDLAppHMIType_DEFAULT; -} - -+ (SDLAppHMIType *)COMMUNICATION { - if (SDLAppHMIType_COMMUNICATION == nil) { - SDLAppHMIType_COMMUNICATION = [[SDLAppHMIType alloc] initWithValue:@"COMMUNICATION"]; - } - return SDLAppHMIType_COMMUNICATION; -} - -+ (SDLAppHMIType *)MEDIA { - if (SDLAppHMIType_MEDIA == nil) { - SDLAppHMIType_MEDIA = [[SDLAppHMIType alloc] initWithValue:@"MEDIA"]; - } - return SDLAppHMIType_MEDIA; -} - -+ (SDLAppHMIType *)MESSAGING { - if (SDLAppHMIType_MESSAGING == nil) { - SDLAppHMIType_MESSAGING = [[SDLAppHMIType alloc] initWithValue:@"MESSAGING"]; - } - return SDLAppHMIType_MESSAGING; -} - -+ (SDLAppHMIType *)NAVIGATION { - if (SDLAppHMIType_NAVIGATION == nil) { - SDLAppHMIType_NAVIGATION = [[SDLAppHMIType alloc] initWithValue:@"NAVIGATION"]; - } - return SDLAppHMIType_NAVIGATION; -} - -+ (SDLAppHMIType *)INFORMATION { - if (SDLAppHMIType_INFORMATION == nil) { - SDLAppHMIType_INFORMATION = [[SDLAppHMIType alloc] initWithValue:@"INFORMATION"]; - } - return SDLAppHMIType_INFORMATION; -} - -+ (SDLAppHMIType *)SOCIAL { - if (SDLAppHMIType_SOCIAL == nil) { - SDLAppHMIType_SOCIAL = [[SDLAppHMIType alloc] initWithValue:@"SOCIAL"]; - } - return SDLAppHMIType_SOCIAL; -} - -+ (SDLAppHMIType *)BACKGROUND_PROCESS { - if (SDLAppHMIType_BACKGROUND_PROCESS == nil) { - SDLAppHMIType_BACKGROUND_PROCESS = [[SDLAppHMIType alloc] initWithValue:@"BACKGROUND_PROCESS"]; - } - return SDLAppHMIType_BACKGROUND_PROCESS; -} - -+ (SDLAppHMIType *)TESTING { - if (SDLAppHMIType_TESTING == nil) { - SDLAppHMIType_TESTING = [[SDLAppHMIType alloc] initWithValue:@"TESTING"]; - } - return SDLAppHMIType_TESTING; -} - -+ (SDLAppHMIType *)SYSTEM { - if (SDLAppHMIType_SYSTEM == nil) { - SDLAppHMIType_SYSTEM = [[SDLAppHMIType alloc] initWithValue:@"SYSTEM"]; - } - return SDLAppHMIType_SYSTEM; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.h deleted file mode 100644 index 4fce3ba16..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.h +++ /dev/null @@ -1,103 +0,0 @@ -// SDLAppInterfaceUnregisteredReason.h -// - - -#import "SDLEnum.h" - -/** - * Indicates reason why app interface was unregistered. The application is being disconnected by SDL. - * - * @since SDL 1.0 - */ -@interface SDLAppInterfaceUnregisteredReason : SDLEnum { -} - -/** - * @abstract Convert String to SDLAppInterfaceUnregisteredReason - * - * @param value String value to retrieve the object for - * - * @return SDLAppInterfaceUnregisteredReason - */ -+ (SDLAppInterfaceUnregisteredReason *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLAppInterfaceUnregisteredReason - * - * @return an array that stores all possible SDLAppInterfaceUnregisteredReason - */ -+ (NSArray *)values; - -/** - * @abstract Vehicle ignition turned off. - * - * @return SDLAppInterfaceUnregisteredReason with value *IGNITION_OFF* - */ -+ (SDLAppInterfaceUnregisteredReason *)IGNITION_OFF; - -/** - * @abstract Bluetooth was turned off, causing termination of a necessary Bluetooth connection. - * - * @return SDLAppInterfaceUnregisteredReason with value *BLUETOOTH_OFF* - */ -+ (SDLAppInterfaceUnregisteredReason *)BLUETOOTH_OFF; - -/** - * @abstract USB was disconnected, causing termination of a necessary iAP connection. - * - * @return SDLAppInterfaceUnregisteredReason with value *USB_DISCONNECTED* - */ -+ (SDLAppInterfaceUnregisteredReason *)USB_DISCONNECTED; - -/** - * @abstract Application attempted SmartDeviceLink RPC request while HMILevel = NONE. App must have HMILevel other than NONE to issue RPC requests or get notifications or RPC responses. - * - * @return SDLAppInterfaceUnregisteredReason with value *REQUEST_WHILE_IN_NONE_HMI_LEVEL* - */ -+ (SDLAppInterfaceUnregisteredReason *)REQUEST_WHILE_IN_NONE_HMI_LEVEL; - -/** - * @abstract Either too many -- or too many per unit of time -- requests were made by the application. - * - * @return SDLAppInterfaceUnregisteredReason with value *TOO_MANY_REQUESTS* - */ -+ (SDLAppInterfaceUnregisteredReason *)TOO_MANY_REQUESTS; - -/** - * @abstract The application has issued requests which cause driver distraction rules to be violated. - * - * @return SDLAppInterfaceUnregisteredReason with value *DRIVER_DISTRACTION_VIOLATION* - */ -+ (SDLAppInterfaceUnregisteredReason *)DRIVER_DISTRACTION_VIOLATION; - -/** - * @abstract The user performed a language change on the SDL platform, causing the application to need to be reregistered for the new language. - * - * @return SDLAppInterfaceUnregisteredReason with value *LANGUAGE_CHANGE* - */ -+ (SDLAppInterfaceUnregisteredReason *)LANGUAGE_CHANGE; - -/** - * @abstract The user performed a MASTER RESET on the SDL platform, causing removal of a necessary Bluetooth pairing. - * - * @return SDLAppInterfaceUnregisteredReason with value *MASTER_RESET* - */ -+ (SDLAppInterfaceUnregisteredReason *)MASTER_RESET; - -/** - * @abstract The user restored settings to FACTORY DEFAULTS on the SDL platform. - * - * @return SDLAppInterfaceUnregisteredReason with value *FACTORY_DEFAULTS* - */ -+ (SDLAppInterfaceUnregisteredReason *)FACTORY_DEFAULTS; - -/** - * @abstract The app is not being authorized to be connected to SDL. - * - * @return SDLAppInterfaceUnregisteredReason with value *APP_UNAUTHORIZED* - * - * @since SDL 2.0 - */ -+ (SDLAppInterfaceUnregisteredReason *)APP_UNAUTHORIZED; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.m deleted file mode 100644 index 72c19a8f5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.m +++ /dev/null @@ -1,118 +0,0 @@ -// SDLAppInterfaceUnregisteredReason.m -// - -#import "SDLAppInterfaceUnregisteredReason.h" - -SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_IGNITION_OFF = nil; -SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_BLUETOOTH_OFF = nil; -SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_USB_DISCONNECTED = nil; -SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_REQUEST_WHILE_IN_NONE_HMI_LEVEL = nil; -SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_TOO_MANY_REQUESTS = nil; -SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_DRIVER_DISTRACTION_VIOLATION = nil; -SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_LANGUAGE_CHANGE = nil; -SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_MASTER_RESET = nil; -SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_FACTORY_DEFAULTS = nil; -SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_APP_UNAUTHORIZED = nil; - -NSArray *SDLAppInterfaceUnregisteredReason_values = nil; - -@implementation SDLAppInterfaceUnregisteredReason - -+ (SDLAppInterfaceUnregisteredReason *)valueOf:(NSString *)value { - for (SDLAppInterfaceUnregisteredReason *item in SDLAppInterfaceUnregisteredReason.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLAppInterfaceUnregisteredReason_values == nil) { - SDLAppInterfaceUnregisteredReason_values = @[ - SDLAppInterfaceUnregisteredReason.IGNITION_OFF, - SDLAppInterfaceUnregisteredReason.BLUETOOTH_OFF, - SDLAppInterfaceUnregisteredReason.USB_DISCONNECTED, - SDLAppInterfaceUnregisteredReason.REQUEST_WHILE_IN_NONE_HMI_LEVEL, - SDLAppInterfaceUnregisteredReason.TOO_MANY_REQUESTS, - SDLAppInterfaceUnregisteredReason.DRIVER_DISTRACTION_VIOLATION, - SDLAppInterfaceUnregisteredReason.LANGUAGE_CHANGE, - SDLAppInterfaceUnregisteredReason.MASTER_RESET, - SDLAppInterfaceUnregisteredReason.FACTORY_DEFAULTS, - SDLAppInterfaceUnregisteredReason.APP_UNAUTHORIZED, - ]; - } - return SDLAppInterfaceUnregisteredReason_values; -} - -+ (SDLAppInterfaceUnregisteredReason *)IGNITION_OFF { - if (SDLAppInterfaceUnregisteredReason_IGNITION_OFF == nil) { - SDLAppInterfaceUnregisteredReason_IGNITION_OFF = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"IGNITION_OFF"]; - } - return SDLAppInterfaceUnregisteredReason_IGNITION_OFF; -} - -+ (SDLAppInterfaceUnregisteredReason *)BLUETOOTH_OFF { - if (SDLAppInterfaceUnregisteredReason_BLUETOOTH_OFF == nil) { - SDLAppInterfaceUnregisteredReason_BLUETOOTH_OFF = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"BLUETOOTH_OFF"]; - } - return SDLAppInterfaceUnregisteredReason_BLUETOOTH_OFF; -} - -+ (SDLAppInterfaceUnregisteredReason *)USB_DISCONNECTED { - if (SDLAppInterfaceUnregisteredReason_USB_DISCONNECTED == nil) { - SDLAppInterfaceUnregisteredReason_USB_DISCONNECTED = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"USB_DISCONNECTED"]; - } - return SDLAppInterfaceUnregisteredReason_USB_DISCONNECTED; -} - -+ (SDLAppInterfaceUnregisteredReason *)REQUEST_WHILE_IN_NONE_HMI_LEVEL { - if (SDLAppInterfaceUnregisteredReason_REQUEST_WHILE_IN_NONE_HMI_LEVEL == nil) { - SDLAppInterfaceUnregisteredReason_REQUEST_WHILE_IN_NONE_HMI_LEVEL = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"REQUEST_WHILE_IN_NONE_HMI_LEVEL"]; - } - return SDLAppInterfaceUnregisteredReason_REQUEST_WHILE_IN_NONE_HMI_LEVEL; -} - -+ (SDLAppInterfaceUnregisteredReason *)TOO_MANY_REQUESTS { - if (SDLAppInterfaceUnregisteredReason_TOO_MANY_REQUESTS == nil) { - SDLAppInterfaceUnregisteredReason_TOO_MANY_REQUESTS = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"TOO_MANY_REQUESTS"]; - } - return SDLAppInterfaceUnregisteredReason_TOO_MANY_REQUESTS; -} - -+ (SDLAppInterfaceUnregisteredReason *)DRIVER_DISTRACTION_VIOLATION { - if (SDLAppInterfaceUnregisteredReason_DRIVER_DISTRACTION_VIOLATION == nil) { - SDLAppInterfaceUnregisteredReason_DRIVER_DISTRACTION_VIOLATION = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"DRIVER_DISTRACTION_VIOLATION"]; - } - return SDLAppInterfaceUnregisteredReason_DRIVER_DISTRACTION_VIOLATION; -} - -+ (SDLAppInterfaceUnregisteredReason *)LANGUAGE_CHANGE { - if (SDLAppInterfaceUnregisteredReason_LANGUAGE_CHANGE == nil) { - SDLAppInterfaceUnregisteredReason_LANGUAGE_CHANGE = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"LANGUAGE_CHANGE"]; - } - return SDLAppInterfaceUnregisteredReason_LANGUAGE_CHANGE; -} - -+ (SDLAppInterfaceUnregisteredReason *)MASTER_RESET { - if (SDLAppInterfaceUnregisteredReason_MASTER_RESET == nil) { - SDLAppInterfaceUnregisteredReason_MASTER_RESET = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"MASTER_RESET"]; - } - return SDLAppInterfaceUnregisteredReason_MASTER_RESET; -} - -+ (SDLAppInterfaceUnregisteredReason *)FACTORY_DEFAULTS { - if (SDLAppInterfaceUnregisteredReason_FACTORY_DEFAULTS == nil) { - SDLAppInterfaceUnregisteredReason_FACTORY_DEFAULTS = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"FACTORY_DEFAULTS"]; - } - return SDLAppInterfaceUnregisteredReason_FACTORY_DEFAULTS; -} - -+ (SDLAppInterfaceUnregisteredReason *)APP_UNAUTHORIZED { - if (SDLAppInterfaceUnregisteredReason_APP_UNAUTHORIZED == nil) { - SDLAppInterfaceUnregisteredReason_APP_UNAUTHORIZED = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"APP_UNAUTHORIZED"]; - } - return SDLAppInterfaceUnregisteredReason_APP_UNAUTHORIZED; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.h deleted file mode 100644 index 96772b62b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.h +++ /dev/null @@ -1,74 +0,0 @@ -// SDLAudioPassThruCapabilities.h -// - -#import "SDLRPCMessage.h" - -@class SDLAudioType; -@class SDLBitsPerSample; -@class SDLSamplingRate; - - -/** - * Describes different audio type configurations for SDLPerformAudioPassThru, e.g. {8kHz,8-bit,PCM} - *

    Parameter List - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
    NameTypeDescriptionSmartDeviceLink Ver. Available
    samplingRateSDLSamplingRate * Describes the sampling rate for AudioPassThru - * SmartDeviceLink 2.0
    bitsPerSampleSDLBitsPerSample * Describes the sample depth in bit for AudioPassThru - * SmartDeviceLink 2.0
    audioTypeSDLAudioType * Describes the audiotype for AudioPassThru - * SmartDeviceLink 2.0
    - * Since SmartDeviceLink 2.0 - */ -@interface SDLAudioPassThruCapabilities : SDLRPCStruct { -} - -/** - * Constructs a newly allocated SDLAudioPassThruCapabilities object - */ -- (instancetype)init; -/** - * Constructs a newly allocated SDLAudioPassThruCapabilities object indicated by the Hashtable parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The sampling rate for AudioPassThru
    - * - */ -@property (strong) SDLSamplingRate *samplingRate; -/** - * @abstract The sample depth in bit for AudioPassThru
    - * - */ -@property (strong) SDLBitsPerSample *bitsPerSample; -/** - * @abstract The audiotype for AudioPassThru
    - * - */ -@property (strong) SDLAudioType *audioType; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.m deleted file mode 100644 index fbb02be84..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.m +++ /dev/null @@ -1,78 +0,0 @@ -// SDLAudioPassThruCapabilities.m -// - - -#import "SDLAudioPassThruCapabilities.h" - -#import "SDLAudioType.h" -#import "SDLBitsPerSample.h" -#import "SDLNames.h" -#import "SDLSamplingRate.h" - - -@implementation SDLAudioPassThruCapabilities - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setSamplingRate:(SDLSamplingRate *)samplingRate { - if (samplingRate != nil) { - [store setObject:samplingRate forKey:NAMES_samplingRate]; - } else { - [store removeObjectForKey:NAMES_samplingRate]; - } -} - -- (SDLSamplingRate *)samplingRate { - NSObject *obj = [store objectForKey:NAMES_samplingRate]; - if (obj == nil || [obj isKindOfClass:SDLSamplingRate.class]) { - return (SDLSamplingRate *)obj; - } else { - return [SDLSamplingRate valueOf:(NSString *)obj]; - } -} - -- (void)setBitsPerSample:(SDLBitsPerSample *)bitsPerSample { - if (bitsPerSample != nil) { - [store setObject:bitsPerSample forKey:NAMES_bitsPerSample]; - } else { - [store removeObjectForKey:NAMES_bitsPerSample]; - } -} - -- (SDLBitsPerSample *)bitsPerSample { - NSObject *obj = [store objectForKey:NAMES_bitsPerSample]; - if (obj == nil || [obj isKindOfClass:SDLBitsPerSample.class]) { - return (SDLBitsPerSample *)obj; - } else { - return [SDLBitsPerSample valueOf:(NSString *)obj]; - } -} - -- (void)setAudioType:(SDLAudioType *)audioType { - if (audioType != nil) { - [store setObject:audioType forKey:NAMES_audioType]; - } else { - [store removeObjectForKey:NAMES_audioType]; - } -} - -- (SDLAudioType *)audioType { - NSObject *obj = [store objectForKey:NAMES_audioType]; - if (obj == nil || [obj isKindOfClass:SDLAudioType.class]) { - return (SDLAudioType *)obj; - } else { - return [SDLAudioType valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioStreamingState.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioStreamingState.h deleted file mode 100644 index 3f364495e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioStreamingState.h +++ /dev/null @@ -1,52 +0,0 @@ -// SDLAudioStreamingState.h -// - - -#import "SDLEnum.h" - -/** - * Describes whether or not streaming audio is currently audible to the user. Though provided in every OnHMIStatus notification, this information is only relevant for applications that declare themselves as media apps in RegisterAppInterface - * - * @since SDL 1.0 - */ -@interface SDLAudioStreamingState : SDLEnum { -} - -/** - * @abstract Convert String to SDLAudioStreamingState - * - * @param value The value of the string to get an object for - * - * @return SDLAudioStreamingState - */ -+ (SDLAudioStreamingState *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLAudioStreamingState - * - * @return an array that store all possible SDLAudioStreamingState - */ -+ (NSArray *)values; -/** - * @abstract Currently streaming audio, if any, is audible to user. - * - * @return SDLAudioStreamingState with value of *AUDIBLE* - */ -+ (SDLAudioStreamingState *)AUDIBLE; - -/** - * @abstract Some kind of audio mixing is taking place. Currently streaming audio, if any, is audible to the user at a lowered volume. - * - * @return SDLAudioStreamingState with value of *ATTENUATED* - * - * @since SDL 2.0 - */ -+ (SDLAudioStreamingState *)ATTENUATED; - -/** - * @abstract Currently streaming audio, if any, is not audible to user. made via VR session. - * - * @return SDLAudioStreamingState with value of *NOT_AUDIBLE* - */ -+ (SDLAudioStreamingState *)NOT_AUDIBLE; -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioStreamingState.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioStreamingState.m deleted file mode 100644 index 38b8676c3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioStreamingState.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLAudioStreamingState.m -// - - -#import "SDLAudioStreamingState.h" - -SDLAudioStreamingState *SDLAudioStreamingState_AUDIBLE = nil; -SDLAudioStreamingState *SDLAudioStreamingState_ATTENUATED = nil; -SDLAudioStreamingState *SDLAudioStreamingState_NOT_AUDIBLE = nil; - -NSArray *SDLAudioStreamingState_values = nil; - -@implementation SDLAudioStreamingState - -+ (SDLAudioStreamingState *)valueOf:(NSString *)value { - for (SDLAudioStreamingState *item in SDLAudioStreamingState.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLAudioStreamingState_values == nil) { - SDLAudioStreamingState_values = @[ - SDLAudioStreamingState.AUDIBLE, - SDLAudioStreamingState.ATTENUATED, - SDLAudioStreamingState.NOT_AUDIBLE, - ]; - } - return SDLAudioStreamingState_values; -} - -+ (SDLAudioStreamingState *)AUDIBLE { - if (SDLAudioStreamingState_AUDIBLE == nil) { - SDLAudioStreamingState_AUDIBLE = [[SDLAudioStreamingState alloc] initWithValue:@"AUDIBLE"]; - } - return SDLAudioStreamingState_AUDIBLE; -} - -+ (SDLAudioStreamingState *)ATTENUATED { - if (SDLAudioStreamingState_ATTENUATED == nil) { - SDLAudioStreamingState_ATTENUATED = [[SDLAudioStreamingState alloc] initWithValue:@"ATTENUATED"]; - } - return SDLAudioStreamingState_ATTENUATED; -} - -+ (SDLAudioStreamingState *)NOT_AUDIBLE { - if (SDLAudioStreamingState_NOT_AUDIBLE == nil) { - SDLAudioStreamingState_NOT_AUDIBLE = [[SDLAudioStreamingState alloc] initWithValue:@"NOT_AUDIBLE"]; - } - return SDLAudioStreamingState_NOT_AUDIBLE; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioType.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioType.h deleted file mode 100644 index 2f1879eea..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioType.h +++ /dev/null @@ -1,38 +0,0 @@ -// SDLAudioType.h -// - - -#import "SDLEnum.h" - -/** - Describes different audio type options for PerformAudioPassThru - */ -@interface SDLAudioType : SDLEnum { -} - -/** - * @abstract Convert String to SDLAudioType - * - * @param value The value of the string to get an object for - * - * @return SDLAudioType - */ -+ (SDLAudioType *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLAudioType - * - * @return an array that store all possible SDLAudioType - */ -+ (NSArray *)values; - -/** - * @abstract PCM raw audio - * - * @return SDLAudioType with value of *PCM* - * - * @since SDL 2.0 - */ -+ (SDLAudioType *)PCM; - -@end \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioType.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioType.m deleted file mode 100644 index 5e99123c7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioType.m +++ /dev/null @@ -1,37 +0,0 @@ -// SDLAudioType.m -// - -#import "SDLAudioType.h" - -SDLAudioType *SDLAudioType_PCM = nil; - -NSArray *SDLAudioType_values = nil; - -@implementation SDLAudioType - -+ (SDLAudioType *)valueOf:(NSString *)value { - for (SDLAudioType *item in SDLAudioType.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLAudioType_values == nil) { - SDLAudioType_values = @[ - SDLAudioType.PCM, - ]; - } - return SDLAudioType_values; -} - -+ (SDLAudioType *)PCM { - if (SDLAudioType_PCM == nil) { - SDLAudioType_PCM = [[SDLAudioType alloc] initWithValue:@"PCM"]; - } - return SDLAudioType_PCM; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h deleted file mode 100644 index d12e42eb7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h +++ /dev/null @@ -1,31 +0,0 @@ -// SDLBeltStatus.h -// - -#import "SDLRPCMessage.h" - -@class SDLVehicleDataEventStatus; - - -@interface SDLBeltStatus : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLVehicleDataEventStatus *driverBeltDeployed; -@property (strong) SDLVehicleDataEventStatus *passengerBeltDeployed; -@property (strong) SDLVehicleDataEventStatus *passengerBuckleBelted; -@property (strong) SDLVehicleDataEventStatus *driverBuckleBelted; -@property (strong) SDLVehicleDataEventStatus *leftRow2BuckleBelted; -@property (strong) SDLVehicleDataEventStatus *passengerChildDetected; -@property (strong) SDLVehicleDataEventStatus *rightRow2BuckleBelted; -@property (strong) SDLVehicleDataEventStatus *middleRow2BuckleBelted; -@property (strong) SDLVehicleDataEventStatus *middleRow3BuckleBelted; -@property (strong) SDLVehicleDataEventStatus *leftRow3BuckleBelted; -@property (strong) SDLVehicleDataEventStatus *rightRow3BuckleBelted; -@property (strong) SDLVehicleDataEventStatus *leftRearInflatableBelted; -@property (strong) SDLVehicleDataEventStatus *rightRearInflatableBelted; -@property (strong) SDLVehicleDataEventStatus *middleRow1BeltDeployed; -@property (strong) SDLVehicleDataEventStatus *middleRow1BuckleBelted; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.m deleted file mode 100644 index 70b54d2bd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.m +++ /dev/null @@ -1,279 +0,0 @@ -// SDLBeltStatus.m -// - -#import "SDLBeltStatus.h" - -#import "SDLNames.h" -#import "SDLVehicleDataEventStatus.h" - - -@implementation SDLBeltStatus - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setDriverBeltDeployed:(SDLVehicleDataEventStatus *)driverBeltDeployed { - if (driverBeltDeployed != nil) { - [store setObject:driverBeltDeployed forKey:NAMES_driverBeltDeployed]; - } else { - [store removeObjectForKey:NAMES_driverBeltDeployed]; - } -} - -- (SDLVehicleDataEventStatus *)driverBeltDeployed { - NSObject *obj = [store objectForKey:NAMES_driverBeltDeployed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setPassengerBeltDeployed:(SDLVehicleDataEventStatus *)passengerBeltDeployed { - if (passengerBeltDeployed != nil) { - [store setObject:passengerBeltDeployed forKey:NAMES_passengerBeltDeployed]; - } else { - [store removeObjectForKey:NAMES_passengerBeltDeployed]; - } -} - -- (SDLVehicleDataEventStatus *)passengerBeltDeployed { - NSObject *obj = [store objectForKey:NAMES_passengerBeltDeployed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setPassengerBuckleBelted:(SDLVehicleDataEventStatus *)passengerBuckleBelted { - if (passengerBuckleBelted != nil) { - [store setObject:passengerBuckleBelted forKey:NAMES_passengerBuckleBelted]; - } else { - [store removeObjectForKey:NAMES_passengerBuckleBelted]; - } -} - -- (SDLVehicleDataEventStatus *)passengerBuckleBelted { - NSObject *obj = [store objectForKey:NAMES_passengerBuckleBelted]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setDriverBuckleBelted:(SDLVehicleDataEventStatus *)driverBuckleBelted { - if (driverBuckleBelted != nil) { - [store setObject:driverBuckleBelted forKey:NAMES_driverBuckleBelted]; - } else { - [store removeObjectForKey:NAMES_driverBuckleBelted]; - } -} - -- (SDLVehicleDataEventStatus *)driverBuckleBelted { - NSObject *obj = [store objectForKey:NAMES_driverBuckleBelted]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setLeftRow2BuckleBelted:(SDLVehicleDataEventStatus *)leftRow2BuckleBelted { - if (leftRow2BuckleBelted != nil) { - [store setObject:leftRow2BuckleBelted forKey:NAMES_leftRow2BuckleBelted]; - } else { - [store removeObjectForKey:NAMES_leftRow2BuckleBelted]; - } -} - -- (SDLVehicleDataEventStatus *)leftRow2BuckleBelted { - NSObject *obj = [store objectForKey:NAMES_leftRow2BuckleBelted]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setPassengerChildDetected:(SDLVehicleDataEventStatus *)passengerChildDetected { - if (passengerChildDetected != nil) { - [store setObject:passengerChildDetected forKey:NAMES_passengerChildDetected]; - } else { - [store removeObjectForKey:NAMES_passengerChildDetected]; - } -} - -- (SDLVehicleDataEventStatus *)passengerChildDetected { - NSObject *obj = [store objectForKey:NAMES_passengerChildDetected]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setRightRow2BuckleBelted:(SDLVehicleDataEventStatus *)rightRow2BuckleBelted { - if (rightRow2BuckleBelted != nil) { - [store setObject:rightRow2BuckleBelted forKey:NAMES_rightRow2BuckleBelted]; - } else { - [store removeObjectForKey:NAMES_rightRow2BuckleBelted]; - } -} - -- (SDLVehicleDataEventStatus *)rightRow2BuckleBelted { - NSObject *obj = [store objectForKey:NAMES_rightRow2BuckleBelted]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setMiddleRow2BuckleBelted:(SDLVehicleDataEventStatus *)middleRow2BuckleBelted { - if (middleRow2BuckleBelted != nil) { - [store setObject:middleRow2BuckleBelted forKey:NAMES_middleRow2BuckleBelted]; - } else { - [store removeObjectForKey:NAMES_middleRow2BuckleBelted]; - } -} - -- (SDLVehicleDataEventStatus *)middleRow2BuckleBelted { - NSObject *obj = [store objectForKey:NAMES_middleRow2BuckleBelted]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setMiddleRow3BuckleBelted:(SDLVehicleDataEventStatus *)middleRow3BuckleBelted { - if (middleRow3BuckleBelted != nil) { - [store setObject:middleRow3BuckleBelted forKey:NAMES_middleRow3BuckleBelted]; - } else { - [store removeObjectForKey:NAMES_middleRow3BuckleBelted]; - } -} - -- (SDLVehicleDataEventStatus *)middleRow3BuckleBelted { - NSObject *obj = [store objectForKey:NAMES_middleRow3BuckleBelted]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setLeftRow3BuckleBelted:(SDLVehicleDataEventStatus *)leftRow3BuckleBelted { - if (leftRow3BuckleBelted != nil) { - [store setObject:leftRow3BuckleBelted forKey:NAMES_leftRow3BuckleBelted]; - } else { - [store removeObjectForKey:NAMES_leftRow3BuckleBelted]; - } -} - -- (SDLVehicleDataEventStatus *)leftRow3BuckleBelted { - NSObject *obj = [store objectForKey:NAMES_leftRow3BuckleBelted]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setRightRow3BuckleBelted:(SDLVehicleDataEventStatus *)rightRow3BuckleBelted { - if (rightRow3BuckleBelted != nil) { - [store setObject:rightRow3BuckleBelted forKey:NAMES_rightRow3BuckleBelted]; - } else { - [store removeObjectForKey:NAMES_rightRow3BuckleBelted]; - } -} - -- (SDLVehicleDataEventStatus *)rightRow3BuckleBelted { - NSObject *obj = [store objectForKey:NAMES_rightRow3BuckleBelted]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setLeftRearInflatableBelted:(SDLVehicleDataEventStatus *)leftRearInflatableBelted { - if (leftRearInflatableBelted != nil) { - [store setObject:leftRearInflatableBelted forKey:NAMES_leftRearInflatableBelted]; - } else { - [store removeObjectForKey:NAMES_leftRearInflatableBelted]; - } -} - -- (SDLVehicleDataEventStatus *)leftRearInflatableBelted { - NSObject *obj = [store objectForKey:NAMES_leftRearInflatableBelted]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setRightRearInflatableBelted:(SDLVehicleDataEventStatus *)rightRearInflatableBelted { - if (rightRearInflatableBelted != nil) { - [store setObject:rightRearInflatableBelted forKey:NAMES_rightRearInflatableBelted]; - } else { - [store removeObjectForKey:NAMES_rightRearInflatableBelted]; - } -} - -- (SDLVehicleDataEventStatus *)rightRearInflatableBelted { - NSObject *obj = [store objectForKey:NAMES_rightRearInflatableBelted]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setMiddleRow1BeltDeployed:(SDLVehicleDataEventStatus *)middleRow1BeltDeployed { - if (middleRow1BeltDeployed != nil) { - [store setObject:middleRow1BeltDeployed forKey:NAMES_middleRow1BeltDeployed]; - } else { - [store removeObjectForKey:NAMES_middleRow1BeltDeployed]; - } -} - -- (SDLVehicleDataEventStatus *)middleRow1BeltDeployed { - NSObject *obj = [store objectForKey:NAMES_middleRow1BeltDeployed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setMiddleRow1BuckleBelted:(SDLVehicleDataEventStatus *)middleRow1BuckleBelted { - if (middleRow1BuckleBelted != nil) { - [store setObject:middleRow1BuckleBelted forKey:NAMES_middleRow1BuckleBelted]; - } else { - [store removeObjectForKey:NAMES_middleRow1BuckleBelted]; - } -} - -- (SDLVehicleDataEventStatus *)middleRow1BuckleBelted { - NSObject *obj = [store objectForKey:NAMES_middleRow1BuckleBelted]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBitsPerSample.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLBitsPerSample.h deleted file mode 100644 index 9067ce17a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBitsPerSample.h +++ /dev/null @@ -1,45 +0,0 @@ -// SDLBitsPerSample.h -// - - -#import "SDLEnum.h" - -/** - * Describes different bit depth options for PerformAudioPassThru - * - * @since SDL 2.0 - */ -@interface SDLBitsPerSample : SDLEnum { -} - -/** - * @abstract Convert String to SDLBitsPerSample - * - * @param value The value of the string to get an object for - * - * @return SDLBitsPerSample - */ -+ (SDLBitsPerSample *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLBitsPerSample - * - * @return an array that store all possible SDLBitsPerSample - */ -+ (NSArray *)values; - -/** - * @abstract 8 bits per sample - * - * @return a SDLBitsPerSample with value of *8_BIT* - */ -+ (SDLBitsPerSample *)_8_BIT; - -/** - * @abstract 16 bits per sample - * - * @return a SDLBitsPerSample with value of *16_BIT* - */ -+ (SDLBitsPerSample *)_16_BIT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBitsPerSample.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLBitsPerSample.m deleted file mode 100644 index e082aff59..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBitsPerSample.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLBitsPerSample.m -// - - -#import "SDLBitsPerSample.h" - -SDLBitsPerSample *SDLBitsPerSample_8_BIT = nil; -SDLBitsPerSample *SDLBitsPerSample_16_BIT = nil; - -NSArray *SDLBitsPerSample_values = nil; - -@implementation SDLBitsPerSample - -+ (SDLBitsPerSample *)valueOf:(NSString *)value { - for (SDLBitsPerSample *item in SDLBitsPerSample.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLBitsPerSample_values == nil) { - SDLBitsPerSample_values = @[ - SDLBitsPerSample._8_BIT, - SDLBitsPerSample._16_BIT, - ]; - } - return SDLBitsPerSample_values; -} - -+ (SDLBitsPerSample *)_8_BIT { - if (SDLBitsPerSample_8_BIT == nil) { - SDLBitsPerSample_8_BIT = [[SDLBitsPerSample alloc] initWithValue:@"8_BIT"]; - } - return SDLBitsPerSample_8_BIT; -} - -+ (SDLBitsPerSample *)_16_BIT { - if (SDLBitsPerSample_16_BIT == nil) { - SDLBitsPerSample_16_BIT = [[SDLBitsPerSample alloc] initWithValue:@"16_BIT"]; - } - return SDLBitsPerSample_16_BIT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.h deleted file mode 100644 index 1c92243cd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.h +++ /dev/null @@ -1,63 +0,0 @@ -// SDLBodyInformation.h -// - -#import "SDLRPCMessage.h" - -@class SDLIgnitionStableStatus; -@class SDLIgnitionStatus; - - -/** - * The body information including power modes. - */ -@interface SDLBodyInformation : SDLRPCStruct { -} - -/** - * @abstract Constructs a new SDLBodyInformation object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLBodyInformation object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract References signal "PrkBrkActv_B_Actl". - */ -@property (strong) NSNumber *parkBrakeActive; - -/** - * @abstract References signal "Ignition_Switch_Stable". See IgnitionStableStatus. - */ -@property (strong) SDLIgnitionStableStatus *ignitionStableStatus; - -/** - * @abstract References signal "Ignition_status". See IgnitionStatus. - */ -@property (strong) SDLIgnitionStatus *ignitionStatus; - -/** - * @abstract References signal "DrStatDrv_B_Actl". - */ -@property (strong) NSNumber *driverDoorAjar; - -/** - * @abstract References signal "DrStatPsngr_B_Actl". - */ -@property (strong) NSNumber *passengerDoorAjar; - -/** - * @abstract References signal "DrStatRl_B_Actl". - */ -@property (strong) NSNumber *rearLeftDoorAjar; - -/** - * @abstract References signal "DrStatRr_B_Actl". - */ -@property (strong) NSNumber *rearRightDoorAjar; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.m deleted file mode 100644 index 9be7a88d6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.m +++ /dev/null @@ -1,120 +0,0 @@ -// SDLBodyInformation.m -// - - -#import "SDLBodyInformation.h" - -#import "SDLIgnitionStableStatus.h" -#import "SDLIgnitionStatus.h" -#import "SDLNames.h" - - -@implementation SDLBodyInformation - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setParkBrakeActive:(NSNumber *)parkBrakeActive { - if (parkBrakeActive != nil) { - [store setObject:parkBrakeActive forKey:NAMES_parkBrakeActive]; - } else { - [store removeObjectForKey:NAMES_parkBrakeActive]; - } -} - -- (NSNumber *)parkBrakeActive { - return [store objectForKey:NAMES_parkBrakeActive]; -} - -- (void)setIgnitionStableStatus:(SDLIgnitionStableStatus *)ignitionStableStatus { - if (ignitionStableStatus != nil) { - [store setObject:ignitionStableStatus forKey:NAMES_ignitionStableStatus]; - } else { - [store removeObjectForKey:NAMES_ignitionStableStatus]; - } -} - -- (SDLIgnitionStableStatus *)ignitionStableStatus { - NSObject *obj = [store objectForKey:NAMES_ignitionStableStatus]; - if (obj == nil || [obj isKindOfClass:SDLIgnitionStableStatus.class]) { - return (SDLIgnitionStableStatus *)obj; - } else { - return [SDLIgnitionStableStatus valueOf:(NSString *)obj]; - } -} - -- (void)setIgnitionStatus:(SDLIgnitionStatus *)ignitionStatus { - if (ignitionStatus != nil) { - [store setObject:ignitionStatus forKey:NAMES_ignitionStatus]; - } else { - [store removeObjectForKey:NAMES_ignitionStatus]; - } -} - -- (SDLIgnitionStatus *)ignitionStatus { - NSObject *obj = [store objectForKey:NAMES_ignitionStatus]; - if (obj == nil || [obj isKindOfClass:SDLIgnitionStatus.class]) { - return (SDLIgnitionStatus *)obj; - } else { - return [SDLIgnitionStatus valueOf:(NSString *)obj]; - } -} - -- (void)setDriverDoorAjar:(NSNumber *)driverDoorAjar { - if (driverDoorAjar != nil) { - [store setObject:driverDoorAjar forKey:NAMES_driverDoorAjar]; - } else { - [store removeObjectForKey:NAMES_driverDoorAjar]; - } -} - -- (NSNumber *)driverDoorAjar { - return [store objectForKey:NAMES_driverDoorAjar]; -} - -- (void)setPassengerDoorAjar:(NSNumber *)passengerDoorAjar { - if (passengerDoorAjar != nil) { - [store setObject:passengerDoorAjar forKey:NAMES_passengerDoorAjar]; - } else { - [store removeObjectForKey:NAMES_passengerDoorAjar]; - } -} - -- (NSNumber *)passengerDoorAjar { - return [store objectForKey:NAMES_passengerDoorAjar]; -} - -- (void)setRearLeftDoorAjar:(NSNumber *)rearLeftDoorAjar { - if (rearLeftDoorAjar != nil) { - [store setObject:rearLeftDoorAjar forKey:NAMES_rearLeftDoorAjar]; - } else { - [store removeObjectForKey:NAMES_rearLeftDoorAjar]; - } -} - -- (NSNumber *)rearLeftDoorAjar { - return [store objectForKey:NAMES_rearLeftDoorAjar]; -} - -- (void)setRearRightDoorAjar:(NSNumber *)rearRightDoorAjar { - if (rearRightDoorAjar != nil) { - [store setObject:rearRightDoorAjar forKey:NAMES_rearRightDoorAjar]; - } else { - [store removeObjectForKey:NAMES_rearRightDoorAjar]; - } -} - -- (NSNumber *)rearRightDoorAjar { - return [store objectForKey:NAMES_rearRightDoorAjar]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.h deleted file mode 100644 index d84da609a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.h +++ /dev/null @@ -1,54 +0,0 @@ -// SDLButtonCapabilities.h -// - -#import "SDLRPCMessage.h" - -@class SDLButtonName; - - -/** - * Provides information about the capabilities of a SDL HMI button. - * - * @since SDL 1.0 - */ -@interface SDLButtonCapabilities : SDLRPCStruct { -} - -/** - * Constructs a newly allocated SDLButtonCapabilities object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLButtonCapabilities object indicated by the Hashtable parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The name of the SDL HMI button. - */ -@property (strong) SDLButtonName *name; - -/** - * @abstract A NSNumber value indicates whether the button supports a SHORT press - * - * Required, Boolean - */ -@property (strong) NSNumber *shortPressAvailable; - -/** - * @abstract A NSNumber value indicates whether the button supports a LONG press - * - * Required, Boolean - */ -@property (strong) NSNumber *longPressAvailable; - -/** - * @abstract A NSNumber value indicates whether the button supports "button down" and "button up" - * - * Required, Boolean - */ -@property (strong) NSNumber *upDownAvailable; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.m deleted file mode 100644 index fbcab54c9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.m +++ /dev/null @@ -1,77 +0,0 @@ -// SDLButtonCapabilities.m -// - -#import "SDLButtonCapabilities.h" - -#import "SDLButtonName.h" -#import "SDLNames.h" - - -@implementation SDLButtonCapabilities - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setName:(SDLButtonName *)name { - if (name != nil) { - [store setObject:name forKey:NAMES_name]; - } else { - [store removeObjectForKey:NAMES_name]; - } -} - -- (SDLButtonName *)name { - NSObject *obj = [store objectForKey:NAMES_name]; - if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) { - return (SDLButtonName *)obj; - } else { - return [SDLButtonName valueOf:(NSString *)obj]; - } -} - -- (void)setShortPressAvailable:(NSNumber *)shortPressAvailable { - if (shortPressAvailable != nil) { - [store setObject:shortPressAvailable forKey:NAMES_shortPressAvailable]; - } else { - [store removeObjectForKey:NAMES_shortPressAvailable]; - } -} - -- (NSNumber *)shortPressAvailable { - return [store objectForKey:NAMES_shortPressAvailable]; -} - -- (void)setLongPressAvailable:(NSNumber *)longPressAvailable { - if (longPressAvailable != nil) { - [store setObject:longPressAvailable forKey:NAMES_longPressAvailable]; - } else { - [store removeObjectForKey:NAMES_longPressAvailable]; - } -} - -- (NSNumber *)longPressAvailable { - return [store objectForKey:NAMES_longPressAvailable]; -} - -- (void)setUpDownAvailable:(NSNumber *)upDownAvailable { - if (upDownAvailable != nil) { - [store setObject:upDownAvailable forKey:NAMES_upDownAvailable]; - } else { - [store removeObjectForKey:NAMES_upDownAvailable]; - } -} - -- (NSNumber *)upDownAvailable { - return [store objectForKey:NAMES_upDownAvailable]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonEventMode.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonEventMode.h deleted file mode 100644 index 56cd8683d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonEventMode.h +++ /dev/null @@ -1,40 +0,0 @@ -// SDLButtonEventMode.h -// - - -#import "SDLEnum.h" - -/** - * Indicates whether the button was depressed or released. A BUTTONUP event will always be preceded by a BUTTONDOWN event. - * - * @since SDL 1.0 - */ -@interface SDLButtonEventMode : SDLEnum { -} - -/** - * @abstract Convert String to SDLButtonEventMode - * @param value The value of the string to get an object for - * @return SDLButtonEventMode (BUTTONUP / BUTTONDOWN) - */ -+ (SDLButtonEventMode *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLButtonEventMode - * @return an array that store all possible SDLButtonEventMode - */ -+ (NSArray *)values; - -/** - * @abstract The button was released - * @return a SDLButtonEventMode with value of *BUTTONUP* - */ -+ (SDLButtonEventMode *)BUTTONUP; - -/** - * @abstract The button was depressed - * @return a SDLButtonEventMode with value of *BUTTONDOWN* - */ -+ (SDLButtonEventMode *)BUTTONDOWN; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonEventMode.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonEventMode.m deleted file mode 100644 index 1dcc13635..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonEventMode.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLButtonEventMode.m -// - - -#import "SDLButtonEventMode.h" - -SDLButtonEventMode *SDLButtonEventMode_BUTTONUP = nil; -SDLButtonEventMode *SDLButtonEventMode_BUTTONDOWN = nil; - -NSArray *SDLButtonEventMode_values = nil; - -@implementation SDLButtonEventMode - -+ (SDLButtonEventMode *)valueOf:(NSString *)value { - for (SDLButtonEventMode *item in SDLButtonEventMode.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLButtonEventMode_values == nil) { - SDLButtonEventMode_values = @[ - SDLButtonEventMode.BUTTONUP, - SDLButtonEventMode.BUTTONDOWN, - ]; - } - return SDLButtonEventMode_values; -} - -+ (SDLButtonEventMode *)BUTTONUP { - if (SDLButtonEventMode_BUTTONUP == nil) { - SDLButtonEventMode_BUTTONUP = [[SDLButtonEventMode alloc] initWithValue:@"BUTTONUP"]; - } - return SDLButtonEventMode_BUTTONUP; -} - -+ (SDLButtonEventMode *)BUTTONDOWN { - if (SDLButtonEventMode_BUTTONDOWN == nil) { - SDLButtonEventMode_BUTTONDOWN = [[SDLButtonEventMode alloc] initWithValue:@"BUTTONDOWN"]; - } - return SDLButtonEventMode_BUTTONDOWN; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonName.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonName.h deleted file mode 100644 index 519a3c554..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonName.h +++ /dev/null @@ -1,152 +0,0 @@ -// SDLButtonName.h -// - - -#import "SDLEnum.h" - -/** - * Defines logical buttons which, on a given SDL unit, would correspond to - * either physical or soft (touchscreen) buttons. These logical buttons present - * a standard functional abstraction which the developer can rely upon, - * independent of the SDL unit. For example, the developer can rely upon the OK - * button having the same meaning to the user across SDL platforms. - * - * The preset buttons (0-9) can typically be interpreted by the application as - * corresponding to some user-configured choices, though the application is free - * to interpret these button presses as it sees fit. - * - * The application can discover which buttons a given SDL unit implements by - * interrogating the ButtonCapabilities parameter of the - * RegisterAppInterface response. - * - * @since SDL 1.0 - */ -@interface SDLButtonName : SDLEnum { -} - -/** - * @abstract Convert String to SDLButtonName - * - * @param value String value to retrieve the object for - * - * @return SDLButtonName - */ -+ (SDLButtonName *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLButtonName - * - * @return an array that store all possible SDLButtonName - */ -+ (NSArray *)values; - -/** - * @abstract Represents the button usually labeled "OK". A typical use of this button is for the user to press it to make a selection. - * - * @return a SDLButtonName with the value of *OK* - */ -+ (SDLButtonName *)OK; - -/** - * @abstract Represents the seek-left button. A typical use of this button is for the user to scroll to the left through menu choices one menu item per press. - * - * @return a SDLButtonName with the value of *SEEKLEFT* - */ -+ (SDLButtonName *)SEEKLEFT; - -/** - * @abstract Represents the seek-right button. A typical use of this button is for the user to scroll to the right through menu choices one menu item per press. - * - * @return a SDLButtonName with the value of *SEEKRIGHT* - */ -+ (SDLButtonName *)SEEKRIGHT; - -/** - * @abstract Represents a turn of the tuner knob in the clockwise direction one tick. - * - * @return a SDLButtonName with the value of *TUNEUP* - */ -+ (SDLButtonName *)TUNEUP; - -/** - * @abstract Represents a turn of the tuner knob in the counter-clockwise direction one tick. - * - * @return a SDLButtonName with the value of *TUNEDOWN* - */ -+ (SDLButtonName *)TUNEDOWN; - -/** - * @abstract Represents the preset 0 button. - * - * @return a SDLButtonName with the value of *PRESET_0* - */ -+ (SDLButtonName *)PRESET_0; - -/** - * @abstract Represents the preset 1 button. - * - * @return a SDLButtonName with the value of *PRESET_1* - */ -+ (SDLButtonName *)PRESET_1; - -/** - * @abstract Represents the preset 2 button. - * - * @return a SDLButtonName with the value of *PRESET_2* - */ -+ (SDLButtonName *)PRESET_2; - -/** - * @abstract Represents the preset 3 button. - * - * @return a SDLButtonName with the value of *PRESET_3* - */ -+ (SDLButtonName *)PRESET_3; - -/** - * @abstract Represents the preset 4 button. - * - * @return a SDLButtonName with the value of *PRESET_4* - */ -+ (SDLButtonName *)PRESET_4; - -/** - * @abstract Represents the preset 5 button. - * - * @return a SDLButtonName with the value of *PRESET_5* - */ -+ (SDLButtonName *)PRESET_5; - -/** - * @abstract Represents the preset 6 button. - * - * @return a SDLButtonName with the value of *PRESET_6* - */ -+ (SDLButtonName *)PRESET_6; - -/** - * @abstract Represents the preset 7 button. - * - * @return a SDLButtonName with the value of *PRESET_7* - */ -+ (SDLButtonName *)PRESET_7; - -/** - * @abstract Represents the preset 8 button. - * - * @return a SDLButtonName with the value of *PRESET_8* - */ -+ (SDLButtonName *)PRESET_8; - -/** - * @abstract Represents the preset 9 button. - * - * @return a SDLButtonName with the value of *PRESET_9* - */ -+ (SDLButtonName *)PRESET_9; - -+ (SDLButtonName *)CUSTOM_BUTTON; - -+ (SDLButtonName *)SEARCH; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonName.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonName.m deleted file mode 100644 index 8e0ae3454..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonName.m +++ /dev/null @@ -1,182 +0,0 @@ -// SDLButtonName.m -// - - -#import "SDLButtonName.h" - -SDLButtonName *SDLButtonName_OK = nil; -SDLButtonName *SDLButtonName_SEEKLEFT = nil; -SDLButtonName *SDLButtonName_SEEKRIGHT = nil; -SDLButtonName *SDLButtonName_TUNEUP = nil; -SDLButtonName *SDLButtonName_TUNEDOWN = nil; -SDLButtonName *SDLButtonName_PRESET_0 = nil; -SDLButtonName *SDLButtonName_PRESET_1 = nil; -SDLButtonName *SDLButtonName_PRESET_2 = nil; -SDLButtonName *SDLButtonName_PRESET_3 = nil; -SDLButtonName *SDLButtonName_PRESET_4 = nil; -SDLButtonName *SDLButtonName_PRESET_5 = nil; -SDLButtonName *SDLButtonName_PRESET_6 = nil; -SDLButtonName *SDLButtonName_PRESET_7 = nil; -SDLButtonName *SDLButtonName_PRESET_8 = nil; -SDLButtonName *SDLButtonName_PRESET_9 = nil; -SDLButtonName *SDLButtonName_CUSTOM_BUTTON = nil; -SDLButtonName *SDLButtonName_SEARCH = nil; - -NSArray *SDLButtonName_values = nil; - -@implementation SDLButtonName - -+ (SDLButtonName *)valueOf:(NSString *)value { - for (SDLButtonName *item in SDLButtonName.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLButtonName_values == nil) { - SDLButtonName_values = @[ - SDLButtonName.OK, - SDLButtonName.SEEKLEFT, - SDLButtonName.SEEKRIGHT, - SDLButtonName.TUNEUP, - SDLButtonName.TUNEDOWN, - SDLButtonName.PRESET_0, - SDLButtonName.PRESET_1, - SDLButtonName.PRESET_2, - SDLButtonName.PRESET_3, - SDLButtonName.PRESET_4, - SDLButtonName.PRESET_5, - SDLButtonName.PRESET_6, - SDLButtonName.PRESET_7, - SDLButtonName.PRESET_8, - SDLButtonName.PRESET_9, - SDLButtonName.CUSTOM_BUTTON, - SDLButtonName.SEARCH, - ]; - } - return SDLButtonName_values; -} - -+ (SDLButtonName *)OK { - if (SDLButtonName_OK == nil) { - SDLButtonName_OK = [[SDLButtonName alloc] initWithValue:@"OK"]; - } - return SDLButtonName_OK; -} - -+ (SDLButtonName *)SEEKLEFT { - if (SDLButtonName_SEEKLEFT == nil) { - SDLButtonName_SEEKLEFT = [[SDLButtonName alloc] initWithValue:@"SEEKLEFT"]; - } - return SDLButtonName_SEEKLEFT; -} - -+ (SDLButtonName *)SEEKRIGHT { - if (SDLButtonName_SEEKRIGHT == nil) { - SDLButtonName_SEEKRIGHT = [[SDLButtonName alloc] initWithValue:@"SEEKRIGHT"]; - } - return SDLButtonName_SEEKRIGHT; -} - -+ (SDLButtonName *)TUNEUP { - if (SDLButtonName_TUNEUP == nil) { - SDLButtonName_TUNEUP = [[SDLButtonName alloc] initWithValue:@"TUNEUP"]; - } - return SDLButtonName_TUNEUP; -} - -+ (SDLButtonName *)TUNEDOWN { - if (SDLButtonName_TUNEDOWN == nil) { - SDLButtonName_TUNEDOWN = [[SDLButtonName alloc] initWithValue:@"TUNEDOWN"]; - } - return SDLButtonName_TUNEDOWN; -} - -+ (SDLButtonName *)PRESET_0 { - if (SDLButtonName_PRESET_0 == nil) { - SDLButtonName_PRESET_0 = [[SDLButtonName alloc] initWithValue:@"PRESET_0"]; - } - return SDLButtonName_PRESET_0; -} - -+ (SDLButtonName *)PRESET_1 { - if (SDLButtonName_PRESET_1 == nil) { - SDLButtonName_PRESET_1 = [[SDLButtonName alloc] initWithValue:@"PRESET_1"]; - } - return SDLButtonName_PRESET_1; -} - -+ (SDLButtonName *)PRESET_2 { - if (SDLButtonName_PRESET_2 == nil) { - SDLButtonName_PRESET_2 = [[SDLButtonName alloc] initWithValue:@"PRESET_2"]; - } - return SDLButtonName_PRESET_2; -} - -+ (SDLButtonName *)PRESET_3 { - if (SDLButtonName_PRESET_3 == nil) { - SDLButtonName_PRESET_3 = [[SDLButtonName alloc] initWithValue:@"PRESET_3"]; - } - return SDLButtonName_PRESET_3; -} - -+ (SDLButtonName *)PRESET_4 { - if (SDLButtonName_PRESET_4 == nil) { - SDLButtonName_PRESET_4 = [[SDLButtonName alloc] initWithValue:@"PRESET_4"]; - } - return SDLButtonName_PRESET_4; -} - -+ (SDLButtonName *)PRESET_5 { - if (SDLButtonName_PRESET_5 == nil) { - SDLButtonName_PRESET_5 = [[SDLButtonName alloc] initWithValue:@"PRESET_5"]; - } - return SDLButtonName_PRESET_5; -} - -+ (SDLButtonName *)PRESET_6 { - if (SDLButtonName_PRESET_6 == nil) { - SDLButtonName_PRESET_6 = [[SDLButtonName alloc] initWithValue:@"PRESET_6"]; - } - return SDLButtonName_PRESET_6; -} - -+ (SDLButtonName *)PRESET_7 { - if (SDLButtonName_PRESET_7 == nil) { - SDLButtonName_PRESET_7 = [[SDLButtonName alloc] initWithValue:@"PRESET_7"]; - } - return SDLButtonName_PRESET_7; -} - -+ (SDLButtonName *)PRESET_8 { - if (SDLButtonName_PRESET_8 == nil) { - SDLButtonName_PRESET_8 = [[SDLButtonName alloc] initWithValue:@"PRESET_8"]; - } - return SDLButtonName_PRESET_8; -} - -+ (SDLButtonName *)PRESET_9 { - if (SDLButtonName_PRESET_9 == nil) { - SDLButtonName_PRESET_9 = [[SDLButtonName alloc] initWithValue:@"PRESET_9"]; - } - return SDLButtonName_PRESET_9; -} - -+ (SDLButtonName *)CUSTOM_BUTTON { - if (SDLButtonName_CUSTOM_BUTTON == nil) { - SDLButtonName_CUSTOM_BUTTON = [[SDLButtonName alloc] initWithValue:@"CUSTOM_BUTTON"]; - } - return SDLButtonName_CUSTOM_BUTTON; -} - -+ (SDLButtonName *)SEARCH { - if (SDLButtonName_SEARCH == nil) { - SDLButtonName_SEARCH = [[SDLButtonName alloc] initWithValue:@"SEARCH"]; - } - return SDLButtonName_SEARCH; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonPressMode.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonPressMode.h deleted file mode 100644 index 8aca9c143..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonPressMode.h +++ /dev/null @@ -1,45 +0,0 @@ -// SDLButtonPressMode.h -// - - -#import "SDLEnum.h" - -/** - * Indicates whether this is a LONG or SHORT button press - * - * @since SDL 1.0 - */ -@interface SDLButtonPressMode : SDLEnum { -} - -/** - * @abstract Convert String to SDLButtonPressMode - * - * @param value The value of the string to get an object for - * - * @return SDLButtonPressMode - */ -+ (SDLButtonPressMode *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLButtonPressMode - * - * @return an array that store all possible SDLButtonPressMode - */ -+ (NSArray *)values; - -/** - * @abstract A button was released, after it was pressed for a long time. Actual timing is defined by the head unit and may vary. - * - * @return a SDLButtonPressMode with the value of *LONG* - */ -+ (SDLButtonPressMode *)LONG; - -/** - * @abstract A button was released, after it was pressed for a short time. Actual timing is defined by the head unit and may vary. - * - * @return a SDLButtonPressMode with the value of *SHORT* - */ -+ (SDLButtonPressMode *)SHORT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonPressMode.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonPressMode.m deleted file mode 100644 index 15e4c2334..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonPressMode.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLButtonPressMode.m -// - - -#import "SDLButtonPressMode.h" - -SDLButtonPressMode *SDLButtonPressMode_LONG = nil; -SDLButtonPressMode *SDLButtonPressMode_SHORT = nil; - -NSArray *SDLButtonPressMode_values = nil; - -@implementation SDLButtonPressMode - -+ (SDLButtonPressMode *)valueOf:(NSString *)value { - for (SDLButtonPressMode *item in SDLButtonPressMode.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLButtonPressMode_values == nil) { - SDLButtonPressMode_values = @[ - SDLButtonPressMode.LONG, - SDLButtonPressMode.SHORT, - ]; - } - return SDLButtonPressMode_values; -} - -+ (SDLButtonPressMode *)LONG { - if (SDLButtonPressMode_LONG == nil) { - SDLButtonPressMode_LONG = [[SDLButtonPressMode alloc] initWithValue:@"LONG"]; - } - return SDLButtonPressMode_LONG; -} - -+ (SDLButtonPressMode *)SHORT { - if (SDLButtonPressMode_SHORT == nil) { - SDLButtonPressMode_SHORT = [[SDLButtonPressMode alloc] initWithValue:@"SHORT"]; - } - return SDLButtonPressMode_SHORT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCarModeStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLCarModeStatus.h deleted file mode 100644 index 15bb7b284..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCarModeStatus.h +++ /dev/null @@ -1,32 +0,0 @@ -// SDLCarModeStatus.h -// - - -#import "SDLEnum.h" - -/** Describes the carmode the vehicle is in. - * Since SmartDeviceLink 2.0 - */ -@interface SDLCarModeStatus : SDLEnum { -} - -+ (SDLCarModeStatus *)valueOf:(NSString *)value; - -+ (NSArray *)values; -/** Provides carmode NORMAL to each module. - */ -+ (SDLCarModeStatus *)NORMAL; - -/** Provides carmode FACTORY to each module. - */ -+ (SDLCarModeStatus *)FACTORY; - -/** Provides carmode TRANSPORT to each module. - */ -+ (SDLCarModeStatus *)TRANSPORT; - -/** Provides carmode CRASH to each module. - */ -+ (SDLCarModeStatus *)CRASH; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCarModeStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLCarModeStatus.m deleted file mode 100644 index 4f9c03c42..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCarModeStatus.m +++ /dev/null @@ -1,65 +0,0 @@ -// SDLCarModeStatus.m -// - - -#import "SDLCarModeStatus.h" - -SDLCarModeStatus *SDLCarModeStatus_NORMAL = nil; -SDLCarModeStatus *SDLCarModeStatus_FACTORY = nil; -SDLCarModeStatus *SDLCarModeStatus_TRANSPORT = nil; -SDLCarModeStatus *SDLCarModeStatus_CRASH = nil; - -NSArray *SDLCarModeStatus_values = nil; - -@implementation SDLCarModeStatus - -+ (SDLCarModeStatus *)valueOf:(NSString *)value { - for (SDLCarModeStatus *item in SDLCarModeStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLCarModeStatus_values == nil) { - SDLCarModeStatus_values = @[ - SDLCarModeStatus.NORMAL, - SDLCarModeStatus.FACTORY, - SDLCarModeStatus.TRANSPORT, - SDLCarModeStatus.CRASH, - ]; - } - return SDLCarModeStatus_values; -} - -+ (SDLCarModeStatus *)NORMAL { - if (SDLCarModeStatus_NORMAL == nil) { - SDLCarModeStatus_NORMAL = [[SDLCarModeStatus alloc] initWithValue:@"NORMAL"]; - } - return SDLCarModeStatus_NORMAL; -} - -+ (SDLCarModeStatus *)FACTORY { - if (SDLCarModeStatus_FACTORY == nil) { - SDLCarModeStatus_FACTORY = [[SDLCarModeStatus alloc] initWithValue:@"FACTORY"]; - } - return SDLCarModeStatus_FACTORY; -} - -+ (SDLCarModeStatus *)TRANSPORT { - if (SDLCarModeStatus_TRANSPORT == nil) { - SDLCarModeStatus_TRANSPORT = [[SDLCarModeStatus alloc] initWithValue:@"TRANSPORT"]; - } - return SDLCarModeStatus_TRANSPORT; -} - -+ (SDLCarModeStatus *)CRASH { - if (SDLCarModeStatus_CRASH == nil) { - SDLCarModeStatus_CRASH = [[SDLCarModeStatus alloc] initWithValue:@"CRASH"]; - } - return SDLCarModeStatus_CRASH; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.h deleted file mode 100644 index 4bbc7c234..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.h +++ /dev/null @@ -1,70 +0,0 @@ -// SDLChangeRegistration.h -// - - -#import "SDLRPCRequest.h" - -@class SDLLanguage; -@class SDLTTSChunk; - -/** - * If the app recognizes during the app registration that the SDL HMI language (voice/TTS and/or display) does not match the app language, the app will be able (but does not need) to change this registration with changeRegistration prior to app being brought into focus. - * - * Any HMILevel allowed - * - * @since SDL 2.0 - */ -@interface SDLChangeRegistration : SDLRPCRequest { -} - -/** - * Constructs a new SDLChangeRegistration object - */ -- (instancetype)init; - -/** - * Constructs a new SDLChangeRegistration object indicated by the dictionary parameter - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The language the app wants to change to - */ -@property (strong, nonatomic) SDLLanguage *language; - -/** - * @abstract HMI display language - */ -@property (strong, nonatomic) SDLLanguage *hmiDisplayLanguage; - -/** - * Request a new app name registration - * - * Optional, Max string length 100 chars - */ -@property (copy, nonatomic) NSString *appName; - -/** - * Request a new TTSName registration. - * - * Optional, Array of SDLTTSChunk, 1 - 100 elements - */ -@property (copy, nonatomic) NSArray *ttsName; - -/** - * Request a new app short name registration - * - * Optional, Max string length 100 chars - */ -@property (copy, nonatomic) NSString *ngnMediaScreenAppName; - -/** - * Request a new VR synonyms registration - * - * Optional, Array of NSString, 1 - 100 elements, max string length 40 chars - */ -@property (copy, nonatomic) NSArray *vrSynonyms; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.m deleted file mode 100644 index 00a7de885..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.m +++ /dev/null @@ -1,106 +0,0 @@ -// SDLChangeRegistration.m -// - - -#import "SDLChangeRegistration.h" - -#import "SDLLanguage.h" -#import "SDLNames.h" - -@implementation SDLChangeRegistration - -- (instancetype)init { - if (self = [super initWithName:NAMES_ChangeRegistration]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setLanguage:(SDLLanguage *)language { - if (language != nil) { - [parameters setObject:language forKey:NAMES_language]; - } else { - [parameters removeObjectForKey:NAMES_language]; - } -} - -- (SDLLanguage *)language { - NSObject *obj = [parameters objectForKey:NAMES_language]; - if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { - return (SDLLanguage *)obj; - } else { - return [SDLLanguage valueOf:(NSString *)obj]; - } -} - -- (void)setHmiDisplayLanguage:(SDLLanguage *)hmiDisplayLanguage { - if (hmiDisplayLanguage != nil) { - [parameters setObject:hmiDisplayLanguage forKey:NAMES_hmiDisplayLanguage]; - } else { - [parameters removeObjectForKey:NAMES_hmiDisplayLanguage]; - } -} - -- (SDLLanguage *)hmiDisplayLanguage { - NSObject *obj = [parameters objectForKey:NAMES_hmiDisplayLanguage]; - if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { - return (SDLLanguage *)obj; - } else { - return [SDLLanguage valueOf:(NSString *)obj]; - } -} - -- (void)setAppName:(NSString *)appName { - if (appName != nil) { - parameters[NAMES_appName] = [appName copy]; - } else { - [parameters removeObjectForKey:NAMES_appName]; - } -} - -- (NSString *)appName { - return [parameters[NAMES_appName] copy]; -} - -- (void)setTtsName:(NSArray *)ttsName { - if (ttsName != nil) { - [parameters setObject:[ttsName copy] forKey:NAMES_ttsName]; - } else { - [parameters removeObjectForKey:NAMES_ttsName]; - } -} - -- (NSArray *)ttsName { - return [parameters[NAMES_ttsName] copy]; -} - -- (void)setNgnMediaScreenAppName:(NSString *)ngnMediaScreenAppName { - if (ngnMediaScreenAppName != nil) { - parameters[NAMES_ngnMediaScreenAppName] = [ngnMediaScreenAppName copy]; - } else { - [parameters removeObjectForKey:NAMES_ngnMediaScreenAppName]; - } -} - -- (NSString *)ngnMediaScreenAppName { - return [parameters[NAMES_ngnMediaScreenAppName] copy]; -} - -- (void)setVrSynonyms:(NSArray *)vrSynonyms { - if (vrSynonyms != nil) { - [parameters setObject:[vrSynonyms copy] forKey:NAMES_vrSynonyms]; - } else { - [parameters removeObjectForKey:NAMES_vrSynonyms]; - } -} - -- (NSArray *)vrSynonyms { - return [parameters[NAMES_vrSynonyms] copy]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistrationResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistrationResponse.h deleted file mode 100644 index 38709e235..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistrationResponse.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLChangeRegistrationResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * SDLChangeRegistrationResponse is sent, when SDLChangeRegistration has been called - * - * @since SDL 2.0 - */ -@interface SDLChangeRegistrationResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistrationResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistrationResponse.m deleted file mode 100644 index 710495d2c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistrationResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLChangeRegistrationResponse.m -// - - -#import "SDLChangeRegistrationResponse.h" - -#import "SDLNames.h" - -@implementation SDLChangeRegistrationResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_ChangeRegistration]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCharacterSet.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLCharacterSet.h deleted file mode 100644 index 300afd720..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCharacterSet.h +++ /dev/null @@ -1,39 +0,0 @@ -// SDLCharacterSet.h -// - - -#import "SDLEnum.h" - -/** - * Character sets supported by SDL. - * - * @since SDL 1.0 - */ -@interface SDLCharacterSet : SDLEnum { -} - -/** - * @abstract Convert String to SDLCharacterSet - * - * @param value The value of the string to get an object for - * - * @return SDLCharacterSet - */ -+ (SDLCharacterSet *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLCharacterSet - * - * @return an array that store all possible SDLCharacterSet - */ -+ (NSArray *)values; - -+ (SDLCharacterSet *)TYPE2SET; - -+ (SDLCharacterSet *)TYPE5SET; - -+ (SDLCharacterSet *)CID1SET; - -+ (SDLCharacterSet *)CID2SET; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCharacterSet.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLCharacterSet.m deleted file mode 100644 index 18f00de90..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCharacterSet.m +++ /dev/null @@ -1,65 +0,0 @@ -// SDLCharacterSet.m -// - - -#import "SDLCharacterSet.h" - -SDLCharacterSet *SDLCharacterSet_TYPE2SET = nil; -SDLCharacterSet *SDLCharacterSet_TYPE5SET = nil; -SDLCharacterSet *SDLCharacterSet_CID1SET = nil; -SDLCharacterSet *SDLCharacterSet_CID2SET = nil; - -NSArray *SDLCharacterSet_values = nil; - -@implementation SDLCharacterSet - -+ (SDLCharacterSet *)valueOf:(NSString *)value { - for (SDLCharacterSet *item in SDLCharacterSet.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLCharacterSet_values == nil) { - SDLCharacterSet_values = @[ - SDLCharacterSet.TYPE2SET, - SDLCharacterSet.TYPE5SET, - SDLCharacterSet.CID1SET, - SDLCharacterSet.CID2SET, - ]; - } - return SDLCharacterSet_values; -} - -+ (SDLCharacterSet *)TYPE2SET { - if (SDLCharacterSet_TYPE2SET == nil) { - SDLCharacterSet_TYPE2SET = [[SDLCharacterSet alloc] initWithValue:@"TYPE2SET"]; - } - return SDLCharacterSet_TYPE2SET; -} - -+ (SDLCharacterSet *)TYPE5SET { - if (SDLCharacterSet_TYPE5SET == nil) { - SDLCharacterSet_TYPE5SET = [[SDLCharacterSet alloc] initWithValue:@"TYPE5SET"]; - } - return SDLCharacterSet_TYPE5SET; -} - -+ (SDLCharacterSet *)CID1SET { - if (SDLCharacterSet_CID1SET == nil) { - SDLCharacterSet_CID1SET = [[SDLCharacterSet alloc] initWithValue:@"CID1SET"]; - } - return SDLCharacterSet_CID1SET; -} - -+ (SDLCharacterSet *)CID2SET { - if (SDLCharacterSet_CID2SET == nil) { - SDLCharacterSet_CID2SET = [[SDLCharacterSet alloc] initWithValue:@"CID2SET"]; - } - return SDLCharacterSet_CID2SET; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.h deleted file mode 100644 index 478b33b5f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.h +++ /dev/null @@ -1,116 +0,0 @@ -// SDLChoice.h -// - -#import "SDLRPCMessage.h" - -@class SDLImage; - - -/** - * A choice is an option which a user can select either via the menu or via voice recognition (VR) during an application initiated interaction. - *

    Parameter List - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
    NameTypeDescriptionSmartDeviceLink Ver. Available
    choiceIDNSNumber * Application-scoped identifier that uniquely identifies this choice. - *
    Min: 0 - *
    Max: 65535 - *
    SmartDeviceLink 1.0
    menuNameNSString * Text which appears in menu, representing this choice. - *
    Min: 1 - *
    Max: 100 - *
    SmartDeviceLink 1.0
    vrCommandsNSMutableArray *An array of strings to be used as VR synonyms for this choice. If this array is provided, it must have at least one non-empty elementSmartDeviceLink 1.0
    imageSDLImage * Either a static hex icon value or a binary image file name identifier (sent by PutFile).SmartDeviceLink 2.0
    - * - * Since SmartDeviceLink 1.0
    - */ -@interface SDLChoice : SDLRPCStruct { -} - -/** - * Constructs a newly allocated SDLChoice object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLChoice object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract the application-scoped identifier that uniquely identifies this choice - * - * Required, Integer 0 - 65535 - */ -@property (strong) NSNumber *choiceID; - -/** - * @abstract Text which appears in menu, representing this choice - * - * Required, Max string length 500 chars - */ -@property (strong) NSString *menuName; - -/** - * @abstract VR synonyms for this choice - * - * Required, Array of Strings, Array length 1 - 100, Max String length 99 chars - */ -@property (strong) NSMutableArray *vrCommands; - -/** - * @abstract The image of the choice - * - * Optional - */ -@property (strong) SDLImage *image; - -/** - * @abstract Optional secondary text to display; e.g. address of POI in a search result entry - * - * Optional, Max String length 500 chars - */ -@property (strong) NSString *secondaryText; - -/** - * @abstract Optional tertiary text to display; e.g. distance to POI for a search result entry - * - * Optional, Max String length 500 chars - */ -@property (strong) NSString *tertiaryText; - -/** - * @abstract Optional secondary image for choice - * - * Optional - */ -@property (strong) SDLImage *secondaryImage; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.m deleted file mode 100644 index 83e1d56ae..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.m +++ /dev/null @@ -1,118 +0,0 @@ -// SDLChoice.m -// - -#import "SDLChoice.h" - -#import "SDLImage.h" -#import "SDLNames.h" - - -@implementation SDLChoice - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setChoiceID:(NSNumber *)choiceID { - if (choiceID != nil) { - [store setObject:choiceID forKey:NAMES_choiceID]; - } else { - [store removeObjectForKey:NAMES_choiceID]; - } -} - -- (NSNumber *)choiceID { - return [store objectForKey:NAMES_choiceID]; -} - -- (void)setMenuName:(NSString *)menuName { - if (menuName != nil) { - [store setObject:menuName forKey:NAMES_menuName]; - } else { - [store removeObjectForKey:NAMES_menuName]; - } -} - -- (NSString *)menuName { - return [store objectForKey:NAMES_menuName]; -} - -- (void)setVrCommands:(NSMutableArray *)vrCommands { - if (vrCommands != nil) { - [store setObject:vrCommands forKey:NAMES_vrCommands]; - } else { - [store removeObjectForKey:NAMES_vrCommands]; - } -} - -- (NSMutableArray *)vrCommands { - return [store objectForKey:NAMES_vrCommands]; -} - -- (void)setImage:(SDLImage *)image { - if (image != nil) { - [store setObject:image forKey:NAMES_image]; - } else { - [store removeObjectForKey:NAMES_image]; - } -} - -- (SDLImage *)image { - NSObject *obj = [store objectForKey:NAMES_image]; - if (obj == nil || [obj isKindOfClass:SDLImage.class]) { - return (SDLImage *)obj; - } else { - return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setSecondaryText:(NSString *)secondaryText { - if (secondaryText != nil) { - [store setObject:secondaryText forKey:NAMES_secondaryText]; - } else { - [store removeObjectForKey:NAMES_secondaryText]; - } -} - -- (NSString *)secondaryText { - return [store objectForKey:NAMES_secondaryText]; -} - -- (void)setTertiaryText:(NSString *)tertiaryText { - if (tertiaryText != nil) { - [store setObject:tertiaryText forKey:NAMES_tertiaryText]; - } else { - [store removeObjectForKey:NAMES_tertiaryText]; - } -} - -- (NSString *)tertiaryText { - return [store objectForKey:NAMES_tertiaryText]; -} - -- (void)setSecondaryImage:(SDLImage *)secondaryImage { - if (secondaryImage != nil) { - [store setObject:secondaryImage forKey:NAMES_secondaryImage]; - } else { - [store removeObjectForKey:NAMES_secondaryImage]; - } -} - -- (SDLImage *)secondaryImage { - NSObject *obj = [store objectForKey:NAMES_secondaryImage]; - if (obj == nil || [obj isKindOfClass:SDLImage.class]) { - return (SDLImage *)obj; - } else { - return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.h deleted file mode 100644 index 7b745804f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.h +++ /dev/null @@ -1,22 +0,0 @@ -// SDLClusterModeStatus.h -// - -#import "SDLRPCMessage.h" - -@class SDLCarModeStatus; -@class SDLPowerModeQualificationStatus; -@class SDLPowerModeStatus; - - -@interface SDLClusterModeStatus : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSNumber *powerModeActive; -@property (strong) SDLPowerModeQualificationStatus *powerModeQualificationStatus; -@property (strong) SDLCarModeStatus *carModeStatus; -@property (strong) SDLPowerModeStatus *powerModeStatus; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.m deleted file mode 100644 index ecd2a528b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.m +++ /dev/null @@ -1,89 +0,0 @@ -// SDLClusterModeStatus.m -// - -#import "SDLClusterModeStatus.h" - -#import "SDLCarModeStatus.h" -#import "SDLNames.h" -#import "SDLPowerModeQualificationStatus.h" -#import "SDLPowerModeStatus.h" - - -@implementation SDLClusterModeStatus - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setPowerModeActive:(NSNumber *)powerModeActive { - if (powerModeActive != nil) { - [store setObject:powerModeActive forKey:NAMES_powerModeActive]; - } else { - [store removeObjectForKey:NAMES_powerModeActive]; - } -} - -- (NSNumber *)powerModeActive { - return [store objectForKey:NAMES_powerModeActive]; -} - -- (void)setPowerModeQualificationStatus:(SDLPowerModeQualificationStatus *)powerModeQualificationStatus { - if (powerModeQualificationStatus != nil) { - [store setObject:powerModeQualificationStatus forKey:NAMES_powerModeQualificationStatus]; - } else { - [store removeObjectForKey:NAMES_powerModeQualificationStatus]; - } -} - -- (SDLPowerModeQualificationStatus *)powerModeQualificationStatus { - NSObject *obj = [store objectForKey:NAMES_powerModeQualificationStatus]; - if (obj == nil || [obj isKindOfClass:SDLPowerModeQualificationStatus.class]) { - return (SDLPowerModeQualificationStatus *)obj; - } else { - return [SDLPowerModeQualificationStatus valueOf:(NSString *)obj]; - } -} - -- (void)setCarModeStatus:(SDLCarModeStatus *)carModeStatus { - if (carModeStatus != nil) { - [store setObject:carModeStatus forKey:NAMES_carModeStatus]; - } else { - [store removeObjectForKey:NAMES_carModeStatus]; - } -} - -- (SDLCarModeStatus *)carModeStatus { - NSObject *obj = [store objectForKey:NAMES_carModeStatus]; - if (obj == nil || [obj isKindOfClass:SDLCarModeStatus.class]) { - return (SDLCarModeStatus *)obj; - } else { - return [SDLCarModeStatus valueOf:(NSString *)obj]; - } -} - -- (void)setPowerModeStatus:(SDLPowerModeStatus *)powerModeStatus { - if (powerModeStatus != nil) { - [store setObject:powerModeStatus forKey:NAMES_powerModeStatus]; - } else { - [store removeObjectForKey:NAMES_powerModeStatus]; - } -} - -- (SDLPowerModeStatus *)powerModeStatus { - NSObject *obj = [store objectForKey:NAMES_powerModeStatus]; - if (obj == nil || [obj isKindOfClass:SDLPowerModeStatus.class]) { - return (SDLPowerModeStatus *)obj; - } else { - return [SDLPowerModeStatus valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCompassDirection.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLCompassDirection.h deleted file mode 100644 index cad90cc90..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCompassDirection.h +++ /dev/null @@ -1,76 +0,0 @@ -// SDLCompassDirection.h -// - - -#import "SDLEnum.h" - -/** - * The list of potential compass directions. - * - * @since SDL 2.0 - */ -@interface SDLCompassDirection : SDLEnum { -} - -/** - * @abstract Convert String to SDLCompassDirection - * @param value The value of the string to get an object for - * @return SDLCompassDirection - */ -+ (SDLCompassDirection *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLCompassDirection - * @return An array that store all possible SDLCompassDirection - */ -+ (NSArray *)values; - -/** - * @abstract Direction North - * @return A SDLCompassDirection with the value of *NORTH* - */ -+ (SDLCompassDirection *)NORTH; - -/** - * @abstract Direction Northwest - * @return A SDLCompassDirection with the value of *NORTHWEST* - */ -+ (SDLCompassDirection *)NORTHWEST; - -/** - * @abstract Direction West - * @return A SDLCompassDirection with the value of *WEST* - */ -+ (SDLCompassDirection *)WEST; - -/** - * @abstract Direction Southwest - * @return A SDLCompassDirection with the value of *SOUTHWEST* - */ -+ (SDLCompassDirection *)SOUTHWEST; - -/** - * @abstract Direction South - * @return A SDLCompassDirection with the value of *SOUTH* - */ -+ (SDLCompassDirection *)SOUTH; - -/** - * @abstract Direction Southeast - * @return A SDLCompassDirection with the value of *SOUTHEAST* - */ -+ (SDLCompassDirection *)SOUTHEAST; - -/** - * @abstract Direction East - * @return A SDLCompassDirection with the value of *EAST* - */ -+ (SDLCompassDirection *)EAST; - -/** - * @abstract Direction Northeast - * @return A SDLCompassDirection with the value of *NORTHEAST* - */ -+ (SDLCompassDirection *)NORTHEAST; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCompassDirection.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLCompassDirection.m deleted file mode 100644 index f1c79fed1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCompassDirection.m +++ /dev/null @@ -1,101 +0,0 @@ -// SDLCompassDirection.m -// - - -#import "SDLCompassDirection.h" - -SDLCompassDirection *SDLCompassDirection_NORTH = nil; -SDLCompassDirection *SDLCompassDirection_NORTHWEST = nil; -SDLCompassDirection *SDLCompassDirection_WEST = nil; -SDLCompassDirection *SDLCompassDirection_SOUTHWEST = nil; -SDLCompassDirection *SDLCompassDirection_SOUTH = nil; -SDLCompassDirection *SDLCompassDirection_SOUTHEAST = nil; -SDLCompassDirection *SDLCompassDirection_EAST = nil; -SDLCompassDirection *SDLCompassDirection_NORTHEAST = nil; - -NSArray *SDLCompassDirection_values = nil; - -@implementation SDLCompassDirection - -+ (SDLCompassDirection *)valueOf:(NSString *)value { - for (SDLCompassDirection *item in SDLCompassDirection.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLCompassDirection_values == nil) { - SDLCompassDirection_values = @[ - SDLCompassDirection.NORTH, - SDLCompassDirection.NORTHWEST, - SDLCompassDirection.WEST, - SDLCompassDirection.SOUTHWEST, - SDLCompassDirection.SOUTH, - SDLCompassDirection.SOUTHEAST, - SDLCompassDirection.EAST, - SDLCompassDirection.NORTHEAST, - ]; - } - return SDLCompassDirection_values; -} - -+ (SDLCompassDirection *)NORTH { - if (SDLCompassDirection_NORTH == nil) { - SDLCompassDirection_NORTH = [[SDLCompassDirection alloc] initWithValue:@"NORTH"]; - } - return SDLCompassDirection_NORTH; -} - -+ (SDLCompassDirection *)NORTHWEST { - if (SDLCompassDirection_NORTHWEST == nil) { - SDLCompassDirection_NORTHWEST = [[SDLCompassDirection alloc] initWithValue:@"NORTHWEST"]; - } - return SDLCompassDirection_NORTHWEST; -} - -+ (SDLCompassDirection *)WEST { - if (SDLCompassDirection_WEST == nil) { - SDLCompassDirection_WEST = [[SDLCompassDirection alloc] initWithValue:@"WEST"]; - } - return SDLCompassDirection_WEST; -} - -+ (SDLCompassDirection *)SOUTHWEST { - if (SDLCompassDirection_SOUTHWEST == nil) { - SDLCompassDirection_SOUTHWEST = [[SDLCompassDirection alloc] initWithValue:@"SOUTHWEST"]; - } - return SDLCompassDirection_SOUTHWEST; -} - -+ (SDLCompassDirection *)SOUTH { - if (SDLCompassDirection_SOUTH == nil) { - SDLCompassDirection_SOUTH = [[SDLCompassDirection alloc] initWithValue:@"SOUTH"]; - } - return SDLCompassDirection_SOUTH; -} - -+ (SDLCompassDirection *)SOUTHEAST { - if (SDLCompassDirection_SOUTHEAST == nil) { - SDLCompassDirection_SOUTHEAST = [[SDLCompassDirection alloc] initWithValue:@"SOUTHEAST"]; - } - return SDLCompassDirection_SOUTHEAST; -} - -+ (SDLCompassDirection *)EAST { - if (SDLCompassDirection_EAST == nil) { - SDLCompassDirection_EAST = [[SDLCompassDirection alloc] initWithValue:@"EAST"]; - } - return SDLCompassDirection_EAST; -} - -+ (SDLCompassDirection *)NORTHEAST { - if (SDLCompassDirection_NORTHEAST == nil) { - SDLCompassDirection_NORTHEAST = [[SDLCompassDirection alloc] initWithValue:@"NORTHEAST"]; - } - return SDLCompassDirection_NORTHEAST; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLComponentVolumeStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLComponentVolumeStatus.h deleted file mode 100644 index 8df22663c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLComponentVolumeStatus.h +++ /dev/null @@ -1,64 +0,0 @@ -// SDLComponentVolumeStatus.h -// - - -#import "SDLEnum.h" - -/** - * The volume status of a vehicle component. - * - * @since SDL 2.0 - */ -@interface SDLComponentVolumeStatus : SDLEnum { -} - -/** - * @abstract Convert String to SDLComponentVolumeStatus - * @param value The value of the string to get an object for - * @return SDLComponentVolumeStatus - */ -+ (SDLComponentVolumeStatus *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLComponentVolumeStatus - * @return An array that store all possible SDLComponentVolumeStatus - */ -+ (NSArray *)values; - -/** - * @abstract Unknown SDLComponentVolumeStatus - * @return a SDLComponentVolumeStatus with the value of *UNKNOWN* - */ -+ (SDLComponentVolumeStatus *)UNKNOWN; - -/** - * @abstract Normal SDLComponentVolumeStatus - * @return a SDLComponentVolumeStatus with the value of *NORMAL* - */ -+ (SDLComponentVolumeStatus *)NORMAL; - -/** - * @abstract Low SDLComponentVolumeStatus - * @return a SDLComponentVolumeStatus with the value of *LOW* - */ -+ (SDLComponentVolumeStatus *)LOW; - -/** - * @abstract Fault SDLComponentVolumeStatus - * @return a SDLComponentVolumeStatus with the value of *FAULT* - */ -+ (SDLComponentVolumeStatus *)FAULT; - -/** - * @abstract Alert SDLComponentVolumeStatus - * @return a SDLComponentVolumeStatus with the value of *ALERT* - */ -+ (SDLComponentVolumeStatus *)ALERT; - -/** - * @abstract Not supported SDLComponentVolumeStatus - * @return a SDLComponentVolumeStatus with the value of *NOT_SUPPORTED* - */ -+ (SDLComponentVolumeStatus *)NOT_SUPPORTED; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLComponentVolumeStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLComponentVolumeStatus.m deleted file mode 100644 index 2e6834fb5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLComponentVolumeStatus.m +++ /dev/null @@ -1,83 +0,0 @@ -// SDLComponentVolumeStatus.m -// - - -#import "SDLComponentVolumeStatus.h" - -SDLComponentVolumeStatus *SDLComponentVolumeStatus_UNKNOWN = nil; -SDLComponentVolumeStatus *SDLComponentVolumeStatus_NORMAL = nil; -SDLComponentVolumeStatus *SDLComponentVolumeStatus_LOW = nil; -SDLComponentVolumeStatus *SDLComponentVolumeStatus_FAULT = nil; -SDLComponentVolumeStatus *SDLComponentVolumeStatus_ALERT = nil; -SDLComponentVolumeStatus *SDLComponentVolumeStatus_NOT_SUPPORTED = nil; - -NSArray *SDLComponentVolumeStatus_values = nil; - -@implementation SDLComponentVolumeStatus - -+ (SDLComponentVolumeStatus *)valueOf:(NSString *)value { - for (SDLComponentVolumeStatus *item in SDLComponentVolumeStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLComponentVolumeStatus_values == nil) { - SDLComponentVolumeStatus_values = @[ - SDLComponentVolumeStatus.UNKNOWN, - SDLComponentVolumeStatus.NORMAL, - SDLComponentVolumeStatus.LOW, - SDLComponentVolumeStatus.FAULT, - SDLComponentVolumeStatus.ALERT, - SDLComponentVolumeStatus.NOT_SUPPORTED, - ]; - } - return SDLComponentVolumeStatus_values; -} - -+ (SDLComponentVolumeStatus *)UNKNOWN { - if (SDLComponentVolumeStatus_UNKNOWN == nil) { - SDLComponentVolumeStatus_UNKNOWN = [[SDLComponentVolumeStatus alloc] initWithValue:@"UNKNOWN"]; - } - return SDLComponentVolumeStatus_UNKNOWN; -} - -+ (SDLComponentVolumeStatus *)NORMAL { - if (SDLComponentVolumeStatus_NORMAL == nil) { - SDLComponentVolumeStatus_NORMAL = [[SDLComponentVolumeStatus alloc] initWithValue:@"NORMAL"]; - } - return SDLComponentVolumeStatus_NORMAL; -} - -+ (SDLComponentVolumeStatus *)LOW { - if (SDLComponentVolumeStatus_LOW == nil) { - SDLComponentVolumeStatus_LOW = [[SDLComponentVolumeStatus alloc] initWithValue:@"LOW"]; - } - return SDLComponentVolumeStatus_LOW; -} - -+ (SDLComponentVolumeStatus *)FAULT { - if (SDLComponentVolumeStatus_FAULT == nil) { - SDLComponentVolumeStatus_FAULT = [[SDLComponentVolumeStatus alloc] initWithValue:@"FAULT"]; - } - return SDLComponentVolumeStatus_FAULT; -} - -+ (SDLComponentVolumeStatus *)ALERT { - if (SDLComponentVolumeStatus_ALERT == nil) { - SDLComponentVolumeStatus_ALERT = [[SDLComponentVolumeStatus alloc] initWithValue:@"ALERT"]; - } - return SDLComponentVolumeStatus_ALERT; -} - -+ (SDLComponentVolumeStatus *)NOT_SUPPORTED { - if (SDLComponentVolumeStatus_NOT_SUPPORTED == nil) { - SDLComponentVolumeStatus_NOT_SUPPORTED = [[SDLComponentVolumeStatus alloc] initWithValue:@"NOT_SUPPORTED"]; - } - return SDLComponentVolumeStatus_NOT_SUPPORTED; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.h deleted file mode 100644 index 5dec97948..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.h +++ /dev/null @@ -1,21 +0,0 @@ -// SDLConsoleController.h -// - -#import -#import - -#import "SDLDebugTool.h" - - -@interface SDLConsoleController : UITableViewController { - NSMutableArray *messageList; - BOOL atBottom; - NSDateFormatter *dateFormatter; -} - -@property (strong, readonly) NSMutableArray *messageList; - -- (instancetype)initWithTableView:(UITableView *)tableView; - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m deleted file mode 100644 index bf7f600ec..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m +++ /dev/null @@ -1,201 +0,0 @@ -// SDLConsoleController.m -// - -#import "SDLConsoleController.h" - -#import "SDLJSONEncoder.h" -#import "SDLRPCResponse.h" - - -@implementation SDLConsoleController - -@synthesize messageList; - -- (instancetype)initWithTableView:(UITableView *)tableView { - if (self = [super initWithStyle:UITableViewStylePlain]) { - self.tableView = tableView; - self.tableView.delegate = self; - self.tableView.dataSource = self; - [self viewDidLoad]; - } - return self; -} - - -- (void)append:(id)toAppend { - dispatch_async(dispatch_get_main_queue(), ^{ - //Insert the new data - NSMutableDictionary *dictionary = [NSMutableDictionary dictionary]; - - [dictionary setObject:toAppend forKey:@"object"]; - [dictionary setObject:[NSDate date] forKey:@"date"]; - - [messageList addObject:dictionary]; - NSIndexPath *newIndex = [NSIndexPath indexPathForRow:(messageList.count - 1) inSection:0]; - [self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:newIndex] withRowAnimation:UITableViewRowAnimationNone]; - - //If we were at the bottom, scroll to the new bottom. - if (atBottom) { - [self.tableView scrollToRowAtIndexPath:newIndex atScrollPosition:UITableViewScrollPositionBottom animated:YES]; - } - - [self.tableView reloadData]; - }); -} - -- (BOOL)isLastRowVisible { - if (messageList.count == 0) { - return YES; - } else { - NSIndexPath *lastIndex = [NSIndexPath indexPathForRow:(messageList.count - 1) inSection:0]; - - NSArray *visibleRowIndexes = [self.tableView indexPathsForVisibleRows]; - for (NSIndexPath *aPath in visibleRowIndexes) { - if ([aPath compare:lastIndex] == NSOrderedSame) { - return YES; - } - } - } - return NO; -} - - -#pragma mark - -#pragma mark SDLDebugTool Console Delegate - -- (void)logInfo:(NSString *)info { - [self append:info]; -} - -- (void)logException:(NSException *)ex withMessage:(NSString *)message { - [self append:message]; - [self append:[ex description]]; -} - -- (void)logMessage:(SDLRPCMessage *)message { - [self append:message]; -} - - -#pragma mark - -#pragma mark View lifecycle - - -- (void)viewDidLoad { - [SDLDebugTool addConsole:self]; - - [super viewDidLoad]; - - atBottom = YES; - - messageList = [[NSMutableArray alloc] initWithCapacity:100]; - dateFormatter = [[NSDateFormatter alloc] init]; - dateFormatter.dateFormat = @"hh:mm:ss.SSS"; -} - -#pragma mark - -#pragma mark Scroll View Delegate - -- (void)updateWhetherScrolledToBottom { - if ([self isLastRowVisible]) { - atBottom = YES; - } else { - atBottom = NO; - } -} - -- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView { - [self updateWhetherScrolledToBottom]; -} - -- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)willDecelerate { - [self updateWhetherScrolledToBottom]; -} - - -#pragma mark - -#pragma mark Table view data source - -- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { - // Return the number of sections. - return 1; -} - -- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { - // Return the number of rows in the section. - return messageList.count; -} - -// Customize the appearance of table view cells. -- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - static NSString *CellIdentifier = @"Cell"; - - UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; - if (cell == nil) { - cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier]; - } - - NSDictionary *currentDictionary = [messageList objectAtIndex:indexPath.row]; - id msg = [currentDictionary objectForKey:@"object"]; - - NSString *tempdetail = [@"Time: " stringByAppendingString:[dateFormatter stringFromDate:[currentDictionary objectForKey:@"date"]]]; - - if ([msg isKindOfClass:SDLRPCMessage.class]) { - SDLRPCMessage *rpc = msg; - NSString *title = [NSString stringWithFormat:@"%@ (%@)", rpc.name, rpc.messageType]; - - cell.textLabel.text = title; - - if ([rpc.messageType isEqualToString:@"response"]) { - SDLRPCResponse *response = (SDLRPCResponse *)rpc; - - NSString *detail = [NSString stringWithFormat:@"%@ - %@", tempdetail, [response resultCode]]; - cell.detailTextLabel.text = detail; - } else { - cell.detailTextLabel.text = tempdetail; - } - - } else { - cell.textLabel.text = msg; - cell.detailTextLabel.text = tempdetail; - } - - return cell; -} - - -#pragma mark - -#pragma mark Table view delegate - -- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { - NSDictionary *currentDictionary = [messageList objectAtIndex:indexPath.row]; - id obj = [currentDictionary objectForKey:@"object"]; - - NSString *alertText = nil; - if (obj == nil || [obj isKindOfClass:SDLRPCMessage.class]) { - SDLRPCMessage *rpc = obj; - NSDictionary *dictionary = [rpc serializeAsDictionary:2]; - NSError *error = nil; - NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dictionary - options:NSJSONWritingPrettyPrinted - error:&error]; - - if (!jsonData) { - alertText = @"Error parsing the JSON."; - } else { - alertText = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; - } - - } else { - alertText = [NSString stringWithFormat:@"%@", [obj description]]; - } - - UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"RPCMessage" message:alertText delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; - [alertView show]; - alertView = nil; - - [self.tableView deselectRowAtIndexPath:indexPath animated:YES]; -} - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSet.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSet.h deleted file mode 100644 index 721f505d7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSet.h +++ /dev/null @@ -1,49 +0,0 @@ -// SDLCreateInteractionChoiceSet.h -// - - -#import "SDLRPCRequest.h" - -/** - * Creates a Choice Set which can be used in subsequent *SDLPerformInteraction* Operations. - * - * HMILevel needs to be FULL, LIMITED or BACKGROUND - * - * Before a perform interaction is sent you MUST wait for the success from the CreateInteractionChoiceSet RPC. - * - * If you do not wait the system may not recognize the first utterance from the user. - * - * @since SDL 1.0 - * - * @see SDLDeleteInteractionChoiceSet SDLPerformInteraction - */ -@interface SDLCreateInteractionChoiceSet : SDLRPCRequest { -} - -/** - * Constructs a new SDLCreateInteractionChoiceSet object - */ -- (instancetype)init; - -/** - * Constructs a new SDLCreateInteractionChoiceSet object indicated by the dictionary parameter - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A unique ID that identifies the Choice Set - * - * Required, Integer, 0 - 2,000,000,000 - */ -@property (strong) NSNumber *interactionChoiceSetID; - -/** - * @abstract Array of choices, which the user can select by menu or voice recognition - * - * Required, SDLChoice, Array size 1 - 100 - */ -@property (strong) NSMutableArray *choiceSet; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSet.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSet.m deleted file mode 100644 index 32324d46e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSet.m +++ /dev/null @@ -1,57 +0,0 @@ -// SDLCreateInteractionChoiceSet.m -// - - -#import "SDLCreateInteractionChoiceSet.h" - -#import "SDLChoice.h" -#import "SDLNames.h" - -@implementation SDLCreateInteractionChoiceSet - -- (instancetype)init { - if (self = [super initWithName:NAMES_CreateInteractionChoiceSet]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setInteractionChoiceSetID:(NSNumber *)interactionChoiceSetID { - if (interactionChoiceSetID != nil) { - [parameters setObject:interactionChoiceSetID forKey:NAMES_interactionChoiceSetID]; - } else { - [parameters removeObjectForKey:NAMES_interactionChoiceSetID]; - } -} - -- (NSNumber *)interactionChoiceSetID { - return [parameters objectForKey:NAMES_interactionChoiceSetID]; -} - -- (void)setChoiceSet:(NSMutableArray *)choiceSet { - if (choiceSet != nil) { - [parameters setObject:choiceSet forKey:NAMES_choiceSet]; - } else { - [parameters removeObjectForKey:NAMES_choiceSet]; - } -} - -- (NSMutableArray *)choiceSet { - NSMutableArray *array = [parameters objectForKey:NAMES_choiceSet]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLChoice.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLChoice alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.h deleted file mode 100644 index e2d3b76e5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.h +++ /dev/null @@ -1,19 +0,0 @@ -// SDLCreateInteractionChoiceSetResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * SDLCreateInteractionChoiceSetResponse is sent, when SDLCreateInteractionChoiceSet - * has been called - * - * Since SmartDeviceLink 1.0 - */ -@interface SDLCreateInteractionChoiceSetResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.m deleted file mode 100644 index 17c2bf3f9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLCreateInteractionChoiceSetResponse.m -// - - -#import "SDLCreateInteractionChoiceSetResponse.h" - -#import "SDLNames.h" - -@implementation SDLCreateInteractionChoiceSetResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_CreateInteractionChoiceSet]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.h deleted file mode 100644 index a7d0b6c16..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.h +++ /dev/null @@ -1,19 +0,0 @@ -// SDLDIDResult.h -// - -#import "SDLRPCMessage.h" - -@class SDLVehicleDataResultCode; - - -@interface SDLDIDResult : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLVehicleDataResultCode *resultCode; -@property (strong) NSNumber *didLocation; -@property (strong) NSString *data; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.m deleted file mode 100644 index be42582e7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.m +++ /dev/null @@ -1,65 +0,0 @@ -// SDLDIDResult.m -// - -#import "SDLDIDResult.h" - -#import "SDLNames.h" -#import "SDLVehicleDataResultCode.h" - - -@implementation SDLDIDResult - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setResultCode:(SDLVehicleDataResultCode *)resultCode { - if (resultCode != nil) { - [store setObject:resultCode forKey:NAMES_resultCode]; - } else { - [store removeObjectForKey:NAMES_resultCode]; - } -} - -- (SDLVehicleDataResultCode *)resultCode { - NSObject *obj = [store objectForKey:NAMES_resultCode]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResultCode.class]) { - return (SDLVehicleDataResultCode *)obj; - } else { - return [SDLVehicleDataResultCode valueOf:(NSString *)obj]; - } -} - -- (void)setDidLocation:(NSNumber *)didLocation { - if (didLocation != nil) { - [store setObject:didLocation forKey:NAMES_didLocation]; - } else { - [store removeObjectForKey:NAMES_didLocation]; - } -} - -- (NSNumber *)didLocation { - return [store objectForKey:NAMES_didLocation]; -} - -- (void)setData:(NSString *)data { - if (data != nil) { - [store setObject:data forKey:NAMES_data]; - } else { - [store removeObjectForKey:NAMES_data]; - } -} - -- (NSString *)data { - return [store objectForKey:NAMES_data]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h deleted file mode 100644 index 0e487303b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h +++ /dev/null @@ -1,48 +0,0 @@ -// SDLDebugTool.h -// - - -#import "SDLDebugToolConsole.h" -#import - -@class SDLRPCMessage; - - -typedef NS_ENUM(UInt8, SDLDebugType) { - SDLDebugType_Debug = 0, - SDLDebugType_Transport_iAP = 1, - SDLDebugType_Transport_TCP = 2, - SDLDebugType_Protocol = 3, - SDLDebugType_RPC = 4, - SDLDebugType_APP = 5 -}; - -typedef NS_ENUM(UInt8, SDLDebugOutput) { - SDLDebugOutput_All = 0xFF, - SDLDebugOutput_DeviceConsole = 1, - SDLDebugOutput_DebugToolConsole = 2, - SDLDebugOutput_File = 4 -}; - - -@interface SDLDebugTool : NSObject { -} - -+ (void)addConsole:(NSObject *)console; -+ (void)addConsole:(NSObject *)console toGroup:(NSString *)groupName; -+ (void)removeConsole:(NSObject *)console; -+ (void)removeConsole:(NSObject *)console fromGroup:(NSString *)groupName; -+ (void)logInfo:(NSString *)info; -+ (void)logInfo:(NSString *)info withType:(SDLDebugType)type; -+ (void)logInfo:(NSString *)info withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output; -+ (void)logInfo:(NSString *)info andBinaryData:(NSData *)data withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output; -+ (void)logInfo:(NSString *)info withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output toGroup:(NSString *)consoleGroupName; - -+ (void)enableDebugToLogFile; -+ (void)disableDebugToLogFile; -+ (void)writeToLogFile:(NSString *)info; - -+ (NSString *)stringForDebugType:(SDLDebugType)type; - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.m deleted file mode 100644 index 1f0312c9c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.m +++ /dev/null @@ -1,258 +0,0 @@ -// SDLDebugTool.m -// - -#import "SDLDebugTool.h" -#import "NSThread+ThreadIndex.h" -#import "SDLHexUtility.h" -#import "SDLRPCMessage.h" -#import "SDLSiphonServer.h" - -#define LOG_ERROR_ENABLED - -@interface SDLDebugTool () - -@property (nonatomic, assign) BOOL debugToLogFile; -@property (nonatomic, strong) NSMutableDictionary *namedConsoleSets; -@property (nonatomic, strong) NSDateFormatter *logDateFormatter; -@property (nonatomic, strong) NSFileHandle *logFileHandle; -@property (nonatomic, strong) dispatch_queue_t logQueue; - -@end - - -@implementation SDLDebugTool - -#pragma mark - Lifecycle - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - _debugToLogFile = NO; - _logQueue = dispatch_queue_create("com.sdl.log.file", DISPATCH_QUEUE_SERIAL); - - return self; -} - -+ (SDLDebugTool *)sharedTool { - static SDLDebugTool *sharedTool = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - sharedTool = [[self.class alloc] init]; - }); - - return sharedTool; -} - - -#pragma mark - Console Management - -+ (void)addConsole:(NSObject *)console { - [self addConsole:console toGroup:@"default"]; -} - -- (void)sdl_addConsole:(NSObject *)console toGroup:(NSString *)groupName { - // Make sure master dictionary exists - if (self.namedConsoleSets == nil) { - self.namedConsoleSets = [NSMutableDictionary new]; - } - - // Make sure the set to contain this group's elements exists - if ([self.namedConsoleSets objectForKey:groupName] == nil) { - [self.namedConsoleSets setValue:[NSMutableSet new] forKey:groupName]; - } - - // Add the console to the set - [[self.namedConsoleSets valueForKey:groupName] addObject:console]; -} - -+ (void)addConsole:(NSObject *)console toGroup:(NSString *)groupName { - [[self sharedTool] sdl_addConsole:console toGroup:groupName]; -} - -+ (void)removeConsole:(NSObject *)console { - [self removeConsole:console fromGroup:@"default"]; -} - -+ (void)removeConsole:(NSObject *)console fromGroup:(NSString *)groupName { - [[SDLDebugTool getConsoleListenersForGroup:groupName] removeObject:console]; -} - -+ (NSMutableSet *)getConsoleListenersForGroup:(NSString *)groupName { - return [[self sharedTool] sdl_getConsoleListenersForGroup:groupName]; -} - -- (NSMutableSet *)sdl_getConsoleListenersForGroup:(NSString *)groupName { - return [self.namedConsoleSets valueForKey:groupName]; -} - - -#pragma mark - Logging - -+ (void)logInfo:(NSString *)info { - [self logInfo:info withType:SDLDebugType_Debug toOutput:SDLDebugOutput_All toGroup:@"default"]; -} - -+ (void)logInfo:(NSString *)info withType:(SDLDebugType)type { - [self logInfo:info withType:type toOutput:SDLDebugOutput_All toGroup:@"default"]; -} - -+ (void)logInfo:(NSString *)info withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output { - [SDLDebugTool logInfo:info withType:type toOutput:output toGroup:@"default"]; -} - -+ (void)logInfo:(NSString *)info andBinaryData:(NSData *)data withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output { - // convert binary data to string, append the two strings, then pass to usual log method. - NSMutableString *outputString = [[NSMutableString alloc] init]; - if (info) { - [outputString appendString:info]; - } - - if (data) { - @autoreleasepool { - NSString *dataString = [SDLHexUtility getHexString:data]; - if (dataString) { - [outputString appendString:dataString]; - } - } - } - - [SDLDebugTool logInfo:outputString withType:type toOutput:output toGroup:@"default"]; -} - -// The designated logInfo method. All outputs should be performed here. -+ (void)logInfo:(NSString *)info withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output toGroup:(NSString *)consoleGroupName { - // Format the message, prepend the thread id - NSString *outputString = [NSString stringWithFormat:@"[%li] %@", (long)[[NSThread currentThread] threadIndex], info]; - - // Output to the various destinations - - //Output To DeviceConsole - if (output & SDLDebugOutput_DeviceConsole) { - NSLog(@"%@", outputString); - } - - //Output To DebugToolConsoles - if (output & SDLDebugOutput_DebugToolConsole) { - NSSet *consoleListeners = [self getConsoleListenersForGroup:consoleGroupName]; - for (NSObject *console in consoleListeners) { - [console logInfo:outputString]; - } - } - - //Output To LogFile - if (output & SDLDebugOutput_File) { - [SDLDebugTool writeToLogFile:outputString]; - } - - //Output To Siphon - [SDLSiphonServer init]; - [SDLSiphonServer _siphonNSLogData:outputString]; -} - - -#pragma mark - File Handling - -+ (void)enableDebugToLogFile { - [[self sharedTool] sdl_enableDebugToLogFile]; -} - -- (void)sdl_enableDebugToLogFile { - [SDLDebugTool logInfo:@"Enabling Log File" withType:SDLDebugType_Debug]; - - self.debugToLogFile = YES; - - //Delete Log File If It Exists - NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); - NSString *documentsDirectory = [paths objectAtIndex:0]; - NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"smartdevicelink.log"]; - - NSFileManager *manager = [NSFileManager defaultManager]; - if ([manager fileExistsAtPath:filePath]) { - [manager removeItemAtPath:filePath error:nil]; - } - - // Create log file - [manager createFileAtPath:filePath contents:nil attributes:nil]; - self.logFileHandle = [NSFileHandle fileHandleForWritingAtPath:filePath]; - [self.logFileHandle seekToEndOfFile]; -} - -+ (void)disableDebugToLogFile { - [[self sharedTool] sdl_disableDebugToLogFile]; -} - -- (void)sdl_disableDebugToLogFile { - self.debugToLogFile = false; -} - -+ (void)writeToLogFile:(NSString *)info { - [[self sharedTool] sdl_writeToLogFile:info]; -} - -- (void)sdl_writeToLogFile:(NSString *)info { - // Warning: do not call any logInfo method from here. recursion of death. - if (!self.debugToLogFile || info == NULL || info.length == 0) { - return; - } - - dispatch_async(self.logQueue, ^{ - // Create timestamp string, add it in front of the message to be logged - NSDate *currentDate = [NSDate date]; - NSString *dateString = [self.logDateFormatter stringFromDate:currentDate]; - NSString *outputString = [dateString stringByAppendingFormat:@": %@\n", info]; - - // File write takes an NSData, so convert string to data. - NSData *dataToLog = [outputString dataUsingEncoding:NSUTF8StringEncoding]; - - if (self.logFileHandle != nil) { - [self.logFileHandle seekToEndOfFile]; - [self.logFileHandle writeData:dataToLog]; - } else { - NSLog(@"SDL ERROR: Unable to log to file. File handle does not exist."); - } - }); -} - -- (NSDateFormatter *)logDateFormatter { - if (_logDateFormatter == nil) { - _logDateFormatter = [[NSDateFormatter alloc] init]; - [_logDateFormatter setDateFormat:@"MM/dd/YY HH:mm:ss.SSS"]; - } - - return _logDateFormatter; -} - - -#pragma mark - Helper Methods - -+ (NSString *)stringForDebugType:(SDLDebugType)debugType { - switch (debugType) { - case SDLDebugType_Debug: - return @"DBG"; - break; - case SDLDebugType_Transport_iAP: - return @"iAP"; - break; - case SDLDebugType_Transport_TCP: - return @"TCP"; - break; - case SDLDebugType_Protocol: - return @"Pro"; - break; - case SDLDebugType_RPC: - return @"RPC"; - break; - case SDLDebugType_APP: - return @"APP"; - break; - - default: - return @"Invalid DebugType"; - break; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugToolConsole.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugToolConsole.h deleted file mode 100644 index 75d541e16..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugToolConsole.h +++ /dev/null @@ -1,12 +0,0 @@ -// -// SDLDebugToolConsole.h -// SmartDeviceLink-iOS - -#import - -@protocol SDLDebugToolConsole - -@required -- (void)logInfo:(NSString *)info; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDecoder.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDecoder.h deleted file mode 100644 index 6328ecf82..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDecoder.h +++ /dev/null @@ -1,11 +0,0 @@ -// SDLDecoder.h -// - - -#import - -@protocol SDLDecoder - -- (NSDictionary *)decode:(NSData *)msgBytes; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommand.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommand.h deleted file mode 100644 index 4f3b74d90..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommand.h +++ /dev/null @@ -1,43 +0,0 @@ -// SDLDeleteCommand.h -// - - -#import "SDLRPCRequest.h" - -/** - * Removes a command from the Command Menu - *

    - * HMI Status Requirements:
    - * HMILevel: FULL, LIMITED or BACKGROUND
    - * AudioStreamingState: N/A
    - * SystemContext: Should not be attempted when VRSESSION or MENU - *

    - * - * Since SmartDeviceLink 1.0
    - * see SDLAddCommand SDLAddSubMenu SDLDeleteSubMenu - */ -@interface SDLDeleteCommand : SDLRPCRequest { -} - -/** - * Constructs a new SDLDeleteCommand object - */ -- (instancetype)init; -/** - * Constructs a new SDLDeleteCommand object indicated by the NSMutableDictionary - * parameter - *

    - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract the Command ID that identifies the Command to be deleted from Command Menu - * @discussion an NSNumber value representing Command ID - *

    - * Notes: Min Value: 0; Max Value: 2000000000 - */ -@property (strong) NSNumber *cmdID; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommand.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommand.m deleted file mode 100644 index 13c51d7ed..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommand.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLDeleteCommand.m -// - - -#import "SDLDeleteCommand.h" - -#import "SDLNames.h" - -@implementation SDLDeleteCommand - -- (instancetype)init { - if (self = [super initWithName:NAMES_DeleteCommand]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setCmdID:(NSNumber *)cmdID { - if (cmdID != nil) { - [parameters setObject:cmdID forKey:NAMES_cmdID]; - } else { - [parameters removeObjectForKey:NAMES_cmdID]; - } -} - -- (NSNumber *)cmdID { - return [parameters objectForKey:NAMES_cmdID]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommandResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommandResponse.h deleted file mode 100644 index 7f231c8e3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommandResponse.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLDeleteCommandResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * SDLDeleteCommandResponse is sent, when SDLDeleteCommand has been called - * - * Since SmartDeviceLink 1.0
    - */ -@interface SDLDeleteCommandResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommandResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommandResponse.m deleted file mode 100644 index 3c3d5b7a7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommandResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLDeleteCommandResponse.m -// - - -#import "SDLDeleteCommandResponse.h" - -#import "SDLNames.h" - -@implementation SDLDeleteCommandResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_DeleteCommand]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFile.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFile.h deleted file mode 100644 index 325782673..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFile.h +++ /dev/null @@ -1,36 +0,0 @@ -// SDLDeleteFile.h -// - - -#import "SDLRPCRequest.h" - -/** - * Used to delete a file resident on the SDL module in the app's local cache. - * Not supported on first generation SDL vehicles - *

    - * - * Since SmartDeviceLink 2.0
    - * see SDLPutFile SDLListFiles - */ -@interface SDLDeleteFile : SDLRPCRequest { -} - -/** - * Constructs a new SDLDeleteFile object - */ -- (instancetype)init; -/** - * Constructs a new SDLDeleteFile object indicated by the dictionary parameter - *

    - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract a file reference name - * @discussion a String value representing a file reference name - */ -@property (strong) NSString *syncFileName; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFile.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFile.m deleted file mode 100644 index d7a4c18b2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFile.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLDeleteFile.m -// - - -#import "SDLDeleteFile.h" - -#import "SDLNames.h" - -@implementation SDLDeleteFile - -- (instancetype)init { - if (self = [super initWithName:NAMES_DeleteFile]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setSyncFileName:(NSString *)syncFileName { - if (syncFileName != nil) { - [parameters setObject:syncFileName forKey:NAMES_syncFileName]; - } else { - [parameters removeObjectForKey:NAMES_syncFileName]; - } -} - -- (NSString *)syncFileName { - return [parameters objectForKey:NAMES_syncFileName]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFileResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFileResponse.h deleted file mode 100644 index ee61aa9d0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFileResponse.h +++ /dev/null @@ -1,20 +0,0 @@ -// SDLDeleteFileResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Delete File Response is sent, when DeleteFile has been called - * - * Since SmartDeviceLink 2.0
    - */ -@interface SDLDeleteFileResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSNumber *spaceAvailable; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFileResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFileResponse.m deleted file mode 100644 index b94075b39..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFileResponse.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLDeleteFileResponse.m -// - - -#import "SDLDeleteFileResponse.h" - -#import "SDLNames.h" - -@implementation SDLDeleteFileResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_DeleteFile]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setSpaceAvailable:(NSNumber *)spaceAvailable { - if (spaceAvailable != nil) { - [parameters setObject:spaceAvailable forKey:NAMES_spaceAvailable]; - } else { - [parameters removeObjectForKey:NAMES_spaceAvailable]; - } -} - -- (NSNumber *)spaceAvailable { - return [parameters objectForKey:NAMES_spaceAvailable]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSet.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSet.h deleted file mode 100644 index 28058064b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSet.h +++ /dev/null @@ -1,45 +0,0 @@ -// SDLDeleteInteractionChoiceSet.h -// - - -#import "SDLRPCRequest.h" - -/** - * Deletes an existing Choice Set identified by the parameter - * interactionChoiceSetID. If the specified interactionChoiceSetID is currently - * in use by an active SDLPerformInteraction this call to - * delete the Choice Set will fail returning an IN_USE resultCode - *

    - * Function Group: Base - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUD
    - *

    - * - * Since SmartDeviceLink 1.0
    - * see SDLCreateInteractionChoiceSet SDLPerformInteraction - */ -@interface SDLDeleteInteractionChoiceSet : SDLRPCRequest { -} - -/** - * Constructs a new SDLDeleteInteractionChoiceSet object - */ -- (instancetype)init; -/** - * Constructs a new SDLDeleteInteractionChoiceSet object indicated by the - * NSMutableDictionary parameter - *

    - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract a unique ID that identifies the Choice Set - * @discussion a unique ID that identifies the Choice Set - *

    - * Notes: Min Value: 0; Max Value: 2000000000 - */ -@property (strong) NSNumber *interactionChoiceSetID; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSet.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSet.m deleted file mode 100644 index fd5d202b1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSet.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLDeleteInteractionChoiceSet.m -// - - -#import "SDLDeleteInteractionChoiceSet.h" - -#import "SDLNames.h" - -@implementation SDLDeleteInteractionChoiceSet - -- (instancetype)init { - if (self = [super initWithName:NAMES_DeleteInteractionChoiceSet]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setInteractionChoiceSetID:(NSNumber *)interactionChoiceSetID { - if (interactionChoiceSetID != nil) { - [parameters setObject:interactionChoiceSetID forKey:NAMES_interactionChoiceSetID]; - } else { - [parameters removeObjectForKey:NAMES_interactionChoiceSetID]; - } -} - -- (NSNumber *)interactionChoiceSetID { - return [parameters objectForKey:NAMES_interactionChoiceSetID]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.h deleted file mode 100644 index 7a5cd4406..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLDeleteInteractionChoiceSetResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * SDLDeleteInteractionChoiceSetResponse is sent, when SDLDeleteInteractionChoiceSet has been called - * - * Since SmartDeviceLink 1.0 - */ -@interface SDLDeleteInteractionChoiceSetResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.m deleted file mode 100644 index 666a758a1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLDeleteInteractionChoiceSetResponse.m -// - - -#import "SDLDeleteInteractionChoiceSetResponse.h" - -#import "SDLNames.h" - -@implementation SDLDeleteInteractionChoiceSetResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_DeleteInteractionChoiceSet]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenu.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenu.h deleted file mode 100644 index 37c2dc544..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenu.h +++ /dev/null @@ -1,38 +0,0 @@ -// SDLDeleteSubMenu.h -// - - -#import "SDLRPCRequest.h" - -/** - * Deletes a submenu from the Command Menu - *

    - * Notes: When an app deletes a submenu that has child commands, those - * child commands are also deleted - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - * - * Since SmartDeviceLink 1.0
    - * see SDLAddCommand SDLAddSubMenu SDLDeleteCommand - */ -@interface SDLDeleteSubMenu : SDLRPCRequest { -} - -/** - * Constructs a new SDLDeleteSubMenu object - */ -- (instancetype)init; -/** - * Constructs a new SDLDeleteSubMenu object indicated by the dictionary parameter

    - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract the MenuID that identifies the SDLSubMenu to be delete - * @discussion Notes: Min Value: 0; Max Value: 2000000000 - */ -@property (strong) NSNumber *menuID; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenu.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenu.m deleted file mode 100644 index 8727f44d3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenu.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLDeleteSubMenu.m -// - - -#import "SDLDeleteSubMenu.h" - -#import "SDLNames.h" - -@implementation SDLDeleteSubMenu - -- (instancetype)init { - if (self = [super initWithName:NAMES_DeleteSubMenu]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setMenuID:(NSNumber *)menuID { - if (menuID != nil) { - [parameters setObject:menuID forKey:NAMES_menuID]; - } else { - [parameters removeObjectForKey:NAMES_menuID]; - } -} - -- (NSNumber *)menuID { - return [parameters objectForKey:NAMES_menuID]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenuResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenuResponse.h deleted file mode 100644 index 3b32df8f3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenuResponse.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLDeleteSubMenuResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * SDLDeleteSubMenuResponse is sent, when SDLDeleteSubMenu has been called - * - * Since SmartDeviceLink 1.0 - */ -@interface SDLDeleteSubMenuResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenuResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenuResponse.m deleted file mode 100644 index b88d9b626..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenuResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLDeleteSubMenuResponse.m -// - - -#import "SDLDeleteSubMenuResponse.h" - -#import "SDLNames.h" - -@implementation SDLDeleteSubMenuResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_DeleteSubMenu]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h deleted file mode 100644 index 1bcbdaa27..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h +++ /dev/null @@ -1,20 +0,0 @@ -// SDLDeviceInfo.h -// - -#import "SDLRPCMessage.h" - - -@interface SDLDeviceInfo : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSString *hardware; -@property (strong) NSString *firmwareRev; -@property (strong) NSString *os; -@property (strong) NSString *osVersion; -@property (strong) NSString *carrier; -@property (strong) NSNumber *maxNumberRFCOMMPorts; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.m deleted file mode 100644 index 134aea629..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.m +++ /dev/null @@ -1,95 +0,0 @@ -// SDLDeviceInfo.m -// - -#import "SDLDeviceInfo.h" - -#import "SDLNames.h" - - -@implementation SDLDeviceInfo - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setHardware:(NSString *)hardware { - if (hardware != nil) { - [store setObject:hardware forKey:NAMES_hardware]; - } else { - [store removeObjectForKey:NAMES_hardware]; - } -} - -- (NSString *)hardware { - return [store objectForKey:NAMES_hardware]; -} - -- (void)setFirmwareRev:(NSString *)firmwareRev { - if (firmwareRev != nil) { - [store setObject:firmwareRev forKey:NAMES_firmwareRev]; - } else { - [store removeObjectForKey:NAMES_firmwareRev]; - } -} - -- (NSString *)firmwareRev { - return [store objectForKey:NAMES_firmwareRev]; -} - -- (void)setOs:(NSString *)os { - if (os != nil) { - [store setObject:os forKey:NAMES_os]; - } else { - [store removeObjectForKey:NAMES_os]; - } -} - -- (NSString *)os { - return [store objectForKey:NAMES_os]; -} - -- (void)setOsVersion:(NSString *)osVersion { - if (osVersion != nil) { - [store setObject:osVersion forKey:NAMES_osVersion]; - } else { - [store removeObjectForKey:NAMES_osVersion]; - } -} - -- (NSString *)osVersion { - return [store objectForKey:NAMES_osVersion]; -} - -- (void)setCarrier:(NSString *)carrier { - if (carrier != nil) { - [store setObject:carrier forKey:NAMES_carrier]; - } else { - [store removeObjectForKey:NAMES_carrier]; - } -} - -- (NSString *)carrier { - return [store objectForKey:NAMES_carrier]; -} - -- (void)setMaxNumberRFCOMMPorts:(NSNumber *)maxNumberRFCOMMPorts { - if (maxNumberRFCOMMPorts != nil) { - [store setObject:maxNumberRFCOMMPorts forKey:NAMES_maxNumberRFCOMMPorts]; - } else { - [store removeObjectForKey:NAMES_maxNumberRFCOMMPorts]; - } -} - -- (NSNumber *)maxNumberRFCOMMPorts { - return [store objectForKey:NAMES_maxNumberRFCOMMPorts]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceLevelStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceLevelStatus.h deleted file mode 100644 index e0cb85aea..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceLevelStatus.h +++ /dev/null @@ -1,64 +0,0 @@ -// SDLDeviceLevelStatus.h -// - - -#import "SDLEnum.h" - -/** - * Reflects the reported battery status of the connected device, if reported. - * - * @since SDL 2.0 - */ -@interface SDLDeviceLevelStatus : SDLEnum { -} - -/** - * Convert String to DeviceLevelStatus - * @param value String - * @return DeviceLevelStatus - */ -+ (SDLDeviceLevelStatus *)valueOf:(NSString *)value; - -/** - @abstract Store the enumeration of all possible SDLDeviceLevelStatus - @return an array that store all possible SDLDeviceLevelStatus - */ -+ (NSArray *)values; - -/** - * @abstract Device battery level is zero bars - * @return a SDLDeviceLevelStatus with value of *ZERO_LEVEL_BARS* - */ -+ (SDLDeviceLevelStatus *)ZERO_LEVEL_BARS; - -/** - * @abstract Device battery level is one bar - * @return a SDLDeviceLevelStatus with value of *ONE_LEVEL_BARS* - */ -+ (SDLDeviceLevelStatus *)ONE_LEVEL_BARS; - -/** - * @abstract Device battery level is two bars - * @return a SDLDeviceLevelStatus with value of *TWO_LEVEL_BARS* - */ -+ (SDLDeviceLevelStatus *)TWO_LEVEL_BARS; - -/** - * @abstract Device battery level is three bars - * @return a SDLDeviceLevelStatus with value of *THREE_LEVEL_BARS* - */ -+ (SDLDeviceLevelStatus *)THREE_LEVEL_BARS; - -/** - * @abstract Device battery level is four bars - * @return a SDLDeviceLevelStatus with value of *FOUR_LEVEL_BARS* - */ -+ (SDLDeviceLevelStatus *)FOUR_LEVEL_BARS; - -/** - * @abstract Device battery level is unknown - * @return a SDLDeviceLevelStatus with value of *NOT_PROVIDED* - */ -+ (SDLDeviceLevelStatus *)NOT_PROVIDED; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceLevelStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceLevelStatus.m deleted file mode 100644 index 5babd37b5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceLevelStatus.m +++ /dev/null @@ -1,83 +0,0 @@ -// SDLDeviceLevelStatus.m -// - - -#import "SDLDeviceLevelStatus.h" - -SDLDeviceLevelStatus *SDLDeviceLevelStatus_ZERO_LEVEL_BARS = nil; -SDLDeviceLevelStatus *SDLDeviceLevelStatus_ONE_LEVEL_BARS = nil; -SDLDeviceLevelStatus *SDLDeviceLevelStatus_TWO_LEVEL_BARS = nil; -SDLDeviceLevelStatus *SDLDeviceLevelStatus_THREE_LEVEL_BARS = nil; -SDLDeviceLevelStatus *SDLDeviceLevelStatus_FOUR_LEVEL_BARS = nil; -SDLDeviceLevelStatus *SDLDeviceLevelStatus_NOT_PROVIDED = nil; - -NSArray *SDLDeviceLevelStatus_values = nil; - -@implementation SDLDeviceLevelStatus - -+ (SDLDeviceLevelStatus *)valueOf:(NSString *)value { - for (SDLDeviceLevelStatus *item in SDLDeviceLevelStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLDeviceLevelStatus_values == nil) { - SDLDeviceLevelStatus_values = @[ - SDLDeviceLevelStatus.ZERO_LEVEL_BARS, - SDLDeviceLevelStatus.ONE_LEVEL_BARS, - SDLDeviceLevelStatus.TWO_LEVEL_BARS, - SDLDeviceLevelStatus.THREE_LEVEL_BARS, - SDLDeviceLevelStatus.FOUR_LEVEL_BARS, - SDLDeviceLevelStatus.NOT_PROVIDED, - ]; - } - return SDLDeviceLevelStatus_values; -} - -+ (SDLDeviceLevelStatus *)ZERO_LEVEL_BARS { - if (SDLDeviceLevelStatus_ZERO_LEVEL_BARS == nil) { - SDLDeviceLevelStatus_ZERO_LEVEL_BARS = [[SDLDeviceLevelStatus alloc] initWithValue:@"ZERO_LEVEL_BARS"]; - } - return SDLDeviceLevelStatus_ZERO_LEVEL_BARS; -} - -+ (SDLDeviceLevelStatus *)ONE_LEVEL_BARS { - if (SDLDeviceLevelStatus_ONE_LEVEL_BARS == nil) { - SDLDeviceLevelStatus_ONE_LEVEL_BARS = [[SDLDeviceLevelStatus alloc] initWithValue:@"ONE_LEVEL_BARS"]; - } - return SDLDeviceLevelStatus_ONE_LEVEL_BARS; -} - -+ (SDLDeviceLevelStatus *)TWO_LEVEL_BARS { - if (SDLDeviceLevelStatus_TWO_LEVEL_BARS == nil) { - SDLDeviceLevelStatus_TWO_LEVEL_BARS = [[SDLDeviceLevelStatus alloc] initWithValue:@"TWO_LEVEL_BARS"]; - } - return SDLDeviceLevelStatus_TWO_LEVEL_BARS; -} - -+ (SDLDeviceLevelStatus *)THREE_LEVEL_BARS { - if (SDLDeviceLevelStatus_THREE_LEVEL_BARS == nil) { - SDLDeviceLevelStatus_THREE_LEVEL_BARS = [[SDLDeviceLevelStatus alloc] initWithValue:@"THREE_LEVEL_BARS"]; - } - return SDLDeviceLevelStatus_THREE_LEVEL_BARS; -} - -+ (SDLDeviceLevelStatus *)FOUR_LEVEL_BARS { - if (SDLDeviceLevelStatus_FOUR_LEVEL_BARS == nil) { - SDLDeviceLevelStatus_FOUR_LEVEL_BARS = [[SDLDeviceLevelStatus alloc] initWithValue:@"FOUR_LEVEL_BARS"]; - } - return SDLDeviceLevelStatus_FOUR_LEVEL_BARS; -} - -+ (SDLDeviceLevelStatus *)NOT_PROVIDED { - if (SDLDeviceLevelStatus_NOT_PROVIDED == nil) { - SDLDeviceLevelStatus_NOT_PROVIDED = [[SDLDeviceLevelStatus alloc] initWithValue:@"NOT_PROVIDED"]; - } - return SDLDeviceLevelStatus_NOT_PROVIDED; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.h deleted file mode 100644 index d8442d438..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.h +++ /dev/null @@ -1,199 +0,0 @@ -// SDLDeviceStatus.h -// - -#import "SDLRPCMessage.h" - -@class SDLDeviceLevelStatus; -@class SDLPrimaryAudioSource; - - -/** - * Describes the status related to a connected mobile device or SDL and if or how it is represented in the vehicle. - * - * Parameter List - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
    NameTypeDescriptionSmartDeviceLink Ver. Available
    voiceRecOnNSNumber * Voice recognition is on - * SmartDeviceLink 2.0
    btIconOnNSNumber * Bluetooth connection established - * SmartDeviceLink 2.0
    callActiveNSNumber * A call is being active - * SmartDeviceLink 2.0
    phoneRoamingNSNumber * The phone is in roaming mode - * SmartDeviceLink 2.0
    textMsgAvailableNSNumber * A textmessage is available - * SmartDeviceLink 2.0
    battLevelStatusSDLDeviceLevelStatus * Battery level status - * SmartDeviceLink 2.0
    stereoAudioOutputMutedNSNumber * Status of the stereo audio output channel - * SmartDeviceLink 2.0
    monoAudioOutputMutedNSNumber * Status of the mono audio output channel - * SmartDeviceLink 2.0
    signalLevelStatusSDLDeviceLevelStatus * Signal level status - * SmartDeviceLink 2.0
    primaryAudioSourcePrimaryAudioSource * Reflects the current primary audio source of SDL (if selected). - * SmartDeviceLink 2.0
    eCallEventActiveNSNumber * Reflects, if an eCall event is active - * SmartDeviceLink 2.0
    - * @since SDL 2.0 - */ -@interface SDLDeviceStatus : SDLRPCStruct { -} - -/** - * Constructs a newly allocated SDLDeviceStatus object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLDeviceStatus object indicated by the dictionary parameter - * - * @param dict The dictionary to use to construct the object - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract Indicates whether the voice recognition is on or off - * - * Required, Boolean - */ -@property (strong) NSNumber *voiceRecOn; - -/** - * @abstract Indicates whether the bluetooth connection established - * - * Required, Boolean - */ -@property (strong) NSNumber *btIconOn; - -/** - * @abstract Indicates whether a call is being active - * - * Required, Boolean - */ -@property (strong) NSNumber *callActive; - -/** - * @abstract Indicates whether the phone is in roaming mode - * - * Required, Boolean - */ -@property (strong) NSNumber *phoneRoaming; - -/** - * @abstract Indicates whether a textmessage is available - * - * Required, Boolean - */ -@property (strong) NSNumber *textMsgAvailable; - -/** - * @abstract Battery level status - * - * @see SDLDeviceLevelStatus - * - * Required - */ -@property (strong) SDLDeviceLevelStatus *battLevelStatus; - -/** - * @abstract The status of the stereo audio output channel - * - * Required, Boolean - */ -@property (strong) NSNumber *stereoAudioOutputMuted; - -/** - * @abstract The status of the mono audio output channel - * - * Required, Boolean - */ -@property (strong) NSNumber *monoAudioOutputMuted; - -/** - * @abstract Signal level status - * - * @see SDLDeviceLevelStatus - * - * Required - */ -@property (strong) SDLDeviceLevelStatus *signalLevelStatus; - -/** - * @abstract The current primary audio source of SDL (if selected). - * - * @see SDLPrimaryAudioSource - * - * Required - */ -@property (strong) SDLPrimaryAudioSource *primaryAudioSource; - -/** - * @abstract Indicates if an emergency call is active - * - * Required, Boolean - */ -@property (strong) NSNumber *eCallEventActive; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.m deleted file mode 100644 index fbe3b4b96..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.m +++ /dev/null @@ -1,172 +0,0 @@ -// SDLDeviceStatus.m -// - -#import "SDLDeviceStatus.h" - -#import "SDLDeviceLevelStatus.h" -#import "SDLNames.h" -#import "SDLPrimaryAudioSource.h" - - -@implementation SDLDeviceStatus - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setVoiceRecOn:(NSNumber *)voiceRecOn { - if (voiceRecOn != nil) { - [store setObject:voiceRecOn forKey:NAMES_voiceRecOn]; - } else { - [store removeObjectForKey:NAMES_voiceRecOn]; - } -} - -- (NSNumber *)voiceRecOn { - return [store objectForKey:NAMES_voiceRecOn]; -} - -- (void)setBtIconOn:(NSNumber *)btIconOn { - if (btIconOn != nil) { - [store setObject:btIconOn forKey:NAMES_btIconOn]; - } else { - [store removeObjectForKey:NAMES_btIconOn]; - } -} - -- (NSNumber *)btIconOn { - return [store objectForKey:NAMES_btIconOn]; -} - -- (void)setCallActive:(NSNumber *)callActive { - if (callActive != nil) { - [store setObject:callActive forKey:NAMES_callActive]; - } else { - [store removeObjectForKey:NAMES_callActive]; - } -} - -- (NSNumber *)callActive { - return [store objectForKey:NAMES_callActive]; -} - -- (void)setPhoneRoaming:(NSNumber *)phoneRoaming { - if (phoneRoaming != nil) { - [store setObject:phoneRoaming forKey:NAMES_phoneRoaming]; - } else { - [store removeObjectForKey:NAMES_phoneRoaming]; - } -} - -- (NSNumber *)phoneRoaming { - return [store objectForKey:NAMES_phoneRoaming]; -} - -- (void)setTextMsgAvailable:(NSNumber *)textMsgAvailable { - if (textMsgAvailable != nil) { - [store setObject:textMsgAvailable forKey:NAMES_textMsgAvailable]; - } else { - [store removeObjectForKey:NAMES_textMsgAvailable]; - } -} - -- (NSNumber *)textMsgAvailable { - return [store objectForKey:NAMES_textMsgAvailable]; -} - -- (void)setBattLevelStatus:(SDLDeviceLevelStatus *)battLevelStatus { - if (battLevelStatus != nil) { - [store setObject:battLevelStatus forKey:NAMES_battLevelStatus]; - } else { - [store removeObjectForKey:NAMES_battLevelStatus]; - } -} - -- (SDLDeviceLevelStatus *)battLevelStatus { - NSObject *obj = [store objectForKey:NAMES_battLevelStatus]; - if (obj == nil || [obj isKindOfClass:SDLDeviceLevelStatus.class]) { - return (SDLDeviceLevelStatus *)obj; - } else { - return [SDLDeviceLevelStatus valueOf:(NSString *)obj]; - } -} - -- (void)setStereoAudioOutputMuted:(NSNumber *)stereoAudioOutputMuted { - if (stereoAudioOutputMuted != nil) { - [store setObject:stereoAudioOutputMuted forKey:NAMES_stereoAudioOutputMuted]; - } else { - [store removeObjectForKey:NAMES_stereoAudioOutputMuted]; - } -} - -- (NSNumber *)stereoAudioOutputMuted { - return [store objectForKey:NAMES_stereoAudioOutputMuted]; -} - -- (void)setMonoAudioOutputMuted:(NSNumber *)monoAudioOutputMuted { - if (monoAudioOutputMuted != nil) { - [store setObject:monoAudioOutputMuted forKey:NAMES_monoAudioOutputMuted]; - } else { - [store removeObjectForKey:NAMES_monoAudioOutputMuted]; - } -} - -- (NSNumber *)monoAudioOutputMuted { - return [store objectForKey:NAMES_monoAudioOutputMuted]; -} - -- (void)setSignalLevelStatus:(SDLDeviceLevelStatus *)signalLevelStatus { - if (signalLevelStatus != nil) { - [store setObject:signalLevelStatus forKey:NAMES_signalLevelStatus]; - } else { - [store removeObjectForKey:NAMES_signalLevelStatus]; - } -} - -- (SDLDeviceLevelStatus *)signalLevelStatus { - NSObject *obj = [store objectForKey:NAMES_signalLevelStatus]; - if (obj == nil || [obj isKindOfClass:SDLDeviceLevelStatus.class]) { - return (SDLDeviceLevelStatus *)obj; - } else { - return [SDLDeviceLevelStatus valueOf:(NSString *)obj]; - } -} - -- (void)setPrimaryAudioSource:(SDLPrimaryAudioSource *)primaryAudioSource { - if (primaryAudioSource != nil) { - [store setObject:primaryAudioSource forKey:NAMES_primaryAudioSource]; - } else { - [store removeObjectForKey:NAMES_primaryAudioSource]; - } -} - -- (SDLPrimaryAudioSource *)primaryAudioSource { - NSObject *obj = [store objectForKey:NAMES_primaryAudioSource]; - if (obj == nil || [obj isKindOfClass:SDLPrimaryAudioSource.class]) { - return (SDLPrimaryAudioSource *)obj; - } else { - return [SDLPrimaryAudioSource valueOf:(NSString *)obj]; - } -} - -- (void)setECallEventActive:(NSNumber *)eCallEventActive { - if (eCallEventActive != nil) { - [store setObject:eCallEventActive forKey:NAMES_eCallEventActive]; - } else { - [store removeObjectForKey:NAMES_eCallEventActive]; - } -} - -- (NSNumber *)eCallEventActive { - return [store objectForKey:NAMES_eCallEventActive]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessage.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessage.h deleted file mode 100644 index 40ca013f2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessage.h +++ /dev/null @@ -1,39 +0,0 @@ -// SDLDiagnosticMessage.h -// - - -#import "SDLRPCRequest.h" - -/** - * Non periodic vehicle diagnostic request - * - * @since SDL 3.0 - */ -@interface SDLDiagnosticMessage : SDLRPCRequest { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * Name of target ECU - * - * Required, Integer, 0 - 65535 - */ -@property (strong) NSNumber *targetID; - -/** - * Length of message (in bytes) - * - * Required, Integer, 65535 - */ -@property (strong) NSNumber *messageLength; - -/** - * Array of bytes comprising CAN message. - * - * Required, Array of NSNumber (Integers), Array size 1 - 65535, Integer Size 0 - 255 - */ -@property (strong) NSMutableArray *messageData; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessage.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessage.m deleted file mode 100644 index 8a45a8650..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessage.m +++ /dev/null @@ -1,59 +0,0 @@ -// SDLDiagnosticMessage.m -// - - -#import "SDLDiagnosticMessage.h" - -#import "SDLNames.h" - -@implementation SDLDiagnosticMessage - -- (instancetype)init { - if (self = [super initWithName:NAMES_DiagnosticMessage]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setTargetID:(NSNumber *)targetID { - if (targetID != nil) { - [parameters setObject:targetID forKey:NAMES_targetID]; - } else { - [parameters removeObjectForKey:NAMES_targetID]; - } -} - -- (NSNumber *)targetID { - return [parameters objectForKey:NAMES_targetID]; -} - -- (void)setMessageLength:(NSNumber *)messageLength { - if (messageLength != nil) { - [parameters setObject:messageLength forKey:NAMES_messageLength]; - } else { - [parameters removeObjectForKey:NAMES_messageLength]; - } -} - -- (NSNumber *)messageLength { - return [parameters objectForKey:NAMES_messageLength]; -} - -- (void)setMessageData:(NSMutableArray *)messageData { - if (messageData != nil) { - [parameters setObject:messageData forKey:NAMES_messageData]; - } else { - [parameters removeObjectForKey:NAMES_messageData]; - } -} - -- (NSMutableArray *)messageData { - return [parameters objectForKey:NAMES_messageData]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessageResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessageResponse.h deleted file mode 100644 index 4820b893f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessageResponse.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLDiagnosticMessageResponse.h -// - - -#import "SDLRPCResponse.h" - -/** SDLDiagnosticMessageResponse is sent, when SDLDiagnosticMessage has been called. - * SinceSmartDeviceLink 3.0 - */ -@interface SDLDiagnosticMessageResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSMutableArray *messageDataResult; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessageResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessageResponse.m deleted file mode 100644 index f8215d977..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessageResponse.m +++ /dev/null @@ -1,34 +0,0 @@ -// SDLDiagnosticMessageResponse.m -// - -#import "SDLDiagnosticMessageResponse.h" - -#import "SDLNames.h" - -@implementation SDLDiagnosticMessageResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_DiagnosticMessage]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setMessageDataResult:(NSMutableArray *)messageDataResult { - if (messageDataResult != nil) { - [parameters setObject:messageDataResult forKey:NAMES_messageDataResult]; - } else { - [parameters removeObjectForKey:NAMES_messageDataResult]; - } -} - -- (NSMutableArray *)messageDataResult { - return [parameters objectForKey:NAMES_messageDataResult]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumber.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumber.h deleted file mode 100644 index 48cca6a6d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumber.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// SDLDialNumber.h -// SmartDeviceLink-iOS - -#import "SDLRPCRequest.h" - -/** - This RPC is used to tell the head unit to use bluetooth to dial a phone number using the phone. - - @since SDL 4.0 - */ -@interface SDLDialNumber : SDLRPCRequest - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * Up to 40 character string representing the phone number. All characters stripped except for '0'-'9', '*', '#', ',', ';', and '+' - */ -@property (strong, nonatomic) NSString *number; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumber.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumber.m deleted file mode 100644 index 856f9ad75..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumber.m +++ /dev/null @@ -1,35 +0,0 @@ -// -// SDLDialNumber.m -// SmartDeviceLink-iOS - -#import "SDLDialNumber.h" - -#import "SDLNames.h" - -@implementation SDLDialNumber - -- (instancetype)init { - if (self = [super initWithName:NAMES_DialNumber]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setNumber:(NSString *)number { - if (number != nil) { - parameters[NAMES_number] = number; - } else { - [parameters removeObjectForKey:NAMES_number]; - } -} - -- (NSString *)number { - return parameters[NAMES_number]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumberResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumberResponse.h deleted file mode 100644 index 454babcf3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumberResponse.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// SDLDialNumberResponse.h -// SmartDeviceLink-iOS - -#import "SDLRPCResponse.h" - -/** - Indicates the result, success, or failure of the SDLDialNumber request. - - @since SDL 4.0 - */ -@interface SDLDialNumberResponse : SDLRPCResponse - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumberResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumberResponse.m deleted file mode 100644 index a0b6dd83e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumberResponse.m +++ /dev/null @@ -1,24 +0,0 @@ -// -// SDLDialNumberResponse.m -// SmartDeviceLink-iOS - -#import "SDLDialNumberResponse.h" - -#import "SDLNames.h" - - -@implementation SDLDialNumberResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_DialNumber]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDimension.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDimension.h deleted file mode 100644 index 535f93e6e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDimension.h +++ /dev/null @@ -1,51 +0,0 @@ -// SDLDimension.h -// - - -#import "SDLEnum.h" - -#import - -/** - * The supported dimensions of the GPS. - * - * @since SDL 2.0 - */ -@interface SDLDimension : SDLEnum { -} - -/** - * Convert String to SDLDimension - * - * @param value The value of the string to get an object for - * - * @return SDLDimension - */ -+ (SDLDimension *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLDimension - * - * @return An array that store all possible SDLDimension - */ -+ (NSArray *)values; - -/** - * @abstract No GPS at all - * @return the dimension with value of *NO_FIX* - */ -+ (SDLDimension *)NO_FIX; - -/** - * @abstract Longitude and latitude of the GPS - * @return the dimension with value of *2D* - */ -+ (SDLDimension *)_2D; - -/** - * @abstract Longitude and latitude and altitude of the GPS - * @return the dimension with value of *3D* - */ -+ (SDLDimension *)_3D; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDimension.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDimension.m deleted file mode 100644 index 81e0114fc..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDimension.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLDimension.m -// - - -#import "SDLDimension.h" - -SDLDimension *SDLDimension_NO_FIX = nil; -SDLDimension *SDLDimension_2D = nil; -SDLDimension *SDLDimension_3D = nil; - -NSArray *SDLDimension_values = nil; - -@implementation SDLDimension - -+ (SDLDimension *)valueOf:(NSString *)value { - for (SDLDimension *item in SDLDimension.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLDimension_values == nil) { - SDLDimension_values = @[ - SDLDimension.NO_FIX, - SDLDimension._2D, - SDLDimension._3D, - ]; - } - return SDLDimension_values; -} - -+ (SDLDimension *)NO_FIX { - if (SDLDimension_NO_FIX == nil) { - SDLDimension_NO_FIX = [[SDLDimension alloc] initWithValue:@"NO_FIX"]; - } - return SDLDimension_NO_FIX; -} - -+ (SDLDimension *)_2D { - if (SDLDimension_2D == nil) { - SDLDimension_2D = [[SDLDimension alloc] initWithValue:@"2D"]; - } - return SDLDimension_2D; -} - -+ (SDLDimension *)_3D { - if (SDLDimension_3D == nil) { - SDLDimension_3D = [[SDLDimension alloc] initWithValue:@"3D"]; - } - return SDLDimension_3D; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.h deleted file mode 100644 index 57ebd6719..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.h +++ /dev/null @@ -1,100 +0,0 @@ -// SDLDisplayCapabilities.h -// - -#import "SDLRPCMessage.h" - -@class SDLDisplayType; -@class SDLScreenParams; - - -/** - * Contains information about the display for the SDL system to which the application is currently connected. - * - * @since SDL 1.0 - */ -@interface SDLDisplayCapabilities : SDLRPCStruct { -} - -/** - * Constructs a newly allocated SDLDisplayCapabilities object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLDisplayCapabilities object indicated by the dictionary parameter - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The type of display - * - * Required - */ -@property (strong) SDLDisplayType *displayType; - -/** - * @abstract An array of SDLTextField structures, each of which describes a field in the HMI which the application can write to using operations such as *SDLShow*, *SDLSetMediaClockTimer*, etc. - * - * @discussion This array of SDLTextField structures identify all the text fields to which the application can write on the current display (identified by SDLDisplayType). - * - * @see SDLTextField - * - * Required, Array of SDLTextField, 1 - 100 objects - */ -@property (strong) NSMutableArray *textFields; - -/** - * @abstract An array of SDLImageField elements - * - * @discussion A set of all fields that support images. - * - * @see SDLImageField - * - * Optional, Array of SDLImageField, 1 - 100 objects - */ -@property (strong) NSMutableArray *imageFields; - -/** - * @abstract An array of SDLMediaClockFormat elements, defining the valid string formats used in specifying the contents of the media clock field - * - * @see SDLMediaClockFormat - * - * Required, Array of SDLMediaClockFormats, 0 - 100 objects - */ -@property (strong) NSMutableArray *mediaClockFormats; - -/** - * @abstract The display's persistent screen supports. - * - * @since SDL 2.0 - * - * Required, Boolean - */ -@property (strong) NSNumber *graphicSupported; - -/** - * @abstract Number of presets the screen supports - * - * @discussion The number of on-screen custom presets available (if any) - * - * Optional, Array of String, max string size 100, 0 - 100 objects - */ -@property (strong) NSMutableArray *templatesAvailable; - -/** - * @abstract A set of all parameters related to a prescribed screen area (e.g. for video / touch input) - * - * Optional - */ -@property (strong) SDLScreenParams *screenParams; - -/** - * @abstract The number of on-screen custom presets available (if any); otherwise omitted - * - * Optional, Integer 1 - 100 - */ -@property (strong) NSNumber *numCustomPresetsAvailable; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.m deleted file mode 100644 index 07ae53d62..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.m +++ /dev/null @@ -1,161 +0,0 @@ -// SDLDisplayCapabilities.m -// - -#import "SDLDisplayCapabilities.h" - -#import "SDLDisplayType.h" -#import "SDLImageField.h" -#import "SDLMediaClockFormat.h" -#import "SDLNames.h" -#import "SDLScreenParams.h" -#import "SDLTextField.h" - - -@implementation SDLDisplayCapabilities - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setDisplayType:(SDLDisplayType *)displayType { - if (displayType != nil) { - [store setObject:displayType forKey:NAMES_displayType]; - } else { - [store removeObjectForKey:NAMES_displayType]; - } -} - -- (SDLDisplayType *)displayType { - NSObject *obj = [store objectForKey:NAMES_displayType]; - if (obj == nil || [obj isKindOfClass:SDLDisplayType.class]) { - return (SDLDisplayType *)obj; - } else { - return [SDLDisplayType valueOf:(NSString *)obj]; - } -} - -- (void)setTextFields:(NSMutableArray *)textFields { - if (textFields != nil) { - [store setObject:textFields forKey:NAMES_textFields]; - } else { - [store removeObjectForKey:NAMES_textFields]; - } -} - -- (NSMutableArray *)textFields { - NSMutableArray *array = [store objectForKey:NAMES_textFields]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTextField.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTextField alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setImageFields:(NSMutableArray *)imageFields { - if (imageFields != nil) { - [store setObject:imageFields forKey:NAMES_imageFields]; - } else { - [store removeObjectForKey:NAMES_imageFields]; - } -} - -- (NSMutableArray *)imageFields { - NSMutableArray *array = [store objectForKey:NAMES_imageFields]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLImageField.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLImageField alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setMediaClockFormats:(NSMutableArray *)mediaClockFormats { - if (mediaClockFormats != nil) { - [store setObject:mediaClockFormats forKey:NAMES_mediaClockFormats]; - } else { - [store removeObjectForKey:NAMES_mediaClockFormats]; - } -} - -- (NSMutableArray *)mediaClockFormats { - NSMutableArray *array = [store objectForKey:NAMES_mediaClockFormats]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLMediaClockFormat.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSString *enumString in array) { - [newList addObject:[SDLMediaClockFormat valueOf:enumString]]; - } - return newList; - } -} - -- (void)setGraphicSupported:(NSNumber *)graphicSupported { - if (graphicSupported != nil) { - [store setObject:graphicSupported forKey:NAMES_graphicSupported]; - } else { - [store removeObjectForKey:NAMES_graphicSupported]; - } -} - -- (NSNumber *)graphicSupported { - return [store objectForKey:NAMES_graphicSupported]; -} - -- (void)setTemplatesAvailable:(NSMutableArray *)templatesAvailable { - if (templatesAvailable != nil) { - [store setObject:templatesAvailable forKey:NAMES_templatesAvailable]; - } else { - [store removeObjectForKey:NAMES_templatesAvailable]; - } -} - -- (NSMutableArray *)templatesAvailable { - return [store objectForKey:NAMES_templatesAvailable]; -} - -- (void)setScreenParams:(SDLScreenParams *)screenParams { - if (screenParams != nil) { - [store setObject:screenParams forKey:NAMES_screenParams]; - } else { - [store removeObjectForKey:NAMES_screenParams]; - } -} - -- (SDLScreenParams *)screenParams { - NSObject *obj = [store objectForKey:NAMES_screenParams]; - if (obj == nil || [obj isKindOfClass:SDLScreenParams.class]) { - return (SDLScreenParams *)obj; - } else { - return [[SDLScreenParams alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setNumCustomPresetsAvailable:(NSNumber *)numCustomPresetsAvailable { - if (numCustomPresetsAvailable != nil) { - [store setObject:numCustomPresetsAvailable forKey:NAMES_numCustomPresetsAvailable]; - } else { - [store removeObjectForKey:NAMES_numCustomPresetsAvailable]; - } -} - -- (NSNumber *)numCustomPresetsAvailable { - return [store objectForKey:NAMES_numCustomPresetsAvailable]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.h deleted file mode 100644 index 3bb2f2b9a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.h +++ /dev/null @@ -1,61 +0,0 @@ -// SDLDisplayType.h -// - - -#import "SDLEnum.h" - -/** - * Identifies the various display types used by SDL. - * - * @since SDL 1.0 - */ -@interface SDLDisplayType : SDLEnum { -} - -/** - * Convert String to SDLDisplayType - * - * @param value The value of the string to get an object for - * - * @return SDLDisplayType - */ -+ (SDLDisplayType *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLDisplayType - * - * @return an array that store all possible SDLDisplayType - */ -+ (NSArray *)values; - -/** - * @abstract This display type provides a 2-line x 20 character "dot matrix" display. - * - * @return SDLDisplayType with value of *CID* - */ -+ (SDLDisplayType *)CID; - -+ (SDLDisplayType *)TYPE2; - -+ (SDLDisplayType *)TYPE5; - -/** - * @abstract This display type provides an 8 inch touchscreen display. - * - * @return SDLDisplayType with value of *NGN* - */ -+ (SDLDisplayType *)NGN; - -+ (SDLDisplayType *)GEN2_8_DMA; - -+ (SDLDisplayType *)GEN2_6_DMA; - -+ (SDLDisplayType *)MFD3; - -+ (SDLDisplayType *)MFD4; - -+ (SDLDisplayType *)MFD5; - -+ (SDLDisplayType *)GEN3_8_INCH; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.m deleted file mode 100644 index 8059aa54b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.m +++ /dev/null @@ -1,119 +0,0 @@ -// SDLDisplayType.m -// - - -#import "SDLDisplayType.h" - -SDLDisplayType *SDLDisplayType_CID = nil; -SDLDisplayType *SDLDisplayType_TYPE2 = nil; -SDLDisplayType *SDLDisplayType_TYPE5 = nil; -SDLDisplayType *SDLDisplayType_NGN = nil; -SDLDisplayType *SDLDisplayType_GEN2_8_DMA = nil; -SDLDisplayType *SDLDisplayType_GEN2_6_DMA = nil; -SDLDisplayType *SDLDisplayType_MFD3 = nil; -SDLDisplayType *SDLDisplayType_MFD4 = nil; -SDLDisplayType *SDLDisplayType_MFD5 = nil; -SDLDisplayType *SDLDisplayType_GEN3_8_INCH = nil; - -NSArray *SDLDisplayType_values = nil; - -@implementation SDLDisplayType - -+ (SDLDisplayType *)valueOf:(NSString *)value { - for (SDLDisplayType *item in SDLDisplayType.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLDisplayType_values == nil) { - SDLDisplayType_values = @[ - SDLDisplayType.CID, - SDLDisplayType.TYPE2, - SDLDisplayType.TYPE5, - SDLDisplayType.NGN, - SDLDisplayType.GEN2_8_DMA, - SDLDisplayType.GEN2_6_DMA, - SDLDisplayType.MFD3, - SDLDisplayType.MFD4, - SDLDisplayType.MFD5, - SDLDisplayType.GEN3_8_INCH, - ]; - } - return SDLDisplayType_values; -} - -+ (SDLDisplayType *)CID { - if (SDLDisplayType_CID == nil) { - SDLDisplayType_CID = [[SDLDisplayType alloc] initWithValue:@"CID"]; - } - return SDLDisplayType_CID; -} - -+ (SDLDisplayType *)TYPE2 { - if (SDLDisplayType_TYPE2 == nil) { - SDLDisplayType_TYPE2 = [[SDLDisplayType alloc] initWithValue:@"TYPE2"]; - } - return SDLDisplayType_TYPE2; -} - -+ (SDLDisplayType *)TYPE5 { - if (SDLDisplayType_TYPE5 == nil) { - SDLDisplayType_TYPE5 = [[SDLDisplayType alloc] initWithValue:@"TYPE5"]; - } - return SDLDisplayType_TYPE5; -} - -+ (SDLDisplayType *)NGN { - if (SDLDisplayType_NGN == nil) { - SDLDisplayType_NGN = [[SDLDisplayType alloc] initWithValue:@"NGN"]; - } - return SDLDisplayType_NGN; -} - -+ (SDLDisplayType *)GEN2_8_DMA { - if (SDLDisplayType_GEN2_8_DMA == nil) { - SDLDisplayType_GEN2_8_DMA = [[SDLDisplayType alloc] initWithValue:@"GEN2_8_DMA"]; - } - return SDLDisplayType_GEN2_8_DMA; -} - -+ (SDLDisplayType *)GEN2_6_DMA { - if (SDLDisplayType_GEN2_6_DMA == nil) { - SDLDisplayType_GEN2_6_DMA = [[SDLDisplayType alloc] initWithValue:@"GEN2_6_DMA"]; - } - return SDLDisplayType_GEN2_6_DMA; -} - -+ (SDLDisplayType *)MFD3 { - if (SDLDisplayType_MFD3 == nil) { - SDLDisplayType_MFD3 = [[SDLDisplayType alloc] initWithValue:@"MFD3"]; - } - return SDLDisplayType_MFD3; -} - -+ (SDLDisplayType *)MFD4 { - if (SDLDisplayType_MFD4 == nil) { - SDLDisplayType_MFD4 = [[SDLDisplayType alloc] initWithValue:@"MFD4"]; - } - return SDLDisplayType_MFD4; -} - -+ (SDLDisplayType *)MFD5 { - if (SDLDisplayType_MFD5 == nil) { - SDLDisplayType_MFD5 = [[SDLDisplayType alloc] initWithValue:@"MFD5"]; - } - return SDLDisplayType_MFD5; -} - -+ (SDLDisplayType *)GEN3_8_INCH { - if (SDLDisplayType_GEN3_8_INCH == nil) { - SDLDisplayType_GEN3_8_INCH = [[SDLDisplayType alloc] initWithValue:@"GEN3_8-INCH"]; - } - return SDLDisplayType_GEN3_8_INCH; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDriverDistractionState.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDriverDistractionState.h deleted file mode 100644 index 7143d09d2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDriverDistractionState.h +++ /dev/null @@ -1,45 +0,0 @@ -// SDLDriverDistractionState.h -// - - -#import "SDLEnum.h" - -/** - * Enumeration that describes possible states of driver distraction. - * - * @since SDL 1.0 - */ -@interface SDLDriverDistractionState : SDLEnum { -} - -/** - * Convert String to SDLDisplayType - * - * @param value The value of the string to get an object for - * - * @return SDLDisplayType - */ -+ (SDLDriverDistractionState *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLDriverDistractionState - * - * @return an array that store all possible SDLDriverDistractionState - */ -+ (NSArray *)values; - -/** - * @abstract Driver distraction rules are in effect. - * - * @return a SDLDriverDistractionState with value of *DD_ON* - */ -+ (SDLDriverDistractionState *)DD_ON; - -/** - * @abstract Driver distraction rules are NOT in effect. - * - * @return a SDLDriverDistractionState with value of *DD_OFF* - */ -+ (SDLDriverDistractionState *)DD_OFF; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDriverDistractionState.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDriverDistractionState.m deleted file mode 100644 index c9a6d8714..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDriverDistractionState.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLDriverDistractionState.m -// - - -#import "SDLDriverDistractionState.h" - -SDLDriverDistractionState *SDLDriverDistractionState_DD_ON = nil; -SDLDriverDistractionState *SDLDriverDistractionState_DD_OFF = nil; - -NSArray *SDLDriverDistractionState_values = nil; - -@implementation SDLDriverDistractionState - -+ (SDLDriverDistractionState *)valueOf:(NSString *)value { - for (SDLDriverDistractionState *item in SDLDriverDistractionState.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLDriverDistractionState_values == nil) { - SDLDriverDistractionState_values = @[ - SDLDriverDistractionState.DD_ON, - SDLDriverDistractionState.DD_OFF, - ]; - } - return SDLDriverDistractionState_values; -} - -+ (SDLDriverDistractionState *)DD_ON { - if (SDLDriverDistractionState_DD_ON == nil) { - SDLDriverDistractionState_DD_ON = [[SDLDriverDistractionState alloc] initWithValue:@"DD_ON"]; - } - return SDLDriverDistractionState_DD_ON; -} - -+ (SDLDriverDistractionState *)DD_OFF { - if (SDLDriverDistractionState_DD_OFF == nil) { - SDLDriverDistractionState_DD_OFF = [[SDLDriverDistractionState alloc] initWithValue:@"DD_OFF"]; - } - return SDLDriverDistractionState_DD_OFF; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallConfirmationStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallConfirmationStatus.h deleted file mode 100644 index 46fa78de6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallConfirmationStatus.h +++ /dev/null @@ -1,52 +0,0 @@ -// SDLECallConfirmationStatus.h -// - - -#import "SDLEnum.h" - -/** Reflects the status of the eCall Notification. - *Since SmartDeviceLink 2.0 -

    - */ -@interface SDLECallConfirmationStatus : SDLEnum { -} - -+ (SDLECallConfirmationStatus *)valueOf:(NSString *)value; -+ (NSArray *)values; - -/** No E-Call signal triggered. - */ - -+ (SDLECallConfirmationStatus *)NORMAL; - -/** An E-Call is being in progress. - */ - -+ (SDLECallConfirmationStatus *)CALL_IN_PROGRESS; - -/** CALL_CANCELLED An E-Call was cancelled by the user. - */ - -+ (SDLECallConfirmationStatus *)CALL_CANCELLED; - -/** The E-Call sequence is completed. - */ - -+ (SDLECallConfirmationStatus *)CALL_COMPLETED; - -/** An E-Call could not be connected. - */ - -+ (SDLECallConfirmationStatus *)CALL_UNSUCCESSFUL; - -/** E-Call is not configured on this vehicle. - */ - -+ (SDLECallConfirmationStatus *)ECALL_CONFIGURED_OFF; - -/** E-Call is considered to be complete without Emergency Operator contact. - */ - -+ (SDLECallConfirmationStatus *)CALL_COMPLETE_DTMF_TIMEOUT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallConfirmationStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallConfirmationStatus.m deleted file mode 100644 index aae11a791..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallConfirmationStatus.m +++ /dev/null @@ -1,92 +0,0 @@ -// SDLECallConfirmationStatus.m -// - - -#import "SDLECallConfirmationStatus.h" - -SDLECallConfirmationStatus *SDLECallConfirmationStatus_NORMAL = nil; -SDLECallConfirmationStatus *SDLECallConfirmationStatus_CALL_IN_PROGRESS = nil; -SDLECallConfirmationStatus *SDLECallConfirmationStatus_CALL_CANCELLED = nil; -SDLECallConfirmationStatus *SDLECallConfirmationStatus_CALL_COMPLETED = nil; -SDLECallConfirmationStatus *SDLECallConfirmationStatus_CALL_UNSUCCESSFUL = nil; -SDLECallConfirmationStatus *SDLECallConfirmationStatus_ECALL_CONFIGURED_OFF = nil; -SDLECallConfirmationStatus *SDLECallConfirmationStatus_CALL_COMPLETE_DTMF_TIMEOUT = nil; - -NSArray *SDLECallConfirmationStatus_values = nil; - -@implementation SDLECallConfirmationStatus - -+ (SDLECallConfirmationStatus *)valueOf:(NSString *)value { - for (SDLECallConfirmationStatus *item in SDLECallConfirmationStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLECallConfirmationStatus_values == nil) { - SDLECallConfirmationStatus_values = @[ - SDLECallConfirmationStatus.NORMAL, - SDLECallConfirmationStatus.CALL_IN_PROGRESS, - SDLECallConfirmationStatus.CALL_CANCELLED, - SDLECallConfirmationStatus.CALL_COMPLETED, - SDLECallConfirmationStatus.CALL_UNSUCCESSFUL, - SDLECallConfirmationStatus.ECALL_CONFIGURED_OFF, - SDLECallConfirmationStatus.CALL_COMPLETE_DTMF_TIMEOUT, - ]; - } - return SDLECallConfirmationStatus_values; -} - -+ (SDLECallConfirmationStatus *)NORMAL { - if (SDLECallConfirmationStatus_NORMAL == nil) { - SDLECallConfirmationStatus_NORMAL = [[SDLECallConfirmationStatus alloc] initWithValue:@"NORMAL"]; - } - return SDLECallConfirmationStatus_NORMAL; -} - -+ (SDLECallConfirmationStatus *)CALL_IN_PROGRESS { - if (SDLECallConfirmationStatus_CALL_IN_PROGRESS == nil) { - SDLECallConfirmationStatus_CALL_IN_PROGRESS = [[SDLECallConfirmationStatus alloc] initWithValue:@"CALL_IN_PROGRESS"]; - } - return SDLECallConfirmationStatus_CALL_IN_PROGRESS; -} - -+ (SDLECallConfirmationStatus *)CALL_CANCELLED { - if (SDLECallConfirmationStatus_CALL_CANCELLED == nil) { - SDLECallConfirmationStatus_CALL_CANCELLED = [[SDLECallConfirmationStatus alloc] initWithValue:@"CALL_CANCELLED"]; - } - return SDLECallConfirmationStatus_CALL_CANCELLED; -} - -+ (SDLECallConfirmationStatus *)CALL_COMPLETED { - if (SDLECallConfirmationStatus_CALL_COMPLETED == nil) { - SDLECallConfirmationStatus_CALL_COMPLETED = [[SDLECallConfirmationStatus alloc] initWithValue:@"CALL_COMPLETED"]; - } - return SDLECallConfirmationStatus_CALL_COMPLETED; -} - -+ (SDLECallConfirmationStatus *)CALL_UNSUCCESSFUL { - if (SDLECallConfirmationStatus_CALL_UNSUCCESSFUL == nil) { - SDLECallConfirmationStatus_CALL_UNSUCCESSFUL = [[SDLECallConfirmationStatus alloc] initWithValue:@"CALL_UNSUCCESSFUL"]; - } - return SDLECallConfirmationStatus_CALL_UNSUCCESSFUL; -} - -+ (SDLECallConfirmationStatus *)ECALL_CONFIGURED_OFF { - if (SDLECallConfirmationStatus_ECALL_CONFIGURED_OFF == nil) { - SDLECallConfirmationStatus_ECALL_CONFIGURED_OFF = [[SDLECallConfirmationStatus alloc] initWithValue:@"ECALL_CONFIGURED_OFF"]; - } - return SDLECallConfirmationStatus_ECALL_CONFIGURED_OFF; -} - -+ (SDLECallConfirmationStatus *)CALL_COMPLETE_DTMF_TIMEOUT { - if (SDLECallConfirmationStatus_CALL_COMPLETE_DTMF_TIMEOUT == nil) { - SDLECallConfirmationStatus_CALL_COMPLETE_DTMF_TIMEOUT = [[SDLECallConfirmationStatus alloc] initWithValue:@"CALL_COMPLETE_DTMF_TIMEOUT"]; - } - return SDLECallConfirmationStatus_CALL_COMPLETE_DTMF_TIMEOUT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.h deleted file mode 100644 index 932cf056a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.h +++ /dev/null @@ -1,20 +0,0 @@ -// SDLECallInfo.h -// - -#import "SDLRPCMessage.h" - -@class SDLVehicleDataNotificationStatus; -@class SDLECallConfirmationStatus; - - -@interface SDLECallInfo : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLVehicleDataNotificationStatus *eCallNotificationStatus; -@property (strong) SDLVehicleDataNotificationStatus *auxECallNotificationStatus; -@property (strong) SDLECallConfirmationStatus *eCallConfirmationStatus; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.m deleted file mode 100644 index 44046fcd0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.m +++ /dev/null @@ -1,76 +0,0 @@ -// SDLECallInfo.m -// - -#import "SDLECallInfo.h" - -#import "SDLECallConfirmationStatus.h" -#import "SDLNames.h" -#import "SDLVehicleDataNotificationStatus.h" - - -@implementation SDLECallInfo - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setECallNotificationStatus:(SDLVehicleDataNotificationStatus *)eCallNotificationStatus { - if (eCallNotificationStatus != nil) { - [store setObject:eCallNotificationStatus forKey:NAMES_eCallNotificationStatus]; - } else { - [store removeObjectForKey:NAMES_eCallNotificationStatus]; - } -} - -- (SDLVehicleDataNotificationStatus *)eCallNotificationStatus { - NSObject *obj = [store objectForKey:NAMES_eCallNotificationStatus]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataNotificationStatus.class]) { - return (SDLVehicleDataNotificationStatus *)obj; - } else { - return [SDLVehicleDataNotificationStatus valueOf:(NSString *)obj]; - } -} - -- (void)setAuxECallNotificationStatus:(SDLVehicleDataNotificationStatus *)auxECallNotificationStatus { - if (auxECallNotificationStatus != nil) { - [store setObject:auxECallNotificationStatus forKey:NAMES_auxECallNotificationStatus]; - } else { - [store removeObjectForKey:NAMES_auxECallNotificationStatus]; - } -} - -- (SDLVehicleDataNotificationStatus *)auxECallNotificationStatus { - NSObject *obj = [store objectForKey:NAMES_auxECallNotificationStatus]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataNotificationStatus.class]) { - return (SDLVehicleDataNotificationStatus *)obj; - } else { - return [SDLVehicleDataNotificationStatus valueOf:(NSString *)obj]; - } -} - -- (void)setECallConfirmationStatus:(SDLECallConfirmationStatus *)eCallConfirmationStatus { - if (eCallConfirmationStatus != nil) { - [store setObject:eCallConfirmationStatus forKey:NAMES_eCallConfirmationStatus]; - } else { - [store removeObjectForKey:NAMES_eCallConfirmationStatus]; - } -} - -- (SDLECallConfirmationStatus *)eCallConfirmationStatus { - NSObject *obj = [store objectForKey:NAMES_eCallConfirmationStatus]; - if (obj == nil || [obj isKindOfClass:SDLECallConfirmationStatus.class]) { - return (SDLECallConfirmationStatus *)obj; - } else { - return [SDLECallConfirmationStatus valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h deleted file mode 100644 index 6dd0c410d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h +++ /dev/null @@ -1,23 +0,0 @@ -// SDLEmergencyEvent.h -// - -#import "SDLRPCMessage.h" - -@class SDLEmergencyEventType; -@class SDLFuelCutoffStatus; -@class SDLVehicleDataEventStatus; - - -@interface SDLEmergencyEvent : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLEmergencyEventType *emergencyEventType; -@property (strong) SDLFuelCutoffStatus *fuelCutoffStatus; -@property (strong) SDLVehicleDataEventStatus *rolloverEvent; -@property (strong) NSNumber *maximumChangeVelocity; -@property (strong) SDLVehicleDataEventStatus *multipleEvents; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.m deleted file mode 100644 index 76fca57e2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.m +++ /dev/null @@ -1,106 +0,0 @@ -// SDLEmergencyEvent.m -// - -#import "SDLEmergencyEvent.h" - -#import "SDLEmergencyEventType.h" -#import "SDLFuelCutoffStatus.h" -#import "SDLNames.h" -#import "SDLVehicleDataEventStatus.h" - - -@implementation SDLEmergencyEvent - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setEmergencyEventType:(SDLEmergencyEventType *)emergencyEventType { - if (emergencyEventType != nil) { - [store setObject:emergencyEventType forKey:NAMES_emergencyEventType]; - } else { - [store removeObjectForKey:NAMES_emergencyEventType]; - } -} - -- (SDLEmergencyEventType *)emergencyEventType { - NSObject *obj = [store objectForKey:NAMES_emergencyEventType]; - if (obj == nil || [obj isKindOfClass:SDLEmergencyEventType.class]) { - return (SDLEmergencyEventType *)obj; - } else { - return [SDLEmergencyEventType valueOf:(NSString *)obj]; - } -} - -- (void)setFuelCutoffStatus:(SDLFuelCutoffStatus *)fuelCutoffStatus { - if (fuelCutoffStatus != nil) { - [store setObject:fuelCutoffStatus forKey:NAMES_fuelCutoffStatus]; - } else { - [store removeObjectForKey:NAMES_fuelCutoffStatus]; - } -} - -- (SDLFuelCutoffStatus *)fuelCutoffStatus { - NSObject *obj = [store objectForKey:NAMES_fuelCutoffStatus]; - if (obj == nil || [obj isKindOfClass:SDLFuelCutoffStatus.class]) { - return (SDLFuelCutoffStatus *)obj; - } else { - return [SDLFuelCutoffStatus valueOf:(NSString *)obj]; - } -} - -- (void)setRolloverEvent:(SDLVehicleDataEventStatus *)rolloverEvent { - if (rolloverEvent != nil) { - [store setObject:rolloverEvent forKey:NAMES_rolloverEvent]; - } else { - [store removeObjectForKey:NAMES_rolloverEvent]; - } -} - -- (SDLVehicleDataEventStatus *)rolloverEvent { - NSObject *obj = [store objectForKey:NAMES_rolloverEvent]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setMaximumChangeVelocity:(NSNumber *)maximumChangeVelocity { - if (maximumChangeVelocity != nil) { - [store setObject:maximumChangeVelocity forKey:NAMES_maximumChangeVelocity]; - } else { - [store removeObjectForKey:NAMES_maximumChangeVelocity]; - } -} - -- (NSNumber *)maximumChangeVelocity { - return [store objectForKey:NAMES_maximumChangeVelocity]; -} - -- (void)setMultipleEvents:(SDLVehicleDataEventStatus *)multipleEvents { - if (multipleEvents != nil) { - [store setObject:multipleEvents forKey:NAMES_multipleEvents]; - } else { - [store removeObjectForKey:NAMES_multipleEvents]; - } -} - -- (SDLVehicleDataEventStatus *)multipleEvents { - NSObject *obj = [store objectForKey:NAMES_multipleEvents]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEventType.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEventType.h deleted file mode 100644 index 1e75b3ee0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEventType.h +++ /dev/null @@ -1,53 +0,0 @@ -// SDLEmergencyEventType.h -// - - -#import "SDLEnum.h" - -/** Reflects the emergency event status of the vehicle. - * Since: SmartDeviceLink 2.0 - *

    - */ - -@interface SDLEmergencyEventType : SDLEnum { -} - -+ (SDLEmergencyEventType *)valueOf:(NSString *)value; -+ (NSArray *)values; - -/** No emergency event has happened. - */ - -+ (SDLEmergencyEventType *)NO_EVENT; - -/** Frontal collision has happened. - */ - -+ (SDLEmergencyEventType *)FRONTAL; - -/** Side collision has happened. - */ - -+ (SDLEmergencyEventType *)SIDE; - -/**Rear collision has happened. - */ - -+ (SDLEmergencyEventType *)REAR; - -/** A rollover event has happened. - */ - -+ (SDLEmergencyEventType *)ROLLOVER; - -/** The signal is not supported - */ - -+ (SDLEmergencyEventType *)NOT_SUPPORTED; - -/** Emergency status cannot be determined - */ - -+ (SDLEmergencyEventType *)FAULT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEventType.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEventType.m deleted file mode 100644 index b07979d01..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEventType.m +++ /dev/null @@ -1,92 +0,0 @@ -// SDLEmergencyEventType.m -// - - -#import "SDLEmergencyEventType.h" - -SDLEmergencyEventType *SDLEmergencyEventType_NO_EVENT = nil; -SDLEmergencyEventType *SDLEmergencyEventType_FRONTAL = nil; -SDLEmergencyEventType *SDLEmergencyEventType_SIDE = nil; -SDLEmergencyEventType *SDLEmergencyEventType_REAR = nil; -SDLEmergencyEventType *SDLEmergencyEventType_ROLLOVER = nil; -SDLEmergencyEventType *SDLEmergencyEventType_NOT_SUPPORTED = nil; -SDLEmergencyEventType *SDLEmergencyEventType_FAULT = nil; - -NSArray *SDLEmergencyEventType_values = nil; - -@implementation SDLEmergencyEventType - -+ (SDLEmergencyEventType *)valueOf:(NSString *)value { - for (SDLEmergencyEventType *item in SDLEmergencyEventType.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLEmergencyEventType_values == nil) { - SDLEmergencyEventType_values = @[ - SDLEmergencyEventType.NO_EVENT, - SDLEmergencyEventType.FRONTAL, - SDLEmergencyEventType.SIDE, - SDLEmergencyEventType.REAR, - SDLEmergencyEventType.ROLLOVER, - SDLEmergencyEventType.NOT_SUPPORTED, - SDLEmergencyEventType.FAULT, - ]; - } - return SDLEmergencyEventType_values; -} - -+ (SDLEmergencyEventType *)NO_EVENT { - if (SDLEmergencyEventType_NO_EVENT == nil) { - SDLEmergencyEventType_NO_EVENT = [[SDLEmergencyEventType alloc] initWithValue:@"NO_EVENT"]; - } - return SDLEmergencyEventType_NO_EVENT; -} - -+ (SDLEmergencyEventType *)FRONTAL { - if (SDLEmergencyEventType_FRONTAL == nil) { - SDLEmergencyEventType_FRONTAL = [[SDLEmergencyEventType alloc] initWithValue:@"FRONTAL"]; - } - return SDLEmergencyEventType_FRONTAL; -} - -+ (SDLEmergencyEventType *)SIDE { - if (SDLEmergencyEventType_SIDE == nil) { - SDLEmergencyEventType_SIDE = [[SDLEmergencyEventType alloc] initWithValue:@"SIDE"]; - } - return SDLEmergencyEventType_SIDE; -} - -+ (SDLEmergencyEventType *)REAR { - if (SDLEmergencyEventType_REAR == nil) { - SDLEmergencyEventType_REAR = [[SDLEmergencyEventType alloc] initWithValue:@"REAR"]; - } - return SDLEmergencyEventType_REAR; -} - -+ (SDLEmergencyEventType *)ROLLOVER { - if (SDLEmergencyEventType_ROLLOVER == nil) { - SDLEmergencyEventType_ROLLOVER = [[SDLEmergencyEventType alloc] initWithValue:@"ROLLOVER"]; - } - return SDLEmergencyEventType_ROLLOVER; -} - -+ (SDLEmergencyEventType *)NOT_SUPPORTED { - if (SDLEmergencyEventType_NOT_SUPPORTED == nil) { - SDLEmergencyEventType_NOT_SUPPORTED = [[SDLEmergencyEventType alloc] initWithValue:@"NOT_SUPPORTED"]; - } - return SDLEmergencyEventType_NOT_SUPPORTED; -} - -+ (SDLEmergencyEventType *)FAULT { - if (SDLEmergencyEventType_FAULT == nil) { - SDLEmergencyEventType_FAULT = [[SDLEmergencyEventType alloc] initWithValue:@"FAULT"]; - } - return SDLEmergencyEventType_FAULT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPData.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPData.h deleted file mode 100644 index b3b0276b7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPData.h +++ /dev/null @@ -1,15 +0,0 @@ -// SDLEncodedSyncPData.h -// - - -#import "SDLRPCRequest.h" - -@interface SDLEncodedSyncPData : SDLRPCRequest { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSMutableArray *data; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPData.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPData.m deleted file mode 100644 index b44cb7b3e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPData.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLEncodedSyncPData.m -// - - -#import "SDLEncodedSyncPData.h" - -#import "SDLNames.h" - -@implementation SDLEncodedSyncPData - -- (instancetype)init { - if (self = [super initWithName:NAMES_EncodedSyncPData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setData:(NSMutableArray *)data { - if (data != nil) { - [parameters setObject:data forKey:NAMES_data]; - } else { - [parameters removeObjectForKey:NAMES_data]; - } -} - -- (NSMutableArray *)data { - return [parameters objectForKey:NAMES_data]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPDataResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPDataResponse.h deleted file mode 100644 index 7d646ed23..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPDataResponse.h +++ /dev/null @@ -1,13 +0,0 @@ -// SDLEncodedSyncPDataResponse.h -// - - -#import "SDLRPCResponse.h" - -@interface SDLEncodedSyncPDataResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPDataResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPDataResponse.m deleted file mode 100644 index cf899a21b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPDataResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLEncodedSyncPDataResponse.m -// - - -#import "SDLEncodedSyncPDataResponse.h" - -#import "SDLNames.h" - -@implementation SDLEncodedSyncPDataResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_EncodedSyncPData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncoder.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncoder.h deleted file mode 100644 index 911eb95d8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncoder.h +++ /dev/null @@ -1,11 +0,0 @@ -// SDLEncoder.h -// - - -#import - -@protocol SDLEncoder - -- (NSData *)encodeDictionary:(NSDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThru.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThru.h deleted file mode 100644 index fddde6c13..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThru.h +++ /dev/null @@ -1,33 +0,0 @@ -// SDLEndAudioPassThru.h -// - - -#import "SDLRPCRequest.h" - -/** - * When this request is invoked, the audio capture stops - *

    - * Function Group: AudioPassThru - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - * Since SmartDeviceLink 2.0
    - * see SDLPerformAudioPassThru - */ -@interface SDLEndAudioPassThru : SDLRPCRequest { -} - -/** - * Constructs a new SDLEndAudioPassThru object - */ -- (instancetype)init; -/** - * Constructs a new SDLEndAudioPassThru object indicated by the NSMutableDictionary - * parameter - *

    - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThru.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThru.m deleted file mode 100644 index 576287170..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThru.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLEndAudioPassThru.m -// - - -#import "SDLEndAudioPassThru.h" - -#import "SDLNames.h" - -@implementation SDLEndAudioPassThru - -- (instancetype)init { - if (self = [super initWithName:NAMES_EndAudioPassThru]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThruResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThruResponse.h deleted file mode 100644 index e464f5d32..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThruResponse.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLEndAudioPassThruResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * SDLEndAudioPassThruResponse is sent, when SDLEndAudioPassThru has been called - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLEndAudioPassThruResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThruResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThruResponse.m deleted file mode 100644 index 73c3b6336..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThruResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLEndAudioPassThruResponse.m -// - - -#import "SDLEndAudioPassThruResponse.h" - -#import "SDLNames.h" - -@implementation SDLEndAudioPassThruResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_EndAudioPassThru]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.h deleted file mode 100644 index bed0fffa3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLEnum.h -// - - -#import - - -@interface SDLEnum : NSObject { - NSString *value; -} - -- (instancetype)initWithValue:(NSString *)value; - -- (BOOL)isEqualToEnum:(SDLEnum *)object; - -@property (strong, readonly) NSString *value; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.m deleted file mode 100644 index f5ca2db2e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.m +++ /dev/null @@ -1,52 +0,0 @@ -// SDLEnum.m -// - - -#import "SDLEnum.h" - -@implementation SDLEnum - -@synthesize value; - -- (instancetype)initWithValue:(NSString *)aValue { - if (self = [super init]) { - value = aValue; - } - return self; -} - -- (NSString *)description { - return value; -} - -- (id)debugQuickLookObject { - return value; -} - -- (NSUInteger)hash { - return [self.value hash]; -} - -- (BOOL)isEqual:(id)object { - // Test pointer equality - if (self == object) { - return YES; - } - - // Test class equality, if not equal, value equality doesn't matter - if (![object isMemberOfClass:self.class]) { - return NO; - } - - return [self isEqualToEnum:object]; -} - -- (BOOL)isEqualToEnum:(SDLEnum *)object { - // Test value equality, if it's equal we're good - if ([self.value isEqualToString:object.value]) { - return YES; - } - - return NO; -} -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLFileType.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLFileType.h deleted file mode 100644 index eb4339868..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLFileType.h +++ /dev/null @@ -1,87 +0,0 @@ -// SDLFileType.h -// - - -#import "SDLEnum.h" - -/** - * Enumeration listing possible file types. - * - * @since SDL 2.0 - */ -@interface SDLFileType : SDLEnum { -} - -/** - * @abstract Convert String to SDLFileType - * - * @param value String value to retrieve the object for - * - * @return SDLFileType - */ -+ (SDLFileType *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLFileType - * - * @return an array that store all possible SDLFileType - */ -+ (NSArray *)values; - -/** - * @abstract file type: Bitmap (BMP) - * - * @return SDLFileType with value of *GRAPHIC_BMP* - */ -+ (SDLFileType *)GRAPHIC_BMP; - -/** - * @abstract file type: JPEG - * - * @return SDLFileType with value of *GRAPHIC_JPEG* - */ -+ (SDLFileType *)GRAPHIC_JPEG; - -/** - * @abstract file type: PNG - * - * @return SDLFileType with value of *GRAPHIC_PNG* - */ -+ (SDLFileType *)GRAPHIC_PNG; - -/** - * @abstract file type: WAVE (WAV) - * - * @return SDLFileType with value of *AUDIO_WAVE* - */ -+ (SDLFileType *)AUDIO_WAVE; - -/** - * @abstract file type: MP3 - * - * @return SDLFileType with value of *AUDIO_MP3* - */ -+ (SDLFileType *)AUDIO_MP3; - -/** - * @abstract file type: AAC - * - * @return SDLFileType with value of *AUDIO_AAC* - */ -+ (SDLFileType *)AUDIO_AAC; - -/** - * @abstract file type: BINARY - * - * @return SDLFileType with value of *BINARY* - */ -+ (SDLFileType *)BINARY; - -/** - * @abstract file type: JSON - * - * @return SDLFileType with value of *JSON* - */ -+ (SDLFileType *)JSON; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLFileType.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLFileType.m deleted file mode 100644 index f47932e9e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLFileType.m +++ /dev/null @@ -1,101 +0,0 @@ -// SDLFileType.m -// - - -#import "SDLFileType.h" - -SDLFileType *SDLFileType_GRAPHIC_BMP = nil; -SDLFileType *SDLFileType_GRAPHIC_JPEG = nil; -SDLFileType *SDLFileType_GRAPHIC_PNG = nil; -SDLFileType *SDLFileType_AUDIO_WAVE = nil; -SDLFileType *SDLFileType_AUDIO_MP3 = nil; -SDLFileType *SDLFileType_AUDIO_AAC = nil; -SDLFileType *SDLFileType_BINARY = nil; -SDLFileType *SDLFileType_JSON = nil; - -NSArray *SDLFileType_values = nil; - -@implementation SDLFileType - -+ (SDLFileType *)valueOf:(NSString *)value { - for (SDLFileType *item in SDLFileType.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLFileType_values == nil) { - SDLFileType_values = @[ - SDLFileType.GRAPHIC_BMP, - SDLFileType.GRAPHIC_JPEG, - SDLFileType.GRAPHIC_PNG, - SDLFileType.AUDIO_WAVE, - SDLFileType.AUDIO_MP3, - SDLFileType.AUDIO_AAC, - SDLFileType.BINARY, - SDLFileType.JSON, - ]; - } - return SDLFileType_values; -} - -+ (SDLFileType *)GRAPHIC_BMP { - if (SDLFileType_GRAPHIC_BMP == nil) { - SDLFileType_GRAPHIC_BMP = [[SDLFileType alloc] initWithValue:@"GRAPHIC_BMP"]; - } - return SDLFileType_GRAPHIC_BMP; -} - -+ (SDLFileType *)GRAPHIC_JPEG { - if (SDLFileType_GRAPHIC_JPEG == nil) { - SDLFileType_GRAPHIC_JPEG = [[SDLFileType alloc] initWithValue:@"GRAPHIC_JPEG"]; - } - return SDLFileType_GRAPHIC_JPEG; -} - -+ (SDLFileType *)GRAPHIC_PNG { - if (SDLFileType_GRAPHIC_PNG == nil) { - SDLFileType_GRAPHIC_PNG = [[SDLFileType alloc] initWithValue:@"GRAPHIC_PNG"]; - } - return SDLFileType_GRAPHIC_PNG; -} - -+ (SDLFileType *)AUDIO_WAVE { - if (SDLFileType_AUDIO_WAVE == nil) { - SDLFileType_AUDIO_WAVE = [[SDLFileType alloc] initWithValue:@"AUDIO_WAVE"]; - } - return SDLFileType_AUDIO_WAVE; -} - -+ (SDLFileType *)AUDIO_MP3 { - if (SDLFileType_AUDIO_MP3 == nil) { - SDLFileType_AUDIO_MP3 = [[SDLFileType alloc] initWithValue:@"AUDIO_MP3"]; - } - return SDLFileType_AUDIO_MP3; -} - -+ (SDLFileType *)AUDIO_AAC { - if (SDLFileType_AUDIO_AAC == nil) { - SDLFileType_AUDIO_AAC = [[SDLFileType alloc] initWithValue:@"AUDIO_AAC"]; - } - return SDLFileType_AUDIO_AAC; -} - -+ (SDLFileType *)BINARY { - if (SDLFileType_BINARY == nil) { - SDLFileType_BINARY = [[SDLFileType alloc] initWithValue:@"BINARY"]; - } - return SDLFileType_BINARY; -} - -+ (SDLFileType *)JSON { - if (SDLFileType_JSON == nil) { - SDLFileType_JSON = [[SDLFileType alloc] initWithValue:@"JSON"]; - } - return SDLFileType_JSON; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLFuelCutoffStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLFuelCutoffStatus.h deleted file mode 100644 index df213ff07..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLFuelCutoffStatus.h +++ /dev/null @@ -1,50 +0,0 @@ -// SDLFuelCutoffStatus.h -// - - -#import "SDLEnum.h" - -/** - * Reflects the status of the Restraints Control Module fuel pump cutoff. - * The fuel pump is cut off typically after the vehicle has had a collision. - * - * @since SDL 2.0 - */ -@interface SDLFuelCutoffStatus : SDLEnum { -} - -/** - * @abstract Convert String to SDLFuelCutoffStatus - * - * @param value String value to retrieve the object for - * - * @return SDLFuelCutoffStatus - */ -+ (SDLFuelCutoffStatus *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLFuelCutoffStatus - * - * @return an array that stores all possible SDLFuelCutoffStatus - */ -+ (NSArray *)values; - -/** - * @abstract Fuel is cut off - * @return the fuel cutoff status: *TERMINATE_FUEL* - */ -+ (SDLFuelCutoffStatus *)TERMINATE_FUEL; - -/** - * @abstract Fuel is not cut off - * @return the fuel cutoff status: *NORMAL_OPERATION* - */ -+ (SDLFuelCutoffStatus *)NORMAL_OPERATION; - -/** - * @abstract Status of the fuel pump cannot be determined - * @return the fuel cutoff status: *FAULT* - */ -+ (SDLFuelCutoffStatus *)FAULT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLFuelCutoffStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLFuelCutoffStatus.m deleted file mode 100644 index 3bbd92bb8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLFuelCutoffStatus.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLFuelCutoffStatus.m -// - - -#import "SDLFuelCutoffStatus.h" - -SDLFuelCutoffStatus *SDLFuelCutoffStatus_TERMINATE_FUEL = nil; -SDLFuelCutoffStatus *SDLFuelCutoffStatus_NORMAL_OPERATION = nil; -SDLFuelCutoffStatus *SDLFuelCutoffStatus_FAULT = nil; - -NSArray *SDLFuelCutoffStatus_values = nil; - -@implementation SDLFuelCutoffStatus - -+ (SDLFuelCutoffStatus *)valueOf:(NSString *)value { - for (SDLFuelCutoffStatus *item in SDLFuelCutoffStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLFuelCutoffStatus_values == nil) { - SDLFuelCutoffStatus_values = @[ - SDLFuelCutoffStatus.TERMINATE_FUEL, - SDLFuelCutoffStatus.NORMAL_OPERATION, - SDLFuelCutoffStatus.FAULT, - ]; - } - return SDLFuelCutoffStatus_values; -} - -+ (SDLFuelCutoffStatus *)TERMINATE_FUEL { - if (SDLFuelCutoffStatus_TERMINATE_FUEL == nil) { - SDLFuelCutoffStatus_TERMINATE_FUEL = [[SDLFuelCutoffStatus alloc] initWithValue:@"TERMINATE_FUEL"]; - } - return SDLFuelCutoffStatus_TERMINATE_FUEL; -} - -+ (SDLFuelCutoffStatus *)NORMAL_OPERATION { - if (SDLFuelCutoffStatus_NORMAL_OPERATION == nil) { - SDLFuelCutoffStatus_NORMAL_OPERATION = [[SDLFuelCutoffStatus alloc] initWithValue:@"NORMAL_OPERATION"]; - } - return SDLFuelCutoffStatus_NORMAL_OPERATION; -} - -+ (SDLFuelCutoffStatus *)FAULT { - if (SDLFuelCutoffStatus_FAULT == nil) { - SDLFuelCutoffStatus_FAULT = [[SDLFuelCutoffStatus alloc] initWithValue:@"FAULT"]; - } - return SDLFuelCutoffStatus_FAULT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLFunctionID.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLFunctionID.h deleted file mode 100644 index 8bbd1a52a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLFunctionID.h +++ /dev/null @@ -1,15 +0,0 @@ -// SDLFunctionID.h -// - - -#import - - -@interface SDLFunctionID : NSObject { - NSDictionary *functionIDs; -} - -- (NSString *)getFunctionName:(int)functionID; -- (NSNumber *)getFunctionID:(NSString *)functionName; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLFunctionID.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLFunctionID.m deleted file mode 100644 index 802ee3df3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLFunctionID.m +++ /dev/null @@ -1,40 +0,0 @@ -// SDLFunctionID.m -// - - -#import "SDLFunctionID.h" - -#import "SDLNames.h" - -@implementation SDLFunctionID - -- (instancetype)init { - if (self = [super init]) { - functionIDs = [NSDictionary dictionaryWithObjectsAndKeys: - NAMES_reserved, @"0", NAMES_RegisterAppInterface, @"1", NAMES_UnregisterAppInterface, @"2", NAMES_SetGlobalProperties, @"3", NAMES_ResetGlobalProperties, @"4", NAMES_AddCommand, @"5", NAMES_DeleteCommand, @"6", NAMES_AddSubMenu, @"7", NAMES_DeleteSubMenu, @"8", NAMES_CreateInteractionChoiceSet, @"9", NAMES_PerformInteraction, @"10", NAMES_DeleteInteractionChoiceSet, @"11", NAMES_Alert, @"12", NAMES_Show, @"13", NAMES_Speak, @"14", NAMES_SetMediaClockTimer, @"15", NAMES_PerformAudioPassThru, @"16", NAMES_EndAudioPassThru, @"17", NAMES_SubscribeButton, @"18", NAMES_UnsubscribeButton, @"19", NAMES_SubscribeVehicleData, @"20", NAMES_UnsubscribeVehicleData, @"21", NAMES_GetVehicleData, @"22", NAMES_ReadDID, @"23", NAMES_GetDTCs, @"24", NAMES_ScrollableMessage, @"25", NAMES_Slider, @"26", NAMES_ShowConstantTBT, @"27", NAMES_AlertManeuver, @"28", NAMES_UpdateTurnList, @"29", NAMES_ChangeRegistration, @"30", NAMES_GenericResponse, @"31", NAMES_PutFile, @"32", NAMES_DeleteFile, @"33", NAMES_ListFiles, @"34", NAMES_SetAppIcon, @"35", NAMES_SetDisplayLayout, @"36", NAMES_DiagnosticMessage, @"37", NAMES_SystemRequest, @"38", NAMES_SendLocation, @"39", NAMES_DialNumber, @"40", NAMES_OnHMIStatus, @"32768", NAMES_OnAppInterfaceUnregistered, @"32769", NAMES_OnButtonEvent, @"32770", NAMES_OnButtonPress, @"32771", NAMES_OnVehicleData, @"32772", NAMES_OnCommand, @"32773", NAMES_OnTBTClientState, @"32774", NAMES_OnDriverDistraction, @"32775", NAMES_OnPermissionsChange, @"32776", NAMES_OnAudioPassThru, @"32777", NAMES_OnLanguageChange, @"32778", NAMES_OnKeyboardInput, @"32779", NAMES_OnTouchEvent, @"32780", NAMES_OnSystemRequest, @"32781", NAMES_OnHashChange, @"32782", - - NAMES_EncodedSyncPData, - @"65536", - NAMES_SyncPData, - @"65537", - - NAMES_OnEncodedSyncPData, - @"98304", - NAMES_OnSyncPData, - @"98305", - nil]; - } - return self; -} - -- (NSString *)getFunctionName:(int)functionID { - return [functionIDs objectForKey:[NSString stringWithFormat:@"%d", functionID]]; -} - - -- (NSNumber *)getFunctionID:(NSString *)functionName { - return [NSNumber numberWithInt:[[[functionIDs allKeysForObject:functionName] objectAtIndex:0] intValue]]; -} - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.h deleted file mode 100644 index cfeebaa41..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.h +++ /dev/null @@ -1,163 +0,0 @@ -// SDLGPSData.h -// - -#import "SDLRPCMessage.h" - -@class SDLCompassDirection; -@class SDLDimension; - - -/** - * Describes the GPS data. Not all data will be available on all carlines. - * - * @since SDL 2.0 - */ -@interface SDLGPSData : SDLRPCStruct { -} - -/** - * Constructs a newly allocated SDLGPSData object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLGPSData object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract longitude degrees - * - * Required, Float, -180 - 180 - */ -@property (strong) NSNumber *longitudeDegrees; - -/** - * @abstract latitude degrees - * - * Required, Float, -90 - 90 - */ -@property (strong) NSNumber *latitudeDegrees; - -/** - * @abstract utc year - * - * Required, Integer, 2010 - 2100 - */ -@property (strong) NSNumber *utcYear; - -/** - * @abstract utc month - * - * Required, Integer, 1 - 12 - */ -@property (strong) NSNumber *utcMonth; - -/** - * @abstract utc day - * - * Required, Integer, 1 - 31 - */ -@property (strong) NSNumber *utcDay; - -/** - * @abstract utc hours - * - * Required, Integer, 0 - 23 - */ -@property (strong) NSNumber *utcHours; - -/** - * @abstract utc minutes - * - * Required, Integer, 0 - 59 - */ -@property (strong) NSNumber *utcMinutes; - -/** - * @abstract utc seconds - * - * Required, Integer, 0 - 59 - */ -@property (strong) NSNumber *utcSeconds; - -/** - * Potential Compass Directions - */ -@property (strong) SDLCompassDirection *compassDirection; - -/** - * @abstract The 3D positional dilution of precision. - * - * @discussion If undefined or unavailable, then value shall be set to 0 - * - * Required, Float, 0.0 - 10.0 - */ -@property (strong) NSNumber *pdop; - -/** - * @abstract The horizontal dilution of precision - * - * @discussion If undefined or unavailable, then value shall be set to 0 - * - * Required, Float, 0.0 - 10.0 - */ -@property (strong) NSNumber *hdop; - -/** - * @abstract the vertical dilution of precision - * - * @discussion If undefined or unavailable, then value shall be set to 0 - * - * Required, Float, 0.0 - 10.0 - */ -@property (strong) NSNumber *vdop; - -/** - * @abstract What the coordinates are based on - * - * @discussion YES, if coordinates are based on satellites. NO, if based on dead reckoning. - * - * Required, Boolean - */ -@property (strong) NSNumber *actual; - -/** - * @abstract The number of satellites in view - * - * Required, Integer, 0 - 31 - */ -@property (strong) NSNumber *satellites; - -/** - * The supported dimensions of the GPS - * - * Required - */ -@property (strong) SDLDimension *dimension; - -/** - * @abstract altitude in meters - * - * Required, Float, -10000.0 - 10000.0 - */ -@property (strong) NSNumber *altitude; - -/** - * @abstract Heading based on the GPS data. - * - * @discussion North is 0, East is 90, etc. Resolution is 0.01 - * - * Required, Float, 0.0 - 359.99 - */ -@property (strong) NSNumber *heading; - -/** - * @abstract speed in KPH - * - * Required, Float, 0.0 - 500.0 - */ -@property (strong) NSNumber *speed; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.m deleted file mode 100644 index 1cec52112..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.m +++ /dev/null @@ -1,251 +0,0 @@ -// SDLGPSData.m -// - -#import "SDLGPSData.h" - -#import "SDLCompassDirection.h" -#import "SDLDimension.h" -#import "SDLNames.h" - - -@implementation SDLGPSData - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setLongitudeDegrees:(NSNumber *)longitudeDegrees { - if (longitudeDegrees != nil) { - [store setObject:longitudeDegrees forKey:NAMES_longitudeDegrees]; - } else { - [store removeObjectForKey:NAMES_longitudeDegrees]; - } -} - -- (NSNumber *)longitudeDegrees { - return [store objectForKey:NAMES_longitudeDegrees]; -} - -- (void)setLatitudeDegrees:(NSNumber *)latitudeDegrees { - if (latitudeDegrees != nil) { - [store setObject:latitudeDegrees forKey:NAMES_latitudeDegrees]; - } else { - [store removeObjectForKey:NAMES_latitudeDegrees]; - } -} - -- (NSNumber *)latitudeDegrees { - return [store objectForKey:NAMES_latitudeDegrees]; -} - -- (void)setUtcYear:(NSNumber *)utcYear { - if (utcYear != nil) { - [store setObject:utcYear forKey:NAMES_utcYear]; - } else { - [store removeObjectForKey:NAMES_utcYear]; - } -} - -- (NSNumber *)utcYear { - return [store objectForKey:NAMES_utcYear]; -} - -- (void)setUtcMonth:(NSNumber *)utcMonth { - if (utcMonth != nil) { - [store setObject:utcMonth forKey:NAMES_utcMonth]; - } else { - [store removeObjectForKey:NAMES_utcMonth]; - } -} - -- (NSNumber *)utcMonth { - return [store objectForKey:NAMES_utcMonth]; -} - -- (void)setUtcDay:(NSNumber *)utcDay { - if (utcDay != nil) { - [store setObject:utcDay forKey:NAMES_utcDay]; - } else { - [store removeObjectForKey:NAMES_utcDay]; - } -} - -- (NSNumber *)utcDay { - return [store objectForKey:NAMES_utcDay]; -} - -- (void)setUtcHours:(NSNumber *)utcHours { - if (utcHours != nil) { - [store setObject:utcHours forKey:NAMES_utcHours]; - } else { - [store removeObjectForKey:NAMES_utcHours]; - } -} - -- (NSNumber *)utcHours { - return [store objectForKey:NAMES_utcHours]; -} - -- (void)setUtcMinutes:(NSNumber *)utcMinutes { - if (utcMinutes != nil) { - [store setObject:utcMinutes forKey:NAMES_utcMinutes]; - } else { - [store removeObjectForKey:NAMES_utcMinutes]; - } -} - -- (NSNumber *)utcMinutes { - return [store objectForKey:NAMES_utcMinutes]; -} - -- (void)setUtcSeconds:(NSNumber *)utcSeconds { - if (utcSeconds != nil) { - [store setObject:utcSeconds forKey:NAMES_utcSeconds]; - } else { - [store removeObjectForKey:NAMES_utcSeconds]; - } -} - -- (NSNumber *)utcSeconds { - return [store objectForKey:NAMES_utcSeconds]; -} - -- (void)setCompassDirection:(SDLCompassDirection *)compassDirection { - if (compassDirection != nil) { - [store setObject:compassDirection forKey:NAMES_compassDirection]; - } else { - [store removeObjectForKey:NAMES_compassDirection]; - } -} - -- (SDLCompassDirection *)compassDirection { - NSObject *obj = [store objectForKey:NAMES_compassDirection]; - if (obj == nil || [obj isKindOfClass:SDLCompassDirection.class]) { - return (SDLCompassDirection *)obj; - } else { - return [SDLCompassDirection valueOf:(NSString *)obj]; - } -} - -- (void)setPdop:(NSNumber *)pdop { - if (pdop != nil) { - [store setObject:pdop forKey:NAMES_pdop]; - } else { - [store removeObjectForKey:NAMES_pdop]; - } -} - -- (NSNumber *)pdop { - return [store objectForKey:NAMES_pdop]; -} - -- (void)setHdop:(NSNumber *)hdop { - if (hdop != nil) { - [store setObject:hdop forKey:NAMES_hdop]; - } else { - [store removeObjectForKey:NAMES_hdop]; - } -} - -- (NSNumber *)hdop { - return [store objectForKey:NAMES_hdop]; -} - -- (void)setVdop:(NSNumber *)vdop { - if (vdop != nil) { - [store setObject:vdop forKey:NAMES_vdop]; - } else { - [store removeObjectForKey:NAMES_vdop]; - } -} - -- (NSNumber *)vdop { - return [store objectForKey:NAMES_vdop]; -} - -- (void)setActual:(NSNumber *)actual { - if (actual != nil) { - [store setObject:actual forKey:NAMES_actual]; - } else { - [store removeObjectForKey:NAMES_actual]; - } -} - -- (NSNumber *)actual { - return [store objectForKey:NAMES_actual]; -} - -- (void)setSatellites:(NSNumber *)satellites { - if (satellites != nil) { - [store setObject:satellites forKey:NAMES_satellites]; - } else { - [store removeObjectForKey:NAMES_satellites]; - } -} - -- (NSNumber *)satellites { - return [store objectForKey:NAMES_satellites]; -} - -- (void)setDimension:(SDLDimension *)dimension { - if (dimension != nil) { - [store setObject:dimension forKey:NAMES_dimension]; - } else { - [store removeObjectForKey:NAMES_dimension]; - } -} - -- (SDLDimension *)dimension { - NSObject *obj = [store objectForKey:NAMES_dimension]; - if (obj == nil || [obj isKindOfClass:SDLDimension.class]) { - return (SDLDimension *)obj; - } else { - return [SDLDimension valueOf:(NSString *)obj]; - } -} - -- (void)setAltitude:(NSNumber *)altitude { - if (altitude != nil) { - [store setObject:altitude forKey:NAMES_altitude]; - } else { - [store removeObjectForKey:NAMES_altitude]; - } -} - -- (NSNumber *)altitude { - return [store objectForKey:NAMES_altitude]; -} - -- (void)setHeading:(NSNumber *)heading { - if (heading != nil) { - [store setObject:heading forKey:NAMES_heading]; - } else { - [store removeObjectForKey:NAMES_heading]; - } -} - -- (NSNumber *)heading { - return [store objectForKey:NAMES_heading]; -} - -- (void)setSpeed:(NSNumber *)speed { - if (speed != nil) { - [store setObject:speed forKey:NAMES_speed]; - } else { - [store removeObjectForKey:NAMES_speed]; - } -} - -- (NSNumber *)speed { - return [store objectForKey:NAMES_speed]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGenericResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGenericResponse.h deleted file mode 100644 index 4d339fb64..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGenericResponse.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLGenericResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Generic Response is sent, when the name of a received msg cannot be - * retrieved. Only used in case of an error. Currently, only resultCode - * INVALID_DATA is used. - */ -@interface SDLGenericResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGenericResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGenericResponse.m deleted file mode 100644 index aff982d8f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGenericResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLGenericResponse.m -// - - -#import "SDLGenericResponse.h" - -#import "SDLNames.h" - -@implementation SDLGenericResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_GenericResponse]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCs.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCs.h deleted file mode 100644 index 3d38a0079..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCs.h +++ /dev/null @@ -1,41 +0,0 @@ -// SDLGetDTCs.h -// - - -#import "SDLRPCRequest.h" - -/** - * This RPC allows to request diagnostic module trouble codes from a certain - * vehicle module - *

    - * Function Group: ProprietaryData - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - */ -@interface SDLGetDTCs : SDLRPCRequest { -} -/** - * Constructs a new SDLGetDTCs object - */ -- (instancetype)init; -/** - * Constructs a new SDLGetDTCs object indicated by the dictionary parameter - *

    - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; -/** - * @abstract a name of the module to receive the DTC form - * @discussion an NSNumber value representing a name of the module to receive - * the DTC form - *

    - * Notes: Minvalue:0; Maxvalue:65535 - */ -@property (strong) NSNumber *ecuName; -/** - * @abstract DTC Mask Byte to be sent in diagnostic request to module. NSNumber* dtcMask Minvalue:0; Maxvalue:255 - */ -@property (strong) NSNumber *dtcMask; -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCs.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCs.m deleted file mode 100644 index cf7db88e5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCs.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLGetDTCs.m -// - - -#import "SDLGetDTCs.h" - -#import "SDLNames.h" - -@implementation SDLGetDTCs - -- (instancetype)init { - if (self = [super initWithName:NAMES_GetDTCs]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setEcuName:(NSNumber *)ecuName { - if (ecuName != nil) { - [parameters setObject:ecuName forKey:NAMES_ecuName]; - } else { - [parameters removeObjectForKey:NAMES_ecuName]; - } -} - -- (NSNumber *)ecuName { - return [parameters objectForKey:NAMES_ecuName]; -} - -- (void)setDtcMask:(NSNumber *)dtcMask { - if (dtcMask != nil) { - [parameters setObject:dtcMask forKey:NAMES_dtcMask]; - } else { - [parameters removeObjectForKey:NAMES_dtcMask]; - } -} - -- (NSNumber *)dtcMask { - return [parameters objectForKey:NAMES_dtcMask]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCsResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCsResponse.h deleted file mode 100644 index 4e0af4a39..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCsResponse.h +++ /dev/null @@ -1,21 +0,0 @@ -// SDLGetDTCsResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * SDLGetDTCsResponse is sent, when SDLGetDTCs has been called - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLGetDTCsResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSNumber *ecuHeader; -@property (strong) NSMutableArray *dtc; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCsResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCsResponse.m deleted file mode 100644 index bbf678a78..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCsResponse.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLGetDTCsResponse.m -// - - -#import "SDLGetDTCsResponse.h" - -#import "SDLNames.h" - -@implementation SDLGetDTCsResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_GetDTCs]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setEcuHeader:(NSNumber *)ecuHeader { - if (ecuHeader != nil) { - [parameters setObject:ecuHeader forKey:NAMES_ecuHeader]; - } else { - [parameters removeObjectForKey:NAMES_ecuHeader]; - } -} - -- (NSNumber *)ecuHeader { - return [parameters objectForKey:NAMES_ecuHeader]; -} - -- (void)setDtc:(NSMutableArray *)dtc { - if (dtc != nil) { - [parameters setObject:dtc forKey:NAMES_dtc]; - } else { - [parameters removeObjectForKey:NAMES_dtc]; - } -} - -- (NSMutableArray *)dtc { - return [parameters objectForKey:NAMES_dtc]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.h deleted file mode 100644 index df2c1923e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.h +++ /dev/null @@ -1,140 +0,0 @@ -// SDLGetVehicleData.h -// - - -#import "SDLRPCRequest.h" - -/** - * Requests surrent values of specific published vehicle data items. - *

    - * Function Group: Location, VehicleInfo and DrivingChara - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - * - * Since SmartDeviceLink 2.0
    - * See SDLSubscribeVehicleData SDLUnsubscribeVehicleData - */ -@interface SDLGetVehicleData : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLGetVehicleData object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLGetVehicleData object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A boolean value. If true, requests Gps data - */ -@property (strong) NSNumber *gps; - -/** - * @abstract A boolean value. If true, requests speed data - */ -@property (strong) NSNumber *speed; - -/** - * @abstract A boolean value. If true, requests rpm data - */ -@property (strong) NSNumber *rpm; - -/** - * @abstract A boolean value. If true, requests FuelLevel data - */ -@property (strong) NSNumber *fuelLevel; - -/** - * @abstract A boolean value. If true, requests fuelLevel_State data - */ -@property (strong) NSNumber *fuelLevel_State; - -/** - * @abstract A boolean value. If true, requests instantFuelConsumption data - */ -@property (strong) NSNumber *instantFuelConsumption; - -/** - * @abstract A boolean value. If true, requests externalTemperature data - */ -@property (strong) NSNumber *externalTemperature; - -/** - * @abstract A boolean value. If true, requests Vehicle Identification Number - */ -@property (strong) NSNumber *vin; - -/** - * @abstract A boolean value. If true, requests Currently selected gear data - */ -@property (strong) NSNumber *prndl; - -/** - * @abstract A boolean value. If true, requests tire pressure status data - */ -@property (strong) NSNumber *tirePressure; - -/** - * @abstract A boolean value. If true, requests odometer data - */ -@property (strong) NSNumber *odometer; - -/** - * @abstract A boolean value. If true, requests belt Status data - */ -@property (strong) NSNumber *beltStatus; - -/** - * @abstract A boolean value. If true, requests body Information data - */ -@property (strong) NSNumber *bodyInformation; - -/** - * @abstract A boolean value. If true, requests device Status data - */ -@property (strong) NSNumber *deviceStatus; - -/** - * @abstract A boolean value. If true, requests driver Braking data - */ -@property (strong) NSNumber *driverBraking; - -/** - * @abstract A boolean value. If true, requests wiper Status data - */ -@property (strong) NSNumber *wiperStatus; - -/** - * @abstract A boolean value. If true, requests Head Lamp Status data - */ -@property (strong) NSNumber *headLampStatus; - -/** - * @abstract A boolean value. If true, requests Engine Torque data - */ -@property (strong) NSNumber *engineTorque; - -/** - * @abstract A boolean value. If true, means the accPedalPosition data has been - * subscribed. - */ -@property (strong) NSNumber *accPedalPosition; - -/** - * @abstract A boolean value. If true, means the steeringWheelAngle data has been - * subscribed. - */ -@property (strong) NSNumber *steeringWheelAngle; -@property (strong) NSNumber *eCallInfo; -@property (strong) NSNumber *airbagStatus; -@property (strong) NSNumber *emergencyEvent; -@property (strong) NSNumber *clusterModeStatus; -@property (strong) NSNumber *myKey; - -@end \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.m deleted file mode 100644 index ab5d59a19..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.m +++ /dev/null @@ -1,323 +0,0 @@ -// SDLGetVehicleData.m -// - - -#import "SDLGetVehicleData.h" - -#import "SDLNames.h" - -@implementation SDLGetVehicleData - -- (instancetype)init { - if (self = [super initWithName:NAMES_GetVehicleData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setGps:(NSNumber *)gps { - if (gps != nil) { - [parameters setObject:gps forKey:NAMES_gps]; - } else { - [parameters removeObjectForKey:NAMES_gps]; - } -} - -- (NSNumber *)gps { - return [parameters objectForKey:NAMES_gps]; -} - -- (void)setSpeed:(NSNumber *)speed { - if (speed != nil) { - [parameters setObject:speed forKey:NAMES_speed]; - } else { - [parameters removeObjectForKey:NAMES_speed]; - } -} - -- (NSNumber *)speed { - return [parameters objectForKey:NAMES_speed]; -} - -- (void)setRpm:(NSNumber *)rpm { - if (rpm != nil) { - [parameters setObject:rpm forKey:NAMES_rpm]; - } else { - [parameters removeObjectForKey:NAMES_rpm]; - } -} - -- (NSNumber *)rpm { - return [parameters objectForKey:NAMES_rpm]; -} - -- (void)setFuelLevel:(NSNumber *)fuelLevel { - if (fuelLevel != nil) { - [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel]; - } -} - -- (NSNumber *)fuelLevel { - return [parameters objectForKey:NAMES_fuelLevel]; -} - -- (void)setFuelLevel_State:(NSNumber *)fuelLevel_State { - if (fuelLevel_State != nil) { - [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel_State]; - } -} - -- (NSNumber *)fuelLevel_State { - return [parameters objectForKey:NAMES_fuelLevel_State]; -} - -- (void)setInstantFuelConsumption:(NSNumber *)instantFuelConsumption { - if (instantFuelConsumption != nil) { - [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; - } else { - [parameters removeObjectForKey:NAMES_instantFuelConsumption]; - } -} - -- (NSNumber *)instantFuelConsumption { - return [parameters objectForKey:NAMES_instantFuelConsumption]; -} - -- (void)setExternalTemperature:(NSNumber *)externalTemperature { - if (externalTemperature != nil) { - [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; - } else { - [parameters removeObjectForKey:NAMES_externalTemperature]; - } -} - -- (NSNumber *)externalTemperature { - return [parameters objectForKey:NAMES_externalTemperature]; -} - -- (void)setVin:(NSNumber *)vin { - if (vin != nil) { - [parameters setObject:vin forKey:NAMES_vin]; - } else { - [parameters removeObjectForKey:NAMES_vin]; - } -} - -- (NSNumber *)vin { - return [parameters objectForKey:NAMES_vin]; -} - -- (void)setPrndl:(NSNumber *)prndl { - if (prndl != nil) { - [parameters setObject:prndl forKey:NAMES_prndl]; - } else { - [parameters removeObjectForKey:NAMES_prndl]; - } -} - -- (NSNumber *)prndl { - return [parameters objectForKey:NAMES_prndl]; -} - -- (void)setTirePressure:(NSNumber *)tirePressure { - if (tirePressure != nil) { - [parameters setObject:tirePressure forKey:NAMES_tirePressure]; - } else { - [parameters removeObjectForKey:NAMES_tirePressure]; - } -} - -- (NSNumber *)tirePressure { - return [parameters objectForKey:NAMES_tirePressure]; -} - -- (void)setOdometer:(NSNumber *)odometer { - if (odometer != nil) { - [parameters setObject:odometer forKey:NAMES_odometer]; - } else { - [parameters removeObjectForKey:NAMES_odometer]; - } -} - -- (NSNumber *)odometer { - return [parameters objectForKey:NAMES_odometer]; -} - -- (void)setBeltStatus:(NSNumber *)beltStatus { - if (beltStatus != nil) { - [parameters setObject:beltStatus forKey:NAMES_beltStatus]; - } else { - [parameters removeObjectForKey:NAMES_beltStatus]; - } -} - -- (NSNumber *)beltStatus { - return [parameters objectForKey:NAMES_beltStatus]; -} - -- (void)setBodyInformation:(NSNumber *)bodyInformation { - if (bodyInformation != nil) { - [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; - } else { - [parameters removeObjectForKey:NAMES_bodyInformation]; - } -} - -- (NSNumber *)bodyInformation { - return [parameters objectForKey:NAMES_bodyInformation]; -} - -- (void)setDeviceStatus:(NSNumber *)deviceStatus { - if (deviceStatus != nil) { - [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; - } else { - [parameters removeObjectForKey:NAMES_deviceStatus]; - } -} - -- (NSNumber *)deviceStatus { - return [parameters objectForKey:NAMES_deviceStatus]; -} - -- (void)setDriverBraking:(NSNumber *)driverBraking { - if (driverBraking != nil) { - [parameters setObject:driverBraking forKey:NAMES_driverBraking]; - } else { - [parameters removeObjectForKey:NAMES_driverBraking]; - } -} - -- (NSNumber *)driverBraking { - return [parameters objectForKey:NAMES_driverBraking]; -} - -- (void)setWiperStatus:(NSNumber *)wiperStatus { - if (wiperStatus != nil) { - [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; - } else { - [parameters removeObjectForKey:NAMES_wiperStatus]; - } -} - -- (NSNumber *)wiperStatus { - return [parameters objectForKey:NAMES_wiperStatus]; -} - -- (void)setHeadLampStatus:(NSNumber *)headLampStatus { - if (headLampStatus != nil) { - [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; - } else { - [parameters removeObjectForKey:NAMES_headLampStatus]; - } -} - -- (NSNumber *)headLampStatus { - return [parameters objectForKey:NAMES_headLampStatus]; -} - -- (void)setEngineTorque:(NSNumber *)engineTorque { - if (engineTorque != nil) { - [parameters setObject:engineTorque forKey:NAMES_engineTorque]; - } else { - [parameters removeObjectForKey:NAMES_engineTorque]; - } -} - -- (NSNumber *)engineTorque { - return [parameters objectForKey:NAMES_engineTorque]; -} - -- (void)setAccPedalPosition:(NSNumber *)accPedalPosition { - if (accPedalPosition != nil) { - [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; - } else { - [parameters removeObjectForKey:NAMES_accPedalPosition]; - } -} - -- (NSNumber *)accPedalPosition { - return [parameters objectForKey:NAMES_accPedalPosition]; -} - -- (void)setSteeringWheelAngle:(NSNumber *)steeringWheelAngle { - if (steeringWheelAngle != nil) { - [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; - } else { - [parameters removeObjectForKey:NAMES_steeringWheelAngle]; - } -} - -- (NSNumber *)steeringWheelAngle { - return [parameters objectForKey:NAMES_steeringWheelAngle]; -} - -- (void)setECallInfo:(NSNumber *)eCallInfo { - if (eCallInfo != nil) { - [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; - } else { - [parameters removeObjectForKey:NAMES_eCallInfo]; - } -} - -- (NSNumber *)eCallInfo { - return [parameters objectForKey:NAMES_eCallInfo]; -} - -- (void)setAirbagStatus:(NSNumber *)airbagStatus { - if (airbagStatus != nil) { - [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; - } else { - [parameters removeObjectForKey:NAMES_airbagStatus]; - } -} - -- (NSNumber *)airbagStatus { - return [parameters objectForKey:NAMES_airbagStatus]; -} - -- (void)setEmergencyEvent:(NSNumber *)emergencyEvent { - if (emergencyEvent != nil) { - [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; - } else { - [parameters removeObjectForKey:NAMES_emergencyEvent]; - } -} - -- (NSNumber *)emergencyEvent { - return [parameters objectForKey:NAMES_emergencyEvent]; -} - -- (void)setClusterModeStatus:(NSNumber *)clusterModeStatus { - if (clusterModeStatus != nil) { - [parameters setObject:clusterModeStatus forKey:NAMES_clusterModeStatus]; - } else { - [parameters removeObjectForKey:NAMES_clusterModeStatus]; - } -} - -- (NSNumber *)clusterModeStatus { - return [parameters objectForKey:NAMES_clusterModeStatus]; -} - -- (void)setMyKey:(NSNumber *)myKey { - if (myKey != nil) { - [parameters setObject:myKey forKey:NAMES_myKey]; - } else { - [parameters removeObjectForKey:NAMES_myKey]; - } -} - -- (NSNumber *)myKey { - return [parameters objectForKey:NAMES_myKey]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.h deleted file mode 100644 index 882c09b51..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.h +++ /dev/null @@ -1,150 +0,0 @@ -// SDLGetVehicleDataResponse.h -// - -#import "SDLRPCResponse.h" - -@class SDLAirbagStatus; -@class SDLBeltStatus; -@class SDLBodyInformation; -@class SDLClusterModeStatus; -@class SDLComponentVolumeStatus; -@class SDLDeviceStatus; -@class SDLECallInfo; -@class SDLEmergencyEvent; -@class SDLGPSData; -@class SDLHeadLampStatus; -@class SDLMyKey; -@class SDLPRNDL; -@class SDLTireStatus; -@class SDLVehicleDataEventStatus; -@class SDLWiperStatus; - - -/** - * Get Vehicle Data Response is sent, when SDLGetVehicleData has been called - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLGetVehicleDataResponse : SDLRPCResponse { -} - - -/** - * @abstract Constructs a new SDLGetVehicleDataResponse object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLGetVehicleDataResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - - -/** - * @abstract A SDLGPSData* value. See GPSData. - */ -@property (strong) SDLGPSData *gps; - -/** - * @abstract The vehicle speed in kilometers per hour. - */ -@property (strong) NSNumber *speed; - -/** - * @abstract The number of revolutions per minute of the engine. - */ -@property (strong) NSNumber *rpm; - -/** - * @abstract The fuel level in the tank (percentage) - */ -@property (strong) NSNumber *fuelLevel; - -/** - * @abstract A SDLComponentVolumeStatus* value. The fuel level state. - */ -@property (strong) SDLComponentVolumeStatus *fuelLevel_State; - -/** - * @abstract The instantaneous fuel consumption in microlitres. - */ -@property (strong) NSNumber *instantFuelConsumption; - -/** - * @abstract The external temperature in degrees celsius. - */ -@property (strong) NSNumber *externalTemperature; - -/** - * @abstract The Vehicle Identification Number - */ -@property (strong) NSString *vin; - -/** - * @abstract See PRNDL. - */ -@property (strong) SDLPRNDL *prndl; - -/** - * @abstract A SDLTireStatus* value. See TireStatus. - */ -@property (strong) SDLTireStatus *tirePressure; - -/** - * @abstract Odometer reading in km. - */ -@property (strong) NSNumber *odometer; - -/** - * @abstract A SDLBeltStatus* value. The status of the seat belts. - */ -@property (strong) SDLBeltStatus *beltStatus; - -/** - * @abstract A SDLBodyInformation* value. The body information including power modes. - */ -@property (strong) SDLBodyInformation *bodyInformation; - -/** - * @abstract A SDLDeviceStatus* value. The device status including signal and battery strength. - */ -@property (strong) SDLDeviceStatus *deviceStatus; - -/** - * @abstract A SDLVehicleDataResult* value. The status of the brake pedal. - */ -@property (strong) SDLVehicleDataEventStatus *driverBraking; - -/** - * @abstract A SDLWiperStatus* value. The status of the wipers. - */ -@property (strong) SDLWiperStatus *wiperStatus; - -/** - * @abstract A SDLHeadLampStatus* value. Status of the head lamps. - */ -@property (strong) SDLHeadLampStatus *headLampStatus; - -/** - * @abstract Torque value for engine (in Nm) on non-diesel variants. - */ -@property (strong) NSNumber *engineTorque; - -/** - * @abstract Accelerator pedal position (percentage depressed) - */ -@property (strong) NSNumber *accPedalPosition; - -/** - * @abstract Current angle of the steering wheel (in deg) - */ -@property (strong) NSNumber *steeringWheelAngle; -@property (strong) SDLECallInfo *eCallInfo; -@property (strong) SDLAirbagStatus *airbagStatus; -@property (strong) SDLEmergencyEvent *emergencyEvent; -@property (strong) SDLClusterModeStatus *clusterModeStatus; -@property (strong) SDLMyKey *myKey; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.m deleted file mode 100644 index 7f1bdb351..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.m +++ /dev/null @@ -1,414 +0,0 @@ -// SDLGetVehicleDataResponse.m -// - - -#import "SDLGetVehicleDataResponse.h" - -#import "SDLAirbagStatus.h" -#import "SDLBeltStatus.h" -#import "SDLBodyInformation.h" -#import "SDLClusterModeStatus.h" -#import "SDLComponentVolumeStatus.h" -#import "SDLDeviceStatus.h" -#import "SDLECallInfo.h" -#import "SDLEmergencyEvent.h" -#import "SDLGPSData.h" -#import "SDLHeadLampStatus.h" -#import "SDLMyKey.h" -#import "SDLNames.h" -#import "SDLPRNDL.h" -#import "SDLTireStatus.h" -#import "SDLVehicleDataEventStatus.h" -#import "SDLWiperStatus.h" - - -@implementation SDLGetVehicleDataResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_GetVehicleData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setGps:(SDLGPSData *)gps { - if (gps != nil) { - [parameters setObject:gps forKey:NAMES_gps]; - } else { - [parameters removeObjectForKey:NAMES_gps]; - } -} - -- (SDLGPSData *)gps { - NSObject *obj = [parameters objectForKey:NAMES_gps]; - if (obj == nil || [obj isKindOfClass:SDLGPSData.class]) { - return (SDLGPSData *)obj; - } else { - return [[SDLGPSData alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setSpeed:(NSNumber *)speed { - if (speed != nil) { - [parameters setObject:speed forKey:NAMES_speed]; - } else { - [parameters removeObjectForKey:NAMES_speed]; - } -} - -- (NSNumber *)speed { - return [parameters objectForKey:NAMES_speed]; -} - -- (void)setRpm:(NSNumber *)rpm { - if (rpm != nil) { - [parameters setObject:rpm forKey:NAMES_rpm]; - } else { - [parameters removeObjectForKey:NAMES_rpm]; - } -} - -- (NSNumber *)rpm { - return [parameters objectForKey:NAMES_rpm]; -} - -- (void)setFuelLevel:(NSNumber *)fuelLevel { - if (fuelLevel != nil) { - [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel]; - } -} - -- (NSNumber *)fuelLevel { - return [parameters objectForKey:NAMES_fuelLevel]; -} - -- (void)setFuelLevel_State:(SDLComponentVolumeStatus *)fuelLevel_State { - if (fuelLevel_State != nil) { - [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel_State]; - } -} - -- (SDLComponentVolumeStatus *)fuelLevel_State { - NSObject *obj = [parameters objectForKey:NAMES_fuelLevel_State]; - if (obj == nil || [obj isKindOfClass:SDLComponentVolumeStatus.class]) { - return (SDLComponentVolumeStatus *)obj; - } else { - return [SDLComponentVolumeStatus valueOf:(NSString *)obj]; - } -} - -- (void)setInstantFuelConsumption:(NSNumber *)instantFuelConsumption { - if (instantFuelConsumption != nil) { - [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; - } else { - [parameters removeObjectForKey:NAMES_instantFuelConsumption]; - } -} - -- (NSNumber *)instantFuelConsumption { - return [parameters objectForKey:NAMES_instantFuelConsumption]; -} - -- (void)setExternalTemperature:(NSNumber *)externalTemperature { - if (externalTemperature != nil) { - [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; - } else { - [parameters removeObjectForKey:NAMES_externalTemperature]; - } -} - -- (NSNumber *)externalTemperature { - return [parameters objectForKey:NAMES_externalTemperature]; -} - -- (void)setVin:(NSString *)vin { - if (vin != nil) { - [parameters setObject:vin forKey:NAMES_vin]; - } else { - [parameters removeObjectForKey:NAMES_vin]; - } -} - -- (NSString *)vin { - return [parameters objectForKey:NAMES_vin]; -} - -- (void)setPrndl:(SDLPRNDL *)prndl { - if (prndl != nil) { - [parameters setObject:prndl forKey:NAMES_prndl]; - } else { - [parameters removeObjectForKey:NAMES_prndl]; - } -} - -- (SDLPRNDL *)prndl { - NSObject *obj = [parameters objectForKey:NAMES_prndl]; - if (obj == nil || [obj isKindOfClass:SDLPRNDL.class]) { - return (SDLPRNDL *)obj; - } else { - return [SDLPRNDL valueOf:(NSString *)obj]; - } -} - -- (void)setTirePressure:(SDLTireStatus *)tirePressure { - if (tirePressure != nil) { - [parameters setObject:tirePressure forKey:NAMES_tirePressure]; - } else { - [parameters removeObjectForKey:NAMES_tirePressure]; - } -} - -- (SDLTireStatus *)tirePressure { - NSObject *obj = [parameters objectForKey:NAMES_tirePressure]; - if (obj == nil || [obj isKindOfClass:SDLTireStatus.class]) { - return (SDLTireStatus *)obj; - } else { - return [[SDLTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setOdometer:(NSNumber *)odometer { - if (odometer != nil) { - [parameters setObject:odometer forKey:NAMES_odometer]; - } else { - [parameters removeObjectForKey:NAMES_odometer]; - } -} - -- (NSNumber *)odometer { - return [parameters objectForKey:NAMES_odometer]; -} - -- (void)setBeltStatus:(SDLBeltStatus *)beltStatus { - if (beltStatus != nil) { - [parameters setObject:beltStatus forKey:NAMES_beltStatus]; - } else { - [parameters removeObjectForKey:NAMES_beltStatus]; - } -} - -- (SDLBeltStatus *)beltStatus { - NSObject *obj = [parameters objectForKey:NAMES_beltStatus]; - if (obj == nil || [obj isKindOfClass:SDLBeltStatus.class]) { - return (SDLBeltStatus *)obj; - } else { - return [[SDLBeltStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setBodyInformation:(SDLBodyInformation *)bodyInformation { - if (bodyInformation != nil) { - [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; - } else { - [parameters removeObjectForKey:NAMES_bodyInformation]; - } -} - -- (SDLBodyInformation *)bodyInformation { - NSObject *obj = [parameters objectForKey:NAMES_bodyInformation]; - if (obj == nil || [obj isKindOfClass:SDLBodyInformation.class]) { - return (SDLBodyInformation *)obj; - } else { - return [[SDLBodyInformation alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setDeviceStatus:(SDLDeviceStatus *)deviceStatus { - if (deviceStatus != nil) { - [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; - } else { - [parameters removeObjectForKey:NAMES_deviceStatus]; - } -} - -- (SDLDeviceStatus *)deviceStatus { - NSObject *obj = [parameters objectForKey:NAMES_deviceStatus]; - if (obj == nil || [obj isKindOfClass:SDLDeviceStatus.class]) { - return (SDLDeviceStatus *)obj; - } else { - return [[SDLDeviceStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setDriverBraking:(SDLVehicleDataEventStatus *)driverBraking { - if (driverBraking != nil) { - [parameters setObject:driverBraking forKey:NAMES_driverBraking]; - } else { - [parameters removeObjectForKey:NAMES_driverBraking]; - } -} - -- (SDLVehicleDataEventStatus *)driverBraking { - NSObject *obj = [parameters objectForKey:NAMES_driverBraking]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setWiperStatus:(SDLWiperStatus *)wiperStatus { - if (wiperStatus != nil) { - [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; - } else { - [parameters removeObjectForKey:NAMES_wiperStatus]; - } -} - -- (SDLWiperStatus *)wiperStatus { - NSObject *obj = [parameters objectForKey:NAMES_wiperStatus]; - if (obj == nil || [obj isKindOfClass:SDLWiperStatus.class]) { - return (SDLWiperStatus *)obj; - } else { - return [SDLWiperStatus valueOf:(NSString *)obj]; - } -} - -- (void)setHeadLampStatus:(SDLHeadLampStatus *)headLampStatus { - if (headLampStatus != nil) { - [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; - } else { - [parameters removeObjectForKey:NAMES_headLampStatus]; - } -} - -- (SDLHeadLampStatus *)headLampStatus { - NSObject *obj = [parameters objectForKey:NAMES_headLampStatus]; - if (obj == nil || [obj isKindOfClass:SDLHeadLampStatus.class]) { - return (SDLHeadLampStatus *)obj; - } else { - return [[SDLHeadLampStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setEngineTorque:(NSNumber *)engineTorque { - if (engineTorque != nil) { - [parameters setObject:engineTorque forKey:NAMES_engineTorque]; - } else { - [parameters removeObjectForKey:NAMES_engineTorque]; - } -} - -- (NSNumber *)engineTorque { - return [parameters objectForKey:NAMES_engineTorque]; -} - -- (void)setAccPedalPosition:(NSNumber *)accPedalPosition { - if (accPedalPosition != nil) { - [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; - } else { - [parameters removeObjectForKey:NAMES_accPedalPosition]; - } -} - -- (NSNumber *)accPedalPosition { - return [parameters objectForKey:NAMES_accPedalPosition]; -} - -- (void)setSteeringWheelAngle:(NSNumber *)steeringWheelAngle { - if (steeringWheelAngle != nil) { - [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; - } else { - [parameters removeObjectForKey:NAMES_steeringWheelAngle]; - } -} - -- (NSNumber *)steeringWheelAngle { - return [parameters objectForKey:NAMES_steeringWheelAngle]; -} - -- (void)setECallInfo:(SDLECallInfo *)eCallInfo { - if (eCallInfo != nil) { - [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; - } else { - [parameters removeObjectForKey:NAMES_eCallInfo]; - } -} - -- (SDLECallInfo *)eCallInfo { - NSObject *obj = [parameters objectForKey:NAMES_eCallInfo]; - if (obj == nil || [obj isKindOfClass:SDLECallInfo.class]) { - return (SDLECallInfo *)obj; - } else { - return [[SDLECallInfo alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setAirbagStatus:(SDLAirbagStatus *)airbagStatus { - if (airbagStatus != nil) { - [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; - } else { - [parameters removeObjectForKey:NAMES_airbagStatus]; - } -} - -- (SDLAirbagStatus *)airbagStatus { - NSObject *obj = [parameters objectForKey:NAMES_airbagStatus]; - if (obj == nil || [obj isKindOfClass:SDLAirbagStatus.class]) { - return (SDLAirbagStatus *)obj; - } else { - return [[SDLAirbagStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setEmergencyEvent:(SDLEmergencyEvent *)emergencyEvent { - if (emergencyEvent != nil) { - [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; - } else { - [parameters removeObjectForKey:NAMES_emergencyEvent]; - } -} - -- (SDLEmergencyEvent *)emergencyEvent { - NSObject *obj = [parameters objectForKey:NAMES_emergencyEvent]; - if (obj == nil || [obj isKindOfClass:SDLEmergencyEvent.class]) { - return (SDLEmergencyEvent *)obj; - } else { - return [[SDLEmergencyEvent alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setClusterModeStatus:(SDLClusterModeStatus *)clusterModeStatus { - if (clusterModeStatus != nil) { - [parameters setObject:clusterModeStatus forKey:NAMES_clusterModeStatus]; - } else { - [parameters removeObjectForKey:NAMES_clusterModeStatus]; - } -} - -- (SDLClusterModeStatus *)clusterModeStatus { - NSObject *obj = [parameters objectForKey:NAMES_clusterModeStatus]; - if (obj == nil || [obj isKindOfClass:SDLClusterModeStatus.class]) { - return (SDLClusterModeStatus *)obj; - } else { - return [[SDLClusterModeStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setMyKey:(SDLMyKey *)myKey { - if (myKey != nil) { - [parameters setObject:myKey forKey:NAMES_myKey]; - } else { - [parameters removeObjectForKey:NAMES_myKey]; - } -} - -- (SDLMyKey *)myKey { - NSObject *obj = [parameters objectForKey:NAMES_myKey]; - if (obj == nil || [obj isKindOfClass:SDLMyKey.class]) { - return (SDLMyKey *)obj; - } else { - return [[SDLMyKey alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.h deleted file mode 100644 index 91302fa6e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.h +++ /dev/null @@ -1,50 +0,0 @@ -// SDLGlobalProperty.h -// - - -#import "SDLEnum.h" - -/** - * Properties of a user-initiated VR interaction (i.e. interactions started by the user pressing the PTT button). - * - * @since SDL 1.0 - */ -@interface SDLGlobalProperty : SDLEnum { -} - -/** - * Convert String to SDLGlobalProperty - * @param value The value of the string to get an object for - * @return SDLGlobalProperty - */ -+ (SDLGlobalProperty *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLGlobalProperty - * @return An array that store all possible SDLGlobalProperty - */ -+ (NSArray *)values; - -/** - * @abstract The help prompt to be spoken if the user needs assistance during a user-initiated interaction. - * @return A SDLGlobalProperty with value of *HELPPROMPT* - */ -+ (SDLGlobalProperty *)HELPPROMPT; - -/** - * @abstract The prompt to be spoken if the user-initiated interaction times out waiting for the user's verbal input. - * @return A SDLGlobalProperty with value of *TIMEOUTPROMPT* - */ -+ (SDLGlobalProperty *)TIMEOUTPROMPT; - -+ (SDLGlobalProperty *)VRHELPTITLE; - -+ (SDLGlobalProperty *)VRHELPITEMS; - -+ (SDLGlobalProperty *)MENUNAME; - -+ (SDLGlobalProperty *)MENUICON; - -+ (SDLGlobalProperty *)KEYBOARDPROPERTIES; - -@end \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.m deleted file mode 100644 index 59aa87e7b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.m +++ /dev/null @@ -1,92 +0,0 @@ -// SDLGlobalProperty.m -// - - -#import "SDLGlobalProperty.h" - -SDLGlobalProperty *SDLGlobalProperty_HELPPROMPT = nil; -SDLGlobalProperty *SDLGlobalProperty_TIMEOUTPROMPT = nil; -SDLGlobalProperty *SDLGlobalProperty_VRHELPTITLE = nil; -SDLGlobalProperty *SDLGlobalProperty_VRHELPITEMS = nil; -SDLGlobalProperty *SDLGlobalProperty_MENUNAME = nil; -SDLGlobalProperty *SDLGlobalProperty_MENUICON = nil; -SDLGlobalProperty *SDLGlobalProperty_KEYBOARDPROPERTIES = nil; - -NSArray *SDLGlobalProperty_values = nil; - -@implementation SDLGlobalProperty - -+ (SDLGlobalProperty *)valueOf:(NSString *)value { - for (SDLGlobalProperty *item in SDLGlobalProperty.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLGlobalProperty_values == nil) { - SDLGlobalProperty_values = @[ - SDLGlobalProperty.HELPPROMPT, - SDLGlobalProperty.TIMEOUTPROMPT, - SDLGlobalProperty.VRHELPTITLE, - SDLGlobalProperty.VRHELPITEMS, - SDLGlobalProperty.MENUNAME, - SDLGlobalProperty.MENUICON, - SDLGlobalProperty.KEYBOARDPROPERTIES, - ]; - } - return SDLGlobalProperty_values; -} - -+ (SDLGlobalProperty *)HELPPROMPT { - if (SDLGlobalProperty_HELPPROMPT == nil) { - SDLGlobalProperty_HELPPROMPT = [[SDLGlobalProperty alloc] initWithValue:@"HELPPROMPT"]; - } - return SDLGlobalProperty_HELPPROMPT; -} - -+ (SDLGlobalProperty *)TIMEOUTPROMPT { - if (SDLGlobalProperty_TIMEOUTPROMPT == nil) { - SDLGlobalProperty_TIMEOUTPROMPT = [[SDLGlobalProperty alloc] initWithValue:@"TIMEOUTPROMPT"]; - } - return SDLGlobalProperty_TIMEOUTPROMPT; -} - -+ (SDLGlobalProperty *)VRHELPTITLE { - if (SDLGlobalProperty_VRHELPTITLE == nil) { - SDLGlobalProperty_VRHELPTITLE = [[SDLGlobalProperty alloc] initWithValue:@"VRHELPTITLE"]; - } - return SDLGlobalProperty_VRHELPTITLE; -} - -+ (SDLGlobalProperty *)VRHELPITEMS { - if (SDLGlobalProperty_VRHELPITEMS == nil) { - SDLGlobalProperty_VRHELPITEMS = [[SDLGlobalProperty alloc] initWithValue:@"VRHELPITEMS"]; - } - return SDLGlobalProperty_VRHELPITEMS; -} - -+ (SDLGlobalProperty *)MENUNAME { - if (SDLGlobalProperty_MENUNAME == nil) { - SDLGlobalProperty_MENUNAME = [[SDLGlobalProperty alloc] initWithValue:@"MENUNAME"]; - } - return SDLGlobalProperty_MENUNAME; -} - -+ (SDLGlobalProperty *)MENUICON { - if (SDLGlobalProperty_MENUICON == nil) { - SDLGlobalProperty_MENUICON = [[SDLGlobalProperty alloc] initWithValue:@"MENUICON"]; - } - return SDLGlobalProperty_MENUICON; -} - -+ (SDLGlobalProperty *)KEYBOARDPROPERTIES { - if (SDLGlobalProperty_KEYBOARDPROPERTIES == nil) { - SDLGlobalProperty_KEYBOARDPROPERTIES = [[SDLGlobalProperty alloc] initWithValue:@"KEYBOARDPROPERTIES"]; - } - return SDLGlobalProperty_KEYBOARDPROPERTIES; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobals.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobals.h deleted file mode 100644 index 2b6fe2c47..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobals.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// SDLGlobals.h -// SmartDeviceLink-iOS -// -// Created by Joel Fischer on 8/5/15. -// Copyright (c) 2015 smartdevicelink. All rights reserved. -// - -#import - -#define SDL_SYSTEM_VERSION_LESS_THAN(version) ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] == NSOrderedAscending) - -@interface SDLGlobals : NSObject - -@property (assign, nonatomic, readonly) NSUInteger protocolVersion; -@property (assign, nonatomic, readonly) NSUInteger maxMTUSize; -@property (assign, nonatomic) NSUInteger maxHeadUnitVersion; - -+ (instancetype)globals; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobals.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobals.m deleted file mode 100644 index 7f122c01e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobals.m +++ /dev/null @@ -1,77 +0,0 @@ -// -// SDLGlobals.m -// SmartDeviceLink-iOS -// -// Created by Joel Fischer on 8/5/15. -// Copyright (c) 2015 smartdevicelink. All rights reserved. -// - -#import "SDLGlobals.h" - -static const NSUInteger maxProxyVersion = 4; - - -@interface SDLGlobals () - -@property (assign, nonatomic) NSUInteger protocolVersion; - -@end - - -@implementation SDLGlobals - -+ (instancetype)globals { - static SDLGlobals *sharedGlobals = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - sharedGlobals = [[SDLGlobals alloc] init]; - }); - - return sharedGlobals; -} - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - _protocolVersion = 1; - _maxHeadUnitVersion = 0; - - return self; -} - - -#pragma mark - Custom Getters / Setters - -- (void)setMaxHeadUnitVersion:(NSUInteger)maxHeadUnitVersion { - self.protocolVersion = MIN(maxHeadUnitVersion, maxProxyVersion); - - _maxHeadUnitVersion = maxHeadUnitVersion; -} - -- (NSUInteger)maxMTUSize { - switch (self.protocolVersion) { - case 1: // fallthrough - case 2: { - // HAX: This was set to 1024 at some point, for an unknown reason. We can't change it because of backward compatibility & validation concerns. The actual MTU for v1/2 is 1500 bytes. - return 1024; - } break; - case 3: // fallthrough - case 4: { - // If the head unit isn't running v3/4, but that's the connection scheme we're using, then we have to know that they could be running an MTU that's not 128k, so we default back to the v1/2 MTU for safety. - if (self.maxHeadUnitVersion > maxProxyVersion) { - return 1024; - } else { - return 131084; - } - } break; - default: { - NSAssert(NO, @"Unknown version number: %@", @(self.protocolVersion)); - return 0; - } - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMICapabilities.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMICapabilities.h deleted file mode 100644 index 6a84cec2c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMICapabilities.h +++ /dev/null @@ -1,26 +0,0 @@ -// -// SDLHMICapabilities.h -// SmartDeviceLink-iOS - -#import "SDLRPCStruct.h" - -@interface SDLHMICapabilities : SDLRPCStruct - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - Availability of build in Nav. True: Available, False: Not Available - - Boolean value. Optional. - */ -@property (copy, nonatomic) NSNumber *navigation; - -/** - Availability of build in phone. True: Available, False: Not Available - - Boolean value. Optional. - */ -@property (copy, nonatomic) NSNumber *phoneCall; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMICapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMICapabilities.m deleted file mode 100644 index 24b35be25..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMICapabilities.m +++ /dev/null @@ -1,54 +0,0 @@ -// -// SDLHMICapabilities.m -// SmartDeviceLink-iOS - -#import "SDLHMICapabilities.h" - -#import "SDLNames.h" - - -@implementation SDLHMICapabilities - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - self = [super initWithDictionary:dict]; - if (!self) { - return nil; - } - - return self; -} - -- (void)setNavigation:(NSNumber *)navigation { - if (navigation != nil) { - store[NAMES_navigation] = navigation; - } else { - [store removeObjectForKey:NAMES_navigation]; - } -} - -- (NSNumber *)navigation { - return store[NAMES_navigation]; -} - -- (void)setPhoneCall:(NSNumber *)phoneCall { - if (phoneCall != nil) { - store[NAMES_phoneCall] = phoneCall; - } else { - [store removeObjectForKey:NAMES_phoneCall]; - } -} - -- (NSNumber *)phoneCall { - return store[NAMES_phoneCall]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMILevel.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMILevel.h deleted file mode 100644 index 426217465..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMILevel.h +++ /dev/null @@ -1,76 +0,0 @@ -// SDLHMILevel.h -// - - -#import "SDLEnum.h" - -/** - * Specifies current level of the HMI. An HMI level indicates the degree of user interaction possible through the HMI (e.g. TTS only, display only, VR, etc.). The HMI level varies for an application based on the type of display (i.e. Nav or non-Nav) and the user directing "focus" to other applications (e.g. phone, other mobile applications, etc.) - * - * @since SDL 1.0 - */ -@interface SDLHMILevel : SDLEnum { -} - -/** - * Return HMILevel status (FULL, LIMITED, BACKGROUND, NONE) - * - * @param value String value to retrieve the object for - * - * @return Current HMI level - */ -+ (SDLHMILevel *)valueOf:(NSString *)value; - -/** - * Store all possible SDLHMILevel values - * - * @return an array with all possible HMILevel values inside - */ -+ (NSArray *)values; - -/** - * The application has full use of the SDL HMI. The app may output via TTS, display, or streaming audio and may gather input via VR, Menu, and button presses - * - * @return the HMILevel with value of *FULL* - */ -+ (SDLHMILevel *)FULL; - -/** - * This HMI Level is only defined for a media application using an HMI with an 8 inch touchscreen (Nav) system. The application's Show text is displayed and it receives button presses from media-oriented buttons (SEEKRIGHT, SEEKLEFT, TUNEUP, TUNEDOWN, PRESET_0-9) - * - * @return the HMILevel with value of *LIMITED* - */ -+ (SDLHMILevel *)LIMITED; - -/** - * App cannot interact with user via TTS, VR, Display or Button Presses. App can perform the following operations: - * - * @discussion
      - *
    • Operation : AddCommand
    • - *
    • Operation : DeleteCommand
    • - *
    • Operation : AddSubMenu
    • - *
    • Operation : DeleteSubMenu
    • - *
    • Operation : CreateInteractionChoiceSet
    • - *
    • Operation : DeleteInteractionChoiceSet
    • - *
    • Operation : SubscribeButton
    • - *
    • Operation : UnsubscribeButton
    • - *
    • Operation : Show
    • - *
    • Operation : UnregisterAppInterface
    • - *
    • Operation : ResetGlobalProperties
    • - *
    • Operation : SetGlobalProperties
    • - *
    - * - * @return the HMILevel with value of *BACKGROUND* - */ -+ (SDLHMILevel *)BACKGROUND; - -/** - * Application has been discovered by SDL, but it cannot send any requests or receive any notifications - * - * @discussion An HMILevel of NONE can also mean that the user has exited the application by saying "exit appname" or selecting "exit" from the application's menu. When this happens, the application still has an active interface registration with SDL and all SDL resources the application has created (e.g. Choice Sets, subscriptions, etc.) still exist. But while the HMILevel is NONE, the application cannot send any messages to SYNC, except UnregisterAppInterface - * - * @return the HMILevel with value of *NONE* - */ -+ (SDLHMILevel *)NONE; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMILevel.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMILevel.m deleted file mode 100644 index 88b0be5b6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMILevel.m +++ /dev/null @@ -1,65 +0,0 @@ -// SDLHMILevel.m -// - - -#import "SDLHMILevel.h" - -SDLHMILevel *SDLHMILevel_FULL = nil; -SDLHMILevel *SDLHMILevel_LIMITED = nil; -SDLHMILevel *SDLHMILevel_BACKGROUND = nil; -SDLHMILevel *SDLHMILevel_NONE = nil; - -NSArray *SDLHMILevel_values = nil; - -@implementation SDLHMILevel - -+ (SDLHMILevel *)valueOf:(NSString *)value { - for (SDLHMILevel *item in SDLHMILevel.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLHMILevel_values == nil) { - SDLHMILevel_values = @[ - [SDLHMILevel FULL], - [SDLHMILevel LIMITED], - [SDLHMILevel BACKGROUND], - [SDLHMILevel NONE] - ]; - } - return SDLHMILevel_values; -} - -+ (SDLHMILevel *)FULL { - if (SDLHMILevel_FULL == nil) { - SDLHMILevel_FULL = [[SDLHMILevel alloc] initWithValue:@"FULL"]; - } - return SDLHMILevel_FULL; -} - -+ (SDLHMILevel *)LIMITED { - if (SDLHMILevel_LIMITED == nil) { - SDLHMILevel_LIMITED = [[SDLHMILevel alloc] initWithValue:@"LIMITED"]; - } - return SDLHMILevel_LIMITED; -} - -+ (SDLHMILevel *)BACKGROUND { - if (SDLHMILevel_BACKGROUND == nil) { - SDLHMILevel_BACKGROUND = [[SDLHMILevel alloc] initWithValue:@"BACKGROUND"]; - } - return SDLHMILevel_BACKGROUND; -} - -+ (SDLHMILevel *)NONE { - if (SDLHMILevel_NONE == nil) { - SDLHMILevel_NONE = [[SDLHMILevel alloc] initWithValue:@"NONE"]; - } - return SDLHMILevel_NONE; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIPermissions.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIPermissions.h deleted file mode 100644 index 49a7025a7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIPermissions.h +++ /dev/null @@ -1,44 +0,0 @@ -// SDLHMIPermissions.h -// - - -#import "SDLRPCMessage.h" - -/** - * Defining sets of HMI levels, which are permitted or prohibited for a given RPC. - * - * @since SDL 2.0 - */ -@interface SDLHMIPermissions : SDLRPCStruct { -} - -/** - * Constructs a newly allocated SDLHMIPermissions object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLHMIPermissions object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract a set of all HMI levels that are permitted for this given RPC - * - * @see SDLHMILevel - * - * Required, Array of SDLHMILevel, Array size 0 - 100 - */ -@property (strong) NSMutableArray *allowed; - -/** - * @abstract a set of all HMI levels that are prohibited for this given RPC - * - * @see SDLHMILevel - * - * Required, Array of SDLHMILevel, Array size 0 - 100 - */ -@property (strong) NSMutableArray *userDisallowed; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIPermissions.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIPermissions.m deleted file mode 100644 index 29555bf59..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIPermissions.m +++ /dev/null @@ -1,66 +0,0 @@ -// SDLHMIPermissions.m -// - - -#import "SDLHMIPermissions.h" - -#import "SDLHMILevel.h" -#import "SDLNames.h" - -@implementation SDLHMIPermissions - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setAllowed:(NSMutableArray *)allowed { - if (allowed != nil) { - [store setObject:allowed forKey:NAMES_allowed]; - } else { - [store removeObjectForKey:NAMES_allowed]; - } -} - -- (NSMutableArray *)allowed { - NSMutableArray *array = [store objectForKey:NAMES_allowed]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLHMILevel.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSString *enumString in array) { - [newList addObject:[SDLHMILevel valueOf:enumString]]; - } - return newList; - } -} - -- (void)setUserDisallowed:(NSMutableArray *)userDisallowed { - if (userDisallowed != nil) { - [store setObject:userDisallowed forKey:NAMES_userDisallowed]; - } else { - [store removeObjectForKey:NAMES_userDisallowed]; - } -} - -- (NSMutableArray *)userDisallowed { - NSMutableArray *array = [store objectForKey:NAMES_userDisallowed]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLHMILevel.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSString *enumString in array) { - [newList addObject:[SDLHMILevel valueOf:enumString]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIZoneCapabilities.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIZoneCapabilities.h deleted file mode 100644 index d63655bd8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIZoneCapabilities.h +++ /dev/null @@ -1,39 +0,0 @@ -// SDLHmiZoneCapabilities.h -// - - -#import "SDLEnum.h" - -/** - * Specifies HMI Zones in the vehicle. - * - * @since SDL 1.0 - */ -@interface SDLHMIZoneCapabilities : SDLEnum { -} - -/** - * @abstract SDLHMIZoneCapabilities - * @param value The value of the string to get an object for - * @return SDLHMIZoneCapabilities - */ -+ (SDLHMIZoneCapabilities *)valueOf:(NSString *)value; - -/** - * @abstract store all possible SDLHMIZoneCapabilities values - * @return an array with all possible SDLHMIZoneCapabilities values inside - */ -+ (NSArray *)values; - -/** - * @abstract Indicates HMI available for front seat passengers. - * @return a SDLHMIZoneCapabilities with value of *FRONT* - */ -+ (SDLHMIZoneCapabilities *)FRONT; -/** - * @abstract Indicates HMI available for rear seat passengers. - * @return a SDLHMIZoneCapabilities with value of *BACK* - */ -+ (SDLHMIZoneCapabilities *)BACK; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIZoneCapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIZoneCapabilities.m deleted file mode 100644 index 56eacf671..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMIZoneCapabilities.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLHMIZoneCapabilities.m -// - - -#import "SDLHMIZoneCapabilities.h" - -SDLHMIZoneCapabilities *SDLHMIZoneCapabilities_FRONT = nil; -SDLHMIZoneCapabilities *SDLHMIZoneCapabilities_BACK = nil; - -NSArray *SDLHMIZoneCapabilities_values = nil; - -@implementation SDLHMIZoneCapabilities - -+ (SDLHMIZoneCapabilities *)valueOf:(NSString *)value { - for (SDLHMIZoneCapabilities *item in SDLHMIZoneCapabilities.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLHMIZoneCapabilities_values == nil) { - SDLHMIZoneCapabilities_values = @[ - SDLHMIZoneCapabilities.FRONT, - SDLHMIZoneCapabilities.BACK, - ]; - } - return SDLHMIZoneCapabilities_values; -} - -+ (SDLHMIZoneCapabilities *)FRONT { - if (SDLHMIZoneCapabilities_FRONT == nil) { - SDLHMIZoneCapabilities_FRONT = [[SDLHMIZoneCapabilities alloc] initWithValue:@"FRONT"]; - } - return SDLHMIZoneCapabilities_FRONT; -} - -+ (SDLHMIZoneCapabilities *)BACK { - if (SDLHMIZoneCapabilities_BACK == nil) { - SDLHMIZoneCapabilities_BACK = [[SDLHMIZoneCapabilities alloc] initWithValue:@"BACK"]; - } - return SDLHMIZoneCapabilities_BACK; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.h deleted file mode 100644 index cc1586122..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.h +++ /dev/null @@ -1,33 +0,0 @@ -// SDLHeadLampStatus.h -// - -#import "SDLRPCMessage.h" - -@class SDLAmbientLightStatus; - - -/** - * Status of the head lamps - */ -@interface SDLHeadLampStatus : SDLRPCStruct { -} -/** - * @abstract Constructs a new SDLHeadLampStatus object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLHeadLampStatus object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; -/** - * @abstract A boolean value. Status of the low beam lamps. - */ -@property (strong) NSNumber *lowBeamsOn; -/** - * @abstract A boolean value. Status of the high beam lamps. - */ -@property (strong) NSNumber *highBeamsOn; -@property (strong) SDLAmbientLightStatus *ambientLightSensorStatus; -@end \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.m deleted file mode 100644 index 44ed87b44..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.m +++ /dev/null @@ -1,65 +0,0 @@ -// SDLHeadLampStatus.m -// - -#import "SDLHeadLampStatus.h" - -#import "SDLAmbientLightStatus.h" -#import "SDLNames.h" - - -@implementation SDLHeadLampStatus - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setLowBeamsOn:(NSNumber *)lowBeamsOn { - if (lowBeamsOn != nil) { - [store setObject:lowBeamsOn forKey:NAMES_lowBeamsOn]; - } else { - [store removeObjectForKey:NAMES_lowBeamsOn]; - } -} - -- (NSNumber *)lowBeamsOn { - return [store objectForKey:NAMES_lowBeamsOn]; -} - -- (void)setHighBeamsOn:(NSNumber *)highBeamsOn { - if (highBeamsOn != nil) { - [store setObject:highBeamsOn forKey:NAMES_highBeamsOn]; - } else { - [store removeObjectForKey:NAMES_highBeamsOn]; - } -} - -- (NSNumber *)highBeamsOn { - return [store objectForKey:NAMES_highBeamsOn]; -} - -- (void)setAmbientLightSensorStatus:(SDLAmbientLightStatus *)ambientLightSensorStatus { - if (ambientLightSensorStatus != nil) { - [store setObject:ambientLightSensorStatus forKey:NAMES_ambientLightSensorStatus]; - } else { - [store removeObjectForKey:NAMES_ambientLightSensorStatus]; - } -} - -- (SDLAmbientLightStatus *)ambientLightSensorStatus { - NSObject *obj = [store objectForKey:NAMES_ambientLightSensorStatus]; - if (obj == nil || [obj isKindOfClass:SDLAmbientLightStatus.class]) { - return (SDLAmbientLightStatus *)obj; - } else { - return [SDLAmbientLightStatus valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHexUtility.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHexUtility.h deleted file mode 100644 index 7b639a7af..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHexUtility.h +++ /dev/null @@ -1,13 +0,0 @@ -// -// SDLHexUtility.h -// SmartDeviceLink -// - -#import - -@interface SDLHexUtility : NSObject - -+ (NSString *)getHexString:(UInt8 *)bytes length:(NSUInteger)length; -+ (NSString *)getHexString:(NSData *)data; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHexUtility.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHexUtility.m deleted file mode 100644 index 0787d804a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHexUtility.m +++ /dev/null @@ -1,60 +0,0 @@ -// -// SDLHexUtility.m -// SmartDeviceLink -// - -#import "SDLHexUtility.h" - -@implementation SDLHexUtility - -// Using this function as a fail-safe, because we know this is successful. -+ (NSString *)getHexString:(UInt8 *)bytes length:(NSUInteger)length { - NSMutableString *ret = [NSMutableString stringWithCapacity:(length * 2)]; - for (int i = 0; i < length; i++) { - [ret appendFormat:@"%02X", ((Byte *)bytes)[i]]; - } - - return ret; -} - -static inline char itoh(int i) { - if (i > 9) { - return 'A' + (i - 10); - } - - return '0' + i; -} - -NSString *getHexString(NSData *data) { - NSUInteger length; - unsigned char *buffer, *bytes; - - length = data.length; - bytes = (unsigned char *)data.bytes; - buffer = malloc(length * 2); - - for (NSUInteger i = 0; i < length; i++) { - buffer[i * 2] = itoh((bytes[i] >> 4) & 0xF); - buffer[(i * 2) + 1] = itoh(bytes[i] & 0xF); - } - - NSString *hexString = [[NSString alloc] initWithBytesNoCopy:buffer - length:length * 2 - encoding:NSASCIIStringEncoding - freeWhenDone:YES]; - // HAX: https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/#//apple_ref/occ/instm/NSString/initWithBytesNoCopy:length:encoding:freeWhenDone: - // If there is an error allocating the string, we must free the buffer and fall back to the less performant method. - if (!hexString) { - free(buffer); - hexString = [SDLHexUtility getHexString:bytes length:length]; - } - - return hexString; -} - -+ (NSString *)getHexString:(NSData *)data { - return getHexString(data); -} - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSession.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSession.h deleted file mode 100644 index d21343894..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSession.h +++ /dev/null @@ -1,27 +0,0 @@ -// -// SDLIAPSession.h -// - -#import "SDLIAPSessionDelegate.h" -#import -#import - -@class SDLStreamDelegate; - -typedef void (^SessionCompletionHandler)(BOOL success); - -@interface SDLIAPSession : NSObject - -@property (strong, atomic) EAAccessory *accessory; -@property (strong, atomic) NSString *protocol; -@property (strong, atomic) EASession *easession; -@property (weak) id delegate; -@property (strong, atomic) SDLStreamDelegate *streamDelegate; - -- (instancetype)initWithAccessory:(EAAccessory *)accessory - forProtocol:(NSString *)protocol; - -- (BOOL)start; -- (void)stop; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSession.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSession.m deleted file mode 100644 index 5020b2081..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSession.m +++ /dev/null @@ -1,156 +0,0 @@ -// -// SDLIAPSession.m -// - -#import "SDLIAPSession.h" -#import "SDLDebugTool.h" -#import "SDLStreamDelegate.h" -#import "SDLTimer.h" - - -@interface SDLIAPSession () - -@property (assign) BOOL isInputStreamOpen; -@property (assign) BOOL isOutputStreamOpen; - -@end - - -@implementation SDLIAPSession - -#pragma mark - Lifecycle - -- (instancetype)initWithAccessory:(EAAccessory *)accessory forProtocol:(NSString *)protocol { - NSString *logMessage = [NSString stringWithFormat:@"SDLIAPSession initWithAccessory:%@ forProtocol:%@", accessory, protocol]; - [SDLDebugTool logInfo:logMessage]; - - self = [super init]; - if (self) { - _delegate = nil; - _accessory = accessory; - _protocol = protocol; - _streamDelegate = nil; - _easession = nil; - _isInputStreamOpen = NO; - _isOutputStreamOpen = NO; - } - return self; -} - - -#pragma mark - Public Stream Lifecycle - -- (BOOL)start { - __weak typeof(self) weakSelf = self; - - NSString *logMessage = [NSString stringWithFormat:@"Opening EASession withAccessory:%@ forProtocol:%@", _accessory.name, _protocol]; - [SDLDebugTool logInfo:logMessage]; - - if ((self.easession = [[EASession alloc] initWithAccessory:_accessory forProtocol:_protocol])) { - __strong typeof(self) strongSelf = weakSelf; - - [SDLDebugTool logInfo:@"Created Session Object"]; - - strongSelf.streamDelegate.streamErrorHandler = [self streamErroredHandler]; - strongSelf.streamDelegate.streamOpenHandler = [self streamOpenedHandler]; - - [strongSelf startStream:weakSelf.easession.outputStream]; - [strongSelf startStream:weakSelf.easession.inputStream]; - - return YES; - - } else { - [SDLDebugTool logInfo:@"Error: Could Not Create Session Object"]; - return NO; - } -} - -- (void)stop { - [self stopStream:self.easession.outputStream]; - [self stopStream:self.easession.inputStream]; - self.easession = nil; -} - - -#pragma mark - Private Stream Lifecycle Helpers - -- (void)startStream:(NSStream *)stream { - stream.delegate = self.streamDelegate; - [stream scheduleInRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode]; - [stream open]; -} - -- (void)stopStream:(NSStream *)stream { - // Verify stream is in a state that can be closed. - // (N.B. Closing a stream that has not been opened has very, very bad effects.) - - // When you disconect the cable you get a stream end event and come here but stream is already in closed state. - // Still need to remove from run loop. - - NSUInteger status1 = stream.streamStatus; - if (status1 != NSStreamStatusNotOpen && - status1 != NSStreamStatusClosed) { - [stream close]; - } - - [stream removeFromRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode]; - [stream setDelegate:nil]; - - NSUInteger status2 = stream.streamStatus; - if (status2 == NSStreamStatusClosed) { - if (stream == [self.easession inputStream]) { - [SDLDebugTool logInfo:@"Input Stream Closed"]; - } else if (stream == [self.easession outputStream]) { - [SDLDebugTool logInfo:@"Output Stream Closed"]; - } - } -} - - -#pragma mark - Stream Handlers - -- (SDLStreamOpenHandler)streamOpenedHandler { - __weak typeof(self) weakSelf = self; - - return ^(NSStream *stream) { - __strong typeof(weakSelf) strongSelf = weakSelf; - - if (stream == [strongSelf.easession outputStream]) { - [SDLDebugTool logInfo:@"Output Stream Opened"]; - strongSelf.isOutputStreamOpen = YES; - } else if (stream == [strongSelf.easession inputStream]) { - [SDLDebugTool logInfo:@"Input Stream Opened"]; - strongSelf.isInputStreamOpen = YES; - } - - // When both streams are open, session initialization is complete. Let the delegate know. - if (strongSelf.isInputStreamOpen && strongSelf.isOutputStreamOpen) { - [strongSelf.delegate onSessionInitializationCompleteForSession:weakSelf]; - } - }; -} - -- (SDLStreamErrorHandler)streamErroredHandler { - __weak typeof(self) weakSelf = self; - - return ^(NSStream *stream) { - __strong typeof(weakSelf) strongSelf = weakSelf; - - [SDLDebugTool logInfo:@"Stream Error"]; - [strongSelf.delegate onSessionStreamsEnded:strongSelf]; - }; -} - - -#pragma mark - Lifecycle Destruction - -- (void)dealloc { - self.delegate = nil; - self.accessory = nil; - self.protocol = nil; - self.streamDelegate = nil; - self.easession = nil; - [SDLDebugTool logInfo:@"SDLIAPSession Dealloc"]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSessionDelegate.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSessionDelegate.h deleted file mode 100644 index 6ec7e189b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSessionDelegate.h +++ /dev/null @@ -1,13 +0,0 @@ -// -// SDLIAPSessionDelegate.h -// - -#import -@class SDLIAPSession; - -@protocol SDLIAPSessionDelegate - -- (void)onSessionInitializationCompleteForSession:(SDLIAPSession *)session; -- (void)onSessionStreamsEnded:(SDLIAPSession *)session; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPTransport.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPTransport.h deleted file mode 100644 index ff082b9b3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPTransport.h +++ /dev/null @@ -1,15 +0,0 @@ -// SDLIAPTransport.h -// - -#import - -#import "SDLAbstractTransport.h" -#import "SDLIAPSessionDelegate.h" - - -@interface SDLIAPTransport : SDLAbstractTransport - -@property (strong, atomic) SDLIAPSession *controlSession; -@property (strong, atomic) SDLIAPSession *session; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPTransport.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPTransport.m deleted file mode 100644 index 5cf4ceb21..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPTransport.m +++ /dev/null @@ -1,477 +0,0 @@ -// SDLIAPTransport.h -// - - -#import -#import - -#import "EAAccessoryManager+SDLProtocols.h" -#import "SDLDebugTool.h" -#import "SDLGlobals.h" -#import "SDLIAPSession.h" -#import "SDLIAPTransport.h" -#import "SDLIAPTransport.h" -#import "SDLSiphonServer.h" -#import "SDLStreamDelegate.h" -#import "SDLTimer.h" -#import - - -NSString *const legacyProtocolString = @"com.ford.sync.prot0"; -NSString *const controlProtocolString = @"com.smartdevicelink.prot0"; -NSString *const indexedProtocolStringPrefix = @"com.smartdevicelink.prot"; - -int const createSessionRetries = 1; -int const protocolIndexTimeoutSeconds = 20; -int const streamOpenTimeoutSeconds = 2; - - -@interface SDLIAPTransport () { - dispatch_queue_t _transmit_queue; - BOOL _alreadyDestructed; -} - -@property (assign) int retryCounter; -@property (assign) BOOL sessionSetupInProgress; -@property (strong) SDLTimer *protocolIndexTimer; - -@end - - -@implementation SDLIAPTransport - -- (instancetype)init { - if (self = [super init]) { - _alreadyDestructed = NO; - _session = nil; - _controlSession = nil; - _retryCounter = 0; - _sessionSetupInProgress = NO; - _protocolIndexTimer = nil; - _transmit_queue = dispatch_queue_create("com.sdl.transport.iap.transmit", DISPATCH_QUEUE_SERIAL); - - [self sdl_startEventListening]; - [SDLSiphonServer init]; - } - - [SDLDebugTool logInfo:@"SDLIAPTransport Init"]; - - return self; -} - - -#pragma mark - Notification Subscriptions - -- (void)sdl_startEventListening { - [SDLDebugTool logInfo:@"SDLIAPTransport Listening For Events"]; - [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(sdl_accessoryConnected:) - name:EAAccessoryDidConnectNotification - object:nil]; - - [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(sdl_accessoryDisconnected:) - name:EAAccessoryDidDisconnectNotification - object:nil]; - - [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(sdl_applicationWillEnterForeground:) - name:UIApplicationWillEnterForegroundNotification - object:nil]; -} - -- (void)sdl_stopEventListening { - [SDLDebugTool logInfo:@"SDLIAPTransport Stopped Listening For Events"]; - [[NSNotificationCenter defaultCenter] removeObserver:self]; -} - -#pragma mark - EAAccessory Notifications - -- (void)sdl_accessoryConnected:(NSNotification *)notification { - NSMutableString *logMessage = [NSMutableString stringWithFormat:@"Accessory Connected, Opening in %0.03fs", self.retryDelay]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - self.retryCounter = 0; - [self performSelector:@selector(connect) withObject:nil afterDelay:self.retryDelay]; -} - -- (void)sdl_accessoryDisconnected:(NSNotification *)notification { - [SDLDebugTool logInfo:@"Accessory Disconnected Event" withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - // Only check for the data session, the control session is handled separately - EAAccessory *accessory = [notification.userInfo objectForKey:EAAccessoryKey]; - if (accessory.connectionID == self.session.accessory.connectionID) { - self.sessionSetupInProgress = NO; - [self disconnect]; - [self.delegate onTransportDisconnected]; - } -} - -- (void)sdl_applicationWillEnterForeground:(NSNotification *)notification { - [SDLDebugTool logInfo:@"App Foregrounded Event" withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - self.retryCounter = 0; - [self connect]; -} - - -#pragma mark - Stream Lifecycle - -- (void)connect { - if (!self.session && !self.sessionSetupInProgress) { - self.sessionSetupInProgress = YES; - [self sdl_establishSession]; - } else if (self.session) { - [SDLDebugTool logInfo:@"Session already established."]; - } else { - [SDLDebugTool logInfo:@"Session setup already in progress."]; - } -} - -- (void)disconnect { - [SDLDebugTool logInfo:@"IAP Disconnecting" withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - // Only disconnect the data session, the control session does not stay open and is handled separately - if (self.session != nil) { - [self.session stop]; - self.session = nil; - } -} - - -#pragma mark - Creating Session Streams - -- (void)sdl_establishSession { - [SDLDebugTool logInfo:@"Attempting To Connect"]; - if (self.retryCounter < createSessionRetries) { - // We should be attempting to connect - self.retryCounter++; - EAAccessory *accessory = nil; - - // Determine if we can start a multi-app session or a legacy (single-app) session - if ((accessory = [EAAccessoryManager findAccessoryForProtocol:controlProtocolString])) { - [self sdl_createIAPControlSessionWithAccessory:accessory]; - } else if ((accessory = [EAAccessoryManager findAccessoryForProtocol:legacyProtocolString])) { - [self sdl_createIAPDataSessionWithAccessory:accessory forProtocol:legacyProtocolString]; - } else { - // No compatible accessory - [SDLDebugTool logInfo:@"No accessory supporting a required sync protocol was found."]; - self.sessionSetupInProgress = NO; - } - } else { - // We are beyond the number of retries allowed - [SDLDebugTool logInfo:@"Create session retries exhausted."]; - self.sessionSetupInProgress = NO; - } -} - -- (void)sdl_createIAPControlSessionWithAccessory:(EAAccessory *)accessory { - [SDLDebugTool logInfo:@"Starting MultiApp Session"]; - self.controlSession = [[SDLIAPSession alloc] initWithAccessory:accessory forProtocol:controlProtocolString]; - - if (self.controlSession) { - self.controlSession.delegate = self; - - if (self.protocolIndexTimer == nil) { - self.protocolIndexTimer = [[SDLTimer alloc] initWithDuration:protocolIndexTimeoutSeconds repeat:NO]; - } else { - [self.protocolIndexTimer cancel]; - } - - __weak typeof(self) weakSelf = self; - void (^elapsedBlock)(void) = ^{ - __strong typeof(weakSelf) strongSelf = weakSelf; - - [SDLDebugTool logInfo:@"Protocol Index Timeout"]; - [strongSelf.controlSession stop]; - strongSelf.controlSession.streamDelegate = nil; - strongSelf.controlSession = nil; - [strongSelf sdl_retryEstablishSession]; - }; - self.protocolIndexTimer.elapsedBlock = elapsedBlock; - - SDLStreamDelegate *controlStreamDelegate = [SDLStreamDelegate new]; - self.controlSession.streamDelegate = controlStreamDelegate; - controlStreamDelegate.streamHasBytesHandler = [self sdl_controlStreamHasBytesHandlerForAccessory:accessory]; - controlStreamDelegate.streamEndHandler = [self sdl_controlStreamEndedHandler]; - controlStreamDelegate.streamErrorHandler = [self sdl_controlStreamErroredHandler]; - - if (![self.controlSession start]) { - [SDLDebugTool logInfo:@"Control Session Failed"]; - self.controlSession.streamDelegate = nil; - self.controlSession = nil; - [self sdl_retryEstablishSession]; - } - } else { - [SDLDebugTool logInfo:@"Failed MultiApp Control SDLIAPSession Initialization"]; - [self sdl_retryEstablishSession]; - } -} - -- (void)sdl_createIAPDataSessionWithAccessory:(EAAccessory *)accessory forProtocol:(NSString *)protocol { - [SDLDebugTool logInfo:@"Starting Data Session"]; - self.session = [[SDLIAPSession alloc] initWithAccessory:accessory forProtocol:protocol]; - if (self.session) { - self.session.delegate = self; - - SDLStreamDelegate *ioStreamDelegate = [[SDLStreamDelegate alloc] init]; - self.session.streamDelegate = ioStreamDelegate; - ioStreamDelegate.streamHasBytesHandler = [self sdl_dataStreamHasBytesHandler]; - ioStreamDelegate.streamEndHandler = [self sdl_dataStreamEndedHandler]; - ioStreamDelegate.streamErrorHandler = [self sdl_dataStreamErroredHandler]; - - if (![self.session start]) { - [SDLDebugTool logInfo:@"Data Session Failed"]; - self.session.streamDelegate = nil; - self.session = nil; - [self sdl_retryEstablishSession]; - } - } else { - [SDLDebugTool logInfo:@"Failed MultiApp Data SDLIAPSession Initialization"]; - [self sdl_retryEstablishSession]; - } -} - -- (void)sdl_retryEstablishSession { - // Current strategy disallows automatic retries. - self.sessionSetupInProgress = NO; -} - -// This gets called after both I/O streams of the session have opened. -- (void)onSessionInitializationCompleteForSession:(SDLIAPSession *)session { - // Control Session Opened - if ([controlProtocolString isEqualToString:session.protocol]) { - [SDLDebugTool logInfo:@"Control Session Established"]; - [self.protocolIndexTimer start]; - } - - // Data Session Opened - if (![controlProtocolString isEqualToString:session.protocol]) { - self.sessionSetupInProgress = NO; - [SDLDebugTool logInfo:@"Data Session Established"]; - [self.delegate onTransportConnected]; - } -} - - -#pragma mark - Session End - -// Retry establishSession on Stream End events only if it was the control session and we haven't already connected on non-control protocol -- (void)onSessionStreamsEnded:(SDLIAPSession *)session { - if (!self.session && [controlProtocolString isEqualToString:session.protocol]) { - [SDLDebugTool logInfo:@"onSessionStreamsEnded"]; - [session stop]; - [self sdl_retryEstablishSession]; - } -} - - -#pragma mark - Data Transmission - -- (void)sendData:(NSData *)data { - dispatch_async(_transmit_queue, ^{ - NSOutputStream *ostream = self.session.easession.outputStream; - NSMutableData *remainder = data.mutableCopy; - - while (remainder.length != 0) { - if (ostream.streamStatus == NSStreamStatusOpen && ostream.hasSpaceAvailable) { - NSInteger bytesWritten = [ostream write:remainder.bytes maxLength:remainder.length]; - - if (bytesWritten == -1) { - [SDLDebugTool logInfo:[NSString stringWithFormat:@"Error: %@", [ostream streamError]] withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All]; - break; - } - - [remainder replaceBytesInRange:NSMakeRange(0, bytesWritten) withBytes:NULL length:0]; - } - } - }); -} - - -#pragma mark - Stream Handlers -#pragma mark Control Stream - -- (SDLStreamEndHandler)sdl_controlStreamEndedHandler { - __weak typeof(self) weakSelf = self; - - return ^(NSStream *stream) { - __strong typeof(weakSelf) strongSelf = weakSelf; - - [SDLDebugTool logInfo:@"Control Stream Event End"]; - - // End events come in pairs, only perform this once per set. - if (strongSelf.controlSession != nil) { - [strongSelf.protocolIndexTimer cancel]; - [strongSelf.controlSession stop]; - strongSelf.controlSession.streamDelegate = nil; - strongSelf.controlSession = nil; - [strongSelf sdl_retryEstablishSession]; - } - }; -} - -- (SDLStreamHasBytesHandler)sdl_controlStreamHasBytesHandlerForAccessory:(EAAccessory *)accessory { - __weak typeof(self) weakSelf = self; - - return ^(NSInputStream *istream) { - __strong typeof(weakSelf) strongSelf = weakSelf; - - [SDLDebugTool logInfo:@"Control Stream Received Data"]; - - // Read in the stream a single byte at a time - uint8_t buf[1]; - NSUInteger len = [istream read:buf maxLength:1]; - if (len > 0) { - NSString *logMessage = [NSString stringWithFormat:@"Switching to protocol %@", [@(buf[0]) stringValue]]; - [SDLDebugTool logInfo:logMessage]; - - // Destroy the control session - [strongSelf.protocolIndexTimer cancel]; - [strongSelf.controlSession stop]; - strongSelf.controlSession.streamDelegate = nil; - strongSelf.controlSession = nil; - - // Determine protocol string of the data session, then create that data session - NSString *indexedProtocolString = [NSString stringWithFormat:@"%@%@", indexedProtocolStringPrefix, @(buf[0])]; - dispatch_sync(dispatch_get_main_queue(), ^{ - [strongSelf sdl_createIAPDataSessionWithAccessory:accessory forProtocol:indexedProtocolString]; - }); - } - }; -} - -- (SDLStreamErrorHandler)sdl_controlStreamErroredHandler { - __weak typeof(self) weakSelf = self; - - return ^(NSStream *stream) { - __strong typeof(weakSelf) strongSelf = weakSelf; - - [SDLDebugTool logInfo:@"Stream Error"]; - [strongSelf.protocolIndexTimer cancel]; - [strongSelf.controlSession stop]; - strongSelf.controlSession.streamDelegate = nil; - strongSelf.controlSession = nil; - [strongSelf sdl_retryEstablishSession]; - }; -} - - -#pragma mark Data Stream - -- (SDLStreamEndHandler)sdl_dataStreamEndedHandler { - __weak typeof(self) weakSelf = self; - - return ^(NSStream *stream) { - __strong typeof(weakSelf) strongSelf = weakSelf; - - [SDLDebugTool logInfo:@"Data Stream Event End"]; - [strongSelf.session stop]; - strongSelf.session.streamDelegate = nil; - - if (![legacyProtocolString isEqualToString:strongSelf.session.protocol]) { - [strongSelf sdl_retryEstablishSession]; - } - - strongSelf.session = nil; - }; -} - -- (SDLStreamHasBytesHandler)sdl_dataStreamHasBytesHandler { - __weak typeof(self) weakSelf = self; - - return ^(NSInputStream *istream) { - __strong typeof(weakSelf) strongSelf = weakSelf; - - uint8_t buf[[SDLGlobals globals].maxMTUSize]; - while ([istream hasBytesAvailable]) { - NSInteger bytesRead = [istream read:buf maxLength:[SDLGlobals globals].maxMTUSize]; - NSData *dataIn = [NSData dataWithBytes:buf length:bytesRead]; - - if (bytesRead > 0) { - [strongSelf.delegate onDataReceived:dataIn]; - } else { - break; - } - } - }; -} - -- (SDLStreamErrorHandler)sdl_dataStreamErroredHandler { - __weak typeof(self) weakSelf = self; - - return ^(NSStream *stream) { - __strong typeof(weakSelf) strongSelf = weakSelf; - - [SDLDebugTool logInfo:@"Data Stream Error"]; - [strongSelf.session stop]; - strongSelf.session.streamDelegate = nil; - - if (![legacyProtocolString isEqualToString:strongSelf.session.protocol]) { - [strongSelf sdl_retryEstablishSession]; - } - - strongSelf.session = nil; - }; -} - -- (double)retryDelay { - const double min_value = 0.0; - const double max_value = 10.0; - double range_length = max_value - min_value; - - static double delay = 0; - - // HAX: This pull the app name and hashes it in an attempt to provide a more even distribution of retry delays. The evidence that this does so is anecdotal. A more ideal solution would be to use a list of known, installed SDL apps on the phone to try and deterministically generate an even delay. - if (delay == 0) { - NSString *appName = [[NSProcessInfo processInfo] processName]; - if (appName == nil) { - appName = @"noname"; - } - - // Run the app name through an md5 hasher - const char *ptr = [appName UTF8String]; - unsigned char md5Buffer[CC_MD5_DIGEST_LENGTH]; - CC_MD5(ptr, (unsigned int)strlen(ptr), md5Buffer); - - // Generate a string of the hex hash - NSMutableString *output = [NSMutableString stringWithString:@"0x"]; - for (int i = 0; i < 8; i++) { - [output appendFormat:@"%02X", md5Buffer[i]]; - } - - // Transform the string into a number between 0 and 1 - unsigned long long firstHalf; - NSScanner *pScanner = [NSScanner scannerWithString:output]; - [pScanner scanHexLongLong:&firstHalf]; - double hashBasedValueInRange0to1 = ((double)firstHalf) / 0xffffffffffffffff; - - // Transform the number into a number between min and max - delay = ((range_length * hashBasedValueInRange0to1) + min_value); - } - - return delay; -} - - -#pragma mark - Lifecycle Destruction - -- (void)sdl_destructObjects { - if (!_alreadyDestructed) { - _alreadyDestructed = YES; - [self sdl_stopEventListening]; - self.controlSession = nil; - self.session = nil; - self.delegate = nil; - } -} - -- (void)dispose { - [self sdl_destructObjects]; -} - -- (void)dealloc { - [self sdl_destructObjects]; - [SDLDebugTool logInfo:@"SDLIAPTransport Dealloc" withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStableStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStableStatus.h deleted file mode 100644 index 96dcdfaa9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStableStatus.h +++ /dev/null @@ -1,42 +0,0 @@ -// SDLIgnitionStableStatus.h -// - - -#import "SDLEnum.h" - -/** - * Reflects the ignition switch stability. - * - * @since SDL 2.0 - */ -@interface SDLIgnitionStableStatus : SDLEnum { -} - -/** - * @abstract return SDLIgnitionStableStatus - * @param value The value of the string to get an object for - * @return SDLIgnitionStableStatus - */ -+ (SDLIgnitionStableStatus *)valueOf:(NSString *)value; - -/** - * @abstract store all possible SDLIgnitionStableStatus values - * @return an array with all possible SDLIgnitionStableStatus values inside - */ -+ (NSArray *)values; - -/** - * @abstract The current ignition switch status is considered not to be stable. - * @return the Ignition Stable Status with value of *IGNITION_SWITCH_NOT_STABLE* - */ -+ (SDLIgnitionStableStatus *)IGNITION_SWITCH_NOT_STABLE; - -/** - * @abstract The current ignition switch status is considered to be stable. - * @return the Ignition Stable Status with value of *IGNITION_SWITCH_STABLE* - */ -+ (SDLIgnitionStableStatus *)IGNITION_SWITCH_STABLE; - -+ (SDLIgnitionStableStatus *)MISSING_FROM_TRANSMITTER; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStableStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStableStatus.m deleted file mode 100644 index 868723b32..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStableStatus.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLIgnitionStableStatus.m -// - - -#import "SDLIgnitionStableStatus.h" - -SDLIgnitionStableStatus *SDLIgnitionStableStatus_IGNITION_SWITCH_NOT_STABLE = nil; -SDLIgnitionStableStatus *SDLIgnitionStableStatus_IGNITION_SWITCH_STABLE = nil; -SDLIgnitionStableStatus *SDLIgnitionStableStatus_MISSING_FROM_TRANSMITTER = nil; - -NSArray *SDLIgnitionStableStatus_values = nil; - -@implementation SDLIgnitionStableStatus - -+ (SDLIgnitionStableStatus *)valueOf:(NSString *)value { - for (SDLIgnitionStableStatus *item in SDLIgnitionStableStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLIgnitionStableStatus_values == nil) { - SDLIgnitionStableStatus_values = @[ - SDLIgnitionStableStatus.IGNITION_SWITCH_NOT_STABLE, - SDLIgnitionStableStatus.IGNITION_SWITCH_STABLE, - SDLIgnitionStableStatus.MISSING_FROM_TRANSMITTER, - ]; - } - return SDLIgnitionStableStatus_values; -} - -+ (SDLIgnitionStableStatus *)IGNITION_SWITCH_NOT_STABLE { - if (SDLIgnitionStableStatus_IGNITION_SWITCH_NOT_STABLE == nil) { - SDLIgnitionStableStatus_IGNITION_SWITCH_NOT_STABLE = [[SDLIgnitionStableStatus alloc] initWithValue:@"IGNITION_SWITCH_NOT_STABLE"]; - } - return SDLIgnitionStableStatus_IGNITION_SWITCH_NOT_STABLE; -} - -+ (SDLIgnitionStableStatus *)IGNITION_SWITCH_STABLE { - if (SDLIgnitionStableStatus_IGNITION_SWITCH_STABLE == nil) { - SDLIgnitionStableStatus_IGNITION_SWITCH_STABLE = [[SDLIgnitionStableStatus alloc] initWithValue:@"IGNITION_SWITCH_STABLE"]; - } - return SDLIgnitionStableStatus_IGNITION_SWITCH_STABLE; -} - -+ (SDLIgnitionStableStatus *)MISSING_FROM_TRANSMITTER { - if (SDLIgnitionStableStatus_MISSING_FROM_TRANSMITTER == nil) { - SDLIgnitionStableStatus_MISSING_FROM_TRANSMITTER = [[SDLIgnitionStableStatus alloc] initWithValue:@"MISSING_FROM_TRANSMITTER"]; - } - return SDLIgnitionStableStatus_MISSING_FROM_TRANSMITTER; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStatus.h deleted file mode 100644 index fadb3f5f4..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStatus.h +++ /dev/null @@ -1,64 +0,0 @@ -// SDLIgnitionStatus.h -// - - -#import "SDLEnum.h" - -/** - * Reflects the status of ignition.. - * - * @since SDL 2.0 - */ -@interface SDLIgnitionStatus : SDLEnum { -} - -/** - * @abstract return SDLIgnitionStatus - * @param value The value of the string to get an object for - * @return SDLIgnitionStatus object - */ -+ (SDLIgnitionStatus *)valueOf:(NSString *)value; - -/** - * @abstract store all possible SDLIgnitionStatus values - * @return an array with all possible SDLIgnitionStatus values inside - */ -+ (NSArray *)values; - -/** - * @abstract Ignition status currently unknown - * @return Ignition Status with value of *UNKNOWN* - */ -+ (SDLIgnitionStatus *)UNKNOWN; - -/** - * @abstract Ignition is off - * @return Ignition Status with value of *OFF* - */ -+ (SDLIgnitionStatus *)OFF; - -/** - * @abstract Ignition is in mode accessory - * @return Ignition Status with value of *ACCESSORY* - */ -+ (SDLIgnitionStatus *)ACCESSORY; - -/** - * @abstract Ignition is in mode run - * @return Ignition Status with value of *RUN* - */ -+ (SDLIgnitionStatus *)RUN; - -/** - * @abstract Ignition is in mode start - * @return Ignition Status with value of *START* - */ -+ (SDLIgnitionStatus *)START; - -/** - * @abstract Signal is invalid - * @return Ignition Status with value of *INVALID* - */ -+ (SDLIgnitionStatus *)INVALID; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStatus.m deleted file mode 100644 index ff069f0a0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStatus.m +++ /dev/null @@ -1,83 +0,0 @@ -// SDLIgnitionStatus.m -// - - -#import "SDLIgnitionStatus.h" - -SDLIgnitionStatus *SDLIgnitionStatus_UNKNOWN = nil; -SDLIgnitionStatus *SDLIgnitionStatus_OFF = nil; -SDLIgnitionStatus *SDLIgnitionStatus_ACCESSORY = nil; -SDLIgnitionStatus *SDLIgnitionStatus_RUN = nil; -SDLIgnitionStatus *SDLIgnitionStatus_START = nil; -SDLIgnitionStatus *SDLIgnitionStatus_INVALID = nil; - -NSArray *SDLIgnitionStatus_values = nil; - -@implementation SDLIgnitionStatus - -+ (SDLIgnitionStatus *)valueOf:(NSString *)value { - for (SDLIgnitionStatus *item in SDLIgnitionStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLIgnitionStatus_values == nil) { - SDLIgnitionStatus_values = @[ - SDLIgnitionStatus.UNKNOWN, - SDLIgnitionStatus.OFF, - SDLIgnitionStatus.ACCESSORY, - SDLIgnitionStatus.RUN, - SDLIgnitionStatus.START, - SDLIgnitionStatus.INVALID, - ]; - } - return SDLIgnitionStatus_values; -} - -+ (SDLIgnitionStatus *)UNKNOWN { - if (SDLIgnitionStatus_UNKNOWN == nil) { - SDLIgnitionStatus_UNKNOWN = [[SDLIgnitionStatus alloc] initWithValue:@"UNKNOWN"]; - } - return SDLIgnitionStatus_UNKNOWN; -} - -+ (SDLIgnitionStatus *)OFF { - if (SDLIgnitionStatus_OFF == nil) { - SDLIgnitionStatus_OFF = [[SDLIgnitionStatus alloc] initWithValue:@"OFF"]; - } - return SDLIgnitionStatus_OFF; -} - -+ (SDLIgnitionStatus *)ACCESSORY { - if (SDLIgnitionStatus_ACCESSORY == nil) { - SDLIgnitionStatus_ACCESSORY = [[SDLIgnitionStatus alloc] initWithValue:@"ACCESSORY"]; - } - return SDLIgnitionStatus_ACCESSORY; -} - -+ (SDLIgnitionStatus *)RUN { - if (SDLIgnitionStatus_RUN == nil) { - SDLIgnitionStatus_RUN = [[SDLIgnitionStatus alloc] initWithValue:@"RUN"]; - } - return SDLIgnitionStatus_RUN; -} - -+ (SDLIgnitionStatus *)START { - if (SDLIgnitionStatus_START == nil) { - SDLIgnitionStatus_START = [[SDLIgnitionStatus alloc] initWithValue:@"START"]; - } - return SDLIgnitionStatus_START; -} - -+ (SDLIgnitionStatus *)INVALID { - if (SDLIgnitionStatus_INVALID == nil) { - SDLIgnitionStatus_INVALID = [[SDLIgnitionStatus alloc] initWithValue:@"INVALID"]; - } - return SDLIgnitionStatus_INVALID; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.h deleted file mode 100644 index 993107ec3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.h +++ /dev/null @@ -1,42 +0,0 @@ -// SDLImage.h -// - -#import "SDLRPCMessage.h" - -@class SDLImageType; - - -/** - *Specifies, which image shall be used, e.g. in SDLAlerts or on SDLSoftbuttons provided the display supports it. - * - * @since SDL 2.0 - */ -@interface SDLImage : SDLRPCStruct { -} - -/** - * Constructs a newly allocated SDLImage object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLImage object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The static hex icon value or the binary image file name identifier (sent by SDLPutFile) - * - * Required, max length = 65535 - */ -@property (strong) NSString *value; - -/** - * @abstract Describes, whether it is a static or dynamic image - * - * Required - */ -@property (strong) SDLImageType *imageType; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.m deleted file mode 100644 index ef646f794..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.m +++ /dev/null @@ -1,53 +0,0 @@ -// SDLImage.m -// - -#import "SDLImage.h" - -#import "SDLImageType.h" -#import "SDLNames.h" - - -@implementation SDLImage - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setValue:(NSString *)value { - if (value != nil) { - [store setObject:value forKey:NAMES_value]; - } else { - [store removeObjectForKey:NAMES_value]; - } -} - -- (NSString *)value { - return [store objectForKey:NAMES_value]; -} - -- (void)setImageType:(SDLImageType *)imageType { - if (imageType != nil) { - [store setObject:imageType forKey:NAMES_imageType]; - } else { - [store removeObjectForKey:NAMES_imageType]; - } -} - -- (SDLImageType *)imageType { - NSObject *obj = [store objectForKey:NAMES_imageType]; - if (obj == nil || [obj isKindOfClass:SDLImageType.class]) { - return (SDLImageType *)obj; - } else { - return [SDLImageType valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.h deleted file mode 100644 index eb0942e79..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.h +++ /dev/null @@ -1,20 +0,0 @@ -// SDLImageField.h -// - -#import "SDLRPCMessage.h" - -@class SDLImageFieldName; -@class SDLImageResolution; - - -@interface SDLImageField : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLImageFieldName *name; -@property (strong) NSMutableArray *imageTypeSupported; -@property (strong) SDLImageResolution *imageResolution; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.m deleted file mode 100644 index af4f15517..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.m +++ /dev/null @@ -1,81 +0,0 @@ -// SDLImageField.m -// - -#import "SDLImageField.h" - -#import "SDLFileType.h" -#import "SDLImageFieldName.h" -#import "SDLImageResolution.h" -#import "SDLNames.h" - - -@implementation SDLImageField - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setName:(SDLImageFieldName *)name { - if (name != nil) { - [store setObject:name forKey:NAMES_name]; - } else { - [store removeObjectForKey:NAMES_name]; - } -} - -- (SDLImageFieldName *)name { - NSObject *obj = [store objectForKey:NAMES_name]; - if (obj == nil || [obj isKindOfClass:SDLImageFieldName.class]) { - return (SDLImageFieldName *)obj; - } else { - return [SDLImageFieldName valueOf:(NSString *)obj]; - } -} - -- (void)setImageTypeSupported:(NSMutableArray *)imageTypeSupported { - if (imageTypeSupported != nil) { - [store setObject:imageTypeSupported forKey:NAMES_imageTypeSupported]; - } else { - [store removeObjectForKey:NAMES_imageTypeSupported]; - } -} - -- (NSMutableArray *)imageTypeSupported { - NSMutableArray *array = [store objectForKey:NAMES_imageTypeSupported]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLFileType.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSString *enumString in array) { - [newList addObject:[SDLFileType valueOf:enumString]]; - } - return newList; - } -} - -- (void)setImageResolution:(SDLImageResolution *)imageResolution { - if (imageResolution != nil) { - [store setObject:imageResolution forKey:NAMES_imageResolution]; - } else { - [store removeObjectForKey:NAMES_imageResolution]; - } -} - -- (SDLImageResolution *)imageResolution { - NSObject *obj = [store objectForKey:NAMES_imageResolution]; - if (obj == nil || [obj isKindOfClass:SDLImageResolution.class]) { - return (SDLImageResolution *)obj; - } else { - return [[SDLImageResolution alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageFieldName.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageFieldName.h deleted file mode 100644 index 5c63a5a71..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageFieldName.h +++ /dev/null @@ -1,82 +0,0 @@ -// SDLImageFieldName.h -// - - -#import "SDLEnum.h" - -/** The name that identifies the filed. - * - * - * @since SmartDeviceLink 3.0 - * - */ -@interface SDLImageFieldName : SDLEnum { -} - -+ (SDLImageFieldName *)valueOf:(NSString *)value; -+ (NSArray *)values; - -/** The image field for SoftButton - * - */ -+ (SDLImageFieldName *)softButtonImage; - -/** The first image field for Choice. - * - */ -+ (SDLImageFieldName *)choiceImage; - -/** The scondary image field for Choice. - * - */ -+ (SDLImageFieldName *)choiceSecondaryImage; - -/** The image field for vrHelpItem. - * - */ -+ (SDLImageFieldName *)vrHelpItem; - -/** The image field for Turn. - * - */ - -+ (SDLImageFieldName *)turnIcon; - -/** The image field for the menu icon in SetGlobalProperties. - * - */ -+ (SDLImageFieldName *)menuIcon; - -/** The image filed for AddCommand. - * - */ - -+ (SDLImageFieldName *)cmdIcon; - -/** The iamage field for the app icon ( set by setAppIcon). - * - */ -+ (SDLImageFieldName *)appIcon; - -/** The image filed for Show. - * - */ -+ (SDLImageFieldName *)graphic; - -/** The primary image field for ShowConstant TBT. - * - */ -+ (SDLImageFieldName *)showConstantTBTIcon; - -/** The secondary image field for ShowConstant TBT. - * - */ -+ (SDLImageFieldName *)showConstantTBTNextTurnIcon; - -/** - * The optional image of a destination / location - * @since SDL 4.0 - */ -+ (SDLImageFieldName *)locationImage; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageFieldName.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageFieldName.m deleted file mode 100644 index 7baa57b45..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageFieldName.m +++ /dev/null @@ -1,137 +0,0 @@ -// SDLImageFieldName.m -// - - -#import "SDLImageFieldName.h" - -SDLImageFieldName *SDLImageFieldName_softButtonImage = nil; -SDLImageFieldName *SDLImageFieldName_choiceImage = nil; -SDLImageFieldName *SDLImageFieldName_choiceSecondaryImage = nil; -SDLImageFieldName *SDLImageFieldName_vrHelpItem = nil; -SDLImageFieldName *SDLImageFieldName_turnIcon = nil; -SDLImageFieldName *SDLImageFieldName_menuIcon = nil; -SDLImageFieldName *SDLImageFieldName_cmdIcon = nil; -SDLImageFieldName *SDLImageFieldName_appIcon = nil; -SDLImageFieldName *SDLImageFieldName_graphic = nil; -SDLImageFieldName *SDLImageFieldName_showConstantTBTIcon = nil; -SDLImageFieldName *SDLImageFieldName_showConstantTBTNextTurnIcon = nil; -SDLImageFieldName *SDLImageFieldName_locationImage = nil; - -NSArray *SDLImageFieldName_values = nil; - -@implementation SDLImageFieldName - -+ (SDLImageFieldName *)valueOf:(NSString *)value { - for (SDLImageFieldName *item in SDLImageFieldName.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLImageFieldName_values == nil) { - SDLImageFieldName_values = @[ - SDLImageFieldName.softButtonImage, - SDLImageFieldName.choiceImage, - SDLImageFieldName.choiceSecondaryImage, - SDLImageFieldName.vrHelpItem, - SDLImageFieldName.turnIcon, - SDLImageFieldName.menuIcon, - SDLImageFieldName.cmdIcon, - SDLImageFieldName.appIcon, - SDLImageFieldName.graphic, - SDLImageFieldName.showConstantTBTIcon, - SDLImageFieldName.showConstantTBTNextTurnIcon, - SDLImageFieldName.locationImage, - ]; - } - return SDLImageFieldName_values; -} - -+ (SDLImageFieldName *)softButtonImage { - if (SDLImageFieldName_softButtonImage == nil) { - SDLImageFieldName_softButtonImage = [[SDLImageFieldName alloc] initWithValue:@"softButtonImage"]; - } - return SDLImageFieldName_softButtonImage; -} - -+ (SDLImageFieldName *)choiceImage { - if (SDLImageFieldName_choiceImage == nil) { - SDLImageFieldName_choiceImage = [[SDLImageFieldName alloc] initWithValue:@"choiceImage"]; - } - return SDLImageFieldName_choiceImage; -} - -+ (SDLImageFieldName *)choiceSecondaryImage { - if (SDLImageFieldName_choiceSecondaryImage == nil) { - SDLImageFieldName_choiceSecondaryImage = [[SDLImageFieldName alloc] initWithValue:@"choiceSecondaryImage"]; - } - return SDLImageFieldName_choiceSecondaryImage; -} - -+ (SDLImageFieldName *)vrHelpItem { - if (SDLImageFieldName_vrHelpItem == nil) { - SDLImageFieldName_vrHelpItem = [[SDLImageFieldName alloc] initWithValue:@"vrHelpItem"]; - } - return SDLImageFieldName_vrHelpItem; -} - -+ (SDLImageFieldName *)turnIcon { - if (SDLImageFieldName_turnIcon == nil) { - SDLImageFieldName_turnIcon = [[SDLImageFieldName alloc] initWithValue:@"turnIcon"]; - } - return SDLImageFieldName_turnIcon; -} - -+ (SDLImageFieldName *)menuIcon { - if (SDLImageFieldName_menuIcon == nil) { - SDLImageFieldName_menuIcon = [[SDLImageFieldName alloc] initWithValue:@"menuIcon"]; - } - return SDLImageFieldName_menuIcon; -} - -+ (SDLImageFieldName *)cmdIcon { - if (SDLImageFieldName_cmdIcon == nil) { - SDLImageFieldName_cmdIcon = [[SDLImageFieldName alloc] initWithValue:@"cmdIcon"]; - } - return SDLImageFieldName_cmdIcon; -} - -+ (SDLImageFieldName *)appIcon { - if (SDLImageFieldName_appIcon == nil) { - SDLImageFieldName_appIcon = [[SDLImageFieldName alloc] initWithValue:@"appIcon"]; - } - return SDLImageFieldName_appIcon; -} - -+ (SDLImageFieldName *)graphic { - if (SDLImageFieldName_graphic == nil) { - SDLImageFieldName_graphic = [[SDLImageFieldName alloc] initWithValue:@"graphic"]; - } - return SDLImageFieldName_graphic; -} - -+ (SDLImageFieldName *)showConstantTBTIcon { - if (SDLImageFieldName_showConstantTBTIcon == nil) { - SDLImageFieldName_showConstantTBTIcon = [[SDLImageFieldName alloc] initWithValue:@"showConstantTBTIcon"]; - } - return SDLImageFieldName_showConstantTBTIcon; -} - -+ (SDLImageFieldName *)showConstantTBTNextTurnIcon { - if (SDLImageFieldName_showConstantTBTNextTurnIcon == nil) { - SDLImageFieldName_showConstantTBTNextTurnIcon = [[SDLImageFieldName alloc] initWithValue:@"showConstantTBTNextTurnIcon"]; - } - return SDLImageFieldName_showConstantTBTNextTurnIcon; -} - -+ (SDLImageFieldName *)locationImage { - if (SDLImageFieldName_locationImage == nil) { - SDLImageFieldName_locationImage = [[SDLImageFieldName alloc] initWithValue:@"locationImage"]; - } - return SDLImageFieldName_locationImage; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.h deleted file mode 100644 index bae946ab2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.h +++ /dev/null @@ -1,16 +0,0 @@ -// SDLImageResolution.h -// - - -#import "SDLRPCMessage.h" - -@interface SDLImageResolution : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSNumber *resolutionWidth; -@property (strong) NSNumber *resolutionHeight; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.m deleted file mode 100644 index 7f10116de..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLImageResolution.m -// - - -#import "SDLImageResolution.h" - -#import "SDLNames.h" - -@implementation SDLImageResolution - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setResolutionWidth:(NSNumber *)resolutionWidth { - if (resolutionWidth != nil) { - [store setObject:resolutionWidth forKey:NAMES_resolutionWidth]; - } else { - [store removeObjectForKey:NAMES_resolutionWidth]; - } -} - -- (NSNumber *)resolutionWidth { - return [store objectForKey:NAMES_resolutionWidth]; -} - -- (void)setResolutionHeight:(NSNumber *)resolutionHeight { - if (resolutionHeight != nil) { - [store setObject:resolutionHeight forKey:NAMES_resolutionHeight]; - } else { - [store removeObjectForKey:NAMES_resolutionHeight]; - } -} - -- (NSNumber *)resolutionHeight { - return [store objectForKey:NAMES_resolutionHeight]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageType.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageType.h deleted file mode 100644 index 2b118a456..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageType.h +++ /dev/null @@ -1,47 +0,0 @@ -// SDLImageType.h -// - - -#import "SDLEnum.h" - -/** -* Contains information about the type of image. -* -* @since SDL 2.0 -*/ -@interface SDLImageType : SDLEnum { -} - -/** - * @abstract return SDLImageType (STATIC / DYNAMIC) - * - * @param value The value of the string to get an object for - * - * @return An SDLImageType - */ -+ (SDLImageType *)valueOf:(NSString *)value; - -/** - * @abstract store all possible SDLImageType values - * - * @return An array with all possible SDLImageType values inside - */ -+ (NSArray *)values; - -/** - * @abstract Just the static hex icon value to be used - * - * @return The Image Type with value *STATIC* - */ -+ (SDLImageType *)STATIC; - -/** - * @abstract Binary image file to be used (identifier to be sent by SDLPutFile) - * - * @see SDLPutFile - * - * @return The Image Type with value *DYNAMIC* - */ -+ (SDLImageType *)DYNAMIC; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageType.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageType.m deleted file mode 100644 index 878eb1773..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageType.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLImageType.m -// - - -#import "SDLImageType.h" - -SDLImageType *SDLImageType_STATIC = nil; -SDLImageType *SDLImageType_DYNAMIC = nil; - -NSArray *SDLImageType_values = nil; - -@implementation SDLImageType - -+ (SDLImageType *)valueOf:(NSString *)value { - for (SDLImageType *item in SDLImageType.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLImageType_values == nil) { - SDLImageType_values = @[ - SDLImageType.STATIC, - SDLImageType.DYNAMIC, - ]; - } - return SDLImageType_values; -} - -+ (SDLImageType *)STATIC { - if (SDLImageType_STATIC == nil) { - SDLImageType_STATIC = [[SDLImageType alloc] initWithValue:@"STATIC"]; - } - return SDLImageType_STATIC; -} - -+ (SDLImageType *)DYNAMIC { - if (SDLImageType_DYNAMIC == nil) { - SDLImageType_DYNAMIC = [[SDLImageType alloc] initWithValue:@"DYNAMIC"]; - } - return SDLImageType_DYNAMIC; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLInteractionMode.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLInteractionMode.h deleted file mode 100644 index 442d4f8d7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLInteractionMode.h +++ /dev/null @@ -1,56 +0,0 @@ -// SDLInteractionMode.h -// - - -#import "SDLEnum.h" - -/** - * For application-initiated interactions (SDLPerformInteraction), this specifies the mode by which the user is prompted and by which the user's selection is indicated - * - * @since SDL 1.0 - */ -@interface SDLInteractionMode : SDLEnum { -} - -/** - * @abstract SDLInteractionMode - * @param value The value of the string to get an object for - * @return SDLInteractionMode - */ -+ (SDLInteractionMode *)valueOf:(NSString *)value; - -/** - * @abstract store all possible SDLInteractionMode values - * @return an array with all possible SDLInteractionMode values inside - */ -+ (NSArray *)values; - -/** - * @abstract Interaction Mode : Manual Only - * @discussion This mode causes the interaction to occur only on the display, meaning the choices are presented and selected only via the display. Selections are viewed with the SEEKRIGHT, SEEKLEFT, TUNEUP, TUNEDOWN buttons. User's selection is indicated with the OK button - * - * @return Current Interaction Mode with value of *MANUAL_ONLY* - */ -+ (SDLInteractionMode *)MANUAL_ONLY; - -/** - * @abstract Interaction Mode : VR Only - * @discussion This mode causes the interaction to occur only through TTS and VR. The user is prompted via TTS to select a choice by saying one of the choice's synonyms - * - * @return Current Interaction Mode with value of *VR_ONLY* - */ -+ (SDLInteractionMode *)VR_ONLY; - -/** - * @abstract Interaction Mode : Manual & VR - * @discussion This mode is a combination of MANUAL_ONLY and VR_ONLY, meaning the user is prompted both visually and audibly. The user can make a selection either using the mode described in MANUAL_ONLY or using the mode described in VR_ONLY. - * - * If the user views selections as described in MANUAL_ONLY mode, the interaction becomes strictly, and irreversibly, a MANUAL_ONLY interaction (i.e. the VR session is cancelled, although the interaction itself is still in progress). If the user interacts with the VR session in any way (e.g. speaks a phrase, even if it is not a recognized choice), the interaction becomes strictly, and irreversibly, a VR_ONLY interaction (i.e. the MANUAL_ONLY mode forms of interaction will no longer be honored) - * - * The TriggerSource parameter of the *PerformInteraction* response will indicate which interaction mode the user finally chose to attempt the selection (even if the interaction did not end with a selection being made) - * - * @return Current Interaction Mode with value of *BOTH* - */ -+ (SDLInteractionMode *)BOTH; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLInteractionMode.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLInteractionMode.m deleted file mode 100644 index 07dc5f7b2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLInteractionMode.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLInteractionMode.m -// - - -#import "SDLInteractionMode.h" - -SDLInteractionMode *SDLInteractionMode_MANUAL_ONLY = nil; -SDLInteractionMode *SDLInteractionMode_VR_ONLY = nil; -SDLInteractionMode *SDLInteractionMode_BOTH = nil; - -NSArray *SDLInteractionMode_values = nil; - -@implementation SDLInteractionMode - -+ (SDLInteractionMode *)valueOf:(NSString *)value { - for (SDLInteractionMode *item in SDLInteractionMode.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLInteractionMode_values == nil) { - SDLInteractionMode_values = @[ - SDLInteractionMode.MANUAL_ONLY, - SDLInteractionMode.VR_ONLY, - SDLInteractionMode.BOTH, - ]; - } - return SDLInteractionMode_values; -} - -+ (SDLInteractionMode *)MANUAL_ONLY { - if (SDLInteractionMode_MANUAL_ONLY == nil) { - SDLInteractionMode_MANUAL_ONLY = [[SDLInteractionMode alloc] initWithValue:@"MANUAL_ONLY"]; - } - return SDLInteractionMode_MANUAL_ONLY; -} - -+ (SDLInteractionMode *)VR_ONLY { - if (SDLInteractionMode_VR_ONLY == nil) { - SDLInteractionMode_VR_ONLY = [[SDLInteractionMode alloc] initWithValue:@"VR_ONLY"]; - } - return SDLInteractionMode_VR_ONLY; -} - -+ (SDLInteractionMode *)BOTH { - if (SDLInteractionMode_BOTH == nil) { - SDLInteractionMode_BOTH = [[SDLInteractionMode alloc] initWithValue:@"BOTH"]; - } - return SDLInteractionMode_BOTH; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.h deleted file mode 100644 index 180ca85ef..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.h +++ /dev/null @@ -1,16 +0,0 @@ -// SDLJingle.h -// - - -#import - -@interface SDLJingle : NSObject { -} - -+ (NSString *)NEGATIVE_JINGLE; -+ (NSString *)POSITIVE_JINGLE; -+ (NSString *)LISTEN_JINGLE; -+ (NSString *)INITIAL_JINGLE; -+ (NSString *)HELP_JINGLE; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.m deleted file mode 100644 index 7484bfabf..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.m +++ /dev/null @@ -1,25 +0,0 @@ -// SDLJingle.m -// - - -#import "SDLJingle.h" - -@implementation SDLJingle - -+ (NSString *)NEGATIVE_JINGLE { - return @"NEGATIVE_JINGLE"; -} -+ (NSString *)POSITIVE_JINGLE { - return @"POSITIVE_JINGLE"; -} -+ (NSString *)LISTEN_JINGLE { - return @"LISTEN_JINGLE"; -} -+ (NSString *)INITIAL_JINGLE { - return @"INITIAL_JINGLE"; -} -+ (NSString *)HELP_JINGLE { - return @"HELP_JINGLE"; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonDecoder.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonDecoder.h deleted file mode 100644 index 4723989db..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonDecoder.h +++ /dev/null @@ -1,14 +0,0 @@ -// SDLJsonDecoder.h -// - -#import - -#import "SDLDecoder.h" - - -@interface SDLJsonDecoder : NSObject { -} - -+ (NSObject *)instance; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonDecoder.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonDecoder.m deleted file mode 100644 index 0ff561df8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonDecoder.m +++ /dev/null @@ -1,38 +0,0 @@ -// SDLJsonDecoder.m -// - -#import "SDLJsonDecoder.h" - -#import "SDLDebugTool.h" -#import "SDLNames.h" - - -@implementation SDLJsonDecoder - -static NSObject *jsonDecoderInstance; - -+ (NSObject *)instance { - if (jsonDecoderInstance == nil) { - jsonDecoderInstance = [[SDLJsonDecoder alloc] init]; - } - return jsonDecoderInstance; -} - -- (NSDictionary *)decode:(NSData *)data { - if (data.length == 0) { - [SDLDebugTool logInfo:@"Warning: Decoding JSON data, no JSON to decode" withType:SDLDebugType_Protocol]; - return nil; - } - - NSError *error = nil; - NSDictionary *jsonObject = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; - - if (error != nil) { - [SDLDebugTool logInfo:[NSString stringWithFormat:@"Error decoding JSON data: %@", error] withType:SDLDebugType_Protocol]; - return nil; - } - - return jsonObject; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonEncoder.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonEncoder.h deleted file mode 100644 index 680fe5da6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonEncoder.h +++ /dev/null @@ -1,14 +0,0 @@ -// SDLJsonEncoder.h -// - -#import - -#import "SDLEncoder.h" - - -@interface SDLJsonEncoder : NSObject { -} - -+ (NSObject *)instance; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonEncoder.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonEncoder.m deleted file mode 100644 index dbb2374d9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLJsonEncoder.m +++ /dev/null @@ -1,38 +0,0 @@ -// SDLJsonEncoder.m -// - -#import "SDLJsonEncoder.h" - -#import "SDLDebugTool.h" -#import "SDLNames.h" - - -@implementation SDLJsonEncoder - -static NSObject *jsonEncoderInstance; - -+ (NSObject *)instance { - if (jsonEncoderInstance == nil) { - jsonEncoderInstance = [[SDLJsonEncoder alloc] init]; - } - return jsonEncoderInstance; -} - -- (NSData *)encodeDictionary:(NSDictionary *)dict { - if (dict == nil) { - [SDLDebugTool logInfo:@"Warning: Encoding dictionary to JSON, no dictionary passed" withType:SDLDebugType_Protocol]; - return nil; - } - - NSError *error = nil; - NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dict options:kNilOptions error:&error]; - - if (error != nil) { - [SDLDebugTool logInfo:[NSString stringWithFormat:@"Error encoding JSON data: %@", error] withType:SDLDebugType_Protocol]; - return nil; - } - - return jsonData; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardEvent.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardEvent.h deleted file mode 100644 index f0d90530e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardEvent.h +++ /dev/null @@ -1,45 +0,0 @@ -// SDLKeyboardEvent.h -// - - -#import "SDLEnum.h" - -/** Enumeration listing possible keyboard events. - * - * @since SmartDeviceLink 3.0 - * - */ -@interface SDLKeyboardEvent : SDLEnum { -} - -+ (SDLKeyboardEvent *)valueOf:(NSString *)value; -+ (NSArray *)values; - -/** The use has pressed the keyboard key (applies to both SINGLE_KEYPRESS and RESEND_CURRENT_ENTRY modes). - * - */ -+ (SDLKeyboardEvent *)KEYPRESS; - -/** The User has finished entering text from the keyboard and submitted the entry. - * - */ - -+ (SDLKeyboardEvent *)ENTRY_SUBMITTED; - -/** The User has pressed the HMI-defined "Cancel" button. - * - */ -+ (SDLKeyboardEvent *)ENTRY_CANCELLED; - - -/** The User has not finished entering text and the keyboard is aborted with the event of higher priority. - * - */ -+ (SDLKeyboardEvent *)ENTRY_ABORTED; - -/** - * @since SDL 4.0 - */ -+ (SDLKeyboardEvent *)ENTRY_VOICE; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardEvent.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardEvent.m deleted file mode 100644 index 65a7d8e89..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardEvent.m +++ /dev/null @@ -1,74 +0,0 @@ -// SDLKeyboardEvent.m -// - - -#import "SDLKeyboardEvent.h" - -SDLKeyboardEvent *SDLKeyboardEvent_KEYPRESS = nil; -SDLKeyboardEvent *SDLKeyboardEvent_ENTRY_SUBMITTED = nil; -SDLKeyboardEvent *SDLKeyboardEvent_ENTRY_CANCELLED = nil; -SDLKeyboardEvent *SDLKeyboardEvent_ENTRY_ABORTED = nil; -SDLKeyboardEvent *SDLKeyboardEvent_ENTRY_VOICE = nil; - -NSArray *SDLKeyboardEvent_values = nil; - -@implementation SDLKeyboardEvent - -+ (SDLKeyboardEvent *)valueOf:(NSString *)value { - for (SDLKeyboardEvent *item in SDLKeyboardEvent.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLKeyboardEvent_values == nil) { - SDLKeyboardEvent_values = @[ - SDLKeyboardEvent.KEYPRESS, - SDLKeyboardEvent.ENTRY_SUBMITTED, - SDLKeyboardEvent.ENTRY_CANCELLED, - SDLKeyboardEvent.ENTRY_ABORTED, - SDLKeyboardEvent.ENTRY_VOICE, - ]; - } - return SDLKeyboardEvent_values; -} - -+ (SDLKeyboardEvent *)KEYPRESS { - if (SDLKeyboardEvent_KEYPRESS == nil) { - SDLKeyboardEvent_KEYPRESS = [[SDLKeyboardEvent alloc] initWithValue:@"KEYPRESS"]; - } - return SDLKeyboardEvent_KEYPRESS; -} - -+ (SDLKeyboardEvent *)ENTRY_SUBMITTED { - if (SDLKeyboardEvent_ENTRY_SUBMITTED == nil) { - SDLKeyboardEvent_ENTRY_SUBMITTED = [[SDLKeyboardEvent alloc] initWithValue:@"ENTRY_SUBMITTED"]; - } - return SDLKeyboardEvent_ENTRY_SUBMITTED; -} - -+ (SDLKeyboardEvent *)ENTRY_CANCELLED { - if (SDLKeyboardEvent_ENTRY_CANCELLED == nil) { - SDLKeyboardEvent_ENTRY_CANCELLED = [[SDLKeyboardEvent alloc] initWithValue:@"ENTRY_CANCELLED"]; - } - return SDLKeyboardEvent_ENTRY_CANCELLED; -} - -+ (SDLKeyboardEvent *)ENTRY_ABORTED { - if (SDLKeyboardEvent_ENTRY_ABORTED == nil) { - SDLKeyboardEvent_ENTRY_ABORTED = [[SDLKeyboardEvent alloc] initWithValue:@"ENTRY_ABORTED"]; - } - return SDLKeyboardEvent_ENTRY_ABORTED; -} - -+ (SDLKeyboardEvent *)ENTRY_VOICE { - if (SDLKeyboardEvent_ENTRY_VOICE == nil) { - SDLKeyboardEvent_ENTRY_VOICE = [[SDLKeyboardEvent alloc] initWithValue:@"ENTRY_VOICE"]; - } - return SDLKeyboardEvent_ENTRY_VOICE; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardLayout.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardLayout.h deleted file mode 100644 index 042caf9d0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardLayout.h +++ /dev/null @@ -1,33 +0,0 @@ -// SDLKeyboardLayout.h -// - - -#import "SDLEnum.h" - -/** Enumeration listing possible keyboard layouts - * - *Since SmartDeviceLink 3.0 - * - */ -@interface SDLKeyboardLayout : SDLEnum { -} - -+ (SDLKeyboardLayout *)valueOf:(NSString *)value; -+ (NSArray *)values; -/** QWERTY layout (the name comes from the first six keys
    appearing on the top left letter row of the keyboard and read from left to right) - * - */ -+ (SDLKeyboardLayout *)QWERTY; - -/** QWERTZ layout (the name comes from the first six keys
    appearing on the top left letter row of the keyboard and read from left to right) - * - */ -+ (SDLKeyboardLayout *)QWERTZ; - -/** AZERTY layout (the name comes from the first six keys
    appearing on the top left letter row of the keyboard and read from left to right) - * - */ - -+ (SDLKeyboardLayout *)AZERTY; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardLayout.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardLayout.m deleted file mode 100644 index 700bd2622..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardLayout.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLKeyboardLayout.m -// - - -#import "SDLKeyboardLayout.h" - -SDLKeyboardLayout *SDLKeyboardLayout_QWERTY = nil; -SDLKeyboardLayout *SDLKeyboardLayout_QWERTZ = nil; -SDLKeyboardLayout *SDLKeyboardLayout_AZERTY = nil; - -NSArray *SDLKeyboardLayout_values = nil; - -@implementation SDLKeyboardLayout - -+ (SDLKeyboardLayout *)valueOf:(NSString *)value { - for (SDLKeyboardLayout *item in SDLKeyboardLayout.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLKeyboardLayout_values == nil) { - SDLKeyboardLayout_values = @[ - SDLKeyboardLayout.QWERTY, - SDLKeyboardLayout.QWERTZ, - SDLKeyboardLayout.AZERTY, - ]; - } - return SDLKeyboardLayout_values; -} - -+ (SDLKeyboardLayout *)QWERTY { - if (SDLKeyboardLayout_QWERTY == nil) { - SDLKeyboardLayout_QWERTY = [[SDLKeyboardLayout alloc] initWithValue:@"QWERTY"]; - } - return SDLKeyboardLayout_QWERTY; -} - -+ (SDLKeyboardLayout *)QWERTZ { - if (SDLKeyboardLayout_QWERTZ == nil) { - SDLKeyboardLayout_QWERTZ = [[SDLKeyboardLayout alloc] initWithValue:@"QWERTZ"]; - } - return SDLKeyboardLayout_QWERTZ; -} - -+ (SDLKeyboardLayout *)AZERTY { - if (SDLKeyboardLayout_AZERTY == nil) { - SDLKeyboardLayout_AZERTY = [[SDLKeyboardLayout alloc] initWithValue:@"AZERTY"]; - } - return SDLKeyboardLayout_AZERTY; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h deleted file mode 100644 index 8215a8938..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h +++ /dev/null @@ -1,23 +0,0 @@ -// SDLKeyboardProperties.h -// - -#import "SDLRPCMessage.h" - -@class SDLLanguage; -@class SDLKeyboardLayout; -@class SDLKeypressMode; - - -@interface SDLKeyboardProperties : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLLanguage *language; -@property (strong) SDLKeyboardLayout *keyboardLayout; -@property (strong) SDLKeypressMode *keypressMode; -@property (strong) NSMutableArray *limitedCharacterList; -@property (strong) NSString *autoCompleteText; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.m deleted file mode 100644 index 896f3a99a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.m +++ /dev/null @@ -1,101 +0,0 @@ -// SDLKeyboardProperties.m -// - -#import "SDLKeyboardProperties.h" - -#import "SDLKeyboardLayout.h" -#import "SDLKeypressMode.h" -#import "SDLLanguage.h" -#import "SDLNames.h" - - -@implementation SDLKeyboardProperties - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setLanguage:(SDLLanguage *)language { - if (language != nil) { - [store setObject:language forKey:NAMES_language]; - } else { - [store removeObjectForKey:NAMES_language]; - } -} - -- (SDLLanguage *)language { - NSObject *obj = [store objectForKey:NAMES_language]; - if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { - return (SDLLanguage *)obj; - } else { - return [SDLLanguage valueOf:(NSString *)obj]; - } -} - -- (void)setKeyboardLayout:(SDLKeyboardLayout *)keyboardLayout { - if (keyboardLayout != nil) { - [store setObject:keyboardLayout forKey:NAMES_keyboardLayout]; - } else { - [store removeObjectForKey:NAMES_keyboardLayout]; - } -} - -- (SDLKeyboardLayout *)keyboardLayout { - NSObject *obj = [store objectForKey:NAMES_keyboardLayout]; - if (obj == nil || [obj isKindOfClass:SDLKeyboardLayout.class]) { - return (SDLKeyboardLayout *)obj; - } else { - return [SDLKeyboardLayout valueOf:(NSString *)obj]; - } -} - -- (void)setKeypressMode:(SDLKeypressMode *)keypressMode { - if (keypressMode != nil) { - [store setObject:keypressMode forKey:NAMES_keypressMode]; - } else { - [store removeObjectForKey:NAMES_keypressMode]; - } -} - -- (SDLKeypressMode *)keypressMode { - NSObject *obj = [store objectForKey:NAMES_keypressMode]; - if (obj == nil || [obj isKindOfClass:SDLKeypressMode.class]) { - return (SDLKeypressMode *)obj; - } else { - return [SDLKeypressMode valueOf:(NSString *)obj]; - } -} - -- (void)setLimitedCharacterList:(NSMutableArray *)limitedCharacterList { - if (limitedCharacterList != nil) { - [store setObject:limitedCharacterList forKey:NAMES_limitedCharacterList]; - } else { - [store removeObjectForKey:NAMES_limitedCharacterList]; - } -} - -- (NSMutableArray *)limitedCharacterList { - return [store objectForKey:NAMES_limitedCharacterList]; -} - -- (void)setAutoCompleteText:(NSString *)autoCompleteText { - if (autoCompleteText != nil) { - [store setObject:autoCompleteText forKey:NAMES_autoCompleteText]; - } else { - [store removeObjectForKey:NAMES_autoCompleteText]; - } -} - -- (NSString *)autoCompleteText { - return [store objectForKey:NAMES_autoCompleteText]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeypressMode.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeypressMode.h deleted file mode 100644 index 1b4ad0fe1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeypressMode.h +++ /dev/null @@ -1,35 +0,0 @@ -// SDLKeypressMode.h -// - - -#import "SDLEnum.h" - -/** Enumeration listing possible keyboard events. - *

    - * Note: Depending on keypressMode value (from keyboardProperties structure of UI.SetGlobalProperties),
    HMI must send the onKeyboardInput notification with the following data:
    - SINGLE_KEYPRESS,QUEUE_KEYPRESSES,RESEND_CURRENT_ENTRY. - * @since SmartDeviceLink 3.0 - * - */ -@interface SDLKeypressMode : SDLEnum { -} - -+ (SDLKeypressMode *)valueOf:(NSString *)value; -+ (NSArray *)values; - -/** SINGLE_KEYPRESS:
    Each and every User`s keypress must be reported (new notification for every newly entered single symbol). - * - */ -+ (SDLKeypressMode *)SINGLE_KEYPRESS; - -/** QUEUE_KEYPRESSES:
    The whole entry is reported only after the User submits it (by ‘Search’ button click displayed on touchscreen keyboard) - * - */ -+ (SDLKeypressMode *)QUEUE_KEYPRESSES; - -/** RESEND_CURRENT_ENTRY:
    The whole entry must be reported each and every time the User makes a new keypress
    (new notification with all previously entered symbols and a newly entered one appended). - * - */ -+ (SDLKeypressMode *)RESEND_CURRENT_ENTRY; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeypressMode.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeypressMode.m deleted file mode 100644 index 9fa0034e7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeypressMode.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLKeypressMode.m -// - - -#import "SDLKeypressMode.h" - -SDLKeypressMode *SDLKeypressMode_SINGLE_KEYPRESS = nil; -SDLKeypressMode *SDLKeypressMode_QUEUE_KEYPRESSES = nil; -SDLKeypressMode *SDLKeypressMode_RESEND_CURRENT_ENTRY = nil; - -NSArray *SDLKeypressMode_values = nil; - -@implementation SDLKeypressMode - -+ (SDLKeypressMode *)valueOf:(NSString *)value { - for (SDLKeypressMode *item in SDLKeypressMode.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLKeypressMode_values == nil) { - SDLKeypressMode_values = @[ - SDLKeypressMode.SINGLE_KEYPRESS, - SDLKeypressMode.QUEUE_KEYPRESSES, - SDLKeypressMode.RESEND_CURRENT_ENTRY, - ]; - } - return SDLKeypressMode_values; -} - -+ (SDLKeypressMode *)SINGLE_KEYPRESS { - if (SDLKeypressMode_SINGLE_KEYPRESS == nil) { - SDLKeypressMode_SINGLE_KEYPRESS = [[SDLKeypressMode alloc] initWithValue:@"SINGLE_KEYPRESS"]; - } - return SDLKeypressMode_SINGLE_KEYPRESS; -} - -+ (SDLKeypressMode *)QUEUE_KEYPRESSES { - if (SDLKeypressMode_QUEUE_KEYPRESSES == nil) { - SDLKeypressMode_QUEUE_KEYPRESSES = [[SDLKeypressMode alloc] initWithValue:@"QUEUE_KEYPRESSES"]; - } - return SDLKeypressMode_QUEUE_KEYPRESSES; -} - -+ (SDLKeypressMode *)RESEND_CURRENT_ENTRY { - if (SDLKeypressMode_RESEND_CURRENT_ENTRY == nil) { - SDLKeypressMode_RESEND_CURRENT_ENTRY = [[SDLKeypressMode alloc] initWithValue:@"RESEND_CURRENT_ENTRY"]; - } - return SDLKeypressMode_RESEND_CURRENT_ENTRY; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLanguage.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLLanguage.h deleted file mode 100644 index 38d63746b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLanguage.h +++ /dev/null @@ -1,150 +0,0 @@ -// SDLLanguage.h -// - - -#import "SDLEnum.h" - -/** - * Specifies the language to be used for TTS, VR, displayed messages/menus - * - * @since SDL 1.0 - */ -@interface SDLLanguage : SDLEnum { -} - -/** - * @abstract Get a Langusge according to a String - * - * @param value The value of the string to get an object for - * - * @return The Language - */ -+ (SDLLanguage *)valueOf:(NSString *)value; - -/** - * @abstract store all possible Language values - * - * @return an array with all possible Language values inside - */ -+ (NSArray *)values; -/*! - @abstract English_US - */ -+ (SDLLanguage *)EN_US; - -/** - @abstract Spanish - Mexico - */ -+ (SDLLanguage *)ES_MX; - -/** - * @abstract French - Canada - */ -+ (SDLLanguage *)FR_CA; - -/** - * @abstract German - Germany - */ -+ (SDLLanguage *)DE_DE; - -/** - * @abstract Spanish - Spain - */ -+ (SDLLanguage *)ES_ES; - -/** - @abstract English - Great Britain - */ -+ (SDLLanguage *)EN_GB; - -/** - * @abstract Russian - Russia - */ -+ (SDLLanguage *)RU_RU; - -/** - * @abstract Turkish - Turkey - */ -+ (SDLLanguage *)TR_TR; - -/** - * @abstract Polish - Poland - */ -+ (SDLLanguage *)PL_PL; - -/** - * @abstract French - France - */ -+ (SDLLanguage *)FR_FR; - -/** - * @abstract Italian - Italy - */ -+ (SDLLanguage *)IT_IT; - -/** - * @abstract Swedish - Sweden - */ -+ (SDLLanguage *)SV_SE; - -/** - * @abstract Portuguese - Portugal - */ -+ (SDLLanguage *)PT_PT; - -/** - * @abstract Dutch (Standard) - Netherlands - */ -+ (SDLLanguage *)NL_NL; - -/** - * @abstract English - Australia - */ -+ (SDLLanguage *)EN_AU; - -/** - * @abstract Mandarin - China - */ -+ (SDLLanguage *)ZH_CN; - -/** - * @abstract Mandarin - Taiwan - */ -+ (SDLLanguage *)ZH_TW; - -/** - * @abstract Japanese - Japan - */ -+ (SDLLanguage *)JA_JP; - -/** - * @abstract Arabic - Saudi Arabia - */ -+ (SDLLanguage *)AR_SA; - -/** - * @abstract Korean - South Korea - */ -+ (SDLLanguage *)KO_KR; - -/** - * @abstract Portuguese - Brazil - */ -+ (SDLLanguage *)PT_BR; - -/** - * @abstract Czech - Czech Republic - */ -+ (SDLLanguage *)CS_CZ; - -/** - * @abstract Danish - Denmark - */ -+ (SDLLanguage *)DA_DK; - -/** - * @abstract Norwegian - Norway - */ -+ (SDLLanguage *)NO_NO; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLanguage.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLLanguage.m deleted file mode 100644 index df43adf4c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLanguage.m +++ /dev/null @@ -1,245 +0,0 @@ -// SDLLanguage.m -// - - -#import "SDLLanguage.h" - -SDLLanguage *SDLLanguage_EN_US = nil; -SDLLanguage *SDLLanguage_ES_MX = nil; -SDLLanguage *SDLLanguage_FR_CA = nil; -SDLLanguage *SDLLanguage_DE_DE = nil; -SDLLanguage *SDLLanguage_ES_ES = nil; -SDLLanguage *SDLLanguage_EN_GB = nil; -SDLLanguage *SDLLanguage_RU_RU = nil; -SDLLanguage *SDLLanguage_TR_TR = nil; -SDLLanguage *SDLLanguage_PL_PL = nil; -SDLLanguage *SDLLanguage_FR_FR = nil; -SDLLanguage *SDLLanguage_IT_IT = nil; -SDLLanguage *SDLLanguage_SV_SE = nil; -SDLLanguage *SDLLanguage_PT_PT = nil; -SDLLanguage *SDLLanguage_NL_NL = nil; -SDLLanguage *SDLLanguage_EN_AU = nil; -SDLLanguage *SDLLanguage_ZH_CN = nil; -SDLLanguage *SDLLanguage_ZH_TW = nil; -SDLLanguage *SDLLanguage_JA_JP = nil; -SDLLanguage *SDLLanguage_AR_SA = nil; -SDLLanguage *SDLLanguage_KO_KR = nil; -SDLLanguage *SDLLanguage_PT_BR = nil; -SDLLanguage *SDLLanguage_CS_CZ = nil; -SDLLanguage *SDLLanguage_DA_DK = nil; -SDLLanguage *SDLLanguage_NO_NO = nil; - -NSArray *SDLLanguage_values = nil; - -@implementation SDLLanguage - -+ (SDLLanguage *)valueOf:(NSString *)value { - for (SDLLanguage *item in SDLLanguage.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLLanguage_values == nil) { - SDLLanguage_values = @[ - SDLLanguage.EN_US, - SDLLanguage.ES_MX, - SDLLanguage.FR_CA, - SDLLanguage.DE_DE, - SDLLanguage.ES_ES, - SDLLanguage.EN_GB, - SDLLanguage.RU_RU, - SDLLanguage.TR_TR, - SDLLanguage.PL_PL, - SDLLanguage.FR_FR, - SDLLanguage.IT_IT, - SDLLanguage.SV_SE, - SDLLanguage.PT_PT, - SDLLanguage.NL_NL, - SDLLanguage.EN_AU, - SDLLanguage.ZH_CN, - SDLLanguage.ZH_TW, - SDLLanguage.JA_JP, - SDLLanguage.AR_SA, - SDLLanguage.KO_KR, - SDLLanguage.PT_BR, - SDLLanguage.CS_CZ, - SDLLanguage.DA_DK, - SDLLanguage.NO_NO, - ]; - } - return SDLLanguage_values; -} - -+ (SDLLanguage *)EN_US { - if (SDLLanguage_EN_US == nil) { - SDLLanguage_EN_US = [[SDLLanguage alloc] initWithValue:@"EN-US"]; - } - return SDLLanguage_EN_US; -} - -+ (SDLLanguage *)ES_MX { - if (SDLLanguage_ES_MX == nil) { - SDLLanguage_ES_MX = [[SDLLanguage alloc] initWithValue:@"ES-MX"]; - } - return SDLLanguage_ES_MX; -} - -+ (SDLLanguage *)FR_CA { - if (SDLLanguage_FR_CA == nil) { - SDLLanguage_FR_CA = [[SDLLanguage alloc] initWithValue:@"FR-CA"]; - } - return SDLLanguage_FR_CA; -} - -+ (SDLLanguage *)DE_DE { - if (SDLLanguage_DE_DE == nil) { - SDLLanguage_DE_DE = [[SDLLanguage alloc] initWithValue:@"DE-DE"]; - } - return SDLLanguage_DE_DE; -} - -+ (SDLLanguage *)ES_ES { - if (SDLLanguage_ES_ES == nil) { - SDLLanguage_ES_ES = [[SDLLanguage alloc] initWithValue:@"ES-ES"]; - } - return SDLLanguage_ES_ES; -} - -+ (SDLLanguage *)EN_GB { - if (SDLLanguage_EN_GB == nil) { - SDLLanguage_EN_GB = [[SDLLanguage alloc] initWithValue:@"EN-GB"]; - } - return SDLLanguage_EN_GB; -} - -+ (SDLLanguage *)RU_RU { - if (SDLLanguage_RU_RU == nil) { - SDLLanguage_RU_RU = [[SDLLanguage alloc] initWithValue:@"RU-RU"]; - } - return SDLLanguage_RU_RU; -} - -+ (SDLLanguage *)TR_TR { - if (SDLLanguage_TR_TR == nil) { - SDLLanguage_TR_TR = [[SDLLanguage alloc] initWithValue:@"TR-TR"]; - } - return SDLLanguage_TR_TR; -} - -+ (SDLLanguage *)PL_PL { - if (SDLLanguage_PL_PL == nil) { - SDLLanguage_PL_PL = [[SDLLanguage alloc] initWithValue:@"PL-PL"]; - } - return SDLLanguage_PL_PL; -} - -+ (SDLLanguage *)FR_FR { - if (SDLLanguage_FR_FR == nil) { - SDLLanguage_FR_FR = [[SDLLanguage alloc] initWithValue:@"FR-FR"]; - } - return SDLLanguage_FR_FR; -} - -+ (SDLLanguage *)IT_IT { - if (SDLLanguage_IT_IT == nil) { - SDLLanguage_IT_IT = [[SDLLanguage alloc] initWithValue:@"IT-IT"]; - } - return SDLLanguage_IT_IT; -} - -+ (SDLLanguage *)SV_SE { - if (SDLLanguage_SV_SE == nil) { - SDLLanguage_SV_SE = [[SDLLanguage alloc] initWithValue:@"SV-SE"]; - } - return SDLLanguage_SV_SE; -} - -+ (SDLLanguage *)PT_PT { - if (SDLLanguage_PT_PT == nil) { - SDLLanguage_PT_PT = [[SDLLanguage alloc] initWithValue:@"PT-PT"]; - } - return SDLLanguage_PT_PT; -} - -+ (SDLLanguage *)NL_NL { - if (SDLLanguage_NL_NL == nil) { - SDLLanguage_NL_NL = [[SDLLanguage alloc] initWithValue:@"NL-NL"]; - } - return SDLLanguage_NL_NL; -} - -+ (SDLLanguage *)EN_AU { - if (SDLLanguage_EN_AU == nil) { - SDLLanguage_EN_AU = [[SDLLanguage alloc] initWithValue:@"EN-AU"]; - } - return SDLLanguage_EN_AU; -} - -+ (SDLLanguage *)ZH_CN { - if (SDLLanguage_ZH_CN == nil) { - SDLLanguage_ZH_CN = [[SDLLanguage alloc] initWithValue:@"ZH-CN"]; - } - return SDLLanguage_ZH_CN; -} - -+ (SDLLanguage *)ZH_TW { - if (SDLLanguage_ZH_TW == nil) { - SDLLanguage_ZH_TW = [[SDLLanguage alloc] initWithValue:@"ZH-TW"]; - } - return SDLLanguage_ZH_TW; -} - -+ (SDLLanguage *)JA_JP { - if (SDLLanguage_JA_JP == nil) { - SDLLanguage_JA_JP = [[SDLLanguage alloc] initWithValue:@"JA-JP"]; - } - return SDLLanguage_JA_JP; -} - -+ (SDLLanguage *)AR_SA { - if (SDLLanguage_AR_SA == nil) { - SDLLanguage_AR_SA = [[SDLLanguage alloc] initWithValue:@"AR-SA"]; - } - return SDLLanguage_AR_SA; -} - -+ (SDLLanguage *)KO_KR { - if (SDLLanguage_KO_KR == nil) { - SDLLanguage_KO_KR = [[SDLLanguage alloc] initWithValue:@"KO-KR"]; - } - return SDLLanguage_KO_KR; -} - -+ (SDLLanguage *)PT_BR { - if (SDLLanguage_PT_BR == nil) { - SDLLanguage_PT_BR = [[SDLLanguage alloc] initWithValue:@"PT-BR"]; - } - return SDLLanguage_PT_BR; -} - -+ (SDLLanguage *)CS_CZ { - if (SDLLanguage_CS_CZ == nil) { - SDLLanguage_CS_CZ = [[SDLLanguage alloc] initWithValue:@"CS-CZ"]; - } - return SDLLanguage_CS_CZ; -} - -+ (SDLLanguage *)DA_DK { - if (SDLLanguage_DA_DK == nil) { - SDLLanguage_DA_DK = [[SDLLanguage alloc] initWithValue:@"DA-DK"]; - } - return SDLLanguage_DA_DK; -} - -+ (SDLLanguage *)NO_NO { - if (SDLLanguage_NO_NO == nil) { - SDLLanguage_NO_NO = [[SDLLanguage alloc] initWithValue:@"NO-NO"]; - } - return SDLLanguage_NO_NO; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLayoutMode.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLLayoutMode.h deleted file mode 100644 index 9e0377f40..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLayoutMode.h +++ /dev/null @@ -1,43 +0,0 @@ -// SDLLayoutMode.h -// - - -#import "SDLEnum.h" - -/** - * For touchscreen interactions, the mode of how the choices are presented. - * - * @since SDL 3.0 - */ -@interface SDLLayoutMode : SDLEnum { -} - -+ (SDLLayoutMode *)valueOf:(NSString *)value; -+ (NSArray *)values; - -/** - * This mode causes the interaction to display the previous set of choices as icons. - */ -+ (SDLLayoutMode *)ICON_ONLY; - -/** - * This mode causes the interaction to display the previous set of choices as icons along with a search field in the HMI. - */ -+ (SDLLayoutMode *)ICON_WITH_SEARCH; - -/** - * This mode causes the interaction to display the previous set of choices as a list. - */ -+ (SDLLayoutMode *)LIST_ONLY; - -/** - * This mode causes the interaction to display the previous set of choices as a list along with a search field in the HMI. - */ -+ (SDLLayoutMode *)LIST_WITH_SEARCH; - -/** - * This mode causes the interaction to immediately display a keyboard entry through the HMI. - */ -+ (SDLLayoutMode *)KEYBOARD; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLayoutMode.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLLayoutMode.m deleted file mode 100644 index 343f06a0f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLayoutMode.m +++ /dev/null @@ -1,74 +0,0 @@ -// SDLLayoutMode.m -// - - -#import "SDLLayoutMode.h" - -SDLLayoutMode *SDLLayoutMode_ICON_ONLY = nil; -SDLLayoutMode *SDLLayoutMode_ICON_WITH_SEARCH = nil; -SDLLayoutMode *SDLLayoutMode_LIST_ONLY = nil; -SDLLayoutMode *SDLLayoutMode_LIST_WITH_SEARCH = nil; -SDLLayoutMode *SDLLayoutMode_KEYBOARD = nil; - -NSArray *SDLLayoutMode_values = nil; - -@implementation SDLLayoutMode - -+ (SDLLayoutMode *)valueOf:(NSString *)value { - for (SDLLayoutMode *item in SDLLayoutMode.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLLayoutMode_values == nil) { - SDLLayoutMode_values = @[ - SDLLayoutMode.ICON_ONLY, - SDLLayoutMode.ICON_WITH_SEARCH, - SDLLayoutMode.LIST_ONLY, - SDLLayoutMode.LIST_WITH_SEARCH, - SDLLayoutMode.KEYBOARD, - ]; - } - return SDLLayoutMode_values; -} - -+ (SDLLayoutMode *)ICON_ONLY { - if (SDLLayoutMode_ICON_ONLY == nil) { - SDLLayoutMode_ICON_ONLY = [[SDLLayoutMode alloc] initWithValue:@"ICON_ONLY"]; - } - return SDLLayoutMode_ICON_ONLY; -} - -+ (SDLLayoutMode *)ICON_WITH_SEARCH { - if (SDLLayoutMode_ICON_WITH_SEARCH == nil) { - SDLLayoutMode_ICON_WITH_SEARCH = [[SDLLayoutMode alloc] initWithValue:@"ICON_WITH_SEARCH"]; - } - return SDLLayoutMode_ICON_WITH_SEARCH; -} - -+ (SDLLayoutMode *)LIST_ONLY { - if (SDLLayoutMode_LIST_ONLY == nil) { - SDLLayoutMode_LIST_ONLY = [[SDLLayoutMode alloc] initWithValue:@"LIST_ONLY"]; - } - return SDLLayoutMode_LIST_ONLY; -} - -+ (SDLLayoutMode *)LIST_WITH_SEARCH { - if (SDLLayoutMode_LIST_WITH_SEARCH == nil) { - SDLLayoutMode_LIST_WITH_SEARCH = [[SDLLayoutMode alloc] initWithValue:@"LIST_WITH_SEARCH"]; - } - return SDLLayoutMode_LIST_WITH_SEARCH; -} - -+ (SDLLayoutMode *)KEYBOARD { - if (SDLLayoutMode_KEYBOARD == nil) { - SDLLayoutMode_KEYBOARD = [[SDLLayoutMode alloc] initWithValue:@"KEYBOARD"]; - } - return SDLLayoutMode_KEYBOARD; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFiles.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFiles.h deleted file mode 100644 index 8a58d8639..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFiles.h +++ /dev/null @@ -1,27 +0,0 @@ -// SDLListFiles.h -// - - -#import "SDLRPCRequest.h" - -/** - * Requests the current list of resident filenames for the registered app. Not - * supported on First generation SDL vehicles - *

    - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLListFiles : SDLRPCRequest { -} -/** - * Constructs a new SDLListFiles object - */ -- (instancetype)init; -/** - * Constructs a new SDLListFiles object indicated by the dictionary parameter - *

    - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFiles.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFiles.m deleted file mode 100644 index a1110df1b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFiles.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLListFiles.m -// - - -#import "SDLListFiles.h" - -#import "SDLNames.h" - -@implementation SDLListFiles - -- (instancetype)init { - if (self = [super initWithName:NAMES_ListFiles]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFilesResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFilesResponse.h deleted file mode 100644 index fd309770c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFilesResponse.h +++ /dev/null @@ -1,21 +0,0 @@ -// SDLListFilesResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * SDLListFilesResponse is sent, when SDLListFiles has been called - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLListFilesResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSMutableArray *filenames; -@property (strong) NSNumber *spaceAvailable; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFilesResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFilesResponse.m deleted file mode 100644 index 2d58371d8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFilesResponse.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLListFilesResponse.m -// - - -#import "SDLListFilesResponse.h" - -#import "SDLNames.h" - -@implementation SDLListFilesResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_ListFiles]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setFilenames:(NSMutableArray *)filenames { - if (filenames != nil) { - [parameters setObject:filenames forKey:NAMES_filenames]; - } else { - [parameters removeObjectForKey:NAMES_filenames]; - } -} - -- (NSMutableArray *)filenames { - return [parameters objectForKey:NAMES_filenames]; -} - -- (void)setSpaceAvailable:(NSNumber *)spaceAvailable { - if (spaceAvailable != nil) { - [parameters setObject:spaceAvailable forKey:NAMES_spaceAvailable]; - } else { - [parameters removeObjectForKey:NAMES_spaceAvailable]; - } -} - -- (NSNumber *)spaceAvailable { - return [parameters objectForKey:NAMES_spaceAvailable]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenManager.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenManager.h deleted file mode 100644 index ee8750e83..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenManager.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// SDLLockScreenManager.h -// SmartDeviceLink -// - -#import - -@class SDLHMILevel; -@class SDLLockScreenStatus; -@class SDLOnLockScreenStatus; - - -@interface SDLLockScreenManager : NSObject - -@property (assign, nonatomic) BOOL userSelected; -@property (assign, nonatomic) BOOL driverDistracted; -@property (strong, nonatomic) SDLHMILevel *hmiLevel; -@property (strong, nonatomic, readonly) SDLLockScreenStatus *lockScreenStatus; -@property (strong, nonatomic, readonly) SDLOnLockScreenStatus *lockScreenStatusNotification; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenManager.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenManager.m deleted file mode 100644 index 71bb82369..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenManager.m +++ /dev/null @@ -1,95 +0,0 @@ -// -// SDLLockScreenManager.m -// SmartDeviceLink -// - -#import "SDLLockScreenManager.h" - -#import "SDLHMILevel.h" -#import "SDLLockScreenStatus.h" -#import "SDLOnLockScreenStatus.h" - - -@interface SDLLockScreenManager () - -@property (assign, nonatomic) BOOL haveDriverDistractionStatus; - -@end - - -@implementation SDLLockScreenManager - -#pragma mark - Lifecycle - -- (instancetype)init { - self = [super init]; - if (self) { - _userSelected = NO; - _driverDistracted = NO; - _haveDriverDistractionStatus = NO; - } - return self; -} - - -#pragma mark - Getters / Setters -#pragma mark Custom setters - -- (void)setDriverDistracted:(BOOL)driverDistracted { - _driverDistracted = driverDistracted; - _haveDriverDistractionStatus = YES; -} - -- (void)setHmiLevel:(SDLHMILevel *)hmiLevel { - if (_hmiLevel != hmiLevel) { - _hmiLevel = hmiLevel; - } - - if ([hmiLevel isEqualToEnum:[SDLHMILevel FULL]] || [hmiLevel isEqualToEnum:[SDLHMILevel LIMITED]]) { - self.userSelected = YES; - } else if ([hmiLevel isEqualToEnum:[SDLHMILevel NONE]]) { - self.userSelected = NO; - } -} - - -#pragma mark Custom Getters - -- (SDLOnLockScreenStatus *)lockScreenStatusNotification { - SDLOnLockScreenStatus *notification = [[SDLOnLockScreenStatus alloc] init]; - notification.driverDistractionStatus = @(self.driverDistracted); - notification.hmiLevel = self.hmiLevel; - notification.userSelected = @(self.userSelected); - notification.lockScreenStatus = self.lockScreenStatus; - - return notification; -} - -- (SDLLockScreenStatus *)lockScreenStatus { - if (self.hmiLevel == nil || [self.hmiLevel isEqualToEnum:[SDLHMILevel NONE]]) { - // App is not active on the car - return [SDLLockScreenStatus OFF]; - } else if ([self.hmiLevel isEqualToEnum:[SDLHMILevel BACKGROUND]]) { - // App is in the background on the car - // The lockscreen depends entirely on if the user selected the app - if (self.userSelected) { - return [SDLLockScreenStatus REQUIRED]; - } else { - return [SDLLockScreenStatus OFF]; - } - } else if ([self.hmiLevel isEqualToEnum:[SDLHMILevel FULL]] || [self.hmiLevel isEqualToEnum:[SDLHMILevel LIMITED]]) { - // App is in the foreground on the car in some manner - if (self.haveDriverDistractionStatus && !self.driverDistracted) { - // We have the distraction status, and the driver is not distracted - return [SDLLockScreenStatus OPTIONAL]; - } else { - // We don't have the distraction status, and/or the driver is distracted - return [SDLLockScreenStatus REQUIRED]; - } - } else { - // This shouldn't be possible. - return [SDLLockScreenStatus OFF]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenStatus.h deleted file mode 100644 index 044aa7e3e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenStatus.h +++ /dev/null @@ -1,24 +0,0 @@ -// -// SDLLockScreenStatus.h -// SmartDeviceLink -// - - -#import "SDLEnum.h" - -@interface SDLLockScreenStatus : SDLEnum -+ (SDLLockScreenStatus *)valueOf:(NSString *)value; -+ (NSMutableArray *)values; -/** - * LockScreen is Not Required - */ -+ (SDLLockScreenStatus *)OFF; -/** - * LockScreen is Optional - */ -+ (SDLLockScreenStatus *)OPTIONAL; -/** - * LockScreen is Not Required - */ -+ (SDLLockScreenStatus *)REQUIRED; -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenStatus.m deleted file mode 100644 index 8ef8a7d43..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenStatus.m +++ /dev/null @@ -1,59 +0,0 @@ -// -// SDLLockScreenStatus.m -// SmartDeviceLink -// - -#import "SDLLockScreenStatus.h" - -@implementation SDLLockScreenStatus - -SDLLockScreenStatus *SDLLockScreenStatus_OFF = nil; -SDLLockScreenStatus *SDLLockScreenStatus_OPTIONAL = nil; -SDLLockScreenStatus *SDLLockScreenStatus_REQUIRED = nil; - -NSArray *SDLLockScreenStatus_values = nil; - - -+ (SDLLockScreenStatus *)valueOf:(NSString *)value { - for (SDLLockScreenStatus *item in SDLLockScreenStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLLockScreenStatus_values == nil) { - SDLLockScreenStatus_values = @[ - SDLLockScreenStatus.OFF, - SDLLockScreenStatus.OPTIONAL, - SDLLockScreenStatus.REQUIRED, - ]; - } - return SDLLockScreenStatus_values; -} - -+ (SDLLockScreenStatus *)OFF { - if (SDLLockScreenStatus_OFF == nil) { - SDLLockScreenStatus_OFF = [[SDLLockScreenStatus alloc] initWithValue:@"OFF"]; - } - return SDLLockScreenStatus_OFF; -} - -+ (SDLLockScreenStatus *)OPTIONAL { - if (SDLLockScreenStatus_OPTIONAL == nil) { - SDLLockScreenStatus_OPTIONAL = [[SDLLockScreenStatus alloc] initWithValue:@"OPTIONAL"]; - } - return SDLLockScreenStatus_OPTIONAL; -} - -+ (SDLLockScreenStatus *)REQUIRED { - if (SDLLockScreenStatus_REQUIRED == nil) { - SDLLockScreenStatus_REQUIRED = [[SDLLockScreenStatus alloc] initWithValue:@"REQUIRED"]; - } - return SDLLockScreenStatus_REQUIRED; -} - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMaintenanceModeStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLMaintenanceModeStatus.h deleted file mode 100644 index cd399e20c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMaintenanceModeStatus.h +++ /dev/null @@ -1,50 +0,0 @@ -// SDLMaintenanceModeStatus.h -// - - -#import "SDLEnum.h" - -/** - * The SDLMaintenanceModeStatus class. - */ -@interface SDLMaintenanceModeStatus : SDLEnum { -} - -/** - * @abstract Maintenance Mode Status - * @param value The value of the string to get an object for - * @return SDLMaintenanceModeStatus - */ -+ (SDLMaintenanceModeStatus *)valueOf:(NSString *)value; - -/** - * @abstract declare an array that store all possible Maintenance Mode Status inside - * @return the array - */ -+ (NSArray *)values; - -/** - * @abstract Maintenance Mode Status : Normal - * @return the object with value of *NORMAL* - */ -+ (SDLMaintenanceModeStatus *)NORMAL; - -/** - * @abstract Maintenance Mode Status : Near - * @return the object with value of *NEAR* - */ -+ (SDLMaintenanceModeStatus *)NEAR; - -/** - * @abstract Maintenance Mode Status : Active - * @return the object with value of *ACTIVE* - */ -+ (SDLMaintenanceModeStatus *)ACTIVE; - -/** - * @abstract Maintenance Mode Status : Feature not present - * @return the object with value of *FEATURE_NOT_PRESENT* - */ -+ (SDLMaintenanceModeStatus *)FEATURE_NOT_PRESENT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMaintenanceModeStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLMaintenanceModeStatus.m deleted file mode 100644 index d6e7f8ddd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMaintenanceModeStatus.m +++ /dev/null @@ -1,65 +0,0 @@ -// SDLMaintenanceModeStatus.m -// - - -#import "SDLMaintenanceModeStatus.h" - -SDLMaintenanceModeStatus *SDLMaintenanceModeStatus_NORMAL = nil; -SDLMaintenanceModeStatus *SDLMaintenanceModeStatus_NEAR = nil; -SDLMaintenanceModeStatus *SDLMaintenanceModeStatus_ACTIVE = nil; -SDLMaintenanceModeStatus *SDLMaintenanceModeStatus_FEATURE_NOT_PRESENT = nil; - -NSArray *SDLMaintenanceModeStatus_values = nil; - -@implementation SDLMaintenanceModeStatus - -+ (SDLMaintenanceModeStatus *)valueOf:(NSString *)value { - for (SDLMaintenanceModeStatus *item in SDLMaintenanceModeStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLMaintenanceModeStatus_values == nil) { - SDLMaintenanceModeStatus_values = @[ - SDLMaintenanceModeStatus.NORMAL, - SDLMaintenanceModeStatus.NEAR, - SDLMaintenanceModeStatus.ACTIVE, - SDLMaintenanceModeStatus.FEATURE_NOT_PRESENT, - ]; - } - return SDLMaintenanceModeStatus_values; -} - -+ (SDLMaintenanceModeStatus *)NORMAL { - if (SDLMaintenanceModeStatus_NORMAL == nil) { - SDLMaintenanceModeStatus_NORMAL = [[SDLMaintenanceModeStatus alloc] initWithValue:@"NORMAL"]; - } - return SDLMaintenanceModeStatus_NORMAL; -} - -+ (SDLMaintenanceModeStatus *)NEAR { - if (SDLMaintenanceModeStatus_NEAR == nil) { - SDLMaintenanceModeStatus_NEAR = [[SDLMaintenanceModeStatus alloc] initWithValue:@"NEAR"]; - } - return SDLMaintenanceModeStatus_NEAR; -} - -+ (SDLMaintenanceModeStatus *)ACTIVE { - if (SDLMaintenanceModeStatus_ACTIVE == nil) { - SDLMaintenanceModeStatus_ACTIVE = [[SDLMaintenanceModeStatus alloc] initWithValue:@"ACTIVE"]; - } - return SDLMaintenanceModeStatus_ACTIVE; -} - -+ (SDLMaintenanceModeStatus *)FEATURE_NOT_PRESENT { - if (SDLMaintenanceModeStatus_FEATURE_NOT_PRESENT == nil) { - SDLMaintenanceModeStatus_FEATURE_NOT_PRESENT = [[SDLMaintenanceModeStatus alloc] initWithValue:@"FEATURE_NOT_PRESENT"]; - } - return SDLMaintenanceModeStatus_FEATURE_NOT_PRESENT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMediaClockFormat.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLMediaClockFormat.h deleted file mode 100644 index 12c8b8e16..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMediaClockFormat.h +++ /dev/null @@ -1,154 +0,0 @@ -// SDLMediaClockFormat.h -// - - -#import "SDLEnum.h" - -/** - * Indicates the format of the time displayed on the connected SDL unit. - * - * Format description follows the following nomenclature:
    - * Sp = Space
    - * | = or
    - * c = character
    - * - * @since SDL 1.0 - */ -@interface SDLMediaClockFormat : SDLEnum { -} - -/** - * @abstract Media Clock Format - * - * @param value The value of the string to get an object for - * - * @return SDLMediaClockFormat - */ -+ (SDLMediaClockFormat *)valueOf:(NSString *)value; - -/** - * @abstract declare an array that store all possible Media clock formats inside - * - * @return the array - */ -+ (NSArray *)values; - -/** - * @abstract Media clock format: Clock1 - * - * @discussion - *

      - *
    • maxHours = 19
    • - *
    • maxMinutes = 59
    • - *
    • maxSeconds = 59
    • - *
    - * - * @return The SDLMediaClockFormat object with value *CLOCK1* - */ -+ (SDLMediaClockFormat *)CLOCK1; - -/** - * @abstract Media clock format: Clock2 - * - * @discussion - *
      - *
    • maxHours = 59
    • - *
    • maxMinutes = 59
    • - *
    • maxSeconds = 59
    • - *
    - * - * @return The SDLMediaClockFormat object with value *CLOCK2* - */ -+ (SDLMediaClockFormat *)CLOCK2; - -/** - * @abstract Media clock format: Clock3 - * - * @discussion - *
      - *
    • maxHours = 9
    • - *
    • maxMinutes = 59
    • - *
    • maxSeconds = 59
    • - *
    - * - * @since SDL 2.0 - * @return The SDLMediaClockFormat object with value *CLOCK3* - */ -+ (SDLMediaClockFormat *)CLOCK3; - -/** - * @abstract Media clock format: ClockText1 - * - * @discussion - *
      - *
    • 5 characters possible
    • - *
    • Format: 1|sp c :|sp c c
    • - *
    • 1|sp : digit "1" or space
    • - *
    • c : character out of following character set: sp|0-9|[letters, see - * TypeII column in XLS.
    • - *
    • :|sp : colon or space
    • - *
    • used for Type II headunit
    • - *
    - * - * @return The SDLMediaClockFormat object with value *CLOCKTEXT1* - */ -+ (SDLMediaClockFormat *)CLOCKTEXT1; - -/** - * @abstract Media clock format: ClockText2 - * - * @discussion - *
      - *
    • 5 characters possible
    • - *
    • Format: 1|sp c :|sp c c
    • - *
    • 1|sp : digit "1" or space
    • - *
    • c : character out of following character set: sp|0-9|[letters, see - * CID column in XLS.
    • - *
    • :|sp : colon or space
    • - *
    • used for CID headunit
    • - *
    - * difference between CLOCKTEXT1 and CLOCKTEXT2 is the supported character - * set - * - * @return The SDLMediaClockFormat object with value *CLOCKTEXT2* - */ -+ (SDLMediaClockFormat *)CLOCKTEXT2; - -/** - * @abstract Media clock format: ClockText3 - * - * @discussion - *
      - *
    • 6 chars possible
    • - *
    • Format: 1|sp c c :|sp c c
    • - *
    • 1|sp : digit "1" or space
    • - *
    • c : character out of following character set: sp|0-9|[letters, see - * Type 5 column in XLS].
    • - *
    • :|sp : colon or space
    • - *
    • used for Type V headunit
    • - *
    - * difference between CLOCKTEXT1 and CLOCKTEXT2 is the supported character - * set - * - * @return The SDLMediaClockFormat object with value *CLOCKTEXT3* - */ -+ (SDLMediaClockFormat *)CLOCKTEXT3; - -/** - * @abstract Media clock format: ClockText4 - * - * @discussion - *
      - *
    • 6 chars possible
    • - *
    • Format: c :|sp c c : c c
    • - *
    • :|sp : colon or space
    • - *
    • c : character out of following character set: sp|0-9|[letters]
    • - *
    • used for MFD3/4/5 headunits
    • - *
    - * - * @since SDL 2.0 - * @return The SDLMediaClockFormat object with value *CLOCKTEXT4* - */ -+ (SDLMediaClockFormat *)CLOCKTEXT4; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMediaClockFormat.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLMediaClockFormat.m deleted file mode 100644 index 20ddb8005..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMediaClockFormat.m +++ /dev/null @@ -1,92 +0,0 @@ -// SDLMediaClockFormat.m -// - - -#import "SDLMediaClockFormat.h" - -SDLMediaClockFormat *SDLMediaClockFormat_CLOCK1 = nil; -SDLMediaClockFormat *SDLMediaClockFormat_CLOCK2 = nil; -SDLMediaClockFormat *SDLMediaClockFormat_CLOCK3 = nil; -SDLMediaClockFormat *SDLMediaClockFormat_CLOCKTEXT1 = nil; -SDLMediaClockFormat *SDLMediaClockFormat_CLOCKTEXT2 = nil; -SDLMediaClockFormat *SDLMediaClockFormat_CLOCKTEXT3 = nil; -SDLMediaClockFormat *SDLMediaClockFormat_CLOCKTEXT4 = nil; - -NSArray *SDLMediaClockFormat_values = nil; - -@implementation SDLMediaClockFormat - -+ (SDLMediaClockFormat *)valueOf:(NSString *)value { - for (SDLMediaClockFormat *item in SDLMediaClockFormat.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLMediaClockFormat_values == nil) { - SDLMediaClockFormat_values = @[ - SDLMediaClockFormat.CLOCK1, - SDLMediaClockFormat.CLOCK2, - SDLMediaClockFormat.CLOCK3, - SDLMediaClockFormat.CLOCKTEXT1, - SDLMediaClockFormat.CLOCKTEXT2, - SDLMediaClockFormat.CLOCKTEXT3, - SDLMediaClockFormat.CLOCKTEXT4, - ]; - } - return SDLMediaClockFormat_values; -} - -+ (SDLMediaClockFormat *)CLOCK1 { - if (SDLMediaClockFormat_CLOCK1 == nil) { - SDLMediaClockFormat_CLOCK1 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCK1"]; - } - return SDLMediaClockFormat_CLOCK1; -} - -+ (SDLMediaClockFormat *)CLOCK2 { - if (SDLMediaClockFormat_CLOCK2 == nil) { - SDLMediaClockFormat_CLOCK2 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCK2"]; - } - return SDLMediaClockFormat_CLOCK2; -} - -+ (SDLMediaClockFormat *)CLOCK3 { - if (SDLMediaClockFormat_CLOCK3 == nil) { - SDLMediaClockFormat_CLOCK3 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCK3"]; - } - return SDLMediaClockFormat_CLOCK3; -} - -+ (SDLMediaClockFormat *)CLOCKTEXT1 { - if (SDLMediaClockFormat_CLOCKTEXT1 == nil) { - SDLMediaClockFormat_CLOCKTEXT1 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCKTEXT1"]; - } - return SDLMediaClockFormat_CLOCKTEXT1; -} - -+ (SDLMediaClockFormat *)CLOCKTEXT2 { - if (SDLMediaClockFormat_CLOCKTEXT2 == nil) { - SDLMediaClockFormat_CLOCKTEXT2 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCKTEXT2"]; - } - return SDLMediaClockFormat_CLOCKTEXT2; -} - -+ (SDLMediaClockFormat *)CLOCKTEXT3 { - if (SDLMediaClockFormat_CLOCKTEXT3 == nil) { - SDLMediaClockFormat_CLOCKTEXT3 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCKTEXT3"]; - } - return SDLMediaClockFormat_CLOCKTEXT3; -} - -+ (SDLMediaClockFormat *)CLOCKTEXT4 { - if (SDLMediaClockFormat_CLOCKTEXT4 == nil) { - SDLMediaClockFormat_CLOCKTEXT4 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCKTEXT4"]; - } - return SDLMediaClockFormat_CLOCKTEXT4; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMenuParams.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLMenuParams.h deleted file mode 100644 index 14f51e390..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMenuParams.h +++ /dev/null @@ -1,56 +0,0 @@ -// SDLMenuParams.h -// - - -#import "SDLRPCMessage.h" - -/** - * Used when adding a sub menu to an application menu or existing sub menu. - * - * @since SDL 1.0 - */ -@interface SDLMenuParams : SDLRPCStruct { -} - -/** - * Constructs a newly allocated SDLMenuParams object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLMenuParams object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - - -/** - * @abstract the unique ID of an existing submenu to which a command will be added - * @discussion If this element is not provided, the command will be added to the top level of the Command Menu. - * - * Optional, Integer, 0 - 2,000,000,000 - */ -@property (strong) NSNumber *parentID; - -/** - * @abstract The position within the items of the parent Command Menu - * @discussion 0 will insert at the front, 1 will insert after the first existing element, etc. - * - * Position of any submenu will always be located before the return and exit options. - * - * * If position is greater or equal than the number of items in the parent Command Menu, the sub menu will be appended to the end of that Command Menu. - * - * * If this element is omitted, the entry will be added at the end of the parent menu. - * - * Optional, Integer, 0 - 1000 - */ -@property (strong) NSNumber *position; - -/** - * @abstract the menu name which appears in menu, representing this command - * - * Required, max length 500 characters - */ -@property (strong) NSString *menuName; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMenuParams.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLMenuParams.m deleted file mode 100644 index 84fb595a8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMenuParams.m +++ /dev/null @@ -1,59 +0,0 @@ -// SDLMenuParams.m -// - - -#import "SDLMenuParams.h" - -#import "SDLNames.h" - -@implementation SDLMenuParams - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setParentID:(NSNumber *)parentID { - if (parentID != nil) { - [store setObject:parentID forKey:NAMES_parentID]; - } else { - [store removeObjectForKey:NAMES_parentID]; - } -} - -- (NSNumber *)parentID { - return [store objectForKey:NAMES_parentID]; -} - -- (void)setPosition:(NSNumber *)position { - if (position != nil) { - [store setObject:position forKey:NAMES_position]; - } else { - [store removeObjectForKey:NAMES_position]; - } -} - -- (NSNumber *)position { - return [store objectForKey:NAMES_position]; -} - -- (void)setMenuName:(NSString *)menuName { - if (menuName != nil) { - [store setObject:menuName forKey:NAMES_menuName]; - } else { - [store removeObjectForKey:NAMES_menuName]; - } -} - -- (NSString *)menuName { - return [store objectForKey:NAMES_menuName]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.h deleted file mode 100644 index ff039e582..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.h +++ /dev/null @@ -1,17 +0,0 @@ -// SDLMyKey.h -// - -#import "SDLRPCMessage.h" - -@class SDLVehicleDataStatus; - - -@interface SDLMyKey : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLVehicleDataStatus *e911Override; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.m deleted file mode 100644 index ec4e5ef95..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.m +++ /dev/null @@ -1,41 +0,0 @@ -// SDLMyKey.m -// - -#import "SDLMyKey.h" - -#import "SDLNames.h" -#import "SDLVehicleDataStatus.h" - - -@implementation SDLMyKey - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setE911Override:(SDLVehicleDataStatus *)e911Override { - if (e911Override != nil) { - [store setObject:e911Override forKey:NAMES_e911Override]; - } else { - [store removeObjectForKey:NAMES_e911Override]; - } -} - -- (SDLVehicleDataStatus *)e911Override { - NSObject *obj = [store objectForKey:NAMES_e911Override]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataStatus.class]) { - return (SDLVehicleDataStatus *)obj; - } else { - return [SDLVehicleDataStatus valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLNames.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLNames.h deleted file mode 100644 index 84bc142ad..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLNames.h +++ /dev/null @@ -1,406 +0,0 @@ -// SDLNames.h -// - - -#define NAMES_accPedalPosition @"accPedalPosition" -#define NAMES_actual @"actual" -#define NAMES_AddCommand @"AddCommand" -#define NAMES_addressLines @"addressLines" -#define NAMES_AddSubMenu @"AddSubMenu" -#define NAMES_airbagStatus @"airbagStatus" -#define NAMES_Alert @"Alert" -#define NAMES_AlertManeuver @"AlertManeuver" -#define NAMES_alertText1 @"alertText1" -#define NAMES_alertText2 @"alertText2" -#define NAMES_alertText3 @"alertText3" -#define NAMES_alignment @"alignment" -#define NAMES_allowed @"allowed" -#define NAMES_altitude @"altitude" -#define NAMES_ambientLightSensorStatus @"ambientLightSensorStatus" -#define NAMES_ambientLightStatus @"ambientLightStatus" -#define NAMES_appHMIType @"appHMIType" -#define NAMES_appID @"appID" -#define NAMES_appName @"appName" -#define NAMES_audioPassThruCapabilities @"audioPassThruCapabilities" -#define NAMES_audioPassThruDisplayText1 @"audioPassThruDisplayText1" -#define NAMES_audioPassThruDisplayText2 @"audioPassThruDisplayText2" -#define NAMES_audioStreamingState @"audioStreamingState" -#define NAMES_audioType @"audioType" -#define NAMES_autoCompleteText @"autoCompleteText" -#define NAMES_auxECallNotificationStatus @"auxECallNotificationStatus" -#define NAMES_battLevelStatus @"battLevelStatus" -#define NAMES_beltStatus @"beltStatus" -#define NAMES_bitsPerSample @"bitsPerSample" -#define NAMES_bodyInformation @"bodyInformation" -#define NAMES_btIconOn @"btIconOn" -#define NAMES_bulkData @"bulkData" -#define NAMES_buttonCapabilities @"buttonCapabilities" -#define NAMES_buttonEventMode @"buttonEventMode" -#define NAMES_buttonName @"buttonName" -#define NAMES_buttonPressMode @"buttonPressMode" -#define NAMES_c @"c" -#define NAMES_callActive @"callActive" -#define NAMES_carModeStatus @"carModeStatus" -#define NAMES_carrier @"carrier" -#define NAMES_ChangeRegistration @"ChangeRegistration" -#define NAMES_characterSet @"characterSet" -#define NAMES_choiceID @"choiceID" -#define NAMES_choiceSet @"choiceSet" -#define NAMES_clusterModes @"clusterModes" -#define NAMES_clusterModeStatus @"clusterModeStatus" -#define NAMES_cmdIcon @"cmdIcon" -#define NAMES_cmdID @"cmdID" -#define NAMES_compassDirection @"compassDirection" -#define NAMES_correlationID @"correlationID" -#define NAMES_CreateInteractionChoiceSet @"CreateInteractionChoiceSet" -#define NAMES_customButtonID @"customButtonID" -#define NAMES_customPresets @"customPresets" -#define NAMES_data @"data" -#define NAMES_dataResult @"dataResult" -#define NAMES_dataType @"dataType" -#define NAMES_DeleteCommand @"DeleteCommand" -#define NAMES_DeleteFile @"DeleteFile" -#define NAMES_DeleteInteractionChoiceSet @"DeleteInteractionChoiceSet" -#define NAMES_DeleteSubMenu @"DeleteSubMenu" -#define NAMES_deviceInfo @"deviceInfo" -#define NAMES_deviceStatus @"deviceStatus" -#define NAMES_DiagnosticMessage @"DiagnosticMessage" -#define NAMES_didLocation @"didLocation" -#define NAMES_didResult @"didResult" -#define NAMES_dimension @"dimension" -#define NAMES_displayCapabilities @"displayCapabilities" -#define NAMES_displayLayout @"displayLayout" -#define NAMES_displayType @"displayType" -#define NAMES_distanceToEmpty @"distanceToEmpty" -#define NAMES_distanceToManeuver @"distanceToManeuver" -#define NAMES_distanceToManeuverScale @"distanceToManeuverScale" -#define NAMES_doublePressAvailable @"doublePressAvailable" -#define NAMES_driverAirbagDeployed @"driverAirbagDeployed" -#define NAMES_driverBeltDeployed @"driverBeltDeployed" -#define NAMES_driverBraking @"driverBraking" -#define NAMES_driverBuckleBelted @"driverBuckleBelted" -#define NAMES_driverCurtainAirbagDeployed @"driverCurtainAirbagDeployed" -#define NAMES_driverDoorAjar @"driverDoorAjar" -#define NAMES_driverKneeAirbagDeployed @"driverKneeAirbagDeployed" -#define NAMES_driverSideAirbagDeployed @"driverSideAirbagDeployed" -#define NAMES_dtc @"dtc" -#define NAMES_dtcMask @"dtcMask" -#define NAMES_duration @"duration" -#define NAMES_e911Override @"e911Override" -#define NAMES_eCallConfirmationStatus @"eCallConfirmationStatus" -#define NAMES_eCallEventActive @"eCallEventActive" -#define NAMES_eCallInfo @"eCallInfo" -#define NAMES_eCallNotificationStatus @"eCallNotificationStatus" -#define NAMES_ecuHeader @"ecuHeader" -#define NAMES_ecuName @"ecuName" -#define NAMES_emergencyEvent @"emergencyEvent" -#define NAMES_emergencyEventType @"emergencyEventType" -#define NAMES_EncodedSyncPData @"EncodedSyncPData" -#define NAMES_EndAudioPassThru @"EndAudioPassThru" -#define NAMES_endTime @"endTime" -#define NAMES_engineTorque @"engineTorque" -#define NAMES_eta @"eta" -#define NAMES_event @"event" -#define NAMES_externalTemperature @"externalTemperature" -#define NAMES_fileName @"fileName" -#define NAMES_filenames @"filenames" -#define NAMES_fileType @"fileType" -#define NAMES_firmwareRev @"firmwareRev" -#define NAMES_fuelCutoffStatus @"fuelCutoffStatus" -#define NAMES_fuelLevel @"fuelLevel" -#define NAMES_fuelLevel_State @"fuelLevel_State" -#define NAMES_fuelMaintenanceMode @"fuelMaintenanceMode" -#define NAMES_GenericResponse @"GenericResponse" -#define NAMES_GetDTCs @"GetDTCs" -#define NAMES_GetVehicleData @"GetVehicleData" -#define NAMES_gps @"gps" -#define NAMES_graphic @"graphic" -#define NAMES_graphicSupported @"graphicSupported" -#define NAMES_hardware @"hardware" -#define NAMES_hashID @"hashID" -#define NAMES_hdop @"hdop" -#define NAMES_heading @"heading" -#define NAMES_headLampStatus @"headLampStatus" -#define NAMES_helpPrompt @"helpPrompt" -#define NAMES_highBeamsOn @"highBeamsOn" -#define NAMES_hmiDisplayLanguage @"hmiDisplayLanguage" -#define NAMES_hmiDisplayLanguageDesired @"hmiDisplayLanguageDesired" -#define NAMES_hmiLevel @"hmiLevel" -#define NAMES_hmiPermissions @"hmiPermissions" -#define NAMES_hmiCapabilities @"hmiCapabilities" -#define NAMES_hmiZoneCapabilities @"hmiZoneCapabilities" -#define NAMES_hours @"hours" -#define NAMES_id @"id" -#define NAMES_ignitionStableStatus @"ignitionStableStatus" -#define NAMES_ignitionStatus @"ignitionStatus" -#define NAMES_image @"image" -#define NAMES_imageFields @"imageFields" -#define NAMES_imageResolution @"imageResolution" -#define NAMES_imageSupported @"imageSupported" -#define NAMES_imageType @"imageType" -#define NAMES_imageTypeSupported @"imageTypeSupported" -#define NAMES_info @"info" -#define NAMES_initialPrompt @"initialPrompt" -#define NAMES_initialText @"initialText" -#define NAMES_innerLeftRear @"innerLeftRear" -#define NAMES_innerRightRear @"innerRightRear" -#define NAMES_instantFuelConsumption @"instantFuelConsumption" -#define NAMES_interactionChoiceSetID @"interactionChoiceSetID" -#define NAMES_interactionChoiceSetIDList @"interactionChoiceSetIDList" -#define NAMES_interactionLayout @"interactionLayout" -#define NAMES_interactionMode @"interactionMode" -#define NAMES_isHighlighted @"isHighlighted" -#define NAMES_isMediaApplication @"isMediaApplication" -#define NAMES_keyboardLayout @"keyboardLayout" -#define NAMES_keyboardProperties @"keyboardProperties" -#define NAMES_keypressMode @"keypressMode" -#define NAMES_language @"language" -#define NAMES_languageDesired @"languageDesired" -#define NAMES_latitudeDegrees @"latitudeDegrees" -#define NAMES_leftFront @"leftFront" -#define NAMES_leftRear @"leftRear" -#define NAMES_leftRearInflatableBelted @"leftRearInflatableBelted" -#define NAMES_leftRow2BuckleBelted @"leftRow2BuckleBelted" -#define NAMES_leftRow3BuckleBelted @"leftRow3BuckleBelted" -#define NAMES_length @"length" -#define NAMES_limitedCharacterList @"limitedCharacterList" -#define NAMES_ListFiles @"ListFiles" -#define NAMES_locationDescription @"locationDescription" -#define NAMES_locationImage @"locationImage" -#define NAMES_locationName @"locationName" -#define NAMES_longitudeDegrees @"longitudeDegrees" -#define NAMES_longPress @"longPress" -#define NAMES_longPressAvailable @"longPressAvailable" -#define NAMES_lowBeamsOn @"lowBeamsOn" -#define NAMES_mainField1 @"mainField1" -#define NAMES_mainField2 @"mainField2" -#define NAMES_mainField3 @"mainField3" -#define NAMES_mainField4 @"mainField4" -#define NAMES_majorVersion @"majorVersion" -#define NAMES_make @"make" -#define NAMES_maneuverComplete @"maneuverComplete" -#define NAMES_manualTextEntry @"manualTextEntry" -#define NAMES_maxDuration @"maxDuration" -#define NAMES_maximumChangeVelocity @"maximumChangeVelocity" -#define NAMES_maxNumberRFCOMMPorts @"maxNumberRFCOMMPorts" -#define NAMES_mediaClock @"mediaClock" -#define NAMES_mediaClockFormats @"mediaClockFormats" -#define NAMES_mediaTrack @"mediaTrack" -#define NAMES_menuIcon @"menuIcon" -#define NAMES_menuID @"menuID" -#define NAMES_menuName @"menuName" -#define NAMES_menuParams @"menuParams" -#define NAMES_menuTitle @"menuTitle" -#define NAMES_messageData @"messageData" -#define NAMES_messageDataResult @"messageDataResult" -#define NAMES_messageLength @"messageLength" -#define NAMES_middleRow1BeltDeployed @"middleRow1BeltDeployed" -#define NAMES_middleRow1BuckleBelted @"middleRow1BuckleBelted" -#define NAMES_middleRow2BuckleBelted @"middleRow2BuckleBelted" -#define NAMES_middleRow3BuckleBelted @"middleRow3BuckleBelted" -#define NAMES_minorVersion @"minorVersion" -#define NAMES_minutes @"minutes" -#define NAMES_model @"model" -#define NAMES_modelYear @"modelYear" -#define NAMES_monoAudioOutputMuted @"monoAudioOutputMuted" -#define NAMES_multipleEvents @"multipleEvents" -#define NAMES_multiTouchAvailable @"multiTouchAvailable" -#define NAMES_muteAudio @"muteAudio" -#define NAMES_myKey @"myKey" -#define NAMES_name @"name" -#define NAMES_navigation @"navigation" -#define NAMES_navigationText @"navigationText" -#define NAMES_navigationText1 @"navigationText1" -#define NAMES_navigationText2 @"navigationText2" -#define NAMES_nextTurnIcon @"nextTurnIcon" -#define NAMES_ngnMediaScreenAppName @"ngnMediaScreenAppName" -#define NAMES_notification @"notification" -#define NAMES_number @"number" -#define NAMES_numCustomPresetsAvailable @"numCustomPresetsAvailable" -#define NAMES_numTicks @"numTicks" -#define NAMES_odometer @"odometer" -#define NAMES_offset @"offset" -#define NAMES_OnAppInterfaceUnregistered @"OnAppInterfaceUnregistered" -#define NAMES_OnAudioPassThru @"OnAudioPassThru" -#define NAMES_OnButtonEvent @"OnButtonEvent" -#define NAMES_OnButtonPress @"OnButtonPress" -#define NAMES_OnCommand @"OnCommand" -#define NAMES_OnDriverDistraction @"OnDriverDistraction" -#define NAMES_OnEncodedSyncPData @"OnEncodedSyncPData" -#define NAMES_OnHashChange @"OnHashChange" -#define NAMES_OnHMIStatus @"OnHMIStatus" -#define NAMES_OnKeyboardInput @"OnKeyboardInput" -#define NAMES_OnLanguageChange @"OnLanguageChange" -#define NAMES_OnPermissionsChange @"OnPermissionsChange" -#define NAMES_onScreenPresetsAvailable @"onScreenPresetsAvailable" -#define NAMES_OnSyncPData @"OnSyncPData" -#define NAMES_OnSystemRequest @"OnSystemRequest" -#define NAMES_OnTBTClientState @"OnTBTClientState" -#define NAMES_OnTouchEvent @"OnTouchEvent" -#define NAMES_OnVehicleData @"OnVehicleData" -#define NAMES_operation_name @"name" -#define NAMES_os @"os" -#define NAMES_osVersion @"osVersion" -#define NAMES_parameterPermissions @"parameterPermissions" -#define NAMES_parameters @"parameters" -#define NAMES_parentID @"parentID" -#define NAMES_parkBrakeActive @"parkBrakeActive" -#define NAMES_passengerAirbagDeployed @"passengerAirbagDeployed" -#define NAMES_passengerBeltDeployed @"passengerBeltDeployed" -#define NAMES_passengerBuckleBelted @"passengerBuckleBelted" -#define NAMES_passengerChildDetected @"passengerChildDetected" -#define NAMES_passengerCurtainAirbagDeployed @"passengerCurtainAirbagDeployed" -#define NAMES_passengerDoorAjar @"passengerDoorAjar" -#define NAMES_passengerKneeAirbagDeployed @"passengerKneeAirbagDeployed" -#define NAMES_passengerSideAirbagDeployed @"passengerSideAirbagDeployed" -#define NAMES_pdop @"pdop" -#define NAMES_PerformAudioPassThru @"PerformAudioPassThru" -#define NAMES_PerformInteraction @"PerformInteraction" -#define NAMES_permissionItem @"permissionItem" -#define NAMES_persistentFile @"persistentFile" -#define NAMES_phoneCall @"phoneCall" -#define NAMES_phoneNumber @"phoneNumber" -#define NAMES_phoneRoaming @"phoneRoaming" -#define NAMES_playTone @"playTone" -#define NAMES_position @"position" -#define NAMES_powerModeActive @"powerModeActive" -#define NAMES_powerModeQualificationStatus @"powerModeQualificationStatus" -#define NAMES_powerModeStatus @"powerModeStatus" -#define NAMES_prerecordedSpeech @"prerecordedSpeech" -#define NAMES_presetBankCapabilities @"presetBankCapabilities" -#define NAMES_pressAvailable @"pressAvailable" -#define NAMES_pressure @"pressure" -#define NAMES_pressureTelltale @"pressureTelltale" -#define NAMES_primaryAudioSource @"primaryAudioSource" -#define NAMES_prndl @"prndl" -#define NAMES_progressIndicator @"progressIndicator" -#define NAMES_properties @"properties" -#define NAMES_PutFile @"PutFile" -#define NAMES_ReadDID @"ReadDID" -#define NAMES_rearLeftDoorAjar @"rearLeftDoorAjar" -#define NAMES_rearRightDoorAjar @"rearRightDoorAjar" -#define NAMES_reason @"reason" -#define NAMES_RegisterAppInterface @"RegisterAppInterface" -#define NAMES_request @"request" -#define NAMES_requestType @"requestType" -#define NAMES_reserved @"reserved" -#define NAMES_ResetGlobalProperties @"ResetGlobalProperties" -#define NAMES_resolution @"resolution" -#define NAMES_resolutionHeight @"resolutionHeight" -#define NAMES_resolutionWidth @"resolutionWidth" -#define NAMES_response @"response" -#define NAMES_result @"result" -#define NAMES_resultCode @"resultCode" -#define NAMES_rightFront @"rightFront" -#define NAMES_rightRear @"rightRear" -#define NAMES_rightRearInflatableBelted @"rightRearInflatableBelted" -#define NAMES_rightRow2BuckleBelted @"rightRow2BuckleBelted" -#define NAMES_rightRow3BuckleBelted @"rightRow3BuckleBelted" -#define NAMES_rolloverEvent @"rolloverEvent" -#define NAMES_rows @"rows" -#define NAMES_rpcName @"rpcName" -#define NAMES_rpm @"rpm" -#define NAMES_samplingRate @"samplingRate" -#define NAMES_satellites @"satellites" -#define NAMES_screenParams @"screenParams" -#define NAMES_ScrollableMessage @"ScrollableMessage" -#define NAMES_scrollableMessageBody @"scrollableMessageBody" -#define NAMES_sdlVersion @"sdlVersion" -#define NAMES_secondaryGraphic @"secondaryGraphic" -#define NAMES_secondaryImage @"secondaryImage" -#define NAMES_secondaryText @"secondaryText" -#define NAMES_seconds @"seconds" -#define NAMES_SendLocation @"SendLocation" -#define NAMES_SetAppIcon @"SetAppIcon" -#define NAMES_SetDisplayLayout @"SetDisplayLayout" -#define NAMES_SetGlobalProperties @"SetGlobalProperties" -#define NAMES_SetMediaClockTimer @"SetMediaClockTimer" -#define NAMES_shortPress @"shortPress" -#define NAMES_shortPressAvailable @"shortPressAvailable" -#define NAMES_Show @"Show" -#define NAMES_ShowConstantTBT @"ShowConstantTBT" -#define NAMES_signalLevelStatus @"signalLevelStatus" -#define NAMES_Slider @"Slider" -#define NAMES_sliderFooter @"sliderFooter" -#define NAMES_sliderHeader @"sliderHeader" -#define NAMES_sliderPosition @"sliderPosition" -#define NAMES_softButtonCapabilities @"softButtonCapabilities" -#define NAMES_softButtonID @"softButtonID" -#define NAMES_softButtons @"softButtons" -#define NAMES_spaceAvailable @"spaceAvailable" -#define NAMES_Speak @"Speak" -#define NAMES_speechCapabilities @"speechCapabilities" -#define NAMES_speed @"speed" -#define NAMES_startTime @"startTime" -#define NAMES_state @"state" -#define NAMES_stateOfCharge @"stateOfCharge" -#define NAMES_status @"status" -#define NAMES_statusBar @"statusBar" -#define NAMES_steeringWheelAngle @"steeringWheelAngle" -#define NAMES_stereoAudioOutputMuted @"stereoAudioOutputMuted" -#define NAMES_Subscribe @"Subscribe" -#define NAMES_SubscribeButton @"SubscribeButton" -#define NAMES_SubscribeVehicleData @"SubscribeVehicleData" -#define NAMES_success @"success" -#define NAMES_supportedDiagModes @"supportedDiagModes" -#define NAMES_syncFileName @"syncFileName" -#define NAMES_syncMsgVersion @"syncMsgVersion" -#define NAMES_SyncPData @"SyncPData" -#define NAMES_systemAction @"systemAction" -#define NAMES_systemContext @"systemContext" -#define NAMES_systemFile @"systemFile" -#define NAMES_SystemRequest @"SystemRequest" -#define NAMES_systemSoftwareVersion @"systemSoftwareVersion" -#define NAMES_DialNumber @"DialNumber" -#define NAMES_targetID @"targetID" -#define NAMES_templatesAvailable @"templatesAvailable" -#define NAMES_tertiaryText @"tertiaryText" -#define NAMES_text @"text" -#define NAMES_textFields @"textFields" -#define NAMES_textMsgAvailable @"textMsgAvailable" -#define NAMES_timeout @"timeout" -#define NAMES_Timeout @"Timeout" -#define NAMES_timeoutPrompt @"timeoutPrompt" -#define NAMES_timeToDestination @"timeToDestination" -#define NAMES_tirePressure @"tirePressure" -#define NAMES_totalDistance @"totalDistance" -#define NAMES_touchEventAvailable @"touchEventAvailable" -#define NAMES_triggerSource @"triggerSource" -#define NAMES_trim @"trim" -#define NAMES_tryAgainTime @"tryAgainTime" -#define NAMES_ts @"ts" -#define NAMES_ttsChunks @"ttsChunks" -#define NAMES_ttsName @"ttsName" -#define NAMES_turnIcon @"turnIcon" -#define NAMES_turnList @"turnList" -#define NAMES_type @"type" -#define NAMES_UnregisterAppInterface @"UnregisterAppInterface" -#define NAMES_Unsubscribe @"Unsubscribe" -#define NAMES_UnsubscribeButton @"UnsubscribeButton" -#define NAMES_UnsubscribeVehicleData @"UnsubscribeVehicleData" -#define NAMES_updateMode @"updateMode" -#define NAMES_UpdateTurnList @"UpdateTurnList" -#define NAMES_upDownAvailable @"upDownAvailable" -#define NAMES_url @"url" -#define NAMES_URL @"URL" -#define NAMES_userDisallowed @"userDisallowed" -#define NAMES_utcDay @"utcDay" -#define NAMES_utcHours @"utcHours" -#define NAMES_utcMinutes @"utcMinutes" -#define NAMES_utcMonth @"utcMonth" -#define NAMES_utcSeconds @"utcSeconds" -#define NAMES_utcYear @"utcYear" -#define NAMES_value @"value" -#define NAMES_vdop @"vdop" -#define NAMES_vehicleType @"vehicleType" -#define NAMES_vin @"vin" -#define NAMES_voiceRecOn @"voiceRecOn" -#define NAMES_vrCapabilities @"vrCapabilities" -#define NAMES_vrCommands @"vrCommands" -#define NAMES_vrHelp @"vrHelp" -#define NAMES_vrHelpTitle @"vrHelpTitle" -#define NAMES_vrSynonyms @"vrSynonyms" -#define NAMES_width @"width" -#define NAMES_wiperStatus @"wiperStatus" -#define NAMES_x @"x" -#define NAMES_y @"y" diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLObjectWithPriority.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLObjectWithPriority.h deleted file mode 100644 index 334139d5f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLObjectWithPriority.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// SDLObjectWithPriority.h -// SmartDeviceLink -// - -#import - - -@interface SDLObjectWithPriority : NSObject - -@property (strong) id object; -@property (assign) NSInteger priority; - -- (instancetype)initWithObject:(id)object priority:(NSInteger)priority NS_DESIGNATED_INITIALIZER; - -+ (instancetype)objectWithObject:(id)object priority:(NSInteger)priority; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLObjectWithPriority.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLObjectWithPriority.m deleted file mode 100644 index 4dd72091e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLObjectWithPriority.m +++ /dev/null @@ -1,31 +0,0 @@ -// -// SDLObjectWithPriority.m -// SmartDeviceLink -// - -#import "SDLObjectWithPriority.h" - - -@implementation SDLObjectWithPriority - -- (instancetype)initWithObject:(id)object priority:(NSInteger)priority { - self = [super init]; - if (self == nil) { - return nil; - } - - self.object = object; - self.priority = priority; - - return self; -} - -- (instancetype)init { - return [self initWithObject:nil priority:NSIntegerMax]; -} - -+ (instancetype)objectWithObject:(id)object priority:(NSInteger)priority { - return [[self alloc] initWithObject:object priority:priority]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.h deleted file mode 100644 index 59b596f58..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.h +++ /dev/null @@ -1,35 +0,0 @@ -// SDLOnAppInterfaceUnregistered.h -// - -#import "SDLRPCNotification.h" - -@class SDLAppInterfaceUnregisteredReason; - - -/** - * Notifies an application that its interface registration has been terminated. This means that all SDL resources associated with the application are discarded, including the Command Menu, Choice Sets, button subscriptions, etc. - * - * For more information about SDL resources related to an interface registration, see SDLRegisterAppInterface. - * - * @since SDL 1.0 - * @see SDLRegisterAppInterface - */ -@interface SDLOnAppInterfaceUnregistered : SDLRPCNotification { -} - -/** - * Constructs a newly allocated SDLOnAppInterfaceUnregistered object - */ -- (instancetype)init; -/** - * Constructs a newly allocated SDLOnAppInterfaceUnregistered object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The reason application's interface was terminated - */ -@property (strong) SDLAppInterfaceUnregisteredReason *reason; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.m deleted file mode 100644 index 5427cf871..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.m +++ /dev/null @@ -1,41 +0,0 @@ -// SDLOnAppInterfaceUnregistered.m -// - -#import "SDLOnAppInterfaceUnregistered.h" - -#import "SDLAppInterfaceUnregisteredReason.h" -#import "SDLNames.h" - - -@implementation SDLOnAppInterfaceUnregistered - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnAppInterfaceUnregistered]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setReason:(SDLAppInterfaceUnregisteredReason *)reason { - if (reason != nil) { - [parameters setObject:reason forKey:NAMES_reason]; - } else { - [parameters removeObjectForKey:NAMES_reason]; - } -} - -- (SDLAppInterfaceUnregisteredReason *)reason { - NSObject *obj = [parameters objectForKey:NAMES_reason]; - if (obj == nil || [obj isKindOfClass:SDLAppInterfaceUnregisteredReason.class]) { - return (SDLAppInterfaceUnregisteredReason *)obj; - } else { - return [SDLAppInterfaceUnregisteredReason valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAudioPassThru.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAudioPassThru.h deleted file mode 100644 index f37d4067e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAudioPassThru.h +++ /dev/null @@ -1,39 +0,0 @@ -// SDLOnAudioPassThru.h -// - - -#import "SDLRPCNotification.h" - -/** - * Binary data is in binary part of hybrid msg. - * - * HMI Status Requirements: - *
      - * HMILevel: - *
        - *
      • BACKGROUND, FULL, LIMITED
      • - *
      - * AudioStreamingState: - *
        - *
      • TBD
      • - *
      - * SystemContext: - *
        - *
      • TBD
      • - *
      - *
    - */ -@interface SDLOnAudioPassThru : SDLRPCNotification { -} - -/** - *Constructs a newly allocated SDLOnAudioPassThru object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLOnAudioPassThru object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAudioPassThru.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAudioPassThru.m deleted file mode 100644 index e0360e3e4..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAudioPassThru.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLOnAudioPassThru.m -// - - -#import "SDLOnAudioPassThru.h" - -#import "SDLNames.h" - -@implementation SDLOnAudioPassThru - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnAudioPassThru]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.h deleted file mode 100644 index 0d1fc8afd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.h +++ /dev/null @@ -1,81 +0,0 @@ -// SDLOnButtonEvent.h -// - -#import "SDLRPCNotification.h" - -@class SDLButtonName; -@class SDLButtonEventMode; - - -/** - * Notifies application that user has depressed or released a button to which - * the application has subscribed. - * - * Further information about button events - * and button-presses can be found at SDLSubscribeButton. - *

    - *

    - * HMI Status Requirements: - *
      - * HMILevel: - *
        - *
      • The application will receive SDLOnButtonEvent notifications for all - * subscribed buttons when HMILevel is FULL.
      • - *
      • The application will receive SDLOnButtonEvent notifications for subscribed - * media buttons when HMILevel is LIMITED.
      • - *
      • Media buttons include SEEKLEFT, SEEKRIGHT, TUNEUP, TUNEDOWN, and - * PRESET_0-PRESET_9.
      • - *
      • The application will not receive SDLOnButtonEvent notification when HMILevel - * is BACKGROUND.
      • - *
      - * AudioStreamingState: - *
        - *
      • Any
      • - *
      - * SystemContext: - *
        - *
      • MAIN, VR. In MENU, only PRESET buttons. In VR, pressing any subscribable - * button will cancel VR.
      • - *
      - *
    - *

    - * - * @see SDLSubscribeButton - * - * @since SDL 1.0 - */ -@interface SDLOnButtonEvent : SDLRPCNotification { -} - -/** - * Constructs a newly allocated SDLOnButtonEvent object - */ -- (instancetype)init; - -/** - * @abstract Constructs a newly allocated SDLOnButtonEvent object indicated by the dictionary parameter - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The name of the button - */ -@property (strong) SDLButtonName *buttonName; - -/** - * @abstract Indicates whether this is an UP or DOWN event - */ -@property (strong) SDLButtonEventMode *buttonEventMode; - -/** - * @abstract If ButtonName is "CUSTOM_BUTTON", this references the integer ID passed by a custom button. (e.g. softButton ID) - * - * @since SDL 2.0 - * - * Optional, Integer, 0 - 65536 - */ -@property (strong) NSNumber *customButtonID; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.m deleted file mode 100644 index d112d88ea..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.m +++ /dev/null @@ -1,71 +0,0 @@ -// SDLOnButtonEvent.m -// - -#import "SDLOnButtonEvent.h" - -#import "SDLButtonEventMode.h" -#import "SDLButtonName.h" -#import "SDLNames.h" - - -@implementation SDLOnButtonEvent - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnButtonEvent]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setButtonName:(SDLButtonName *)buttonName { - if (buttonName != nil) { - [parameters setObject:buttonName forKey:NAMES_buttonName]; - } else { - [parameters removeObjectForKey:NAMES_buttonName]; - } -} - -- (SDLButtonName *)buttonName { - NSObject *obj = [parameters objectForKey:NAMES_buttonName]; - if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) { - return (SDLButtonName *)obj; - } else { - return [SDLButtonName valueOf:(NSString *)obj]; - } -} - -- (void)setButtonEventMode:(SDLButtonEventMode *)buttonEventMode { - if (buttonEventMode != nil) { - [parameters setObject:buttonEventMode forKey:NAMES_buttonEventMode]; - } else { - [parameters removeObjectForKey:NAMES_buttonEventMode]; - } -} - -- (SDLButtonEventMode *)buttonEventMode { - NSObject *obj = [parameters objectForKey:NAMES_buttonEventMode]; - if (obj == nil || [obj isKindOfClass:SDLButtonEventMode.class]) { - return (SDLButtonEventMode *)obj; - } else { - return [SDLButtonEventMode valueOf:(NSString *)obj]; - } -} - -- (void)setCustomButtonID:(NSNumber *)customButtonID { - if (customButtonID != nil) { - [parameters setObject:customButtonID forKey:NAMES_customButtonID]; - } else { - [parameters removeObjectForKey:NAMES_customButtonID]; - } -} - -- (NSNumber *)customButtonID { - return [parameters objectForKey:NAMES_customButtonID]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.h deleted file mode 100644 index 942dbd583..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.h +++ /dev/null @@ -1,94 +0,0 @@ -// SDLOnButtonPress.h -// - -#import "SDLRPCNotification.h" - -@class SDLButtonName; -@class SDLButtonPressMode; - - -/** - * Notifies application of button press events for buttons to which the - * application is subscribed. SDL supports two button press events defined as - * follows: - * - *

      - *
    • SHORT - Occurs when a button is depressed, then released within two - * seconds. The event is considered to occur immediately after the button is - * released.
    • - *
    • LONG - Occurs when a button is depressed and held for two seconds or - * more. The event is considered to occur immediately after the two second - * threshold has been crossed, before the button is released
    • - *
    - * HMI Status Requirements: - *
      - * HMILevel: - *
        - *
      • The application will receive OnButtonPress notifications for all - * subscribed buttons when HMILevel is FULL.
      • - *
      • The application will receive OnButtonPress notifications for subscribed - * media buttons when HMILevel is LIMITED.
      • - *
      • Media buttons include SEEKLEFT, SEEKRIGHT, TUNEUP, TUNEDOWN, and - * PRESET_0-PRESET_9.
      • - *
      • The application will not receive OnButtonPress notification when HMILevel - * is BACKGROUND or NONE.
      • - *
      - * AudioStreamingState: - *
        - *
      • Any
      • - *
      - * SystemContext: - *
        - *
      • MAIN, VR. In MENU, only PRESET buttons. In VR, pressing any subscribable - * button will cancel VR.
      • - *
      - *
    - * - * @see SDLSubscribeButton - * @see SDLUnsubscribeButton - * - * @since SDL 1.0 - */ -@interface SDLOnButtonPress : SDLRPCNotification { -} - -/** - * Constructs a newly allocated SDLOnButtonPress object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLOnButtonPress object indicated by the dictionary parameter - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract the button's name - * - * @see SDLButtonName - * - * Required - */ -@property (strong) SDLButtonName *buttonName; - -/** - * @abstract Indicates whether this is a LONG or SHORT button press event - * - * @see SDLButtonPressMode - * - * Required - */ -@property (strong) SDLButtonPressMode *buttonPressMode; - -/** - * @abstract If ButtonName is "CUSTOM_BUTTON", this references the integer ID passed by a custom button. (e.g. softButton ID) - * - * @since SDL 2.0 - * - * Optional, Integer 0 - 65536 - */ -@property (strong) NSNumber *customButtonID; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.m deleted file mode 100644 index 8926b7951..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.m +++ /dev/null @@ -1,71 +0,0 @@ -// SDLOnButtonPress.m -// - -#import "SDLOnButtonPress.h" - -#import "SDLButtonName.h" -#import "SDLButtonPressMode.h" -#import "SDLNames.h" - - -@implementation SDLOnButtonPress - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnButtonPress]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setButtonName:(SDLButtonName *)buttonName { - if (buttonName != nil) { - [parameters setObject:buttonName forKey:NAMES_buttonName]; - } else { - [parameters removeObjectForKey:NAMES_buttonName]; - } -} - -- (SDLButtonName *)buttonName { - NSObject *obj = [parameters objectForKey:NAMES_buttonName]; - if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) { - return (SDLButtonName *)obj; - } else { - return [SDLButtonName valueOf:(NSString *)obj]; - } -} - -- (void)setButtonPressMode:(SDLButtonPressMode *)buttonPressMode { - if (buttonPressMode != nil) { - [parameters setObject:buttonPressMode forKey:NAMES_buttonPressMode]; - } else { - [parameters removeObjectForKey:NAMES_buttonPressMode]; - } -} - -- (SDLButtonPressMode *)buttonPressMode { - NSObject *obj = [parameters objectForKey:NAMES_buttonPressMode]; - if (obj == nil || [obj isKindOfClass:SDLButtonPressMode.class]) { - return (SDLButtonPressMode *)obj; - } else { - return [SDLButtonPressMode valueOf:(NSString *)obj]; - } -} - -- (void)setCustomButtonID:(NSNumber *)customButtonID { - if (customButtonID != nil) { - [parameters setObject:customButtonID forKey:NAMES_customButtonID]; - } else { - [parameters removeObjectForKey:NAMES_customButtonID]; - } -} - -- (NSNumber *)customButtonID { - return [parameters objectForKey:NAMES_customButtonID]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.h deleted file mode 100644 index 5d3d3f599..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.h +++ /dev/null @@ -1,42 +0,0 @@ -// SDLOnCommand.h -// - -#import "SDLRPCNotification.h" - -@class SDLTriggerSource; - - -/** - * This is called when a command was selected via VR after pressing the PTT button, or selected from the menu after - * pressing the MENU button. - * - * Note: The sequence of *SDLOnHMIStatus* and *SDLOnCommand* notifications for user-initiated interactions is indeterminate. - * - * @since SDL 1.0 - * @see SDLAddCommand SDLDeleteCommand SDLDeleteSubMenu - */ -@interface SDLOnCommand : SDLRPCNotification { -} - -/** - *Constructs a newly allocated SDLRPCNotification object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLRPCNotification object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The command ID of the command the user selected. This is the command ID value provided by the application in the SDLAddCommand operation that created the command. - */ -@property (strong) NSNumber *cmdID; - -/** - * @abstract Indicates whether command was selected via voice or via a menu selection (using the OK button). - */ -@property (strong) SDLTriggerSource *triggerSource; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.m deleted file mode 100644 index f16023d42..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.m +++ /dev/null @@ -1,53 +0,0 @@ -// SDLOnCommand.m -// - -#import "SDLOnCommand.h" - -#import "SDLNames.h" -#import "SDLTriggerSource.h" - - -@implementation SDLOnCommand - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnCommand]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setCmdID:(NSNumber *)cmdID { - if (cmdID != nil) { - [parameters setObject:cmdID forKey:NAMES_cmdID]; - } else { - [parameters removeObjectForKey:NAMES_cmdID]; - } -} - -- (NSNumber *)cmdID { - return [parameters objectForKey:NAMES_cmdID]; -} - -- (void)setTriggerSource:(SDLTriggerSource *)triggerSource { - if (triggerSource != nil) { - [parameters setObject:triggerSource forKey:NAMES_triggerSource]; - } else { - [parameters removeObjectForKey:NAMES_triggerSource]; - } -} - -- (SDLTriggerSource *)triggerSource { - NSObject *obj = [parameters objectForKey:NAMES_triggerSource]; - if (obj == nil || [obj isKindOfClass:SDLTriggerSource.class]) { - return (SDLTriggerSource *)obj; - } else { - return [SDLTriggerSource valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.h deleted file mode 100644 index d99e57393..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.h +++ /dev/null @@ -1,46 +0,0 @@ -// SDLOnDriverDistraction.h -// - -#import "SDLRPCNotification.h" - -@class SDLDriverDistractionState; - - -/** - * Notifies the application of the current driver distraction state (whether driver distraction rules are in effect, or - * not). - * - * HMI Status Requirements: - * - *
      - * HMILevel: - *
      • Can be sent with FULL, LIMITED or BACKGROUND
      - * AudioStreamingState: - *
      • Any
      - * SystemContext: - *
      • Any
      - *
    - * - * @since SDL 1.0 - */ -@interface SDLOnDriverDistraction : SDLRPCNotification { -} - -/** - * Constructs a newly allocated SDLOnDriverDistraction object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLOnDriverDistraction object indicated by the dictionary parameter - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The driver distraction state (i.e. whether driver distraction rules are in effect, or not) - */ -@property (strong) SDLDriverDistractionState *state; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.m deleted file mode 100644 index 1a87075b3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.m +++ /dev/null @@ -1,41 +0,0 @@ -// SDLOnDriverDistraction.m -// - -#import "SDLOnDriverDistraction.h" - -#import "SDLDriverDistractionState.h" -#import "SDLNames.h" - - -@implementation SDLOnDriverDistraction - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnDriverDistraction]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setState:(SDLDriverDistractionState *)state { - if (state != nil) { - [parameters setObject:state forKey:NAMES_state]; - } else { - [parameters removeObjectForKey:NAMES_state]; - } -} - -- (SDLDriverDistractionState *)state { - NSObject *obj = [parameters objectForKey:NAMES_state]; - if (obj == nil || [obj isKindOfClass:SDLDriverDistractionState.class]) { - return (SDLDriverDistractionState *)obj; - } else { - return [SDLDriverDistractionState valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.h deleted file mode 100644 index 618aaf7d2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.h +++ /dev/null @@ -1,17 +0,0 @@ -// SDLOnEncodedSyncPData.h -// - -#import "SDLRPCNotification.h" - - -@interface SDLOnEncodedSyncPData : SDLRPCNotification { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSMutableArray *data; -@property (strong) NSString *URL; -@property (strong) NSNumber *Timeout; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.m deleted file mode 100644 index f4aca251a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.m +++ /dev/null @@ -1,59 +0,0 @@ -// SDLOnEncodedSyncPData.m -// - -#import "SDLOnEncodedSyncPData.h" - -#import "SDLNames.h" - - -@implementation SDLOnEncodedSyncPData - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnEncodedSyncPData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setData:(NSMutableArray *)data { - if (data != nil) { - [parameters setObject:data forKey:NAMES_data]; - } else { - [parameters removeObjectForKey:NAMES_data]; - } -} - -- (NSMutableArray *)data { - return [parameters objectForKey:NAMES_data]; -} - -- (void)setURL:(NSString *)URL { - if (URL != nil) { - [parameters setObject:URL forKey:NAMES_URL]; - } else { - [parameters removeObjectForKey:NAMES_URL]; - } -} - -- (NSString *)URL { - return [parameters objectForKey:NAMES_URL]; -} - -- (void)setTimeout:(NSNumber *)Timeout { - if (Timeout != nil) { - [parameters setObject:Timeout forKey:NAMES_Timeout]; - } else { - [parameters removeObjectForKey:NAMES_Timeout]; - } -} - -- (NSNumber *)Timeout { - return [parameters objectForKey:NAMES_Timeout]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.h deleted file mode 100644 index c417070d5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.h +++ /dev/null @@ -1,58 +0,0 @@ -// SDLOnHMIStatus.h -// - -#import "SDLRPCNotification.h" - -@class SDLAudioStreamingState; -@class SDLHMILevel; -@class SDLSystemContext; - - -/** - * Notifies an application that HMI conditions have changed for the application. This indicates whether the application - * can speak phrases, display text, perform interactions, receive button presses and events, stream audio, etc. This - * notification will be sent to the application when there has been a change in any one or several of the indicated - * states (SDLHMILevel, SDLAudioStreamingState or SDLSystemContext) for the application. - * - * All three values are, in principle, independent of each other (though there may be some relationships). A value for - * one parameter should not be interpreted from the value of another parameter. - * - * There are no guarantees about the timeliness or latency of the SDLOnHMIStatus notification. Therefore, for example, - * information such as SDLAudioStreamingState may not indicate that the audio stream became inaudible to the user - * exactly when the SDLOnHMIStatus notification was received. - * - * @since SDL 1.0 - */ -@interface SDLOnHMIStatus : SDLRPCNotification { -} - -/** - *Constructs a newly allocated SDLOnHMIStatus object - */ -- (instancetype)init; - -/** - *

    Constructs a newly allocated SDLOnHMIStatus object indicated by the dictionary parameter

    - *@param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract SDLHMILevel in effect for the application - */ -@property (strong) SDLHMILevel *hmiLevel; - -/** - * @abstract Current state of audio streaming for the application. When this parameter has a value of NOT_AUDIBLE, the application must stop streaming audio to SDL. - * - * Informs app whether any currently streaming audio is audible to user (AUDIBLE) or not (NOT_AUDIBLE). A value of NOT_AUDIBLE means that either the application's audio will not be audible to the user, or that the application's audio should not be audible to the user (i.e. some other application on the mobile device may be streaming audio and the application's audio would be blended with that other audio). - */ -@property (strong) SDLAudioStreamingState *audioStreamingState; - -/** - * @abstract the System Context - * @discussion whether a user-initiated interaction is in-progress (VRSESSION or MENU), or not (MAIN) - */ -@property (strong) SDLSystemContext *systemContext; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.m deleted file mode 100644 index e3dc0d7fc..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.m +++ /dev/null @@ -1,77 +0,0 @@ -// SDLOnHMIStatus.m -// - -#import "SDLOnHMIStatus.h" - -#import "SDLAudioStreamingState.h" -#import "SDLHMILevel.h" -#import "SDLNames.h" -#import "SDLSystemContext.h" - - -@implementation SDLOnHMIStatus - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnHMIStatus]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setHmiLevel:(SDLHMILevel *)hmiLevel { - if (hmiLevel != nil) { - [parameters setObject:hmiLevel forKey:NAMES_hmiLevel]; - } else { - [parameters removeObjectForKey:NAMES_hmiLevel]; - } -} - -- (SDLHMILevel *)hmiLevel { - NSObject *obj = [parameters objectForKey:NAMES_hmiLevel]; - if (obj == nil || [obj isKindOfClass:SDLHMILevel.class]) { - return (SDLHMILevel *)obj; - } else { - return [SDLHMILevel valueOf:(NSString *)obj]; - } -} - -- (void)setAudioStreamingState:(SDLAudioStreamingState *)audioStreamingState { - if (audioStreamingState != nil) { - [parameters setObject:audioStreamingState forKey:NAMES_audioStreamingState]; - } else { - [parameters removeObjectForKey:NAMES_audioStreamingState]; - } -} - -- (SDLAudioStreamingState *)audioStreamingState { - NSObject *obj = [parameters objectForKey:NAMES_audioStreamingState]; - if (obj == nil || [obj isKindOfClass:SDLAudioStreamingState.class]) { - return (SDLAudioStreamingState *)obj; - } else { - return [SDLAudioStreamingState valueOf:(NSString *)obj]; - } -} - -- (void)setSystemContext:(SDLSystemContext *)systemContext { - if (systemContext != nil) { - [parameters setObject:systemContext forKey:NAMES_systemContext]; - } else { - [parameters removeObjectForKey:NAMES_systemContext]; - } -} - -- (SDLSystemContext *)systemContext { - NSObject *obj = [parameters objectForKey:NAMES_systemContext]; - if (obj == nil || [obj isKindOfClass:SDLSystemContext.class]) { - return (SDLSystemContext *)obj; - } else { - return [SDLSystemContext valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHashChange.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHashChange.h deleted file mode 100644 index 4facf1f15..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHashChange.h +++ /dev/null @@ -1,15 +0,0 @@ -// SDLOnHashChange.h -// - - -#import "SDLRPCNotification.h" - -@interface SDLOnHashChange : SDLRPCNotification { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSString *hashID; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHashChange.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHashChange.m deleted file mode 100644 index b1bfd8c6a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHashChange.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLOnHashChange.m -// - - -#import "SDLOnHashChange.h" - -#import "SDLNames.h" - -@implementation SDLOnHashChange - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnHashChange]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setHashID:(NSString *)hashID { - if (hashID != nil) { - [parameters setObject:hashID forKey:NAMES_hashID]; - } else { - [parameters removeObjectForKey:NAMES_hashID]; - } -} - -- (NSString *)hashID { - return [parameters objectForKey:NAMES_hashID]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.h deleted file mode 100644 index e976d6c88..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLOnKeyboardInput.h -// - -#import "SDLRPCNotification.h" - -@class SDLKeyboardEvent; - - -@interface SDLOnKeyboardInput : SDLRPCNotification { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLKeyboardEvent *event; -@property (strong) NSString *data; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.m deleted file mode 100644 index a70a7d06c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.m +++ /dev/null @@ -1,53 +0,0 @@ -// SDLOnKeyboardInput.m -// - -#import "SDLOnKeyboardInput.h" - -#import "SDLKeyboardEvent.h" -#import "SDLNames.h" - - -@implementation SDLOnKeyboardInput - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnKeyboardInput]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setEvent:(SDLKeyboardEvent *)event { - if (event != nil) { - [parameters setObject:event forKey:NAMES_event]; - } else { - [parameters removeObjectForKey:NAMES_event]; - } -} - -- (SDLKeyboardEvent *)event { - NSObject *obj = [parameters objectForKey:NAMES_event]; - if (obj == nil || [obj isKindOfClass:SDLKeyboardEvent.class]) { - return (SDLKeyboardEvent *)obj; - } else { - return [SDLKeyboardEvent valueOf:(NSString *)obj]; - } -} - -- (void)setData:(NSString *)data { - if (data != nil) { - [parameters setObject:data forKey:NAMES_data]; - } else { - [parameters removeObjectForKey:NAMES_data]; - } -} - -- (NSString *)data { - return [parameters objectForKey:NAMES_data]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.h deleted file mode 100644 index b794edcd1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.h +++ /dev/null @@ -1,38 +0,0 @@ -// SDLOnLanguageChange.h -// - -#import "SDLRPCNotification.h" - -@class SDLLanguage; - - -/** - * Provides information to what language the SDL HMI language was changed - * - * @since SDL 2.0 - */ -@interface SDLOnLanguageChange : SDLRPCNotification { -} - -/** - *Constructs a newly allocated SDLOnLanguageChange object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLOnLanguageChange object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract Current SDL voice engine (VR+TTS) language - */ -@property (strong) SDLLanguage *language; - -/** - * @abstract Current display language - */ -@property (strong) SDLLanguage *hmiDisplayLanguage; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.m deleted file mode 100644 index 216d0c4a5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.m +++ /dev/null @@ -1,58 +0,0 @@ -// SDLOnLanguageChange.m -// - -#import "SDLOnLanguageChange.h" - -#import "SDLLanguage.h" -#import "SDLNames.h" - - -@implementation SDLOnLanguageChange - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnLanguageChange]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setLanguage:(SDLLanguage *)language { - if (language != nil) { - [parameters setObject:language forKey:NAMES_language]; - } else { - [parameters removeObjectForKey:NAMES_language]; - } -} - -- (SDLLanguage *)language { - NSObject *obj = [parameters objectForKey:NAMES_language]; - if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { - return (SDLLanguage *)obj; - } else { - return [SDLLanguage valueOf:(NSString *)obj]; - } -} - -- (void)setHmiDisplayLanguage:(SDLLanguage *)hmiDisplayLanguage { - if (hmiDisplayLanguage != nil) { - [parameters setObject:hmiDisplayLanguage forKey:NAMES_hmiDisplayLanguage]; - } else { - [parameters removeObjectForKey:NAMES_hmiDisplayLanguage]; - } -} - -- (SDLLanguage *)hmiDisplayLanguage { - NSObject *obj = [parameters objectForKey:NAMES_hmiDisplayLanguage]; - if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { - return (SDLLanguage *)obj; - } else { - return [SDLLanguage valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.h deleted file mode 100644 index 3a4a31452..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// SDLOnLockScreenStatus.h -// SmartDeviceLink -// - -#import "SDLRPCNotification.h" - -@class SDLHMILevel; -@class SDLLockScreenStatus; - - -/** - * To help prevent driver distraction, any SmartDeviceLink application is required to implement a lockscreen that must be enforced while the application is active on the system while the vehicle is in motion. - * - * This lockscreen must perform the following: - * Limit all application control usability from the mobile device with a full-screen static image overlay or separate view. - * For simplicity, the OnLockScreenStatus RPC will be provided via the onOnLockScreenNotification call back. The call back will include the LockScreenStatus enum which indicates if the lockscreen is required, optional or not required. - * The call back also includes details regarding the current HMI_Status level, driver distraction status and user selection status of the application. - */ -@interface SDLOnLockScreenStatus : SDLRPCNotification - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - *

    Get the current driver distraction status(i.e. whether driver distraction rules are in effect, or not)

    - * @return String - */ -@property (strong) NSNumber *driverDistractionStatus; -/** - *

    Get user selection status for the application (has the app been selected via hmi or voice command)

    - * @return Boolean the current user selection status - */ - -@property (strong) NSNumber *userSelected; -/** - *

    Get the {@linkplain LockScreenStatus} enumeration, indicating if the lockscreen should be required, optional or off

    - * @return {@linkplain LockScreenStatus} - */ -@property (strong) SDLLockScreenStatus *lockScreenStatus; -/** - *

    Get HMILevel in effect for the application

    - * @return {@linkplain HMILevel} the current HMI Level in effect for the application - */ -@property (strong) SDLHMILevel *hmiLevel; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.m deleted file mode 100644 index fc9e39c00..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.m +++ /dev/null @@ -1,84 +0,0 @@ -// -// SDLOnLockScreenStatus.m -// SmartDeviceLink -// - -#import "SDLOnLockScreenStatus.h" - -#import "SDLHMILevel.h" -#import "SDLLockScreenStatus.h" - - -@implementation SDLOnLockScreenStatus - -- (instancetype)init { - if (self = [super initWithName:@"OnLockScreenStatus"]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setLockScreenStatus:(SDLLockScreenStatus *)lockScreenStatus { - if (lockScreenStatus != nil) { - [parameters setObject:lockScreenStatus forKey:@"OnLockScreenStatus"]; - } else { - [parameters removeObjectForKey:@"OnLockScreenStatus"]; - } -} - -- (SDLLockScreenStatus *)lockScreenStatus { - NSObject *obj = [parameters objectForKey:@"OnLockScreenStatus"]; - if (obj == nil || [obj isKindOfClass:SDLLockScreenStatus.class]) { - return (SDLLockScreenStatus *)obj; - } else { - return [SDLLockScreenStatus valueOf:(NSString *)obj]; - } -} - -- (void)setHmiLevel:(SDLHMILevel *)hmiLevel { - if (hmiLevel != nil) { - [parameters setObject:hmiLevel forKey:@"hmilevel"]; - } else { - [parameters removeObjectForKey:@"hmilevel"]; - } -} - -- (SDLHMILevel *)hmiLevel { - NSObject *obj = [parameters objectForKey:@"hmilevel"]; - if (obj == nil || [obj isKindOfClass:SDLHMILevel.class]) { - return (SDLHMILevel *)obj; - } else { - return [SDLHMILevel valueOf:(NSString *)obj]; - } -} - -- (void)setUserSelected:(NSNumber *)userSelected { - if (userSelected != nil) { - [parameters setObject:userSelected forKey:@"userselected"]; - } else { - [parameters removeObjectForKey:@"userselected"]; - } -} - -- (NSNumber *)userSelected { - return [parameters objectForKey:@"userselected"]; -} - -- (void)setDriverDistractionStatus:(NSNumber *)driverDistractionStatus { - if (driverDistractionStatus != nil) { - [parameters setObject:driverDistractionStatus forKey:@"driverdistractionstatus"]; - } else { - [parameters removeObjectForKey:@"driverdistractionstatus"]; - } -} - -- (NSNumber *)driverDistractionStatus { - return [parameters objectForKey:@"driverdistractionstatus"]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnPermissionsChange.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnPermissionsChange.h deleted file mode 100644 index 267a63a10..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnPermissionsChange.h +++ /dev/null @@ -1,35 +0,0 @@ -// SDLOnPermissionsChange.h -// - -#import "SDLRPCNotification.h" - - -/** - * Provides update to app of which sets of functions are available - * - * @since SDL 2.0 - */ -@interface SDLOnPermissionsChange : SDLRPCNotification { -} - -/** - * Constructs a newly allocated SDLOnPermissionsChange object - */ -- (instancetype)init; - -/** - * Constructs a newly allocated SDLOnPermissionsChange object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract Describes change in permissions for a given set of RPCs - * - * Required, Array of SDLPermissionItem, Array size 0 - 500 - * - * @see SDLPermissionItem - */ -@property (strong) NSMutableArray *permissionItem; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnPermissionsChange.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnPermissionsChange.m deleted file mode 100644 index e80df88c4..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnPermissionsChange.m +++ /dev/null @@ -1,45 +0,0 @@ -// SDLOnPermissionsChange.m -// - -#import "SDLOnPermissionsChange.h" - -#import "SDLNames.h" -#import "SDLPermissionItem.h" - - -@implementation SDLOnPermissionsChange - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnPermissionsChange]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setPermissionItem:(NSMutableArray *)permissionItem { - if (permissionItem != nil) { - [parameters setObject:permissionItem forKey:NAMES_permissionItem]; - } else { - [parameters removeObjectForKey:NAMES_permissionItem]; - } -} - -- (NSMutableArray *)permissionItem { - NSMutableArray *array = [parameters objectForKey:NAMES_permissionItem]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLPermissionItem.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLPermissionItem alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.h deleted file mode 100644 index 8729a881a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.h +++ /dev/null @@ -1,16 +0,0 @@ -// SDLOnSyncPData.h -// - - -#import "SDLRPCNotification.h" - -@interface SDLOnSyncPData : SDLRPCNotification { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSString *URL; -@property (strong) NSNumber *Timeout; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.m deleted file mode 100644 index 11fe8a3ac..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLOnSyncPData.m -// - - -#import "SDLOnSyncPData.h" - -#import "SDLNames.h" - -@implementation SDLOnSyncPData - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnSyncPData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setURL:(NSString *)URL { - if (URL != nil) { - [parameters setObject:URL forKey:NAMES_URL]; - } else { - [parameters removeObjectForKey:NAMES_URL]; - } -} - -- (NSString *)URL { - return [parameters objectForKey:NAMES_URL]; -} - -- (void)setTimeout:(NSNumber *)Timeout { - if (Timeout != nil) { - [parameters setObject:Timeout forKey:NAMES_Timeout]; - } else { - [parameters removeObjectForKey:NAMES_Timeout]; - } -} - -- (NSNumber *)Timeout { - return [parameters objectForKey:NAMES_Timeout]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h deleted file mode 100644 index b590f0650..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h +++ /dev/null @@ -1,23 +0,0 @@ -// SDLOnSystemRequest.h -// - -#import "SDLRPCNotification.h" - -@class SDLFileType; -@class SDLRequestType; - - -@interface SDLOnSystemRequest : SDLRPCNotification { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLRequestType *requestType; -@property (strong) NSString *url; -@property (strong) NSNumber *timeout; -@property (strong) SDLFileType *fileType; -@property (strong) NSNumber *offset; -@property (strong) NSNumber *length; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.m deleted file mode 100644 index c5aff7569..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.m +++ /dev/null @@ -1,107 +0,0 @@ -// SDLOnSystemRequest.m -// - -#import "SDLOnSystemRequest.h" - -#import "SDLFileType.h" -#import "SDLNames.h" -#import "SDLRequestType.h" - - -@implementation SDLOnSystemRequest - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnSystemRequest]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setRequestType:(SDLRequestType *)requestType { - if (requestType != nil) { - [parameters setObject:requestType forKey:NAMES_requestType]; - } else { - [parameters removeObjectForKey:NAMES_requestType]; - } -} - -- (SDLRequestType *)requestType { - NSObject *obj = [parameters objectForKey:NAMES_requestType]; - if (obj == nil || [obj isKindOfClass:SDLRequestType.class]) { - return (SDLRequestType *)obj; - } else { - return [SDLRequestType valueOf:(NSString *)obj]; - } -} - -- (void)setUrl:(NSString *)url { - if (url != nil) { - [parameters setObject:url forKey:NAMES_url]; - } else { - [parameters removeObjectForKey:NAMES_url]; - } -} - -- (NSString *)url { - return [parameters objectForKey:NAMES_url]; -} - -- (void)setTimeout:(NSNumber *)timeout { - if (timeout != nil) { - [parameters setObject:timeout forKey:NAMES_timeout]; - } else { - [parameters removeObjectForKey:NAMES_timeout]; - } -} - -- (NSNumber *)timeout { - return [parameters objectForKey:NAMES_timeout]; -} - -- (void)setFileType:(SDLFileType *)fileType { - if (fileType != nil) { - [parameters setObject:fileType forKey:NAMES_fileType]; - } else { - [parameters removeObjectForKey:NAMES_fileType]; - } -} - -- (SDLFileType *)fileType { - NSObject *obj = [parameters objectForKey:NAMES_fileType]; - if (obj == nil || [obj isKindOfClass:SDLFileType.class]) { - return (SDLFileType *)obj; - } else { - return [SDLFileType valueOf:(NSString *)obj]; - } -} - -- (void)setOffset:(NSNumber *)offset { - if (offset != nil) { - [parameters setObject:offset forKey:NAMES_offset]; - } else { - [parameters removeObjectForKey:NAMES_offset]; - } -} - -- (NSNumber *)offset { - return [parameters objectForKey:NAMES_offset]; -} - -- (void)setLength:(NSNumber *)length { - if (length != nil) { - [parameters setObject:length forKey:NAMES_length]; - } else { - [parameters removeObjectForKey:NAMES_length]; - } -} - -- (NSNumber *)length { - return [parameters objectForKey:NAMES_length]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.h deleted file mode 100644 index 8dec001ca..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.h +++ /dev/null @@ -1,17 +0,0 @@ -// SDLOnTBTClientState.h -// - -#import "SDLRPCNotification.h" - -@class SDLTBTState; - - -@interface SDLOnTBTClientState : SDLRPCNotification { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLTBTState *state; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.m deleted file mode 100644 index ee0dc1efc..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.m +++ /dev/null @@ -1,41 +0,0 @@ -// SDLOnTBTClientState.m -// - -#import "SDLOnTBTClientState.h" - -#import "SDLNames.h" -#import "SDLTBTState.h" - - -@implementation SDLOnTBTClientState - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnTBTClientState]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setState:(SDLTBTState *)state { - if (state != nil) { - [parameters setObject:state forKey:NAMES_state]; - } else { - [parameters removeObjectForKey:NAMES_state]; - } -} - -- (SDLTBTState *)state { - NSObject *obj = [parameters objectForKey:NAMES_state]; - if (obj == nil || [obj isKindOfClass:SDLTBTState.class]) { - return (SDLTBTState *)obj; - } else { - return [SDLTBTState valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.h deleted file mode 100644 index 68f1fa707..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLOnTouchEvent.h -// - -#import "SDLRPCNotification.h" - -@class SDLTouchType; - - -@interface SDLOnTouchEvent : SDLRPCNotification { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLTouchType *type; -@property (strong) NSMutableArray *event; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.m deleted file mode 100644 index e73c79603..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.m +++ /dev/null @@ -1,63 +0,0 @@ -// SDLOnTouchEvent.m -// - -#import "SDLOnTouchEvent.h" - -#import "SDLNames.h" -#import "SDLTouchEvent.h" -#import "SDLTouchType.h" - - -@implementation SDLOnTouchEvent - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnTouchEvent]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setType:(SDLTouchType *)type { - if (type != nil) { - [parameters setObject:type forKey:NAMES_type]; - } else { - [parameters removeObjectForKey:NAMES_type]; - } -} - -- (SDLTouchType *)type { - NSObject *obj = [parameters objectForKey:NAMES_type]; - if (obj == nil || [obj isKindOfClass:SDLTouchType.class]) { - return (SDLTouchType *)obj; - } else { - return [SDLTouchType valueOf:(NSString *)obj]; - } -} - -- (void)setEvent:(NSMutableArray *)event { - if (event != nil) { - [parameters setObject:event forKey:NAMES_event]; - } else { - [parameters removeObjectForKey:NAMES_event]; - } -} - -- (NSMutableArray *)event { - NSMutableArray *array = [parameters objectForKey:NAMES_event]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTouchEvent.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTouchEvent alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.h deleted file mode 100644 index 245477e3b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.h +++ /dev/null @@ -1,150 +0,0 @@ -// SDLOnVehicleData.h -// - -#import "SDLRPCNotification.h" - -@class SDLAirbagStatus; -@class SDLBeltStatus; -@class SDLBodyInformation; -@class SDLClusterModeStatus; -@class SDLComponentVolumeStatus; -@class SDLDeviceStatus; -@class SDLECallInfo; -@class SDLEmergencyEvent; -@class SDLGPSData; -@class SDLHeadLampStatus; -@class SDLMyKey; -@class SDLPRNDL; -@class SDLTireStatus; -@class SDLVehicleDataEventStatus; -@class SDLWiperStatus; - - -/** - * Request vehicle data. - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLOnVehicleData : SDLRPCNotification { -} - - -/** - * @abstract Constructs a new SDLOnVehicleData object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLOnVehicleData object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A SDLGPSData* value. See GPSData. - */ -@property (strong) SDLGPSData *gps; - -/** - * @abstract The vehicle speed in kilometers per hour. - */ -@property (strong) NSNumber *speed; - -/** - * @abstract The number of revolutions per minute of the engine. - */ -@property (strong) NSNumber *rpm; - -/** - * @abstract The fuel level in the tank (percentage) - */ -@property (strong) NSNumber *fuelLevel; - -/** - * @abstract A SDLComponentVolumeStatus* value. The fuel level state. - */ -@property (strong) SDLComponentVolumeStatus *fuelLevel_State; - -/** - * @abstract The instantaneous fuel consumption in microlitres. - */ -@property (strong) NSNumber *instantFuelConsumption; - -/** - * @abstract The external temperature in degrees celsius. - */ -@property (strong) NSNumber *externalTemperature; - -/** - * @abstract The Vehicle Identification Number - */ -@property (strong) NSString *vin; - -/** - * @abstract See PRNDL. - */ -@property (strong) SDLPRNDL *prndl; - -/** - * @abstract A SDLTireStatus* value. See TireStatus. - */ -@property (strong) SDLTireStatus *tirePressure; - -/** - * @abstract Odometer reading in km. - */ -@property (strong) NSNumber *odometer; - -/** - * @abstract A SDLBeltStatus* value. The status of the seat belts. - */ -@property (strong) SDLBeltStatus *beltStatus; - -/** - * @abstract A SDLBodyInformation* value. The body information including power modes. - */ -@property (strong) SDLBodyInformation *bodyInformation; - -/** - * @abstract A SDLDeviceStatus* value. The device status including signal and battery strength. - */ -@property (strong) SDLDeviceStatus *deviceStatus; - -/** - * @abstract A SDLVehicleDataResult* value. The status of the brake pedal. - */ -@property (strong) SDLVehicleDataEventStatus *driverBraking; - -/** - * @abstract A SDLWiperStatus* value. The status of the wipers. - */ -@property (strong) SDLWiperStatus *wiperStatus; - -/** - * @abstract A SDLHeadLampStatus* value. Status of the head lamps. - */ -@property (strong) SDLHeadLampStatus *headLampStatus; - -/** - * @abstract Torque value for engine (in Nm) on non-diesel variants. - */ -@property (strong) NSNumber *engineTorque; - -/** - * @abstract Accelerator pedal position (percentage depressed) - */ -@property (strong) NSNumber *accPedalPosition; - -/** - * @abstract Current angle of the steering wheel (in deg) - */ -@property (strong) NSNumber *steeringWheelAngle; -@property (strong) SDLECallInfo *eCallInfo; -@property (strong) SDLAirbagStatus *airbagStatus; -@property (strong) SDLEmergencyEvent *emergencyEvent; -@property (strong) SDLClusterModeStatus *clusterModeStatus; -@property (strong) SDLMyKey *myKey; - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.m deleted file mode 100644 index 3386ca450..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.m +++ /dev/null @@ -1,413 +0,0 @@ -// SDLOnVehicleData.m -// - -#import "SDLOnVehicleData.h" - -#import "SDLAirbagStatus.h" -#import "SDLBeltStatus.h" -#import "SDLBodyInformation.h" -#import "SDLClusterModeStatus.h" -#import "SDLComponentVolumeStatus.h" -#import "SDLDeviceStatus.h" -#import "SDLECallInfo.h" -#import "SDLEmergencyEvent.h" -#import "SDLGPSData.h" -#import "SDLHeadLampStatus.h" -#import "SDLMyKey.h" -#import "SDLNames.h" -#import "SDLPRNDL.h" -#import "SDLTireStatus.h" -#import "SDLVehicleDataEventStatus.h" -#import "SDLWiperStatus.h" - - -@implementation SDLOnVehicleData - -- (instancetype)init { - if (self = [super initWithName:NAMES_OnVehicleData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setGps:(SDLGPSData *)gps { - if (gps != nil) { - [parameters setObject:gps forKey:NAMES_gps]; - } else { - [parameters removeObjectForKey:NAMES_gps]; - } -} - -- (SDLGPSData *)gps { - NSObject *obj = [parameters objectForKey:NAMES_gps]; - if (obj == nil || [obj isKindOfClass:SDLGPSData.class]) { - return (SDLGPSData *)obj; - } else { - return [[SDLGPSData alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setSpeed:(NSNumber *)speed { - if (speed != nil) { - [parameters setObject:speed forKey:NAMES_speed]; - } else { - [parameters removeObjectForKey:NAMES_speed]; - } -} - -- (NSNumber *)speed { - return [parameters objectForKey:NAMES_speed]; -} - -- (void)setRpm:(NSNumber *)rpm { - if (rpm != nil) { - [parameters setObject:rpm forKey:NAMES_rpm]; - } else { - [parameters removeObjectForKey:NAMES_rpm]; - } -} - -- (NSNumber *)rpm { - return [parameters objectForKey:NAMES_rpm]; -} - -- (void)setFuelLevel:(NSNumber *)fuelLevel { - if (fuelLevel != nil) { - [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel]; - } -} - -- (NSNumber *)fuelLevel { - return [parameters objectForKey:NAMES_fuelLevel]; -} - -- (void)setFuelLevel_State:(SDLComponentVolumeStatus *)fuelLevel_State { - if (fuelLevel_State != nil) { - [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel_State]; - } -} - -- (SDLComponentVolumeStatus *)fuelLevel_State { - NSObject *obj = [parameters objectForKey:NAMES_fuelLevel_State]; - if (obj == nil || [obj isKindOfClass:SDLComponentVolumeStatus.class]) { - return (SDLComponentVolumeStatus *)obj; - } else { - return [SDLComponentVolumeStatus valueOf:(NSString *)obj]; - } -} - -- (void)setInstantFuelConsumption:(NSNumber *)instantFuelConsumption { - if (instantFuelConsumption != nil) { - [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; - } else { - [parameters removeObjectForKey:NAMES_instantFuelConsumption]; - } -} - -- (NSNumber *)instantFuelConsumption { - return [parameters objectForKey:NAMES_instantFuelConsumption]; -} - -- (void)setExternalTemperature:(NSNumber *)externalTemperature { - if (externalTemperature != nil) { - [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; - } else { - [parameters removeObjectForKey:NAMES_externalTemperature]; - } -} - -- (NSNumber *)externalTemperature { - return [parameters objectForKey:NAMES_externalTemperature]; -} - -- (void)setVin:(NSString *)vin { - if (vin != nil) { - [parameters setObject:vin forKey:NAMES_vin]; - } else { - [parameters removeObjectForKey:NAMES_vin]; - } -} - -- (NSString *)vin { - return [parameters objectForKey:NAMES_vin]; -} - -- (void)setPrndl:(SDLPRNDL *)prndl { - if (prndl != nil) { - [parameters setObject:prndl forKey:NAMES_prndl]; - } else { - [parameters removeObjectForKey:NAMES_prndl]; - } -} - -- (SDLPRNDL *)prndl { - NSObject *obj = [parameters objectForKey:NAMES_prndl]; - if (obj == nil || [obj isKindOfClass:SDLPRNDL.class]) { - return (SDLPRNDL *)obj; - } else { - return [SDLPRNDL valueOf:(NSString *)obj]; - } -} - -- (void)setTirePressure:(SDLTireStatus *)tirePressure { - if (tirePressure != nil) { - [parameters setObject:tirePressure forKey:NAMES_tirePressure]; - } else { - [parameters removeObjectForKey:NAMES_tirePressure]; - } -} - -- (SDLTireStatus *)tirePressure { - NSObject *obj = [parameters objectForKey:NAMES_tirePressure]; - if (obj == nil || [obj isKindOfClass:SDLTireStatus.class]) { - return (SDLTireStatus *)obj; - } else { - return [[SDLTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setOdometer:(NSNumber *)odometer { - if (odometer != nil) { - [parameters setObject:odometer forKey:NAMES_odometer]; - } else { - [parameters removeObjectForKey:NAMES_odometer]; - } -} - -- (NSNumber *)odometer { - return [parameters objectForKey:NAMES_odometer]; -} - -- (void)setBeltStatus:(SDLBeltStatus *)beltStatus { - if (beltStatus != nil) { - [parameters setObject:beltStatus forKey:NAMES_beltStatus]; - } else { - [parameters removeObjectForKey:NAMES_beltStatus]; - } -} - -- (SDLBeltStatus *)beltStatus { - NSObject *obj = [parameters objectForKey:NAMES_beltStatus]; - if (obj == nil || [obj isKindOfClass:SDLBeltStatus.class]) { - return (SDLBeltStatus *)obj; - } else { - return [[SDLBeltStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setBodyInformation:(SDLBodyInformation *)bodyInformation { - if (bodyInformation != nil) { - [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; - } else { - [parameters removeObjectForKey:NAMES_bodyInformation]; - } -} - -- (SDLBodyInformation *)bodyInformation { - NSObject *obj = [parameters objectForKey:NAMES_bodyInformation]; - if (obj == nil || [obj isKindOfClass:SDLBodyInformation.class]) { - return (SDLBodyInformation *)obj; - } else { - return [[SDLBodyInformation alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setDeviceStatus:(SDLDeviceStatus *)deviceStatus { - if (deviceStatus != nil) { - [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; - } else { - [parameters removeObjectForKey:NAMES_deviceStatus]; - } -} - -- (SDLDeviceStatus *)deviceStatus { - NSObject *obj = [parameters objectForKey:NAMES_deviceStatus]; - if (obj == nil || [obj isKindOfClass:SDLDeviceStatus.class]) { - return (SDLDeviceStatus *)obj; - } else { - return [[SDLDeviceStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setDriverBraking:(SDLVehicleDataEventStatus *)driverBraking { - if (driverBraking != nil) { - [parameters setObject:driverBraking forKey:NAMES_driverBraking]; - } else { - [parameters removeObjectForKey:NAMES_driverBraking]; - } -} - -- (SDLVehicleDataEventStatus *)driverBraking { - NSObject *obj = [parameters objectForKey:NAMES_driverBraking]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { - return (SDLVehicleDataEventStatus *)obj; - } else { - return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; - } -} - -- (void)setWiperStatus:(SDLWiperStatus *)wiperStatus { - if (wiperStatus != nil) { - [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; - } else { - [parameters removeObjectForKey:NAMES_wiperStatus]; - } -} - -- (SDLWiperStatus *)wiperStatus { - NSObject *obj = [parameters objectForKey:NAMES_wiperStatus]; - if (obj == nil || [obj isKindOfClass:SDLWiperStatus.class]) { - return (SDLWiperStatus *)obj; - } else { - return [SDLWiperStatus valueOf:(NSString *)obj]; - } -} - -- (void)setHeadLampStatus:(SDLHeadLampStatus *)headLampStatus { - if (headLampStatus != nil) { - [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; - } else { - [parameters removeObjectForKey:NAMES_headLampStatus]; - } -} - -- (SDLHeadLampStatus *)headLampStatus { - NSObject *obj = [parameters objectForKey:NAMES_headLampStatus]; - if (obj == nil || [obj isKindOfClass:SDLHeadLampStatus.class]) { - return (SDLHeadLampStatus *)obj; - } else { - return [[SDLHeadLampStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setEngineTorque:(NSNumber *)engineTorque { - if (engineTorque != nil) { - [parameters setObject:engineTorque forKey:NAMES_engineTorque]; - } else { - [parameters removeObjectForKey:NAMES_engineTorque]; - } -} - -- (NSNumber *)engineTorque { - return [parameters objectForKey:NAMES_engineTorque]; -} - -- (void)setAccPedalPosition:(NSNumber *)accPedalPosition { - if (accPedalPosition != nil) { - [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; - } else { - [parameters removeObjectForKey:NAMES_accPedalPosition]; - } -} - -- (NSNumber *)accPedalPosition { - return [parameters objectForKey:NAMES_accPedalPosition]; -} - -- (void)setSteeringWheelAngle:(NSNumber *)steeringWheelAngle { - if (steeringWheelAngle != nil) { - [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; - } else { - [parameters removeObjectForKey:NAMES_steeringWheelAngle]; - } -} - -- (NSNumber *)steeringWheelAngle { - return [parameters objectForKey:NAMES_steeringWheelAngle]; -} - -- (void)setECallInfo:(SDLECallInfo *)eCallInfo { - if (eCallInfo != nil) { - [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; - } else { - [parameters removeObjectForKey:NAMES_eCallInfo]; - } -} - -- (SDLECallInfo *)eCallInfo { - NSObject *obj = [parameters objectForKey:NAMES_eCallInfo]; - if (obj == nil || [obj isKindOfClass:SDLECallInfo.class]) { - return (SDLECallInfo *)obj; - } else { - return [[SDLECallInfo alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setAirbagStatus:(SDLAirbagStatus *)airbagStatus { - if (airbagStatus != nil) { - [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; - } else { - [parameters removeObjectForKey:NAMES_airbagStatus]; - } -} - -- (SDLAirbagStatus *)airbagStatus { - NSObject *obj = [parameters objectForKey:NAMES_airbagStatus]; - if (obj == nil || [obj isKindOfClass:SDLAirbagStatus.class]) { - return (SDLAirbagStatus *)obj; - } else { - return [[SDLAirbagStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setEmergencyEvent:(SDLEmergencyEvent *)emergencyEvent { - if (emergencyEvent != nil) { - [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; - } else { - [parameters removeObjectForKey:NAMES_emergencyEvent]; - } -} - -- (SDLEmergencyEvent *)emergencyEvent { - NSObject *obj = [parameters objectForKey:NAMES_emergencyEvent]; - if (obj == nil || [obj isKindOfClass:SDLEmergencyEvent.class]) { - return (SDLEmergencyEvent *)obj; - } else { - return [[SDLEmergencyEvent alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setClusterModeStatus:(SDLClusterModeStatus *)clusterModeStatus { - if (clusterModeStatus != nil) { - [parameters setObject:clusterModeStatus forKey:NAMES_clusterModeStatus]; - } else { - [parameters removeObjectForKey:NAMES_clusterModeStatus]; - } -} - -- (SDLClusterModeStatus *)clusterModeStatus { - NSObject *obj = [parameters objectForKey:NAMES_clusterModeStatus]; - if (obj == nil || [obj isKindOfClass:SDLClusterModeStatus.class]) { - return (SDLClusterModeStatus *)obj; - } else { - return [[SDLClusterModeStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setMyKey:(SDLMyKey *)myKey { - if (myKey != nil) { - [parameters setObject:myKey forKey:NAMES_myKey]; - } else { - [parameters removeObjectForKey:NAMES_myKey]; - } -} - -- (SDLMyKey *)myKey { - NSObject *obj = [parameters objectForKey:NAMES_myKey]; - if (obj == nil || [obj isKindOfClass:SDLMyKey.class]) { - return (SDLMyKey *)obj; - } else { - return [[SDLMyKey alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPRNDL.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPRNDL.h deleted file mode 100644 index 6095d1a82..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPRNDL.h +++ /dev/null @@ -1,143 +0,0 @@ -// SDLPRNDL.h -// - - -#import "SDLEnum.h" - -/** - * The selected gear the car is in. - * - * @since SDL 2.0 - */ -@interface SDLPRNDL : SDLEnum { -} - -/** - * @abstract get SDLPRNDL according value string - * - * @param value The value of the string to get an object for - * - * @return SDLPRNDL object - */ -+ (SDLPRNDL *)valueOf:(NSString *)value; - -/** - * @abstract declare an array to store all possible SDLPRNDL values - * - * @return the array - */ -+ (NSArray *)values; - -/** - * @abstract Park - * - * @return SDLPRNDL: *PARK* - */ -+ (SDLPRNDL *)PARK; - -/** - * @abstract Reverse gear - * - * @return SDLPRNDL: *REVERSE* - */ -+ (SDLPRNDL *)REVERSE; - -/** - * @abstract No gear - * - * @return SDLPRNDL: *NEUTRAL* - */ -+ (SDLPRNDL *)NEUTRAL; - -/** - * @abstract: Drive gear - * - * @return SDLPRNDL: *DRIVE* - */ -+ (SDLPRNDL *)DRIVE; - -/** - * @abstract Drive Sport mode - * - * @return SDLPRNDL: *SPORT* - */ -+ (SDLPRNDL *)SPORT; - -/** - * @abstract 1st gear hold - * - * @return SDLPRNDL: *LOWGEAR* - */ -+ (SDLPRNDL *)LOWGEAR; - -/** - * @abstract First gear - * - * @return SDLPRNDL: *FIRST* - */ -+ (SDLPRNDL *)FIRST; - -/** - * @abstract Second gear - * - * @return SDLPRNDL: *SECOND* - */ -+ (SDLPRNDL *)SECOND; - -/** - * @abstract Third gear - * - * @return SDLPRNDL: *THIRD* - */ -+ (SDLPRNDL *)THIRD; - -/** - * @abstract Fourth gear - * - * @return SDLPRNDL: *FOURTH* - */ -+ (SDLPRNDL *)FOURTH; - -/** - * @abstract Fifth gear - * - * @return SDLPRNDL: *FIFTH* - */ -+ (SDLPRNDL *)FIFTH; - -/** - * @abstract Sixth gear - * - * @return SDLPRNDL: *SIXTH* - */ -+ (SDLPRNDL *)SIXTH; - -/** - * @abstract Seventh gear - * - * @return SDLPRNDL: *SEVENTH* - */ -+ (SDLPRNDL *)SEVENTH; - -/** - * @abstract Eighth gear - * - * @return SDLPRNDL: *EIGHTH* - */ -+ (SDLPRNDL *)EIGHTH; - -/** - * @abstract Unknown - * - * @return SDLPRNDL: *UNKNOWN* - */ -+ (SDLPRNDL *)UNKNOWN; - -/** - * @abstract Fault - * - * @return SDLPRNDL: *FAULT* - */ -+ (SDLPRNDL *)FAULT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPRNDL.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPRNDL.m deleted file mode 100644 index e0588af77..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPRNDL.m +++ /dev/null @@ -1,173 +0,0 @@ -// SDLPRNDL.m -// - - -#import "SDLPRNDL.h" - -SDLPRNDL *SDLPRNDL_PARK = nil; -SDLPRNDL *SDLPRNDL_REVERSE = nil; -SDLPRNDL *SDLPRNDL_NEUTRAL = nil; -SDLPRNDL *SDLPRNDL_DRIVE = nil; -SDLPRNDL *SDLPRNDL_SPORT = nil; -SDLPRNDL *SDLPRNDL_LOWGEAR = nil; -SDLPRNDL *SDLPRNDL_FIRST = nil; -SDLPRNDL *SDLPRNDL_SECOND = nil; -SDLPRNDL *SDLPRNDL_THIRD = nil; -SDLPRNDL *SDLPRNDL_FOURTH = nil; -SDLPRNDL *SDLPRNDL_FIFTH = nil; -SDLPRNDL *SDLPRNDL_SIXTH = nil; -SDLPRNDL *SDLPRNDL_SEVENTH = nil; -SDLPRNDL *SDLPRNDL_EIGHTH = nil; -SDLPRNDL *SDLPRNDL_UNKNOWN = nil; -SDLPRNDL *SDLPRNDL_FAULT = nil; - -NSArray *SDLPRNDL_values = nil; - -@implementation SDLPRNDL - -+ (SDLPRNDL *)valueOf:(NSString *)value { - for (SDLPRNDL *item in SDLPRNDL.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLPRNDL_values == nil) { - SDLPRNDL_values = @[ - SDLPRNDL.PARK, - SDLPRNDL.REVERSE, - SDLPRNDL.NEUTRAL, - SDLPRNDL.DRIVE, - SDLPRNDL.SPORT, - SDLPRNDL.LOWGEAR, - SDLPRNDL.FIRST, - SDLPRNDL.SECOND, - SDLPRNDL.THIRD, - SDLPRNDL.FOURTH, - SDLPRNDL.FIFTH, - SDLPRNDL.SIXTH, - SDLPRNDL.SEVENTH, - SDLPRNDL.EIGHTH, - SDLPRNDL.UNKNOWN, - SDLPRNDL.FAULT, - ]; - } - return SDLPRNDL_values; -} - -+ (SDLPRNDL *)PARK { - if (SDLPRNDL_PARK == nil) { - SDLPRNDL_PARK = [[SDLPRNDL alloc] initWithValue:@"PARK"]; - } - return SDLPRNDL_PARK; -} - -+ (SDLPRNDL *)REVERSE { - if (SDLPRNDL_REVERSE == nil) { - SDLPRNDL_REVERSE = [[SDLPRNDL alloc] initWithValue:@"REVERSE"]; - } - return SDLPRNDL_REVERSE; -} - -+ (SDLPRNDL *)NEUTRAL { - if (SDLPRNDL_NEUTRAL == nil) { - SDLPRNDL_NEUTRAL = [[SDLPRNDL alloc] initWithValue:@"NEUTRAL"]; - } - return SDLPRNDL_NEUTRAL; -} - -+ (SDLPRNDL *)DRIVE { - if (SDLPRNDL_DRIVE == nil) { - SDLPRNDL_DRIVE = [[SDLPRNDL alloc] initWithValue:@"DRIVE"]; - } - return SDLPRNDL_DRIVE; -} - -+ (SDLPRNDL *)SPORT { - if (SDLPRNDL_SPORT == nil) { - SDLPRNDL_SPORT = [[SDLPRNDL alloc] initWithValue:@"SPORT"]; - } - return SDLPRNDL_SPORT; -} - -+ (SDLPRNDL *)LOWGEAR { - if (SDLPRNDL_LOWGEAR == nil) { - SDLPRNDL_LOWGEAR = [[SDLPRNDL alloc] initWithValue:@"LOWGEAR"]; - } - return SDLPRNDL_LOWGEAR; -} - -+ (SDLPRNDL *)FIRST { - if (SDLPRNDL_FIRST == nil) { - SDLPRNDL_FIRST = [[SDLPRNDL alloc] initWithValue:@"FIRST"]; - } - return SDLPRNDL_FIRST; -} - -+ (SDLPRNDL *)SECOND { - if (SDLPRNDL_SECOND == nil) { - SDLPRNDL_SECOND = [[SDLPRNDL alloc] initWithValue:@"SECOND"]; - } - return SDLPRNDL_SECOND; -} - -+ (SDLPRNDL *)THIRD { - if (SDLPRNDL_THIRD == nil) { - SDLPRNDL_THIRD = [[SDLPRNDL alloc] initWithValue:@"THIRD"]; - } - return SDLPRNDL_THIRD; -} - -+ (SDLPRNDL *)FOURTH { - if (SDLPRNDL_FOURTH == nil) { - SDLPRNDL_FOURTH = [[SDLPRNDL alloc] initWithValue:@"FOURTH"]; - } - return SDLPRNDL_FOURTH; -} - -+ (SDLPRNDL *)FIFTH { - if (SDLPRNDL_FIFTH == nil) { - SDLPRNDL_FIFTH = [[SDLPRNDL alloc] initWithValue:@"FIFTH"]; - } - return SDLPRNDL_FIFTH; -} - -+ (SDLPRNDL *)SIXTH { - if (SDLPRNDL_SIXTH == nil) { - SDLPRNDL_SIXTH = [[SDLPRNDL alloc] initWithValue:@"SIXTH"]; - } - return SDLPRNDL_SIXTH; -} - -+ (SDLPRNDL *)SEVENTH { - if (SDLPRNDL_SEVENTH == nil) { - SDLPRNDL_SEVENTH = [[SDLPRNDL alloc] initWithValue:@"SEVENTH"]; - } - return SDLPRNDL_SEVENTH; -} - -+ (SDLPRNDL *)EIGHTH { - if (SDLPRNDL_EIGHTH == nil) { - SDLPRNDL_EIGHTH = [[SDLPRNDL alloc] initWithValue:@"EIGHTH"]; - } - return SDLPRNDL_EIGHTH; -} - -+ (SDLPRNDL *)UNKNOWN { - if (SDLPRNDL_UNKNOWN == nil) { - SDLPRNDL_UNKNOWN = [[SDLPRNDL alloc] initWithValue:@"UNKNOWN"]; - } - return SDLPRNDL_UNKNOWN; -} - -+ (SDLPRNDL *)FAULT { - if (SDLPRNDL_FAULT == nil) { - SDLPRNDL_FAULT = [[SDLPRNDL alloc] initWithValue:@"FAULT"]; - } - return SDLPRNDL_FAULT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLParameterPermissions.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLParameterPermissions.h deleted file mode 100644 index af724d53f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLParameterPermissions.h +++ /dev/null @@ -1,39 +0,0 @@ -// SDLParameterPermissions.h -// - - -#import "SDLRPCMessage.h" - -/** - * Defining sets of parameters, which are permitted or prohibited for a given RPC. - * - * @since SDL 2.0 - */ -@interface SDLParameterPermissions : SDLRPCStruct { -} - -/** - * @abstract Constructs a newly allocated SDLParameterPermissions object - */ -- (instancetype)init; -/** - * @abstract Constructs a newly allocated SDLParameterPermissions object indicated by the dictionary parameter - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A set of all parameters that are permitted for this given RPC. - * - * Required, Array of String, max String length = 100, Array size 0 - 100 - */ -@property (strong) NSMutableArray *allowed; -/** - * @abstract A set of all parameters that are prohibited for this given RPC. - * - * Required, Array of String, max String length = 100, Array size 0 - 100 - */ -@property (strong) NSMutableArray *userDisallowed; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLParameterPermissions.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLParameterPermissions.m deleted file mode 100644 index e18d1ec12..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLParameterPermissions.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLParameterPermissions.m -// - - -#import "SDLParameterPermissions.h" - -#import "SDLNames.h" - -@implementation SDLParameterPermissions - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setAllowed:(NSMutableArray *)allowed { - if (allowed != nil) { - [store setObject:allowed forKey:NAMES_allowed]; - } else { - [store removeObjectForKey:NAMES_allowed]; - } -} - -- (NSMutableArray *)allowed { - return [store objectForKey:NAMES_allowed]; -} - -- (void)setUserDisallowed:(NSMutableArray *)userDisallowed { - if (userDisallowed != nil) { - [store setObject:userDisallowed forKey:NAMES_userDisallowed]; - } else { - [store removeObjectForKey:NAMES_userDisallowed]; - } -} - -- (NSMutableArray *)userDisallowed { - return [store objectForKey:NAMES_userDisallowed]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.h deleted file mode 100644 index 66dfacf19..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.h +++ /dev/null @@ -1,104 +0,0 @@ -// SDLPerformAudioPassThru.h -// - -#import "SDLRPCRequest.h" - -@class SDLSamplingRate; -@class SDLBitsPerSample; -@class SDLAudioType; - - -/** - * This will open an audio pass thru session. By doing so the app can receive - * audio data through the vehicle microphone - *

    - * Function Group: AudioPassThru - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - * - *

    Since SmartDeviceLink 2.0

    - *

    See SDLEndAudioPassThru

    - */ -@interface SDLPerformAudioPassThru : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLPerformAudioPassThru object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLPerformAudioPassThru object indicated by the NSMutableDictionary - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract initial prompt which will be spoken before opening the audio pass - * thru session by SDL - * @discussion initialPrompt - * a Vector value represents the initial prompt which - * will be spoken before opening the audio pass thru session by - * SDL - *

    - * Notes: - *

      - *
    • This is an array of text chunks of type TTSChunk
    • - *
    • The array must have at least one item
    • - *
    • If omitted, then no initial prompt is spoken
    • - *
    • Array Minsize: 1
    • - *
    • Array Maxsize: 100
    • - *
    - */ -@property (strong) NSMutableArray *initialPrompt; -/** - * @abstract a line of text displayed during audio capture - * @discussion audioPassThruDisplayText1 - * a String value representing the line of text displayed during - * audio capture - *

    - * Notes: Maxlength=500 - */ -@property (strong) NSString *audioPassThruDisplayText1; -/** - * @abstract A line of text displayed during audio capture - * @discussion audioPassThruDisplayText2 - * a String value representing the line of text displayed during - * audio capture - *

    - * Notes: Maxlength=500 - */ -@property (strong) NSString *audioPassThruDisplayText2; -/** - * @abstract A samplingRate - * - * @discussion a SamplingRate value representing a 8 or 16 or 22 or 24 khz - */ -@property (strong) SDLSamplingRate *samplingRate; -/** - * @abstract the maximum duration of audio recording in milliseconds - * - * @discussion maxDuration - * an Integer value representing the maximum duration of audio - * recording in millisecond - *

    - * Notes: Minvalue:1; Maxvalue:1000000 - */ -@property (strong) NSNumber *maxDuration; -/** - * @abstract the quality the audio is recorded - 8 bit or 16 bit - * - * @discussion a BitsPerSample value representing 8 bit or 16 bit - */ -@property (strong) SDLBitsPerSample *bitsPerSample; -/** - * @abstract an audioType - */ -@property (strong) SDLAudioType *audioType; -/** - * @abstract a Boolean value representing if the current audio source should be - * muted during the APT session
    - */ -@property (strong) NSNumber *muteAudio; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.m deleted file mode 100644 index 67b0f05c3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.m +++ /dev/null @@ -1,148 +0,0 @@ -// SDLPerformAudioPassThru.m -// - - -#import "SDLPerformAudioPassThru.h" - -#import "SDLAudioType.h" -#import "SDLBitsPerSample.h" -#import "SDLNames.h" -#import "SDLSamplingRate.h" -#import "SDLTTSChunk.h" - - -@implementation SDLPerformAudioPassThru - -- (instancetype)init { - if (self = [super initWithName:NAMES_PerformAudioPassThru]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setInitialPrompt:(NSMutableArray *)initialPrompt { - if (initialPrompt != nil) { - [parameters setObject:initialPrompt forKey:NAMES_initialPrompt]; - } else { - [parameters removeObjectForKey:NAMES_initialPrompt]; - } -} - -- (NSMutableArray *)initialPrompt { - NSMutableArray *array = [parameters objectForKey:NAMES_initialPrompt]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setAudioPassThruDisplayText1:(NSString *)audioPassThruDisplayText1 { - if (audioPassThruDisplayText1 != nil) { - [parameters setObject:audioPassThruDisplayText1 forKey:NAMES_audioPassThruDisplayText1]; - } else { - [parameters removeObjectForKey:NAMES_audioPassThruDisplayText1]; - } -} - -- (NSString *)audioPassThruDisplayText1 { - return [parameters objectForKey:NAMES_audioPassThruDisplayText1]; -} - -- (void)setAudioPassThruDisplayText2:(NSString *)audioPassThruDisplayText2 { - if (audioPassThruDisplayText2 != nil) { - [parameters setObject:audioPassThruDisplayText2 forKey:NAMES_audioPassThruDisplayText2]; - } else { - [parameters removeObjectForKey:NAMES_audioPassThruDisplayText2]; - } -} - -- (NSString *)audioPassThruDisplayText2 { - return [parameters objectForKey:NAMES_audioPassThruDisplayText2]; -} - -- (void)setSamplingRate:(SDLSamplingRate *)samplingRate { - if (samplingRate != nil) { - [parameters setObject:samplingRate forKey:NAMES_samplingRate]; - } else { - [parameters removeObjectForKey:NAMES_samplingRate]; - } -} - -- (SDLSamplingRate *)samplingRate { - NSObject *obj = [parameters objectForKey:NAMES_samplingRate]; - if (obj == nil || [obj isKindOfClass:SDLSamplingRate.class]) { - return (SDLSamplingRate *)obj; - } else { - return [SDLSamplingRate valueOf:(NSString *)obj]; - } -} - -- (void)setMaxDuration:(NSNumber *)maxDuration { - if (maxDuration != nil) { - [parameters setObject:maxDuration forKey:NAMES_maxDuration]; - } else { - [parameters removeObjectForKey:NAMES_maxDuration]; - } -} - -- (NSNumber *)maxDuration { - return [parameters objectForKey:NAMES_maxDuration]; -} - -- (void)setBitsPerSample:(SDLBitsPerSample *)bitsPerSample { - if (bitsPerSample != nil) { - [parameters setObject:bitsPerSample forKey:NAMES_bitsPerSample]; - } else { - [parameters removeObjectForKey:NAMES_bitsPerSample]; - } -} - -- (SDLBitsPerSample *)bitsPerSample { - NSObject *obj = [parameters objectForKey:NAMES_bitsPerSample]; - if (obj == nil || [obj isKindOfClass:SDLBitsPerSample.class]) { - return (SDLBitsPerSample *)obj; - } else { - return [SDLBitsPerSample valueOf:(NSString *)obj]; - } -} - -- (void)setAudioType:(SDLAudioType *)audioType { - if (audioType != nil) { - [parameters setObject:audioType forKey:NAMES_audioType]; - } else { - [parameters removeObjectForKey:NAMES_audioType]; - } -} - -- (SDLAudioType *)audioType { - NSObject *obj = [parameters objectForKey:NAMES_audioType]; - if (obj == nil || [obj isKindOfClass:SDLAudioType.class]) { - return (SDLAudioType *)obj; - } else { - return [SDLAudioType valueOf:(NSString *)obj]; - } -} - -- (void)setMuteAudio:(NSNumber *)muteAudio { - if (muteAudio != nil) { - [parameters setObject:muteAudio forKey:NAMES_muteAudio]; - } else { - [parameters removeObjectForKey:NAMES_muteAudio]; - } -} - -- (NSNumber *)muteAudio { - return [parameters objectForKey:NAMES_muteAudio]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThruResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThruResponse.h deleted file mode 100644 index 3d2835114..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThruResponse.h +++ /dev/null @@ -1,25 +0,0 @@ -// SDLPerformAudioPassThruResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Perform Audio Pass Thru Response is sent, when PerformAudioPassThru has been called - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLPerformAudioPassThruResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLPerformAudioPassThruResponse object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLPerformAudioPassThruResponse object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThruResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThruResponse.m deleted file mode 100644 index ed8a1e614..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThruResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLPerformAudioPassThruResponse.m -// - - -#import "SDLPerformAudioPassThruResponse.h" - -#import "SDLNames.h" - -@implementation SDLPerformAudioPassThruResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_PerformAudioPassThru]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.h deleted file mode 100644 index 29f166c96..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.h +++ /dev/null @@ -1,85 +0,0 @@ -// SDLPerformInteraction.h -// - - -#import "SDLRPCRequest.h" - -@class SDLInteractionMode; -@class SDLLayoutMode; - - -/** - * Performs an application-initiated interaction in which the user can select a - * {@linkplain Choice} from among the specified Choice Sets. For instance, an - * application may use a PerformInteraction to ask a user to say the name of a - * song to play. The user's response is only valid if it appears in the - * specified Choice Sets and is recognized by SDL - *

    - * Function Group: Base - *

    - * HMILevel needs to be FULL - *

    - * - * Since SmartDeviceLink 1.0
    - * See SDLCreateInteractionChoiceSet SDLDeleteInteractionChoiceSet - */ -@interface SDLPerformInteraction : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLPerformInteraction object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLPerformInteraction object indicated by the NSMutableDictionary - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The Text that Displayed when the interaction begins. This text may - * be overlaid by the "Listening" prompt during the interaction. Text is - * displayed on first line of multiline display, and is centered. If text - * does not fit on line, it will be truncated - */ -@property (strong) NSString *initialText; -/** - * @abstract An array of one or more TTSChunks that, taken together, specify - * what is to be spoken to the user at the start of an interaction - */ -@property (strong) NSMutableArray *initialPrompt; -/** - * @abstract The Indicates mode that indicate how user selects interaction - * choice. User can choose either by voice (VR_ONLY), by visual selection - * from the menu (MANUAL_ONLY), or by either mode (BOTH) - */ -@property (strong) SDLInteractionMode *interactionMode; -/** - * @abstract A Vector value representing an Array of one or more Choice - * Set IDs - */ -@property (strong) NSMutableArray *interactionChoiceSetIDList; -/** - * @abstract A Vector which taken together, specify the help phrase to - * be spoken when the user says "help" during the VR session - */ -@property (strong) NSMutableArray *helpPrompt; -/** - * @abstract An array of TTSChunks which, taken together, specify the phrase to - * be spoken when the listen times out during the VR session - */ -@property (strong) NSMutableArray *timeoutPrompt; -/** - * @abstract An Integer value representing the amount of time, in milliseconds, - * SDL will wait for the user to make a choice (VR or Menu) - */ -@property (strong) NSNumber *timeout; -/** - * @abstract A Voice recognition Help, which is a suggested VR Help Items to - * display on-screen during Perform Interaction - * @since SmartDeviceLink 2.0 - */ -@property (strong) NSMutableArray *vrHelp; -@property (strong) SDLLayoutMode *interactionLayout; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.m deleted file mode 100644 index de6c3622f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.m +++ /dev/null @@ -1,181 +0,0 @@ -// SDLPerformInteraction.m -// - - -#import "SDLPerformInteraction.h" - -#import "SDLInteractionMode.h" -#import "SDLLayoutMode.h" -#import "SDLNames.h" -#import "SDLTTSChunk.h" -#import "SDLVRHelpItem.h" - -@implementation SDLPerformInteraction - -- (instancetype)init { - if (self = [super initWithName:NAMES_PerformInteraction]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setInitialText:(NSString *)initialText { - if (initialText != nil) { - [parameters setObject:initialText forKey:NAMES_initialText]; - } else { - [parameters removeObjectForKey:NAMES_initialText]; - } -} - -- (NSString *)initialText { - return [parameters objectForKey:NAMES_initialText]; -} - -- (void)setInitialPrompt:(NSMutableArray *)initialPrompt { - if (initialPrompt != nil) { - [parameters setObject:initialPrompt forKey:NAMES_initialPrompt]; - } else { - [parameters removeObjectForKey:NAMES_initialPrompt]; - } -} - -- (NSMutableArray *)initialPrompt { - NSMutableArray *array = [parameters objectForKey:NAMES_initialPrompt]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setInteractionMode:(SDLInteractionMode *)interactionMode { - if (interactionMode != nil) { - [parameters setObject:interactionMode forKey:NAMES_interactionMode]; - } else { - [parameters removeObjectForKey:NAMES_interactionMode]; - } -} - -- (SDLInteractionMode *)interactionMode { - NSObject *obj = [parameters objectForKey:NAMES_interactionMode]; - if (obj == nil || [obj isKindOfClass:SDLInteractionMode.class]) { - return (SDLInteractionMode *)obj; - } else { - return [SDLInteractionMode valueOf:(NSString *)obj]; - } -} - -- (void)setInteractionChoiceSetIDList:(NSMutableArray *)interactionChoiceSetIDList { - if (interactionChoiceSetIDList != nil) { - [parameters setObject:interactionChoiceSetIDList forKey:NAMES_interactionChoiceSetIDList]; - } else { - [parameters removeObjectForKey:NAMES_interactionChoiceSetIDList]; - } -} - -- (NSMutableArray *)interactionChoiceSetIDList { - return [parameters objectForKey:NAMES_interactionChoiceSetIDList]; -} - -- (void)setHelpPrompt:(NSMutableArray *)helpPrompt { - if (helpPrompt != nil) { - [parameters setObject:helpPrompt forKey:NAMES_helpPrompt]; - } else { - [parameters removeObjectForKey:NAMES_helpPrompt]; - } -} - -- (NSMutableArray *)helpPrompt { - NSMutableArray *array = [parameters objectForKey:NAMES_helpPrompt]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setTimeoutPrompt:(NSMutableArray *)timeoutPrompt { - if (timeoutPrompt != nil) { - [parameters setObject:timeoutPrompt forKey:NAMES_timeoutPrompt]; - } else { - [parameters removeObjectForKey:NAMES_timeoutPrompt]; - } -} - -- (NSMutableArray *)timeoutPrompt { - NSMutableArray *array = [parameters objectForKey:NAMES_timeoutPrompt]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setTimeout:(NSNumber *)timeout { - if (timeout != nil) { - [parameters setObject:timeout forKey:NAMES_timeout]; - } else { - [parameters removeObjectForKey:NAMES_timeout]; - } -} - -- (NSNumber *)timeout { - return [parameters objectForKey:NAMES_timeout]; -} - -- (void)setVrHelp:(NSMutableArray *)vrHelp { - if (vrHelp != nil) { - [parameters setObject:vrHelp forKey:NAMES_vrHelp]; - } else { - [parameters removeObjectForKey:NAMES_vrHelp]; - } -} - -- (NSMutableArray *)vrHelp { - NSMutableArray *array = [parameters objectForKey:NAMES_vrHelp]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLVRHelpItem.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLVRHelpItem alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setInteractionLayout:(SDLLayoutMode *)interactionLayout { - if (interactionLayout != nil) { - [parameters setObject:interactionLayout forKey:NAMES_interactionLayout]; - } else { - [parameters removeObjectForKey:NAMES_interactionLayout]; - } -} - -- (SDLLayoutMode *)interactionLayout { - NSObject *obj = [parameters objectForKey:NAMES_interactionLayout]; - if (obj == nil || [obj isKindOfClass:SDLLayoutMode.class]) { - return (SDLLayoutMode *)obj; - } else { - return [SDLLayoutMode valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.h deleted file mode 100644 index b589f9492..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.h +++ /dev/null @@ -1,55 +0,0 @@ -// SDLPerformInteractionResponse.h -// - - -#import "SDLRPCResponse.h" - -@class SDLTriggerSource; - - -/** - * PerformInteraction Response is sent, when SDLPerformInteraction has been called - * - * @since SDL 1.0 - */ -@interface SDLPerformInteractionResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLPerformInteractionResponse object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLPerformInteractionResponse object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract ID of the choice that was selected in response to PerformInteraction. - * - * @discussion Only is valid if general result is "success:true". - * - * Optional, Integer, 0 - 2,000,000,000 - */ -@property (strong) NSNumber *choiceID; - -/** - * @abstract Manually entered text selection, e.g. through keyboard - * - * @discussion Can be returned in lieu of choiceID, depending on trigger source - * - * Optional, Max length 500 chars - */ -@property (strong) NSString *manualTextEntry; - -/** - * @abstract A *SDLTriggerSource* object which will be shown in the HMI - * - * @discussion Only is valid if resultCode is SUCCESS. - */ -@property (strong) SDLTriggerSource *triggerSource; - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.m deleted file mode 100644 index ae1c5e14c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.m +++ /dev/null @@ -1,66 +0,0 @@ -// SDLPerformInteractionResponse.m -// - - -#import "SDLPerformInteractionResponse.h" - -#import "SDLNames.h" -#import "SDLTriggerSource.h" - - -@implementation SDLPerformInteractionResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_PerformInteraction]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setChoiceID:(NSNumber *)choiceID { - if (choiceID != nil) { - [parameters setObject:choiceID forKey:NAMES_choiceID]; - } else { - [parameters removeObjectForKey:NAMES_choiceID]; - } -} - -- (NSNumber *)choiceID { - return [parameters objectForKey:NAMES_choiceID]; -} - -- (void)setManualTextEntry:(NSString *)manualTextEntry { - if (manualTextEntry != nil) { - [parameters setObject:manualTextEntry forKey:NAMES_manualTextEntry]; - } else { - [parameters removeObjectForKey:NAMES_manualTextEntry]; - } -} - -- (NSString *)manualTextEntry { - return [parameters objectForKey:NAMES_manualTextEntry]; -} - -- (void)setTriggerSource:(SDLTriggerSource *)triggerSource { - if (triggerSource != nil) { - [parameters setObject:triggerSource forKey:NAMES_triggerSource]; - } else { - [parameters removeObjectForKey:NAMES_triggerSource]; - } -} - -- (SDLTriggerSource *)triggerSource { - NSObject *obj = [parameters objectForKey:NAMES_triggerSource]; - if (obj == nil || [obj isKindOfClass:SDLTriggerSource.class]) { - return (SDLTriggerSource *)obj; - } else { - return [SDLTriggerSource valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.h deleted file mode 100644 index a0fe0d580..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.h +++ /dev/null @@ -1,20 +0,0 @@ -// SDLPermissionItem.h -// - -#import "SDLRPCMessage.h" - -@class SDLHMIPermissions; -@class SDLParameterPermissions; - - -@interface SDLPermissionItem : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSString *rpcName; -@property (strong) SDLHMIPermissions *hmiPermissions; -@property (strong) SDLParameterPermissions *parameterPermissions; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.m deleted file mode 100644 index 560094c2e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.m +++ /dev/null @@ -1,71 +0,0 @@ -// SDLPermissionItem.m -// - -#import "SDLPermissionItem.h" - -#import "SDLHMIPermissions.h" -#import "SDLNames.h" -#import "SDLParameterPermissions.h" - - -@implementation SDLPermissionItem - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setRpcName:(NSString *)rpcName { - if (rpcName != nil) { - [store setObject:rpcName forKey:NAMES_rpcName]; - } else { - [store removeObjectForKey:NAMES_rpcName]; - } -} - -- (NSString *)rpcName { - return [store objectForKey:NAMES_rpcName]; -} - -- (void)setHmiPermissions:(SDLHMIPermissions *)hmiPermissions { - if (hmiPermissions != nil) { - [store setObject:hmiPermissions forKey:NAMES_hmiPermissions]; - } else { - [store removeObjectForKey:NAMES_hmiPermissions]; - } -} - -- (SDLHMIPermissions *)hmiPermissions { - NSObject *obj = [store objectForKey:NAMES_hmiPermissions]; - if (obj == nil || [obj isKindOfClass:SDLHMIPermissions.class]) { - return (SDLHMIPermissions *)obj; - } else { - return [[SDLHMIPermissions alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setParameterPermissions:(SDLParameterPermissions *)parameterPermissions { - if (parameterPermissions != nil) { - [store setObject:parameterPermissions forKey:NAMES_parameterPermissions]; - } else { - [store removeObjectForKey:NAMES_parameterPermissions]; - } -} - -- (SDLParameterPermissions *)parameterPermissions { - NSObject *obj = [store objectForKey:NAMES_parameterPermissions]; - if (obj == nil || [obj isKindOfClass:SDLParameterPermissions.class]) { - return (SDLParameterPermissions *)obj; - } else { - return [[SDLParameterPermissions alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionStatus.h deleted file mode 100644 index 0ac9219ec..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionStatus.h +++ /dev/null @@ -1,55 +0,0 @@ -// SDLPermissionStatus.h -// - - -#import "SDLEnum.h" - -/** - * Enumeration that describes possible permission states of a policy table entry. - * - * @since SDL 2.0 - */ -@interface SDLPermissionStatus : SDLEnum { -} - -/** - * @abstract SDLPermissionStatus - * - * @param value The value of the string to get an object for - * - * @return a SDLPermissionStatus object - */ -+ (SDLPermissionStatus *)valueOf:(NSString *)value; - -/** - * @abstract declare an array to store all possible SDLPermissionStatus values - * @return the array - */ -+ (NSArray *)values; - - -/** - * @abstract permission: allowed - * @return permission status: *ALLOWED* - */ -+ (SDLPermissionStatus *)ALLOWED; - -/** - * @abstract permission: disallowed - * @return permission status: *DISALLOWED* - */ -+ (SDLPermissionStatus *)DISALLOWED; - -/** - * @abstract permission: user disallowed - * @return permission status: *USER_DISALLOWED* - */ -+ (SDLPermissionStatus *)USER_DISALLOWED; - -/** - * @abstract permission: user consent pending - * @return permission status: *USER_CONSENT_PENDING* - */ -+ (SDLPermissionStatus *)USER_CONSENT_PENDING; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionStatus.m deleted file mode 100644 index 179cf2014..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionStatus.m +++ /dev/null @@ -1,65 +0,0 @@ -// SDLPermissionStatus.m -// - - -#import "SDLPermissionStatus.h" - -SDLPermissionStatus *SDLPermissionStatus_ALLOWED = nil; -SDLPermissionStatus *SDLPermissionStatus_DISALLOWED = nil; -SDLPermissionStatus *SDLPermissionStatus_USER_DISALLOWED = nil; -SDLPermissionStatus *SDLPermissionStatus_USER_CONSENT_PENDING = nil; - -NSArray *SDLPermissionStatus_values = nil; - -@implementation SDLPermissionStatus - -+ (SDLPermissionStatus *)valueOf:(NSString *)value { - for (SDLPermissionStatus *item in SDLPermissionStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLPermissionStatus_values == nil) { - SDLPermissionStatus_values = @[ - SDLPermissionStatus.ALLOWED, - SDLPermissionStatus.DISALLOWED, - SDLPermissionStatus.USER_DISALLOWED, - SDLPermissionStatus.USER_CONSENT_PENDING, - ]; - } - return SDLPermissionStatus_values; -} - -+ (SDLPermissionStatus *)ALLOWED { - if (SDLPermissionStatus_ALLOWED == nil) { - SDLPermissionStatus_ALLOWED = [[SDLPermissionStatus alloc] initWithValue:@"ALLOWED"]; - } - return SDLPermissionStatus_ALLOWED; -} - -+ (SDLPermissionStatus *)DISALLOWED { - if (SDLPermissionStatus_DISALLOWED == nil) { - SDLPermissionStatus_DISALLOWED = [[SDLPermissionStatus alloc] initWithValue:@"DISALLOWED"]; - } - return SDLPermissionStatus_DISALLOWED; -} - -+ (SDLPermissionStatus *)USER_DISALLOWED { - if (SDLPermissionStatus_USER_DISALLOWED == nil) { - SDLPermissionStatus_USER_DISALLOWED = [[SDLPermissionStatus alloc] initWithValue:@"USER_DISALLOWED"]; - } - return SDLPermissionStatus_USER_DISALLOWED; -} - -+ (SDLPermissionStatus *)USER_CONSENT_PENDING { - if (SDLPermissionStatus_USER_CONSENT_PENDING == nil) { - SDLPermissionStatus_USER_CONSENT_PENDING = [[SDLPermissionStatus alloc] initWithValue:@"USER_CONSENT_PENDING"]; - } - return SDLPermissionStatus_USER_CONSENT_PENDING; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPolicyDataParser.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPolicyDataParser.h deleted file mode 100644 index 4e005f9fe..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPolicyDataParser.h +++ /dev/null @@ -1,31 +0,0 @@ -// -// PolicyDataParser.h -// - -#import - -@interface SDLPolicyDataParser : NSObject - -@property (assign) Byte protocolVersion; -@property (assign) BOOL isResponseRequired; -@property (assign) BOOL isHighBandwidth; -@property (assign) BOOL isSigned; -@property (assign) BOOL isEncrypted; -@property (assign) BOOL hasESN; -@property (assign) Byte serviceType; -@property (assign) Byte commandType; -@property (assign) BOOL CPUDestination; -@property (assign) Byte encryptionKeyIndex; -@property (assign) UInt32 payloadSize; -@property (strong) NSData *ESN; -@property (assign) UInt32 moduleMessageId; -@property (assign) UInt32 serverMessageId; -@property (assign) Byte messageStatus; -@property (strong) NSData *initializationVector; -@property (strong) NSData *payload; -@property (strong) NSData *signatureTag; - -- (NSData *)unwrap:(NSData *)wrappedData; -- (void)parsePolicyData:(NSData *)data; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPolicyDataParser.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPolicyDataParser.m deleted file mode 100644 index e528e4bd4..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPolicyDataParser.m +++ /dev/null @@ -1,140 +0,0 @@ -// -// PolicyDataParser.m -// - -#import "SDLPolicyDataParser.h" - - -@implementation SDLPolicyDataParser - -- (NSData *)unwrap:(NSData *)wrappedData { - NSData *decodedData = nil; - - @try { - NSError *errorJSONSerialization = nil; - NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:wrappedData options:kNilOptions error:&errorJSONSerialization]; - NSArray *array = dictionary[@"data"]; - NSString *base64EncodedString = array[0]; - - if ([NSData instancesRespondToSelector:@selector(initWithBase64EncodedString:options:)]) { - decodedData = [[NSData alloc] initWithBase64EncodedString:base64EncodedString options:0]; - } else { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdeprecated-declarations" - decodedData = [[NSData alloc] initWithBase64Encoding:base64EncodedString]; -#pragma clang diagnostic pop - } - } - @catch (NSException *exception) { - decodedData = nil; - NSLog(@"Error in PolicyDataParser::unwrap()"); - } - - return decodedData; -} - -- (void)parsePolicyData:(NSData *)data { - if (data == nil) { - return; - } - - @try { - Byte *bytes = (Byte *)data.bytes; - - Byte firstByte = bytes[0]; - self.protocolVersion = (firstByte & 0b11100000) >> 5; - self.isResponseRequired = (firstByte & 0b00010000) != 0; - self.isHighBandwidth = (firstByte & 0b00001000) != 0; - self.isSigned = (firstByte & 0b00000100) != 0; - self.isEncrypted = (firstByte & 0b00000010) != 0; - self.hasESN = (firstByte & 0b00000001) != 0; - - self.serviceType = bytes[1]; - - Byte thirdByte = bytes[2]; - self.commandType = (thirdByte & 0b11110000) >> 4; - self.CPUDestination = (thirdByte & 0b00001000) != 0; - self.encryptionKeyIndex = (thirdByte & 0b00000111); - - const int payloadSizeOffset = 3; - if (self.isHighBandwidth) { - self.payloadSize = ntohl(*(UInt32 *)(bytes + payloadSizeOffset)); - } else { - self.payloadSize = ntohs(*(UInt16 *)(bytes + payloadSizeOffset)); - } - - if (self.hasESN) { - int esnOffset = self.isHighBandwidth ? 7 : 5; - self.ESN = [NSData dataWithBytes:(bytes + esnOffset) length:8]; - } - - if (self.isHighBandwidth) { - int moduleMessageIdOffset = 7; - if (self.hasESN) - moduleMessageIdOffset += self.ESN.length; - self.moduleMessageId = ntohl(*(UInt32 *)(bytes + moduleMessageIdOffset)); - - int serverMessageIdOffset = 11; - if (self.hasESN) - serverMessageIdOffset += self.ESN.length; - self.serverMessageId = ntohl(*(UInt32 *)(bytes + serverMessageIdOffset)); - - int messageStatusOffset = 15; - if (self.hasESN) - messageStatusOffset += self.ESN.length; - self.messageStatus = bytes[messageStatusOffset]; - } - - if (self.isEncrypted) { - int ivOffset = 5; - if (self.isHighBandwidth) - ivOffset += 11; - if (self.hasESN) - ivOffset += self.ESN.length; - self.initializationVector = [NSData dataWithBytes:(bytes + ivOffset) length:16]; - } - - int payloadOffset = 5; - if (self.isHighBandwidth) - payloadOffset += 11; - if (self.hasESN) - payloadOffset += self.ESN.length; - if (self.isEncrypted) - payloadOffset += self.initializationVector.length; - self.payload = [NSData dataWithBytes:(bytes + payloadOffset) length:self.payloadSize]; - - if (self.isSigned) { - int signatureTagOffset = (int)data.length - 16; - self.signatureTag = [NSData dataWithBytes:(bytes + signatureTagOffset) length:16]; - } - - } - @catch (NSException *exception) { - NSLog(@"Error in PolicyDataParser::parsePolicyData()"); - } -} - -- (NSString *)description { - NSString *esnString = [[NSString alloc] initWithData:self.ESN encoding:NSUTF8StringEncoding]; - - NSMutableString *descriptionString = [NSMutableString stringWithFormat:@"Ver:%u; ", self.protocolVersion]; - [descriptionString appendFormat:@"RespReq:%u; ", self.isResponseRequired]; - [descriptionString appendFormat:@"HiBnd:%u; ", self.isHighBandwidth]; - [descriptionString appendFormat:@"Sign:%u; ", self.isSigned]; - [descriptionString appendFormat:@"Enc:%u; ", self.isEncrypted]; - [descriptionString appendFormat:@"HasESN:%u; ", self.hasESN]; - [descriptionString appendFormat:@"Svc:%u; ", self.serviceType]; - [descriptionString appendFormat:@"Cmd:%u; ", self.commandType]; - [descriptionString appendFormat:@"CPU:%u; ", self.CPUDestination]; - [descriptionString appendFormat:@"EncKey:%u; ", self.encryptionKeyIndex]; - [descriptionString appendFormat:@"sz:%u; ", (unsigned int)self.payloadSize]; - [descriptionString appendFormat:@"ESN:%@; ", esnString]; - [descriptionString appendFormat:@"mmid:%u; ", (unsigned int)self.moduleMessageId]; - [descriptionString appendFormat:@"smid:%u; ", (unsigned int)self.serverMessageId]; - [descriptionString appendFormat:@"status:%u; ", self.messageStatus]; - [descriptionString appendFormat:@"iv:%@; ", self.initializationVector]; - [descriptionString appendFormat:@"hmac:%@", self.signatureTag]; - return descriptionString; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.h deleted file mode 100644 index 4e520196b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLPowerModeQualificationStatus.h -// - - -#import "SDLEnum.h" - -@interface SDLPowerModeQualificationStatus : SDLEnum { -} - -+ (SDLPowerModeQualificationStatus *)valueOf:(NSString *)value; -+ (NSArray *)values; - -+ (SDLPowerModeQualificationStatus *)POWER_MODE_UNDEFINED; -+ (SDLPowerModeQualificationStatus *)POWER_MODE_EVALUATION_IN_PROGRESS; -+ (SDLPowerModeQualificationStatus *)NOT_DEFINED; -+ (SDLPowerModeQualificationStatus *)POWER_MODE_OK; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.m deleted file mode 100644 index d820221e9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.m +++ /dev/null @@ -1,65 +0,0 @@ -// SDLPowerModeQualificationStatus.m -// - - -#import "SDLPowerModeQualificationStatus.h" - -SDLPowerModeQualificationStatus *SDLPowerModeQualificationStatus_POWER_MODE_UNDEFINED = nil; -SDLPowerModeQualificationStatus *SDLPowerModeQualificationStatus_POWER_MODE_EVALUATION_IN_PROGRESS = nil; -SDLPowerModeQualificationStatus *SDLPowerModeQualificationStatus_NOT_DEFINED = nil; -SDLPowerModeQualificationStatus *SDLPowerModeQualificationStatus_POWER_MODE_OK = nil; - -NSArray *SDLPowerModeQualificationStatus_values = nil; - -@implementation SDLPowerModeQualificationStatus - -+ (SDLPowerModeQualificationStatus *)valueOf:(NSString *)value { - for (SDLPowerModeQualificationStatus *item in SDLPowerModeQualificationStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLPowerModeQualificationStatus_values == nil) { - SDLPowerModeQualificationStatus_values = @[ - SDLPowerModeQualificationStatus.POWER_MODE_UNDEFINED, - SDLPowerModeQualificationStatus.POWER_MODE_EVALUATION_IN_PROGRESS, - SDLPowerModeQualificationStatus.NOT_DEFINED, - SDLPowerModeQualificationStatus.POWER_MODE_OK, - ]; - } - return SDLPowerModeQualificationStatus_values; -} - -+ (SDLPowerModeQualificationStatus *)POWER_MODE_UNDEFINED { - if (SDLPowerModeQualificationStatus_POWER_MODE_UNDEFINED == nil) { - SDLPowerModeQualificationStatus_POWER_MODE_UNDEFINED = [[SDLPowerModeQualificationStatus alloc] initWithValue:@"POWER_MODE_UNDEFINED"]; - } - return SDLPowerModeQualificationStatus_POWER_MODE_UNDEFINED; -} - -+ (SDLPowerModeQualificationStatus *)POWER_MODE_EVALUATION_IN_PROGRESS { - if (SDLPowerModeQualificationStatus_POWER_MODE_EVALUATION_IN_PROGRESS == nil) { - SDLPowerModeQualificationStatus_POWER_MODE_EVALUATION_IN_PROGRESS = [[SDLPowerModeQualificationStatus alloc] initWithValue:@"POWER_MODE_EVALUATION_IN_PROGRESS"]; - } - return SDLPowerModeQualificationStatus_POWER_MODE_EVALUATION_IN_PROGRESS; -} - -+ (SDLPowerModeQualificationStatus *)NOT_DEFINED { - if (SDLPowerModeQualificationStatus_NOT_DEFINED == nil) { - SDLPowerModeQualificationStatus_NOT_DEFINED = [[SDLPowerModeQualificationStatus alloc] initWithValue:@"NOT_DEFINED"]; - } - return SDLPowerModeQualificationStatus_NOT_DEFINED; -} - -+ (SDLPowerModeQualificationStatus *)POWER_MODE_OK { - if (SDLPowerModeQualificationStatus_POWER_MODE_OK == nil) { - SDLPowerModeQualificationStatus_POWER_MODE_OK = [[SDLPowerModeQualificationStatus alloc] initWithValue:@"POWER_MODE_OK"]; - } - return SDLPowerModeQualificationStatus_POWER_MODE_OK; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h deleted file mode 100644 index 8eb24fdb4..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h +++ /dev/null @@ -1,23 +0,0 @@ -// SDLPowerModeStatus.h -// - - -#import "SDLEnum.h" - -@interface SDLPowerModeStatus : SDLEnum { -} - -+ (SDLPowerModeStatus *)valueOf:(NSString *)value; -+ (NSArray *)values; - -+ (SDLPowerModeStatus *)KEY_OUT; -+ (SDLPowerModeStatus *)KEY_RECENTLY_OUT; -+ (SDLPowerModeStatus *)KEY_APPROVED_0; -+ (SDLPowerModeStatus *)POST_ACCESORY_0; -+ (SDLPowerModeStatus *)ACCESORY_1; -+ (SDLPowerModeStatus *)POST_IGNITION_1; -+ (SDLPowerModeStatus *)IGNITION_ON_2; -+ (SDLPowerModeStatus *)RUNNING_2; -+ (SDLPowerModeStatus *)CRANK_3; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.m deleted file mode 100644 index efc46a094..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.m +++ /dev/null @@ -1,110 +0,0 @@ -// SDLPowerModeStatus.m -// - - -#import "SDLPowerModeStatus.h" - -SDLPowerModeStatus *SDLPowerModeStatus_KEY_OUT = nil; -SDLPowerModeStatus *SDLPowerModeStatus_KEY_RECENTLY_OUT = nil; -SDLPowerModeStatus *SDLPowerModeStatus_KEY_APPROVED_0 = nil; -SDLPowerModeStatus *SDLPowerModeStatus_POST_ACCESORY_0 = nil; -SDLPowerModeStatus *SDLPowerModeStatus_ACCESORY_1 = nil; -SDLPowerModeStatus *SDLPowerModeStatus_POST_IGNITION_1 = nil; -SDLPowerModeStatus *SDLPowerModeStatus_IGNITION_ON_2 = nil; -SDLPowerModeStatus *SDLPowerModeStatus_RUNNING_2 = nil; -SDLPowerModeStatus *SDLPowerModeStatus_CRANK_3 = nil; - -NSArray *SDLPowerModeStatus_values = nil; - -@implementation SDLPowerModeStatus - -+ (SDLPowerModeStatus *)valueOf:(NSString *)value { - for (SDLPowerModeStatus *item in SDLPowerModeStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLPowerModeStatus_values == nil) { - SDLPowerModeStatus_values = @[ - SDLPowerModeStatus.KEY_OUT, - SDLPowerModeStatus.KEY_RECENTLY_OUT, - SDLPowerModeStatus.KEY_APPROVED_0, - SDLPowerModeStatus.POST_ACCESORY_0, - SDLPowerModeStatus.ACCESORY_1, - SDLPowerModeStatus.POST_IGNITION_1, - SDLPowerModeStatus.IGNITION_ON_2, - SDLPowerModeStatus.RUNNING_2, - SDLPowerModeStatus.CRANK_3, - ]; - } - return SDLPowerModeStatus_values; -} - -+ (SDLPowerModeStatus *)KEY_OUT { - if (SDLPowerModeStatus_KEY_OUT == nil) { - SDLPowerModeStatus_KEY_OUT = [[SDLPowerModeStatus alloc] initWithValue:@"KEY_OUT"]; - } - return SDLPowerModeStatus_KEY_OUT; -} - -+ (SDLPowerModeStatus *)KEY_RECENTLY_OUT { - if (SDLPowerModeStatus_KEY_RECENTLY_OUT == nil) { - SDLPowerModeStatus_KEY_RECENTLY_OUT = [[SDLPowerModeStatus alloc] initWithValue:@"KEY_RECENTLY_OUT"]; - } - return SDLPowerModeStatus_KEY_RECENTLY_OUT; -} - -+ (SDLPowerModeStatus *)KEY_APPROVED_0 { - if (SDLPowerModeStatus_KEY_APPROVED_0 == nil) { - SDLPowerModeStatus_KEY_APPROVED_0 = [[SDLPowerModeStatus alloc] initWithValue:@"KEY_APPROVED_0"]; - } - return SDLPowerModeStatus_KEY_APPROVED_0; -} - -+ (SDLPowerModeStatus *)POST_ACCESORY_0 { - if (SDLPowerModeStatus_POST_ACCESORY_0 == nil) { - SDLPowerModeStatus_POST_ACCESORY_0 = [[SDLPowerModeStatus alloc] initWithValue:@"POST_ACCESORY_0"]; - } - return SDLPowerModeStatus_POST_ACCESORY_0; -} - -+ (SDLPowerModeStatus *)ACCESORY_1 { - if (SDLPowerModeStatus_ACCESORY_1 == nil) { - SDLPowerModeStatus_ACCESORY_1 = [[SDLPowerModeStatus alloc] initWithValue:@"ACCESORY_1"]; - } - return SDLPowerModeStatus_ACCESORY_1; -} - -+ (SDLPowerModeStatus *)POST_IGNITION_1 { - if (SDLPowerModeStatus_POST_IGNITION_1 == nil) { - SDLPowerModeStatus_POST_IGNITION_1 = [[SDLPowerModeStatus alloc] initWithValue:@"POST_IGNITION_1"]; - } - return SDLPowerModeStatus_POST_IGNITION_1; -} - -+ (SDLPowerModeStatus *)IGNITION_ON_2 { - if (SDLPowerModeStatus_IGNITION_ON_2 == nil) { - SDLPowerModeStatus_IGNITION_ON_2 = [[SDLPowerModeStatus alloc] initWithValue:@"IGNITION_ON_2"]; - } - return SDLPowerModeStatus_IGNITION_ON_2; -} - -+ (SDLPowerModeStatus *)RUNNING_2 { - if (SDLPowerModeStatus_RUNNING_2 == nil) { - SDLPowerModeStatus_RUNNING_2 = [[SDLPowerModeStatus alloc] initWithValue:@"RUNNING_2"]; - } - return SDLPowerModeStatus_RUNNING_2; -} - -+ (SDLPowerModeStatus *)CRANK_3 { - if (SDLPowerModeStatus_CRANK_3 == nil) { - SDLPowerModeStatus_CRANK_3 = [[SDLPowerModeStatus alloc] initWithValue:@"CRANK_3"]; - } - return SDLPowerModeStatus_CRANK_3; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h deleted file mode 100644 index 7d061d449..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h +++ /dev/null @@ -1,34 +0,0 @@ -// SDLPredefinedLayout.h -// - - -#import "SDLEnum.h" - -@interface SDLPredefinedLayout : SDLEnum { -} - -+ (SDLPredefinedLayout *)valueOf:(NSString *)value; -+ (NSArray *)values; - -+ (SDLPredefinedLayout *)DEFAULT; -+ (SDLPredefinedLayout *)MEDIA; -+ (SDLPredefinedLayout *)NON_MEDIA; -+ (SDLPredefinedLayout *)ONSCREEN_PRESETS; -+ (SDLPredefinedLayout *)NAV_FULLSCREEN_MAP; -+ (SDLPredefinedLayout *)NAV_LIST; -+ (SDLPredefinedLayout *)NAV_KEYBOARD; -+ (SDLPredefinedLayout *)GRAPHIC_WITH_TEXT; -+ (SDLPredefinedLayout *)TEXT_WITH_GRAPHIC; -+ (SDLPredefinedLayout *)TILES_ONLY; -+ (SDLPredefinedLayout *)TEXTBUTTONS_ONLY; -+ (SDLPredefinedLayout *)GRAPHIC_WITH_TILES; -+ (SDLPredefinedLayout *)TILES_WITH_GRAPHIC; -+ (SDLPredefinedLayout *)GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS; -+ (SDLPredefinedLayout *)TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC; -+ (SDLPredefinedLayout *)GRAPHIC_WITH_TEXTBUTTONS; -+ (SDLPredefinedLayout *)TEXTBUTTONS_WITH_GRAPHIC; -+ (SDLPredefinedLayout *)LARGE_GRAPHIC_WITH_SOFTBUTTONS; -+ (SDLPredefinedLayout *)DOUBLE_GRAPHIC_WITH_SOFTBUTTONS; -+ (SDLPredefinedLayout *)LARGE_GRAPHIC_ONLY; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.m deleted file mode 100644 index 57dc2b384..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.m +++ /dev/null @@ -1,209 +0,0 @@ -// SDLPredefinedLayout.m -// - - -#import "SDLPredefinedLayout.h" - -SDLPredefinedLayout *SDLPredefinedLayout_DEFAULT = nil; -SDLPredefinedLayout *SDLPredefinedLayout_MEDIA = nil; -SDLPredefinedLayout *SDLPredefinedLayout_NON_MEDIA = nil; -SDLPredefinedLayout *SDLPredefinedLayout_ONSCREEN_PRESETS = nil; -SDLPredefinedLayout *SDLPredefinedLayout_NAV_FULLSCREEN_MAP = nil; -SDLPredefinedLayout *SDLPredefinedLayout_NAV_LIST = nil; -SDLPredefinedLayout *SDLPredefinedLayout_NAV_KEYBOARD = nil; -SDLPredefinedLayout *SDLPredefinedLayout_GRAPHIC_WITH_TEXT = nil; -SDLPredefinedLayout *SDLPredefinedLayout_TEXT_WITH_GRAPHIC = nil; -SDLPredefinedLayout *SDLPredefinedLayout_TILES_ONLY = nil; -SDLPredefinedLayout *SDLPredefinedLayout_TEXTBUTTONS_ONLY = nil; -SDLPredefinedLayout *SDLPredefinedLayout_GRAPHIC_WITH_TILES = nil; -SDLPredefinedLayout *SDLPredefinedLayout_TILES_WITH_GRAPHIC = nil; -SDLPredefinedLayout *SDLPredefinedLayout_GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS = nil; -SDLPredefinedLayout *SDLPredefinedLayout_TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC = nil; -SDLPredefinedLayout *SDLPredefinedLayout_GRAPHIC_WITH_TEXTBUTTONS = nil; -SDLPredefinedLayout *SDLPredefinedLayout_TEXTBUTTONS_WITH_GRAPHIC = nil; -SDLPredefinedLayout *SDLPredefinedLayout_LARGE_GRAPHIC_WITH_SOFTBUTTONS = nil; -SDLPredefinedLayout *SDLPredefinedLayout_DOUBLE_GRAPHIC_WITH_SOFTBUTTONS = nil; -SDLPredefinedLayout *SDLPredefinedLayout_LARGE_GRAPHIC_ONLY = nil; - -NSArray *SDLPredefinedLayout_values = nil; - -@implementation SDLPredefinedLayout - -+ (SDLPredefinedLayout *)valueOf:(NSString *)value { - for (SDLPredefinedLayout *item in SDLPredefinedLayout.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLPredefinedLayout_values == nil) { - SDLPredefinedLayout_values = @[ - SDLPredefinedLayout.DEFAULT, - SDLPredefinedLayout.MEDIA, - SDLPredefinedLayout.NON_MEDIA, - SDLPredefinedLayout.ONSCREEN_PRESETS, - SDLPredefinedLayout.NAV_FULLSCREEN_MAP, - SDLPredefinedLayout.NAV_LIST, - SDLPredefinedLayout.NAV_KEYBOARD, - SDLPredefinedLayout.GRAPHIC_WITH_TEXT, - SDLPredefinedLayout.TEXT_WITH_GRAPHIC, - SDLPredefinedLayout.TILES_ONLY, - SDLPredefinedLayout.TEXTBUTTONS_ONLY, - SDLPredefinedLayout.GRAPHIC_WITH_TILES, - SDLPredefinedLayout.TILES_WITH_GRAPHIC, - SDLPredefinedLayout.GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS, - SDLPredefinedLayout.TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC, - SDLPredefinedLayout.GRAPHIC_WITH_TEXTBUTTONS, - SDLPredefinedLayout.TEXTBUTTONS_WITH_GRAPHIC, - SDLPredefinedLayout.LARGE_GRAPHIC_WITH_SOFTBUTTONS, - SDLPredefinedLayout.DOUBLE_GRAPHIC_WITH_SOFTBUTTONS, - SDLPredefinedLayout.LARGE_GRAPHIC_ONLY, - ]; - } - return SDLPredefinedLayout_values; -} - -+ (SDLPredefinedLayout *)DEFAULT { - if (SDLPredefinedLayout_DEFAULT == nil) { - SDLPredefinedLayout_DEFAULT = [[SDLPredefinedLayout alloc] initWithValue:@"DEFAULT"]; - } - return SDLPredefinedLayout_DEFAULT; -} - -+ (SDLPredefinedLayout *)MEDIA { - if (SDLPredefinedLayout_MEDIA == nil) { - SDLPredefinedLayout_MEDIA = [[SDLPredefinedLayout alloc] initWithValue:@"MEDIA"]; - } - return SDLPredefinedLayout_MEDIA; -} - -+ (SDLPredefinedLayout *)NON_MEDIA { - if (SDLPredefinedLayout_NON_MEDIA == nil) { - SDLPredefinedLayout_NON_MEDIA = [[SDLPredefinedLayout alloc] initWithValue:@"NON-MEDIA"]; - } - return SDLPredefinedLayout_NON_MEDIA; -} - -+ (SDLPredefinedLayout *)ONSCREEN_PRESETS { - if (SDLPredefinedLayout_ONSCREEN_PRESETS == nil) { - SDLPredefinedLayout_ONSCREEN_PRESETS = [[SDLPredefinedLayout alloc] initWithValue:@"ONSCREEN_PRESETS"]; - } - return SDLPredefinedLayout_ONSCREEN_PRESETS; -} - -+ (SDLPredefinedLayout *)NAV_FULLSCREEN_MAP { - if (SDLPredefinedLayout_NAV_FULLSCREEN_MAP == nil) { - SDLPredefinedLayout_NAV_FULLSCREEN_MAP = [[SDLPredefinedLayout alloc] initWithValue:@"NAV_FULLSCREEN_MAP"]; - } - return SDLPredefinedLayout_NAV_FULLSCREEN_MAP; -} - -+ (SDLPredefinedLayout *)NAV_LIST { - if (SDLPredefinedLayout_NAV_LIST == nil) { - SDLPredefinedLayout_NAV_LIST = [[SDLPredefinedLayout alloc] initWithValue:@"NAV_LIST"]; - } - return SDLPredefinedLayout_NAV_LIST; -} - -+ (SDLPredefinedLayout *)NAV_KEYBOARD { - if (SDLPredefinedLayout_NAV_KEYBOARD == nil) { - SDLPredefinedLayout_NAV_KEYBOARD = [[SDLPredefinedLayout alloc] initWithValue:@"NAV_KEYBOARD"]; - } - return SDLPredefinedLayout_NAV_KEYBOARD; -} - -+ (SDLPredefinedLayout *)GRAPHIC_WITH_TEXT { - if (SDLPredefinedLayout_GRAPHIC_WITH_TEXT == nil) { - SDLPredefinedLayout_GRAPHIC_WITH_TEXT = [[SDLPredefinedLayout alloc] initWithValue:@"GRAPHIC_WITH_TEXT"]; - } - return SDLPredefinedLayout_GRAPHIC_WITH_TEXT; -} - -+ (SDLPredefinedLayout *)TEXT_WITH_GRAPHIC { - if (SDLPredefinedLayout_TEXT_WITH_GRAPHIC == nil) { - SDLPredefinedLayout_TEXT_WITH_GRAPHIC = [[SDLPredefinedLayout alloc] initWithValue:@"TEXT_WITH_GRAPHIC"]; - } - return SDLPredefinedLayout_TEXT_WITH_GRAPHIC; -} - -+ (SDLPredefinedLayout *)TILES_ONLY { - if (SDLPredefinedLayout_TILES_ONLY == nil) { - SDLPredefinedLayout_TILES_ONLY = [[SDLPredefinedLayout alloc] initWithValue:@"TILES_ONLY"]; - } - return SDLPredefinedLayout_TILES_ONLY; -} - -+ (SDLPredefinedLayout *)TEXTBUTTONS_ONLY { - if (SDLPredefinedLayout_TEXTBUTTONS_ONLY == nil) { - SDLPredefinedLayout_TEXTBUTTONS_ONLY = [[SDLPredefinedLayout alloc] initWithValue:@"TEXTBUTTONS_ONLY"]; - } - return SDLPredefinedLayout_TEXTBUTTONS_ONLY; -} - -+ (SDLPredefinedLayout *)GRAPHIC_WITH_TILES { - if (SDLPredefinedLayout_GRAPHIC_WITH_TILES == nil) { - SDLPredefinedLayout_GRAPHIC_WITH_TILES = [[SDLPredefinedLayout alloc] initWithValue:@"GRAPHIC_WITH_TILES"]; - } - return SDLPredefinedLayout_GRAPHIC_WITH_TILES; -} - -+ (SDLPredefinedLayout *)TILES_WITH_GRAPHIC { - if (SDLPredefinedLayout_TILES_WITH_GRAPHIC == nil) { - SDLPredefinedLayout_TILES_WITH_GRAPHIC = [[SDLPredefinedLayout alloc] initWithValue:@"TILES_WITH_GRAPHIC"]; - } - return SDLPredefinedLayout_TILES_WITH_GRAPHIC; -} - -+ (SDLPredefinedLayout *)GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS { - if (SDLPredefinedLayout_GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS == nil) { - SDLPredefinedLayout_GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS = [[SDLPredefinedLayout alloc] initWithValue:@"GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS"]; - } - return SDLPredefinedLayout_GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS; -} - -+ (SDLPredefinedLayout *)TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC { - if (SDLPredefinedLayout_TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC == nil) { - SDLPredefinedLayout_TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC = [[SDLPredefinedLayout alloc] initWithValue:@"TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC"]; - } - return SDLPredefinedLayout_TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC; -} - -+ (SDLPredefinedLayout *)GRAPHIC_WITH_TEXTBUTTONS { - if (SDLPredefinedLayout_GRAPHIC_WITH_TEXTBUTTONS == nil) { - SDLPredefinedLayout_GRAPHIC_WITH_TEXTBUTTONS = [[SDLPredefinedLayout alloc] initWithValue:@"GRAPHIC_WITH_TEXTBUTTONS"]; - } - return SDLPredefinedLayout_GRAPHIC_WITH_TEXTBUTTONS; -} - -+ (SDLPredefinedLayout *)TEXTBUTTONS_WITH_GRAPHIC { - if (SDLPredefinedLayout_TEXTBUTTONS_WITH_GRAPHIC == nil) { - SDLPredefinedLayout_TEXTBUTTONS_WITH_GRAPHIC = [[SDLPredefinedLayout alloc] initWithValue:@"TEXTBUTTONS_WITH_GRAPHIC"]; - } - return SDLPredefinedLayout_TEXTBUTTONS_WITH_GRAPHIC; -} - -+ (SDLPredefinedLayout *)LARGE_GRAPHIC_WITH_SOFTBUTTONS { - if (SDLPredefinedLayout_LARGE_GRAPHIC_WITH_SOFTBUTTONS == nil) { - SDLPredefinedLayout_LARGE_GRAPHIC_WITH_SOFTBUTTONS = [[SDLPredefinedLayout alloc] initWithValue:@"LARGE_GRAPHIC_WITH_SOFTBUTTONS"]; - } - return SDLPredefinedLayout_LARGE_GRAPHIC_WITH_SOFTBUTTONS; -} - -+ (SDLPredefinedLayout *)DOUBLE_GRAPHIC_WITH_SOFTBUTTONS { - if (SDLPredefinedLayout_DOUBLE_GRAPHIC_WITH_SOFTBUTTONS == nil) { - SDLPredefinedLayout_DOUBLE_GRAPHIC_WITH_SOFTBUTTONS = [[SDLPredefinedLayout alloc] initWithValue:@"DOUBLE_GRAPHIC_WITH_SOFTBUTTONS"]; - } - return SDLPredefinedLayout_DOUBLE_GRAPHIC_WITH_SOFTBUTTONS; -} - -+ (SDLPredefinedLayout *)LARGE_GRAPHIC_ONLY { - if (SDLPredefinedLayout_LARGE_GRAPHIC_ONLY == nil) { - SDLPredefinedLayout_LARGE_GRAPHIC_ONLY = [[SDLPredefinedLayout alloc] initWithValue:@"LARGE_GRAPHIC_ONLY"]; - } - return SDLPredefinedLayout_LARGE_GRAPHIC_ONLY; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.h deleted file mode 100644 index 85934237a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.h +++ /dev/null @@ -1,19 +0,0 @@ -// SDLPrerecordedSpeech.h -// - - -#import "SDLEnum.h" - -@interface SDLPrerecordedSpeech : SDLEnum { -} - -+ (SDLPrerecordedSpeech *)valueOf:(NSString *)value; -+ (NSArray *)values; - -+ (SDLPrerecordedSpeech *)HELP_JINGLE; -+ (SDLPrerecordedSpeech *)INITIAL_JINGLE; -+ (SDLPrerecordedSpeech *)LISTEN_JINGLE; -+ (SDLPrerecordedSpeech *)POSITIVE_JINGLE; -+ (SDLPrerecordedSpeech *)NEGATIVE_JINGLE; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.m deleted file mode 100644 index 676645f76..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.m +++ /dev/null @@ -1,74 +0,0 @@ -// SDLPrerecordedSpeech.m -// - - -#import "SDLPrerecordedSpeech.h" - -SDLPrerecordedSpeech *SDLPrerecordedSpeech_HELP_JINGLE = nil; -SDLPrerecordedSpeech *SDLPrerecordedSpeech_INITIAL_JINGLE = nil; -SDLPrerecordedSpeech *SDLPrerecordedSpeech_LISTEN_JINGLE = nil; -SDLPrerecordedSpeech *SDLPrerecordedSpeech_POSITIVE_JINGLE = nil; -SDLPrerecordedSpeech *SDLPrerecordedSpeech_NEGATIVE_JINGLE = nil; - -NSArray *SDLPrerecordedSpeech_values = nil; - -@implementation SDLPrerecordedSpeech - -+ (SDLPrerecordedSpeech *)valueOf:(NSString *)value { - for (SDLPrerecordedSpeech *item in SDLPrerecordedSpeech.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLPrerecordedSpeech_values == nil) { - SDLPrerecordedSpeech_values = @[ - SDLPrerecordedSpeech.HELP_JINGLE, - SDLPrerecordedSpeech.INITIAL_JINGLE, - SDLPrerecordedSpeech.LISTEN_JINGLE, - SDLPrerecordedSpeech.POSITIVE_JINGLE, - SDLPrerecordedSpeech.NEGATIVE_JINGLE, - ]; - } - return SDLPrerecordedSpeech_values; -} - -+ (SDLPrerecordedSpeech *)HELP_JINGLE { - if (SDLPrerecordedSpeech_HELP_JINGLE == nil) { - SDLPrerecordedSpeech_HELP_JINGLE = [[SDLPrerecordedSpeech alloc] initWithValue:@"HELP_JINGLE"]; - } - return SDLPrerecordedSpeech_HELP_JINGLE; -} - -+ (SDLPrerecordedSpeech *)INITIAL_JINGLE { - if (SDLPrerecordedSpeech_INITIAL_JINGLE == nil) { - SDLPrerecordedSpeech_INITIAL_JINGLE = [[SDLPrerecordedSpeech alloc] initWithValue:@"INITIAL_JINGLE"]; - } - return SDLPrerecordedSpeech_INITIAL_JINGLE; -} - -+ (SDLPrerecordedSpeech *)LISTEN_JINGLE { - if (SDLPrerecordedSpeech_LISTEN_JINGLE == nil) { - SDLPrerecordedSpeech_LISTEN_JINGLE = [[SDLPrerecordedSpeech alloc] initWithValue:@"LISTEN_JINGLE"]; - } - return SDLPrerecordedSpeech_LISTEN_JINGLE; -} - -+ (SDLPrerecordedSpeech *)POSITIVE_JINGLE { - if (SDLPrerecordedSpeech_POSITIVE_JINGLE == nil) { - SDLPrerecordedSpeech_POSITIVE_JINGLE = [[SDLPrerecordedSpeech alloc] initWithValue:@"POSITIVE_JINGLE"]; - } - return SDLPrerecordedSpeech_POSITIVE_JINGLE; -} - -+ (SDLPrerecordedSpeech *)NEGATIVE_JINGLE { - if (SDLPrerecordedSpeech_NEGATIVE_JINGLE == nil) { - SDLPrerecordedSpeech_NEGATIVE_JINGLE = [[SDLPrerecordedSpeech alloc] initWithValue:@"NEGATIVE_JINGLE"]; - } - return SDLPrerecordedSpeech_NEGATIVE_JINGLE; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPresetBankCapabilities.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPresetBankCapabilities.h deleted file mode 100644 index edf544f8b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPresetBankCapabilities.h +++ /dev/null @@ -1,33 +0,0 @@ -// SDLPresetBankCapabilities.h -// - - -#import "SDLRPCMessage.h" - -/** - * Contains information about on-screen preset capabilities. - * - * @since SDL 2.0 - */ -@interface SDLPresetBankCapabilities : SDLRPCStruct { -} - -/** - * @abstract Constructs a newly allocated SDLPresetBankCapabilities object - */ -- (instancetype)init; - -/** - * @abstract Constructs a newly allocated SDLPresetBankCapabilities object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract If Onscreen custom presets are available. - * - * Required, Boolean - */ -@property (strong) NSNumber *onScreenPresetsAvailable; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPresetBankCapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPresetBankCapabilities.m deleted file mode 100644 index 7654aa61d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPresetBankCapabilities.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLPresetBankCapabilities.m -// - - -#import "SDLPresetBankCapabilities.h" - -#import "SDLNames.h" - -@implementation SDLPresetBankCapabilities - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setOnScreenPresetsAvailable:(NSNumber *)onScreenPresetsAvailable { - if (onScreenPresetsAvailable != nil) { - [store setObject:onScreenPresetsAvailable forKey:NAMES_onScreenPresetsAvailable]; - } else { - [store removeObjectForKey:NAMES_onScreenPresetsAvailable]; - } -} - -- (NSNumber *)onScreenPresetsAvailable { - return [store objectForKey:NAMES_onScreenPresetsAvailable]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrimaryAudioSource.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrimaryAudioSource.h deleted file mode 100644 index 81e9a2257..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrimaryAudioSource.h +++ /dev/null @@ -1,72 +0,0 @@ -// SDLPrimaryAudioSource.h -// - - -#import "SDLEnum.h" - -/** - * Reflects the current primary audio source of SDL (if selected). - * - * @since SDL 2.0 - */ -@interface SDLPrimaryAudioSource : SDLEnum { -} - -/** - * @abstract get SDLPrimaryAudioSource according value string - * - * @param value String value to retrieve the object enum for - * - * @return SDLPrimaryAudioSource object - */ -+ (SDLPrimaryAudioSource *)valueOf:(NSString *)value; - -/** - * @abstract declare an array to store all possible SDLPrimaryAudioSource values - * @return the array - */ -+ (NSArray *)values; - -/** - * @abstract Currently no source selected - * @return the current primary audio source: *NO_SOURCE_SELECTED* - */ -+ (SDLPrimaryAudioSource *)NO_SOURCE_SELECTED; - -/** - * @abstract USB is current source - * @return the current primary audio source: *USB* - */ -+ (SDLPrimaryAudioSource *)USB; - -/** - * @abstract USB2 is current source - * @return the current primary audio source: *USB2* - */ -+ (SDLPrimaryAudioSource *)USB2; - -/** - * @abstract Bluetooth Stereo is current source - * @return the current primary audio source: *BLUETOOTH_STEREO_BTST* - */ -+ (SDLPrimaryAudioSource *)BLUETOOTH_STEREO_BTST; - -/** - * @abstract Line in is current source - * @return the current primary audio source: *LINE_IN* - */ -+ (SDLPrimaryAudioSource *)LINE_IN; - -/** - * @abstract iPod is current source - * @return the current primary audio source: *IPOD* - */ -+ (SDLPrimaryAudioSource *)IPOD; - -/** - * @abstract Mobile app is current source - * @return the current primary audio source: *MOBILE_APP* - */ -+ (SDLPrimaryAudioSource *)MOBILE_APP; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrimaryAudioSource.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrimaryAudioSource.m deleted file mode 100644 index 4293411a8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrimaryAudioSource.m +++ /dev/null @@ -1,92 +0,0 @@ -// SDLPrimaryAudioSource.m -// - - -#import "SDLPrimaryAudioSource.h" - -SDLPrimaryAudioSource *SDLPrimaryAudioSource_NO_SOURCE_SELECTED = nil; -SDLPrimaryAudioSource *SDLPrimaryAudioSource_USB = nil; -SDLPrimaryAudioSource *SDLPrimaryAudioSource_USB2 = nil; -SDLPrimaryAudioSource *SDLPrimaryAudioSource_BLUETOOTH_STEREO_BTST = nil; -SDLPrimaryAudioSource *SDLPrimaryAudioSource_LINE_IN = nil; -SDLPrimaryAudioSource *SDLPrimaryAudioSource_IPOD = nil; -SDLPrimaryAudioSource *SDLPrimaryAudioSource_MOBILE_APP = nil; - -NSArray *SDLPrimaryAudioSource_values = nil; - -@implementation SDLPrimaryAudioSource - -+ (SDLPrimaryAudioSource *)valueOf:(NSString *)value { - for (SDLPrimaryAudioSource *item in SDLPrimaryAudioSource.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLPrimaryAudioSource_values == nil) { - SDLPrimaryAudioSource_values = @[ - SDLPrimaryAudioSource.NO_SOURCE_SELECTED, - SDLPrimaryAudioSource.USB, - SDLPrimaryAudioSource.USB2, - SDLPrimaryAudioSource.BLUETOOTH_STEREO_BTST, - SDLPrimaryAudioSource.LINE_IN, - SDLPrimaryAudioSource.IPOD, - SDLPrimaryAudioSource.MOBILE_APP, - ]; - } - return SDLPrimaryAudioSource_values; -} - -+ (SDLPrimaryAudioSource *)NO_SOURCE_SELECTED { - if (SDLPrimaryAudioSource_NO_SOURCE_SELECTED == nil) { - SDLPrimaryAudioSource_NO_SOURCE_SELECTED = [[SDLPrimaryAudioSource alloc] initWithValue:@"NO_SOURCE_SELECTED"]; - } - return SDLPrimaryAudioSource_NO_SOURCE_SELECTED; -} - -+ (SDLPrimaryAudioSource *)USB { - if (SDLPrimaryAudioSource_USB == nil) { - SDLPrimaryAudioSource_USB = [[SDLPrimaryAudioSource alloc] initWithValue:@"USB"]; - } - return SDLPrimaryAudioSource_USB; -} - -+ (SDLPrimaryAudioSource *)USB2 { - if (SDLPrimaryAudioSource_USB2 == nil) { - SDLPrimaryAudioSource_USB2 = [[SDLPrimaryAudioSource alloc] initWithValue:@"USB2"]; - } - return SDLPrimaryAudioSource_USB2; -} - -+ (SDLPrimaryAudioSource *)BLUETOOTH_STEREO_BTST { - if (SDLPrimaryAudioSource_BLUETOOTH_STEREO_BTST == nil) { - SDLPrimaryAudioSource_BLUETOOTH_STEREO_BTST = [[SDLPrimaryAudioSource alloc] initWithValue:@"BLUETOOTH_STEREO_BTST"]; - } - return SDLPrimaryAudioSource_BLUETOOTH_STEREO_BTST; -} - -+ (SDLPrimaryAudioSource *)LINE_IN { - if (SDLPrimaryAudioSource_LINE_IN == nil) { - SDLPrimaryAudioSource_LINE_IN = [[SDLPrimaryAudioSource alloc] initWithValue:@"LINE_IN"]; - } - return SDLPrimaryAudioSource_LINE_IN; -} - -+ (SDLPrimaryAudioSource *)IPOD { - if (SDLPrimaryAudioSource_IPOD == nil) { - SDLPrimaryAudioSource_IPOD = [[SDLPrimaryAudioSource alloc] initWithValue:@"IPOD"]; - } - return SDLPrimaryAudioSource_IPOD; -} - -+ (SDLPrimaryAudioSource *)MOBILE_APP { - if (SDLPrimaryAudioSource_MOBILE_APP == nil) { - SDLPrimaryAudioSource_MOBILE_APP = [[SDLPrimaryAudioSource alloc] initWithValue:@"MOBILE_APP"]; - } - return SDLPrimaryAudioSource_MOBILE_APP; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrioritizedObjectCollection.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrioritizedObjectCollection.h deleted file mode 100644 index 8cf90c805..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrioritizedObjectCollection.h +++ /dev/null @@ -1,27 +0,0 @@ -// -// SDLPrioritizedOutputCollection.h -// SmartDeviceLink -// - -#import - -@interface SDLPrioritizedObjectCollection : NSObject - -/** - * Add a new object to a push-pop collection. The object will be added in a location based on the priority passed in. - * - * A lower priority number is considered to be "higher". This is because this class is generally used with RPC service numbers, and lower services preempt higher ones. - * - * @param object The object to be added to the priority collection - * @param priority The priority to use when determining the location of the object in the collection. A lower number is considered a higher priority - */ -- (void)addObject:(id)object withPriority:(NSInteger)priority; - -/** - * Retreive the highest priority object from the collection. This also removes the object. - * - * @return The highest priority object retrieved from the collection. - */ -- (id)nextObject; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrioritizedObjectCollection.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrioritizedObjectCollection.m deleted file mode 100644 index 637596d14..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrioritizedObjectCollection.m +++ /dev/null @@ -1,66 +0,0 @@ -// -// SDLPrioritizedOutputCollection.m -// SmartDeviceLink -// - -#import "SDLPrioritizedObjectCollection.h" -#import "SDLObjectWithPriority.h" - - -@interface SDLPrioritizedObjectCollection () { - NSMutableArray *privateArray; -} -@end - - -@implementation SDLPrioritizedObjectCollection - -- (instancetype)init { - self = [super init]; - if (self) { - privateArray = [NSMutableArray new]; - } - return self; -} - -- (void)addObject:(id)object withPriority:(NSInteger)priority { - if (object == nil || [[NSNull null] isEqual:object]) { - return; - } - - SDLObjectWithPriority *newWrapper = [SDLObjectWithPriority objectWithObject:object priority:priority]; - - @synchronized(privateArray) { - // Find correct place to insert. - // Sorted in descending order. - BOOL lowerPriorityFound = NO; - NSInteger currentCount = privateArray.count; - for (int x = 0; x < currentCount; x++) { - SDLObjectWithPriority *o = privateArray[x]; - if (o.priority <= priority) { - lowerPriorityFound = YES; - [privateArray insertObject:newWrapper atIndex:x]; - break; - } - } - if (!lowerPriorityFound) { - [privateArray addObject:newWrapper]; - } - } -} - -- (instancetype)nextObject { - if (privateArray.count == 0) { - return nil; - } - - SDLObjectWithPriority *obj = nil; - @synchronized(privateArray) { - obj = (SDLObjectWithPriority *)[privateArray lastObject]; - [privateArray removeLastObject]; - } - - return obj.object; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h deleted file mode 100644 index 9c4505d2d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h +++ /dev/null @@ -1,21 +0,0 @@ -// SDLSmartDeviceLinkProtocol.h -// - -#import "SDLAbstractProtocol.h" -@class SDLProtocolHeader; -@class SDLProtocolRecievedMessageRouter; - - -@interface SDLProtocol : SDLAbstractProtocol - -// Sending -- (void)sendStartSessionWithType:(SDLServiceType)serviceType; -- (void)sendEndSessionWithType:(SDLServiceType)serviceType; -- (void)sendRPC:(SDLRPCMessage *)message; -- (void)sendRPCRequest:(SDLRPCRequest *)rpcRequest __deprecated_msg(("Use sendRPC: instead")); -- (void)sendRawData:(NSData *)data withServiceType:(SDLServiceType)serviceType; - -// Recieving -- (void)handleBytesFromTransport:(NSData *)receivedData; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.m deleted file mode 100644 index bb6db1814..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.m +++ /dev/null @@ -1,422 +0,0 @@ -// SDLProtocol.m -// - - -#import "SDLFunctionID.h" -#import "SDLJsonEncoder.h" - -#import "SDLAbstractTransport.h" -#import "SDLDebugTool.h" -#import "SDLGlobals.h" -#import "SDLPrioritizedObjectCollection.h" -#import "SDLProtocol.h" -#import "SDLProtocolHeader.h" -#import "SDLProtocolMessage.h" -#import "SDLProtocolMessageDisassembler.h" -#import "SDLProtocolReceivedMessageRouter.h" -#import "SDLRPCNotification.h" -#import "SDLRPCPayload.h" -#import "SDLRPCRequest.h" -#import "SDLRPCResponse.h" -#import "SDLTimer.h" -#import "SDLV2ProtocolHeader.h" - - -@interface SDLProtocol () { - UInt32 _messageID; - dispatch_queue_t _receiveQueue; - dispatch_queue_t _sendQueue; - SDLPrioritizedObjectCollection *_prioritizedCollection; - NSMutableDictionary *_sessionIDs; - BOOL _alreadyDestructed; -} - -@property (assign) UInt8 sessionID; -@property (strong) NSMutableData *receiveBuffer; -@property (strong) SDLProtocolReceivedMessageRouter *messageRouter; -@end - - -@implementation SDLProtocol - -- (instancetype)init { - if (self = [super init]) { - _messageID = 0; - _sessionID = 0; - _receiveQueue = dispatch_queue_create("com.sdl.protocol.receive", DISPATCH_QUEUE_SERIAL); - _sendQueue = dispatch_queue_create("com.sdl.protocol.transmit", DISPATCH_QUEUE_SERIAL); - _prioritizedCollection = [[SDLPrioritizedObjectCollection alloc] init]; - _sessionIDs = [NSMutableDictionary new]; - _messageRouter = [[SDLProtocolReceivedMessageRouter alloc] init]; - _messageRouter.delegate = self; - } - - return self; -} - -- (void)sdl_storeSessionID:(UInt8)sessionID forServiceType:(SDLServiceType)serviceType { - _sessionIDs[@(serviceType)] = @(sessionID); -} - -- (void)sdl_removeSessionIdForServiceType:(SDLServiceType)serviceType { - [_sessionIDs removeObjectForKey:@(serviceType)]; -} - -- (UInt8)sdl_retrieveSessionIDforServiceType:(SDLServiceType)serviceType { - NSNumber *number = _sessionIDs[@(serviceType)]; - if (!number) { - NSString *logMessage = [NSString stringWithFormat:@"Warning: Tried to retrieve sessionID for serviceType %i, but no sessionID is saved for that service type.", serviceType]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Protocol toOutput:SDLDebugOutput_File | SDLDebugOutput_DeviceConsole toGroup:self.debugConsoleGroupName]; - } - - return (number ? [number unsignedCharValue] : 0); -} - -- (void)sendStartSessionWithType:(SDLServiceType)serviceType { - SDLProtocolHeader *header = [SDLProtocolHeader headerForVersion:[SDLGlobals globals].protocolVersion]; - switch (serviceType) { - case SDLServiceType_RPC: { - // Need a different header for starting the RPC service - header = [SDLProtocolHeader headerForVersion:1]; - if ([self sdl_retrieveSessionIDforServiceType:SDLServiceType_RPC]) { - header.sessionID = [self sdl_retrieveSessionIDforServiceType:SDLServiceType_RPC]; - } - } break; - default: { - header.sessionID = self.sessionID; - } break; - } - header.frameType = SDLFrameType_Control; - header.serviceType = serviceType; - header.frameData = SDLFrameData_StartSession; - - SDLProtocolMessage *message = [SDLProtocolMessage messageWithHeader:header andPayload:nil]; - [self sendDataToTransport:message.data withPriority:serviceType]; -} - -- (void)sendEndSessionWithType:(SDLServiceType)serviceType { - SDLProtocolHeader *header = [SDLProtocolHeader headerForVersion:[SDLGlobals globals].protocolVersion]; - header.frameType = SDLFrameType_Control; - header.serviceType = serviceType; - header.frameData = SDLFrameData_EndSession; - header.sessionID = [self sdl_retrieveSessionIDforServiceType:serviceType]; - - SDLProtocolMessage *message = [SDLProtocolMessage messageWithHeader:header andPayload:nil]; - [self sendDataToTransport:message.data withPriority:serviceType]; -} - -- (void)sendRPC:(SDLRPCMessage *)message { - NSParameterAssert(message != nil); - - NSData *jsonData = [[SDLJsonEncoder instance] encodeDictionary:[message serializeAsDictionary:[SDLGlobals globals].protocolVersion]]; - NSData *messagePayload = nil; - - NSString *logMessage = [NSString stringWithFormat:@"%@", message]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - // Build the message payload. Include the binary header if necessary - // VERSION DEPENDENT CODE - switch ([SDLGlobals globals].protocolVersion) { - case 1: { - // No binary header in version 1 - messagePayload = jsonData; - } break; - case 2: // Fallthrough - case 3: // Fallthrough - case 4: { - // Build a binary header - // Serialize the RPC data into an NSData - SDLRPCPayload *rpcPayload = [[SDLRPCPayload alloc] init]; - rpcPayload.functionID = [[[[SDLFunctionID alloc] init] getFunctionID:[message getFunctionName]] intValue]; - rpcPayload.jsonData = jsonData; - rpcPayload.binaryData = message.bulkData; - - // If it's a request or a response, we need to pull out the correlation ID, so we'll downcast - if ([message isKindOfClass:SDLRPCRequest.class]) { - rpcPayload.rpcType = SDLRPCMessageTypeRequest; - rpcPayload.correlationID = [((SDLRPCRequest *)message).correlationID intValue]; - } else if ([message isKindOfClass:SDLRPCResponse.class]) { - rpcPayload.rpcType = SDLRPCMessageTypeResponse; - rpcPayload.correlationID = [((SDLRPCResponse *)message).correlationID intValue]; - } else if ([message isKindOfClass:[SDLRPCNotification class]]) { - rpcPayload.rpcType = SDLRPCMessageTypeNotification; - } else { - NSAssert(NO, @"Unknown message type attempted to send. Type: %@", [message class]); - return; - } - - messagePayload = rpcPayload.data; - } break; - default: { - NSAssert(NO, @"Attempting to send an RPC based on an unknown version number: %@, message: %@", @([SDLGlobals globals].protocolVersion), message); - } break; - } - - // Build the protocol level header & message - SDLProtocolHeader *header = [SDLProtocolHeader headerForVersion:[SDLGlobals globals].protocolVersion]; - header.frameType = SDLFrameType_Single; - header.serviceType = (message.bulkData.length <= 0) ? SDLServiceType_RPC : SDLServiceType_BulkData; - header.frameData = SDLFrameData_SingleFrame; - header.sessionID = [self sdl_retrieveSessionIDforServiceType:SDLServiceType_RPC]; - header.bytesInPayload = (UInt32)messagePayload.length; - - // V2+ messages need to have message ID property set. - if ([SDLGlobals globals].protocolVersion >= 2) { - [((SDLV2ProtocolHeader *)header) setMessageID:++_messageID]; - } - - - SDLProtocolMessage *protocolMessage = [SDLProtocolMessage messageWithHeader:header andPayload:messagePayload]; - - // See if the message is small enough to send in one transmission. If not, break it up into smaller messages and send. - if (protocolMessage.size < [SDLGlobals globals].maxMTUSize) { - [self logRPCSend:protocolMessage]; - [self sendDataToTransport:protocolMessage.data withPriority:SDLServiceType_RPC]; - } else { - NSArray *messages = [SDLProtocolMessageDisassembler disassemble:protocolMessage withLimit:[SDLGlobals globals].maxMTUSize]; - for (SDLProtocolMessage *smallerMessage in messages) { - [self logRPCSend:smallerMessage]; - [self sendDataToTransport:smallerMessage.data withPriority:SDLServiceType_RPC]; - } - } -} - -// SDLRPCRequest in from app -> SDLProtocolMessage out to transport layer. -- (void)sendRPCRequest:(SDLRPCRequest *)rpcRequest { - [self sendRPC:rpcRequest]; -} - -- (void)logRPCSend:(SDLProtocolMessage *)message { - NSString *logMessage = [NSString stringWithFormat:@"Sending : %@", message]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Protocol toOutput:SDLDebugOutput_File | SDLDebugOutput_DeviceConsole toGroup:self.debugConsoleGroupName]; -} - -// Use for normal messages -- (void)sendDataToTransport:(NSData *)data withPriority:(NSInteger)priority { - [_prioritizedCollection addObject:data withPriority:priority]; - - dispatch_async(_sendQueue, ^{ - NSData *dataToTransmit = nil; - while (dataToTransmit = (NSData *)[_prioritizedCollection nextObject]) { - [self.transport sendData:dataToTransmit]; - }; - }); -} - -// Turn received bytes into message objects. -- (void)handleBytesFromTransport:(NSData *)receivedData { - // Initialize the receive buffer which will contain bytes while messages are constructed. - if (self.receiveBuffer == nil) { - self.receiveBuffer = [NSMutableData dataWithCapacity:(4 * [SDLGlobals globals].maxMTUSize)]; - } - - // Save the data - [self.receiveBuffer appendData:receivedData]; - - [self processMessages]; -} - -- (void)processMessages { - NSMutableString *logMessage = [[NSMutableString alloc] init]; - UInt8 incomingVersion = [SDLProtocolMessage determineVersion:self.receiveBuffer]; - - // If we have enough bytes, create the header. - SDLProtocolHeader *header = [SDLProtocolHeader headerForVersion:incomingVersion]; - NSUInteger headerSize = header.size; - if (self.receiveBuffer.length >= headerSize) { - [header parse:self.receiveBuffer]; - } else { - return; - } - - // If we have enough bytes, finish building the message. - SDLProtocolMessage *message = nil; - NSUInteger payloadSize = header.bytesInPayload; - NSUInteger messageSize = headerSize + payloadSize; - if (self.receiveBuffer.length >= messageSize) { - NSUInteger payloadOffset = headerSize; - NSUInteger payloadLength = payloadSize; - NSData *payload = [self.receiveBuffer subdataWithRange:NSMakeRange(payloadOffset, payloadLength)]; - message = [SDLProtocolMessage messageWithHeader:header andPayload:payload]; - [logMessage appendFormat:@"message complete. %@", message]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Protocol toOutput:SDLDebugOutput_File | SDLDebugOutput_DeviceConsole toGroup:self.debugConsoleGroupName]; - } else { - // Need to wait for more bytes. - [logMessage appendFormat:@"header complete. message incomplete, waiting for %ld more bytes. Header:%@", (long)(messageSize - self.receiveBuffer.length), header]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Protocol toOutput:SDLDebugOutput_File | SDLDebugOutput_DeviceConsole toGroup:self.debugConsoleGroupName]; - return; - } - - // Need to maintain the receiveBuffer, remove the bytes from it which we just processed. - self.receiveBuffer = [[self.receiveBuffer subdataWithRange:NSMakeRange(messageSize, self.receiveBuffer.length - messageSize)] mutableCopy]; - - // Pass on the message to the message router. - dispatch_async(_receiveQueue, ^{ - [self.messageRouter handleReceivedMessage:message]; - }); - - // Call recursively until the buffer is empty or incomplete message is encountered - if (self.receiveBuffer.length > 0) - [self processMessages]; -} - -- (void)sendHeartbeat { - SDLProtocolHeader *header = [SDLProtocolHeader headerForVersion:[SDLGlobals globals].protocolVersion]; - header.frameType = SDLFrameType_Control; - header.serviceType = SDLServiceType_Control; - header.frameData = SDLFrameData_Heartbeat; - header.sessionID = self.sessionID; - SDLProtocolMessage *message = [SDLProtocolMessage messageWithHeader:header andPayload:nil]; - [self sendDataToTransport:message.data withPriority:header.serviceType]; -} - -- (void)sendRawData:(NSData *)data withServiceType:(SDLServiceType)serviceType { - SDLV2ProtocolHeader *header = [[SDLV2ProtocolHeader alloc] initWithVersion:[SDLGlobals globals].protocolVersion]; - header.frameType = SDLFrameType_Single; - header.serviceType = serviceType; - header.sessionID = self.sessionID; - header.bytesInPayload = (UInt32)data.length; - header.messageID = ++_messageID; - - SDLProtocolMessage *message = [SDLProtocolMessage messageWithHeader:header andPayload:data]; - - if (message.size < [SDLGlobals globals].maxMTUSize) { - [self logRPCSend:message]; - [self sendDataToTransport:message.data withPriority:header.serviceType]; - } else { - NSArray *messages = [SDLProtocolMessageDisassembler disassemble:message withLimit:[SDLGlobals globals].maxMTUSize]; - for (SDLProtocolMessage *smallerMessage in messages) { - [self logRPCSend:smallerMessage]; - [self sendDataToTransport:smallerMessage.data withPriority:header.serviceType]; - } - } -} - - -#pragma mark - SDLProtocolListener Implementation -- (void)handleProtocolStartSessionACK:(SDLServiceType)serviceType sessionID:(Byte)sessionID version:(Byte)version { - switch (serviceType) { - case SDLServiceType_RPC: { - self.sessionID = sessionID; - [SDLGlobals globals].maxHeadUnitVersion = version; - } break; - default: - break; - } - - [self sdl_storeSessionID:sessionID forServiceType:serviceType]; - - for (id listener in self.protocolDelegateTable.allObjects) { - if ([listener respondsToSelector:@selector(handleProtocolStartSessionACK:sessionID:version:)]) { - [listener handleProtocolStartSessionACK:serviceType sessionID:sessionID version:version]; - } - } -} - -- (void)handleProtocolStartSessionNACK:(SDLServiceType)serviceType { - for (id listener in self.protocolDelegateTable.allObjects) { - if ([listener respondsToSelector:@selector(handleProtocolStartSessionNACK:)]) { - [listener handleProtocolStartSessionNACK:serviceType]; - } - } -} - -- (void)handleProtocolEndSessionACK:(SDLServiceType)serviceType { - // Remove the session id - [self sdl_removeSessionIdForServiceType:serviceType]; - - for (id listener in self.protocolDelegateTable.allObjects) { - if ([listener respondsToSelector:@selector(handleProtocolEndSessionACK:)]) { - [listener handleProtocolEndSessionACK:serviceType]; - } - } -} - -- (void)handleProtocolEndSessionNACK:(SDLServiceType)serviceType { - for (id listener in self.protocolDelegateTable.allObjects) { - if ([listener respondsToSelector:@selector(handleProtocolEndSessionNACK:)]) { - [listener handleProtocolEndSessionNACK:serviceType]; - } - } -} - -- (void)handleHeartbeatForSession:(Byte)session { - // Respond with a heartbeat ACK - SDLProtocolHeader *header = [SDLProtocolHeader headerForVersion:[SDLGlobals globals].protocolVersion]; - header.frameType = SDLFrameType_Control; - header.serviceType = SDLServiceType_Control; - header.frameData = SDLFrameData_HeartbeatACK; - header.sessionID = session; - SDLProtocolMessage *message = [SDLProtocolMessage messageWithHeader:header andPayload:nil]; - [self sendDataToTransport:message.data withPriority:header.serviceType]; - - for (id listener in self.protocolDelegateTable.allObjects) { - if ([listener respondsToSelector:@selector(handleHeartbeatForSession:)]) { - [listener handleHeartbeatForSession:session]; - } - } -} - -- (void)handleHeartbeatACK { - for (id listener in self.protocolDelegateTable.allObjects) { - if ([listener respondsToSelector:@selector(handleHeartbeatACK)]) { - [listener handleHeartbeatACK]; - } - } -} - -- (void)onProtocolMessageReceived:(SDLProtocolMessage *)msg { - for (id listener in self.protocolDelegateTable.allObjects) { - if ([listener respondsToSelector:@selector(onProtocolMessageReceived:)]) { - [listener onProtocolMessageReceived:msg]; - } - } -} - -- (void)onProtocolOpened { - for (id listener in self.protocolDelegateTable.allObjects) { - if ([listener respondsToSelector:@selector(onProtocolOpened)]) { - [listener onProtocolOpened]; - } - } -} - -- (void)onProtocolClosed { - for (id listener in self.protocolDelegateTable.allObjects) { - if ([listener respondsToSelector:@selector(onProtocolClosed)]) { - [listener onProtocolClosed]; - } - } -} - -- (void)onError:(NSString *)info exception:(NSException *)e { - for (id listener in self.protocolDelegateTable.allObjects) { - if ([listener respondsToSelector:@selector(onError:exception:)]) { - [listener onError:info exception:e]; - } - } -} - - -#pragma mark - Lifecycle - -- (void)destructObjects { - if (!_alreadyDestructed) { - _alreadyDestructed = YES; - self.messageRouter.delegate = nil; - self.messageRouter = nil; - self.transport = nil; - self.protocolDelegateTable = nil; - } -} - -- (void)dispose { - [self destructObjects]; -} - -- (void)dealloc { - [self destructObjects]; - [SDLDebugTool logInfo:@"SDLProtocol Dealloc" withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h deleted file mode 100644 index e99e5d93c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h +++ /dev/null @@ -1,61 +0,0 @@ -// SDLProtocolHeader.h -// - -#import - - -typedef NS_ENUM(UInt8, SDLFrameType) { - SDLFrameType_Control = 0x00, - SDLFrameType_Single = 0x01, - SDLFrameType_First = 0x02, - SDLFrameType_Consecutive = 0x03 -}; - -typedef NS_ENUM(UInt8, SDLServiceType) { - SDLServiceType_Control = 0x00, - SDLServiceType_RPC = 0x07, - SDLServiceType_Audio = 0x0A, - SDLServiceType_Video = 0x0B, - SDLServiceType_BulkData = 0x0F -}; - -typedef NS_ENUM(UInt8, SDLFrameData) { - SDLFrameData_Heartbeat = 0x00, - SDLFrameData_StartSession = 0x01, - SDLFrameData_StartSessionACK = 0x02, - SDLFrameData_StartSessionNACK = 0x03, - SDLFrameData_EndSession = 0x04, - SDLFrameData_EndSessionACK = 0x05, - SDLFrameData_EndSessionNACK = 0x06, - SDLFrameData_ServiceDataACK = 0xFE, - SDLFrameData_HeartbeatACK = 0xFF, - // If frameType == Single (0x01) - SDLFrameData_SingleFrame = 0x00, - // If frameType == First (0x02) - SDLFrameData_FirstFrame = 0x00, - // If frametype == Consecutive (0x03) - SDLFrameData_ConsecutiveLastFrame = 0x00 -}; - - -@interface SDLProtocolHeader : NSObject { - UInt8 _version; - NSUInteger _size; -} - -@property (assign, readonly) UInt8 version; -@property (assign, readonly) NSUInteger size; -@property (assign) BOOL compressed; -@property (assign) SDLFrameType frameType; -@property (assign) SDLServiceType serviceType; -@property (assign) SDLFrameData frameData; -@property (assign) UInt8 sessionID; -@property (assign) UInt32 bytesInPayload; - -- (instancetype)init; -- (NSData *)data; -- (void)parse:(NSData *)data; -- (NSString *)description; -+ (SDLProtocolHeader *)headerForVersion:(UInt8)version; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.m deleted file mode 100644 index dff874a9d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.m +++ /dev/null @@ -1,60 +0,0 @@ -// SDLProtocolHeader.m -// - - -#import "SDLProtocolHeader.h" -#import "SDLV1ProtocolHeader.h" -#import "SDLV2ProtocolHeader.h" - -@implementation SDLProtocolHeader - -@synthesize version = _version; -@synthesize size = _size; - - -- (instancetype)init { - if (self = [super init]) { - _version = 0; - _size = 0; - } - return self; -} - -- (id)copyWithZone:(NSZone *)zone { - [self doesNotRecognizeSelector:_cmd]; - return 0; -} - -- (NSData *)data { - [self doesNotRecognizeSelector:_cmd]; - return nil; -} - -- (void)parse:(NSData *)data { - [self doesNotRecognizeSelector:_cmd]; -} - -- (NSString *)description { - NSString *description = [NSString stringWithFormat:@"<%@: %p>", NSStringFromClass([self class]), self]; - return description; -} - -+ (SDLProtocolHeader *)headerForVersion:(UInt8)version { - // VERSION DEPENDENT CODE - switch (version) { - case 1: { - return [[SDLV1ProtocolHeader alloc] init]; - } break; - case 2: // Fallthrough - case 3: // Fallthrough - case 4: { - return [[SDLV2ProtocolHeader alloc] initWithVersion:version]; - } break; - default: { - NSString *reason = [NSString stringWithFormat:@"The version of header that is being created is unknown: %@", @(version)]; - @throw [NSException exceptionWithName:NSInvalidArgumentException reason:reason userInfo:@{ @"requestedVersion" : @(version) }]; - } break; - } -} - -@end \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h deleted file mode 100644 index 3fb1e550f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h +++ /dev/null @@ -1,23 +0,0 @@ -// SDLProtocolListener.h -// - -#import "SDLProtocolHeader.h" - -@class SDLProtocolMessage; - - -@protocol SDLProtocolListener - -@optional -- (void)handleProtocolStartSessionACK:(SDLServiceType)serviceType sessionID:(Byte)sessionID version:(Byte)version; -- (void)handleProtocolStartSessionNACK:(SDLServiceType)serviceType; -- (void)handleProtocolEndSessionACK:(SDLServiceType)serviceType; -- (void)handleProtocolEndSessionNACK:(SDLServiceType)serviceType; -- (void)handleHeartbeatForSession:(Byte)session; -- (void)handleHeartbeatACK; -- (void)onProtocolMessageReceived:(SDLProtocolMessage *)msg; -- (void)onProtocolOpened; -- (void)onProtocolClosed; -- (void)onError:(NSString *)info exception:(NSException *)e; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h deleted file mode 100644 index 62abd6226..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h +++ /dev/null @@ -1,23 +0,0 @@ -// SDLSmartDeviceLinkProtocolMessage.h -// - -#import -@class SDLProtocolHeader; - - -@interface SDLProtocolMessage : NSObject - -@property (strong) SDLProtocolHeader *header; -@property (strong) NSData *payload; -@property (strong, readonly) NSData *data; - -+ (id)messageWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload; // Returns a V1 or V2 object - -- (NSUInteger)size; -- (NSString *)description; -- (NSDictionary *)rpcDictionary; // Use for RPC type messages to obtain the data in a dictionary - -+ (UInt8)determineVersion:(NSData *)data; - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.m deleted file mode 100644 index f68810123..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.m +++ /dev/null @@ -1,99 +0,0 @@ -// SDLProtocolMessage.m -// - - -#import "SDLProtocolMessage.h" -#import "SDLFunctionID.h" -#import "SDLProtocolHeader.h" -#import "SDLRPCPayload.h" -#import "SDLV1ProtocolMessage.h" -#import "SDLV2ProtocolMessage.h" - -@interface SDLProtocolMessage () - -@property (strong) NSMutableData *internalBuffer; - -@end - -@implementation SDLProtocolMessage - -// For use in decoding a stream of bytes. -// Pass in bytes representing message (or beginning of message) -// Looks at and parses first byte to determine version. -+ (UInt8)determineVersion:(NSData *)data { - UInt8 firstByte = ((UInt8 *)data.bytes)[0]; - UInt8 version = firstByte >> 4; - return version; -} - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (NSDictionary *)rpcDictionary { - [self doesNotRecognizeSelector:_cmd]; - return nil; -} - -- (NSUInteger)size { - return (self.header.size + self.payload.length); -} - -- (NSData *)data { - NSMutableData *dataOut = [NSMutableData dataWithCapacity:[self size]]; - [dataOut appendData:self.header.data]; - [dataOut appendData:self.payload]; - - return dataOut; -} - -- (NSString *)description { - // Print the header data. - NSMutableString *description = [[NSMutableString alloc] init]; - [description appendString:self.header.description]; - - // If it's an RPC, provide greater detail - if (((self.header.serviceType == SDLServiceType_RPC) || (self.header.serviceType == SDLServiceType_BulkData)) && (self.header.frameType == SDLFrameType_Single)) { - // version of RPC Message determines how we access the info. - if (self.header.version >= 2) { - SDLRPCPayload *rpcPayload = [SDLRPCPayload rpcPayloadWithData:self.payload]; - if (rpcPayload) { - NSString *functionName = [[[SDLFunctionID alloc] init] getFunctionName:rpcPayload.functionID]; - - UInt8 rpcType = rpcPayload.rpcType; - NSArray *rpcTypeNames = @[ @"Request", @"Response", @"Notification" ]; - NSString *rpcTypeString = nil; - if (rpcType >= 0 && rpcType < rpcTypeNames.count) { - rpcTypeString = rpcTypeNames[rpcType]; - } - [description appendFormat:@" RPC Info: %@ %@", functionName, rpcTypeString]; - } - } else { - // version == 1 - // turn payload (which is JSON string) into dictionary and extract fields of interest. - } - } else { - // Not an RPC, provide generic info. - [description appendFormat:@" Payload: %lu bytes.", (unsigned long)self.payload.length]; - } - - return description; -} - -// Returns a V1 or V2 object -+ (id)messageWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload { - SDLProtocolMessage *newMessage = nil; - - UInt8 version = header.version; - if (version == 1) { - newMessage = [[SDLV1ProtocolMessage alloc] initWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload]; - } else if (version >= 2) { - newMessage = [[SDLV2ProtocolMessage alloc] initWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload]; - } - - return newMessage; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageAssembler.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageAssembler.h deleted file mode 100644 index 3c793f441..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageAssembler.h +++ /dev/null @@ -1,22 +0,0 @@ -// SDLSmartDeviceLinkProtocolMessageAssembler.h -// - -#import - -@class SDLProtocolMessage; - - -typedef void (^SDLMessageAssemblyCompletionHandler)(BOOL done, SDLProtocolMessage *assembledMessage); - - -@interface SDLProtocolMessageAssembler : NSObject - -@property (assign, readonly) UInt8 sessionID; -@property (assign) UInt32 frameCount; // number of consecutive frames required for reassembly -@property (assign) UInt32 expectedBytes; -@property (strong) NSMutableDictionary *parts; - -- (instancetype)initWithSessionID:(UInt8)sessionID; -- (void)handleMessage:(SDLProtocolMessage *)message withCompletionHandler:(SDLMessageAssemblyCompletionHandler)completionHandler; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageAssembler.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageAssembler.m deleted file mode 100644 index c41591c51..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageAssembler.m +++ /dev/null @@ -1,94 +0,0 @@ -// SDLSmartDeviceLinkProtocolMessageAssembler.m -// - -#import "SDLProtocolMessageAssembler.h" - -#import "SDLProtocolHeader.h" -#import "SDLProtocolMessage.h" - -@implementation SDLProtocolMessageAssembler - -- (instancetype)initWithSessionID:(UInt8)sessionID { - if (self = [super init]) { - _sessionID = sessionID; - } - return self; -} - -- (void)handleMessage:(SDLProtocolMessage *)message withCompletionHandler:(SDLMessageAssemblyCompletionHandler)completionHandler { - // Validate input - if (message.header.sessionID != self.sessionID) { - NSLog(@"Error: message part sent to wrong assembler."); - return; - } - - if (self.parts == nil) { - self.parts = [NSMutableDictionary new]; - } - - - // Determine which frame it is and save it. - // Note: frames are numbered 1,2,3, ..., 0 - // Always 0 for last frame. - if (message.header.frameType == SDLFrameType_First) { - // If it's the first-frame, extract the meta-data - self.expectedBytes = NSSwapBigIntToHost(((UInt32 *)message.payload.bytes)[0]); - self.frameCount = NSSwapBigIntToHost(((UInt32 *)message.payload.bytes)[1]); - self.parts[@"firstframe"] = message.payload; - } else if (message.header.frameType == SDLFrameType_Consecutive) { - // Save the frame w/ frame# as the key - NSInteger frameNumber = message.header.frameData; - NSNumber *frameNumberObj = @(frameNumber); - self.parts[frameNumberObj] = message.payload; - } - - - // - // If we have all the parts, assemble it and execute the completion handler. - // - SDLProtocolMessage *assembledMessage = nil; - if (self.parts.count == self.frameCount + 1) { // +1 since we also require the first-frame - - // Create the header - SDLProtocolHeader *header = message.header.copy; - header.frameType = SDLFrameType_Single; - header.frameData = SDLFrameData_SingleFrame; - - - // Create the payload - NSMutableData *payload = [[NSMutableData alloc] init]; - for (unsigned int i = 1; i < self.frameCount; i++) { - NSData *dataToAppend = [self.parts objectForKey:[NSNumber numberWithUnsignedInt:i]]; - [payload appendData:dataToAppend]; - } - // Append the last frame, it has a frame # of 0. - NSData *dataToAppend = [self.parts objectForKey:[NSNumber numberWithUnsignedInt:0]]; - [payload appendData:dataToAppend]; - - // Validation - header.bytesInPayload = (UInt32)payload.length; - if (payload.length != self.expectedBytes) { - NSLog(@"Warning: collected bytes size of %lu not equal to expected size of %i.", (unsigned long)payload.length, (unsigned int)self.expectedBytes); - } - - // Create the message. - assembledMessage = [SDLProtocolMessage messageWithHeader:header andPayload:payload]; - - - // Execute completion handler. - if (completionHandler != nil) { - completionHandler(YES, assembledMessage); - } - - // Done with this data, release it. - self.parts = nil; - - } else { - // Not done, let caller know - if (completionHandler != nil) { - completionHandler(NO, nil); - } - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageDisassembler.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageDisassembler.h deleted file mode 100644 index 10f6f2860..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageDisassembler.h +++ /dev/null @@ -1,13 +0,0 @@ -// SDLSmartDeviceLinkProtocolMessageDisassembler.h -// - -#import - -@class SDLProtocolMessage; - - -@interface SDLProtocolMessageDisassembler : NSObject - -+ (NSArray *)disassemble:(SDLProtocolMessage *)protocolMessage withLimit:(NSUInteger)mtu; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageDisassembler.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageDisassembler.m deleted file mode 100644 index 76d722956..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessageDisassembler.m +++ /dev/null @@ -1,89 +0,0 @@ -// SDLProtocolMessageDisassembler.m -// - -#import "SDLProtocolMessageDisassembler.h" -#import "SDLProtocolHeader.h" -#import "SDLProtocolMessage.h" - - -@implementation SDLProtocolMessageDisassembler - - -// Use to break up a large message into a sequence of smaller messages, -// each of which is less than 'mtu' number of bytes total size. -+ (NSArray *)disassemble:(SDLProtocolMessage *)incomingMessage withLimit:(NSUInteger)mtu { - // Questions: - // What message IDs does the current system use? Same messageIDs? Same CorrelationIDs? - // What gets simply copied from incoming header to created headers; and what needs adjustment? - - // How big is the message header? - NSUInteger headerSize = incomingMessage.header.size; - - // The size of the message is too big to send in one chunk. - // So lets break it up. - // Just how big IS this message? - NSUInteger incomingPayloadSize = (incomingMessage.data.length - headerSize); - - // How many messages do we need to create to hold that many bytes? - // Note: this does NOT count the special first message which acts as a descriptor. - NSUInteger numberOfMessagesRequired = ceil((float)incomingPayloadSize / (float)(mtu - headerSize)); - - // And how many data bytes go in each message? - NSUInteger numberOfDataBytesPerMessage = mtu - headerSize; - - // Create the outgoing array to hold the messages we will create. - NSMutableArray *outgoingMessages = [NSMutableArray arrayWithCapacity:numberOfMessagesRequired + 1]; - - - // Create the first message - SDLProtocolHeader *firstFrameHeader = [incomingMessage.header copy]; - firstFrameHeader.frameType = SDLFrameType_First; - - UInt32 payloadData[2]; - payloadData[0] = CFSwapInt32HostToBig((UInt32)incomingMessage.payload.length); - payloadData[1] = CFSwapInt32HostToBig((UInt32)numberOfMessagesRequired); - NSMutableData *firstFramePayload = [NSMutableData dataWithBytes:payloadData length:sizeof(payloadData)]; - firstFrameHeader.bytesInPayload = (UInt32)firstFramePayload.length; - - SDLProtocolMessage *firstMessage = [SDLProtocolMessage messageWithHeader:firstFrameHeader andPayload:firstFramePayload]; - outgoingMessages[0] = firstMessage; - - - // Create the middle messages (the ones carrying the actual data). - for (int n = 0; n < numberOfMessagesRequired - 1; n++) { - // Frame # after 255 must cycle back to 1, not 0. - // A 0 signals last frame. - UInt8 frameNumber = (n % 255) + 1; - - SDLProtocolHeader *nextFrameHeader = [incomingMessage.header copy]; - nextFrameHeader.frameType = SDLFrameType_Consecutive; - nextFrameHeader.frameData = frameNumber; - - NSUInteger offsetOfDataForThisFrame = headerSize + (n * numberOfDataBytesPerMessage); - NSData *nextFramePayload = [incomingMessage.data subdataWithRange:NSMakeRange(offsetOfDataForThisFrame, numberOfDataBytesPerMessage)]; - nextFrameHeader.bytesInPayload = (UInt32)nextFramePayload.length; - - SDLProtocolMessage *nextMessage = [SDLProtocolMessage messageWithHeader:nextFrameHeader andPayload:nextFramePayload]; - outgoingMessages[n + 1] = nextMessage; - } - - - // Create the last message - SDLProtocolHeader *lastFrameHeader = [incomingMessage.header copy]; - lastFrameHeader.frameType = SDLFrameType_Consecutive; - lastFrameHeader.frameData = SDLFrameData_ConsecutiveLastFrame; - - NSUInteger numberOfMessagesCreatedSoFar = numberOfMessagesRequired - 1; - NSUInteger numberOfDataBytesSentSoFar = numberOfMessagesCreatedSoFar * numberOfDataBytesPerMessage; - NSUInteger numberOfDataBytesInLastMessage = incomingPayloadSize - numberOfDataBytesSentSoFar; - NSUInteger offsetOfDataForLastFrame = headerSize + numberOfDataBytesSentSoFar; - NSData *lastFramePayload = [incomingMessage.data subdataWithRange:NSMakeRange(offsetOfDataForLastFrame, numberOfDataBytesInLastMessage)]; - lastFrameHeader.bytesInPayload = (UInt32)lastFramePayload.length; - - SDLProtocolMessage *lastMessage = [SDLProtocolMessage messageWithHeader:lastFrameHeader andPayload:lastFramePayload]; - outgoingMessages[numberOfMessagesRequired] = lastMessage; - - return outgoingMessages; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolReceivedMessageRouter.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolReceivedMessageRouter.h deleted file mode 100644 index cd3e4c9c5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolReceivedMessageRouter.h +++ /dev/null @@ -1,15 +0,0 @@ -// SDLProtocolReceivedMessageRouter.h -// - - -#import "SDLProtocolListener.h" -@class SDLProtocolMessage; - - -@interface SDLProtocolReceivedMessageRouter : NSObject - -@property (weak) id delegate; - -- (void)handleReceivedMessage:(SDLProtocolMessage *)message; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolReceivedMessageRouter.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolReceivedMessageRouter.m deleted file mode 100644 index 5ea7c6e63..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolReceivedMessageRouter.m +++ /dev/null @@ -1,116 +0,0 @@ -// SDLProtocolReceivedMessageRouter.m -// - -// This class gets handed the SDLProtocol messages as they are received and decides what happens to them and where they are sent on to. - -#import "SDLProtocolReceivedMessageRouter.h" -#import "SDLDebugTool.h" -#import "SDLProtocolMessage.h" -#import "SDLProtocolMessageAssembler.h" - - -@interface SDLProtocolReceivedMessageRouter () - -@property (assign) BOOL alreadyDestructed; -@property (strong) NSMutableDictionary *messageAssemblers; - -- (void)dispatchProtocolMessage:(SDLProtocolMessage *)message; -- (void)dispatchControlMessage:(SDLProtocolMessage *)message; -- (void)dispatchMultiPartMessage:(SDLProtocolMessage *)message; - -@end - - -@implementation SDLProtocolReceivedMessageRouter - -- (instancetype)init { - if (self = [super init]) { - _alreadyDestructed = NO; - self.messageAssemblers = [NSMutableDictionary dictionaryWithCapacity:2]; - } - return self; -} - -- (void)handleReceivedMessage:(SDLProtocolMessage *)message { - SDLFrameType frameType = message.header.frameType; - - switch (frameType) { - case SDLFrameType_Single: { - [self dispatchProtocolMessage:message]; - } break; - case SDLFrameType_Control: { - [self dispatchControlMessage:message]; - } break; - case SDLFrameType_First: // fallthrough - case SDLFrameType_Consecutive: { - [self dispatchMultiPartMessage:message]; - } break; - default: break; - } -} - -- (void)dispatchProtocolMessage:(SDLProtocolMessage *)message { - [self.delegate onProtocolMessageReceived:message]; -} - -- (void)dispatchControlMessage:(SDLProtocolMessage *)message { - switch (message.header.frameData) { - case SDLFrameData_StartSessionACK: { - [self.delegate handleProtocolStartSessionACK:message.header.serviceType - sessionID:message.header.sessionID - version:message.header.version]; - - } break; - case SDLFrameData_StartSessionNACK: { - [self.delegate handleProtocolStartSessionNACK:message.header.serviceType]; - } break; - case SDLFrameData_EndSessionACK: { - [self.delegate handleProtocolEndSessionACK:message.header.serviceType]; - } break; - case SDLFrameData_EndSessionNACK: { - [self.delegate handleProtocolStartSessionNACK:message.header.serviceType]; - } break; - case SDLFrameData_Heartbeat: { - [self.delegate handleHeartbeatForSession:message.header.sessionID]; - } break; - case SDLFrameData_HeartbeatACK: { - [self.delegate handleHeartbeatACK]; - } break; - default: break; - } -} - -- (void)dispatchMultiPartMessage:(SDLProtocolMessage *)message { - // Pass multipart messages to an assembler and call delegate when done. - NSNumber *sessionID = [NSNumber numberWithUnsignedChar:message.header.sessionID]; - - SDLProtocolMessageAssembler *assembler = self.messageAssemblers[sessionID]; - if (assembler == nil) { - assembler = [[SDLProtocolMessageAssembler alloc] initWithSessionID:message.header.sessionID]; - self.messageAssemblers[sessionID] = assembler; - } - - SDLMessageAssemblyCompletionHandler completionHandler = ^void(BOOL done, SDLProtocolMessage *assembledMessage) { - if (done) { - [self dispatchProtocolMessage:assembledMessage]; - } - }; - [assembler handleMessage:message withCompletionHandler:completionHandler]; -} - -- (void)destructObjects { - if (!self.alreadyDestructed) { - self.alreadyDestructed = YES; - self.delegate = nil; - } -} - -- (void)dispose { - [self destructObjects]; -} - -- (void)dealloc { - [self destructObjects]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h deleted file mode 100644 index 2d86439b7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h +++ /dev/null @@ -1,62 +0,0 @@ -// SDLProxy.h -// - -@class SDLAbstractProtocol; -@class SDLAbstractTransport; -@class SDLProtocol; -@class SDLPutFile; -@class SDLRPCMessage; -@class SDLRPCRequestFactory; -@class SDLStreamingMediaManager; -@class SDLTimer; - -#import "SDLProtocolListener.h" -#import "SDLProxyListener.h" - - -@interface SDLProxy : NSObject { - Byte _version; - Byte _bulkSessionID; - BOOL _isConnected; - BOOL _alreadyDestructed; -} - -@property (strong) SDLAbstractProtocol *protocol; -@property (strong) SDLAbstractTransport *transport; -@property (readonly, copy) NSSet *proxyListeners; -@property (strong) SDLTimer *startSessionTimer; -@property (copy) NSString *debugConsoleGroupName; -@property (readonly, copy) NSString *proxyVersion; -@property (nonatomic, strong, readonly) SDLStreamingMediaManager *streamingMediaManager; - -- (id)initWithTransport:(SDLAbstractTransport *)transport - protocol:(SDLAbstractProtocol *)protocol - delegate:(NSObject *)delegate; -- (void)dispose; - -- (void)addDelegate:(NSObject *)delegate; -- (void)removeDelegate:(NSObject *)delegate; - -- (void)sendRPC:(SDLRPCMessage *)message; -- (void)sendRPCRequest:(SDLRPCMessage *)msg __deprecated_msg("use -sendRPC: instead"); - -- (void)handleRPCDictionary:(NSDictionary *)dictionary; -- (void)handleRpcMessage:(NSDictionary *)msg __deprecated_msg("use -handleRPCDictionary: instead"); - -- (void)handleProtocolMessage:(SDLProtocolMessage *)msgData; - -+ (void)enableSiphonDebug; -+ (void)disableSiphonDebug; - -/** - * Puts data into a file on the module - * @abstract Performs a putFile for a given input stream, performed in chunks, for handling very large files. - * @param inputStream A stream containing the data to put to the module. - * @param putFileRPCRequest A SDLPutFile object containing the parameters for the put(s) - * @discussion The proxy will read from the stream based on the max MTU size and send them in individual putFile requests. - * This may result in multiple responses being received, one for each request. - * Note: the length parameter of the putFileRPCRequest will be ignored. The proxy will substitute the number of bytes read from the stream. - */ -- (void)putFileStream:(NSInputStream *)inputStream withRequest:(SDLPutFile *)putFileRPCRequest; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m deleted file mode 100644 index 73b8399e3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m +++ /dev/null @@ -1,758 +0,0 @@ -// SDLProxy.m - -#import "SDLProxy.h" - -#import -#import -#import - -#import "SDLAbstractTransport.h" -#import "SDLAudioStreamingState.h" -#import "SDLDebugTool.h" -#import "SDLEncodedSyncPData.h" -#import "SDLFileType.h" -#import "SDLFunctionID.h" -#import "SDLGlobals.h" -#import "SDLHMILevel.h" -#import "SDLJsonDecoder.h" -#import "SDLJsonEncoder.h" -#import "SDLLanguage.h" -#import "SDLLayoutMode.h" -#import "SDLLockScreenManager.h" -#import "SDLLockScreenManager.h" -#import "SDLNames.h" -#import "SDLOnHMIStatus.h" -#import "SDLOnSystemRequest.h" -#import "SDLPolicyDataParser.h" -#import "SDLPolicyDataParser.h" -#import "SDLProtocol.h" -#import "SDLProtocolMessage.h" -#import "SDLProtocolMessage.h" -#import "SDLPutFile.h" -#import "SDLRPCPayload.h" -#import "SDLRPCPayload.h" -#import "SDLRPCRequestFactory.h" -#import "SDLRPCResponse.h" -#import "SDLRequestType.h" -#import "SDLSiphonServer.h" -#import "SDLStreamingMediaManager.h" -#import "SDLSystemContext.h" -#import "SDLSystemRequest.h" -#import "SDLTimer.h" -#import "SDLURLSession.h" - - -typedef void (^URLSessionTaskCompletionHandler)(NSData *data, NSURLResponse *response, NSError *error); -typedef void (^URLSessionDownloadTaskCompletionHandler)(NSURL *location, NSURLResponse *response, NSError *error); - -NSString *const SDLProxyVersion = @"4.1.2"; -const float startSessionTime = 10.0; -const float notifyProxyClosedDelay = 0.1; -const int POLICIES_CORRELATION_ID = 65535; - - -@interface SDLProxy () { - SDLLockScreenManager *_lsm; -} - -@property (strong, nonatomic) NSMutableSet *mutableProxyListeners; -@property (nonatomic, strong, readwrite) SDLStreamingMediaManager *streamingMediaManager; - -@end - - -@implementation SDLProxy - -#pragma mark - Object lifecycle -- (instancetype)initWithTransport:(SDLAbstractTransport *)transport protocol:(SDLAbstractProtocol *)protocol delegate:(NSObject *)theDelegate { - if (self = [super init]) { - _debugConsoleGroupName = @"default"; - _lsm = [[SDLLockScreenManager alloc] init]; - _alreadyDestructed = NO; - - _mutableProxyListeners = [NSMutableSet setWithObject:theDelegate]; - _protocol = protocol; - _transport = transport; - _transport.delegate = protocol; - [_protocol.protocolDelegateTable addObject:self]; - _protocol.transport = transport; - - [self.transport connect]; - - [SDLDebugTool logInfo:@"SDLProxy initWithTransport"]; - [[EAAccessoryManager sharedAccessoryManager] registerForLocalNotifications]; - } - - return self; -} - -- (void)destructObjects { - if (!_alreadyDestructed) { - _alreadyDestructed = YES; - - [[NSNotificationCenter defaultCenter] removeObserver:self]; - [[EAAccessoryManager sharedAccessoryManager] unregisterForLocalNotifications]; - - [[SDLURLSession defaultSession] cancelAllTasks]; - - [self.protocol dispose]; - [self.transport dispose]; - - _transport = nil; - _protocol = nil; - _mutableProxyListeners = nil; - } -} - -- (void)dispose { - if (self.transport != nil) { - [self.transport disconnect]; - } - - [self destructObjects]; -} - -- (void)dealloc { - [self destructObjects]; - [SDLDebugTool logInfo:@"SDLProxy Dealloc" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:_debugConsoleGroupName]; -} - -- (void)notifyProxyClosed { - if (_isConnected) { - _isConnected = NO; - [self invokeMethodOnDelegates:@selector(onProxyClosed) withObject:nil]; - } -} - -#pragma mark - Accessors - -- (NSSet *)proxyListeners { - return [self.mutableProxyListeners copy]; -} - -#pragma mark - Methods - -- (void)sendMobileHMIState { - UIApplicationState appState = [UIApplication sharedApplication].applicationState; - SDLOnHMIStatus *HMIStatusRPC = [[SDLOnHMIStatus alloc] init]; - - HMIStatusRPC.audioStreamingState = [SDLAudioStreamingState NOT_AUDIBLE]; - HMIStatusRPC.systemContext = [SDLSystemContext MAIN]; - - switch (appState) { - case UIApplicationStateActive: { - HMIStatusRPC.hmiLevel = [SDLHMILevel FULL]; - } break; - case UIApplicationStateBackground: // Fallthrough - case UIApplicationStateInactive: { - HMIStatusRPC.hmiLevel = [SDLHMILevel BACKGROUND]; - } break; - default: - break; - } - - NSString *log = [NSString stringWithFormat:@"Sending new mobile hmi state: %@", HMIStatusRPC.hmiLevel.value]; - [SDLDebugTool logInfo:log withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - [self sendRPC:HMIStatusRPC]; -} - - -#pragma mark - Setters / Getters - -- (NSString *)proxyVersion { - return SDLProxyVersion; -} - -- (SDLStreamingMediaManager *)streamingMediaManager { - if (_streamingMediaManager == nil) { - _streamingMediaManager = [[SDLStreamingMediaManager alloc] initWithProtocol:self.protocol]; - [self.protocol.protocolDelegateTable addObject:_streamingMediaManager]; - } - - return _streamingMediaManager; -} - - -#pragma mark - SDLProtocolListener Implementation -- (void)onProtocolOpened { - _isConnected = YES; - [SDLDebugTool logInfo:@"StartSession (request)" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - [self.protocol sendStartSessionWithType:SDLServiceType_RPC]; - - if (self.startSessionTimer == nil) { - self.startSessionTimer = [[SDLTimer alloc] initWithDuration:startSessionTime repeat:NO]; - __weak typeof(self) weakSelf = self; - self.startSessionTimer.elapsedBlock = ^{ - [SDLDebugTool logInfo:@"Start Session Timeout" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:weakSelf.debugConsoleGroupName]; - [weakSelf performSelector:@selector(notifyProxyClosed) withObject:nil afterDelay:notifyProxyClosedDelay]; - }; - } - [self.startSessionTimer start]; -} - -- (void)onProtocolClosed { - [self notifyProxyClosed]; -} - -- (void)onError:(NSString *)info exception:(NSException *)e { - [self invokeMethodOnDelegates:@selector(onError:) withObject:e]; -} - -- (void)handleProtocolStartSessionACK:(SDLServiceType)serviceType sessionID:(Byte)sessionID version:(Byte)version { - // Turn off the timer, the start session response came back - [self.startSessionTimer cancel]; - - NSString *logMessage = [NSString stringWithFormat:@"StartSession (response)\nSessionId: %d for serviceType %d", sessionID, serviceType]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - if (serviceType == SDLServiceType_RPC) { - [self invokeMethodOnDelegates:@selector(onProxyOpened) withObject:nil]; - } -} - -- (void)onProtocolMessageReceived:(SDLProtocolMessage *)msgData { - @try { - [self handleProtocolMessage:msgData]; - } @catch (NSException *e) { - NSString *logMessage = [NSString stringWithFormat:@"Proxy: Failed to handle protocol message %@", e]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Debug toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - } -} - - -#pragma mark - Message sending and recieving -- (void)sendRPC:(SDLRPCMessage *)message { - @try { - [self.protocol sendRPC:message]; - } @catch (NSException *exception) { - NSString *logMessage = [NSString stringWithFormat:@"Proxy: Failed to send RPC message: %@", message.name]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Debug toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - } -} - -- (void)sendRPCRequest:(SDLRPCMessage *)msg { - if ([msg isKindOfClass:SDLRPCRequest.class]) { - [self sendRPC:msg]; - } -} - -- (void)handleProtocolMessage:(SDLProtocolMessage *)incomingMessage { - // Convert protocol message to dictionary - NSDictionary *rpcMessageAsDictionary = [incomingMessage rpcDictionary]; - [self handleRPCDictionary:rpcMessageAsDictionary]; -} - -- (void)handleRPCDictionary:(NSDictionary *)dict { - SDLRPCMessage *message = [[SDLRPCMessage alloc] initWithDictionary:[dict mutableCopy]]; - NSString *functionName = [message getFunctionName]; - NSString *messageType = [message messageType]; - - // If it's a response, append response - if ([messageType isEqualToString:NAMES_response]) { - BOOL notGenericResponseMessage = ![functionName isEqualToString:@"GenericResponse"]; - if (notGenericResponseMessage) { - functionName = [NSString stringWithFormat:@"%@Response", functionName]; - } - } - - // From the function name, create the corresponding RPCObject and initialize it - NSString *functionClassName = [NSString stringWithFormat:@"SDL%@", functionName]; - SDLRPCMessage *newMessage = [[NSClassFromString(functionClassName) alloc] initWithDictionary:[dict mutableCopy]]; - - // Log the RPC message - NSString *logMessage = [NSString stringWithFormat:@"%@", newMessage]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - // Intercept and handle several messages ourselves - if ([functionName isEqualToString:NAMES_OnAppInterfaceUnregistered] || [functionName isEqualToString:NAMES_UnregisterAppInterface]) { - [self handleRPCUnregistered:dict]; - } - - if ([functionName isEqualToString:@"RegisterAppInterfaceResponse"]) { - [self handleRegisterAppInterfaceResponse:(SDLRPCResponse *)newMessage]; - } - - if ([functionName isEqualToString:@"EncodedSyncPDataResponse"]) { - [SDLDebugTool logInfo:@"EncodedSyncPData (response)" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - } - - if ([functionName isEqualToString:@"OnEncodedSyncPData"]) { - [self handleSyncPData:newMessage]; - } - - if ([functionName isEqualToString:@"OnSystemRequest"]) { - [self handleSystemRequest:dict]; - } - - if ([functionName isEqualToString:@"SystemRequestResponse"]) { - [self handleSystemRequestResponse:newMessage]; - } - - // Formulate the name of the method to call and invoke the method on the delegate(s) - NSString *handlerName = [NSString stringWithFormat:@"on%@:", functionName]; - SEL handlerSelector = NSSelectorFromString(handlerName); - [self invokeMethodOnDelegates:handlerSelector withObject:newMessage]; - - // When an OnHMIStatus notification comes in, after passing it on (above), generate an "OnLockScreenNotification" - if ([functionName isEqualToString:@"OnHMIStatus"]) { - [self handleAfterHMIStatus:newMessage]; - } - - // When an OnDriverDistraction notification comes in, after passing it on (above), generate an "OnLockScreenNotification" - if ([functionName isEqualToString:@"OnDriverDistraction"]) { - [self handleAfterDriverDistraction:newMessage]; - } -} - -- (void)handleRpcMessage:(NSDictionary *)msg { - [self handleRPCDictionary:msg]; -} - - -#pragma mark - RPC Handlers -- (void)handleRPCUnregistered:(NSDictionary *)messageDictionary { - NSString *logMessage = [NSString stringWithFormat:@"Unregistration forced by module. %@", messageDictionary]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - [self notifyProxyClosed]; -} - -- (void)handleRegisterAppInterfaceResponse:(SDLRPCResponse *)response { - //Print Proxy Version To Console - NSString *logMessage = [NSString stringWithFormat:@"Framework Version: %@", self.proxyVersion]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - if ([SDLGlobals globals].protocolVersion >= 4) { - [self sendMobileHMIState]; - // Send SDL updates to application state - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sendMobileHMIState) name:UIApplicationDidBecomeActiveNotification object:nil]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sendMobileHMIState) name:UIApplicationDidEnterBackgroundNotification object:nil]; - } -} - -- (void)handleSyncPData:(SDLRPCMessage *)message { - // If URL != nil, perform HTTP Post and don't pass the notification to proxy listeners - NSString *logMessage = [NSString stringWithFormat:@"OnEncodedSyncPData (notification)\n%@", message]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - NSString *urlString = (NSString *)[message getParameters:@"URL"]; - NSDictionary *encodedSyncPData = (NSDictionary *)[message getParameters:@"data"]; - NSNumber *encodedSyncPTimeout = (NSNumber *)[message getParameters:@"Timeout"]; - - if (urlString && encodedSyncPData && encodedSyncPTimeout) { - [self sendEncodedSyncPData:encodedSyncPData toURL:urlString withTimeout:encodedSyncPTimeout]; - } -} - -- (void)handleSystemRequest:(NSDictionary *)dict { - [SDLDebugTool logInfo:@"OnSystemRequest (notification)" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - SDLOnSystemRequest *systemRequest = [[SDLOnSystemRequest alloc] initWithDictionary:[dict mutableCopy]]; - SDLRequestType *requestType = systemRequest.requestType; - - // Handle the various OnSystemRequest types - if (requestType == [SDLRequestType PROPRIETARY]) { - [self handleSystemRequestProprietary:systemRequest]; - } else if (requestType == [SDLRequestType LOCK_SCREEN_ICON_URL]) { - [self handleSystemRequestLockScreenIconURL:systemRequest]; - } else if (requestType == [SDLRequestType HTTP]) { - [self sdl_handleSystemRequestHTTP:systemRequest]; - } else if (requestType == [SDLRequestType LAUNCH_APP]) { - [self sdl_handleSystemRequestLaunchApp:systemRequest]; - } -} - -- (void)handleSystemRequestResponse:(SDLRPCMessage *)message { - NSString *logMessage = [NSString stringWithFormat:@"SystemRequest (response)\n%@", message]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; -} - - -#pragma mark Handle Post-Invoke of Delegate Methods -- (void)handleAfterHMIStatus:(SDLRPCMessage *)message { - NSString *statusString = (NSString *)[message getParameters:NAMES_hmiLevel]; - SDLHMILevel *hmiLevel = [SDLHMILevel valueOf:statusString]; - _lsm.hmiLevel = hmiLevel; - - SEL callbackSelector = NSSelectorFromString(@"onOnLockScreenNotification:"); - [self invokeMethodOnDelegates:callbackSelector withObject:_lsm.lockScreenStatusNotification]; -} - -- (void)handleAfterDriverDistraction:(SDLRPCMessage *)message { - NSString *stateString = (NSString *)[message getParameters:NAMES_state]; - BOOL state = [stateString isEqualToString:@"DD_ON"] ? YES : NO; - _lsm.driverDistracted = state; - - SEL callbackSelector = NSSelectorFromString(@"onOnLockScreenNotification:"); - [self invokeMethodOnDelegates:callbackSelector withObject:_lsm.lockScreenStatusNotification]; -} - - -#pragma mark OnSystemRequest Handlers -- (void)sdl_handleSystemRequestLaunchApp:(SDLOnSystemRequest *)request { - NSURL *URLScheme = [NSURL URLWithString:request.url]; - if (URLScheme == nil) { - [SDLDebugTool logInfo:[NSString stringWithFormat:@"Launch App failure: invalid URL sent from module: %@", request.url] withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - return; - } - // If system version is less than 9.0 http://stackoverflow.com/a/5337804/1370927 - if (SDL_SYSTEM_VERSION_LESS_THAN(@"9.0")) { - // Return early if we can't openURL because openURL will crash instead of fail silently in < 9.0 - if (![[UIApplication sharedApplication] canOpenURL:URLScheme]) { - return; - } - } - [[UIApplication sharedApplication] openURL:URLScheme]; -} - -- (void)handleSystemRequestProprietary:(SDLOnSystemRequest *)request { - NSDictionary *JSONDictionary = [self validateAndParseSystemRequest:request]; - if (JSONDictionary == nil || request.url == nil) { - return; - } - - NSDictionary *requestData = JSONDictionary[@"HTTPRequest"]; - NSString *bodyString = requestData[@"body"]; - NSData *bodyData = [bodyString dataUsingEncoding:NSUTF8StringEncoding]; - - // Parse and display the policy data. - SDLPolicyDataParser *pdp = [[SDLPolicyDataParser alloc] init]; - NSData *policyData = [pdp unwrap:bodyData]; - if (policyData != nil) { - [pdp parsePolicyData:policyData]; - NSString *logMessage = [NSString stringWithFormat:@"Policy Data from Module\n%@", pdp]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - } - - // Send the HTTP Request - [self uploadForBodyDataDictionary:JSONDictionary - URLString:request.url - completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { - NSString *logMessage = nil; - - if (error) { - logMessage = [NSString stringWithFormat:@"OnSystemRequest (HTTP response) = ERROR: %@", error]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - return; - } - - if (data == nil || data.length == 0) { - [SDLDebugTool logInfo:@"OnSystemRequest (HTTP response) failure: no data returned" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - return; - } - - // Show the HTTP response - [SDLDebugTool logInfo:@"OnSystemRequest (HTTP response)" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - // Create the SystemRequest RPC to send to module. - SDLSystemRequest *request = [[SDLSystemRequest alloc] init]; - request.correlationID = [NSNumber numberWithInt:POLICIES_CORRELATION_ID]; - request.requestType = [SDLRequestType PROPRIETARY]; - request.bulkData = data; - - // Parse and display the policy data. - SDLPolicyDataParser *pdp = [[SDLPolicyDataParser alloc] init]; - NSData *policyData = [pdp unwrap:data]; - if (policyData) { - [pdp parsePolicyData:policyData]; - logMessage = [NSString stringWithFormat:@"Policy Data from Cloud\n%@", pdp]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - } - - // Send and log RPC Request - logMessage = [NSString stringWithFormat:@"SystemRequest (request)\n%@\nData length=%lu", [request serializeAsDictionary:2], (unsigned long)data.length]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - [self sendRPC:request]; - }]; -} - -- (void)handleSystemRequestLockScreenIconURL:(SDLOnSystemRequest *)request { - [[SDLURLSession defaultSession] dataFromURL:[NSURL URLWithString:request.url] - completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { - if (error != nil) { - NSString *logMessage = [NSString stringWithFormat:@"OnSystemRequest failure (HTTP response), download task failed: %@", error.localizedDescription]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - return; - } - - UIImage *icon = [UIImage imageWithData:data]; - [self invokeMethodOnDelegates:@selector(onReceivedLockScreenIcon:) withObject:icon]; - }]; -} - -- (void)sdl_handleSystemRequestHTTP:(SDLOnSystemRequest *)request { - if (request.bulkData.length == 0) { - // TODO: not sure how we want to handle http requests that don't have bulk data (maybe as GET?) - return; - } - - [self sdl_uploadData:request.bulkData - toURLString:request.url - completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { - NSString *logMessage = nil; - if (error != nil) { - logMessage = [NSString stringWithFormat:@"OnSystemRequest (HTTP response) = ERROR: %@", error.localizedDescription]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - return; - } - - if (data.length == 0) { - [SDLDebugTool logInfo:@"OnSystemRequest (HTTP response) failure: no data returned" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - return; - } - - // Show the HTTP response - NSString *responseLogString = [NSString stringWithFormat:@"OnSystemRequest (HTTP) response: %@", response]; - [SDLDebugTool logInfo:responseLogString withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - // Create the SystemRequest RPC to send to module. - SDLPutFile *putFile = [[SDLPutFile alloc] init]; - putFile.fileType = [SDLFileType JSON]; - putFile.correlationID = @(POLICIES_CORRELATION_ID); - putFile.syncFileName = @"response_data"; - putFile.bulkData = data; - - // Send and log RPC Request - logMessage = [NSString stringWithFormat:@"SystemRequest (request)\n%@\nData length=%lu", [request serializeAsDictionary:2], (unsigned long)data.length]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - [self sendRPC:putFile]; - }]; -} - -/** - * Determine if the System Request is valid and return it's JSON dictionary, if available. - * - * @param request The system request to parse - * - * @return A parsed JSON dictionary, or nil if it couldn't be parsed - */ -- (NSDictionary *)validateAndParseSystemRequest:(SDLOnSystemRequest *)request { - NSString *urlString = request.url; - SDLFileType *fileType = request.fileType; - - // Validate input - if (urlString == nil || [NSURL URLWithString:urlString] == nil) { - [SDLDebugTool logInfo:@"OnSystemRequest (notification) failure: url is nil" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - return nil; - } - - if (fileType != [SDLFileType JSON]) { - [SDLDebugTool logInfo:@"OnSystemRequest (notification) failure: file type is not JSON" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - return nil; - } - - // Get data dictionary from the bulkData - NSError *error = nil; - NSDictionary *JSONDictionary = [NSJSONSerialization JSONObjectWithData:request.bulkData options:kNilOptions error:&error]; - if (error != nil) { - [SDLDebugTool logInfo:@"OnSystemRequest failure: notification data is not valid JSON." withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - return nil; - } - - return JSONDictionary; -} - -/** - * Start an upload for some data to a web address specified - * - * @param data The data to be passed to the server - * @param urlString The URL the data should be POSTed to - * @param completionHandler A completion handler of what to do when the server responds - */ -- (void)sdl_uploadData:(NSData *_Nonnull)data toURLString:(NSString *_Nonnull)urlString completionHandler:(URLSessionTaskCompletionHandler _Nullable)completionHandler { - // NSURLRequest configuration - NSURL *url = [NSURL URLWithString:urlString]; - NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; - [request setValue:@"application/json" forHTTPHeaderField:@"content-type"]; - request.HTTPMethod = @"POST"; - - // Logging - NSString *logMessage = [NSString stringWithFormat:@"OnSystemRequest (HTTP Request) to URL %@", urlString]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - // Create the upload task - [[SDLURLSession defaultSession] uploadWithURLRequest:request data:data completionHandler:completionHandler]; -} - -/** - * Start an upload for a body data dictionary, this is used by the "proprietary" system request needed for backward compatibility - * - * @param dictionary The system request dictionary that contains the HTTP data to be sent - * @param urlString A string containing the URL to send the upload to - * @param completionHandler A completion handler returning the response from the server to the upload task - */ -- (void)uploadForBodyDataDictionary:(NSDictionary *)dictionary URLString:(NSString *)urlString completionHandler:(URLSessionTaskCompletionHandler)completionHandler { - NSParameterAssert(dictionary != nil); - NSParameterAssert(urlString != nil); - NSParameterAssert(completionHandler != NULL); - - // Extract data from the dictionary - NSDictionary *requestData = dictionary[@"HTTPRequest"]; - NSDictionary *headers = requestData[@"headers"]; - NSString *contentType = headers[@"ContentType"]; - NSTimeInterval timeout = [headers[@"ConnectTimeout"] doubleValue]; - NSString *method = headers[@"RequestMethod"]; - NSString *bodyString = requestData[@"body"]; - NSData *bodyData = [bodyString dataUsingEncoding:NSUTF8StringEncoding]; - - // NSURLRequest configuration - NSURL *url = [NSURL URLWithString:urlString]; - NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; - [request setValue:contentType forHTTPHeaderField:@"content-type"]; - request.timeoutInterval = timeout; - request.HTTPMethod = method; - - // Logging - NSString *logMessage = [NSString stringWithFormat:@"OnSystemRequest (HTTP Request) to URL %@", urlString]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - // Create the upload task - [[SDLURLSession defaultSession] uploadWithURLRequest:request data:bodyData completionHandler:completionHandler]; -} - - -#pragma mark - Delegate management - -- (void)addDelegate:(NSObject *)delegate { - @synchronized(self.mutableProxyListeners) { - [self.mutableProxyListeners addObject:delegate]; - } -} - -- (void)removeDelegate:(NSObject *)delegate { - @synchronized(self.mutableProxyListeners) { - [self.mutableProxyListeners removeObject:delegate]; - } -} - -- (void)invokeMethodOnDelegates:(SEL)aSelector withObject:(id)object { - dispatch_async(dispatch_get_main_queue(), ^{ - @autoreleasepool { - for (id listener in self.proxyListeners) { - if ([listener respondsToSelector:aSelector]) { - // HAX: http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown - ((void (*)(id, SEL, id))[(NSObject *)listener methodForSelector:aSelector])(listener, aSelector, object); - } - } - } - }); -} - - -#pragma mark - System Request and SyncP handling - -- (void)sendEncodedSyncPData:(NSDictionary *)encodedSyncPData toURL:(NSString *)urlString withTimeout:(NSNumber *)timeout { - // Configure HTTP URL & Request - NSURL *url = [NSURL URLWithString:urlString]; - NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; - request.HTTPMethod = @"POST"; - [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; - request.timeoutInterval = 60; - - // Prepare the data in the required format - NSString *encodedSyncPDataString = [[NSString stringWithFormat:@"%@", encodedSyncPData] componentsSeparatedByString:@"\""][1]; - NSArray *array = [NSArray arrayWithObject:encodedSyncPDataString]; - NSDictionary *dictionary = @{ @"data" : array }; - NSError *JSONSerializationError = nil; - NSData *data = [NSJSONSerialization dataWithJSONObject:dictionary options:kNilOptions error:&JSONSerializationError]; - if (JSONSerializationError) { - NSString *logMessage = [NSString stringWithFormat:@"Error formatting data for HTTP Request. %@", JSONSerializationError]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - return; - } - - // Send the HTTP Request - [[SDLURLSession defaultSession] uploadWithURLRequest:request - data:data - completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { - [self syncPDataNetworkRequestCompleteWithData:data response:response error:error]; - }]; - - [SDLDebugTool logInfo:@"OnEncodedSyncPData (HTTP request)" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; -} - -// Handle the OnEncodedSyncPData HTTP Response -- (void)syncPDataNetworkRequestCompleteWithData:(NSData *)data response:(NSURLResponse *)response error:(NSError *)error { - // Sample of response: {"data":["SDLKGLSDKFJLKSjdslkfjslkJLKDSGLKSDJFLKSDJF"]} - [SDLDebugTool logInfo:@"OnEncodedSyncPData (HTTP response)" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - - // Validate response data. - if (data == nil || data.length == 0) { - [SDLDebugTool logInfo:@"OnEncodedSyncPData (HTTP response) failure: no data returned" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - return; - } - - // Convert data to RPCRequest - NSError *JSONConversionError = nil; - NSDictionary *responseDictionary = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&JSONConversionError]; - if (!JSONConversionError) { - SDLEncodedSyncPData *request = [[SDLEncodedSyncPData alloc] init]; - request.correlationID = [NSNumber numberWithInt:POLICIES_CORRELATION_ID]; - request.data = [responseDictionary objectForKey:@"data"]; - - [self sendRPC:request]; - } -} - - -#pragma mark - PutFile Streaming -- (void)putFileStream:(NSInputStream *)inputStream withRequest:(SDLPutFile *)putFileRPCRequest { - inputStream.delegate = self; - objc_setAssociatedObject(inputStream, @"SDLPutFile", putFileRPCRequest, OBJC_ASSOCIATION_RETAIN); - objc_setAssociatedObject(inputStream, @"BaseOffset", [putFileRPCRequest offset], OBJC_ASSOCIATION_RETAIN); - - [inputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; - [inputStream open]; -} - -- (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode { - switch (eventCode) { - case NSStreamEventHasBytesAvailable: { - // Grab some bytes from the stream and send them in a SDLPutFile RPC Request - NSUInteger currentStreamOffset = [[stream propertyForKey:NSStreamFileCurrentOffsetKey] unsignedIntegerValue]; - - NSMutableData *buffer = [NSMutableData dataWithLength:[SDLGlobals globals].maxMTUSize]; - NSUInteger nBytesRead = [(NSInputStream *)stream read:(uint8_t *)buffer.mutableBytes maxLength:buffer.length]; - if (nBytesRead > 0) { - NSData *data = [buffer subdataWithRange:NSMakeRange(0, nBytesRead)]; - NSUInteger baseOffset = [(NSNumber *)objc_getAssociatedObject(stream, @"BaseOffset") unsignedIntegerValue]; - NSUInteger newOffset = baseOffset + currentStreamOffset; - - SDLPutFile *putFileRPCRequest = (SDLPutFile *)objc_getAssociatedObject(stream, @"SDLPutFile"); - [putFileRPCRequest setOffset:[NSNumber numberWithUnsignedInteger:newOffset]]; - [putFileRPCRequest setLength:[NSNumber numberWithUnsignedInteger:nBytesRead]]; - [putFileRPCRequest setBulkData:data]; - - [self sendRPC:putFileRPCRequest]; - } - - break; - } - case NSStreamEventEndEncountered: { - // Cleanup the stream - [stream close]; - [stream removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; - - break; - } - case NSStreamEventErrorOccurred: { - [SDLDebugTool logInfo:@"Stream Event: Error" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; - break; - } - default: { - break; - } - } -} - - -#pragma mark - Siphon management -+ (void)enableSiphonDebug { - [SDLSiphonServer enableSiphonDebug]; -} - -+ (void)disableSiphonDebug { - [SDLSiphonServer disableSiphonDebug]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyFactory.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyFactory.h deleted file mode 100644 index b3a7ac6a0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyFactory.h +++ /dev/null @@ -1,19 +0,0 @@ -// SDLProxyFactory.h -// - -#import - -#import "SDLProxyListener.h" - -@class SDLProxy; - - -@interface SDLProxyFactory : NSObject { -} - -+ (SDLProxy *)buildSDLProxyWithListener:(NSObject *)listener; - -+ (SDLProxy *)buildSDLProxyWithListener:(NSObject *)listener - tcpIPAddress:(NSString *)ipaddress - tcpPort:(NSString *)port; -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyFactory.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyFactory.m deleted file mode 100644 index b2320c641..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyFactory.m +++ /dev/null @@ -1,37 +0,0 @@ -// SDLSyncProxyFactory.m -// - -#import "SDLProxyFactory.h" - -#import "SDLDebugTool.h" -#import "SDLIAPTransport.h" -#import "SDLProtocol.h" -#import "SDLProxy.h" -#import "SDLTCPTransport.h" - - -@implementation SDLProxyFactory - -+ (SDLProxy *)buildSDLProxyWithListener:(NSObject *)delegate { - SDLIAPTransport *transport = [[SDLIAPTransport alloc] init]; - SDLProtocol *protocol = [[SDLProtocol alloc] init]; - SDLProxy *ret = [[SDLProxy alloc] initWithTransport:transport protocol:protocol delegate:delegate]; - - return ret; -} - -+ (SDLProxy *)buildSDLProxyWithListener:(NSObject *)delegate - tcpIPAddress:(NSString *)ipaddress - tcpPort:(NSString *)port { - SDLTCPTransport *transport = [[SDLTCPTransport alloc] init]; - transport.hostName = ipaddress; - transport.portNumber = port; - - SDLProtocol *protocol = [[SDLProtocol alloc] init]; - - SDLProxy *ret = [[SDLProxy alloc] initWithTransport:transport protocol:protocol delegate:delegate]; - - return ret; -} - -@end \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h deleted file mode 100644 index 60e4d6607..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h +++ /dev/null @@ -1,135 +0,0 @@ -// SDLProxyListener.h -// - -@import UIKit; - -@class SDLAddCommandResponse; -@class SDLAddSubMenuResponse; -@class SDLAlertManeuverResponse; -@class SDLAlertResponse; -@class SDLChangeRegistrationResponse; -@class SDLCreateInteractionChoiceSetResponse; -@class SDLDeleteCommandResponse; -@class SDLDeleteFileResponse; -@class SDLDeleteInteractionChoiceSetResponse; -@class SDLDeleteSubMenuResponse; -@class SDLDiagnosticMessageResponse; -@class SDLDialNumberResponse; -@class SDLEncodedSyncPDataResponse; -@class SDLEndAudioPassThruResponse; -@class SDLGenericResponse; -@class SDLGetDTCsResponse; -@class SDLGetVehicleDataResponse; -@class SDLListFilesResponse; -@class SDLOnAppInterfaceUnregistered; -@class SDLOnAudioPassThru; -@class SDLOnButtonEvent; -@class SDLOnButtonPress; -@class SDLOnCommand; -@class SDLOnDriverDistraction; -@class SDLOnEncodedSyncPData; -@class SDLOnHashChange; -@class SDLOnHMIStatus; -@class SDLOnLanguageChange; -@class SDLOnLockScreenStatus; -@class SDLOnPermissionsChange; -@class SDLOnSyncPData; -@class SDLOnSystemRequest; -@class SDLOnVehicleData; -@class SDLOnTBTClientState; -@class SDLOnTouchEvent; -@class SDLOnVehicleData; -@class SDLPerformAudioPassThruResponse; -@class SDLPerformInteractionResponse; -@class SDLPutFileResponse; -@class SDLReadDIDResponse; -@class SDLRegisterAppInterfaceResponse; -@class SDLResetGlobalPropertiesResponse; -@class SDLScrollableMessageResponse; -@class SDLSendLocationResponse; -@class SDLSetAppIconResponse; -@class SDLSetDisplayLayoutResponse; -@class SDLSetGlobalPropertiesResponse; -@class SDLSetMediaClockTimerResponse; -@class SDLShowConstantTBTResponse; -@class SDLShowResponse; -@class SDLSliderResponse; -@class SDLSpeakResponse; -@class SDLSubscribeButtonResponse; -@class SDLSubscribeVehicleDataResponse; -@class SDLSyncPDataResponse; -@class SDLUpdateTurnListResponse; -@class SDLUnregisterAppInterfaceResponse; -@class SDLUnsubscribeButtonResponse; -@class SDLUnsubscribeVehicleDataResponse; - - -@protocol SDLProxyListener - -- (void)onOnDriverDistraction:(SDLOnDriverDistraction *)notification; -- (void)onOnHMIStatus:(SDLOnHMIStatus *)notification; -- (void)onProxyClosed; -- (void)onProxyOpened; - -@optional - -- (void)onAddCommandResponse:(SDLAddCommandResponse *)response; -- (void)onAddSubMenuResponse:(SDLAddSubMenuResponse *)response; -- (void)onAlertManeuverResponse:(SDLAlertManeuverResponse *)response; -- (void)onAlertResponse:(SDLAlertResponse *)response; -- (void)onChangeRegistrationResponse:(SDLChangeRegistrationResponse *)response; -- (void)onCreateInteractionChoiceSetResponse:(SDLCreateInteractionChoiceSetResponse *)response; -- (void)onDeleteCommandResponse:(SDLDeleteCommandResponse *)response; -- (void)onDeleteFileResponse:(SDLDeleteFileResponse *)response; -- (void)onDeleteInteractionChoiceSetResponse:(SDLDeleteInteractionChoiceSetResponse *)response; -- (void)onDeleteSubMenuResponse:(SDLDeleteSubMenuResponse *)response; -- (void)onDiagnosticMessageResponse:(SDLDiagnosticMessageResponse *)response; -- (void)onDialNumberResponse:(SDLDialNumberResponse *)response; -- (void)onEncodedSyncPDataResponse:(SDLEncodedSyncPDataResponse *)response; -- (void)onEndAudioPassThruResponse:(SDLEndAudioPassThruResponse *)response; -- (void)onError:(NSException *)e; -- (void)onGenericResponse:(SDLGenericResponse *)response; -- (void)onGetDTCsResponse:(SDLGetDTCsResponse *)response; -- (void)onGetVehicleDataResponse:(SDLGetVehicleDataResponse *)response; -- (void)onListFilesResponse:(SDLListFilesResponse *)response; -- (void)onReceivedLockScreenIcon:(UIImage *)icon; -- (void)onOnAppInterfaceUnregistered:(SDLOnAppInterfaceUnregistered *)notification; -- (void)onOnAudioPassThru:(SDLOnAudioPassThru *)notification; -- (void)onOnButtonEvent:(SDLOnButtonEvent *)notification; -- (void)onOnButtonPress:(SDLOnButtonPress *)notification; -- (void)onOnCommand:(SDLOnCommand *)notification; -- (void)onOnEncodedSyncPData:(SDLOnEncodedSyncPData *)notification; -- (void)onOnHashChange:(SDLOnHashChange *)notification; -- (void)onOnLanguageChange:(SDLOnLanguageChange *)notification; -- (void)onOnLockScreenNotification:(SDLOnLockScreenStatus *)notification; -- (void)onOnPermissionsChange:(SDLOnPermissionsChange *)notification; -- (void)onOnSyncPData:(SDLOnSyncPData *)notification; -- (void)onOnSystemRequest:(SDLOnSystemRequest *)notification; -- (void)onOnTBTClientState:(SDLOnTBTClientState *)notification; -- (void)onOnTouchEvent:(SDLOnTouchEvent *)notification; -- (void)onOnVehicleData:(SDLOnVehicleData *)notification; -- (void)onPerformAudioPassThruResponse:(SDLPerformAudioPassThruResponse *)response; -- (void)onPerformInteractionResponse:(SDLPerformInteractionResponse *)response; -- (void)onPutFileResponse:(SDLPutFileResponse *)response; -- (void)onReadDIDResponse:(SDLReadDIDResponse *)response; -- (void)onRegisterAppInterfaceResponse:(SDLRegisterAppInterfaceResponse *)response; -- (void)onResetGlobalPropertiesResponse:(SDLResetGlobalPropertiesResponse *)response; -- (void)onScrollableMessageResponse:(SDLScrollableMessageResponse *)response; -- (void)onSendLocationResponse:(SDLSendLocationResponse *)response; -- (void)onSetAppIconResponse:(SDLSetAppIconResponse *)response; -- (void)onSetDisplayLayoutResponse:(SDLSetDisplayLayoutResponse *)response; -- (void)onSetGlobalPropertiesResponse:(SDLSetGlobalPropertiesResponse *)response; -- (void)onSetMediaClockTimerResponse:(SDLSetMediaClockTimerResponse *)response; -- (void)onShowConstantTBTResponse:(SDLShowConstantTBTResponse *)response; -- (void)onShowResponse:(SDLShowResponse *)response; -- (void)onSliderResponse:(SDLSliderResponse *)response; -- (void)onSpeakResponse:(SDLSpeakResponse *)response; -- (void)onSubscribeButtonResponse:(SDLSubscribeButtonResponse *)response; -- (void)onSubscribeVehicleDataResponse:(SDLSubscribeVehicleDataResponse *)response; -- (void)onSyncPDataResponse:(SDLSyncPDataResponse *)response; -- (void)onUpdateTurnListResponse:(SDLUpdateTurnListResponse *)response; -- (void)onUnregisterAppInterfaceResponse:(SDLUnregisterAppInterfaceResponse *)response; -- (void)onUnsubscribeButtonResponse:(SDLUnsubscribeButtonResponse *)response; -- (void)onUnsubscribeVehicleDataResponse:(SDLUnsubscribeVehicleDataResponse *)response; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.h deleted file mode 100644 index eb7bae2bf..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.h +++ /dev/null @@ -1,80 +0,0 @@ -// SDLPutFile.h -// - -#import "SDLRPCRequest.h" - -@class SDLFileType; - - -/** - * Used to push a binary data onto the SDL module from a mobile device, such as - * icons and album art - * - * Since SmartDeviceLink 2.0 - * @see SDLDeleteFile - * @see SDLListFiles - */ -@interface SDLPutFile : SDLRPCRequest { -} - -/** - * Constructs a new SDLPutFile object - */ -- (instancetype)init; - -/** - * Constructs a new SDLPutFile object indicated by the dictionary parameter - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * A file reference name - * - * Required, maxlength 255 characters - */ -@property (strong) NSString *syncFileName; - -/** - * A FileType value representing a selected file type - * - * Required - */ -@property (strong) SDLFileType *fileType; - -/** - * A value to indicates if the file is meant to persist between - * sessions / ignition cycles. If set to TRUE, then the system will aim to - * persist this file through session / cycles. While files with this - * designation will have priority over others, they are subject to deletion - * by the system at any time. In the event of automatic deletion by the - * system, the app will receive a rejection and have to resend the file. If - * omitted, the value will be set to false - * - * Boolean, Optional, default = NO - */ -@property (strong) NSNumber *persistentFile; - -/** - * Indicates if the file is meant to be passed through core to elsewhere on the system. If set to TRUE, then the system will instead pass the data thru as it arrives to a predetermined area outside of core. - * - * Boolean, Optional, default = NO - */ -@property (strong) NSNumber *systemFile; - -/** - * Offset in bytes for resuming partial data chunks. - * - * Integer, Optional, 0 - 100,000,000,000 - */ -@property (strong) NSNumber *offset; - -/** - * Length in bytes for resuming partial data chunks. If offset is set to 0, then length is the total length of the file to be downloaded - * - * Integer, Optional, 0 - 100,000,000,000 - */ -@property (strong) NSNumber *length; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.m deleted file mode 100644 index 69d83edcd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.m +++ /dev/null @@ -1,101 +0,0 @@ -// SDLPutFile.m -// - -#import "SDLPutFile.h" - -#import "SDLFileType.h" -#import "SDLNames.h" - - -@implementation SDLPutFile - -- (instancetype)init { - if (self = [super initWithName:NAMES_PutFile]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setSyncFileName:(NSString *)syncFileName { - if (syncFileName != nil) { - [parameters setObject:syncFileName forKey:NAMES_syncFileName]; - } else { - [parameters removeObjectForKey:NAMES_syncFileName]; - } -} - -- (NSString *)syncFileName { - return [parameters objectForKey:NAMES_syncFileName]; -} - -- (void)setFileType:(SDLFileType *)fileType { - if (fileType != nil) { - [parameters setObject:fileType forKey:NAMES_fileType]; - } else { - [parameters removeObjectForKey:NAMES_fileType]; - } -} - -- (SDLFileType *)fileType { - NSObject *obj = [parameters objectForKey:NAMES_fileType]; - if (obj == nil || [obj isKindOfClass:SDLFileType.class]) { - return (SDLFileType *)obj; - } else { - return [SDLFileType valueOf:(NSString *)obj]; - } -} - -- (void)setPersistentFile:(NSNumber *)persistentFile { - if (persistentFile != nil) { - [parameters setObject:persistentFile forKey:NAMES_persistentFile]; - } else { - [parameters removeObjectForKey:NAMES_persistentFile]; - } -} - -- (NSNumber *)persistentFile { - return [parameters objectForKey:NAMES_persistentFile]; -} - -- (void)setSystemFile:(NSNumber *)systemFile { - if (systemFile != nil) { - [parameters setObject:systemFile forKey:NAMES_systemFile]; - } else { - [parameters removeObjectForKey:NAMES_systemFile]; - } -} - -- (NSNumber *)systemFile { - return [parameters objectForKey:NAMES_systemFile]; -} - -- (void)setOffset:(NSNumber *)offset { - if (offset != nil) { - [parameters setObject:offset forKey:NAMES_offset]; - } else { - [parameters removeObjectForKey:NAMES_offset]; - } -} - -- (NSNumber *)offset { - return [parameters objectForKey:NAMES_offset]; -} - -- (void)setLength:(NSNumber *)length { - if (length != nil) { - [parameters setObject:length forKey:NAMES_length]; - } else { - [parameters removeObjectForKey:NAMES_length]; - } -} - -- (NSNumber *)length { - return [parameters objectForKey:NAMES_length]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFileResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFileResponse.h deleted file mode 100644 index 9857607ca..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFileResponse.h +++ /dev/null @@ -1,24 +0,0 @@ -// SDLPutFileResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Put File Response is sent, when SDLPutFile has been called - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLPutFileResponse : SDLRPCResponse { -} -/** - * @abstract Constructs a new SDLPutFileResponse object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLPutFileResponse object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; -@property (strong) NSNumber *spaceAvailable; -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFileResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFileResponse.m deleted file mode 100644 index 4a956cfbd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFileResponse.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLPutFileResponse.m -// - - -#import "SDLPutFileResponse.h" - -#import "SDLNames.h" - -@implementation SDLPutFileResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_PutFile]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setSpaceAvailable:(NSNumber *)spaceAvailable { - if (spaceAvailable != nil) { - [parameters setObject:spaceAvailable forKey:NAMES_spaceAvailable]; - } else { - [parameters removeObjectForKey:NAMES_spaceAvailable]; - } -} - -- (NSNumber *)spaceAvailable { - return [parameters objectForKey:NAMES_spaceAvailable]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h deleted file mode 100644 index fc5f577ef..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h +++ /dev/null @@ -1,25 +0,0 @@ -// SDLRPCMessage.h -// - -#import "SDLEnum.h" - -#import "SDLRPCStruct.h" - -@interface SDLRPCMessage : SDLRPCStruct { - NSMutableDictionary *function; - NSMutableDictionary *parameters; - NSString *messageType; -} - -- (instancetype)initWithName:(NSString *)name; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; -- (NSString *)getFunctionName; -- (void)setFunctionName:(NSString *)functionName; -- (NSObject *)getParameters:(NSString *)functionName; -- (void)setParameters:(NSString *)functionName value:(NSObject *)value; - -@property (strong) NSData *bulkData; -@property (strong, readonly) NSString *name; -@property (strong, readonly) NSString *messageType; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.m deleted file mode 100644 index be5f95334..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.m +++ /dev/null @@ -1,81 +0,0 @@ -// SDLRPCMessage.m -// - - -#import "SDLRPCMessage.h" - -#import "SDLNames.h" - - -@implementation SDLRPCMessage - -@synthesize messageType; - -- (instancetype)initWithName:(NSString *)name { - if (self = [super init]) { - function = [[NSMutableDictionary alloc] initWithCapacity:3]; - parameters = [[NSMutableDictionary alloc] init]; - messageType = NAMES_request; - [store setObject:function forKey:messageType]; - [function setObject:parameters forKey:NAMES_parameters]; - [function setObject:name forKey:NAMES_operation_name]; - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - NSEnumerator *enumerator = [store keyEnumerator]; - while (messageType = [enumerator nextObject]) { - if ([messageType isEqualToString:@"bulkData"] == FALSE) { - break; - } - } - - function = [store objectForKey:messageType]; - parameters = [function objectForKey:NAMES_parameters]; - self.bulkData = [dict objectForKey:@"bulkData"]; - } - return self; -} - -- (NSString *)getFunctionName { - return [function objectForKey:NAMES_operation_name]; -} - -- (void)setFunctionName:(NSString *)functionName { - if (functionName != nil) { - [function setObject:functionName forKey:NAMES_operation_name]; - } else { - [function removeObjectForKey:NAMES_operation_name]; - } -} - -- (NSObject *)getParameters:(NSString *)functionName { - return [parameters objectForKey:functionName]; -} - -- (void)setParameters:(NSString *)functionName value:(NSObject *)value { - if (value != nil) { - [parameters setObject:value forKey:functionName]; - } else { - [parameters removeObjectForKey:functionName]; - } -} - -- (void)dealloc { - function = nil; - parameters = nil; -} - -- (NSString *)name { - return [function objectForKey:NAMES_operation_name]; -} - -- (NSString *)description { - NSMutableString *description = [NSMutableString stringWithFormat:@"%@ (%@)\n%@", self.name, self.messageType, self->parameters]; - - return description; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessageType.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessageType.h deleted file mode 100644 index 35f841687..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessageType.h +++ /dev/null @@ -1,10 +0,0 @@ -// SDLRPCMessageType.h -// - -#import - -typedef NS_ENUM(Byte, SDLRPCMessageType) { - SDLRPCMessageTypeRequest = 0, - SDLRPCMessageTypeResponse, - SDLRPCMessageTypeNotification -}; diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCNotification.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCNotification.h deleted file mode 100644 index 05f182b9b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCNotification.h +++ /dev/null @@ -1,13 +0,0 @@ -// SDLRPCNotification.h -// - - -#import "SDLRPCMessage.h" - -@interface SDLRPCNotification : SDLRPCMessage { -} - -- (instancetype)initWithName:(NSString *)name; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCNotification.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCNotification.m deleted file mode 100644 index 5c2a063dd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCNotification.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLRPCNotification.m -// - - -#import "SDLRPCNotification.h" - -#import "SDLNames.h" - -@implementation SDLRPCNotification - -- (instancetype)initWithName:(NSString *)name { - self = [super initWithName:name]; - if (!self) { - return nil; - } - - messageType = NAMES_notification; - [store setObject:function forKey:messageType]; - - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - self = [super initWithDictionary:dict]; - if (!self) { - return nil; - } - - messageType = NAMES_notification; - [store setObject:function forKey:messageType]; - - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCPayload.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCPayload.h deleted file mode 100644 index 1a490d956..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCPayload.h +++ /dev/null @@ -1,21 +0,0 @@ -// SDLRPCPayload.h -// - - -#import - -#import "SDLRPCMessageType.h" - - -@interface SDLRPCPayload : NSObject - -@property (assign) SDLRPCMessageType rpcType; -@property (assign) UInt32 functionID; -@property (assign) UInt32 correlationID; -@property (strong) NSData *jsonData; -@property (strong) NSData *binaryData; - -- (NSData *)data; -+ (id)rpcPayloadWithData:(NSData *)data; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCPayload.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCPayload.m deleted file mode 100644 index 25a4c9dab..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCPayload.m +++ /dev/null @@ -1,121 +0,0 @@ -// SDLRPCPayload.h -// - - -#import "SDLRPCPayload.h" - -const NSUInteger RPC_HEADER_SIZE = 12; - -@implementation SDLRPCPayload - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithData:(NSData *)data { - unsigned long dataLength = data.length; - - if (data == nil || dataLength == 0) { - NSLog(@"Error: data is nil."); - return nil; - } - - if (dataLength < RPC_HEADER_SIZE) { - NSLog(@"Error: insfficient data to form RPC header."); - return nil; - } - - if (self = [self init]) { - @try { - // Setup our pointers for data access - UInt8 *bytePointer = (UInt8 *)data.bytes; - UInt32 *ui32Pointer = (UInt32 *)data.bytes; - - // Extract the parts - UInt8 rpcType = (bytePointer[0] & 0xF0) >> 4; - - self.rpcType = rpcType; - - UInt32 functionID = ui32Pointer[0]; - functionID = CFSwapInt32BigToHost(functionID) & 0x0FFFFFFF; - self.functionID = functionID; - - UInt32 correlationID = ui32Pointer[1]; - correlationID = CFSwapInt32BigToHost(correlationID); - self.correlationID = correlationID; - - UInt32 jsonDataSize = ui32Pointer[2]; - jsonDataSize = CFSwapInt32BigToHost(jsonDataSize); - - NSData *jsonData = nil; - NSUInteger offsetOfJSONData = RPC_HEADER_SIZE; - if (jsonDataSize > 0 && jsonDataSize <= dataLength - RPC_HEADER_SIZE) { - jsonData = [data subdataWithRange:NSMakeRange(offsetOfJSONData, jsonDataSize)]; - } - self.jsonData = jsonData; - - NSData *binaryData = nil; - NSUInteger offsetOfBinaryData = RPC_HEADER_SIZE + jsonDataSize; - NSInteger binaryDataSize = data.length - jsonDataSize - RPC_HEADER_SIZE; - if (binaryDataSize > 0) { - binaryData = [data subdataWithRange:NSMakeRange(offsetOfBinaryData, binaryDataSize)]; - } - self.binaryData = binaryData; - - } @catch (NSException *e) { - // Print exception information - NSLog(@"NSException caught in SDLRPCPayload::initWithData"); - NSLog(@"Name: %@", e.name); - NSLog(@"Reason: %@", e.reason); - NSLog(@"Data: %@", data.debugDescription); - return nil; - } - } - - return self; -} - -- (NSData *)data { - // Header is: - // RPC Type - first 4 bits - // RPC Function ID - next 28 bits - // Correlation ID - next 32 bits - // JSON size - next 32 bits - UInt8 headerBuffer[RPC_HEADER_SIZE]; - *(UInt32 *)&headerBuffer[0] = CFSwapInt32HostToBig(self.functionID); - *(UInt32 *)&headerBuffer[4] = CFSwapInt32HostToBig(self.correlationID); - *(UInt32 *)&headerBuffer[8] = CFSwapInt32HostToBig((UInt32)self.jsonData.length); - UInt8 rpcType = (self.rpcType & 0x0F) << 4; - headerBuffer[0] &= 0x0F; - headerBuffer[0] |= rpcType; - - // Serialize the header, the json data then the binary data - NSMutableData *dataOut = [NSMutableData dataWithCapacity:[self size]]; - [dataOut appendBytes:&headerBuffer length:12]; - [dataOut appendData:self.jsonData]; - [dataOut appendData:self.binaryData]; - - return dataOut; -} - -- (NSUInteger)size { - NSUInteger headerSize = RPC_HEADER_SIZE; - NSUInteger jsonDataSize = self.jsonData.length; - NSUInteger binaryDataSize = self.binaryData.length; - - return (headerSize + jsonDataSize + binaryDataSize); -} - -- (NSString *)description { - NSMutableString *description = [[NSMutableString alloc] init]; - [description appendFormat:@" rpcType:%i, functionID:%i, correlationID:%i, json:%lu bytes, binary:%lu bytes", self.rpcType, (unsigned int)self.functionID, (unsigned int)self.correlationID, (unsigned long)self.jsonData.length, (unsigned long)self.binaryData.length]; - - return description; -} - -+ (id)rpcPayloadWithData:(NSData *)data { - return [[SDLRPCPayload alloc] initWithData:data]; -} -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequest.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequest.h deleted file mode 100644 index e637eb4bc..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequest.h +++ /dev/null @@ -1,12 +0,0 @@ -// SDLRPCRequest.h -// - - -#import "SDLRPCMessage.h" - -@interface SDLRPCRequest : SDLRPCMessage { -} - -@property (strong) NSNumber *correlationID; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequest.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequest.m deleted file mode 100644 index 48c568c9d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequest.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLRPCRequest.m -// - - -#import "SDLRPCRequest.h" - -#import "SDLNames.h" - -@implementation SDLRPCRequest - -- (NSNumber *)correlationID { - return [function objectForKey:NAMES_correlationID]; -} - -- (void)setCorrelationID:(NSNumber *)corrID { - if (corrID != nil) { - [function setObject:corrID forKey:NAMES_correlationID]; - } else { - [function removeObjectForKey:NAMES_correlationID]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h deleted file mode 100644 index 6df474850..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h +++ /dev/null @@ -1,210 +0,0 @@ -// SDLRPCRequestFactory.h -// - -#import - -@class SDLAddCommand; -@class SDLAddSubMenu; -@class SDLAlert; -@class SDLAlertManeuver; -@class SDLAppHMIType; -@class SDLAudioType; -@class SDLBitsPerSample; -@class SDLButtonName; -@class SDLChangeRegistration; -@class SDLCreateInteractionChoiceSet; -@class SDLDeleteCommand; -@class SDLDeleteFile; -@class SDLDeleteInteractionChoiceSet; -@class SDLDeleteSubMenu; -@class SDLDialNumber; -@class SDLEndAudioPassThru; -@class SDLFileType; -@class SDLGetDTCs; -@class SDLGetVehicleData; -@class SDLImage; -@class SDLImageType; -@class SDLInteractionMode; -@class SDLLanguage; -@class SDLListFiles; -@class SDLPerformAudioPassThru; -@class SDLPerformInteraction; -@class SDLPutFile; -@class SDLReadDID; -@class SDLRegisterAppInterface; -@class SDLResetGlobalProperties; -@class SDLSamplingRate; -@class SDLScrollableMessage; -@class SDLSendLocation; -@class SDLSetAppIcon; -@class SDLSetDisplayLayout; -@class SDLSetGlobalProperties; -@class SDLSetMediaClockTimer; -@class SDLShow; -@class SDLShowConstantTBT; -@class SDLSlider; -@class SDLSpeak; -@class SDLSubscribeButton; -@class SDLSubscribeVehicleData; -@class SDLTextAlignment; -@class SDLUnregisterAppInterface; -@class SDLUnsubscribeButton; -@class SDLUnsubscribeVehicleData; -@class SDLUpdateMode; -@class SDLUpdateTurnList; - - -@interface SDLRPCRequestFactory : NSObject { -} - -//***** AddCommand ***** -+ (SDLAddCommand *)buildAddCommandWithID:(NSNumber *)cmdID menuName:(NSString *)menuName parentID:(NSNumber *)parentID position:(NSNumber *)position vrCommands:(NSArray *)vrCommands iconValue:(NSString *)iconValue iconType:(SDLImageType *)iconType correlationID:(NSNumber *)correlationID; - -+ (SDLAddCommand *)buildAddCommandWithID:(NSNumber *)cmdID menuName:(NSString *)menuName vrCommands:(NSArray *)vrCommands correlationID:(NSNumber *)correlationID; - -+ (SDLAddCommand *)buildAddCommandWithID:(NSNumber *)cmdID vrCommands:(NSArray *)vrCommands correlationID:(NSNumber *)correlationID; -//***** - - -//***** AddSubMenu ***** -+ (SDLAddSubMenu *)buildAddSubMenuWithID:(NSNumber *)menuID menuName:(NSString *)menuName position:(NSNumber *)position correlationID:(NSNumber *)correlationID; - -+ (SDLAddSubMenu *)buildAddSubMenuWithID:(NSNumber *)menuID menuName:(NSString *)menuName correlationID:(NSNumber *)correlationID; -//***** - - -//***** Alert ***** -+ (SDLAlert *)buildAlertWithTTS:(NSString *)ttsText alertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 playTone:(NSNumber *)playTone duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID; - -+ (SDLAlert *)buildAlertWithTTS:(NSString *)ttsText alertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 playTone:(NSNumber *)playTone duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID; - -+ (SDLAlert *)buildAlertWithTTS:(NSString *)ttsText playTone:(NSNumber *)playTone correlationID:(NSNumber *) - correlationID; - -//*** -+ (SDLAlert *)buildAlertWithTTSChunks:(NSArray *)ttsChunks alertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 playTone:(NSNumber *)playTone duration:(NSNumber *)duration softButtons:(NSArray *)softButtons correlationID:(NSNumber *)correlationID; - -+ (SDLAlert *)buildAlertWithTTSChunks:(NSArray *)ttsChunks playTone:(NSNumber *)playTone correlationID:(NSNumber *)correlationID; - -//*** -+ (SDLAlert *)buildAlertWithAlertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 duration:(NSNumber *)duration softButtons:(NSArray *)softButtons correlationID:(NSNumber *)correlationID; - -+ (SDLAlert *)buildAlertWithAlertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID; - -+ (SDLAlert *)buildAlertWithAlertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID; -//***** - -+ (SDLAlertManeuver *)buildAlertManeuverwithTTSchunks:(NSMutableArray *)ttsChunks softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID; - -+ (SDLChangeRegistration *)buildChangeRegistrationWithLanguage:(SDLLanguage *)language hmiDisplayLanguage:(SDLLanguage *)hmiDisplayLanguage correlationID:(NSNumber *)correlationID; - -+ (SDLCreateInteractionChoiceSet *)buildCreateInteractionChoiceSetWithID:(NSNumber *)interactionChoiceSetID choiceSet:(NSArray *)choices correlationID:(NSNumber *)correlationID; - -+ (SDLDeleteCommand *)buildDeleteCommandWithID:(NSNumber *)cmdID correlationID:(NSNumber *)correlationID; - -+ (SDLDeleteFile *)buildDeleteFileWithName:(NSString *)syncFileName correlationID:(NSNumber *)correlationID; - -+ (SDLDialNumber *)buildDialNumberWithNumber:(NSString *)phoneNumber; - -+ (SDLListFiles *)buildListFilesWithCorrelationID:(NSNumber *)correlationID; - -+ (SDLDeleteInteractionChoiceSet *)buildDeleteInteractionChoiceSetWithID:(NSNumber *)interactionChoiceSetID correlationID:(NSNumber *)correlationID; - -+ (SDLDeleteSubMenu *)buildDeleteSubMenuWithID:(NSNumber *)menuID correlationID:(NSNumber *)correlationID; - -+ (SDLEndAudioPassThru *)buildEndAudioPassThruWithCorrelationID:(NSNumber *)correlationID; - -+ (SDLGetDTCs *)buildGetDTCsWithECUName:(NSNumber *)ecuName correlationID:(NSNumber *)correlationID; - -+ (SDLGetVehicleData *)buildGetVehicleDataWithGPS:(NSNumber *)gps speed:(NSNumber *)speed rpm:(NSNumber *)rpm fuelLevel:(NSNumber *)fuelLevel fuelLevelState:(NSNumber *)fuelLevelState instantFuelConsumption:(NSNumber *)instantFuelConsumption externalTemperature:(NSNumber *)externalTemperature vin:(NSNumber *)vin prndl:(NSNumber *)prndl tirePressure:(NSNumber *)tirePressure odometer:(NSNumber *)odometer beltStatus:(NSNumber *)beltStatus bodyInformation:(NSNumber *)bodyInformation deviceStatus:(NSNumber *)deviceStatus driverBraking:(NSNumber *)driverBraking wiperStatus:(NSNumber *)wiperStatus headLampStatus:(NSNumber *)headLampStatus engineTorque:(NSNumber *)engineTorque accPedalPosition:(NSNumber *)accPedalPosition steeringWheelAngle:(NSNumber *)steeringWheelAngle correlationID:(NSNumber *)correlationID; - -+ (SDLPerformAudioPassThru *)buildPerformAudioPassThruWithInitialPrompt:(NSString *)initialPrompt audioPassThruDisplayText1:(NSString *)audioPassThruDisplayText1 audioPassThruDisplayText2:(NSString *)audioPassThruDisplayText2 samplingRate:(SDLSamplingRate *)samplingRate maxDuration:(NSNumber *)maxDuration bitsPerSample:(SDLBitsPerSample *)bitsPerSample audioType:(SDLAudioType *)audioType muteAudio:(NSNumber *)muteAudio correlationID:(NSNumber *)correlationID; - - -//***** PerformInteraction ***** -+ (SDLPerformInteraction *)buildPerformInteractionWithInitialChunks:(NSArray *)initialChunks initialText:(NSString *)initialText interactionChoiceSetIDList:(NSArray *)interactionChoiceSetIDList helpChunks:(NSArray *)helpChunks timeoutChunks:(NSArray *)timeoutChunks interactionMode:(SDLInteractionMode *)interactionMode timeout:(NSNumber *)timeout vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID; - -//*** -+ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetIDList:(NSArray *)interactionChoiceSetIDList helpPrompt:(NSString *)helpPrompt timeoutPrompt:(NSString *)timeoutPrompt interactionMode:(SDLInteractionMode *)interactionMode timeout:(NSNumber *)timeout vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID; - -+ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetID:(NSNumber *)interactionChoiceSetID vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID; - -+ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetIDList:(NSArray *)interactionChoiceSetIDList helpPrompt:(NSString *)helpPrompt timeoutPrompt:(NSString *)timeoutPrompt interactionMode:(SDLInteractionMode *)interactionMode timeout:(NSNumber *)timeout correlationID:(NSNumber *)correlationID; - -+ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetID:(NSNumber *)interactionChoiceSetID correlationID:(NSNumber *)correlationID; -//***** - -+ (SDLPutFile *)buildPutFileWithFileName:(NSString *)fileName fileType:(SDLFileType *)fileType persistentFile:(NSNumber *)persistentFile correlationId:(NSNumber *)correlationID; -+ (SDLPutFile *)buildPutFileWithFileName:(NSString *)syncFileName fileType:(SDLFileType *)fileType persisistentFile:(NSNumber *)persistentFile correlationID:(NSNumber *)correlationID __deprecated_msg("use buildPutFileWithFileName:fileType:persistentFile:correlationID: instead"); - -+ (SDLReadDID *)buildReadDIDWithECUName:(NSNumber *)ecuName didLocation:(NSArray *)didLocation correlationID:(NSNumber *)correlationID; - -//***** RegisterAppInterface ***** -+ (SDLRegisterAppInterface *)buildRegisterAppInterfaceWithAppName:(NSString *)appName ttsName:(NSMutableArray *)ttsName vrSynonyms:(NSMutableArray *)vrSynonyms isMediaApp:(NSNumber *)isMediaApp languageDesired:(SDLLanguage *)languageDesired hmiDisplayLanguageDesired:(SDLLanguage *)hmiDisplayLanguageDesired appID:(NSString *)appID; - -+ (SDLRegisterAppInterface *)buildRegisterAppInterfaceWithAppName:(NSString *)appName isMediaApp:(NSNumber *)isMediaApp languageDesired:(SDLLanguage *)languageDesired appID:(NSString *)appID; - -+ (SDLRegisterAppInterface *)buildRegisterAppInterfaceWithAppName:(NSString *)appName languageDesired:(SDLLanguage *)laguageDesired appID:(NSString *)appID; -//***** - -+ (SDLResetGlobalProperties *)buildResetGlobalPropertiesWithProperties:(NSArray *)properties correlationID:(NSNumber *)correlationID; - -+ (SDLSendLocation *)buildSendLocationWithLongitude:(NSNumber *)longitude latitude:(NSNumber *)latitude locationName:(NSString *)locationName locationDescription:(NSString *)locationDescription address:(NSArray *)address phoneNumber:(NSString *)phoneNumber image:(SDLImage *)image; - -+ (SDLScrollableMessage *)buildScrollableMessage:(NSString *)scrollableMessageBody timeout:(NSNumber *)timeout softButtons:(NSArray *)softButtons correlationID:(NSNumber *)correlationID; - -+ (SDLSetAppIcon *)buildSetAppIconWithFileName:(NSString *)syncFileName correlationID:(NSNumber *)correlationID; - -+ (SDLSetDisplayLayout *)buildSetDisplayLayout:(NSString *)displayLayout correlationID:(NSNumber *)correlationID; - - -//***** SetGlobalProperties ***** -+ (SDLSetGlobalProperties *)buildSetGlobalPropertiesWithHelpText:(NSString *)helpText timeoutText:(NSString *)timeoutText vrHelpTitle:(NSString *)vrHelpTitle vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID; - -+ (SDLSetGlobalProperties *)buildSetGlobalPropertiesWithHelpText:(NSString *)helpText timeoutText:(NSString *)timeoutText correlationID:(NSNumber *)correlationID; -//***** - - -//***** SetMediaClockTimer ***** -+ (SDLSetMediaClockTimer *)buildSetMediaClockTimerWithHours:(NSNumber *)hours minutes:(NSNumber *)minutes seconds:(NSNumber *)seconds updateMode:(SDLUpdateMode *)updateMode correlationID:(NSNumber *)correlationID; - -+ (SDLSetMediaClockTimer *)buildSetMediaClockTimerWithUpdateMode:(SDLUpdateMode *)updateMode correlationID:(NSNumber *)correlationID; -//***** - - -//***** Show ***** -+ (SDLShow *)buildShowWithMainField1:(NSString *)mainField1 mainField2:(NSString *)mainField2 mainField3:(NSString *)mainField3 mainField4:(NSString *)mainField4 statusBar:(NSString *)statusBar mediaClock:(NSString *)mediaClock mediaTrack:(NSString *)mediaTrack alignment:(SDLTextAlignment *)textAlignment graphic:(SDLImage *)graphic softButtons:(NSArray *)softButtons customPresets:(NSArray *)customPresets correlationID:(NSNumber *)correlationID; - -+ (SDLShow *)buildShowWithMainField1:(NSString *)mainField1 mainField2:(NSString *)mainField2 statusBar:(NSString *)statusBar mediaClock:(NSString *)mediaClock mediaTrack:(NSString *)mediaTrack alignment:(SDLTextAlignment *)textAlignment correlationID:(NSNumber *)correlationID; - -+ (SDLShow *)buildShowWithMainField1:(NSString *)mainField1 mainField2:(NSString *)mainField2 alignment:(SDLTextAlignment *)alignment correlationID:(NSNumber *)correlationID; -//***** - - -//***** Slider ***** -+ (SDLSlider *)buildSliderDynamicFooterWithNumTicks:(NSNumber *)numTicks position:(NSNumber *)position sliderHeader:(NSString *)sliderHeader sliderFooter:(NSArray *)sliderFooter timeout:(NSNumber *)timeout correlationID:(NSNumber *)correlationID; - -+ (SDLSlider *)buildSliderStaticFooterWithNumTicks:(NSNumber *)numTicks position:(NSNumber *)position sliderHeader:(NSString *)sliderHeader sliderFooter:(NSString *)sliderFooter timeout:(NSNumber *)timeout correlationID:(NSNumber *)correlationID; -//***** - -//***** Speak ***** -+ (SDLSpeak *)buildSpeakWithTTSChunks:(NSArray *)ttsChunks correlationID:(NSNumber *)correlationID; - -//*** -+ (SDLSpeak *)buildSpeakWithTTS:(NSString *)ttsText correlationID:(NSNumber *)correlationID; -//***** - -+ (SDLSubscribeButton *)buildSubscribeButtonWithName:(SDLButtonName *)buttonName correlationID:(NSNumber *)correlationID; - -+ (SDLSubscribeVehicleData *)buildSubscribeVehicleDataWithGPS:(NSNumber *)gps speed:(NSNumber *)speed rpm:(NSNumber *)rpm fuelLevel:(NSNumber *)fuelLevel fuelLevelState:(NSNumber *)fuelLevelState instantFuelConsumption:(NSNumber *)instantFuelConsumption externalTemperature:(NSNumber *)externalTemperature prndl:(NSNumber *)prndl tirePressure:(NSNumber *)tirePressure odometer:(NSNumber *)odometer beltStatus:(NSNumber *)beltStatus bodyInformation:(NSNumber *)bodyInformation deviceStatus:(NSNumber *)deviceStatus driverBraking:(NSNumber *)driverBraking wiperStatus:(NSNumber *)wiperStatus headLampStatus:(NSNumber *)headLampStatus engineTorque:(NSNumber *)engineTorque accPedalPosition:(NSNumber *)accPedalPosition steeringWheelAngle:(NSNumber *)steeringWheelAngle correlationID:(NSNumber *)correlationID; - -+ (SDLShowConstantTBT *)buildShowConstantTBTWithString:(NSString *)navigationText1 navigationText2:(NSString *)navigationText2 eta:(NSString *)eta timeToDestination:(NSString *)timeToDestination totalDistance:(NSString *)totalDistance turnIcon:(SDLImage *)turnIcon nextTurnIcon:(SDLImage *)nextTurnIcon distanceToManeuver:(NSNumber *)distanceToManeuver distanceToManeuverScale:(NSNumber *)distanceToManeuverScale maneuverComplete:(NSNumber *)maneuverComplete softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID; - -+ (SDLUnregisterAppInterface *)buildUnregisterAppInterfaceWithCorrelationID:(NSNumber *)correlationID; - -+ (SDLUnsubscribeButton *)buildUnsubscribeButtonWithName:(SDLButtonName *)buttonName correlationID:(NSNumber *)correlationID; - -+ (SDLUnsubscribeVehicleData *)buildUnsubscribeVehicleDataWithGPS:(NSNumber *)gps speed:(NSNumber *)speed rpm:(NSNumber *)rpm fuelLevel:(NSNumber *)fuelLevel fuelLevelState:(NSNumber *)fuelLevelState instantFuelConsumption:(NSNumber *)instantFuelConsumption externalTemperature:(NSNumber *)externalTemperature prndl:(NSNumber *)prndl tirePressure:(NSNumber *)tirePressure odometer:(NSNumber *)odometer beltStatus:(NSNumber *)beltStatus bodyInformation:(NSNumber *)bodyInformation deviceStatus:(NSNumber *)deviceStatus driverBraking:(NSNumber *)driverBraking wiperStatus:(NSNumber *)wiperStatus headLampStatus:(NSNumber *)headLampStatus engineTorque:(NSNumber *)engineTorque accPedalPosition:(NSNumber *)accPedalPosition steeringWheelAngle:(NSNumber *)steeringWheelAngle correlationID:(NSNumber *)correlationID; - -+ (SDLUpdateTurnList *)buildUpdateTurnListWithTurnList:(NSMutableArray *)turnList softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID; -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.m deleted file mode 100644 index 44f9848a8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.m +++ /dev/null @@ -1,689 +0,0 @@ -// SDLRPCRequestFactory.m -// - -#import "SDLRPCRequestFactory.h" -#import -#import -#import - -#import "SDLAddCommand.h" -#import "SDLAddSubMenu.h" -#import "SDLAlert.h" -#import "SDLAlertManeuver.h" -#import "SDLAppHMIType.h" -#import "SDLChangeRegistration.h" -#import "SDLCreateInteractionChoiceSet.h" -#import "SDLDebugTool.h" -#import "SDLDeleteCommand.h" -#import "SDLDeleteFile.h" -#import "SDLDeleteInteractionChoiceSet.h" -#import "SDLDeleteSubMenu.h" -#import "SDLDeviceInfo.h" -#import "SDLDialNumber.h" -#import "SDLEndAudioPassThru.h" -#import "SDLFileType.h" -#import "SDLGetDTCs.h" -#import "SDLGetVehicleData.h" -#import "SDLImage.h" -#import "SDLInteractionMode.h" -#import "SDLListFiles.h" -#import "SDLMenuParams.h" -#import "SDLPerformAudioPassThru.h" -#import "SDLPerformInteraction.h" -#import "SDLPutFile.h" -#import "SDLReadDID.h" -#import "SDLRegisterAppInterface.h" -#import "SDLResetGlobalProperties.h" -#import "SDLScrollableMessage.h" -#import "SDLSendLocation.h" -#import "SDLSetAppIcon.h" -#import "SDLSetDisplayLayout.h" -#import "SDLSetGlobalProperties.h" -#import "SDLSetMediaClockTimer.h" -#import "SDLShow.h" -#import "SDLShowConstantTBT.h" -#import "SDLSlider.h" -#import "SDLSpeak.h" -#import "SDLSpeechCapabilities.h" -#import "SDLStartTime.h" -#import "SDLSubscribeButton.h" -#import "SDLSubscribeVehicleData.h" -#import "SDLSyncMsgVersion.h" -#import "SDLTTSChunk.h" -#import "SDLTTSChunkFactory.h" -#import "SDLUnregisterAppInterface.h" -#import "SDLUnsubscribeButton.h" -#import "SDLUnsubscribeVehicleData.h" -#import "SDLUpdateTurnList.h" - - -@implementation SDLRPCRequestFactory - -//***** AddCommand ***** -+ (SDLAddCommand *)buildAddCommandWithID:(NSNumber *)cmdID menuName:(NSString *)menuName parentID:(NSNumber *)parentID position:(NSNumber *)position vrCommands:(NSArray *)vrCommands iconValue:(NSString *)iconValue iconType:(SDLImageType *)iconType correlationID:(NSNumber *)correlationID { - SDLAddCommand *msg = [[SDLAddCommand alloc] init]; - msg.correlationID = correlationID; - - msg.cmdID = cmdID; - - if (menuName != nil || parentID != nil || position != nil) { - SDLMenuParams *menuParams = [[SDLMenuParams alloc] init]; - menuParams.menuName = menuName; - menuParams.parentID = parentID; - menuParams.position = position; - msg.menuParams = menuParams; - } - msg.vrCommands = [vrCommands mutableCopy]; - - if (iconValue != nil || iconType != nil) { - SDLImage *icon = [[SDLImage alloc] init]; - icon.value = iconValue; - icon.imageType = iconType; - msg.cmdIcon = icon; - } - - return msg; -} - -+ (SDLAddCommand *)buildAddCommandWithID:(NSNumber *)cmdID menuName:(NSString *)menuName vrCommands:(NSArray *)vrCommands correlationID:(NSNumber *)correlationID { - return [SDLRPCRequestFactory buildAddCommandWithID:cmdID menuName:menuName parentID:nil position:nil vrCommands:vrCommands iconValue:nil iconType:nil correlationID:correlationID]; -} - -+ (SDLAddCommand *)buildAddCommandWithID:(NSNumber *)cmdID vrCommands:(NSArray *)vrCommands correlationID:(NSNumber *)correlationID { - return [SDLRPCRequestFactory buildAddCommandWithID:cmdID menuName:nil vrCommands:vrCommands correlationID:correlationID]; -} -//***** - - -//***** AddSubMenu ***** -+ (SDLAddSubMenu *)buildAddSubMenuWithID:(NSNumber *)menuID menuName:(NSString *)menuName position:(NSNumber *)position correlationID:(NSNumber *)correlationID { - SDLAddSubMenu *msg = [[SDLAddSubMenu alloc] init]; - msg.correlationID = correlationID; - msg.menuID = menuID; - msg.menuName = menuName; - msg.position = position; - return msg; -} - -+ (SDLAddSubMenu *)buildAddSubMenuWithID:(NSNumber *)menuID menuName:(NSString *)menuName correlationID:(NSNumber *)correlationID { - return [SDLRPCRequestFactory buildAddSubMenuWithID:menuID menuName:menuName position:nil correlationID:correlationID]; -} -//***** - - -//***** Alert ***** -+ (SDLAlert *)buildAlertWithTTS:(NSString *)ttsText alertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 playTone:(NSNumber *)playTone duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID { - SDLTTSChunk *simpleChunk = [[SDLTTSChunk alloc] init]; - simpleChunk.text = ttsText; - simpleChunk.type = SDLSpeechCapabilities.TEXT; - NSArray *ttsChunks = [NSArray arrayWithObject:simpleChunk]; - - return [SDLRPCRequestFactory buildAlertWithTTSChunks:ttsChunks alertText1:alertText1 alertText2:alertText2 alertText3:alertText3 playTone:playTone duration:duration softButtons:nil correlationID:correlationID]; -} - -+ (SDLAlert *)buildAlertWithTTS:(NSString *)ttsText alertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 playTone:(NSNumber *)playTone duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID { - return [SDLRPCRequestFactory buildAlertWithTTS:ttsText alertText1:alertText1 alertText2:alertText2 alertText3:nil playTone:playTone duration:duration correlationID:correlationID]; -} - -+ (SDLAlert *)buildAlertWithTTS:(NSString *)ttsText playTone:(NSNumber *)playTone correlationID:(NSNumber *)correlationID { - return [SDLRPCRequestFactory buildAlertWithTTS:ttsText alertText1:nil alertText2:nil alertText3:nil playTone:playTone duration:nil correlationID:correlationID]; -} - -//*** -+ (SDLAlert *)buildAlertWithTTSChunks:(NSArray *)ttsChunks alertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 playTone:(NSNumber *)playTone duration:(NSNumber *)duration softButtons:(NSArray *)softButtons correlationID:(NSNumber *)correlationID { - SDLAlert *msg = [[SDLAlert alloc] init]; - msg.correlationID = correlationID; - msg.alertText1 = alertText1; - msg.alertText2 = alertText2; - msg.alertText3 = alertText3; - msg.ttsChunks = [ttsChunks mutableCopy]; - msg.playTone = playTone; - msg.duration = duration; - msg.softButtons = [softButtons mutableCopy]; - return msg; -} - -+ (SDLAlert *)buildAlertWithTTSChunks:(NSArray *)ttsChunks playTone:(NSNumber *)playTone correlationID:(NSNumber *)correlationID { - return [SDLRPCRequestFactory buildAlertWithTTSChunks:ttsChunks alertText1:nil alertText2:nil alertText3:nil playTone:playTone duration:nil softButtons:nil correlationID:correlationID]; -} - -//*** -+ (SDLAlert *)buildAlertWithAlertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 duration:(NSNumber *)duration softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID { - return [SDLRPCRequestFactory buildAlertWithTTSChunks:nil alertText1:alertText1 alertText2:alertText2 alertText3:alertText3 playTone:nil duration:duration softButtons:softButtons correlationID:correlationID]; -} - -+ (SDLAlert *)buildAlertWithAlertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID { - return [SDLRPCRequestFactory buildAlertWithTTSChunks:nil alertText1:alertText1 alertText2:alertText2 alertText3:alertText3 playTone:nil duration:duration softButtons:nil correlationID:correlationID]; -} - -+ (SDLAlert *)buildAlertWithAlertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID { - return [SDLRPCRequestFactory buildAlertWithTTSChunks:nil alertText1:alertText1 alertText2:alertText2 alertText3:nil playTone:nil duration:duration softButtons:nil correlationID:correlationID]; -} -//***** - - -+ (SDLAlertManeuver *)buildAlertManeuverwithTTSchunks:(NSMutableArray *)ttsChunks softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID { - SDLAlertManeuver *msg = [[SDLAlertManeuver alloc] init]; - msg.ttsChunks = ttsChunks; - msg.softButtons = softButtons; - msg.correlationID = correlationID; - return msg; -} - -+ (SDLChangeRegistration *)buildChangeRegistrationWithLanguage:(SDLLanguage *)language hmiDisplayLanguage:(SDLLanguage *)hmiDisplayLanguage correlationID:(NSNumber *)correlationID { - SDLChangeRegistration *msg = [[SDLChangeRegistration alloc] init]; - msg.language = language; - msg.hmiDisplayLanguage = hmiDisplayLanguage; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLCreateInteractionChoiceSet *)buildCreateInteractionChoiceSetWithID:(NSNumber *)interactionChoiceSetID choiceSet:(NSArray *)choices correlationID:(NSNumber *)correlationID { - SDLCreateInteractionChoiceSet *msg = [[SDLCreateInteractionChoiceSet alloc] init]; - msg.interactionChoiceSetID = interactionChoiceSetID; - msg.choiceSet = [choices mutableCopy]; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLDeleteCommand *)buildDeleteCommandWithID:(NSNumber *)cmdID correlationID:(NSNumber *)correlationID { - SDLDeleteCommand *msg = [[SDLDeleteCommand alloc] init]; - msg.cmdID = cmdID; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLDeleteFile *)buildDeleteFileWithName:(NSString *)syncFileName correlationID:(NSNumber *)correlationID { - SDLDeleteFile *msg = [[SDLDeleteFile alloc] init]; - msg.syncFileName = syncFileName; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLDialNumber *)buildDialNumberWithNumber:(NSString *)phoneNumber { - SDLDialNumber *msg = [[SDLDialNumber alloc] init]; - msg.number = phoneNumber; - - return msg; -} - -+ (SDLListFiles *)buildListFilesWithCorrelationID:(NSNumber *)correlationID { - SDLListFiles *msg = [[SDLListFiles alloc] init]; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLDeleteInteractionChoiceSet *)buildDeleteInteractionChoiceSetWithID:(NSNumber *)interactionChoiceSetID correlationID:(NSNumber *)correlationID { - SDLDeleteInteractionChoiceSet *msg = [[SDLDeleteInteractionChoiceSet alloc] init]; - msg.interactionChoiceSetID = interactionChoiceSetID; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLDeleteSubMenu *)buildDeleteSubMenuWithID:(NSNumber *)menuID correlationID:(NSNumber *)correlationID { - SDLDeleteSubMenu *msg = [[SDLDeleteSubMenu alloc] init]; - msg.menuID = menuID; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLEndAudioPassThru *)buildEndAudioPassThruWithCorrelationID:(NSNumber *)correlationID { - SDLEndAudioPassThru *msg = [[SDLEndAudioPassThru alloc] init]; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLGetDTCs *)buildGetDTCsWithECUName:(NSNumber *)ecuName correlationID:(NSNumber *)correlationID { - SDLGetDTCs *msg = [[SDLGetDTCs alloc] init]; - msg.ecuName = ecuName; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLGetVehicleData *)buildGetVehicleDataWithGPS:(NSNumber *)gps speed:(NSNumber *)speed rpm:(NSNumber *)rpm fuelLevel:(NSNumber *)fuelLevel fuelLevelState:(NSNumber *)fuelLevelState instantFuelConsumption:(NSNumber *)instantFuelConsumption externalTemperature:(NSNumber *)externalTemperature vin:(NSNumber *)vin prndl:(NSNumber *)prndl tirePressure:(NSNumber *)tirePressure odometer:(NSNumber *)odometer beltStatus:(NSNumber *)beltStatus bodyInformation:(NSNumber *)bodyInformation deviceStatus:(NSNumber *)deviceStatus driverBraking:(NSNumber *)driverBraking wiperStatus:(NSNumber *)wiperStatus headLampStatus:(NSNumber *)headLampStatus engineTorque:(NSNumber *)engineTorque accPedalPosition:(NSNumber *)accPedalPosition steeringWheelAngle:(NSNumber *)steeringWheelAngle correlationID:(NSNumber *)correlationID { - SDLGetVehicleData *msg = [[SDLGetVehicleData alloc] init]; - msg.gps = gps; - msg.speed = speed; - msg.rpm = rpm; - msg.fuelLevel = fuelLevel; - msg.fuelLevel_State = fuelLevelState; - msg.instantFuelConsumption = instantFuelConsumption; - msg.externalTemperature = externalTemperature; - msg.vin = vin; - msg.prndl = prndl; - msg.tirePressure = tirePressure; - msg.odometer = odometer; - msg.beltStatus = beltStatus; - msg.bodyInformation = bodyInformation; - msg.deviceStatus = deviceStatus; - msg.driverBraking = driverBraking; - msg.wiperStatus = wiperStatus; - msg.headLampStatus = headLampStatus; - msg.engineTorque = engineTorque; - msg.accPedalPosition = accPedalPosition; - msg.steeringWheelAngle = steeringWheelAngle; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLPerformAudioPassThru *)buildPerformAudioPassThruWithInitialPrompt:(NSString *)initialPrompt audioPassThruDisplayText1:(NSString *)audioPassThruDisplayText1 audioPassThruDisplayText2:(NSString *)audioPassThruDisplayText2 samplingRate:(SDLSamplingRate *)samplingRate maxDuration:(NSNumber *)maxDuration bitsPerSample:(SDLBitsPerSample *)bitsPerSample audioType:(SDLAudioType *)audioType muteAudio:(NSNumber *)muteAudio correlationID:(NSNumber *)correlationID { - NSArray *initialChunks = [SDLTTSChunkFactory buildTTSChunksFromSimple:initialPrompt]; - - SDLPerformAudioPassThru *msg = [[SDLPerformAudioPassThru alloc] init]; - msg.initialPrompt = [initialChunks mutableCopy]; - msg.audioPassThruDisplayText1 = audioPassThruDisplayText1; - msg.audioPassThruDisplayText2 = audioPassThruDisplayText2; - msg.samplingRate = samplingRate; - msg.maxDuration = maxDuration; - msg.bitsPerSample = bitsPerSample; - msg.audioType = audioType; - msg.muteAudio = muteAudio; - msg.correlationID = correlationID; - - return msg; -} - - -//***** PerformInteraction ***** -+ (SDLPerformInteraction *)buildPerformInteractionWithInitialChunks:(NSArray *)initialChunks initialText:(NSString *)initialText interactionChoiceSetIDList:(NSArray *)interactionChoiceSetIDList helpChunks:(NSArray *)helpChunks timeoutChunks:(NSArray *)timeoutChunks interactionMode:(SDLInteractionMode *)interactionMode timeout:(NSNumber *)timeout vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID { - SDLPerformInteraction *msg = [[SDLPerformInteraction alloc] init]; - msg.initialPrompt = [initialChunks mutableCopy]; - msg.initialText = initialText; - msg.interactionChoiceSetIDList = [interactionChoiceSetIDList mutableCopy]; - msg.helpPrompt = [helpChunks mutableCopy]; - msg.timeoutPrompt = [timeoutChunks mutableCopy]; - msg.interactionMode = interactionMode; - msg.timeout = timeout; - msg.vrHelp = [vrHelp mutableCopy]; - msg.correlationID = correlationID; - - return msg; -} - -//*** -+ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetIDList:(NSArray *)interactionChoiceSetIDList helpPrompt:(NSString *)helpPrompt timeoutPrompt:(NSString *)timeoutPrompt interactionMode:(SDLInteractionMode *)interactionMode timeout:(NSNumber *)timeout vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID { - NSArray *initialChunks = [SDLTTSChunkFactory buildTTSChunksFromSimple:initialPrompt]; - NSArray *helpChunks = [SDLTTSChunkFactory buildTTSChunksFromSimple:helpPrompt]; - NSArray *timeoutChunks = [SDLTTSChunkFactory buildTTSChunksFromSimple:timeoutPrompt]; - - return [SDLRPCRequestFactory buildPerformInteractionWithInitialChunks:initialChunks initialText:initialText interactionChoiceSetIDList:interactionChoiceSetIDList helpChunks:helpChunks timeoutChunks:timeoutChunks interactionMode:interactionMode timeout:timeout vrHelp:vrHelp correlationID:correlationID]; -} - -+ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetID:(NSNumber *)interactionChoiceSetID vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID { - NSArray *interactionChoiceSetIDList = [NSArray arrayWithObject:interactionChoiceSetID]; - NSArray *initialChunks = [SDLTTSChunkFactory buildTTSChunksFromSimple:initialPrompt]; - - return [SDLRPCRequestFactory buildPerformInteractionWithInitialChunks:initialChunks initialText:initialText interactionChoiceSetIDList:interactionChoiceSetIDList helpChunks:nil timeoutChunks:nil interactionMode:SDLInteractionMode.BOTH timeout:nil vrHelp:vrHelp correlationID:correlationID]; -} - -+ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetIDList:(NSArray *)interactionChoiceSetIDList helpPrompt:(NSString *)helpPrompt timeoutPrompt:(NSString *)timeoutPrompt interactionMode:(SDLInteractionMode *)interactionMode timeout:(NSNumber *)timeout correlationID:(NSNumber *)correlationID { - return [SDLRPCRequestFactory buildPerformInteractionWithInitialPrompt:initialPrompt initialText:initialText interactionChoiceSetIDList:interactionChoiceSetIDList helpPrompt:helpPrompt timeoutPrompt:timeoutPrompt interactionMode:interactionMode timeout:timeout vrHelp:nil correlationID:(NSNumber *)correlationID]; -} - -+ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetID:(NSNumber *)interactionChoiceSetID correlationID:(NSNumber *)correlationID { - return [SDLRPCRequestFactory buildPerformInteractionWithInitialPrompt:initialPrompt initialText:initialText interactionChoiceSetID:interactionChoiceSetID vrHelp:nil correlationID:correlationID]; -} -//***** - -+ (SDLPutFile *)buildPutFileWithFileName:(NSString *)fileName fileType:(SDLFileType *)fileType persistentFile:(NSNumber *)persistentFile correlationId:(NSNumber *)correlationID { - SDLPutFile *msg = [[SDLPutFile alloc] init]; - msg.syncFileName = fileName; - - msg.fileType = fileType; - msg.persistentFile = persistentFile; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLPutFile *)buildPutFileWithFileName:(NSString *)syncFileName fileType:(SDLFileType *)fileType persisistentFile:(NSNumber *)persistentFile correlationID:(NSNumber *)correlationID { - return [self buildPutFileWithFileName:syncFileName fileType:fileType persistentFile:persistentFile correlationId:correlationID]; -} - -+ (SDLReadDID *)buildReadDIDWithECUName:(NSNumber *)ecuName didLocation:(NSArray *)didLocation correlationID:(NSNumber *)correlationID { - SDLReadDID *msg = [[SDLReadDID alloc] init]; - msg.ecuName = ecuName; - msg.didLocation = [didLocation mutableCopy]; - msg.correlationID = correlationID; - - return msg; -} - -//***** RegisterAppInterface ***** -+ (SDLRegisterAppInterface *)buildRegisterAppInterfaceWithAppName:(NSString *)appName ttsName:(NSArray *)ttsName vrSynonyms:(NSArray *)vrSynonyms isMediaApp:(NSNumber *)isMediaApp languageDesired:(SDLLanguage *)languageDesired hmiDisplayLanguageDesired:(SDLLanguage *)hmiDisplayLanguageDesired appID:(NSString *)appID { - SDLRegisterAppInterface *msg = [[SDLRegisterAppInterface alloc] init]; - SDLSyncMsgVersion *version = [[SDLSyncMsgVersion alloc] init]; - version.majorVersion = [NSNumber numberWithInt:1]; - version.minorVersion = [NSNumber numberWithInt:0]; - msg.syncMsgVersion = version; - msg.appName = appName; - msg.ttsName = [ttsName mutableCopy]; - msg.ngnMediaScreenAppName = appName; - msg.vrSynonyms = [vrSynonyms mutableCopy]; - msg.isMediaApplication = isMediaApp; - msg.languageDesired = languageDesired; - msg.hmiDisplayLanguageDesired = hmiDisplayLanguageDesired; - msg.appID = appID; - msg.deviceInfo = [self sdl_buildDeviceInfo]; - msg.correlationID = [NSNumber numberWithInt:1]; - - return msg; -} - -+ (SDLDeviceInfo *)sdl_buildDeviceInfo { - SDLDeviceInfo *deviceInfo = [[SDLDeviceInfo alloc] init]; - deviceInfo.hardware = [UIDevice currentDevice].model; - deviceInfo.os = [UIDevice currentDevice].systemName; - deviceInfo.osVersion = [UIDevice currentDevice].systemVersion; - CTTelephonyNetworkInfo *netinfo = [[CTTelephonyNetworkInfo alloc] init]; - CTCarrier *carrier = netinfo.subscriberCellularProvider; - NSString *carrierName = carrier.carrierName; - deviceInfo.carrier = carrierName; - - return deviceInfo; -} - -+ (SDLRegisterAppInterface *)buildRegisterAppInterfaceWithAppName:(NSString *)appName isMediaApp:(NSNumber *)isMediaApp languageDesired:(SDLLanguage *)languageDesired appID:(NSString *)appID { - NSMutableArray *syns = [NSMutableArray arrayWithObject:appName]; - return [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:appName ttsName:nil vrSynonyms:syns isMediaApp:isMediaApp languageDesired:languageDesired hmiDisplayLanguageDesired:languageDesired appID:appID]; -} - -+ (SDLRegisterAppInterface *)buildRegisterAppInterfaceWithAppName:(NSString *)appName languageDesired:(SDLLanguage *)languageDesired appID:(NSString *)appID { - return [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:appName isMediaApp:@NO languageDesired:languageDesired appID:appID]; -} -//***** - - -+ (SDLResetGlobalProperties *)buildResetGlobalPropertiesWithProperties:(NSArray *)properties correlationID:(NSNumber *)correlationID { - SDLResetGlobalProperties *msg = [[SDLResetGlobalProperties alloc] init]; - msg.properties = [properties mutableCopy]; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLScrollableMessage *)buildScrollableMessage:(NSString *)scrollableMessageBody timeout:(NSNumber *)timeout softButtons:(NSArray *)softButtons correlationID:(NSNumber *)correlationID { - SDLScrollableMessage *msg = [[SDLScrollableMessage alloc] init]; - msg.scrollableMessageBody = scrollableMessageBody; - msg.timeout = timeout; - msg.softButtons = [softButtons mutableCopy]; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLSendLocation *)buildSendLocationWithLongitude:(NSNumber *)longitude latitude:(NSNumber *)latitude locationName:(NSString *)locationName locationDescription:(NSString *)locationDescription address:(NSArray *)address phoneNumber:(NSString *)phoneNumber image:(SDLImage *)image { - SDLSendLocation *msg = [[SDLSendLocation alloc] init]; - msg.longitudeDegrees = longitude; - msg.latitudeDegrees = latitude; - msg.locationName = locationName; - msg.locationDescription = locationDescription; - msg.addressLines = address; - msg.phoneNumber = phoneNumber; - msg.locationImage = image; - - return msg; -} - -+ (SDLSetAppIcon *)buildSetAppIconWithFileName:(NSString *)syncFileName correlationID:(NSNumber *)correlationID { - SDLSetAppIcon *msg = [[SDLSetAppIcon alloc] init]; - msg.syncFileName = syncFileName; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLSetDisplayLayout *)buildSetDisplayLayout:(NSString *)displayLayout correlationID:(NSNumber *)correlationID { - SDLSetDisplayLayout *msg = [[SDLSetDisplayLayout alloc] init]; - msg.displayLayout = displayLayout; - msg.correlationID = correlationID; - - return msg; -} - - -//***** SetGlobalProperties ***** -+ (SDLSetGlobalProperties *)buildSetGlobalPropertiesWithHelpText:(NSString *)helpText timeoutText:(NSString *)timeoutText vrHelpTitle:(NSString *)vrHelpTitle vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID { - SDLSetGlobalProperties *msg = [[SDLSetGlobalProperties alloc] init]; - msg.helpPrompt = [SDLTTSChunkFactory buildTTSChunksFromSimple:helpText]; - msg.timeoutPrompt = [SDLTTSChunkFactory buildTTSChunksFromSimple:timeoutText]; - msg.vrHelpTitle = vrHelpTitle; - msg.vrHelp = [vrHelp mutableCopy]; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLSetGlobalProperties *)buildSetGlobalPropertiesWithHelpText:(NSString *)helpText timeoutText:(NSString *)timeoutText correlationID:(NSNumber *)correlationID { - SDLSetGlobalProperties *msg = [[SDLSetGlobalProperties alloc] init]; - msg.helpPrompt = [SDLTTSChunkFactory buildTTSChunksFromSimple:helpText]; - msg.timeoutPrompt = [SDLTTSChunkFactory buildTTSChunksFromSimple:timeoutText]; - msg.correlationID = correlationID; - - return msg; -} -//***** - - -//***** SetMediaClockTimer ***** -+ (SDLSetMediaClockTimer *)buildSetMediaClockTimerWithHours:(NSNumber *)hours minutes:(NSNumber *)minutes seconds:(NSNumber *)seconds updateMode:(SDLUpdateMode *)updateMode correlationID:(NSNumber *)correlationID { - SDLSetMediaClockTimer *msg = [[SDLSetMediaClockTimer alloc] init]; - SDLStartTime *startTime = [[SDLStartTime alloc] init]; - startTime.hours = hours; - startTime.minutes = minutes; - startTime.seconds = seconds; - msg.startTime = startTime; - msg.updateMode = updateMode; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLSetMediaClockTimer *)buildSetMediaClockTimerWithUpdateMode:(SDLUpdateMode *)updateMode correlationID:(NSNumber *)correlationID { - SDLSetMediaClockTimer *msg = [[SDLSetMediaClockTimer alloc] init]; - msg.updateMode = updateMode; - msg.correlationID = correlationID; - - return msg; -} -//***** - - -//***** Show ***** -+ (SDLShow *)buildShowWithMainField1:(NSString *)mainField1 mainField2:(NSString *)mainField2 mainField3:(NSString *)mainField3 mainField4:(NSString *)mainField4 statusBar:(NSString *)statusBar mediaClock:(NSString *)mediaClock mediaTrack:(NSString *)mediaTrack alignment:(SDLTextAlignment *)textAlignment graphic:(SDLImage *)graphic softButtons:(NSArray *)softButtons customPresets:(NSArray *)customPresets correlationID:(NSNumber *)correlationID { - SDLShow *msg = [[SDLShow alloc] init]; - msg.correlationID = correlationID; - msg.mainField1 = mainField1; - msg.mainField2 = mainField2; - msg.mainField3 = mainField3; - msg.mainField4 = mainField4; - msg.statusBar = statusBar; - msg.mediaClock = mediaClock; - msg.mediaTrack = mediaTrack; - msg.alignment = textAlignment; - msg.graphic = graphic; - msg.softButtons = [softButtons mutableCopy]; - msg.customPresets = [customPresets mutableCopy]; - - return msg; -} - -+ (SDLShow *)buildShowWithMainField1:(NSString *)mainField1 mainField2:(NSString *)mainField2 statusBar:(NSString *)statusBar mediaClock:(NSString *)mediaClock mediaTrack:(NSString *)mediaTrack alignment:(SDLTextAlignment *)textAlignment correlationID:(NSNumber *)correlationID { - SDLShow *msg = [[SDLShow alloc] init]; - msg.correlationID = correlationID; - msg.mainField1 = mainField1; - msg.mainField2 = mainField2; - msg.statusBar = statusBar; - msg.mediaClock = mediaClock; - msg.mediaTrack = mediaTrack; - msg.alignment = textAlignment; - - return msg; -} - -+ (SDLShow *)buildShowWithMainField1:(NSString *)mainField1 mainField2:(NSString *)mainField2 alignment:(SDLTextAlignment *)alignment correlationID:(NSNumber *)correlationID { - return [SDLRPCRequestFactory buildShowWithMainField1:mainField1 mainField2:mainField2 statusBar:nil mediaClock:nil mediaTrack:nil alignment:alignment correlationID:correlationID]; -} - -+ (SDLShowConstantTBT *)buildShowConstantTBTWithString:(NSString *)navigationText1 navigationText2:(NSString *)navigationText2 eta:(NSString *)eta timeToDestination:(NSString *)timeToDestination totalDistance:(NSString *)totalDistance turnIcon:(SDLImage *)turnIcon nextTurnIcon:(SDLImage *)nextTurnIcon distanceToManeuver:(NSNumber *)distanceToManeuver distanceToManeuverScale:(NSNumber *)distanceToManeuverScale maneuverComplete:(NSNumber *)maneuverComplete softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID { - SDLShowConstantTBT *msg = [[SDLShowConstantTBT alloc] init]; - msg.navigationText1 = navigationText1; - msg.navigationText2 = navigationText2; - msg.eta = eta; - msg.timeToDestination = timeToDestination; - msg.totalDistance = totalDistance; - msg.turnIcon = turnIcon; - msg.nextTurnIcon = nextTurnIcon; - msg.distanceToManeuver = distanceToManeuver; - msg.distanceToManeuverScale = distanceToManeuverScale; - msg.maneuverComplete = maneuverComplete; - msg.softButtons = [softButtons mutableCopy]; - msg.correlationID = correlationID; - - return msg; -} -//***** - - -//***** Slider ***** -+ (SDLSlider *)buildSliderDynamicFooterWithNumTicks:(NSNumber *)numTicks position:(NSNumber *)position sliderHeader:(NSString *)sliderHeader sliderFooter:(NSArray *)sliderFooter timeout:(NSNumber *)timeout correlationID:(NSNumber *)correlationID { - SDLSlider *msg = [[SDLSlider alloc] init]; - msg.correlationID = correlationID; - msg.numTicks = numTicks; - msg.position = position; - msg.sliderHeader = sliderHeader; - msg.sliderFooter = [sliderFooter mutableCopy]; - msg.timeout = timeout; - - return msg; -} - -+ (SDLSlider *)buildSliderStaticFooterWithNumTicks:(NSNumber *)numTicks position:(NSNumber *)position sliderHeader:(NSString *)sliderHeader sliderFooter:(NSString *)sliderFooter timeout:(NSNumber *)timeout correlationID:(NSNumber *)correlationID { - NSArray *sliderFooters = [NSArray arrayWithObject:sliderFooter]; - - // Populates array with the same footer value for each position - for (UInt32 i = 1; i < numTicks.unsignedIntegerValue; i++) { - sliderFooters = [sliderFooters arrayByAddingObject:sliderFooter]; - } - - return [SDLRPCRequestFactory buildSliderDynamicFooterWithNumTicks:numTicks position:position sliderHeader:sliderHeader sliderFooter:sliderFooters timeout:timeout correlationID:correlationID]; -} -//***** - - -//***** Speak ***** -+ (SDLSpeak *)buildSpeakWithTTSChunks:(NSArray *)ttsChunks correlationID:(NSNumber *)correlationID { - SDLSpeak *msg = [[SDLSpeak alloc] init]; - msg.correlationID = correlationID; - msg.ttsChunks = [ttsChunks mutableCopy]; - - return msg; -} - -//*** -+ (SDLSpeak *)buildSpeakWithTTS:(NSString *)ttsText correlationID:(NSNumber *)correlationID { - SDLTTSChunk *simpleChunk = [[SDLTTSChunk alloc] init]; - simpleChunk.text = ttsText; - simpleChunk.type = SDLSpeechCapabilities.TEXT; - NSArray *ttsChunks = [NSMutableArray arrayWithObject:simpleChunk]; - - return [SDLRPCRequestFactory buildSpeakWithTTSChunks:ttsChunks correlationID:correlationID]; -} -//***** - - -+ (SDLSubscribeButton *)buildSubscribeButtonWithName:(SDLButtonName *)buttonName correlationID:(NSNumber *)correlationID { - SDLSubscribeButton *msg = [[SDLSubscribeButton alloc] init]; - msg.correlationID = correlationID; - msg.buttonName = buttonName; - - return msg; -} - -+ (SDLSubscribeVehicleData *)buildSubscribeVehicleDataWithGPS:(NSNumber *)gps speed:(NSNumber *)speed rpm:(NSNumber *)rpm fuelLevel:(NSNumber *)fuelLevel fuelLevelState:(NSNumber *)fuelLevelState instantFuelConsumption:(NSNumber *)instantFuelConsumption externalTemperature:(NSNumber *)externalTemperature prndl:(NSNumber *)prndl tirePressure:(NSNumber *)tirePressure odometer:(NSNumber *)odometer beltStatus:(NSNumber *)beltStatus bodyInformation:(NSNumber *)bodyInformation deviceStatus:(NSNumber *)deviceStatus driverBraking:(NSNumber *)driverBraking wiperStatus:(NSNumber *)wiperStatus headLampStatus:(NSNumber *)headLampStatus engineTorque:(NSNumber *)engineTorque accPedalPosition:(NSNumber *)accPedalPosition steeringWheelAngle:(NSNumber *)steeringWheelAngle correlationID:(NSNumber *)correlationID { - SDLSubscribeVehicleData *msg = [[SDLSubscribeVehicleData alloc] init]; - msg.gps = gps; - msg.speed = speed; - msg.rpm = rpm; - msg.fuelLevel = fuelLevel; - msg.fuelLevel_State = fuelLevelState; - msg.instantFuelConsumption = instantFuelConsumption; - msg.externalTemperature = externalTemperature; - msg.prndl = prndl; - msg.tirePressure = tirePressure; - msg.odometer = odometer; - msg.beltStatus = beltStatus; - msg.bodyInformation = bodyInformation; - msg.deviceStatus = deviceStatus; - msg.driverBraking = driverBraking; - msg.wiperStatus = wiperStatus; - msg.headLampStatus = headLampStatus; - msg.engineTorque = engineTorque; - msg.accPedalPosition = accPedalPosition; - msg.steeringWheelAngle = steeringWheelAngle; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLUnregisterAppInterface *)buildUnregisterAppInterfaceWithCorrelationID:(NSNumber *)correlationID { - SDLUnregisterAppInterface *msg = [[SDLUnregisterAppInterface alloc] init]; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLUnsubscribeButton *)buildUnsubscribeButtonWithName:(SDLButtonName *)buttonName correlationID:(NSNumber *)correlationID { - SDLUnsubscribeButton *msg = [[SDLUnsubscribeButton alloc] init]; - msg.buttonName = buttonName; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLUnsubscribeVehicleData *)buildUnsubscribeVehicleDataWithGPS:(NSNumber *)gps speed:(NSNumber *)speed rpm:(NSNumber *)rpm fuelLevel:(NSNumber *)fuelLevel fuelLevelState:(NSNumber *)fuelLevelState instantFuelConsumption:(NSNumber *)instantFuelConsumption externalTemperature:(NSNumber *)externalTemperature prndl:(NSNumber *)prndl tirePressure:(NSNumber *)tirePressure odometer:(NSNumber *)odometer beltStatus:(NSNumber *)beltStatus bodyInformation:(NSNumber *)bodyInformation deviceStatus:(NSNumber *)deviceStatus driverBraking:(NSNumber *)driverBraking wiperStatus:(NSNumber *)wiperStatus headLampStatus:(NSNumber *)headLampStatus engineTorque:(NSNumber *)engineTorque accPedalPosition:(NSNumber *)accPedalPosition steeringWheelAngle:(NSNumber *)steeringWheelAngle correlationID:(NSNumber *)correlationID { - SDLUnsubscribeVehicleData *msg = [[SDLUnsubscribeVehicleData alloc] init]; - msg.gps = gps; - msg.speed = speed; - msg.rpm = rpm; - msg.fuelLevel = fuelLevel; - msg.fuelLevel_State = fuelLevelState; - msg.instantFuelConsumption = instantFuelConsumption; - msg.externalTemperature = externalTemperature; - msg.prndl = prndl; - msg.tirePressure = tirePressure; - msg.odometer = odometer; - msg.beltStatus = beltStatus; - msg.bodyInformation = bodyInformation; - msg.deviceStatus = deviceStatus; - msg.driverBraking = driverBraking; - msg.wiperStatus = wiperStatus; - msg.headLampStatus = headLampStatus; - msg.engineTorque = engineTorque; - msg.accPedalPosition = accPedalPosition; - msg.steeringWheelAngle = steeringWheelAngle; - msg.correlationID = correlationID; - - return msg; -} - -+ (SDLUpdateTurnList *)buildUpdateTurnListWithTurnList:(NSMutableArray *)turnList softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID { - SDLUpdateTurnList *msg = [[SDLUpdateTurnList alloc] init]; - msg.turnList = [turnList mutableCopy]; - msg.softButtons = [softButtons mutableCopy]; - msg.correlationID = correlationID; - - return msg; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.h deleted file mode 100644 index 57bd500f4..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.h +++ /dev/null @@ -1,17 +0,0 @@ -// SDLRPCResponse.h -// - - -#import "SDLRPCMessage.h" - -@class SDLResult; - -@interface SDLRPCResponse : SDLRPCMessage { -} - -@property (strong) NSNumber *correlationID; -@property (strong) NSNumber *success; -@property (strong) SDLResult *resultCode; -@property (strong) NSString *info; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.m deleted file mode 100644 index 606781070..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.m +++ /dev/null @@ -1,89 +0,0 @@ -// SDLRPCResponse.m -// - - -#import "SDLRPCResponse.h" - -#import "SDLNames.h" -#import "SDLResult.h" - -@implementation SDLRPCResponse - -- (instancetype)initWithName:(NSString *)name { - self = [super initWithName:name]; - if (!self) { - return nil; - } - - messageType = NAMES_response; - [store setObject:function forKey:messageType]; - - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - self = [super initWithDictionary:dict]; - if (!self) { - return nil; - } - - messageType = NAMES_response; - [store setObject:function forKey:messageType]; - - return self; -} - -- (NSNumber *)correlationID { - return [function objectForKey:NAMES_correlationID]; -} - -- (void)setCorrelationID:(NSNumber *)corrID { - if (corrID != nil) { - [function setObject:corrID forKey:NAMES_correlationID]; - } else { - [function removeObjectForKey:NAMES_correlationID]; - } -} - -- (void)setSuccess:(NSNumber *)success { - if (success != nil) { - [parameters setObject:success forKey:NAMES_success]; - } else { - [parameters removeObjectForKey:NAMES_success]; - } -} - -- (NSNumber *)success { - return [parameters objectForKey:NAMES_success]; -} - -- (void)setResultCode:(SDLResult *)resultCode { - if (resultCode != nil) { - [parameters setObject:resultCode forKey:NAMES_resultCode]; - } else { - [parameters removeObjectForKey:NAMES_resultCode]; - } -} - -- (SDLResult *)resultCode { - NSObject *obj = [parameters objectForKey:NAMES_resultCode]; - if (obj == nil || [obj isKindOfClass:SDLResult.class]) { - return (SDLResult *)obj; - } else { - return [SDLResult valueOf:(NSString *)obj]; - } -} - -- (void)setInfo:(NSString *)info { - if (info != nil) { - [parameters setObject:info forKey:NAMES_info]; - } else { - [parameters removeObjectForKey:NAMES_info]; - } -} - -- (NSString *)info { - return [parameters objectForKey:NAMES_info]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.h deleted file mode 100644 index e6b3bcccb..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.h +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLRPCStruct.h - - -#import - -@interface SDLRPCStruct : NSObject { - NSMutableDictionary *store; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; -- (instancetype)init; - -- (NSMutableDictionary *)serializeAsDictionary:(Byte)version; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m deleted file mode 100644 index dd96fff5d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m +++ /dev/null @@ -1,89 +0,0 @@ -// -// SDLRPCStruct.m - - -#import "SDLRPCStruct.h" - -#import "SDLEnum.h" -#import "SDLNames.h" - - -@implementation SDLRPCStruct - -- (id)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super init]) { - if (dict != nil) { - store = dict; - } else { - store = [[NSMutableDictionary alloc] init]; - } - } - return self; -} - -- (id)init { - if (self = [super init]) { - store = [[NSMutableDictionary alloc] init]; - } - return self; -} - -- (NSMutableDictionary *)serializeDictionary:(NSDictionary *)dict version:(Byte)version { - NSMutableDictionary *ret = [NSMutableDictionary dictionaryWithCapacity:dict.count]; - for (NSString *key in [dict keyEnumerator]) { - NSObject *value = [dict objectForKey:key]; - if ([value isKindOfClass:SDLRPCStruct.class]) { - [ret setObject:[(SDLRPCStruct *)value serializeAsDictionary:version] forKey:key]; - } else if ([value isKindOfClass:NSDictionary.class]) { - [ret setObject:[self serializeDictionary:(NSDictionary *)value version:version] forKey:key]; - } else if ([value isKindOfClass:NSArray.class]) { - NSArray *arrayVal = (NSArray *)value; - - if (arrayVal.count > 0 && ([[arrayVal objectAtIndex:0] isKindOfClass:SDLRPCStruct.class])) { - NSMutableArray *serializedList = [NSMutableArray arrayWithCapacity:arrayVal.count]; - for (SDLRPCStruct *serializeable in arrayVal) { - [serializedList addObject:[serializeable serializeAsDictionary:version]]; - } - [ret setObject:serializedList forKey:key]; - } else if (arrayVal.count > 0 && ([[arrayVal objectAtIndex:0] isKindOfClass:SDLEnum.class])) { - NSMutableArray *serializedList = [NSMutableArray arrayWithCapacity:arrayVal.count]; - for (SDLEnum *anEnum in arrayVal) { - [serializedList addObject:anEnum.value]; - } - [ret setObject:serializedList forKey:key]; - } else { - [ret setObject:value forKey:key]; - } - } else if ([value isKindOfClass:SDLEnum.class]) { - [ret setObject:((SDLEnum *)value).value forKey:key]; - } else { - [ret setObject:value forKey:key]; - } - } - return ret; -} - -- (NSMutableDictionary *)serializeAsDictionary:(Byte)version { - if (version >= 2) { - NSString *messageType = [[store keyEnumerator] nextObject]; - NSMutableDictionary *function = [store objectForKey:messageType]; - if ([function isKindOfClass:NSMutableDictionary.class]) { - NSMutableDictionary *parameters = [function objectForKey:NAMES_parameters]; - return [self serializeDictionary:parameters version:version]; - } else { - return [self serializeDictionary:store version:version]; - } - } else { - return [self serializeDictionary:store version:version]; - } -} - -- (NSString *)description { - return [store description]; -} - -- (void)dealloc { - store = nil; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDID.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDID.h deleted file mode 100644 index 76df4a592..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDID.h +++ /dev/null @@ -1,52 +0,0 @@ -// SDLReadDID.h -// - - -#import "SDLRPCRequest.h" - -/** - * Non periodic vehicle data read request. This is an RPC to get diagnostics - * data from certain vehicle modules. DIDs of a certain module might differ from - * vehicle type to vehicle type - *

    - * Function Group: ProprietaryData - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLReadDID : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLReadDID object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLReadDID object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract An ID of the vehicle module - *
    Notes: Minvalue:0; Maxvalue:65535 - */ -@property (strong) NSNumber *ecuName; - -/** - * @abstract Raw data from vehicle data DID location(s) - *
    a Vector value representing raw data from vehicle - * data DID location(s) - *

    - * Notes: - *

      - *
    • Minvalue:0; Maxvalue:65535
    • - *
    • ArrayMin:0; ArrayMax:1000
    • - *
    - */ -@property (strong) NSMutableArray *didLocation; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDID.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDID.m deleted file mode 100644 index 198d992e0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDID.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLReadDID.m -// - - -#import "SDLReadDID.h" - -#import "SDLNames.h" - -@implementation SDLReadDID - -- (instancetype)init { - if (self = [super initWithName:NAMES_ReadDID]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setEcuName:(NSNumber *)ecuName { - if (ecuName != nil) { - [parameters setObject:ecuName forKey:NAMES_ecuName]; - } else { - [parameters removeObjectForKey:NAMES_ecuName]; - } -} - -- (NSNumber *)ecuName { - return [parameters objectForKey:NAMES_ecuName]; -} - -- (void)setDidLocation:(NSMutableArray *)didLocation { - if (didLocation != nil) { - [parameters setObject:didLocation forKey:NAMES_didLocation]; - } else { - [parameters removeObjectForKey:NAMES_didLocation]; - } -} - -- (NSMutableArray *)didLocation { - return [parameters objectForKey:NAMES_didLocation]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDIDResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDIDResponse.h deleted file mode 100644 index da1c81573..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDIDResponse.h +++ /dev/null @@ -1,20 +0,0 @@ -// SDLReadDIDResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Read DID Response is sent, when ReadDID has been called - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLReadDIDResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSMutableArray *didResult; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDIDResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDIDResponse.m deleted file mode 100644 index 08c5477f6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDIDResponse.m +++ /dev/null @@ -1,45 +0,0 @@ -// SDLReadDIDResponse.m -// - - -#import "SDLReadDIDResponse.h" - -#import "SDLDIDResult.h" -#import "SDLNames.h" - -@implementation SDLReadDIDResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_ReadDID]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setDidResult:(NSMutableArray *)didResult { - if (didResult != nil) { - [parameters setObject:didResult forKey:NAMES_didResult]; - } else { - [parameters removeObjectForKey:NAMES_didResult]; - } -} - -- (NSMutableArray *)didResult { - NSMutableArray *array = [parameters objectForKey:NAMES_didResult]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLDIDResult.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLDIDResult alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.h deleted file mode 100644 index be9c1a30b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.h +++ /dev/null @@ -1,217 +0,0 @@ -// SDLRegisterAppInterface.h -// - -#import "SDLRPCRequest.h" - -@class SDLDeviceInfo; -@class SDLLanguage; -@class SDLSyncMsgVersion; - - -/** - * Registers the application's interface with SDL®, declaring properties of - * the registration, including the messaging interface version, the app name, - * etc. The mobile application must establish its interface registration with - * SDL before any other interaction with SDL® can take place. The - * registration lasts until it is terminated either by the application calling - * the SDLUnregisterAppInterface method, or by SDL® - * sending an SDLOnAppInterfaceUnregistered notification, or - * by loss of the underlying transport connection, or closing of the underlying - * message transmission protocol RPC session - *

    - * Until the application receives its first SDLOnHMIStatus - * Notification, its HMI Status is assumed to be: - * SDLHMILevel=NONE, - * SDLAudioStreamingState - * =NOT_AUDIBLE, - * SDLSystemContext=MAIN - *

    - * All SDL® resources which the application creates or uses (e.g. Choice - * Sets, Command Menu, etc.) are associated with the application's interface - * registration. Therefore, when the interface registration ends, the SDL® - * resources associated with the application are disposed of. As a result, even - * though the application itself may continue to run on its host platform (e.g. - * mobile device) after the interface registration terminates, the application - * will not be able to use the SDL® HMI without first establishing a new - * interface registration and re-creating its required SDL® resources. That - * is, SDL® resources created by (or on behalf of) an application do not - * persist beyond the life-span of the interface registration - *

    - * Resources and settings whose lifespan is tied to the duration of an - * application's interface registration:
    - *

      - *
    • Choice Sets
    • - *
    • Command Menus (built by successive calls to SDLAddCommand - * )
    • - *
    • Media clock timer display value
    • - *
    • Media clock timer display value
    • - *
    • Media clock timer display value
    • - *
    - *

    - * The autoActivateID is used to grant an application the HMILevel and - * AudioStreamingState it had when it last disconnected - *

    - * Notes: The autoActivateID parameter, and associated behavior, is - * currently ignored by SDL® - *

    - * When first calling this method (i.e. first time within life cycle of mobile - * app), an autoActivateID should not be included. After successfully - * registering an interface, an autoActivateID is returned to the mobile - * application for it to use in subsequent connections. If the connection - * between SDL® and the mobile application is lost, such as the vehicle is - * turned off while the application is running, the autoActivateID can then be - * passed in another call to RegisterAppInterface to re-acquire - * SDLHMILevel=FULL - *

    - * If the application intends to stream audio it is important to indicate so via - * the isMediaApp parameter. When set to true, audio will reliably stream - * without any configuration required by the user. When not set, audio may - * stream, depending on what the user might have manually configured as a media - * source on SDL® - *

    - * There is no time limit for how long the autoActivateID is "valid" (i.e. would - * confer focus and opt-in) - *

    - * HMILevel is not defined before registering
    - *

    - * - * @since SDL 1.0 - * - * @see SDLUnregisterAppInterface SDLOnAppInterfaceUnregistered - */ -@interface SDLRegisterAppInterface : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLRegisterAppInterface object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLRegisterAppInterface object indicated by the dictionary parameter - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The version of the SDL interface - * - * Required - */ -@property (strong) SDLSyncMsgVersion *syncMsgVersion; - -/** - * @abstract The Mobile Application's Name, This name is displayed in the SDL Mobile Applications menu. It also serves as the unique identifier of the application for SmartDeviceLink - * - * @discussion - *
  • Needs to be unique over all applications.
  • - *
  • May not be empty.
  • - *
  • May not start with a new line character.
  • - *
  • May not interfere with any name or synonym of previously registered applications and any predefined blacklist of words (global commands).
  • - *
  • Needs to be unique over all applications. Applications with the same name will be rejected.
  • - * - * Required, Max length 100 chars - */ -@property (strong) NSString *appName; - -/** - * @abstract TTS string for VR recognition of the mobile application name. - * - * @discussion Meant to overcome any failing on speech engine in properly pronouncing / understanding app name. - *
  • Needs to be unique over all applications.
  • - *
  • May not be empty.
  • - *
  • May not start with a new line character.
  • - * - * Optional, Array of SDLTTSChunk, Array size 1 - 100 - * - * @since SDL 2.0 - * @see SDLTTSChunk - */ -@property (strong) NSMutableArray *ttsName; - -/** - * @abstract A String representing an abbreviated version of the mobile application's name (if necessary) that will be displayed on the media screen - * - * @discussion If not provided, the appName is used instead (and will be truncated if too long) - * - * Optional, Max length 100 chars - */ -@property (strong) NSString *ngnMediaScreenAppName; - -/** - * @abstract Defines a additional voice recognition commands - * - * @discussion May not interfere with any app name of previously registered applications and any predefined blacklist of words (global commands) - * - * Optional, Array of Strings, Array length 1 - 100, Max String length 40 - */ -@property (strong) NSMutableArray *vrSynonyms; - -/** - * @abstract Indicates if the application is a media or a non-media application. - * - * @discussion Only media applications will be able to stream audio to head units that is audible outside of the BT media source. - * - * Required, Boolean - */ -@property (strong) NSNumber *isMediaApplication; - -/** - * @abstract A Language enumeration indicating what language the application intends to use for user interaction (TTS and VR). - * - * @discussion If there is a mismatch with the head unit, the app will be able to change this registration with changeRegistration prior to app being brought into focus. - * - * Required - */ -@property (strong) SDLLanguage *languageDesired; - -/** - * @abstract An enumeration indicating what language the application intends to use for user interaction (Display). - * - * @discussion If there is a mismatch with the head unit, the app will be able to change this registration with changeRegistration prior to app being brought into focus. - * - * Required - * - * @since SDL 2.0 - */ -@property (strong) SDLLanguage *hmiDisplayLanguageDesired; - -/** - * @abstract A list of all applicable app types stating which classifications to be given to the app. - * - * Optional, Array of SDLAppHMIType, Array size 1 - 100 - * - * @since SDL 2.0 - * @see SDLAppHMIType - */ -@property (strong) NSMutableArray *appHMIType; - -/** - * @abstract ID used to uniquely identify current state of all app data that can persist through connection cycles (e.g. ignition cycles). - * - * @discussion This registered data (commands, submenus, choice sets, etc.) can be reestablished without needing to explicitly reregister each piece. If omitted, then the previous state of an app's commands, etc. will not be restored. - * - * When sending hashID, all RegisterAppInterface parameters should still be provided (e.g. ttsName, etc.). - * - * Optional, max length 100 chars - */ -@property (strong) NSString *hashID; - -/** - * @abstract Information about the connecting device - * - * Optional - */ -@property (strong) SDLDeviceInfo *deviceInfo; - -/** - * @abstract ID used to validate app with policy table entries - * - * Required, max length 100 - * - * @since SDL 2.0 - */ -@property (strong) NSString *appID; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.m deleted file mode 100644 index 318d5dfa7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.m +++ /dev/null @@ -1,211 +0,0 @@ -// SDLRegisterAppInterface.m -// - - -#import "SDLRegisterAppInterface.h" - -#import "SDLAppHMIType.h" -#import "SDLDeviceInfo.h" -#import "SDLLanguage.h" -#import "SDLNames.h" -#import "SDLSyncMsgVersion.h" -#import "SDLTTSChunk.h" - - -@implementation SDLRegisterAppInterface - -- (instancetype)init { - if (self = [super initWithName:NAMES_RegisterAppInterface]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setSyncMsgVersion:(SDLSyncMsgVersion *)syncMsgVersion { - if (syncMsgVersion != nil) { - [parameters setObject:syncMsgVersion forKey:NAMES_syncMsgVersion]; - } else { - [parameters removeObjectForKey:NAMES_syncMsgVersion]; - } -} - -- (SDLSyncMsgVersion *)syncMsgVersion { - NSObject *obj = [parameters objectForKey:NAMES_syncMsgVersion]; - if (obj == nil || [obj isKindOfClass:SDLSyncMsgVersion.class]) { - return (SDLSyncMsgVersion *)obj; - } else { - return [[SDLSyncMsgVersion alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setAppName:(NSString *)appName { - if (appName != nil) { - [parameters setObject:appName forKey:NAMES_appName]; - } else { - [parameters removeObjectForKey:NAMES_appName]; - } -} - -- (NSString *)appName { - return [parameters objectForKey:NAMES_appName]; -} - -- (void)setTtsName:(NSMutableArray *)ttsName { - if (ttsName != nil) { - [parameters setObject:ttsName forKey:NAMES_ttsName]; - } else { - [parameters removeObjectForKey:NAMES_ttsName]; - } -} - -- (NSMutableArray *)ttsName { - NSMutableArray *array = [parameters objectForKey:NAMES_ttsName]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setNgnMediaScreenAppName:(NSString *)ngnMediaScreenAppName { - if (ngnMediaScreenAppName != nil) { - [parameters setObject:ngnMediaScreenAppName forKey:NAMES_ngnMediaScreenAppName]; - } else { - [parameters removeObjectForKey:NAMES_ngnMediaScreenAppName]; - } -} - -- (NSString *)ngnMediaScreenAppName { - return [parameters objectForKey:NAMES_ngnMediaScreenAppName]; -} - -- (void)setVrSynonyms:(NSMutableArray *)vrSynonyms { - if (vrSynonyms != nil) { - [parameters setObject:vrSynonyms forKey:NAMES_vrSynonyms]; - } else { - [parameters removeObjectForKey:NAMES_vrSynonyms]; - } -} - -- (NSMutableArray *)vrSynonyms { - return [parameters objectForKey:NAMES_vrSynonyms]; -} - -- (void)setIsMediaApplication:(NSNumber *)isMediaApplication { - if (isMediaApplication != nil) { - [parameters setObject:isMediaApplication forKey:NAMES_isMediaApplication]; - } else { - [parameters removeObjectForKey:NAMES_isMediaApplication]; - } -} - -- (NSNumber *)isMediaApplication { - return [parameters objectForKey:NAMES_isMediaApplication]; -} - -- (void)setLanguageDesired:(SDLLanguage *)languageDesired { - if (languageDesired != nil) { - [parameters setObject:languageDesired forKey:NAMES_languageDesired]; - } else { - [parameters removeObjectForKey:NAMES_languageDesired]; - } -} - -- (SDLLanguage *)languageDesired { - NSObject *obj = [parameters objectForKey:NAMES_languageDesired]; - if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { - return (SDLLanguage *)obj; - } else { - return [SDLLanguage valueOf:(NSString *)obj]; - } -} - -- (void)setHmiDisplayLanguageDesired:(SDLLanguage *)hmiDisplayLanguageDesired { - if (hmiDisplayLanguageDesired != nil) { - [parameters setObject:hmiDisplayLanguageDesired forKey:NAMES_hmiDisplayLanguageDesired]; - } else { - [parameters removeObjectForKey:NAMES_hmiDisplayLanguageDesired]; - } -} - -- (SDLLanguage *)hmiDisplayLanguageDesired { - NSObject *obj = [parameters objectForKey:NAMES_hmiDisplayLanguageDesired]; - if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { - return (SDLLanguage *)obj; - } else { - return [SDLLanguage valueOf:(NSString *)obj]; - } -} - -- (void)setAppHMIType:(NSMutableArray *)appHMIType { - if (appHMIType != nil) { - [parameters setObject:appHMIType forKey:NAMES_appHMIType]; - } else { - [parameters removeObjectForKey:NAMES_appHMIType]; - } -} - -- (NSMutableArray *)appHMIType { - NSMutableArray *array = [parameters objectForKey:NAMES_appHMIType]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLAppHMIType.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSString *enumString in array) { - [newList addObject:[SDLAppHMIType valueOf:enumString]]; - } - return newList; - } -} - -- (void)setHashID:(NSString *)hashID { - if (hashID != nil) { - [parameters setObject:hashID forKey:NAMES_hashID]; - } else { - [parameters removeObjectForKey:NAMES_hashID]; - } -} - -- (NSString *)hashID { - return [parameters objectForKey:NAMES_hashID]; -} - -- (void)setDeviceInfo:(SDLDeviceInfo *)deviceInfo { - if (deviceInfo != nil) { - [parameters setObject:deviceInfo forKey:NAMES_deviceInfo]; - } else { - [parameters removeObjectForKey:NAMES_deviceInfo]; - } -} - -- (SDLDeviceInfo *)deviceInfo { - NSObject *obj = [parameters objectForKey:NAMES_deviceInfo]; - if (obj == nil || [obj isKindOfClass:SDLDeviceInfo.class]) { - return (SDLDeviceInfo *)obj; - } else { - return [[SDLDeviceInfo alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setAppID:(NSString *)appID { - if (appID != nil) { - [parameters setObject:appID forKey:NAMES_appID]; - } else { - [parameters removeObjectForKey:NAMES_appID]; - } -} - -- (NSString *)appID { - return [parameters objectForKey:NAMES_appID]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.h deleted file mode 100644 index 9bfc0a16a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.h +++ /dev/null @@ -1,166 +0,0 @@ -// SDLRegisterAppInterfaceResponse.h -// - - -#import "SDLRPCResponse.h" - -@class SDLLanguage; -@class SDLDisplayCapabilities; -@class SDLHMICapabilities; -@class SDLPresetBankCapabilities; -@class SDLSyncMsgVersion; -@class SDLVehicleType; - - -/** - * @abstract Register AppInterface Response is sent, when SDLRegisterAppInterface has been called - * - * Since SmartDeviceLink 1.0 - */ -@interface SDLRegisterAppInterfaceResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLRegisterAppInterfaceResponse object - */ -- (instancetype)init; - -/** - * Constructs a new SDLRegisterAppInterfaceResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @see SDLSyncMsgVersion - * - * Optional - */ -@property (strong) SDLSyncMsgVersion *syncMsgVersion; - -/** - * The currently active VR+TTS language on Sync. - * - * @see SDLLanguage - * - * Optional - */ -@property (strong) SDLLanguage *language; - -/** - * The currently active display language on Sync - * - * @see SDLLanguage - * @since SmartDeviceLink 2.0 - * - * Optional - */ -@property (strong) SDLLanguage *hmiDisplayLanguage; - -/** - * @see SDLDisplayCapabilities - * - * Optional - */ -@property (strong) SDLDisplayCapabilities *displayCapabilities; - -/** - * @see SDLButtonCapabilities - * - * Optional, Array of length 1 - 100, of SDLButtonCapabilities - */ -@property (strong) NSMutableArray *buttonCapabilities; - -/** - * If returned, the platform supports on-screen SoftButtons - * - * @see SDLSoftButtonCapabilities - * - * Optional, Array of length 1 - 100, of SDLSoftButtonCapabilities - */ -@property (strong) NSMutableArray *softButtonCapabilities; - -/** - * If returned, the platform supports custom on-screen Presets - * - * @see SDLPresetBankCapabilities - * - * Optional - */ -@property (strong) SDLPresetBankCapabilities *presetBankCapabilities; - -/** - * @see SDLHMIZoneCapabilities - * - * Optional, Array of length 1 - 100, of SDLHMIZoneCapabilities - */ -@property (strong) NSMutableArray *hmiZoneCapabilities; - -/** - * @see SDLSpeechCapabilities - * - * Optional, Array of length 1 - 100, of SDLSpeechCapabilities - */ -@property (strong) NSMutableArray *speechCapabilities; - -/** - * @see SDLPrerecordedSpeech - * - * Optional, Array of length 1 - 100, of SDLPrerecordedSpeech - */ -@property (strong) NSMutableArray *prerecordedSpeech; - -/** - * @see SDLVRCapabilities - * - * Optional, Array of length 1 - 100, of SDLVRCapabilities - */ -@property (strong) NSMutableArray *vrCapabilities; - -/** - * @see SDLAudioPassThruCapabilities - * - * Optional, Array of length 1 - 100, of SDLAudioPassThruCapabilities - */ -@property (strong) NSMutableArray *audioPassThruCapabilities; - -/** - * Specifies the vehicle's type - * - * @see SDLVehicleType - * - * Optional, Array of length 1 - 100, of SDLVehicleType - */ -@property (strong) SDLVehicleType *vehicleType; - -/** - * Specifies the white-list of supported diagnostic modes (0x00-0xFF) capable for DiagnosticMessage requests. If a mode outside this list is requested, it will be rejected. - * - * Optional, Array of length 1 - 100, Integer 0 - 255 - */ -@property (strong) NSMutableArray *supportedDiagModes; - -/** - * @see SDLHMICapabilities - * - * Optional - */ -@property (strong) SDLHMICapabilities *hmiCapabilities; - -/** - * The SmartDeviceLink version - * - * Optional, String max length 100 - */ -@property (strong) NSString *sdlVersion; - -/** - * The software version of the system that implements the SmartDeviceLink core - * - * Optional, String max length 100 - */ -@property (strong) NSString *systemSoftwareVersion; - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.m deleted file mode 100644 index 18356c34f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.m +++ /dev/null @@ -1,339 +0,0 @@ -// SDLRegisterAppInterfaceResponse.m -// - - -#import "SDLRegisterAppInterfaceResponse.h" - -#import "SDLAudioPassThruCapabilities.h" -#import "SDLButtonCapabilities.h" -#import "SDLDisplayCapabilities.h" -#import "SDLHMICapabilities.h" -#import "SDLHMIZoneCapabilities.h" -#import "SDLLanguage.h" -#import "SDLNames.h" -#import "SDLPrerecordedSpeech.h" -#import "SDLPresetBankCapabilities.h" -#import "SDLSoftButtonCapabilities.h" -#import "SDLSpeechCapabilities.h" -#import "SDLSyncMsgVersion.h" -#import "SDLVRCapabilities.h" -#import "SDLVehicleType.h" - - -@implementation SDLRegisterAppInterfaceResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_RegisterAppInterface]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setSyncMsgVersion:(SDLSyncMsgVersion *)syncMsgVersion { - if (syncMsgVersion != nil) { - [parameters setObject:syncMsgVersion forKey:NAMES_syncMsgVersion]; - } else { - [parameters removeObjectForKey:NAMES_syncMsgVersion]; - } -} - -- (SDLSyncMsgVersion *)syncMsgVersion { - NSObject *obj = [parameters objectForKey:NAMES_syncMsgVersion]; - if (obj == nil || [obj isKindOfClass:SDLSyncMsgVersion.class]) { - return (SDLSyncMsgVersion *)obj; - } else { - return [[SDLSyncMsgVersion alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setLanguage:(SDLLanguage *)language { - if (language != nil) { - [parameters setObject:language forKey:NAMES_language]; - } else { - [parameters removeObjectForKey:NAMES_language]; - } -} - -- (SDLLanguage *)language { - NSObject *obj = [parameters objectForKey:NAMES_language]; - if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { - return (SDLLanguage *)obj; - } else { - return [SDLLanguage valueOf:(NSString *)obj]; - } -} - -- (void)setHmiDisplayLanguage:(SDLLanguage *)hmiDisplayLanguage { - if (hmiDisplayLanguage != nil) { - [parameters setObject:hmiDisplayLanguage forKey:NAMES_hmiDisplayLanguage]; - } else { - [parameters removeObjectForKey:NAMES_hmiDisplayLanguage]; - } -} - -- (SDLLanguage *)hmiDisplayLanguage { - NSObject *obj = [parameters objectForKey:NAMES_hmiDisplayLanguage]; - if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { - return (SDLLanguage *)obj; - } else { - return [SDLLanguage valueOf:(NSString *)obj]; - } -} - -- (void)setDisplayCapabilities:(SDLDisplayCapabilities *)displayCapabilities { - if (displayCapabilities != nil) { - [parameters setObject:displayCapabilities forKey:NAMES_displayCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_displayCapabilities]; - } -} - -- (SDLDisplayCapabilities *)displayCapabilities { - NSObject *obj = [parameters objectForKey:NAMES_displayCapabilities]; - if (obj == nil || [obj isKindOfClass:SDLDisplayCapabilities.class]) { - return (SDLDisplayCapabilities *)obj; - } else { - return [[SDLDisplayCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setButtonCapabilities:(NSMutableArray *)buttonCapabilities { - if (buttonCapabilities != nil) { - [parameters setObject:buttonCapabilities forKey:NAMES_buttonCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_buttonCapabilities]; - } -} - -- (NSMutableArray *)buttonCapabilities { - NSMutableArray *array = [parameters objectForKey:NAMES_buttonCapabilities]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLButtonCapabilities.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLButtonCapabilities alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setSoftButtonCapabilities:(NSMutableArray *)softButtonCapabilities { - if (softButtonCapabilities != nil) { - [parameters setObject:softButtonCapabilities forKey:NAMES_softButtonCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_softButtonCapabilities]; - } -} - -- (NSMutableArray *)softButtonCapabilities { - NSMutableArray *array = [parameters objectForKey:NAMES_softButtonCapabilities]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButtonCapabilities.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLSoftButtonCapabilities alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setPresetBankCapabilities:(SDLPresetBankCapabilities *)presetBankCapabilities { - if (presetBankCapabilities != nil) { - [parameters setObject:presetBankCapabilities forKey:NAMES_presetBankCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_presetBankCapabilities]; - } -} - -- (SDLPresetBankCapabilities *)presetBankCapabilities { - NSObject *obj = [parameters objectForKey:NAMES_presetBankCapabilities]; - if (obj == nil || [obj isKindOfClass:SDLPresetBankCapabilities.class]) { - return (SDLPresetBankCapabilities *)obj; - } else { - return [[SDLPresetBankCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setHmiZoneCapabilities:(NSMutableArray *)hmiZoneCapabilities { - if (hmiZoneCapabilities != nil) { - [parameters setObject:hmiZoneCapabilities forKey:NAMES_hmiZoneCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_hmiZoneCapabilities]; - } -} - -- (NSMutableArray *)hmiZoneCapabilities { - NSMutableArray *array = [parameters objectForKey:NAMES_hmiZoneCapabilities]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLHMIZoneCapabilities.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSString *enumString in array) { - [newList addObject:[SDLHMIZoneCapabilities valueOf:enumString]]; - } - return newList; - } -} - -- (void)setSpeechCapabilities:(NSMutableArray *)speechCapabilities { - if (speechCapabilities != nil) { - [parameters setObject:speechCapabilities forKey:NAMES_speechCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_speechCapabilities]; - } -} - -- (NSMutableArray *)speechCapabilities { - NSMutableArray *array = [parameters objectForKey:NAMES_speechCapabilities]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSpeechCapabilities.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSString *enumString in array) { - [newList addObject:[SDLSpeechCapabilities valueOf:enumString]]; - } - return newList; - } -} - -- (void)setPrerecordedSpeech:(NSMutableArray *)prerecordedSpeech { - if (prerecordedSpeech != nil) { - [parameters setObject:prerecordedSpeech forKey:NAMES_prerecordedSpeech]; - } else { - [parameters removeObjectForKey:NAMES_prerecordedSpeech]; - } -} - -- (NSMutableArray *)prerecordedSpeech { - NSMutableArray *array = [parameters objectForKey:NAMES_prerecordedSpeech]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLPrerecordedSpeech.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSString *enumString in array) { - [newList addObject:[SDLPrerecordedSpeech valueOf:enumString]]; - } - return newList; - } -} - -- (void)setVrCapabilities:(NSMutableArray *)vrCapabilities { - if (vrCapabilities != nil) { - [parameters setObject:vrCapabilities forKey:NAMES_vrCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_vrCapabilities]; - } -} - -- (NSMutableArray *)vrCapabilities { - NSMutableArray *array = [parameters objectForKey:NAMES_vrCapabilities]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLVRCapabilities.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSString *enumString in array) { - [newList addObject:[SDLVRCapabilities valueOf:enumString]]; - } - return newList; - } -} - -- (void)setAudioPassThruCapabilities:(NSMutableArray *)audioPassThruCapabilities { - if (audioPassThruCapabilities != nil) { - [parameters setObject:audioPassThruCapabilities forKey:NAMES_audioPassThruCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_audioPassThruCapabilities]; - } -} - -- (NSMutableArray *)audioPassThruCapabilities { - NSMutableArray *array = [parameters objectForKey:NAMES_audioPassThruCapabilities]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLAudioPassThruCapabilities.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLAudioPassThruCapabilities alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setVehicleType:(SDLVehicleType *)vehicleType { - if (vehicleType != nil) { - [parameters setObject:vehicleType forKey:NAMES_vehicleType]; - } else { - [parameters removeObjectForKey:NAMES_vehicleType]; - } -} - -- (SDLVehicleType *)vehicleType { - NSObject *obj = [parameters objectForKey:NAMES_vehicleType]; - if (obj == nil || [obj isKindOfClass:SDLVehicleType.class]) { - return (SDLVehicleType *)obj; - } else { - return [[SDLVehicleType alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setSupportedDiagModes:(NSMutableArray *)supportedDiagModes { - if (supportedDiagModes != nil) { - [parameters setObject:supportedDiagModes forKey:NAMES_supportedDiagModes]; - } else { - [parameters removeObjectForKey:NAMES_supportedDiagModes]; - } -} - -- (NSMutableArray *)supportedDiagModes { - return [parameters objectForKey:NAMES_supportedDiagModes]; -} - -- (void)setHmiCapabilities:(SDLHMICapabilities *)hmiCapabilities { - if (hmiCapabilities != nil) { - [parameters setObject:hmiCapabilities forKey:NAMES_hmiCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_hmiCapabilities]; - } -} - -- (SDLHMICapabilities *)hmiCapabilities { - NSObject *obj = [parameters objectForKey:NAMES_hmiCapabilities]; - if (obj == nil || [obj isKindOfClass:[SDLHMICapabilities class]]) { - return (SDLHMICapabilities *)obj; - } else { - return [[SDLHMICapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setSdlVersion:(NSString *)sdlVersion { - if (sdlVersion != nil) { - parameters[NAMES_sdlVersion] = sdlVersion; - } else { - [parameters removeObjectForKey:NAMES_sdlVersion]; - } -} - -- (NSString *)sdlVersion { - return parameters[NAMES_sdlVersion]; -} - -- (void)setSystemSoftwareVersion:(NSString *)systemSoftwareVersion { - if (systemSoftwareVersion != nil) { - parameters[NAMES_systemSoftwareVersion] = systemSoftwareVersion; - } else { - [parameters removeObjectForKey:NAMES_systemSoftwareVersion]; - } -} - -- (NSString *)systemSoftwareVersion { - return parameters[NAMES_systemSoftwareVersion]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h deleted file mode 100644 index a8d631234..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h +++ /dev/null @@ -1,34 +0,0 @@ -// SDLRequestType.h -// - - -#import "SDLEnum.h" - -@interface SDLRequestType : SDLEnum { -} - -+ (SDLRequestType *)valueOf:(NSString *)value; -+ (NSArray *)values; - -+ (SDLRequestType *)HTTP; -+ (SDLRequestType *)FILE_RESUME; -+ (SDLRequestType *)AUTH_REQUEST; -+ (SDLRequestType *)AUTH_CHALLENGE; -+ (SDLRequestType *)AUTH_ACK; -+ (SDLRequestType *)PROPRIETARY; -+ (SDLRequestType *)QUERY_APPS; -+ (SDLRequestType *)LAUNCH_APP; -+ (SDLRequestType *)LOCK_SCREEN_ICON_URL; -+ (SDLRequestType *)TRAFFIC_MESSAGE_CHANNEL; -+ (SDLRequestType *)DRIVER_PROFILE; -+ (SDLRequestType *)VOICE_SEARCH; -+ (SDLRequestType *)NAVIGATION; -+ (SDLRequestType *)PHONE; -+ (SDLRequestType *)CLIMATE; -+ (SDLRequestType *)SETTINGS; -+ (SDLRequestType *)VEHICLE_DIAGNOSTICS; -+ (SDLRequestType *)EMERGENCY; -+ (SDLRequestType *)MEDIA; -+ (SDLRequestType *)FOTA; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.m deleted file mode 100644 index 7332b9843..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.m +++ /dev/null @@ -1,210 +0,0 @@ -// SDLRequestType.m -// - - -#import "SDLRequestType.h" - -SDLRequestType *SDLRequestType_HTTP = nil; -SDLRequestType *SDLRequestType_FILE_RESUME = nil; -SDLRequestType *SDLRequestType_AUTH_REQUEST = nil; -SDLRequestType *SDLRequestType_AUTH_CHALLENGE = nil; -SDLRequestType *SDLRequestType_AUTH_ACK = nil; -SDLRequestType *SDLRequestType_PROPRIETARY = nil; -SDLRequestType *SDLRequestType_QUERY_APPS = nil; -SDLRequestType *SDLRequestType_LAUNCH_APP = nil; -SDLRequestType *SDLRequestType_LOCK_SCREEN_ICON_URL = nil; -SDLRequestType *SDLRequestType_TRAFFIC_MESSAGE_CHANNEL = nil; -SDLRequestType *SDLRequestType_DRIVER_PROFILE = nil; -SDLRequestType *SDLRequestType_VOICE_SEARCH = nil; -SDLRequestType *SDLRequestType_NAVIGATION = nil; -SDLRequestType *SDLRequestType_PHONE = nil; -SDLRequestType *SDLRequestType_CLIMATE = nil; -SDLRequestType *SDLRequestType_SETTINGS = nil; -SDLRequestType *SDLRequestType_VEHICLE_DIAGNOSTICS = nil; -SDLRequestType *SDLRequestType_EMERGENCY = nil; -SDLRequestType *SDLRequestType_MEDIA = nil; -SDLRequestType *SDLRequestType_FOTA = nil; - -NSArray *SDLRequestType_values = nil; - - -@implementation SDLRequestType - -+ (SDLRequestType *)valueOf:(NSString *)value { - for (SDLRequestType *item in SDLRequestType.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLRequestType_values == nil) { - SDLRequestType_values = @[ - [SDLRequestType HTTP], - [SDLRequestType FILE_RESUME], - [SDLRequestType AUTH_REQUEST], - [SDLRequestType AUTH_CHALLENGE], - [SDLRequestType AUTH_ACK], - [SDLRequestType PROPRIETARY], - [SDLRequestType QUERY_APPS], - [SDLRequestType LAUNCH_APP], - [SDLRequestType LOCK_SCREEN_ICON_URL], - [SDLRequestType TRAFFIC_MESSAGE_CHANNEL], - [SDLRequestType DRIVER_PROFILE], - [SDLRequestType VOICE_SEARCH], - [SDLRequestType NAVIGATION], - [SDLRequestType PHONE], - [SDLRequestType CLIMATE], - [SDLRequestType SETTINGS], - [SDLRequestType VEHICLE_DIAGNOSTICS], - [SDLRequestType EMERGENCY], - [SDLRequestType MEDIA], - [SDLRequestType FOTA], - ]; - } - return SDLRequestType_values; -} - -+ (SDLRequestType *)HTTP { - if (SDLRequestType_HTTP == nil) { - SDLRequestType_HTTP = [[SDLRequestType alloc] initWithValue:@"HTTP"]; - } - return SDLRequestType_HTTP; -} - -+ (SDLRequestType *)FILE_RESUME { - if (SDLRequestType_FILE_RESUME == nil) { - SDLRequestType_FILE_RESUME = [[SDLRequestType alloc] initWithValue:@"FILE_RESUME"]; - } - return SDLRequestType_FILE_RESUME; -} - -+ (SDLRequestType *)AUTH_REQUEST { - if (SDLRequestType_AUTH_REQUEST == nil) { - SDLRequestType_AUTH_REQUEST = [[SDLRequestType alloc] initWithValue:@"AUTH_REQUEST"]; - } - return SDLRequestType_AUTH_REQUEST; -} - -+ (SDLRequestType *)AUTH_CHALLENGE { - if (SDLRequestType_AUTH_CHALLENGE == nil) { - SDLRequestType_AUTH_CHALLENGE = [[SDLRequestType alloc] initWithValue:@"AUTH_CHALLENGE"]; - } - return SDLRequestType_AUTH_CHALLENGE; -} - -+ (SDLRequestType *)AUTH_ACK { - if (SDLRequestType_AUTH_ACK == nil) { - SDLRequestType_AUTH_ACK = [[SDLRequestType alloc] initWithValue:@"AUTH_ACK"]; - } - return SDLRequestType_AUTH_ACK; -} - -+ (SDLRequestType *)PROPRIETARY { - if (SDLRequestType_PROPRIETARY == nil) { - SDLRequestType_PROPRIETARY = [[SDLRequestType alloc] initWithValue:@"PROPRIETARY"]; - } - return SDLRequestType_PROPRIETARY; -} - -+ (SDLRequestType *)QUERY_APPS { - if (SDLRequestType_QUERY_APPS == nil) { - SDLRequestType_QUERY_APPS = [[SDLRequestType alloc] initWithValue:@"QUERY_APPS"]; - } - return SDLRequestType_QUERY_APPS; -} - -+ (SDLRequestType *)LAUNCH_APP { - if (SDLRequestType_LAUNCH_APP == nil) { - SDLRequestType_LAUNCH_APP = [[SDLRequestType alloc] initWithValue:@"LAUNCH_APP"]; - } - return SDLRequestType_LAUNCH_APP; -} - -+ (SDLRequestType *)LOCK_SCREEN_ICON_URL { - if (SDLRequestType_LOCK_SCREEN_ICON_URL == nil) { - SDLRequestType_LOCK_SCREEN_ICON_URL = [[SDLRequestType alloc] initWithValue:@"LOCK_SCREEN_ICON_URL"]; - } - return SDLRequestType_LOCK_SCREEN_ICON_URL; -} - -+ (SDLRequestType *)TRAFFIC_MESSAGE_CHANNEL { - if (SDLRequestType_TRAFFIC_MESSAGE_CHANNEL == nil) { - SDLRequestType_TRAFFIC_MESSAGE_CHANNEL = [[SDLRequestType alloc] initWithValue:@"TRAFFIC_MESSAGE_CHANNEL"]; - } - return SDLRequestType_TRAFFIC_MESSAGE_CHANNEL; -} - -+ (SDLRequestType *)DRIVER_PROFILE { - if (SDLRequestType_DRIVER_PROFILE == nil) { - SDLRequestType_DRIVER_PROFILE = [[SDLRequestType alloc] initWithValue:@"DRIVER_PROFILE"]; - } - return SDLRequestType_DRIVER_PROFILE; -} - -+ (SDLRequestType *)VOICE_SEARCH { - if (SDLRequestType_VOICE_SEARCH == nil) { - SDLRequestType_VOICE_SEARCH = [[SDLRequestType alloc] initWithValue:@"VOICE_SEARCH"]; - } - return SDLRequestType_VOICE_SEARCH; -} - -+ (SDLRequestType *)NAVIGATION { - if (SDLRequestType_NAVIGATION == nil) { - SDLRequestType_NAVIGATION = [[SDLRequestType alloc] initWithValue:@"NAVIGATION"]; - } - return SDLRequestType_NAVIGATION; -} - -+ (SDLRequestType *)PHONE { - if (SDLRequestType_PHONE == nil) { - SDLRequestType_PHONE = [[SDLRequestType alloc] initWithValue:@"PHONE"]; - } - return SDLRequestType_PHONE; -} - -+ (SDLRequestType *)CLIMATE { - if (SDLRequestType_CLIMATE == nil) { - SDLRequestType_CLIMATE = [[SDLRequestType alloc] initWithValue:@"CLIMATE"]; - } - return SDLRequestType_CLIMATE; -} - -+ (SDLRequestType *)SETTINGS { - if (SDLRequestType_SETTINGS == nil) { - SDLRequestType_SETTINGS = [[SDLRequestType alloc] initWithValue:@"SETTINGS"]; - } - return SDLRequestType_SETTINGS; -} - -+ (SDLRequestType *)VEHICLE_DIAGNOSTICS { - if (SDLRequestType_VEHICLE_DIAGNOSTICS == nil) { - SDLRequestType_VEHICLE_DIAGNOSTICS = [[SDLRequestType alloc] initWithValue:@"VEHICLE_DIAGNOSTICS"]; - } - return SDLRequestType_VEHICLE_DIAGNOSTICS; -} - -+ (SDLRequestType *)EMERGENCY { - if (SDLRequestType_EMERGENCY == nil) { - SDLRequestType_EMERGENCY = [[SDLRequestType alloc] initWithValue:@"EMERGENCY"]; - } - return SDLRequestType_EMERGENCY; -} - -+ (SDLRequestType *)MEDIA { - if (SDLRequestType_MEDIA == nil) { - SDLRequestType_MEDIA = [[SDLRequestType alloc] initWithValue:@"MEDIA"]; - } - return SDLRequestType_MEDIA; -} - -+ (SDLRequestType *)FOTA { - if (SDLRequestType_FOTA == nil) { - SDLRequestType_FOTA = [[SDLRequestType alloc] initWithValue:@"FOTA"]; - } - return SDLRequestType_FOTA; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalProperties.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalProperties.h deleted file mode 100644 index f30b59a41..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalProperties.h +++ /dev/null @@ -1,43 +0,0 @@ -// SDLResetGlobalProperties.h -// - - -#import "SDLRPCRequest.h" - -/** - * Resets the passed global properties to their default values as defined by - * SDL - *

    - * The HELPPROMPT global property default value is generated by SDL consists of - * the first vrCommand of each Command Menu item defined at the moment PTT is - * pressed
    - * The TIMEOUTPROMPT global property default value is the same as the HELPPROMPT - * global property default value - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - * - * Since SmartDeviceLink 1.0 - * See SetGlobalProperties - */ -@interface SDLResetGlobalProperties : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLResetGlobalProperties object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLResetGlobalProperties object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract An array of one or more GlobalProperty enumeration elements - * indicating which global properties to reset to their default value - */ -@property (strong) NSMutableArray *properties; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalProperties.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalProperties.m deleted file mode 100644 index 350f96de0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalProperties.m +++ /dev/null @@ -1,45 +0,0 @@ -// SDLResetGlobalProperties.m -// - - -#import "SDLResetGlobalProperties.h" - -#import "SDLGlobalProperty.h" -#import "SDLNames.h" - -@implementation SDLResetGlobalProperties - -- (instancetype)init { - if (self = [super initWithName:NAMES_ResetGlobalProperties]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setProperties:(NSMutableArray *)properties { - if (properties != nil) { - [parameters setObject:properties forKey:NAMES_properties]; - } else { - [parameters removeObjectForKey:NAMES_properties]; - } -} - -- (NSMutableArray *)properties { - NSMutableArray *array = [parameters objectForKey:NAMES_properties]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLGlobalProperty.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSString *enumString in array) { - [newList addObject:[SDLGlobalProperty valueOf:enumString]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalPropertiesResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalPropertiesResponse.h deleted file mode 100644 index 5e576445a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalPropertiesResponse.h +++ /dev/null @@ -1,26 +0,0 @@ -// SDLResetGlobalPropertiesResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Reset Global Properties Response is sent, when SDLResetGlobalProperties has been called - * - * Since SmartDeviceLink 1.0 - */ -@interface SDLResetGlobalPropertiesResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLResetGlobalPropertiesResponse object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLResetGlobalPropertiesResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalPropertiesResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalPropertiesResponse.m deleted file mode 100644 index e43b61a40..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLResetGlobalPropertiesResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLResetGlobalPropertiesResponse.m -// - - -#import "SDLResetGlobalPropertiesResponse.h" - -#import "SDLNames.h" - -@implementation SDLResetGlobalPropertiesResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_ResetGlobalProperties]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLResult.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLResult.h deleted file mode 100644 index f11404c5a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLResult.h +++ /dev/null @@ -1,204 +0,0 @@ -// SDLResult.h -// - - -#import "SDLEnum.h" - -/** - * Defines the possible result codes returned by SDL to the application in a response to a requested operation - * - * @since SDL 1.0 - */ -@interface SDLResult : SDLEnum { -} - -/** - * @abstract get SDLResult according value string - * @param value The value of the string to get an object for - * @return SDLResult object - */ -+ (SDLResult *)valueOf:(NSString *)value; - -/** - @abstract declare an array to store all possible SDLResult values - @return the array - */ -+ (NSArray *)values; - -/** - * @abstract The request succeeded - */ -+ (SDLResult *)SUCCESS; - -/** - * @abstract Result code : Invalid Data - * - * @discussion The data sent is invalid. For example: - *
  • Invalid Json syntax
  • - *
  • Parameters out of bounds (number or enum range)
  • - *
  • Mandatory parameters not provided
  • - *
  • Parameter provided with wrong type
  • - *
  • Invalid characters
  • - *
  • Empty string
  • - */ -+ (SDLResult *)INVALID_DATA; - -+ (SDLResult *)CHAR_LIMIT_EXCEEDED; - -/** - * @abstract The request is not supported by SDL - */ -+ (SDLResult *)UNSUPPORTED_REQUEST; - -/** - * @abstract The system could not process the request because the necessary memory couldn't be allocated - */ -+ (SDLResult *)OUT_OF_MEMORY; - -/** - * @abstract There are too many requests pending (means that the response has not been delivered yet). - * - * @discussion There is a limit of 1000 pending requests at a time. - */ -+ (SDLResult *)TOO_MANY_PENDING_REQUESTS; - -/** - * @abstract One of the provided IDs is not valid. - * @discussion For example: - *
  • CorrelationID
  • - *
  • CommandID
  • - *
  • MenuID
  • - */ -+ (SDLResult *)INVALID_ID; - -/** - * @abstract The provided name or synonym is a duplicate of some already-defined name or synonym. - */ -+ (SDLResult *)DUPLICATE_NAME; - -/** - * There are already too many registered applications. - */ -+ (SDLResult *)TOO_MANY_APPLICATIONS; - -/** - * RegisterApplication has been called again, after a RegisterApplication was successful before. - */ -+ (SDLResult *)APPLICATION_REGISTERED_ALREADY; - -/** - * The Head Unit doesn't support the protocol that is requested by the mobile application. - */ -+ (SDLResult *)UNSUPPORTED_VERSION; - -/** - * The requested language is currently not supported. Might be because of a mismatch of the currently active language on the head unit and the requested language. - */ -+ (SDLResult *)WRONG_LANGUAGE; - -/** - * A command can not be executed because no application has been registered with RegisterApplication. - */ -+ (SDLResult *)APPLICATION_NOT_REGISTERED; - -/** - * The data may not be changed, because it is currently in use. For example when trying to delete a command set that is currently involved in an interaction. - */ -+ (SDLResult *)IN_USE; - -/** - * The user has turned off access to vehicle data, and it is globally unavailable to mobile applications. - */ -+ (SDLResult *)VEHICLE_DATA_NOT_ALLOWED; - -/** - * The requested vehicle data is not available on this vehicle or is not published. - */ -+ (SDLResult *)VEHICLE_DATA_NOT_AVAILABLE; - -/** - * The requested command was rejected, e.g. because mobile app is in background and cannot perform any HMI commands. Or an HMI command (e.g. Speak) is rejected because a higher priority HMI command (e.g. Alert) is playing. - */ -+ (SDLResult *)REJECTED; - -/** - * A command was aborted, for example due to user interaction (e.g. user pressed button). Or an HMI command (e.g. Speak) is aborted because a higher priority HMI command (e.g. Alert) was requested. - */ -+ (SDLResult *)ABORTED; - -/** - * A command was ignored, because the intended result is already in effect. For example, SetMediaClockTimer was used to pause the media clock although the clock is paused already. - */ -+ (SDLResult *)IGNORED; - -/** - * A button that was requested for subscription is not supported under the current system. - */ -+ (SDLResult *)UNSUPPORTED_RESOURCE; - -/** - * A specified file could not be found on the head unit. - */ -+ (SDLResult *)FILE_NOT_FOUND; - -/** - * Provided data is valid but something went wrong in the lower layers. - */ -+ (SDLResult *)GENERIC_ERROR; - -/** - * RPC is not authorized in local policy table. - */ -+ (SDLResult *)DISALLOWED; - -/** - * RPC is included in a functional group explicitly blocked by the user. - */ -+ (SDLResult *)USER_DISALLOWED; - -/** - * Overlay reached the maximum timeout and closed. - */ -+ (SDLResult *)TIMED_OUT; - -/** - * User selected to Cancel Route. - */ -+ (SDLResult *)CANCEL_ROUTE; - -/** - * The RPC (e.g. ReadDID) executed successfully but the data exceeded the platform maximum threshold and thus, only part of the data is available. - */ -+ (SDLResult *)TRUNCATED_DATA; - -/** - * The user interrupted the RPC (e.g. PerformAudioPassThru) and indicated to start over. Note, the app must issue the new RPC. - */ -+ (SDLResult *)RETRY; - -/** - * The RPC (e.g. SubscribeVehicleData) executed successfully but one or more items have a warning or failure. - */ -+ (SDLResult *)WARNINGS; - -/** - * The RPC (e.g. Slider) executed successfully and the user elected to save the current position / value. - */ -+ (SDLResult *)SAVED; - -/** - * The certificate provided during authentication is invalid. - */ -+ (SDLResult *)INVALID_CERT; - -/** - * The certificate provided during authentication is expired. - */ -+ (SDLResult *)EXPIRED_CERT; - -/** - * The provided hash ID does not match the hash of the current set of registered data or the core could not resume the previous data. - */ -+ (SDLResult *)RESUME_FAILED; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLResult.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLResult.m deleted file mode 100644 index 1ef2806c3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLResult.m +++ /dev/null @@ -1,327 +0,0 @@ -// SDLResult.m -// - - -#import "SDLResult.h" - -SDLResult *SDLResult_SUCCESS = nil; -SDLResult *SDLResult_INVALID_DATA = nil; -SDLResult *SDLResult_CHAR_LIMIT_EXCEEDED = nil; -SDLResult *SDLResult_UNSUPPORTED_REQUEST = nil; -SDLResult *SDLResult_OUT_OF_MEMORY = nil; -SDLResult *SDLResult_TOO_MANY_PENDING_REQUESTS = nil; -SDLResult *SDLResult_INVALID_ID = nil; -SDLResult *SDLResult_DUPLICATE_NAME = nil; -SDLResult *SDLResult_TOO_MANY_APPLICATIONS = nil; -SDLResult *SDLResult_APPLICATION_REGISTERED_ALREADY = nil; -SDLResult *SDLResult_UNSUPPORTED_VERSION = nil; -SDLResult *SDLResult_WRONG_LANGUAGE = nil; -SDLResult *SDLResult_APPLICATION_NOT_REGISTERED = nil; -SDLResult *SDLResult_IN_USE = nil; -SDLResult *SDLResult_VEHICLE_DATA_NOT_ALLOWED = nil; -SDLResult *SDLResult_VEHICLE_DATA_NOT_AVAILABLE = nil; -SDLResult *SDLResult_REJECTED = nil; -SDLResult *SDLResult_ABORTED = nil; -SDLResult *SDLResult_IGNORED = nil; -SDLResult *SDLResult_UNSUPPORTED_RESOURCE = nil; -SDLResult *SDLResult_FILE_NOT_FOUND = nil; -SDLResult *SDLResult_GENERIC_ERROR = nil; -SDLResult *SDLResult_DISALLOWED = nil; -SDLResult *SDLResult_USER_DISALLOWED = nil; -SDLResult *SDLResult_TIMED_OUT = nil; -SDLResult *SDLResult_CANCEL_ROUTE = nil; -SDLResult *SDLResult_TRUNCATED_DATA = nil; -SDLResult *SDLResult_RETRY = nil; -SDLResult *SDLResult_WARNINGS = nil; -SDLResult *SDLResult_SAVED = nil; -SDLResult *SDLResult_INVALID_CERT = nil; -SDLResult *SDLResult_EXPIRED_CERT = nil; -SDLResult *SDLResult_RESUME_FAILED = nil; - -NSArray *SDLResult_values = nil; - -@implementation SDLResult - -+ (SDLResult *)valueOf:(NSString *)value { - for (SDLResult *item in SDLResult.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLResult_values == nil) { - SDLResult_values = @[ - [SDLResult SUCCESS], - [SDLResult INVALID_DATA], - [SDLResult CHAR_LIMIT_EXCEEDED], - [SDLResult UNSUPPORTED_REQUEST], - [SDLResult OUT_OF_MEMORY], - [SDLResult TOO_MANY_PENDING_REQUESTS], - [SDLResult INVALID_ID], - [SDLResult DUPLICATE_NAME], - [SDLResult TOO_MANY_APPLICATIONS], - [SDLResult APPLICATION_REGISTERED_ALREADY], - [SDLResult UNSUPPORTED_VERSION], - [SDLResult WRONG_LANGUAGE], - [SDLResult APPLICATION_NOT_REGISTERED], - [SDLResult IN_USE], - [SDLResult VEHICLE_DATA_NOT_ALLOWED], - [SDLResult VEHICLE_DATA_NOT_AVAILABLE], - [SDLResult REJECTED], - [SDLResult ABORTED], - [SDLResult IGNORED], - [SDLResult UNSUPPORTED_RESOURCE], - [SDLResult FILE_NOT_FOUND], - [SDLResult GENERIC_ERROR], - [SDLResult DISALLOWED], - [SDLResult USER_DISALLOWED], - [SDLResult TIMED_OUT], - [SDLResult CANCEL_ROUTE], - [SDLResult TRUNCATED_DATA], - [SDLResult RETRY], - [SDLResult WARNINGS], - [SDLResult SAVED], - [SDLResult INVALID_CERT], - [SDLResult EXPIRED_CERT], - [SDLResult RESUME_FAILED], - ]; - } - return SDLResult_values; -} - -+ (SDLResult *)SUCCESS { - if (SDLResult_SUCCESS == nil) { - SDLResult_SUCCESS = [[SDLResult alloc] initWithValue:@"SUCCESS"]; - } - return SDLResult_SUCCESS; -} - -+ (SDLResult *)INVALID_DATA { - if (SDLResult_INVALID_DATA == nil) { - SDLResult_INVALID_DATA = [[SDLResult alloc] initWithValue:@"INVALID_DATA"]; - } - return SDLResult_INVALID_DATA; -} - -+ (SDLResult *)CHAR_LIMIT_EXCEEDED { - if (SDLResult_CHAR_LIMIT_EXCEEDED == nil) { - SDLResult_CHAR_LIMIT_EXCEEDED = [[SDLResult alloc] initWithValue:@"CHAR_LIMIT_EXCEEDED"]; - } - - return SDLResult_CHAR_LIMIT_EXCEEDED; -} - -+ (SDLResult *)UNSUPPORTED_REQUEST { - if (SDLResult_UNSUPPORTED_REQUEST == nil) { - SDLResult_UNSUPPORTED_REQUEST = [[SDLResult alloc] initWithValue:@"UNSUPPORTED_REQUEST"]; - } - return SDLResult_UNSUPPORTED_REQUEST; -} - -+ (SDLResult *)OUT_OF_MEMORY { - if (SDLResult_OUT_OF_MEMORY == nil) { - SDLResult_OUT_OF_MEMORY = [[SDLResult alloc] initWithValue:@"OUT_OF_MEMORY"]; - } - return SDLResult_OUT_OF_MEMORY; -} - -+ (SDLResult *)TOO_MANY_PENDING_REQUESTS { - if (SDLResult_TOO_MANY_PENDING_REQUESTS == nil) { - SDLResult_TOO_MANY_PENDING_REQUESTS = [[SDLResult alloc] initWithValue:@"TOO_MANY_PENDING_REQUESTS"]; - } - return SDLResult_TOO_MANY_PENDING_REQUESTS; -} - -+ (SDLResult *)INVALID_ID { - if (SDLResult_INVALID_ID == nil) { - SDLResult_INVALID_ID = [[SDLResult alloc] initWithValue:@"INVALID_ID"]; - } - return SDLResult_INVALID_ID; -} - -+ (SDLResult *)DUPLICATE_NAME { - if (SDLResult_DUPLICATE_NAME == nil) { - SDLResult_DUPLICATE_NAME = [[SDLResult alloc] initWithValue:@"DUPLICATE_NAME"]; - } - return SDLResult_DUPLICATE_NAME; -} - -+ (SDLResult *)TOO_MANY_APPLICATIONS { - if (SDLResult_TOO_MANY_APPLICATIONS == nil) { - SDLResult_TOO_MANY_APPLICATIONS = [[SDLResult alloc] initWithValue:@"TOO_MANY_APPLICATIONS"]; - } - return SDLResult_TOO_MANY_APPLICATIONS; -} - -+ (SDLResult *)APPLICATION_REGISTERED_ALREADY { - if (SDLResult_APPLICATION_REGISTERED_ALREADY == nil) { - SDLResult_APPLICATION_REGISTERED_ALREADY = [[SDLResult alloc] initWithValue:@"APPLICATION_REGISTERED_ALREADY"]; - } - return SDLResult_APPLICATION_REGISTERED_ALREADY; -} - -+ (SDLResult *)UNSUPPORTED_VERSION { - if (SDLResult_UNSUPPORTED_VERSION == nil) { - SDLResult_UNSUPPORTED_VERSION = [[SDLResult alloc] initWithValue:@"UNSUPPORTED_VERSION"]; - } - return SDLResult_UNSUPPORTED_VERSION; -} - -+ (SDLResult *)WRONG_LANGUAGE { - if (SDLResult_WRONG_LANGUAGE == nil) { - SDLResult_WRONG_LANGUAGE = [[SDLResult alloc] initWithValue:@"WRONG_LANGUAGE"]; - } - return SDLResult_WRONG_LANGUAGE; -} - -+ (SDLResult *)APPLICATION_NOT_REGISTERED { - if (SDLResult_APPLICATION_NOT_REGISTERED == nil) { - SDLResult_APPLICATION_NOT_REGISTERED = [[SDLResult alloc] initWithValue:@"APPLICATION_NOT_REGISTERED"]; - } - return SDLResult_APPLICATION_NOT_REGISTERED; -} - -+ (SDLResult *)IN_USE { - if (SDLResult_IN_USE == nil) { - SDLResult_IN_USE = [[SDLResult alloc] initWithValue:@"IN_USE"]; - } - return SDLResult_IN_USE; -} - -+ (SDLResult *)VEHICLE_DATA_NOT_ALLOWED { - if (SDLResult_VEHICLE_DATA_NOT_ALLOWED == nil) { - SDLResult_VEHICLE_DATA_NOT_ALLOWED = [[SDLResult alloc] initWithValue:@"VEHICLE_DATA_NOT_ALLOWED"]; - } - return SDLResult_VEHICLE_DATA_NOT_ALLOWED; -} - -+ (SDLResult *)VEHICLE_DATA_NOT_AVAILABLE { - if (SDLResult_VEHICLE_DATA_NOT_AVAILABLE == nil) { - SDLResult_VEHICLE_DATA_NOT_AVAILABLE = [[SDLResult alloc] initWithValue:@"VEHICLE_DATA_NOT_AVAILABLE"]; - } - return SDLResult_VEHICLE_DATA_NOT_AVAILABLE; -} - -+ (SDLResult *)REJECTED { - if (SDLResult_REJECTED == nil) { - SDLResult_REJECTED = [[SDLResult alloc] initWithValue:@"REJECTED"]; - } - return SDLResult_REJECTED; -} - -+ (SDLResult *)ABORTED { - if (SDLResult_ABORTED == nil) { - SDLResult_ABORTED = [[SDLResult alloc] initWithValue:@"ABORTED"]; - } - return SDLResult_ABORTED; -} - -+ (SDLResult *)IGNORED { - if (SDLResult_IGNORED == nil) { - SDLResult_IGNORED = [[SDLResult alloc] initWithValue:@"IGNORED"]; - } - return SDLResult_IGNORED; -} - -+ (SDLResult *)UNSUPPORTED_RESOURCE { - if (SDLResult_UNSUPPORTED_RESOURCE == nil) { - SDLResult_UNSUPPORTED_RESOURCE = [[SDLResult alloc] initWithValue:@"UNSUPPORTED_RESOURCE"]; - } - return SDLResult_UNSUPPORTED_RESOURCE; -} - -+ (SDLResult *)FILE_NOT_FOUND { - if (SDLResult_FILE_NOT_FOUND == nil) { - SDLResult_FILE_NOT_FOUND = [[SDLResult alloc] initWithValue:@"FILE_NOT_FOUND"]; - } - return SDLResult_FILE_NOT_FOUND; -} - -+ (SDLResult *)GENERIC_ERROR { - if (SDLResult_GENERIC_ERROR == nil) { - SDLResult_GENERIC_ERROR = [[SDLResult alloc] initWithValue:@"GENERIC_ERROR"]; - } - return SDLResult_GENERIC_ERROR; -} - -+ (SDLResult *)DISALLOWED { - if (SDLResult_DISALLOWED == nil) { - SDLResult_DISALLOWED = [[SDLResult alloc] initWithValue:@"DISALLOWED"]; - } - return SDLResult_DISALLOWED; -} - -+ (SDLResult *)USER_DISALLOWED { - if (SDLResult_USER_DISALLOWED == nil) { - SDLResult_USER_DISALLOWED = [[SDLResult alloc] initWithValue:@"USER_DISALLOWED"]; - } - return SDLResult_USER_DISALLOWED; -} - -+ (SDLResult *)TIMED_OUT { - if (SDLResult_TIMED_OUT == nil) { - SDLResult_TIMED_OUT = [[SDLResult alloc] initWithValue:@"TIMED_OUT"]; - } - return SDLResult_TIMED_OUT; -} - -+ (SDLResult *)CANCEL_ROUTE { - if (SDLResult_CANCEL_ROUTE == nil) { - SDLResult_CANCEL_ROUTE = [[SDLResult alloc] initWithValue:@"CANCEL_ROUTE"]; - } - return SDLResult_CANCEL_ROUTE; -} - -+ (SDLResult *)TRUNCATED_DATA { - if (SDLResult_TRUNCATED_DATA == nil) { - SDLResult_TRUNCATED_DATA = [[SDLResult alloc] initWithValue:@"TRUNCATED_DATA"]; - } - return SDLResult_TRUNCATED_DATA; -} - -+ (SDLResult *)RETRY { - if (SDLResult_RETRY == nil) { - SDLResult_RETRY = [[SDLResult alloc] initWithValue:@"RETRY"]; - } - return SDLResult_RETRY; -} - -+ (SDLResult *)WARNINGS { - if (SDLResult_WARNINGS == nil) { - SDLResult_WARNINGS = [[SDLResult alloc] initWithValue:@"WARNINGS"]; - } - return SDLResult_WARNINGS; -} - -+ (SDLResult *)SAVED { - if (SDLResult_SAVED == nil) { - SDLResult_SAVED = [[SDLResult alloc] initWithValue:@"SAVED"]; - } - return SDLResult_SAVED; -} - -+ (SDLResult *)INVALID_CERT { - if (SDLResult_INVALID_CERT == nil) { - SDLResult_INVALID_CERT = [[SDLResult alloc] initWithValue:@"INVALID_CERT"]; - } - return SDLResult_INVALID_CERT; -} - -+ (SDLResult *)EXPIRED_CERT { - if (SDLResult_EXPIRED_CERT == nil) { - SDLResult_EXPIRED_CERT = [[SDLResult alloc] initWithValue:@"EXPIRED_CERT"]; - } - return SDLResult_EXPIRED_CERT; -} - -+ (SDLResult *)RESUME_FAILED { - if (SDLResult_RESUME_FAILED == nil) { - SDLResult_RESUME_FAILED = [[SDLResult alloc] initWithValue:@"RESUME_FAILED"]; - } - return SDLResult_RESUME_FAILED; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSamplingRate.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSamplingRate.h deleted file mode 100644 index 28d3d35dc..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSamplingRate.h +++ /dev/null @@ -1,56 +0,0 @@ -// SDLSamplingRate.h -// - - -#import "SDLEnum.h" - -/** - * Describes different sampling rates for PerformAudioPassThru - * - * @since SDL 2.0 - */ -@interface SDLSamplingRate : SDLEnum { -} - -/** - * @abstract get SDLSamplingRate according value string - * - * @param value The value of the string to get an object for - * - * @return SDLSamplingRate object - */ -+ (SDLSamplingRate *)valueOf:(NSString *)value; - -/** - * @abstract declare an array to store all possible SDLSamplingRate values - * - * @return the array - */ -+ (NSArray *)values; - -/** - * @abstract Sampling rate of 8 kHz - * - * @return SamplingRate of *8KHZ* - */ -+ (SDLSamplingRate *)_8KHZ; -/** - * @abstract Sampling rate of 16 kHz - * - * @return SamplingRate of *16KHZ* - */ -+ (SDLSamplingRate *)_16KHZ; -/** - * @abstract Sampling rate of 22 kHz - * - * @return SamplingRate of *22KHZ* - */ -+ (SDLSamplingRate *)_22KHZ; -/** - * @abstract Sampling rate of 44 kHz - * - * @return SamplingRate of *44KHZ* - */ -+ (SDLSamplingRate *)_44KHZ; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSamplingRate.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSamplingRate.m deleted file mode 100644 index d0a36d730..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSamplingRate.m +++ /dev/null @@ -1,65 +0,0 @@ -// SDLSamplingRate.m -// - - -#import "SDLSamplingRate.h" - -SDLSamplingRate *SDLSamplingRate_8KHZ = nil; -SDLSamplingRate *SDLSamplingRate_16KHZ = nil; -SDLSamplingRate *SDLSamplingRate_22KHZ = nil; -SDLSamplingRate *SDLSamplingRate_44KHZ = nil; - -NSArray *SDLSamplingRate_values = nil; - -@implementation SDLSamplingRate - -+ (SDLSamplingRate *)valueOf:(NSString *)value { - for (SDLSamplingRate *item in SDLSamplingRate.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLSamplingRate_values == nil) { - SDLSamplingRate_values = @[ - SDLSamplingRate._8KHZ, - SDLSamplingRate._16KHZ, - SDLSamplingRate._22KHZ, - SDLSamplingRate._44KHZ, - ]; - } - return SDLSamplingRate_values; -} - -+ (SDLSamplingRate *)_8KHZ { - if (SDLSamplingRate_8KHZ == nil) { - SDLSamplingRate_8KHZ = [[SDLSamplingRate alloc] initWithValue:@"8KHZ"]; - } - return SDLSamplingRate_8KHZ; -} - -+ (SDLSamplingRate *)_16KHZ { - if (SDLSamplingRate_16KHZ == nil) { - SDLSamplingRate_16KHZ = [[SDLSamplingRate alloc] initWithValue:@"16KHZ"]; - } - return SDLSamplingRate_16KHZ; -} - -+ (SDLSamplingRate *)_22KHZ { - if (SDLSamplingRate_22KHZ == nil) { - SDLSamplingRate_22KHZ = [[SDLSamplingRate alloc] initWithValue:@"22KHZ"]; - } - return SDLSamplingRate_22KHZ; -} - -+ (SDLSamplingRate *)_44KHZ { - if (SDLSamplingRate_44KHZ == nil) { - SDLSamplingRate_44KHZ = [[SDLSamplingRate alloc] initWithValue:@"44KHZ"]; - } - return SDLSamplingRate_44KHZ; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.h deleted file mode 100644 index c60f6f1d6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.h +++ /dev/null @@ -1,19 +0,0 @@ -// SDLScreenParams.h -// - -#import "SDLRPCMessage.h" - -@class SDLImageResolution; -@class SDLTouchEventCapabilities; - - -@interface SDLScreenParams : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLImageResolution *resolution; -@property (strong) SDLTouchEventCapabilities *touchEventAvailable; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.m deleted file mode 100644 index 1debff302..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.m +++ /dev/null @@ -1,59 +0,0 @@ -// SDLScreenParams.m -// - -#import "SDLScreenParams.h" - -#import "SDLImageResolution.h" -#import "SDLNames.h" -#import "SDLTouchEventCapabilities.h" - - -@implementation SDLScreenParams - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setResolution:(SDLImageResolution *)resolution { - if (resolution != nil) { - [store setObject:resolution forKey:NAMES_resolution]; - } else { - [store removeObjectForKey:NAMES_resolution]; - } -} - -- (SDLImageResolution *)resolution { - NSObject *obj = [store objectForKey:NAMES_resolution]; - if (obj == nil || [obj isKindOfClass:SDLImageResolution.class]) { - return (SDLImageResolution *)obj; - } else { - return [[SDLImageResolution alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setTouchEventAvailable:(SDLTouchEventCapabilities *)touchEventAvailable { - if (touchEventAvailable != nil) { - [store setObject:touchEventAvailable forKey:NAMES_touchEventAvailable]; - } else { - [store removeObjectForKey:NAMES_touchEventAvailable]; - } -} - -- (SDLTouchEventCapabilities *)touchEventAvailable { - NSObject *obj = [store objectForKey:NAMES_touchEventAvailable]; - if (obj == nil || [obj isKindOfClass:SDLTouchEventCapabilities.class]) { - return (SDLTouchEventCapabilities *)obj; - } else { - return [[SDLTouchEventCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessage.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessage.h deleted file mode 100644 index 27e894221..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessage.h +++ /dev/null @@ -1,56 +0,0 @@ -// SDLScrollableMessage.h -// - - -#import "SDLRPCRequest.h" - -/** - * Creates a full screen overlay containing a large block of formatted text that - * can be scrolled with up to 8 SoftButtons defined - *

    - * Function Group: ScrollableMessage - *

    - * HMILevel needs to be FULL - *

    - */ -@interface SDLScrollableMessage : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLScrollableMessage object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLScrollableMessage object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A Body of text that can include newlines and tabs - * @discussion A String value representing the Body of text that can include - * newlines and tabs - *

    - * Notes: Maxlength=500 - */ -@property (strong) NSString *scrollableMessageBody; -/** - * @abstract Gets/Sets an App defined timeout. Indicates how long of a timeout in milliseconds from the - * last action - * @discussion An Integer value representing an App defined timeout in milliseconds - *

    - * Notes:Minval=0; Maxval=65535;Default=30000 - */ -@property (strong) NSNumber *timeout; -/** - * @abstract Gets/Sets App defined SoftButtons.If omitted on supported displays, only the - * system defined "Close" SoftButton will be displayed - * @discussion A Vector value representing App defined - * SoftButtons - *

    - * Notes: Minsize=0, Maxsize=8 - */ -@property (strong) NSMutableArray *softButtons; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessage.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessage.m deleted file mode 100644 index 5995e7874..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessage.m +++ /dev/null @@ -1,69 +0,0 @@ -// SDLScrollableMessage.m -// - - -#import "SDLScrollableMessage.h" - -#import "SDLNames.h" -#import "SDLSoftButton.h" - -@implementation SDLScrollableMessage - -- (instancetype)init { - if (self = [super initWithName:NAMES_ScrollableMessage]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setScrollableMessageBody:(NSString *)scrollableMessageBody { - if (scrollableMessageBody != nil) { - [parameters setObject:scrollableMessageBody forKey:NAMES_scrollableMessageBody]; - } else { - [parameters removeObjectForKey:NAMES_scrollableMessageBody]; - } -} - -- (NSString *)scrollableMessageBody { - return [parameters objectForKey:NAMES_scrollableMessageBody]; -} - -- (void)setTimeout:(NSNumber *)timeout { - if (timeout != nil) { - [parameters setObject:timeout forKey:NAMES_timeout]; - } else { - [parameters removeObjectForKey:NAMES_timeout]; - } -} - -- (NSNumber *)timeout { - return [parameters objectForKey:NAMES_timeout]; -} - -- (void)setSoftButtons:(NSMutableArray *)softButtons { - if (softButtons != nil) { - [parameters setObject:softButtons forKey:NAMES_softButtons]; - } else { - [parameters removeObjectForKey:NAMES_softButtons]; - } -} - -- (NSMutableArray *)softButtons { - NSMutableArray *array = [parameters objectForKey:NAMES_softButtons]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButton.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessageResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessageResponse.h deleted file mode 100644 index e75b157ec..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessageResponse.h +++ /dev/null @@ -1,26 +0,0 @@ -// SDLScrollableMessageResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Scrollable Message Response is sent, when SDLScrollableMessage has been called - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLScrollableMessageResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLScrollableMessageResponse object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLScrollableMessageResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessageResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessageResponse.m deleted file mode 100644 index 77473f07e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScrollableMessageResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLScrollableMessageResponse.m -// - - -#import "SDLScrollableMessageResponse.h" - -#import "SDLNames.h" - -@implementation SDLScrollableMessageResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_ScrollableMessage]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.h deleted file mode 100644 index cec60c422..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.h +++ /dev/null @@ -1,65 +0,0 @@ -// -// SDLSendLocation.h -// SmartDeviceLink - -#import - -#import "SDLImage.h" -#import "SDLRPCRequest.h" - - -@interface SDLSendLocation : SDLRPCRequest - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * The longitudinal coordinate of the location. - * - * Float, Required, -180.0 - 180.0 - */ -@property (copy, nonatomic) NSNumber *longitudeDegrees; - -/** - * The latitudinal coordinate of the location. - * - * Float, Required, -90.0 - 90.0 - */ -@property (copy, nonatomic) NSNumber *latitudeDegrees; - -/** - * Name / title of intended location - * - * Optional, Maxlength = 500 char - */ -@property (copy, nonatomic) NSString *locationName; - -/** - * Description of the intended location / establishment - * - * Optional, MaxLength = 500 char - */ -@property (copy, nonatomic) NSString *locationDescription; - -/** - * Array of lines for the location address - * - * Contains String, Optional, Max Array Length = 4, Max String Length = 500 - */ -@property (copy, nonatomic) NSArray *addressLines; - -/** - * Phone number of intended location / establishment - * - * Optional, Max Length = 500 - */ -@property (copy, nonatomic) NSString *phoneNumber; - -/** - * Image / icon of intended location - * - * Optional - */ -@property (strong, nonatomic) SDLImage *locationImage; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.m deleted file mode 100644 index 7bf1c5c70..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.m +++ /dev/null @@ -1,119 +0,0 @@ -// -// SDLSendLocation.m -// SmartDeviceLink - -#import "SDLSendLocation.h" - -#import "SDLNames.h" - - -@implementation SDLSendLocation - -- (instancetype)init { - self = [super initWithName:NAMES_SendLocation]; - if (!self) { - return nil; - } - - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - self = [super initWithDictionary:dict]; - if (!self) { - return nil; - } - - return self; -} - -- (void)setLongitudeDegrees:(NSNumber *)longitudeDegrees { - if (longitudeDegrees != nil) { - parameters[NAMES_longitudeDegrees] = longitudeDegrees; - } else { - [parameters removeObjectForKey:NAMES_longitudeDegrees]; - } -} - -- (NSNumber *)longitudeDegrees { - return parameters[NAMES_longitudeDegrees]; -} - -- (void)setLatitudeDegrees:(NSNumber *)latitudeDegrees { - if (latitudeDegrees != nil) { - parameters[NAMES_latitudeDegrees] = latitudeDegrees; - } else { - [parameters removeObjectForKey:NAMES_latitudeDegrees]; - } -} - -- (NSNumber *)latitudeDegrees { - return parameters[NAMES_latitudeDegrees]; -} - -- (void)setLocationName:(NSString *)locationName { - if (locationName != nil) { - parameters[NAMES_locationName] = locationName; - } else { - [parameters removeObjectForKey:NAMES_locationName]; - } -} - -- (NSString *)locationName { - return parameters[NAMES_locationName]; -} - -- (void)setAddressLines:(NSArray *)addressLines { - if (addressLines != nil) { - parameters[NAMES_addressLines] = addressLines; - } else { - [parameters removeObjectForKey:NAMES_addressLines]; - } -} - -- (NSString *)locationDescription { - return parameters[NAMES_locationDescription]; -} - -- (void)setLocationDescription:(NSString *)locationDescription { - if (locationDescription != nil) { - parameters[NAMES_locationDescription] = locationDescription; - } else { - [parameters removeObjectForKey:NAMES_locationDescription]; - } -} - -- (NSArray *)addressLines { - return parameters[NAMES_addressLines]; -} - -- (void)setPhoneNumber:(NSString *)phoneNumber { - if (phoneNumber != nil) { - parameters[NAMES_phoneNumber] = phoneNumber; - } else { - [parameters removeObjectForKey:NAMES_phoneNumber]; - } -} - -- (NSString *)phoneNumber { - return parameters[NAMES_phoneNumber]; -} - -- (void)setLocationImage:(SDLImage *)locationImage { - if (locationImage != nil) { - parameters[NAMES_locationImage] = locationImage; - } else { - [parameters removeObjectForKey:NAMES_locationImage]; - } -} - -- (SDLImage *)locationImage { - id obj = parameters[NAMES_locationImage]; - if (obj == nil || [obj isKindOfClass:[SDLImage class]]) { - return (SDLImage *)obj; - } else { - return [[SDLImage alloc] initWithDictionary:obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocationResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocationResponse.h deleted file mode 100644 index 39d8a4ba2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocationResponse.h +++ /dev/null @@ -1,12 +0,0 @@ -// -// SDLSendLocationResponse.h -// SmartDeviceLink-iOS - -#import "SDLRPCResponse.h" - -@interface SDLSendLocationResponse : SDLRPCResponse - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocationResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocationResponse.m deleted file mode 100644 index 83cde8118..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocationResponse.m +++ /dev/null @@ -1,30 +0,0 @@ -// -// SDLSendLocationResponse.m -// SmartDeviceLink-iOS - -#import "SDLSendLocationResponse.h" - -#import "SDLNames.h" - - -@implementation SDLSendLocationResponse - -- (instancetype)init { - self = [super initWithName:NAMES_SendLocation]; - if (!self) { - return nil; - } - - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - self = [super initWithDictionary:dict]; - if (!self) { - return nil; - } - - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIcon.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIcon.h deleted file mode 100644 index eee61deb5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIcon.h +++ /dev/null @@ -1,35 +0,0 @@ -// SDLSetAppIcon.h -// - - -#import "SDLRPCRequest.h" - -/** - * Used to set existing local file on SDL as the app's icon. Not supported on - * first generation SDL modules. - *

    - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLSetAppIcon : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLSetAppIcon object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLSetAppIcon object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A file reference name - * @discussion A String value representing a file reference name - *

    - * Notes: Maxlength=500 - */ -@property (strong) NSString *syncFileName; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIcon.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIcon.m deleted file mode 100644 index 717eeb023..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIcon.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLSetAppIcon.m -// - - -#import "SDLSetAppIcon.h" - -#import "SDLNames.h" - -@implementation SDLSetAppIcon - -- (instancetype)init { - if (self = [super initWithName:NAMES_SetAppIcon]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setSyncFileName:(NSString *)syncFileName { - if (syncFileName != nil) { - [parameters setObject:syncFileName forKey:NAMES_syncFileName]; - } else { - [parameters removeObjectForKey:NAMES_syncFileName]; - } -} - -- (NSString *)syncFileName { - return [parameters objectForKey:NAMES_syncFileName]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIconResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIconResponse.h deleted file mode 100644 index 31dd1e6c9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIconResponse.h +++ /dev/null @@ -1,16 +0,0 @@ -// SDLSetAppIconResponse.h -// - - -#import "SDLRPCResponse.h" - -/** SDLSetAppIconResponse is sent, when SDLSetAppIcon has been called. - * SinceSmartDeviceLink 2.0 - */ -@interface SDLSetAppIconResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIconResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIconResponse.m deleted file mode 100644 index 64c10600f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIconResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLSetAppIconResponse.m -// - - -#import "SDLSetAppIconResponse.h" - -#import "SDLNames.h" - -@implementation SDLSetAppIconResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_SetAppIcon]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayout.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayout.h deleted file mode 100644 index 15226a821..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayout.h +++ /dev/null @@ -1,35 +0,0 @@ -// SDLSetDisplayLayout.h -// - - -#import "SDLRPCRequest.h" - -/** - * Used to set an alternate display layout. If not sent, default screen for - * given platform will be shown - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLSetDisplayLayout : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLSetDisplayLayout object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLSetDisplayLayout object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A display layout. Predefined or dynamically created screen layout. - * Currently only predefined screen layouts are defined. Predefined layouts - * include: "ONSCREEN_PRESETS" Custom screen containing app-defined onscreen - * presets. Currently defined for GEN2 - */ -@property (strong) NSString *displayLayout; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayout.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayout.m deleted file mode 100644 index ed812f647..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayout.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLSetDisplayLayout.m -// - - -#import "SDLSetDisplayLayout.h" - -#import "SDLNames.h" - -@implementation SDLSetDisplayLayout - -- (instancetype)init { - if (self = [super initWithName:NAMES_SetDisplayLayout]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setDisplayLayout:(NSString *)displayLayout { - if (displayLayout != nil) { - [parameters setObject:displayLayout forKey:NAMES_displayLayout]; - } else { - [parameters removeObjectForKey:NAMES_displayLayout]; - } -} - -- (NSString *)displayLayout { - return [parameters objectForKey:NAMES_displayLayout]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.h deleted file mode 100644 index 7838ae0a6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.h +++ /dev/null @@ -1,29 +0,0 @@ -// SDLSetDisplayLayoutResponse.h -// - -#import "SDLRPCResponse.h" - -@class SDLDisplayCapabilities; -@class SDLPresetBankCapabilities; - - -/** - * Set Display Layout Response is sent, when SetDisplayLayout has been called - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLSetDisplayLayoutResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLSetDisplayLayoutResponse object - */ -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLDisplayCapabilities *displayCapabilities; -@property (strong) NSMutableArray *buttonCapabilities; -@property (strong) NSMutableArray *softButtonCapabilities; -@property (strong) SDLPresetBankCapabilities *presetBankCapabilities; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.m deleted file mode 100644 index fde37062e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.m +++ /dev/null @@ -1,104 +0,0 @@ -// SDLSetDisplayLayoutResponse.m -// - - -#import "SDLSetDisplayLayoutResponse.h" - -#import "SDLButtonCapabilities.h" -#import "SDLDisplayCapabilities.h" -#import "SDLNames.h" -#import "SDLPresetBankCapabilities.h" -#import "SDLSoftButtonCapabilities.h" - - -@implementation SDLSetDisplayLayoutResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_SetDisplayLayout]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setDisplayCapabilities:(SDLDisplayCapabilities *)displayCapabilities { - if (displayCapabilities != nil) { - [parameters setObject:displayCapabilities forKey:NAMES_displayCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_displayCapabilities]; - } -} - -- (SDLDisplayCapabilities *)displayCapabilities { - NSObject *obj = [parameters objectForKey:NAMES_displayCapabilities]; - if (obj == nil || [obj isKindOfClass:SDLDisplayCapabilities.class]) { - return (SDLDisplayCapabilities *)obj; - } else { - return [[SDLDisplayCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setButtonCapabilities:(NSMutableArray *)buttonCapabilities { - if (buttonCapabilities != nil) { - [parameters setObject:buttonCapabilities forKey:NAMES_buttonCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_buttonCapabilities]; - } -} - -- (NSMutableArray *)buttonCapabilities { - NSMutableArray *array = [parameters objectForKey:NAMES_buttonCapabilities]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLButtonCapabilities.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLButtonCapabilities alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setSoftButtonCapabilities:(NSMutableArray *)softButtonCapabilities { - if (softButtonCapabilities != nil) { - [parameters setObject:softButtonCapabilities forKey:NAMES_softButtonCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_softButtonCapabilities]; - } -} - -- (NSMutableArray *)softButtonCapabilities { - NSMutableArray *array = [parameters objectForKey:NAMES_softButtonCapabilities]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButtonCapabilities.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLSoftButtonCapabilities alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setPresetBankCapabilities:(SDLPresetBankCapabilities *)presetBankCapabilities { - if (presetBankCapabilities != nil) { - [parameters setObject:presetBankCapabilities forKey:NAMES_presetBankCapabilities]; - } else { - [parameters removeObjectForKey:NAMES_presetBankCapabilities]; - } -} - -- (SDLPresetBankCapabilities *)presetBankCapabilities { - NSObject *obj = [parameters objectForKey:NAMES_presetBankCapabilities]; - if (obj == nil || [obj isKindOfClass:SDLPresetBankCapabilities.class]) { - return (SDLPresetBankCapabilities *)obj; - } else { - return [[SDLPresetBankCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.h deleted file mode 100644 index 7ad36e8d5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.h +++ /dev/null @@ -1,96 +0,0 @@ -// SDLSetGlobalProperties.h -// - -#import "SDLRPCRequest.h" - -@class SDLImage; -@class SDLKeyboardProperties; - - -/** - * Sets value(s) for the specified global property(ies) - *

    - * Function Group: Base

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - * - * Since SmartDeviceLink 1.0 - * See SDLResetGlobalProperties - */ -@interface SDLSetGlobalProperties : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLSetGlobalProperties object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLSetGlobalProperties object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract Sets a Vector for Help Prompt that Array of one or more - * TTSChunk elements specifying the help prompt used in an interaction - * started by PTT - * @discussion helpPrompt - * a Vector of one or more TTSChunk elements - *

    - * Notes: - *

      - *
    • Array must have at least one element
    • - *
    • Only optional it timeoutPrompt has been specified
    • - *
    - */ -@property (strong) NSMutableArray *helpPrompt; -/** - * @abstract A Vector for Timeout Prompt representing Array of one or - * more TTSChunk elements specifying the help prompt used in an interaction - * started by PTT - * - */ -@property (strong) NSMutableArray *timeoutPrompt; -/** - * @abstract Sets a voice recognition Help Title - * - * @discussion A String value representing a voice recognition Help Title - *

    - * Notes:
    - *

      - *
    • If omitted on supported displays, the default SDL help - * title will be used
    • - *
    • If omitted and one or more vrHelp items are provided, the - * request will be rejected.
    • - *
    • String Maxlength = 500
    • - *
    - * @since SmartDeviceLink 2.0 - */ -@property (strong) NSString *vrHelpTitle; -/** - * @abstract Sets the items listed in the VR help screen used in an interaction - * started by PTT - * - * @discussion A Vector value representing items listed in the VR help screen - * used in an interaction started by PTT - *

    - * Notes:
    - *

      - *
    • If omitted on supported displays, the default SmartDeviceLink VR - * help / What Can I Say? screen will be used
    • - *
    • If the list of VR Help Items contains nonsequential - * positions (e.g. [1,2,4]), the RPC will be rejected
    • - *
    • If omitted and a vrHelpTitle is provided, the request - * will be rejected
    • - *
    • Array Minsize: = 1
    • - *
    • Array Maxsize = 100
    • - *
    - * @since SmartDeviceLink 2.0 - */ -@property (strong) NSMutableArray *vrHelp; -@property (strong) NSString *menuTitle; -@property (strong) SDLImage *menuIcon; -@property (strong) SDLKeyboardProperties *keyboardProperties; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.m deleted file mode 100644 index ba9749e3e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.m +++ /dev/null @@ -1,149 +0,0 @@ -// SDLSetGlobalProperties.m -// - - -#import "SDLSetGlobalProperties.h" - -#import "SDLImage.h" -#import "SDLKeyboardProperties.h" -#import "SDLNames.h" -#import "SDLTTSChunk.h" -#import "SDLVRHelpItem.h" - - -@implementation SDLSetGlobalProperties - -- (instancetype)init { - if (self = [super initWithName:NAMES_SetGlobalProperties]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setHelpPrompt:(NSMutableArray *)helpPrompt { - if (helpPrompt != nil) { - [parameters setObject:helpPrompt forKey:NAMES_helpPrompt]; - } else { - [parameters removeObjectForKey:NAMES_helpPrompt]; - } -} - -- (NSMutableArray *)helpPrompt { - NSMutableArray *array = [parameters objectForKey:NAMES_helpPrompt]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setTimeoutPrompt:(NSMutableArray *)timeoutPrompt { - if (timeoutPrompt != nil) { - [parameters setObject:timeoutPrompt forKey:NAMES_timeoutPrompt]; - } else { - [parameters removeObjectForKey:NAMES_timeoutPrompt]; - } -} - -- (NSMutableArray *)timeoutPrompt { - NSMutableArray *array = [parameters objectForKey:NAMES_timeoutPrompt]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setVrHelpTitle:(NSString *)vrHelpTitle { - if (vrHelpTitle != nil) { - [parameters setObject:vrHelpTitle forKey:NAMES_vrHelpTitle]; - } else { - [parameters removeObjectForKey:NAMES_vrHelpTitle]; - } -} - -- (NSString *)vrHelpTitle { - return [parameters objectForKey:NAMES_vrHelpTitle]; -} - -- (void)setVrHelp:(NSMutableArray *)vrHelp { - if (vrHelp != nil) { - [parameters setObject:vrHelp forKey:NAMES_vrHelp]; - } else { - [parameters removeObjectForKey:NAMES_vrHelp]; - } -} - -- (NSMutableArray *)vrHelp { - NSMutableArray *array = [parameters objectForKey:NAMES_vrHelp]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLVRHelpItem.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLVRHelpItem alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setMenuTitle:(NSString *)menuTitle { - if (menuTitle != nil) { - [parameters setObject:menuTitle forKey:NAMES_menuTitle]; - } else { - [parameters removeObjectForKey:NAMES_menuTitle]; - } -} - -- (NSString *)menuTitle { - return [parameters objectForKey:NAMES_menuTitle]; -} - -- (void)setMenuIcon:(SDLImage *)menuIcon { - if (menuIcon != nil) { - [parameters setObject:menuIcon forKey:NAMES_menuIcon]; - } else { - [parameters removeObjectForKey:NAMES_menuIcon]; - } -} - -- (SDLImage *)menuIcon { - NSObject *obj = [parameters objectForKey:NAMES_menuIcon]; - if (obj == nil || [obj isKindOfClass:SDLImage.class]) { - return (SDLImage *)obj; - } else { - return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setKeyboardProperties:(SDLKeyboardProperties *)keyboardProperties { - if (keyboardProperties != nil) { - [parameters setObject:keyboardProperties forKey:NAMES_keyboardProperties]; - } else { - [parameters removeObjectForKey:NAMES_keyboardProperties]; - } -} - -- (SDLKeyboardProperties *)keyboardProperties { - NSObject *obj = [parameters objectForKey:NAMES_keyboardProperties]; - if (obj == nil || [obj isKindOfClass:SDLKeyboardProperties.class]) { - return (SDLKeyboardProperties *)obj; - } else { - return [[SDLKeyboardProperties alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalPropertiesResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalPropertiesResponse.h deleted file mode 100644 index 131700137..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalPropertiesResponse.h +++ /dev/null @@ -1,26 +0,0 @@ -// SDLSetGlobalPropertiesResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Set Global Properties Response is sent, when SDLSetGlobalProperties has been called - * - * Since SmartDeviceLink 1.0 - */ -@interface SDLSetGlobalPropertiesResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLSetGlobalPropertiesResponse object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLSetGlobalPropertiesResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalPropertiesResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalPropertiesResponse.m deleted file mode 100644 index ff4db22c8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalPropertiesResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLSetGlobalPropertiesResponse.m -// - - -#import "SDLSetGlobalPropertiesResponse.h" - -#import "SDLNames.h" - -@implementation SDLSetGlobalPropertiesResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_SetGlobalProperties]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.h deleted file mode 100644 index 71de56b35..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.h +++ /dev/null @@ -1,68 +0,0 @@ -// SDLSetMediaClockTimer.h -// - -#import "SDLRPCRequest.h" - -@class SDLStartTime; -@class SDLUpdateMode; - - -/** - * Sets the media clock/timer value and the update method (e.g.count-up, - * count-down, etc.) - *

    - * Function Group: Base

    - * HMILevel needs to be FULL, LIMITIED or BACKGROUND - *

    - * - * Since SmartDeviceLink 1.0 - */ -@interface SDLSetMediaClockTimer : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLSetMediaClockTimer object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLSetMediaClockTimer object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A Start Time with specifying hour, minute, second values - * - * @discussion A startTime object with specifying hour, minute, second values - *

    - * Notes: - *

      - *
    • If "updateMode" is COUNTUP or COUNTDOWN, this parameter - * must be provided
    • - *
    • Will be ignored for PAUSE/RESUME and CLEAR
    • - *
    - */ -@property (strong) SDLStartTime *startTime; -/** - * @abstract An END time of type SDLStartTime, specifying hour, minute, second values - * - * @discussion An SDLStartTime object with specifying hour, minute, second values - */ -@property (strong) SDLStartTime *endTime; -/** - * @abstract The media clock/timer update mode (COUNTUP/COUNTDOWN/PAUSE/RESUME) - * - * @discussion a Enumeration value (COUNTUP/COUNTDOWN/PAUSE/RESUME) - *

    - * Notes: - *

      - *
    • When updateMode is PAUSE, RESUME or CLEAR, the start time value - * is ignored
    • - *
    • When updateMode is RESUME, the timer resumes counting from - * the timer's value when it was paused
    • - *
    - */ -@property (strong) SDLUpdateMode *updateMode; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.m deleted file mode 100644 index 325d0e347..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.m +++ /dev/null @@ -1,77 +0,0 @@ -// SDLSetMediaClockTimer.m -// - - -#import "SDLSetMediaClockTimer.h" - -#import "SDLNames.h" -#import "SDLStartTime.h" -#import "SDLUpdateMode.h" - - -@implementation SDLSetMediaClockTimer - -- (instancetype)init { - if (self = [super initWithName:NAMES_SetMediaClockTimer]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setStartTime:(SDLStartTime *)startTime { - if (startTime != nil) { - [parameters setObject:startTime forKey:NAMES_startTime]; - } else { - [parameters removeObjectForKey:NAMES_startTime]; - } -} - -- (SDLStartTime *)startTime { - NSObject *obj = [parameters objectForKey:NAMES_startTime]; - if (obj == nil || [obj isKindOfClass:SDLStartTime.class]) { - return (SDLStartTime *)obj; - } else { - return [[SDLStartTime alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setEndTime:(SDLStartTime *)endTime { - if (endTime != nil) { - [parameters setObject:endTime forKey:NAMES_endTime]; - } else { - [parameters removeObjectForKey:NAMES_endTime]; - } -} - -- (SDLStartTime *)endTime { - NSObject *obj = [parameters objectForKey:NAMES_endTime]; - if (obj == nil || [obj isKindOfClass:SDLStartTime.class]) { - return (SDLStartTime *)obj; - } else { - return [[SDLStartTime alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setUpdateMode:(SDLUpdateMode *)updateMode { - if (updateMode != nil) { - [parameters setObject:updateMode forKey:NAMES_updateMode]; - } else { - [parameters removeObjectForKey:NAMES_updateMode]; - } -} - -- (SDLUpdateMode *)updateMode { - NSObject *obj = [parameters objectForKey:NAMES_updateMode]; - if (obj == nil || [obj isKindOfClass:SDLUpdateMode.class]) { - return (SDLUpdateMode *)obj; - } else { - return [SDLUpdateMode valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimerResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimerResponse.h deleted file mode 100644 index ffa6a77ae..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimerResponse.h +++ /dev/null @@ -1,28 +0,0 @@ -// SDLSetMediaClockTimerResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Set Media Clock Timer Response is sent, when SDLSetMediaClockTimer has been called - * - * Since SmartDeviceLink 1.0 - */ -@interface SDLSetMediaClockTimerResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLSetMediaClockTimerResponse object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLSetMediaClockTimerResponse object indicated by the NSMutableDictionary - * parameter - *

    - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimerResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimerResponse.m deleted file mode 100644 index 098522fbd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimerResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLSetMediaClockTimerResponse.m -// - - -#import "SDLSetMediaClockTimerResponse.h" - -#import "SDLNames.h" - -@implementation SDLSetMediaClockTimerResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_SetMediaClockTimer]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.h deleted file mode 100644 index 20cf84a92..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.h +++ /dev/null @@ -1,233 +0,0 @@ -// SDLShow.h -// - -#import "SDLRPCRequest.h" - -@class SDLImage; -@class SDLTextAlignment; - - -/** - * Updates the application's display text area, regardless of whether or not - * this text area is visible to the user at the time of the request. The - * application's display text area remains unchanged until updated by subsequent - * calls to Show - *

    - * The content of the application's display text area is visible to the user - * when the application - * is FULL or LIMITED, and the - * SDLSystemContext=MAIN and no - * SDLAlert is in progress - *

    - * The Show operation cannot be used to create an animated scrolling screen. To - * avoid distracting the driver, Show commands cannot be issued more than once - * every 4 seconds. Requests made more frequently than this will be rejected - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - * - * Since SmartDeviceLink 1.0 - * See SDLAlert SDLSetMediaClockTimer - */ -@interface SDLShow : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLShow object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLShow object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The text displayed in a single-line display, or in the upper display - * line in a two-line display - * @discussion The String value representing the text displayed in a - * single-line display, or in the upper display line in a - * two-line display - *

    - * Notes: - *

      - *
    • If this parameter is omitted, the text of mainField1 does - * not change
    • - *
    • If this parameter is an empty string, the field will be - * cleared
    • - *
    - */ -@property (strong) NSString *mainField1; -/** - * @abstract The text displayed on the second display line of a two-line display - * - * @discussion The String value representing the text displayed on the second - * display line of a two-line display - *

    - * Notes: - *

      - *
    • If this parameter is omitted, the text of mainField2 does - * not change
    • - *
    • If this parameter is an empty string, the field will be - * cleared
    • - *
    • If provided and the display is a single-line display, the - * parameter is ignored
    • - *
    • Maxlength = 500
    • - *
    - */ -@property (strong) NSString *mainField2; -/** - * @abstract The text displayed on the first display line of the second page - * - * @discussion The String value representing the text displayed on the first - * display line of the second page - *

    - * Notes: - *

      - *
    • If this parameter is omitted, the text of mainField3 does - * not change
    • - *
    • If this parameter is an empty string, the field will be - * cleared
    • - *
    • If provided and the display is a single-line display, the - * parameter is ignored
    • - *
    • Maxlength = 500
    • - *
    - * @since SmartDeviceLink 2.0 - */ -@property (strong) NSString *mainField3; -/** - * @abstract The text displayed on the second display line of the second page - * - * @discussion The String value representing the text displayed on the second - * display line of the second page - *

    - * Notes: - *

      - *
    • If this parameter is omitted, the text of mainField4 does - * not change
    • - *
    • If this parameter is an empty string, the field will be - * cleared
    • - *
    • If provided and the display is a single-line display, the - * parameter is ignored
    • - *
    • Maxlength = 500
    • - *
    - * @since SmartDeviceLink 2.0 - */ -@property (strong) NSString *mainField4; -/** - * @abstract The alignment that Specifies how mainField1 and mainField2 text - * should be aligned on display - * - * @discussion An Enumeration value - *

    - * Notes: - *

      - *
    • Applies only to mainField1 and mainField2 provided on this - * call, not to what is already showing in display
    • - *
    • If this parameter is omitted, text in both mainField1 and - * mainField2 will be centered
    • - *
    • Has no effect with navigation display
    • - *
    - */ -@property (strong) SDLTextAlignment *alignment; -/** - * @abstract Text in the Status Bar - * - * @discussion A String representing the text you want to add in the Status - * Bar - *

    - * Notes: The status bar only exists on navigation - * displays
    - *

      - *
    • If this parameter is omitted, the status bar text will - * remain unchanged
    • - *
    • If this parameter is an empty string, the field will be - * cleared
    • - *
    • If provided and the display has no status bar, this - * parameter is ignored
    • - *
    - */ -@property (strong) NSString *statusBar; -/** - * @abstract This property is deprecated use SetMediaClockTimer instead. - *

    The value for the MediaClock field using a format described in the - * MediaClockFormat enumeration - * - * @discussion A String value for the MediaClock - *

    - * Notes:
    - *

      - *
    • Must be properly formatted as described in the - * MediaClockFormat enumeration
    • - *
    • If a value of five spaces is provided, this will clear - * that field on the display (i.e. the media clock timer field - * will not display anything)
    • - *
    - */ -@property (strong) NSString *mediaClock; -/** - * @abstract The text in the track field - * - * @discussion A String value disaplayed in the track field - *

    - * Notes:
    - *

      - *
    • If parameter is omitted, the track field remains unchanged
    • - *
    • If an empty string is provided, the field will be cleared
    • - *
    • This field is only valid for media applications on navigation displays
    • - *
    - */ -@property (strong) NSString *mediaTrack; -/** - * @abstract An image to be shown on supported displays - * - * @discussion The value representing the image shown on supported displays - *

    - * Notes: If omitted on supported displays, the displayed - * graphic shall not change
    - * @since SmartDeviceLink 2.0 - */ -@property (strong) SDLImage *graphic; -/** - * @abstract An image to be shown on supported displays - * - * @discussion The value representing the image shown on supported displays - *

    - * Notes: If omitted on supported displays, the displayed - * graphic shall not change
    - * @since SmartDeviceLink 2.0 - */ -@property (strong) SDLImage *secondaryGraphic; -/** - * @abstract The the Soft buttons defined by the App - * - * @discussion A Vector value represemting the Soft buttons defined by the - * App - *

    - * Notes:
    - *

      - *
    • If omitted on supported displays, the currently displayed - * SoftButton values will not change
    • - *
    • Array Minsize: 0
    • - *
    • Array Maxsize: 8
    • - *
    - * - * @since SmartDeviceLink 2.0 - */ -@property (strong) NSMutableArray *softButtons; -/** - * @abstract The Custom Presets defined by the App - * - * @discussion A Vector value representing the Custom Presets defined by the - * App - *

    - *

      - *
    • If omitted on supported displays, the presets will be shown as not defined
    • - *
    • Array Minsize: 0
    • - *
    • Array Maxsize: 6
    • - *
    - * @since SmartDeviceLink 2.0 - */ -@property (strong) NSMutableArray *customPresets; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.m deleted file mode 100644 index 933167159..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.m +++ /dev/null @@ -1,195 +0,0 @@ -// SDLShow.m -// - - -#import "SDLShow.h" - -#import "SDLImage.h" -#import "SDLNames.h" -#import "SDLSoftButton.h" -#import "SDLTextAlignment.h" - - -@implementation SDLShow - -- (instancetype)init { - if (self = [super initWithName:NAMES_Show]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setMainField1:(NSString *)mainField1 { - if (mainField1 != nil) { - [parameters setObject:mainField1 forKey:NAMES_mainField1]; - } else { - [parameters removeObjectForKey:NAMES_mainField1]; - } -} - -- (NSString *)mainField1 { - return [parameters objectForKey:NAMES_mainField1]; -} - -- (void)setMainField2:(NSString *)mainField2 { - if (mainField2 != nil) { - [parameters setObject:mainField2 forKey:NAMES_mainField2]; - } else { - [parameters removeObjectForKey:NAMES_mainField2]; - } -} - -- (NSString *)mainField2 { - return [parameters objectForKey:NAMES_mainField2]; -} - -- (void)setMainField3:(NSString *)mainField3 { - if (mainField3 != nil) { - [parameters setObject:mainField3 forKey:NAMES_mainField3]; - } else { - [parameters removeObjectForKey:NAMES_mainField3]; - } -} - -- (NSString *)mainField3 { - return [parameters objectForKey:NAMES_mainField3]; -} - -- (void)setMainField4:(NSString *)mainField4 { - if (mainField4 != nil) { - [parameters setObject:mainField4 forKey:NAMES_mainField4]; - } else { - [parameters removeObjectForKey:NAMES_mainField4]; - } -} - -- (NSString *)mainField4 { - return [parameters objectForKey:NAMES_mainField4]; -} - -- (void)setAlignment:(SDLTextAlignment *)alignment { - if (alignment != nil) { - [parameters setObject:alignment forKey:NAMES_alignment]; - } else { - [parameters removeObjectForKey:NAMES_alignment]; - } -} - -- (SDLTextAlignment *)alignment { - NSObject *obj = [parameters objectForKey:NAMES_alignment]; - if (obj == nil || [obj isKindOfClass:SDLTextAlignment.class]) { - return (SDLTextAlignment *)obj; - } else { - return [SDLTextAlignment valueOf:(NSString *)obj]; - } -} - -- (void)setStatusBar:(NSString *)statusBar { - if (statusBar != nil) { - [parameters setObject:statusBar forKey:NAMES_statusBar]; - } else { - [parameters removeObjectForKey:NAMES_statusBar]; - } -} - -- (NSString *)statusBar { - return [parameters objectForKey:NAMES_statusBar]; -} - -- (void)setMediaClock:(NSString *)mediaClock { - if (mediaClock != nil) { - [parameters setObject:mediaClock forKey:NAMES_mediaClock]; - } else { - [parameters removeObjectForKey:NAMES_mediaClock]; - } -} - -- (NSString *)mediaClock { - return [parameters objectForKey:NAMES_mediaClock]; -} - -- (void)setMediaTrack:(NSString *)mediaTrack { - if (mediaTrack != nil) { - [parameters setObject:mediaTrack forKey:NAMES_mediaTrack]; - } else { - [parameters removeObjectForKey:NAMES_mediaTrack]; - } -} - -- (NSString *)mediaTrack { - return [parameters objectForKey:NAMES_mediaTrack]; -} - -- (void)setGraphic:(SDLImage *)graphic { - if (graphic != nil) { - [parameters setObject:graphic forKey:NAMES_graphic]; - } else { - [parameters removeObjectForKey:NAMES_graphic]; - } -} - -- (SDLImage *)graphic { - NSObject *obj = [parameters objectForKey:NAMES_graphic]; - if (obj == nil || [obj isKindOfClass:SDLImage.class]) { - return (SDLImage *)obj; - } else { - return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setSecondaryGraphic:(SDLImage *)secondaryGraphic { - if (secondaryGraphic != nil) { - [parameters setObject:secondaryGraphic forKey:NAMES_secondaryGraphic]; - } else { - [parameters removeObjectForKey:NAMES_secondaryGraphic]; - } -} - -- (SDLImage *)secondaryGraphic { - NSObject *obj = [parameters objectForKey:NAMES_secondaryGraphic]; - if (obj == nil || [obj isKindOfClass:SDLImage.class]) { - return (SDLImage *)obj; - } else { - return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setSoftButtons:(NSMutableArray *)softButtons { - if (softButtons != nil) { - [parameters setObject:softButtons forKey:NAMES_softButtons]; - } else { - [parameters removeObjectForKey:NAMES_softButtons]; - } -} - -- (NSMutableArray *)softButtons { - NSMutableArray *array = [parameters objectForKey:NAMES_softButtons]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButton.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setCustomPresets:(NSMutableArray *)customPresets { - if (customPresets != nil) { - [parameters setObject:customPresets forKey:NAMES_customPresets]; - } else { - [parameters removeObjectForKey:NAMES_customPresets]; - } -} - -- (NSMutableArray *)customPresets { - return [parameters objectForKey:NAMES_customPresets]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h deleted file mode 100644 index ae5dda108..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h +++ /dev/null @@ -1,33 +0,0 @@ -// SDLShowConstantTBT.h -// - -#import "SDLRPCRequest.h" - -@class SDLImage; - - -/** This RPC is used to update the user with navigation information
    - * for the constantly shown screen (base screen),but also for the
    - * alert type screen. - *

    - * @since SmartDeviceLink 2.0 - */ -@interface SDLShowConstantTBT : SDLRPCRequest { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSString *navigationText1; -@property (strong) NSString *navigationText2; -@property (strong) NSString *eta; -@property (strong) NSString *timeToDestination; -@property (strong) NSString *totalDistance; -@property (strong) SDLImage *turnIcon; -@property (strong) SDLImage *nextTurnIcon; -@property (strong) NSNumber *distanceToManeuver; -@property (strong) NSNumber *distanceToManeuverScale; -@property (strong) NSNumber *maneuverComplete; -@property (strong) NSMutableArray *softButtons; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.m deleted file mode 100644 index c3f87f071..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.m +++ /dev/null @@ -1,177 +0,0 @@ -// SDLShowConstantTBT.m -// - - -#import "SDLShowConstantTBT.h" - -#import "SDLImage.h" -#import "SDLNames.h" -#import "SDLSoftButton.h" - - -@implementation SDLShowConstantTBT - -- (instancetype)init { - if (self = [super initWithName:NAMES_ShowConstantTBT]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setNavigationText1:(NSString *)navigationText1 { - if (navigationText1 != nil) { - [parameters setObject:navigationText1 forKey:NAMES_navigationText1]; - } else { - [parameters removeObjectForKey:NAMES_navigationText1]; - } -} - -- (NSString *)navigationText1 { - return [parameters objectForKey:NAMES_navigationText1]; -} - -- (void)setNavigationText2:(NSString *)navigationText2 { - if (navigationText2 != nil) { - [parameters setObject:navigationText2 forKey:NAMES_navigationText2]; - } else { - [parameters removeObjectForKey:NAMES_navigationText2]; - } -} - -- (NSString *)navigationText2 { - return [parameters objectForKey:NAMES_navigationText2]; -} - -- (void)setEta:(NSString *)eta { - if (eta != nil) { - [parameters setObject:eta forKey:NAMES_eta]; - } else { - [parameters removeObjectForKey:NAMES_eta]; - } -} - -- (NSString *)eta { - return [parameters objectForKey:NAMES_eta]; -} - -- (void)setTimeToDestination:(NSString *)timeToDestination { - if (timeToDestination != nil) { - [parameters setObject:timeToDestination forKey:NAMES_timeToDestination]; - } else { - [parameters removeObjectForKey:NAMES_timeToDestination]; - } -} - -- (NSString *)timeToDestination { - return [parameters objectForKey:NAMES_timeToDestination]; -} - -- (void)setTotalDistance:(NSString *)totalDistance { - if (totalDistance != nil) { - [parameters setObject:totalDistance forKey:NAMES_totalDistance]; - } else { - [parameters removeObjectForKey:NAMES_totalDistance]; - } -} - -- (NSString *)totalDistance { - return [parameters objectForKey:NAMES_totalDistance]; -} - -- (void)setTurnIcon:(SDLImage *)turnIcon { - if (turnIcon != nil) { - [parameters setObject:turnIcon forKey:NAMES_turnIcon]; - } else { - [parameters removeObjectForKey:NAMES_turnIcon]; - } -} - -- (SDLImage *)turnIcon { - NSObject *obj = [parameters objectForKey:NAMES_turnIcon]; - if (obj == nil || [obj isKindOfClass:SDLImage.class]) { - return (SDLImage *)obj; - } else { - return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setNextTurnIcon:(SDLImage *)nextTurnIcon { - if (nextTurnIcon != nil) { - [parameters setObject:nextTurnIcon forKey:NAMES_nextTurnIcon]; - } else { - [parameters removeObjectForKey:NAMES_nextTurnIcon]; - } -} - -- (SDLImage *)nextTurnIcon { - NSObject *obj = [parameters objectForKey:NAMES_nextTurnIcon]; - if (obj == nil || [obj isKindOfClass:SDLImage.class]) { - return (SDLImage *)obj; - } else { - return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setDistanceToManeuver:(NSNumber *)distanceToManeuver { - if (distanceToManeuver != nil) { - [parameters setObject:distanceToManeuver forKey:NAMES_distanceToManeuver]; - } else { - [parameters removeObjectForKey:NAMES_distanceToManeuver]; - } -} - -- (NSNumber *)distanceToManeuver { - return [parameters objectForKey:NAMES_distanceToManeuver]; -} - -- (void)setDistanceToManeuverScale:(NSNumber *)distanceToManeuverScale { - if (distanceToManeuverScale != nil) { - [parameters setObject:distanceToManeuverScale forKey:NAMES_distanceToManeuverScale]; - } else { - [parameters removeObjectForKey:NAMES_distanceToManeuverScale]; - } -} - -- (NSNumber *)distanceToManeuverScale { - return [parameters objectForKey:NAMES_distanceToManeuverScale]; -} - -- (void)setManeuverComplete:(NSNumber *)maneuverComplete { - if (maneuverComplete != nil) { - [parameters setObject:maneuverComplete forKey:NAMES_maneuverComplete]; - } else { - [parameters removeObjectForKey:NAMES_maneuverComplete]; - } -} - -- (NSNumber *)maneuverComplete { - return [parameters objectForKey:NAMES_maneuverComplete]; -} - -- (void)setSoftButtons:(NSMutableArray *)softButtons { - if (softButtons != nil) { - [parameters setObject:softButtons forKey:NAMES_softButtons]; - } else { - [parameters removeObjectForKey:NAMES_softButtons]; - } -} - -- (NSMutableArray *)softButtons { - NSMutableArray *array = [parameters objectForKey:NAMES_softButtons]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButton.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBTResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBTResponse.h deleted file mode 100644 index 8396f17a1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBTResponse.h +++ /dev/null @@ -1,16 +0,0 @@ -// SDLShowConstantTBTResponse.h -// - - -#import "SDLRPCResponse.h" - -/** SDLShowConstantTBTResponse is sent, when SDLShowConstantTBT has been called. - * SinceSmartDeviceLink 2.0 - */ -@interface SDLShowConstantTBTResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBTResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBTResponse.m deleted file mode 100644 index 995b16e1c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBTResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLShowConstantTBTResponse.m -// - - -#import "SDLShowConstantTBTResponse.h" - -#import "SDLNames.h" - -@implementation SDLShowConstantTBTResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_ShowConstantTBT]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowResponse.h deleted file mode 100644 index b0d558633..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowResponse.h +++ /dev/null @@ -1,26 +0,0 @@ -// SDLShowResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Show Response is sent, when Show has been called - * - * Since SmartDeviceLink 1.0 - */ -@interface SDLShowResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLShowResponse object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLShowResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowResponse.m deleted file mode 100644 index 1ebb5dea9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLShowResponse.m -// - - -#import "SDLShowResponse.h" - -#import "SDLNames.h" - -@implementation SDLShowResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_Show]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.h deleted file mode 100644 index 897ba1bf8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.h +++ /dev/null @@ -1,33 +0,0 @@ -// SDLSingleTireStatus.h -// - -#import "SDLRPCMessage.h" - -@class SDLComponentVolumeStatus; - - -/** - * Tire pressure status of a single tire. - * - * @since SmartDeviceLink 2.0 - */ -@interface SDLSingleTireStatus : SDLRPCStruct { -} - -/** - * @abstract Constructs a newly allocated SDLSingleTireStatus object - */ -- (instancetype)init; - -/** - * @abstract Constructs a newly allocated SDLSingleTireStatus object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The volume status of a single tire - */ -@property (strong) SDLComponentVolumeStatus *status; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.m deleted file mode 100644 index 87826f32b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.m +++ /dev/null @@ -1,41 +0,0 @@ -// SDLSingleTireStatus.m -// - -#import "SDLSingleTireStatus.h" - -#import "SDLComponentVolumeStatus.h" -#import "SDLNames.h" - - -@implementation SDLSingleTireStatus - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setStatus:(SDLComponentVolumeStatus *)status { - if (status != nil) { - [store setObject:status forKey:NAMES_status]; - } else { - [store removeObjectForKey:NAMES_status]; - } -} - -- (SDLComponentVolumeStatus *)status { - NSObject *obj = [store objectForKey:NAMES_status]; - if (obj == nil || [obj isKindOfClass:SDLComponentVolumeStatus.class]) { - return (SDLComponentVolumeStatus *)obj; - } else { - return [SDLComponentVolumeStatus valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h deleted file mode 100644 index 31033e7eb..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h +++ /dev/null @@ -1,20 +0,0 @@ -// SDLSiphonServer.h -// - - -#import - -@interface SDLSiphonServer : NSObject { -} - -+ (void)enableSiphonDebug; -+ (void)disableSiphonDebug; -+ (bool)_siphonRawTransportDataFromApp:(const void *)msgBytes msgBytesLength:(int)msgBytesLength; -+ (bool)_siphonRawTransportDataFromSDL:(const void *)msgBytes msgBytesLength:(int)msgBytesLength; -+ (bool)_siphonNSLogData:(NSString *)textToLog; -+ (bool)_siphonFormattedTraceData:(NSString *)traceData; -+ (bool)_siphonIsActive; -+ (void)init; -+ (void)dealloc; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.m deleted file mode 100644 index dbb433424..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.m +++ /dev/null @@ -1,452 +0,0 @@ -// SDLSiphonServer.m -// - - -/******************************* - * Description: - * This class opens a socket on port 7474. - * The 'sendSiphonData' Function will - * write to the socket that the SDL Relay Sniffer is - * listening on. - ******************************/ - -//#define ZERO_CONFIG //Uncomment when implementing zero-config. -//#define DEBUG_SIPHON //Uncomment to have output to NSLog. - -#import "SDLSiphonServer.h" -#import "SDLDebugTool.h" -#include -#include -#include -#include -#include -#include - -typedef enum { - fromApp = 0x01, - fromSDL = 0x00, - appLog = 0x02, - formattedTrace = 0x03 -} SiphonDataType; - -const Byte siphonMsgVersionNumber = 1; -volatile int siphonSocket = 0; -NSObject *siphonLock = nil; -CFSocketRef _listeningSocket; -NSNetService *netService = nil; -volatile bool initStarted = false; -bool siphonServerEnabled = false; -bool sendingFormattedTrace = false; -NSDate *startTimeStamp; -int FIRST_PORT_TO_ATTEMPT_CONNECTION = 7474; - -void _closeSiphonSocket(); -bool _sendDataToSiphonSocket(int soc, const void *pData, int dataLength); -bool _sendSiphonData(const void *dataBytes, int dataBytesLength, SiphonDataType siphonDataType); -void _startServerOnPort(int port); -void _stopServer(NSString *reason); - - -@implementation SDLSiphonServer - -// Model currently counts on init being called before any apps call _siphonNSLogData() -// The following is not thread safe (i.e. two threads could create siphon lock), -// but will assume for now that we won't have two transports created in the same proxy. -+ (void)init { - if (initStarted) { - return; - } // end-if - - if (!siphonLock) { - siphonLock = [NSData alloc]; - } // end-if - - @synchronized(siphonLock) { - if (initStarted) { - return; - } - - initStarted = true; - - startTimeStamp = [NSDate date]; - - _closeSiphonSocket(); - - _startServerOnPort(FIRST_PORT_TO_ATTEMPT_CONNECTION); - } -} - -+ (void)enableSiphonDebug { - siphonServerEnabled = true; -} - -+ (void)disableSiphonDebug { - siphonServerEnabled = false; -} - -void _closeSiphonSocket() { -#ifdef DEBUG_SIPHON - NSLog(@"siphon: Resetting siphon socket ..."); -#endif - if (siphonLock) { - @synchronized(siphonLock) { - if (siphonSocket) { - close(siphonSocket); - siphonSocket = 0; - } // end-if - } // end-lock - } // end-if -#ifdef DEBUG_SIPHON - NSLog(@"siphon: siphon socket reset complete"); -#endif -} // end-method - -+ (void)dealloc { -#ifdef ZERO_CONFIG - _stopServer(@"Shutting Down"); -#endif -} - -+ (bool)_siphonIsActive { - if (siphonSocket == 0) { - return NO; - } - return YES; -} - - -+ (bool)_siphonFormattedTraceData:(NSString *)traceData { - if ((traceData == NULL) || (traceData.length == 0)) { - return NO; - } // end-if - - NSData *traceBytes = [traceData dataUsingEncoding:NSUTF8StringEncoding]; - - if (traceBytes == nil) { - return NO; - } // end-if - - bool dataSent = NO; - - sendingFormattedTrace = true; - - dataSent = _sendSiphonData(traceBytes.bytes, (int)traceBytes.length, formattedTrace); - - return dataSent; -} // end-method - -+ (bool)_siphonNSLogData:(NSString *)textToLog { - if ((textToLog == NULL) || (textToLog.length == 0)) { - return NO; - } // end-if - - NSData *textBytes = [textToLog dataUsingEncoding:NSUTF8StringEncoding]; - - if (textBytes == nil) { - return NO; - } // end-if - - bool dataSent = NO; - - dataSent = _sendSiphonData(textBytes.bytes, (int)textBytes.length, appLog); - - return dataSent; -} // end-method - -+ (bool)_siphonRawTransportDataFromApp:(const void *)msgBytes msgBytesLength:(int)msgBytesLength { - if (sendingFormattedTrace) { - return false; - } // end-if - - if (msgBytes == NULL || msgBytesLength == 0) { - return false; - } // end-if - - return _sendSiphonData(msgBytes, msgBytesLength, fromApp); -} - -+ (bool)_siphonRawTransportDataFromSDL:(const void *)msgBytes msgBytesLength:(int)msgBytesLength { - if (sendingFormattedTrace) { - return false; - } // end-if - - if (msgBytes == NULL || msgBytesLength == 0) { - return false; - } // end-if - - return _sendSiphonData(msgBytes, msgBytesLength, fromSDL); -} - -bool _sendSiphonData(const void *dataBytes, int dataBytesLength, SiphonDataType siphonDataType) { - bool wasSent = NO; - - if (dataBytes == NULL || dataBytesLength == 0 || !siphonServerEnabled) { - return false; - } // end-if - - NSDate *currentTime = [NSDate date]; - NSTimeInterval deltaTimeMillis = ([currentTime timeIntervalSinceDate:startTimeStamp] * 1000.0); - uint32_t integerDeltaTimeMillis = ((uint32_t)deltaTimeMillis); - - integerDeltaTimeMillis = htonl(integerDeltaTimeMillis); - - if (siphonLock) { - @synchronized(siphonLock) { - if (siphonSocket) { - Byte sdt = (Byte)siphonDataType; - sdt = (Byte)0x80 | sdt; - uint32_t sizeBytes = htonl(dataBytesLength + sizeof(sdt) + sizeof(integerDeltaTimeMillis) + sizeof(siphonMsgVersionNumber)); - - wasSent = _sendDataToSiphonSocket(siphonSocket, &sizeBytes, sizeof(sizeBytes)); - - if (wasSent) { - wasSent = _sendDataToSiphonSocket(siphonSocket, &sdt, sizeof(sdt)); - } - - if (wasSent) { - wasSent = _sendDataToSiphonSocket(siphonSocket, &siphonMsgVersionNumber, sizeof(siphonMsgVersionNumber)); - } - - if (wasSent) { - wasSent = _sendDataToSiphonSocket(siphonSocket, &integerDeltaTimeMillis, sizeof(integerDeltaTimeMillis)); - } - - if (wasSent) { - wasSent = _sendDataToSiphonSocket(siphonSocket, dataBytes, dataBytesLength); - } - - if (wasSent) { - return YES; - } else { -#ifdef DEBUG_SIPHON - NSLog(@"siphon: failure sending to siphon socket"); -#endif - _closeSiphonSocket(); - return NO; - } // end-if - } else { -#ifdef DEBUG_SIPHON - NSLog(@"siphon: siphon socket is NULL"); -#endif - } // end-if - } //end Synchronized - } // end-if - return NO; - -} // end-method - -bool _sendDataToSiphonSocket(int soc, const void *pData, int dataLength) { - int bytesRemainingToSend = dataLength; - ssize_t bytesSent = 0; - const UInt8 *pd = pData; - - if (pData == NULL || dataLength == 0) { - return false; - } // end-if - - while (bytesRemainingToSend > 0) { - if (soc) { - bytesSent = send(soc, pd, bytesRemainingToSend, 0); - - if (bytesSent == -1) { -#ifdef DEBUG_SIPHON - NSLog(@"siphon: got bytesSent==-1 on send(siphonSocket)"); -#endif - return NO; - } // end-if - - bytesRemainingToSend -= bytesSent; - pd += bytesSent; - } // end-if - - } // end-while - - return YES; - -} // end-method - - -void _serverDidStartOnPort(int port) { -#ifdef DEBUG_SIPHON - NSLog(@"siphon: server started on port: %d", port); -#endif -} - -#ifdef ZERO_CONFIG - -#pragma mark -#pragma mark Server - -- (void)_didSendData:(NSData *)data { -} - -void _serverDidStopWithReason(NSString *reason) { -} - -- (void)_updateStatus:(NSString *)statusString { - NSLog(@"siphon: %@", statusString); -} - -- (void)_SendDidStopWithStatus:(NSString *)statusString { - NSLog(@"siphon: server configured for output"); -} - -- (BOOL)isStarted { - return (netService != nil); -} -#endif - - -void _acceptConnection(int fd) { - if (siphonLock) { - @synchronized(siphonLock) { - int socketOps = 1; - - _closeSiphonSocket(); -#ifdef DEBUG_SIPHON - NSLog(@"siphon: storing newly accepted siphon socket handle %08x ...", fd); -#endif - siphonSocket = fd; - - setsockopt(siphonSocket, SOL_SOCKET, SO_NOSIGPIPE, (void *)&socketOps, sizeof(int)); - [SDLDebugTool logInfo:@"Siphon connected." withType:SDLDebugType_Debug]; - - } // end-lock - } // end-if - return; -} - -static void AcceptCallback(CFSocketRef s, CFSocketCallBackType type, CFDataRef address, const void *data, void *info) { -#ifdef DEBUG_SIPHON - NSLog(@"siphon: accepted siphon connection ..."); -#endif - -#pragma unused(type) - assert(type == kCFSocketAcceptCallBack); -#pragma unused(address) - assert(data != NULL); - -#pragma unused(s) - assert(s == _listeningSocket); - - _acceptConnection(*(int *)data); -} - - -#ifdef ZERO_CONFIG -- (void)netService:(NSNetService *)sender didNotPublish:(NSDictionary *)errorDict { -#pragma unused(sender) - assert(sender == netService); -#pragma unused(errorDict) - - _stopServer(@"Registration failed"); -} -#endif - -void _startServerOnPort(int port) { - BOOL success; - int err; - int fd; - struct sockaddr_in addr; - int const retryLimit = 1000; - - fd = socket(AF_INET, SOCK_STREAM, 0); - success = (fd != -1); - - if (success) { - memset(&addr, 0, sizeof(addr)); - addr.sin_len = sizeof(addr); - addr.sin_family = AF_INET; - - addr.sin_addr.s_addr = INADDR_ANY; - - bool openPortFound = false; - short bindPort = (short)port; - success = false; - for (int retryCount = 0; retryCount < retryLimit && !openPortFound; retryCount++) { - addr.sin_port = htons(bindPort); - err = bind(fd, (const struct sockaddr *)&addr, sizeof(addr)); - if (err == 0) { - openPortFound = true; - success = (err == 0); - port = bindPort; - } else { - bindPort++; - } - } // end-for - } - if (success) { - err = listen(fd, 5); - success = (err == 0); - } - if (success) { - socklen_t addrLen; - - addrLen = sizeof(addr); - err = getsockname(fd, (struct sockaddr *)&addr, &addrLen); - success = (err == 0); - - if (success) { - assert(addrLen == sizeof(addr)); - port = ntohs(addr.sin_port); - } -#ifdef DEBUG_SIPHON - NSLog(@"siphon: my port is %d ", port); -#endif - } - if (success) { - _listeningSocket = CFSocketCreateWithNative( - NULL, - fd, - kCFSocketAcceptCallBack, - AcceptCallback, - NULL); - success = (_listeningSocket != NULL); - - if (success) { - CFRunLoopSourceRef rls; - fd = -1; - rls = CFSocketCreateRunLoopSource(NULL, _listeningSocket, 0); - assert(rls != NULL); - CFRunLoopAddSource(CFRunLoopGetCurrent(), rls, kCFRunLoopDefaultMode); - CFRelease(rls); - } - } - -#ifdef ZERO_CONFIG - - if (success) { - UIDevice *device = [UIDevice currentDevice]; - ; - NSString *serviceName = [NSString stringWithFormat:@"%@_%d ", device.name, port]; - netService = [[[NSNetService alloc] initWithDomain:@"local." type:@"_sync._tcp." name:serviceName port:port] autorelease]; - success = (netService != nil); - } - if (success) { - [netService publishWithOptions:NSNetServiceNoAutoRename]; - } - - if (success) { - assert(port != 0); - _serverDidStartOnPort(port); - } else { - _stopServer(@"Start failed"); - if (fd != -1) { - assert(startFailed == 0); - } - } - -#endif -} - -void _stopServer(NSString *reason) { -#ifdef ZERO_CONFIG - if (netService != nil) { - [netService stop]; - netService = nil; - } - _serverDidStopWithReason(reason); -#endif -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSlider.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSlider.h deleted file mode 100644 index 04724d780..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSlider.h +++ /dev/null @@ -1,75 +0,0 @@ -// SDLSlider.h -// - - -#import "SDLRPCRequest.h" - -/** - * Creates a full screen or pop-up overlay (depending on platform) with a single user controlled slider - * - * HMILevel needs to be FULL - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLSlider : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLSlider object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLSlider object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract Represents a number of selectable items on a horizontal axis - * - * Required, Integer, 2 - 26 - */ -@property (strong) NSNumber *numTicks; - -/** - * @abstract An Initial position of slider control - * - * Required, Integer, 1 - 26 - */ -@property (strong) NSNumber *position; - -/** - * @abstract A text header to display - * - * Rquired, Max length 500 chars - */ -@property (strong) NSString *sliderHeader; - -/** - * @abstract A text footer to display - * - * @discussion For a static text footer, only one footer string shall be provided in the array. - * - * For a dynamic text footer, the number of footer text string in the array must match the numTicks value. - * - * For a dynamic text footer, text array string should correlate with potential slider position index. - * - * If omitted on supported displays, no footer text shall be displayed. - * - * Optional, Array of Strings, Array length 1 - 26, Max string length 500 chars - */ -@property (strong) NSMutableArray *sliderFooter; - -/** - * @abstract An App defined timeout - * - * @discussion Indicates how long of a timeout from the last action (i.e. sliding control resets timeout). - * - * If omitted, the value is set to 10000. - * - * Optional, Integer, 1000 - 65535 - */ -@property (strong) NSNumber *timeout; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSlider.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSlider.m deleted file mode 100644 index 80a56d1aa..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSlider.m +++ /dev/null @@ -1,83 +0,0 @@ -// SDLSlider.m -// - - -#import "SDLSlider.h" - -#import "SDLNames.h" - -@implementation SDLSlider - -- (instancetype)init { - if (self = [super initWithName:NAMES_Slider]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setNumTicks:(NSNumber *)numTicks { - if (numTicks != nil) { - [parameters setObject:numTicks forKey:NAMES_numTicks]; - } else { - [parameters removeObjectForKey:NAMES_numTicks]; - } -} - -- (NSNumber *)numTicks { - return [parameters objectForKey:NAMES_numTicks]; -} - -- (void)setPosition:(NSNumber *)position { - if (position != nil) { - [parameters setObject:position forKey:NAMES_position]; - } else { - [parameters removeObjectForKey:NAMES_position]; - } -} - -- (NSNumber *)position { - return [parameters objectForKey:NAMES_position]; -} - -- (void)setSliderHeader:(NSString *)sliderHeader { - if (sliderHeader != nil) { - [parameters setObject:sliderHeader forKey:NAMES_sliderHeader]; - } else { - [parameters removeObjectForKey:NAMES_sliderHeader]; - } -} - -- (NSString *)sliderHeader { - return [parameters objectForKey:NAMES_sliderHeader]; -} - -- (void)setSliderFooter:(NSMutableArray *)sliderFooter { - if (sliderFooter != nil) { - [parameters setObject:sliderFooter forKey:NAMES_sliderFooter]; - } else { - [parameters removeObjectForKey:NAMES_sliderFooter]; - } -} - -- (NSMutableArray *)sliderFooter { - return [parameters objectForKey:NAMES_sliderFooter]; -} - -- (void)setTimeout:(NSNumber *)timeout { - if (timeout != nil) { - [parameters setObject:timeout forKey:NAMES_timeout]; - } else { - [parameters removeObjectForKey:NAMES_timeout]; - } -} - -- (NSNumber *)timeout { - return [parameters objectForKey:NAMES_timeout]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSliderResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSliderResponse.h deleted file mode 100644 index 5b38b7f0f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSliderResponse.h +++ /dev/null @@ -1,31 +0,0 @@ -// SDLSliderResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Slider Response is sent, when Slider has been called - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLSliderResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLSliderResponse object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLSliderResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The selected position of the slider. - */ -@property (strong) NSNumber *sliderPosition; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSliderResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSliderResponse.m deleted file mode 100644 index 927ad569d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSliderResponse.m +++ /dev/null @@ -1,35 +0,0 @@ -// SDLSliderResponse.m -// - - -#import "SDLSliderResponse.h" - -#import "SDLNames.h" - -@implementation SDLSliderResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_Slider]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setSliderPosition:(NSNumber *)sliderPosition { - if (sliderPosition != nil) { - [parameters setObject:sliderPosition forKey:NAMES_sliderPosition]; - } else { - [parameters removeObjectForKey:NAMES_sliderPosition]; - } -} - -- (NSNumber *)sliderPosition { - return [parameters objectForKey:NAMES_sliderPosition]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h deleted file mode 100644 index db2393ae7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h +++ /dev/null @@ -1,24 +0,0 @@ -// SDLSoftButton.h -// - -#import "SDLRPCMessage.h" - -@class SDLImage; -@class SDLSoftButtonType; -@class SDLSystemAction; - - -@interface SDLSoftButton : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLSoftButtonType *type; -@property (strong) NSString *text; -@property (strong) SDLImage *image; -@property (strong) NSNumber *isHighlighted; -@property (strong) NSNumber *softButtonID; -@property (strong) SDLSystemAction *systemAction; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.m deleted file mode 100644 index a93ce510c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.m +++ /dev/null @@ -1,113 +0,0 @@ -// SDLSoftButton.m -// - -#import "SDLSoftButton.h" - -#import "SDLImage.h" -#import "SDLNames.h" -#import "SDLSoftButtonType.h" -#import "SDLSystemAction.h" - - -@implementation SDLSoftButton - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setType:(SDLSoftButtonType *)type { - if (type != nil) { - [store setObject:type forKey:NAMES_type]; - } else { - [store removeObjectForKey:NAMES_type]; - } -} - -- (SDLSoftButtonType *)type { - NSObject *obj = [store objectForKey:NAMES_type]; - if (obj == nil || [obj isKindOfClass:SDLSoftButtonType.class]) { - return (SDLSoftButtonType *)obj; - } else { - return [SDLSoftButtonType valueOf:(NSString *)obj]; - } -} - -- (void)setText:(NSString *)text { - if (text != nil) { - [store setObject:text forKey:NAMES_text]; - } else { - [store removeObjectForKey:NAMES_text]; - } -} - -- (NSString *)text { - return [store objectForKey:NAMES_text]; -} - -- (void)setImage:(SDLImage *)image { - if (image != nil) { - [store setObject:image forKey:NAMES_image]; - } else { - [store removeObjectForKey:NAMES_image]; - } -} - -- (SDLImage *)image { - NSObject *obj = [store objectForKey:NAMES_image]; - if (obj == nil || [obj isKindOfClass:SDLImage.class]) { - return (SDLImage *)obj; - } else { - return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setIsHighlighted:(NSNumber *)isHighlighted { - if (isHighlighted != nil) { - [store setObject:isHighlighted forKey:NAMES_isHighlighted]; - } else { - [store removeObjectForKey:NAMES_isHighlighted]; - } -} - -- (NSNumber *)isHighlighted { - return [store objectForKey:NAMES_isHighlighted]; -} - -- (void)setSoftButtonID:(NSNumber *)softButtonID { - if (softButtonID != nil) { - [store setObject:softButtonID forKey:NAMES_softButtonID]; - } else { - [store removeObjectForKey:NAMES_softButtonID]; - } -} - -- (NSNumber *)softButtonID { - return [store objectForKey:NAMES_softButtonID]; -} - -- (void)setSystemAction:(SDLSystemAction *)systemAction { - if (systemAction != nil) { - [store setObject:systemAction forKey:NAMES_systemAction]; - } else { - [store removeObjectForKey:NAMES_systemAction]; - } -} - -- (SDLSystemAction *)systemAction { - NSObject *obj = [store objectForKey:NAMES_systemAction]; - if (obj == nil || [obj isKindOfClass:SDLSystemAction.class]) { - return (SDLSystemAction *)obj; - } else { - return [SDLSystemAction valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonCapabilities.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonCapabilities.h deleted file mode 100644 index ca9eeb2bf..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonCapabilities.h +++ /dev/null @@ -1,60 +0,0 @@ -// SDLSoftButtonCapabilities.h -// - - -#import "SDLRPCMessage.h" - -/** - * Contains information about a SoftButton's capabilities. - * - * @since SDL 2.0 - */ -@interface SDLSoftButtonCapabilities : SDLRPCStruct { -} - -/** - * @abstract Constructs a newly allocated SDLSoftButtonCapabilities object - */ -- (instancetype)init; - -/** - * @abstract Constructs a newly allocated SDLSoftButtonCapabilities object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The button supports a short press. - * - * @discussion Whenever the button is pressed short, onButtonPressed(SHORT) will be invoked. - * - * Required, Boolean - */ -@property (strong) NSNumber *shortPressAvailable; - -/** - * @abstract The button supports a LONG press. - * - * @discussion Whenever the button is pressed long, onButtonPressed(LONG) will be invoked. - * - * Required, Boolean - */ -@property (strong) NSNumber *longPressAvailable; - -/** - * @abstract The button supports "button down" and "button up". - * - * @discussion Whenever the button is pressed, onButtonEvent(DOWN) will be invoked. Whenever the button is released, onButtonEvent(UP) will be invoked. - * - * Required, Boolean - */ -@property (strong) NSNumber *upDownAvailable; - -/** - * @abstract The button supports referencing a static or dynamic image. - * - * Required, Boolean - */ -@property (strong) NSNumber *imageSupported; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonCapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonCapabilities.m deleted file mode 100644 index d9a502db1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonCapabilities.m +++ /dev/null @@ -1,71 +0,0 @@ -// SDLSoftButtonCapabilities.m -// - - -#import "SDLSoftButtonCapabilities.h" - -#import "SDLNames.h" - -@implementation SDLSoftButtonCapabilities - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setShortPressAvailable:(NSNumber *)shortPressAvailable { - if (shortPressAvailable != nil) { - [store setObject:shortPressAvailable forKey:NAMES_shortPressAvailable]; - } else { - [store removeObjectForKey:NAMES_shortPressAvailable]; - } -} - -- (NSNumber *)shortPressAvailable { - return [store objectForKey:NAMES_shortPressAvailable]; -} - -- (void)setLongPressAvailable:(NSNumber *)longPressAvailable { - if (longPressAvailable != nil) { - [store setObject:longPressAvailable forKey:NAMES_longPressAvailable]; - } else { - [store removeObjectForKey:NAMES_longPressAvailable]; - } -} - -- (NSNumber *)longPressAvailable { - return [store objectForKey:NAMES_longPressAvailable]; -} - -- (void)setUpDownAvailable:(NSNumber *)upDownAvailable { - if (upDownAvailable != nil) { - [store setObject:upDownAvailable forKey:NAMES_upDownAvailable]; - } else { - [store removeObjectForKey:NAMES_upDownAvailable]; - } -} - -- (NSNumber *)upDownAvailable { - return [store objectForKey:NAMES_upDownAvailable]; -} - -- (void)setImageSupported:(NSNumber *)imageSupported { - if (imageSupported != nil) { - [store setObject:imageSupported forKey:NAMES_imageSupported]; - } else { - [store removeObjectForKey:NAMES_imageSupported]; - } -} - -- (NSNumber *)imageSupported { - return [store objectForKey:NAMES_imageSupported]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonType.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonType.h deleted file mode 100644 index d2b59a8d5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonType.h +++ /dev/null @@ -1,41 +0,0 @@ -// SDLSoftButtonType.h -// - - -#import "SDLEnum.h" - -/** - SoftButtonType (TEXT / IMAGE / BOTH) - */ -@interface SDLSoftButtonType : SDLEnum { -} - -/** - @abstract get SDLSoftButtonType according value string - @param value NSString - @return SDLSoftButtonType object - */ -+ (SDLSoftButtonType *)valueOf:(NSString *)value; -/** - @abstract declare an array to store all possible SDLSoftButtonType values - @return the array - */ -+ (NSArray *)values; - -/** - @abstract Text kind Softbutton - @return SDLSoftButtonType object with string value *TEXT* - */ -+ (SDLSoftButtonType *)TEXT; -/** - @abstract Image kind Softbutton - @return SDLSoftButtonType object with string value *IMAGE* - */ -+ (SDLSoftButtonType *)IMAGE; -/** - @abstract Both (Text & Image) kind Softbutton - @return SDLSoftButtonType object with string value *BOTH* - */ -+ (SDLSoftButtonType *)BOTH; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonType.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonType.m deleted file mode 100644 index 9add8edfe..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButtonType.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLSoftButtonType.m -// - - -#import "SDLSoftButtonType.h" - -SDLSoftButtonType *SDLSoftButtonType_TEXT = nil; -SDLSoftButtonType *SDLSoftButtonType_IMAGE = nil; -SDLSoftButtonType *SDLSoftButtonType_BOTH = nil; - -NSArray *SDLSoftButtonType_values = nil; - -@implementation SDLSoftButtonType - -+ (SDLSoftButtonType *)valueOf:(NSString *)value { - for (SDLSoftButtonType *item in SDLSoftButtonType.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLSoftButtonType_values == nil) { - SDLSoftButtonType_values = @[ - SDLSoftButtonType.TEXT, - SDLSoftButtonType.IMAGE, - SDLSoftButtonType.BOTH, - ]; - } - return SDLSoftButtonType_values; -} - -+ (SDLSoftButtonType *)TEXT { - if (SDLSoftButtonType_TEXT == nil) { - SDLSoftButtonType_TEXT = [[SDLSoftButtonType alloc] initWithValue:@"TEXT"]; - } - return SDLSoftButtonType_TEXT; -} - -+ (SDLSoftButtonType *)IMAGE { - if (SDLSoftButtonType_IMAGE == nil) { - SDLSoftButtonType_IMAGE = [[SDLSoftButtonType alloc] initWithValue:@"IMAGE"]; - } - return SDLSoftButtonType_IMAGE; -} - -+ (SDLSoftButtonType *)BOTH { - if (SDLSoftButtonType_BOTH == nil) { - SDLSoftButtonType_BOTH = [[SDLSoftButtonType alloc] initWithValue:@"BOTH"]; - } - return SDLSoftButtonType_BOTH; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeak.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeak.h deleted file mode 100644 index 8e6eb8e7e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeak.h +++ /dev/null @@ -1,64 +0,0 @@ -// SDLSpeak.h -// - -#import "SDLRPCRequest.h" - -/** - * Speaks a phrase over the vehicle audio system using SDL's TTS (text-to-speech) engine. The provided text to be spoken can be simply a text phrase, or it can consist of phoneme specifications to direct SDL's TTS engine to speak a "speech-sculpted" phrase. - * - * Receipt of the Response indicates the completion of the Speak operation, regardless of how the Speak operation may have completed (i.e. successfully, interrupted, terminated, etc.). - * - * Requesting a new Speak operation while the application has another Speak operation already in progress (i.e. no corresponding Response for that in-progress Speak operation has been received yet) will terminate the in-progress Speak operation (causing its corresponding Response to be sent by SDL) and begin the requested Speak operation - * - * Requesting a new Speak operation while the application has an SDLAlert operation already in progress (i.e. no corresponding Response for that in-progress SDLAlert operation has been received yet) will result in the Speak operation request being rejected (indicated in the Response to the Request) - * - * Requesting a new SDLAlert operation while the application has a Speak operation already in progress (i.e. no corresponding Response for that in-progress Speak operation has been received yet) will terminate the in-progress Speak operation (causing its corresponding Response to be sent by SDL) and begin the requested SDLAlert operation - * - * Requesting a new Speak operation while the application has a SDLPerformInteraction operation already in progress (i.e. no corresponding Response for that in-progress SDLPerformInteraction operation has been received yet) will result in the Speak operation request being rejected (indicated in the Response to the Request) - * - * Requesting a SDLPerformInteraction operation while the application has a Speak operation already in progress (i.e. no corresponding Response for that in-progress Speak operation has been received yet) will terminate the in-progress Speak operation (causing its corresponding Response to be sent by SDL) and begin the requested SDLPerformInteraction operation - * - * HMI Status Requirements: - *

  • HMILevel: FULL, Limited
  • - *
  • AudioStreamingState: Any
  • - *
  • SystemContext: MAIN, MENU, VR
  • - - * Notes: - *
  • When SDLAlert is issued with MENU in effect, SDLAlert is queued and "played" when MENU interaction is completed (i.e. SystemContext reverts to MAIN). When SDLAlert - * is issued with VR in effect, SDLAlert is queued and "played" when VR interaction is completed (i.e. SystemContext reverts to MAIN)
  • - *
  • When both SDLAlert and Speak are queued during MENU or VR, they are "played" back in the order in which they were queued, with all existing rules for "collisions" still in effect
  • - * - * Additional Notes: - *
  • Total character limit depends on platform.
  • - *
  • Chunks are limited to 500 characters; however you can have multiple TTS chunks.
  • - *
  • On old systems there is a total character limit of 500 characters across all chunks. This could vary according to the VCA.
  • - * - * @since SmartDeviceLink 1.0 - * @see SDLAlert - */ -@interface SDLSpeak : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLSpeak object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLSpeak object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract An array of TTSChunk structs which, taken together, specify the phrase to be spoken - * - * @discussion The total length of the phrase composed from the ttsChunks provided must be less than 500 characters or the request will be rejected - * - * Required, Array of SDLTTSChunk, Array size 1 - 100 - * - * @see SDLTTSChunk - */ -@property (strong) NSMutableArray *ttsChunks; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeak.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeak.m deleted file mode 100644 index 8f19b925b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeak.m +++ /dev/null @@ -1,45 +0,0 @@ -// SDLSpeak.m -// - - -#import "SDLSpeak.h" - -#import "SDLNames.h" -#import "SDLTTSChunk.h" - -@implementation SDLSpeak - -- (instancetype)init { - if (self = [super initWithName:NAMES_Speak]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setTtsChunks:(NSMutableArray *)ttsChunks { - if (ttsChunks != nil) { - [parameters setObject:ttsChunks forKey:NAMES_ttsChunks]; - } else { - [parameters removeObjectForKey:NAMES_ttsChunks]; - } -} - -- (NSMutableArray *)ttsChunks { - NSMutableArray *array = [parameters objectForKey:NAMES_ttsChunks]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeakResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeakResponse.h deleted file mode 100644 index 2a7eef046..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeakResponse.h +++ /dev/null @@ -1,26 +0,0 @@ -// SDLSpeakResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Speak Response is sent, when Speak has been called - * - * Since SmartDeviceLink 1.0 - */ -@interface SDLSpeakResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLSpeakResponse object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLSpeakResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeakResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeakResponse.m deleted file mode 100644 index dfb8dff33..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeakResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLSpeakResponse.m -// - - -#import "SDLSpeakResponse.h" - -#import "SDLNames.h" - -@implementation SDLSpeakResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_Speak]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.h deleted file mode 100644 index 9529e3fef..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.h +++ /dev/null @@ -1,46 +0,0 @@ -// SDLSpeechCapabilities.h -// - - -#import "SDLEnum.h" - -/* - * Contains information about TTS capabilities on the SDL platform. - * - * @since SDL 1.0 - */ -@interface SDLSpeechCapabilities : SDLEnum { -} - -/** - * @abstract get SDLSpeechCapabilities according value string - * - * @param value The value of the string to get an object for - * - * @return SDLSpeechCapabilities object - */ -+ (SDLSpeechCapabilities *)valueOf:(NSString *)value; - -/** - * @abstract declare an array to store all possible SDLSpeechCapabilities values - * - * @return the array of all possible values - */ -+ (NSArray *)values; - -/** - * @abstract The SDL platform can speak text phrases. - * - * @return SDLSpeechCapabilities of value: *TEXT* - */ -+ (SDLSpeechCapabilities *)TEXT; - -+ (SDLSpeechCapabilities *)SAPI_PHONEMES; - -+ (SDLSpeechCapabilities *)LHPLUS_PHONEMES; - -+ (SDLSpeechCapabilities *)PRE_RECORDED; - -+ (SDLSpeechCapabilities *)SILENCE; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.m deleted file mode 100644 index 2018b8321..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.m +++ /dev/null @@ -1,74 +0,0 @@ -// SDLSpeechCapabilities.m -// - - -#import "SDLSpeechCapabilities.h" - -SDLSpeechCapabilities *SDLSpeechCapabilities_TEXT = nil; -SDLSpeechCapabilities *SDLSpeechCapabilities_SAPI_PHONEMES = nil; -SDLSpeechCapabilities *SDLSpeechCapabilities_LHPLUS_PHONEMES = nil; -SDLSpeechCapabilities *SDLSpeechCapabilities_PRE_RECORDED = nil; -SDLSpeechCapabilities *SDLSpeechCapabilities_SILENCE = nil; - -NSArray *SDLSpeechCapabilities_values = nil; - -@implementation SDLSpeechCapabilities - -+ (SDLSpeechCapabilities *)valueOf:(NSString *)value { - for (SDLSpeechCapabilities *item in SDLSpeechCapabilities.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLSpeechCapabilities_values == nil) { - SDLSpeechCapabilities_values = @[ - SDLSpeechCapabilities.TEXT, - SDLSpeechCapabilities.SAPI_PHONEMES, - SDLSpeechCapabilities.LHPLUS_PHONEMES, - SDLSpeechCapabilities.PRE_RECORDED, - SDLSpeechCapabilities.SILENCE, - ]; - } - return SDLSpeechCapabilities_values; -} - -+ (SDLSpeechCapabilities *)TEXT { - if (SDLSpeechCapabilities_TEXT == nil) { - SDLSpeechCapabilities_TEXT = [[SDLSpeechCapabilities alloc] initWithValue:@"TEXT"]; - } - return SDLSpeechCapabilities_TEXT; -} - -+ (SDLSpeechCapabilities *)SAPI_PHONEMES { - if (SDLSpeechCapabilities_SAPI_PHONEMES == nil) { - SDLSpeechCapabilities_SAPI_PHONEMES = [[SDLSpeechCapabilities alloc] initWithValue:@"SAPI_PHONEMES"]; - } - return SDLSpeechCapabilities_SAPI_PHONEMES; -} - -+ (SDLSpeechCapabilities *)LHPLUS_PHONEMES { - if (SDLSpeechCapabilities_LHPLUS_PHONEMES == nil) { - SDLSpeechCapabilities_LHPLUS_PHONEMES = [[SDLSpeechCapabilities alloc] initWithValue:@"LHPLUS_PHONEMES"]; - } - return SDLSpeechCapabilities_LHPLUS_PHONEMES; -} - -+ (SDLSpeechCapabilities *)PRE_RECORDED { - if (SDLSpeechCapabilities_PRE_RECORDED == nil) { - SDLSpeechCapabilities_PRE_RECORDED = [[SDLSpeechCapabilities alloc] initWithValue:@"PRE_RECORDED"]; - } - return SDLSpeechCapabilities_PRE_RECORDED; -} - -+ (SDLSpeechCapabilities *)SILENCE { - if (SDLSpeechCapabilities_SILENCE == nil) { - SDLSpeechCapabilities_SILENCE = [[SDLSpeechCapabilities alloc] initWithValue:@"SILENCE"]; - } - return SDLSpeechCapabilities_SILENCE; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStartTime.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLStartTime.h deleted file mode 100644 index 55eb147d6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStartTime.h +++ /dev/null @@ -1,49 +0,0 @@ -// SDLStartTime.h -// - - -#import "SDLRPCMessage.h" - -/** - * Describes the hour, minute and second values used to set the media clock. - * - * @since SDL 1.0 - */ -@interface SDLStartTime : SDLRPCStruct { -} - -/** - * @abstract Constructs a newly allocated SDLStartTime object - */ -- (instancetype)init; - -/** - * @abstract Constructs a newly allocated SDLStartTime object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The hour of the media clock - * - * @discussion Some display types only support a max value of 19. If out of range, it will be rejected. - * - * Required, Integer, 0 - 59 - */ -@property (strong) NSNumber *hours; - -/** - * @abstract The minute of the media clock - * - * Required, Integer, 0 - 59 - */ -@property (strong) NSNumber *minutes; - -/** - * @abstract The second of the media clock - * - * Required, Integer, 0 - 59 - */ -@property (strong) NSNumber *seconds; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStartTime.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLStartTime.m deleted file mode 100644 index 4745bf712..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStartTime.m +++ /dev/null @@ -1,59 +0,0 @@ -// SDLStartTime.m -// - - -#import "SDLStartTime.h" - -#import "SDLNames.h" - -@implementation SDLStartTime - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setHours:(NSNumber *)hours { - if (hours != nil) { - [store setObject:hours forKey:NAMES_hours]; - } else { - [store removeObjectForKey:NAMES_hours]; - } -} - -- (NSNumber *)hours { - return [store objectForKey:NAMES_hours]; -} - -- (void)setMinutes:(NSNumber *)minutes { - if (minutes != nil) { - [store setObject:minutes forKey:NAMES_minutes]; - } else { - [store removeObjectForKey:NAMES_minutes]; - } -} - -- (NSNumber *)minutes { - return [store objectForKey:NAMES_minutes]; -} - -- (void)setSeconds:(NSNumber *)seconds { - if (seconds != nil) { - [store setObject:seconds forKey:NAMES_seconds]; - } else { - [store removeObjectForKey:NAMES_seconds]; - } -} - -- (NSNumber *)seconds { - return [store objectForKey:NAMES_seconds]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamDelegate.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamDelegate.h deleted file mode 100644 index fdd8bfbac..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamDelegate.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// SDLStreamDelegate.h - -#import - -// Convenience typedefs -typedef void (^SDLStreamOpenHandler)(NSStream *stream); -typedef void (^SDLStreamHasBytesHandler)(NSInputStream *istream); -typedef void (^SDLStreamHasSpaceHandler)(NSOutputStream *ostream); -typedef void (^SDLStreamErrorHandler)(NSStream *stream); -typedef void (^SDLStreamEndHandler)(NSStream *stream); - - -@interface SDLStreamDelegate : NSObject - -@property (nonatomic, copy) SDLStreamOpenHandler streamOpenHandler; -@property (nonatomic, copy) SDLStreamHasBytesHandler streamHasBytesHandler; -@property (nonatomic, copy) SDLStreamHasSpaceHandler streamHasSpaceHandler; -@property (nonatomic, copy) SDLStreamErrorHandler streamErrorHandler; -@property (nonatomic, copy) SDLStreamEndHandler streamEndHandler; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamDelegate.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamDelegate.m deleted file mode 100644 index 6c2db6c34..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamDelegate.m +++ /dev/null @@ -1,92 +0,0 @@ -// -// SDLtreamDelegate.m -// - -#import "SDLStreamDelegate.h" -#import "SDLDebugTool.h" - -@interface SDLStreamDelegate () { - dispatch_queue_t _input_stream_queue; -} - -@end - - -@implementation SDLStreamDelegate - -- (instancetype)init { - self = [super init]; - if (self) { - _streamOpenHandler = defaultStreamOpenHandler; - _streamHasBytesHandler = defaultStreamHasBytesHandler; - _streamHasSpaceHandler = defaultStreamHasSpaceHandler; - _streamErrorHandler = defaultStreamErrorHandler; - _streamEndHandler = defaultStreamErrorHandler; - - _input_stream_queue = dispatch_queue_create("com.sdl.streamdelegate.input", DISPATCH_QUEUE_SERIAL); - } - return self; -} - -- (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode { - switch (eventCode) { - case NSStreamEventOpenCompleted: { - if (_streamOpenHandler) { - self.streamOpenHandler(stream); - } - break; - } - case NSStreamEventHasBytesAvailable: { - if (_streamHasBytesHandler) { - dispatch_async(_input_stream_queue, ^{ - self.streamHasBytesHandler((NSInputStream *)stream); - }); - } - break; - } - case NSStreamEventHasSpaceAvailable: { - if (_streamHasSpaceHandler) { - self.streamHasSpaceHandler((NSOutputStream *)stream); - } - break; - } - case NSStreamEventErrorOccurred: { - if (_streamErrorHandler) { - self.streamErrorHandler(stream); - } - break; - } - case NSStreamEventEndEncountered: { - if (_streamEndHandler) { - self.streamEndHandler(stream); - } - break; - } - case NSStreamEventNone: - default: { - break; - } - } -} - -SDLStreamOpenHandler defaultStreamOpenHandler = ^(NSStream *stream) { - [SDLDebugTool logInfo:@"Stream Event Open"]; -}; - -SDLStreamHasBytesHandler defaultStreamHasBytesHandler = ^(NSInputStream *istream) { - [SDLDebugTool logInfo:@"Stream Event Has Bytes"]; -}; - -SDLStreamHasSpaceHandler defaultStreamHasSpaceHandler = ^(NSOutputStream *ostream) { - -}; - -SDLStreamErrorHandler defaultStreamErrorHandler = ^(NSStream *stream) { - [SDLDebugTool logInfo:@"Stream Event Error"]; -}; - -SDLStreamEndHandler defaultStreamEndHandler = ^(NSStream *stream) { - [SDLDebugTool logInfo:@"Stream Event End"]; -}; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h deleted file mode 100644 index 05a855e13..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h +++ /dev/null @@ -1,91 +0,0 @@ -// -// SDLStreamingDataManager.h -// SmartDeviceLink-iOS -// -// Created by Joel Fischer on 8/11/15. -// Copyright (c) 2015 smartdevicelink. All rights reserved. -// - -#import -@import VideoToolbox; - -#import "SDLProtocolListener.h" - -@class SDLAbstractProtocol; - - -NS_ASSUME_NONNULL_BEGIN - -typedef NS_ENUM(NSInteger, SDLStreamingVideoError) { - SDLStreamingVideoErrorHeadUnitNACK, - SDLSTreamingVideoErrorInvalidOperatingSystemVersion, - SDLStreamingVideoErrorConfigurationCompressionSessionCreationFailure, - SDLStreamingVideoErrorConfigurationAllocationFailure, - SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure -}; - -typedef NS_ENUM(NSInteger, SDLStreamingAudioError) { - SDLStreamingAudioErrorHeadUnitNACK -}; - -extern NSString *const SDLErrorDomainStreamingMediaVideo; -extern NSString *const SDLErrorDomainStreamingMediaAudio; - -typedef void (^SDLStreamingStartBlock)(BOOL success, NSError *__nullable error); - - -@interface SDLStreamingMediaManager : NSObject - -- (instancetype)initWithProtocol:(SDLAbstractProtocol *)protocol; - -/** - * This method will attempt to start a streaming video session. It will set up iOS's video encoder, and call out to the head unit asking if it will start a video session. - * - * @warning If this method is called on an 8.0 device, it will assert (in debug), or return a failure immediately to your block (in release). - * - * @param startBlock A block that will be called with the result of attempting to start a video session - */ -- (void)startVideoSessionWithStartBlock:(SDLStreamingStartBlock)startBlock; - -/** - * This method will stop a running video session if there is one running. - */ -- (void)stopVideoSession; - -/** - * This method receives raw image data and will run iOS8+'s hardware video encoder to turn the data into a video stream, which will then be passed to the connected head unit. - * - * @param imageBuffer A CVImageBufferRef to be encoded by Video Toolbox - * - * @return Whether or not the data was successfully encoded and sent. - */ -- (BOOL)sendVideoData:(CVImageBufferRef)imageBuffer; - -/** - * This method will attempt to start an audio session - * - * @param startBlock A block that will be called with the result of attempting to start an audio session - */ -- (void)startAudioStreamingWithStartBlock:(SDLStreamingStartBlock)startBlock; - -/** - * This method will stop a running audio session if there is one running. - */ -- (void)stopAudioSession; - -/** - * This method receives PCM audio data and will attempt to send that data across to the head unit for immediate playback - * - * @param pcmAudioData The data in PCM audio format, to be played - * - * @return Whether or not the data was successfully sent. - */ -- (BOOL)sendAudioData:(NSData *)pcmAudioData; - -@property (assign, nonatomic, readonly) BOOL videoSessionConnected; -@property (assign, nonatomic, readonly) BOOL audioSessionConnected; - - -@end - -NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m deleted file mode 100644 index 9b7f5a8ac..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m +++ /dev/null @@ -1,411 +0,0 @@ -// -// SDLStreamingDataManager.m -// SmartDeviceLink-iOS -// -// Created by Joel Fischer on 8/11/15. -// Copyright (c) 2015 smartdevicelink. All rights reserved. -// - -#import "SDLStreamingMediaManager.h" - -@import UIKit; - -#import "SDLAbstractProtocol.h" -#import "SDLGlobals.h" - - -NSString *const SDLErrorDomainStreamingMediaVideo = @"com.sdl.streamingmediamanager.video"; -NSString *const SDLErrorDomainStreamingMediaAudio = @"com.sdl.streamingmediamanager.audio"; - - -NS_ASSUME_NONNULL_BEGIN - -@interface SDLStreamingMediaManager () - -@property (assign, nonatomic, nullable) VTCompressionSessionRef compressionSession; - -@property (assign, nonatomic) NSUInteger currentFrameNumber; - -@property (assign, nonatomic, readwrite) BOOL videoSessionConnected; -@property (assign, nonatomic, readwrite) BOOL audioSessionConnected; - -@property (weak, nonatomic) SDLAbstractProtocol *protocol; - -@property (copy, nonatomic, nullable) SDLStreamingStartBlock videoStartBlock; -@property (copy, nonatomic, nullable) SDLStreamingStartBlock audioStartBlock; - -@end - - -@implementation SDLStreamingMediaManager - -#pragma mark - Class Lifecycle - -- (instancetype)initWithProtocol:(SDLAbstractProtocol *)protocol { - self = [super init]; - if (!self) { - return nil; - } - - _compressionSession = NULL; - - _currentFrameNumber = 0; - _videoSessionConnected = NO; - _audioSessionConnected = NO; - _protocol = protocol; - - _videoStartBlock = nil; - _audioStartBlock = nil; - - return self; -} - - -#pragma mark - Streaming media lifecycle - -- (void)startVideoSessionWithStartBlock:(SDLStreamingStartBlock)startBlock { - if (SDL_SYSTEM_VERSION_LESS_THAN(@"8.0")) { - NSAssert(NO, @"SDL Video Sessions can only be run on iOS 8+ devices"); - startBlock(NO, [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLSTreamingVideoErrorInvalidOperatingSystemVersion userInfo:nil]); - - return; - } - - - self.videoStartBlock = [startBlock copy]; - - [self.protocol sendStartSessionWithType:SDLServiceType_Video]; -} - -- (void)stopVideoSession { - if (!self.videoSessionConnected) { - return; - } - - [self.protocol sendEndSessionWithType:SDLServiceType_Video]; -} - -- (void)startAudioStreamingWithStartBlock:(SDLStreamingStartBlock)startBlock { - self.audioStartBlock = [startBlock copy]; - - [self.protocol sendStartSessionWithType:SDLServiceType_Audio]; -} - -- (void)stopAudioSession { - if (!self.audioSessionConnected) { - return; - } - - [self.protocol sendEndSessionWithType:SDLServiceType_Audio]; -} - - -#pragma mark - Send media data - -- (BOOL)sendVideoData:(CVImageBufferRef)imageBuffer { - if (!self.videoSessionConnected) { - return NO; - } - - // TODO (Joel F.)[2015-08-17]: Somehow monitor connection to make sure we're not clogging the connection with data. - OSStatus status = VTCompressionSessionEncodeFrame(_compressionSession, imageBuffer, CMTimeMake(self.currentFrameNumber++, 30), kCMTimeInvalid, NULL, (__bridge void *)self, NULL); - - return (status == noErr); -} - -- (BOOL)sendAudioData:(NSData *)pcmAudioData { - if (!self.audioSessionConnected) { - return NO; - } - - dispatch_async([self.class sdl_streamingDataSerialQueue], ^{ - @autoreleasepool { - [self.protocol sendRawData:pcmAudioData withServiceType:SDLServiceType_Audio]; - } - }); - - return YES; -} - - -#pragma mark - SDLProtocolListener Methods - -- (void)handleProtocolStartSessionACK:(SDLServiceType)serviceType sessionID:(Byte)sessionID version:(Byte)version { - switch (serviceType) { - case SDLServiceType_Audio: { - self.audioSessionConnected = YES; - self.audioStartBlock(YES, nil); - self.audioStartBlock = nil; - } break; - case SDLServiceType_Video: { - NSError *error = nil; - BOOL success = [self sdl_configureVideoEncoderWithError:&error]; - - if (!success) { - [self sdl_teardownCompressionSession]; - self.videoStartBlock(NO, error); - self.videoStartBlock = nil; - - return; - } - - self.videoSessionConnected = YES; - self.videoStartBlock(YES, nil); - self.videoStartBlock = nil; - } break; - default: break; - } -} - -- (void)handleProtocolStartSessionNACK:(SDLServiceType)serviceType { - switch (serviceType) { - case SDLServiceType_Audio: { - NSError *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaAudio code:SDLStreamingAudioErrorHeadUnitNACK userInfo:nil]; - - self.audioStartBlock(NO, error); - self.audioStartBlock = nil; - } break; - case SDLServiceType_Video: { - NSError *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorHeadUnitNACK userInfo:nil]; - - self.videoStartBlock(NO, error); - self.videoStartBlock = nil; - } break; - default: break; - } -} - -- (void)handleProtocolEndSessionACK:(SDLServiceType)serviceType { - switch (serviceType) { - case SDLServiceType_Audio: { - self.audioSessionConnected = NO; - } break; - case SDLServiceType_Video: { - self.videoSessionConnected = NO; - [self sdl_teardownCompressionSession]; - } break; - default: break; - } -} - -- (void)handleProtocolEndSessionNACK:(SDLServiceType)serviceType { - // TODO (Joel F.)[2015-08-17]: This really, really shouldn't ever happen. Should we assert? Do nothing? We don't have any additional info on why this failed. -} - - -#pragma mark - Video Encoding - -#pragma mark Lifecycle - -- (void)sdl_teardownCompressionSession { - VTCompressionSessionInvalidate(self.compressionSession); - CFRelease(self.compressionSession); -} - - -#pragma mark Callbacks - -void sdl_videoEncoderOutputCallback(void *outputCallbackRefCon, void *sourceFrameRefCon, OSStatus status, VTEncodeInfoFlags infoFlags, CMSampleBufferRef sampleBuffer) { - // If there was an error in the encoding, drop the frame - if (status != noErr) { - NSLog(@"Error encoding video, err=%lld", (int64_t)status); - return; - } - - SDLStreamingMediaManager *mediaManager = (__bridge SDLStreamingMediaManager *)sourceFrameRefCon; - NSData *elementaryStreamData = [mediaManager.class sdl_encodeElementaryStreamWithSampleBuffer:sampleBuffer]; - [mediaManager.protocol sendRawData:elementaryStreamData withServiceType:SDLServiceType_Video]; -} - - -#pragma mark Configuration - -- (BOOL)sdl_configureVideoEncoderWithError:(NSError *__autoreleasing *)error { - OSStatus status; - - // Create a compression session - // TODO (Joel F.)[2015-08-18]: Dimensions should be from the Head Unit - status = VTCompressionSessionCreate(NULL, 640, 480, kCMVideoCodecType_H264, NULL, NULL, NULL, &sdl_videoEncoderOutputCallback, (__bridge void *)self, &_compressionSession); - - if (status != noErr) { - // TODO: Log the error - if (*error != nil) { - *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationCompressionSessionCreationFailure userInfo:@{ @"OSStatus" : @(status) }]; - } - - return NO; - } - - // Set the bitrate of our video compression - int bitRate = 5000; - CFNumberRef bitRateNumRef = CFNumberCreate(NULL, kCFNumberSInt32Type, &bitRate); - if (bitRateNumRef == NULL) { - // TODO: Log & end session - if (*error != nil) { - *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationAllocationFailure userInfo:nil]; - } - - return NO; - } - - status = VTSessionSetProperty(self.compressionSession, kVTCompressionPropertyKey_AverageBitRate, bitRateNumRef); - - // Release our bitrate number - CFRelease(bitRateNumRef); - bitRateNumRef = NULL; - - if (status != noErr) { - // TODO: Log & End session - if (*error != nil) { - *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure userInfo:@{ @"OSStatus" : @(status) }]; - } - - return NO; - } - - // Set the profile level of the video stream - status = VTSessionSetProperty(self.compressionSession, kVTCompressionPropertyKey_ProfileLevel, kVTProfileLevel_H264_Baseline_AutoLevel); - if (status != noErr) { - if (*error != nil) { - *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure userInfo:@{ @"OSStatus" : @(status) }]; - } - - return NO; - } - - // Set the session to compress in real time - status = VTSessionSetProperty(self.compressionSession, kVTCompressionPropertyKey_RealTime, kCFBooleanTrue); - if (status != noErr) { - if (*error != nil) { - *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure userInfo:@{ @"OSStatus" : @(status) }]; - } - - return NO; - } - - // Set the key-frame interval - // TODO: This may be unnecessary, can the encoder do a better job than us? - int interval = 50; - CFNumberRef intervalNumRef = CFNumberCreate(NULL, kCFNumberSInt32Type, &interval); - if (intervalNumRef == NULL) { - if (*error != nil) { - *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationAllocationFailure userInfo:nil]; - } - - return NO; - } - - status = VTSessionSetProperty(self.compressionSession, kVTCompressionPropertyKey_MaxKeyFrameInterval, intervalNumRef); - - CFRelease(intervalNumRef); - intervalNumRef = NULL; - - if (status != noErr) { - if (*error != nil) { - *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure userInfo:@{ @"OSStatus" : @(status) }]; - } - - return NO; - } - - return YES; -} - -#pragma mark Elementary Stream Formatting - -+ (NSData *)sdl_encodeElementaryStreamWithSampleBuffer:(CMSampleBufferRef)sampleBuffer { - // Creating an elementaryStream: http://stackoverflow.com/questions/28396622/extracting-h264-from-cmblockbuffer - - NSMutableData *elementaryStream = [NSMutableData data]; - BOOL isIFrame = NO; - CFArrayRef attachmentsArray = CMSampleBufferGetSampleAttachmentsArray(sampleBuffer, 0); - - if (CFArrayGetCount(attachmentsArray)) { - CFBooleanRef notSync; - CFDictionaryRef dict = CFArrayGetValueAtIndex(attachmentsArray, 0); - BOOL keyExists = CFDictionaryGetValueIfPresent(dict, - kCMSampleAttachmentKey_NotSync, - (const void **)¬Sync); - - // Find out if the sample buffer contains an I-Frame (sync frame). If so we will write the SPS and PPS NAL units to the elementary stream. - isIFrame = !keyExists || !CFBooleanGetValue(notSync); - } - - // This is the start code that we will write to the elementary stream before every NAL unit - static const size_t startCodeLength = 4; - static const uint8_t startCode[] = {0x00, 0x00, 0x00, 0x01}; - - // Write the SPS and PPS NAL units to the elementary stream before every I-Frame - if (isIFrame) { - CMFormatDescriptionRef description = CMSampleBufferGetFormatDescription(sampleBuffer); - - // Find out how many parameter sets there are - size_t numberOfParameterSets; - CMVideoFormatDescriptionGetH264ParameterSetAtIndex(description, - 0, - NULL, - NULL, - &numberOfParameterSets, - NULL); - - // Write each parameter set to the elementary stream - for (int i = 0; i < numberOfParameterSets; i++) { - const uint8_t *parameterSetPointer; - size_t parameterSetLength; - CMVideoFormatDescriptionGetH264ParameterSetAtIndex(description, - i, - ¶meterSetPointer, - ¶meterSetLength, - NULL, - NULL); - - // Write the parameter set to the elementary stream - [elementaryStream appendBytes:startCode length:startCodeLength]; - [elementaryStream appendBytes:parameterSetPointer length:parameterSetLength]; - } - } - - // Get a pointer to the raw AVCC NAL unit data in the sample buffer - size_t blockBufferLength = 0; - char *bufferDataPointer = NULL; - CMBlockBufferRef blockBufferRef = CMSampleBufferGetDataBuffer(sampleBuffer); - - CMBlockBufferGetDataPointer(blockBufferRef, 0, NULL, &blockBufferLength, &bufferDataPointer); - - // Loop through all the NAL units in the block buffer and write them to the elementary stream with start codes instead of AVCC length headers - size_t bufferOffset = 0; - static const int AVCCHeaderLength = 4; - while (bufferOffset < blockBufferLength - AVCCHeaderLength) { - // Read the NAL unit length - uint32_t NALUnitLength = 0; - memcpy(&NALUnitLength, bufferDataPointer + bufferOffset, AVCCHeaderLength); - - // Convert the length value from Big-endian to Little-endian - NALUnitLength = CFSwapInt32BigToHost(NALUnitLength); - [elementaryStream appendBytes:startCode length:startCodeLength]; - - // Write the NAL unit without the AVCC length header to the elementary stream - [elementaryStream appendBytes:bufferDataPointer + bufferOffset + AVCCHeaderLength length:NALUnitLength]; - - // Move to the next NAL unit in the block buffer - bufferOffset += AVCCHeaderLength + NALUnitLength; - } - - return [elementaryStream copy]; -} - -#pragma mark - Private static singleton variables - -+ (dispatch_queue_t)sdl_streamingDataSerialQueue { - static dispatch_queue_t streamingDataQueue = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - streamingDataQueue = dispatch_queue_create("com.sdl.videoaudiostreaming.encoder", DISPATCH_QUEUE_SERIAL); - }); - - return streamingDataQueue; -} - -@end - -NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.h deleted file mode 100644 index a01df2d16..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.h +++ /dev/null @@ -1,80 +0,0 @@ -// SDLSubscribeButton.h -// - - -#import "SDLRPCRequest.h" - -@class SDLButtonName; - - -/** - * Establishes a subscription to button notifications for HMI buttons. Buttons - * are not necessarily physical buttons, but can also be "soft" buttons on a - * touch screen, depending on the display in the vehicle. Once subscribed to a - * particular button, an application will receive both - * SDLOnButtonEvent and SDLOnButtonPress notifications - * whenever that button is pressed. The application may also unsubscribe from - * notifications for a button by invoking the SDLUnsubscribeButton - * operation - *

    - * When a button is depressed, an SDLOnButtonEvent notification is - * sent to the application with a ButtonEventMode of BUTTONDOWN. When that same - * button is released, an SDLOnButtonEvent notification is sent to the - * application with a ButtonEventMode of BUTTONUP - *

    - * When the duration of a button depression (that is, time between depression - * and release) is less than two seconds, an SDLOnButtonPress - * notification is sent to the application (at the moment the button is - * released) with a ButtonPressMode of SHORT. When the duration is two or more - * seconds, an SDLOnButtonPress notification is sent to the - * application (at the moment the two seconds have elapsed) with a - * ButtonPressMode of LONG - *

    - * The purpose of SDLOnButtonPress notifications is to allow for - * programmatic detection of long button presses similar to those used to store - * presets while listening to the radio, for example - *

    - * When a button is depressed and released, the sequence in which notifications - * will be sent to the application is as follows: - *

    - * For short presses:
    - *

      - *
    • OnButtonEvent (ButtonEventMode = BUTTONDOWN)
    • - *
    • OnButtonEvent (ButtonEventMode = BUTTONUP)
    • - *
    • OnButtonPress (ButtonPressMode = SHORT)
    • - *
    - *

    - * For long presses:
    - *

      - *
    • OnButtonEvent (ButtonEventMode = BUTTONDOWN)
    • - *
    • OnButtonEvent (ButtonEventMode = BUTTONUP)
    • - *
    • OnButtonPress (ButtonPressMode = LONG)
    • - *
    - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - * - * Since SmartDeviceLink 1.0
    - * See SDLUnsubscribeButton - */ -@interface SDLSubscribeButton : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLSubscribeButton object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLSubscribeButton object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The name of the button to subscribe to - * @discussion An enum value, see SDLButtonName - */ -@property (strong) SDLButtonName *buttonName; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.m deleted file mode 100644 index 58a28a797..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.m +++ /dev/null @@ -1,42 +0,0 @@ -// SDLSubscribeButton.m -// - - -#import "SDLSubscribeButton.h" - -#import "SDLButtonName.h" -#import "SDLNames.h" - - -@implementation SDLSubscribeButton - -- (instancetype)init { - if (self = [super initWithName:NAMES_SubscribeButton]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setButtonName:(SDLButtonName *)buttonName { - if (buttonName != nil) { - [parameters setObject:buttonName forKey:NAMES_buttonName]; - } else { - [parameters removeObjectForKey:NAMES_buttonName]; - } -} - -- (SDLButtonName *)buttonName { - NSObject *obj = [parameters objectForKey:NAMES_buttonName]; - if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) { - return (SDLButtonName *)obj; - } else { - return [SDLButtonName valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButtonResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButtonResponse.h deleted file mode 100644 index b38eb5a27..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButtonResponse.h +++ /dev/null @@ -1,26 +0,0 @@ -// SDLSubscribeButtonResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * SubscribeButton Response is sent, when SDLSubscribeButton has been called - * - * Since SmartDeviceLink 1.0 - */ -@interface SDLSubscribeButtonResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLSubscribeButtonResponse object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLSubscribeButtonResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButtonResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButtonResponse.m deleted file mode 100644 index a70d58ede..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButtonResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLSubscribeButtonResponse.m -// - - -#import "SDLSubscribeButtonResponse.h" - -#import "SDLNames.h" - -@implementation SDLSubscribeButtonResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_SubscribeButton]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.h deleted file mode 100644 index e357cd484..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.h +++ /dev/null @@ -1,139 +0,0 @@ -// SDLSubscribeVehicleData.h -// - - -#import "SDLRPCRequest.h" - -/** - * Subscribes for specific published vehicle data items. The data will be only - * sent, if it has changed. The application will be notified by the - * onVehicleData notification whenever new data is available. The update rate is - * very much dependent on sensors, vehicle architecture and vehicle type. Be - * also prepared for the situation that a signal is not available on a vehicle - *

    - * Function Group: Location, VehicleInfo and DrivingChara - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - * - * Since SmartDeviceLink 2.0
    - * See SDLUnsubscribeVehicleData SDLGetVehicleData - */ -@interface SDLSubscribeVehicleData : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLSubscribeVehicleData object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLSubscribeVehicleData object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A boolean value. If true, subscribes Gps data - */ -@property (strong) NSNumber *gps; - -/** - * @abstract A boolean value. If true, subscribes speed data - */ -@property (strong) NSNumber *speed; - -/** - * @abstract A boolean value. If true, subscribes rpm data - */ -@property (strong) NSNumber *rpm; - -/** - * @abstract A boolean value. If true, subscribes FuelLevel data - */ -@property (strong) NSNumber *fuelLevel; - -/** - * @abstract A boolean value. If true, subscribes fuelLevel_State data - */ -@property (strong) NSNumber *fuelLevel_State; - -/** - * @abstract A boolean value. If true, subscribes instantFuelConsumption data - */ -@property (strong) NSNumber *instantFuelConsumption; - -/** - * @abstract A boolean value. If true, subscribes externalTemperature data - */ -@property (strong) NSNumber *externalTemperature; - -/** - * @abstract A boolean value. If true, subscribes Currently selected gear data - */ -@property (strong) NSNumber *prndl; - -/** - * @abstract A boolean value. If true, subscribes tire pressure status data - */ -@property (strong) NSNumber *tirePressure; - -/** - * @abstract A boolean value. If true, subscribes odometer data - */ -@property (strong) NSNumber *odometer; - -/** - * @abstract A boolean value. If true, subscribes belt Status data - */ -@property (strong) NSNumber *beltStatus; - -/** - * @abstract A boolean value. If true, subscribes body Information data - */ -@property (strong) NSNumber *bodyInformation; - -/** - * @abstract A boolean value. If true, subscribes device Status data - */ -@property (strong) NSNumber *deviceStatus; - -/** - * @abstract A boolean value. If true, subscribes driver Braking data - */ -@property (strong) NSNumber *driverBraking; - -/** - * @abstract A boolean value. If true, subscribes wiper Status data - */ -@property (strong) NSNumber *wiperStatus; - -/** - * @abstract A boolean value. If true, subscribes Head Lamp Status data - */ -@property (strong) NSNumber *headLampStatus; - -/** - * @abstract A boolean value. If true, subscribes Engine Torque data - */ -@property (strong) NSNumber *engineTorque; - -/** - * @abstract A boolean value. If true, means the accPedalPosition data has been - * subscribed. - */ -@property (strong) NSNumber *accPedalPosition; - -/** - * @abstract A boolean value. If true, means the steeringWheelAngle data has been - * subscribed. - */ -@property (strong) NSNumber *steeringWheelAngle; -@property (strong) NSNumber *eCallInfo; -@property (strong) NSNumber *airbagStatus; -@property (strong) NSNumber *emergencyEvent; -@property (strong) NSNumber *clusterModeStatus; -@property (strong) NSNumber *myKey; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.m deleted file mode 100644 index 55ec5e9d0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.m +++ /dev/null @@ -1,311 +0,0 @@ -// SDLSubscribeVehicleData.m -// - - -#import "SDLSubscribeVehicleData.h" - -#import "SDLNames.h" - -@implementation SDLSubscribeVehicleData - -- (instancetype)init { - if (self = [super initWithName:NAMES_SubscribeVehicleData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setGps:(NSNumber *)gps { - if (gps != nil) { - [parameters setObject:gps forKey:NAMES_gps]; - } else { - [parameters removeObjectForKey:NAMES_gps]; - } -} - -- (NSNumber *)gps { - return [parameters objectForKey:NAMES_gps]; -} - -- (void)setSpeed:(NSNumber *)speed { - if (speed != nil) { - [parameters setObject:speed forKey:NAMES_speed]; - } else { - [parameters removeObjectForKey:NAMES_speed]; - } -} - -- (NSNumber *)speed { - return [parameters objectForKey:NAMES_speed]; -} - -- (void)setRpm:(NSNumber *)rpm { - if (rpm != nil) { - [parameters setObject:rpm forKey:NAMES_rpm]; - } else { - [parameters removeObjectForKey:NAMES_rpm]; - } -} - -- (NSNumber *)rpm { - return [parameters objectForKey:NAMES_rpm]; -} - -- (void)setFuelLevel:(NSNumber *)fuelLevel { - if (fuelLevel != nil) { - [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel]; - } -} - -- (NSNumber *)fuelLevel { - return [parameters objectForKey:NAMES_fuelLevel]; -} - -- (void)setFuelLevel_State:(NSNumber *)fuelLevel_State { - if (fuelLevel_State != nil) { - [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel_State]; - } -} - -- (NSNumber *)fuelLevel_State { - return [parameters objectForKey:NAMES_fuelLevel_State]; -} - -- (void)setInstantFuelConsumption:(NSNumber *)instantFuelConsumption { - if (instantFuelConsumption != nil) { - [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; - } else { - [parameters removeObjectForKey:NAMES_instantFuelConsumption]; - } -} - -- (NSNumber *)instantFuelConsumption { - return [parameters objectForKey:NAMES_instantFuelConsumption]; -} - -- (void)setExternalTemperature:(NSNumber *)externalTemperature { - if (externalTemperature != nil) { - [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; - } else { - [parameters removeObjectForKey:NAMES_externalTemperature]; - } -} - -- (NSNumber *)externalTemperature { - return [parameters objectForKey:NAMES_externalTemperature]; -} - -- (void)setPrndl:(NSNumber *)prndl { - if (prndl != nil) { - [parameters setObject:prndl forKey:NAMES_prndl]; - } else { - [parameters removeObjectForKey:NAMES_prndl]; - } -} - -- (NSNumber *)prndl { - return [parameters objectForKey:NAMES_prndl]; -} - -- (void)setTirePressure:(NSNumber *)tirePressure { - if (tirePressure != nil) { - [parameters setObject:tirePressure forKey:NAMES_tirePressure]; - } else { - [parameters removeObjectForKey:NAMES_tirePressure]; - } -} - -- (NSNumber *)tirePressure { - return [parameters objectForKey:NAMES_tirePressure]; -} - -- (void)setOdometer:(NSNumber *)odometer { - if (odometer != nil) { - [parameters setObject:odometer forKey:NAMES_odometer]; - } else { - [parameters removeObjectForKey:NAMES_odometer]; - } -} - -- (NSNumber *)odometer { - return [parameters objectForKey:NAMES_odometer]; -} - -- (void)setBeltStatus:(NSNumber *)beltStatus { - if (beltStatus != nil) { - [parameters setObject:beltStatus forKey:NAMES_beltStatus]; - } else { - [parameters removeObjectForKey:NAMES_beltStatus]; - } -} - -- (NSNumber *)beltStatus { - return [parameters objectForKey:NAMES_beltStatus]; -} - -- (void)setBodyInformation:(NSNumber *)bodyInformation { - if (bodyInformation != nil) { - [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; - } else { - [parameters removeObjectForKey:NAMES_bodyInformation]; - } -} - -- (NSNumber *)bodyInformation { - return [parameters objectForKey:NAMES_bodyInformation]; -} - -- (void)setDeviceStatus:(NSNumber *)deviceStatus { - if (deviceStatus != nil) { - [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; - } else { - [parameters removeObjectForKey:NAMES_deviceStatus]; - } -} - -- (NSNumber *)deviceStatus { - return [parameters objectForKey:NAMES_deviceStatus]; -} - -- (void)setDriverBraking:(NSNumber *)driverBraking { - if (driverBraking != nil) { - [parameters setObject:driverBraking forKey:NAMES_driverBraking]; - } else { - [parameters removeObjectForKey:NAMES_driverBraking]; - } -} - -- (NSNumber *)driverBraking { - return [parameters objectForKey:NAMES_driverBraking]; -} - -- (void)setWiperStatus:(NSNumber *)wiperStatus { - if (wiperStatus != nil) { - [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; - } else { - [parameters removeObjectForKey:NAMES_wiperStatus]; - } -} - -- (NSNumber *)wiperStatus { - return [parameters objectForKey:NAMES_wiperStatus]; -} - -- (void)setHeadLampStatus:(NSNumber *)headLampStatus { - if (headLampStatus != nil) { - [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; - } else { - [parameters removeObjectForKey:NAMES_headLampStatus]; - } -} - -- (NSNumber *)headLampStatus { - return [parameters objectForKey:NAMES_headLampStatus]; -} - -- (void)setEngineTorque:(NSNumber *)engineTorque { - if (engineTorque != nil) { - [parameters setObject:engineTorque forKey:NAMES_engineTorque]; - } else { - [parameters removeObjectForKey:NAMES_engineTorque]; - } -} - -- (NSNumber *)engineTorque { - return [parameters objectForKey:NAMES_engineTorque]; -} - -- (void)setAccPedalPosition:(NSNumber *)accPedalPosition { - if (accPedalPosition != nil) { - [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; - } else { - [parameters removeObjectForKey:NAMES_accPedalPosition]; - } -} - -- (NSNumber *)accPedalPosition { - return [parameters objectForKey:NAMES_accPedalPosition]; -} - -- (void)setSteeringWheelAngle:(NSNumber *)steeringWheelAngle { - if (steeringWheelAngle != nil) { - [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; - } else { - [parameters removeObjectForKey:NAMES_steeringWheelAngle]; - } -} - -- (NSNumber *)steeringWheelAngle { - return [parameters objectForKey:NAMES_steeringWheelAngle]; -} - -- (void)setECallInfo:(NSNumber *)eCallInfo { - if (eCallInfo != nil) { - [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; - } else { - [parameters removeObjectForKey:NAMES_eCallInfo]; - } -} - -- (NSNumber *)eCallInfo { - return [parameters objectForKey:NAMES_eCallInfo]; -} - -- (void)setAirbagStatus:(NSNumber *)airbagStatus { - if (airbagStatus != nil) { - [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; - } else { - [parameters removeObjectForKey:NAMES_airbagStatus]; - } -} - -- (NSNumber *)airbagStatus { - return [parameters objectForKey:NAMES_airbagStatus]; -} - -- (void)setEmergencyEvent:(NSNumber *)emergencyEvent { - if (emergencyEvent != nil) { - [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; - } else { - [parameters removeObjectForKey:NAMES_emergencyEvent]; - } -} - -- (NSNumber *)emergencyEvent { - return [parameters objectForKey:NAMES_emergencyEvent]; -} - -- (void)setClusterModeStatus:(NSNumber *)clusterModeStatus { - if (clusterModeStatus != nil) { - [parameters setObject:clusterModeStatus forKey:NAMES_clusterModeStatus]; - } else { - [parameters removeObjectForKey:NAMES_clusterModeStatus]; - } -} - -- (NSNumber *)clusterModeStatus { - return [parameters objectForKey:NAMES_clusterModeStatus]; -} - -- (void)setMyKey:(NSNumber *)myKey { - if (myKey != nil) { - [parameters setObject:myKey forKey:NAMES_myKey]; - } else { - [parameters removeObjectForKey:NAMES_myKey]; - } -} - -- (NSNumber *)myKey { - return [parameters objectForKey:NAMES_myKey]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h deleted file mode 100644 index 0b4f15ca7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h +++ /dev/null @@ -1,130 +0,0 @@ -// SDLSubscribeVehicleDataResponse.h -// - -#import "SDLRPCResponse.h" - -@class SDLVehicleDataResult; - - -/** - * Subscribe Vehicle Data Response is sent, when SDLSubscribeVehicleData has been called - * - * Since SmartDeviceLink 2.0 - */ -@interface SDLSubscribeVehicleDataResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLSubscribeVehicleDataResponse object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLSubscribeVehicleDataResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - - -/** - * @abstract A SDLVehicleDataResult* value. See GPSData. - */ -@property (strong) SDLVehicleDataResult *gps; - -/** - * @abstract A SDLVehicleDataResult* value. The vehicle speed in kilometers per hour. - */ -@property (strong) SDLVehicleDataResult *speed; - -/** - * @abstract A SDLVehicleDataResult* value. The number of revolutions per minute of the engine. - */ -@property (strong) SDLVehicleDataResult *rpm; - -/** - * @abstract A SDLVehicleDataResult* value. The fuel level in the tank (percentage) - */ -@property (strong) SDLVehicleDataResult *fuelLevel; - -/** - * @abstract A SDLVehicleDataResult* value. The fuel level state. - */ -@property (strong) SDLVehicleDataResult *fuelLevel_State; - -/** - * @abstract A SDLVehicleDataResult* value. The instantaneous fuel consumption in microlitres. - */ -@property (strong) SDLVehicleDataResult *instantFuelConsumption; - -/** - * @abstract A SDLVehicleDataResult* value. The external temperature in degrees celsius. - */ -@property (strong) SDLVehicleDataResult *externalTemperature; - -/** - * @abstract A SDLVehicleDataResult* value. See PRNDL. - */ -@property (strong) SDLVehicleDataResult *prndl; - -/** - * @abstract A SDLVehicleDataResult* value. See TireStatus. - */ -@property (strong) SDLVehicleDataResult *tirePressure; - -/** - * @abstract A SDLVehicleDataResult* value. Odometer in km. - */ -@property (strong) SDLVehicleDataResult *odometer; - -/** - * @abstract A SDLVehicleDataResult* value. The status of the seat belts. - */ -@property (strong) SDLVehicleDataResult *beltStatus; - -/** - * @abstract A SDLVehicleDataResult* value. The body information including power modes. - */ -@property (strong) SDLVehicleDataResult *bodyInformation; - -/** - * @abstract A SDLVehicleDataResult* value. The device status including signal and battery strength. - */ -@property (strong) SDLVehicleDataResult *deviceStatus; - -/** - * @abstract A SDLVehicleDataResult* value. The status of the brake pedal. - */ -@property (strong) SDLVehicleDataResult *driverBraking; - -/** - * @abstract A SDLVehicleDataResult* value. The status of the wipers. - */ -@property (strong) SDLVehicleDataResult *wiperStatus; - -/** - * @abstract A SDLVehicleDataResult* value. Status of the head lamps. - */ -@property (strong) SDLVehicleDataResult *headLampStatus; - -/** - * @abstract A SDLVehicleDataResult* value. Torque value for engine (in Nm) on non-diesel variants. - */ -@property (strong) SDLVehicleDataResult *engineTorque; - -/** - * @abstract A SDLVehicleDataResult* value. Accelerator pedal position (percentage depressed) - */ -@property (strong) SDLVehicleDataResult *accPedalPosition; - -/** - * @abstract A SDLVehicleDataResult* value. Current angle of the steering wheel (in deg) - */ -@property (strong) SDLVehicleDataResult *steeringWheelAngle; -@property (strong) SDLVehicleDataResult *eCallInfo; -@property (strong) SDLVehicleDataResult *airbagStatus; -@property (strong) SDLVehicleDataResult *emergencyEvent; -@property (strong) SDLVehicleDataResult *clusterModes; -@property (strong) SDLVehicleDataResult *myKey; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.m deleted file mode 100644 index 5afa5f1be..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.m +++ /dev/null @@ -1,433 +0,0 @@ -// SDLSubscribeVehicleDataResponse.m -// - - -#import "SDLSubscribeVehicleDataResponse.h" - -#import "SDLNames.h" -#import "SDLVehicleDataResult.h" - - -@implementation SDLSubscribeVehicleDataResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_SubscribeVehicleData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setGps:(SDLVehicleDataResult *)gps { - if (gps != nil) { - [parameters setObject:gps forKey:NAMES_gps]; - } else { - [parameters removeObjectForKey:NAMES_gps]; - } -} - -- (SDLVehicleDataResult *)gps { - NSObject *obj = [parameters objectForKey:NAMES_gps]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setSpeed:(SDLVehicleDataResult *)speed { - if (speed != nil) { - [parameters setObject:speed forKey:NAMES_speed]; - } else { - [parameters removeObjectForKey:NAMES_speed]; - } -} - -- (SDLVehicleDataResult *)speed { - NSObject *obj = [parameters objectForKey:NAMES_speed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setRpm:(SDLVehicleDataResult *)rpm { - if (rpm != nil) { - [parameters setObject:rpm forKey:NAMES_rpm]; - } else { - [parameters removeObjectForKey:NAMES_rpm]; - } -} - -- (SDLVehicleDataResult *)rpm { - NSObject *obj = [parameters objectForKey:NAMES_rpm]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setFuelLevel:(SDLVehicleDataResult *)fuelLevel { - if (fuelLevel != nil) { - [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel]; - } -} - -- (SDLVehicleDataResult *)fuelLevel { - NSObject *obj = [parameters objectForKey:NAMES_fuelLevel]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setFuelLevel_State:(SDLVehicleDataResult *)fuelLevel_State { - if (fuelLevel_State != nil) { - [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel_State]; - } -} - -- (SDLVehicleDataResult *)fuelLevel_State { - NSObject *obj = [parameters objectForKey:NAMES_fuelLevel_State]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setInstantFuelConsumption:(SDLVehicleDataResult *)instantFuelConsumption { - if (instantFuelConsumption != nil) { - [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; - } else { - [parameters removeObjectForKey:NAMES_instantFuelConsumption]; - } -} - -- (SDLVehicleDataResult *)instantFuelConsumption { - NSObject *obj = [parameters objectForKey:NAMES_instantFuelConsumption]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setExternalTemperature:(SDLVehicleDataResult *)externalTemperature { - if (externalTemperature != nil) { - [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; - } else { - [parameters removeObjectForKey:NAMES_externalTemperature]; - } -} - -- (SDLVehicleDataResult *)externalTemperature { - NSObject *obj = [parameters objectForKey:NAMES_externalTemperature]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setPrndl:(SDLVehicleDataResult *)prndl { - if (prndl != nil) { - [parameters setObject:prndl forKey:NAMES_prndl]; - } else { - [parameters removeObjectForKey:NAMES_prndl]; - } -} - -- (SDLVehicleDataResult *)prndl { - NSObject *obj = [parameters objectForKey:NAMES_prndl]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setTirePressure:(SDLVehicleDataResult *)tirePressure { - if (tirePressure != nil) { - [parameters setObject:tirePressure forKey:NAMES_tirePressure]; - } else { - [parameters removeObjectForKey:NAMES_tirePressure]; - } -} - -- (SDLVehicleDataResult *)tirePressure { - NSObject *obj = [parameters objectForKey:NAMES_tirePressure]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setOdometer:(SDLVehicleDataResult *)odometer { - if (odometer != nil) { - [parameters setObject:odometer forKey:NAMES_odometer]; - } else { - [parameters removeObjectForKey:NAMES_odometer]; - } -} - -- (SDLVehicleDataResult *)odometer { - NSObject *obj = [parameters objectForKey:NAMES_odometer]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setBeltStatus:(SDLVehicleDataResult *)beltStatus { - if (beltStatus != nil) { - [parameters setObject:beltStatus forKey:NAMES_beltStatus]; - } else { - [parameters removeObjectForKey:NAMES_beltStatus]; - } -} - -- (SDLVehicleDataResult *)beltStatus { - NSObject *obj = [parameters objectForKey:NAMES_beltStatus]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setBodyInformation:(SDLVehicleDataResult *)bodyInformation { - if (bodyInformation != nil) { - [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; - } else { - [parameters removeObjectForKey:NAMES_bodyInformation]; - } -} - -- (SDLVehicleDataResult *)bodyInformation { - NSObject *obj = [parameters objectForKey:NAMES_bodyInformation]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setDeviceStatus:(SDLVehicleDataResult *)deviceStatus { - if (deviceStatus != nil) { - [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; - } else { - [parameters removeObjectForKey:NAMES_deviceStatus]; - } -} - -- (SDLVehicleDataResult *)deviceStatus { - NSObject *obj = [parameters objectForKey:NAMES_deviceStatus]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setDriverBraking:(SDLVehicleDataResult *)driverBraking { - if (driverBraking != nil) { - [parameters setObject:driverBraking forKey:NAMES_driverBraking]; - } else { - [parameters removeObjectForKey:NAMES_driverBraking]; - } -} - -- (SDLVehicleDataResult *)driverBraking { - NSObject *obj = [parameters objectForKey:NAMES_driverBraking]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setWiperStatus:(SDLVehicleDataResult *)wiperStatus { - if (wiperStatus != nil) { - [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; - } else { - [parameters removeObjectForKey:NAMES_wiperStatus]; - } -} - -- (SDLVehicleDataResult *)wiperStatus { - NSObject *obj = [parameters objectForKey:NAMES_wiperStatus]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setHeadLampStatus:(SDLVehicleDataResult *)headLampStatus { - if (headLampStatus != nil) { - [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; - } else { - [parameters removeObjectForKey:NAMES_headLampStatus]; - } -} - -- (SDLVehicleDataResult *)headLampStatus { - NSObject *obj = [parameters objectForKey:NAMES_headLampStatus]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setEngineTorque:(SDLVehicleDataResult *)engineTorque { - if (engineTorque != nil) { - [parameters setObject:engineTorque forKey:NAMES_engineTorque]; - } else { - [parameters removeObjectForKey:NAMES_engineTorque]; - } -} - -- (SDLVehicleDataResult *)engineTorque { - NSObject *obj = [parameters objectForKey:NAMES_engineTorque]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setAccPedalPosition:(SDLVehicleDataResult *)accPedalPosition { - if (accPedalPosition != nil) { - [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; - } else { - [parameters removeObjectForKey:NAMES_accPedalPosition]; - } -} - -- (SDLVehicleDataResult *)accPedalPosition { - NSObject *obj = [parameters objectForKey:NAMES_accPedalPosition]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setSteeringWheelAngle:(SDLVehicleDataResult *)steeringWheelAngle { - if (steeringWheelAngle != nil) { - [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; - } else { - [parameters removeObjectForKey:NAMES_steeringWheelAngle]; - } -} - -- (SDLVehicleDataResult *)steeringWheelAngle { - NSObject *obj = [parameters objectForKey:NAMES_steeringWheelAngle]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setECallInfo:(SDLVehicleDataResult *)eCallInfo { - if (eCallInfo != nil) { - [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; - } else { - [parameters removeObjectForKey:NAMES_eCallInfo]; - } -} - -- (SDLVehicleDataResult *)eCallInfo { - NSObject *obj = [parameters objectForKey:NAMES_eCallInfo]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setAirbagStatus:(SDLVehicleDataResult *)airbagStatus { - if (airbagStatus != nil) { - [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; - } else { - [parameters removeObjectForKey:NAMES_airbagStatus]; - } -} - -- (SDLVehicleDataResult *)airbagStatus { - NSObject *obj = [parameters objectForKey:NAMES_airbagStatus]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setEmergencyEvent:(SDLVehicleDataResult *)emergencyEvent { - if (emergencyEvent != nil) { - [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; - } else { - [parameters removeObjectForKey:NAMES_emergencyEvent]; - } -} - -- (SDLVehicleDataResult *)emergencyEvent { - NSObject *obj = [parameters objectForKey:NAMES_emergencyEvent]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setClusterModes:(SDLVehicleDataResult *)clusterModes { - if (clusterModes != nil) { - [parameters setObject:clusterModes forKey:NAMES_clusterModes]; - } else { - [parameters removeObjectForKey:NAMES_clusterModes]; - } -} - -- (SDLVehicleDataResult *)clusterModes { - NSObject *obj = [parameters objectForKey:NAMES_clusterModes]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setMyKey:(SDLVehicleDataResult *)myKey { - if (myKey != nil) { - [parameters setObject:myKey forKey:NAMES_myKey]; - } else { - [parameters removeObjectForKey:NAMES_myKey]; - } -} - -- (SDLVehicleDataResult *)myKey { - NSObject *obj = [parameters objectForKey:NAMES_myKey]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncMsgVersion.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncMsgVersion.h deleted file mode 100644 index 98b573eec..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncMsgVersion.h +++ /dev/null @@ -1,39 +0,0 @@ -// SDLSyncMsgVersion.h -// - - -#import "SDLRPCMessage.h" - -/** - * Specifies the version number of the SDL V4 interface. This is used by both the application and SDL to declare what interface version each is using. - * - * @since SDL 1.0 - */ -@interface SDLSyncMsgVersion : SDLRPCStruct { -} - -/** - * @abstract Constructs a newly allocated SDLSyncMsgVersion object - */ -- (instancetype)init; - -/** - * @abstract Constructs a newly allocated SDLSyncMsgVersion object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The major version indicates versions that is not-compatible to previous versions - * - * Required, Integer, 1 - 10 - */ -@property (strong) NSNumber *majorVersion; -/** - * @abstract The minor version indicates a change to a previous version that should still allow to be run on an older version (with limited functionality) - * - * Required, Integer, 0 - 1000 - */ -@property (strong) NSNumber *minorVersion; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncMsgVersion.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncMsgVersion.m deleted file mode 100644 index 2d516539e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncMsgVersion.m +++ /dev/null @@ -1,50 +0,0 @@ -// SDLSyncMsgVersion.m -// - - -#import "SDLSyncMsgVersion.h" - -#import "SDLNames.h" - -@implementation SDLSyncMsgVersion - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setMajorVersion:(NSNumber *)majorVersion { - if (majorVersion != nil) { - [store setObject:majorVersion forKey:NAMES_majorVersion]; - } else { - [store removeObjectForKey:NAMES_majorVersion]; - } -} - -- (NSNumber *)majorVersion { - return [store objectForKey:NAMES_majorVersion]; -} - -- (void)setMinorVersion:(NSNumber *)minorVersion { - if (minorVersion != nil) { - [store setObject:minorVersion forKey:NAMES_minorVersion]; - } else { - [store removeObjectForKey:NAMES_minorVersion]; - } -} - -- (NSNumber *)minorVersion { - return [store objectForKey:NAMES_minorVersion]; -} - -- (NSString *)description { - return [NSString stringWithFormat:@"%@.%@", self.majorVersion, self.minorVersion]; -} -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.h deleted file mode 100644 index e71ea600d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.h +++ /dev/null @@ -1,13 +0,0 @@ -// SDLSyncPData.h -// - - -#import "SDLRPCRequest.h" - -@interface SDLSyncPData : SDLRPCRequest { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.m deleted file mode 100644 index c8730a2f1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLSyncPData.m -// - - -#import "SDLSyncPData.h" - -#import "SDLNames.h" - -@implementation SDLSyncPData - -- (instancetype)init { - if (self = [super initWithName:NAMES_SyncPData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPDataResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPDataResponse.h deleted file mode 100644 index 25a12b74a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPDataResponse.h +++ /dev/null @@ -1,13 +0,0 @@ -// SDLSyncPDataResponse.h -// - - -#import "SDLRPCResponse.h" - -@interface SDLSyncPDataResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPDataResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPDataResponse.m deleted file mode 100644 index 00edf14b1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPDataResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLSyncPDataResponse.m -// - - -#import "SDLSyncPDataResponse.h" - -#import "SDLNames.h" - -@implementation SDLSyncPDataResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_SyncPData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemAction.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemAction.h deleted file mode 100644 index 55371e87d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemAction.h +++ /dev/null @@ -1,39 +0,0 @@ -// SDLSystemAction.h -// - - -#import "SDLEnum.h" - -/** - * - * Enumeration that describes system actions that can be triggered. - */ -@interface SDLSystemAction : SDLEnum { -} - -/** - * Convert String to SDLSystemAction - * @param value String - * @return SDLSystemAction - */ -+ (SDLSystemAction *)valueOf:(NSString *)value; -/** - @abstract Store the enumeration of all possible SDLSystemAction - @return an array that store all possible SDLSystemAction - */ -+ (NSArray *)values; - -/** - @abstract Default_Action - */ -+ (SDLSystemAction *)DEFAULT_ACTION; -/** - @abstract Steal_Focus - */ -+ (SDLSystemAction *)STEAL_FOCUS; -/** - @abstract Keep_Context - */ -+ (SDLSystemAction *)KEEP_CONTEXT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemAction.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemAction.m deleted file mode 100644 index 15b34b08b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemAction.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLSystemAction.m -// - - -#import "SDLSystemAction.h" - -SDLSystemAction *SDLSystemAction_DEFAULT_ACTION = nil; -SDLSystemAction *SDLSystemAction_STEAL_FOCUS = nil; -SDLSystemAction *SDLSystemAction_KEEP_CONTEXT = nil; - -NSArray *SDLSystemAction_values = nil; - -@implementation SDLSystemAction - -+ (SDLSystemAction *)valueOf:(NSString *)value { - for (SDLSystemAction *item in SDLSystemAction.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLSystemAction_values == nil) { - SDLSystemAction_values = @[ - SDLSystemAction.DEFAULT_ACTION, - SDLSystemAction.STEAL_FOCUS, - SDLSystemAction.KEEP_CONTEXT, - ]; - } - return SDLSystemAction_values; -} - -+ (SDLSystemAction *)DEFAULT_ACTION { - if (SDLSystemAction_DEFAULT_ACTION == nil) { - SDLSystemAction_DEFAULT_ACTION = [[SDLSystemAction alloc] initWithValue:@"DEFAULT_ACTION"]; - } - return SDLSystemAction_DEFAULT_ACTION; -} - -+ (SDLSystemAction *)STEAL_FOCUS { - if (SDLSystemAction_STEAL_FOCUS == nil) { - SDLSystemAction_STEAL_FOCUS = [[SDLSystemAction alloc] initWithValue:@"STEAL_FOCUS"]; - } - return SDLSystemAction_STEAL_FOCUS; -} - -+ (SDLSystemAction *)KEEP_CONTEXT { - if (SDLSystemAction_KEEP_CONTEXT == nil) { - SDLSystemAction_KEEP_CONTEXT = [[SDLSystemAction alloc] initWithValue:@"KEEP_CONTEXT"]; - } - return SDLSystemAction_KEEP_CONTEXT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemContext.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemContext.h deleted file mode 100644 index 89e92e420..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemContext.h +++ /dev/null @@ -1,70 +0,0 @@ -// SDLSystemContext.h -// - - -#import "SDLEnum.h" - -/** - * Indicates whether or not a user-initiated interaction is in progress, and if so, in what mode (i.e. MENU or VR). - * - * @since SDL 1.0 - */ -@interface SDLSystemContext : SDLEnum { -} - -/** - * Convert String to SDLSystemContext - * - * @param value String value to retrieve the object for - * - * @return SDLSystemContext - */ -+ (SDLSystemContext *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLSystemContext - * - * @return an array that store all possible SDLSystemContext - */ -+ (NSArray *)values; - -/** - * @abstract No user interaction (user-initiated or app-initiated) is in progress. - * - * @return SDLSystemContext object of value *MAIN* - */ -+ (SDLSystemContext *)MAIN; - -/** - * @abstract VR-oriented, user-initiated or app-initiated interaction is in-progress. - * - * @return SDLSystemContext object of value *VRSESSION* - */ -+ (SDLSystemContext *)VRSESSION; - -/** - * @abstract Menu-oriented, user-initiated or app-initiated interaction is in-progress. - * - * @return SDLSystemContext object of value *MENU* - */ -+ (SDLSystemContext *)MENU; - -/** - * @abstract The app's display HMI is currently being obscured by either a system or other app's overlay. - * - * @return SDLSystemContext object of value *HMI_OBSCURED* - * - * @since SDL 2.0 - */ -+ (SDLSystemContext *)HMI_OBSCURED; - -/** - * @abstract Broadcast only to whichever app has an alert currently being displayed. - * - * @return SDLSystemContext object of value *ALERT* - * - * @since SDL 2.0 - */ -+ (SDLSystemContext *)ALERT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemContext.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemContext.m deleted file mode 100644 index 76c5c9f38..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemContext.m +++ /dev/null @@ -1,74 +0,0 @@ -// SDLSystemContext.m -// - - -#import "SDLSystemContext.h" - -SDLSystemContext *SDLSystemContext_MAIN = nil; -SDLSystemContext *SDLSystemContext_VRSESSION = nil; -SDLSystemContext *SDLSystemContext_MENU = nil; -SDLSystemContext *SDLSystemContext_HMI_OBSCURED = nil; -SDLSystemContext *SDLSystemContext_ALERT = nil; - -NSArray *SDLSystemContext_values = nil; - -@implementation SDLSystemContext - -+ (SDLSystemContext *)valueOf:(NSString *)value { - for (SDLSystemContext *item in SDLSystemContext.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLSystemContext_values == nil) { - SDLSystemContext_values = @[ - SDLSystemContext.MAIN, - SDLSystemContext.VRSESSION, - SDLSystemContext.MENU, - SDLSystemContext.HMI_OBSCURED, - SDLSystemContext.ALERT, - ]; - } - return SDLSystemContext_values; -} - -+ (SDLSystemContext *)MAIN { - if (SDLSystemContext_MAIN == nil) { - SDLSystemContext_MAIN = [[SDLSystemContext alloc] initWithValue:@"MAIN"]; - } - return SDLSystemContext_MAIN; -} - -+ (SDLSystemContext *)VRSESSION { - if (SDLSystemContext_VRSESSION == nil) { - SDLSystemContext_VRSESSION = [[SDLSystemContext alloc] initWithValue:@"VRSESSION"]; - } - return SDLSystemContext_VRSESSION; -} - -+ (SDLSystemContext *)MENU { - if (SDLSystemContext_MENU == nil) { - SDLSystemContext_MENU = [[SDLSystemContext alloc] initWithValue:@"MENU"]; - } - return SDLSystemContext_MENU; -} - -+ (SDLSystemContext *)HMI_OBSCURED { - if (SDLSystemContext_HMI_OBSCURED == nil) { - SDLSystemContext_HMI_OBSCURED = [[SDLSystemContext alloc] initWithValue:@"HMI_OBSCURED"]; - } - return SDLSystemContext_HMI_OBSCURED; -} - -+ (SDLSystemContext *)ALERT { - if (SDLSystemContext_ALERT == nil) { - SDLSystemContext_ALERT = [[SDLSystemContext alloc] initWithValue:@"ALERT"]; - } - return SDLSystemContext_ALERT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.h deleted file mode 100644 index 479b5d18e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.h +++ /dev/null @@ -1,23 +0,0 @@ -// SDLSystemRequest.h -// - -#import "SDLRPCRequest.h" - -@class SDLRequestType; - - -/** An asynchronous request from the device; binary data can be included in hybrid part of message for some requests
    (such as HTTP, Proprietary, or Authentication requests) - *

    - * @since SmartDeviceLink 3.0 - * - */ -@interface SDLSystemRequest : SDLRPCRequest { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLRequestType *requestType; -@property (strong) NSString *fileName; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.m deleted file mode 100644 index 836b44447..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.m +++ /dev/null @@ -1,54 +0,0 @@ -// SDLSystemRequest.m -// - - -#import "SDLSystemRequest.h" - -#import "SDLNames.h" -#import "SDLRequestType.h" - - -@implementation SDLSystemRequest - -- (instancetype)init { - if (self = [super initWithName:NAMES_SystemRequest]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setRequestType:(SDLRequestType *)requestType { - if (requestType != nil) { - [parameters setObject:requestType forKey:NAMES_requestType]; - } else { - [parameters removeObjectForKey:NAMES_requestType]; - } -} - -- (SDLRequestType *)requestType { - NSObject *obj = [parameters objectForKey:NAMES_requestType]; - if (obj == nil || [obj isKindOfClass:SDLRequestType.class]) { - return (SDLRequestType *)obj; - } else { - return [SDLRequestType valueOf:(NSString *)obj]; - } -} - -- (void)setFileName:(NSString *)fileName { - if (fileName != nil) { - [parameters setObject:fileName forKey:NAMES_fileName]; - } else { - [parameters removeObjectForKey:NAMES_fileName]; - } -} - -- (NSString *)fileName { - return [parameters objectForKey:NAMES_fileName]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequestResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequestResponse.h deleted file mode 100644 index 4c99d605f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequestResponse.h +++ /dev/null @@ -1,16 +0,0 @@ -// SDLSystemRequestResponse.h -// - - -#import "SDLRPCResponse.h" - -/** SDLSystemRequestResponse is sent, when SDLSystemRequest has been called. - * SinceSmartDeviceLink 3.0 - */ -@interface SDLSystemRequestResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequestResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequestResponse.m deleted file mode 100644 index ba563e561..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequestResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLSystemRequestResponse.m -// - - -#import "SDLSystemRequestResponse.h" - -#import "SDLNames.h" - -@implementation SDLSystemRequestResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_SystemRequest]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h deleted file mode 100644 index 397f500dd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h +++ /dev/null @@ -1,24 +0,0 @@ -// SDLTBTState.h -// - - -#import "SDLEnum.h" - -@interface SDLTBTState : SDLEnum { -} - -+ (SDLTBTState *)valueOf:(NSString *)value; -+ (NSArray *)values; - -+ (SDLTBTState *)ROUTE_UPDATE_REQUEST; -+ (SDLTBTState *)ROUTE_ACCEPTED; -+ (SDLTBTState *)ROUTE_REFUSED; -+ (SDLTBTState *)ROUTE_CANCELLED; -+ (SDLTBTState *)ETA_REQUEST; -+ (SDLTBTState *)NEXT_TURN_REQUEST; -+ (SDLTBTState *)ROUTE_STATUS_REQUEST; -+ (SDLTBTState *)ROUTE_SUMMARY_REQUEST; -+ (SDLTBTState *)TRIP_STATUS_REQUEST; -+ (SDLTBTState *)ROUTE_UPDATE_REQUEST_TIMEOUT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.m deleted file mode 100644 index 0a2a23b8b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.m +++ /dev/null @@ -1,119 +0,0 @@ -// SDLTBTState.m -// - - -#import "SDLTBTState.h" - -SDLTBTState *SDLTBTState_ROUTE_UPDATE_REQUEST = nil; -SDLTBTState *SDLTBTState_ROUTE_ACCEPTED = nil; -SDLTBTState *SDLTBTState_ROUTE_REFUSED = nil; -SDLTBTState *SDLTBTState_ROUTE_CANCELLED = nil; -SDLTBTState *SDLTBTState_ETA_REQUEST = nil; -SDLTBTState *SDLTBTState_NEXT_TURN_REQUEST = nil; -SDLTBTState *SDLTBTState_ROUTE_STATUS_REQUEST = nil; -SDLTBTState *SDLTBTState_ROUTE_SUMMARY_REQUEST = nil; -SDLTBTState *SDLTBTState_TRIP_STATUS_REQUEST = nil; -SDLTBTState *SDLTBTState_ROUTE_UPDATE_REQUEST_TIMEOUT = nil; - -NSArray *SDLTBTState_values = nil; - -@implementation SDLTBTState - -+ (SDLTBTState *)valueOf:(NSString *)value { - for (SDLTBTState *item in SDLTBTState.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLTBTState_values == nil) { - SDLTBTState_values = @[ - SDLTBTState.ROUTE_UPDATE_REQUEST, - SDLTBTState.ROUTE_ACCEPTED, - SDLTBTState.ROUTE_REFUSED, - SDLTBTState.ROUTE_CANCELLED, - SDLTBTState.ETA_REQUEST, - SDLTBTState.NEXT_TURN_REQUEST, - SDLTBTState.ROUTE_STATUS_REQUEST, - SDLTBTState.ROUTE_SUMMARY_REQUEST, - SDLTBTState.TRIP_STATUS_REQUEST, - SDLTBTState.ROUTE_UPDATE_REQUEST_TIMEOUT, - ]; - } - return SDLTBTState_values; -} - -+ (SDLTBTState *)ROUTE_UPDATE_REQUEST { - if (SDLTBTState_ROUTE_UPDATE_REQUEST == nil) { - SDLTBTState_ROUTE_UPDATE_REQUEST = [[SDLTBTState alloc] initWithValue:@"ROUTE_UPDATE_REQUEST"]; - } - return SDLTBTState_ROUTE_UPDATE_REQUEST; -} - -+ (SDLTBTState *)ROUTE_ACCEPTED { - if (SDLTBTState_ROUTE_ACCEPTED == nil) { - SDLTBTState_ROUTE_ACCEPTED = [[SDLTBTState alloc] initWithValue:@"ROUTE_ACCEPTED"]; - } - return SDLTBTState_ROUTE_ACCEPTED; -} - -+ (SDLTBTState *)ROUTE_REFUSED { - if (SDLTBTState_ROUTE_REFUSED == nil) { - SDLTBTState_ROUTE_REFUSED = [[SDLTBTState alloc] initWithValue:@"ROUTE_REFUSED"]; - } - return SDLTBTState_ROUTE_REFUSED; -} - -+ (SDLTBTState *)ROUTE_CANCELLED { - if (SDLTBTState_ROUTE_CANCELLED == nil) { - SDLTBTState_ROUTE_CANCELLED = [[SDLTBTState alloc] initWithValue:@"ROUTE_CANCELLED"]; - } - return SDLTBTState_ROUTE_CANCELLED; -} - -+ (SDLTBTState *)ETA_REQUEST { - if (SDLTBTState_ETA_REQUEST == nil) { - SDLTBTState_ETA_REQUEST = [[SDLTBTState alloc] initWithValue:@"ETA_REQUEST"]; - } - return SDLTBTState_ETA_REQUEST; -} - -+ (SDLTBTState *)NEXT_TURN_REQUEST { - if (SDLTBTState_NEXT_TURN_REQUEST == nil) { - SDLTBTState_NEXT_TURN_REQUEST = [[SDLTBTState alloc] initWithValue:@"NEXT_TURN_REQUEST"]; - } - return SDLTBTState_NEXT_TURN_REQUEST; -} - -+ (SDLTBTState *)ROUTE_STATUS_REQUEST { - if (SDLTBTState_ROUTE_STATUS_REQUEST == nil) { - SDLTBTState_ROUTE_STATUS_REQUEST = [[SDLTBTState alloc] initWithValue:@"ROUTE_STATUS_REQUEST"]; - } - return SDLTBTState_ROUTE_STATUS_REQUEST; -} - -+ (SDLTBTState *)ROUTE_SUMMARY_REQUEST { - if (SDLTBTState_ROUTE_SUMMARY_REQUEST == nil) { - SDLTBTState_ROUTE_SUMMARY_REQUEST = [[SDLTBTState alloc] initWithValue:@"ROUTE_SUMMARY_REQUEST"]; - } - return SDLTBTState_ROUTE_SUMMARY_REQUEST; -} - -+ (SDLTBTState *)TRIP_STATUS_REQUEST { - if (SDLTBTState_TRIP_STATUS_REQUEST == nil) { - SDLTBTState_TRIP_STATUS_REQUEST = [[SDLTBTState alloc] initWithValue:@"TRIP_STATUS_REQUEST"]; - } - return SDLTBTState_TRIP_STATUS_REQUEST; -} - -+ (SDLTBTState *)ROUTE_UPDATE_REQUEST_TIMEOUT { - if (SDLTBTState_ROUTE_UPDATE_REQUEST_TIMEOUT == nil) { - SDLTBTState_ROUTE_UPDATE_REQUEST_TIMEOUT = [[SDLTBTState alloc] initWithValue:@"ROUTE_UPDATE_REQUEST_TIMEOUT"]; - } - return SDLTBTState_ROUTE_UPDATE_REQUEST_TIMEOUT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTCPTransport.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTCPTransport.h deleted file mode 100644 index 2c9f55805..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTCPTransport.h +++ /dev/null @@ -1,13 +0,0 @@ -// SDLTCPTransport.h -// - -#import "SDLAbstractTransport.h" - -@interface SDLTCPTransport : SDLAbstractTransport { - CFSocketRef socket; -} - -@property (strong, atomic) NSString *hostName; -@property (strong, atomic) NSString *portNumber; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTCPTransport.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTCPTransport.m deleted file mode 100644 index 81fc9c555..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTCPTransport.m +++ /dev/null @@ -1,175 +0,0 @@ -// SDLTCPTransport.m -// - - -#import "SDLTCPTransport.h" -#import "SDLDebugTool.h" -#import "SDLHexUtility.h" -#import -#import -#import -#import -#import -#import -#import -#import -#import - - -// C function forward declarations. -int call_socket(const char *hostname, const char *port); -static void TCPCallback(CFSocketRef socket, CFSocketCallBackType type, CFDataRef address, const void *data, void *info); - -@interface SDLTCPTransport () { - BOOL _alreadyDestructed; - dispatch_queue_t _sendQueue; -} - -@end - - -@implementation SDLTCPTransport - -- (instancetype)init { - if (self = [super init]) { - _alreadyDestructed = NO; - _sendQueue = dispatch_queue_create("com.sdl.transport.tcp.transmit", DISPATCH_QUEUE_SERIAL); - [SDLDebugTool logInfo:@"SDLTCPTransport Init" - withType:SDLDebugType_Transport_iAP - toOutput:SDLDebugOutput_All - toGroup:self.debugConsoleGroupName]; - } - - return self; -} - - -- (void)connect { - [SDLDebugTool logInfo:@"Init" withType:SDLDebugType_Transport_TCP]; - - int sock_fd = call_socket([self.hostName UTF8String], [self.portNumber UTF8String]); - if (sock_fd < 0) { - [SDLDebugTool logInfo:@"Server Not Ready, Connection Failed" withType:SDLDebugType_Transport_TCP]; - return; - } - - CFSocketContext socketCtxt = {0, (__bridge void *)(self), NULL, NULL, NULL}; - socket = CFSocketCreateWithNative(kCFAllocatorDefault, sock_fd, kCFSocketDataCallBack | kCFSocketConnectCallBack, (CFSocketCallBack)&TCPCallback, &socketCtxt); - CFRunLoopSourceRef source = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0); - CFRunLoopRef loop = CFRunLoopGetCurrent(); - CFRunLoopAddSource(loop, source, kCFRunLoopDefaultMode); - CFRelease(source); -} - -- (void)sendData:(NSData *)msgBytes { - dispatch_async(_sendQueue, ^{ - @autoreleasepool { - NSString *byteStr = [SDLHexUtility getHexString:msgBytes]; - [SDLDebugTool logInfo:[NSString stringWithFormat:@"Sent %lu bytes: %@", (unsigned long)msgBytes.length, byteStr] withType:SDLDebugType_Transport_TCP toOutput:SDLDebugOutput_DeviceConsole]; - - CFSocketError e = CFSocketSendData(socket, NULL, (__bridge CFDataRef)msgBytes, 10000); - if (e != kCFSocketSuccess) { - NSString *errorCause = nil; - switch (e) { - case kCFSocketTimeout: - errorCause = @"Socket Timeout Error."; - break; - - case kCFSocketError: - default: - errorCause = @"Socket Error."; - break; - } - - [SDLDebugTool logInfo:[NSString stringWithFormat:@"Socket sendData error: %@", errorCause] withType:SDLDebugType_Transport_TCP toOutput:SDLDebugOutput_DeviceConsole]; - } - } - }); -} - -- (void)destructObjects { - if (!_alreadyDestructed) { - _alreadyDestructed = YES; - if (socket != nil) { - CFSocketInvalidate(socket); - CFRelease(socket); - } - } -} - -- (void)disconnect { - [self dispose]; -} - -- (void)dispose { - [self destructObjects]; -} - -- (void)dealloc { - [self destructObjects]; -} - -@end - -// C functions -int call_socket(const char *hostname, const char *port) { - int status, sock; - struct addrinfo hints; - struct addrinfo *servinfo; - - memset(&hints, 0, sizeof hints); - hints.ai_family = AF_UNSPEC; - hints.ai_socktype = SOCK_STREAM; - - //no host name?, no problem, get local host - if (hostname == nil) { - char localhost[128]; - gethostname(localhost, sizeof localhost); - hostname = (const char *)&localhost; - } - - //getaddrinfo setup - if ((status = getaddrinfo(hostname, port, &hints, &servinfo)) != 0) { - fprintf(stderr, "getaddrinfo error: %s\n", gai_strerror(status)); - return (-1); - } - - //get socket - if ((sock = socket(servinfo->ai_family, servinfo->ai_socktype, servinfo->ai_protocol)) < 0) - return (-1); - - //connect - if (connect(sock, servinfo->ai_addr, servinfo->ai_addrlen) < 0) { - close(sock); - return (-1); - } - - freeaddrinfo(servinfo); // free the linked-list - return (sock); -} - -static void TCPCallback(CFSocketRef socket, CFSocketCallBackType type, CFDataRef address, const void *data, void *info) { - if (kCFSocketConnectCallBack == type) { - SDLTCPTransport *transport = (__bridge SDLTCPTransport *)info; - SInt32 errorNumber = 0; - if (data) { - SInt32 *errorNumberPtr = (SInt32 *)data; - errorNumber = *errorNumberPtr; - } - [transport.delegate onTransportConnected]; - } else if (kCFSocketDataCallBack == type) { - SDLTCPTransport *transport = (__bridge SDLTCPTransport *)info; - - NSMutableString *byteStr = [NSMutableString stringWithCapacity:((int)CFDataGetLength((CFDataRef)data) * 2)]; - for (int i = 0; i < (int)CFDataGetLength((CFDataRef)data); i++) { - [byteStr appendFormat:@"%02X", ((Byte *)(UInt8 *)CFDataGetBytePtr((CFDataRef)data))[i]]; - } - - [SDLDebugTool logInfo:[NSString stringWithFormat:@"Read %d bytes: %@", (int)CFDataGetLength((CFDataRef)data), byteStr] withType:SDLDebugType_Transport_TCP toOutput:SDLDebugOutput_DeviceConsole]; - - [transport.delegate onDataReceived:[NSData dataWithBytes:(UInt8 *)CFDataGetBytePtr((CFDataRef)data) length:(int)CFDataGetLength((CFDataRef)data)]]; - } else { - NSString *logMessage = [NSString stringWithFormat:@"unhandled TCPCallback: %lu", type]; - [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Transport_TCP toOutput:SDLDebugOutput_DeviceConsole]; - } -} diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.h deleted file mode 100644 index a304c3d99..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.h +++ /dev/null @@ -1,69 +0,0 @@ -// SDLTTSChunk.h -// - -#import "SDLRPCMessage.h" - -@class SDLSpeechCapabilities; - - -/** - * Specifies what is to be spoken. This can be simply a text phrase, which SDL will speak according to its own rules. It can also be phonemes from either the Microsoft SAPI phoneme set, or from the LHPLUS phoneme set. It can also be a pre-recorded sound in WAV format (either developer-defined, or provided by the SDL platform). - * - * In SDL, words, and therefore sentences, can be built up from phonemes and are used to explicitly provide the proper pronounciation to the TTS engine. For example, to have SDL pronounce the word "read" as "red", rather than as when it is pronounced like "reed", the developer would use phonemes to express this desired pronounciation. - * - * For more information about phonemes, see http://en.wikipedia.org/wiki/Phoneme. - * - * Parameter List - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
    NameTypeDescriptionSmartDeviceLink Ver. Available
    textStringText to be spoken, or a phoneme specification, or the name of a pre-recorded sound. The contents of this field are indicated by the "type" field.SmartDeviceLink 1.0
    typeSpeechCapabilitiesIndicates the type of information in the "text" field (e.g. phrase to be spoken, phoneme specification, name of pre-recorded sound). SmartDeviceLink 1.0
    - * - * @since SmartDeviceLink 1.0 - */ -@interface SDLTTSChunk : SDLRPCStruct { -} - -/** - * @abstract Constructs a newly allocated SDLTTSChunk object - */ -- (instancetype)init; - -/** - * @abstract Constructs a newly allocated SDLTTSChunk object indicated by the dictionary parameter - * - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract Text to be spoken, or a phoneme specification, or the name of a pre-recorded sound. The contents of this field are indicated by the "type" field. - * - * Required, Max length 500 - */ -@property (strong) NSString *text; - -/** - * @abstract The type of information in the "text" field (e.g. phrase to be spoken, phoneme specification, name of pre-recorded sound). - * - * Required - */ -@property (strong) SDLSpeechCapabilities *type; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.m deleted file mode 100644 index 7e45413eb..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.m +++ /dev/null @@ -1,53 +0,0 @@ -// SDLTTSChunk.m -// - -#import "SDLTTSChunk.h" - -#import "SDLNames.h" -#import "SDLSpeechCapabilities.h" - - -@implementation SDLTTSChunk - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setText:(NSString *)text { - if (text != nil) { - [store setObject:text forKey:NAMES_text]; - } else { - [store removeObjectForKey:NAMES_text]; - } -} - -- (NSString *)text { - return [store objectForKey:NAMES_text]; -} - -- (void)setType:(SDLSpeechCapabilities *)type { - if (type != nil) { - [store setObject:type forKey:NAMES_type]; - } else { - [store removeObjectForKey:NAMES_type]; - } -} - -- (SDLSpeechCapabilities *)type { - NSObject *obj = [store objectForKey:NAMES_type]; - if (obj == nil || [obj isKindOfClass:SDLSpeechCapabilities.class]) { - return (SDLSpeechCapabilities *)obj; - } else { - return [SDLSpeechCapabilities valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunkFactory.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunkFactory.h deleted file mode 100644 index 466ae2bae..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunkFactory.h +++ /dev/null @@ -1,16 +0,0 @@ -// SDLTTSChunkFactory.h -// - -#import - -@class SDLTTSChunk; -@class SDLSpeechCapabilities; - - -@interface SDLTTSChunkFactory : NSObject { -} - -+ (SDLTTSChunk *)buildTTSChunkForString:(NSString *)text type:(SDLSpeechCapabilities *)type; -+ (NSMutableArray *)buildTTSChunksFromSimple:(NSString *)simple; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunkFactory.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunkFactory.m deleted file mode 100644 index c27983d3a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunkFactory.m +++ /dev/null @@ -1,27 +0,0 @@ -// SDLTTSChunkFactory.m -// - -#import "SDLTTSChunkFactory.h" - -#import "SDLSpeechCapabilities.h" -#import "SDLTTSChunk.h" - - -@implementation SDLTTSChunkFactory - -+ (SDLTTSChunk *)buildTTSChunkForString:(NSString *)text type:(SDLSpeechCapabilities *)type { - SDLTTSChunk *ret = [[SDLTTSChunk alloc] init]; - ret.text = text; - ret.type = type; - - return ret; -} - -+ (NSMutableArray *)buildTTSChunksFromSimple:(NSString *)simple { - if (simple == nil) - return nil; - - return [NSMutableArray arrayWithObject:[SDLTTSChunkFactory buildTTSChunkForString:simple type:[SDLSpeechCapabilities TEXT]]]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextAlignment.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextAlignment.h deleted file mode 100644 index 0d9913e86..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextAlignment.h +++ /dev/null @@ -1,52 +0,0 @@ -// SDLTextAlignment.h -// - - -#import "SDLEnum.h" - -/** - * The list of possible alignments of text in a field. May only work on some display types. - * - * @since SDL 1.0 - */ -@interface SDLTextAlignment : SDLEnum { -} - -/** - * Convert String to SDLTextAlignment - * - * @param value The value of the string to get an object for - * - * @return SDLTextAlignment - */ -+ (SDLTextAlignment *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLTextAlignment - * - * @return an array that store all possible SDLTextAlignment - */ -+ (NSArray *)values; - -/** - * @abstract Text aligned left. - * - * @return A SDLTextAlignment object with value of *LEFT_ALIGNED* - */ -+ (SDLTextAlignment *)LEFT_ALIGNED; - -/** - * @abstract Text aligned right. - * - * @return A SDLTextAlignment object with value of *RIGHT_ALIGNED* - */ -+ (SDLTextAlignment *)RIGHT_ALIGNED; - -/** - * @abstract Text aligned centered. - * - * @return A SDLTextAlignment object with value of *CENTERED* - */ -+ (SDLTextAlignment *)CENTERED; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextAlignment.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextAlignment.m deleted file mode 100644 index 30560f4a2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextAlignment.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLTextAlignment.m -// - - -#import "SDLTextAlignment.h" - -SDLTextAlignment *SDLTextAlignment_LEFT_ALIGNED = nil; -SDLTextAlignment *SDLTextAlignment_RIGHT_ALIGNED = nil; -SDLTextAlignment *SDLTextAlignment_CENTERED = nil; - -NSArray *SDLTextAlignment_values = nil; - -@implementation SDLTextAlignment - -+ (SDLTextAlignment *)valueOf:(NSString *)value { - for (SDLTextAlignment *item in SDLTextAlignment.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLTextAlignment_values == nil) { - SDLTextAlignment_values = @[ - SDLTextAlignment.LEFT_ALIGNED, - SDLTextAlignment.RIGHT_ALIGNED, - SDLTextAlignment.CENTERED, - ]; - } - return SDLTextAlignment_values; -} - -+ (SDLTextAlignment *)LEFT_ALIGNED { - if (SDLTextAlignment_LEFT_ALIGNED == nil) { - SDLTextAlignment_LEFT_ALIGNED = [[SDLTextAlignment alloc] initWithValue:@"LEFT_ALIGNED"]; - } - return SDLTextAlignment_LEFT_ALIGNED; -} - -+ (SDLTextAlignment *)RIGHT_ALIGNED { - if (SDLTextAlignment_RIGHT_ALIGNED == nil) { - SDLTextAlignment_RIGHT_ALIGNED = [[SDLTextAlignment alloc] initWithValue:@"RIGHT_ALIGNED"]; - } - return SDLTextAlignment_RIGHT_ALIGNED; -} - -+ (SDLTextAlignment *)CENTERED { - if (SDLTextAlignment_CENTERED == nil) { - SDLTextAlignment_CENTERED = [[SDLTextAlignment alloc] initWithValue:@"CENTERED"]; - } - return SDLTextAlignment_CENTERED; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.h deleted file mode 100644 index 7af898fe5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.h +++ /dev/null @@ -1,106 +0,0 @@ -// SDLTextField.h -// - -#import "SDLRPCMessage.h" - -@class SDLCharacterSet; -@class SDLTextFieldName; - - -/** - * Struct defining the characteristics of a displayed field on the HMI. - * - * Parameter List - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
    NameTypeDescriptionSmartDeviceLink Ver. Available
    nameTextFieldNameEnumeration identifying the field. SDL 1.0
    characterSetCharacterSetThe character set that is supported in this field. SDL 1.0
    widthInt16The number of characters in one row of this field. - *
      - *
    • Minvalue="1"
    • - *
    • maxvalue="500"
    • - *
    - *
    SDL 1.0
    rowsInt16The number of rows for this text field. - *
      - *
    • Minvalue="1"
    • - *
    • maxvalue="3"
    • - *
    - *
    SDL 1.0
    - * - * @since SDL 1.0 - */ -@interface SDLTextField : SDLRPCStruct { -} - -/** - * @abstract Constructs a newly allocated SDLTextField object - */ -- (instancetype)init; - -/** - * @abstract Constructs a newly allocated SDLTextField object indicated by the dictionary parameter - * - * @param dict The dictionary to use to construct the object - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The enumeration identifying the field. - * - * @see SDLTextFieldName - * - * Required - */ -@property (strong) SDLTextFieldName *name; - -/** - * @abstract The character set that is supported in this field. - * - * @see SDLCharacterSet - * - * Required - */ -@property (strong) SDLCharacterSet *characterSet; - -/** - * @abstract The number of characters in one row of this field. - * - * Required, Integer 1 - 500 - */ -@property (strong) NSNumber *width; - -/** - * @abstract The number of rows for this text field. - * - * Required, Integer 1 - 8 - */ -@property (strong) NSNumber *rows; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.m deleted file mode 100644 index 926d258f1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.m +++ /dev/null @@ -1,83 +0,0 @@ -// SDLTextField.m -// - -#import "SDLTextField.h" - -#import "SDLCharacterSet.h" -#import "SDLNames.h" -#import "SDLTextFieldName.h" - - -@implementation SDLTextField - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setName:(SDLTextFieldName *)name { - if (name != nil) { - [store setObject:name forKey:NAMES_name]; - } else { - [store removeObjectForKey:NAMES_name]; - } -} - -- (SDLTextFieldName *)name { - NSObject *obj = [store objectForKey:NAMES_name]; - if (obj == nil || [obj isKindOfClass:SDLTextFieldName.class]) { - return (SDLTextFieldName *)obj; - } else { - return [SDLTextFieldName valueOf:(NSString *)obj]; - } -} - -- (void)setCharacterSet:(SDLCharacterSet *)characterSet { - if (characterSet != nil) { - [store setObject:characterSet forKey:NAMES_characterSet]; - } else { - [store removeObjectForKey:NAMES_characterSet]; - } -} - -- (SDLCharacterSet *)characterSet { - NSObject *obj = [store objectForKey:NAMES_characterSet]; - if (obj == nil || [obj isKindOfClass:SDLCharacterSet.class]) { - return (SDLCharacterSet *)obj; - } else { - return [SDLCharacterSet valueOf:(NSString *)obj]; - } -} - -- (void)setWidth:(NSNumber *)width { - if (width != nil) { - [store setObject:width forKey:NAMES_width]; - } else { - [store removeObjectForKey:NAMES_width]; - } -} - -- (NSNumber *)width { - return [store objectForKey:NAMES_width]; -} - -- (void)setRows:(NSNumber *)rows { - if (rows != nil) { - [store setObject:rows forKey:NAMES_rows]; - } else { - [store removeObjectForKey:NAMES_rows]; - } -} - -- (NSNumber *)rows { - return [store objectForKey:NAMES_rows]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextFieldName.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextFieldName.h deleted file mode 100644 index 8fc4c9def..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextFieldName.h +++ /dev/null @@ -1,267 +0,0 @@ -// SDLTextFieldName.h -// - - -#import "SDLEnum.h" - -/** - * Names of the text fields that can appear on a SDL display. - * - * @since SDL 1.0 - */ -@interface SDLTextFieldName : SDLEnum { -} - -/** - * Convert String to SDLTextFieldName - * - * @param value String value to retrieve the object for - * - * @return SDLTextFieldName - */ -+ (SDLTextFieldName *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLTextFieldName - * - * @return an array that store all possible SDLTextFieldName - */ -+ (NSArray *)values; - -/** - * @abstract The first line of the first set of main fields of the persistent display. Applies to SDLShow. - * - * @return a SDLTextFieldName with value of *mainField1* - */ -+ (SDLTextFieldName *)mainField1; - -/** - * @abstract The second line of the first set of main fields of the persistent display. Applies to SDLShow. - * - * @return a SDLTextFieldName with value of *mainField2* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)mainField2; - -/** - * @abstract The first line of the second set of main fields of the persistent display. Applies to SDLShow. - * - * @return a SDLTextFieldName with value of *mainField3* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)mainField3; - -/** - * @abstract The second line of the second set of main fields of the persistent display. Applies to SDLShow. - * - * @return a SDLTextFieldName with value of *mainField4* - */ -+ (SDLTextFieldName *)mainField4; - -/** - * @abstract The status bar on the NGN display. Applies to SDLShow. - * - * @return a SDLTextFieldName with value of *statusBar* - */ -+ (SDLTextFieldName *)statusBar; - -/** - * @abstract Text value for MediaClock field. Must be properly formatted according to MediaClockFormat. Applies to SDLShow. - * - * @discussion This field is commonly used to show elapsed or remaining time in an audio track or audio capture. - * - * @return a SDLTextFieldName with value of *mediaClock* - */ -+ (SDLTextFieldName *)mediaClock; - -/** - * @abstract The track field of NGN type ACMs. This field is only available for media applications on a NGN display. Applies to SDLShow. - * - * @discussion This field is commonly used to show the current track number - * - * @return a SDLTextFieldName with value of *mediaTrack* - */ -+ (SDLTextFieldName *)mediaTrack; - -/** - * @abstract The first line of the alert text field. Applies to SDLAlert. - * - * @return a SDLTextFieldName with value of *alertText1* - */ -+ (SDLTextFieldName *)alertText1; - -/** - * @abstract The second line of the alert text field. Applies to SDLAlert. - * - * @return a SDLTextFieldName with value of *alertText2* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)alertText2; - -/** - * @abstract The third line of the alert text field. Applies to SDLAlert. - * - * @return a SDLTextFieldName with value of *alertText3* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)alertText3; - -/** - * @abstract Long form body of text that can include newlines and tabs. Applies to SDLScrollableMessage. - * - * @return a SDLTextFieldName with value of *scrollableMessageBody* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)scrollableMessageBody; - -/** - * @abstract First line suggestion for a user response (in the case of VR enabled interaction). - * - * @return a SDLTextFieldName with value of *initialInteractionText* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)initialInteractionText; - -/** - * @abstract First line of navigation text. - * - * @return a SDLTextFieldName with value of *navigationText1* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)navigationText1; - -/** - * @abstract Second line of navigation text. - * - * @return a SDLTextFieldName with value of *navigationText2* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)navigationText2; - -/** - * @abstract Estimated Time of Arrival time for navigation. - * - * @return a SDLTextFieldName with value of *ETA* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)ETA; - -/** - * @abstract Total distance to destination for navigation. - * - * @return a SDLTextFieldName with value of *totalDistance* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)totalDistance; - -/** - * @abstract First line of text for audio pass thru. - * - * @return a SDLTextFieldName with value of *audioPassThruDisplayText1* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)audioPassThruDisplayText1; - -/** - * @abstract Second line of text for audio pass thru. - * - * @return a SDLTextFieldName with value of *audioPassThruDisplayText2* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)audioPassThruDisplayText2; - -/** - * @abstract Header text for slider. - * - * @return a SDLTextFieldName with value of *sliderHeader* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)sliderHeader; - -/** - * @abstract Footer text for slider - * - * @return a SDLTextFieldName with value of *sliderFooter* - * - * @since SDL 2.0 - */ -+ (SDLTextFieldName *)sliderFooter; - -/** - * Primary text for SDLChoice - * - * @return a SDLTextFieldName with value of *menuName* - */ -+ (SDLTextFieldName *)menuName; - -/** - * Secondary text for SDLChoice - * - * @return a SDLTextFieldName with value of *secondaryText* - */ -+ (SDLTextFieldName *)secondaryText; - -/** - * Tertiary text for SDLChoice - * - * @return a SDLTextFieldName with value of *tertiaryText* - */ -+ (SDLTextFieldName *)tertiaryText; - -/** - * Optional text to label an app menu button (for certain touchscreen platforms) - * - * @return a SDLTextFieldName with value of *menuTitle* - */ -+ (SDLTextFieldName *)menuTitle; - -/** - * Optional name / title of intended location for SDLSendLocation - * - * @return a SDLTextFieldName with value of *locationName* - * - * @since SDL 4.0 - */ -+ (SDLTextFieldName *)locationName; - -/** - * Optional description of intended location / establishment (if applicable) for SDLSendLocation - * - * @return a SDLTextFieldName with value of *locationDescription* - * - * @since SDL 4.0 - */ -+ (SDLTextFieldName *)locationDescription; - -/** - * Optional location address (if applicable) for SDLSendLocation - * - * @return a SDLTextFieldName with value of *addressLines* - * - * @since SDL 4.0 - */ -+ (SDLTextFieldName *)addressLines; - -/** - * Optional hone number of intended location / establishment (if applicable) for SDLSendLocation - * - * @return a SDLTextFieldName with value of *phoneNumber* - * - * @since SDL 4.0 - */ -+ (SDLTextFieldName *)phoneNumber; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextFieldName.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextFieldName.m deleted file mode 100644 index 4cc1ac369..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextFieldName.m +++ /dev/null @@ -1,281 +0,0 @@ -// SDLTextFieldName.m -// - - -#import "SDLTextFieldName.h" - -SDLTextFieldName *SDLTextFieldName_mainField1 = nil; -SDLTextFieldName *SDLTextFieldName_mainField2 = nil; -SDLTextFieldName *SDLTextFieldName_mainField3 = nil; -SDLTextFieldName *SDLTextFieldName_mainField4 = nil; -SDLTextFieldName *SDLTextFieldName_statusBar = nil; -SDLTextFieldName *SDLTextFieldName_mediaClock = nil; -SDLTextFieldName *SDLTextFieldName_mediaTrack = nil; -SDLTextFieldName *SDLTextFieldName_alertText1 = nil; -SDLTextFieldName *SDLTextFieldName_alertText2 = nil; -SDLTextFieldName *SDLTextFieldName_alertText3 = nil; -SDLTextFieldName *SDLTextFieldName_scrollableMessageBody = nil; -SDLTextFieldName *SDLTextFieldName_initialInteractionText = nil; -SDLTextFieldName *SDLTextFieldName_navigationText1 = nil; -SDLTextFieldName *SDLTextFieldName_navigationText2 = nil; -SDLTextFieldName *SDLTextFieldName_ETA = nil; -SDLTextFieldName *SDLTextFieldName_totalDistance = nil; -SDLTextFieldName *SDLTextFieldName_audioPassThruDisplayText1 = nil; -SDLTextFieldName *SDLTextFieldName_audioPassThruDisplayText2 = nil; -SDLTextFieldName *SDLTextFieldName_sliderHeader = nil; -SDLTextFieldName *SDLTextFieldName_sliderFooter = nil; -SDLTextFieldName *SDLTextFieldName_menuName = nil; -SDLTextFieldName *SDLTextFieldName_secondaryText = nil; -SDLTextFieldName *SDLTextFieldName_tertiaryText = nil; -SDLTextFieldName *SDLTextFieldName_menuTitle = nil; -SDLTextFieldName *SDLTextFieldName_locationName = nil; -SDLTextFieldName *SDLTextFieldName_locationDescription = nil; -SDLTextFieldName *SDLTextFieldName_addressLines = nil; -SDLTextFieldName *SDLTextFieldName_phoneNumber = nil; - -NSArray *SDLTextFieldName_values = nil; - -@implementation SDLTextFieldName - -+ (SDLTextFieldName *)valueOf:(NSString *)value { - for (SDLTextFieldName *item in SDLTextFieldName.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLTextFieldName_values == nil) { - SDLTextFieldName_values = @[ - SDLTextFieldName.mainField1, - SDLTextFieldName.mainField2, - SDLTextFieldName.mainField3, - SDLTextFieldName.mainField4, - SDLTextFieldName.statusBar, - SDLTextFieldName.mediaClock, - SDLTextFieldName.mediaTrack, - SDLTextFieldName.alertText1, - SDLTextFieldName.alertText2, - SDLTextFieldName.alertText3, - SDLTextFieldName.scrollableMessageBody, - SDLTextFieldName.initialInteractionText, - SDLTextFieldName.navigationText1, - SDLTextFieldName.navigationText2, - SDLTextFieldName.ETA, - SDLTextFieldName.totalDistance, - SDLTextFieldName.audioPassThruDisplayText1, - SDLTextFieldName.audioPassThruDisplayText2, - SDLTextFieldName.sliderHeader, - SDLTextFieldName.sliderFooter, - SDLTextFieldName.menuName, - SDLTextFieldName.secondaryText, - SDLTextFieldName.tertiaryText, - SDLTextFieldName.menuTitle, - SDLTextFieldName.locationName, - SDLTextFieldName.locationDescription, - SDLTextFieldName.addressLines, - SDLTextFieldName.phoneNumber, - ]; - } - return SDLTextFieldName_values; -} - -+ (SDLTextFieldName *)mainField1 { - if (SDLTextFieldName_mainField1 == nil) { - SDLTextFieldName_mainField1 = [[SDLTextFieldName alloc] initWithValue:@"mainField1"]; - } - return SDLTextFieldName_mainField1; -} - -+ (SDLTextFieldName *)mainField2 { - if (SDLTextFieldName_mainField2 == nil) { - SDLTextFieldName_mainField2 = [[SDLTextFieldName alloc] initWithValue:@"mainField2"]; - } - return SDLTextFieldName_mainField2; -} - -+ (SDLTextFieldName *)mainField3 { - if (SDLTextFieldName_mainField3 == nil) { - SDLTextFieldName_mainField3 = [[SDLTextFieldName alloc] initWithValue:@"mainField3"]; - } - return SDLTextFieldName_mainField3; -} - -+ (SDLTextFieldName *)mainField4 { - if (SDLTextFieldName_mainField4 == nil) { - SDLTextFieldName_mainField4 = [[SDLTextFieldName alloc] initWithValue:@"mainField4"]; - } - return SDLTextFieldName_mainField4; -} - -+ (SDLTextFieldName *)statusBar { - if (SDLTextFieldName_statusBar == nil) { - SDLTextFieldName_statusBar = [[SDLTextFieldName alloc] initWithValue:@"statusBar"]; - } - return SDLTextFieldName_statusBar; -} - -+ (SDLTextFieldName *)mediaClock { - if (SDLTextFieldName_mediaClock == nil) { - SDLTextFieldName_mediaClock = [[SDLTextFieldName alloc] initWithValue:@"mediaClock"]; - } - return SDLTextFieldName_mediaClock; -} - -+ (SDLTextFieldName *)mediaTrack { - if (SDLTextFieldName_mediaTrack == nil) { - SDLTextFieldName_mediaTrack = [[SDLTextFieldName alloc] initWithValue:@"mediaTrack"]; - } - return SDLTextFieldName_mediaTrack; -} - -+ (SDLTextFieldName *)alertText1 { - if (SDLTextFieldName_alertText1 == nil) { - SDLTextFieldName_alertText1 = [[SDLTextFieldName alloc] initWithValue:@"alertText1"]; - } - return SDLTextFieldName_alertText1; -} - -+ (SDLTextFieldName *)alertText2 { - if (SDLTextFieldName_alertText2 == nil) { - SDLTextFieldName_alertText2 = [[SDLTextFieldName alloc] initWithValue:@"alertText2"]; - } - return SDLTextFieldName_alertText2; -} - -+ (SDLTextFieldName *)alertText3 { - if (SDLTextFieldName_alertText3 == nil) { - SDLTextFieldName_alertText3 = [[SDLTextFieldName alloc] initWithValue:@"alertText3"]; - } - return SDLTextFieldName_alertText3; -} - -+ (SDLTextFieldName *)scrollableMessageBody { - if (SDLTextFieldName_scrollableMessageBody == nil) { - SDLTextFieldName_scrollableMessageBody = [[SDLTextFieldName alloc] initWithValue:@"scrollableMessageBody"]; - } - return SDLTextFieldName_scrollableMessageBody; -} - -+ (SDLTextFieldName *)initialInteractionText { - if (SDLTextFieldName_initialInteractionText == nil) { - SDLTextFieldName_initialInteractionText = [[SDLTextFieldName alloc] initWithValue:@"initialInteractionText"]; - } - return SDLTextFieldName_initialInteractionText; -} - -+ (SDLTextFieldName *)navigationText1 { - if (SDLTextFieldName_navigationText1 == nil) { - SDLTextFieldName_navigationText1 = [[SDLTextFieldName alloc] initWithValue:@"navigationText1"]; - } - return SDLTextFieldName_navigationText1; -} - -+ (SDLTextFieldName *)navigationText2 { - if (SDLTextFieldName_navigationText2 == nil) { - SDLTextFieldName_navigationText2 = [[SDLTextFieldName alloc] initWithValue:@"navigationText2"]; - } - return SDLTextFieldName_navigationText2; -} - -+ (SDLTextFieldName *)ETA { - if (SDLTextFieldName_ETA == nil) { - SDLTextFieldName_ETA = [[SDLTextFieldName alloc] initWithValue:@"ETA"]; - } - return SDLTextFieldName_ETA; -} - -+ (SDLTextFieldName *)totalDistance { - if (SDLTextFieldName_totalDistance == nil) { - SDLTextFieldName_totalDistance = [[SDLTextFieldName alloc] initWithValue:@"totalDistance"]; - } - return SDLTextFieldName_totalDistance; -} - -+ (SDLTextFieldName *)audioPassThruDisplayText1 { - if (SDLTextFieldName_audioPassThruDisplayText1 == nil) { - SDLTextFieldName_audioPassThruDisplayText1 = [[SDLTextFieldName alloc] initWithValue:@"audioPassThruDisplayText1"]; - } - return SDLTextFieldName_audioPassThruDisplayText1; -} - -+ (SDLTextFieldName *)audioPassThruDisplayText2 { - if (SDLTextFieldName_audioPassThruDisplayText2 == nil) { - SDLTextFieldName_audioPassThruDisplayText2 = [[SDLTextFieldName alloc] initWithValue:@"audioPassThruDisplayText2"]; - } - return SDLTextFieldName_audioPassThruDisplayText2; -} - -+ (SDLTextFieldName *)sliderHeader { - if (SDLTextFieldName_sliderHeader == nil) { - SDLTextFieldName_sliderHeader = [[SDLTextFieldName alloc] initWithValue:@"sliderHeader"]; - } - return SDLTextFieldName_sliderHeader; -} - -+ (SDLTextFieldName *)sliderFooter { - if (SDLTextFieldName_sliderFooter == nil) { - SDLTextFieldName_sliderFooter = [[SDLTextFieldName alloc] initWithValue:@"sliderFooter"]; - } - return SDLTextFieldName_sliderFooter; -} - -+ (SDLTextFieldName *)menuName { - if (SDLTextFieldName_menuName == nil) { - SDLTextFieldName_menuName = [[SDLTextFieldName alloc] initWithValue:@"menuName"]; - } - return SDLTextFieldName_menuName; -} - -+ (SDLTextFieldName *)secondaryText { - if (SDLTextFieldName_secondaryText == nil) { - SDLTextFieldName_secondaryText = [[SDLTextFieldName alloc] initWithValue:@"secondaryText"]; - } - return SDLTextFieldName_secondaryText; -} - -+ (SDLTextFieldName *)tertiaryText { - if (SDLTextFieldName_tertiaryText == nil) { - SDLTextFieldName_tertiaryText = [[SDLTextFieldName alloc] initWithValue:@"tertiaryText"]; - } - return SDLTextFieldName_tertiaryText; -} - -+ (SDLTextFieldName *)menuTitle { - if (SDLTextFieldName_menuTitle == nil) { - SDLTextFieldName_menuTitle = [[SDLTextFieldName alloc] initWithValue:@"menuTitle"]; - } - return SDLTextFieldName_menuTitle; -} - -+ (SDLTextFieldName *)locationName { - if (SDLTextFieldName_locationName == nil) { - SDLTextFieldName_locationName = [[SDLTextFieldName alloc] initWithValue:@"locationName"]; - } - return SDLTextFieldName_locationName; -} - -+ (SDLTextFieldName *)locationDescription { - if (SDLTextFieldName_locationDescription == nil) { - SDLTextFieldName_locationDescription = [[SDLTextFieldName alloc] initWithValue:@"locationDescription"]; - } - return SDLTextFieldName_locationDescription; -} - -+ (SDLTextFieldName *)addressLines { - if (SDLTextFieldName_addressLines == nil) { - SDLTextFieldName_addressLines = [[SDLTextFieldName alloc] initWithValue:@"addressLines"]; - } - return SDLTextFieldName_addressLines; -} - -+ (SDLTextFieldName *)phoneNumber { - if (SDLTextFieldName_phoneNumber == nil) { - SDLTextFieldName_phoneNumber = [[SDLTextFieldName alloc] initWithValue:@"phoneNumber"]; - } - return SDLTextFieldName_phoneNumber; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimer.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimer.h deleted file mode 100644 index f9f7be3d9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimer.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// SDLTimer.h -// - -#import - -@interface SDLTimer : NSObject - -@property (nonatomic, copy) void (^elapsedBlock)(void); -@property (nonatomic, copy) void (^canceledBlock)(void); -@property (assign) float duration; - -- (instancetype)init; -- (instancetype)initWithDuration:(float)duration __deprecated; -- (instancetype)initWithDuration:(float)duration repeat:(BOOL)repeat; -- (void)start; -- (void)cancel; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimer.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimer.m deleted file mode 100644 index 84ee6e24b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimer.m +++ /dev/null @@ -1,79 +0,0 @@ -// -// SDLTimer.m -// - -#import "SDLTimer.h" - - -@interface SDLTimer () - -@property (strong) NSTimer *timer; -@property (assign) BOOL timerRunning; -@property (nonatomic) BOOL repeat; -@end - - -@implementation SDLTimer - -- (instancetype)init { - if (self = [super init]) { - _duration = 0; - _timerRunning = NO; - } - return self; -} - -- (instancetype)initWithDuration:(float)duration { - return [self initWithDuration:duration repeat:NO]; -} - -- (instancetype)initWithDuration:(float)duration repeat:(BOOL)repeat { - self = [super init]; - if (self) { - _duration = duration; - _repeat = repeat; - _timerRunning = NO; - } - return self; -} - -- (void)start { - if (self.duration > 0) { - [self stopAndDestroyTimer]; - self.timer = [NSTimer timerWithTimeInterval:self.duration target:self selector:@selector(timerElapsed) userInfo:nil repeats:self.repeat]; - [[NSRunLoop mainRunLoop] addTimer:self.timer forMode:NSRunLoopCommonModes]; - self.timerRunning = YES; - } -} - -- (void)cancel { - [self stopAndDestroyTimer]; - if (self.timerRunning && self.canceledBlock != nil) { - self.timerRunning = NO; - self.canceledBlock(); - } - self.timerRunning = NO; -} - -- (void)timerElapsed { - if (self.repeat == NO) { - [self stopAndDestroyTimer]; - self.timerRunning = NO; - } - if (self.elapsedBlock != nil) { - self.elapsedBlock(); - } -} - -- (void)stopAndDestroyTimer { - if (self.timer != nil) { - [self.timer invalidate]; - self.timer = nil; - } -} - -- (void)dealloc { - [self cancel]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.h deleted file mode 100644 index f625f6636..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.h +++ /dev/null @@ -1,17 +0,0 @@ -// SDLTimerMode.h -// - - -#import "SDLEnum.h" - -@interface SDLTimerMode : SDLEnum { -} - -+ (SDLTimerMode *)valueOf:(NSString *)value; -+ (NSArray *)values; - -+ (SDLTimerMode *)UP; -+ (SDLTimerMode *)DOWN; -+ (SDLTimerMode *)NONE; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.m deleted file mode 100644 index 5787a2eb4..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLTimerMode.m -// - - -#import "SDLTimerMode.h" - -SDLTimerMode *SDLTimerMode_UP = nil; -SDLTimerMode *SDLTimerMode_DOWN = nil; -SDLTimerMode *SDLTimerMode_NONE = nil; - -NSArray *SDLTimerMode_values = nil; - -@implementation SDLTimerMode - -+ (SDLTimerMode *)valueOf:(NSString *)value { - for (SDLTimerMode *item in SDLTimerMode.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLTimerMode_values == nil) { - SDLTimerMode_values = @[ - SDLTimerMode.UP, - SDLTimerMode.DOWN, - SDLTimerMode.NONE, - ]; - } - return SDLTimerMode_values; -} - -+ (SDLTimerMode *)UP { - if (SDLTimerMode_UP == nil) { - SDLTimerMode_UP = [[SDLTimerMode alloc] initWithValue:@"UP"]; - } - return SDLTimerMode_UP; -} - -+ (SDLTimerMode *)DOWN { - if (SDLTimerMode_DOWN == nil) { - SDLTimerMode_DOWN = [[SDLTimerMode alloc] initWithValue:@"DOWN"]; - } - return SDLTimerMode_DOWN; -} - -+ (SDLTimerMode *)NONE { - if (SDLTimerMode_NONE == nil) { - SDLTimerMode_NONE = [[SDLTimerMode alloc] initWithValue:@"NONE"]; - } - return SDLTimerMode_NONE; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h deleted file mode 100644 index 9ebd68d8e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h +++ /dev/null @@ -1,24 +0,0 @@ -// SDLTireStatus.h -// - -#import "SDLRPCMessage.h" - -@class SDLSingleTireStatus; -@class SDLWarningLightStatus; - - -@interface SDLTireStatus : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLWarningLightStatus *pressureTelltale; -@property (strong) SDLSingleTireStatus *leftFront; -@property (strong) SDLSingleTireStatus *rightFront; -@property (strong) SDLSingleTireStatus *leftRear; -@property (strong) SDLSingleTireStatus *rightRear; -@property (strong) SDLSingleTireStatus *innerLeftRear; -@property (strong) SDLSingleTireStatus *innerRightRear; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.m deleted file mode 100644 index c2768565a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.m +++ /dev/null @@ -1,144 +0,0 @@ -// SDLTireStatus.m -// - -#import "SDLTireStatus.h" - -#import "SDLNames.h" -#import "SDLSingleTireStatus.h" -#import "SDLWarningLightStatus.h" - - -@implementation SDLTireStatus - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setPressureTelltale:(SDLWarningLightStatus *)pressureTelltale { - if (pressureTelltale != nil) { - [store setObject:pressureTelltale forKey:NAMES_pressureTelltale]; - } else { - [store removeObjectForKey:NAMES_pressureTelltale]; - } -} - -- (SDLWarningLightStatus *)pressureTelltale { - NSObject *obj = [store objectForKey:NAMES_pressureTelltale]; - if (obj == nil || [obj isKindOfClass:SDLWarningLightStatus.class]) { - return (SDLWarningLightStatus *)obj; - } else { - return [SDLWarningLightStatus valueOf:(NSString *)obj]; - } -} - -- (void)setLeftFront:(SDLSingleTireStatus *)leftFront { - if (leftFront != nil) { - [store setObject:leftFront forKey:NAMES_leftFront]; - } else { - [store removeObjectForKey:NAMES_leftFront]; - } -} - -- (SDLSingleTireStatus *)leftFront { - NSObject *obj = [store objectForKey:NAMES_leftFront]; - if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) { - return (SDLSingleTireStatus *)obj; - } else { - return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setRightFront:(SDLSingleTireStatus *)rightFront { - if (rightFront != nil) { - [store setObject:rightFront forKey:NAMES_rightFront]; - } else { - [store removeObjectForKey:NAMES_rightFront]; - } -} - -- (SDLSingleTireStatus *)rightFront { - NSObject *obj = [store objectForKey:NAMES_rightFront]; - if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) { - return (SDLSingleTireStatus *)obj; - } else { - return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setLeftRear:(SDLSingleTireStatus *)leftRear { - if (leftRear != nil) { - [store setObject:leftRear forKey:NAMES_leftRear]; - } else { - [store removeObjectForKey:NAMES_leftRear]; - } -} - -- (SDLSingleTireStatus *)leftRear { - NSObject *obj = [store objectForKey:NAMES_leftRear]; - if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) { - return (SDLSingleTireStatus *)obj; - } else { - return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setRightRear:(SDLSingleTireStatus *)rightRear { - if (rightRear != nil) { - [store setObject:rightRear forKey:NAMES_rightRear]; - } else { - [store removeObjectForKey:NAMES_rightRear]; - } -} - -- (SDLSingleTireStatus *)rightRear { - NSObject *obj = [store objectForKey:NAMES_rightRear]; - if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) { - return (SDLSingleTireStatus *)obj; - } else { - return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setInnerLeftRear:(SDLSingleTireStatus *)innerLeftRear { - if (innerLeftRear != nil) { - [store setObject:innerLeftRear forKey:NAMES_innerLeftRear]; - } else { - [store removeObjectForKey:NAMES_innerLeftRear]; - } -} - -- (SDLSingleTireStatus *)innerLeftRear { - NSObject *obj = [store objectForKey:NAMES_innerLeftRear]; - if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) { - return (SDLSingleTireStatus *)obj; - } else { - return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setInnerRightRear:(SDLSingleTireStatus *)innerRightRear { - if (innerRightRear != nil) { - [store setObject:innerRightRear forKey:NAMES_innerRightRear]; - } else { - [store removeObjectForKey:NAMES_innerRightRear]; - } -} - -- (SDLSingleTireStatus *)innerRightRear { - NSObject *obj = [store objectForKey:NAMES_innerRightRear]; - if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) { - return (SDLSingleTireStatus *)obj; - } else { - return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.h deleted file mode 100644 index 63515811f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.h +++ /dev/null @@ -1,16 +0,0 @@ -// SDLTouchCoord.h -// - - -#import "SDLRPCMessage.h" - -@interface SDLTouchCoord : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSNumber *x; -@property (strong) NSNumber *y; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.m deleted file mode 100644 index 78895696f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.m +++ /dev/null @@ -1,47 +0,0 @@ -// SDLTouchCoord.m -// - - -#import "SDLTouchCoord.h" - -#import "SDLNames.h" - -@implementation SDLTouchCoord - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setX:(NSNumber *)x { - if (x != nil) { - [store setObject:x forKey:NAMES_x]; - } else { - [store removeObjectForKey:NAMES_x]; - } -} - -- (NSNumber *)x { - return [store objectForKey:NAMES_x]; -} - -- (void)setY:(NSNumber *)y { - if (y != nil) { - [store setObject:y forKey:NAMES_y]; - } else { - [store removeObjectForKey:NAMES_y]; - } -} - -- (NSNumber *)y { - return [store objectForKey:NAMES_y]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEvent.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEvent.h deleted file mode 100644 index 01af99b98..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEvent.h +++ /dev/null @@ -1,40 +0,0 @@ -// SDLTouchEvent.h -// - - -#import "SDLRPCMessage.h" - -@interface SDLTouchEvent : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - A touch's unique identifier. The application can track the current touch events by id. - If a touch event has type begin, the id should be added to the set of touches. - If a touch event has type end, the id should be removed from the set of touches. - - Mandatory, 0-9 - */ -@property (strong) NSNumber *touchEventId; - -/** - The time that the touch was recorded. This number can the time since the beginning of the session or something else as long as the units are in milliseconds. - - The timestamp is used to determined the rate of change of position of a touch. - - The application also uses the time to verify whether two touches, with different ids, are part of a single action by the user. - - If there is only a single timestamp in this array, it is the same for every coordinate in the coordinates array. - - Mandatory, array size 1-1000, contains size 0-5000000000 - */ -@property (strong) NSMutableArray *timeStamp; - -/** - * Mandatory, array size 1-1000, contains SDLTouchCoord - */ -@property (strong) NSMutableArray *coord; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEvent.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEvent.m deleted file mode 100644 index e54e8b79e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEvent.m +++ /dev/null @@ -1,69 +0,0 @@ -// SDLTouchEvent.m -// - - -#import "SDLTouchEvent.h" - -#import "SDLNames.h" -#import "SDLTouchCoord.h" - -@implementation SDLTouchEvent - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setTouchEventId:(NSNumber *)touchEventId { - if (touchEventId != nil) { - [store setObject:touchEventId forKey:NAMES_id]; - } else { - [store removeObjectForKey:NAMES_id]; - } -} - -- (NSNumber *)touchEventId { - return [store objectForKey:NAMES_id]; -} - -- (void)setTimeStamp:(NSMutableArray *)timeStamp { - if (timeStamp != nil) { - [store setObject:timeStamp forKey:NAMES_ts]; - } else { - [store removeObjectForKey:NAMES_ts]; - } -} - -- (NSMutableArray *)timeStamp { - return [store objectForKey:NAMES_ts]; -} - -- (void)setCoord:(NSMutableArray *)coord { - if (coord != nil) { - [store setObject:coord forKey:NAMES_c]; - } else { - [store removeObjectForKey:NAMES_c]; - } -} - -- (NSMutableArray *)coord { - NSMutableArray *array = [store objectForKey:NAMES_c]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTouchCoord.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTouchCoord alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.h deleted file mode 100644 index 6d346d874..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.h +++ /dev/null @@ -1,17 +0,0 @@ -// SDLTouchEventCapabilities.h -// - - -#import "SDLRPCMessage.h" - -@interface SDLTouchEventCapabilities : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSNumber *pressAvailable; -@property (strong) NSNumber *multiTouchAvailable; -@property (strong) NSNumber *doublePressAvailable; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.m deleted file mode 100644 index 4fc71cfec..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.m +++ /dev/null @@ -1,59 +0,0 @@ -// SDLTouchEventCapabilities.m -// - - -#import "SDLTouchEventCapabilities.h" - -#import "SDLNames.h" - -@implementation SDLTouchEventCapabilities - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setPressAvailable:(NSNumber *)pressAvailable { - if (pressAvailable != nil) { - [store setObject:pressAvailable forKey:NAMES_pressAvailable]; - } else { - [store removeObjectForKey:NAMES_pressAvailable]; - } -} - -- (NSNumber *)pressAvailable { - return [store objectForKey:NAMES_pressAvailable]; -} - -- (void)setMultiTouchAvailable:(NSNumber *)multiTouchAvailable { - if (multiTouchAvailable != nil) { - [store setObject:multiTouchAvailable forKey:NAMES_multiTouchAvailable]; - } else { - [store removeObjectForKey:NAMES_multiTouchAvailable]; - } -} - -- (NSNumber *)multiTouchAvailable { - return [store objectForKey:NAMES_multiTouchAvailable]; -} - -- (void)setDoublePressAvailable:(NSNumber *)doublePressAvailable { - if (doublePressAvailable != nil) { - [store setObject:doublePressAvailable forKey:NAMES_doublePressAvailable]; - } else { - [store removeObjectForKey:NAMES_doublePressAvailable]; - } -} - -- (NSNumber *)doublePressAvailable { - return [store objectForKey:NAMES_doublePressAvailable]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.h deleted file mode 100644 index bfbb91fd4..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.h +++ /dev/null @@ -1,17 +0,0 @@ -// SDLTouchType.h -// - - -#import "SDLEnum.h" - -@interface SDLTouchType : SDLEnum { -} - -+ (SDLTouchType *)valueOf:(NSString *)value; -+ (NSArray *)values; - -+ (SDLTouchType *)BEGIN; -+ (SDLTouchType *)MOVE; -+ (SDLTouchType *)END; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.m deleted file mode 100644 index d834d012d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLTouchType.m -// - - -#import "SDLTouchType.h" - -SDLTouchType *SDLTouchType_BEGIN = nil; -SDLTouchType *SDLTouchType_MOVE = nil; -SDLTouchType *SDLTouchType_END = nil; - -NSArray *SDLTouchType_values = nil; - -@implementation SDLTouchType - -+ (SDLTouchType *)valueOf:(NSString *)value { - for (SDLTouchType *item in SDLTouchType.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLTouchType_values == nil) { - SDLTouchType_values = @[ - SDLTouchType.BEGIN, - SDLTouchType.MOVE, - SDLTouchType.END, - ]; - } - return SDLTouchType_values; -} - -+ (SDLTouchType *)BEGIN { - if (SDLTouchType_BEGIN == nil) { - SDLTouchType_BEGIN = [[SDLTouchType alloc] initWithValue:@"BEGIN"]; - } - return SDLTouchType_BEGIN; -} - -+ (SDLTouchType *)MOVE { - if (SDLTouchType_MOVE == nil) { - SDLTouchType_MOVE = [[SDLTouchType alloc] initWithValue:@"MOVE"]; - } - return SDLTouchType_MOVE; -} - -+ (SDLTouchType *)END { - if (SDLTouchType_END == nil) { - SDLTouchType_END = [[SDLTouchType alloc] initWithValue:@"END"]; - } - return SDLTouchType_END; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTransportDelegate.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTransportDelegate.h deleted file mode 100644 index 4f4abe33f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTransportDelegate.h +++ /dev/null @@ -1,10 +0,0 @@ -// SDLTransportDelegate.h -// - -@protocol SDLTransportDelegate - -- (void)onTransportConnected; -- (void)onTransportDisconnected; -- (void)onDataReceived:(NSData *)receivedData; - -@end \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTriggerSource.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTriggerSource.h deleted file mode 100644 index 36e646f17..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTriggerSource.h +++ /dev/null @@ -1,46 +0,0 @@ -// SDLTriggerSource.h -// - - -#import "SDLEnum.h" - -/** - * Indicates whether choice/command was selected via VR or via a menu selection (using SEEKRIGHT/SEEKLEFT, TUNEUP, TUNEDOWN, OK buttons) - * - * @since SDL 1.0 - */ -@interface SDLTriggerSource : SDLEnum { -} - -/** - * Convert String to SDLTriggerSource - * @param value The value of the string to get an object for - * @return SDLTriggerSource - */ -+ (SDLTriggerSource *)valueOf:(NSString *)value; - -/** - @abstract Store the enumeration of all possible SDLTriggerSource - @return an array that store all possible SDLTriggerSource - */ -+ (NSArray *)values; - -/** - * @abstract Selection made via menu - * @return SDLTriggerSource with value of *MENU* - */ -+ (SDLTriggerSource *)MENU; - -/** - * @abstract Selection made via Voice session - * @return SDLTriggerSource with value of *VR* - */ -+ (SDLTriggerSource *)VR; - -/** - * @abstract Selection made via Keyboard - * @return SDLTriggerSource with value of *KEYBOARD* - */ -+ (SDLTriggerSource *)KEYBOARD; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTriggerSource.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTriggerSource.m deleted file mode 100644 index a56b66c6f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTriggerSource.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLTriggerSource.m -// - - -#import "SDLTriggerSource.h" - -SDLTriggerSource *SDLTriggerSource_MENU = nil; -SDLTriggerSource *SDLTriggerSource_VR = nil; -SDLTriggerSource *SDLTriggerSource_KEYBOARD = nil; - -NSArray *SDLTriggerSource_values = nil; - -@implementation SDLTriggerSource - -+ (SDLTriggerSource *)valueOf:(NSString *)value { - for (SDLTriggerSource *item in SDLTriggerSource.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLTriggerSource_values == nil) { - SDLTriggerSource_values = @[ - SDLTriggerSource.MENU, - SDLTriggerSource.VR, - SDLTriggerSource.KEYBOARD, - ]; - } - return SDLTriggerSource_values; -} - -+ (SDLTriggerSource *)MENU { - if (SDLTriggerSource_MENU == nil) { - SDLTriggerSource_MENU = [[SDLTriggerSource alloc] initWithValue:@"MENU"]; - } - return SDLTriggerSource_MENU; -} - -+ (SDLTriggerSource *)VR { - if (SDLTriggerSource_VR == nil) { - SDLTriggerSource_VR = [[SDLTriggerSource alloc] initWithValue:@"VR"]; - } - return SDLTriggerSource_VR; -} - -+ (SDLTriggerSource *)KEYBOARD { - if (SDLTriggerSource_KEYBOARD == nil) { - SDLTriggerSource_KEYBOARD = [[SDLTriggerSource alloc] initWithValue:@"KEYBOARD"]; - } - return SDLTriggerSource_KEYBOARD; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.h deleted file mode 100644 index ef2cf9ebe..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.h +++ /dev/null @@ -1,18 +0,0 @@ -// SDLTurn.h -// - -#import "SDLRPCMessage.h" - -@class SDLImage; - - -@interface SDLTurn : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSString *navigationText; -@property (strong) SDLImage *turnIcon; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.m deleted file mode 100644 index 875fa2e73..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.m +++ /dev/null @@ -1,53 +0,0 @@ -// SDLTurn.m -// - -#import "SDLTurn.h" - -#import "SDLImage.h" -#import "SDLNames.h" - - -@implementation SDLTurn - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setNavigationText:(NSString *)navigationText { - if (navigationText != nil) { - [store setObject:navigationText forKey:NAMES_navigationText]; - } else { - [store removeObjectForKey:NAMES_navigationText]; - } -} - -- (NSString *)navigationText { - return [store objectForKey:NAMES_navigationText]; -} - -- (void)setTurnIcon:(SDLImage *)turnIcon { - if (turnIcon != nil) { - [store setObject:turnIcon forKey:NAMES_turnIcon]; - } else { - [store removeObjectForKey:NAMES_turnIcon]; - } -} - -- (SDLImage *)turnIcon { - NSObject *obj = [store objectForKey:NAMES_turnIcon]; - if (obj == nil || [obj isKindOfClass:SDLImage.class]) { - return (SDLImage *)obj; - } else { - return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLURLRequestTask.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLURLRequestTask.h deleted file mode 100644 index 8745f8519..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLURLRequestTask.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// SDLURLRequestTask.h -// SmartDeviceLink-iOS -// -// Created by Joel Fischer on 8/17/15. -// Copyright (c) 2015 smartdevicelink. All rights reserved. -// - -#import - -@class SDLURLRequestTask; -@class SDLURLSession; - - -typedef void (^SDLURLConnectionRequestCompletionHandler)(NSData *__nullable data, NSURLResponse *__nullable response, NSError *__nullable error); - -typedef NS_ENUM(NSUInteger, SDLURLRequestTaskState) { - SDLURLRequestTaskStateRunning, - SDLURLRequestTaskStateCompleted -}; - - -NS_ASSUME_NONNULL_BEGIN - -@protocol SDLURLRequestTaskDelegate - -- (void)taskDidFinish:(SDLURLRequestTask *)task; - -@end - - -@interface SDLURLRequestTask : NSObject - -@property (weak, nonatomic) id delegate; -@property (assign, nonatomic) SDLURLRequestTaskState state; - -- (instancetype)init NS_UNAVAILABLE; -- (instancetype)initWithURLRequest:(NSURLRequest *)request completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler NS_DESIGNATED_INITIALIZER; - -+ (instancetype)taskWithURLRequest:(NSURLRequest *)request completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler; - -- (void)cancel; - -@end - -NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLURLRequestTask.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLURLRequestTask.m deleted file mode 100644 index d1895ac10..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLURLRequestTask.m +++ /dev/null @@ -1,110 +0,0 @@ -// -// SDLURLRequestTask.m -// SmartDeviceLink-iOS -// -// Created by Joel Fischer on 8/17/15. -// Copyright (c) 2015 smartdevicelink. All rights reserved. -// - -#import "SDLURLRequestTask.h" - -#import "SDLURLSession.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface SDLURLRequestTask () - -@property (strong, nonatomic) NSURLConnection *connection; -@property (strong, nonatomic, nullable) NSURLResponse *response; -@property (copy, nonatomic) SDLURLConnectionRequestCompletionHandler completionHandler; -@property (strong, nonatomic) NSMutableData *mutableData; - -@end - - -@implementation SDLURLRequestTask - -#pragma mark - Lifecycle - -- (instancetype)init { - NSAssert(NO, @"use initWithURLRequest:completionHandler instead"); - return nil; -} - -- (instancetype)initWithURLRequest:(NSURLRequest *)request completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler { - self = [super init]; - if (!self) { - return nil; - } - - _connection = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:NO]; - [_connection scheduleInRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode]; - [_connection start]; - - _completionHandler = completionHandler; - - _mutableData = [NSMutableData data]; - _response = nil; - _state = SDLURLRequestTaskStateRunning; - - return self; -} - -+ (instancetype)taskWithURLRequest:(NSURLRequest *)request completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler { - return [[self alloc] initWithURLRequest:request completionHandler:completionHandler]; -} - -- (void)dealloc { - [_connection cancel]; -} - - -#pragma mark - Data Methods - -- (void)sdl_addData:(NSData *)data { - [self.mutableData appendData:data]; -} - - -#pragma mark - Cancel - -- (void)cancel { - [self.connection cancel]; - [self connection:self.connection didFailWithError:[NSError errorWithDomain:NSURLErrorDomain code:kCFURLErrorCancelled userInfo:nil]]; -} - - -#pragma mark - NSURLConnectionDelegate - -- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error { - dispatch_async(dispatch_get_main_queue(), ^{ - self.completionHandler(nil, self.response, error); - - self.state = SDLURLRequestTaskStateCompleted; - [self.delegate taskDidFinish:self]; - }); -} - - -#pragma mark - NSURLConnectionDataDelegate - -- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { - [self sdl_addData:data]; -} - -- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response { - self.response = response; -} - -- (void)connectionDidFinishLoading:(NSURLConnection *)connection { - dispatch_async(dispatch_get_main_queue(), ^{ - self.completionHandler([self.mutableData copy], self.response, nil); - - self.state = SDLURLRequestTaskStateCompleted; - [self.delegate taskDidFinish:self]; - }); -} - -@end - -NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLURLSession.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLURLSession.h deleted file mode 100644 index 0d2a22e28..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLURLSession.h +++ /dev/null @@ -1,57 +0,0 @@ -// -// SDLURLConnection.h -// SmartDeviceLink-iOS -// -// Created by Joel Fischer on 8/17/15. -// Copyright (c) 2015 smartdevicelink. All rights reserved. -// - -#import - - -typedef void (^SDLURLConnectionRequestCompletionHandler)(NSData *__nullable data, NSURLResponse *__nullable response, NSError *__nullable error); - - -NS_ASSUME_NONNULL_BEGIN - -@interface SDLURLSession : NSObject - -@property (assign, nonatomic) NSURLRequestCachePolicy cachePolicy; - -/** - * If any task is started with a request that is at the default timeout (60.0 sec), it will be altered to this connection timeout (by default 45.0 sec). - */ -@property (assign, nonatomic) NSTimeInterval connectionTimeout; - -/** - * Get the default session, a singleton. - * - * @return The default session - */ -+ (instancetype)defaultSession; - -/** - * Retrieves data from a specified URL. Default settings for timeout and cache policy will be used. - * - * @param url An NSURLRequest will be assembled for this URL - * @param completionHandler The completion handler that will be called when the request is complete - */ -- (void)dataFromURL:(NSURL *)url completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler; - -/** - * Starts a URL request using data supplied. - * - * @param request An NSURLRequest that provides the URL, cache policy, request method, etc. The HTTPBody data in this request will be ignored - * @param data The data to be uploaded over HTTP - * @param completionHandler The completion handler that will be called when the request is complete - */ -- (void)uploadWithURLRequest:(NSURLRequest *)request data:(NSData *)data completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler; - -/** - * Tells all pending requests to cancel - */ -- (void)cancelAllTasks; - -@end - -NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLURLSession.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLURLSession.m deleted file mode 100644 index 363c6fbad..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLURLSession.m +++ /dev/null @@ -1,102 +0,0 @@ -// -// SDLURLConnection.m -// SmartDeviceLink-iOS -// -// Created by Joel Fischer on 8/17/15. -// Copyright (c) 2015 smartdevicelink. All rights reserved. -// - -#import "SDLURLSession.h" - -#import "SDLURLRequestTask.h" - - -NS_ASSUME_NONNULL_BEGIN - -static float DefaultConnectionTimeout = 45.0; - - -@interface SDLURLSession () - -@property (strong, nonatomic) NSMutableSet *activeTasks; - -@end - - -@implementation SDLURLSession - - -#pragma mark - Lifecycle - -+ (instancetype)defaultSession { - static SDLURLSession *sharedSession = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - sharedSession = [[self alloc] init]; - }); - - return sharedSession; -} - -- (void)dealloc { - for (SDLURLRequestTask *task in self.activeTasks) { - [task cancel]; - } -} - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - _cachePolicy = NSURLRequestUseProtocolCachePolicy; - _connectionTimeout = DefaultConnectionTimeout; - - _activeTasks = [NSMutableSet set]; - - return self; -} - - -#pragma mark - URL Request Methods - -- (void)dataFromURL:(NSURL *)url completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler { - NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:self.cachePolicy timeoutInterval:self.connectionTimeout]; - - SDLURLRequestTask *task = [[SDLURLRequestTask alloc] initWithURLRequest:request completionHandler:completionHandler]; - task.delegate = self; - - [self.activeTasks addObject:task]; -} - -- (void)uploadWithURLRequest:(NSURLRequest *)request data:(NSData *)data completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler { - NSMutableURLRequest *mutableRequest = [request mutableCopy]; - mutableRequest.HTTPBody = data; - mutableRequest.HTTPMethod = @"POST"; - - SDLURLRequestTask *task = [[SDLURLRequestTask alloc] initWithURLRequest:mutableRequest completionHandler:completionHandler]; - task.delegate = self; - - [self.activeTasks addObject:task]; -} - - -#pragma mark - Cancel Methods - -- (void)cancelAllTasks { - for (SDLURLRequestTask *task in self.activeTasks) { - [task cancel]; - } -} - - -#pragma mark - SDLURLRequestTaskDelegate - -- (void)taskDidFinish:(SDLURLRequestTask *)task { - [self.activeTasks removeObject:task]; -} - -@end - -NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterface.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterface.h deleted file mode 100644 index d35d40193..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterface.h +++ /dev/null @@ -1,36 +0,0 @@ -// SDLUnregisterAppInterface.h -// - - -#import "SDLRPCRequest.h" - -/** - * Terminates an application's interface registration. This causes SDL® to - * dispose of all resources associated with the application's interface - * registration (e.g. Command Menu items, Choice Sets, button subscriptions, - * etc.) - *

    - * After the UnregisterAppInterface operation is performed, no other operations - * can be performed until a new app interface registration is established by - * calling {@linkplain RegisterAppInterface} - *

    - * HMILevel can be FULL, LIMITED, BACKGROUND or NONE - *

    - * - * See SDLRegisterAppInterface SDLOnAppInterfaceUnregistered - */ -@interface SDLUnregisterAppInterface : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLUnregisterAppInterface object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLUnregisterAppInterface object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterface.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterface.m deleted file mode 100644 index 88039631d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterface.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLUnregisterAppInterface.m -// - - -#import "SDLUnregisterAppInterface.h" - -#import "SDLNames.h" - -@implementation SDLUnregisterAppInterface - -- (instancetype)init { - if (self = [super initWithName:NAMES_UnregisterAppInterface]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.h deleted file mode 100644 index 8ebbb46af..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.h +++ /dev/null @@ -1,26 +0,0 @@ -// SDLUnregisterAppInterfaceResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Unregister AppInterface Response is sent, when SDLUnregisterAppInterface has been called - * - * @since SmartDeviceLink 1.0 - */ -@interface SDLUnregisterAppInterfaceResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLUnregisterAppInterfaceResponse object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLUnregisterAppInterfaceResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.m deleted file mode 100644 index 6bebbe83d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLUnregisterAppInterfaceResponse.m -// - - -#import "SDLUnregisterAppInterfaceResponse.h" - -#import "SDLNames.h" - -@implementation SDLUnregisterAppInterfaceResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_UnregisterAppInterface]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.h deleted file mode 100644 index bb16f43f5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.h +++ /dev/null @@ -1,43 +0,0 @@ -// SDLUnsubscribeButton.h -// - -#import "SDLRPCRequest.h" - -@class SDLButtonName; - - -/** - * Deletes a subscription to button notifications for the specified button. For - * more information about button subscriptions, see SDLSubscribeButton - *

    - * Application can unsubscribe from a button that is currently being pressed - * (i.e. has not yet been released), but app will not get button event - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - - * @since SmartDeviceLink 1.0
    - * See SDLSubscribeButton - */ -@interface SDLUnsubscribeButton : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLUnsubscribeButton object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLUnsubscribeButton object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A name of the button to unsubscribe from - * @discussion An Enumeration value, see - * SDLButtonName - */ -@property (strong) SDLButtonName *buttonName; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m deleted file mode 100644 index 9853fa9da..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m +++ /dev/null @@ -1,42 +0,0 @@ -// SDLUnsubscribeButton.m -// - - -#import "SDLUnsubscribeButton.h" - -#import "SDLButtonName.h" -#import "SDLNames.h" - - -@implementation SDLUnsubscribeButton - -- (instancetype)init { - if (self = [super initWithName:NAMES_UnsubscribeButton]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setButtonName:(SDLButtonName *)buttonName { - if (buttonName != nil) { - [parameters setObject:buttonName forKey:NAMES_buttonName]; - } else { - [parameters removeObjectForKey:NAMES_buttonName]; - } -} - -- (SDLButtonName *)buttonName { - NSObject *obj = [parameters objectForKey:NAMES_buttonName]; - if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) { - return (SDLButtonName *)obj; - } else { - return [SDLButtonName valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButtonResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButtonResponse.h deleted file mode 100644 index 62011539f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButtonResponse.h +++ /dev/null @@ -1,26 +0,0 @@ -// SDLUnsubscribeButtonResponse.h -// - - -#import "SDLRPCResponse.h" - -/** - * Unsubscribe Button Response is sent, when SDLUnsubscribeButton has been called - * - * @since SmartDeviceLink 1.0 - */ -@interface SDLUnsubscribeButtonResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLUnsubscribeButtonResponse object - */ -- (instancetype)init; -/** - * @abstract Constructs a new SDLUnsubscribeButtonResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButtonResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButtonResponse.m deleted file mode 100644 index a28cf2768..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButtonResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLUnsubscribeButtonResponse.m -// - - -#import "SDLUnsubscribeButtonResponse.h" - -#import "SDLNames.h" - -@implementation SDLUnsubscribeButtonResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_UnsubscribeButton]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.h deleted file mode 100644 index 389173256..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.h +++ /dev/null @@ -1,130 +0,0 @@ -// SDLUnsubscribeVehicleData.h -// - - -#import "SDLRPCRequest.h" - -/** - * This function is used to unsubscribe the notifications from the - * subscribeVehicleData function - *

    - * Function Group: Location, VehicleInfo and DrivingChara - *

    - * HMILevel needs to be FULL, LIMITED or BACKGROUND - *

    - * - * @since SmartDeviceLink 2.0
    - * See SDLSubscribeVehicleData SDLGetVehicleData - */ -@interface SDLUnsubscribeVehicleData : SDLRPCRequest { -} - -/** - * @abstract Constructs a new SDLUnsubscribeVehicleData object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLUnsubscribeVehicleData object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A boolean value. If true, unsubscribes Gps data - */ -@property (strong) NSNumber *gps; - -/** - * @abstract A boolean value. If true, unsubscribes speed data - */ -@property (strong) NSNumber *speed; - -/** - * @abstract A boolean value. If true, unsubscribe data - */ -@property (strong) NSNumber *rpm; - -/** - * @abstract A boolean value. If true, unsubscribes FuelLevel data - */ -@property (strong) NSNumber *fuelLevel; - -/** - * @abstract A boolean value. If true, unsubscribes fuelLevel_State data - */ -@property (strong) NSNumber *fuelLevel_State; - -/** - * @abstract A boolean value. If true, unsubscribes instantFuelConsumption data - */ -@property (strong) NSNumber *instantFuelConsumption; - -/** - * @abstract A boolean value. If true, unsubscribes externalTemperature data - */ -@property (strong) NSNumber *externalTemperature; - -/** - * @abstract A boolean value. If true, unsubscribes Currently selected gear data - */ -@property (strong) NSNumber *prndl; - -/** - * @abstract A boolean value. If true, unsubscribes tire pressure status data - */ -@property (strong) NSNumber *tirePressure; - -/** - * @abstract A boolean value. If true, unsubscribes odometer data - */ -@property (strong) NSNumber *odometer; - -/** - * @abstract A boolean value. If true, unsubscribes belt Status data - */ -@property (strong) NSNumber *beltStatus; - -/** - * @abstract A boolean value. If true, unsubscribes body Information data - */ -@property (strong) NSNumber *bodyInformation; - -/** - * @abstract A boolean value. If true, unsubscribes device Status data - */ -@property (strong) NSNumber *deviceStatus; - -/** - * @abstract A boolean value. If true, unsubscribes driver Braking data - */ -@property (strong) NSNumber *driverBraking; - -/** - * @abstract A boolean value. If true, unsubscribes wiper Status data - */ -@property (strong) NSNumber *wiperStatus; - -/** - * @abstract A boolean value. If true, unsubscribes Head Lamp Status data - */ -@property (strong) NSNumber *headLampStatus; - -/** - * @abstract A boolean value. If true, unsubscribes Engine Torque data - */ -@property (strong) NSNumber *engineTorque; - -/** - * @abstract A boolean value. If true, unsubscribes accPedalPosition data - */ -@property (strong) NSNumber *accPedalPosition; -@property (strong) NSNumber *steeringWheelAngle; -@property (strong) NSNumber *eCallInfo; -@property (strong) NSNumber *airbagStatus; -@property (strong) NSNumber *emergencyEvent; -@property (strong) NSNumber *clusterModeStatus; -@property (strong) NSNumber *myKey; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.m deleted file mode 100644 index 11aa044e1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.m +++ /dev/null @@ -1,311 +0,0 @@ -// SDLUnsubscribeVehicleData.m -// - - -#import "SDLUnsubscribeVehicleData.h" - -#import "SDLNames.h" - -@implementation SDLUnsubscribeVehicleData - -- (instancetype)init { - if (self = [super initWithName:NAMES_UnsubscribeVehicleData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setGps:(NSNumber *)gps { - if (gps != nil) { - [parameters setObject:gps forKey:NAMES_gps]; - } else { - [parameters removeObjectForKey:NAMES_gps]; - } -} - -- (NSNumber *)gps { - return [parameters objectForKey:NAMES_gps]; -} - -- (void)setSpeed:(NSNumber *)speed { - if (speed != nil) { - [parameters setObject:speed forKey:NAMES_speed]; - } else { - [parameters removeObjectForKey:NAMES_speed]; - } -} - -- (NSNumber *)speed { - return [parameters objectForKey:NAMES_speed]; -} - -- (void)setRpm:(NSNumber *)rpm { - if (rpm != nil) { - [parameters setObject:rpm forKey:NAMES_rpm]; - } else { - [parameters removeObjectForKey:NAMES_rpm]; - } -} - -- (NSNumber *)rpm { - return [parameters objectForKey:NAMES_rpm]; -} - -- (void)setFuelLevel:(NSNumber *)fuelLevel { - if (fuelLevel != nil) { - [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel]; - } -} - -- (NSNumber *)fuelLevel { - return [parameters objectForKey:NAMES_fuelLevel]; -} - -- (void)setFuelLevel_State:(NSNumber *)fuelLevel_State { - if (fuelLevel_State != nil) { - [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel_State]; - } -} - -- (NSNumber *)fuelLevel_State { - return [parameters objectForKey:NAMES_fuelLevel_State]; -} - -- (void)setInstantFuelConsumption:(NSNumber *)instantFuelConsumption { - if (instantFuelConsumption != nil) { - [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; - } else { - [parameters removeObjectForKey:NAMES_instantFuelConsumption]; - } -} - -- (NSNumber *)instantFuelConsumption { - return [parameters objectForKey:NAMES_instantFuelConsumption]; -} - -- (void)setExternalTemperature:(NSNumber *)externalTemperature { - if (externalTemperature != nil) { - [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; - } else { - [parameters removeObjectForKey:NAMES_externalTemperature]; - } -} - -- (NSNumber *)externalTemperature { - return [parameters objectForKey:NAMES_externalTemperature]; -} - -- (void)setPrndl:(NSNumber *)prndl { - if (prndl != nil) { - [parameters setObject:prndl forKey:NAMES_prndl]; - } else { - [parameters removeObjectForKey:NAMES_prndl]; - } -} - -- (NSNumber *)prndl { - return [parameters objectForKey:NAMES_prndl]; -} - -- (void)setTirePressure:(NSNumber *)tirePressure { - if (tirePressure != nil) { - [parameters setObject:tirePressure forKey:NAMES_tirePressure]; - } else { - [parameters removeObjectForKey:NAMES_tirePressure]; - } -} - -- (NSNumber *)tirePressure { - return [parameters objectForKey:NAMES_tirePressure]; -} - -- (void)setOdometer:(NSNumber *)odometer { - if (odometer != nil) { - [parameters setObject:odometer forKey:NAMES_odometer]; - } else { - [parameters removeObjectForKey:NAMES_odometer]; - } -} - -- (NSNumber *)odometer { - return [parameters objectForKey:NAMES_odometer]; -} - -- (void)setBeltStatus:(NSNumber *)beltStatus { - if (beltStatus != nil) { - [parameters setObject:beltStatus forKey:NAMES_beltStatus]; - } else { - [parameters removeObjectForKey:NAMES_beltStatus]; - } -} - -- (NSNumber *)beltStatus { - return [parameters objectForKey:NAMES_beltStatus]; -} - -- (void)setBodyInformation:(NSNumber *)bodyInformation { - if (bodyInformation != nil) { - [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; - } else { - [parameters removeObjectForKey:NAMES_bodyInformation]; - } -} - -- (NSNumber *)bodyInformation { - return [parameters objectForKey:NAMES_bodyInformation]; -} - -- (void)setDeviceStatus:(NSNumber *)deviceStatus { - if (deviceStatus != nil) { - [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; - } else { - [parameters removeObjectForKey:NAMES_deviceStatus]; - } -} - -- (NSNumber *)deviceStatus { - return [parameters objectForKey:NAMES_deviceStatus]; -} - -- (void)setDriverBraking:(NSNumber *)driverBraking { - if (driverBraking != nil) { - [parameters setObject:driverBraking forKey:NAMES_driverBraking]; - } else { - [parameters removeObjectForKey:NAMES_driverBraking]; - } -} - -- (NSNumber *)driverBraking { - return [parameters objectForKey:NAMES_driverBraking]; -} - -- (void)setWiperStatus:(NSNumber *)wiperStatus { - if (wiperStatus != nil) { - [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; - } else { - [parameters removeObjectForKey:NAMES_wiperStatus]; - } -} - -- (NSNumber *)wiperStatus { - return [parameters objectForKey:NAMES_wiperStatus]; -} - -- (void)setHeadLampStatus:(NSNumber *)headLampStatus { - if (headLampStatus != nil) { - [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; - } else { - [parameters removeObjectForKey:NAMES_headLampStatus]; - } -} - -- (NSNumber *)headLampStatus { - return [parameters objectForKey:NAMES_headLampStatus]; -} - -- (void)setEngineTorque:(NSNumber *)engineTorque { - if (engineTorque != nil) { - [parameters setObject:engineTorque forKey:NAMES_engineTorque]; - } else { - [parameters removeObjectForKey:NAMES_engineTorque]; - } -} - -- (NSNumber *)engineTorque { - return [parameters objectForKey:NAMES_engineTorque]; -} - -- (void)setAccPedalPosition:(NSNumber *)accPedalPosition { - if (accPedalPosition != nil) { - [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; - } else { - [parameters removeObjectForKey:NAMES_accPedalPosition]; - } -} - -- (NSNumber *)accPedalPosition { - return [parameters objectForKey:NAMES_accPedalPosition]; -} - -- (void)setSteeringWheelAngle:(NSNumber *)steeringWheelAngle { - if (steeringWheelAngle != nil) { - [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; - } else { - [parameters removeObjectForKey:NAMES_steeringWheelAngle]; - } -} - -- (NSNumber *)steeringWheelAngle { - return [parameters objectForKey:NAMES_steeringWheelAngle]; -} - -- (void)setECallInfo:(NSNumber *)eCallInfo { - if (eCallInfo != nil) { - [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; - } else { - [parameters removeObjectForKey:NAMES_eCallInfo]; - } -} - -- (NSNumber *)eCallInfo { - return [parameters objectForKey:NAMES_eCallInfo]; -} - -- (void)setAirbagStatus:(NSNumber *)airbagStatus { - if (airbagStatus != nil) { - [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; - } else { - [parameters removeObjectForKey:NAMES_airbagStatus]; - } -} - -- (NSNumber *)airbagStatus { - return [parameters objectForKey:NAMES_airbagStatus]; -} - -- (void)setEmergencyEvent:(NSNumber *)emergencyEvent { - if (emergencyEvent != nil) { - [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; - } else { - [parameters removeObjectForKey:NAMES_emergencyEvent]; - } -} - -- (NSNumber *)emergencyEvent { - return [parameters objectForKey:NAMES_emergencyEvent]; -} - -- (void)setClusterModeStatus:(NSNumber *)clusterModeStatus { - if (clusterModeStatus != nil) { - [parameters setObject:clusterModeStatus forKey:NAMES_clusterModeStatus]; - } else { - [parameters removeObjectForKey:NAMES_clusterModeStatus]; - } -} - -- (NSNumber *)clusterModeStatus { - return [parameters objectForKey:NAMES_clusterModeStatus]; -} - -- (void)setMyKey:(NSNumber *)myKey { - if (myKey != nil) { - [parameters setObject:myKey forKey:NAMES_myKey]; - } else { - [parameters removeObjectForKey:NAMES_myKey]; - } -} - -- (NSNumber *)myKey { - return [parameters objectForKey:NAMES_myKey]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h deleted file mode 100644 index beb1b93e2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h +++ /dev/null @@ -1,129 +0,0 @@ -// SDLUnsubscribeVehicleDataResponse.h -// - -#import "SDLRPCResponse.h" - -@class SDLVehicleDataResult; - - -/** - * Unsubscribe Vehicle Data Response is sent, when UnsubscribeVehicleData has been called - * - * @since SmartDeviceLink 2.0 - */ -@interface SDLUnsubscribeVehicleDataResponse : SDLRPCResponse { -} - -/** - * @abstract Constructs a new SDLUnsubscribeVehicleDataResponse object - */ -- (instancetype)init; - -/** - * @abstract Constructs a new SDLUnsubscribeVehicleDataResponse object indicated by the NSMutableDictionary - * parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract A SDLVehicleDataResult* value. See GPSData. - */ -@property (strong) SDLVehicleDataResult *gps; - -/** - * @abstract A SDLVehicleDataResult* value. The vehicle speed in kilometers per hour. - */ -@property (strong) SDLVehicleDataResult *speed; - -/** - * @abstract A SDLVehicleDataResult* value. The number of revolutions per minute of the engine. - */ -@property (strong) SDLVehicleDataResult *rpm; - -/** - * @abstract A SDLVehicleDataResult* value. The fuel level in the tank (percentage) - */ -@property (strong) SDLVehicleDataResult *fuelLevel; - -/** - * @abstract A SDLVehicleDataResult* value. The fuel level state. - */ -@property (strong) SDLVehicleDataResult *fuelLevel_State; - -/** - * @abstract A SDLVehicleDataResult* value. The instantaneous fuel consumption in microlitres. - */ -@property (strong) SDLVehicleDataResult *instantFuelConsumption; - -/** - * @abstract A SDLVehicleDataResult* value. The external temperature in degrees celsius. - */ -@property (strong) SDLVehicleDataResult *externalTemperature; - -/** - * @abstract A SDLVehicleDataResult* value. See PRNDL. - */ -@property (strong) SDLVehicleDataResult *prndl; - -/** - * @abstract A SDLVehicleDataResult* value. See TireStatus. - */ -@property (strong) SDLVehicleDataResult *tirePressure; - -/** - * @abstract A SDLVehicleDataResult* value. Odometer in km. - */ -@property (strong) SDLVehicleDataResult *odometer; - -/** - * @abstract A SDLVehicleDataResult* value. The status of the seat belts. - */ -@property (strong) SDLVehicleDataResult *beltStatus; - -/** - * @abstract A SDLVehicleDataResult* value. The body information including power modes. - */ -@property (strong) SDLVehicleDataResult *bodyInformation; - -/** - * @abstract A SDLVehicleDataResult* value. The device status including signal and battery strength. - */ -@property (strong) SDLVehicleDataResult *deviceStatus; - -/** - * @abstract A SDLVehicleDataResult* value. The status of the brake pedal. - */ -@property (strong) SDLVehicleDataResult *driverBraking; - -/** - * @abstract A SDLVehicleDataResult* value. The status of the wipers. - */ -@property (strong) SDLVehicleDataResult *wiperStatus; - -/** - * @abstract A SDLVehicleDataResult* value. Status of the head lamps. - */ -@property (strong) SDLVehicleDataResult *headLampStatus; - -/** - * @abstract A SDLVehicleDataResult* value. Torque value for engine (in Nm) on non-diesel variants. - */ -@property (strong) SDLVehicleDataResult *engineTorque; - -/** - * @abstract A SDLVehicleDataResult* value. Accelerator pedal position (percentage depressed) - */ -@property (strong) SDLVehicleDataResult *accPedalPosition; - -/** - * @abstract A SDLVehicleDataResult* value. Current angle of the steering wheel (in deg) - */ -@property (strong) SDLVehicleDataResult *steeringWheelAngle; -@property (strong) SDLVehicleDataResult *eCallInfo; -@property (strong) SDLVehicleDataResult *airbagStatus; -@property (strong) SDLVehicleDataResult *emergencyEvent; -@property (strong) SDLVehicleDataResult *clusterModes; -@property (strong) SDLVehicleDataResult *myKey; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m deleted file mode 100644 index ec4916447..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m +++ /dev/null @@ -1,433 +0,0 @@ -// SDLUnsubscribeVehicleDataResponse.m -// - - -#import "SDLUnsubscribeVehicleDataResponse.h" - -#import "SDLNames.h" -#import "SDLVehicleDataResult.h" - - -@implementation SDLUnsubscribeVehicleDataResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_UnsubscribeVehicleData]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setGps:(SDLVehicleDataResult *)gps { - if (gps != nil) { - [parameters setObject:gps forKey:NAMES_gps]; - } else { - [parameters removeObjectForKey:NAMES_gps]; - } -} - -- (SDLVehicleDataResult *)gps { - NSObject *obj = [parameters objectForKey:NAMES_gps]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setSpeed:(SDLVehicleDataResult *)speed { - if (speed != nil) { - [parameters setObject:speed forKey:NAMES_speed]; - } else { - [parameters removeObjectForKey:NAMES_speed]; - } -} - -- (SDLVehicleDataResult *)speed { - NSObject *obj = [parameters objectForKey:NAMES_speed]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setRpm:(SDLVehicleDataResult *)rpm { - if (rpm != nil) { - [parameters setObject:rpm forKey:NAMES_rpm]; - } else { - [parameters removeObjectForKey:NAMES_rpm]; - } -} - -- (SDLVehicleDataResult *)rpm { - NSObject *obj = [parameters objectForKey:NAMES_rpm]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setFuelLevel:(SDLVehicleDataResult *)fuelLevel { - if (fuelLevel != nil) { - [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel]; - } -} - -- (SDLVehicleDataResult *)fuelLevel { - NSObject *obj = [parameters objectForKey:NAMES_fuelLevel]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setFuelLevel_State:(SDLVehicleDataResult *)fuelLevel_State { - if (fuelLevel_State != nil) { - [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; - } else { - [parameters removeObjectForKey:NAMES_fuelLevel_State]; - } -} - -- (SDLVehicleDataResult *)fuelLevel_State { - NSObject *obj = [parameters objectForKey:NAMES_fuelLevel_State]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setInstantFuelConsumption:(SDLVehicleDataResult *)instantFuelConsumption { - if (instantFuelConsumption != nil) { - [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; - } else { - [parameters removeObjectForKey:NAMES_instantFuelConsumption]; - } -} - -- (SDLVehicleDataResult *)instantFuelConsumption { - NSObject *obj = [parameters objectForKey:NAMES_instantFuelConsumption]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setExternalTemperature:(SDLVehicleDataResult *)externalTemperature { - if (externalTemperature != nil) { - [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; - } else { - [parameters removeObjectForKey:NAMES_externalTemperature]; - } -} - -- (SDLVehicleDataResult *)externalTemperature { - NSObject *obj = [parameters objectForKey:NAMES_externalTemperature]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setPrndl:(SDLVehicleDataResult *)prndl { - if (prndl != nil) { - [parameters setObject:prndl forKey:NAMES_prndl]; - } else { - [parameters removeObjectForKey:NAMES_prndl]; - } -} - -- (SDLVehicleDataResult *)prndl { - NSObject *obj = [parameters objectForKey:NAMES_prndl]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setTirePressure:(SDLVehicleDataResult *)tirePressure { - if (tirePressure != nil) { - [parameters setObject:tirePressure forKey:NAMES_tirePressure]; - } else { - [parameters removeObjectForKey:NAMES_tirePressure]; - } -} - -- (SDLVehicleDataResult *)tirePressure { - NSObject *obj = [parameters objectForKey:NAMES_tirePressure]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setOdometer:(SDLVehicleDataResult *)odometer { - if (odometer != nil) { - [parameters setObject:odometer forKey:NAMES_odometer]; - } else { - [parameters removeObjectForKey:NAMES_odometer]; - } -} - -- (SDLVehicleDataResult *)odometer { - NSObject *obj = [parameters objectForKey:NAMES_odometer]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setBeltStatus:(SDLVehicleDataResult *)beltStatus { - if (beltStatus != nil) { - [parameters setObject:beltStatus forKey:NAMES_beltStatus]; - } else { - [parameters removeObjectForKey:NAMES_beltStatus]; - } -} - -- (SDLVehicleDataResult *)beltStatus { - NSObject *obj = [parameters objectForKey:NAMES_beltStatus]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setBodyInformation:(SDLVehicleDataResult *)bodyInformation { - if (bodyInformation != nil) { - [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; - } else { - [parameters removeObjectForKey:NAMES_bodyInformation]; - } -} - -- (SDLVehicleDataResult *)bodyInformation { - NSObject *obj = [parameters objectForKey:NAMES_bodyInformation]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setDeviceStatus:(SDLVehicleDataResult *)deviceStatus { - if (deviceStatus != nil) { - [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; - } else { - [parameters removeObjectForKey:NAMES_deviceStatus]; - } -} - -- (SDLVehicleDataResult *)deviceStatus { - NSObject *obj = [parameters objectForKey:NAMES_deviceStatus]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setDriverBraking:(SDLVehicleDataResult *)driverBraking { - if (driverBraking != nil) { - [parameters setObject:driverBraking forKey:NAMES_driverBraking]; - } else { - [parameters removeObjectForKey:NAMES_driverBraking]; - } -} - -- (SDLVehicleDataResult *)driverBraking { - NSObject *obj = [parameters objectForKey:NAMES_driverBraking]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setWiperStatus:(SDLVehicleDataResult *)wiperStatus { - if (wiperStatus != nil) { - [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; - } else { - [parameters removeObjectForKey:NAMES_wiperStatus]; - } -} - -- (SDLVehicleDataResult *)wiperStatus { - NSObject *obj = [parameters objectForKey:NAMES_wiperStatus]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setHeadLampStatus:(SDLVehicleDataResult *)headLampStatus { - if (headLampStatus != nil) { - [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; - } else { - [parameters removeObjectForKey:NAMES_headLampStatus]; - } -} - -- (SDLVehicleDataResult *)headLampStatus { - NSObject *obj = [parameters objectForKey:NAMES_headLampStatus]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setEngineTorque:(SDLVehicleDataResult *)engineTorque { - if (engineTorque != nil) { - [parameters setObject:engineTorque forKey:NAMES_engineTorque]; - } else { - [parameters removeObjectForKey:NAMES_engineTorque]; - } -} - -- (SDLVehicleDataResult *)engineTorque { - NSObject *obj = [parameters objectForKey:NAMES_engineTorque]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setAccPedalPosition:(SDLVehicleDataResult *)accPedalPosition { - if (accPedalPosition != nil) { - [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; - } else { - [parameters removeObjectForKey:NAMES_accPedalPosition]; - } -} - -- (SDLVehicleDataResult *)accPedalPosition { - NSObject *obj = [parameters objectForKey:NAMES_accPedalPosition]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setSteeringWheelAngle:(SDLVehicleDataResult *)steeringWheelAngle { - if (steeringWheelAngle != nil) { - [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; - } else { - [parameters removeObjectForKey:NAMES_steeringWheelAngle]; - } -} - -- (SDLVehicleDataResult *)steeringWheelAngle { - NSObject *obj = [parameters objectForKey:NAMES_steeringWheelAngle]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setECallInfo:(SDLVehicleDataResult *)eCallInfo { - if (eCallInfo != nil) { - [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; - } else { - [parameters removeObjectForKey:NAMES_eCallInfo]; - } -} - -- (SDLVehicleDataResult *)eCallInfo { - NSObject *obj = [parameters objectForKey:NAMES_eCallInfo]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setAirbagStatus:(SDLVehicleDataResult *)airbagStatus { - if (airbagStatus != nil) { - [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; - } else { - [parameters removeObjectForKey:NAMES_airbagStatus]; - } -} - -- (SDLVehicleDataResult *)airbagStatus { - NSObject *obj = [parameters objectForKey:NAMES_airbagStatus]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setEmergencyEvent:(SDLVehicleDataResult *)emergencyEvent { - if (emergencyEvent != nil) { - [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; - } else { - [parameters removeObjectForKey:NAMES_emergencyEvent]; - } -} - -- (SDLVehicleDataResult *)emergencyEvent { - NSObject *obj = [parameters objectForKey:NAMES_emergencyEvent]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setClusterModes:(SDLVehicleDataResult *)clusterModes { - if (clusterModes != nil) { - [parameters setObject:clusterModes forKey:NAMES_clusterModes]; - } else { - [parameters removeObjectForKey:NAMES_clusterModes]; - } -} - -- (SDLVehicleDataResult *)clusterModes { - NSObject *obj = [parameters objectForKey:NAMES_clusterModes]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setMyKey:(SDLVehicleDataResult *)myKey { - if (myKey != nil) { - [parameters setObject:myKey forKey:NAMES_myKey]; - } else { - [parameters removeObjectForKey:NAMES_myKey]; - } -} - -- (SDLVehicleDataResult *)myKey { - NSObject *obj = [parameters objectForKey:NAMES_myKey]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { - return (SDLVehicleDataResult *)obj; - } else { - return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateMode.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateMode.h deleted file mode 100644 index 3ff84a2e9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateMode.h +++ /dev/null @@ -1,57 +0,0 @@ -// SDLUpdateMode.h -// - - -#import "SDLEnum.h" - -/** - * Specifies what function should be performed on the media clock/counter - * - * @since SDL 1.0 - */ -@interface SDLUpdateMode : SDLEnum { -} - -/** - * Convert String to SDLUpdateMode - * @param value The value of the string to get an object for - * @return SDLUpdateMode - */ -+ (SDLUpdateMode *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLUpdateMode - * @return an array that store all possible SDLUpdateMode - */ -+ (NSArray *)values; - -/** - * @abstract Starts the media clock timer counting upward, in increments of 1 second. - * @return SDLUpdateMode with value of *COUNTUP* - */ -+ (SDLUpdateMode *)COUNTUP; - -/** - * @abstract Starts the media clock timer counting downward, in increments of 1 second. - * @return SDLUpdateMode with value of *COUNTDOWN* - */ -+ (SDLUpdateMode *)COUNTDOWN; - -/** - * @abstract Pauses the media clock timer. - * @return SDLUpdateMode with value of *PAUSE* - */ -+ (SDLUpdateMode *)PAUSE; - -/** - * @abstract Resumes the media clock timer. The timer resumes counting in whatever mode was in effect before pausing (i.e. COUNTUP or COUNTDOWN). - * @return SDLUpdateMode with value of *RESUME* - */ -+ (SDLUpdateMode *)RESUME; - -/** - * @abstract Clear the media clock timer. - */ -+ (SDLUpdateMode *)CLEAR; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateMode.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateMode.m deleted file mode 100644 index 2a2e8c7e5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateMode.m +++ /dev/null @@ -1,74 +0,0 @@ -// SDLUpdateMode.m -// - - -#import "SDLUpdateMode.h" - -SDLUpdateMode *SDLUpdateMode_COUNTUP = nil; -SDLUpdateMode *SDLUpdateMode_COUNTDOWN = nil; -SDLUpdateMode *SDLUpdateMode_PAUSE = nil; -SDLUpdateMode *SDLUpdateMode_RESUME = nil; -SDLUpdateMode *SDLUpdateMode_CLEAR = nil; - -NSArray *SDLUpdateMode_values = nil; - -@implementation SDLUpdateMode - -+ (SDLUpdateMode *)valueOf:(NSString *)value { - for (SDLUpdateMode *item in SDLUpdateMode.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLUpdateMode_values == nil) { - SDLUpdateMode_values = @[ - SDLUpdateMode.COUNTUP, - SDLUpdateMode.COUNTDOWN, - SDLUpdateMode.PAUSE, - SDLUpdateMode.RESUME, - SDLUpdateMode.CLEAR, - ]; - } - return SDLUpdateMode_values; -} - -+ (SDLUpdateMode *)COUNTUP { - if (SDLUpdateMode_COUNTUP == nil) { - SDLUpdateMode_COUNTUP = [[SDLUpdateMode alloc] initWithValue:@"COUNTUP"]; - } - return SDLUpdateMode_COUNTUP; -} - -+ (SDLUpdateMode *)COUNTDOWN { - if (SDLUpdateMode_COUNTDOWN == nil) { - SDLUpdateMode_COUNTDOWN = [[SDLUpdateMode alloc] initWithValue:@"COUNTDOWN"]; - } - return SDLUpdateMode_COUNTDOWN; -} - -+ (SDLUpdateMode *)PAUSE { - if (SDLUpdateMode_PAUSE == nil) { - SDLUpdateMode_PAUSE = [[SDLUpdateMode alloc] initWithValue:@"PAUSE"]; - } - return SDLUpdateMode_PAUSE; -} - -+ (SDLUpdateMode *)RESUME { - if (SDLUpdateMode_RESUME == nil) { - SDLUpdateMode_RESUME = [[SDLUpdateMode alloc] initWithValue:@"RESUME"]; - } - return SDLUpdateMode_RESUME; -} - -+ (SDLUpdateMode *)CLEAR { - if (SDLUpdateMode_CLEAR == nil) { - SDLUpdateMode_CLEAR = [[SDLUpdateMode alloc] initWithValue:@"CLEAR"]; - } - return SDLUpdateMode_CLEAR; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnList.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnList.h deleted file mode 100644 index d5d9daf6a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnList.h +++ /dev/null @@ -1,28 +0,0 @@ -// SDLUpdateTurnList.h -// - - -#import "SDLRPCRequest.h" - -/** Updates the list of next maneuvers, which can be requested by the user pressing the softbutton
    - * “Turns” on the Navigation base screen. Three softbuttons are predefined by the system: Up, Down, Close. - *

    - * @since SmartDeviceLink 2.0 - */ -@interface SDLUpdateTurnList : SDLRPCRequest { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * Optional, SDLTurn, 1 - 100 entries - */ -@property (strong) NSMutableArray *turnList; - -/** - * Required, SDLSoftButton, 0 - 1 Entries - */ -@property (strong) NSMutableArray *softButtons; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnList.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnList.m deleted file mode 100644 index 7063c9c29..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnList.m +++ /dev/null @@ -1,67 +0,0 @@ -// SDLUpdateTurnList.m -// - - -#import "SDLUpdateTurnList.h" - -#import "SDLNames.h" -#import "SDLSoftButton.h" -#import "SDLTurn.h" - -@implementation SDLUpdateTurnList - -- (instancetype)init { - if (self = [super initWithName:NAMES_UpdateTurnList]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setTurnList:(NSMutableArray *)turnList { - if (turnList != nil) { - [parameters setObject:turnList forKey:NAMES_turnList]; - } else { - [parameters removeObjectForKey:NAMES_turnList]; - } -} - -- (NSMutableArray *)turnList { - NSMutableArray *array = [parameters objectForKey:NAMES_turnList]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTurn.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLTurn alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -- (void)setSoftButtons:(NSMutableArray *)softButtons { - if (softButtons != nil) { - [parameters setObject:softButtons forKey:NAMES_softButtons]; - } else { - [parameters removeObjectForKey:NAMES_softButtons]; - } -} - -- (NSMutableArray *)softButtons { - NSMutableArray *array = [parameters objectForKey:NAMES_softButtons]; - if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButton.class]) { - return array; - } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; - for (NSDictionary *dict in array) { - [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]]; - } - return newList; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnListResponse.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnListResponse.h deleted file mode 100644 index c02c912e9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnListResponse.h +++ /dev/null @@ -1,16 +0,0 @@ -// SDLUpdateTurnListResponse.h -// - -#import "SDLRPCResponse.h" - - -/** SDLUpdateTurnListResponse is sent, when SDLUpdateTurnList has been called. - * SinceSmartDeviceLink 2.0 - */ -@interface SDLUpdateTurnListResponse : SDLRPCResponse { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnListResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnListResponse.m deleted file mode 100644 index 18e04082b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnListResponse.m +++ /dev/null @@ -1,23 +0,0 @@ -// SDLUpdateTurnListResponse.m -// - - -#import "SDLUpdateTurnListResponse.h" - -#import "SDLNames.h" - -@implementation SDLUpdateTurnListResponse - -- (instancetype)init { - if (self = [super initWithName:NAMES_UpdateTurnList]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolHeader.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolHeader.h deleted file mode 100644 index b7fa454f2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolHeader.h +++ /dev/null @@ -1,14 +0,0 @@ -// SDLSmartDeviceLinkV1ProtocolHeader.h -// - - -#import "SDLProtocolHeader.h" - -@interface SDLV1ProtocolHeader : SDLProtocolHeader - -- (instancetype)init; -- (NSData *)data; -- (void)parse:(NSData *)data; -- (NSString *)description; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolHeader.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolHeader.m deleted file mode 100644 index 61c976c51..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolHeader.m +++ /dev/null @@ -1,84 +0,0 @@ -// SDLSmartDeviceLinkV1ProtocolHeader.m -// - - -#import "SDLV1ProtocolHeader.h" - -const int V1PROTOCOL_HEADERSIZE = 8; - -@implementation SDLV1ProtocolHeader - -- (instancetype)init { - if (self = [super init]) { - _version = 1; - _size = V1PROTOCOL_HEADERSIZE; - } - return self; -} - -- (NSData *)data { - // Assembles the properties in the binary header format - Byte headerBytes[V1PROTOCOL_HEADERSIZE] = {0}; - - Byte version = (self.version & 0xF) << 4; // first 4 bits - Byte compressed = (self.compressed ? 1 : 0) << 3; // next 1 bit - Byte frameType = (self.frameType & 0x7); // last 3 bits - - headerBytes[0] = version | compressed | frameType; - headerBytes[1] = self.serviceType; - headerBytes[2] = self.frameData; - headerBytes[3] = self.sessionID; - - // Need to write the larger ints as big-endian. - UInt32 *p = (UInt32 *)&headerBytes[4]; - *p = CFSwapInt32HostToBig(self.bytesInPayload); // swap the byte order - - // Now put it all in an NSData object. - NSData *dataOut = [NSData dataWithBytes:headerBytes length:V1PROTOCOL_HEADERSIZE]; - - return dataOut; -} - -- (id)copyWithZone:(NSZone *)zone { - SDLV1ProtocolHeader *newHeader = [[SDLV1ProtocolHeader allocWithZone:zone] init]; - newHeader.compressed = self.compressed; - newHeader.frameType = self.frameType; - newHeader.serviceType = self.serviceType; - newHeader.frameData = self.frameData; - newHeader.bytesInPayload = self.bytesInPayload; - newHeader.sessionID = self.sessionID; - - return newHeader; -} - -- (void)parse:(NSData *)data { - NSParameterAssert(data != nil); - NSAssert(data.length >= _size, @"Error: insufficient data available to parse V1 header."); - - Byte *bytePointer = (Byte *)data.bytes; - Byte firstByte = bytePointer[0]; - self.compressed = ((firstByte & 8) != 0); - self.frameType = (firstByte & 7); - self.serviceType = bytePointer[1]; - self.frameData = bytePointer[2]; - self.sessionID = bytePointer[3]; - - UInt32 *uintPointer = (UInt32 *)data.bytes; - self.bytesInPayload = CFSwapInt32BigToHost(uintPointer[1]); // Data is coming in in big-endian, so swap it. -} - -- (NSString *)description { - NSMutableString *description = [[NSMutableString alloc] init]; - [description appendFormat:@"Version:%i, compressed:%i, frameType:%i, serviceType:%i, frameData:%i, sessionID:%i, dataSize:%i", - self.version, - self.compressed, - self.frameType, - self.serviceType, - self.frameData, - self.sessionID, - (unsigned int)self.bytesInPayload]; - return description; -} - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolMessage.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolMessage.h deleted file mode 100644 index 39f26e76e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolMessage.h +++ /dev/null @@ -1,14 +0,0 @@ -// SDLV1ProtocolMessage.h -// - -#import "SDLProtocolMessage.h" - -@class SDLProtocolHeader; - - -@interface SDLV1ProtocolMessage : SDLProtocolMessage - -- (instancetype)initWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload; -- (NSDictionary *)rpcDictionary; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolMessage.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolMessage.m deleted file mode 100644 index 736dd0b13..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV1ProtocolMessage.m +++ /dev/null @@ -1,24 +0,0 @@ -// SDLV1ProtocolMessage.m -// - -#import "SDLV1ProtocolMessage.h" -#import "SDLJsonDecoder.h" -#import "SDLProtocolHeader.h" - - -@implementation SDLV1ProtocolMessage - -- (instancetype)initWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload { - if (self = [self init]) { - self.header = header; - self.payload = payload; - } - return self; -} - -- (NSDictionary *)rpcDictionary { - NSDictionary *rpcMessageAsDictionary = [[SDLJsonDecoder instance] decode:self.payload]; - return rpcMessageAsDictionary; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolHeader.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolHeader.h deleted file mode 100644 index c7a0d4272..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolHeader.h +++ /dev/null @@ -1,17 +0,0 @@ -// SDLSmartDeviceLinkV2ProtocolHeader.h -// - - -#import "SDLProtocolHeader.h" - -@interface SDLV2ProtocolHeader : SDLProtocolHeader - -@property (assign) UInt32 messageID; - -- (instancetype)init; -- (instancetype)initWithVersion:(UInt8)version; -- (NSData *)data; -- (void)parse:(NSData *)data; -- (NSString *)description; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolHeader.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolHeader.m deleted file mode 100644 index 42f915cb8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolHeader.m +++ /dev/null @@ -1,124 +0,0 @@ -// SDLSmartDeviceLinkV2ProtocolHeader.m -// - - -#import "SDLV2ProtocolHeader.h" - -const int V2PROTOCOL_HEADERSIZE = 12; - - -@interface SDLV2ProtocolHeader () - -@end - - -@implementation SDLV2ProtocolHeader - -- (instancetype)init { - // TODO: Should this be changed to whatever the current version is from SDLGlobals - return [self initWithVersion:2]; -} - -- (instancetype)initWithVersion:(UInt8)version { - if (self = [super init]) { - _version = version; - _size = V2PROTOCOL_HEADERSIZE; - } - return self; -} - -- (NSData *)data { - // Assembles the properties in the binary header format - Byte headerBytes[V2PROTOCOL_HEADERSIZE] = {0}; - - Byte version = (self.version & 0xF) << 4; // first 4 bits - Byte compressed = (self.compressed ? 1 : 0) << 3; // next 1 bit - Byte frameType = (self.frameType & 0x7); // last 3 bits - - headerBytes[0] = version | compressed | frameType; - headerBytes[1] = self.serviceType; - headerBytes[2] = self.frameData; - headerBytes[3] = self.sessionID; - - // Need to write these ints as big-endian. - UInt32 *p = (UInt32 *)&headerBytes[4]; - *p = CFSwapInt32HostToBig(self.bytesInPayload); - - p = (UInt32 *)&headerBytes[8]; - *p = CFSwapInt32HostToBig(self.messageID); - - // Now put it all in an NSData object. - NSData *dataOut = [NSData dataWithBytes:headerBytes length:V2PROTOCOL_HEADERSIZE]; - - return dataOut; -} - -- (id)copyWithZone:(NSZone *)zone { - SDLV2ProtocolHeader *newHeader = [[SDLV2ProtocolHeader allocWithZone:zone] init]; - newHeader->_version = self.version; - newHeader.compressed = self.compressed; - newHeader.frameType = self.frameType; - newHeader.serviceType = self.serviceType; - newHeader.frameData = self.frameData; - newHeader.bytesInPayload = self.bytesInPayload; - newHeader.sessionID = self.sessionID; - newHeader.messageID = self.messageID; - - return newHeader; -} - -- (void)parse:(NSData *)data { - NSParameterAssert(data != nil); - NSAssert(data.length >= _size, @"Error: insufficient data available to parse V2 header."); - - Byte *bytePointer = (Byte *)data.bytes; - Byte firstByte = bytePointer[0]; - self.compressed = ((firstByte & 8) != 0); - self.frameType = (firstByte & 7); - self.serviceType = bytePointer[1]; - self.frameData = bytePointer[2]; - self.sessionID = bytePointer[3]; - - UInt32 *uintPointer = (UInt32 *)data.bytes; - self.bytesInPayload = CFSwapInt32BigToHost(uintPointer[1]); // Data is coming in in big-endian, so swap it. - self.messageID = CFSwapInt32BigToHost(uintPointer[2]); // Data is coming in in big-endian, so swap it. -} - -- (NSString *)description { - NSString *frameTypeString = nil; - if (self.frameType >= 0 && self.frameType <= 3) { - NSArray *frameTypeNames = @[ @"Control", @"Single", @"First", @"Consecutive" ]; - frameTypeString = frameTypeNames[self.frameType]; - } - - - NSString *frameDataString = nil; - if (self.frameType == SDLFrameType_Control) { - if (self.frameData >= 0 && self.frameData <= 5) { - NSArray *controlFrameDataNames = @[ @"Heartbeat", @"StartSession", @"StartSessionACK", @"StartSessionNACK", @"EndSession", @"EndSessionNACK" ]; - frameDataString = controlFrameDataNames[self.frameData]; - } else { - frameDataString = @"Reserved"; - } - } else if (self.frameType == SDLFrameType_Single || self.frameType == SDLFrameType_First) { - frameDataString = @"Reserved"; - } else if (self.frameType == SDLFrameType_Consecutive) { - frameDataString = @"Frame#"; - } - - NSMutableString *description = [[NSMutableString alloc] init]; - [description appendFormat:@"Version:%i, compressed:%i, frameType:%@(%i), serviceType:%i, frameData:%@(%i), sessionID:%i, dataSize:%i, messageID:%i ", - self.version, - self.compressed, - frameTypeString, - self.frameType, - self.serviceType, - frameDataString, - self.frameData, - self.sessionID, - (unsigned int)self.bytesInPayload, - (unsigned int)self.messageID]; - return description; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolMessage.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolMessage.h deleted file mode 100644 index 6f9912cf9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolMessage.h +++ /dev/null @@ -1,15 +0,0 @@ -// SDLSmartDeviceLinkV2ProtocolMessage.h -// - - -#import "SDLProtocolMessage.h" - -@class SDLProtocolHeader; - - -@interface SDLV2ProtocolMessage : SDLProtocolMessage - -- (instancetype)initWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload; -- (NSDictionary *)rpcDictionary; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolMessage.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolMessage.m deleted file mode 100644 index 683c10335..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLV2ProtocolMessage.m +++ /dev/null @@ -1,60 +0,0 @@ -// SDLSmartDeviceLinkV2ProtocolMessage.m -// - -#import "SDLV2ProtocolMessage.h" -#import "SDLFunctionID.h" -#import "SDLJsonDecoder.h" -#import "SDLNames.h" -#import "SDLProtocolHeader.h" -#import "SDLRPCPayload.h" - - -@implementation SDLV2ProtocolMessage - -- (instancetype)initWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload { - if (self = [self init]) { - self.header = header; - self.payload = payload; - } - return self; -} - -// Convert RPC payload to dictionary (for consumption by RPC layer) -- (NSDictionary *)rpcDictionary { - // Only applicable to RPCs - if ((self.header.serviceType != SDLServiceType_RPC) && (self.header.serviceType != SDLServiceType_BulkData)) { - return nil; - } - - NSMutableDictionary *rpcMessageAsDictionary = [[NSMutableDictionary alloc] init]; - - // Parse the payload as RPC struct - SDLRPCPayload *rpcPayload = [SDLRPCPayload rpcPayloadWithData:self.payload]; - - // Create the inner dictionary with the RPC properties - NSMutableDictionary *innerDictionary = [[NSMutableDictionary alloc] init]; - NSString *functionName = [[[SDLFunctionID alloc] init] getFunctionName:rpcPayload.functionID]; - [innerDictionary setObject:functionName forKey:NAMES_operation_name]; - [innerDictionary setObject:[NSNumber numberWithInt:rpcPayload.correlationID] forKey:NAMES_correlationID]; - - // Get the json data from the struct - if (rpcPayload.jsonData) { - NSDictionary *jsonDictionary = [[SDLJsonDecoder instance] decode:rpcPayload.jsonData]; - if (jsonDictionary) { - [innerDictionary setObject:jsonDictionary forKey:NAMES_parameters]; - } - } - - // Store it in the containing dictionary - UInt8 rpcType = rpcPayload.rpcType; - NSArray *rpcTypeNames = @[ NAMES_request, NAMES_response, NAMES_notification ]; - [rpcMessageAsDictionary setObject:innerDictionary forKey:rpcTypeNames[rpcType]]; - - // The bulk data also goes in the dictionary - if (rpcPayload.binaryData) { - [rpcMessageAsDictionary setObject:rpcPayload.binaryData forKey:NAMES_bulkData]; - } - - return rpcMessageAsDictionary; -} -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataActiveStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataActiveStatus.h deleted file mode 100644 index dbb36b550..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataActiveStatus.h +++ /dev/null @@ -1,46 +0,0 @@ -// SDLVehicleDataActiveStatus.h -// - - -#import "SDLEnum.h" - -/** - Vehicle Data Activity Status - */ -@interface SDLVehicleDataActiveStatus : SDLEnum { -} - -/** - * @abstract Convert String to SDLVehicleDataActiveStatus - * @param value NSString - * @return SDLVehicleDataActiveStatus - */ -+ (SDLVehicleDataActiveStatus *)valueOf:(NSString *)value; - -/** - @abstract return the array that store all possible SDLVehicleDataActiveStatus values - */ -+ (NSArray *)values; - -/** - @abstract SDLVehicleDataActiveStatus : Inactive not confirmed - */ -+ (SDLVehicleDataActiveStatus *)INACTIVE_NOT_CONFIRMED; -/** - @abstract SDLVehicleDataActiveStatus : Inactive confirmed - */ -+ (SDLVehicleDataActiveStatus *)INACTIVE_CONFIRMED; -/** - @abstract SDLVehicleDataActiveStatus : Active not confirmed - */ -+ (SDLVehicleDataActiveStatus *)ACTIVE_NOT_CONFIRMED; -/** - @abstract SDLVehicleDataActiveStatus : Active confirmed - */ -+ (SDLVehicleDataActiveStatus *)ACTIVE_CONFIRMED; -/** - @abstract SDLVehicleDataActiveStatus : Fault - */ -+ (SDLVehicleDataActiveStatus *)FAULT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataActiveStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataActiveStatus.m deleted file mode 100644 index 98bf85738..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataActiveStatus.m +++ /dev/null @@ -1,74 +0,0 @@ -// SDLVehicleDataActiveStatus.m -// - - -#import "SDLVehicleDataActiveStatus.h" - -SDLVehicleDataActiveStatus *SDLVehicleDataActiveStatus_INACTIVE_NOT_CONFIRMED = nil; -SDLVehicleDataActiveStatus *SDLVehicleDataActiveStatus_INACTIVE_CONFIRMED = nil; -SDLVehicleDataActiveStatus *SDLVehicleDataActiveStatus_ACTIVE_NOT_CONFIRMED = nil; -SDLVehicleDataActiveStatus *SDLVehicleDataActiveStatus_ACTIVE_CONFIRMED = nil; -SDLVehicleDataActiveStatus *SDLVehicleDataActiveStatus_FAULT = nil; - -NSArray *SDLVehicleDataActiveStatus_values = nil; - -@implementation SDLVehicleDataActiveStatus - -+ (SDLVehicleDataActiveStatus *)valueOf:(NSString *)value { - for (SDLVehicleDataActiveStatus *item in SDLVehicleDataActiveStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLVehicleDataActiveStatus_values == nil) { - SDLVehicleDataActiveStatus_values = @[ - SDLVehicleDataActiveStatus.INACTIVE_NOT_CONFIRMED, - SDLVehicleDataActiveStatus.INACTIVE_CONFIRMED, - SDLVehicleDataActiveStatus.ACTIVE_NOT_CONFIRMED, - SDLVehicleDataActiveStatus.ACTIVE_CONFIRMED, - SDLVehicleDataActiveStatus.FAULT, - ]; - } - return SDLVehicleDataActiveStatus_values; -} - -+ (SDLVehicleDataActiveStatus *)INACTIVE_NOT_CONFIRMED { - if (SDLVehicleDataActiveStatus_INACTIVE_NOT_CONFIRMED == nil) { - SDLVehicleDataActiveStatus_INACTIVE_NOT_CONFIRMED = [[SDLVehicleDataActiveStatus alloc] initWithValue:@"INACTIVE_NOT_CONFIRMED"]; - } - return SDLVehicleDataActiveStatus_INACTIVE_NOT_CONFIRMED; -} - -+ (SDLVehicleDataActiveStatus *)INACTIVE_CONFIRMED { - if (SDLVehicleDataActiveStatus_INACTIVE_CONFIRMED == nil) { - SDLVehicleDataActiveStatus_INACTIVE_CONFIRMED = [[SDLVehicleDataActiveStatus alloc] initWithValue:@"INACTIVE_CONFIRMED"]; - } - return SDLVehicleDataActiveStatus_INACTIVE_CONFIRMED; -} - -+ (SDLVehicleDataActiveStatus *)ACTIVE_NOT_CONFIRMED { - if (SDLVehicleDataActiveStatus_ACTIVE_NOT_CONFIRMED == nil) { - SDLVehicleDataActiveStatus_ACTIVE_NOT_CONFIRMED = [[SDLVehicleDataActiveStatus alloc] initWithValue:@"ACTIVE_NOT_CONFIRMED"]; - } - return SDLVehicleDataActiveStatus_ACTIVE_NOT_CONFIRMED; -} - -+ (SDLVehicleDataActiveStatus *)ACTIVE_CONFIRMED { - if (SDLVehicleDataActiveStatus_ACTIVE_CONFIRMED == nil) { - SDLVehicleDataActiveStatus_ACTIVE_CONFIRMED = [[SDLVehicleDataActiveStatus alloc] initWithValue:@"ACTIVE_CONFIRMED"]; - } - return SDLVehicleDataActiveStatus_ACTIVE_CONFIRMED; -} - -+ (SDLVehicleDataActiveStatus *)FAULT { - if (SDLVehicleDataActiveStatus_FAULT == nil) { - SDLVehicleDataActiveStatus_FAULT = [[SDLVehicleDataActiveStatus alloc] initWithValue:@"FAULT"]; - } - return SDLVehicleDataActiveStatus_FAULT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataEventStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataEventStatus.h deleted file mode 100644 index 880e4ec2d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataEventStatus.h +++ /dev/null @@ -1,58 +0,0 @@ -// SDLVehicleDataEventStatus.h -// - - -#import "SDLEnum.h" - -/** - * Reflects the status of a vehicle data event; e.g. a seat belt event status. - * - * @since SDL 2.0 - */ -@interface SDLVehicleDataEventStatus : SDLEnum { -} - -/** - * Convert String to SDLVehicleDataEventStatus - * - * @param value The value of the string to get an object for - * - * @return SDLVehicleDataEventStatus - */ -+ (SDLVehicleDataEventStatus *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLVehicleDataEventStatus - * - * @return an array that store all possible SDLVehicleDataEventStatus - */ -+ (NSArray *)values; - -/** - * @return The SDLVehicleDataEventStatus instance with value of *NO_EVENT* - */ -+ (SDLVehicleDataEventStatus *)NO_EVENT; - -/** - * @return The SDLVehicleDataEventStatus instance with value of *NO* - */ -+ (SDLVehicleDataEventStatus *)_NO; - -/** - * @return The SDLVehicleDataEventStatus instance with value of *YES* - */ -+ (SDLVehicleDataEventStatus *)_YES; - -/** - * @abstract Vehicle data event is not supported - * - * @return the SDLVehicleDataEventStatus instance with value of *NOT_SUPPORTED* - */ -+ (SDLVehicleDataEventStatus *)NOT_SUPPORTED; - -/** - * @abstract The SDLVehicleDataEventStatus instance with value of *FAULT* - */ -+ (SDLVehicleDataEventStatus *)FAULT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataEventStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataEventStatus.m deleted file mode 100644 index a27178886..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataEventStatus.m +++ /dev/null @@ -1,74 +0,0 @@ -// SDLVehicleDataEventStatus.m -// - - -#import "SDLVehicleDataEventStatus.h" - -SDLVehicleDataEventStatus *SDLVehicleDataEventStatus_NO_EVENT = nil; -SDLVehicleDataEventStatus *SDLVehicleDataEventStatus_NO = nil; -SDLVehicleDataEventStatus *SDLVehicleDataEventStatus_YES = nil; -SDLVehicleDataEventStatus *SDLVehicleDataEventStatus_NOT_SUPPORTED = nil; -SDLVehicleDataEventStatus *SDLVehicleDataEventStatus_FAULT = nil; - -NSArray *SDLVehicleDataEventStatus_values = nil; - -@implementation SDLVehicleDataEventStatus - -+ (SDLVehicleDataEventStatus *)valueOf:(NSString *)value { - for (SDLVehicleDataEventStatus *item in SDLVehicleDataEventStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLVehicleDataEventStatus_values == nil) { - SDLVehicleDataEventStatus_values = @[ - SDLVehicleDataEventStatus.NO_EVENT, - SDLVehicleDataEventStatus._NO, - SDLVehicleDataEventStatus._YES, - SDLVehicleDataEventStatus.NOT_SUPPORTED, - SDLVehicleDataEventStatus.FAULT, - ]; - } - return SDLVehicleDataEventStatus_values; -} - -+ (SDLVehicleDataEventStatus *)NO_EVENT { - if (SDLVehicleDataEventStatus_NO_EVENT == nil) { - SDLVehicleDataEventStatus_NO_EVENT = [[SDLVehicleDataEventStatus alloc] initWithValue:@"NO_EVENT"]; - } - return SDLVehicleDataEventStatus_NO_EVENT; -} - -+ (SDLVehicleDataEventStatus *)_NO { - if (SDLVehicleDataEventStatus_NO == nil) { - SDLVehicleDataEventStatus_NO = [[SDLVehicleDataEventStatus alloc] initWithValue:@"NO"]; - } - return SDLVehicleDataEventStatus_NO; -} - -+ (SDLVehicleDataEventStatus *)_YES { - if (SDLVehicleDataEventStatus_YES == nil) { - SDLVehicleDataEventStatus_YES = [[SDLVehicleDataEventStatus alloc] initWithValue:@"YES"]; - } - return SDLVehicleDataEventStatus_YES; -} - -+ (SDLVehicleDataEventStatus *)NOT_SUPPORTED { - if (SDLVehicleDataEventStatus_NOT_SUPPORTED == nil) { - SDLVehicleDataEventStatus_NOT_SUPPORTED = [[SDLVehicleDataEventStatus alloc] initWithValue:@"NOT_SUPPORTED"]; - } - return SDLVehicleDataEventStatus_NOT_SUPPORTED; -} - -+ (SDLVehicleDataEventStatus *)FAULT { - if (SDLVehicleDataEventStatus_FAULT == nil) { - SDLVehicleDataEventStatus_FAULT = [[SDLVehicleDataEventStatus alloc] initWithValue:@"FAULT"]; - } - return SDLVehicleDataEventStatus_FAULT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataNotificationStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataNotificationStatus.h deleted file mode 100644 index 24a3fc372..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataNotificationStatus.h +++ /dev/null @@ -1,48 +0,0 @@ -// SDLVehicleDataNotificationStatus.h -// - - -#import "SDLEnum.h" - -/** - * Reflects the status of a vehicle data notification. - * - * @since SDL 2.0 - */ -@interface SDLVehicleDataNotificationStatus : SDLEnum { -} - -/** - * Convert String to SDLVehicleDataNotificationStatus - * @param value The value of the string to get an object for - * @return SDLVehicleDataNotificationStatus - */ -+ (SDLVehicleDataNotificationStatus *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLVehicleDataNotificationStatus - * @return an array that store all possible SDLVehicleDataNotificationStatus - */ -+ (NSArray *)values; - -/** - * @abstract SDLVehicleDataNotificationStatus: *NOT_SUPPORTED* - */ -+ (SDLVehicleDataNotificationStatus *)NOT_SUPPORTED; - -/** - @abstract SDLVehicleDataNotificationStatus: *NORMAL* - */ -+ (SDLVehicleDataNotificationStatus *)NORMAL; - -/** - @abstract SDLVehicleDataNotificationStatus: *ACTIVE* - */ -+ (SDLVehicleDataNotificationStatus *)ACTIVE; - -/** - @abstract SDLVehicleDataNotificationStatus: *NOT_USED* - */ -+ (SDLVehicleDataNotificationStatus *)NOT_USED; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataNotificationStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataNotificationStatus.m deleted file mode 100644 index 40d66d163..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataNotificationStatus.m +++ /dev/null @@ -1,65 +0,0 @@ -// SDLVehicleDataNotificationStatus.m -// - - -#import "SDLVehicleDataNotificationStatus.h" - -SDLVehicleDataNotificationStatus *SDLVehicleDataNotificationStatus_NOT_SUPPORTED = nil; -SDLVehicleDataNotificationStatus *SDLVehicleDataNotificationStatus_NORMAL = nil; -SDLVehicleDataNotificationStatus *SDLVehicleDataNotificationStatus_ACTIVE = nil; -SDLVehicleDataNotificationStatus *SDLVehicleDataNotificationStatus_NOT_USED = nil; - -NSArray *SDLVehicleDataNotificationStatus_values = nil; - -@implementation SDLVehicleDataNotificationStatus - -+ (SDLVehicleDataNotificationStatus *)valueOf:(NSString *)value { - for (SDLVehicleDataNotificationStatus *item in SDLVehicleDataNotificationStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLVehicleDataNotificationStatus_values == nil) { - SDLVehicleDataNotificationStatus_values = @[ - SDLVehicleDataNotificationStatus.NOT_SUPPORTED, - SDLVehicleDataNotificationStatus.NORMAL, - SDLVehicleDataNotificationStatus.ACTIVE, - SDLVehicleDataNotificationStatus.NOT_USED, - ]; - } - return SDLVehicleDataNotificationStatus_values; -} - -+ (SDLVehicleDataNotificationStatus *)NOT_SUPPORTED { - if (SDLVehicleDataNotificationStatus_NOT_SUPPORTED == nil) { - SDLVehicleDataNotificationStatus_NOT_SUPPORTED = [[SDLVehicleDataNotificationStatus alloc] initWithValue:@"NOT_SUPPORTED"]; - } - return SDLVehicleDataNotificationStatus_NOT_SUPPORTED; -} - -+ (SDLVehicleDataNotificationStatus *)NORMAL { - if (SDLVehicleDataNotificationStatus_NORMAL == nil) { - SDLVehicleDataNotificationStatus_NORMAL = [[SDLVehicleDataNotificationStatus alloc] initWithValue:@"NORMAL"]; - } - return SDLVehicleDataNotificationStatus_NORMAL; -} - -+ (SDLVehicleDataNotificationStatus *)ACTIVE { - if (SDLVehicleDataNotificationStatus_ACTIVE == nil) { - SDLVehicleDataNotificationStatus_ACTIVE = [[SDLVehicleDataNotificationStatus alloc] initWithValue:@"ACTIVE"]; - } - return SDLVehicleDataNotificationStatus_ACTIVE; -} - -+ (SDLVehicleDataNotificationStatus *)NOT_USED { - if (SDLVehicleDataNotificationStatus_NOT_USED == nil) { - SDLVehicleDataNotificationStatus_NOT_USED = [[SDLVehicleDataNotificationStatus alloc] initWithValue:@"NOT_USED"]; - } - return SDLVehicleDataNotificationStatus_NOT_USED; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.h deleted file mode 100644 index 9a03e5d07..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.h +++ /dev/null @@ -1,19 +0,0 @@ -// SDLVehicleDataResult.h -// - -#import "SDLRPCMessage.h" - -@class SDLVehicleDataType; -@class SDLVehicleDataResultCode; - - -@interface SDLVehicleDataResult : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) SDLVehicleDataType *dataType; -@property (strong) SDLVehicleDataResultCode *resultCode; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.m deleted file mode 100644 index e395717eb..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.m +++ /dev/null @@ -1,59 +0,0 @@ -// SDLVehicleDataResult.m -// - -#import "SDLVehicleDataResult.h" - -#import "SDLNames.h" -#import "SDLVehicleDataResultCode.h" -#import "SDLVehicleDataType.h" - - -@implementation SDLVehicleDataResult - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setDataType:(SDLVehicleDataType *)dataType { - if (dataType != nil) { - [store setObject:dataType forKey:NAMES_dataType]; - } else { - [store removeObjectForKey:NAMES_dataType]; - } -} - -- (SDLVehicleDataType *)dataType { - NSObject *obj = [store objectForKey:NAMES_dataType]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataType.class]) { - return (SDLVehicleDataType *)obj; - } else { - return [SDLVehicleDataType valueOf:(NSString *)obj]; - } -} - -- (void)setResultCode:(SDLVehicleDataResultCode *)resultCode { - if (resultCode != nil) { - [store setObject:resultCode forKey:NAMES_resultCode]; - } else { - [store removeObjectForKey:NAMES_resultCode]; - } -} - -- (SDLVehicleDataResultCode *)resultCode { - NSObject *obj = [store objectForKey:NAMES_resultCode]; - if (obj == nil || [obj isKindOfClass:SDLVehicleDataResultCode.class]) { - return (SDLVehicleDataResultCode *)obj; - } else { - return [SDLVehicleDataResultCode valueOf:(NSString *)obj]; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResultCode.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResultCode.h deleted file mode 100644 index 162ecff59..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResultCode.h +++ /dev/null @@ -1,71 +0,0 @@ -// SDLVehicleDataResultCode.h -// - - -#import "SDLEnum.h" - -/** - 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; - -/** - * Individual vehicle data item / DTC / DID request or subscription successful - */ -+ (SDLVehicleDataResultCode *)SUCCESS; - -/** - * DTC / DID request successful, however, not all active DTCs or full contents of DID location available - */ -+ (SDLVehicleDataResultCode *)TRUNCATED_DATA; - -/** - * This vehicle data item is not allowed for this app by SDL - */ -+ (SDLVehicleDataResultCode *)DISALLOWED; - -/** - * The user has not granted access to this type of vehicle data item at this time - */ -+ (SDLVehicleDataResultCode *)USER_DISALLOWED; - -/** - * The ECU ID referenced is not a valid ID on the bus / system - */ -+ (SDLVehicleDataResultCode *)INVALID_ID; - -/** - * The requested vehicle data item / DTC / DID is not currently available or responding on the bus / system - */ -+ (SDLVehicleDataResultCode *)VEHICLE_DATA_NOT_AVAILABLE; - -/** - * The vehicle data item is already subscribed - */ -+ (SDLVehicleDataResultCode *)DATA_ALREADY_SUBSCRIBED; - -/** - * The vehicle data item cannot be unsubscribed because it is not currently subscribed - */ -+ (SDLVehicleDataResultCode *)DATA_NOT_SUBSCRIBED; - -/** - * The request for this item is ignored because it is already in progress - */ -+ (SDLVehicleDataResultCode *)IGNORED; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResultCode.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResultCode.m deleted file mode 100644 index 8aa912568..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResultCode.m +++ /dev/null @@ -1,110 +0,0 @@ -// SDLVehicleDataResultCode.m -// - - -#import "SDLVehicleDataResultCode.h" - -SDLVehicleDataResultCode *SDLVehicleDataResultCode_SUCCESS = nil; -SDLVehicleDataResultCode *SDLVehicleDataResultCode_TRUNCATED_DATA = nil; -SDLVehicleDataResultCode *SDLVehicleDataResultCode_DISALLOWED = nil; -SDLVehicleDataResultCode *SDLVehicleDataResultCode_USER_DISALLOWED = nil; -SDLVehicleDataResultCode *SDLVehicleDataResultCode_INVALID_ID = nil; -SDLVehicleDataResultCode *SDLVehicleDataResultCode_VEHICLE_DATA_NOT_AVAILABLE = nil; -SDLVehicleDataResultCode *SDLVehicleDataResultCode_DATA_ALREADY_SUBSCRIBED = nil; -SDLVehicleDataResultCode *SDLVehicleDataResultCode_DATA_NOT_SUBSCRIBED = nil; -SDLVehicleDataResultCode *SDLVehicleDataResultCode_IGNORED = nil; - -NSArray *SDLVehicleDataResultCode_values = nil; - -@implementation SDLVehicleDataResultCode - -+ (SDLVehicleDataResultCode *)valueOf:(NSString *)value { - for (SDLVehicleDataResultCode *item in SDLVehicleDataResultCode.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLVehicleDataResultCode_values == nil) { - SDLVehicleDataResultCode_values = @[ - SDLVehicleDataResultCode.SUCCESS, - SDLVehicleDataResultCode.TRUNCATED_DATA, - SDLVehicleDataResultCode.DISALLOWED, - SDLVehicleDataResultCode.USER_DISALLOWED, - SDLVehicleDataResultCode.INVALID_ID, - SDLVehicleDataResultCode.VEHICLE_DATA_NOT_AVAILABLE, - SDLVehicleDataResultCode.DATA_ALREADY_SUBSCRIBED, - SDLVehicleDataResultCode.DATA_NOT_SUBSCRIBED, - SDLVehicleDataResultCode.IGNORED, - ]; - } - return SDLVehicleDataResultCode_values; -} - -+ (SDLVehicleDataResultCode *)SUCCESS { - if (SDLVehicleDataResultCode_SUCCESS == nil) { - SDLVehicleDataResultCode_SUCCESS = [[SDLVehicleDataResultCode alloc] initWithValue:@"SUCCESS"]; - } - return SDLVehicleDataResultCode_SUCCESS; -} - -+ (SDLVehicleDataResultCode *)TRUNCATED_DATA { - if (SDLVehicleDataResultCode_TRUNCATED_DATA == nil) { - SDLVehicleDataResultCode_TRUNCATED_DATA = [[SDLVehicleDataResultCode alloc] initWithValue:@"TRUNCATED_DATA"]; - } - return SDLVehicleDataResultCode_TRUNCATED_DATA; -} - -+ (SDLVehicleDataResultCode *)DISALLOWED { - if (SDLVehicleDataResultCode_DISALLOWED == nil) { - SDLVehicleDataResultCode_DISALLOWED = [[SDLVehicleDataResultCode alloc] initWithValue:@"DISALLOWED"]; - } - return SDLVehicleDataResultCode_DISALLOWED; -} - -+ (SDLVehicleDataResultCode *)USER_DISALLOWED { - if (SDLVehicleDataResultCode_USER_DISALLOWED == nil) { - SDLVehicleDataResultCode_USER_DISALLOWED = [[SDLVehicleDataResultCode alloc] initWithValue:@"USER_DISALLOWED"]; - } - return SDLVehicleDataResultCode_USER_DISALLOWED; -} - -+ (SDLVehicleDataResultCode *)INVALID_ID { - if (SDLVehicleDataResultCode_INVALID_ID == nil) { - SDLVehicleDataResultCode_INVALID_ID = [[SDLVehicleDataResultCode alloc] initWithValue:@"INVALID_ID"]; - } - return SDLVehicleDataResultCode_INVALID_ID; -} - -+ (SDLVehicleDataResultCode *)VEHICLE_DATA_NOT_AVAILABLE { - if (SDLVehicleDataResultCode_VEHICLE_DATA_NOT_AVAILABLE == nil) { - SDLVehicleDataResultCode_VEHICLE_DATA_NOT_AVAILABLE = [[SDLVehicleDataResultCode alloc] initWithValue:@"VEHICLE_DATA_NOT_AVAILABLE"]; - } - return SDLVehicleDataResultCode_VEHICLE_DATA_NOT_AVAILABLE; -} - -+ (SDLVehicleDataResultCode *)DATA_ALREADY_SUBSCRIBED { - if (SDLVehicleDataResultCode_DATA_ALREADY_SUBSCRIBED == nil) { - SDLVehicleDataResultCode_DATA_ALREADY_SUBSCRIBED = [[SDLVehicleDataResultCode alloc] initWithValue:@"DATA_ALREADY_SUBSCRIBED"]; - } - return SDLVehicleDataResultCode_DATA_ALREADY_SUBSCRIBED; -} - -+ (SDLVehicleDataResultCode *)DATA_NOT_SUBSCRIBED { - if (SDLVehicleDataResultCode_DATA_NOT_SUBSCRIBED == nil) { - SDLVehicleDataResultCode_DATA_NOT_SUBSCRIBED = [[SDLVehicleDataResultCode alloc] initWithValue:@"DATA_NOT_SUBSCRIBED"]; - } - return SDLVehicleDataResultCode_DATA_NOT_SUBSCRIBED; -} - -+ (SDLVehicleDataResultCode *)IGNORED { - if (SDLVehicleDataResultCode_IGNORED == nil) { - SDLVehicleDataResultCode_IGNORED = [[SDLVehicleDataResultCode alloc] initWithValue:@"IGNORED"]; - } - return SDLVehicleDataResultCode_IGNORED; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataStatus.h deleted file mode 100644 index e7720c924..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataStatus.h +++ /dev/null @@ -1,44 +0,0 @@ -// SDLVehicleDataStatus.h -// - - -#import "SDLEnum.h" - -/** - * Reflects the status of a binary vehicle data item. - * - * @since SDL 2.0 - */ -@interface SDLVehicleDataStatus : SDLEnum { -} - -/** - * Convert String to SDLVehicleDataStatus - * @param value The value of the string to get an object for - * @return SDLVehicleDataStatus - */ -+ (SDLVehicleDataStatus *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLVehicleDataStatus - * @return an array that store all possible SDLVehicleDataStatus - */ -+ (NSArray *)values; - -/** - * @abstract No data avaliable - * @return SDLVehicleDataStatus: *NO_DATA_EXISTS* - */ -+ (SDLVehicleDataStatus *)NO_DATA_EXISTS; - -/** - * @abstract return SDLVehicleDataStatus: *OFF* - */ -+ (SDLVehicleDataStatus *)OFF; - -/** - * @abstract return SDLVehicleDataStatus: *ON* - */ -+ (SDLVehicleDataStatus *)ON; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataStatus.m deleted file mode 100644 index 0fe108a1e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataStatus.m +++ /dev/null @@ -1,56 +0,0 @@ -// SDLVehicleDataStatus.m -// - - -#import "SDLVehicleDataStatus.h" - -SDLVehicleDataStatus *SDLVehicleDataStatus_NO_DATA_EXISTS = nil; -SDLVehicleDataStatus *SDLVehicleDataStatus_OFF = nil; -SDLVehicleDataStatus *SDLVehicleDataStatus_ON = nil; - -NSArray *SDLVehicleDataStatus_values = nil; - -@implementation SDLVehicleDataStatus - -+ (SDLVehicleDataStatus *)valueOf:(NSString *)value { - for (SDLVehicleDataStatus *item in SDLVehicleDataStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLVehicleDataStatus_values == nil) { - SDLVehicleDataStatus_values = @[ - SDLVehicleDataStatus.NO_DATA_EXISTS, - SDLVehicleDataStatus.OFF, - SDLVehicleDataStatus.ON, - ]; - } - return SDLVehicleDataStatus_values; -} - -+ (SDLVehicleDataStatus *)NO_DATA_EXISTS { - if (SDLVehicleDataStatus_NO_DATA_EXISTS == nil) { - SDLVehicleDataStatus_NO_DATA_EXISTS = [[SDLVehicleDataStatus alloc] initWithValue:@"NO_DATA_EXISTS"]; - } - return SDLVehicleDataStatus_NO_DATA_EXISTS; -} - -+ (SDLVehicleDataStatus *)OFF { - if (SDLVehicleDataStatus_OFF == nil) { - SDLVehicleDataStatus_OFF = [[SDLVehicleDataStatus alloc] initWithValue:@"OFF"]; - } - return SDLVehicleDataStatus_OFF; -} - -+ (SDLVehicleDataStatus *)ON { - if (SDLVehicleDataStatus_ON == nil) { - SDLVehicleDataStatus_ON = [[SDLVehicleDataStatus alloc] initWithValue:@"ON"]; - } - return SDLVehicleDataStatus_ON; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataType.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataType.h deleted file mode 100644 index 71ec1f4fe..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataType.h +++ /dev/null @@ -1,159 +0,0 @@ -// SDLVehicleDataType.h -// - - -#import "SDLEnum.h" - -/** - * Defines the vehicle data types that can be published and/or subscribed to using SDLSubscribeVehicleData - */ -@interface SDLVehicleDataType : SDLEnum { -} - -/** - * Convert String to SDLVehicleDataType - * - * @param value String value to retrieve the object for - * - * @return SDLVehicleDataType - */ -+ (SDLVehicleDataType *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLVehicleDataType - * - * @return an array that store all possible SDLVehicleDataType - */ -+ (NSArray *)values; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_GPS* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_GPS; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_SPEED* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_SPEED; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_RPM* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_RPM; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_FUELLEVEL* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_FUELLEVEL; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_FUELLEVEL_STATE* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_FUELLEVEL_STATE; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_FUELCONSUMPTION* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_FUELCONSUMPTION; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_EXTERNTEMP* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_EXTERNTEMP; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_VIN* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_VIN; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_PRNDL* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_PRNDL; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_TIREPRESSURE* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_TIREPRESSURE; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_ODOMETER* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_ODOMETER; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_BELTSTATUS* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_BELTSTATUS; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_BODYINFO* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_BODYINFO; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_DEVICESTATUS* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_DEVICESTATUS; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_ECALLINFO* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_ECALLINFO; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_AIRBAGSTATUS* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_AIRBAGSTATUS; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_EMERGENCYEVENT* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_EMERGENCYEVENT; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_CLUSTERMODESTATUS* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_CLUSTERMODESTATUS; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_MYKEY* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_MYKEY; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_BRAKING* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_BRAKING; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_WIPERSTATUS* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_WIPERSTATUS; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_HEADLAMPSTATUS* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_HEADLAMPSTATUS; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_BATTVOLTAGE* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_BATTVOLTAGE; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_ENGINETORQUE* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_ENGINETORQUE; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_ACCPEDAL* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_ACCPEDAL; - -/** - * @abstract SDLVehicleDataType: *VEHICLEDATA_STEERINGWHEEL* - */ -+ (SDLVehicleDataType *)VEHICLEDATA_STEERINGWHEEL; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataType.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataType.m deleted file mode 100644 index fa5573745..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataType.m +++ /dev/null @@ -1,263 +0,0 @@ -// SDLVehicleDataType.m -// - - -#import "SDLVehicleDataType.h" - -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_GPS = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_SPEED = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_RPM = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_FUELLEVEL = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_FUELLEVEL_STATE = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_FUELCONSUMPTION = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_EXTERNTEMP = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_VIN = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_PRNDL = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_TIREPRESSURE = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_ODOMETER = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_BELTSTATUS = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_BODYINFO = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_DEVICESTATUS = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_ECALLINFO = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_AIRBAGSTATUS = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_EMERGENCYEVENT = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_CLUSTERMODESTATUS = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_MYKEY = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_BRAKING = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_WIPERSTATUS = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_HEADLAMPSTATUS = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_BATTVOLTAGE = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_ENGINETORQUE = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_ACCPEDAL = nil; -SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_STEERINGWHEEL = nil; - -NSArray *SDLVehicleDataType_values = nil; - -@implementation SDLVehicleDataType - -+ (SDLVehicleDataType *)valueOf:(NSString *)value { - for (SDLVehicleDataType *item in SDLVehicleDataType.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLVehicleDataType_values == nil) { - SDLVehicleDataType_values = @[ - SDLVehicleDataType.VEHICLEDATA_GPS, - SDLVehicleDataType.VEHICLEDATA_SPEED, - SDLVehicleDataType.VEHICLEDATA_RPM, - SDLVehicleDataType.VEHICLEDATA_FUELLEVEL, - SDLVehicleDataType.VEHICLEDATA_FUELLEVEL_STATE, - SDLVehicleDataType.VEHICLEDATA_FUELCONSUMPTION, - SDLVehicleDataType.VEHICLEDATA_EXTERNTEMP, - SDLVehicleDataType.VEHICLEDATA_VIN, - SDLVehicleDataType.VEHICLEDATA_PRNDL, - SDLVehicleDataType.VEHICLEDATA_TIREPRESSURE, - SDLVehicleDataType.VEHICLEDATA_ODOMETER, - SDLVehicleDataType.VEHICLEDATA_BELTSTATUS, - SDLVehicleDataType.VEHICLEDATA_BODYINFO, - SDLVehicleDataType.VEHICLEDATA_DEVICESTATUS, - SDLVehicleDataType.VEHICLEDATA_ECALLINFO, - SDLVehicleDataType.VEHICLEDATA_AIRBAGSTATUS, - SDLVehicleDataType.VEHICLEDATA_EMERGENCYEVENT, - SDLVehicleDataType.VEHICLEDATA_CLUSTERMODESTATUS, - SDLVehicleDataType.VEHICLEDATA_MYKEY, - SDLVehicleDataType.VEHICLEDATA_BRAKING, - SDLVehicleDataType.VEHICLEDATA_WIPERSTATUS, - SDLVehicleDataType.VEHICLEDATA_HEADLAMPSTATUS, - SDLVehicleDataType.VEHICLEDATA_BATTVOLTAGE, - SDLVehicleDataType.VEHICLEDATA_ENGINETORQUE, - SDLVehicleDataType.VEHICLEDATA_ACCPEDAL, - SDLVehicleDataType.VEHICLEDATA_STEERINGWHEEL, - ]; - } - return SDLVehicleDataType_values; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_GPS { - if (SDLVehicleDataType_VEHICLEDATA_GPS == nil) { - SDLVehicleDataType_VEHICLEDATA_GPS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_GPS"]; - } - return SDLVehicleDataType_VEHICLEDATA_GPS; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_SPEED { - if (SDLVehicleDataType_VEHICLEDATA_SPEED == nil) { - SDLVehicleDataType_VEHICLEDATA_SPEED = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_SPEED"]; - } - return SDLVehicleDataType_VEHICLEDATA_SPEED; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_RPM { - if (SDLVehicleDataType_VEHICLEDATA_RPM == nil) { - SDLVehicleDataType_VEHICLEDATA_RPM = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_RPM"]; - } - return SDLVehicleDataType_VEHICLEDATA_RPM; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_FUELLEVEL { - if (SDLVehicleDataType_VEHICLEDATA_FUELLEVEL == nil) { - SDLVehicleDataType_VEHICLEDATA_FUELLEVEL = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_FUELLEVEL"]; - } - return SDLVehicleDataType_VEHICLEDATA_FUELLEVEL; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_FUELLEVEL_STATE { - if (SDLVehicleDataType_VEHICLEDATA_FUELLEVEL_STATE == nil) { - SDLVehicleDataType_VEHICLEDATA_FUELLEVEL_STATE = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_FUELLEVEL_STATE"]; - } - return SDLVehicleDataType_VEHICLEDATA_FUELLEVEL_STATE; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_FUELCONSUMPTION { - if (SDLVehicleDataType_VEHICLEDATA_FUELCONSUMPTION == nil) { - SDLVehicleDataType_VEHICLEDATA_FUELCONSUMPTION = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_FUELCONSUMPTION"]; - } - return SDLVehicleDataType_VEHICLEDATA_FUELCONSUMPTION; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_EXTERNTEMP { - if (SDLVehicleDataType_VEHICLEDATA_EXTERNTEMP == nil) { - SDLVehicleDataType_VEHICLEDATA_EXTERNTEMP = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_EXTERNTEMP"]; - } - return SDLVehicleDataType_VEHICLEDATA_EXTERNTEMP; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_VIN { - if (SDLVehicleDataType_VEHICLEDATA_VIN == nil) { - SDLVehicleDataType_VEHICLEDATA_VIN = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_VIN"]; - } - return SDLVehicleDataType_VEHICLEDATA_VIN; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_PRNDL { - if (SDLVehicleDataType_VEHICLEDATA_PRNDL == nil) { - SDLVehicleDataType_VEHICLEDATA_PRNDL = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_PRNDL"]; - } - return SDLVehicleDataType_VEHICLEDATA_PRNDL; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_TIREPRESSURE { - if (SDLVehicleDataType_VEHICLEDATA_TIREPRESSURE == nil) { - SDLVehicleDataType_VEHICLEDATA_TIREPRESSURE = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_TIREPRESSURE"]; - } - return SDLVehicleDataType_VEHICLEDATA_TIREPRESSURE; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_ODOMETER { - if (SDLVehicleDataType_VEHICLEDATA_ODOMETER == nil) { - SDLVehicleDataType_VEHICLEDATA_ODOMETER = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_ODOMETER"]; - } - return SDLVehicleDataType_VEHICLEDATA_ODOMETER; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_BELTSTATUS { - if (SDLVehicleDataType_VEHICLEDATA_BELTSTATUS == nil) { - SDLVehicleDataType_VEHICLEDATA_BELTSTATUS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_BELTSTATUS"]; - } - return SDLVehicleDataType_VEHICLEDATA_BELTSTATUS; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_BODYINFO { - if (SDLVehicleDataType_VEHICLEDATA_BODYINFO == nil) { - SDLVehicleDataType_VEHICLEDATA_BODYINFO = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_BODYINFO"]; - } - return SDLVehicleDataType_VEHICLEDATA_BODYINFO; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_DEVICESTATUS { - if (SDLVehicleDataType_VEHICLEDATA_DEVICESTATUS == nil) { - SDLVehicleDataType_VEHICLEDATA_DEVICESTATUS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_DEVICESTATUS"]; - } - return SDLVehicleDataType_VEHICLEDATA_DEVICESTATUS; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_ECALLINFO { - if (SDLVehicleDataType_VEHICLEDATA_ECALLINFO == nil) { - SDLVehicleDataType_VEHICLEDATA_ECALLINFO = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_ECALLINFO"]; - } - return SDLVehicleDataType_VEHICLEDATA_ECALLINFO; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_AIRBAGSTATUS { - if (SDLVehicleDataType_VEHICLEDATA_AIRBAGSTATUS == nil) { - SDLVehicleDataType_VEHICLEDATA_AIRBAGSTATUS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_AIRBAGSTATUS"]; - } - return SDLVehicleDataType_VEHICLEDATA_AIRBAGSTATUS; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_EMERGENCYEVENT { - if (SDLVehicleDataType_VEHICLEDATA_EMERGENCYEVENT == nil) { - SDLVehicleDataType_VEHICLEDATA_EMERGENCYEVENT = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_EMERGENCYEVENT"]; - } - return SDLVehicleDataType_VEHICLEDATA_EMERGENCYEVENT; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_CLUSTERMODESTATUS { - if (SDLVehicleDataType_VEHICLEDATA_CLUSTERMODESTATUS == nil) { - SDLVehicleDataType_VEHICLEDATA_CLUSTERMODESTATUS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_CLUSTERMODESTATUS"]; - } - return SDLVehicleDataType_VEHICLEDATA_CLUSTERMODESTATUS; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_MYKEY { - if (SDLVehicleDataType_VEHICLEDATA_MYKEY == nil) { - SDLVehicleDataType_VEHICLEDATA_MYKEY = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_MYKEY"]; - } - return SDLVehicleDataType_VEHICLEDATA_MYKEY; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_BRAKING { - if (SDLVehicleDataType_VEHICLEDATA_BRAKING == nil) { - SDLVehicleDataType_VEHICLEDATA_BRAKING = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_BRAKING"]; - } - return SDLVehicleDataType_VEHICLEDATA_BRAKING; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_WIPERSTATUS { - if (SDLVehicleDataType_VEHICLEDATA_WIPERSTATUS == nil) { - SDLVehicleDataType_VEHICLEDATA_WIPERSTATUS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_WIPERSTATUS"]; - } - return SDLVehicleDataType_VEHICLEDATA_WIPERSTATUS; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_HEADLAMPSTATUS { - if (SDLVehicleDataType_VEHICLEDATA_HEADLAMPSTATUS == nil) { - SDLVehicleDataType_VEHICLEDATA_HEADLAMPSTATUS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_HEADLAMPSTATUS"]; - } - return SDLVehicleDataType_VEHICLEDATA_HEADLAMPSTATUS; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_BATTVOLTAGE { - if (SDLVehicleDataType_VEHICLEDATA_BATTVOLTAGE == nil) { - SDLVehicleDataType_VEHICLEDATA_BATTVOLTAGE = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_BATTVOLTAGE"]; - } - return SDLVehicleDataType_VEHICLEDATA_BATTVOLTAGE; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_ENGINETORQUE { - if (SDLVehicleDataType_VEHICLEDATA_ENGINETORQUE == nil) { - SDLVehicleDataType_VEHICLEDATA_ENGINETORQUE = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_ENGINETORQUE"]; - } - return SDLVehicleDataType_VEHICLEDATA_ENGINETORQUE; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_ACCPEDAL { - if (SDLVehicleDataType_VEHICLEDATA_ACCPEDAL == nil) { - SDLVehicleDataType_VEHICLEDATA_ACCPEDAL = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_ACCPEDAL"]; - } - return SDLVehicleDataType_VEHICLEDATA_ACCPEDAL; -} - -+ (SDLVehicleDataType *)VEHICLEDATA_STEERINGWHEEL { - if (SDLVehicleDataType_VEHICLEDATA_STEERINGWHEEL == nil) { - SDLVehicleDataType_VEHICLEDATA_STEERINGWHEEL = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_STEERINGWHEEL"]; - } - return SDLVehicleDataType_VEHICLEDATA_STEERINGWHEEL; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleType.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleType.h deleted file mode 100644 index 1a934b5eb..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleType.h +++ /dev/null @@ -1,62 +0,0 @@ -// SDLVehicleType.h -// - - -#import "SDLRPCMessage.h" - -/** - * Describes the type of vehicle the mobile phone is connected with. - * - * @since SDL 2.0 - */ -@interface SDLVehicleType : SDLRPCStruct { -} - -/** - * @abstract Constructs a newly allocated SDLVehicleType object - */ -- (instancetype)init; - -/** - * @abstract Constructs a newly allocated SDLVehicleType object indicated by the dictionary parameter - * @param dict The dictionary to use - */ -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -/** - * @abstract The make of the vehicle - * - * @discussion For example, "Ford", "Lincoln", etc. - * - * Optional, Max String length 500 chars - */ -@property (strong) NSString *make; - -/** - * @abstract The model of the vehicle - * - * @discussion For example, "Fiesta", "Focus", etc. - * - * Optional, Max String length 500 chars - */ -@property (strong) NSString *model; - -/** - * @abstract The model year of the vehicle - * - * @discussion For example, "2013" - * - * Optional, Max String length 500 chars - */ -@property (strong) NSString *modelYear; - -/** - * @abstract The trim of the vehicle - * - * @discussion For example, "SE", "SEL" - * - * Optional, Max String length 500 chars - */ -@property (strong) NSString *trim; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleType.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleType.m deleted file mode 100644 index ebee2de7f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleType.m +++ /dev/null @@ -1,71 +0,0 @@ -// SDLVehicleType.m -// - - -#import "SDLVehicleType.h" - -#import "SDLNames.h" - -@implementation SDLVehicleType - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setMake:(NSString *)make { - if (make != nil) { - [store setObject:make forKey:NAMES_make]; - } else { - [store removeObjectForKey:NAMES_make]; - } -} - -- (NSString *)make { - return [store objectForKey:NAMES_make]; -} - -- (void)setModel:(NSString *)model { - if (model != nil) { - [store setObject:model forKey:NAMES_model]; - } else { - [store removeObjectForKey:NAMES_model]; - } -} - -- (NSString *)model { - return [store objectForKey:NAMES_model]; -} - -- (void)setModelYear:(NSString *)modelYear { - if (modelYear != nil) { - [store setObject:modelYear forKey:NAMES_modelYear]; - } else { - [store removeObjectForKey:NAMES_modelYear]; - } -} - -- (NSString *)modelYear { - return [store objectForKey:NAMES_modelYear]; -} - -- (void)setTrim:(NSString *)trim { - if (trim != nil) { - [store setObject:trim forKey:NAMES_trim]; - } else { - [store removeObjectForKey:NAMES_trim]; - } -} - -- (NSString *)trim { - return [store objectForKey:NAMES_trim]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrCapabilities.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrCapabilities.h deleted file mode 100644 index 0698d272f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrCapabilities.h +++ /dev/null @@ -1,34 +0,0 @@ -// SDLVRCapabilities.h -// - - -#import "SDLEnum.h" - -/** - * The VR capabilities of the connected SDL platform. - * - * @since SDL 1.0 - */ -@interface SDLVRCapabilities : SDLEnum { -} - -/** - * Convert String to SDLVRCapabilities - * @param value The value of the string to get an object for - * @return SDLVRCapabilities - */ -+ (SDLVRCapabilities *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLVRCapabilities - * @return an array that store all possible SDLVRCapabilities - */ -+ (NSArray *)values; - -/** - * @abstract The SDL platform is capable of recognizing spoken text in the current language. - * @return an SDLVRCapabilities instance pointer with value of *TEXT* - */ -+ (SDLVRCapabilities *)TEXT; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrCapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrCapabilities.m deleted file mode 100644 index 72c8c39d2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrCapabilities.m +++ /dev/null @@ -1,42 +0,0 @@ -// SDLVRCapabilities.m -// - - -#import "SDLVRCapabilities.h" - -SDLVRCapabilities *SDLVRCapabilities_TEXT = nil; - -NSArray *SDLVRCapabilities_values = nil; - -@implementation SDLVRCapabilities - -+ (SDLVRCapabilities *)valueOf:(NSString *)value { - for (SDLVRCapabilities *item in SDLVRCapabilities.values) { - //NOTE: This was added for Sync Module Compatability, V1 module resturns "Text" and a - // Gen 1.1 module returns "TEXT", the new if statement makes a case insensitive - // check instead to accept both - //if ([item.value isEqualToString:value]) { - if (item.value && [item.value caseInsensitiveCompare:value] == NSOrderedSame) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLVRCapabilities_values == nil) { - SDLVRCapabilities_values = @[ - SDLVRCapabilities.TEXT, - ]; - } - return SDLVRCapabilities_values; -} - -+ (SDLVRCapabilities *)TEXT { - if (SDLVRCapabilities_TEXT == nil) { - SDLVRCapabilities_TEXT = [[SDLVRCapabilities alloc] initWithValue:@"TEXT"]; - } - return SDLVRCapabilities_TEXT; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.h deleted file mode 100644 index a46c1301b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.h +++ /dev/null @@ -1,19 +0,0 @@ -// SDLVRHelpItem.h -// - -#import "SDLRPCMessage.h" - -@class SDLImage; - - -@interface SDLVRHelpItem : SDLRPCStruct { -} - -- (instancetype)init; -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; - -@property (strong) NSString *text; -@property (strong) SDLImage *image; -@property (strong) NSNumber *position; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.m deleted file mode 100644 index 4ed2c1409..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.m +++ /dev/null @@ -1,65 +0,0 @@ -// SDLVRHelpItem.m -// - - -#import "SDLVRHelpItem.h" - -#import "SDLImage.h" -#import "SDLNames.h" - -@implementation SDLVRHelpItem - -- (instancetype)init { - if (self = [super init]) { - } - return self; -} - -- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { - if (self = [super initWithDictionary:dict]) { - } - return self; -} - -- (void)setText:(NSString *)text { - if (text != nil) { - [store setObject:text forKey:NAMES_text]; - } else { - [store removeObjectForKey:NAMES_text]; - } -} - -- (NSString *)text { - return [store objectForKey:NAMES_text]; -} - -- (void)setImage:(SDLImage *)image { - if (image != nil) { - [store setObject:image forKey:NAMES_image]; - } else { - [store removeObjectForKey:NAMES_image]; - } -} - -- (SDLImage *)image { - NSObject *obj = [store objectForKey:NAMES_image]; - if (obj == nil || [obj isKindOfClass:SDLImage.class]) { - return (SDLImage *)obj; - } else { - return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; - } -} - -- (void)setPosition:(NSNumber *)position { - if (position != nil) { - [store setObject:position forKey:NAMES_position]; - } else { - [store removeObjectForKey:NAMES_position]; - } -} - -- (NSNumber *)position { - return [store objectForKey:NAMES_position]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLWarningLightStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLWarningLightStatus.h deleted file mode 100644 index 1176d5371..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLWarningLightStatus.h +++ /dev/null @@ -1,52 +0,0 @@ -// SDLWarningLightStatus.h -// - - -#import "SDLEnum.h" - -/** - * Reflects the status of a cluster instrument warning light. - * - * @since SDL 2.0 - */ -@interface SDLWarningLightStatus : SDLEnum { -} - -/** - * Convert String to SDLWarningLightStatus - * @param value The value of the string to get an object for - * @return SDLWarningLightStatus - */ -+ (SDLWarningLightStatus *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLWarningLightStatus - * @return an array that store all possible SDLWarningLightStatus - */ -+ (NSArray *)values; - -/** - * @abstract Warninglight Off - * @return SDLWarningLightStatus instance with value of *OFF* - */ -+ (SDLWarningLightStatus *)OFF; - -/** - * @abstract Warninglight On - * @return SDLWarningLightStatus instance with value of *ON* - */ -+ (SDLWarningLightStatus *)ON; - -/** - * @abstract Warninglight is flashing - * @return SDLWarningLightStatus instance with value of *FLASH* - */ -+ (SDLWarningLightStatus *)FLASH; - -/** - * @abstract Not used - * @return SDLWarningLightStatus instance with value of *NOT_USED* - */ -+ (SDLWarningLightStatus *)NOT_USED; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLWarningLightStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLWarningLightStatus.m deleted file mode 100644 index c9d47a407..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLWarningLightStatus.m +++ /dev/null @@ -1,65 +0,0 @@ -// SDLWarningLightStatus.m -// - - -#import "SDLWarningLightStatus.h" - -SDLWarningLightStatus *SDLWarningLightStatus_OFF = nil; -SDLWarningLightStatus *SDLWarningLightStatus_ON = nil; -SDLWarningLightStatus *SDLWarningLightStatus_FLASH = nil; -SDLWarningLightStatus *SDLWarningLightStatus_NOT_USED = nil; - -NSArray *SDLWarningLightStatus_values = nil; - -@implementation SDLWarningLightStatus - -+ (SDLWarningLightStatus *)valueOf:(NSString *)value { - for (SDLWarningLightStatus *item in SDLWarningLightStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLWarningLightStatus_values == nil) { - SDLWarningLightStatus_values = @[ - SDLWarningLightStatus.OFF, - SDLWarningLightStatus.ON, - SDLWarningLightStatus.FLASH, - SDLWarningLightStatus.NOT_USED, - ]; - } - return SDLWarningLightStatus_values; -} - -+ (SDLWarningLightStatus *)OFF { - if (SDLWarningLightStatus_OFF == nil) { - SDLWarningLightStatus_OFF = [[SDLWarningLightStatus alloc] initWithValue:@"OFF"]; - } - return SDLWarningLightStatus_OFF; -} - -+ (SDLWarningLightStatus *)ON { - if (SDLWarningLightStatus_ON == nil) { - SDLWarningLightStatus_ON = [[SDLWarningLightStatus alloc] initWithValue:@"ON"]; - } - return SDLWarningLightStatus_ON; -} - -+ (SDLWarningLightStatus *)FLASH { - if (SDLWarningLightStatus_FLASH == nil) { - SDLWarningLightStatus_FLASH = [[SDLWarningLightStatus alloc] initWithValue:@"FLASH"]; - } - return SDLWarningLightStatus_FLASH; -} - -+ (SDLWarningLightStatus *)NOT_USED { - if (SDLWarningLightStatus_NOT_USED == nil) { - SDLWarningLightStatus_NOT_USED = [[SDLWarningLightStatus alloc] initWithValue:@"NOT_USED"]; - } - return SDLWarningLightStatus_NOT_USED; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLWiperStatus.h b/SmartDeviceLink-iOS/SmartDeviceLink/SDLWiperStatus.h deleted file mode 100644 index 51a7a1f5d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLWiperStatus.h +++ /dev/null @@ -1,101 +0,0 @@ -// SDLWiperStatus.h -// - - -#import "SDLEnum.h" - -/** - * Wiper Status - */ -@interface SDLWiperStatus : SDLEnum { -} - -/** - * Convert String to SDLWiperStatus - * @param value The value of the string to get an object for - * @return SDLWiperStatus - */ -+ (SDLWiperStatus *)valueOf:(NSString *)value; - -/** - * @abstract Store the enumeration of all possible SDLWiperStatus - * @return An array that store all possible SDLWiperStatus - */ -+ (NSArray *)values; - -/** - * @abstract SDLWiperStatus: *OFF* - */ -+ (SDLWiperStatus *)OFF; - -/** - * @abstract SDLWiperStatus: *AUTO_OFF* - */ -+ (SDLWiperStatus *)AUTO_OFF; - -/** - * @abstract SDLWiperStatus: *OFF_MOVING* - */ -+ (SDLWiperStatus *)OFF_MOVING; - -/** - * @abstract SDLWiperStatus: *MAN_INT_OFF* - */ -+ (SDLWiperStatus *)MAN_INT_OFF; - -/** - * @abstract SDLWiperStatus: *MAN_INT_ON* - */ -+ (SDLWiperStatus *)MAN_INT_ON; - -/** - * @abstract SDLWiperStatus: *MAN_LOW* - */ -+ (SDLWiperStatus *)MAN_LOW; - -/** - * @abstract SDLWiperStatus: *MAN_HIGH* - */ -+ (SDLWiperStatus *)MAN_HIGH; - -/** - * @abstract SDLWiperStatus: *MAN_FLICK* - */ -+ (SDLWiperStatus *)MAN_FLICK; - -/** - * @abstract SDLWiperStatus: *WASH* - */ -+ (SDLWiperStatus *)WASH; - -/** - * @abstract SDLWiperStatus: *AUTO_LOW* - */ -+ (SDLWiperStatus *)AUTO_LOW; - -/** - * @abstract SDLWiperStatus: *AUTO_HIGH* - */ -+ (SDLWiperStatus *)AUTO_HIGH; - -/** - * @abstract SDLWiperStatus: *COURTESYWIPE* - */ -+ (SDLWiperStatus *)COURTESYWIPE; - -/** - * @abstract SDLWiperStatus: *AUTO_ADJUST* - */ -+ (SDLWiperStatus *)AUTO_ADJUST; - -/** - * @abstract SDLWiperStatus: *STALLED* - */ -+ (SDLWiperStatus *)STALLED; - -/** - * @abstract SDLWiperStatus: *NO_DATA_EXISTS* - */ -+ (SDLWiperStatus *)NO_DATA_EXISTS; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLWiperStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLWiperStatus.m deleted file mode 100644 index d56749a9f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLWiperStatus.m +++ /dev/null @@ -1,164 +0,0 @@ -// SDLWiperStatus.m -// - - -#import "SDLWiperStatus.h" - -SDLWiperStatus *SDLWiperStatus_OFF = nil; -SDLWiperStatus *SDLWiperStatus_AUTO_OFF = nil; -SDLWiperStatus *SDLWiperStatus_OFF_MOVING = nil; -SDLWiperStatus *SDLWiperStatus_MAN_INT_OFF = nil; -SDLWiperStatus *SDLWiperStatus_MAN_INT_ON = nil; -SDLWiperStatus *SDLWiperStatus_MAN_LOW = nil; -SDLWiperStatus *SDLWiperStatus_MAN_HIGH = nil; -SDLWiperStatus *SDLWiperStatus_MAN_FLICK = nil; -SDLWiperStatus *SDLWiperStatus_WASH = nil; -SDLWiperStatus *SDLWiperStatus_AUTO_LOW = nil; -SDLWiperStatus *SDLWiperStatus_AUTO_HIGH = nil; -SDLWiperStatus *SDLWiperStatus_COURTESYWIPE = nil; -SDLWiperStatus *SDLWiperStatus_AUTO_ADJUST = nil; -SDLWiperStatus *SDLWiperStatus_STALLED = nil; -SDLWiperStatus *SDLWiperStatus_NO_DATA_EXISTS = nil; - -NSArray *SDLWiperStatus_values = nil; - -@implementation SDLWiperStatus - -+ (SDLWiperStatus *)valueOf:(NSString *)value { - for (SDLWiperStatus *item in SDLWiperStatus.values) { - if ([item.value isEqualToString:value]) { - return item; - } - } - return nil; -} - -+ (NSArray *)values { - if (SDLWiperStatus_values == nil) { - SDLWiperStatus_values = @[ - SDLWiperStatus.OFF, - SDLWiperStatus.AUTO_OFF, - SDLWiperStatus.OFF_MOVING, - SDLWiperStatus.MAN_INT_OFF, - SDLWiperStatus.MAN_INT_ON, - SDLWiperStatus.MAN_LOW, - SDLWiperStatus.MAN_HIGH, - SDLWiperStatus.MAN_FLICK, - SDLWiperStatus.WASH, - SDLWiperStatus.AUTO_LOW, - SDLWiperStatus.AUTO_HIGH, - SDLWiperStatus.COURTESYWIPE, - SDLWiperStatus.AUTO_ADJUST, - SDLWiperStatus.STALLED, - SDLWiperStatus.NO_DATA_EXISTS, - ]; - } - return SDLWiperStatus_values; -} - -+ (SDLWiperStatus *)OFF { - if (SDLWiperStatus_OFF == nil) { - SDLWiperStatus_OFF = [[SDLWiperStatus alloc] initWithValue:@"OFF"]; - } - return SDLWiperStatus_OFF; -} - -+ (SDLWiperStatus *)AUTO_OFF { - if (SDLWiperStatus_AUTO_OFF == nil) { - SDLWiperStatus_AUTO_OFF = [[SDLWiperStatus alloc] initWithValue:@"AUTO_OFF"]; - } - return SDLWiperStatus_AUTO_OFF; -} - -+ (SDLWiperStatus *)OFF_MOVING { - if (SDLWiperStatus_OFF_MOVING == nil) { - SDLWiperStatus_OFF_MOVING = [[SDLWiperStatus alloc] initWithValue:@"OFF_MOVING"]; - } - return SDLWiperStatus_OFF_MOVING; -} - -+ (SDLWiperStatus *)MAN_INT_OFF { - if (SDLWiperStatus_MAN_INT_OFF == nil) { - SDLWiperStatus_MAN_INT_OFF = [[SDLWiperStatus alloc] initWithValue:@"MAN_INT_OFF"]; - } - return SDLWiperStatus_MAN_INT_OFF; -} - -+ (SDLWiperStatus *)MAN_INT_ON { - if (SDLWiperStatus_MAN_INT_ON == nil) { - SDLWiperStatus_MAN_INT_ON = [[SDLWiperStatus alloc] initWithValue:@"MAN_INT_ON"]; - } - return SDLWiperStatus_MAN_INT_ON; -} - -+ (SDLWiperStatus *)MAN_LOW { - if (SDLWiperStatus_MAN_LOW == nil) { - SDLWiperStatus_MAN_LOW = [[SDLWiperStatus alloc] initWithValue:@"MAN_LOW"]; - } - return SDLWiperStatus_MAN_LOW; -} - -+ (SDLWiperStatus *)MAN_HIGH { - if (SDLWiperStatus_MAN_HIGH == nil) { - SDLWiperStatus_MAN_HIGH = [[SDLWiperStatus alloc] initWithValue:@"MAN_HIGH"]; - } - return SDLWiperStatus_MAN_HIGH; -} - -+ (SDLWiperStatus *)MAN_FLICK { - if (SDLWiperStatus_MAN_FLICK == nil) { - SDLWiperStatus_MAN_FLICK = [[SDLWiperStatus alloc] initWithValue:@"MAN_FLICK"]; - } - return SDLWiperStatus_MAN_FLICK; -} - -+ (SDLWiperStatus *)WASH { - if (SDLWiperStatus_WASH == nil) { - SDLWiperStatus_WASH = [[SDLWiperStatus alloc] initWithValue:@"WASH"]; - } - return SDLWiperStatus_WASH; -} - -+ (SDLWiperStatus *)AUTO_LOW { - if (SDLWiperStatus_AUTO_LOW == nil) { - SDLWiperStatus_AUTO_LOW = [[SDLWiperStatus alloc] initWithValue:@"AUTO_LOW"]; - } - return SDLWiperStatus_AUTO_LOW; -} - -+ (SDLWiperStatus *)AUTO_HIGH { - if (SDLWiperStatus_AUTO_HIGH == nil) { - SDLWiperStatus_AUTO_HIGH = [[SDLWiperStatus alloc] initWithValue:@"AUTO_HIGH"]; - } - return SDLWiperStatus_AUTO_HIGH; -} - -+ (SDLWiperStatus *)COURTESYWIPE { - if (SDLWiperStatus_COURTESYWIPE == nil) { - SDLWiperStatus_COURTESYWIPE = [[SDLWiperStatus alloc] initWithValue:@"COURTESYWIPE"]; - } - return SDLWiperStatus_COURTESYWIPE; -} - -+ (SDLWiperStatus *)AUTO_ADJUST { - if (SDLWiperStatus_AUTO_ADJUST == nil) { - SDLWiperStatus_AUTO_ADJUST = [[SDLWiperStatus alloc] initWithValue:@"AUTO_ADJUST"]; - } - return SDLWiperStatus_AUTO_ADJUST; -} - -+ (SDLWiperStatus *)STALLED { - if (SDLWiperStatus_STALLED == nil) { - SDLWiperStatus_STALLED = [[SDLWiperStatus alloc] initWithValue:@"STALLED"]; - } - return SDLWiperStatus_STALLED; -} - -+ (SDLWiperStatus *)NO_DATA_EXISTS { - if (SDLWiperStatus_NO_DATA_EXISTS == nil) { - SDLWiperStatus_NO_DATA_EXISTS = [[SDLWiperStatus alloc] initWithValue:@"NO_DATA_EXISTS"]; - } - return SDLWiperStatus_NO_DATA_EXISTS; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SmartDeviceLink.h b/SmartDeviceLink-iOS/SmartDeviceLink/SmartDeviceLink.h deleted file mode 100644 index 1bfbcb655..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SmartDeviceLink.h +++ /dev/null @@ -1,275 +0,0 @@ -// SmartDeviceLink.h -// - -#import - -//! Project version number for SmartDeviceLink. -FOUNDATION_EXPORT double SmartDeviceLinkVersionNumber; - -//! Project version string for SmartDeviceLink. -FOUNDATION_EXPORT const unsigned char SmartDeviceLinkVersionString[]; - -/**** Utilities *****/ -#import "SDLJingle.h" - -/***** Proxy *****/ -#import "SDLProxy.h" -#import "SDLProxyFactory.h" -#import "SDLProxyListener.h" -#import "SDLStreamingMediaManager.h" -#import "SDLTTSChunkFactory.h" - -/***** Debug *****/ -#import "SDLConsoleController.h" -#import "SDLDebugTool.h" -#import "SDLDebugToolConsole.h" -#import "SDLSiphonServer.h" - -/***** Transport *****/ -#import "SDLAbstractTransport.h" -#import "SDLIAPSessionDelegate.h" -#import "SDLIAPTransport.h" -#import "SDLTCPTransport.h" -#import "SDLTransportDelegate.h" - -/***** Protocol *****/ -#import "SDLAbstractProtocol.h" -#import "SDLProtocol.h" -#import "SDLProtocolListener.h" - -// Header -#import "SDLProtocolHeader.h" - -// Message -#import "SDLProtocolMessage.h" - -/***** RPCs *****/ -// Superclasses -#import "SDLEnum.h" -#import "SDLRPCMessage.h" -#import "SDLRPCNotification.h" -#import "SDLRPCRequest.h" -#import "SDLRPCResponse.h" -#import "SDLRPCStruct.h" - -// Factories -#import "SDLRPCRequestFactory.h" - -// Requests -#import "SDLAddCommand.h" -#import "SDLAddSubMenu.h" -#import "SDLAlert.h" -#import "SDLAlertManeuver.h" -#import "SDLChangeRegistration.h" -#import "SDLCreateInteractionChoiceSet.h" -#import "SDLDeleteCommand.h" -#import "SDLDeleteFile.h" -#import "SDLDeleteInteractionChoiceSet.h" -#import "SDLDeleteSubMenu.h" -#import "SDLDiagnosticMessage.h" -#import "SDLDialNumber.h" -#import "SDLEncodedSyncPData.h" -#import "SDLEndAudioPassThru.h" -#import "SDLGetDTCs.h" -#import "SDLGetVehicleData.h" -#import "SDLListFiles.h" -#import "SDLPerformAudioPassThru.h" -#import "SDLPerformInteraction.h" -#import "SDLPutFile.h" -#import "SDLReadDID.h" -#import "SDLRegisterAppInterface.h" -#import "SDLResetGlobalProperties.h" -#import "SDLScrollableMessage.h" -#import "SDLSendLocation.h" -#import "SDLSetAppIcon.h" -#import "SDLSetDisplayLayout.h" -#import "SDLSetGlobalProperties.h" -#import "SDLSetMediaClockTimer.h" -#import "SDLShow.h" -#import "SDLShowConstantTBT.h" -#import "SDLSlider.h" -#import "SDLSpeak.h" -#import "SDLSubscribeButton.h" -#import "SDLSubscribeVehicleData.h" -#import "SDLSyncPData.h" -#import "SDLUnregisterAppInterface.h" -#import "SDLUnsubscribeButton.h" -#import "SDLUnsubscribeVehicleData.h" -#import "SDLUpdateTurnList.h" - -// Responses -#import "SDLAddCommandResponse.h" -#import "SDLAddSubMenuResponse.h" -#import "SDLAlertManeuverResponse.h" -#import "SDLAlertResponse.h" -#import "SDLChangeRegistrationResponse.h" -#import "SDLCreateInteractionChoiceSetResponse.h" -#import "SDLDeleteCommandResponse.h" -#import "SDLDeleteFileResponse.h" -#import "SDLDeleteInteractionChoiceSetResponse.h" -#import "SDLDeleteSubMenuResponse.h" -#import "SDLDiagnosticMessageResponse.h" -#import "SDLDialNumberResponse.h" -#import "SDLEncodedSyncPDataResponse.h" -#import "SDLEndAudioPassThruResponse.h" -#import "SDLGenericResponse.h" -#import "SDLGetDTCsResponse.h" -#import "SDLGetVehicleDataResponse.h" -#import "SDLListFilesResponse.h" -#import "SDLPerformAudioPassThruResponse.h" -#import "SDLPerformInteractionResponse.h" -#import "SDLPutFileResponse.h" -#import "SDLReadDIDResponse.h" -#import "SDLRegisterAppInterfaceResponse.h" -#import "SDLResetGlobalPropertiesResponse.h" -#import "SDLScrollableMessageResponse.h" -#import "SDLSendLocationResponse.h" -#import "SDLSetAppIconResponse.h" -#import "SDLSetDisplayLayoutResponse.h" -#import "SDLSetGlobalPropertiesResponse.h" -#import "SDLSetMediaClockTimerResponse.h" -#import "SDLShowConstantTBTResponse.h" -#import "SDLShowResponse.h" -#import "SDLSliderResponse.h" -#import "SDLSpeakResponse.h" -#import "SDLSubscribeButtonResponse.h" -#import "SDLSubscribeVehicleDataResponse.h" -#import "SDLSyncPDataResponse.h" -#import "SDLUnregisterAppInterfaceResponse.h" -#import "SDLUnsubscribeButtonResponse.h" -#import "SDLUnsubscribeVehicleDataResponse.h" -#import "SDLUpdateTurnListResponse.h" - -// Notifications -#import "SDLOnAppInterfaceUnregistered.h" -#import "SDLOnAudioPassThru.h" -#import "SDLOnButtonEvent.h" -#import "SDLOnButtonPress.h" -#import "SDLOnCommand.h" -#import "SDLOnDriverDistraction.h" -#import "SDLOnEncodedSyncPData.h" -#import "SDLOnHMIStatus.h" -#import "SDLOnHashChange.h" -#import "SDLOnKeyboardInput.h" -#import "SDLOnLanguageChange.h" -#import "SDLOnLockScreenStatus.h" -#import "SDLOnPermissionsChange.h" -#import "SDLOnSyncPData.h" -#import "SDLOnSystemRequest.h" -#import "SDLOnTBTClientState.h" -#import "SDLOnTouchEvent.h" -#import "SDLOnVehicleData.h" - -// Structs -#import "SDLAirbagStatus.h" -#import "SDLAudioPassThruCapabilities.h" -#import "SDLBeltStatus.h" -#import "SDLBodyInformation.h" -#import "SDLButtonCapabilities.h" -#import "SDLChoice.h" -#import "SDLClusterModeStatus.h" -#import "SDLDIDResult.h" -#import "SDLDeviceInfo.h" -#import "SDLDeviceStatus.h" -#import "SDLDisplayCapabilities.h" -#import "SDLECallInfo.h" -#import "SDLEmergencyEvent.h" -#import "SDLGPSData.h" -#import "SDLHMICapabilities.h" -#import "SDLHMIPermissions.h" -#import "SDLHeadLampStatus.h" -#import "SDLImage.h" -#import "SDLImageField.h" -#import "SDLImageResolution.h" -#import "SDLKeyboardProperties.h" -#import "SDLMenuParams.h" -#import "SDLMyKey.h" -#import "SDLParameterPermissions.h" -#import "SDLPermissionItem.h" -#import "SDLPresetBankCapabilities.h" -#import "SDLScreenParams.h" -#import "SDLSingleTireStatus.h" -#import "SDLSoftButton.h" -#import "SDLSoftButtonCapabilities.h" -#import "SDLStartTime.h" -#import "SDLSyncMsgVersion.h" -#import "SDLTTSChunk.h" -#import "SDLTextField.h" -#import "SDLTireStatus.h" -#import "SDLTouchCoord.h" -#import "SDLTouchEvent.h" -#import "SDLTouchEventCapabilities.h" -#import "SDLTurn.h" -#import "SDLVRHelpItem.h" -#import "SDLVehicleDataResult.h" -#import "SDLVehicleType.h" - -// Enums -#import "SDLAmbientLightStatus.h" -#import "SDLAppHMIType.h" -#import "SDLAppInterfaceUnregisteredReason.h" -#import "SDLAudioStreamingState.h" -#import "SDLAudioType.h" -#import "SDLBitsPerSample.h" -#import "SDLButtonEventMode.h" -#import "SDLButtonName.h" -#import "SDLButtonPressMode.h" -#import "SDLCarModeStatus.h" -#import "SDLCharacterSet.h" -#import "SDLCompassDirection.h" -#import "SDLComponentVolumeStatus.h" -#import "SDLDeviceLevelStatus.h" -#import "SDLDimension.h" -#import "SDLDisplayType.h" -#import "SDLDriverDistractionState.h" -#import "SDLECallConfirmationStatus.h" -#import "SDLEmergencyEventType.h" -#import "SDLFileType.h" -#import "SDLFuelCutoffStatus.h" -#import "SDLGlobalProperty.h" -#import "SDLHMILevel.h" -#import "SDLHMIZoneCapabilities.h" -#import "SDLIgnitionStableStatus.h" -#import "SDLIgnitionStatus.h" -#import "SDLImageFieldName.h" -#import "SDLImageType.h" -#import "SDLInteractionMode.h" -#import "SDLKeyboardEvent.h" -#import "SDLKeyboardLayout.h" -#import "SDLKeypressMode.h" -#import "SDLLanguage.h" -#import "SDLLayoutMode.h" -#import "SDLLockScreenStatus.h" -#import "SDLMaintenanceModeStatus.h" -#import "SDLMediaClockFormat.h" -#import "SDLPRNDL.h" -#import "SDLPermissionStatus.h" -#import "SDLPowerModeQualificationStatus.h" -#import "SDLPowerModeStatus.h" -#import "SDLPredefinedLayout.h" -#import "SDLPrerecordedSpeech.h" -#import "SDLPrimaryAudioSource.h" -#import "SDLRPCMessageType.h" -#import "SDLRequestType.h" -#import "SDLResult.h" -#import "SDLSamplingRate.h" -#import "SDLSoftButtonType.h" -#import "SDLSpeechCapabilities.h" -#import "SDLSystemAction.h" -#import "SDLSystemContext.h" -#import "SDLTBTState.h" -#import "SDLTextAlignment.h" -#import "SDLTextFieldName.h" -#import "SDLTimerMode.h" -#import "SDLTouchType.h" -#import "SDLTriggerSource.h" -#import "SDLUpdateMode.h" -#import "SDLVRCapabilities.h" -#import "SDLVehicleDataActiveStatus.h" -#import "SDLVehicleDataEventStatus.h" -#import "SDLVehicleDataNotificationStatus.h" -#import "SDLVehicleDataResultCode.h" -#import "SDLVehicleDataStatus.h" -#import "SDLVehicleDataType.h" -#import "SDLWarningLightStatus.h" -#import "SDLWiperStatus.h" diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/Info.plist b/SmartDeviceLink-iOS/SmartDeviceLinkTests/Info.plist deleted file mode 100644 index ba72822e8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - - diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLProtocolHeaderSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLProtocolHeaderSpec.m deleted file mode 100644 index 573003bc8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLProtocolHeaderSpec.m +++ /dev/null @@ -1,29 +0,0 @@ -// -// SDLProtocolHeaderSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import - -#import "SDLProtocolHeader.h" -#import "SDLV1ProtocolHeader.h" -#import "SDLV2ProtocolHeader.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLProtocolHeaderSpec) - -describe(@"HeaderForVersion Tests", ^ { - it(@"Should return the correct header", ^ { - expect([SDLProtocolHeader headerForVersion:1]).to(beAKindOf(SDLV1ProtocolHeader.class)); - expect([SDLProtocolHeader headerForVersion:2]).to(beAKindOf(SDLV2ProtocolHeader.class)); - }); - - it(@"Should return latest version for unknown version", ^ { - expect([SDLProtocolHeader headerForVersion:5]).to(raiseException().named(NSInvalidArgumentException)); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV1ProtocolHeaderSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV1ProtocolHeaderSpec.m deleted file mode 100644 index ae17425ab..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV1ProtocolHeaderSpec.m +++ /dev/null @@ -1,89 +0,0 @@ -// -// SDLV1ProtocolHeaderSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import - -#import "SDLV1ProtocolHeader.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLV1ProtocolHeaderSpec) - -__block SDLV1ProtocolHeader* testHeader; -__block NSData* testData; - -beforeSuite(^ { - //Set up test header - testHeader = [[SDLV1ProtocolHeader alloc] init]; - - testHeader.compressed = YES; - testHeader.frameType = SDLFrameType_Control; - testHeader.serviceType = SDLServiceType_RPC; - testHeader.frameData = SDLFrameData_StartSession; - testHeader.sessionID = 0x53; - testHeader.bytesInPayload = 0x1234; - - const char testBytes[8] = {0x18 | (SDLFrameType_Control & 0xFF), SDLServiceType_RPC, SDLFrameData_StartSession, 0x53, 0x00, 0x00, 0x12, 0x34}; - testData = [NSData dataWithBytes:testBytes length:8]; -}); - -describe(@"Getter/Setter Tests", ^ { - it(@"Should get readonly values correctly", ^ { - expect(@(testHeader.version)).to(equal(@1)); - expect(@(testHeader.size)).to(equal(@8)); - }); - - it(@"Should set and get correctly", ^ { - expect(@(testHeader.compressed)).to(equal(@YES)); - expect(@(testHeader.frameType)).to(equal(@(SDLFrameType_Control))); - expect(@(testHeader.serviceType)).to(equal(@(SDLServiceType_RPC))); - expect(@(testHeader.frameData)).to(equal(@(SDLFrameData_StartSession))); - expect(@(testHeader.sessionID)).to(equal(@0x53)); - expect(@(testHeader.bytesInPayload)).to(equal(@0x1234)); - }); -}); - -describe(@"Copy Tests", ^ { - it(@"Should copy correctly", ^ { - SDLV1ProtocolHeader* headerCopy = [testHeader copy]; - - expect(@(headerCopy.version)).to(equal(@1)); - expect(@(headerCopy.size)).to(equal(@8)); - - expect(@(headerCopy.compressed)).to(equal(@YES)); - expect(@(headerCopy.frameType)).to(equal(@(SDLFrameType_Control))); - expect(@(headerCopy.serviceType)).to(equal(@(SDLServiceType_RPC))); - expect(@(headerCopy.frameData)).to(equal(@(SDLFrameData_StartSession))); - expect(@(headerCopy.sessionID)).to(equal(@0x53)); - expect(@(headerCopy.bytesInPayload)).to(equal(@0x1234)); - - expect(headerCopy).toNot(beIdenticalTo(testHeader)); - }); -}); - -describe(@"Data Tests", ^ { - it (@"Should convert to byte data correctly", ^ { - expect(testHeader.data).to(equal(testData)); - }); -}); - -describe(@"RPCPayloadWithData Test", ^ { - it (@"Should convert from byte data correctly", ^ { - SDLV1ProtocolHeader* constructedHeader = [[SDLV1ProtocolHeader alloc] init]; - - [constructedHeader parse:testData]; - - expect(@(constructedHeader.compressed)).to(equal(@YES)); - expect(@(constructedHeader.frameType)).to(equal(@(SDLFrameType_Control))); - expect(@(constructedHeader.serviceType)).to(equal(@(SDLServiceType_RPC))); - expect(@(constructedHeader.frameData)).to(equal(@(SDLFrameData_StartSession))); - expect(@(constructedHeader.sessionID)).to(equal(@0x53)); - expect(@(constructedHeader.bytesInPayload)).to(equal(@0x1234)); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV2ProtocolHeaderSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV2ProtocolHeaderSpec.m deleted file mode 100644 index 1530b8cba..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV2ProtocolHeaderSpec.m +++ /dev/null @@ -1,93 +0,0 @@ -// -// SDLV2ProtocolHeaderSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import - -#import "SDLV2ProtocolHeader.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLV2ProtocolHeaderSpec) - -__block SDLV2ProtocolHeader* testHeader; -__block NSData* testData; - -beforeSuite(^ { - //Set up test header - testHeader = [[SDLV2ProtocolHeader alloc] init]; - - testHeader.compressed = YES; - testHeader.frameType = SDLFrameType_Control; - testHeader.serviceType = SDLServiceType_RPC; - testHeader.frameData = SDLFrameData_StartSession; - testHeader.sessionID = 0x53; - testHeader.bytesInPayload = 0x1234; - testHeader.messageID = 0x6DAB424F; - - const char testBytes[12] = {0x28 | (SDLFrameType_Control & 0xFF), SDLServiceType_RPC, SDLFrameData_StartSession, 0x53, 0x00, 0x00, 0x12, 0x34, 0x6D, 0xAB, 0x42, 0x4F}; - testData = [NSData dataWithBytes:testBytes length:12]; -}); - -describe(@"Getter/Setter Tests", ^ { - it(@"Should get readonly values correctly", ^ { - expect(@(testHeader.version)).to(equal(@2)); - expect(@(testHeader.size)).to(equal(@12)); - }); - - it(@"Should set and get correctly", ^ { - expect(@(testHeader.compressed)).to(equal(@YES)); - expect(@(testHeader.frameType)).to(equal(@(SDLFrameType_Control))); - expect(@(testHeader.serviceType)).to(equal(@(SDLServiceType_RPC))); - expect(@(testHeader.frameData)).to(equal(@(SDLFrameData_StartSession))); - expect(@(testHeader.sessionID)).to(equal(@0x53)); - expect(@(testHeader.bytesInPayload)).to(equal(@0x1234)); - expect(@(testHeader.messageID)).to(equal(@0x6DAB424F)); - }); -}); - -describe(@"Copy Tests", ^ { - it(@"Should copy correctly", ^ { - SDLV2ProtocolHeader* headerCopy = [testHeader copy]; - - expect(@(headerCopy.version)).to(equal(@2)); - expect(@(headerCopy.size)).to(equal(@12)); - - expect(@(headerCopy.compressed)).to(equal(@YES)); - expect(@(headerCopy.frameType)).to(equal(@(SDLFrameType_Control))); - expect(@(headerCopy.serviceType)).to(equal(@(SDLServiceType_RPC))); - expect(@(headerCopy.frameData)).to(equal(@(SDLFrameData_StartSession))); - expect(@(headerCopy.sessionID)).to(equal(@0x53)); - expect(@(headerCopy.bytesInPayload)).to(equal(@0x1234)); - expect(@(testHeader.messageID)).to(equal(@0x6DAB424F)); - - expect(headerCopy).toNot(beIdenticalTo(testHeader)); - }); -}); - -describe(@"Data Tests", ^ { - it (@"Should convert to byte data correctly", ^ { - expect(testHeader.data).to(equal(testData)); - }); -}); - -describe(@"RPCPayloadWithData Test", ^ { - it (@"Should convert from byte data correctly", ^ { - SDLV2ProtocolHeader* constructedHeader = [[SDLV2ProtocolHeader alloc] init]; - - [constructedHeader parse:testData]; - - expect(@(constructedHeader.compressed)).to(equal(@YES)); - expect(@(constructedHeader.frameType)).to(equal(@(SDLFrameType_Control))); - expect(@(constructedHeader.serviceType)).to(equal(@(SDLServiceType_RPC))); - expect(@(constructedHeader.frameData)).to(equal(@(SDLFrameData_StartSession))); - expect(@(constructedHeader.sessionID)).to(equal(@0x53)); - expect(@(constructedHeader.bytesInPayload)).to(equal(@0x1234)); - expect(@(testHeader.messageID)).to(equal(@0x6DAB424F)); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolMessageSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolMessageSpec.m deleted file mode 100644 index 12b634218..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolMessageSpec.m +++ /dev/null @@ -1,72 +0,0 @@ -// -// SDLProtocolMessageSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import -#import - -#import "SDLProtocolHeader.h" -#import "SDLProtocolMessage.h" -#import "SDLV1ProtocolHeader.h" -#import "SDLV1ProtocolMessage.h" -#import "SDLV2ProtocolHeader.h" -#import "SDLV2ProtocolMessage.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLProtocolMessageSpec) - -describe(@"MessageWithHeader Tests", ^ { - it(@"Should return an appropriate object", ^ { - NSData* testPayload = [NSData dataWithBytes:"Test Data" length:strlen("Test Data")]; - SDLV1ProtocolHeader* testHeaderV1 = [[SDLV1ProtocolHeader alloc] init]; - SDLProtocolMessage* testMessageV1 = [SDLProtocolMessage messageWithHeader:testHeaderV1 andPayload:testPayload]; - - expect(testMessageV1).to(beAKindOf(SDLV1ProtocolMessage.class)); - expect(testMessageV1.header).to(equal(testHeaderV1)); - expect(testMessageV1.payload).to(equal(testPayload)); - - SDLV2ProtocolHeader* testHeaderV2 = [[SDLV2ProtocolHeader alloc] init]; - SDLProtocolMessage* testMessageV2 = [SDLProtocolMessage messageWithHeader:testHeaderV2 andPayload:testPayload]; - - expect(testMessageV2).to(beAKindOf(SDLV2ProtocolMessage.class)); - expect(testMessageV2.header).to(equal(testHeaderV2)); - expect(testMessageV2.payload).to(equal(testPayload)); - }); -}); - -describe(@"DetermineVersion Tests", ^ { - it(@"Should return the correct version", ^ { - const char bytesV1[8] = {0x10 | SDLFrameType_First, SDLServiceType_BulkData, SDLFrameData_StartSessionACK, 0x5E, 0x00, 0x00, 0x00, 0x00}; - NSData* messageV1 = [NSData dataWithBytes:bytesV1 length:8]; - expect(@([SDLProtocolMessage determineVersion:messageV1])).to(equal(@1)); - - const char bytesV2[12] = {0x20 | SDLFrameType_First, SDLServiceType_BulkData, SDLFrameData_StartSessionACK, 0x5E, 0x00, 0x00, 0x00, 0x00, 0x44, 0x44, 0x44, 0x44}; - NSData* messageV2 = [NSData dataWithBytes:bytesV2 length:12]; - expect(@([SDLProtocolMessage determineVersion:messageV2])).to(equal(@2)); - }); -}); - -describe(@"Data tests", ^ { - it(@"Should return the correct data", ^ { - SDLProtocolMessage* testMessage = [[SDLProtocolMessage alloc] init]; - - SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; - - id headerMock = OCMPartialMock(testHeader); - const char headerData[12] = {0x20 | SDLFrameType_First, SDLServiceType_BulkData, SDLFrameData_StartSessionACK, 0x5E, 0x0E, 0x00, 0x00, strlen("Test Data"), 0x65, 0x22, 0x41, 0x38}; - [[[headerMock stub] andReturn:[NSData dataWithBytes:headerData length:12]] data]; - - testMessage.header = testHeader; - testMessage.payload = [NSData dataWithBytes:"Test Data" length:strlen("Test Data")]; - - NSMutableData* testData = [NSMutableData dataWithBytes:headerData length:12]; - [testData appendBytes:"Test Data" length:strlen("Test Data")]; - expect(testMessage.data).to(equal([testData copy])); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m deleted file mode 100644 index 373575a4d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m +++ /dev/null @@ -1,511 +0,0 @@ -// -// SDLProtocolSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import -#import - -#import "SDLAbstractTransport.h" -#import "SDLProtocolHeader.h" -#import "SDLProtocol.h" -#import "SDLProtocolMessage.h" -#import "SDLProtocolReceivedMessageRouter.h" -#import "SDLRPCRequest.h" -#import "SDLNames.h" -#import "SDLV1ProtocolMessage.h" -#import "SDLV2ProtocolMessage.h" -#import "SDLV1ProtocolHeader.h" -#import "SDLV2ProtocolHeader.h" - - -QuickSpecBegin(SDLProtocolSpec) - -//Test dictionaries -NSDictionary* dictionaryV1 = @{NAMES_request: - @{NAMES_operation_name:@"DeleteCommand", - NAMES_correlationID:@0x98765, - NAMES_parameters: - @{NAMES_cmdID:@55}}}; -NSDictionary* dictionaryV2 = @{NAMES_cmdID:@55}; - -describe(@"SendStartSession Tests", ^ { - it(@"Should send the correct data", ^ { - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - - __block BOOL verified = NO; - id transportMock = OCMClassMock([SDLAbstractTransport class]); - [[[transportMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - - //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 - __unsafe_unretained NSData* data; - [invocation getArgument:&data atIndex:2]; - NSData* dataSent = [data copy]; - - const char testHeader[8] = {0x10 | SDLFrameType_Control, SDLServiceType_BulkData, SDLFrameData_StartSession, 0x00, 0x00, 0x00, 0x00, 0x00}; - expect(dataSent).to(equal([NSData dataWithBytes:testHeader length:8])); - }] sendData:[OCMArg any]]; - testProtocol.transport = transportMock; - - [testProtocol sendStartSessionWithType:SDLServiceType_BulkData]; - - expect(@(verified)).toEventually(beTruthy()); - }); -}); - -describe(@"SendEndSession Tests", ^ { - context(@"During V1 session", ^ { - it(@"Should send the correct data", ^ { - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0x03 version:0x01]; - - __block BOOL verified = NO; - id transportMock = OCMClassMock([SDLAbstractTransport class]); - [[[transportMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - - //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 - __unsafe_unretained NSData* data; - [invocation getArgument:&data atIndex:2]; - NSData* dataSent = [data copy]; - - const char testHeader[8] = {0x10 | SDLFrameType_Control, SDLServiceType_RPC, SDLFrameData_EndSession, 0x03, 0x00, 0x00, 0x00, 0x00}; - expect(dataSent).to(equal([NSData dataWithBytes:testHeader length:8])); - }] sendData:[OCMArg any]]; - testProtocol.transport = transportMock; - - [testProtocol sendEndSessionWithType:SDLServiceType_RPC]; - - expect(@(verified)).toEventually(beTruthy()); - }); - }); - - context(@"During V2 session", ^ { - it(@"Should send the correct data", ^ { - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0x61 version:0x02]; - - __block BOOL verified = NO; - id transportMock = OCMClassMock([SDLAbstractTransport class]); - [[[transportMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - - //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 - __unsafe_unretained NSData* data; - [invocation getArgument:&data atIndex:2]; - NSData* dataSent = [data copy]; - - const char testHeader[12] = {0x20 | SDLFrameType_Control, SDLServiceType_RPC, SDLFrameData_EndSession, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; - expect(dataSent).to(equal([NSData dataWithBytes:testHeader length:12])); - }] sendData:[OCMArg any]]; - testProtocol.transport = transportMock; - - [testProtocol sendEndSessionWithType:SDLServiceType_RPC]; - - expect(@(verified)).toEventually(beTruthy()); - }); - }); -}); - -describe(@"SendRPCRequest Tests", ^ { - __block id mockRequest; - beforeEach(^ { - mockRequest = OCMPartialMock([[SDLRPCRequest alloc] init]); - }); - - context(@"During V1 session", ^ { - it(@"Should send the correct data", ^ { - [[[[mockRequest stub] andReturn:dictionaryV1] ignoringNonObjectArgs] serializeAsDictionary:1]; - - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0xFF version:0x01]; - - __block BOOL verified = NO; - id transportMock = OCMClassMock([SDLAbstractTransport class]); - [[[transportMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - - //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 - __unsafe_unretained NSData* data; - [invocation getArgument:&data atIndex:2]; - NSData* dataSent = [data copy]; - - NSData* jsonTestData = [NSJSONSerialization dataWithJSONObject:dictionaryV1 options:0 error:0]; - NSUInteger dataLength = jsonTestData.length; - - const char testHeader[8] = {0x10 | SDLFrameType_Single, SDLServiceType_RPC, SDLFrameData_SingleFrame, 0xFF, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; - NSMutableData* testData = [NSMutableData dataWithBytes:testHeader length:8]; - [testData appendData:jsonTestData]; - - expect(dataSent).to(equal([testData copy])); - }] sendData:[OCMArg any]]; - testProtocol.transport = transportMock; - - [testProtocol sendRPC:mockRequest]; - - expect(@(verified)).toEventually(beTruthy()); - }); - }); - - context(@"During V2 session", ^ { - it(@"Should send the correct data bulk data when bulk data is available", ^ { - [[[[mockRequest stub] andReturn:dictionaryV2] ignoringNonObjectArgs] serializeAsDictionary:2]; - [[[mockRequest stub] andReturn:@0x98765] correlationID]; - [[[mockRequest stub] andReturn:@"DeleteCommand"] getFunctionName]; - [[[mockRequest stub] andReturn:[NSData dataWithBytes:"COMMAND" length:strlen("COMMAND")]] bulkData]; - - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0x01 version:0x02]; - - __block BOOL verified = NO; - id transportMock = OCMClassMock([SDLAbstractTransport class]); - [[[transportMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - - //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 - __unsafe_unretained NSData* data; - [invocation getArgument:&data atIndex:2]; - NSData* dataSent = [data copy]; - - NSData* jsonTestData = [NSJSONSerialization dataWithJSONObject:dictionaryV2 options:0 error:0]; - NSUInteger dataLength = jsonTestData.length; - - const char testPayloadHeader[12] = {0x00, 0x00, 0x00, 0x06, 0x00, 0x09, 0x87, 0x65, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; - - NSMutableData* payloadData = [NSMutableData dataWithBytes:testPayloadHeader length:12]; - [payloadData appendData:jsonTestData]; - [payloadData appendBytes:"COMMAND" length:strlen("COMMAND")]; - - const char testHeader[12] = {0x20 | SDLFrameType_Single, SDLServiceType_BulkData, SDLFrameData_SingleFrame, 0x01, (payloadData.length >> 24) & 0xFF, (payloadData.length >> 16) & 0xFF,(payloadData.length >> 8) & 0xFF, payloadData.length & 0xFF, 0x00, 0x00, 0x00, 0x01}; - - NSMutableData* testData = [NSMutableData dataWithBytes:testHeader length:12]; - [testData appendData:payloadData]; - - expect(dataSent).to(equal([testData copy])); - }] sendData:[OCMArg any]]; - testProtocol.transport = transportMock; - - [testProtocol sendRPC:mockRequest]; - - expect(@(verified)).toEventually(beTruthy()); - }); - }); -}); - -describe(@"HandleBytesFromTransport Tests", ^ { - context(@"During V1 session", ^ { - it(@"Should parse the data correctly", ^ { - id routerMock = OCMClassMock(SDLProtocolReceivedMessageRouter.class); - - //Override initialization methods so that our protocol will use our object instead - [[[routerMock stub] andReturn:routerMock] alloc]; - (void)[[[routerMock stub] andReturn:routerMock] init]; - - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0x43 version:0x01]; - - NSData* jsonTestData = [NSJSONSerialization dataWithJSONObject:dictionaryV1 options:0 error:0]; - NSUInteger dataLength = jsonTestData.length; - - __block BOOL verified = NO; - [[[routerMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - - //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 - __unsafe_unretained SDLV1ProtocolMessage* message; - [invocation getArgument:&message atIndex:2]; - - SDLV1ProtocolMessage* messageReceived = message; - - expect(messageReceived.payload).to(equal(jsonTestData)); - expect(@(messageReceived.header.version)).to(equal(@1)); - expect(@(messageReceived.header.compressed)).to(equal(@NO)); - expect(@(messageReceived.header.frameType)).to(equal(@(SDLFrameType_Single))); - expect(@(messageReceived.header.sessionID)).to(equal(@0xFF)); - expect(@(messageReceived.header.serviceType)).to(equal(@(SDLServiceType_RPC))); - expect(@(messageReceived.header.frameData)).to(equal(@(SDLFrameData_SingleFrame))); - expect(@(messageReceived.header.bytesInPayload)).to(equal(@(dataLength))); - }] handleReceivedMessage:[OCMArg any]]; - - const char testHeader[8] = {0x10 | SDLFrameType_Single, SDLServiceType_RPC, SDLFrameData_SingleFrame, 0xFF, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; - NSMutableData* testData = [NSMutableData dataWithBytes:testHeader length:8]; - [testData appendData:jsonTestData]; - - [testProtocol handleBytesFromTransport:testData]; - - expect(@(verified)).toEventually(beTruthy()); - }); - }); - - context(@"During V2 session", ^ { - it(@"Should parse the data correctly", ^ { - id routerMock = OCMClassMock(SDLProtocolReceivedMessageRouter.class); - - //Override initialization methods so that our protocol will use our object instead - [[[routerMock stub] andReturn:routerMock] alloc]; - (void)[[[routerMock stub] andReturn:routerMock] init]; - - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0xF5 version:0x02]; - - NSData* jsonTestData = [NSJSONSerialization dataWithJSONObject:dictionaryV2 options:0 error:0]; - NSUInteger dataLength = jsonTestData.length; - - const char testPayloadHeader[12] = {0x00, 0x00, 0x00, 0x06, 0x00, 0x09, 0x87, 0x65, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; - - NSMutableData* payloadData = [NSMutableData dataWithBytes:testPayloadHeader length:12]; - [payloadData appendData:jsonTestData]; - [payloadData appendBytes:"COMMAND" length:strlen("COMMAND")]; - - __block BOOL verified = NO; - [[[routerMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - - //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 - __unsafe_unretained SDLV2ProtocolMessage* message; - [invocation getArgument:&message atIndex:2]; - - SDLV2ProtocolMessage* messageReceived = message; - - expect(messageReceived.payload).to(equal(payloadData)); - expect(@(messageReceived.header.version)).to(equal(@2)); - expect(@(messageReceived.header.compressed)).to(equal(@NO)); - expect(@(messageReceived.header.frameType)).to(equal(@(SDLFrameType_Single))); - expect(@(messageReceived.header.sessionID)).to(equal(@0x01)); - expect(@(messageReceived.header.serviceType)).to(equal(@(SDLServiceType_RPC))); - expect(@(messageReceived.header.frameData)).to(equal(@(SDLFrameData_SingleFrame))); - expect(@(messageReceived.header.bytesInPayload)).to(equal(@(payloadData.length))); - expect(@(((SDLV2ProtocolHeader*)messageReceived.header).messageID)).to(equal(@1)); - - }] handleReceivedMessage:[OCMArg any]]; - testProtocol.transport = routerMock; - - const char testHeader[12] = {0x20 | SDLFrameType_Single, SDLServiceType_RPC, SDLFrameData_SingleFrame, 0x01, (payloadData.length >> 24) & 0xFF, (payloadData.length >> 16) & 0xFF, - (payloadData.length >> 8) & 0xFF, payloadData.length & 0xFF, 0x00, 0x00, 0x00, 0x01}; - - NSMutableData* testData = [NSMutableData dataWithBytes:testHeader length:12]; - [testData appendData:payloadData]; - - [testProtocol handleBytesFromTransport:testData]; - - expect(@(verified)).toEventually(beTruthy()); - }); - }); -}); - -describe(@"SendHeartbeat Tests", ^ { - context(@"During V1 session", ^ { - it(@"Should send the correct data", ^ { - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0x43 version:0x01]; - - __block BOOL verified = NO; - id transportMock = OCMClassMock([SDLAbstractTransport class]); - [[[transportMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - - //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 - __unsafe_unretained NSData* data; - [invocation getArgument:&data atIndex:2]; - NSData* dataSent = [data copy]; - - const char testHeader[8] = {0x10 | SDLFrameType_Control, 0x00, SDLFrameData_Heartbeat, 0x43, 0x00, 0x00, 0x00, 0x00}; - expect(dataSent).to(equal([NSData dataWithBytes:testHeader length:8])); - }] sendData:[OCMArg any]]; - testProtocol.transport = transportMock; - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdeprecated-declarations" - [testProtocol sendHeartbeat]; -#pragma clang diagnostic pop - - expect(@(verified)).toEventually(beTruthy()); - }); - }); - - context(@"During V2 session", ^ { - it(@"Should send the correct data", ^ { - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0xF5 version:0x02]; - - __block BOOL verified = NO; - id transportMock = OCMClassMock([SDLAbstractTransport class]); - [[[transportMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - - //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 - __unsafe_unretained NSData* data; - [invocation getArgument:&data atIndex:2]; - NSData* dataSent = [data copy]; - - const char testHeader[12] = {0x20 | SDLFrameType_Control, 0x00, SDLFrameData_Heartbeat, 0xF5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; - expect(dataSent).to(equal([NSData dataWithBytes:testHeader length:12])); - }] sendData:[OCMArg any]]; - testProtocol.transport = transportMock; - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdeprecated-declarations" - [testProtocol sendHeartbeat]; -#pragma clang diagnostic pop - - expect(@(verified)).toEventually(beTruthy()); - }); - }); -}); - -describe(@"HandleProtocolSessionStarted Tests", ^ { - it(@"Should pass information along to delegate", ^ { - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - - id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); - - __block BOOL verified = NO; - [[[[delegateMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - Byte serviceType; - Byte sessionID; - Byte version; - - [invocation getArgument:&serviceType atIndex:2]; - [invocation getArgument:&sessionID atIndex:3]; - [invocation getArgument:&version atIndex:4]; - - expect(@(serviceType)).to(equal(@(SDLServiceType_BulkData))); - expect(@(sessionID)).to(equal(@0x44)); - expect(@(version)).to(equal(@0x03)); - }] ignoringNonObjectArgs] handleProtocolStartSessionACK:0 sessionID:0 version:0]; - - [testProtocol.protocolDelegateTable addObject:delegateMock]; - - [testProtocol handleProtocolStartSessionACK:SDLServiceType_BulkData sessionID:0x44 version:0x03]; - - expect(@(verified)).to(beTruthy()); - }); -}); - -describe(@"HandleHeartbeatForSession Tests", ^{ - // TODO: Test automatically sending data to head unit (dependency injection?) - it(@"Should pass information along to delegate", ^ { - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - - id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); - - __block BOOL verified = NO; - [[[[delegateMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - Byte sessionID; - - [invocation getArgument:&sessionID atIndex:2]; - - expect(@(sessionID)).to(equal(@0x44)); - }] ignoringNonObjectArgs] handleHeartbeatForSession:0]; - - [testProtocol.protocolDelegateTable addObject:delegateMock]; - - [testProtocol handleHeartbeatForSession:0x44]; - - expect(@(verified)).to(beTruthy()); - }); -}); - -describe(@"OnProtocolMessageReceived Tests", ^ { - it(@"Should pass information along to delegate", ^ { - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - - SDLProtocolMessage* testMessage = [[SDLProtocolMessage alloc] init]; - - id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); - - __block BOOL verified = NO; - [[[[delegateMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - - //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 - __unsafe_unretained SDLProtocolMessage* message; - - [invocation getArgument:&message atIndex:2]; - - expect(message).to(beIdenticalTo(testMessage)); - }] ignoringNonObjectArgs] onProtocolMessageReceived:[OCMArg any]]; - - [testProtocol.protocolDelegateTable addObject:delegateMock]; - - [testProtocol onProtocolMessageReceived:testMessage]; - - expect(@(verified)).toEventually(beTruthy()); - }); -}); - -describe(@"OnProtocolOpened Tests", ^ { - it(@"Should pass information along to delegate", ^ { - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - - id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); - - __block BOOL verified = NO; - [[[delegateMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - }] onProtocolOpened]; - - [testProtocol.protocolDelegateTable addObject:delegateMock]; - - [testProtocol onProtocolOpened]; - - expect(@(verified)).toEventually(beTruthy()); - }); -}); - -describe(@"OnProtocolClosed Tests", ^ { - it(@"Should pass information along to delegate", ^ { - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - - id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); - - __block BOOL verified = NO; - [[[delegateMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - }] onProtocolClosed]; - - [testProtocol.protocolDelegateTable addObject:delegateMock]; - - [testProtocol onProtocolClosed]; - - expect(@(verified)).toEventually(beTruthy()); - }); -}); - -describe(@"OnError Tests", ^ { - it(@"Should pass information along to delegate", ^ { - SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; - - NSException* testException = [[NSException alloc] initWithName:@"Name" reason:@"No Reason" userInfo:@{}]; - - id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); - - __block BOOL verified = NO; - [[[delegateMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 - __unsafe_unretained NSString* message; - __unsafe_unretained NSException* exception; - - [invocation getArgument:&message atIndex:2]; - [invocation getArgument:&exception atIndex:3]; - - expect(message).to(equal(@"Nothing actually happened")); - expect(exception).to(equal(testException)); - }] onError:[OCMArg any] exception:[OCMArg any]]; - - [testProtocol.protocolDelegateTable addObject:delegateMock]; - - [testProtocol onError:@"Nothing actually happened" exception:testException]; - - expect(@(verified)).toEventually(beTruthy()); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV1ProtocolMessageSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV1ProtocolMessageSpec.m deleted file mode 100644 index 0a40b94f3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV1ProtocolMessageSpec.m +++ /dev/null @@ -1,32 +0,0 @@ -// -// SDLV1ProtocolMessageSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import -#import - -#import "SDLV1ProtocolMessage.h" -#import "SDLV1ProtocolHeader.h" - - -QuickSpecBegin(SDLV1ProtocolMessageSpec) - -describe(@"RPCDictionary Tests", ^ { - it(@"Should return the correct dictionary", ^ { - SDLV1ProtocolHeader* testHeader = [[SDLV1ProtocolHeader alloc] init]; - NSDictionary* testDictionary = @{@"Oyster": @"Soup", - @"Soup": @"Kitchen", - @"Kitchen": @"Floor", - @"Floor": @"Wax", - @"Wax": @"Museum"}; - SDLV1ProtocolMessage* testMessage = [[SDLV1ProtocolMessage alloc] initWithHeader:testHeader andPayload:[NSJSONSerialization dataWithJSONObject:testDictionary options:0 error:0]]; - - expect([testMessage rpcDictionary]).to(equal(testDictionary)); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV2ProtocolMessageSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV2ProtocolMessageSpec.m deleted file mode 100644 index 84a053004..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV2ProtocolMessageSpec.m +++ /dev/null @@ -1,57 +0,0 @@ -// -// SDLV2ProtocolMessageSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import -#import - -#import "SDLV2ProtocolMessage.h" -#import "SDLV2ProtocolHeader.h" -#import "SDLRPCPayload.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLV2ProtocolMessageSpec) - -describe(@"RPCDictionary Tests", ^ { - it(@"Should return the correct dictionary", ^ { - SDLServiceType serviceType = SDLServiceType_RPC; - - SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; - id headerMock = OCMPartialMock(testHeader); - [[[headerMock stub] andReturnValue:[NSValue value:&serviceType withObjCType:@encode(SDLServiceType)]] serviceType]; - - NSDictionary* dictionary = @{@"A": @1, - @"B": @2, - @"C": @3, - @"D": @4, - @"E": @5}; - UInt32 correlationID = 99; - UInt32 functionID = 26; - Byte rpcType = 0; - - SDLRPCPayload* testPayload = [[SDLRPCPayload alloc] init]; - id payloadMock = OCMPartialMock(testPayload); - [[[payloadMock stub] andReturn:[NSJSONSerialization dataWithJSONObject:dictionary options:0 error:0]] jsonData]; - [[[payloadMock stub] andReturnValue:[NSValue value:&correlationID withObjCType:@encode(UInt32)]] correlationID]; - [[[payloadMock stub] andReturnValue:[NSValue value:&functionID withObjCType:@encode(UInt32)]] functionID]; - [[[payloadMock stub] andReturnValue:[NSValue value:&rpcType withObjCType:@encode(Byte)]] rpcType]; - [[[payloadMock stub] andReturn:[NSData dataWithBytes:"Database" length:strlen("Database")]] binaryData]; - - id payloadClassMock = OCMClassMock(SDLRPCPayload.class); - [[[payloadClassMock stub] andReturn:testPayload] rpcPayloadWithData:[OCMArg any]]; - - SDLV2ProtocolMessage* testMessage = [[SDLV2ProtocolMessage alloc] initWithHeader:testHeader andPayload:[[NSMutableData alloc] initWithCapacity:0]]; - - expect([testMessage rpcDictionary]).to(equal(@{NAMES_request: - @{NAMES_operation_name:NAMES_Slider, - NAMES_correlationID:@99, - NAMES_parameters:dictionary}, - NAMES_bulkData:[NSData dataWithBytes:"Database" length:strlen("Database")]})); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLAbstractProtocolSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLAbstractProtocolSpec.m deleted file mode 100644 index c393e2f7e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLAbstractProtocolSpec.m +++ /dev/null @@ -1,57 +0,0 @@ -// -// SDLAbstractProtocolSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import -#import - -#import "SDLAbstractProtocol.h" -#import "SDLProtocolListener.h" - -QuickSpecBegin(SDLAbstractProtocolSpec) - -describe(@"OnTransportConnected Tests", ^ { - it(@"Should invoke the correct method", ^ { - id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); - - SDLAbstractProtocol* abstractProtocol = [[SDLAbstractProtocol alloc] init]; - [abstractProtocol.protocolDelegateTable addObject:delegateMock]; - - __block BOOL verified = NO; - [[[delegateMock stub] andDo:^(NSInvocation* invocation) {verified = YES;}] onProtocolOpened]; - - [abstractProtocol onTransportConnected]; - - //Verifications don't work with Nimble at this point - //OCMVerify([delegateMock onProtocolOpened]); - - //Workaround for now - expect(@(verified)).to(beTruthy()); - }); -}); - -describe(@"OnTransportDisconnected Tests", ^ { - it(@"Should invoke the correct method", ^ { - id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); - - SDLAbstractProtocol* abstractProtocol = [[SDLAbstractProtocol alloc] init]; - [abstractProtocol.protocolDelegateTable addObject:delegateMock]; - - __block BOOL verified = NO; - [[[delegateMock stub] andDo:^(NSInvocation* invocation) {verified = YES;}] onProtocolClosed]; - - [abstractProtocol onTransportDisconnected]; - - //Verifications don't work with Nimble at this point - //OCMVerify([delegateMock onProtocolClosed]); - - //Workaround for now - expect(@(verified)).to(beTruthy()); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLFunctionIDSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLFunctionIDSpec.m deleted file mode 100644 index eff1ae3b2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLFunctionIDSpec.m +++ /dev/null @@ -1,152 +0,0 @@ -// -// FunctionIDSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import - -#import "SDLFunctionID.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLFunctionIDSpec) - -SDLFunctionID* functionID = [[SDLFunctionID alloc] init]; - -describe(@"GetFunctionName Tests", ^ { - it(@"Should return the correct function name", ^ { - expect([functionID getFunctionName:1]).to(equal(NAMES_RegisterAppInterface)); - expect([functionID getFunctionName:2]).to(equal(NAMES_UnregisterAppInterface)); - expect([functionID getFunctionName:3]).to(equal(NAMES_SetGlobalProperties)); - expect([functionID getFunctionName:4]).to(equal(NAMES_ResetGlobalProperties)); - expect([functionID getFunctionName:5]).to(equal(NAMES_AddCommand)); - expect([functionID getFunctionName:6]).to(equal(NAMES_DeleteCommand)); - expect([functionID getFunctionName:7]).to(equal(NAMES_AddSubMenu)); - expect([functionID getFunctionName:8]).to(equal(NAMES_DeleteSubMenu)); - expect([functionID getFunctionName:9]).to(equal(NAMES_CreateInteractionChoiceSet)); - expect([functionID getFunctionName:10]).to(equal(NAMES_PerformInteraction)); - expect([functionID getFunctionName:11]).to(equal(NAMES_DeleteInteractionChoiceSet)); - expect([functionID getFunctionName:12]).to(equal(NAMES_Alert)); - expect([functionID getFunctionName:13]).to(equal(NAMES_Show)); - expect([functionID getFunctionName:14]).to(equal(NAMES_Speak)); - expect([functionID getFunctionName:15]).to(equal(NAMES_SetMediaClockTimer)); - expect([functionID getFunctionName:16]).to(equal(NAMES_PerformAudioPassThru)); - expect([functionID getFunctionName:17]).to(equal(NAMES_EndAudioPassThru)); - expect([functionID getFunctionName:18]).to(equal(NAMES_SubscribeButton)); - expect([functionID getFunctionName:19]).to(equal(NAMES_UnsubscribeButton)); - expect([functionID getFunctionName:20]).to(equal(NAMES_SubscribeVehicleData)); - expect([functionID getFunctionName:21]).to(equal(NAMES_UnsubscribeVehicleData)); - expect([functionID getFunctionName:22]).to(equal(NAMES_GetVehicleData)); - expect([functionID getFunctionName:23]).to(equal(NAMES_ReadDID)); - expect([functionID getFunctionName:24]).to(equal(NAMES_GetDTCs)); - expect([functionID getFunctionName:25]).to(equal(NAMES_ScrollableMessage)); - expect([functionID getFunctionName:26]).to(equal(NAMES_Slider)); - expect([functionID getFunctionName:27]).to(equal(NAMES_ShowConstantTBT)); - expect([functionID getFunctionName:28]).to(equal(NAMES_AlertManeuver)); - expect([functionID getFunctionName:29]).to(equal(NAMES_UpdateTurnList)); - expect([functionID getFunctionName:30]).to(equal(NAMES_ChangeRegistration)); - expect([functionID getFunctionName:31]).to(equal(NAMES_GenericResponse)); - expect([functionID getFunctionName:32]).to(equal(NAMES_PutFile)); - expect([functionID getFunctionName:33]).to(equal(NAMES_DeleteFile)); - expect([functionID getFunctionName:34]).to(equal(NAMES_ListFiles)); - expect([functionID getFunctionName:35]).to(equal(NAMES_SetAppIcon)); - expect([functionID getFunctionName:36]).to(equal(NAMES_SetDisplayLayout)); - expect([functionID getFunctionName:37]).to(equal(NAMES_DiagnosticMessage)); - expect([functionID getFunctionName:38]).to(equal(NAMES_SystemRequest)); - expect([functionID getFunctionName:39]).to(equal(NAMES_SendLocation)); - expect([functionID getFunctionName:40]).to(equal(NAMES_DialNumber)); - expect([functionID getFunctionName:32768]).to(equal(NAMES_OnHMIStatus)); - expect([functionID getFunctionName:32769]).to(equal(NAMES_OnAppInterfaceUnregistered)); - expect([functionID getFunctionName:32770]).to(equal(NAMES_OnButtonEvent)); - expect([functionID getFunctionName:32771]).to(equal(NAMES_OnButtonPress)); - expect([functionID getFunctionName:32772]).to(equal(NAMES_OnVehicleData)); - expect([functionID getFunctionName:32773]).to(equal(NAMES_OnCommand)); - expect([functionID getFunctionName:32774]).to(equal(NAMES_OnTBTClientState)); - expect([functionID getFunctionName:32775]).to(equal(NAMES_OnDriverDistraction)); - expect([functionID getFunctionName:32776]).to(equal(NAMES_OnPermissionsChange)); - expect([functionID getFunctionName:32777]).to(equal(NAMES_OnAudioPassThru)); - expect([functionID getFunctionName:32778]).to(equal(NAMES_OnLanguageChange)); - expect([functionID getFunctionName:32779]).to(equal(NAMES_OnKeyboardInput)); - expect([functionID getFunctionName:32780]).to(equal(NAMES_OnTouchEvent)); - expect([functionID getFunctionName:32781]).to(equal(NAMES_OnSystemRequest)); - expect([functionID getFunctionName:32782]).to(equal(NAMES_OnHashChange)); - - //Not listed in Spec - expect([functionID getFunctionName:65536]).to(equal(NAMES_EncodedSyncPData)); - expect([functionID getFunctionName:65537]).to(equal(NAMES_SyncPData)); - - expect([functionID getFunctionName:98304]).to(equal(NAMES_OnEncodedSyncPData)); - expect([functionID getFunctionName:98305]).to(equal(NAMES_OnSyncPData)); - }); -}); - -describe(@"GetFunctionID Tests", ^ { - it(@"Should return the correct function ID", ^ { - expect([functionID getFunctionID:NAMES_RegisterAppInterface]).to(equal(@1)); - expect([functionID getFunctionID:NAMES_UnregisterAppInterface]).to(equal(@2)); - expect([functionID getFunctionID:NAMES_SetGlobalProperties]).to(equal(@3)); - expect([functionID getFunctionID:NAMES_ResetGlobalProperties]).to(equal(@4)); - expect([functionID getFunctionID:NAMES_AddCommand]).to(equal(@5)); - expect([functionID getFunctionID:NAMES_DeleteCommand]).to(equal(@6)); - expect([functionID getFunctionID:NAMES_AddSubMenu]).to(equal(@7)); - expect([functionID getFunctionID:NAMES_DeleteSubMenu]).to(equal(@8)); - expect([functionID getFunctionID:NAMES_CreateInteractionChoiceSet]).to(equal(@9)); - expect([functionID getFunctionID:NAMES_PerformInteraction]).to(equal(@10)); - expect([functionID getFunctionID:NAMES_DeleteInteractionChoiceSet]).to(equal(@11)); - expect([functionID getFunctionID:NAMES_Alert]).to(equal(@12)); - expect([functionID getFunctionID:NAMES_Show]).to(equal(@13)); - expect([functionID getFunctionID:NAMES_Speak]).to(equal(@14)); - expect([functionID getFunctionID:NAMES_SetMediaClockTimer]).to(equal(@15)); - expect([functionID getFunctionID:NAMES_PerformAudioPassThru]).to(equal(@16)); - expect([functionID getFunctionID:NAMES_EndAudioPassThru]).to(equal(@17)); - expect([functionID getFunctionID:NAMES_SubscribeButton]).to(equal(@18)); - expect([functionID getFunctionID:NAMES_UnsubscribeButton]).to(equal(@19)); - expect([functionID getFunctionID:NAMES_SubscribeVehicleData]).to(equal(@20)); - expect([functionID getFunctionID:NAMES_UnsubscribeVehicleData]).to(equal(@21)); - expect([functionID getFunctionID:NAMES_GetVehicleData]).to(equal(@22)); - expect([functionID getFunctionID:NAMES_ReadDID]).to(equal(@23)); - expect([functionID getFunctionID:NAMES_GetDTCs]).to(equal(@24)); - expect([functionID getFunctionID:NAMES_ScrollableMessage]).to(equal(@25)); - expect([functionID getFunctionID:NAMES_Slider]).to(equal(@26)); - expect([functionID getFunctionID:NAMES_ShowConstantTBT]).to(equal(@27)); - expect([functionID getFunctionID:NAMES_AlertManeuver]).to(equal(@28)); - expect([functionID getFunctionID:NAMES_UpdateTurnList]).to(equal(@29)); - expect([functionID getFunctionID:NAMES_ChangeRegistration]).to(equal(@30)); - expect([functionID getFunctionID:NAMES_GenericResponse]).to(equal(@31)); - expect([functionID getFunctionID:NAMES_PutFile]).to(equal(@32)); - expect([functionID getFunctionID:NAMES_DeleteFile]).to(equal(@33)); - expect([functionID getFunctionID:NAMES_ListFiles]).to(equal(@34)); - expect([functionID getFunctionID:NAMES_SetAppIcon]).to(equal(@35)); - expect([functionID getFunctionID:NAMES_SetDisplayLayout]).to(equal(@36)); - expect([functionID getFunctionID:NAMES_DiagnosticMessage]).to(equal(@37)); - expect([functionID getFunctionID:NAMES_SystemRequest]).to(equal(@38)); - expect([functionID getFunctionID:NAMES_SendLocation]).to(equal(@39)); - expect([functionID getFunctionID:NAMES_DialNumber]).to(equal(@40)); - expect([functionID getFunctionID:NAMES_OnHMIStatus]).to(equal(@32768)); - expect([functionID getFunctionID:NAMES_OnAppInterfaceUnregistered]).to(equal(@32769)); - expect([functionID getFunctionID:NAMES_OnButtonEvent]).to(equal(@32770)); - expect([functionID getFunctionID:NAMES_OnButtonPress]).to(equal(@32771)); - expect([functionID getFunctionID:NAMES_OnVehicleData]).to(equal(@32772)); - expect([functionID getFunctionID:NAMES_OnCommand]).to(equal(@32773)); - expect([functionID getFunctionID:NAMES_OnTBTClientState]).to(equal(@32774)); - expect([functionID getFunctionID:NAMES_OnDriverDistraction]).to(equal(@32775)); - expect([functionID getFunctionID:NAMES_OnPermissionsChange]).to(equal(@32776)); - expect([functionID getFunctionID:NAMES_OnAudioPassThru]).to(equal(@32777)); - expect([functionID getFunctionID:NAMES_OnLanguageChange]).to(equal(@32778)); - expect([functionID getFunctionID:NAMES_OnKeyboardInput]).to(equal(@32779)); - expect([functionID getFunctionID:NAMES_OnTouchEvent]).to(equal(@32780)); - expect([functionID getFunctionID:NAMES_OnSystemRequest]).to(equal(@32781)); - expect([functionID getFunctionID:NAMES_OnHashChange]).to(equal(@32782)); - - //Not listed in Spec - expect([functionID getFunctionID:NAMES_EncodedSyncPData]).to(equal(@65536)); - expect([functionID getFunctionID:NAMES_SyncPData]).to(equal(@65537)); - - expect([functionID getFunctionID:NAMES_OnEncodedSyncPData]).to(equal(@98304)); - expect([functionID getFunctionID:NAMES_OnSyncPData]).to(equal(@98305)); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageAssemblerSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageAssemblerSpec.m deleted file mode 100644 index d31a6e061..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageAssemblerSpec.m +++ /dev/null @@ -1,100 +0,0 @@ -// -// SDLProtocolMessageAssemblerSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import -#import - -#import "SDLProtocolMessageAssembler.h" -#import "SDLV2ProtocolHeader.h" -#import "SDLV2ProtocolMessage.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLProtocolMessageAssemblerSpec) - -describe(@"HandleMessage Tests", ^ { - it(@"Should assemble the message properly", ^ { - const NSUInteger dataLength = 2000; - - char dummyBytes[dataLength]; - - const char testPayloadHeader[12] = {0x20, 0x55, 0x64, 0x73, 0x12, 0x34, 0x43, 0x21, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; - - NSMutableData* payloadData = [NSMutableData dataWithBytes:testPayloadHeader length:12]; - [payloadData appendBytes:dummyBytes length:dataLength]; - - SDLV2ProtocolMessage* testMessage = [[SDLV2ProtocolMessage alloc] init]; - SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; - - //First frame - testHeader.frameType = SDLFrameType_First; - testHeader.serviceType = SDLServiceType_BulkData; - testHeader.frameData = 1; - testHeader.sessionID = 0x16; - testHeader.bytesInPayload = 8; - - testMessage.header = testHeader; - - const char firstPayload[8] = {(payloadData.length >> 24) & 0xFF, (payloadData.length >> 16) & 0xFF, (payloadData.length >> 8) & 0xFF, payloadData.length & 0xFF, 0x00, 0x00, 0x00, ceil(payloadData.length / 500.0)}; - testMessage.payload = [NSData dataWithBytes:firstPayload length:8]; - - SDLProtocolMessageAssembler* assembler = [[SDLProtocolMessageAssembler alloc] initWithSessionID:0x16]; - - __block BOOL verified = NO; - - SDLMessageAssemblyCompletionHandler incompleteHandler = ^void(BOOL done, SDLProtocolMessage* assembledMessage) { - verified = YES; - - expect(@(done)).to(equal(@NO)); - expect(assembledMessage).to(beNil()); - }; - - [assembler handleMessage:testMessage withCompletionHandler:incompleteHandler]; - - expect(@(verified)).to(beTruthy()); - verified = NO; - - testMessage.header.frameType = SDLFrameType_Consecutive; - testMessage.header.bytesInPayload = 500; - - NSUInteger frameNumber = 1; - NSUInteger offset = 0; - while ((offset + 500) < payloadData.length) { - //Consecutive frames - testMessage.header.frameData = frameNumber; - testMessage.payload = [payloadData subdataWithRange:NSMakeRange(offset, 500)]; - [assembler handleMessage:testMessage withCompletionHandler:incompleteHandler]; - - expect(@(verified)).to(beTruthy()); - verified = NO; - - frameNumber++; - offset += 500; - } - - //Final frame - testMessage.header.frameData = 0; - testMessage.payload = [payloadData subdataWithRange:NSMakeRange(offset, payloadData.length - offset)]; - [assembler handleMessage:testMessage withCompletionHandler: ^void(BOOL done, SDLProtocolMessage* assembledMessage) { - verified = YES; - - // FIXME: At the moment, this test fails because the completion handler is accidentally called twice - expect(@(done)).to(equal(@YES)); - - expect(assembledMessage.payload).to(equal(payloadData)); - expect(@(assembledMessage.header.frameType)).to(equal(@(SDLFrameType_Single))); - expect(@(assembledMessage.header.serviceType)).to(equal(@(SDLServiceType_BulkData))); - expect(@(assembledMessage.header.frameData)).to(equal(@(SDLFrameData_SingleFrame))); - expect(@(assembledMessage.header.sessionID)).to(equal(@0x16)); - expect(@(assembledMessage.header.bytesInPayload)).to(equal(@(payloadData.length))); - }]; - - expect(@(verified)).to(beTruthy()); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageDisassemblerSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageDisassemblerSpec.m deleted file mode 100644 index 04fb30c5e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageDisassemblerSpec.m +++ /dev/null @@ -1,95 +0,0 @@ -// -// SDLProtocolMessageDisassemblerSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import -#import - -#import "SDLGlobals.h" -#import "SDLProtocolMessageDisassembler.h" -#import "SDLV2ProtocolHeader.h" -#import "SDLV2ProtocolMessage.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLProtocolMessageDisassemblerSpec) - -describe(@"Disassemble Tests", ^ { - it(@"Should assemble the message properly", ^ { - //Allocate 2000 bytes, and use it as sample data - const NSUInteger dataLength = 2000; - char dummyBytes[dataLength]; - - SDLGlobals *globals = [[SDLGlobals alloc] init]; - globals.maxHeadUnitVersion = 2; - - const char testPayloadHeader[12] = {0x20, 0x55, 0x64, 0x73, 0x12, 0x34, 0x43, 0x21, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; - - NSMutableData* payloadData = [NSMutableData dataWithBytes:testPayloadHeader length:12]; - [payloadData appendBytes:dummyBytes length:dataLength]; - - SDLV2ProtocolMessage* testMessage = [[SDLV2ProtocolMessage alloc] init]; - SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; - - testHeader.frameType = SDLFrameType_Single; - testHeader.serviceType = SDLServiceType_BulkData; - testHeader.frameData = SDLFrameData_SingleFrame; - testHeader.sessionID = 0x84; - testHeader.bytesInPayload = (UInt32)payloadData.length; - - testMessage.header = testHeader; - testMessage.payload = payloadData; - - NSArray* messageList = [SDLProtocolMessageDisassembler disassemble:testMessage withLimit:globals.maxMTUSize]; - - //Payload length per message - UInt32 payloadLength = 1012; // v1/2 MTU(1024) - header length(12) - - const char firstPayload[8] = {(payloadData.length >> 24) & 0xFF, (payloadData.length >> 16) & 0xFF, (payloadData.length >> 8) & 0xFF, payloadData.length & 0xFF, 0x00, 0x00, 0x00, ceil(1.0 * payloadData.length / payloadLength)}; - - SDLProtocolMessage* message = messageList[0]; - - //First frame - expect(message.payload).to(equal([NSData dataWithBytes:firstPayload length:8])); - - expect(@(message.header.frameType)).to(equal(@(SDLFrameType_First))); - expect(@(message.header.serviceType)).to(equal(@(SDLServiceType_BulkData))); - expect(@(message.header.frameData)).to(equal(@(SDLFrameData_FirstFrame))); - expect(@(message.header.sessionID)).to(equal(@0x84)); - expect(@(message.header.bytesInPayload)).to(equal(@8)); - - NSUInteger offset = 0; - for (int i = 1; i < messageList.count - 1; i++) { - message = messageList[i]; - - //Consecutive frames - expect(message.payload).to(equal([NSData dataWithData:[payloadData subdataWithRange:NSMakeRange(offset, payloadLength)]])); - - expect(@(message.header.frameType)).to(equal(@(SDLFrameType_Consecutive))); - expect(@(message.header.serviceType)).to(equal(@(SDLServiceType_BulkData))); - expect(@(message.header.frameData)).to(equal(@(i))); - expect(@(message.header.sessionID)).to(equal(@0x84)); - expect(@(message.header.bytesInPayload)).to(equal(@(payloadLength))); - - offset += payloadLength; - } - - message = [messageList lastObject]; - - NSUInteger remaining = payloadData.length - offset; - - //Last frame - expect(message.payload).to(equal([NSData dataWithData:[payloadData subdataWithRange:NSMakeRange(offset, remaining)]])); - - expect(@(message.header.frameType)).to(equal(@(SDLFrameType_Consecutive))); - expect(@(message.header.serviceType)).to(equal(@(SDLServiceType_BulkData))); - expect(@(message.header.frameData)).to(equal(@(SDLFrameData_ConsecutiveLastFrame))); - expect(@(message.header.sessionID)).to(equal(@0x84)); - expect(@(message.header.bytesInPayload)).to(equal(@(remaining))); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolReceivedMessageRouterSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolReceivedMessageRouterSpec.m deleted file mode 100644 index 6e22fd901..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolReceivedMessageRouterSpec.m +++ /dev/null @@ -1,176 +0,0 @@ -// -// SDLProtocolReceivedMessageRouterSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import -#import - -#import "SDLProtocolReceivedMessageRouter.h" -#import "SDLV2ProtocolHeader.h" -#import "SDLV2ProtocolMessage.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLProtocolReceivedMessageRouterSpec) - -describe(@"HandleReceivedMessage Tests", ^ { - context(@"When handling control message", ^ { - it(@"Should route message correctly", ^ { - id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); - - SDLV2ProtocolMessage* testMessage = [[SDLV2ProtocolMessage alloc] init]; - SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; - - testHeader.frameType = SDLFrameType_Control; - testHeader.serviceType = SDLServiceType_RPC; - testHeader.frameData = SDLFrameData_StartSessionACK; - testHeader.sessionID = 0x93; - testHeader.bytesInPayload = 0; - - testMessage.header = testHeader; - testMessage.payload = [NSData data]; - - __block BOOL verified = NO; - [[[[delegateMock stub] andDo: ^(NSInvocation* invocation) { - verified = YES; - Byte serviceType; - Byte sessionID; - Byte version; - - [invocation getArgument:&serviceType atIndex:2]; - [invocation getArgument:&sessionID atIndex:3]; - [invocation getArgument:&version atIndex:4]; - - expect(@(serviceType)).to(equal(@(SDLServiceType_RPC))); - expect(@(sessionID)).to(equal(@0x93)); - expect(@(version)).to(equal(@0x02)); - }] ignoringNonObjectArgs] handleProtocolStartSessionACK:0 sessionID:0 version:0]; - - SDLProtocolReceivedMessageRouter* router = [[SDLProtocolReceivedMessageRouter alloc] init]; - router.delegate = delegateMock; - - [router handleReceivedMessage:testMessage]; - - expect(@(verified)).to(beTruthy()); - }); - }); - - context(@"When handling single frame message", ^ { - it(@"Should route message correctly", ^ { - id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); - - SDLV2ProtocolMessage* testMessage = [[SDLV2ProtocolMessage alloc] init]; - SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; - - testHeader.frameType = SDLFrameType_Single; - testHeader.serviceType = SDLServiceType_RPC; - testHeader.frameData = SDLFrameData_SingleFrame; - testHeader.sessionID = 0x07; - testHeader.bytesInPayload = 0; - - testMessage.header = testHeader; - - testMessage.payload = [NSData data]; - - __block BOOL verified = NO; - [[[[delegateMock stub] andDo: ^(NSInvocation* invocation) { - verified = YES; - - __unsafe_unretained SDLProtocolMessage* message; - - [invocation getArgument:&message atIndex:2]; - - SDLV2ProtocolMessage* messageReceived = (SDLV2ProtocolMessage*)message; - - expect(messageReceived).to(beIdenticalTo(testMessage)); - }] ignoringNonObjectArgs] onProtocolMessageReceived:[OCMArg any]]; - - SDLProtocolReceivedMessageRouter* router = [[SDLProtocolReceivedMessageRouter alloc] init]; - router.delegate = delegateMock; - - [router handleReceivedMessage:testMessage]; - - expect(@(verified)).to(beTruthy()); - }); - }); - - context(@"When handling multi-frame message", ^ { - it(@"Should route message correctly", ^ { - //Allocate 2000 bytes and use it as test data - const NSUInteger dataLength = 2000; - char dummyBytes[dataLength]; - - const char testPayloadHeader[12] = {0x20, 0x55, 0x64, 0x73, 0x12, 0x34, 0x43, 0x21, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; - - NSMutableData* payloadData = [NSMutableData dataWithBytes:testPayloadHeader length:12]; - [payloadData appendBytes:dummyBytes length:dataLength]; - - SDLV2ProtocolMessage* testMessage = [[SDLV2ProtocolMessage alloc] init]; - SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; - - //First frame - testHeader.frameType = SDLFrameType_First; - testHeader.serviceType = SDLServiceType_BulkData; - testHeader.frameData = 1; - testHeader.sessionID = 0x33; - testHeader.bytesInPayload = 8; - - testMessage.header = testHeader; - - const char firstPayload[8] = {(payloadData.length >> 24) & 0xFF, (payloadData.length >> 16) & 0xFF, (payloadData.length >> 8) & 0xFF, payloadData.length & 0xFF, 0x00, 0x00, 0x00, ceil(payloadData.length / 500.0)}; - testMessage.payload = [NSData dataWithBytes:firstPayload length:8]; - - SDLProtocolReceivedMessageRouter* router = [[SDLProtocolReceivedMessageRouter alloc] init]; - - [router handleReceivedMessage:testMessage]; - - testMessage.header.frameType = SDLFrameType_Consecutive; - testMessage.header.bytesInPayload = 500; - - NSUInteger frameNumber = 1; - NSUInteger offset = 0; - while ((offset + 500) < payloadData.length) { - //Consectutive frames - testMessage.header.frameData = frameNumber; - testMessage.payload = [payloadData subdataWithRange:NSMakeRange(offset, 500)]; - [router handleReceivedMessage:testMessage]; - - frameNumber++; - offset += 500; - } - - //Final frame - testMessage.header.frameData = 0; - testMessage.payload = [payloadData subdataWithRange:NSMakeRange(offset, payloadData.length - offset)]; - - id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); - - __block BOOL verified = NO; - [[[delegateMock stub] andDo:^(NSInvocation* invocation) { - verified = YES; - - //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 - __unsafe_unretained SDLProtocolMessage* message; - [invocation getArgument:&message atIndex:2]; - SDLProtocolMessage* assembledMessage = message; - - expect(assembledMessage.payload).to(equal(payloadData)); - expect(@(assembledMessage.header.frameType)).to(equal(@(SDLFrameType_Single))); - expect(@(assembledMessage.header.serviceType)).to(equal(@(SDLServiceType_BulkData))); - expect(@(assembledMessage.header.frameData)).to(equal(@(SDLFrameData_SingleFrame))); - expect(@(assembledMessage.header.sessionID)).to(equal(@0x33)); - expect(@(assembledMessage.header.bytesInPayload)).to(equal(@(payloadData.length))); - }] onProtocolMessageReceived:[OCMArg any]]; - - router.delegate = delegateMock; - [router handleReceivedMessage:testMessage]; - - expect(@(verified)).to(beTruthy()); - }); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProxySpecs/SDLLockScreenManagerSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProxySpecs/SDLLockScreenManagerSpec.m deleted file mode 100644 index 76c85b9f4..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProxySpecs/SDLLockScreenManagerSpec.m +++ /dev/null @@ -1,235 +0,0 @@ -// -// SDLHexUtilitySpec.m -// SmartDeviceLink-iOS - -#import -#import - -#import "SDLHMILevel.h" -#import "SDLOnLockScreenStatus.h" -#import "SDLLockScreenManager.h" -#import "SDLLockScreenStatus.h" - - -QuickSpecBegin(SDLLockScreenManagerSpec) - -describe(@"the lockscreen manager", ^{ - __block SDLLockScreenManager *lockScreenManager; - beforeEach(^{ - lockScreenManager = [[SDLLockScreenManager alloc] init]; - }); - - it(@"should properly initialize user selected app boolean to false", ^{ - expect(@(lockScreenManager.userSelected)).to(beFalse()); - }); - - it(@"should properly initialize driver is distracted boolean to false", ^{ - expect(@(lockScreenManager.driverDistracted)).to(beFalse()); - }); - - it(@"should properly initialize hmi level object to nil", ^{ - expect(lockScreenManager.hmiLevel).to(beNil()); - }); - - describe(@"when setting HMI level", ^{ - context(@"to FULL", ^{ - beforeEach(^{ - lockScreenManager.userSelected = NO; - lockScreenManager.hmiLevel = [SDLHMILevel FULL]; - }); - - it(@"should set user selected to true", ^{ - expect(@(lockScreenManager.userSelected)).to(beTrue()); - }); - }); - - context(@"to LIMITED", ^{ - beforeEach(^{ - lockScreenManager.userSelected = NO; - lockScreenManager.hmiLevel = [SDLHMILevel LIMITED]; - }); - - it(@"should set user selected to true", ^{ - expect(@(lockScreenManager.userSelected)).to(beTrue()); - }); - }); - - context(@"to BACKGROUND", ^{ - beforeEach(^{ - lockScreenManager.hmiLevel = [SDLHMILevel BACKGROUND]; - }); - - context(@"when user selected is false", ^{ - beforeEach(^{ - lockScreenManager.userSelected = NO; - }); - - it(@"should not alter the value", ^{ - expect(@(lockScreenManager.userSelected)).to(beFalse()); - }); - }); - - context(@"when user selected is true", ^{ - beforeEach(^{ - lockScreenManager.userSelected = YES; - }); - - it(@"should not alter the value", ^{ - expect(@(lockScreenManager.userSelected)).to(beTrue()); - }); - }); - }); - - context(@"to NONE", ^{ - beforeEach(^{ - lockScreenManager.userSelected = YES; - lockScreenManager.hmiLevel = [SDLHMILevel NONE]; - }); - - it(@"should set user selected to false", ^{ - expect(@(lockScreenManager.userSelected)).to(beFalse()); - }); - }); - }); - - describe(@"when getting lock screen status", ^{ - context(@"when HMI level is nil", ^{ - beforeEach(^{ - lockScreenManager.hmiLevel = nil; - }); - - it(@"should return lock screen off", ^{ - expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus OFF])); - }); - }); - - context(@"when HMI level is NONE", ^{ - beforeEach(^{ - lockScreenManager.hmiLevel = [SDLHMILevel NONE]; - }); - - it(@"should return lock screen off", ^{ - expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus OFF])); - }); - }); - - context(@"when HMI level is BACKGROUND", ^{ - beforeEach(^{ - lockScreenManager.hmiLevel = [SDLHMILevel BACKGROUND]; - }); - - context(@"when user selected is true", ^{ - beforeEach(^{ - lockScreenManager.userSelected = YES; - }); - - it(@"should return lock screen required", ^{ - expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); - }); - }); - - context(@"when user selected is false", ^{ - beforeEach(^{ - lockScreenManager.userSelected = NO; - }); - - it(@"should return lock screen off", ^{ - expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus OFF])); - }); - }); - }); - - context(@"when HMI level is LIMITED", ^{ - beforeEach(^{ - lockScreenManager.hmiLevel = [SDLHMILevel LIMITED]; - }); - - context(@"if we do not set the driver distraction state", ^{ - it(@"should return lock screen required", ^{ - expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); - }); - }); - - context(@"if we set the driver distraction state to false", ^{ - beforeEach(^{ - lockScreenManager.driverDistracted = NO; - }); - - it(@"should return lock screen optional", ^{ - expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus OPTIONAL])); - }); - }); - - context(@"if we set the driver distraction state to true", ^{ - beforeEach(^{ - lockScreenManager.driverDistracted = YES; - }); - - it(@"should return lock screen required", ^{ - expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); - }); - }); - }); - - context(@"when HMI level is FULL", ^{ - beforeEach(^{ - lockScreenManager.hmiLevel = [SDLHMILevel FULL]; - }); - - context(@"if we do not set the driver distraction state", ^{ - it(@"should return lock screen required", ^{ - expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); - }); - }); - - context(@"if we set the driver distraction state to false", ^{ - beforeEach(^{ - lockScreenManager.driverDistracted = NO; - }); - - it(@"should return lock screen optional", ^{ - expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus OPTIONAL])); - }); - }); - - context(@"if we set the driver distraction state to true", ^{ - beforeEach(^{ - lockScreenManager.driverDistracted = YES; - }); - - it(@"should return lock screen required", ^{ - expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); - }); - }); - }); - }); - - describe(@"when getting lock screen status notification", ^{ - __block SDLOnLockScreenStatus *onLockScreenStatusNotification = nil; - beforeEach(^{ - lockScreenManager.userSelected = YES; - lockScreenManager.driverDistracted = NO; - lockScreenManager.hmiLevel = [SDLHMILevel LIMITED]; - - onLockScreenStatusNotification = lockScreenManager.lockScreenStatusNotification; - }); - - it(@"should properly return user selected", ^{ - expect(onLockScreenStatusNotification.userSelected).to(beTrue()); - }); - - it(@"should properly return driver distraction status", ^{ - expect(onLockScreenStatusNotification.driverDistractionStatus).to(beFalse()); - }); - - it(@"should properly return HMI level", ^{ - expect(onLockScreenStatusNotification.hmiLevel).to(equal([SDLHMILevel LIMITED])); - }); - - it(@"should properly return lock screen status", ^{ - expect(onLockScreenStatusNotification.lockScreenStatus).to(equal([SDLLockScreenStatus OPTIONAL])); - }); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAmbientLightStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAmbientLightStatusSpec.m deleted file mode 100644 index c5259da1d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAmbientLightStatusSpec.m +++ /dev/null @@ -1,71 +0,0 @@ -// -// SDLAmbientLightStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAmbientLightStatus.h" - -QuickSpecBegin(SDLAmbientLightStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLAmbientLightStatus NIGHT].value).to(equal(@"NIGHT")); - expect([SDLAmbientLightStatus TWILIGHT_1].value).to(equal(@"TWILIGHT_1")); - expect([SDLAmbientLightStatus TWILIGHT_2].value).to(equal(@"TWILIGHT_2")); - expect([SDLAmbientLightStatus TWILIGHT_3].value).to(equal(@"TWILIGHT_3")); - expect([SDLAmbientLightStatus TWILIGHT_4].value).to(equal(@"TWILIGHT_4")); - expect([SDLAmbientLightStatus DAY].value).to(equal(@"DAY")); - expect([SDLAmbientLightStatus UNKNOWN].value).to(equal(@"UNKNOWN")); - expect([SDLAmbientLightStatus INVALID].value).to(equal(@"INVALID")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLAmbientLightStatus valueOf:@"NIGHT"]).to(equal([SDLAmbientLightStatus NIGHT])); - expect([SDLAmbientLightStatus valueOf:@"TWILIGHT_1"]).to(equal([SDLAmbientLightStatus TWILIGHT_1])); - expect([SDLAmbientLightStatus valueOf:@"TWILIGHT_2"]).to(equal([SDLAmbientLightStatus TWILIGHT_2])); - expect([SDLAmbientLightStatus valueOf:@"TWILIGHT_3"]).to(equal([SDLAmbientLightStatus TWILIGHT_3])); - expect([SDLAmbientLightStatus valueOf:@"TWILIGHT_4"]).to(equal([SDLAmbientLightStatus TWILIGHT_4])); - expect([SDLAmbientLightStatus valueOf:@"DAY"]).to(equal([SDLAmbientLightStatus DAY])); - expect([SDLAmbientLightStatus valueOf:@"UNKNOWN"]).to(equal([SDLAmbientLightStatus UNKNOWN])); - expect([SDLAmbientLightStatus valueOf:@"INVALID"]).to(equal([SDLAmbientLightStatus INVALID])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLAmbientLightStatus valueOf:nil]).to(beNil()); - expect([SDLAmbientLightStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLAmbientLightStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLAmbientLightStatus NIGHT], - [SDLAmbientLightStatus TWILIGHT_1], - [SDLAmbientLightStatus TWILIGHT_2], - [SDLAmbientLightStatus TWILIGHT_3], - [SDLAmbientLightStatus TWILIGHT_4], - [SDLAmbientLightStatus DAY], - [SDLAmbientLightStatus UNKNOWN], - [SDLAmbientLightStatus INVALID]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppHMITypeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppHMITypeSpec.m deleted file mode 100644 index 4e55a1543..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppHMITypeSpec.m +++ /dev/null @@ -1,77 +0,0 @@ -// -// SDLAppHMITypeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAppHMIType.h" - -QuickSpecBegin(SDLAppHMITypeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLAppHMIType DEFAULT].value).to(equal(@"DEFAULT")); - expect([SDLAppHMIType COMMUNICATION].value).to(equal(@"COMMUNICATION")); - expect([SDLAppHMIType MEDIA].value).to(equal(@"MEDIA")); - expect([SDLAppHMIType MESSAGING].value).to(equal(@"MESSAGING")); - expect([SDLAppHMIType NAVIGATION].value).to(equal(@"NAVIGATION")); - expect([SDLAppHMIType INFORMATION].value).to(equal(@"INFORMATION")); - expect([SDLAppHMIType SOCIAL].value).to(equal(@"SOCIAL")); - expect([SDLAppHMIType BACKGROUND_PROCESS].value).to(equal(@"BACKGROUND_PROCESS")); - expect([SDLAppHMIType TESTING].value).to(equal(@"TESTING")); - expect([SDLAppHMIType SYSTEM].value).to(equal(@"SYSTEM")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLAppHMIType valueOf:@"DEFAULT"]).to(equal([SDLAppHMIType DEFAULT])); - expect([SDLAppHMIType valueOf:@"COMMUNICATION"]).to(equal([SDLAppHMIType COMMUNICATION])); - expect([SDLAppHMIType valueOf:@"MEDIA"]).to(equal([SDLAppHMIType MEDIA])); - expect([SDLAppHMIType valueOf:@"MESSAGING"]).to(equal([SDLAppHMIType MESSAGING])); - expect([SDLAppHMIType valueOf:@"NAVIGATION"]).to(equal([SDLAppHMIType NAVIGATION])); - expect([SDLAppHMIType valueOf:@"INFORMATION"]).to(equal([SDLAppHMIType INFORMATION])); - expect([SDLAppHMIType valueOf:@"SOCIAL"]).to(equal([SDLAppHMIType SOCIAL])); - expect([SDLAppHMIType valueOf:@"BACKGROUND_PROCESS"]).to(equal([SDLAppHMIType BACKGROUND_PROCESS])); - expect([SDLAppHMIType valueOf:@"TESTING"]).to(equal([SDLAppHMIType TESTING])); - expect([SDLAppHMIType valueOf:@"SYSTEM"]).to(equal([SDLAppHMIType SYSTEM])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLAppHMIType valueOf:nil]).to(beNil()); - expect([SDLAppHMIType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLAppHMIType values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLAppHMIType DEFAULT], - [SDLAppHMIType COMMUNICATION], - [SDLAppHMIType MEDIA], - [SDLAppHMIType MESSAGING], - [SDLAppHMIType NAVIGATION], - [SDLAppHMIType INFORMATION], - [SDLAppHMIType SOCIAL], - [SDLAppHMIType BACKGROUND_PROCESS], - [SDLAppHMIType TESTING], - [SDLAppHMIType SYSTEM]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppInterfaceUnregisteredReasonSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppInterfaceUnregisteredReasonSpec.m deleted file mode 100644 index a8927c447..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppInterfaceUnregisteredReasonSpec.m +++ /dev/null @@ -1,85 +0,0 @@ -// -// SDLAppInterfaceUnregisteredReasonSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAppInterfaceUnregisteredReason.h" - -//Commented tests refer to values defined in the spec, but are not implemented - -QuickSpecBegin(SDLAppInterfaceUnregisteredReasonSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - //expect([SDLAppInterfaceUnregisteredReason USER_EXIT].value).to(equal(@"USER_EXIT")); - expect([SDLAppInterfaceUnregisteredReason IGNITION_OFF].value).to(equal(@"IGNITION_OFF")); - expect([SDLAppInterfaceUnregisteredReason BLUETOOTH_OFF].value).to(equal(@"BLUETOOTH_OFF")); - expect([SDLAppInterfaceUnregisteredReason USB_DISCONNECTED].value).to(equal(@"USB_DISCONNECTED")); - expect([SDLAppInterfaceUnregisteredReason REQUEST_WHILE_IN_NONE_HMI_LEVEL].value).to(equal(@"REQUEST_WHILE_IN_NONE_HMI_LEVEL")); - expect([SDLAppInterfaceUnregisteredReason TOO_MANY_REQUESTS].value).to(equal(@"TOO_MANY_REQUESTS")); - expect([SDLAppInterfaceUnregisteredReason DRIVER_DISTRACTION_VIOLATION].value).to(equal(@"DRIVER_DISTRACTION_VIOLATION")); - expect([SDLAppInterfaceUnregisteredReason LANGUAGE_CHANGE].value).to(equal(@"LANGUAGE_CHANGE")); - expect([SDLAppInterfaceUnregisteredReason MASTER_RESET].value).to(equal(@"MASTER_RESET")); - expect([SDLAppInterfaceUnregisteredReason FACTORY_DEFAULTS].value).to(equal(@"FACTORY_DEFAULTS")); - expect([SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED].value).to(equal(@"APP_UNAUTHORIZED")); - //expect([SDLAppInterfaceUnregisteredReason PROTOCOL_VIOLATION].value).to(equal(@"PROTOCOL_VIOLATION")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - //expect([SDLAppInterfaceUnregisteredReason valueOf:@"USER_EXIT"]).to(equal([SDLAppInterfaceUnregisteredReason USER_EXIT])); - expect([SDLAppInterfaceUnregisteredReason valueOf:@"IGNITION_OFF"]).to(equal([SDLAppInterfaceUnregisteredReason IGNITION_OFF])); - expect([SDLAppInterfaceUnregisteredReason valueOf:@"BLUETOOTH_OFF"]).to(equal([SDLAppInterfaceUnregisteredReason BLUETOOTH_OFF])); - expect([SDLAppInterfaceUnregisteredReason valueOf:@"USB_DISCONNECTED"]).to(equal([SDLAppInterfaceUnregisteredReason USB_DISCONNECTED])); - expect([SDLAppInterfaceUnregisteredReason valueOf:@"REQUEST_WHILE_IN_NONE_HMI_LEVEL"]).to(equal([SDLAppInterfaceUnregisteredReason REQUEST_WHILE_IN_NONE_HMI_LEVEL])); - expect([SDLAppInterfaceUnregisteredReason valueOf:@"TOO_MANY_REQUESTS"]).to(equal([SDLAppInterfaceUnregisteredReason TOO_MANY_REQUESTS])); - expect([SDLAppInterfaceUnregisteredReason valueOf:@"DRIVER_DISTRACTION_VIOLATION"]).to(equal([SDLAppInterfaceUnregisteredReason DRIVER_DISTRACTION_VIOLATION])); - expect([SDLAppInterfaceUnregisteredReason valueOf:@"LANGUAGE_CHANGE"]).to(equal([SDLAppInterfaceUnregisteredReason LANGUAGE_CHANGE])); - expect([SDLAppInterfaceUnregisteredReason valueOf:@"MASTER_RESET"]).to(equal([SDLAppInterfaceUnregisteredReason MASTER_RESET])); - expect([SDLAppInterfaceUnregisteredReason valueOf:@"FACTORY_DEFAULTS"]).to(equal([SDLAppInterfaceUnregisteredReason FACTORY_DEFAULTS])); - expect([SDLAppInterfaceUnregisteredReason valueOf:@"APP_UNAUTHORIZED"]).to(equal([SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED])); - //expect([SDLAppInterfaceUnregisteredReason valueOf:@"PROTOCOL_VIOLATION"]).to(equal([SDLAppInterfaceUnregisteredReason PROTOCOL_VIOLATION])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLAppInterfaceUnregisteredReason valueOf:nil]).to(beNil()); - expect([SDLAppInterfaceUnregisteredReason valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLAppInterfaceUnregisteredReason values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[//[SDLAppInterfaceUnregisteredReason USER_EXIT], - [SDLAppInterfaceUnregisteredReason IGNITION_OFF], - [SDLAppInterfaceUnregisteredReason BLUETOOTH_OFF], - [SDLAppInterfaceUnregisteredReason USB_DISCONNECTED], - [SDLAppInterfaceUnregisteredReason REQUEST_WHILE_IN_NONE_HMI_LEVEL], - [SDLAppInterfaceUnregisteredReason TOO_MANY_REQUESTS], - [SDLAppInterfaceUnregisteredReason DRIVER_DISTRACTION_VIOLATION], - [SDLAppInterfaceUnregisteredReason LANGUAGE_CHANGE], - [SDLAppInterfaceUnregisteredReason MASTER_RESET], - [SDLAppInterfaceUnregisteredReason FACTORY_DEFAULTS], - [SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED]] copy]; - //[SDLAppInterfaceUnregisteredReason PROTOCOL_VIOLATION] - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioStreamingStateSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioStreamingStateSpec.m deleted file mode 100644 index 0787d7321..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioStreamingStateSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLAudioStreamingStateSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAudioStreamingState.h" - -QuickSpecBegin(SDLAudioStreamingStateSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLAudioStreamingState AUDIBLE].value).to(equal(@"AUDIBLE")); - expect([SDLAudioStreamingState ATTENUATED].value).to(equal(@"ATTENUATED")); - expect([SDLAudioStreamingState NOT_AUDIBLE].value).to(equal(@"NOT_AUDIBLE")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLAudioStreamingState valueOf:@"AUDIBLE"]).to(equal([SDLAudioStreamingState AUDIBLE])); - expect([SDLAudioStreamingState valueOf:@"ATTENUATED"]).to(equal([SDLAudioStreamingState ATTENUATED])); - expect([SDLAudioStreamingState valueOf:@"NOT_AUDIBLE"]).to(equal([SDLAudioStreamingState NOT_AUDIBLE])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLAudioStreamingState valueOf:nil]).to(beNil()); - expect([SDLAudioStreamingState valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLAudioStreamingState values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLAudioStreamingState AUDIBLE], - [SDLAudioStreamingState ATTENUATED], - [SDLAudioStreamingState NOT_AUDIBLE]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioTypeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioTypeSpec.m deleted file mode 100644 index 8587b7ee1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioTypeSpec.m +++ /dev/null @@ -1,50 +0,0 @@ -// -// SDLAudioTypeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAudioType.h" - -QuickSpecBegin(SDLAudioTypeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLAudioType PCM].value).to(equal(@"PCM")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLAudioType valueOf:@"PCM"]).to(equal([SDLAudioType PCM])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLAudioType valueOf:nil]).to(beNil()); - expect([SDLAudioType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLAudioType values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLAudioType PCM]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLBitsPerSampleSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLBitsPerSampleSpec.m deleted file mode 100644 index bcc5dd01c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLBitsPerSampleSpec.m +++ /dev/null @@ -1,53 +0,0 @@ -// -// SDLBitsPerSampleSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLBitsPerSample.h" - -QuickSpecBegin(SDLBitsPerSampleSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLBitsPerSample _8_BIT].value).to(equal(@"8_BIT")); - expect([SDLBitsPerSample _16_BIT].value).to(equal(@"16_BIT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLBitsPerSample valueOf:@"8_BIT"]).to(equal([SDLBitsPerSample _8_BIT])); - expect([SDLBitsPerSample valueOf:@"16_BIT"]).to(equal([SDLBitsPerSample _16_BIT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLBitsPerSample valueOf:nil]).to(beNil()); - expect([SDLBitsPerSample valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLBitsPerSample values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLBitsPerSample _8_BIT], - [SDLBitsPerSample _16_BIT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonEventModeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonEventModeSpec.m deleted file mode 100644 index 4f6e6d054..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonEventModeSpec.m +++ /dev/null @@ -1,53 +0,0 @@ -// -// SDLButtonEventModeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLButtonEventMode.h" - -QuickSpecBegin(SDLButtonEventModeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLButtonEventMode BUTTONUP].value).to(equal(@"BUTTONUP")); - expect([SDLButtonEventMode BUTTONDOWN].value).to(equal(@"BUTTONDOWN")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLButtonEventMode valueOf:@"BUTTONUP"]).to(equal([SDLButtonEventMode BUTTONUP])); - expect([SDLButtonEventMode valueOf:@"BUTTONDOWN"]).to(equal([SDLButtonEventMode BUTTONDOWN])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLButtonEventMode valueOf:nil]).to(beNil()); - expect([SDLButtonEventMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLButtonEventMode values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLButtonEventMode BUTTONUP], - [SDLButtonEventMode BUTTONDOWN]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonNameSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonNameSpec.m deleted file mode 100644 index 6b9c64900..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonNameSpec.m +++ /dev/null @@ -1,98 +0,0 @@ -// -// SDLButtonNameSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLButtonName.h" - -QuickSpecBegin(SDLButtonNameSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLButtonName OK].value).to(equal(@"OK")); - expect([SDLButtonName SEEKLEFT].value).to(equal(@"SEEKLEFT")); - expect([SDLButtonName SEEKRIGHT].value).to(equal(@"SEEKRIGHT")); - expect([SDLButtonName TUNEUP].value).to(equal(@"TUNEUP")); - expect([SDLButtonName TUNEDOWN].value).to(equal(@"TUNEDOWN")); - expect([SDLButtonName PRESET_0].value).to(equal(@"PRESET_0")); - expect([SDLButtonName PRESET_1].value).to(equal(@"PRESET_1")); - expect([SDLButtonName PRESET_2].value).to(equal(@"PRESET_2")); - expect([SDLButtonName PRESET_3].value).to(equal(@"PRESET_3")); - expect([SDLButtonName PRESET_4].value).to(equal(@"PRESET_4")); - expect([SDLButtonName PRESET_5].value).to(equal(@"PRESET_5")); - expect([SDLButtonName PRESET_6].value).to(equal(@"PRESET_6")); - expect([SDLButtonName PRESET_7].value).to(equal(@"PRESET_7")); - expect([SDLButtonName PRESET_8].value).to(equal(@"PRESET_8")); - expect([SDLButtonName PRESET_9].value).to(equal(@"PRESET_9")); - expect([SDLButtonName CUSTOM_BUTTON].value).to(equal(@"CUSTOM_BUTTON")); - expect([SDLButtonName SEARCH].value).to(equal(@"SEARCH")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLButtonName valueOf:@"OK"]).to(equal([SDLButtonName OK])); - expect([SDLButtonName valueOf:@"SEEKLEFT"]).to(equal([SDLButtonName SEEKLEFT])); - expect([SDLButtonName valueOf:@"SEEKRIGHT"]).to(equal([SDLButtonName SEEKRIGHT])); - expect([SDLButtonName valueOf:@"TUNEUP"]).to(equal([SDLButtonName TUNEUP])); - expect([SDLButtonName valueOf:@"TUNEDOWN"]).to(equal([SDLButtonName TUNEDOWN])); - expect([SDLButtonName valueOf:@"PRESET_0"]).to(equal([SDLButtonName PRESET_0])); - expect([SDLButtonName valueOf:@"PRESET_1"]).to(equal([SDLButtonName PRESET_1])); - expect([SDLButtonName valueOf:@"PRESET_2"]).to(equal([SDLButtonName PRESET_2])); - expect([SDLButtonName valueOf:@"PRESET_3"]).to(equal([SDLButtonName PRESET_3])); - expect([SDLButtonName valueOf:@"PRESET_4"]).to(equal([SDLButtonName PRESET_4])); - expect([SDLButtonName valueOf:@"PRESET_5"]).to(equal([SDLButtonName PRESET_5])); - expect([SDLButtonName valueOf:@"PRESET_6"]).to(equal([SDLButtonName PRESET_6])); - expect([SDLButtonName valueOf:@"PRESET_7"]).to(equal([SDLButtonName PRESET_7])); - expect([SDLButtonName valueOf:@"PRESET_8"]).to(equal([SDLButtonName PRESET_8])); - expect([SDLButtonName valueOf:@"PRESET_9"]).to(equal([SDLButtonName PRESET_9])); - expect([SDLButtonName valueOf:@"CUSTOM_BUTTON"]).to(equal([SDLButtonName CUSTOM_BUTTON])); - expect([SDLButtonName valueOf:@"SEARCH"]).to(equal([SDLButtonName SEARCH])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLButtonName valueOf:nil]).to(beNil()); - expect([SDLButtonName valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLButtonName values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLButtonName OK], - [SDLButtonName SEEKLEFT], - [SDLButtonName SEEKRIGHT], - [SDLButtonName TUNEUP], - [SDLButtonName TUNEDOWN], - [SDLButtonName PRESET_0], - [SDLButtonName PRESET_1], - [SDLButtonName PRESET_2], - [SDLButtonName PRESET_3], - [SDLButtonName PRESET_4], - [SDLButtonName PRESET_5], - [SDLButtonName PRESET_6], - [SDLButtonName PRESET_7], - [SDLButtonName PRESET_8], - [SDLButtonName PRESET_9], - [SDLButtonName CUSTOM_BUTTON], - [SDLButtonName SEARCH]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonPressModeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonPressModeSpec.m deleted file mode 100644 index eb6b2fa35..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonPressModeSpec.m +++ /dev/null @@ -1,53 +0,0 @@ -// -// SDLButtonPressModeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLButtonPressMode.h" - -QuickSpecBegin(SDLButtonPressModeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLButtonPressMode LONG].value).to(equal(@"LONG")); - expect([SDLButtonPressMode SHORT].value).to(equal(@"SHORT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLButtonPressMode valueOf:@"LONG"]).to(equal([SDLButtonPressMode LONG])); - expect([SDLButtonPressMode valueOf:@"SHORT"]).to(equal([SDLButtonPressMode SHORT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLButtonPressMode valueOf:nil]).to(beNil()); - expect([SDLButtonPressMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLButtonPressMode values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLButtonPressMode LONG], - [SDLButtonPressMode SHORT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCarModeStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCarModeStatusSpec.m deleted file mode 100644 index 78f04e837..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCarModeStatusSpec.m +++ /dev/null @@ -1,60 +0,0 @@ -// -// SDLCarModeStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLCarModeStatus.h" - -QuickSpecBegin(SDLCarModeStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLCarModeStatus NORMAL].value).to(equal(@"NORMAL")); - expect([SDLCarModeStatus FACTORY].value).to(equal(@"FACTORY")); - expect([SDLCarModeStatus TRANSPORT].value).to(equal(@"TRANSPORT")); - expect([SDLCarModeStatus CRASH].value).to(equal(@"CRASH")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLCarModeStatus valueOf:@"NORMAL"]).to(equal([SDLCarModeStatus NORMAL])); - expect([SDLCarModeStatus valueOf:@"FACTORY"]).to(equal([SDLCarModeStatus FACTORY])); - expect([SDLCarModeStatus valueOf:@"TRANSPORT"]).to(equal([SDLCarModeStatus TRANSPORT])); - expect([SDLCarModeStatus valueOf:@"CRASH"]).to(equal([SDLCarModeStatus CRASH])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLCarModeStatus valueOf:nil]).to(beNil()); - expect([SDLCarModeStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLCarModeStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLCarModeStatus NORMAL], - [SDLCarModeStatus FACTORY], - [SDLCarModeStatus TRANSPORT], - [SDLCarModeStatus CRASH]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd - diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCharacterSetSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCharacterSetSpec.m deleted file mode 100644 index df29296a5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCharacterSetSpec.m +++ /dev/null @@ -1,59 +0,0 @@ -// -// SDLCharacterSetSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLCharacterSet.h" - -QuickSpecBegin(SDLCharacterSetSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLCharacterSet TYPE2SET].value).to(equal(@"TYPE2SET")); - expect([SDLCharacterSet TYPE5SET].value).to(equal(@"TYPE5SET")); - expect([SDLCharacterSet CID1SET].value).to(equal(@"CID1SET")); - expect([SDLCharacterSet CID2SET].value).to(equal(@"CID2SET")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLCharacterSet valueOf:@"TYPE2SET"]).to(equal([SDLCharacterSet TYPE2SET])); - expect([SDLCharacterSet valueOf:@"TYPE5SET"]).to(equal([SDLCharacterSet TYPE5SET])); - expect([SDLCharacterSet valueOf:@"CID1SET"]).to(equal([SDLCharacterSet CID1SET])); - expect([SDLCharacterSet valueOf:@"CID2SET"]).to(equal([SDLCharacterSet CID2SET])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLCharacterSet valueOf:nil]).to(beNil()); - expect([SDLCharacterSet valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLCharacterSet values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLCharacterSet TYPE2SET], - [SDLCharacterSet TYPE5SET], - [SDLCharacterSet CID1SET], - [SDLCharacterSet CID2SET]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCompassDirectionSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCompassDirectionSpec.m deleted file mode 100644 index 49a10e02d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCompassDirectionSpec.m +++ /dev/null @@ -1,71 +0,0 @@ -// -// SDLCompassDirectionSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLCompassDirection.h" - -QuickSpecBegin(SDLCompassDirectionSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLCompassDirection NORTH].value).to(equal(@"NORTH")); - expect([SDLCompassDirection NORTHWEST].value).to(equal(@"NORTHWEST")); - expect([SDLCompassDirection WEST].value).to(equal(@"WEST")); - expect([SDLCompassDirection SOUTHWEST].value).to(equal(@"SOUTHWEST")); - expect([SDLCompassDirection SOUTH].value).to(equal(@"SOUTH")); - expect([SDLCompassDirection SOUTHEAST].value).to(equal(@"SOUTHEAST")); - expect([SDLCompassDirection EAST].value).to(equal(@"EAST")); - expect([SDLCompassDirection NORTHEAST].value).to(equal(@"NORTHEAST")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLCompassDirection valueOf:@"NORTH"]).to(equal([SDLCompassDirection NORTH])); - expect([SDLCompassDirection valueOf:@"NORTHWEST"]).to(equal([SDLCompassDirection NORTHWEST])); - expect([SDLCompassDirection valueOf:@"WEST"]).to(equal([SDLCompassDirection WEST])); - expect([SDLCompassDirection valueOf:@"SOUTHWEST"]).to(equal([SDLCompassDirection SOUTHWEST])); - expect([SDLCompassDirection valueOf:@"SOUTH"]).to(equal([SDLCompassDirection SOUTH])); - expect([SDLCompassDirection valueOf:@"SOUTHEAST"]).to(equal([SDLCompassDirection SOUTHEAST])); - expect([SDLCompassDirection valueOf:@"EAST"]).to(equal([SDLCompassDirection EAST])); - expect([SDLCompassDirection valueOf:@"NORTHEAST"]).to(equal([SDLCompassDirection NORTHEAST])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLCompassDirection valueOf:nil]).to(beNil()); - expect([SDLCompassDirection valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLCompassDirection values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLCompassDirection NORTH], - [SDLCompassDirection NORTHWEST], - [SDLCompassDirection WEST], - [SDLCompassDirection SOUTHWEST], - [SDLCompassDirection SOUTH], - [SDLCompassDirection SOUTHEAST], - [SDLCompassDirection EAST], - [SDLCompassDirection NORTHEAST]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLComponentVolumeStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLComponentVolumeStatusSpec.m deleted file mode 100644 index 491e802aa..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLComponentVolumeStatusSpec.m +++ /dev/null @@ -1,65 +0,0 @@ -// -// SDLComponentVolumeStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLComponentVolumeStatus.h" - -QuickSpecBegin(SDLComponentVolumeStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLComponentVolumeStatus UNKNOWN].value).to(equal(@"UNKNOWN")); - expect([SDLComponentVolumeStatus NORMAL].value).to(equal(@"NORMAL")); - expect([SDLComponentVolumeStatus LOW].value).to(equal(@"LOW")); - expect([SDLComponentVolumeStatus FAULT].value).to(equal(@"FAULT")); - expect([SDLComponentVolumeStatus ALERT].value).to(equal(@"ALERT")); - expect([SDLComponentVolumeStatus NOT_SUPPORTED].value).to(equal(@"NOT_SUPPORTED")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLComponentVolumeStatus valueOf:@"UNKNOWN"]).to(equal([SDLComponentVolumeStatus UNKNOWN])); - expect([SDLComponentVolumeStatus valueOf:@"NORMAL"]).to(equal([SDLComponentVolumeStatus NORMAL])); - expect([SDLComponentVolumeStatus valueOf:@"LOW"]).to(equal([SDLComponentVolumeStatus LOW])); - expect([SDLComponentVolumeStatus valueOf:@"FAULT"]).to(equal([SDLComponentVolumeStatus FAULT])); - expect([SDLComponentVolumeStatus valueOf:@"ALERT"]).to(equal([SDLComponentVolumeStatus ALERT])); - expect([SDLComponentVolumeStatus valueOf:@"NOT_SUPPORTED"]).to(equal([SDLComponentVolumeStatus NOT_SUPPORTED])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLComponentVolumeStatus valueOf:nil]).to(beNil()); - expect([SDLComponentVolumeStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLComponentVolumeStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLComponentVolumeStatus UNKNOWN], - [SDLComponentVolumeStatus NORMAL], - [SDLComponentVolumeStatus LOW], - [SDLComponentVolumeStatus FAULT], - [SDLComponentVolumeStatus ALERT], - [SDLComponentVolumeStatus NOT_SUPPORTED]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDeviceLevelStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDeviceLevelStatusSpec.m deleted file mode 100644 index 70f1bfb61..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDeviceLevelStatusSpec.m +++ /dev/null @@ -1,65 +0,0 @@ -// -// SDLDeviceLevelStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDeviceLevelStatus.h" - -QuickSpecBegin(SDLDeviceLevelStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLDeviceLevelStatus ZERO_LEVEL_BARS].value).to(equal(@"ZERO_LEVEL_BARS")); - expect([SDLDeviceLevelStatus ONE_LEVEL_BARS].value).to(equal(@"ONE_LEVEL_BARS")); - expect([SDLDeviceLevelStatus TWO_LEVEL_BARS].value).to(equal(@"TWO_LEVEL_BARS")); - expect([SDLDeviceLevelStatus THREE_LEVEL_BARS].value).to(equal(@"THREE_LEVEL_BARS")); - expect([SDLDeviceLevelStatus FOUR_LEVEL_BARS].value).to(equal(@"FOUR_LEVEL_BARS")); - expect([SDLDeviceLevelStatus NOT_PROVIDED].value).to(equal(@"NOT_PROVIDED")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLDeviceLevelStatus valueOf:@"ZERO_LEVEL_BARS"]).to(equal([SDLDeviceLevelStatus ZERO_LEVEL_BARS])); - expect([SDLDeviceLevelStatus valueOf:@"ONE_LEVEL_BARS"]).to(equal([SDLDeviceLevelStatus ONE_LEVEL_BARS])); - expect([SDLDeviceLevelStatus valueOf:@"TWO_LEVEL_BARS"]).to(equal([SDLDeviceLevelStatus TWO_LEVEL_BARS])); - expect([SDLDeviceLevelStatus valueOf:@"THREE_LEVEL_BARS"]).to(equal([SDLDeviceLevelStatus THREE_LEVEL_BARS])); - expect([SDLDeviceLevelStatus valueOf:@"FOUR_LEVEL_BARS"]).to(equal([SDLDeviceLevelStatus FOUR_LEVEL_BARS])); - expect([SDLDeviceLevelStatus valueOf:@"NOT_PROVIDED"]).to(equal([SDLDeviceLevelStatus NOT_PROVIDED])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLDeviceLevelStatus valueOf:nil]).to(beNil()); - expect([SDLDeviceLevelStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLDeviceLevelStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLDeviceLevelStatus ZERO_LEVEL_BARS], - [SDLDeviceLevelStatus ONE_LEVEL_BARS], - [SDLDeviceLevelStatus TWO_LEVEL_BARS], - [SDLDeviceLevelStatus THREE_LEVEL_BARS], - [SDLDeviceLevelStatus FOUR_LEVEL_BARS], - [SDLDeviceLevelStatus NOT_PROVIDED]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDimensionSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDimensionSpec.m deleted file mode 100644 index e65ee8201..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDimensionSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLDimensionSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDimension.h" - -QuickSpecBegin(SDLDimensionSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLDimension NO_FIX].value).to(equal(@"NO_FIX")); - expect([SDLDimension _2D].value).to(equal(@"2D")); - expect([SDLDimension _3D].value).to(equal(@"3D")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLDimension valueOf:@"NO_FIX"]).to(equal([SDLDimension NO_FIX])); - expect([SDLDimension valueOf:@"2D"]).to(equal([SDLDimension _2D])); - expect([SDLDimension valueOf:@"3D"]).to(equal([SDLDimension _3D])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLDimension valueOf:nil]).to(beNil()); - expect([SDLDimension valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLDimension values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLDimension NO_FIX], - [SDLDimension _2D], - [SDLDimension _3D]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDisplayTypeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDisplayTypeSpec.m deleted file mode 100644 index 964736fbc..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDisplayTypeSpec.m +++ /dev/null @@ -1,80 +0,0 @@ -// -// SDLDisplayTypeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDisplayType.h" - -QuickSpecBegin(SDLDisplayTypeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLDisplayType CID].value).to(equal(@"CID")); - expect([SDLDisplayType TYPE2].value).to(equal(@"TYPE2")); - expect([SDLDisplayType TYPE5].value).to(equal(@"TYPE5")); - expect([SDLDisplayType NGN].value).to(equal(@"NGN")); - expect([SDLDisplayType GEN2_6_DMA].value).to(equal(@"GEN2_6_DMA")); - expect([SDLDisplayType GEN2_8_DMA].value).to(equal(@"GEN2_8_DMA")); - expect([SDLDisplayType MFD3].value).to(equal(@"MFD3")); - expect([SDLDisplayType MFD4].value).to(equal(@"MFD4")); - expect([SDLDisplayType MFD5].value).to(equal(@"MFD5")); - //NOT DEFINED IN SPEC - expect([SDLDisplayType GEN3_8_INCH].value).to(equal(@"GEN3_8-INCH")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLDisplayType valueOf:@"CID"]).to(equal([SDLDisplayType CID])); - expect([SDLDisplayType valueOf:@"TYPE2"]).to(equal([SDLDisplayType TYPE2])); - expect([SDLDisplayType valueOf:@"TYPE5"]).to(equal([SDLDisplayType TYPE5])); - expect([SDLDisplayType valueOf:@"NGN"]).to(equal([SDLDisplayType NGN])); - expect([SDLDisplayType valueOf:@"GEN2_6_DMA"]).to(equal([SDLDisplayType GEN2_6_DMA])); - expect([SDLDisplayType valueOf:@"GEN2_8_DMA"]).to(equal([SDLDisplayType GEN2_8_DMA])); - expect([SDLDisplayType valueOf:@"MFD3"]).to(equal([SDLDisplayType MFD3])); - expect([SDLDisplayType valueOf:@"MFD4"]).to(equal([SDLDisplayType MFD4])); - expect([SDLDisplayType valueOf:@"MFD5"]).to(equal([SDLDisplayType MFD5])); - //NOT DEFINED IN SPEC - expect([SDLDisplayType valueOf:@"GEN3_8-INCH"]).to(equal([SDLDisplayType GEN3_8_INCH])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLDisplayType valueOf:nil]).to(beNil()); - expect([SDLDisplayType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLDisplayType values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLDisplayType CID], - [SDLDisplayType TYPE2], - [SDLDisplayType TYPE5], - [SDLDisplayType NGN], - [SDLDisplayType GEN2_6_DMA], - [SDLDisplayType GEN2_8_DMA], - [SDLDisplayType MFD3], - [SDLDisplayType MFD4], - [SDLDisplayType MFD5], - //NOT DEFINED IN SPEC - [SDLDisplayType GEN3_8_INCH]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDriverDistractionStateSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDriverDistractionStateSpec.m deleted file mode 100644 index 8280259bc..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDriverDistractionStateSpec.m +++ /dev/null @@ -1,53 +0,0 @@ -// -// SDLDriverDistractionStateSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDriverDistractionState.h" - -QuickSpecBegin(SDLDriverDistractionStateSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLDriverDistractionState DD_OFF].value).to(equal(@"DD_OFF")); - expect([SDLDriverDistractionState DD_ON].value).to(equal(@"DD_ON")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLDriverDistractionState valueOf:@"DD_OFF"]).to(equal([SDLDriverDistractionState DD_OFF])); - expect([SDLDriverDistractionState valueOf:@"DD_ON"]).to(equal([SDLDriverDistractionState DD_ON])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLDriverDistractionState valueOf:nil]).to(beNil()); - expect([SDLDriverDistractionState valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLDriverDistractionState values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLDriverDistractionState DD_OFF], - [SDLDriverDistractionState DD_ON]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLECallConfirmationStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLECallConfirmationStatusSpec.m deleted file mode 100644 index aa5398c94..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLECallConfirmationStatusSpec.m +++ /dev/null @@ -1,68 +0,0 @@ -// -// SDLECallConfirmationStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLECallConfirmationStatus.h" - -QuickSpecBegin(SDLECallConfirmationStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLECallConfirmationStatus NORMAL].value).to(equal(@"NORMAL")); - expect([SDLECallConfirmationStatus CALL_IN_PROGRESS].value).to(equal(@"CALL_IN_PROGRESS")); - expect([SDLECallConfirmationStatus CALL_CANCELLED].value).to(equal(@"CALL_CANCELLED")); - expect([SDLECallConfirmationStatus CALL_COMPLETED].value).to(equal(@"CALL_COMPLETED")); - expect([SDLECallConfirmationStatus CALL_UNSUCCESSFUL].value).to(equal(@"CALL_UNSUCCESSFUL")); - expect([SDLECallConfirmationStatus ECALL_CONFIGURED_OFF].value).to(equal(@"ECALL_CONFIGURED_OFF")); - expect([SDLECallConfirmationStatus CALL_COMPLETE_DTMF_TIMEOUT].value).to(equal(@"CALL_COMPLETE_DTMF_TIMEOUT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLECallConfirmationStatus valueOf:@"NORMAL"]).to(equal([SDLECallConfirmationStatus NORMAL])); - expect([SDLECallConfirmationStatus valueOf:@"CALL_IN_PROGRESS"]).to(equal([SDLECallConfirmationStatus CALL_IN_PROGRESS])); - expect([SDLECallConfirmationStatus valueOf:@"CALL_CANCELLED"]).to(equal([SDLECallConfirmationStatus CALL_CANCELLED])); - expect([SDLECallConfirmationStatus valueOf:@"CALL_COMPLETED"]).to(equal([SDLECallConfirmationStatus CALL_COMPLETED])); - expect([SDLECallConfirmationStatus valueOf:@"CALL_UNSUCCESSFUL"]).to(equal([SDLECallConfirmationStatus CALL_UNSUCCESSFUL])); - expect([SDLECallConfirmationStatus valueOf:@"ECALL_CONFIGURED_OFF"]).to(equal([SDLECallConfirmationStatus ECALL_CONFIGURED_OFF])); - expect([SDLECallConfirmationStatus valueOf:@"CALL_COMPLETE_DTMF_TIMEOUT"]).to(equal([SDLECallConfirmationStatus CALL_COMPLETE_DTMF_TIMEOUT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLECallConfirmationStatus valueOf:nil]).to(beNil()); - expect([SDLECallConfirmationStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLECallConfirmationStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLECallConfirmationStatus NORMAL], - [SDLECallConfirmationStatus CALL_IN_PROGRESS], - [SDLECallConfirmationStatus CALL_CANCELLED], - [SDLECallConfirmationStatus CALL_COMPLETED], - [SDLECallConfirmationStatus CALL_UNSUCCESSFUL], - [SDLECallConfirmationStatus ECALL_CONFIGURED_OFF], - [SDLECallConfirmationStatus CALL_COMPLETE_DTMF_TIMEOUT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLEmergencyEventTypeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLEmergencyEventTypeSpec.m deleted file mode 100644 index ff0126233..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLEmergencyEventTypeSpec.m +++ /dev/null @@ -1,68 +0,0 @@ -// -// SDLEmergencyEventTypeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLEmergencyEventType.h" - -QuickSpecBegin(SDLEmergencyEventTypeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLEmergencyEventType NO_EVENT].value).to(equal(@"NO_EVENT")); - expect([SDLEmergencyEventType FRONTAL].value).to(equal(@"FRONTAL")); - expect([SDLEmergencyEventType SIDE].value).to(equal(@"SIDE")); - expect([SDLEmergencyEventType REAR].value).to(equal(@"REAR")); - expect([SDLEmergencyEventType ROLLOVER].value).to(equal(@"ROLLOVER")); - expect([SDLEmergencyEventType NOT_SUPPORTED].value).to(equal(@"NOT_SUPPORTED")); - expect([SDLEmergencyEventType FAULT].value).to(equal(@"FAULT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLEmergencyEventType valueOf:@"NO_EVENT"]).to(equal([SDLEmergencyEventType NO_EVENT])); - expect([SDLEmergencyEventType valueOf:@"FRONTAL"]).to(equal([SDLEmergencyEventType FRONTAL])); - expect([SDLEmergencyEventType valueOf:@"SIDE"]).to(equal([SDLEmergencyEventType SIDE])); - expect([SDLEmergencyEventType valueOf:@"REAR"]).to(equal([SDLEmergencyEventType REAR])); - expect([SDLEmergencyEventType valueOf:@"ROLLOVER"]).to(equal([SDLEmergencyEventType ROLLOVER])); - expect([SDLEmergencyEventType valueOf:@"NOT_SUPPORTED"]).to(equal([SDLEmergencyEventType NOT_SUPPORTED])); - expect([SDLEmergencyEventType valueOf:@"FAULT"]).to(equal([SDLEmergencyEventType FAULT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLEmergencyEventType valueOf:nil]).to(beNil()); - expect([SDLEmergencyEventType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLEmergencyEventType values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLEmergencyEventType NO_EVENT], - [SDLEmergencyEventType FRONTAL], - [SDLEmergencyEventType SIDE], - [SDLEmergencyEventType REAR], - [SDLEmergencyEventType ROLLOVER], - [SDLEmergencyEventType NOT_SUPPORTED], - [SDLEmergencyEventType FAULT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFileTypeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFileTypeSpec.m deleted file mode 100644 index 77eab74dc..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFileTypeSpec.m +++ /dev/null @@ -1,71 +0,0 @@ -// -// SDLFileTypeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLFileType.h" - -QuickSpecBegin(SDLFileTypeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLFileType GRAPHIC_BMP].value).to(equal(@"GRAPHIC_BMP")); - expect([SDLFileType GRAPHIC_JPEG].value).to(equal(@"GRAPHIC_JPEG")); - expect([SDLFileType GRAPHIC_PNG].value).to(equal(@"GRAPHIC_PNG")); - expect([SDLFileType AUDIO_WAVE].value).to(equal(@"AUDIO_WAVE")); - expect([SDLFileType AUDIO_MP3].value).to(equal(@"AUDIO_MP3")); - expect([SDLFileType AUDIO_AAC].value).to(equal(@"AUDIO_AAC")); - expect([SDLFileType BINARY].value).to(equal(@"BINARY")); - expect([SDLFileType JSON].value).to(equal(@"JSON")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLFileType valueOf:@"GRAPHIC_BMP"]).to(equal([SDLFileType GRAPHIC_BMP])); - expect([SDLFileType valueOf:@"GRAPHIC_JPEG"]).to(equal([SDLFileType GRAPHIC_JPEG])); - expect([SDLFileType valueOf:@"GRAPHIC_PNG"]).to(equal([SDLFileType GRAPHIC_PNG])); - expect([SDLFileType valueOf:@"AUDIO_WAVE"]).to(equal([SDLFileType AUDIO_WAVE])); - expect([SDLFileType valueOf:@"AUDIO_MP3"]).to(equal([SDLFileType AUDIO_MP3])); - expect([SDLFileType valueOf:@"AUDIO_AAC"]).to(equal([SDLFileType AUDIO_AAC])); - expect([SDLFileType valueOf:@"BINARY"]).to(equal([SDLFileType BINARY])); - expect([SDLFileType valueOf:@"JSON"]).to(equal([SDLFileType JSON])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLFileType valueOf:nil]).to(beNil()); - expect([SDLFileType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLFileType values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLFileType GRAPHIC_BMP], - [SDLFileType GRAPHIC_JPEG], - [SDLFileType GRAPHIC_PNG], - [SDLFileType AUDIO_WAVE], - [SDLFileType AUDIO_MP3], - [SDLFileType AUDIO_AAC], - [SDLFileType BINARY], - [SDLFileType JSON]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFuelCutoffStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFuelCutoffStatusSpec.m deleted file mode 100644 index d4833ff40..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFuelCutoffStatusSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLFuelCutoffStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLFuelCutoffStatus.h" - -QuickSpecBegin(SDLFuelCutoffStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLFuelCutoffStatus TERMINATE_FUEL].value).to(equal(@"TERMINATE_FUEL")); - expect([SDLFuelCutoffStatus NORMAL_OPERATION].value).to(equal(@"NORMAL_OPERATION")); - expect([SDLFuelCutoffStatus FAULT].value).to(equal(@"FAULT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLFuelCutoffStatus valueOf:@"TERMINATE_FUEL"]).to(equal([SDLFuelCutoffStatus TERMINATE_FUEL])); - expect([SDLFuelCutoffStatus valueOf:@"NORMAL_OPERATION"]).to(equal([SDLFuelCutoffStatus NORMAL_OPERATION])); - expect([SDLFuelCutoffStatus valueOf:@"FAULT"]).to(equal([SDLFuelCutoffStatus FAULT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLFuelCutoffStatus valueOf:nil]).to(beNil()); - expect([SDLFuelCutoffStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLFuelCutoffStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLFuelCutoffStatus TERMINATE_FUEL], - [SDLFuelCutoffStatus NORMAL_OPERATION], - [SDLFuelCutoffStatus FAULT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLGlobalProperySpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLGlobalProperySpec.m deleted file mode 100644 index 2844dcf41..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLGlobalProperySpec.m +++ /dev/null @@ -1,68 +0,0 @@ -// -// SDLGlobalPropertySpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLGlobalProperty.h" - -QuickSpecBegin(SDLGlobalPropertySpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLGlobalProperty HELPPROMPT].value).to(equal(@"HELPPROMPT")); - expect([SDLGlobalProperty TIMEOUTPROMPT].value).to(equal(@"TIMEOUTPROMPT")); - expect([SDLGlobalProperty VRHELPTITLE].value).to(equal(@"VRHELPTITLE")); - expect([SDLGlobalProperty VRHELPITEMS].value).to(equal(@"VRHELPITEMS")); - expect([SDLGlobalProperty MENUNAME].value).to(equal(@"MENUNAME")); - expect([SDLGlobalProperty MENUICON].value).to(equal(@"MENUICON")); - expect([SDLGlobalProperty KEYBOARDPROPERTIES].value).to(equal(@"KEYBOARDPROPERTIES")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLGlobalProperty valueOf:@"HELPPROMPT"]).to(equal([SDLGlobalProperty HELPPROMPT])); - expect([SDLGlobalProperty valueOf:@"TIMEOUTPROMPT"]).to(equal([SDLGlobalProperty TIMEOUTPROMPT])); - expect([SDLGlobalProperty valueOf:@"VRHELPTITLE"]).to(equal([SDLGlobalProperty VRHELPTITLE])); - expect([SDLGlobalProperty valueOf:@"VRHELPITEMS"]).to(equal([SDLGlobalProperty VRHELPITEMS])); - expect([SDLGlobalProperty valueOf:@"MENUNAME"]).to(equal([SDLGlobalProperty MENUNAME])); - expect([SDLGlobalProperty valueOf:@"MENUICON"]).to(equal([SDLGlobalProperty MENUICON])); - expect([SDLGlobalProperty valueOf:@"KEYBOARDPROPERTIES"]).to(equal([SDLGlobalProperty KEYBOARDPROPERTIES])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLGlobalProperty valueOf:nil]).to(beNil()); - expect([SDLGlobalProperty valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLGlobalProperty values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLGlobalProperty HELPPROMPT], - [SDLGlobalProperty TIMEOUTPROMPT], - [SDLGlobalProperty VRHELPTITLE], - [SDLGlobalProperty VRHELPITEMS], - [SDLGlobalProperty MENUNAME], - [SDLGlobalProperty MENUICON], - [SDLGlobalProperty KEYBOARDPROPERTIES]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMILevelSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMILevelSpec.m deleted file mode 100644 index 8b9d9f9b7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMILevelSpec.m +++ /dev/null @@ -1,59 +0,0 @@ -// -// SDLHMILevelSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLHMILevel.h" - -QuickSpecBegin(SDLHMILevelSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLHMILevel FULL].value).to(equal(@"FULL")); - expect([SDLHMILevel LIMITED].value).to(equal(@"LIMITED")); - expect([SDLHMILevel BACKGROUND].value).to(equal(@"BACKGROUND")); - expect([SDLHMILevel NONE].value).to(equal(@"NONE")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLHMILevel valueOf:@"FULL"]).to(equal([SDLHMILevel FULL])); - expect([SDLHMILevel valueOf:@"LIMITED"]).to(equal([SDLHMILevel LIMITED])); - expect([SDLHMILevel valueOf:@"BACKGROUND"]).to(equal([SDLHMILevel BACKGROUND])); - expect([SDLHMILevel valueOf:@"NONE"]).to(equal([SDLHMILevel NONE])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLHMILevel valueOf:nil]).to(beNil()); - expect([SDLHMILevel valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLHMILevel values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLHMILevel FULL], - [SDLHMILevel LIMITED], - [SDLHMILevel BACKGROUND], - [SDLHMILevel NONE]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMIZoneCapabilitiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMIZoneCapabilitiesSpec.m deleted file mode 100644 index d19e1f855..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMIZoneCapabilitiesSpec.m +++ /dev/null @@ -1,53 +0,0 @@ -// -// SDLHMIZoneCapabilitiesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLHMIZoneCapabilities.h" - -QuickSpecBegin(SDLHmiZoneCapabilitiesSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLHMIZoneCapabilities FRONT].value).to(equal(@"FRONT")); - expect([SDLHMIZoneCapabilities BACK].value).to(equal(@"BACK")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLHMIZoneCapabilities valueOf:@"FRONT"]).to(equal([SDLHMIZoneCapabilities FRONT])); - expect([SDLHMIZoneCapabilities valueOf:@"BACK"]).to(equal([SDLHMIZoneCapabilities BACK])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLHMIZoneCapabilities valueOf:nil]).to(beNil()); - expect([SDLHMIZoneCapabilities valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLHMIZoneCapabilities values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLHMIZoneCapabilities FRONT], - [SDLHMIZoneCapabilities BACK]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStableStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStableStatusSpec.m deleted file mode 100644 index bbe507499..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStableStatusSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLIgnitionStableStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLIgnitionStableStatus.h" - -QuickSpecBegin(SDLIgnitionStableStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLIgnitionStableStatus IGNITION_SWITCH_NOT_STABLE].value).to(equal(@"IGNITION_SWITCH_NOT_STABLE")); - expect([SDLIgnitionStableStatus IGNITION_SWITCH_STABLE].value).to(equal(@"IGNITION_SWITCH_STABLE")); - expect([SDLIgnitionStableStatus MISSING_FROM_TRANSMITTER].value).to(equal(@"MISSING_FROM_TRANSMITTER")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLIgnitionStableStatus valueOf:@"IGNITION_SWITCH_NOT_STABLE"]).to(equal([SDLIgnitionStableStatus IGNITION_SWITCH_NOT_STABLE])); - expect([SDLIgnitionStableStatus valueOf:@"IGNITION_SWITCH_STABLE"]).to(equal([SDLIgnitionStableStatus IGNITION_SWITCH_STABLE])); - expect([SDLIgnitionStableStatus valueOf:@"MISSING_FROM_TRANSMITTER"]).to(equal([SDLIgnitionStableStatus MISSING_FROM_TRANSMITTER])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLIgnitionStableStatus valueOf:nil]).to(beNil()); - expect([SDLIgnitionStableStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLIgnitionStableStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLIgnitionStableStatus IGNITION_SWITCH_NOT_STABLE], - [SDLIgnitionStableStatus IGNITION_SWITCH_STABLE], - [SDLIgnitionStableStatus MISSING_FROM_TRANSMITTER]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStatusSpec.m deleted file mode 100644 index c36c30c23..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStatusSpec.m +++ /dev/null @@ -1,65 +0,0 @@ -// -// SDLIgnitionStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLIgnitionStatus.h" - -QuickSpecBegin(SDLIgnitionStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLIgnitionStatus UNKNOWN].value).to(equal(@"UNKNOWN")); - expect([SDLIgnitionStatus OFF].value).to(equal(@"OFF")); - expect([SDLIgnitionStatus ACCESSORY].value).to(equal(@"ACCESSORY")); - expect([SDLIgnitionStatus RUN].value).to(equal(@"RUN")); - expect([SDLIgnitionStatus START].value).to(equal(@"START")); - expect([SDLIgnitionStatus INVALID].value).to(equal(@"INVALID")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLIgnitionStatus valueOf:@"UNKNOWN"]).to(equal([SDLIgnitionStatus UNKNOWN])); - expect([SDLIgnitionStatus valueOf:@"OFF"]).to(equal([SDLIgnitionStatus OFF])); - expect([SDLIgnitionStatus valueOf:@"ACCESSORY"]).to(equal([SDLIgnitionStatus ACCESSORY])); - expect([SDLIgnitionStatus valueOf:@"RUN"]).to(equal([SDLIgnitionStatus RUN])); - expect([SDLIgnitionStatus valueOf:@"START"]).to(equal([SDLIgnitionStatus START])); - expect([SDLIgnitionStatus valueOf:@"INVALID"]).to(equal([SDLIgnitionStatus INVALID])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLIgnitionStatus valueOf:nil]).to(beNil()); - expect([SDLIgnitionStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLIgnitionStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLIgnitionStatus UNKNOWN], - [SDLIgnitionStatus OFF], - [SDLIgnitionStatus ACCESSORY], - [SDLIgnitionStatus RUN], - [SDLIgnitionStatus START], - [SDLIgnitionStatus INVALID]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageFieldNameSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageFieldNameSpec.m deleted file mode 100644 index 5b19dc384..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageFieldNameSpec.m +++ /dev/null @@ -1,86 +0,0 @@ -// -// SDLImageFieldNameSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLImageFieldName.h" - -QuickSpecBegin(SDLImageFieldNameSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLImageFieldName softButtonImage].value).to(equal(@"softButtonImage")); - expect([SDLImageFieldName choiceImage].value).to(equal(@"choiceImage")); - expect([SDLImageFieldName choiceSecondaryImage].value).to(equal(@"choiceSecondaryImage")); - expect([SDLImageFieldName vrHelpItem].value).to(equal(@"vrHelpItem")); - expect([SDLImageFieldName turnIcon].value).to(equal(@"turnIcon")); - expect([SDLImageFieldName menuIcon].value).to(equal(@"menuIcon")); - expect([SDLImageFieldName cmdIcon].value).to(equal(@"cmdIcon")); - expect([SDLImageFieldName appIcon].value).to(equal(@"appIcon")); - expect([SDLImageFieldName graphic].value).to(equal(@"graphic")); - expect([SDLImageFieldName showConstantTBTIcon].value).to(equal(@"showConstantTBTIcon")); - expect([SDLImageFieldName showConstantTBTNextTurnIcon].value).to(equal(@"showConstantTBTNextTurnIcon")); - expect([SDLImageFieldName locationImage].value).to(equal(@"locationImage")); - }); -}); - -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLImageFieldName valueOf:@"softButtonImage"]).to(equal([SDLImageFieldName softButtonImage])); - expect([SDLImageFieldName valueOf:@"choiceImage"]).to(equal([SDLImageFieldName choiceImage])); - expect([SDLImageFieldName valueOf:@"choiceSecondaryImage"]).to(equal([SDLImageFieldName choiceSecondaryImage])); - expect([SDLImageFieldName valueOf:@"vrHelpItem"]).to(equal([SDLImageFieldName vrHelpItem])); - expect([SDLImageFieldName valueOf:@"turnIcon"]).to(equal([SDLImageFieldName turnIcon])); - expect([SDLImageFieldName valueOf:@"menuIcon"]).to(equal([SDLImageFieldName menuIcon])); - expect([SDLImageFieldName valueOf:@"cmdIcon"]).to(equal([SDLImageFieldName cmdIcon])); - expect([SDLImageFieldName valueOf:@"appIcon"]).to(equal([SDLImageFieldName appIcon])); - expect([SDLImageFieldName valueOf:@"graphic"]).to(equal([SDLImageFieldName graphic])); - expect([SDLImageFieldName valueOf:@"showConstantTBTIcon"]).to(equal([SDLImageFieldName showConstantTBTIcon])); - expect([SDLImageFieldName valueOf:@"showConstantTBTNextTurnIcon"]).to(equal([SDLImageFieldName showConstantTBTNextTurnIcon])); - expect([SDLImageFieldName valueOf:@"locationImage"]).to(equal([SDLImageFieldName locationImage])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLImageFieldName valueOf:nil]).to(beNil()); - expect([SDLImageFieldName valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); - -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLImageFieldName values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLImageFieldName softButtonImage], - [SDLImageFieldName choiceImage], - [SDLImageFieldName choiceSecondaryImage], - [SDLImageFieldName vrHelpItem], - [SDLImageFieldName turnIcon], - [SDLImageFieldName menuIcon], - [SDLImageFieldName cmdIcon], - [SDLImageFieldName appIcon], - [SDLImageFieldName graphic], - [SDLImageFieldName showConstantTBTIcon], - [SDLImageFieldName locationImage], - [SDLImageFieldName showConstantTBTNextTurnIcon]] copy]; - - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageTypeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageTypeSpec.m deleted file mode 100644 index 1a63bf7f8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageTypeSpec.m +++ /dev/null @@ -1,53 +0,0 @@ -// -// SDLImageTypeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLImageType.h" - -QuickSpecBegin(SDLImageTypeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLImageType STATIC].value).to(equal(@"STATIC")); - expect([SDLImageType DYNAMIC].value).to(equal(@"DYNAMIC")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLImageType valueOf:@"STATIC"]).to(equal([SDLImageType STATIC])); - expect([SDLImageType valueOf:@"DYNAMIC"]).to(equal([SDLImageType DYNAMIC])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLImageType valueOf:nil]).to(beNil()); - expect([SDLImageType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLImageType values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLImageType STATIC], - [SDLImageType DYNAMIC]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLInteractionModeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLInteractionModeSpec.m deleted file mode 100644 index 95341e347..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLInteractionModeSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLInteractionModeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLInteractionMode.h" - -QuickSpecBegin(SDLInteractionModeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLInteractionMode MANUAL_ONLY].value).to(equal(@"MANUAL_ONLY")); - expect([SDLInteractionMode VR_ONLY].value).to(equal(@"VR_ONLY")); - expect([SDLInteractionMode BOTH].value).to(equal(@"BOTH")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLInteractionMode valueOf:@"MANUAL_ONLY"]).to(equal([SDLInteractionMode MANUAL_ONLY])); - expect([SDLInteractionMode valueOf:@"VR_ONLY"]).to(equal([SDLInteractionMode VR_ONLY])); - expect([SDLInteractionMode valueOf:@"BOTH"]).to(equal([SDLInteractionMode BOTH])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLInteractionMode valueOf:nil]).to(beNil()); - expect([SDLInteractionMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLInteractionMode values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLInteractionMode MANUAL_ONLY], - [SDLInteractionMode VR_ONLY], - [SDLInteractionMode BOTH]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardEventSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardEventSpec.m deleted file mode 100644 index 560876185..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardEventSpec.m +++ /dev/null @@ -1,64 +0,0 @@ -// -// SDLKeyboardEventSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLKeyboardEvent.h" - -QuickSpecBegin(SDLKeyboardEventSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLKeyboardEvent KEYPRESS].value).to(equal(@"KEYPRESS")); - expect([SDLKeyboardEvent ENTRY_SUBMITTED].value).to(equal(@"ENTRY_SUBMITTED")); - expect([SDLKeyboardEvent ENTRY_CANCELLED].value).to(equal(@"ENTRY_CANCELLED")); - expect([SDLKeyboardEvent ENTRY_ABORTED].value).to(equal(@"ENTRY_ABORTED")); - expect([SDLKeyboardEvent ENTRY_VOICE].value).to(equal(@"ENTRY_VOICE")); - }); -}); - -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLKeyboardEvent valueOf:@"KEYPRESS"]).to(equal([SDLKeyboardEvent KEYPRESS])); - expect([SDLKeyboardEvent valueOf:@"ENTRY_SUBMITTED"]).to(equal([SDLKeyboardEvent ENTRY_SUBMITTED])); - expect([SDLKeyboardEvent valueOf:@"ENTRY_CANCELLED"]).to(equal([SDLKeyboardEvent ENTRY_CANCELLED])); - expect([SDLKeyboardEvent valueOf:@"ENTRY_ABORTED"]).to(equal([SDLKeyboardEvent ENTRY_ABORTED])); - expect([SDLKeyboardEvent valueOf:@"ENTRY_VOICE"]).to(equal([SDLKeyboardEvent ENTRY_VOICE])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLKeyboardEvent valueOf:nil]).to(beNil()); - expect([SDLKeyboardEvent valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); - -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLKeyboardEvent values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLKeyboardEvent KEYPRESS], - [SDLKeyboardEvent ENTRY_SUBMITTED], - [SDLKeyboardEvent ENTRY_CANCELLED], - [SDLKeyboardEvent ENTRY_ABORTED], - [SDLKeyboardEvent ENTRY_VOICE]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardLayoutSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardLayoutSpec.m deleted file mode 100644 index c55d8cd28..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardLayoutSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLKeyboardLayoutSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLKeyboardLayout.h" - -QuickSpecBegin(SDLKeyboardLayoutSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLKeyboardLayout QWERTY].value).to(equal(@"QWERTY")); - expect([SDLKeyboardLayout QWERTZ].value).to(equal(@"QWERTZ")); - expect([SDLKeyboardLayout AZERTY].value).to(equal(@"AZERTY")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLKeyboardLayout valueOf:@"QWERTY"]).to(equal([SDLKeyboardLayout QWERTY])); - expect([SDLKeyboardLayout valueOf:@"QWERTZ"]).to(equal([SDLKeyboardLayout QWERTZ])); - expect([SDLKeyboardLayout valueOf:@"AZERTY"]).to(equal([SDLKeyboardLayout AZERTY])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLKeyboardLayout valueOf:nil]).to(beNil()); - expect([SDLKeyboardLayout valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLKeyboardLayout values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLKeyboardLayout QWERTY], - [SDLKeyboardLayout QWERTZ], - [SDLKeyboardLayout AZERTY]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeypressModeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeypressModeSpec.m deleted file mode 100644 index d7304fe5e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeypressModeSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLKeypressModeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLKeypressMode.h" - -QuickSpecBegin(SDLKeypressModeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLKeypressMode SINGLE_KEYPRESS].value).to(equal(@"SINGLE_KEYPRESS")); - expect([SDLKeypressMode QUEUE_KEYPRESSES].value).to(equal(@"QUEUE_KEYPRESSES")); - expect([SDLKeypressMode RESEND_CURRENT_ENTRY].value).to(equal(@"RESEND_CURRENT_ENTRY")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLKeypressMode valueOf:@"SINGLE_KEYPRESS"]).to(equal([SDLKeypressMode SINGLE_KEYPRESS])); - expect([SDLKeypressMode valueOf:@"QUEUE_KEYPRESSES"]).to(equal([SDLKeypressMode QUEUE_KEYPRESSES])); - expect([SDLKeypressMode valueOf:@"RESEND_CURRENT_ENTRY"]).to(equal([SDLKeypressMode RESEND_CURRENT_ENTRY])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLKeypressMode valueOf:nil]).to(beNil()); - expect([SDLKeypressMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLKeypressMode values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLKeypressMode SINGLE_KEYPRESS], - [SDLKeypressMode QUEUE_KEYPRESSES], - [SDLKeypressMode RESEND_CURRENT_ENTRY]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLanguageSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLanguageSpec.m deleted file mode 100644 index 1c3ec06e0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLanguageSpec.m +++ /dev/null @@ -1,119 +0,0 @@ -// -// SDLLanguageSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLLanguage.h" - -QuickSpecBegin(SDLLanguageSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLLanguage EN_US].value).to(equal(@"EN-US")); - expect([SDLLanguage ES_MX].value).to(equal(@"ES-MX")); - expect([SDLLanguage FR_CA].value).to(equal(@"FR-CA")); - expect([SDLLanguage DE_DE].value).to(equal(@"DE-DE")); - expect([SDLLanguage ES_ES].value).to(equal(@"ES-ES")); - expect([SDLLanguage EN_GB].value).to(equal(@"EN-GB")); - expect([SDLLanguage RU_RU].value).to(equal(@"RU-RU")); - expect([SDLLanguage TR_TR].value).to(equal(@"TR-TR")); - expect([SDLLanguage PL_PL].value).to(equal(@"PL-PL")); - expect([SDLLanguage FR_FR].value).to(equal(@"FR-FR")); - expect([SDLLanguage IT_IT].value).to(equal(@"IT-IT")); - expect([SDLLanguage SV_SE].value).to(equal(@"SV-SE")); - expect([SDLLanguage PT_PT].value).to(equal(@"PT-PT")); - expect([SDLLanguage NL_NL].value).to(equal(@"NL-NL")); - expect([SDLLanguage EN_AU].value).to(equal(@"EN-AU")); - expect([SDLLanguage ZH_CN].value).to(equal(@"ZH-CN")); - expect([SDLLanguage ZH_TW].value).to(equal(@"ZH-TW")); - expect([SDLLanguage JA_JP].value).to(equal(@"JA-JP")); - expect([SDLLanguage AR_SA].value).to(equal(@"AR-SA")); - expect([SDLLanguage KO_KR].value).to(equal(@"KO-KR")); - expect([SDLLanguage PT_BR].value).to(equal(@"PT-BR")); - expect([SDLLanguage CS_CZ].value).to(equal(@"CS-CZ")); - expect([SDLLanguage DA_DK].value).to(equal(@"DA-DK")); - expect([SDLLanguage NO_NO].value).to(equal(@"NO-NO")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLLanguage valueOf:@"EN-US"]).to(equal([SDLLanguage EN_US])); - expect([SDLLanguage valueOf:@"ES-MX"]).to(equal([SDLLanguage ES_MX])); - expect([SDLLanguage valueOf:@"FR-CA"]).to(equal([SDLLanguage FR_CA])); - expect([SDLLanguage valueOf:@"DE-DE"]).to(equal([SDLLanguage DE_DE])); - expect([SDLLanguage valueOf:@"ES-ES"]).to(equal([SDLLanguage ES_ES])); - expect([SDLLanguage valueOf:@"EN-GB"]).to(equal([SDLLanguage EN_GB])); - expect([SDLLanguage valueOf:@"RU-RU"]).to(equal([SDLLanguage RU_RU])); - expect([SDLLanguage valueOf:@"TR-TR"]).to(equal([SDLLanguage TR_TR])); - expect([SDLLanguage valueOf:@"PL-PL"]).to(equal([SDLLanguage PL_PL])); - expect([SDLLanguage valueOf:@"FR-FR"]).to(equal([SDLLanguage FR_FR])); - expect([SDLLanguage valueOf:@"IT-IT"]).to(equal([SDLLanguage IT_IT])); - expect([SDLLanguage valueOf:@"SV-SE"]).to(equal([SDLLanguage SV_SE])); - expect([SDLLanguage valueOf:@"PT-PT"]).to(equal([SDLLanguage PT_PT])); - expect([SDLLanguage valueOf:@"NL-NL"]).to(equal([SDLLanguage NL_NL])); - expect([SDLLanguage valueOf:@"EN-AU"]).to(equal([SDLLanguage EN_AU])); - expect([SDLLanguage valueOf:@"ZH-CN"]).to(equal([SDLLanguage ZH_CN])); - expect([SDLLanguage valueOf:@"ZH-TW"]).to(equal([SDLLanguage ZH_TW])); - expect([SDLLanguage valueOf:@"JA-JP"]).to(equal([SDLLanguage JA_JP])); - expect([SDLLanguage valueOf:@"AR-SA"]).to(equal([SDLLanguage AR_SA])); - expect([SDLLanguage valueOf:@"KO-KR"]).to(equal([SDLLanguage KO_KR])); - expect([SDLLanguage valueOf:@"PT-BR"]).to(equal([SDLLanguage PT_BR])); - expect([SDLLanguage valueOf:@"CS-CZ"]).to(equal([SDLLanguage CS_CZ])); - expect([SDLLanguage valueOf:@"DA-DK"]).to(equal([SDLLanguage DA_DK])); - expect([SDLLanguage valueOf:@"NO-NO"]).to(equal([SDLLanguage NO_NO])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLLanguage valueOf:nil]).to(beNil()); - expect([SDLLanguage valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLLanguage values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLLanguage EN_US], - [SDLLanguage ES_MX], - [SDLLanguage FR_CA], - [SDLLanguage DE_DE], - [SDLLanguage ES_ES], - [SDLLanguage EN_GB], - [SDLLanguage RU_RU], - [SDLLanguage TR_TR], - [SDLLanguage PL_PL], - [SDLLanguage FR_FR], - [SDLLanguage IT_IT], - [SDLLanguage SV_SE], - [SDLLanguage PT_PT], - [SDLLanguage NL_NL], - [SDLLanguage EN_AU], - [SDLLanguage ZH_CN], - [SDLLanguage ZH_TW], - [SDLLanguage JA_JP], - [SDLLanguage AR_SA], - [SDLLanguage KO_KR], - [SDLLanguage PT_BR], - [SDLLanguage CS_CZ], - [SDLLanguage DA_DK], - [SDLLanguage NO_NO]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLayoutModeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLayoutModeSpec.m deleted file mode 100644 index 6aea31374..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLayoutModeSpec.m +++ /dev/null @@ -1,62 +0,0 @@ -// -// SDLLayoutModeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLLayoutMode.h" - -QuickSpecBegin(SDLLayoutModeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLLayoutMode ICON_ONLY].value).to(equal(@"ICON_ONLY")); - expect([SDLLayoutMode ICON_WITH_SEARCH].value).to(equal(@"ICON_WITH_SEARCH")); - expect([SDLLayoutMode LIST_ONLY].value).to(equal(@"LIST_ONLY")); - expect([SDLLayoutMode LIST_WITH_SEARCH].value).to(equal(@"LIST_WITH_SEARCH")); - expect([SDLLayoutMode KEYBOARD].value).to(equal(@"KEYBOARD")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLLayoutMode valueOf:@"ICON_ONLY"]).to(equal([SDLLayoutMode ICON_ONLY])); - expect([SDLLayoutMode valueOf:@"ICON_WITH_SEARCH"]).to(equal([SDLLayoutMode ICON_WITH_SEARCH])); - expect([SDLLayoutMode valueOf:@"LIST_ONLY"]).to(equal([SDLLayoutMode LIST_ONLY])); - expect([SDLLayoutMode valueOf:@"LIST_WITH_SEARCH"]).to(equal([SDLLayoutMode LIST_WITH_SEARCH])); - expect([SDLLayoutMode valueOf:@"KEYBOARD"]).to(equal([SDLLayoutMode KEYBOARD])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLLayoutMode valueOf:nil]).to(beNil()); - expect([SDLLayoutMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLLayoutMode values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLLayoutMode ICON_ONLY], - [SDLLayoutMode ICON_WITH_SEARCH], - [SDLLayoutMode LIST_ONLY], - [SDLLayoutMode LIST_WITH_SEARCH], - [SDLLayoutMode KEYBOARD]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLockScreenStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLockScreenStatusSpec.m deleted file mode 100644 index a6d7ecdac..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLockScreenStatusSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLLockScreenStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLLockScreenStatus.h" - -QuickSpecBegin(SDLLockScreenStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLLockScreenStatus OFF].value).to(equal(@"OFF")); - expect([SDLLockScreenStatus OPTIONAL].value).to(equal(@"OPTIONAL")); - expect([SDLLockScreenStatus REQUIRED].value).to(equal(@"REQUIRED")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLLockScreenStatus valueOf:@"OFF"]).to(equal([SDLLockScreenStatus OFF])); - expect([SDLLockScreenStatus valueOf:@"OPTIONAL"]).to(equal([SDLLockScreenStatus OPTIONAL])); - expect([SDLLockScreenStatus valueOf:@"REQUIRED"]).to(equal([SDLLockScreenStatus REQUIRED])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLLockScreenStatus valueOf:nil]).to(beNil()); - expect([SDLLockScreenStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLLockScreenStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLLockScreenStatus OFF], - [SDLLockScreenStatus OPTIONAL], - [SDLLockScreenStatus REQUIRED]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMaintenanceModeStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMaintenanceModeStatusSpec.m deleted file mode 100644 index 349a073eb..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMaintenanceModeStatusSpec.m +++ /dev/null @@ -1,59 +0,0 @@ -// -// SDLMaintenanceModeStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLMaintenanceModeStatus.h" - -QuickSpecBegin(SDLMaintenanceModeStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLMaintenanceModeStatus NORMAL].value).to(equal(@"NORMAL")); - expect([SDLMaintenanceModeStatus NEAR].value).to(equal(@"NEAR")); - expect([SDLMaintenanceModeStatus ACTIVE].value).to(equal(@"ACTIVE")); - expect([SDLMaintenanceModeStatus FEATURE_NOT_PRESENT].value).to(equal(@"FEATURE_NOT_PRESENT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLMaintenanceModeStatus valueOf:@"NORMAL"]).to(equal([SDLMaintenanceModeStatus NORMAL])); - expect([SDLMaintenanceModeStatus valueOf:@"NEAR"]).to(equal([SDLMaintenanceModeStatus NEAR])); - expect([SDLMaintenanceModeStatus valueOf:@"ACTIVE"]).to(equal([SDLMaintenanceModeStatus ACTIVE])); - expect([SDLMaintenanceModeStatus valueOf:@"FEATURE_NOT_PRESENT"]).to(equal([SDLMaintenanceModeStatus FEATURE_NOT_PRESENT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLMaintenanceModeStatus valueOf:nil]).to(beNil()); - expect([SDLMaintenanceModeStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLMaintenanceModeStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLMaintenanceModeStatus NORMAL], - [SDLMaintenanceModeStatus NEAR], - [SDLMaintenanceModeStatus ACTIVE], - [SDLMaintenanceModeStatus FEATURE_NOT_PRESENT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMediaClockFormatSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMediaClockFormatSpec.m deleted file mode 100644 index 80603a2b0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMediaClockFormatSpec.m +++ /dev/null @@ -1,68 +0,0 @@ -// -// SDLMediaClockFormatSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLMediaClockFormat.h" - -QuickSpecBegin(SDLMediaClockFormatSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLMediaClockFormat CLOCK1].value).to(equal(@"CLOCK1")); - expect([SDLMediaClockFormat CLOCK2].value).to(equal(@"CLOCK2")); - expect([SDLMediaClockFormat CLOCK3].value).to(equal(@"CLOCK3")); - expect([SDLMediaClockFormat CLOCKTEXT1].value).to(equal(@"CLOCKTEXT1")); - expect([SDLMediaClockFormat CLOCKTEXT2].value).to(equal(@"CLOCKTEXT2")); - expect([SDLMediaClockFormat CLOCKTEXT3].value).to(equal(@"CLOCKTEXT3")); - expect([SDLMediaClockFormat CLOCKTEXT4].value).to(equal(@"CLOCKTEXT4")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLMediaClockFormat valueOf:@"CLOCK1"]).to(equal([SDLMediaClockFormat CLOCK1])); - expect([SDLMediaClockFormat valueOf:@"CLOCK2"]).to(equal([SDLMediaClockFormat CLOCK2])); - expect([SDLMediaClockFormat valueOf:@"CLOCK3"]).to(equal([SDLMediaClockFormat CLOCK3])); - expect([SDLMediaClockFormat valueOf:@"CLOCKTEXT1"]).to(equal([SDLMediaClockFormat CLOCKTEXT1])); - expect([SDLMediaClockFormat valueOf:@"CLOCKTEXT2"]).to(equal([SDLMediaClockFormat CLOCKTEXT2])); - expect([SDLMediaClockFormat valueOf:@"CLOCKTEXT3"]).to(equal([SDLMediaClockFormat CLOCKTEXT3])); - expect([SDLMediaClockFormat valueOf:@"CLOCKTEXT4"]).to(equal([SDLMediaClockFormat CLOCKTEXT4])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLMediaClockFormat valueOf:nil]).to(beNil()); - expect([SDLMediaClockFormat valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLMediaClockFormat values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLMediaClockFormat CLOCK1], - [SDLMediaClockFormat CLOCK2], - [SDLMediaClockFormat CLOCK3], - [SDLMediaClockFormat CLOCKTEXT1], - [SDLMediaClockFormat CLOCKTEXT2], - [SDLMediaClockFormat CLOCKTEXT3], - [SDLMediaClockFormat CLOCKTEXT4]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPRNDLSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPRNDLSpec.m deleted file mode 100644 index 5310f3488..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPRNDLSpec.m +++ /dev/null @@ -1,95 +0,0 @@ -// -// SDLPRNDLSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLPRNDL.h" - -QuickSpecBegin(SDLPRNDLSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLPRNDL PARK].value).to(equal(@"PARK")); - expect([SDLPRNDL REVERSE].value).to(equal(@"REVERSE")); - expect([SDLPRNDL NEUTRAL].value).to(equal(@"NEUTRAL")); - expect([SDLPRNDL DRIVE].value).to(equal(@"DRIVE")); - expect([SDLPRNDL SPORT].value).to(equal(@"SPORT")); - expect([SDLPRNDL LOWGEAR].value).to(equal(@"LOWGEAR")); - expect([SDLPRNDL FIRST].value).to(equal(@"FIRST")); - expect([SDLPRNDL SECOND].value).to(equal(@"SECOND")); - expect([SDLPRNDL THIRD].value).to(equal(@"THIRD")); - expect([SDLPRNDL FOURTH].value).to(equal(@"FOURTH")); - expect([SDLPRNDL FIFTH].value).to(equal(@"FIFTH")); - expect([SDLPRNDL SIXTH].value).to(equal(@"SIXTH")); - expect([SDLPRNDL SEVENTH].value).to(equal(@"SEVENTH")); - expect([SDLPRNDL EIGHTH].value).to(equal(@"EIGHTH")); - expect([SDLPRNDL UNKNOWN].value).to(equal(@"UNKNOWN")); - expect([SDLPRNDL FAULT].value).to(equal(@"FAULT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLPRNDL valueOf:@"PARK"]).to(equal([SDLPRNDL PARK])); - expect([SDLPRNDL valueOf:@"REVERSE"]).to(equal([SDLPRNDL REVERSE])); - expect([SDLPRNDL valueOf:@"NEUTRAL"]).to(equal([SDLPRNDL NEUTRAL])); - expect([SDLPRNDL valueOf:@"DRIVE"]).to(equal([SDLPRNDL DRIVE])); - expect([SDLPRNDL valueOf:@"SPORT"]).to(equal([SDLPRNDL SPORT])); - expect([SDLPRNDL valueOf:@"LOWGEAR"]).to(equal([SDLPRNDL LOWGEAR])); - expect([SDLPRNDL valueOf:@"FIRST"]).to(equal([SDLPRNDL FIRST])); - expect([SDLPRNDL valueOf:@"SECOND"]).to(equal([SDLPRNDL SECOND])); - expect([SDLPRNDL valueOf:@"THIRD"]).to(equal([SDLPRNDL THIRD])); - expect([SDLPRNDL valueOf:@"FOURTH"]).to(equal([SDLPRNDL FOURTH])); - expect([SDLPRNDL valueOf:@"FIFTH"]).to(equal([SDLPRNDL FIFTH])); - expect([SDLPRNDL valueOf:@"SIXTH"]).to(equal([SDLPRNDL SIXTH])); - expect([SDLPRNDL valueOf:@"SEVENTH"]).to(equal([SDLPRNDL SEVENTH])); - expect([SDLPRNDL valueOf:@"EIGHTH"]).to(equal([SDLPRNDL EIGHTH])); - expect([SDLPRNDL valueOf:@"UNKNOWN"]).to(equal([SDLPRNDL UNKNOWN])); - expect([SDLPRNDL valueOf:@"FAULT"]).to(equal([SDLPRNDL FAULT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLPRNDL valueOf:nil]).to(beNil()); - expect([SDLPRNDL valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLPRNDL values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLPRNDL PARK], - [SDLPRNDL REVERSE], - [SDLPRNDL NEUTRAL], - [SDLPRNDL DRIVE], - [SDLPRNDL SPORT], - [SDLPRNDL LOWGEAR], - [SDLPRNDL FIRST], - [SDLPRNDL SECOND], - [SDLPRNDL THIRD], - [SDLPRNDL FOURTH], - [SDLPRNDL FIFTH], - [SDLPRNDL SIXTH], - [SDLPRNDL SEVENTH], - [SDLPRNDL EIGHTH], - [SDLPRNDL UNKNOWN], - [SDLPRNDL FAULT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPermissionStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPermissionStatusSpec.m deleted file mode 100644 index 3ca864595..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPermissionStatusSpec.m +++ /dev/null @@ -1,59 +0,0 @@ -// -// SDLPermissionStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLPermissionStatus.h" - -QuickSpecBegin(SDLPermissionStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLPermissionStatus ALLOWED].value).to(equal(@"ALLOWED")); - expect([SDLPermissionStatus DISALLOWED].value).to(equal(@"DISALLOWED")); - expect([SDLPermissionStatus USER_DISALLOWED].value).to(equal(@"USER_DISALLOWED")); - expect([SDLPermissionStatus USER_CONSENT_PENDING].value).to(equal(@"USER_CONSENT_PENDING")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLPermissionStatus valueOf:@"ALLOWED"]).to(equal([SDLPermissionStatus ALLOWED])); - expect([SDLPermissionStatus valueOf:@"DISALLOWED"]).to(equal([SDLPermissionStatus DISALLOWED])); - expect([SDLPermissionStatus valueOf:@"USER_DISALLOWED"]).to(equal([SDLPermissionStatus USER_DISALLOWED])); - expect([SDLPermissionStatus valueOf:@"USER_CONSENT_PENDING"]).to(equal([SDLPermissionStatus USER_CONSENT_PENDING])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLPermissionStatus valueOf:nil]).to(beNil()); - expect([SDLPermissionStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLPermissionStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLPermissionStatus ALLOWED], - [SDLPermissionStatus DISALLOWED], - [SDLPermissionStatus USER_DISALLOWED], - [SDLPermissionStatus USER_CONSENT_PENDING]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeQualificationStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeQualificationStatusSpec.m deleted file mode 100644 index 1a8c2dd55..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeQualificationStatusSpec.m +++ /dev/null @@ -1,59 +0,0 @@ -// -// SDLPowerModeQualificationStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLPowerModeQualificationStatus.h" - -QuickSpecBegin(SDLPowerModeQualificationStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLPowerModeQualificationStatus POWER_MODE_UNDEFINED].value).to(equal(@"POWER_MODE_UNDEFINED")); - expect([SDLPowerModeQualificationStatus POWER_MODE_EVALUATION_IN_PROGRESS].value).to(equal(@"POWER_MODE_EVALUATION_IN_PROGRESS")); - expect([SDLPowerModeQualificationStatus NOT_DEFINED].value).to(equal(@"NOT_DEFINED")); - expect([SDLPowerModeQualificationStatus POWER_MODE_OK].value).to(equal(@"POWER_MODE_OK")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLPowerModeQualificationStatus valueOf:@"POWER_MODE_UNDEFINED"]).to(equal([SDLPowerModeQualificationStatus POWER_MODE_UNDEFINED])); - expect([SDLPowerModeQualificationStatus valueOf:@"POWER_MODE_EVALUATION_IN_PROGRESS"]).to(equal([SDLPowerModeQualificationStatus POWER_MODE_EVALUATION_IN_PROGRESS])); - expect([SDLPowerModeQualificationStatus valueOf:@"NOT_DEFINED"]).to(equal([SDLPowerModeQualificationStatus NOT_DEFINED])); - expect([SDLPowerModeQualificationStatus valueOf:@"POWER_MODE_OK"]).to(equal([SDLPowerModeQualificationStatus POWER_MODE_OK])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLPowerModeQualificationStatus valueOf:nil]).to(beNil()); - expect([SDLPowerModeQualificationStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLPowerModeQualificationStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLPowerModeQualificationStatus POWER_MODE_UNDEFINED], - [SDLPowerModeQualificationStatus POWER_MODE_EVALUATION_IN_PROGRESS], - [SDLPowerModeQualificationStatus NOT_DEFINED], - [SDLPowerModeQualificationStatus POWER_MODE_OK]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeStatusSpec.m deleted file mode 100644 index 4ffc91aba..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeStatusSpec.m +++ /dev/null @@ -1,74 +0,0 @@ -// -// SDLPowerModeStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLPowerModeStatus.h" - -QuickSpecBegin(SDLPowerModeStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLPowerModeStatus KEY_OUT].value).to(equal(@"KEY_OUT")); - expect([SDLPowerModeStatus KEY_RECENTLY_OUT].value).to(equal(@"KEY_RECENTLY_OUT")); - expect([SDLPowerModeStatus KEY_APPROVED_0].value).to(equal(@"KEY_APPROVED_0")); - expect([SDLPowerModeStatus POST_ACCESORY_0].value).to(equal(@"POST_ACCESORY_0")); - expect([SDLPowerModeStatus ACCESORY_1].value).to(equal(@"ACCESORY_1")); - expect([SDLPowerModeStatus POST_IGNITION_1].value).to(equal(@"POST_IGNITION_1")); - expect([SDLPowerModeStatus IGNITION_ON_2].value).to(equal(@"IGNITION_ON_2")); - expect([SDLPowerModeStatus RUNNING_2].value).to(equal(@"RUNNING_2")); - expect([SDLPowerModeStatus CRANK_3].value).to(equal(@"CRANK_3")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLPowerModeStatus valueOf:@"KEY_OUT"]).to(equal([SDLPowerModeStatus KEY_OUT])); - expect([SDLPowerModeStatus valueOf:@"KEY_RECENTLY_OUT"]).to(equal([SDLPowerModeStatus KEY_RECENTLY_OUT])); - expect([SDLPowerModeStatus valueOf:@"KEY_APPROVED_0"]).to(equal([SDLPowerModeStatus KEY_APPROVED_0])); - expect([SDLPowerModeStatus valueOf:@"POST_ACCESORY_0"]).to(equal([SDLPowerModeStatus POST_ACCESORY_0])); - expect([SDLPowerModeStatus valueOf:@"ACCESORY_1"]).to(equal([SDLPowerModeStatus ACCESORY_1])); - expect([SDLPowerModeStatus valueOf:@"POST_IGNITION_1"]).to(equal([SDLPowerModeStatus POST_IGNITION_1])); - expect([SDLPowerModeStatus valueOf:@"IGNITION_ON_2"]).to(equal([SDLPowerModeStatus IGNITION_ON_2])); - expect([SDLPowerModeStatus valueOf:@"RUNNING_2"]).to(equal([SDLPowerModeStatus RUNNING_2])); - expect([SDLPowerModeStatus valueOf:@"CRANK_3"]).to(equal([SDLPowerModeStatus CRANK_3])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLPowerModeStatus valueOf:nil]).to(beNil()); - expect([SDLPowerModeStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLPowerModeStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLPowerModeStatus KEY_OUT], - [SDLPowerModeStatus KEY_RECENTLY_OUT], - [SDLPowerModeStatus KEY_APPROVED_0], - [SDLPowerModeStatus POST_ACCESORY_0], - [SDLPowerModeStatus ACCESORY_1], - [SDLPowerModeStatus POST_IGNITION_1], - [SDLPowerModeStatus IGNITION_ON_2], - [SDLPowerModeStatus RUNNING_2], - [SDLPowerModeStatus CRANK_3]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPredefinedLayoutSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPredefinedLayoutSpec.m deleted file mode 100644 index 0f110d08c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPredefinedLayoutSpec.m +++ /dev/null @@ -1,107 +0,0 @@ -// -// SDLPredefinedLayoutSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLPredefinedLayout.h" - -QuickSpecBegin(SDLPredefinedLayoutSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLPredefinedLayout DEFAULT].value).to(equal(@"DEFAULT")); - expect([SDLPredefinedLayout MEDIA].value).to(equal(@"MEDIA")); - expect([SDLPredefinedLayout NON_MEDIA].value).to(equal(@"NON-MEDIA")); - expect([SDLPredefinedLayout ONSCREEN_PRESETS].value).to(equal(@"ONSCREEN_PRESETS")); - expect([SDLPredefinedLayout NAV_FULLSCREEN_MAP].value).to(equal(@"NAV_FULLSCREEN_MAP")); - expect([SDLPredefinedLayout NAV_LIST].value).to(equal(@"NAV_LIST")); - expect([SDLPredefinedLayout NAV_KEYBOARD].value).to(equal(@"NAV_KEYBOARD")); - expect([SDLPredefinedLayout GRAPHIC_WITH_TEXT].value).to(equal(@"GRAPHIC_WITH_TEXT")); - expect([SDLPredefinedLayout TEXT_WITH_GRAPHIC].value).to(equal(@"TEXT_WITH_GRAPHIC")); - expect([SDLPredefinedLayout TILES_ONLY].value).to(equal(@"TILES_ONLY")); - expect([SDLPredefinedLayout TEXTBUTTONS_ONLY].value).to(equal(@"TEXTBUTTONS_ONLY")); - expect([SDLPredefinedLayout GRAPHIC_WITH_TILES].value).to(equal(@"GRAPHIC_WITH_TILES")); - expect([SDLPredefinedLayout TILES_WITH_GRAPHIC].value).to(equal(@"TILES_WITH_GRAPHIC")); - expect([SDLPredefinedLayout GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS].value).to(equal(@"GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS")); - expect([SDLPredefinedLayout TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC].value).to(equal(@"TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC")); - expect([SDLPredefinedLayout GRAPHIC_WITH_TEXTBUTTONS].value).to(equal(@"GRAPHIC_WITH_TEXTBUTTONS")); - expect([SDLPredefinedLayout TEXTBUTTONS_WITH_GRAPHIC].value).to(equal(@"TEXTBUTTONS_WITH_GRAPHIC")); - expect([SDLPredefinedLayout LARGE_GRAPHIC_WITH_SOFTBUTTONS].value).to(equal(@"LARGE_GRAPHIC_WITH_SOFTBUTTONS")); - expect([SDLPredefinedLayout DOUBLE_GRAPHIC_WITH_SOFTBUTTONS].value).to(equal(@"DOUBLE_GRAPHIC_WITH_SOFTBUTTONS")); - expect([SDLPredefinedLayout LARGE_GRAPHIC_ONLY].value).to(equal(@"LARGE_GRAPHIC_ONLY")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLPredefinedLayout valueOf:@"DEFAULT"]).to(equal([SDLPredefinedLayout DEFAULT])); - expect([SDLPredefinedLayout valueOf:@"MEDIA"]).to(equal([SDLPredefinedLayout MEDIA])); - expect([SDLPredefinedLayout valueOf:@"NON-MEDIA"]).to(equal([SDLPredefinedLayout NON_MEDIA])); - expect([SDLPredefinedLayout valueOf:@"ONSCREEN_PRESETS"]).to(equal([SDLPredefinedLayout ONSCREEN_PRESETS])); - expect([SDLPredefinedLayout valueOf:@"NAV_FULLSCREEN_MAP"]).to(equal([SDLPredefinedLayout NAV_FULLSCREEN_MAP])); - expect([SDLPredefinedLayout valueOf:@"NAV_LIST"]).to(equal([SDLPredefinedLayout NAV_LIST])); - expect([SDLPredefinedLayout valueOf:@"NAV_KEYBOARD"]).to(equal([SDLPredefinedLayout NAV_KEYBOARD])); - expect([SDLPredefinedLayout valueOf:@"GRAPHIC_WITH_TEXT"]).to(equal([SDLPredefinedLayout GRAPHIC_WITH_TEXT])); - expect([SDLPredefinedLayout valueOf:@"TEXT_WITH_GRAPHIC"]).to(equal([SDLPredefinedLayout TEXT_WITH_GRAPHIC])); - expect([SDLPredefinedLayout valueOf:@"TILES_ONLY"]).to(equal([SDLPredefinedLayout TILES_ONLY])); - expect([SDLPredefinedLayout valueOf:@"TEXTBUTTONS_ONLY"]).to(equal([SDLPredefinedLayout TEXTBUTTONS_ONLY])); - expect([SDLPredefinedLayout valueOf:@"GRAPHIC_WITH_TILES"]).to(equal([SDLPredefinedLayout GRAPHIC_WITH_TILES])); - expect([SDLPredefinedLayout valueOf:@"TILES_WITH_GRAPHIC"]).to(equal([SDLPredefinedLayout TILES_WITH_GRAPHIC])); - expect([SDLPredefinedLayout valueOf:@"GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS"]).to(equal([SDLPredefinedLayout GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS])); - expect([SDLPredefinedLayout valueOf:@"TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC"]).to(equal([SDLPredefinedLayout TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC])); - expect([SDLPredefinedLayout valueOf:@"GRAPHIC_WITH_TEXTBUTTONS"]).to(equal([SDLPredefinedLayout GRAPHIC_WITH_TEXTBUTTONS])); - expect([SDLPredefinedLayout valueOf:@"TEXTBUTTONS_WITH_GRAPHIC"]).to(equal([SDLPredefinedLayout TEXTBUTTONS_WITH_GRAPHIC])); - expect([SDLPredefinedLayout valueOf:@"LARGE_GRAPHIC_WITH_SOFTBUTTONS"]).to(equal([SDLPredefinedLayout LARGE_GRAPHIC_WITH_SOFTBUTTONS])); - expect([SDLPredefinedLayout valueOf:@"DOUBLE_GRAPHIC_WITH_SOFTBUTTONS"]).to(equal([SDLPredefinedLayout DOUBLE_GRAPHIC_WITH_SOFTBUTTONS])); - expect([SDLPredefinedLayout valueOf:@"LARGE_GRAPHIC_ONLY"]).to(equal([SDLPredefinedLayout LARGE_GRAPHIC_ONLY])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLPredefinedLayout valueOf:nil]).to(beNil()); - expect([SDLPredefinedLayout valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLPredefinedLayout values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLPredefinedLayout DEFAULT], - [SDLPredefinedLayout MEDIA], - [SDLPredefinedLayout NON_MEDIA], - [SDLPredefinedLayout ONSCREEN_PRESETS], - [SDLPredefinedLayout NAV_FULLSCREEN_MAP], - [SDLPredefinedLayout NAV_LIST], - [SDLPredefinedLayout NAV_KEYBOARD], - [SDLPredefinedLayout GRAPHIC_WITH_TEXT], - [SDLPredefinedLayout TEXT_WITH_GRAPHIC], - [SDLPredefinedLayout TILES_ONLY], - [SDLPredefinedLayout TEXTBUTTONS_ONLY], - [SDLPredefinedLayout GRAPHIC_WITH_TILES], - [SDLPredefinedLayout TILES_WITH_GRAPHIC], - [SDLPredefinedLayout GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS], - [SDLPredefinedLayout TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC], - [SDLPredefinedLayout GRAPHIC_WITH_TEXTBUTTONS], - [SDLPredefinedLayout TEXTBUTTONS_WITH_GRAPHIC], - [SDLPredefinedLayout LARGE_GRAPHIC_WITH_SOFTBUTTONS], - [SDLPredefinedLayout DOUBLE_GRAPHIC_WITH_SOFTBUTTONS], - [SDLPredefinedLayout LARGE_GRAPHIC_ONLY]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrerecordedSpeechSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrerecordedSpeechSpec.m deleted file mode 100644 index 89c0bd218..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrerecordedSpeechSpec.m +++ /dev/null @@ -1,62 +0,0 @@ -// -// SDLPrerecordedSpeechSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLPrerecordedSpeech.h" - -QuickSpecBegin(SDLPrerecordedSpeechSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLPrerecordedSpeech HELP_JINGLE].value).to(equal(@"HELP_JINGLE")); - expect([SDLPrerecordedSpeech INITIAL_JINGLE].value).to(equal(@"INITIAL_JINGLE")); - expect([SDLPrerecordedSpeech LISTEN_JINGLE].value).to(equal(@"LISTEN_JINGLE")); - expect([SDLPrerecordedSpeech POSITIVE_JINGLE].value).to(equal(@"POSITIVE_JINGLE")); - expect([SDLPrerecordedSpeech NEGATIVE_JINGLE].value).to(equal(@"NEGATIVE_JINGLE")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLPrerecordedSpeech valueOf:@"HELP_JINGLE"]).to(equal([SDLPrerecordedSpeech HELP_JINGLE])); - expect([SDLPrerecordedSpeech valueOf:@"INITIAL_JINGLE"]).to(equal([SDLPrerecordedSpeech INITIAL_JINGLE])); - expect([SDLPrerecordedSpeech valueOf:@"LISTEN_JINGLE"]).to(equal([SDLPrerecordedSpeech LISTEN_JINGLE])); - expect([SDLPrerecordedSpeech valueOf:@"POSITIVE_JINGLE"]).to(equal([SDLPrerecordedSpeech POSITIVE_JINGLE])); - expect([SDLPrerecordedSpeech valueOf:@"NEGATIVE_JINGLE"]).to(equal([SDLPrerecordedSpeech NEGATIVE_JINGLE])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLPrerecordedSpeech valueOf:nil]).to(beNil()); - expect([SDLPrerecordedSpeech valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLPrerecordedSpeech values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLPrerecordedSpeech HELP_JINGLE], - [SDLPrerecordedSpeech INITIAL_JINGLE], - [SDLPrerecordedSpeech LISTEN_JINGLE], - [SDLPrerecordedSpeech POSITIVE_JINGLE], - [SDLPrerecordedSpeech NEGATIVE_JINGLE]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrimaryAudioSource.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrimaryAudioSource.m deleted file mode 100644 index 0b273e0df..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrimaryAudioSource.m +++ /dev/null @@ -1,68 +0,0 @@ -// -// SDLPrimaryAudioSourceSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLPrimaryAudioSource.h" - -QuickSpecBegin(SDLPrimaryAudioSourceSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLPrimaryAudioSource NO_SOURCE_SELECTED].value).to(equal(@"NO_SOURCE_SELECTED")); - expect([SDLPrimaryAudioSource USB].value).to(equal(@"USB")); - expect([SDLPrimaryAudioSource USB2].value).to(equal(@"USB2")); - expect([SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST].value).to(equal(@"BLUETOOTH_STEREO_BTST")); - expect([SDLPrimaryAudioSource LINE_IN].value).to(equal(@"LINE_IN")); - expect([SDLPrimaryAudioSource IPOD].value).to(equal(@"IPOD")); - expect([SDLPrimaryAudioSource MOBILE_APP].value).to(equal(@"MOBILE_APP")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLPrimaryAudioSource valueOf:@"NO_SOURCE_SELECTED"]).to(equal([SDLPrimaryAudioSource NO_SOURCE_SELECTED])); - expect([SDLPrimaryAudioSource valueOf:@"USB"]).to(equal([SDLPrimaryAudioSource USB])); - expect([SDLPrimaryAudioSource valueOf:@"USB2"]).to(equal([SDLPrimaryAudioSource USB2])); - expect([SDLPrimaryAudioSource valueOf:@"BLUETOOTH_STEREO_BTST"]).to(equal([SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST])); - expect([SDLPrimaryAudioSource valueOf:@"LINE_IN"]).to(equal([SDLPrimaryAudioSource LINE_IN])); - expect([SDLPrimaryAudioSource valueOf:@"IPOD"]).to(equal([SDLPrimaryAudioSource IPOD])); - expect([SDLPrimaryAudioSource valueOf:@"MOBILE_APP"]).to(equal([SDLPrimaryAudioSource MOBILE_APP])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLPrimaryAudioSource valueOf:nil]).to(beNil()); - expect([SDLPrimaryAudioSource valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLPrimaryAudioSource values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLPrimaryAudioSource NO_SOURCE_SELECTED], - [SDLPrimaryAudioSource USB], - [SDLPrimaryAudioSource USB2], - [SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST], - [SDLPrimaryAudioSource LINE_IN], - [SDLPrimaryAudioSource IPOD], - [SDLPrimaryAudioSource MOBILE_APP]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLRequestTypeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLRequestTypeSpec.m deleted file mode 100644 index 7a314e1a6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLRequestTypeSpec.m +++ /dev/null @@ -1,108 +0,0 @@ -// -// SDLRequestTypeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLRequestType.h" - -QuickSpecBegin(SDLRequestTypeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLRequestType HTTP].value).to(equal(@"HTTP")); - expect([SDLRequestType FILE_RESUME].value).to(equal(@"FILE_RESUME")); - expect([SDLRequestType AUTH_REQUEST].value).to(equal(@"AUTH_REQUEST")); - expect([SDLRequestType AUTH_CHALLENGE].value).to(equal(@"AUTH_CHALLENGE")); - expect([SDLRequestType AUTH_ACK].value).to(equal(@"AUTH_ACK")); - expect([SDLRequestType PROPRIETARY].value).to(equal(@"PROPRIETARY")); - expect([SDLRequestType QUERY_APPS].value).to(equal(@"QUERY_APPS")); - expect([SDLRequestType LAUNCH_APP].value).to(equal(@"LAUNCH_APP")); - expect([SDLRequestType LOCK_SCREEN_ICON_URL].value).to(equal(@"LOCK_SCREEN_ICON_URL")); - expect([SDLRequestType TRAFFIC_MESSAGE_CHANNEL].value).to(equal(@"TRAFFIC_MESSAGE_CHANNEL")); - expect([SDLRequestType DRIVER_PROFILE].value).to(equal(@"DRIVER_PROFILE")); - expect([SDLRequestType VOICE_SEARCH].value).to(equal(@"VOICE_SEARCH")); - expect([SDLRequestType NAVIGATION].value).to(equal(@"NAVIGATION")); - expect([SDLRequestType PHONE].value).to(equal(@"PHONE")); - expect([SDLRequestType CLIMATE].value).to(equal(@"CLIMATE")); - expect([SDLRequestType SETTINGS].value).to(equal(@"SETTINGS")); - expect([SDLRequestType VEHICLE_DIAGNOSTICS].value).to(equal(@"VEHICLE_DIAGNOSTICS")); - expect([SDLRequestType EMERGENCY].value).to(equal(@"EMERGENCY")); - expect([SDLRequestType MEDIA].value).to(equal(@"MEDIA")); - expect([SDLRequestType FOTA].value).to(equal(@"FOTA")); - }); -}); - -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLRequestType valueOf:@"HTTP"]).to(equal([SDLRequestType HTTP])); - expect([SDLRequestType valueOf:@"FILE_RESUME"]).to(equal([SDLRequestType FILE_RESUME])); - expect([SDLRequestType valueOf:@"AUTH_REQUEST"]).to(equal([SDLRequestType AUTH_REQUEST])); - expect([SDLRequestType valueOf:@"AUTH_CHALLENGE"]).to(equal([SDLRequestType AUTH_CHALLENGE])); - expect([SDLRequestType valueOf:@"AUTH_ACK"]).to(equal([SDLRequestType AUTH_ACK])); - expect([SDLRequestType valueOf:@"QUERY_APPS"]).to(equal([SDLRequestType QUERY_APPS])); - expect([SDLRequestType valueOf:@"LAUNCH_APP"]).to(equal([SDLRequestType LAUNCH_APP])); - expect([SDLRequestType valueOf:@"LOCK_SCREEN_ICON_URL"]).to(equal([SDLRequestType LOCK_SCREEN_ICON_URL])); - expect([SDLRequestType valueOf:@"TRAFFIC_MESSAGE_CHANNEL"]).to(equal([SDLRequestType TRAFFIC_MESSAGE_CHANNEL])); - expect([SDLRequestType valueOf:@"DRIVER_PROFILE"]).to(equal([SDLRequestType DRIVER_PROFILE])); - expect([SDLRequestType valueOf:@"VOICE_SEARCH"]).to(equal([SDLRequestType VOICE_SEARCH])); - expect([SDLRequestType valueOf:@"NAVIGATION"]).to(equal([SDLRequestType NAVIGATION])); - expect([SDLRequestType valueOf:@"PHONE"]).to(equal([SDLRequestType PHONE])); - expect([SDLRequestType valueOf:@"CLIMATE"]).to(equal([SDLRequestType CLIMATE])); - expect([SDLRequestType valueOf:@"SETTINGS"]).to(equal([SDLRequestType SETTINGS])); - expect([SDLRequestType valueOf:@"VEHICLE_DIAGNOSTICS"]).to(equal([SDLRequestType VEHICLE_DIAGNOSTICS])); - expect([SDLRequestType valueOf:@"EMERGENCY"]).to(equal([SDLRequestType EMERGENCY])); - expect([SDLRequestType valueOf:@"MEDIA"]).to(equal([SDLRequestType MEDIA])); - expect([SDLRequestType valueOf:@"FOTA"]).to(equal([SDLRequestType FOTA])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLRequestType valueOf:nil]).to(beNil()); - expect([SDLRequestType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); - -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLRequestType values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLRequestType HTTP], - [SDLRequestType FILE_RESUME], - [SDLRequestType AUTH_REQUEST], - [SDLRequestType AUTH_CHALLENGE], - [SDLRequestType AUTH_ACK], - [SDLRequestType PROPRIETARY], - [SDLRequestType QUERY_APPS], - [SDLRequestType LAUNCH_APP], - [SDLRequestType LOCK_SCREEN_ICON_URL], - [SDLRequestType TRAFFIC_MESSAGE_CHANNEL], - [SDLRequestType DRIVER_PROFILE], - [SDLRequestType VOICE_SEARCH], - [SDLRequestType NAVIGATION], - [SDLRequestType PHONE], - [SDLRequestType CLIMATE], - [SDLRequestType SETTINGS], - [SDLRequestType VEHICLE_DIAGNOSTICS], - [SDLRequestType EMERGENCY], - [SDLRequestType MEDIA], - [SDLRequestType FOTA]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLResultSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLResultSpec.m deleted file mode 100644 index 916cb6155..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLResultSpec.m +++ /dev/null @@ -1,145 +0,0 @@ -// -// SDLResultSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLResult.h" - -QuickSpecBegin(SDLResultSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLResult SUCCESS].value).to(equal(@"SUCCESS")); - expect([SDLResult UNSUPPORTED_REQUEST].value).to(equal(@"UNSUPPORTED_REQUEST")); - expect([SDLResult UNSUPPORTED_RESOURCE].value).to(equal(@"UNSUPPORTED_RESOURCE")); - expect([SDLResult DISALLOWED].value).to(equal(@"DISALLOWED")); - expect([SDLResult REJECTED].value).to(equal(@"REJECTED")); - expect([SDLResult ABORTED].value).to(equal(@"ABORTED")); - expect([SDLResult IGNORED].value).to(equal(@"IGNORED")); - expect([SDLResult RETRY].value).to(equal(@"RETRY")); - expect([SDLResult IN_USE].value).to(equal(@"IN_USE")); - expect([SDLResult VEHICLE_DATA_NOT_AVAILABLE].value).to(equal(@"VEHICLE_DATA_NOT_AVAILABLE")); - expect([SDLResult TIMED_OUT].value).to(equal(@"TIMED_OUT")); - expect([SDLResult INVALID_DATA].value).to(equal(@"INVALID_DATA")); - expect([SDLResult CHAR_LIMIT_EXCEEDED].value).to(equal(@"CHAR_LIMIT_EXCEEDED")); - expect([SDLResult INVALID_ID].value).to(equal(@"INVALID_ID")); - expect([SDLResult DUPLICATE_NAME].value).to(equal(@"DUPLICATE_NAME")); - expect([SDLResult APPLICATION_NOT_REGISTERED].value).to(equal(@"APPLICATION_NOT_REGISTERED")); - expect([SDLResult WRONG_LANGUAGE].value).to(equal(@"WRONG_LANGUAGE")); - expect([SDLResult OUT_OF_MEMORY].value).to(equal(@"OUT_OF_MEMORY")); - expect([SDLResult TOO_MANY_PENDING_REQUESTS].value).to(equal(@"TOO_MANY_PENDING_REQUESTS")); - expect([SDLResult TOO_MANY_APPLICATIONS].value).to(equal(@"TOO_MANY_APPLICATIONS")); - expect([SDLResult APPLICATION_REGISTERED_ALREADY].value).to(equal(@"APPLICATION_REGISTERED_ALREADY")); - expect([SDLResult WARNINGS].value).to(equal(@"WARNINGS")); - expect([SDLResult GENERIC_ERROR].value).to(equal(@"GENERIC_ERROR")); - expect([SDLResult USER_DISALLOWED].value).to(equal(@"USER_DISALLOWED")); - expect([SDLResult UNSUPPORTED_VERSION].value).to(equal(@"UNSUPPORTED_VERSION")); - expect([SDLResult VEHICLE_DATA_NOT_ALLOWED].value).to(equal(@"VEHICLE_DATA_NOT_ALLOWED")); - expect([SDLResult FILE_NOT_FOUND].value).to(equal(@"FILE_NOT_FOUND")); - expect([SDLResult CANCEL_ROUTE].value).to(equal(@"CANCEL_ROUTE")); - expect([SDLResult TRUNCATED_DATA].value).to(equal(@"TRUNCATED_DATA")); - expect([SDLResult SAVED].value).to(equal(@"SAVED")); - expect([SDLResult INVALID_CERT].value).to(equal(@"INVALID_CERT")); - expect([SDLResult EXPIRED_CERT].value).to(equal(@"EXPIRED_CERT")); - expect([SDLResult RESUME_FAILED].value).to(equal(@"RESUME_FAILED")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLResult valueOf:@"SUCCESS"]).to(equal([SDLResult SUCCESS])); - expect([SDLResult valueOf:@"UNSUPPORTED_REQUEST"]).to(equal([SDLResult UNSUPPORTED_REQUEST])); - expect([SDLResult valueOf:@"UNSUPPORTED_RESOURCE"]).to(equal([SDLResult UNSUPPORTED_RESOURCE])); - expect([SDLResult valueOf:@"DISALLOWED"]).to(equal([SDLResult DISALLOWED])); - expect([SDLResult valueOf:@"REJECTED"]).to(equal([SDLResult REJECTED])); - expect([SDLResult valueOf:@"IGNORED"]).to(equal([SDLResult IGNORED])); - expect([SDLResult valueOf:@"RETRY"]).to(equal([SDLResult RETRY])); - expect([SDLResult valueOf:@"IN_USE"]).to(equal([SDLResult IN_USE])); - expect([SDLResult valueOf:@"VEHICLE_DATA_NOT_AVAILABLE"]).to(equal([SDLResult VEHICLE_DATA_NOT_AVAILABLE])); - expect([SDLResult valueOf:@"TIMED_OUT"]).to(equal([SDLResult TIMED_OUT])); - expect([SDLResult valueOf:@"INVALID_DATA"]).to(equal([SDLResult INVALID_DATA])); - expect([SDLResult valueOf:@"CHAR_LIMIT_EXCEEDED"]).to(equal([SDLResult CHAR_LIMIT_EXCEEDED])); - expect([SDLResult valueOf:@"INVALID_ID"]).to(equal([SDLResult INVALID_ID])); - expect([SDLResult valueOf:@"DUPLICATE_NAME"]).to(equal([SDLResult DUPLICATE_NAME])); - expect([SDLResult valueOf:@"APPLICATION_NOT_REGISTERED"]).to(equal([SDLResult APPLICATION_NOT_REGISTERED])); - expect([SDLResult valueOf:@"WRONG_LANGUAGE"]).to(equal([SDLResult WRONG_LANGUAGE])); - expect([SDLResult valueOf:@"OUT_OF_MEMORY"]).to(equal([SDLResult OUT_OF_MEMORY])); - expect([SDLResult valueOf:@"TOO_MANY_PENDING_REQUESTS"]).to(equal([SDLResult TOO_MANY_PENDING_REQUESTS])); - expect([SDLResult valueOf:@"TOO_MANY_APPLICATIONS"]).to(equal([SDLResult TOO_MANY_APPLICATIONS])); - expect([SDLResult valueOf:@"APPLICATION_REGISTERED_ALREADY"]).to(equal([SDLResult APPLICATION_REGISTERED_ALREADY])); - expect([SDLResult valueOf:@"WARNINGS"]).to(equal([SDLResult WARNINGS])); - expect([SDLResult valueOf:@"GENERIC_ERROR"]).to(equal([SDLResult GENERIC_ERROR])); - expect([SDLResult valueOf:@"USER_DISALLOWED"]).to(equal([SDLResult USER_DISALLOWED])); - expect([SDLResult valueOf:@"UNSUPPORTED_VERSION"]).to(equal([SDLResult UNSUPPORTED_VERSION])); - expect([SDLResult valueOf:@"VEHICLE_DATA_NOT_ALLOWED"]).to(equal([SDLResult VEHICLE_DATA_NOT_ALLOWED])); - expect([SDLResult valueOf:@"FILE_NOT_FOUND"]).to(equal([SDLResult FILE_NOT_FOUND])); - expect([SDLResult valueOf:@"CANCEL_ROUTE"]).to(equal([SDLResult CANCEL_ROUTE])); - expect([SDLResult valueOf:@"TRUNCATED_DATA"]).to(equal([SDLResult TRUNCATED_DATA])); - expect([SDLResult valueOf:@"SAVED"]).to(equal([SDLResult SAVED])); - expect([SDLResult valueOf:@"INVALID_CERT"]).to(equal([SDLResult INVALID_CERT])); - expect([SDLResult valueOf:@"EXPIRED_CERT"]).to(equal([SDLResult EXPIRED_CERT])); - expect([SDLResult valueOf:@"RESUME_FAILED"]).to(equal([SDLResult RESUME_FAILED])); -}); - - it(@"Should return nil when invalid", ^ { - expect([SDLResult valueOf:nil]).to(beNil()); - expect([SDLResult valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLResult values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLResult SUCCESS], - [SDLResult UNSUPPORTED_REQUEST], - [SDLResult UNSUPPORTED_RESOURCE], - [SDLResult DISALLOWED], - [SDLResult REJECTED], - [SDLResult ABORTED], - [SDLResult IGNORED], - [SDLResult RETRY], - [SDLResult IN_USE], - [SDLResult VEHICLE_DATA_NOT_AVAILABLE], - [SDLResult TIMED_OUT], - [SDLResult INVALID_DATA], - [SDLResult CHAR_LIMIT_EXCEEDED], - [SDLResult INVALID_ID], - [SDLResult DUPLICATE_NAME], - [SDLResult APPLICATION_NOT_REGISTERED], - [SDLResult WRONG_LANGUAGE], - [SDLResult OUT_OF_MEMORY], - [SDLResult TOO_MANY_PENDING_REQUESTS], - [SDLResult TOO_MANY_APPLICATIONS], - [SDLResult APPLICATION_REGISTERED_ALREADY], - [SDLResult WARNINGS], - [SDLResult GENERIC_ERROR], - [SDLResult USER_DISALLOWED], - [SDLResult UNSUPPORTED_VERSION], - [SDLResult VEHICLE_DATA_NOT_ALLOWED], - [SDLResult FILE_NOT_FOUND], - [SDLResult CANCEL_ROUTE], - [SDLResult TRUNCATED_DATA], - [SDLResult SAVED], - [SDLResult INVALID_CERT], - [SDLResult EXPIRED_CERT], - [SDLResult RESUME_FAILED]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSamplingRateSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSamplingRateSpec.m deleted file mode 100644 index 1d4e56611..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSamplingRateSpec.m +++ /dev/null @@ -1,59 +0,0 @@ -// -// SDLSamplingRateSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSamplingRate.h" - -QuickSpecBegin(SDLSamplingRateSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLSamplingRate _8KHZ].value).to(equal(@"8KHZ")); - expect([SDLSamplingRate _16KHZ].value).to(equal(@"16KHZ")); - expect([SDLSamplingRate _22KHZ].value).to(equal(@"22KHZ")); - expect([SDLSamplingRate _44KHZ].value).to(equal(@"44KHZ")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLSamplingRate valueOf:@"8KHZ"]).to(equal([SDLSamplingRate _8KHZ])); - expect([SDLSamplingRate valueOf:@"16KHZ"]).to(equal([SDLSamplingRate _16KHZ])); - expect([SDLSamplingRate valueOf:@"22KHZ"]).to(equal([SDLSamplingRate _22KHZ])); - expect([SDLSamplingRate valueOf:@"44KHZ"]).to(equal([SDLSamplingRate _44KHZ])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLSamplingRate valueOf:nil]).to(beNil()); - expect([SDLSamplingRate valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLSamplingRate values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLSamplingRate _8KHZ], - [SDLSamplingRate _16KHZ], - [SDLSamplingRate _22KHZ], - [SDLSamplingRate _44KHZ]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSoftButtonTypeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSoftButtonTypeSpec.m deleted file mode 100644 index 6960fa1b1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSoftButtonTypeSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLSoftButtonTypeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSoftButtonType.h" - -QuickSpecBegin(SDLSoftButtonTypeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLSoftButtonType TEXT].value).to(equal(@"TEXT")); - expect([SDLSoftButtonType IMAGE].value).to(equal(@"IMAGE")); - expect([SDLSoftButtonType BOTH].value).to(equal(@"BOTH")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLSoftButtonType valueOf:@"TEXT"]).to(equal([SDLSoftButtonType TEXT])); - expect([SDLSoftButtonType valueOf:@"IMAGE"]).to(equal([SDLSoftButtonType IMAGE])); - expect([SDLSoftButtonType valueOf:@"BOTH"]).to(equal([SDLSoftButtonType BOTH])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLSoftButtonType valueOf:nil]).to(beNil()); - expect([SDLSoftButtonType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLSoftButtonType values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLSoftButtonType TEXT], - [SDLSoftButtonType IMAGE], - [SDLSoftButtonType BOTH]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSpeechCapabilitiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSpeechCapabilitiesSpec.m deleted file mode 100644 index c33de9c8c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSpeechCapabilitiesSpec.m +++ /dev/null @@ -1,62 +0,0 @@ -// -// SDLSpeechCapabilitiesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSpeechCapabilities.h" - -QuickSpecBegin(SDLSpeechCapabilitiesSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLSpeechCapabilities TEXT].value).to(equal(@"TEXT")); - expect([SDLSpeechCapabilities SAPI_PHONEMES].value).to(equal(@"SAPI_PHONEMES")); - expect([SDLSpeechCapabilities LHPLUS_PHONEMES].value).to(equal(@"LHPLUS_PHONEMES")); - expect([SDLSpeechCapabilities PRE_RECORDED].value).to(equal(@"PRE_RECORDED")); - expect([SDLSpeechCapabilities SILENCE].value).to(equal(@"SILENCE")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLSpeechCapabilities valueOf:@"TEXT"]).to(equal([SDLSpeechCapabilities TEXT])); - expect([SDLSpeechCapabilities valueOf:@"SAPI_PHONEMES"]).to(equal([SDLSpeechCapabilities SAPI_PHONEMES])); - expect([SDLSpeechCapabilities valueOf:@"LHPLUS_PHONEMES"]).to(equal([SDLSpeechCapabilities LHPLUS_PHONEMES])); - expect([SDLSpeechCapabilities valueOf:@"PRE_RECORDED"]).to(equal([SDLSpeechCapabilities PRE_RECORDED])); - expect([SDLSpeechCapabilities valueOf:@"SILENCE"]).to(equal([SDLSpeechCapabilities SILENCE])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLSpeechCapabilities valueOf:nil]).to(beNil()); - expect([SDLSpeechCapabilities valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLSpeechCapabilities values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLSpeechCapabilities TEXT], - [SDLSpeechCapabilities SAPI_PHONEMES], - [SDLSpeechCapabilities LHPLUS_PHONEMES], - [SDLSpeechCapabilities PRE_RECORDED], - [SDLSpeechCapabilities SILENCE]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemAction.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemAction.m deleted file mode 100644 index 917e1acb6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemAction.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLSystemActionSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSystemAction.h" - -QuickSpecBegin(SDLSystemActionSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLSystemAction DEFAULT_ACTION].value).to(equal(@"DEFAULT_ACTION")); - expect([SDLSystemAction STEAL_FOCUS].value).to(equal(@"STEAL_FOCUS")); - expect([SDLSystemAction KEEP_CONTEXT].value).to(equal(@"KEEP_CONTEXT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLSystemAction valueOf:@"DEFAULT_ACTION"]).to(equal([SDLSystemAction DEFAULT_ACTION])); - expect([SDLSystemAction valueOf:@"STEAL_FOCUS"]).to(equal([SDLSystemAction STEAL_FOCUS])); - expect([SDLSystemAction valueOf:@"KEEP_CONTEXT"]).to(equal([SDLSystemAction KEEP_CONTEXT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLSystemAction valueOf:nil]).to(beNil()); - expect([SDLSystemAction valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLSystemAction values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLSystemAction DEFAULT_ACTION], - [SDLSystemAction STEAL_FOCUS], - [SDLSystemAction KEEP_CONTEXT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemContextSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemContextSpec.m deleted file mode 100644 index 694247a1d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemContextSpec.m +++ /dev/null @@ -1,62 +0,0 @@ -// -// SDLSystemContextSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSystemContext.h" - -QuickSpecBegin(SDLSystemContextSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLSystemContext MAIN].value).to(equal(@"MAIN")); - expect([SDLSystemContext VRSESSION].value).to(equal(@"VRSESSION")); - expect([SDLSystemContext MENU].value).to(equal(@"MENU")); - expect([SDLSystemContext HMI_OBSCURED].value).to(equal(@"HMI_OBSCURED")); - expect([SDLSystemContext ALERT].value).to(equal(@"ALERT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLSystemContext valueOf:@"MAIN"]).to(equal([SDLSystemContext MAIN])); - expect([SDLSystemContext valueOf:@"VRSESSION"]).to(equal([SDLSystemContext VRSESSION])); - expect([SDLSystemContext valueOf:@"MENU"]).to(equal([SDLSystemContext MENU])); - expect([SDLSystemContext valueOf:@"HMI_OBSCURED"]).to(equal([SDLSystemContext HMI_OBSCURED])); - expect([SDLSystemContext valueOf:@"ALERT"]).to(equal([SDLSystemContext ALERT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLSystemContext valueOf:nil]).to(beNil()); - expect([SDLSystemContext valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLSystemContext values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLSystemContext MAIN], - [SDLSystemContext VRSESSION], - [SDLSystemContext MENU], - [SDLSystemContext HMI_OBSCURED], - [SDLSystemContext ALERT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTBTStateSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTBTStateSpec.m deleted file mode 100644 index 070986389..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTBTStateSpec.m +++ /dev/null @@ -1,77 +0,0 @@ -// -// SDLTBTStateSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLTBTState.h" - -QuickSpecBegin(SDLTBTStateSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLTBTState ROUTE_UPDATE_REQUEST].value).to(equal(@"ROUTE_UPDATE_REQUEST")); - expect([SDLTBTState ROUTE_ACCEPTED].value).to(equal(@"ROUTE_ACCEPTED")); - expect([SDLTBTState ROUTE_REFUSED].value).to(equal(@"ROUTE_REFUSED")); - expect([SDLTBTState ROUTE_CANCELLED].value).to(equal(@"ROUTE_CANCELLED")); - expect([SDLTBTState ETA_REQUEST].value).to(equal(@"ETA_REQUEST")); - expect([SDLTBTState NEXT_TURN_REQUEST].value).to(equal(@"NEXT_TURN_REQUEST")); - expect([SDLTBTState ROUTE_STATUS_REQUEST].value).to(equal(@"ROUTE_STATUS_REQUEST")); - expect([SDLTBTState ROUTE_SUMMARY_REQUEST].value).to(equal(@"ROUTE_SUMMARY_REQUEST")); - expect([SDLTBTState TRIP_STATUS_REQUEST].value).to(equal(@"TRIP_STATUS_REQUEST")); - expect([SDLTBTState ROUTE_UPDATE_REQUEST_TIMEOUT].value).to(equal(@"ROUTE_UPDATE_REQUEST_TIMEOUT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLTBTState valueOf:@"ROUTE_UPDATE_REQUEST"]).to(equal([SDLTBTState ROUTE_UPDATE_REQUEST])); - expect([SDLTBTState valueOf:@"ROUTE_ACCEPTED"]).to(equal([SDLTBTState ROUTE_ACCEPTED])); - expect([SDLTBTState valueOf:@"ROUTE_REFUSED"]).to(equal([SDLTBTState ROUTE_REFUSED])); - expect([SDLTBTState valueOf:@"ROUTE_CANCELLED"]).to(equal([SDLTBTState ROUTE_CANCELLED])); - expect([SDLTBTState valueOf:@"ETA_REQUEST"]).to(equal([SDLTBTState ETA_REQUEST])); - expect([SDLTBTState valueOf:@"NEXT_TURN_REQUEST"]).to(equal([SDLTBTState NEXT_TURN_REQUEST])); - expect([SDLTBTState valueOf:@"ROUTE_STATUS_REQUEST"]).to(equal([SDLTBTState ROUTE_STATUS_REQUEST])); - expect([SDLTBTState valueOf:@"ROUTE_SUMMARY_REQUEST"]).to(equal([SDLTBTState ROUTE_SUMMARY_REQUEST])); - expect([SDLTBTState valueOf:@"TRIP_STATUS_REQUEST"]).to(equal([SDLTBTState TRIP_STATUS_REQUEST])); - expect([SDLTBTState valueOf:@"ROUTE_UPDATE_REQUEST_TIMEOUT"]).to(equal([SDLTBTState ROUTE_UPDATE_REQUEST_TIMEOUT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLTBTState valueOf:nil]).to(beNil()); - expect([SDLTBTState valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLTBTState values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLTBTState ROUTE_UPDATE_REQUEST], - [SDLTBTState ROUTE_ACCEPTED], - [SDLTBTState ROUTE_REFUSED], - [SDLTBTState ROUTE_CANCELLED], - [SDLTBTState ETA_REQUEST], - [SDLTBTState NEXT_TURN_REQUEST], - [SDLTBTState ROUTE_STATUS_REQUEST], - [SDLTBTState ROUTE_SUMMARY_REQUEST], - [SDLTBTState TRIP_STATUS_REQUEST], - [SDLTBTState ROUTE_UPDATE_REQUEST_TIMEOUT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextAlignmentSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextAlignmentSpec.m deleted file mode 100644 index 06082c576..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextAlignmentSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLTextAlignmentSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLTextAlignment.h" - -QuickSpecBegin(SDLTextAlignmentSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLTextAlignment LEFT_ALIGNED].value).to(equal(@"LEFT_ALIGNED")); - expect([SDLTextAlignment RIGHT_ALIGNED].value).to(equal(@"RIGHT_ALIGNED")); - expect([SDLTextAlignment CENTERED].value).to(equal(@"CENTERED")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLTextAlignment valueOf:@"LEFT_ALIGNED"]).to(equal([SDLTextAlignment LEFT_ALIGNED])); - expect([SDLTextAlignment valueOf:@"RIGHT_ALIGNED"]).to(equal([SDLTextAlignment RIGHT_ALIGNED])); - expect([SDLTextAlignment valueOf:@"CENTERED"]).to(equal([SDLTextAlignment CENTERED])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLTextAlignment valueOf:nil]).to(beNil()); - expect([SDLTextAlignment valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLTextAlignment values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLTextAlignment LEFT_ALIGNED], - [SDLTextAlignment RIGHT_ALIGNED], - [SDLTextAlignment CENTERED]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextFieldNameSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextFieldNameSpec.m deleted file mode 100644 index 40be02374..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextFieldNameSpec.m +++ /dev/null @@ -1,133 +0,0 @@ -// -// SDLTextFieldNameSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLTextFieldName.h" - -QuickSpecBegin(SDLTextFieldNameSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLTextFieldName mainField1].value).to(equal(@"mainField1")); - expect([SDLTextFieldName mainField2].value).to(equal(@"mainField2")); - expect([SDLTextFieldName mainField3].value).to(equal(@"mainField3")); - expect([SDLTextFieldName mainField4].value).to(equal(@"mainField4")); - expect([SDLTextFieldName statusBar].value).to(equal(@"statusBar")); - expect([SDLTextFieldName mediaClock].value).to(equal(@"mediaClock")); - expect([SDLTextFieldName mediaTrack].value).to(equal(@"mediaTrack")); - expect([SDLTextFieldName alertText1].value).to(equal(@"alertText1")); - expect([SDLTextFieldName alertText2].value).to(equal(@"alertText2")); - expect([SDLTextFieldName alertText3].value).to(equal(@"alertText3")); - expect([SDLTextFieldName scrollableMessageBody].value).to(equal(@"scrollableMessageBody")); - expect([SDLTextFieldName initialInteractionText].value).to(equal(@"initialInteractionText")); - expect([SDLTextFieldName navigationText1].value).to(equal(@"navigationText1")); - expect([SDLTextFieldName navigationText2].value).to(equal(@"navigationText2")); - expect([SDLTextFieldName ETA].value).to(equal(@"ETA")); - expect([SDLTextFieldName totalDistance].value).to(equal(@"totalDistance")); - expect([SDLTextFieldName audioPassThruDisplayText1].value).to(equal(@"audioPassThruDisplayText1")); - expect([SDLTextFieldName audioPassThruDisplayText2].value).to(equal(@"audioPassThruDisplayText2")); - expect([SDLTextFieldName sliderHeader].value).to(equal(@"sliderHeader")); - expect([SDLTextFieldName sliderFooter].value).to(equal(@"sliderFooter")); - expect([SDLTextFieldName menuName].value).to(equal(@"menuName")); - expect([SDLTextFieldName secondaryText].value).to(equal(@"secondaryText")); - expect([SDLTextFieldName tertiaryText].value).to(equal(@"tertiaryText")); - expect([SDLTextFieldName menuTitle].value).to(equal(@"menuTitle")); - expect([SDLTextFieldName locationName].value).to(equal(@"locationName")); - expect([SDLTextFieldName locationDescription].value).to(equal(@"locationDescription")); - expect([SDLTextFieldName addressLines].value).to(equal(@"addressLines")); - expect([SDLTextFieldName phoneNumber].value).to(equal(@"phoneNumber")); - }); -}); - -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLTextFieldName valueOf:@"mainField1"]).to(equal([SDLTextFieldName mainField1])); - expect([SDLTextFieldName valueOf:@"mainField2"]).to(equal([SDLTextFieldName mainField2])); - expect([SDLTextFieldName valueOf:@"mainField3"]).to(equal([SDLTextFieldName mainField3])); - expect([SDLTextFieldName valueOf:@"mainField4"]).to(equal([SDLTextFieldName mainField4])); - expect([SDLTextFieldName valueOf:@"statusBar"]).to(equal([SDLTextFieldName statusBar])); - expect([SDLTextFieldName valueOf:@"mediaClock"]).to(equal([SDLTextFieldName mediaClock])); - expect([SDLTextFieldName valueOf:@"mediaTrack"]).to(equal([SDLTextFieldName mediaTrack])); - expect([SDLTextFieldName valueOf:@"alertText1"]).to(equal([SDLTextFieldName alertText1])); - expect([SDLTextFieldName valueOf:@"alertText2"]).to(equal([SDLTextFieldName alertText2])); - expect([SDLTextFieldName valueOf:@"alertText3"]).to(equal([SDLTextFieldName alertText3])); - expect([SDLTextFieldName valueOf:@"scrollableMessageBody"]).to(equal([SDLTextFieldName scrollableMessageBody])); - expect([SDLTextFieldName valueOf:@"initialInteractionText"]).to(equal([SDLTextFieldName initialInteractionText])); - expect([SDLTextFieldName valueOf:@"navigationText1"]).to(equal([SDLTextFieldName navigationText1])); - expect([SDLTextFieldName valueOf:@"navigationText2"]).to(equal([SDLTextFieldName navigationText2])); - expect([SDLTextFieldName valueOf:@"ETA"]).to(equal([SDLTextFieldName ETA])); - expect([SDLTextFieldName valueOf:@"totalDistance"]).to(equal([SDLTextFieldName totalDistance])); - expect([SDLTextFieldName valueOf:@"audioPassThruDisplayText1"]).to(equal([SDLTextFieldName audioPassThruDisplayText1])); - expect([SDLTextFieldName valueOf:@"audioPassThruDisplayText2"]).to(equal([SDLTextFieldName audioPassThruDisplayText2])); - expect([SDLTextFieldName valueOf:@"sliderHeader"]).to(equal([SDLTextFieldName sliderHeader])); - expect([SDLTextFieldName valueOf:@"sliderFooter"]).to(equal([SDLTextFieldName sliderFooter])); - expect([SDLTextFieldName valueOf:@"menuName"]).to(equal([SDLTextFieldName menuName])); - expect([SDLTextFieldName valueOf:@"secondaryText"]).to(equal([SDLTextFieldName secondaryText])); - expect([SDLTextFieldName valueOf:@"tertiaryText"]).to(equal([SDLTextFieldName tertiaryText])); - expect([SDLTextFieldName valueOf:@"menuTitle"]).to(equal([SDLTextFieldName menuTitle])); - expect([SDLTextFieldName valueOf:@"locationName"]).to(equal([SDLTextFieldName locationName])); - expect([SDLTextFieldName valueOf:@"locationDescription"]).to(equal([SDLTextFieldName locationDescription])); - expect([SDLTextFieldName valueOf:@"addressLines"]).to(equal([SDLTextFieldName addressLines])); - expect([SDLTextFieldName valueOf:@"phoneNumber"]).to(equal([SDLTextFieldName phoneNumber])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLTextFieldName valueOf:nil]).to(beNil()); - expect([SDLTextFieldName valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); - -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLTextFieldName values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLTextFieldName mainField1], - [SDLTextFieldName mainField2], - [SDLTextFieldName mainField3], - [SDLTextFieldName mainField4], - [SDLTextFieldName statusBar], - [SDLTextFieldName mediaClock], - [SDLTextFieldName mediaTrack], - [SDLTextFieldName alertText1], - [SDLTextFieldName alertText2], - [SDLTextFieldName alertText3], - [SDLTextFieldName scrollableMessageBody], - [SDLTextFieldName initialInteractionText], - [SDLTextFieldName navigationText1], - [SDLTextFieldName navigationText2], - [SDLTextFieldName ETA], - [SDLTextFieldName totalDistance], - [SDLTextFieldName audioPassThruDisplayText1], - [SDLTextFieldName audioPassThruDisplayText2], - [SDLTextFieldName sliderHeader], - [SDLTextFieldName sliderFooter], - [SDLTextFieldName menuName], - [SDLTextFieldName secondaryText], - [SDLTextFieldName tertiaryText], - [SDLTextFieldName menuTitle], - [SDLTextFieldName locationName], - [SDLTextFieldName locationDescription], - [SDLTextFieldName addressLines], - [SDLTextFieldName phoneNumber]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTimerModeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTimerModeSpec.m deleted file mode 100644 index 0bb0a7448..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTimerModeSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLTimerModeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLTimerMode.h" - -QuickSpecBegin(SDLTimerModeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLTimerMode UP].value).to(equal(@"UP")); - expect([SDLTimerMode DOWN].value).to(equal(@"DOWN")); - expect([SDLTimerMode NONE].value).to(equal(@"NONE")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLTimerMode valueOf:@"UP"]).to(equal([SDLTimerMode UP])); - expect([SDLTimerMode valueOf:@"DOWN"]).to(equal([SDLTimerMode DOWN])); - expect([SDLTimerMode valueOf:@"NONE"]).to(equal([SDLTimerMode NONE])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLTimerMode valueOf:nil]).to(beNil()); - expect([SDLTimerMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLTimerMode values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLTimerMode UP], - [SDLTimerMode DOWN], - [SDLTimerMode NONE]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTouchTypeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTouchTypeSpec.m deleted file mode 100644 index dc72c74b2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTouchTypeSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLTouchTypeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLTouchType.h" - -QuickSpecBegin(SDLTouchTypeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLTouchType BEGIN].value).to(equal(@"BEGIN")); - expect([SDLTouchType MOVE].value).to(equal(@"MOVE")); - expect([SDLTouchType END].value).to(equal(@"END")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLTouchType valueOf:@"BEGIN"]).to(equal([SDLTouchType BEGIN])); - expect([SDLTouchType valueOf:@"MOVE"]).to(equal([SDLTouchType MOVE])); - expect([SDLTouchType valueOf:@"END"]).to(equal([SDLTouchType END])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLTouchType valueOf:nil]).to(beNil()); - expect([SDLTouchType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLTouchType values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLTouchType BEGIN], - [SDLTouchType MOVE], - [SDLTouchType END]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTriggerSource.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTriggerSource.m deleted file mode 100644 index 1a1413f54..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTriggerSource.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLTriggerSourceSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLTriggerSource.h" - -QuickSpecBegin(SDLTriggerSourceSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLTriggerSource MENU].value).to(equal(@"MENU")); - expect([SDLTriggerSource VR].value).to(equal(@"VR")); - expect([SDLTriggerSource KEYBOARD].value).to(equal(@"KEYBOARD")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLTriggerSource valueOf:@"MENU"]).to(equal([SDLTriggerSource MENU])); - expect([SDLTriggerSource valueOf:@"VR"]).to(equal([SDLTriggerSource VR])); - expect([SDLTriggerSource valueOf:@"KEYBOARD"]).to(equal([SDLTriggerSource KEYBOARD])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLTriggerSource valueOf:nil]).to(beNil()); - expect([SDLTriggerSource valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLTriggerSource values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLTriggerSource MENU], - [SDLTriggerSource VR], - [SDLTriggerSource KEYBOARD]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLUpdateModeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLUpdateModeSpec.m deleted file mode 100644 index 23c8bb5a5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLUpdateModeSpec.m +++ /dev/null @@ -1,62 +0,0 @@ -// -// SDLUpdateModeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLUpdateMode.h" - -QuickSpecBegin(SDLUpdateModeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLUpdateMode COUNTUP].value).to(equal(@"COUNTUP")); - expect([SDLUpdateMode COUNTDOWN].value).to(equal(@"COUNTDOWN")); - expect([SDLUpdateMode PAUSE].value).to(equal(@"PAUSE")); - expect([SDLUpdateMode RESUME].value).to(equal(@"RESUME")); - expect([SDLUpdateMode CLEAR].value).to(equal(@"CLEAR")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLUpdateMode valueOf:@"COUNTUP"]).to(equal([SDLUpdateMode COUNTUP])); - expect([SDLUpdateMode valueOf:@"COUNTDOWN"]).to(equal([SDLUpdateMode COUNTDOWN])); - expect([SDLUpdateMode valueOf:@"PAUSE"]).to(equal([SDLUpdateMode PAUSE])); - expect([SDLUpdateMode valueOf:@"RESUME"]).to(equal([SDLUpdateMode RESUME])); - expect([SDLUpdateMode valueOf:@"CLEAR"]).to(equal([SDLUpdateMode CLEAR])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLUpdateMode valueOf:nil]).to(beNil()); - expect([SDLUpdateMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLUpdateMode values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLUpdateMode COUNTUP], - [SDLUpdateMode COUNTDOWN], - [SDLUpdateMode PAUSE], - [SDLUpdateMode RESUME], - [SDLUpdateMode CLEAR]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataActiveStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataActiveStatusSpec.m deleted file mode 100644 index 46c2cd927..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataActiveStatusSpec.m +++ /dev/null @@ -1,62 +0,0 @@ -// -// SDLVehicleDataActiveStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLVehicleDataActiveStatus.h" - -QuickSpecBegin(SDLVehicleDataActiveStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLVehicleDataActiveStatus INACTIVE_NOT_CONFIRMED].value).to(equal(@"INACTIVE_NOT_CONFIRMED")); - expect([SDLVehicleDataActiveStatus INACTIVE_CONFIRMED].value).to(equal(@"INACTIVE_CONFIRMED")); - expect([SDLVehicleDataActiveStatus ACTIVE_NOT_CONFIRMED].value).to(equal(@"ACTIVE_NOT_CONFIRMED")); - expect([SDLVehicleDataActiveStatus ACTIVE_CONFIRMED].value).to(equal(@"ACTIVE_CONFIRMED")); - expect([SDLVehicleDataActiveStatus FAULT].value).to(equal(@"FAULT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLVehicleDataActiveStatus valueOf:@"INACTIVE_NOT_CONFIRMED"]).to(equal([SDLVehicleDataActiveStatus INACTIVE_NOT_CONFIRMED])); - expect([SDLVehicleDataActiveStatus valueOf:@"INACTIVE_CONFIRMED"]).to(equal([SDLVehicleDataActiveStatus INACTIVE_CONFIRMED])); - expect([SDLVehicleDataActiveStatus valueOf:@"ACTIVE_NOT_CONFIRMED"]).to(equal([SDLVehicleDataActiveStatus ACTIVE_NOT_CONFIRMED])); - expect([SDLVehicleDataActiveStatus valueOf:@"ACTIVE_CONFIRMED"]).to(equal([SDLVehicleDataActiveStatus ACTIVE_CONFIRMED])); - expect([SDLVehicleDataActiveStatus valueOf:@"FAULT"]).to(equal([SDLVehicleDataActiveStatus FAULT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLVehicleDataActiveStatus valueOf:nil]).to(beNil()); - expect([SDLVehicleDataActiveStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLVehicleDataActiveStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLVehicleDataActiveStatus INACTIVE_NOT_CONFIRMED], - [SDLVehicleDataActiveStatus INACTIVE_CONFIRMED], - [SDLVehicleDataActiveStatus ACTIVE_NOT_CONFIRMED], - [SDLVehicleDataActiveStatus ACTIVE_CONFIRMED], - [SDLVehicleDataActiveStatus FAULT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataEventStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataEventStatusSpec.m deleted file mode 100644 index 452404231..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataEventStatusSpec.m +++ /dev/null @@ -1,62 +0,0 @@ -// -// SDLVehicleDataEventStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLVehicleDataEventStatus.h" - -QuickSpecBegin(SDLVehicleDataEventStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLVehicleDataEventStatus NO_EVENT].value).to(equal(@"NO_EVENT")); - expect([SDLVehicleDataEventStatus _NO].value).to(equal(@"NO")); - expect([SDLVehicleDataEventStatus _YES].value).to(equal(@"YES")); - expect([SDLVehicleDataEventStatus NOT_SUPPORTED].value).to(equal(@"NOT_SUPPORTED")); - expect([SDLVehicleDataEventStatus FAULT].value).to(equal(@"FAULT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLVehicleDataEventStatus valueOf:@"NO_EVENT"]).to(equal([SDLVehicleDataEventStatus NO_EVENT])); - expect([SDLVehicleDataEventStatus valueOf:@"NO"]).to(equal([SDLVehicleDataEventStatus _NO])); - expect([SDLVehicleDataEventStatus valueOf:@"YES"]).to(equal([SDLVehicleDataEventStatus _YES])); - expect([SDLVehicleDataEventStatus valueOf:@"NOT_SUPPORTED"]).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); - expect([SDLVehicleDataEventStatus valueOf:@"FAULT"]).to(equal([SDLVehicleDataEventStatus FAULT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLVehicleDataEventStatus valueOf:nil]).to(beNil()); - expect([SDLVehicleDataEventStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLVehicleDataEventStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLVehicleDataEventStatus NO_EVENT], - [SDLVehicleDataEventStatus _NO], - [SDLVehicleDataEventStatus _YES], - [SDLVehicleDataEventStatus NOT_SUPPORTED], - [SDLVehicleDataEventStatus FAULT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataNotificationStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataNotificationStatusSpec.m deleted file mode 100644 index 6edf13783..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataNotificationStatusSpec.m +++ /dev/null @@ -1,60 +0,0 @@ -// -// SDLVehicleDataNotificationStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLVehicleDataNotificationStatus.h" - -QuickSpecBegin(SDLVehicleDataNotificationStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLVehicleDataNotificationStatus NOT_SUPPORTED].value).to(equal(@"NOT_SUPPORTED")); - expect([SDLVehicleDataNotificationStatus NORMAL].value).to(equal(@"NORMAL")); - expect([SDLVehicleDataNotificationStatus ACTIVE].value).to(equal(@"ACTIVE")); - expect([SDLVehicleDataNotificationStatus NOT_USED].value).to(equal(@"NOT_USED")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLVehicleDataNotificationStatus valueOf:@"NOT_SUPPORTED"]).to(equal([SDLVehicleDataNotificationStatus NOT_SUPPORTED])); - expect([SDLVehicleDataNotificationStatus valueOf:@"NORMAL"]).to(equal([SDLVehicleDataNotificationStatus NORMAL])); - expect([SDLVehicleDataNotificationStatus valueOf:@"ACTIVE"]).to(equal([SDLVehicleDataNotificationStatus ACTIVE])); - expect([SDLVehicleDataNotificationStatus valueOf:@"NOT_USED"]).to(equal([SDLVehicleDataNotificationStatus NOT_USED])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLVehicleDataNotificationStatus valueOf:nil]).to(beNil()); - expect([SDLVehicleDataNotificationStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLVehicleDataNotificationStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLVehicleDataNotificationStatus NOT_SUPPORTED], - [SDLVehicleDataNotificationStatus NORMAL], - [SDLVehicleDataNotificationStatus ACTIVE], - [SDLVehicleDataNotificationStatus NOT_USED]] copy]; - - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataResultCodeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataResultCodeSpec.m deleted file mode 100644 index be09e2495..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataResultCodeSpec.m +++ /dev/null @@ -1,74 +0,0 @@ -// -// SDLVehicleDataResultCodeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLVehicleDataResultCode.h" - -QuickSpecBegin(SDLVehicleDataResultCodeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLVehicleDataResultCode SUCCESS].value).to(equal(@"SUCCESS")); - expect([SDLVehicleDataResultCode TRUNCATED_DATA].value).to(equal(@"TRUNCATED_DATA")); - expect([SDLVehicleDataResultCode DISALLOWED].value).to(equal(@"DISALLOWED")); - expect([SDLVehicleDataResultCode USER_DISALLOWED].value).to(equal(@"USER_DISALLOWED")); - expect([SDLVehicleDataResultCode INVALID_ID].value).to(equal(@"INVALID_ID")); - expect([SDLVehicleDataResultCode VEHICLE_DATA_NOT_AVAILABLE].value).to(equal(@"VEHICLE_DATA_NOT_AVAILABLE")); - expect([SDLVehicleDataResultCode DATA_ALREADY_SUBSCRIBED].value).to(equal(@"DATA_ALREADY_SUBSCRIBED")); - expect([SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED].value).to(equal(@"DATA_NOT_SUBSCRIBED")); - expect([SDLVehicleDataResultCode IGNORED].value).to(equal(@"IGNORED")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLVehicleDataResultCode valueOf:@"SUCCESS"]).to(equal([SDLVehicleDataResultCode SUCCESS])); - expect([SDLVehicleDataResultCode valueOf:@"TRUNCATED_DATA"]).to(equal([SDLVehicleDataResultCode TRUNCATED_DATA])); - expect([SDLVehicleDataResultCode valueOf:@"DISALLOWED"]).to(equal([SDLVehicleDataResultCode DISALLOWED])); - expect([SDLVehicleDataResultCode valueOf:@"USER_DISALLOWED"]).to(equal([SDLVehicleDataResultCode USER_DISALLOWED])); - expect([SDLVehicleDataResultCode valueOf:@"INVALID_ID"]).to(equal([SDLVehicleDataResultCode INVALID_ID])); - expect([SDLVehicleDataResultCode valueOf:@"VEHICLE_DATA_NOT_AVAILABLE"]).to(equal([SDLVehicleDataResultCode VEHICLE_DATA_NOT_AVAILABLE])); - expect([SDLVehicleDataResultCode valueOf:@"DATA_ALREADY_SUBSCRIBED"]).to(equal([SDLVehicleDataResultCode DATA_ALREADY_SUBSCRIBED])); - expect([SDLVehicleDataResultCode valueOf:@"DATA_NOT_SUBSCRIBED"]).to(equal([SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED])); - expect([SDLVehicleDataResultCode valueOf:@"IGNORED"]).to(equal([SDLVehicleDataResultCode IGNORED])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLVehicleDataResultCode valueOf:nil]).to(beNil()); - expect([SDLVehicleDataResultCode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLVehicleDataResultCode values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLVehicleDataResultCode SUCCESS], - [SDLVehicleDataResultCode TRUNCATED_DATA], - [SDLVehicleDataResultCode DISALLOWED], - [SDLVehicleDataResultCode USER_DISALLOWED], - [SDLVehicleDataResultCode INVALID_ID], - [SDLVehicleDataResultCode VEHICLE_DATA_NOT_AVAILABLE], - [SDLVehicleDataResultCode DATA_ALREADY_SUBSCRIBED], - [SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED], - [SDLVehicleDataResultCode IGNORED]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataStatusSpec.m deleted file mode 100644 index 997837562..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataStatusSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLVehicleDataStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLVehicleDataStatus.h" - -QuickSpecBegin(SDLVehicleDataStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLVehicleDataStatus NO_DATA_EXISTS].value).to(equal(@"NO_DATA_EXISTS")); - expect([SDLVehicleDataStatus OFF].value).to(equal(@"OFF")); - expect([SDLVehicleDataStatus ON].value).to(equal(@"ON")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLVehicleDataStatus valueOf:@"NO_DATA_EXISTS"]).to(equal([SDLVehicleDataStatus NO_DATA_EXISTS])); - expect([SDLVehicleDataStatus valueOf:@"OFF"]).to(equal([SDLVehicleDataStatus OFF])); - expect([SDLVehicleDataStatus valueOf:@"ON"]).to(equal([SDLVehicleDataStatus ON])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLVehicleDataStatus valueOf:nil]).to(beNil()); - expect([SDLVehicleDataStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLVehicleDataStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLVehicleDataStatus NO_DATA_EXISTS], - [SDLVehicleDataStatus OFF], - [SDLVehicleDataStatus ON]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataTypeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataTypeSpec.m deleted file mode 100644 index c11e93a7f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataTypeSpec.m +++ /dev/null @@ -1,125 +0,0 @@ -// -// SDLVehicleDataTypeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLVehicleDataType.h" - -QuickSpecBegin(SDLVehicleDataTypeSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLVehicleDataType VEHICLEDATA_GPS].value).to(equal(@"VEHICLEDATA_GPS")); - expect([SDLVehicleDataType VEHICLEDATA_SPEED].value).to(equal(@"VEHICLEDATA_SPEED")); - expect([SDLVehicleDataType VEHICLEDATA_RPM].value).to(equal(@"VEHICLEDATA_RPM")); - expect([SDLVehicleDataType VEHICLEDATA_FUELLEVEL].value).to(equal(@"VEHICLEDATA_FUELLEVEL")); - expect([SDLVehicleDataType VEHICLEDATA_FUELLEVEL_STATE].value).to(equal(@"VEHICLEDATA_FUELLEVEL_STATE")); - expect([SDLVehicleDataType VEHICLEDATA_FUELCONSUMPTION].value).to(equal(@"VEHICLEDATA_FUELCONSUMPTION")); - expect([SDLVehicleDataType VEHICLEDATA_EXTERNTEMP].value).to(equal(@"VEHICLEDATA_EXTERNTEMP")); - expect([SDLVehicleDataType VEHICLEDATA_VIN].value).to(equal(@"VEHICLEDATA_VIN")); - expect([SDLVehicleDataType VEHICLEDATA_PRNDL].value).to(equal(@"VEHICLEDATA_PRNDL")); - expect([SDLVehicleDataType VEHICLEDATA_TIREPRESSURE].value).to(equal(@"VEHICLEDATA_TIREPRESSURE")); - expect([SDLVehicleDataType VEHICLEDATA_ODOMETER].value).to(equal(@"VEHICLEDATA_ODOMETER")); - expect([SDLVehicleDataType VEHICLEDATA_BELTSTATUS].value).to(equal(@"VEHICLEDATA_BELTSTATUS")); - expect([SDLVehicleDataType VEHICLEDATA_BODYINFO].value).to(equal(@"VEHICLEDATA_BODYINFO")); - expect([SDLVehicleDataType VEHICLEDATA_DEVICESTATUS].value).to(equal(@"VEHICLEDATA_DEVICESTATUS")); - expect([SDLVehicleDataType VEHICLEDATA_ECALLINFO].value).to(equal(@"VEHICLEDATA_ECALLINFO")); - expect([SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS].value).to(equal(@"VEHICLEDATA_AIRBAGSTATUS")); - expect([SDLVehicleDataType VEHICLEDATA_EMERGENCYEVENT].value).to(equal(@"VEHICLEDATA_EMERGENCYEVENT")); - expect([SDLVehicleDataType VEHICLEDATA_CLUSTERMODESTATUS].value).to(equal(@"VEHICLEDATA_CLUSTERMODESTATUS")); - expect([SDLVehicleDataType VEHICLEDATA_MYKEY].value).to(equal(@"VEHICLEDATA_MYKEY")); - expect([SDLVehicleDataType VEHICLEDATA_BRAKING].value).to(equal(@"VEHICLEDATA_BRAKING")); - expect([SDLVehicleDataType VEHICLEDATA_WIPERSTATUS].value).to(equal(@"VEHICLEDATA_WIPERSTATUS")); - expect([SDLVehicleDataType VEHICLEDATA_HEADLAMPSTATUS].value).to(equal(@"VEHICLEDATA_HEADLAMPSTATUS")); - expect([SDLVehicleDataType VEHICLEDATA_BATTVOLTAGE].value).to(equal(@"VEHICLEDATA_BATTVOLTAGE")); - expect([SDLVehicleDataType VEHICLEDATA_ENGINETORQUE].value).to(equal(@"VEHICLEDATA_ENGINETORQUE")); - expect([SDLVehicleDataType VEHICLEDATA_ACCPEDAL].value).to(equal(@"VEHICLEDATA_ACCPEDAL")); - expect([SDLVehicleDataType VEHICLEDATA_STEERINGWHEEL].value).to(equal(@"VEHICLEDATA_STEERINGWHEEL")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_GPS"]).to(equal([SDLVehicleDataType VEHICLEDATA_GPS])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_SPEED"]).to(equal([SDLVehicleDataType VEHICLEDATA_SPEED])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_RPM"]).to(equal([SDLVehicleDataType VEHICLEDATA_RPM])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_FUELLEVEL"]).to(equal([SDLVehicleDataType VEHICLEDATA_FUELLEVEL])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_FUELLEVEL_STATE"]).to(equal([SDLVehicleDataType VEHICLEDATA_FUELLEVEL_STATE])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_FUELCONSUMPTION"]).to(equal([SDLVehicleDataType VEHICLEDATA_FUELCONSUMPTION])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_EXTERNTEMP"]).to(equal([SDLVehicleDataType VEHICLEDATA_EXTERNTEMP])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_VIN"]).to(equal([SDLVehicleDataType VEHICLEDATA_VIN])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_PRNDL"]).to(equal([SDLVehicleDataType VEHICLEDATA_PRNDL])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_TIREPRESSURE"]).to(equal([SDLVehicleDataType VEHICLEDATA_TIREPRESSURE])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_ODOMETER"]).to(equal([SDLVehicleDataType VEHICLEDATA_ODOMETER])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_BELTSTATUS"]).to(equal([SDLVehicleDataType VEHICLEDATA_BELTSTATUS])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_BODYINFO"]).to(equal([SDLVehicleDataType VEHICLEDATA_BODYINFO])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_DEVICESTATUS"]).to(equal([SDLVehicleDataType VEHICLEDATA_DEVICESTATUS])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_ECALLINFO"]).to(equal([SDLVehicleDataType VEHICLEDATA_ECALLINFO])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_AIRBAGSTATUS"]).to(equal([SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_EMERGENCYEVENT"]).to(equal([SDLVehicleDataType VEHICLEDATA_EMERGENCYEVENT])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_CLUSTERMODESTATUS"]).to(equal([SDLVehicleDataType VEHICLEDATA_CLUSTERMODESTATUS])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_MYKEY"]).to(equal([SDLVehicleDataType VEHICLEDATA_MYKEY])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_BRAKING"]).to(equal([SDLVehicleDataType VEHICLEDATA_BRAKING])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_WIPERSTATUS"]).to(equal([SDLVehicleDataType VEHICLEDATA_WIPERSTATUS])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_HEADLAMPSTATUS"]).to(equal([SDLVehicleDataType VEHICLEDATA_HEADLAMPSTATUS])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_BATTVOLTAGE"]).to(equal([SDLVehicleDataType VEHICLEDATA_BATTVOLTAGE])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_ENGINETORQUE"]).to(equal([SDLVehicleDataType VEHICLEDATA_ENGINETORQUE])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_ACCPEDAL"]).to(equal([SDLVehicleDataType VEHICLEDATA_ACCPEDAL])); - expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_STEERINGWHEEL"]).to(equal([SDLVehicleDataType VEHICLEDATA_STEERINGWHEEL])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLVehicleDataType valueOf:nil]).to(beNil()); - expect([SDLVehicleDataType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLVehicleDataType values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLVehicleDataType VEHICLEDATA_GPS], - [SDLVehicleDataType VEHICLEDATA_SPEED], - [SDLVehicleDataType VEHICLEDATA_RPM], - [SDLVehicleDataType VEHICLEDATA_FUELLEVEL], - [SDLVehicleDataType VEHICLEDATA_FUELLEVEL_STATE], - [SDLVehicleDataType VEHICLEDATA_FUELCONSUMPTION], - [SDLVehicleDataType VEHICLEDATA_EXTERNTEMP], - [SDLVehicleDataType VEHICLEDATA_VIN], - [SDLVehicleDataType VEHICLEDATA_PRNDL], - [SDLVehicleDataType VEHICLEDATA_TIREPRESSURE], - [SDLVehicleDataType VEHICLEDATA_ODOMETER], - [SDLVehicleDataType VEHICLEDATA_BELTSTATUS], - [SDLVehicleDataType VEHICLEDATA_BODYINFO], - [SDLVehicleDataType VEHICLEDATA_DEVICESTATUS], - [SDLVehicleDataType VEHICLEDATA_ECALLINFO], - [SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS], - [SDLVehicleDataType VEHICLEDATA_EMERGENCYEVENT], - [SDLVehicleDataType VEHICLEDATA_CLUSTERMODESTATUS], - [SDLVehicleDataType VEHICLEDATA_MYKEY], - [SDLVehicleDataType VEHICLEDATA_BRAKING], - [SDLVehicleDataType VEHICLEDATA_WIPERSTATUS], - [SDLVehicleDataType VEHICLEDATA_HEADLAMPSTATUS], - [SDLVehicleDataType VEHICLEDATA_BATTVOLTAGE], - [SDLVehicleDataType VEHICLEDATA_ENGINETORQUE], - [SDLVehicleDataType VEHICLEDATA_ACCPEDAL], - [SDLVehicleDataType VEHICLEDATA_STEERINGWHEEL]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVrCapabilitiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVrCapabilitiesSpec.m deleted file mode 100644 index be62ee96a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVrCapabilitiesSpec.m +++ /dev/null @@ -1,50 +0,0 @@ -// -// SDLVrCapabilitiesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLVrCapabilities.h" - -QuickSpecBegin(SDLVrCapabilitiesSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLVRCapabilities TEXT].value).to(equal(@"TEXT")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLVRCapabilities valueOf:@"TEXT"]).to(equal([SDLVRCapabilities TEXT])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLVRCapabilities valueOf:nil]).to(beNil()); - expect([SDLVRCapabilities valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLVRCapabilities values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLVRCapabilities TEXT]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWarningLightStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWarningLightStatusSpec.m deleted file mode 100644 index 698116e50..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWarningLightStatusSpec.m +++ /dev/null @@ -1,60 +0,0 @@ -// -// SDLWarningLightStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLWarningLightStatus.h" - -QuickSpecBegin(SDLWarningLightStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLWarningLightStatus OFF].value).to(equal(@"OFF")); - expect([SDLWarningLightStatus ON].value).to(equal(@"ON")); - expect([SDLWarningLightStatus FLASH].value).to(equal(@"FLASH")); - expect([SDLWarningLightStatus NOT_USED].value).to(equal(@"NOT_USED")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLWarningLightStatus valueOf:@"OFF"]).to(equal([SDLWarningLightStatus OFF])); - expect([SDLWarningLightStatus valueOf:@"ON"]).to(equal([SDLWarningLightStatus ON])); - expect([SDLWarningLightStatus valueOf:@"FLASH"]).to(equal([SDLWarningLightStatus FLASH])); - expect([SDLWarningLightStatus valueOf:@"NOT_USED"]).to(equal([SDLWarningLightStatus NOT_USED])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLWarningLightStatus valueOf:nil]).to(beNil()); - expect([SDLWarningLightStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLWarningLightStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLWarningLightStatus OFF], - [SDLWarningLightStatus ON], - [SDLWarningLightStatus FLASH], - [SDLWarningLightStatus NOT_USED]] copy]; - - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWiperStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWiperStatusSpec.m deleted file mode 100644 index 18fbce66c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWiperStatusSpec.m +++ /dev/null @@ -1,92 +0,0 @@ -// -// SDLWiperStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLWiperStatus.h" - -QuickSpecBegin(SDLWiperStatusSpec) - -describe(@"Individual Enum Value Tests", ^ { - it(@"Should match internal values", ^ { - expect([SDLWiperStatus OFF].value).to(equal(@"OFF")); - expect([SDLWiperStatus AUTO_OFF].value).to(equal(@"AUTO_OFF")); - expect([SDLWiperStatus OFF_MOVING].value).to(equal(@"OFF_MOVING")); - expect([SDLWiperStatus MAN_INT_OFF].value).to(equal(@"MAN_INT_OFF")); - expect([SDLWiperStatus MAN_INT_ON].value).to(equal(@"MAN_INT_ON")); - expect([SDLWiperStatus MAN_LOW].value).to(equal(@"MAN_LOW")); - expect([SDLWiperStatus MAN_HIGH].value).to(equal(@"MAN_HIGH")); - expect([SDLWiperStatus MAN_FLICK].value).to(equal(@"MAN_FLICK")); - expect([SDLWiperStatus WASH].value).to(equal(@"WASH")); - expect([SDLWiperStatus AUTO_LOW].value).to(equal(@"AUTO_LOW")); - expect([SDLWiperStatus AUTO_HIGH].value).to(equal(@"AUTO_HIGH")); - expect([SDLWiperStatus COURTESYWIPE].value).to(equal(@"COURTESYWIPE")); - expect([SDLWiperStatus AUTO_ADJUST].value).to(equal(@"AUTO_ADJUST")); - expect([SDLWiperStatus STALLED].value).to(equal(@"STALLED")); - expect([SDLWiperStatus NO_DATA_EXISTS].value).to(equal(@"NO_DATA_EXISTS")); - }); -}); -describe(@"ValueOf Tests", ^ { - it(@"Should return correct values when valid", ^ { - expect([SDLWiperStatus valueOf:@"OFF"]).to(equal([SDLWiperStatus OFF])); - expect([SDLWiperStatus valueOf:@"AUTO_OFF"]).to(equal([SDLWiperStatus AUTO_OFF])); - expect([SDLWiperStatus valueOf:@"OFF_MOVING"]).to(equal([SDLWiperStatus OFF_MOVING])); - expect([SDLWiperStatus valueOf:@"MAN_INT_OFF"]).to(equal([SDLWiperStatus MAN_INT_OFF])); - expect([SDLWiperStatus valueOf:@"MAN_INT_ON"]).to(equal([SDLWiperStatus MAN_INT_ON])); - expect([SDLWiperStatus valueOf:@"MAN_LOW"]).to(equal([SDLWiperStatus MAN_LOW])); - expect([SDLWiperStatus valueOf:@"MAN_HIGH"]).to(equal([SDLWiperStatus MAN_HIGH])); - expect([SDLWiperStatus valueOf:@"MAN_FLICK"]).to(equal([SDLWiperStatus MAN_FLICK])); - expect([SDLWiperStatus valueOf:@"WASH"]).to(equal([SDLWiperStatus WASH])); - expect([SDLWiperStatus valueOf:@"AUTO_LOW"]).to(equal([SDLWiperStatus AUTO_LOW])); - expect([SDLWiperStatus valueOf:@"AUTO_HIGH"]).to(equal([SDLWiperStatus AUTO_HIGH])); - expect([SDLWiperStatus valueOf:@"COURTESYWIPE"]).to(equal([SDLWiperStatus COURTESYWIPE])); - expect([SDLWiperStatus valueOf:@"AUTO_ADJUST"]).to(equal([SDLWiperStatus AUTO_ADJUST])); - expect([SDLWiperStatus valueOf:@"STALLED"]).to(equal([SDLWiperStatus STALLED])); - expect([SDLWiperStatus valueOf:@"NO_DATA_EXISTS"]).to(equal([SDLWiperStatus NO_DATA_EXISTS])); - }); - - it(@"Should return nil when invalid", ^ { - expect([SDLWiperStatus valueOf:nil]).to(beNil()); - expect([SDLWiperStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); - }); -}); -describe(@"Value List Tests", ^ { - NSArray* storedValues = [SDLWiperStatus values]; - __block NSArray* definedValues; - beforeSuite(^ { - definedValues = [@[[SDLWiperStatus OFF], - [SDLWiperStatus AUTO_OFF], - [SDLWiperStatus OFF_MOVING], - [SDLWiperStatus MAN_INT_OFF], - [SDLWiperStatus MAN_INT_ON], - [SDLWiperStatus MAN_LOW], - [SDLWiperStatus MAN_HIGH], - [SDLWiperStatus MAN_FLICK], - [SDLWiperStatus WASH], - [SDLWiperStatus AUTO_LOW], - [SDLWiperStatus AUTO_HIGH], - [SDLWiperStatus COURTESYWIPE], - [SDLWiperStatus AUTO_ADJUST], - [SDLWiperStatus STALLED], - [SDLWiperStatus NO_DATA_EXISTS]] copy]; - }); - - it(@"Should contain all defined enum values", ^ { - for (int i = 0; i < definedValues.count; i++) { - expect(storedValues).to(contain(definedValues[i])); - } - }); - - it(@"Should contain only defined enum values", ^ { - for (int i = 0; i < storedValues.count; i++) { - expect(definedValues).to(contain(storedValues[i])); - } - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/FactorySpecs/SDLRPCRequestFactorySpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/FactorySpecs/SDLRPCRequestFactorySpec.m deleted file mode 100644 index 1f7da2226..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/FactorySpecs/SDLRPCRequestFactorySpec.m +++ /dev/null @@ -1,986 +0,0 @@ -// -// SmartDeviceLinkTests.m -// SmartDeviceLinkTests - - -#import - -#import -#import - -#import "SmartDeviceLink.h" - - -QuickSpecBegin(SDLRPCRequestFactorySpec) - -describe(@"BuildAddCommand Tests", ^ { - it(@"Should build correctly", ^ { - SDLAddCommand* message = [SDLRPCRequestFactory buildAddCommandWithID:@33 menuName:@"Menu" parentID:@4 position:@500 - vrCommands:nil iconValue:@"No" iconType:[SDLImageType STATIC] correlationID:@94]; - expect([message menuParams].position).to(equal(@500)); - expect([message menuParams].menuName).to(equal(@"Menu")); - expect([message menuParams].parentID).to(equal(@4)); - expect([message cmdIcon].value).to(equal(@"No")); - expect([message cmdIcon].imageType).to(equal([SDLImageType STATIC])); - expect(message.vrCommands).to(beNil()); - expect(message.cmdID).to(equal(@33)); - expect(message.correlationID).to(equal(@94)); - - NSArray* aliases = @[@"Joe1", @"Joe2", @"Joe3", - @"--------------------------------ASLONGOFASTRINGASICANPOSSIBLYMAKEINASINGLELINE---------------------------------"]; - message = [SDLRPCRequestFactory buildAddCommandWithID:@276 menuName:@"Arbitrary" vrCommands:aliases correlationID:@200]; - - expect([message menuParams].position).to(beNil()); - expect([message menuParams].menuName).to(equal(@"Arbitrary")); - expect([message menuParams].parentID).to(beNil()); - expect(message.vrCommands).to(equal(aliases)); - expect(message.cmdIcon).to(beNil()); - expect(message.cmdID).to(equal(@276)); - expect(message.correlationID).to(equal(@200)); - - message = [SDLRPCRequestFactory buildAddCommandWithID:@9001 vrCommands:@[@" ", @" ", @" ", @""] correlationID:@27]; - - expect(message.menuParams).to(beNil()); - expect(message.vrCommands).to(equal(@[@" ", @" ", @" ", @""])); - expect(message.cmdIcon).to(beNil()); - expect(message.cmdID).to(equal(@9001)); - expect(message.correlationID).to(equal(@27)); - }); -}); - -describe(@"BuildAddSubMenu Tests", ^ { - it(@"Should build correctly", ^ { - SDLAddSubMenu* message = [SDLRPCRequestFactory buildAddSubMenuWithID:@234234 menuName:@"QWERTY" position:@3 correlationID:@13]; - - expect(message.menuName).to(equal(@"QWERTY")); - expect(message.position).to(equal(@3)); - expect(message.menuID).to(equal(@234234)); - expect(message.correlationID).to(equal(@13)); - - message = [SDLRPCRequestFactory buildAddSubMenuWithID:@444 menuName:@"Words" correlationID:@423]; - - expect(message.menuName).to(equal(@"Words")); - expect(message.position).to(beNil()); - expect(message.menuID).to(equal(@444)); - expect(message.correlationID).to(equal(@423)); - }); -}); - -describe(@"BuildAlert Tests", ^ { - context(@"With Text", ^ { - it(@"Should build correctly", ^ { - NSArray* softButtons = @[[[SDLSoftButton alloc] init]]; - SDLAlert* message = [SDLRPCRequestFactory buildAlertWithAlertText1:@"String1" alertText2:@"String2" alertText3:@"String3" - duration:@9999 softButtons:softButtons correlationID:@41]; - - expect(message.alertText1).to(equal(@"String1")); - expect(message.alertText2).to(equal(@"String2")); - expect(message.alertText3).to(equal(@"String3")); - expect(message.ttsChunks).to(beNil()); - expect(message.duration).to(equal(@9999)); - expect(message.playTone).to(beNil()); - expect(message.progressIndicator).to(beNil()); - expect(message.softButtons).to(equal(softButtons)); - expect(message.correlationID).to(equal(@41)); - - message = [SDLRPCRequestFactory buildAlertWithAlertText1:@"Alarming" alertText2:@"Astonishing" alertText3:@"Attention" - duration:@3000 correlationID:@11234]; - - expect(message.alertText1).to(equal(@"Alarming")); - expect(message.alertText2).to(equal(@"Astonishing")); - expect(message.alertText3).to(equal(@"Attention")); - expect(message.ttsChunks).to(beNil()); - expect(message.duration).to(equal(@3000)); - expect(message.playTone).to(beNil()); - expect(message.progressIndicator).to(beNil()); - expect(message.softButtons).to(beNil()); - expect(message.correlationID).to(equal(@11234)); - - message = [SDLRPCRequestFactory buildAlertWithAlertText1:@"1" alertText2:@"2" duration:@4153 correlationID:@1432143]; - - expect(message.alertText1).to(equal(@"1")); - expect(message.alertText2).to(equal(@"2")); - expect(message.alertText3).to(beNil()); - expect(message.ttsChunks).to(beNil()); - expect(message.duration).to(equal(@4153)); - expect(message.playTone).to(beNil()); - expect(message.progressIndicator).to(beNil()); - expect(message.softButtons).to(beNil()); - expect(message.correlationID).to(equal(@1432143)); - }); - }); - - context(@"With TTS", ^ { - it(@"Should build correctly", ^ { - SDLAlert* message = [SDLRPCRequestFactory buildAlertWithTTS:@"Wat" alertText1:@"11" alertText2:@"12" alertText3:@"13" - playTone:@NO duration:@3424 correlationID:@9999999]; - - expect(message.alertText1).to(equal(@"11")); - expect(message.alertText2).to(equal(@"12")); - expect(message.alertText3).to(equal(@"13")); - expect(((SDLTTSChunk*)[message ttsChunks][0]).text).to(equal(@"Wat")); - expect(message.duration).to(equal(@3424)); - expect(message.playTone).to(equal(@NO)); - expect(message.progressIndicator).to(beNil()); - expect(message.softButtons).to(beNil()); - expect(message.correlationID).to(equal(@9999999)); - - message = [SDLRPCRequestFactory buildAlertWithTTS:@"Say This" alertText1:@"hgkj" alertText2:@"bgydhgfc" - playTone:@YES duration:@6546 correlationID:@65436786]; - - expect(message.alertText1).to(equal(@"hgkj")); - expect(message.alertText2).to(equal(@"bgydhgfc")); - expect(message.alertText3).to(beNil()); - expect(((SDLTTSChunk*)[message ttsChunks][0]).text).to(equal(@"Say This")); - expect(message.duration).to(equal(@6546)); - expect(message.playTone).to(equal(@YES)); - expect(message.progressIndicator).to(beNil()); - expect(message.softButtons).to(beNil()); - expect(message.correlationID).to(equal(@65436786)); - - message = [SDLRPCRequestFactory buildAlertWithTTS:@"Surprise" playTone:@YES correlationID:@34]; - - expect(message.alertText1).to(beNil()); - expect(message.alertText2).to(beNil()); - expect(message.alertText3).to(beNil()); - expect(((SDLTTSChunk*)[message ttsChunks][0]).text).to(equal(@"Surprise")); - expect(message.duration).to(beNil()); - expect(message.playTone).to(equal(@YES)); - expect(message.progressIndicator).to(beNil()); - expect(message.softButtons).to(beNil()); - expect(message.correlationID).to(equal(@34)); - }); - }); - - context(@"With TTSChunks", ^ { - it(@"Should build correctly", ^ { - NSArray* softButtons = @[[[SDLSoftButton alloc] init]]; - NSArray* ttsChunks = @[[[SDLTTSChunk alloc] init]]; - SDLAlert* message = [SDLRPCRequestFactory buildAlertWithTTSChunks:ttsChunks alertText1:@"Astonish" alertText2:@"Hi" alertText3:@"Alert" - playTone:@NO duration:@4145 softButtons:softButtons correlationID:@19]; - - expect(message.alertText1).to(equal(@"Astonish")); - expect(message.alertText2).to(equal(@"Hi")); - expect(message.alertText3).to(equal(@"Alert")); - expect(message.ttsChunks).to(equal(ttsChunks)); - expect(message.duration).to(equal(@4145)); - expect(message.playTone).to(equal(@NO)); - expect(message.progressIndicator).to(beNil()); - expect(message.softButtons).to(equal(softButtons)); - expect(message.correlationID).to(equal(@19)); - - message = [SDLRPCRequestFactory buildAlertWithTTSChunks:ttsChunks playTone:@YES correlationID:@1234321]; - - expect(message.alertText1).to(beNil()); - expect(message.alertText2).to(beNil()); - expect(message.alertText3).to(beNil()); - expect(message.ttsChunks).to(equal(ttsChunks)); - expect(message.duration).to(beNil()); - expect(message.playTone).to(equal(@YES)); - expect(message.progressIndicator).to(beNil()); - expect(message.softButtons).to(beNil()); - expect(message.correlationID).to(equal(@1234321)); - }); - }); -}); - - -describe(@"SDLAlertManeuver Tests", ^ { - __block NSMutableArray *softButtons = nil; - __block NSMutableArray *ttsChunks = nil; - __block SDLAlertManeuver *message = nil; - - describe(@"Should build correctly", ^ { - beforeEach(^{ - softButtons = [@[[[SDLSoftButton alloc] init]] mutableCopy]; - ttsChunks = [@[[[SDLTTSChunk alloc] init]] mutableCopy]; - message = [SDLRPCRequestFactory buildAlertManeuverwithTTSchunks:ttsChunks softButtons:softButtons correlationID:@1234]; - }); - - it(@"Should properly set TTS Chunks", ^{ - expect(message.ttsChunks).to(equal(ttsChunks)); - }); - - it(@"Should properly set Soft Buttons", ^{ - expect(message.softButtons).to(equal(softButtons)); - }); - - it(@"Should properly set Correlation ID", ^{ - expect(message.correlationID).to(equal(@1234)); - }); - }); -}); - - -describe(@"BuildChangeRegistration Tests", ^ { - it(@"Should build correctly", ^ { - SDLChangeRegistration* message = [SDLRPCRequestFactory buildChangeRegistrationWithLanguage:[SDLLanguage EN_GB] hmiDisplayLanguage:[SDLLanguage DE_DE] correlationID:@22336644]; - - expect(message.language).to(equal([SDLLanguage EN_GB])); - expect(message.hmiDisplayLanguage).to(equal([SDLLanguage DE_DE])); - expect(message.correlationID).to(equal(@22336644)); - }); -}); - -describe(@"BuildCreateInteractionChoiceSet Tests", ^ { - it(@"Should build correctly", ^ { - NSArray* choices = @[[[SDLChoice alloc] init]]; - SDLCreateInteractionChoiceSet* message = [SDLRPCRequestFactory buildCreateInteractionChoiceSetWithID:@4567654 choiceSet:choices correlationID:@0]; - - expect(message.interactionChoiceSetID).to(equal(@4567654)); - expect(message.choiceSet).to(equal(choices)); - expect(message.correlationID).to(equal(@0)); - }); -}); - -describe(@"BuildDeleteCommand Tests", ^ { - it(@"Should build correctly", ^ { - SDLDeleteCommand* message = [SDLRPCRequestFactory buildDeleteCommandWithID:@2 correlationID:@234]; - - expect(message.cmdID).to(equal(@2)); - expect(message.correlationID).to(equal(@234)); - }); -}); - -describe(@"BuildDeleteFile Tests", ^ { - it(@"Should build correctly", ^ { - SDLDeleteFile* message = [SDLRPCRequestFactory buildDeleteFileWithName:@"CRITICAL_FILE" correlationID:@4930]; - - expect(message.syncFileName).to(equal(@"CRITICAL_FILE")); - expect(message.correlationID).to(equal(@4930)); - }); -}); - -describe(@"BuildListFiles Tests", ^ { - it(@"Should build correctly", ^ { - SDLListFiles* message = [SDLRPCRequestFactory buildListFilesWithCorrelationID:@13123]; - - expect(message.correlationID).to(equal(@13123)); - }); -}); - -describe(@"BuildDeleteInteractionChoiceSet Tests", ^ { - it(@"Should build correctly", ^ { - SDLDeleteInteractionChoiceSet* message = [SDLRPCRequestFactory buildDeleteInteractionChoiceSetWithID:@46765426 correlationID:@46765426]; - - expect(message.interactionChoiceSetID).to(equal(@46765426)); - expect(message.correlationID).to(equal(@46765426)); - }); -}); - -describe(@"BuildDeleteSubMenu Tests", ^ { - it(@"Should build correctly", ^ { - SDLDeleteSubMenu* message = [SDLRPCRequestFactory buildDeleteSubMenuWithID:@3515 correlationID:@5153]; - - expect(message.menuID).to(equal(@3515)); - expect(message.correlationID).to(equal(@5153)); - }); -}); - -describe(@"BuildDialNumber", ^{ - __block SDLDialNumber *message = nil; - __block NSString *someNumberString = nil; - - describe(@"when built correctly", ^{ - beforeEach(^{ - someNumberString = @"1234567890"; - message = [SDLRPCRequestFactory buildDialNumberWithNumber:someNumberString]; - }); - - it(@"should not be nil", ^{ - expect(message).toNot(beNil()); - }); - - it(@"should have number set properly", ^{ - expect(message.number).to(equal(someNumberString)); - }); - }); -}); - -describe(@"BuildEndAudioPassThru Tests", ^ { - it(@"Should build correctly", ^ { - SDLEndAudioPassThru* message = [SDLRPCRequestFactory buildEndAudioPassThruWithCorrelationID:@13123]; - - expect(message.correlationID).to(equal(@13123)); - }); -}); - -describe(@"BuildGetDTCs Tests", ^ { - it(@"Should build correctly", ^ { - SDLGetDTCs* message = [SDLRPCRequestFactory buildGetDTCsWithECUName:@255 correlationID:@60806050]; - - expect(message.ecuName).to(equal(@255)); - expect(message.dtcMask).to(beNil()); - expect(message.correlationID).to(equal(@60806050)); - }); -}); - -describe(@"BuildGetVehicleData Tests", ^ { - it(@"Should build correctly", ^ { - SDLGetVehicleData* message = [SDLRPCRequestFactory buildGetVehicleDataWithGPS:@YES speed:@NO rpm:@NO - fuelLevel:@YES fuelLevelState:@YES instantFuelConsumption:@NO - externalTemperature:@YES vin:@YES prndl:@YES - tirePressure:@NO odometer:@NO beltStatus:@NO - bodyInformation:@YES deviceStatus:@NO driverBraking:@NO - wiperStatus:@NO headLampStatus:@YES engineTorque:@YES - accPedalPosition:@NO steeringWheelAngle:@YES correlationID:@936]; - - expect(message.gps).to(equal(@YES)); - expect(message.speed).to(equal(@NO)); - expect(message.rpm).to(equal(@NO)); - expect(message.fuelLevel).to(equal(@YES)); - expect(message.fuelLevel_State).to(equal(@YES)); - expect(message.instantFuelConsumption).to(equal(@NO)); - expect(message.externalTemperature).to(equal(@YES)); - expect(message.vin).to(equal(@YES)); - expect(message.prndl).to(equal(@YES)); - expect(message.tirePressure).to(equal(@NO)); - expect(message.odometer).to(equal(@NO)); - expect(message.beltStatus).to(equal(@NO)); - expect(message.bodyInformation).to(equal(@YES)); - expect(message.deviceStatus).to(equal(@NO)); - expect(message.driverBraking).to(equal(@NO)); - expect(message.wiperStatus).to(equal(@NO)); - expect(message.headLampStatus).to(equal(@YES)); - expect(message.engineTorque).to(equal(@YES)); - expect(message.accPedalPosition).to(equal(@NO)); - expect(message.steeringWheelAngle).to(equal(@YES)); - expect(message.eCallInfo).to(beNil()); - expect(message.airbagStatus).to(beNil()); - expect(message.emergencyEvent).to(beNil()); - expect(message.clusterModeStatus).to(beNil()); - expect(message.myKey).to(beNil()); - expect(message.correlationID).to(equal(@936)); - }); -}); - -describe(@"BuildPerformAudioPassThru Tests", ^ { - it(@"Should build correctly", ^ { - SDLPerformAudioPassThru* message = [SDLRPCRequestFactory buildPerformAudioPassThruWithInitialPrompt:@"" audioPassThruDisplayText1:@"Display1" audioPassThruDisplayText2:@"Display2" - samplingRate:[SDLSamplingRate _44KHZ] maxDuration:@10 bitsPerSample:[SDLBitsPerSample _16_BIT] audioType:[SDLAudioType PCM] - muteAudio:@NO correlationID:@2500]; - - expect(((SDLTTSChunk*)[message initialPrompt][0]).text).to(equal(@"")); - expect(message.audioPassThruDisplayText1).to(equal(@"Display1")); - expect(message.audioPassThruDisplayText2).to(equal(@"Display2")); - expect(message.samplingRate).to(equal([SDLSamplingRate _44KHZ])); - expect(message.maxDuration).to(equal(@10)); - expect(message.bitsPerSample).to(equal([SDLBitsPerSample _16_BIT])); - expect(message.audioType).to(equal([SDLAudioType PCM])); - expect(message.muteAudio).to(equal(@NO)); - expect(message.correlationID).to(equal(@2500)); - }); -}); - -describe(@"BuildPerformInteraction Tests", ^ { - context(@"With Initial Chunks", ^ { - it(@"Should build correctly", ^ { - NSArray* initialChunks = @[[[SDLTTSChunk alloc] init]]; - NSArray* helpChunks = @[[[SDLTTSChunk alloc] init]]; - NSArray* timeoutChunks = @[[[SDLTTSChunk alloc] init]]; - NSArray* vrHelp = @[[[SDLVRHelpItem alloc] init]]; - SDLPerformInteraction* message = [SDLRPCRequestFactory buildPerformInteractionWithInitialChunks:initialChunks initialText:@"Start" interactionChoiceSetIDList:@[@878] - helpChunks:helpChunks timeoutChunks:timeoutChunks interactionMode:[SDLInteractionMode MANUAL_ONLY] timeout:@7500 - vrHelp:vrHelp correlationID:@272727]; - - expect(message.initialPrompt).to(equal(initialChunks)); - expect(message.initialText).to(equal(@"Start")); - expect(message.interactionChoiceSetIDList).to(equal(@[@878])); - expect(message.helpPrompt).to(equal(helpChunks)); - expect(message.timeoutPrompt).to(equal(timeoutChunks)); - expect(message.interactionMode).to(equal([SDLInteractionMode MANUAL_ONLY])); - expect(message.timeout).to(equal(@7500)); - expect(message.vrHelp).to(equal(vrHelp)); - expect(message.interactionLayout).to(beNil()); - expect(message.correlationID).to(equal(@272727)); - }); - }); - - context(@"With Initial Prompt", ^ { - it(@"Should build correctly", ^ { - NSArray* vrHelp = @[[[SDLVRHelpItem alloc] init]]; - SDLPerformInteraction* message = [SDLRPCRequestFactory buildPerformInteractionWithInitialPrompt:@"Nothing" initialText:@"Still Nothing" interactionChoiceSetIDList:@[@4223, @1337] - helpPrompt:@"A Whole Lot of Nothing" timeoutPrompt:@"Time Remaining" interactionMode:[SDLInteractionMode VR_ONLY] - timeout:@5600 vrHelp:vrHelp correlationID:@31564]; - - expect(((SDLTTSChunk*)[message initialPrompt][0]).text).to(equal(@"Nothing")); - expect(message.initialText).to(equal(@"Still Nothing")); - expect(message.interactionChoiceSetIDList).to(equal(@[@4223, @1337])); - expect(((SDLTTSChunk*)[message helpPrompt][0]).text).to(equal(@"A Whole Lot of Nothing")); - expect(((SDLTTSChunk*)[message timeoutPrompt][0]).text).to(equal(@"Time Remaining")); - expect(message.interactionMode).to(equal([SDLInteractionMode VR_ONLY])); - expect(message.timeout).to(equal(@5600)); - expect(message.vrHelp).to(equal(vrHelp)); - expect(message.interactionLayout).to(beNil()); - expect(message.correlationID).to(equal(@31564)); - - message = [SDLRPCRequestFactory buildPerformInteractionWithInitialPrompt:@"A" initialText:@"B" interactionChoiceSetIDList:@[@1, @2, @3, @4] helpPrompt:@"C" timeoutPrompt:@"D" - interactionMode:[SDLInteractionMode BOTH] timeout:@10000 correlationID:@7734]; - - expect(((SDLTTSChunk*)[message initialPrompt][0]).text).to(equal(@"A")); - expect(message.initialText).to(equal(@"B")); - expect(message.interactionChoiceSetIDList).to(equal(@[@1, @2, @3, @4])); - expect(((SDLTTSChunk*)[message helpPrompt][0]).text).to(equal(@"C")); - expect(((SDLTTSChunk*)[message timeoutPrompt][0]).text).to(equal(@"D")); - expect(message.interactionMode).to(equal([SDLInteractionMode BOTH])); - expect(message.timeout).to(equal(@10000)); - expect(message.vrHelp).to(beNil()); - expect(message.interactionLayout).to(beNil()); - expect(message.correlationID).to(equal(@7734)); - - message = [SDLRPCRequestFactory buildPerformInteractionWithInitialPrompt:@"Initializing" initialText:@"Initialized" interactionChoiceSetID:@1456 vrHelp:vrHelp correlationID:@7056704]; - - expect(((SDLTTSChunk*)[message initialPrompt][0]).text).to(equal(@"Initializing")); - expect(message.initialText).to(equal(@"Initialized")); - expect(message.interactionChoiceSetIDList).to(equal(@[@1456])); - expect(message.helpPrompt).to(beNil()); - expect(message.timeoutPrompt).to(beNil()); - //Don't know whether the reason for this failure is a bug... - expect(message.interactionMode).to(equal([SDLInteractionMode BOTH])); - expect(message.timeout).to(beNil()); - expect(message.vrHelp).to(equal(vrHelp)); - expect(message.interactionLayout).to(beNil()); - expect(message.correlationID).to(equal(@7056704)); - - message = [SDLRPCRequestFactory buildPerformInteractionWithInitialPrompt:@"#$%@" initialText:@"!%%&&^$" interactionChoiceSetID:@105503 correlationID:@1454156465]; - - expect(((SDLTTSChunk*)[message initialPrompt][0]).text).to(equal(@"#$%@")); - expect(message.initialText).to(equal(@"!%%&&^$")); - expect(message.interactionChoiceSetIDList).to(equal(@[@105503])); - expect(message.helpPrompt).to(beNil()); - expect(message.timeoutPrompt).to(beNil()); - expect(message.interactionMode).to(equal([SDLInteractionMode BOTH])); - expect(message.timeout).to(beNil()); - expect(message.vrHelp).to(beNil()); - expect(message.interactionLayout).to(beNil()); - expect(message.correlationID).to(equal(@1454156465)); - }); - }); -}); - -describe(@"BuildPutFile Tests", ^ { - it(@"Should build correctly", ^ { - SDLPutFile *message = [SDLRPCRequestFactory buildPutFileWithFileName:@"YES!?" fileType:[SDLFileType GRAPHIC_BMP] persistentFile:@165636 correlationId:@147986]; - - expect(message.syncFileName).to(equal(@"YES!?")); - expect(message.fileType).to(equal([SDLFileType GRAPHIC_BMP])); - expect(message.persistentFile).to(equal(@165636)); - expect(message.correlationID).to(equal(@147986)); - }); -}); - -describe(@"BuildReadDID Tests", ^ { - it(@"Should build correctly", ^ { - SDLReadDID* message = [SDLRPCRequestFactory buildReadDIDWithECUName:@12500 didLocation:@[@1, @5, @10, @10, @5, @1] correlationID:@6465678]; - - expect(message.ecuName).to(equal(@12500)); - expect(message.didLocation).to(equal(@[@1, @5, @10, @10, @5, @1])); - expect(message.correlationID).to(equal(@6465678)); - }); -}); - -describe(@"BuildRegisterAppInterface Tests", ^ { - it(@"Should build correctly", ^ { - NSMutableArray *ttsName = [NSMutableArray arrayWithArray:@[[[SDLTTSChunk alloc] init]]]; - NSMutableArray *synonyms = [NSMutableArray arrayWithArray:@[@"Q", @"W", @"E", @"R"]]; - SDLRegisterAppInterface* message = [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:@"Interface" ttsName:ttsName vrSynonyms:synonyms - isMediaApp:@YES languageDesired:[SDLLanguage EN_US] - hmiDisplayLanguageDesired:[SDLLanguage ES_MX] appID:@"6h43g"]; - - expect(message.syncMsgVersion).toNot(beNil()); - expect(message.syncMsgVersion.majorVersion).to(equal(@1)); - expect(message.syncMsgVersion.minorVersion).to(equal(@0)); - - expect(message.appName).to(equal(@"Interface")); - expect(message.ttsName).to(equal(ttsName)); - expect(message.ngnMediaScreenAppName).to(equal(@"Interface")); - expect(message.vrSynonyms).to(equal(@[@"Q", @"W", @"E", @"R"])); - expect(message.isMediaApplication).to(equal(@YES)); - expect(message.languageDesired).to(equal([SDLLanguage EN_US])); - expect(message.hmiDisplayLanguageDesired).to(equal([SDLLanguage ES_MX])); - expect(message.appHMIType).to(beNil()); - expect(message.hashID).to(beNil()); - expect(message.deviceInfo).toNot(beNil()); - expect(message.appID).to(equal(@"6h43g")); - expect(message.correlationID).to(equal(@1)); - - message = [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:@"Register App Interface" isMediaApp:@NO languageDesired:[SDLLanguage PT_BR] appID:@"36g6rsw4"]; - - expect(message.syncMsgVersion).toNot(beNil()); - expect(message.syncMsgVersion.majorVersion).to(equal(@1)); - expect(message.syncMsgVersion.minorVersion).to(equal(@0)); - - expect(message.appName).to(equal(@"Register App Interface")); - expect(message.ttsName).to(beNil()); - expect(message.ngnMediaScreenAppName).to(equal(@"Register App Interface")); - expect(message.vrSynonyms).to(equal(@[@"Register App Interface"])); - expect(message.isMediaApplication).to(equal(@NO)); - expect(message.languageDesired).to(equal([SDLLanguage PT_BR])); - expect(message.hmiDisplayLanguageDesired).to(equal([SDLLanguage PT_BR])); - expect(message.appHMIType).to(beNil()); - expect(message.hashID).to(beNil()); - expect(message.deviceInfo).toNot(beNil()); - expect(message.appID).to(equal(@"36g6rsw4")); - expect(message.correlationID).to(equal(@1)); - - message = [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:@"..." languageDesired:[SDLLanguage CS_CZ] appID:@"56ht5j"]; - - expect(message.syncMsgVersion).toNot(beNil()); - expect(message.syncMsgVersion.majorVersion).to(equal(@1)); - expect(message.syncMsgVersion.minorVersion).to(equal(@0)); - - expect(message.appName).to(equal(@"...")); - expect(message.ttsName).to(beNil()); - expect(message.ngnMediaScreenAppName).to(equal(@"...")); - expect(message.vrSynonyms).to(equal(@[@"..."])); - expect(message.isMediaApplication).to(equal(@NO)); - expect(message.languageDesired).to(equal([SDLLanguage CS_CZ])); - expect(message.hmiDisplayLanguageDesired).to(equal([SDLLanguage CS_CZ])); - expect(message.appHMIType).to(beNil()); - expect(message.hashID).to(beNil()); - expect(message.deviceInfo).toNot(beNil()); - expect(message.appID).to(equal(@"56ht5j")); - expect(message.correlationID).to(equal(@1)); - }); -}); - -describe(@"BuildResetGlobalProperties Tests", ^ { - it(@"Should build correctly", ^ { - SDLResetGlobalProperties* message = [SDLRPCRequestFactory buildResetGlobalPropertiesWithProperties:@[[SDLGlobalProperty MENUNAME], [SDLGlobalProperty TIMEOUTPROMPT]] - correlationID:@906842]; - - expect(message.properties).to(equal(@[[SDLGlobalProperty MENUNAME], [SDLGlobalProperty TIMEOUTPROMPT]])); - expect(message.correlationID).to(equal(@906842)); - }); -}); - -describe(@"BuildSendLocation", ^{ - __block SDLSendLocation *message = nil; - __block NSNumber *someLongitude = nil; - __block NSNumber *someLatitude = nil; - __block NSString *someLocation = nil; - __block NSString *someLocationDescription = nil; - __block NSArray *someAddressLines = nil; - __block NSString *somePhoneNumber = nil; - __block SDLImage *someImage = nil; - - describe(@"when built correctly", ^{ - beforeEach(^{ - someLongitude = @123.4567; - someLatitude = @65.4321; - someLocation = @"Livio"; - someLocationDescription = @"A great place to work"; - someAddressLines = @[@"3136 Hilton Rd", @"Ferndale, MI", @"48220"]; - somePhoneNumber = @"248-591-0333"; - someImage = [[SDLImage alloc] init]; - - message = [SDLRPCRequestFactory buildSendLocationWithLongitude:someLongitude latitude:someLatitude locationName:someLocation locationDescription:someLocationDescription address:someAddressLines phoneNumber:somePhoneNumber image:someImage]; - }); - - it(@"should not be nil", ^{ - expect(message).toNot(beNil()); - }); - - it(@"should properly set longitude", ^{ - expect(message.longitudeDegrees).to(equal(someLongitude)); - }); - - it(@"should properly set latitude", ^{ - expect(message.latitudeDegrees).to(equal(someLatitude)); - }); - - it(@"should properly set location", ^{ - expect(message.locationName).to(equal(someLocation)); - }); - - it(@"should properly set location description", ^{ - expect(message.locationDescription).to(equal(someLocationDescription)); - }); - - it(@"should properly set address lines", ^{ - expect(message.addressLines).to(equal(someAddressLines)); - }); - - it(@"should properly set phone number", ^{ - expect(message.phoneNumber).to(equal(somePhoneNumber)); - }); - - it(@"should properly set image", ^{ - expect(message.locationImage).to(equal(someImage)); - }); - }); -}); - -describe(@"BuildScrollableMessage Tests", ^ { - it(@"Should build correctly", ^ { - NSArray* softButtons = @[[[SDLSoftButton alloc] init]]; - SDLScrollableMessage* message = [SDLRPCRequestFactory buildScrollableMessage:@"Message Box" timeout:@37821 softButtons:softButtons correlationID:@9783356]; - - expect(message.scrollableMessageBody).to(equal(@"Message Box")); - expect(message.timeout).to(equal(@37821)); - expect(message.softButtons).to(equal(softButtons)); - expect(message.correlationID).to(equal(@9783356)); - }); -}); - -describe(@"BuildSetAppIcon Tests", ^ { - it(@"Should build correctly", ^ { - SDLSetAppIcon* message = [SDLRPCRequestFactory buildSetAppIconWithFileName:@"Iconic" correlationID:@465819]; - - expect(message.syncFileName).to(equal(@"Iconic")); - expect(message.correlationID).to(equal(@465819)); - }); -}); - -describe(@"BuildSetDisplayLayout Tests", ^ { - it(@"Should build correctly", ^ { - SDLSetDisplayLayout* message = [SDLRPCRequestFactory buildSetDisplayLayout:@"NONE" correlationID:@467926]; - - expect(message.displayLayout).to(equal(@"NONE")); - expect(message.correlationID).to(equal(@467926)); - }); -}); - -describe(@"BuildSetGlobalProperties Tests", ^ { - it(@"Should build correctly", ^ { - NSArray* help = @[[[SDLVRHelpItem alloc] init]]; - SDLSetGlobalProperties* message = [SDLRPCRequestFactory buildSetGlobalPropertiesWithHelpText:@"Beyond Help" timeoutText:@"You took too long" vrHelpTitle:@"Voice" - vrHelp:help correlationID:@5666666]; - - expect(((SDLTTSChunk*)[message helpPrompt][0]).text).to(equal(@"Beyond Help")); - expect(((SDLTTSChunk*)[message timeoutPrompt][0]).text).to(equal(@"You took too long")); - expect(message.vrHelpTitle).to(equal(@"Voice")); - expect(message.vrHelp).to(equal(help)); - expect(message.menuTitle).to(beNil()); - expect(message.menuIcon).to(beNil()); - expect(message.keyboardProperties).to(beNil()); - expect(message.correlationID).to(equal(@5666666)); - - message = [SDLRPCRequestFactory buildSetGlobalPropertiesWithHelpText:@"Helpful" timeoutText:@"Timed Out" correlationID:@10010100]; - - expect(((SDLTTSChunk*)[message helpPrompt][0]).text).to(equal(@"Helpful")); - expect(((SDLTTSChunk*)[message timeoutPrompt][0]).text).to(equal(@"Timed Out")); - expect(message.vrHelpTitle).to(beNil()); - expect(message.vrHelp).to(beNil()); - expect(message.menuTitle).to(beNil()); - expect(message.menuIcon).to(beNil()); - expect(message.keyboardProperties).to(beNil()); - expect(message.correlationID).to(equal(@10010100)); - }); -}); - -describe(@"BuildSetMediaClockTimer Tests", ^ { - it(@"Should build correctly", ^ { - SDLSetMediaClockTimer* message = [SDLRPCRequestFactory buildSetMediaClockTimerWithHours:@15 minutes:@36 seconds:@11 updateMode:[SDLUpdateMode COUNTDOWN] correlationID:@404]; - - expect([message startTime].hours).to(equal(@15)); - expect([message startTime].minutes).to(equal(@36)); - expect([message startTime].seconds).to(equal(@11)); - expect(message.endTime).to(beNil()); - expect(message.updateMode).to(equal([SDLUpdateMode COUNTDOWN])); - expect(message.correlationID).to(equal(@404)); - - message = [SDLRPCRequestFactory buildSetMediaClockTimerWithUpdateMode:[SDLUpdateMode RESUME] correlationID:@11213141]; - - expect(message.startTime).to(beNil()); - expect(message.endTime).to(beNil()); - expect(message.updateMode).to(equal([SDLUpdateMode RESUME])); - expect(message.correlationID).to(equal(@11213141)); - }); -}); - -describe(@"BuildShow Tests", ^ { - it(@"Should build correctly", ^ { - SDLImage* image = [[SDLImage alloc] init]; - NSArray* softButtons = @[[[SDLSoftButton alloc] init]]; - SDLShow* message = [SDLRPCRequestFactory buildShowWithMainField1:@"11" mainField2:@"22" mainField3:@"33" mainField4:@"44" statusBar:@"Bar" mediaClock:@"Time" mediaTrack:@"Crucial Line" - alignment:[SDLTextAlignment CENTERED] graphic:image softButtons:softButtons customPresets:@[@"w", @"x", @"y", @"z"] correlationID:@3432343]; - - expect(message.mainField1).to(equal(@"11")); - expect(message.mainField2).to(equal(@"22")); - expect(message.mainField3).to(equal(@"33")); - expect(message.mainField4).to(equal(@"44")); - expect(message.statusBar).to(equal(@"Bar")); - expect(message.mediaClock).to(equal(@"Time")); - expect(message.mediaTrack).to(equal(@"Crucial Line")); - expect(message.alignment).to(equal([SDLTextAlignment CENTERED])); - expect(message.graphic).to(equal(image)); - expect(message.secondaryGraphic).to(beNil()); - expect(message.softButtons).to(equal(softButtons)); - expect(message.customPresets).to(equal(@[@"w", @"x", @"y", @"z"])); - expect(message.correlationID).to(equal(@3432343)); - - message = [SDLRPCRequestFactory buildShowWithMainField1:@"A" mainField2:@"S" statusBar:@"D" mediaClock:@"F" mediaTrack:@"G" alignment:[SDLTextAlignment RIGHT_ALIGNED] correlationID:@999]; - - expect(message.mainField1).to(equal(@"A")); - expect(message.mainField2).to(equal(@"S")); - expect(message.mainField3).to(beNil()); - expect(message.mainField4).to(beNil()); - expect(message.statusBar).to(equal(@"D")); - expect(message.mediaClock).to(equal(@"F")); - expect(message.mediaTrack).to(equal(@"G")); - expect(message.alignment).to(equal([SDLTextAlignment RIGHT_ALIGNED])); - expect(message.graphic).to(beNil()); - expect(message.secondaryGraphic).to(beNil()); - expect(message.softButtons).to(beNil()); - expect(message.customPresets).to(beNil()); - expect(message.correlationID).to(equal(@999)); - - message = [SDLRPCRequestFactory buildShowWithMainField1:@"Hello" mainField2:@"World" alignment:[SDLTextAlignment LEFT_ALIGNED] correlationID:@38792607]; - - expect(message.mainField1).to(equal(@"Hello")); - expect(message.mainField2).to(equal(@"World")); - expect(message.mainField3).to(beNil()); - expect(message.mainField4).to(beNil()); - expect(message.statusBar).to(beNil()); - expect(message.mediaClock).to(beNil()); - expect(message.mediaTrack).to(beNil()); - expect(message.alignment).to(equal([SDLTextAlignment LEFT_ALIGNED])); - expect(message.graphic).to(beNil()); - expect(message.secondaryGraphic).to(beNil()); - expect(message.softButtons).to(beNil()); - expect(message.customPresets).to(beNil()); - expect(message.correlationID).to(equal(@38792607)); - }); -}); - -describe(@"SDLShowConstantTBT Tests", ^ { - __block NSMutableArray *softButtons = nil; - __block SDLImage *image1 = nil; - __block SDLImage *image2 = nil; - __block SDLShowConstantTBT *message = nil; - - describe(@"Should build correctly", ^ { - beforeEach(^{ - softButtons = [@[[[SDLSoftButton alloc] init]] mutableCopy]; - image1 = [[SDLImage alloc]init]; - image2 = [[SDLImage alloc]init]; - message = [SDLRPCRequestFactory buildShowConstantTBTWithString:@"Navigation Text 1" navigationText2:@"Navigation Text 2" eta:@"ETA String" timeToDestination:@"10:31 PM" totalDistance:@"1000 Miles" turnIcon:image1 nextTurnIcon:image2 distanceToManeuver:@100.11 distanceToManeuverScale:@10.20 maneuverComplete:@23.2 softButtons:softButtons correlationID:@1234]; - }); - - it(@"Should properly set title navigation text", ^{ - expect(message.navigationText1).to(equal(@"Navigation Text 1")); - }); - - it(@"Should properly set secondary navigation text", ^{ - expect(message.navigationText2).to(equal(@"Navigation Text 2")); - }); - - it(@"Should properly set Estimated Time Of Arrival (ETA)", ^{ - expect(message.eta).to(equal(@"ETA String")); - }); - - it(@"Should properly set time to distance", ^{ - expect(message.timeToDestination).to(equal(@"10:31 PM")); - }); - - it(@"Should properly set total distance", ^{ - expect(message.totalDistance).to(equal(@"1000 Miles")); - }); - - it(@"Should properly set first turn icon", ^{ - expect(message.turnIcon).to(equal(image1)); - }); - - it(@"Should properly set second turn icon", ^{ - expect(message.nextTurnIcon).to(equal(image2)); - }); - - it(@"Should properly set distance to maneuver", ^{ - expect(message.distanceToManeuver).to(equal(@100.11)); - }); - - it(@"Should properly set scale for distance to maneuver", ^{ - expect(message.distanceToManeuverScale).to(equal(@10.20)); - }); - - it(@"Should properly set maneuver complete", ^{ - expect(message.maneuverComplete).to(equal(@23.2)); - }); - - it(@"Should properly set soft buttons", ^{ - expect(message.softButtons).to(equal(softButtons)); - }); - - it(@"Should properly set the correlation ID", ^{ - expect(message.correlationID).to(equal(@1234)); - }); - }); -}); - -describe(@"BuildSlider Tests", ^ { - it(@"Should build correctly", ^ { - SDLSlider* message = [SDLRPCRequestFactory buildSliderDynamicFooterWithNumTicks:@3 position:@2 sliderHeader:@"HEAD" sliderFooter:@[@"FOOT1", @"FOOT2", @"FOOT3"] timeout:@32321 - correlationID:@200]; - - expect(message.numTicks).to(equal(@3)); - expect(message.position).to(equal(@2)); - expect(message.sliderHeader).to(equal(@"HEAD")); - expect(message.sliderFooter).to(equal(@[@"FOOT1", @"FOOT2", @"FOOT3"])); - expect(message.timeout).to(equal(@32321)); - expect(message.correlationID).to(equal(@200)); - - message = [SDLRPCRequestFactory buildSliderStaticFooterWithNumTicks:@4 position:@2 sliderHeader:@"UP" sliderFooter:@"DOWN" timeout:@65535 correlationID:@1024]; - - expect(message.numTicks).to(equal(@4)); - expect(message.position).to(equal(@2)); - expect(message.sliderHeader).to(equal(@"UP")); - expect(message.sliderFooter).to(equal(@[@"DOWN", @"DOWN", @"DOWN", @"DOWN"])); - expect(message.timeout).to(equal(@65535)); - expect(message.correlationID).to(equal(@1024)); - }); -}); - -describe(@"BuildSpeak Tests", ^ { - it(@"Should build correctly", ^ { - NSArray* ttsChunks = @[[[SDLTTSChunk alloc] init]]; - SDLSpeak* message = [SDLRPCRequestFactory buildSpeakWithTTS:@"GREETINGS HUMAN" correlationID:@65]; - - expect(((SDLTTSChunk*)[message ttsChunks][0]).text).to(equal(@"GREETINGS HUMAN")); - expect(message.correlationID).to(equal(@65)); - - message = [SDLRPCRequestFactory buildSpeakWithTTSChunks:ttsChunks correlationID:@56]; - - expect(message.ttsChunks).to(equal(ttsChunks)); - expect(message.correlationID).to(equal(@56)); - }); -}); - -describe(@"BuildSubscribeButton Tests", ^ { - it(@"Should build correctly", ^ { - SDLSubscribeButton* message = [SDLRPCRequestFactory buildSubscribeButtonWithName:[SDLButtonName SEARCH] correlationID:@5555555]; - - expect(message.buttonName).to(equal([SDLButtonName SEARCH])); - expect(message.correlationID).to(equal(@5555555)); - }); -}); - -describe(@"BuildSubscribeVehicleData Tests", ^ { - it(@"Should build correctly", ^ { - SDLSubscribeVehicleData* message = [SDLRPCRequestFactory buildSubscribeVehicleDataWithGPS:@YES speed:@YES rpm:@YES - fuelLevel:@NO fuelLevelState:@NO instantFuelConsumption:@NO - externalTemperature:@YES prndl:@YES tirePressure:@YES - odometer:@NO beltStatus:@NO bodyInformation:@NO - deviceStatus:@YES driverBraking:@YES wiperStatus:@YES - headLampStatus:@NO engineTorque:@NO accPedalPosition:@NO - steeringWheelAngle:@YES correlationID:@3692581470]; - - expect(message.gps).to(equal(@YES)); - expect(message.speed).to(equal(@YES)); - expect(message.rpm).to(equal(@YES)); - expect(message.fuelLevel).to(equal(@NO)); - expect(message.fuelLevel_State).to(equal(@NO)); - expect(message.instantFuelConsumption).to(equal(@NO)); - expect(message.externalTemperature).to(equal(@YES)); - expect(message.prndl).to(equal(@YES)); - expect(message.tirePressure).to(equal(@YES)); - expect(message.odometer).to(equal(@NO)); - expect(message.beltStatus).to(equal(@NO)); - expect(message.bodyInformation).to(equal(@NO)); - expect(message.deviceStatus).to(equal(@YES)); - expect(message.driverBraking).to(equal(@YES)); - expect(message.wiperStatus).to(equal(@YES)); - expect(message.headLampStatus).to(equal(@NO)); - expect(message.engineTorque).to(equal(@NO)); - expect(message.accPedalPosition).to(equal(@NO)); - expect(message.steeringWheelAngle).to(equal(@YES)); - expect(message.eCallInfo).to(beNil()); - expect(message.airbagStatus).to(beNil()); - expect(message.emergencyEvent).to(beNil()); - expect(message.clusterModeStatus).to(beNil()); - expect(message.myKey).to(beNil()); - expect(message.correlationID).to(equal(@3692581470)); - }); -}); - -describe(@"BuildUnregisterAppInterface Tests", ^ { - it(@"Should build correctly", ^ { - SDLUnregisterAppInterface* message = [SDLRPCRequestFactory buildUnregisterAppInterfaceWithCorrelationID:@4200]; - - expect(message.correlationID).to(equal(@4200)); - }); -}); - -describe(@"BuildUnsubscribeButton Tests", ^ { - it(@"Should build correctly", ^ { - SDLUnsubscribeButton* message = [SDLRPCRequestFactory buildUnsubscribeButtonWithName:[SDLButtonName OK] correlationID:@88]; - - expect(message.buttonName).to(equal([SDLButtonName OK])); - expect(message.correlationID).to(equal(@88)); - }); -}); - -describe(@"BuildSubscribeVehicleData Tests", ^ { - it(@"Should build correctly", ^ { - SDLSubscribeVehicleData* message = [SDLRPCRequestFactory buildSubscribeVehicleDataWithGPS:@YES speed:@NO rpm:@YES - fuelLevel:@YES fuelLevelState:@NO instantFuelConsumption:@NO - externalTemperature:@YES prndl:@NO tirePressure:@YES - odometer:@YES beltStatus:@NO bodyInformation:@NO - deviceStatus:@YES driverBraking:@NO wiperStatus:@YES - headLampStatus:@YES engineTorque:@NO accPedalPosition:@NO - steeringWheelAngle:@YES correlationID:@1627384950]; - - expect(message.gps).to(equal(@YES)); - expect(message.speed).to(equal(@NO)); - expect(message.rpm).to(equal(@YES)); - expect(message.fuelLevel).to(equal(@YES)); - expect(message.fuelLevel_State).to(equal(@NO)); - expect(message.instantFuelConsumption).to(equal(@NO)); - expect(message.externalTemperature).to(equal(@YES)); - expect(message.prndl).to(equal(@NO)); - expect(message.tirePressure).to(equal(@YES)); - expect(message.odometer).to(equal(@YES)); - expect(message.beltStatus).to(equal(@NO)); - expect(message.bodyInformation).to(equal(@NO)); - expect(message.deviceStatus).to(equal(@YES)); - expect(message.driverBraking).to(equal(@NO)); - expect(message.wiperStatus).to(equal(@YES)); - expect(message.headLampStatus).to(equal(@YES)); - expect(message.engineTorque).to(equal(@NO)); - expect(message.accPedalPosition).to(equal(@NO)); - expect(message.steeringWheelAngle).to(equal(@YES)); - expect(message.eCallInfo).to(beNil()); - expect(message.airbagStatus).to(beNil()); - expect(message.emergencyEvent).to(beNil()); - expect(message.clusterModeStatus).to(beNil()); - expect(message.myKey).to(beNil()); - expect(message.correlationID).to(equal(@1627384950)); - }); -}); - -describe(@"SDLUpdateTurnList Tests", ^ { - __block NSMutableArray *softButtons = nil; - __block NSMutableArray *turns = nil; - __block SDLUpdateTurnList *message = nil; - - __block SDLTurn *turn1 = nil; - __block SDLTurn *turn2 = nil; - - describe(@"Should build correctly", ^ { - beforeEach(^{ - softButtons = [@[[[SDLSoftButton alloc] init]] mutableCopy]; - - turn1 = [[SDLTurn alloc] init]; - turn2 = [[SDLTurn alloc] init]; - turns = [@[turn1, turn2] mutableCopy]; - - message = [SDLRPCRequestFactory buildUpdateTurnListWithTurnList:turns softButtons:softButtons correlationID:@1234]; - }); - - it(@"Should properly set Turns", ^{ - expect(message.turnList).to(equal(turns)); - }); - - it(@"Should properly set Soft Buttons", ^{ - expect(message.softButtons).to(equal(softButtons)); - }); - - it(@"Should properly set Correlation Id", ^{ - expect(message.correlationID).to(equal(@1234)); - }); - }); -}); - -QuickSpecEnd - - diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAppInterfaceUnregisteredSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAppInterfaceUnregisteredSpec.m deleted file mode 100644 index 2ec566031..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAppInterfaceUnregisteredSpec.m +++ /dev/null @@ -1,43 +0,0 @@ -// -// SDLOnAppInterfaceUnregisteredSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAppInterfaceUnregisteredReason.h" -#import "SDLOnAppInterfaceUnregistered.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLOnAppInterfaceUnregisteredSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnAppInterfaceUnregistered* testNotification = [[SDLOnAppInterfaceUnregistered alloc] init]; - - testNotification.reason = [SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED]; - - expect(testNotification.reason).to(equal([SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_reason:[SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED]}, - NAMES_operation_name:NAMES_OnAppInterfaceUnregistered}} mutableCopy]; - SDLOnAppInterfaceUnregistered* testNotification = [[SDLOnAppInterfaceUnregistered alloc] initWithDictionary:dict]; - - expect(testNotification.reason).to(equal([SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED])); - }); - - it(@"Should return nil if not set", ^ { - SDLOnAppInterfaceUnregistered* testNotification = [[SDLOnAppInterfaceUnregistered alloc] init]; - - expect(testNotification.reason).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAudioPassThruSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAudioPassThruSpec.m deleted file mode 100644 index 213246b1c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAudioPassThruSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLOnAudioPassThruSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLOnAudioPassThru.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLOnAudioPassThruSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonEventSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonEventSpec.m deleted file mode 100644 index becc5c251..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonEventSpec.m +++ /dev/null @@ -1,55 +0,0 @@ -// -// SDLOnButtonEventSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLButtonEventMode.h" -#import "SDLButtonName.h" -#import "SDLNames.h" -#import "SDLOnButtonEvent.h" - - -QuickSpecBegin(SDLOnButtonEventSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnButtonEvent* testNotification = [[SDLOnButtonEvent alloc] init]; - - testNotification.buttonName = [SDLButtonName CUSTOM_BUTTON]; - testNotification.buttonEventMode = [SDLButtonEventMode BUTTONDOWN]; - testNotification.customButtonID = @4252; - - expect(testNotification.buttonName).to(equal([SDLButtonName CUSTOM_BUTTON])); - expect(testNotification.buttonEventMode).to(equal([SDLButtonEventMode BUTTONDOWN])); - expect(testNotification.customButtonID).to(equal(@4252)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_buttonName:[SDLButtonName CUSTOM_BUTTON], - NAMES_buttonEventMode:[SDLButtonEventMode BUTTONDOWN], - NAMES_customButtonID:@4252}, - NAMES_operation_name:NAMES_OnButtonEvent}} mutableCopy]; - SDLOnButtonEvent* testNotification = [[SDLOnButtonEvent alloc] initWithDictionary:dict]; - - expect(testNotification.buttonName).to(equal([SDLButtonName CUSTOM_BUTTON])); - expect(testNotification.buttonEventMode).to(equal([SDLButtonEventMode BUTTONDOWN])); - expect(testNotification.customButtonID).to(equal(@4252)); - }); - - it(@"Should return nil if not set", ^ { - SDLOnButtonEvent* testNotification = [[SDLOnButtonEvent alloc] init]; - - expect(testNotification.buttonName).to(beNil()); - expect(testNotification.buttonEventMode).to(beNil()); - expect(testNotification.customButtonID).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonPressSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonPressSpec.m deleted file mode 100644 index 4467f72a5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonPressSpec.m +++ /dev/null @@ -1,55 +0,0 @@ -// -// SDLOnButtonPressSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLButtonName.h" -#import "SDLButtonPressMode.h" -#import "SDLOnButtonPress.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLOnButtonPressSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnButtonPress* testNotification = [[SDLOnButtonPress alloc] init]; - - testNotification.buttonName = [SDLButtonName CUSTOM_BUTTON]; - testNotification.buttonPressMode = [SDLButtonPressMode LONG]; - testNotification.customButtonID = @5642; - - expect(testNotification.buttonName).to(equal([SDLButtonName CUSTOM_BUTTON])); - expect(testNotification.buttonPressMode).to(equal([SDLButtonPressMode LONG])); - expect(testNotification.customButtonID).to(equal(@5642)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_buttonName:[SDLButtonName CUSTOM_BUTTON], - NAMES_buttonPressMode:[SDLButtonPressMode LONG], - NAMES_customButtonID:@5642}, - NAMES_operation_name:NAMES_OnButtonPress}} mutableCopy]; - SDLOnButtonPress* testNotification = [[SDLOnButtonPress alloc] initWithDictionary:dict]; - - expect(testNotification.buttonName).to(equal([SDLButtonName CUSTOM_BUTTON])); - expect(testNotification.buttonPressMode).to(equal([SDLButtonPressMode LONG])); - expect(testNotification.customButtonID).to(equal(@5642)); - }); - - it(@"Should return nil if not set", ^ { - SDLOnButtonPress* testNotification = [[SDLOnButtonPress alloc] init]; - - expect(testNotification.buttonName).to(beNil()); - expect(testNotification.buttonPressMode).to(beNil()); - expect(testNotification.customButtonID).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnCommandSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnCommandSpec.m deleted file mode 100644 index 6b8afd10b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnCommandSpec.m +++ /dev/null @@ -1,48 +0,0 @@ -// -// SDLOnCommandSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLNames.h" -#import "SDLOnCommand.h" -#import "SDLTriggerSource.h" - -QuickSpecBegin(SDLOnCommandSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnCommand* testNotification = [[SDLOnCommand alloc] init]; - - testNotification.cmdID = @5676544; - testNotification.triggerSource = [SDLTriggerSource KEYBOARD]; - - expect(testNotification.cmdID).to(equal(@5676544)); - expect(testNotification.triggerSource).to(equal([SDLTriggerSource KEYBOARD])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_cmdID:@5676544, - NAMES_triggerSource:[SDLTriggerSource KEYBOARD]}, - NAMES_operation_name:NAMES_OnCommand}} mutableCopy]; - SDLOnCommand* testNotification = [[SDLOnCommand alloc] initWithDictionary:dict]; - - expect(testNotification.cmdID).to(equal(@5676544)); - expect(testNotification.triggerSource).to(equal([SDLTriggerSource KEYBOARD])); - }); - - it(@"Should return nil if not set", ^ { - SDLOnCommand* testNotification = [[SDLOnCommand alloc] init]; - - expect(testNotification.cmdID).to(beNil()); - expect(testNotification.triggerSource).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnDriverDistractionSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnDriverDistractionSpec.m deleted file mode 100644 index 79c90bdd7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnDriverDistractionSpec.m +++ /dev/null @@ -1,43 +0,0 @@ -// -// SDLOnDriverDistractionSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDriverDistractionState.h" -#import "SDLOnDriverDistraction.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLOnDriverDistractionSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnDriverDistraction* testNotification = [[SDLOnDriverDistraction alloc] init]; - - testNotification.state = [SDLDriverDistractionState DD_ON]; - - expect(testNotification.state).to(equal([SDLDriverDistractionState DD_ON])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_state:[SDLDriverDistractionState DD_ON]}, - NAMES_operation_name:NAMES_OnDriverDistraction}} mutableCopy]; - SDLOnDriverDistraction* testNotification = [[SDLOnDriverDistraction alloc] initWithDictionary:dict]; - - expect(testNotification.state).to(equal([SDLDriverDistractionState DD_ON])); - }); - - it(@"Should return nil if not set", ^ { - SDLOnDriverDistraction* testNotification = [[SDLOnDriverDistraction alloc] init]; - - expect(testNotification.state).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnEncodedSyncPDataSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnEncodedSyncPDataSpec.m deleted file mode 100644 index a8844e22a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnEncodedSyncPDataSpec.m +++ /dev/null @@ -1,52 +0,0 @@ -// -// SDLOnEncodedSyncPDataSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLOnEncodedSyncPData.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLOnEncodedSyncPDataSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnEncodedSyncPData* testNotification = [[SDLOnEncodedSyncPData alloc] init]; - - testNotification.data = [@[@0] mutableCopy]; - testNotification.URL = @"www.zombo.com"; - testNotification.Timeout = @564; - - expect(testNotification.data).to(equal([@[@0] mutableCopy])); - expect(testNotification.URL).to(equal(@"www.zombo.com")); - expect(testNotification.Timeout).to(equal(@564)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_data:[@[@0] mutableCopy], - NAMES_URL:@"www.zombo.com", - NAMES_Timeout:@564}, - NAMES_operation_name:NAMES_OnEncodedSyncPData}} mutableCopy]; - SDLOnEncodedSyncPData* testNotification = [[SDLOnEncodedSyncPData alloc] initWithDictionary:dict]; - - expect(testNotification.data).to(equal([@[@0] mutableCopy])); - expect(testNotification.URL).to(equal(@"www.zombo.com")); - expect(testNotification.Timeout).to(equal(@564)); - }); - - it(@"Should return nil if not set", ^ { - SDLOnEncodedSyncPData* testNotification = [[SDLOnEncodedSyncPData alloc] init]; - - expect(testNotification.data).to(beNil()); - expect(testNotification.URL).to(beNil()); - expect(testNotification.Timeout).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHMIStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHMIStatusSpec.m deleted file mode 100644 index c2d58a484..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHMIStatusSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLOnHMIStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAudioStreamingState.h" -#import "SDLHMILevel.h" -#import "SDLOnHMIStatus.h" -#import "SDLNames.h" -#import "SDLSystemContext.h" - - -QuickSpecBegin(SDLOnHMIStatusSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnHMIStatus* testNotification = [[SDLOnHMIStatus alloc] init]; - - testNotification.hmiLevel = [SDLHMILevel LIMITED]; - testNotification.audioStreamingState = [SDLAudioStreamingState ATTENUATED]; - testNotification.systemContext = [SDLSystemContext HMI_OBSCURED]; - - expect(testNotification.hmiLevel).to(equal([SDLHMILevel LIMITED])); - expect(testNotification.audioStreamingState).to(equal([SDLAudioStreamingState ATTENUATED])); - expect(testNotification.systemContext).to(equal([SDLSystemContext HMI_OBSCURED])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_hmiLevel:[SDLHMILevel LIMITED], - NAMES_audioStreamingState:[SDLAudioStreamingState ATTENUATED], - NAMES_systemContext:[SDLSystemContext HMI_OBSCURED]}, - NAMES_operation_name:NAMES_OnHMIStatus}} mutableCopy]; - SDLOnHMIStatus* testNotification = [[SDLOnHMIStatus alloc] initWithDictionary:dict]; - - expect(testNotification.hmiLevel).to(equal([SDLHMILevel LIMITED])); - expect(testNotification.audioStreamingState).to(equal([SDLAudioStreamingState ATTENUATED])); - expect(testNotification.systemContext).to(equal([SDLSystemContext HMI_OBSCURED])); - }); - - it(@"Should return nil if not set", ^ { - SDLOnHMIStatus* testNotification = [[SDLOnHMIStatus alloc] init]; - - expect(testNotification.hmiLevel).to(beNil()); - expect(testNotification.audioStreamingState).to(beNil()); - expect(testNotification.systemContext).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHashChangeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHashChangeSpec.m deleted file mode 100644 index 308347c61..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHashChangeSpec.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// SDLOnHashChangeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLOnHashChange.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLOnHashChangeSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnHashChange* testNotification = [[SDLOnHashChange alloc] init]; - - testNotification.hashID = @"hash"; - - expect(testNotification.hashID).to(equal(@"hash")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_hashID:@"hash"}, - NAMES_operation_name:NAMES_OnHashChange}} mutableCopy]; - SDLOnHashChange* testNotification = [[SDLOnHashChange alloc] initWithDictionary:dict]; - - expect(testNotification.hashID).to(equal(@"hash")); - }); - - it(@"Should return nil if not set", ^ { - SDLOnHashChange* testNotification = [[SDLOnHashChange alloc] init]; - - expect(testNotification.hashID).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnKeyboardInputSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnKeyboardInputSpec.m deleted file mode 100644 index cf87e853d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnKeyboardInputSpec.m +++ /dev/null @@ -1,48 +0,0 @@ -// -// SDLOnKeyboardInputSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLKeyboardEvent.h" -#import "SDLOnKeyboardInput.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLOnKeyboardInputSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnKeyboardInput* testNotification = [[SDLOnKeyboardInput alloc] init]; - - testNotification.event = [SDLKeyboardEvent ENTRY_SUBMITTED]; - testNotification.data = @"qwertyg"; - - expect(testNotification.event).to(equal([SDLKeyboardEvent ENTRY_SUBMITTED])); - expect(testNotification.data).to(equal(@"qwertyg")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_event:[SDLKeyboardEvent ENTRY_SUBMITTED], - NAMES_data:@"qwertyg"}, - NAMES_operation_name:NAMES_OnKeyboardInput}} mutableCopy]; - SDLOnKeyboardInput* testNotification = [[SDLOnKeyboardInput alloc] initWithDictionary:dict]; - - expect(testNotification.event).to(equal([SDLKeyboardEvent ENTRY_SUBMITTED])); - expect(testNotification.data).to(equal(@"qwertyg")); - }); - - it(@"Should return nil if not set", ^ { - SDLOnKeyboardInput* testNotification = [[SDLOnKeyboardInput alloc] init]; - - expect(testNotification.event).to(beNil()); - expect(testNotification.data).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLanguageChangeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLanguageChangeSpec.m deleted file mode 100644 index f9009f69c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLanguageChangeSpec.m +++ /dev/null @@ -1,49 +0,0 @@ -// -// SDLOnLanguageChangeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLLanguage.h" -#import "SDLOnLanguageChange.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLOnLanguageChangeSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnLanguageChange* testNotification = [[SDLOnLanguageChange alloc] init]; - - testNotification.language = [SDLLanguage ES_ES]; - testNotification.hmiDisplayLanguage = [SDLLanguage DE_DE]; - - expect(testNotification.language).to(equal([SDLLanguage ES_ES])); - expect(testNotification.hmiDisplayLanguage).to(equal([SDLLanguage DE_DE])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_language:[SDLLanguage ES_ES], - NAMES_hmiDisplayLanguage:[SDLLanguage DE_DE]}, - NAMES_operation_name:NAMES_OnLanguageChange}} mutableCopy]; - SDLOnLanguageChange* testNotification = [[SDLOnLanguageChange alloc] initWithDictionary:dict]; - - expect(testNotification.language).to(equal([SDLLanguage ES_ES])); - expect(testNotification.hmiDisplayLanguage).to(equal([SDLLanguage DE_DE])); - }); - - it(@"Should return nil if not set", ^ { - SDLOnLanguageChange* testNotification = [[SDLOnLanguageChange alloc] init]; - - expect(testNotification.language).to(beNil()); - expect(testNotification.hmiDisplayLanguage).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLockScreenStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLockScreenStatusSpec.m deleted file mode 100644 index d438ec621..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLockScreenStatusSpec.m +++ /dev/null @@ -1,59 +0,0 @@ -// -// SDLOnLockScreenStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLOnLockScreenStatus.h" -#import "SDLHMILevel.h" -#import "SDLLockScreenStatus.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLOnLockScreenStatusSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnLockScreenStatus* testNotification = [[SDLOnLockScreenStatus alloc] init]; - - testNotification.driverDistractionStatus = @NO; - testNotification.userSelected = @3; - testNotification.lockScreenStatus = [SDLLockScreenStatus REQUIRED]; - testNotification.hmiLevel = [SDLHMILevel NONE]; - - expect(testNotification.driverDistractionStatus).to(equal(@NO)); - expect(testNotification.userSelected).to(equal(@3)); - expect(testNotification.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); - expect(testNotification.hmiLevel).to(equal([SDLHMILevel NONE])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{@"driverdistractionstatus":@NO, - @"userselected":@3, - @"OnLockScreenStatus":[SDLLockScreenStatus REQUIRED], - @"hmilevel":[SDLHMILevel NONE]}, - NAMES_operation_name:@"OnLockScreenStatus"}} mutableCopy]; - SDLOnLockScreenStatus* testNotification = [[SDLOnLockScreenStatus alloc] initWithDictionary:dict]; - - expect(testNotification.driverDistractionStatus).to(equal(@NO)); - expect(testNotification.userSelected).to(equal(@3)); - expect(testNotification.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); - expect(testNotification.hmiLevel).to(equal([SDLHMILevel NONE])); - }); - - it(@"Should return nil if not set", ^ { - SDLOnLockScreenStatus* testNotification = [[SDLOnLockScreenStatus alloc] init]; - - expect(testNotification.driverDistractionStatus).to(beNil()); - expect(testNotification.userSelected).to(beNil()); - expect(testNotification.lockScreenStatus).to(beNil()); - expect(testNotification.hmiLevel).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnPermissionsChangeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnPermissionsChangeSpec.m deleted file mode 100644 index 5a5d349cc..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnPermissionsChangeSpec.m +++ /dev/null @@ -1,45 +0,0 @@ -// -// SDLOnPermissionsChangeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLOnPermissionsChange.h" -#import "SDLPermissionItem.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLOnPermissionsChangeSpec) - -SDLPermissionItem* item = [[SDLPermissionItem alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnPermissionsChange* testNotification = [[SDLOnPermissionsChange alloc] init]; - - testNotification.permissionItem = [@[item] mutableCopy]; - - expect(testNotification.permissionItem).to(equal([@[item] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_permissionItem:[@[item] mutableCopy]}, - NAMES_operation_name:NAMES_OnPermissionsChange}} mutableCopy]; - SDLOnPermissionsChange* testNotification = [[SDLOnPermissionsChange alloc] initWithDictionary:dict]; - - expect(testNotification.permissionItem).to(equal([@[item] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLOnPermissionsChange* testNotification = [[SDLOnPermissionsChange alloc] init]; - - expect(testNotification.permissionItem).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSyncPDataSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSyncPDataSpec.m deleted file mode 100644 index 34ac9af9e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSyncPDataSpec.m +++ /dev/null @@ -1,47 +0,0 @@ -// -// SDLOnSyncPDataSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLOnSyncPData.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLOnSyncPDataSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnSyncPData* testNotification = [[SDLOnSyncPData alloc] init]; - - testNotification.URL = @"https://www.youtube.com/watch?v=ygr5AHufBN4"; - testNotification.Timeout = @8357; - - expect(testNotification.URL).to(equal(@"https://www.youtube.com/watch?v=ygr5AHufBN4")); - expect(testNotification.Timeout).to(equal(@8357)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_URL:@"https://www.youtube.com/watch?v=ygr5AHufBN4", - NAMES_Timeout:@8357}, - NAMES_operation_name:NAMES_OnSyncPData}} mutableCopy]; - SDLOnSyncPData* testNotification = [[SDLOnSyncPData alloc] initWithDictionary:dict]; - - expect(testNotification.URL).to(equal(@"https://www.youtube.com/watch?v=ygr5AHufBN4")); - expect(testNotification.Timeout).to(equal(@8357)); - }); - - it(@"Should return nil if not set", ^ { - SDLOnSyncPData* testNotification = [[SDLOnSyncPData alloc] init]; - - expect(testNotification.URL).to(beNil()); - expect(testNotification.Timeout).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSystemRequestSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSystemRequestSpec.m deleted file mode 100644 index ed235871e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSystemRequestSpec.m +++ /dev/null @@ -1,70 +0,0 @@ -// -// SDLOnSystemRequestSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLFileType.h" -#import "SDLNames.h" -#import "SDLOnSystemRequest.h" -#import "SDLRequestType.h" - - -QuickSpecBegin(SDLOnSystemRequestSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnSystemRequest* testNotification = [[SDLOnSystemRequest alloc] init]; - - testNotification.requestType = [SDLRequestType FILE_RESUME]; - testNotification.url = [@[@"www.google.com"] mutableCopy]; - testNotification.timeout = @52345; - testNotification.fileType = [SDLFileType GRAPHIC_PNG]; - testNotification.offset = @2532678684; - testNotification.length = @50000000000; - - expect(testNotification.requestType).to(equal([SDLRequestType FILE_RESUME])); - expect(testNotification.url).to(equal([@[@"www.google.com"] mutableCopy])); - expect(testNotification.timeout).to(equal(@52345)); - expect(testNotification.fileType).to(equal([SDLFileType GRAPHIC_PNG])); - expect(testNotification.offset).to(equal(@2532678684)); - expect(testNotification.length).to(equal(@50000000000)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_requestType:[SDLRequestType FILE_RESUME], - NAMES_url:[@[@"www.google.com"] mutableCopy], - NAMES_timeout:@52345, - NAMES_fileType:[SDLFileType GRAPHIC_PNG], - NAMES_offset:@2532678684, - NAMES_length:@50000000000}, - NAMES_operation_name:NAMES_OnSystemRequest}} mutableCopy]; - SDLOnSystemRequest* testNotification = [[SDLOnSystemRequest alloc] initWithDictionary:dict]; - - expect(testNotification.requestType).to(equal([SDLRequestType FILE_RESUME])); - expect(testNotification.url).to(equal([@[@"www.google.com"] mutableCopy])); - expect(testNotification.timeout).to(equal(@52345)); - expect(testNotification.fileType).to(equal([SDLFileType GRAPHIC_PNG])); - expect(testNotification.offset).to(equal(@2532678684)); - expect(testNotification.length).to(equal(@50000000000)); - }); - - it(@"Should return nil if not set", ^ { - SDLOnSystemRequest* testNotification = [[SDLOnSystemRequest alloc] init]; - - expect(testNotification.requestType).to(beNil()); - expect(testNotification.url).to(beNil()); - expect(testNotification.timeout).to(beNil()); - expect(testNotification.fileType).to(beNil()); - expect(testNotification.offset).to(beNil()); - expect(testNotification.length).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTBTClientStateSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTBTClientStateSpec.m deleted file mode 100644 index b1391d033..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTBTClientStateSpec.m +++ /dev/null @@ -1,44 +0,0 @@ -// -// SDLOnTBTClientStateSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLOnTBTClientState.h" -#import "SDLNames.h" -#import "SDLTBTState.h" - - -QuickSpecBegin(SDLOnTBTClientStateSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnTBTClientState* testNotification = [[SDLOnTBTClientState alloc] init]; - - testNotification.state = [SDLTBTState ETA_REQUEST]; - - expect(testNotification.state).to(equal([SDLTBTState ETA_REQUEST])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_state:[SDLTBTState ETA_REQUEST]}, - NAMES_operation_name:NAMES_OnTBTClientState}} mutableCopy]; - SDLOnTBTClientState* testNotification = [[SDLOnTBTClientState alloc] initWithDictionary:dict]; - - expect(testNotification.state).to(equal([SDLTBTState ETA_REQUEST])); - }); - - it(@"Should return nil if not set", ^ { - SDLOnTBTClientState* testNotification = [[SDLOnTBTClientState alloc] init]; - - expect(testNotification.state).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTouchEventSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTouchEventSpec.m deleted file mode 100644 index 298ffef9f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTouchEventSpec.m +++ /dev/null @@ -1,52 +0,0 @@ -// -// SDLOnTouchEventSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLOnTouchEvent.h" -#import "SDLNames.h" -#import "SDLTouchEvent.h" -#import "SDLTouchType.h" - - -QuickSpecBegin(SDLOnTouchEventSpec) - -SDLTouchEvent* event = [[SDLTouchEvent alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnTouchEvent* testNotification = [[SDLOnTouchEvent alloc] init]; - - testNotification.type = [SDLTouchType BEGIN]; - testNotification.event = [@[event] mutableCopy]; - - expect(testNotification.type).to(equal([SDLTouchType BEGIN])); - expect(testNotification.event).to(equal([@[event] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_type:[SDLTouchType BEGIN], - NAMES_event:[@[event] mutableCopy]}, - NAMES_operation_name:NAMES_OnTouchEvent}} mutableCopy]; - SDLOnTouchEvent* testNotification = [[SDLOnTouchEvent alloc] initWithDictionary:dict]; - - expect(testNotification.type).to(equal([SDLTouchType BEGIN])); - expect(testNotification.event).to(equal([@[event] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLOnTouchEvent* testNotification = [[SDLOnTouchEvent alloc] init]; - - expect(testNotification.type).to(beNil()); - expect(testNotification.event).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m deleted file mode 100644 index 17704a304..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m +++ /dev/null @@ -1,175 +0,0 @@ -// -// SDLOnVehicleDataSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SmartDeviceLink.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLOnVehicleDataSpec) - -SDLGPSData* gps = [[SDLGPSData alloc] init]; -SDLTireStatus* tires = [[SDLTireStatus alloc] init]; -SDLBeltStatus* belt = [[SDLBeltStatus alloc] init]; -SDLBodyInformation* body = [[SDLBodyInformation alloc] init]; -SDLDeviceStatus* device = [[SDLDeviceStatus alloc] init]; -SDLHeadLampStatus* headLamp = [[SDLHeadLampStatus alloc] init]; -SDLECallInfo* eCall = [[SDLECallInfo alloc] init]; -SDLAirbagStatus* airbag = [[SDLAirbagStatus alloc] init]; -SDLEmergencyEvent* event = [[SDLEmergencyEvent alloc] init]; -SDLClusterModeStatus* clusterMode = [[SDLClusterModeStatus alloc] init]; -SDLMyKey* myKey = [[SDLMyKey alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLOnVehicleData* testNotification = [[SDLOnVehicleData alloc] init]; - - testNotification.gps = gps; - testNotification.speed = @70.1; - testNotification.rpm = @4242; - testNotification.fuelLevel = @10.3; - testNotification.fuelLevel_State = [SDLComponentVolumeStatus ALERT]; - testNotification.instantFuelConsumption = @4000.63; - testNotification.externalTemperature = @-10; - testNotification.vin = @"222222222722"; - testNotification.prndl = [SDLPRNDL DRIVE]; - testNotification.tirePressure = tires; - testNotification.odometer = @100050; - testNotification.beltStatus = belt; - testNotification.bodyInformation = body; - testNotification.deviceStatus = device; - testNotification.driverBraking = [SDLVehicleDataEventStatus _YES]; - testNotification.wiperStatus = [SDLWiperStatus STALLED]; - testNotification.headLampStatus = headLamp; - testNotification.engineTorque = @-200.124; - testNotification.accPedalPosition = @99.99999999; - testNotification.steeringWheelAngle = @0.000000001; - testNotification.eCallInfo = eCall; - testNotification.airbagStatus = airbag; - testNotification.emergencyEvent = event; - testNotification.clusterModeStatus = clusterMode; - testNotification.myKey = myKey; - - expect(testNotification.gps).to(equal(gps)); - expect(testNotification.speed).to(equal(@70.1)); - expect(testNotification.rpm).to(equal(@4242)); - expect(testNotification.fuelLevel).to(equal(@10.3)); - expect(testNotification.fuelLevel_State).to(equal([SDLComponentVolumeStatus ALERT])); - expect(testNotification.instantFuelConsumption).to(equal(@4000.63)); - expect(testNotification.externalTemperature).to(equal(@-10)); - expect(testNotification.vin).to(equal(@"222222222722")); - expect(testNotification.prndl).to(equal([SDLPRNDL DRIVE])); - expect(testNotification.tirePressure).to(equal(tires)); - expect(testNotification.odometer).to(equal(@100050)); - expect(testNotification.beltStatus).to(equal(belt)); - expect(testNotification.bodyInformation).to(equal(body)); - expect(testNotification.deviceStatus).to(equal(device)); - expect(testNotification.driverBraking).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testNotification.wiperStatus).to(equal([SDLWiperStatus STALLED])); - expect(testNotification.headLampStatus).to(equal(headLamp)); - expect(testNotification.engineTorque).to(equal(@-200.124)); - expect(testNotification.accPedalPosition).to(equal(@99.99999999)); - expect(testNotification.steeringWheelAngle).to(equal(@0.000000001)); - expect(testNotification.eCallInfo).to(equal(eCall)); - expect(testNotification.airbagStatus).to(equal(airbag)); - expect(testNotification.emergencyEvent).to(equal(event)); - expect(testNotification.clusterModeStatus).to(equal(clusterMode)); - expect(testNotification.myKey).to(equal(myKey)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_gps:gps, - NAMES_speed:@70.1, - NAMES_rpm:@4242, - NAMES_fuelLevel:@10.3, - NAMES_fuelLevel_State:[SDLComponentVolumeStatus ALERT], - NAMES_instantFuelConsumption:@4000.63, - NAMES_externalTemperature:@-10, - NAMES_vin:@"222222222722", - NAMES_prndl:[SDLPRNDL DRIVE], - NAMES_tirePressure:tires, - NAMES_odometer:@100050, - NAMES_beltStatus:belt, - NAMES_bodyInformation:body, - NAMES_deviceStatus:device, - NAMES_driverBraking:[SDLVehicleDataEventStatus _YES], - NAMES_wiperStatus:[SDLWiperStatus STALLED], - NAMES_headLampStatus:headLamp, - NAMES_engineTorque:@-200.124, - NAMES_accPedalPosition:@99.99999999, - NAMES_steeringWheelAngle:@0.000000001, - NAMES_eCallInfo:eCall, - NAMES_airbagStatus:airbag, - NAMES_emergencyEvent:event, - NAMES_clusterModeStatus:clusterMode, - NAMES_myKey:myKey}, - NAMES_operation_name:NAMES_OnVehicleData}} mutableCopy]; - SDLOnVehicleData* testNotification = [[SDLOnVehicleData alloc] initWithDictionary:dict]; - - expect(testNotification.gps).to(equal(gps)); - expect(testNotification.speed).to(equal(@70.1)); - expect(testNotification.rpm).to(equal(@4242)); - expect(testNotification.fuelLevel).to(equal(@10.3)); - expect(testNotification.fuelLevel_State).to(equal([SDLComponentVolumeStatus ALERT])); - expect(testNotification.instantFuelConsumption).to(equal(@4000.63)); - expect(testNotification.externalTemperature).to(equal(@-10)); - expect(testNotification.vin).to(equal(@"222222222722")); - expect(testNotification.prndl).to(equal([SDLPRNDL DRIVE])); - expect(testNotification.tirePressure).to(equal(tires)); - expect(testNotification.odometer).to(equal(@100050)); - expect(testNotification.beltStatus).to(equal(belt)); - expect(testNotification.bodyInformation).to(equal(body)); - expect(testNotification.deviceStatus).to(equal(device)); - expect(testNotification.driverBraking).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testNotification.wiperStatus).to(equal([SDLWiperStatus STALLED])); - expect(testNotification.headLampStatus).to(equal(headLamp)); - expect(testNotification.engineTorque).to(equal(@-200.124)); - expect(testNotification.accPedalPosition).to(equal(@99.99999999)); - expect(testNotification.steeringWheelAngle).to(equal(@0.000000001)); - expect(testNotification.eCallInfo).to(equal(eCall)); - expect(testNotification.airbagStatus).to(equal(airbag)); - expect(testNotification.emergencyEvent).to(equal(event)); - expect(testNotification.clusterModeStatus).to(equal(clusterMode)); - expect(testNotification.myKey).to(equal(myKey)); - }); - - it(@"Should return nil if not set", ^ { - SDLOnVehicleData* testNotification = [[SDLOnVehicleData alloc] init]; - - expect(testNotification.gps).to(beNil()); - expect(testNotification.speed).to(beNil()); - expect(testNotification.rpm).to(beNil()); - expect(testNotification.fuelLevel).to(beNil()); - expect(testNotification.fuelLevel_State).to(beNil()); - expect(testNotification.instantFuelConsumption).to(beNil()); - expect(testNotification.externalTemperature).to(beNil()); - expect(testNotification.vin).to(beNil()); - expect(testNotification.prndl).to(beNil()); - expect(testNotification.tirePressure).to(beNil()); - expect(testNotification.odometer).to(beNil()); - expect(testNotification.beltStatus).to(beNil()); - expect(testNotification.bodyInformation).to(beNil()); - expect(testNotification.deviceStatus).to(beNil()); - expect(testNotification.driverBraking).to(beNil()); - expect(testNotification.wiperStatus).to(beNil()); - expect(testNotification.headLampStatus).to(beNil()); - expect(testNotification.engineTorque).to(beNil()); - expect(testNotification.accPedalPosition).to(beNil()); - expect(testNotification.steeringWheelAngle).to(beNil()); - expect(testNotification.eCallInfo).to(beNil()); - expect(testNotification.airbagStatus).to(beNil()); - expect(testNotification.emergencyEvent).to(beNil()); - expect(testNotification.clusterModeStatus).to(beNil()); - expect(testNotification.myKey).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/PayloadSpecs/SDLRPCPayloadSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/PayloadSpecs/SDLRPCPayloadSpec.m deleted file mode 100644 index 441eca732..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/PayloadSpecs/SDLRPCPayloadSpec.m +++ /dev/null @@ -1,75 +0,0 @@ -// -// SDLRPCPayloadSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import - -#import "SDLRPCPayload.h" -#import "SDLRPCMessageType.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLRPCPayloadSpec) - -__block SDLRPCPayload* testPayload; -__block NSDictionary* dict = @{NAMES_response: - @{NAMES_parameters:@{}, - NAMES_operation_name:NAMES_DeleteCommand}}; - -NSData* (^testData)() = ^NSData* { - NSData* jsonData = [NSJSONSerialization dataWithJSONObject:dict options:0 error:0]; - NSData* binaryData = [NSData dataWithBytes:"PrimitiveString" length:strlen("PrimitiveString")]; - - UInt8 header[12] = {0x10, 0x00, 0x00, 0x06, 0x00, 0x00, 0x14, 0x43, 0x00, 0x00, 0x00, 0x00}; - *(UInt32 *)&header[8] = CFSwapInt32HostToBig((unsigned int)jsonData.length); - - NSMutableData *data = [NSMutableData dataWithCapacity:12 + jsonData.length]; - [data appendBytes:&header length:12]; - [data appendData:jsonData]; - [data appendData:binaryData]; - - return data; -}; - -beforeSuite(^ { - testPayload = [[SDLRPCPayload alloc] init]; - - testPayload.rpcType = 0x01; - testPayload.functionID = 0x06; - testPayload.correlationID = 0x1443; - testPayload.jsonData = [NSJSONSerialization dataWithJSONObject:dict options:0 error:0]; - testPayload.binaryData = [NSData dataWithBytes:"PrimitiveString" length:strlen("PrimitiveString")]; -}); - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - expect(@(testPayload.rpcType)).to(equal(@0x01)); - expect(@(testPayload.functionID)).to(equal(@0x06)); - expect(@(testPayload.correlationID)).to(equal(@0x1443)); - expect([NSJSONSerialization JSONObjectWithData:testPayload.jsonData options:0 error:0]).to(equal(dict)); - expect([NSString stringWithUTF8String:[testPayload binaryData].bytes]).to(equal(@"PrimitiveString")); - }); -}); - -describe(@"Data Tests", ^ { - it (@"Should convert to byte data correctly", ^ { - expect(testPayload.data).to(equal(testData())); - }); -}); - -describe(@"RPCPayloadWithData Test", ^ { - it (@"Should convert from byte data correctly", ^ { - SDLRPCPayload* constructedPayload = [SDLRPCPayload rpcPayloadWithData:testData()]; - - expect(@(constructedPayload.rpcType)).to(equal(@0x01)); - expect(@(constructedPayload.functionID)).to(equal(@0x06)); - expect(@(constructedPayload.correlationID)).to(equal(@0x1443)); - expect([NSJSONSerialization JSONObjectWithData:constructedPayload.jsonData options:0 error:0]).to(equal(dict)); - expect([NSString stringWithUTF8String:[constructedPayload binaryData].bytes]).to(equal(@"PrimitiveString")); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddCommandSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddCommandSpec.m deleted file mode 100644 index 455552bad..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddCommandSpec.m +++ /dev/null @@ -1,62 +0,0 @@ -// -// SDLAddCommandSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAddCommand.h" -#import "SDLImage.h" -#import "SDLMenuParams.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLAddCommandSpec) - -SDLMenuParams* menu = [[SDLMenuParams alloc] init]; -SDLImage* image = [[SDLImage alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLAddCommand* testRequest = [[SDLAddCommand alloc] init]; - - testRequest.cmdID = @434577; - testRequest.menuParams = menu; - testRequest.vrCommands = [@[@"name", @"anotherName"] mutableCopy]; - testRequest.cmdIcon = image; - - expect(testRequest.cmdID).to(equal(@434577)); - expect(testRequest.menuParams).to(equal(menu)); - expect(testRequest.vrCommands).to(equal([@[@"name", @"anotherName"] mutableCopy])); - expect(testRequest.cmdIcon).to(equal(image)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_cmdID:@434577, - NAMES_menuParams:menu, - NAMES_vrCommands:[@[@"name", @"anotherName"] mutableCopy], - NAMES_cmdIcon:image}, - NAMES_operation_name:NAMES_AddCommand}} mutableCopy]; - SDLAddCommand* testRequest = [[SDLAddCommand alloc] initWithDictionary:dict]; - - expect(testRequest.cmdID).to(equal(@434577)); - expect(testRequest.menuParams).to(equal(menu)); - expect(testRequest.vrCommands).to(equal([@[@"name", @"anotherName"] mutableCopy])); - expect(testRequest.cmdIcon).to(equal(image)); - }); - - it(@"Should return nil if not set", ^ { - SDLAddCommand* testRequest = [[SDLAddCommand alloc] init]; - - expect(testRequest.cmdID).to(beNil()); - expect(testRequest.menuParams).to(beNil()); - expect(testRequest.vrCommands).to(beNil()); - expect(testRequest.cmdIcon).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m deleted file mode 100644 index 04a6526a8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m +++ /dev/null @@ -1,52 +0,0 @@ -// -// SDLAddSubMenuSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAddSubMenu.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLAddSubMenuSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLAddSubMenu* testRequest = [[SDLAddSubMenu alloc] init]; - - testRequest.menuID = @4345645; - testRequest.position = @27; - testRequest.menuName = @"Welcome to the menu"; - - expect(testRequest.menuID).to(equal(@4345645)); - expect(testRequest.position).to(equal(@27)); - expect(testRequest.menuName).to(equal(@"Welcome to the menu")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_menuID:@4345645, - NAMES_position:@27, - NAMES_menuName:@"Welcome to the menu"}, - NAMES_operation_name:NAMES_AddSubMenu}} mutableCopy]; - SDLAddSubMenu* testRequest = [[SDLAddSubMenu alloc] initWithDictionary:dict]; - - expect(testRequest.menuID).to(equal(@4345645)); - expect(testRequest.position).to(equal(@27)); - expect(testRequest.menuName).to(equal(@"Welcome to the menu")); - }); - - it(@"Should return nil if not set", ^ { - SDLAddSubMenu* testRequest = [[SDLAddSubMenu alloc] init]; - - expect(testRequest.menuID).to(beNil()); - expect(testRequest.position).to(beNil()); - expect(testRequest.menuName).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertManeuverSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertManeuverSpec.m deleted file mode 100644 index 16d5aa0e6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertManeuverSpec.m +++ /dev/null @@ -1,52 +0,0 @@ -// -// SDLAlertManeuverSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAlertManeuver.h" -#import "SDLTTSChunk.h" -#import "SDLSoftButton.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLAlertManeuverSpec) - -SDLTTSChunk* tts = [[SDLTTSChunk alloc] init]; -SDLSoftButton* button = [[SDLSoftButton alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLAlertManeuver* testRequest = [[SDLAlertManeuver alloc] init]; - - testRequest.ttsChunks = [@[tts] mutableCopy]; - testRequest.softButtons = [@[button] mutableCopy]; - - expect(testRequest.ttsChunks).to(equal([@[tts] mutableCopy])); - expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_ttsChunks:[@[tts] mutableCopy], - NAMES_softButtons:[@[button] mutableCopy]}, - NAMES_operation_name:NAMES_AlertManeuver}} mutableCopy]; - SDLAlertManeuver* testRequest = [[SDLAlertManeuver alloc] initWithDictionary:dict]; - - expect(testRequest.ttsChunks).to(equal([@[tts] mutableCopy])); - expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLAlertManeuver* testRequest = [[SDLAlertManeuver alloc] init]; - - expect(testRequest.ttsChunks).to(beNil()); - expect(testRequest.softButtons).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertSpec.m deleted file mode 100644 index b5725e168..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertSpec.m +++ /dev/null @@ -1,82 +0,0 @@ -// -// SDLAlertSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAlert.h" -#import "SDLTTSChunk.h" -#import "SDLSoftButton.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLAlertSpec) - -SDLTTSChunk* tts = [[SDLTTSChunk alloc] init]; -SDLSoftButton* button = [[SDLSoftButton alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLAlert* testRequest = [[SDLAlert alloc] init]; - - testRequest.alertText1 = @"alert#1"; - testRequest.alertText2 = @"alert#2"; - testRequest.alertText3 = @"alert#3"; - testRequest.ttsChunks = [@[tts] mutableCopy]; - testRequest.duration = @4357; - testRequest.playTone = @YES; - testRequest.progressIndicator = @NO; - testRequest.softButtons = [@[button] mutableCopy]; - - expect(testRequest.alertText1).to(equal(@"alert#1")); - expect(testRequest.alertText2).to(equal(@"alert#2")); - expect(testRequest.alertText3).to(equal(@"alert#3")); - expect(testRequest.ttsChunks).to(equal([@[tts] mutableCopy])); - expect(testRequest.duration).to(equal(@4357)); - expect(testRequest.playTone).to(equal(@YES)); - expect(testRequest.progressIndicator).to(equal(@NO)); - expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_alertText1:@"alert#1", - NAMES_alertText2:@"alert#2", - NAMES_alertText3:@"alert#3", - NAMES_ttsChunks:[@[tts] mutableCopy], - NAMES_duration:@4357, - NAMES_playTone:@YES, - NAMES_progressIndicator:@NO, - NAMES_softButtons:[@[button] mutableCopy]}, - NAMES_operation_name:NAMES_Alert}} mutableCopy]; - SDLAlert* testRequest = [[SDLAlert alloc] initWithDictionary:dict]; - - expect(testRequest.alertText1).to(equal(@"alert#1")); - expect(testRequest.alertText2).to(equal(@"alert#2")); - expect(testRequest.alertText3).to(equal(@"alert#3")); - expect(testRequest.ttsChunks).to(equal([@[tts] mutableCopy])); - expect(testRequest.duration).to(equal(@4357)); - expect(testRequest.playTone).to(equal(@YES)); - expect(testRequest.progressIndicator).to(equal(@NO)); - expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLAlert* testRequest = [[SDLAlert alloc] init]; - - expect(testRequest.alertText1).to(beNil()); - expect(testRequest.alertText2).to(beNil()); - expect(testRequest.alertText3).to(beNil()); - expect(testRequest.ttsChunks).to(beNil()); - expect(testRequest.duration).to(beNil()); - expect(testRequest.playTone).to(beNil()); - expect(testRequest.progressIndicator).to(beNil()); - expect(testRequest.softButtons).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLChangeRegistrationSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLChangeRegistrationSpec.m deleted file mode 100644 index 9bf496042..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLChangeRegistrationSpec.m +++ /dev/null @@ -1,186 +0,0 @@ -// -// SDLChangeRegistrationSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLChangeRegistration.h" -#import "SDLLanguage.h" -#import "SDLNames.h" -#import "SDLTTSChunk.h" - - -QuickSpecBegin(SDLChangeRegistrationSpec) - -describe(@"change registration", ^ { - __block SDLChangeRegistration *testRequest = nil; - __block SDLLanguage *someLanguage = nil; - __block SDLLanguage *someOtherLanguage = nil; - __block NSString *someAppName = nil; - __block NSArray *someTTSChunks = nil; - __block NSString *someNGNMediaAppName = nil; - __block NSArray *someVRSynonyms = nil; - - describe(@"when initializing with properites", ^{ - context(@"when parameters are set", ^{ - beforeEach(^{ - testRequest = [[SDLChangeRegistration alloc] init]; - - someLanguage = [SDLLanguage IT_IT]; - someOtherLanguage = [SDLLanguage KO_KR]; - someAppName = @"someAppName"; - someTTSChunks = @[[[SDLTTSChunk alloc] init]]; - someNGNMediaAppName = @"some media app name"; - someVRSynonyms = @[@"some1", @"some2"]; - - testRequest.language = someLanguage; - testRequest.hmiDisplayLanguage = someOtherLanguage; - testRequest.appName = someAppName; - testRequest.ttsName = someTTSChunks; - testRequest.ngnMediaScreenAppName = someNGNMediaAppName; - testRequest.vrSynonyms = someVRSynonyms; - }); - - // Since the properties are immutable, a copy should be executed as a retain, so they should be identical - it(@"should get language correctly", ^{ - expect(testRequest.language).to(beIdenticalTo(someLanguage)); - }); - - it(@"should get hmi display language correctly", ^{ - expect(testRequest.hmiDisplayLanguage).to(beIdenticalTo(someOtherLanguage)); - }); - - it(@"should get app name correctly", ^{ - expect(testRequest.appName).to(beIdenticalTo(someAppName)); - }); - - it(@"should get tts chuncks correctly", ^{ - expect(testRequest.ttsName).to(beIdenticalTo(someTTSChunks)); - }); - - it(@"should get ngn media app name correctly", ^{ - expect(testRequest.ngnMediaScreenAppName).to(beIdenticalTo(someNGNMediaAppName)); - }); - - it(@"should get vr synonyms correctly", ^{ - expect(testRequest.vrSynonyms).to(beIdenticalTo(someVRSynonyms)); - }); - }); - - context(@"when no parameters are set", ^{ - beforeEach(^{ - testRequest = [[SDLChangeRegistration alloc] init]; - }); - - it(@"Should return nil if for language", ^ { - expect(testRequest.language).to(beNil()); - }); - - it(@"should return nil for hmi display language", ^{ - expect(testRequest.hmiDisplayLanguage).to(beNil()); - }); - - it(@"should return nil for app name", ^{ - expect(testRequest.appName).to(beNil()); - }); - - it(@"should return nil for tts name", ^{ - expect(testRequest.ttsName).to(beNil()); - }); - - it(@"should return nil for ngn media screen app name", ^{ - expect(testRequest.ngnMediaScreenAppName).to(beNil()); - }); - - it(@"should return nil for vr synonyms", ^{ - expect(testRequest.vrSynonyms).to(beNil()); - }); - }); - }); - - describe(@"when initializing with a dictionary", ^{ - context(@"when parameters are set", ^{ - beforeEach(^{ - someLanguage = [SDLLanguage IT_IT]; - someOtherLanguage = [SDLLanguage KO_KR]; - someAppName = @"someAppName"; - someTTSChunks = @[[[SDLTTSChunk alloc] init]]; - someNGNMediaAppName = @"some media app name"; - someVRSynonyms = @[@"some1", @"some2"]; - - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_language:someLanguage, - NAMES_hmiDisplayLanguage:someOtherLanguage, - NAMES_appName:someAppName, - NAMES_ttsName:someTTSChunks, - NAMES_ngnMediaScreenAppName:someNGNMediaAppName, - NAMES_vrSynonyms:someVRSynonyms}, - NAMES_operation_name:NAMES_ChangeRegistration}} mutableCopy]; - - testRequest = [[SDLChangeRegistration alloc] initWithDictionary:dict]; - }); - - // Since the properties are immutable, a copy should be executed as a retain, so they should be identical - it(@"should get language correctly", ^{ - expect(testRequest.language).to(beIdenticalTo(someLanguage)); - }); - - it(@"should get hmi display language correctly", ^{ - expect(testRequest.hmiDisplayLanguage).to(beIdenticalTo(someOtherLanguage)); - }); - - it(@"should get app name correctly", ^{ - expect(testRequest.appName).to(beIdenticalTo(someAppName)); - }); - - it(@"should get tts chuncks correctly", ^{ - expect(testRequest.ttsName).to(beIdenticalTo(someTTSChunks)); - }); - - it(@"should get ngn media app name correctly", ^{ - expect(testRequest.ngnMediaScreenAppName).to(beIdenticalTo(someNGNMediaAppName)); - }); - - it(@"should get vr synonyms correctly", ^{ - expect(testRequest.vrSynonyms).to(beIdenticalTo(someVRSynonyms)); - }); - }); - - context(@"when no parameters are set", ^{ - beforeEach(^{ - testRequest = [[SDLChangeRegistration alloc] initWithDictionary:[NSMutableDictionary dictionary]]; - }); - - it(@"Should return nil if for language", ^ { - expect(testRequest.language).to(beNil()); - }); - - it(@"should return nil for hmi display language", ^{ - expect(testRequest.hmiDisplayLanguage).to(beNil()); - }); - - it(@"should return nil for app name", ^{ - expect(testRequest.appName).to(beNil()); - }); - - it(@"should return nil for tts name", ^{ - expect(testRequest.ttsName).to(beNil()); - }); - - it(@"should return nil for ngn media screen app name", ^{ - expect(testRequest.ngnMediaScreenAppName).to(beNil()); - }); - - it(@"should return nil for vr synonyms", ^{ - expect(testRequest.vrSynonyms).to(beNil()); - }); - }); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLCreateInteractionChoiceSetSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLCreateInteractionChoiceSetSpec.m deleted file mode 100644 index 39cadb2d6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLCreateInteractionChoiceSetSpec.m +++ /dev/null @@ -1,50 +0,0 @@ -// -// SDLCreateInteractionChoiceSetSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLCreateInteractionChoiceSet.h" -#import "SDLChoice.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLCreateInteractionChoiceSetSpec) - -SDLChoice* choice = [[SDLChoice alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLCreateInteractionChoiceSet* testRequest = [[SDLCreateInteractionChoiceSet alloc] init]; - - testRequest.interactionChoiceSetID = @141414; - testRequest.choiceSet = [@[choice] mutableCopy]; - - expect(testRequest.interactionChoiceSetID).to(equal(@141414)); - expect(testRequest.choiceSet).to(equal([@[choice] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_interactionChoiceSetID:@141414, - NAMES_choiceSet:[@[choice] mutableCopy]}, - NAMES_operation_name:NAMES_CreateInteractionChoiceSet}} mutableCopy]; - SDLCreateInteractionChoiceSet* testRequest = [[SDLCreateInteractionChoiceSet alloc] initWithDictionary:dict]; - - expect(testRequest.interactionChoiceSetID).to(equal(@141414)); - expect(testRequest.choiceSet).to(equal([@[choice] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLCreateInteractionChoiceSet* testRequest = [[SDLCreateInteractionChoiceSet alloc] init]; - - expect(testRequest.interactionChoiceSetID).to(beNil()); - expect(testRequest.choiceSet).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteCommandSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteCommandSpec.m deleted file mode 100644 index 2d0be62d8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteCommandSpec.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// SDLDeleteCommandSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDeleteCommand.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLDeleteCommandSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLDeleteCommand* testRequest = [[SDLDeleteCommand alloc] init]; - - testRequest.cmdID = @11223344; - - expect(testRequest.cmdID).to(equal(@11223344)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_cmdID:@11223344}, - NAMES_operation_name:NAMES_DeleteCommand}} mutableCopy]; - SDLDeleteCommand* testRequest = [[SDLDeleteCommand alloc] initWithDictionary:dict]; - - expect(testRequest.cmdID).to(equal(@11223344)); - }); - - it(@"Should return nil if not set", ^ { - SDLDeleteCommand* testRequest = [[SDLDeleteCommand alloc] init]; - - expect(testRequest.cmdID).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteFileSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteFileSpec.m deleted file mode 100755 index c6e471fc4..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteFileSpec.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// SDLDeleteFileSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDeleteFile.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLDeleteFileSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLDeleteFile* testRequest = [[SDLDeleteFile alloc] init]; - - testRequest.syncFileName = @"synchro"; - - expect(testRequest.syncFileName).to(equal(@"synchro")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_syncFileName:@"synchro"}, - NAMES_operation_name:NAMES_DeleteFile}} mutableCopy]; - SDLDeleteFile* testRequest = [[SDLDeleteFile alloc] initWithDictionary:dict]; - - expect(testRequest.syncFileName).to(equal(@"synchro")); - }); - - it(@"Should return nil if not set", ^ { - SDLDeleteFile* testRequest = [[SDLDeleteFile alloc] init]; - - expect(testRequest.syncFileName).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m deleted file mode 100755 index 6d42d114f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// SDLDeleteInteractionChoiceSetSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDeleteInteractionChoiceSet.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLDeleteInteractionChoiceSetSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLDeleteInteractionChoiceSet* testRequest = [[SDLDeleteInteractionChoiceSet alloc] init]; - - testRequest.interactionChoiceSetID = @20314; - - expect(testRequest.interactionChoiceSetID).to(equal(@20314)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_interactionChoiceSetID:@20314}, - NAMES_operation_name:NAMES_DeleteInteractionChoiceSet}} mutableCopy]; - SDLDeleteInteractionChoiceSet* testRequest = [[SDLDeleteInteractionChoiceSet alloc] initWithDictionary:dict]; - - expect(testRequest.interactionChoiceSetID).to(equal(@20314)); - }); - - it(@"Should return nil if not set", ^ { - SDLDeleteInteractionChoiceSet* testRequest = [[SDLDeleteInteractionChoiceSet alloc] init]; - - expect(testRequest.interactionChoiceSetID).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteSubMenuSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteSubMenuSpec.m deleted file mode 100755 index 9b2d6588d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteSubMenuSpec.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// SDLDeleteSubMenuSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDeleteSubMenu.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLDeleteSubMenuSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLDeleteSubMenu* testRequest = [[SDLDeleteSubMenu alloc] init]; - - testRequest.menuID = @25614; - - expect(testRequest.menuID).to(equal(@25614)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_menuID:@25614}, - NAMES_operation_name:NAMES_DeleteSubMenu}} mutableCopy]; - SDLDeleteSubMenu* testRequest = [[SDLDeleteSubMenu alloc] initWithDictionary:dict]; - - expect(testRequest.menuID).to(equal(@25614)); - }); - - it(@"Should return nil if not set", ^ { - SDLDeleteSubMenu* testRequest = [[SDLDeleteSubMenu alloc] init]; - - expect(testRequest.menuID).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDiagnosticMessageSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDiagnosticMessageSpec.m deleted file mode 100755 index 965920f39..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDiagnosticMessageSpec.m +++ /dev/null @@ -1,52 +0,0 @@ -// -// SDLDiagnosticMessageSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDiagnosticMessage.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLDiagnosticMessageSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLDiagnosticMessage* testRequest = [[SDLDiagnosticMessage alloc] init]; - - testRequest.targetID = @3562; - testRequest.messageLength = @55555; - testRequest.messageData = [@[@1, @4, @16, @64] mutableCopy]; - - expect(testRequest.targetID).to(equal(@3562)); - expect(testRequest.messageLength).to(equal(@55555)); - expect(testRequest.messageData).to(equal([@[@1, @4, @16, @64] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_targetID:@3562, - NAMES_messageLength:@55555, - NAMES_messageData:[@[@1, @4, @16, @64] mutableCopy]}, - NAMES_operation_name:NAMES_DiagnosticMessage}} mutableCopy]; - SDLDiagnosticMessage* testRequest = [[SDLDiagnosticMessage alloc] initWithDictionary:dict]; - - expect(testRequest.targetID).to(equal(@3562)); - expect(testRequest.messageLength).to(equal(@55555)); - expect(testRequest.messageData).to(equal([@[@1, @4, @16, @64] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLDiagnosticMessage* testRequest = [[SDLDiagnosticMessage alloc] init]; - - expect(testRequest.targetID).to(beNil()); - expect(testRequest.messageLength).to(beNil()); - expect(testRequest.messageData).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDialNumberSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDialNumberSpec.m deleted file mode 100644 index 7371fedf3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDialNumberSpec.m +++ /dev/null @@ -1,80 +0,0 @@ -// -// SDLDialNumberSpec.m -// SmartDeviceLink-iOS - -#import -#import - -#import "SDLDialNumber.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLDialNumberSpec) - -describe(@"Dial Number RPC", ^{ - describe(@"when initialized with 'init'", ^{ - __block SDLDialNumber *testRequest = nil; - beforeEach(^{ - testRequest = [[SDLDialNumber alloc] init]; - }); - - context(@"when parameters are set correctly", ^{ - __block NSString *somePhoneNumber = nil; - beforeEach(^{ - somePhoneNumber = @"1234567890"; - testRequest.number = [somePhoneNumber copy]; - }); - - it(@"should get 'number' correctly", ^{ - expect(testRequest.number).to(equal(somePhoneNumber)); - }); - }); - - context(@"when parameters are not set correctly", ^{ - it(@"should return nil for number", ^{ - expect(testRequest.number).to(beNil()); - }); - }); - }); - - describe(@"when initialized with a dictionary and parameters are set correctly", ^{ - __block SDLDialNumber *testRequest = nil; - __block NSString *somePhoneNumber = nil; - beforeEach(^{ - somePhoneNumber = @"1234567890"; - NSDictionary *initDict = @{ - NAMES_request: @{ - NAMES_parameters: @{ - NAMES_number: [somePhoneNumber copy] - } - } - }; - - testRequest = [[SDLDialNumber alloc] initWithDictionary:[initDict mutableCopy]]; - }); - - it(@"should get 'number' correctly", ^{ - expect(testRequest.number).to(equal(somePhoneNumber)); - }); - }); - - describe(@"when initialized with a dictionary and parameters are not set correctly", ^{ - __block SDLDialNumber *testRequest = nil; - beforeEach(^{ - NSDictionary *initDict = @{ - NAMES_request: @{ - NAMES_parameters: @{ - } - } - }; - - testRequest = [[SDLDialNumber alloc] initWithDictionary:[initDict mutableCopy]]; - }); - - it(@"should return nil for number", ^{ - expect(testRequest.number).to(beNil()); - }); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m deleted file mode 100755 index 753608940..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// SDLEncodedSyncPDataSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLEncodedSyncPData.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLEncodedSyncPDataSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLEncodedSyncPData* testRequest = [[SDLEncodedSyncPData alloc] init]; - - testRequest.data = [@[@2, @2, @2] mutableCopy]; - - expect(testRequest.data).to(equal([@[@2, @2, @2] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_data:[@[@2, @2, @2] mutableCopy]}, - NAMES_operation_name:NAMES_EncodedSyncPData}} mutableCopy]; - SDLEncodedSyncPData* testRequest = [[SDLEncodedSyncPData alloc] initWithDictionary:dict]; - - expect(testRequest.data).to(equal([@[@2, @2, @2] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLEncodedSyncPData* testRequest = [[SDLEncodedSyncPData alloc] init]; - - expect(testRequest.data).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEndAudioPassThruSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEndAudioPassThruSpec.m deleted file mode 100644 index 843d917be..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEndAudioPassThruSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLEndAudioPassThruSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLEndAudioPassThru.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLEndAudioPassThruSpec) - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetDTCsSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetDTCsSpec.m deleted file mode 100755 index 87f84fd4d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetDTCsSpec.m +++ /dev/null @@ -1,47 +0,0 @@ -// -// SDLGetDTCsSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLGetDTCs.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLGetDTCsSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLGetDTCs* testRequest = [[SDLGetDTCs alloc] init]; - - testRequest.ecuName = @4321; - testRequest.dtcMask = @22; - - expect(testRequest.ecuName).to(equal(@4321)); - expect(testRequest.dtcMask).to(equal(@22)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_ecuName:@4321, - NAMES_dtcMask:@22}, - NAMES_operation_name:NAMES_EndAudioPassThru}} mutableCopy]; - SDLGetDTCs* testRequest = [[SDLGetDTCs alloc] initWithDictionary:dict]; - - expect(testRequest.ecuName).to(equal(@4321)); - expect(testRequest.dtcMask).to(equal(@22)); - }); - - it(@"Should return nil if not set", ^ { - SDLGetDTCs* testRequest = [[SDLGetDTCs alloc] init]; - - expect(testRequest.ecuName).to(beNil()); - expect(testRequest.dtcMask).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m deleted file mode 100644 index 936550ce7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m +++ /dev/null @@ -1,162 +0,0 @@ -// -// SDLGetVehicleDataSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLGetVehicleData.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLGetVehicleDataSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLGetVehicleData* testRequest = [[SDLGetVehicleData alloc] init]; - - testRequest.gps = @NO; - testRequest.speed = @YES; - testRequest.rpm = @NO; - testRequest.fuelLevel = @YES; - testRequest.fuelLevel_State = @NO; - testRequest.instantFuelConsumption = @YES; - testRequest.externalTemperature = @NO; - testRequest.vin = @YES; - testRequest.prndl = @NO; - testRequest.tirePressure = @YES; - testRequest.odometer = @NO; - testRequest.beltStatus = @YES; - testRequest.bodyInformation = @NO; - testRequest.deviceStatus = @YES; - testRequest.driverBraking = @NO; - testRequest.wiperStatus = @YES; - testRequest.headLampStatus = @NO; - testRequest.engineTorque = @YES; - testRequest.accPedalPosition = @NO; - testRequest.steeringWheelAngle = @YES; - testRequest.eCallInfo = @NO; - testRequest.airbagStatus = @YES; - testRequest.emergencyEvent = @NO; - testRequest.clusterModeStatus = @YES; - testRequest.myKey = @NO; - - expect(testRequest.gps).to(equal(@NO)); - expect(testRequest.speed).to(equal(@YES)); - expect(testRequest.rpm).to(equal(@NO)); - expect(testRequest.fuelLevel).to(equal(@YES)); - expect(testRequest.fuelLevel_State).to(equal(@NO)); - expect(testRequest.instantFuelConsumption).to(equal(@YES)); - expect(testRequest.externalTemperature).to(equal(@NO)); - expect(testRequest.vin).to(equal(@YES)); - expect(testRequest.prndl).to(equal(@NO)); - expect(testRequest.tirePressure).to(equal(@YES)); - expect(testRequest.odometer).to(equal(@NO)); - expect(testRequest.beltStatus).to(equal(@YES)); - expect(testRequest.bodyInformation).to(equal(@NO)); - expect(testRequest.deviceStatus).to(equal(@YES)); - expect(testRequest.driverBraking).to(equal(@NO)); - expect(testRequest.wiperStatus).to(equal(@YES)); - expect(testRequest.headLampStatus).to(equal(@NO)); - expect(testRequest.engineTorque).to(equal(@YES)); - expect(testRequest.accPedalPosition).to(equal(@NO)); - expect(testRequest.steeringWheelAngle).to(equal(@YES)); - expect(testRequest.eCallInfo).to(equal(@NO)); - expect(testRequest.airbagStatus).to(equal(@YES)); - expect(testRequest.emergencyEvent).to(equal(@NO)); - expect(testRequest.clusterModeStatus).to(equal(@YES)); - expect(testRequest.myKey).to(equal(@NO)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_gps:@NO, - NAMES_speed:@YES, - NAMES_rpm:@NO, - NAMES_fuelLevel:@YES, - NAMES_fuelLevel_State:@NO, - NAMES_instantFuelConsumption:@YES, - NAMES_externalTemperature:@NO, - NAMES_vin:@YES, - NAMES_prndl:@NO, - NAMES_tirePressure:@YES, - NAMES_odometer:@NO, - NAMES_beltStatus:@YES, - NAMES_bodyInformation:@NO, - NAMES_deviceStatus:@YES, - NAMES_driverBraking:@NO, - NAMES_wiperStatus:@YES, - NAMES_headLampStatus:@NO, - NAMES_engineTorque:@YES, - NAMES_accPedalPosition:@NO, - NAMES_steeringWheelAngle:@YES, - NAMES_eCallInfo:@NO, - NAMES_airbagStatus:@YES, - NAMES_emergencyEvent:@NO, - NAMES_clusterModeStatus:@YES, - NAMES_myKey:@NO}, - NAMES_operation_name:NAMES_GetVehicleData}} mutableCopy]; - SDLGetVehicleData* testRequest = [[SDLGetVehicleData alloc] initWithDictionary:dict]; - - expect(testRequest.gps).to(equal(@NO)); - expect(testRequest.speed).to(equal(@YES)); - expect(testRequest.rpm).to(equal(@NO)); - expect(testRequest.fuelLevel).to(equal(@YES)); - expect(testRequest.fuelLevel_State).to(equal(@NO)); - expect(testRequest.instantFuelConsumption).to(equal(@YES)); - expect(testRequest.externalTemperature).to(equal(@NO)); - expect(testRequest.vin).to(equal(@YES)); - expect(testRequest.prndl).to(equal(@NO)); - expect(testRequest.tirePressure).to(equal(@YES)); - expect(testRequest.odometer).to(equal(@NO)); - expect(testRequest.beltStatus).to(equal(@YES)); - expect(testRequest.bodyInformation).to(equal(@NO)); - expect(testRequest.deviceStatus).to(equal(@YES)); - expect(testRequest.driverBraking).to(equal(@NO)); - expect(testRequest.wiperStatus).to(equal(@YES)); - expect(testRequest.headLampStatus).to(equal(@NO)); - expect(testRequest.engineTorque).to(equal(@YES)); - expect(testRequest.accPedalPosition).to(equal(@NO)); - expect(testRequest.steeringWheelAngle).to(equal(@YES)); - expect(testRequest.eCallInfo).to(equal(@NO)); - expect(testRequest.airbagStatus).to(equal(@YES)); - expect(testRequest.emergencyEvent).to(equal(@NO)); - expect(testRequest.clusterModeStatus).to(equal(@YES)); - expect(testRequest.myKey).to(equal(@NO)); - }); - - it(@"Should return nil if not set", ^ { - SDLGetVehicleData* testRequest = [[SDLGetVehicleData alloc] init]; - - expect(testRequest.gps).to(beNil()); - expect(testRequest.speed).to(beNil()); - expect(testRequest.rpm).to(beNil()); - expect(testRequest.fuelLevel).to(beNil()); - expect(testRequest.fuelLevel_State).to(beNil()); - expect(testRequest.instantFuelConsumption).to(beNil()); - expect(testRequest.externalTemperature).to(beNil()); - expect(testRequest.vin).to(beNil()); - expect(testRequest.prndl).to(beNil()); - expect(testRequest.tirePressure).to(beNil()); - expect(testRequest.odometer).to(beNil()); - expect(testRequest.beltStatus).to(beNil()); - expect(testRequest.bodyInformation).to(beNil()); - expect(testRequest.deviceStatus).to(beNil()); - expect(testRequest.driverBraking).to(beNil()); - expect(testRequest.wiperStatus).to(beNil()); - expect(testRequest.headLampStatus).to(beNil()); - expect(testRequest.engineTorque).to(beNil()); - expect(testRequest.accPedalPosition).to(beNil()); - expect(testRequest.steeringWheelAngle).to(beNil()); - expect(testRequest.eCallInfo).to(beNil()); - expect(testRequest.airbagStatus).to(beNil()); - expect(testRequest.emergencyEvent).to(beNil()); - expect(testRequest.clusterModeStatus).to(beNil()); - expect(testRequest.myKey).to(beNil()); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLListFilesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLListFilesSpec.m deleted file mode 100644 index 0f0084f41..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLListFilesSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLListFilesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLListFiles.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLListFilesSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformAudioPassThruSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformAudioPassThruSpec.m deleted file mode 100644 index 011a7adf5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformAudioPassThruSpec.m +++ /dev/null @@ -1,76 +0,0 @@ -// -// SDLPerformAudioPassThruSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAudioType.h" -#import "SDLBitsPerSample.h" -#import "SDLNames.h" -#import "SDLPerformAudioPassThru.h" -#import "SDLSamplingRate.h" - - -QuickSpecBegin(SDLPerformAudioPassThruSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLPerformAudioPassThru* testRequest = [[SDLPerformAudioPassThru alloc] init]; - - testRequest.audioPassThruDisplayText1 = @"passthru#1"; - testRequest.audioPassThruDisplayText2 = @"passthru#2"; - testRequest.samplingRate = [SDLSamplingRate _22KHZ]; - testRequest.maxDuration = @34563; - testRequest.bitsPerSample = [SDLBitsPerSample _16_BIT]; - testRequest.audioType = [SDLAudioType PCM]; - testRequest.muteAudio = @NO; - - expect(testRequest.audioPassThruDisplayText1).to(equal(@"passthru#1")); - expect(testRequest.audioPassThruDisplayText2).to(equal(@"passthru#2")); - expect(testRequest.samplingRate).to(equal([SDLSamplingRate _22KHZ])); - expect(testRequest.maxDuration).to(equal(@34563)); - expect(testRequest.bitsPerSample).to(equal([SDLBitsPerSample _16_BIT])); - expect(testRequest.audioType).to(equal([SDLAudioType PCM])); - expect(testRequest.muteAudio).to(equal(@NO)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_audioPassThruDisplayText1:@"passthru#1", - NAMES_audioPassThruDisplayText2:@"passthru#2", - NAMES_samplingRate:[SDLSamplingRate _22KHZ], - NAMES_maxDuration:@34563, - NAMES_bitsPerSample:[SDLBitsPerSample _16_BIT], - NAMES_audioType:[SDLAudioType PCM], - NAMES_muteAudio:@NO}, - NAMES_operation_name:NAMES_PerformAudioPassThru}} mutableCopy]; - SDLPerformAudioPassThru* testRequest = [[SDLPerformAudioPassThru alloc] initWithDictionary:dict]; - - expect(testRequest.audioPassThruDisplayText1).to(equal(@"passthru#1")); - expect(testRequest.audioPassThruDisplayText2).to(equal(@"passthru#2")); - expect(testRequest.samplingRate).to(equal([SDLSamplingRate _22KHZ])); - expect(testRequest.maxDuration).to(equal(@34563)); - expect(testRequest.bitsPerSample).to(equal([SDLBitsPerSample _16_BIT])); - expect(testRequest.audioType).to(equal([SDLAudioType PCM])); - expect(testRequest.muteAudio).to(equal(@NO)); - }); - - it(@"Should return nil if not set", ^ { - SDLPerformAudioPassThru* testRequest = [[SDLPerformAudioPassThru alloc] init]; - - expect(testRequest.audioPassThruDisplayText1).to(beNil()); - expect(testRequest.audioPassThruDisplayText2).to(beNil()); - expect(testRequest.samplingRate).to(beNil()); - expect(testRequest.maxDuration).to(beNil()); - expect(testRequest.bitsPerSample).to(beNil()); - expect(testRequest.audioType).to(beNil()); - expect(testRequest.muteAudio).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformInteractionSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformInteractionSpec.m deleted file mode 100644 index c89c3d5bd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformInteractionSpec.m +++ /dev/null @@ -1,91 +0,0 @@ -// -// SDLPerformInteractionSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLInteractionMode.h" -#import "SDLLayoutMode.h" -#import "SDLPerformInteraction.h" -#import "SDLTTSChunk.h" -#import "SDLVrHelpItem.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLPerformInteractionSpec) - -SDLTTSChunk* chunk1 = [[SDLTTSChunk alloc] init]; -SDLTTSChunk* chunk2 = [[SDLTTSChunk alloc] init]; -SDLTTSChunk* chunk3 = [[SDLTTSChunk alloc] init]; -SDLVRHelpItem* helpItem = [[SDLVRHelpItem alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLPerformInteraction* testRequest = [[SDLPerformInteraction alloc] init]; - - testRequest.initialText = @"a"; - testRequest.initialPrompt = [@[chunk1] mutableCopy]; - testRequest.interactionMode = [SDLInteractionMode VR_ONLY]; - testRequest.interactionChoiceSetIDList = [@[@1, @2, @3] mutableCopy]; - testRequest.helpPrompt = [@[chunk2] mutableCopy]; - testRequest.timeoutPrompt = [@[chunk3] mutableCopy]; - testRequest.timeout = @42000; - testRequest.vrHelp = [@[helpItem] mutableCopy]; - testRequest.interactionLayout = [SDLLayoutMode ICON_WITH_SEARCH]; - - expect(testRequest.initialText).to(equal(@"a")); - expect(testRequest.initialPrompt).to(equal([@[chunk1] mutableCopy])); - expect(testRequest.interactionMode).to(equal([SDLInteractionMode VR_ONLY])); - expect(testRequest.interactionChoiceSetIDList).to(equal([@[@1, @2, @3] mutableCopy])); - expect(testRequest.helpPrompt).to(equal([@[chunk2] mutableCopy])); - expect(testRequest.timeoutPrompt).to(equal([@[chunk3] mutableCopy])); - expect(testRequest.timeout).to(equal(@42000)); - expect(testRequest.vrHelp).to(equal([@[helpItem] mutableCopy])); - expect(testRequest.interactionLayout).to(equal([SDLLayoutMode ICON_WITH_SEARCH])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_initialText:@"a", - NAMES_initialPrompt:[@[chunk1] mutableCopy], - NAMES_interactionMode:[SDLInteractionMode VR_ONLY], - NAMES_interactionChoiceSetIDList:[@[@1, @2, @3] mutableCopy], - NAMES_helpPrompt:[@[chunk2] mutableCopy], - NAMES_timeoutPrompt:[@[chunk3] mutableCopy], - NAMES_timeout:@42000, - NAMES_vrHelp:[@[helpItem] mutableCopy], - NAMES_interactionLayout:[SDLLayoutMode ICON_WITH_SEARCH]}, - NAMES_operation_name:NAMES_PerformInteraction}} mutableCopy]; - SDLPerformInteraction* testRequest = [[SDLPerformInteraction alloc] initWithDictionary:dict]; - - expect(testRequest.initialText).to(equal(@"a")); - expect(testRequest.initialPrompt).to(equal([@[chunk1] mutableCopy])); - expect(testRequest.interactionMode).to(equal([SDLInteractionMode VR_ONLY])); - expect(testRequest.interactionChoiceSetIDList).to(equal([@[@1, @2, @3] mutableCopy])); - expect(testRequest.helpPrompt).to(equal([@[chunk2] mutableCopy])); - expect(testRequest.timeoutPrompt).to(equal([@[chunk3] mutableCopy])); - expect(testRequest.timeout).to(equal(@42000)); - expect(testRequest.vrHelp).to(equal([@[helpItem] mutableCopy])); - expect(testRequest.interactionLayout).to(equal([SDLLayoutMode ICON_WITH_SEARCH])); - }); - - it(@"Should return nil if not set", ^ { - SDLPerformInteraction* testRequest = [[SDLPerformInteraction alloc] init]; - - expect(testRequest.initialText).to(beNil()); - expect(testRequest.initialPrompt).to(beNil()); - expect(testRequest.interactionMode).to(beNil()); - expect(testRequest.interactionChoiceSetIDList).to(beNil()); - expect(testRequest.helpPrompt).to(beNil()); - expect(testRequest.timeoutPrompt).to(beNil()); - expect(testRequest.timeout).to(beNil()); - expect(testRequest.vrHelp).to(beNil()); - expect(testRequest.interactionLayout).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPutFileSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPutFileSpec.m deleted file mode 100644 index bfa24dc13..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPutFileSpec.m +++ /dev/null @@ -1,69 +0,0 @@ -// -// SDLPutFileSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLFileType.h" -#import "SDLNames.h" -#import "SDLPutFile.h" - - -QuickSpecBegin(SDLPutFileSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLPutFile* testRequest = [[SDLPutFile alloc] init]; - - testRequest.syncFileName = @"fileName"; - testRequest.fileType = [SDLFileType GRAPHIC_JPEG]; - testRequest.persistentFile = @YES; - testRequest.systemFile = @NO; - testRequest.offset = @987654321; - testRequest.length = @123456789; - - expect(testRequest.syncFileName).to(equal(@"fileName")); - expect(testRequest.fileType).to(equal([SDLFileType GRAPHIC_JPEG])); - expect(testRequest.persistentFile).to(equal(@YES)); - expect(testRequest.systemFile).to(equal(@NO)); - expect(testRequest.offset).to(equal(@987654321)); - expect(testRequest.length).to(equal(@123456789)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_syncFileName:@"fileName", - NAMES_fileType:[SDLFileType GRAPHIC_JPEG], - NAMES_persistentFile:@YES, - NAMES_systemFile:@NO, - NAMES_offset:@987654321, - NAMES_length:@123456789}, - NAMES_operation_name:NAMES_PutFile}} mutableCopy]; - SDLPutFile* testRequest = [[SDLPutFile alloc] initWithDictionary:dict]; - - expect(testRequest.syncFileName).to(equal(@"fileName")); - expect(testRequest.fileType).to(equal([SDLFileType GRAPHIC_JPEG])); - expect(testRequest.persistentFile).to(equal(@YES)); - expect(testRequest.systemFile).to(equal(@NO)); - expect(testRequest.offset).to(equal(@987654321)); - expect(testRequest.length).to(equal(@123456789)); - }); - - it(@"Should return nil if not set", ^ { - SDLPutFile* testRequest = [[SDLPutFile alloc] init]; - - expect(testRequest.syncFileName).to(beNil()); - expect(testRequest.fileType).to(beNil()); - expect(testRequest.persistentFile).to(beNil()); - expect(testRequest.systemFile).to(beNil()); - expect(testRequest.offset).to(beNil()); - expect(testRequest.length).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLReadDIDSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLReadDIDSpec.m deleted file mode 100644 index 7c5598bbb..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLReadDIDSpec.m +++ /dev/null @@ -1,47 +0,0 @@ -// -// SDLReadDIDSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLReadDID.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLReadDIDSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLReadDID* testRequest = [[SDLReadDID alloc] init]; - - testRequest.ecuName = @33112; - testRequest.didLocation = [@[@200, @201, @205] mutableCopy]; - - expect(testRequest.ecuName).to(equal(@33112)); - expect(testRequest.didLocation).to(equal([@[@200, @201, @205] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_ecuName:@33112, - NAMES_didLocation:[@[@200, @201, @205] mutableCopy]}, - NAMES_operation_name:NAMES_EndAudioPassThru}} mutableCopy]; - SDLReadDID* testRequest = [[SDLReadDID alloc] initWithDictionary:dict]; - - expect(testRequest.ecuName).to(equal(@33112)); - expect(testRequest.didLocation).to(equal([@[@200, @201, @205] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLReadDID* testRequest = [[SDLReadDID alloc] init]; - - expect(testRequest.ecuName).to(beNil()); - expect(testRequest.didLocation).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLRegisterAppInterfaceSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLRegisterAppInterfaceSpec.m deleted file mode 100644 index 6e8a4cc5d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLRegisterAppInterfaceSpec.m +++ /dev/null @@ -1,107 +0,0 @@ -// -// SDLRegisterAppInterfaceSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAppHMIType.h" -#import "SDLDeviceInfo.h" -#import "SDLLanguage.h" -#import "SDLNames.h" -#import "SDLRegisterAppInterface.h" -#import "SDLSyncMsgVersion.h" -#import "SDLTTSChunk.h" - - -QuickSpecBegin(SDLRegisterAppInterfaceSpec) - -SDLSyncMsgVersion* version = [[SDLSyncMsgVersion alloc] init]; -SDLTTSChunk* chunk = [[SDLTTSChunk alloc] init]; -SDLDeviceInfo* info = [[SDLDeviceInfo alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLRegisterAppInterface* testRequest = [[SDLRegisterAppInterface alloc] init]; - - testRequest.syncMsgVersion = version; - testRequest.appName = @"app56"; - testRequest.ttsName = [@[chunk] mutableCopy]; - testRequest.ngnMediaScreenAppName = @"whatisanngn"; - testRequest.vrSynonyms = [@[@"paraphrase of the original name"] mutableCopy]; - testRequest.isMediaApplication = @NO; - testRequest.languageDesired = [SDLLanguage NO_NO]; - testRequest.hmiDisplayLanguageDesired = [SDLLanguage PT_PT]; - testRequest.appHMIType = [@[[SDLAppHMIType MESSAGING], [SDLAppHMIType INFORMATION]] copy]; - testRequest.hashID = @"gercd35grw2"; - testRequest.deviceInfo = info; - testRequest.appID = @"123456789"; - - expect(testRequest.syncMsgVersion).to(equal(version)); - expect(testRequest.appName).to(equal(@"app56")); - expect(testRequest.ttsName).to(equal([@[chunk] mutableCopy])); - expect(testRequest.ngnMediaScreenAppName).to(equal(@"whatisanngn")); - expect(testRequest.vrSynonyms).to(equal([@[@"paraphrase of the original name"] mutableCopy])); - expect(testRequest.isMediaApplication).to(equal(@NO)); - expect(testRequest.languageDesired).to(equal([SDLLanguage NO_NO])); - expect(testRequest.hmiDisplayLanguageDesired).to(equal([SDLLanguage PT_PT])); - expect(testRequest.appHMIType).to(equal([@[[SDLAppHMIType MESSAGING], [SDLAppHMIType INFORMATION]] copy])); - expect(testRequest.hashID).to(equal(@"gercd35grw2")); - expect(testRequest.deviceInfo).to(equal(info)); - expect(testRequest.appID).to(equal(@"123456789")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_syncMsgVersion:version, - NAMES_appName:@"app56", - NAMES_ttsName:[@[chunk] mutableCopy], - NAMES_ngnMediaScreenAppName:@"whatisanngn", - NAMES_vrSynonyms:[@[@"paraphrase of the original name"] mutableCopy], - NAMES_isMediaApplication:@NO, - NAMES_languageDesired:[SDLLanguage NO_NO], - NAMES_hmiDisplayLanguageDesired:[SDLLanguage PT_PT], - NAMES_appHMIType:[@[[SDLAppHMIType MESSAGING], [SDLAppHMIType INFORMATION]] copy], - NAMES_hashID:@"gercd35grw2", - NAMES_deviceInfo:info, - NAMES_appID:@"123456789"}, - NAMES_operation_name:NAMES_RegisterAppInterface}} mutableCopy]; - SDLRegisterAppInterface* testRequest = [[SDLRegisterAppInterface alloc] initWithDictionary:dict]; - - expect(testRequest.syncMsgVersion).to(equal(version)); - expect(testRequest.appName).to(equal(@"app56")); - expect(testRequest.ttsName).to(equal([@[chunk] mutableCopy])); - expect(testRequest.ngnMediaScreenAppName).to(equal(@"whatisanngn")); - expect(testRequest.vrSynonyms).to(equal([@[@"paraphrase of the original name"] mutableCopy])); - expect(testRequest.isMediaApplication).to(equal(@NO)); - expect(testRequest.languageDesired).to(equal([SDLLanguage NO_NO])); - expect(testRequest.hmiDisplayLanguageDesired).to(equal([SDLLanguage PT_PT])); - expect(testRequest.appHMIType).to(equal([@[[SDLAppHMIType MESSAGING], [SDLAppHMIType INFORMATION]] copy])); - expect(testRequest.hashID).to(equal(@"gercd35grw2")); - expect(testRequest.deviceInfo).to(equal(info)); - expect(testRequest.appID).to(equal(@"123456789")); - }); - - it(@"Should return nil if not set", ^ { - SDLRegisterAppInterface* testRequest = [[SDLRegisterAppInterface alloc] init]; - - expect(testRequest.syncMsgVersion).to(beNil()); - expect(testRequest.appName).to(beNil()); - expect(testRequest.ttsName).to(beNil()); - expect(testRequest.ngnMediaScreenAppName).to(beNil()); - expect(testRequest.vrSynonyms).to(beNil()); - expect(testRequest.isMediaApplication).to(beNil()); - expect(testRequest.languageDesired).to(beNil()); - expect(testRequest.hmiDisplayLanguageDesired).to(beNil()); - expect(testRequest.appHMIType).to(beNil()); - expect(testRequest.hashID).to(beNil()); - expect(testRequest.deviceInfo).to(beNil()); - expect(testRequest.appID).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLResetGlobalPropertiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLResetGlobalPropertiesSpec.m deleted file mode 100644 index e99320f18..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLResetGlobalPropertiesSpec.m +++ /dev/null @@ -1,43 +0,0 @@ -// -// SDLResetGlobalPropertiesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLResetGlobalProperties.h" -#import "SDLGlobalProperty.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLResetGlobalPropertiesSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLResetGlobalProperties* testRequest = [[SDLResetGlobalProperties alloc] init]; - - testRequest.properties = [@[[SDLGlobalProperty MENUNAME], [SDLGlobalProperty VRHELPTITLE]] copy]; - - expect(testRequest.properties).to(equal([@[[SDLGlobalProperty MENUNAME], [SDLGlobalProperty VRHELPTITLE]] copy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_properties:[@[[SDLGlobalProperty MENUNAME], [SDLGlobalProperty VRHELPTITLE]] copy]}, - NAMES_operation_name:NAMES_ResetGlobalProperties}} mutableCopy]; - SDLResetGlobalProperties* testRequest = [[SDLResetGlobalProperties alloc] initWithDictionary:dict]; - - expect(testRequest.properties).to(equal([@[[SDLGlobalProperty MENUNAME], [SDLGlobalProperty VRHELPTITLE]] copy])); - }); - - it(@"Should return nil if not set", ^ { - SDLResetGlobalProperties* testRequest = [[SDLResetGlobalProperties alloc] init]; - - expect(testRequest.properties).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLScrollableMessageSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLScrollableMessageSpec.m deleted file mode 100644 index 6b1142d6b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLScrollableMessageSpec.m +++ /dev/null @@ -1,55 +0,0 @@ -// -// SDLScrollableMessageSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLScrollableMessage.h" -#import "SDLSoftButton.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLScrollableMessageSpec) - -SDLSoftButton* button = [[SDLSoftButton alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLScrollableMessage* testRequest = [[SDLScrollableMessage alloc] init]; - - testRequest.scrollableMessageBody = @"thatmessagebody"; - testRequest.timeout = @9182; - testRequest.softButtons = [@[button] mutableCopy]; - - expect(testRequest.scrollableMessageBody).to(equal(@"thatmessagebody")); - expect(testRequest.timeout).to(equal(@9182)); - expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_scrollableMessageBody:@"thatmessagebody", - NAMES_timeout:@9182, - NAMES_softButtons:[@[button] mutableCopy]}, - NAMES_operation_name:NAMES_ScrollableMessage}} mutableCopy]; - SDLScrollableMessage* testRequest = [[SDLScrollableMessage alloc] initWithDictionary:dict]; - - expect(testRequest.scrollableMessageBody).to(equal(@"thatmessagebody")); - expect(testRequest.timeout).to(equal(@9182)); - expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLScrollableMessage* testRequest = [[SDLScrollableMessage alloc] init]; - - expect(testRequest.scrollableMessageBody).to(beNil()); - expect(testRequest.timeout).to(beNil()); - expect(testRequest.softButtons).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSendLocationSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSendLocationSpec.m deleted file mode 100644 index ccd4bafdb..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSendLocationSpec.m +++ /dev/null @@ -1,222 +0,0 @@ -// -// SDLSendLocationSpec.m -// SmartDeviceLink-iOS - -#import -#import - -#import "SDLNames.h" -#import "SDLSendLocation.h" - - -QuickSpecBegin(SDLSendLocationSpec) - -describe(@"Send Location RPC", ^{ - __block SDLSendLocation *testRequest = nil; - __block NSNumber *someLongitude = nil; - __block NSNumber *someLatitude = nil; - __block NSString *someLocation = nil; - __block NSString *someLocationDescription = nil; - __block NSArray *someAddressLines = nil; - __block NSString *somePhoneNumber = nil; - __block SDLImage *someImage = nil; - - describe(@"when initialized with init", ^{ - beforeEach(^{ - testRequest = [[SDLSendLocation alloc] init]; - }); - - context(@"when parameters are set correctly", ^{ - beforeEach(^{ - someLongitude = @123.4567; - someLatitude = @65.4321; - someLocation = @"Livio"; - someLocationDescription = @"A great place to work"; - someAddressLines = @[@"3136 Hilton Rd", @"Ferndale, MI", @"48220"]; - somePhoneNumber = @"248-591-0333"; - someImage = [[SDLImage alloc] init]; - - testRequest.longitudeDegrees = someLongitude; - testRequest.latitudeDegrees = someLatitude; - testRequest.locationName = someLocation; - testRequest.locationDescription = someLocationDescription; - testRequest.addressLines = someAddressLines; - testRequest.phoneNumber = somePhoneNumber; - testRequest.locationImage = someImage; - }); - - // Since all the properties are immutable, a copy should be executed as a retain, which means they should be identical - it(@"should get longitude correctly", ^{ - expect(testRequest.longitudeDegrees).to(equal(someLongitude)); - expect(testRequest.longitudeDegrees).to(beIdenticalTo(someLongitude)); - }); - - it(@"should get latitude correctly", ^{ - expect(testRequest.latitudeDegrees).to(equal(someLatitude)); - expect(testRequest.latitudeDegrees).to(beIdenticalTo(someLatitude)); - }); - - it(@"should get location correctly", ^{ - expect(testRequest.locationName).to(equal(someLocation)); - expect(testRequest.locationName).to(beIdenticalTo(someLocation)); - }); - - it(@"should get location description correctly", ^{ - expect(testRequest.locationDescription).to(equal(someLocationDescription)); - expect(testRequest.locationDescription).to(beIdenticalTo(someLocationDescription)); - }); - - it(@"should get address lines correctly", ^{ - expect(testRequest.addressLines).to(equal(someAddressLines)); - expect(testRequest.addressLines).to(beIdenticalTo(someAddressLines)); - }); - - it(@"should get phone number correctly", ^{ - expect(testRequest.phoneNumber).to(equal(somePhoneNumber)); - expect(testRequest.phoneNumber).to(beIdenticalTo(somePhoneNumber)); - }); - - it(@"should get image correctly", ^{ - expect(testRequest.locationImage).to(equal(someImage)); - expect(testRequest.locationImage).to(beIdenticalTo(someImage)); - }); - }); - - context(@"when parameters are not set", ^{ - it(@"should return nil for longitude", ^{ - expect(testRequest.longitudeDegrees).to(beNil()); - }); - - it(@"should return nil for latitude", ^{ - expect(testRequest.latitudeDegrees).to(beNil()); - }); - - it(@"should return nil for location", ^{ - expect(testRequest.locationName).to(beNil()); - }); - - it(@"should return nil for location description", ^{ - expect(testRequest.locationDescription).to(beNil()); - }); - - it(@"should return nil for address lines", ^{ - expect(testRequest.addressLines).to(beNil()); - }); - - it(@"should return nil for phone number", ^{ - expect(testRequest.phoneNumber).to(beNil()); - }); - - it(@"should return nil for image", ^{ - expect(testRequest.locationImage).to(beNil()); - }); - }); - }); - - describe(@"when initialized with a dictionary", ^{ - context(@"when parameters are set correctly", ^{ - beforeEach(^{ - someLongitude = @123.4567; - someLatitude = @65.4321; - someLocation = @"Livio"; - someLocationDescription = @"A great place to work"; - someAddressLines = @[@"3136 Hilton Rd", @"Ferndale, MI", @"48220"]; - somePhoneNumber = @"248-591-0333"; - someImage = [[SDLImage alloc] init]; - NSDictionary *initDict = @{ - NAMES_request: @{ - NAMES_parameters: @{ - NAMES_longitudeDegrees: someLongitude, - NAMES_latitudeDegrees: someLatitude, - NAMES_locationName: someLocation, - NAMES_locationDescription: someLocationDescription, - NAMES_addressLines: someAddressLines, - NAMES_phoneNumber: somePhoneNumber, - NAMES_locationImage: someImage - } - } - }; - - testRequest = [[SDLSendLocation alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]]; - }); - - // Since all the properties are immutable, a copy should be executed as a retain, which means they should be identical - it(@"should get longitude correctly", ^{ - expect(testRequest.longitudeDegrees).to(equal(someLongitude)); - expect(testRequest.longitudeDegrees).to(beIdenticalTo(someLongitude)); - }); - - it(@"should get latitude correctly", ^{ - expect(testRequest.latitudeDegrees).to(equal(someLatitude)); - expect(testRequest.latitudeDegrees).to(beIdenticalTo(someLatitude)); - }); - - it(@"should get location correctly", ^{ - expect(testRequest.locationName).to(equal(someLocation)); - expect(testRequest.locationName).to(beIdenticalTo(someLocation)); - }); - - it(@"should get location description correctly", ^{ - expect(testRequest.locationDescription).to(equal(someLocationDescription)); - expect(testRequest.locationDescription).to(beIdenticalTo(someLocationDescription)); - }); - - it(@"should get address lines correctly", ^{ - expect(testRequest.addressLines).to(equal(someAddressLines)); - expect(testRequest.addressLines).to(beIdenticalTo(someAddressLines)); - }); - - it(@"should get phone number correctly", ^{ - expect(testRequest.phoneNumber).to(equal(somePhoneNumber)); - expect(testRequest.phoneNumber).to(beIdenticalTo(somePhoneNumber)); - }); - - it(@"should get image correctly", ^{ - expect(testRequest.locationImage).to(equal(someImage)); - expect(testRequest.locationImage).to(beIdenticalTo(someImage)); - }); - }); - - context(@"when parameters are not set", ^{ - beforeEach(^{ - NSDictionary *initDict = @{ - NAMES_request: @{ - NAMES_parameters: @{} - } - }; - - testRequest = [[SDLSendLocation alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]]; - }); - - it(@"should return nil for longitude", ^{ - expect(testRequest.longitudeDegrees).to(beNil()); - }); - - it(@"should return nil for latitude", ^{ - expect(testRequest.latitudeDegrees).to(beNil()); - }); - - it(@"should return nil for location", ^{ - expect(testRequest.locationName).to(beNil()); - }); - - it(@"should return nil for location description", ^{ - expect(testRequest.locationDescription).to(beNil()); - }); - - it(@"should return nil for address lines", ^{ - expect(testRequest.addressLines).to(beNil()); - }); - - it(@"should return nil for phone number", ^{ - expect(testRequest.phoneNumber).to(beNil()); - }); - - it(@"should return nil for image", ^{ - expect(testRequest.locationImage).to(beNil()); - }); - }); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetAppIconSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetAppIconSpec.m deleted file mode 100644 index 9c24c9e91..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetAppIconSpec.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// SDLSetAppIconSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSetAppIcon.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSetAppIconSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSetAppIcon* testRequest = [[SDLSetAppIcon alloc] init]; - - testRequest.syncFileName = @"A/File/Name"; - - expect(testRequest.syncFileName).to(equal(@"A/File/Name")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_syncFileName:@"A/File/Name"}, - NAMES_operation_name:NAMES_SetAppIcon}} mutableCopy]; - SDLSetAppIcon* testRequest = [[SDLSetAppIcon alloc] initWithDictionary:dict]; - - expect(testRequest.syncFileName).to(equal(@"A/File/Name")); - }); - - it(@"Should return nil if not set", ^ { - SDLSetAppIcon* testRequest = [[SDLSetAppIcon alloc] init]; - - expect(testRequest.syncFileName).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetDisplayLayoutSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetDisplayLayoutSpec.m deleted file mode 100644 index 41e63323a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetDisplayLayoutSpec.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// SDLSetDisplayLayoutSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSetDisplayLayout.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSetDisplayLayoutSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSetDisplayLayout* testRequest = [[SDLSetDisplayLayout alloc] init]; - - testRequest.displayLayout = @"wat"; - - expect(testRequest.displayLayout).to(equal(@"wat")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_displayLayout:@"wat"}, - NAMES_operation_name:NAMES_SetDisplayLayout}} mutableCopy]; - SDLSetDisplayLayout* testRequest = [[SDLSetDisplayLayout alloc] initWithDictionary:dict]; - - expect(testRequest.displayLayout).to(equal(@"wat")); - }); - - it(@"Should return nil if not set", ^ { - SDLSetDisplayLayout* testRequest = [[SDLSetDisplayLayout alloc] init]; - - expect(testRequest.displayLayout).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetGlobalPropertiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetGlobalPropertiesSpec.m deleted file mode 100644 index 437218896..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetGlobalPropertiesSpec.m +++ /dev/null @@ -1,83 +0,0 @@ -// -// SDLSetGlobalPropertiesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLImage.h" -#import "SDLKeyboardProperties.h" -#import "SDLNames.h" -#import "SDLSetGlobalProperties.h" -#import "SDLTTSChunk.h" -#import "SDLVrHelpItem.h" - - -QuickSpecBegin(SDLSetGlobalPropertiesSpec) - -SDLTTSChunk* chunk1 = [[SDLTTSChunk alloc] init]; -SDLTTSChunk* chunk2 = [[SDLTTSChunk alloc] init]; -SDLVRHelpItem* help = [[SDLVRHelpItem alloc] init]; -SDLImage* image = [[SDLImage alloc] init]; -SDLKeyboardProperties* keyboard = [[SDLKeyboardProperties alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSetGlobalProperties* testRequest = [[SDLSetGlobalProperties alloc] init]; - - testRequest.helpPrompt = [@[chunk1] mutableCopy]; - testRequest.timeoutPrompt = [@[chunk2] mutableCopy]; - testRequest.vrHelpTitle = @"vr"; - testRequest.vrHelp = [@[help] mutableCopy]; - testRequest.menuTitle = @"TheNewMenu"; - testRequest.menuIcon = image; - testRequest.keyboardProperties = keyboard; - - expect(testRequest.helpPrompt).to(equal([@[chunk1] mutableCopy])); - expect(testRequest.timeoutPrompt).to(equal([@[chunk2] mutableCopy])); - expect(testRequest.vrHelpTitle).to(equal(@"vr")); - expect(testRequest.vrHelp).to(equal([@[help] mutableCopy])); - expect(testRequest.menuTitle).to(equal(@"TheNewMenu")); - expect(testRequest.menuIcon).to(equal(image)); - expect(testRequest.keyboardProperties).to(equal(keyboard)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_helpPrompt:[@[chunk1] mutableCopy], - NAMES_timeoutPrompt:[@[chunk2] mutableCopy], - NAMES_vrHelpTitle:@"vr", - NAMES_vrHelp:[@[help] mutableCopy], - NAMES_menuTitle:@"TheNewMenu", - NAMES_menuIcon:image, - NAMES_keyboardProperties:keyboard}, - NAMES_operation_name:NAMES_SetGlobalProperties}} mutableCopy]; - SDLSetGlobalProperties* testRequest = [[SDLSetGlobalProperties alloc] initWithDictionary:dict]; - - expect(testRequest.helpPrompt).to(equal([@[chunk1] mutableCopy])); - expect(testRequest.timeoutPrompt).to(equal([@[chunk2] mutableCopy])); - expect(testRequest.vrHelpTitle).to(equal(@"vr")); - expect(testRequest.vrHelp).to(equal([@[help] mutableCopy])); - expect(testRequest.menuTitle).to(equal(@"TheNewMenu")); - expect(testRequest.menuIcon).to(equal(image)); - expect(testRequest.keyboardProperties).to(equal(keyboard)); - }); - - it(@"Should return nil if not set", ^ { - SDLSetGlobalProperties* testRequest = [[SDLSetGlobalProperties alloc] init]; - - expect(testRequest.helpPrompt).to(beNil()); - expect(testRequest.timeoutPrompt).to(beNil()); - expect(testRequest.vrHelpTitle).to(beNil()); - expect(testRequest.vrHelp).to(beNil()); - expect(testRequest.menuTitle).to(beNil()); - expect(testRequest.menuIcon).to(beNil()); - expect(testRequest.keyboardProperties).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m deleted file mode 100644 index 8d2a9a36e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m +++ /dev/null @@ -1,58 +0,0 @@ -// -// SDLSetMediaClockTimerSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLNames.h" -#import "SDLSetMediaClockTimer.h" -#import "SDLStartTime.h" -#import "SDLUpdateMode.h" - - -QuickSpecBegin(SDLSetMediaClockTimerSpec) - -SDLStartTime* time1 = [[SDLStartTime alloc] init]; -SDLStartTime* time2 = [[SDLStartTime alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSetMediaClockTimer* testRequest = [[SDLSetMediaClockTimer alloc] init]; - - testRequest.startTime = time1; - testRequest.endTime = time2; - testRequest.updateMode = [SDLUpdateMode COUNTUP]; - - expect(testRequest.startTime).to(equal(time1)); - expect(testRequest.endTime).to(equal(time2)); - expect(testRequest.updateMode).to(equal([SDLUpdateMode COUNTUP])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_startTime:time1, - NAMES_endTime:time2, - NAMES_updateMode:[SDLUpdateMode COUNTUP]}, - NAMES_operation_name:NAMES_SetMediaClockTimer}} mutableCopy]; - SDLSetMediaClockTimer* testRequest = [[SDLSetMediaClockTimer alloc] initWithDictionary:dict]; - - expect(testRequest.startTime).to(equal(time1)); - expect(testRequest.endTime).to(equal(time2)); - expect(testRequest.updateMode).to(equal([SDLUpdateMode COUNTUP])); - }); - - it(@"Should return nil if not set", ^ { - SDLSetMediaClockTimer* testRequest = [[SDLSetMediaClockTimer alloc] init]; - - expect(testRequest.startTime).to(beNil()); - expect(testRequest.endTime).to(beNil()); - expect(testRequest.updateMode).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowConstantTBTSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowConstantTBTSpec.m deleted file mode 100644 index 3af100462..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowConstantTBTSpec.m +++ /dev/null @@ -1,99 +0,0 @@ -// -// SDLShowConstantTBTSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLImage.h" -#import "SDLNames.h" -#import "SDLShowConstantTBT.h" -#import "SDLSoftButton.h" - - -QuickSpecBegin(SDLShowConstantTBTSpec) - -SDLImage* image1 = [[SDLImage alloc] init]; -SDLImage* image2 = [[SDLImage alloc] init]; -SDLSoftButton* button = [[SDLSoftButton alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLShowConstantTBT* testRequest = [[SDLShowConstantTBT alloc] init]; - - testRequest.navigationText1 = @"nav1"; - testRequest.navigationText2 = @"nav2"; - testRequest.eta = @"4/1/7015"; - testRequest.timeToDestination = @"5000 Years"; - testRequest.totalDistance = @"1 parsec"; - testRequest.turnIcon = image1; - testRequest.nextTurnIcon = image2; - testRequest.distanceToManeuver = @2; - testRequest.distanceToManeuverScale = @4; - testRequest.maneuverComplete = @NO; - testRequest.softButtons = [@[button] mutableCopy]; - - expect(testRequest.navigationText1).to(equal(@"nav1")); - expect(testRequest.navigationText2).to(equal(@"nav2")); - expect(testRequest.eta).to(equal(@"4/1/7015")); - expect(testRequest.timeToDestination).to(equal(@"5000 Years")); - expect(testRequest.totalDistance).to(equal(@"1 parsec")); - expect(testRequest.turnIcon).to(equal(image1)); - expect(testRequest.nextTurnIcon).to(equal(image2)); - expect(testRequest.distanceToManeuver).to(equal(@2)); - expect(testRequest.distanceToManeuverScale).to(equal(@4)); - expect(testRequest.maneuverComplete).to(equal(@NO)); - expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_navigationText1:@"nav1", - NAMES_navigationText2:@"nav2", - NAMES_eta:@"4/1/7015", - NAMES_timeToDestination:@"5000 Years", - NAMES_totalDistance:@"1 parsec", - NAMES_turnIcon:image1, - NAMES_nextTurnIcon:image2, - NAMES_distanceToManeuver:@2, - NAMES_distanceToManeuverScale:@4, - NAMES_maneuverComplete:@NO, - NAMES_softButtons:[@[button] mutableCopy]}, - NAMES_operation_name:NAMES_ShowConstantTBT}} mutableCopy]; - SDLShowConstantTBT* testRequest = [[SDLShowConstantTBT alloc] initWithDictionary:dict]; - - expect(testRequest.navigationText1).to(equal(@"nav1")); - expect(testRequest.navigationText2).to(equal(@"nav2")); - expect(testRequest.eta).to(equal(@"4/1/7015")); - expect(testRequest.timeToDestination).to(equal(@"5000 Years")); - expect(testRequest.totalDistance).to(equal(@"1 parsec")); - expect(testRequest.turnIcon).to(equal(image1)); - expect(testRequest.nextTurnIcon).to(equal(image2)); - expect(testRequest.distanceToManeuver).to(equal(@2)); - expect(testRequest.distanceToManeuverScale).to(equal(@4)); - expect(testRequest.maneuverComplete).to(equal(@NO)); - expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLShowConstantTBT* testRequest = [[SDLShowConstantTBT alloc] init]; - - expect(testRequest.navigationText1).to(beNil()); - expect(testRequest.navigationText2).to(beNil()); - expect(testRequest.eta).to(beNil()); - expect(testRequest.timeToDestination).to(beNil()); - expect(testRequest.totalDistance).to(beNil()); - expect(testRequest.turnIcon).to(beNil()); - expect(testRequest.nextTurnIcon).to(beNil()); - expect(testRequest.distanceToManeuver).to(beNil()); - expect(testRequest.distanceToManeuverScale).to(beNil()); - expect(testRequest.maneuverComplete).to(beNil()); - expect(testRequest.softButtons).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowSpec.m deleted file mode 100644 index 3058872e6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowSpec.m +++ /dev/null @@ -1,105 +0,0 @@ -// -// SDLShowSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLImage.h" -#import "SDLNames.h" -#import "SDLShow.h" -#import "SDLSoftButton.h" -#import "SDLTextAlignment.h" - - -QuickSpecBegin(SDLShowSpec) - -SDLImage* image1 = [[SDLImage alloc] init]; -SDLImage* image2 = [[SDLImage alloc] init]; -SDLSoftButton* button = [[SDLSoftButton alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLShow* testRequest = [[SDLShow alloc] init]; - - testRequest.mainField1 = @"field1"; - testRequest.mainField2 = @"field2"; - testRequest.mainField3 = @"field3"; - testRequest.mainField4 = @"field4"; - testRequest.alignment = [SDLTextAlignment LEFT_ALIGNED]; - testRequest.statusBar = @"status"; - testRequest.mediaClock = @"TheTime"; - testRequest.mediaTrack = @"In The Clear"; - testRequest.graphic = image1; - testRequest.secondaryGraphic = image2; - testRequest.softButtons = [@[button] mutableCopy]; - testRequest.customPresets = [@[@"preset1", @"preset2"] mutableCopy]; - - expect(testRequest.mainField1).to(equal(@"field1")); - expect(testRequest.mainField2).to(equal(@"field2")); - expect(testRequest.mainField3).to(equal(@"field3")); - expect(testRequest.mainField4).to(equal(@"field4")); - expect(testRequest.alignment).to(equal([SDLTextAlignment LEFT_ALIGNED])); - expect(testRequest.statusBar).to(equal(@"status")); - expect(testRequest.mediaClock).to(equal(@"TheTime")); - expect(testRequest.mediaTrack).to(equal(@"In The Clear")); - expect(testRequest.graphic).to(equal(image1)); - expect(testRequest.secondaryGraphic).to(equal(image2)); - expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); - expect(testRequest.customPresets).to(equal([@[@"preset1", @"preset2"] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_mainField1:@"field1", - NAMES_mainField2:@"field2", - NAMES_mainField3:@"field3", - NAMES_mainField4:@"field4", - NAMES_alignment:[SDLTextAlignment LEFT_ALIGNED], - NAMES_statusBar:@"status", - NAMES_mediaClock:@"TheTime", - NAMES_mediaTrack:@"In The Clear", - NAMES_graphic:image1, - NAMES_secondaryGraphic:image2, - NAMES_softButtons:[@[button] mutableCopy], - NAMES_customPresets:[@[@"preset1", @"preset2"] mutableCopy]}, - NAMES_operation_name:NAMES_Show}} mutableCopy]; - SDLShow* testRequest = [[SDLShow alloc] initWithDictionary:dict]; - - expect(testRequest.mainField1).to(equal(@"field1")); - expect(testRequest.mainField2).to(equal(@"field2")); - expect(testRequest.mainField3).to(equal(@"field3")); - expect(testRequest.mainField4).to(equal(@"field4")); - expect(testRequest.alignment).to(equal([SDLTextAlignment LEFT_ALIGNED])); - expect(testRequest.statusBar).to(equal(@"status")); - expect(testRequest.mediaClock).to(equal(@"TheTime")); - expect(testRequest.mediaTrack).to(equal(@"In The Clear")); - expect(testRequest.graphic).to(equal(image1)); - expect(testRequest.secondaryGraphic).to(equal(image2)); - expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); - expect(testRequest.customPresets).to(equal([@[@"preset1", @"preset2"] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLShow* testRequest = [[SDLShow alloc] init]; - - expect(testRequest.mainField1).to(beNil()); - expect(testRequest.mainField2).to(beNil()); - expect(testRequest.mainField3).to(beNil()); - expect(testRequest.mainField4).to(beNil()); - expect(testRequest.alignment).to(beNil()); - expect(testRequest.statusBar).to(beNil()); - expect(testRequest.mediaClock).to(beNil()); - expect(testRequest.mediaTrack).to(beNil()); - expect(testRequest.graphic).to(beNil()); - expect(testRequest.secondaryGraphic).to(beNil()); - expect(testRequest.softButtons).to(beNil()); - expect(testRequest.customPresets).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSliderSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSliderSpec.m deleted file mode 100644 index 7455bcf51..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSliderSpec.m +++ /dev/null @@ -1,62 +0,0 @@ -// -// SDLSliderSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSlider.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSliderSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSlider* testRequest = [[SDLSlider alloc] init]; - - testRequest.numTicks = @2; - testRequest.position = @1; - testRequest.sliderHeader = @"Head"; - testRequest.sliderFooter = [@[@"LeftFoot", @"RightFoot"] mutableCopy]; - testRequest.timeout = @2000; - - expect(testRequest.numTicks).to(equal(@2)); - expect(testRequest.position).to(equal(@1)); - expect(testRequest.sliderHeader).to(equal(@"Head")); - expect(testRequest.sliderFooter).to(equal([@[@"LeftFoot", @"RightFoot"] mutableCopy])); - expect(testRequest.timeout).to(equal(@2000)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_numTicks:@2, - NAMES_position:@1, - NAMES_sliderHeader:@"Head", - NAMES_sliderFooter:[@[@"LeftFoot", @"RightFoot"] mutableCopy], - NAMES_timeout:@2000}, - NAMES_operation_name:NAMES_Slider}} mutableCopy]; - SDLSlider* testRequest = [[SDLSlider alloc] initWithDictionary:dict]; - - expect(testRequest.numTicks).to(equal(@2)); - expect(testRequest.position).to(equal(@1)); - expect(testRequest.sliderHeader).to(equal(@"Head")); - expect(testRequest.sliderFooter).to(equal([@[@"LeftFoot", @"RightFoot"] mutableCopy])); - expect(testRequest.timeout).to(equal(@2000)); - }); - - it(@"Should return nil if not set", ^ { - SDLSlider* testRequest = [[SDLSlider alloc] init]; - - expect(testRequest.numTicks).to(beNil()); - expect(testRequest.position).to(beNil()); - expect(testRequest.sliderHeader).to(beNil()); - expect(testRequest.sliderFooter).to(beNil()); - expect(testRequest.timeout).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSpeakSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSpeakSpec.m deleted file mode 100644 index dd6b6a400..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSpeakSpec.m +++ /dev/null @@ -1,45 +0,0 @@ -// -// SDLSpeakSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSpeak.h" -#import "SDLTTSChunk.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSpeakSpec) - -SDLTTSChunk* chunk = [[SDLTTSChunk alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSpeak* testRequest = [[SDLSpeak alloc] init]; - - testRequest.ttsChunks = [@[chunk] mutableCopy]; - - expect(testRequest.ttsChunks).to(equal([@[chunk] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_ttsChunks:[@[chunk] mutableCopy]}, - NAMES_operation_name:NAMES_Speak}} mutableCopy]; - SDLSpeak* testRequest = [[SDLSpeak alloc] initWithDictionary:dict]; - - expect(testRequest.ttsChunks).to(equal([@[chunk] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLSpeak* testRequest = [[SDLSpeak alloc] init]; - - expect(testRequest.ttsChunks).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeButtonSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeButtonSpec.m deleted file mode 100644 index d51ae33a6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeButtonSpec.m +++ /dev/null @@ -1,44 +0,0 @@ -// -// SDLSubscribeButtonSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLButtonName.h" -#import "SDLNames.h" -#import "SDLSubscribeButton.h" - - -QuickSpecBegin(SDLSubscribeButtonSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSubscribeButton* testRequest = [[SDLSubscribeButton alloc] init]; - - testRequest.buttonName = [SDLButtonName PRESET_5]; - - expect(testRequest.buttonName).to(equal([SDLButtonName PRESET_5])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_buttonName:[SDLButtonName PRESET_5]}, - NAMES_operation_name:NAMES_SubscribeButton}} mutableCopy]; - SDLSubscribeButton* testRequest = [[SDLSubscribeButton alloc] initWithDictionary:dict]; - - expect(testRequest.buttonName).to(equal([SDLButtonName PRESET_5])); - }); - - it(@"Should return nil if not set", ^ { - SDLSubscribeButton* testRequest = [[SDLSubscribeButton alloc] init]; - - expect(testRequest.buttonName).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m deleted file mode 100644 index c35d45db3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m +++ /dev/null @@ -1,157 +0,0 @@ -// -// SDLSubscribeVehicleDataSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSubscribeVehicleData.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSubscribeVehicleDataSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSubscribeVehicleData* testRequest = [[SDLSubscribeVehicleData alloc] init]; - - testRequest.gps = @YES; - testRequest.speed = @NO; - testRequest.rpm = @YES; - testRequest.fuelLevel = @NO; - testRequest.fuelLevel_State = @YES; - testRequest.instantFuelConsumption = @NO; - testRequest.externalTemperature = @YES; - testRequest.prndl = @YES; - testRequest.tirePressure = @NO; - testRequest.odometer = @YES; - testRequest.beltStatus = @NO; - testRequest.bodyInformation = @YES; - testRequest.deviceStatus = @NO; - testRequest.driverBraking = @YES; - testRequest.wiperStatus = @NO; - testRequest.headLampStatus = @YES; - testRequest.engineTorque = @NO; - testRequest.accPedalPosition = @YES; - testRequest.steeringWheelAngle = @NO; - testRequest.eCallInfo = @YES; - testRequest.airbagStatus = @NO; - testRequest.emergencyEvent = @YES; - testRequest.clusterModeStatus = @NO; - testRequest.myKey = @YES; - - expect(testRequest.gps).to(equal(@YES)); - expect(testRequest.speed).to(equal(@NO)); - expect(testRequest.rpm).to(equal(@YES)); - expect(testRequest.fuelLevel).to(equal(@NO)); - expect(testRequest.fuelLevel_State).to(equal(@YES)); - expect(testRequest.instantFuelConsumption).to(equal(@NO)); - expect(testRequest.externalTemperature).to(equal(@YES)); - expect(testRequest.prndl).to(equal(@YES)); - expect(testRequest.tirePressure).to(equal(@NO)); - expect(testRequest.odometer).to(equal(@YES)); - expect(testRequest.beltStatus).to(equal(@NO)); - expect(testRequest.bodyInformation).to(equal(@YES)); - expect(testRequest.deviceStatus).to(equal(@NO)); - expect(testRequest.driverBraking).to(equal(@YES)); - expect(testRequest.wiperStatus).to(equal(@NO)); - expect(testRequest.headLampStatus).to(equal(@YES)); - expect(testRequest.engineTorque).to(equal(@NO)); - expect(testRequest.accPedalPosition).to(equal(@YES)); - expect(testRequest.steeringWheelAngle).to(equal(@NO)); - expect(testRequest.eCallInfo).to(equal(@YES)); - expect(testRequest.airbagStatus).to(equal(@NO)); - expect(testRequest.emergencyEvent).to(equal(@YES)); - expect(testRequest.clusterModeStatus).to(equal(@NO)); - expect(testRequest.myKey).to(equal(@YES)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_gps:@YES, - NAMES_speed:@NO, - NAMES_rpm:@YES, - NAMES_fuelLevel:@NO, - NAMES_fuelLevel_State:@YES, - NAMES_instantFuelConsumption:@NO, - NAMES_externalTemperature:@YES, - NAMES_prndl:@YES, - NAMES_tirePressure:@NO, - NAMES_odometer:@YES, - NAMES_beltStatus:@NO, - NAMES_bodyInformation:@YES, - NAMES_deviceStatus:@NO, - NAMES_driverBraking:@YES, - NAMES_wiperStatus:@NO, - NAMES_headLampStatus:@YES, - NAMES_engineTorque:@NO, - NAMES_accPedalPosition:@YES, - NAMES_steeringWheelAngle:@NO, - NAMES_eCallInfo:@YES, - NAMES_airbagStatus:@NO, - NAMES_emergencyEvent:@YES, - NAMES_clusterModeStatus:@NO, - NAMES_myKey:@YES}, - NAMES_operation_name:NAMES_SubscribeVehicleData}} mutableCopy]; - SDLSubscribeVehicleData* testRequest = [[SDLSubscribeVehicleData alloc] initWithDictionary:dict]; - - expect(testRequest.gps).to(equal(@YES)); - expect(testRequest.speed).to(equal(@NO)); - expect(testRequest.rpm).to(equal(@YES)); - expect(testRequest.fuelLevel).to(equal(@NO)); - expect(testRequest.fuelLevel_State).to(equal(@YES)); - expect(testRequest.instantFuelConsumption).to(equal(@NO)); - expect(testRequest.externalTemperature).to(equal(@YES)); - expect(testRequest.prndl).to(equal(@YES)); - expect(testRequest.tirePressure).to(equal(@NO)); - expect(testRequest.odometer).to(equal(@YES)); - expect(testRequest.beltStatus).to(equal(@NO)); - expect(testRequest.bodyInformation).to(equal(@YES)); - expect(testRequest.deviceStatus).to(equal(@NO)); - expect(testRequest.driverBraking).to(equal(@YES)); - expect(testRequest.wiperStatus).to(equal(@NO)); - expect(testRequest.headLampStatus).to(equal(@YES)); - expect(testRequest.engineTorque).to(equal(@NO)); - expect(testRequest.accPedalPosition).to(equal(@YES)); - expect(testRequest.steeringWheelAngle).to(equal(@NO)); - expect(testRequest.eCallInfo).to(equal(@YES)); - expect(testRequest.airbagStatus).to(equal(@NO)); - expect(testRequest.emergencyEvent).to(equal(@YES)); - expect(testRequest.clusterModeStatus).to(equal(@NO)); - expect(testRequest.myKey).to(equal(@YES)); - }); - - it(@"Should return nil if not set", ^ { - SDLSubscribeVehicleData* testRequest = [[SDLSubscribeVehicleData alloc] init]; - - expect(testRequest.gps).to(beNil()); - expect(testRequest.speed).to(beNil()); - expect(testRequest.rpm).to(beNil()); - expect(testRequest.fuelLevel).to(beNil()); - expect(testRequest.fuelLevel_State).to(beNil()); - expect(testRequest.instantFuelConsumption).to(beNil()); - expect(testRequest.externalTemperature).to(beNil()); - expect(testRequest.prndl).to(beNil()); - expect(testRequest.tirePressure).to(beNil()); - expect(testRequest.odometer).to(beNil()); - expect(testRequest.beltStatus).to(beNil()); - expect(testRequest.bodyInformation).to(beNil()); - expect(testRequest.deviceStatus).to(beNil()); - expect(testRequest.driverBraking).to(beNil()); - expect(testRequest.wiperStatus).to(beNil()); - expect(testRequest.headLampStatus).to(beNil()); - expect(testRequest.engineTorque).to(beNil()); - expect(testRequest.accPedalPosition).to(beNil()); - expect(testRequest.steeringWheelAngle).to(beNil()); - expect(testRequest.eCallInfo).to(beNil()); - expect(testRequest.airbagStatus).to(beNil()); - expect(testRequest.emergencyEvent).to(beNil()); - expect(testRequest.clusterModeStatus).to(beNil()); - expect(testRequest.myKey).to(beNil()); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSyncPDataSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSyncPDataSpec.m deleted file mode 100644 index 300583447..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSyncPDataSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLSyncPDataSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSyncPData.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSyncPDataSpec) - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSystemRequestSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSystemRequestSpec.m deleted file mode 100644 index ade3fb762..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSystemRequestSpec.m +++ /dev/null @@ -1,48 +0,0 @@ -// -// SDLSystemRequestSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSystemRequest.h" -#import "SDLRequestType.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSystemRequestSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSystemRequest* testRequest = [[SDLSystemRequest alloc] init]; - - testRequest.requestType = [SDLRequestType AUTH_REQUEST]; - testRequest.fileName = @"AnotherFile"; - - expect(testRequest.requestType).to(equal([SDLRequestType AUTH_REQUEST])); - expect(testRequest.fileName).to(equal(@"AnotherFile")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_requestType:[SDLRequestType AUTH_REQUEST], - NAMES_fileName:@"AnotherFile"}, - NAMES_operation_name:NAMES_SystemRequest}} mutableCopy]; - SDLSystemRequest* testRequest = [[SDLSystemRequest alloc] initWithDictionary:dict]; - - expect(testRequest.requestType).to(equal([SDLRequestType AUTH_REQUEST])); - expect(testRequest.fileName).to(equal(@"AnotherFile")); - }); - - it(@"Should return nil if not set", ^ { - SDLSystemRequest* testRequest = [[SDLSystemRequest alloc] init]; - - expect(testRequest.requestType).to(beNil()); - expect(testRequest.fileName).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnregisterAppInterfaceSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnregisterAppInterfaceSpec.m deleted file mode 100644 index 746c07d2b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnregisterAppInterfaceSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLUnregisterAppInterfaceSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLUnregisterAppInterface.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLUnregisterAppInterfaceSpec) - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeButtonSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeButtonSpec.m deleted file mode 100644 index 4c0bfc3f1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeButtonSpec.m +++ /dev/null @@ -1,44 +0,0 @@ -// -// SDLUnsubscribeButtonSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLButtonName.h" -#import "SDLNames.h" -#import "SDLUnsubscribeButton.h" - - -QuickSpecBegin(SDLUnsubscribeButtonSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLUnsubscribeButton* testRequest = [[SDLUnsubscribeButton alloc] init]; - - testRequest.buttonName = [SDLButtonName PRESET_0]; - - expect(testRequest.buttonName).to(equal([SDLButtonName PRESET_0])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_buttonName:[SDLButtonName PRESET_0]}, - NAMES_operation_name:NAMES_UnsubscribeButton}} mutableCopy]; - SDLUnsubscribeButton* testRequest = [[SDLUnsubscribeButton alloc] initWithDictionary:dict]; - - expect(testRequest.buttonName).to(equal([SDLButtonName PRESET_0])); - }); - - it(@"Should return nil if not set", ^ { - SDLUnsubscribeButton* testRequest = [[SDLUnsubscribeButton alloc] init]; - - expect(testRequest.buttonName).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m deleted file mode 100644 index 1bb2cb125..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m +++ /dev/null @@ -1,157 +0,0 @@ -// -// SDLUnsubscribeVehicleDataSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLUnsubscribeVehicleData.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLUnsubscribeVehicleDataSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLUnsubscribeVehicleData* testRequest = [[SDLUnsubscribeVehicleData alloc] init]; - - testRequest.gps = @YES; - testRequest.speed = @YES; - testRequest.rpm = @YES; - testRequest.fuelLevel = @YES; - testRequest.fuelLevel_State = @YES; - testRequest.instantFuelConsumption = @YES; - testRequest.externalTemperature = @YES; - testRequest.prndl = @YES; - testRequest.tirePressure = @YES; - testRequest.odometer = @YES; - testRequest.beltStatus = @YES; - testRequest.bodyInformation = @YES; - testRequest.deviceStatus = @YES; - testRequest.driverBraking = @YES; - testRequest.wiperStatus = @YES; - testRequest.headLampStatus = @YES; - testRequest.engineTorque = @YES; - testRequest.accPedalPosition = @YES; - testRequest.steeringWheelAngle = @YES; - testRequest.eCallInfo = @YES; - testRequest.airbagStatus = @YES; - testRequest.emergencyEvent = @YES; - testRequest.clusterModeStatus = @YES; - testRequest.myKey = @YES; - - expect(testRequest.gps).to(equal(@YES)); - expect(testRequest.speed).to(equal(@YES)); - expect(testRequest.rpm).to(equal(@YES)); - expect(testRequest.fuelLevel).to(equal(@YES)); - expect(testRequest.fuelLevel_State).to(equal(@YES)); - expect(testRequest.instantFuelConsumption).to(equal(@YES)); - expect(testRequest.externalTemperature).to(equal(@YES)); - expect(testRequest.prndl).to(equal(@YES)); - expect(testRequest.tirePressure).to(equal(@YES)); - expect(testRequest.odometer).to(equal(@YES)); - expect(testRequest.beltStatus).to(equal(@YES)); - expect(testRequest.bodyInformation).to(equal(@YES)); - expect(testRequest.deviceStatus).to(equal(@YES)); - expect(testRequest.driverBraking).to(equal(@YES)); - expect(testRequest.wiperStatus).to(equal(@YES)); - expect(testRequest.headLampStatus).to(equal(@YES)); - expect(testRequest.engineTorque).to(equal(@YES)); - expect(testRequest.accPedalPosition).to(equal(@YES)); - expect(testRequest.steeringWheelAngle).to(equal(@YES)); - expect(testRequest.eCallInfo).to(equal(@YES)); - expect(testRequest.airbagStatus).to(equal(@YES)); - expect(testRequest.emergencyEvent).to(equal(@YES)); - expect(testRequest.clusterModeStatus).to(equal(@YES)); - expect(testRequest.myKey).to(equal(@YES)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_gps:@YES, - NAMES_speed:@YES, - NAMES_rpm:@YES, - NAMES_fuelLevel:@YES, - NAMES_fuelLevel_State:@YES, - NAMES_instantFuelConsumption:@YES, - NAMES_externalTemperature:@YES, - NAMES_prndl:@YES, - NAMES_tirePressure:@YES, - NAMES_odometer:@YES, - NAMES_beltStatus:@YES, - NAMES_bodyInformation:@YES, - NAMES_deviceStatus:@YES, - NAMES_driverBraking:@YES, - NAMES_wiperStatus:@YES, - NAMES_headLampStatus:@YES, - NAMES_engineTorque:@YES, - NAMES_accPedalPosition:@YES, - NAMES_steeringWheelAngle:@YES, - NAMES_eCallInfo:@YES, - NAMES_airbagStatus:@YES, - NAMES_emergencyEvent:@YES, - NAMES_clusterModeStatus:@YES, - NAMES_myKey:@YES}, - NAMES_operation_name:NAMES_UnsubscribeVehicleData}} mutableCopy]; - SDLUnsubscribeVehicleData* testRequest = [[SDLUnsubscribeVehicleData alloc] initWithDictionary:dict]; - - expect(testRequest.gps).to(equal(@YES)); - expect(testRequest.speed).to(equal(@YES)); - expect(testRequest.rpm).to(equal(@YES)); - expect(testRequest.fuelLevel).to(equal(@YES)); - expect(testRequest.fuelLevel_State).to(equal(@YES)); - expect(testRequest.instantFuelConsumption).to(equal(@YES)); - expect(testRequest.externalTemperature).to(equal(@YES)); - expect(testRequest.prndl).to(equal(@YES)); - expect(testRequest.tirePressure).to(equal(@YES)); - expect(testRequest.odometer).to(equal(@YES)); - expect(testRequest.beltStatus).to(equal(@YES)); - expect(testRequest.bodyInformation).to(equal(@YES)); - expect(testRequest.deviceStatus).to(equal(@YES)); - expect(testRequest.driverBraking).to(equal(@YES)); - expect(testRequest.wiperStatus).to(equal(@YES)); - expect(testRequest.headLampStatus).to(equal(@YES)); - expect(testRequest.engineTorque).to(equal(@YES)); - expect(testRequest.accPedalPosition).to(equal(@YES)); - expect(testRequest.steeringWheelAngle).to(equal(@YES)); - expect(testRequest.eCallInfo).to(equal(@YES)); - expect(testRequest.airbagStatus).to(equal(@YES)); - expect(testRequest.emergencyEvent).to(equal(@YES)); - expect(testRequest.clusterModeStatus).to(equal(@YES)); - expect(testRequest.myKey).to(equal(@YES)); - }); - - it(@"Should return nil if not set", ^ { - SDLUnsubscribeVehicleData* testRequest = [[SDLUnsubscribeVehicleData alloc] init]; - - expect(testRequest.gps).to(beNil()); - expect(testRequest.speed).to(beNil()); - expect(testRequest.rpm).to(beNil()); - expect(testRequest.fuelLevel).to(beNil()); - expect(testRequest.fuelLevel_State).to(beNil()); - expect(testRequest.instantFuelConsumption).to(beNil()); - expect(testRequest.externalTemperature).to(beNil()); - expect(testRequest.prndl).to(beNil()); - expect(testRequest.tirePressure).to(beNil()); - expect(testRequest.odometer).to(beNil()); - expect(testRequest.beltStatus).to(beNil()); - expect(testRequest.bodyInformation).to(beNil()); - expect(testRequest.deviceStatus).to(beNil()); - expect(testRequest.driverBraking).to(beNil()); - expect(testRequest.wiperStatus).to(beNil()); - expect(testRequest.headLampStatus).to(beNil()); - expect(testRequest.engineTorque).to(beNil()); - expect(testRequest.accPedalPosition).to(beNil()); - expect(testRequest.steeringWheelAngle).to(beNil()); - expect(testRequest.eCallInfo).to(beNil()); - expect(testRequest.airbagStatus).to(beNil()); - expect(testRequest.emergencyEvent).to(beNil()); - expect(testRequest.clusterModeStatus).to(beNil()); - expect(testRequest.myKey).to(beNil()); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUpdateTurnListSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUpdateTurnListSpec.m deleted file mode 100644 index ae1d55823..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUpdateTurnListSpec.m +++ /dev/null @@ -1,52 +0,0 @@ -// -// SDLUpdateTurnListSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLUpdateTurnList.h" -#import "SDLTurn.h" -#import "SDLSoftButton.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLUpdateTurnListSpec) - -SDLTurn* turn = [[SDLTurn alloc] init]; -SDLSoftButton* button = [[SDLSoftButton alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLUpdateTurnList* testRequest = [[SDLUpdateTurnList alloc] init]; - - testRequest.turnList = [@[turn] mutableCopy]; - testRequest.softButtons = [@[button] mutableCopy]; - - expect(testRequest.turnList).to(equal([@[turn] mutableCopy])); - expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_turnList:[@[turn] mutableCopy], - NAMES_softButtons:[@[button] mutableCopy]}, - NAMES_operation_name:NAMES_UpdateTurnList}} mutableCopy]; - SDLUpdateTurnList* testRequest = [[SDLUpdateTurnList alloc] initWithDictionary:dict]; - - expect(testRequest.turnList).to(equal([@[turn] mutableCopy])); - expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLUpdateTurnList* testRequest = [[SDLUpdateTurnList alloc] init]; - - expect(testRequest.turnList).to(beNil()); - expect(testRequest.softButtons).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddCommandResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddCommandResponseSpec.m deleted file mode 100644 index ff1f36682..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddCommandResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLAddCommandResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAddCommandResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLAddCommandResponseSpec) - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddSubMenuResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddSubMenuResponseSpec.m deleted file mode 100644 index a351d0ee2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddSubMenuResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLAddSubMenuResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAddSubMenuResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLAddSubMenuResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertManeuverResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertManeuverResponseSpec.m deleted file mode 100644 index 5b4860134..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertManeuverResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLAlertManeuverResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAlertManeuverResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLAlertManeuverResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertResponseSpec.m deleted file mode 100644 index e29e23ed3..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLAlertResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAlertResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLAlertResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLChangeRegistrationResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLChangeRegistrationResponseSpec.m deleted file mode 100644 index c6e0b27d9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLChangeRegistrationResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLChangeRegistrationResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLChangeRegistrationResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLChangeRegistrationResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLCreateInteractionChoiceSetResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLCreateInteractionChoiceSetResponseSpec.m deleted file mode 100644 index 3b3d27e90..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLCreateInteractionChoiceSetResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLCreateInteractionChoiceSetResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLCreateInteractionChoiceSetResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLCreateInteractionChoiceSetResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteCommandResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteCommandResponseSpec.m deleted file mode 100644 index 013702513..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteCommandResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLDeleteCommandResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDeleteCommandResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLDeleteCommandResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteFileResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteFileResponseSpec.m deleted file mode 100644 index 64e8522c9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteFileResponseSpec.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// SDLDeleteFileResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDeleteFileResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLDeleteFileResponseSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLDeleteFileResponse* testResponse = [[SDLDeleteFileResponse alloc] init]; - - testResponse.spaceAvailable = @0; - - expect(testResponse.spaceAvailable).to(equal(@0)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_response: - @{NAMES_parameters: - @{NAMES_spaceAvailable:@0}, - NAMES_operation_name:NAMES_DeleteFile}} mutableCopy]; - SDLDeleteFileResponse* testResponse = [[SDLDeleteFileResponse alloc] initWithDictionary:dict]; - - expect(testResponse.spaceAvailable).to(equal(@0)); - }); - - it(@"Should return nil if not set", ^ { - SDLDeleteFileResponse* testResponse = [[SDLDeleteFileResponse alloc] init]; - - expect(testResponse.spaceAvailable).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteInteractionChoiceSetResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteInteractionChoiceSetResponseSpec.m deleted file mode 100644 index 4f3f0c4c1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteInteractionChoiceSetResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLDeleteInteractionChoiceSetResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDeleteInteractionChoiceSetResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLDeleteInteractionChoiceSetResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteSubMenuResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteSubMenuResponseSpec.m deleted file mode 100644 index c17b91d1c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteSubMenuResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLDeleteSubMenuResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDeleteSubMenuResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLDeleteSubMenuResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDiagnosticMessageResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDiagnosticMessageResponseSpec.m deleted file mode 100644 index 7507bbe5a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDiagnosticMessageResponseSpec.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// SDLDiagnosticMessageResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDiagnosticMessageResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLDiagnosticMessageResponseSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLDiagnosticMessageResponse* testResponse = [[SDLDiagnosticMessageResponse alloc] init]; - - testResponse.messageDataResult = [@[@3, @9, @27, @81] mutableCopy]; - - expect(testResponse.messageDataResult).to(equal([@[@3, @9, @27, @81] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_response: - @{NAMES_parameters: - @{NAMES_messageDataResult:[@[@3, @9, @27, @81] mutableCopy]}, - NAMES_operation_name:NAMES_DiagnosticMessage}} mutableCopy]; - SDLDiagnosticMessageResponse* testResponse = [[SDLDiagnosticMessageResponse alloc] initWithDictionary:dict]; - - expect(testResponse.messageDataResult).to(equal([@[@3, @9, @27, @81] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLDiagnosticMessageResponse* testResponse = [[SDLDiagnosticMessageResponse alloc] init]; - - expect(testResponse.messageDataResult).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDialNumberResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDialNumberResponseSpec.m deleted file mode 100644 index 2adf33aeb..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDialNumberResponseSpec.m +++ /dev/null @@ -1,10 +0,0 @@ -// -// SDLDialNumberResponseSpec.m -// SmartDeviceLink-iOS - -#import -#import - -QuickSpecBegin(SDLDialNumberResponseSpec) - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEncodedSyncPDataResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEncodedSyncPDataResponseSpec.m deleted file mode 100644 index 4324f0bb8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEncodedSyncPDataResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLEncodedSyncPDataResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLEncodedSyncPDataResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLEncodedSyncPDataResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEndAudioPassThruResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEndAudioPassThruResponseSpec.m deleted file mode 100644 index 5fcc7d6d8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEndAudioPassThruResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLEndAudioPassThruResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLEndAudioPassThruResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLEndAudioPassThruResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGenericResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGenericResponseSpec.m deleted file mode 100644 index 227aea92d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGenericResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLGenericResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLGenericResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLGenericResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetDTCsResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetDTCsResponseSpec.m deleted file mode 100644 index 150f9bd73..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetDTCsResponseSpec.m +++ /dev/null @@ -1,47 +0,0 @@ -// -// SDLGetDTCsResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLGetDTCsResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLGetDTCsResponseSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLGetDTCsResponse* testResponse = [[SDLGetDTCsResponse alloc] init]; - - testResponse.ecuHeader = @404; - testResponse.dtc = [@[@"FFFF", @"FFFE", @"FFFD"] mutableCopy]; - - expect(testResponse.ecuHeader).to(equal(@404)); - expect(testResponse.dtc).to(equal([@[@"FFFF", @"FFFE", @"FFFD"] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_response: - @{NAMES_parameters: - @{NAMES_ecuHeader:@404, - NAMES_dtc:[@[@"FFFF", @"FFFE", @"FFFD"] mutableCopy]}, - NAMES_operation_name:NAMES_GetDTCs}} mutableCopy]; - SDLGetDTCsResponse* testResponse = [[SDLGetDTCsResponse alloc] initWithDictionary:dict]; - - expect(testResponse.ecuHeader).to(equal(@404)); - expect(testResponse.dtc).to(equal([@[@"FFFF", @"FFFE", @"FFFD"] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLGetDTCsResponse* testResponse = [[SDLGetDTCsResponse alloc] init]; - - expect(testResponse.ecuHeader).to(beNil()); - expect(testResponse.dtc).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m deleted file mode 100644 index d70e8f12b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m +++ /dev/null @@ -1,175 +0,0 @@ -// -// SDLGetVehicleDataResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SmartDeviceLink.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLGetVehicleDataResponseSpec) - -SDLGPSData* gps = [[SDLGPSData alloc] init]; -SDLTireStatus* tires = [[SDLTireStatus alloc] init]; -SDLBeltStatus* belt = [[SDLBeltStatus alloc] init]; -SDLBodyInformation* body = [[SDLBodyInformation alloc] init]; -SDLDeviceStatus* device = [[SDLDeviceStatus alloc] init]; -SDLHeadLampStatus* headLamp = [[SDLHeadLampStatus alloc] init]; -SDLECallInfo* eCall = [[SDLECallInfo alloc] init]; -SDLAirbagStatus* airbag = [[SDLAirbagStatus alloc] init]; -SDLEmergencyEvent* event = [[SDLEmergencyEvent alloc] init]; -SDLClusterModeStatus* clusterMode = [[SDLClusterModeStatus alloc] init]; -SDLMyKey* myKey = [[SDLMyKey alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLGetVehicleDataResponse* testResponse = [[SDLGetVehicleDataResponse alloc] init]; - - testResponse.gps = gps; - testResponse.speed = @100; - testResponse.rpm = @3; - testResponse.fuelLevel = @99.9999; - testResponse.fuelLevel_State = [SDLComponentVolumeStatus FAULT]; - testResponse.instantFuelConsumption = @40.7; - testResponse.externalTemperature = @0; - testResponse.vin = @"6574839201"; - testResponse.prndl = [SDLPRNDL PARK]; - testResponse.tirePressure = tires; - testResponse.odometer = @70000; - testResponse.beltStatus = belt; - testResponse.bodyInformation = body; - testResponse.deviceStatus = device; - testResponse.driverBraking = [SDLVehicleDataEventStatus NO_EVENT]; - testResponse.wiperStatus = [SDLWiperStatus AUTO_HIGH]; - testResponse.headLampStatus = headLamp; - testResponse.engineTorque = @630.4; - testResponse.accPedalPosition = @0; - testResponse.steeringWheelAngle = @-1500; - testResponse.eCallInfo = eCall; - testResponse.airbagStatus = airbag; - testResponse.emergencyEvent = event; - testResponse.clusterModeStatus = clusterMode; - testResponse.myKey = myKey; - - expect(testResponse.gps).to(equal(gps)); - expect(testResponse.speed).to(equal(@100)); - expect(testResponse.rpm).to(equal(@3)); - expect(testResponse.fuelLevel).to(equal(@99.9999)); - expect(testResponse.fuelLevel_State).to(equal([SDLComponentVolumeStatus FAULT])); - expect(testResponse.instantFuelConsumption).to(equal(@40.7)); - expect(testResponse.externalTemperature).to(equal(@0)); - expect(testResponse.vin).to(equal(@"6574839201")); - expect(testResponse.prndl).to(equal([SDLPRNDL PARK])); - expect(testResponse.tirePressure).to(equal(tires)); - expect(testResponse.odometer).to(equal(@70000)); - expect(testResponse.beltStatus).to(equal(belt)); - expect(testResponse.bodyInformation).to(equal(body)); - expect(testResponse.deviceStatus).to(equal(device)); - expect(testResponse.driverBraking).to(equal([SDLVehicleDataEventStatus NO_EVENT])); - expect(testResponse.wiperStatus).to(equal([SDLWiperStatus AUTO_HIGH])); - expect(testResponse.headLampStatus).to(equal(headLamp)); - expect(testResponse.engineTorque).to(equal(@630.4)); - expect(testResponse.accPedalPosition).to(equal(@0)); - expect(testResponse.steeringWheelAngle).to(equal(@-1500)); - expect(testResponse.eCallInfo).to(equal(eCall)); - expect(testResponse.airbagStatus).to(equal(airbag)); - expect(testResponse.emergencyEvent).to(equal(event)); - expect(testResponse.clusterModeStatus).to(equal(clusterMode)); - expect(testResponse.myKey).to(equal(myKey)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_notification: - @{NAMES_parameters: - @{NAMES_gps:gps, - NAMES_speed:@100, - NAMES_rpm:@3, - NAMES_fuelLevel:@99.9999, - NAMES_fuelLevel_State:[SDLComponentVolumeStatus FAULT], - NAMES_instantFuelConsumption:@40.7, - NAMES_externalTemperature:@0, - NAMES_vin:@"6574839201", - NAMES_prndl:[SDLPRNDL PARK], - NAMES_tirePressure:tires, - NAMES_odometer:@70000, - NAMES_beltStatus:belt, - NAMES_bodyInformation:body, - NAMES_deviceStatus:device, - NAMES_driverBraking:[SDLVehicleDataEventStatus NO_EVENT], - NAMES_wiperStatus:[SDLWiperStatus AUTO_HIGH], - NAMES_headLampStatus:headLamp, - NAMES_engineTorque:@630.4, - NAMES_accPedalPosition:@0, - NAMES_steeringWheelAngle:@-1500, - NAMES_eCallInfo:eCall, - NAMES_airbagStatus:airbag, - NAMES_emergencyEvent:event, - NAMES_clusterModeStatus:clusterMode, - NAMES_myKey:myKey}, - NAMES_operation_name:NAMES_GetVehicleData}} mutableCopy]; - SDLGetVehicleDataResponse* testResponse = [[SDLGetVehicleDataResponse alloc] initWithDictionary:dict]; - - expect(testResponse.gps).to(equal(gps)); - expect(testResponse.speed).to(equal(@100)); - expect(testResponse.rpm).to(equal(@3)); - expect(testResponse.fuelLevel).to(equal(@99.9999)); - expect(testResponse.fuelLevel_State).to(equal([SDLComponentVolumeStatus FAULT])); - expect(testResponse.instantFuelConsumption).to(equal(@40.7)); - expect(testResponse.externalTemperature).to(equal(@0)); - expect(testResponse.vin).to(equal(@"6574839201")); - expect(testResponse.prndl).to(equal([SDLPRNDL PARK])); - expect(testResponse.tirePressure).to(equal(tires)); - expect(testResponse.odometer).to(equal(@70000)); - expect(testResponse.beltStatus).to(equal(belt)); - expect(testResponse.bodyInformation).to(equal(body)); - expect(testResponse.deviceStatus).to(equal(device)); - expect(testResponse.driverBraking).to(equal([SDLVehicleDataEventStatus NO_EVENT])); - expect(testResponse.wiperStatus).to(equal([SDLWiperStatus AUTO_HIGH])); - expect(testResponse.headLampStatus).to(equal(headLamp)); - expect(testResponse.engineTorque).to(equal(@630.4)); - expect(testResponse.accPedalPosition).to(equal(@0)); - expect(testResponse.steeringWheelAngle).to(equal(@-1500)); - expect(testResponse.eCallInfo).to(equal(eCall)); - expect(testResponse.airbagStatus).to(equal(airbag)); - expect(testResponse.emergencyEvent).to(equal(event)); - expect(testResponse.clusterModeStatus).to(equal(clusterMode)); - expect(testResponse.myKey).to(equal(myKey)); - }); - - it(@"Should return nil if not set", ^ { - SDLGetVehicleDataResponse* testResponse = [[SDLGetVehicleDataResponse alloc] init]; - - expect(testResponse.gps).to(beNil()); - expect(testResponse.speed).to(beNil()); - expect(testResponse.rpm).to(beNil()); - expect(testResponse.fuelLevel).to(beNil()); - expect(testResponse.fuelLevel_State).to(beNil()); - expect(testResponse.instantFuelConsumption).to(beNil()); - expect(testResponse.externalTemperature).to(beNil()); - expect(testResponse.vin).to(beNil()); - expect(testResponse.prndl).to(beNil()); - expect(testResponse.tirePressure).to(beNil()); - expect(testResponse.odometer).to(beNil()); - expect(testResponse.beltStatus).to(beNil()); - expect(testResponse.bodyInformation).to(beNil()); - expect(testResponse.deviceStatus).to(beNil()); - expect(testResponse.driverBraking).to(beNil()); - expect(testResponse.wiperStatus).to(beNil()); - expect(testResponse.headLampStatus).to(beNil()); - expect(testResponse.engineTorque).to(beNil()); - expect(testResponse.accPedalPosition).to(beNil()); - expect(testResponse.steeringWheelAngle).to(beNil()); - expect(testResponse.eCallInfo).to(beNil()); - expect(testResponse.airbagStatus).to(beNil()); - expect(testResponse.emergencyEvent).to(beNil()); - expect(testResponse.clusterModeStatus).to(beNil()); - expect(testResponse.myKey).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLListFilesResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLListFilesResponseSpec.m deleted file mode 100644 index 824bc7517..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLListFilesResponseSpec.m +++ /dev/null @@ -1,47 +0,0 @@ -// -// SDLListFilesResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLListFilesResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLListFilesResponseSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLListFilesResponse* testResponse = [[SDLListFilesResponse alloc] init]; - - testResponse.filenames = [@[@"Music/music.mp3", @"Documents/document.txt", @"Downloads/format.exe"] mutableCopy]; - testResponse.spaceAvailable = @500000000; - - expect(testResponse.filenames).to(equal([@[@"Music/music.mp3", @"Documents/document.txt", @"Downloads/format.exe"] mutableCopy])); - expect(testResponse.spaceAvailable).to(equal(@500000000)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_response: - @{NAMES_parameters: - @{NAMES_filenames:[@[@"Music/music.mp3", @"Documents/document.txt", @"Downloads/format.exe"] mutableCopy], - NAMES_spaceAvailable:@500000000}, - NAMES_operation_name:NAMES_ListFiles}} mutableCopy]; - SDLListFilesResponse* testResponse = [[SDLListFilesResponse alloc] initWithDictionary:dict]; - - expect(testResponse.filenames).to(equal([@[@"Music/music.mp3", @"Documents/document.txt", @"Downloads/format.exe"] mutableCopy])); - expect(testResponse.spaceAvailable).to(equal(@500000000)); - }); - - it(@"Should return nil if not set", ^ { - SDLListFilesResponse* testResponse = [[SDLListFilesResponse alloc] init]; - - expect(testResponse.filenames).to(beNil()); - expect(testResponse.spaceAvailable).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformAudioPassThruResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformAudioPassThruResponseSpec.m deleted file mode 100644 index eb661c3f2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformAudioPassThruResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLPerformAudioPassThruResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLPerformAudioPassThruResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLPerformAudioPassThruResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformInteractionResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformInteractionResponseSpec.m deleted file mode 100644 index b32b44cd6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformInteractionResponseSpec.m +++ /dev/null @@ -1,54 +0,0 @@ -// -// SDLPerformInteractionResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLPerformInteractionResponse.h" -#import "SDLNames.h" -#import "SDLTriggerSource.h" - - -QuickSpecBegin(SDLPerformInteractionResponseSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLPerformInteractionResponse* testResponse = [[SDLPerformInteractionResponse alloc] init]; - - testResponse.choiceID = @25; - testResponse.manualTextEntry = @"entry"; - testResponse.triggerSource = [SDLTriggerSource KEYBOARD]; - - expect(testResponse.choiceID).to(equal(@25)); - expect(testResponse.manualTextEntry).to(equal(@"entry")); - expect(testResponse.triggerSource).to(equal([SDLTriggerSource KEYBOARD])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_response: - @{NAMES_parameters: - @{NAMES_choiceID:@25, - NAMES_manualTextEntry:@"entry", - NAMES_triggerSource:[SDLTriggerSource KEYBOARD]}, - NAMES_operation_name:NAMES_PerformInteraction}} mutableCopy]; - SDLPerformInteractionResponse* testResponse = [[SDLPerformInteractionResponse alloc] initWithDictionary:dict]; - - expect(testResponse.choiceID).to(equal(@25)); - expect(testResponse.manualTextEntry).to(equal(@"entry")); - expect(testResponse.triggerSource).to(equal([SDLTriggerSource KEYBOARD])); - }); - - it(@"Should return nil if not set", ^ { - SDLPerformInteractionResponse* testResponse = [[SDLPerformInteractionResponse alloc] init]; - - expect(testResponse.choiceID).to(beNil()); - expect(testResponse.manualTextEntry).to(beNil()); - expect(testResponse.triggerSource).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m deleted file mode 100644 index 565f97a79..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// SDLPutFileResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLPutFileResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLPutFileResponseSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLPutFileResponse* testResponse = [[SDLPutFileResponse alloc] init]; - - testResponse.spaceAvailable = @1248; - - expect(testResponse.spaceAvailable).to(equal(@1248)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_response: - @{NAMES_parameters: - @{NAMES_spaceAvailable:@1248}, - NAMES_operation_name:NAMES_PutFile}} mutableCopy]; - SDLPutFileResponse* testResponse = [[SDLPutFileResponse alloc] initWithDictionary:dict]; - - expect(testResponse.spaceAvailable).to(equal(@1248)); - }); - - it(@"Should return nil if not set", ^ { - SDLPutFileResponse* testResponse = [[SDLPutFileResponse alloc] init]; - - expect(testResponse.spaceAvailable).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLReadDIDResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLReadDIDResponseSpec.m deleted file mode 100644 index 0ae2c5b9d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLReadDIDResponseSpec.m +++ /dev/null @@ -1,45 +0,0 @@ -// -// SDLReadDIDResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLReadDIDResponse.h" -#import "SDLDIDResult.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLReadDIDResponseSpec) - -SDLDIDResult* result = [[SDLDIDResult alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLReadDIDResponse* testResponse = [[SDLReadDIDResponse alloc] init]; - - testResponse.didResult = [@[result] mutableCopy]; - - expect(testResponse.didResult).to(equal([@[result] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_response: - @{NAMES_parameters: - @{NAMES_didResult:[@[result] mutableCopy]}, - NAMES_operation_name:NAMES_ReadDID}} mutableCopy]; - SDLReadDIDResponse* testResponse = [[SDLReadDIDResponse alloc] initWithDictionary:dict]; - - expect(testResponse.didResult).to(equal([@[result] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLReadDIDResponse* testResponse = [[SDLReadDIDResponse alloc] init]; - - expect(testResponse.didResult).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLRegisterAppInterfaceResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLRegisterAppInterfaceResponseSpec.m deleted file mode 100644 index 62eb9b152..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLRegisterAppInterfaceResponseSpec.m +++ /dev/null @@ -1,133 +0,0 @@ -// -// SDLRegisterAppInterfaceResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SmartDeviceLink.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLRegisterAppInterfaceResponseSpec) - -SDLSyncMsgVersion* version = [[SDLSyncMsgVersion alloc] init]; -SDLDisplayCapabilities* info = [[SDLDisplayCapabilities alloc] init]; -SDLButtonCapabilities* button = [[SDLButtonCapabilities alloc] init]; -SDLSoftButtonCapabilities* softButton = [[SDLSoftButtonCapabilities alloc] init]; -SDLPresetBankCapabilities* presetBank = [[SDLPresetBankCapabilities alloc] init]; -SDLAudioPassThruCapabilities* audioPassThru = [[SDLAudioPassThruCapabilities alloc] init]; -SDLVehicleType* vehicle = [[SDLVehicleType alloc] init]; -SDLHMICapabilities *hmiCapabilities = [[SDLHMICapabilities alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLRegisterAppInterfaceResponse* testResponse = [[SDLRegisterAppInterfaceResponse alloc] init]; - - testResponse.syncMsgVersion = version; - testResponse.language = [SDLLanguage ES_MX]; - testResponse.hmiDisplayLanguage = [SDLLanguage RU_RU]; - testResponse.displayCapabilities = info; - testResponse.buttonCapabilities = [@[button] mutableCopy]; - testResponse.softButtonCapabilities = [@[softButton] mutableCopy]; - testResponse.presetBankCapabilities = presetBank; - testResponse.hmiZoneCapabilities = [@[[SDLHMIZoneCapabilities BACK], [SDLHMIZoneCapabilities FRONT]] copy]; - testResponse.speechCapabilities = [@[[SDLSpeechCapabilities SAPI_PHONEMES], [SDLSpeechCapabilities SILENCE]] copy]; - testResponse.vrCapabilities = [@[[SDLVRCapabilities TEXT]] copy]; - testResponse.audioPassThruCapabilities = [@[audioPassThru] mutableCopy]; - testResponse.vehicleType = vehicle; - testResponse.prerecordedSpeech = [@[[SDLPrerecordedSpeech LISTEN_JINGLE], [SDLPrerecordedSpeech HELP_JINGLE]] copy]; - testResponse.supportedDiagModes = [@[@67, @99, @111] mutableCopy]; - testResponse.hmiCapabilities = hmiCapabilities; - testResponse.sdlVersion = @"sdlVersion"; - testResponse.systemSoftwareVersion = @"systemSoftwareVersion"; - - expect(testResponse.syncMsgVersion).to(equal(version)); - expect(testResponse.language).to(equal([SDLLanguage ES_MX])); - expect(testResponse.hmiDisplayLanguage).to(equal([SDLLanguage RU_RU])); - expect(testResponse.displayCapabilities).to(equal(info)); - expect(testResponse.buttonCapabilities).to(equal([@[button] mutableCopy])); - expect(testResponse.softButtonCapabilities).to(equal([@[softButton] mutableCopy])); - expect(testResponse.presetBankCapabilities).to(equal(presetBank)); - expect(testResponse.hmiZoneCapabilities).to(equal([@[[SDLHMIZoneCapabilities BACK], [SDLHMIZoneCapabilities FRONT]] copy])); - expect(testResponse.speechCapabilities).to(equal([@[[SDLSpeechCapabilities SAPI_PHONEMES], [SDLSpeechCapabilities SILENCE]] copy])); - expect(testResponse.vrCapabilities).to(equal([@[[SDLVRCapabilities TEXT]] copy])); - expect(testResponse.audioPassThruCapabilities).to(equal([@[audioPassThru] mutableCopy])); - expect(testResponse.vehicleType).to(equal(vehicle)); - expect(testResponse.prerecordedSpeech).to(equal([@[[SDLPrerecordedSpeech LISTEN_JINGLE], [SDLPrerecordedSpeech HELP_JINGLE]] copy])); - expect(testResponse.supportedDiagModes).to(equal([@[@67, @99, @111] mutableCopy])); - expect(testResponse.hmiCapabilities).to(equal(hmiCapabilities)); - expect(testResponse.sdlVersion).to(equal(@"sdlVersion")); - expect(testResponse.systemSoftwareVersion).to(equal(@"systemSoftwareVersion")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_syncMsgVersion:version, - NAMES_language:[SDLLanguage ES_MX], - NAMES_hmiDisplayLanguage:[SDLLanguage RU_RU], - NAMES_displayCapabilities:info, - NAMES_buttonCapabilities:[@[button] mutableCopy], - NAMES_softButtonCapabilities:[@[softButton] mutableCopy], - NAMES_presetBankCapabilities:presetBank, - NAMES_hmiZoneCapabilities:[@[[SDLHMIZoneCapabilities BACK], [SDLHMIZoneCapabilities FRONT]] copy], - NAMES_speechCapabilities:[@[[SDLSpeechCapabilities SAPI_PHONEMES], [SDLSpeechCapabilities SILENCE]] copy], - NAMES_vrCapabilities:[@[[SDLVRCapabilities TEXT]] copy], - NAMES_audioPassThruCapabilities:[@[audioPassThru] mutableCopy], - NAMES_vehicleType:vehicle, - NAMES_prerecordedSpeech:[@[[SDLPrerecordedSpeech LISTEN_JINGLE], [SDLPrerecordedSpeech HELP_JINGLE]] mutableCopy], - NAMES_supportedDiagModes:[@[@67, @99, @111] mutableCopy], - NAMES_hmiCapabilities: hmiCapabilities, - NAMES_sdlVersion: @"sdlVersion", - NAMES_systemSoftwareVersion: @"systemSoftwareVersion" - }, - NAMES_operation_name:NAMES_RegisterAppInterface}} mutableCopy]; - SDLRegisterAppInterfaceResponse* testResponse = [[SDLRegisterAppInterfaceResponse alloc] initWithDictionary:dict]; - - expect(testResponse.syncMsgVersion).to(equal(version)); - expect(testResponse.language).to(equal([SDLLanguage ES_MX])); - expect(testResponse.hmiDisplayLanguage).to(equal([SDLLanguage RU_RU])); - expect(testResponse.displayCapabilities).to(equal(info)); - expect(testResponse.buttonCapabilities).to(equal([@[button] mutableCopy])); - expect(testResponse.softButtonCapabilities).to(equal([@[softButton] mutableCopy])); - expect(testResponse.presetBankCapabilities).to(equal(presetBank)); - expect(testResponse.hmiZoneCapabilities).to(equal([@[[SDLHMIZoneCapabilities BACK], [SDLHMIZoneCapabilities FRONT]] copy])); - expect(testResponse.speechCapabilities).to(equal([@[[SDLSpeechCapabilities SAPI_PHONEMES], [SDLSpeechCapabilities SILENCE]] copy])); - expect(testResponse.vrCapabilities).to(equal([@[[SDLVRCapabilities TEXT]] copy])); - expect(testResponse.audioPassThruCapabilities).to(equal([@[audioPassThru] mutableCopy])); - expect(testResponse.vehicleType).to(equal(vehicle)); - expect(testResponse.prerecordedSpeech).to(equal([@[[SDLPrerecordedSpeech LISTEN_JINGLE], [SDLPrerecordedSpeech HELP_JINGLE]] copy])); - expect(testResponse.supportedDiagModes).to(equal([@[@67, @99, @111] mutableCopy])); - expect(testResponse.hmiCapabilities).to(equal(hmiCapabilities)); - expect(testResponse.sdlVersion).to(equal(@"sdlVersion")); - expect(testResponse.systemSoftwareVersion).to(equal(@"systemSoftwareVersion")); - }); - - it(@"Should return nil if not set", ^ { - SDLRegisterAppInterfaceResponse* testResponse = [[SDLRegisterAppInterfaceResponse alloc] init]; - - expect(testResponse.syncMsgVersion).to(beNil()); - expect(testResponse.language).to(beNil()); - expect(testResponse.hmiDisplayLanguage).to(beNil()); - expect(testResponse.displayCapabilities).to(beNil()); - expect(testResponse.buttonCapabilities).to(beNil()); - expect(testResponse.softButtonCapabilities).to(beNil()); - expect(testResponse.presetBankCapabilities).to(beNil()); - expect(testResponse.hmiZoneCapabilities).to(beNil()); - expect(testResponse.speechCapabilities).to(beNil()); - expect(testResponse.vrCapabilities).to(beNil()); - expect(testResponse.audioPassThruCapabilities).to(beNil()); - expect(testResponse.vehicleType).to(beNil()); - expect(testResponse.prerecordedSpeech).to(beNil()); - expect(testResponse.supportedDiagModes).to(beNil()); - expect(testResponse.hmiCapabilities).to(beNil()); - expect(testResponse.sdlVersion).to(beNil()); - expect(testResponse.systemSoftwareVersion).to(beNil()); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLResetGlobalPropertiesResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLResetGlobalPropertiesResponseSpec.m deleted file mode 100644 index fb9b4a2ed..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLResetGlobalPropertiesResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLResetGlobalPropertiesResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLResetGlobalPropertiesResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLResetGlobalPropertiesResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLScrollableMessageResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLScrollableMessageResponseSpec.m deleted file mode 100644 index 5cebb0229..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLScrollableMessageResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLScrollableMessageResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLScrollableMessageResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLScrollableMessageResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSendLocationResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSendLocationResponseSpec.m deleted file mode 100644 index 83d1ee55a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSendLocationResponseSpec.m +++ /dev/null @@ -1,12 +0,0 @@ -// -// SDLSendLocationResponseSpec.m -// SmartDeviceLink-iOS - -#import -#import - -QuickSpecBegin(SDLSendLocationResponseSpec) - - - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetAppIconResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetAppIconResponseSpec.m deleted file mode 100644 index 44593a080..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetAppIconResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLSetAppIconResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSetAppIconResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSetAppIconResponseSpec) - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetDisplayLayoutResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetDisplayLayoutResponseSpec.m deleted file mode 100644 index 3eeab76a1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetDisplayLayoutResponseSpec.m +++ /dev/null @@ -1,67 +0,0 @@ -// -// SDLSetDisplayLayoutResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLButtonCapabilities.h" -#import "SDLDisplayCapabilities.h" -#import "SDLNames.h" -#import "SDLPresetBankCapabilities.h" -#import "SDLSetDisplayLayoutResponse.h" -#import "SDLSoftButtonCapabilities.h" - - -QuickSpecBegin(SDLSetDisplayLayoutResponseSpec) - -SDLDisplayCapabilities* info = [[SDLDisplayCapabilities alloc] init]; -SDLButtonCapabilities* button = [[SDLButtonCapabilities alloc] init]; -SDLSoftButtonCapabilities* softButton = [[SDLSoftButtonCapabilities alloc] init]; -SDLPresetBankCapabilities* presetBank = [[SDLPresetBankCapabilities alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSetDisplayLayoutResponse* testResponse = [[SDLSetDisplayLayoutResponse alloc] init]; - - testResponse.displayCapabilities = info; - testResponse.buttonCapabilities = [@[button] mutableCopy]; - testResponse.softButtonCapabilities = [@[softButton] mutableCopy]; - testResponse.presetBankCapabilities = presetBank; - - expect(testResponse.displayCapabilities).to(equal(info)); - expect(testResponse.buttonCapabilities).to(equal([@[button] mutableCopy])); - expect(testResponse.softButtonCapabilities).to(equal([@[softButton] mutableCopy])); - expect(testResponse.presetBankCapabilities).to(equal(presetBank)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_request: - @{NAMES_parameters: - @{NAMES_displayCapabilities:info, - NAMES_buttonCapabilities:[@[button] mutableCopy], - NAMES_softButtonCapabilities:[@[softButton] mutableCopy], - NAMES_presetBankCapabilities:presetBank}, - NAMES_operation_name:NAMES_SetDisplayLayout}} mutableCopy]; - SDLSetDisplayLayoutResponse* testResponse = [[SDLSetDisplayLayoutResponse alloc] initWithDictionary:dict]; - - expect(testResponse.displayCapabilities).to(equal(info)); - expect(testResponse.buttonCapabilities).to(equal([@[button] mutableCopy])); - expect(testResponse.softButtonCapabilities).to(equal([@[softButton] mutableCopy])); - expect(testResponse.presetBankCapabilities).to(equal(presetBank)); - }); - - it(@"Should return nil if not set", ^ { - SDLSetDisplayLayoutResponse* testResponse = [[SDLSetDisplayLayoutResponse alloc] init]; - - expect(testResponse.displayCapabilities).to(beNil()); - expect(testResponse.buttonCapabilities).to(beNil()); - expect(testResponse.softButtonCapabilities).to(beNil()); - expect(testResponse.presetBankCapabilities).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetGlobalPropertiesResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetGlobalPropertiesResponseSpec.m deleted file mode 100644 index 80a5f47ec..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetGlobalPropertiesResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLSetGlobalPropertiesResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSetGlobalPropertiesResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSetGlobalPropertiesResponseSpec) - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetMediaClockTimerResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetMediaClockTimerResponseSpec.m deleted file mode 100644 index e840213d6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetMediaClockTimerResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLSetMediaClockTimerResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSetMediaClockTimerResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSetMediaClockTimerResponseSpec) - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowConstantTBTResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowConstantTBTResponseSpec.m deleted file mode 100644 index 1bd2c57cd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowConstantTBTResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLShowConstantTBTResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLShowConstantTBTResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLShowConstantTBTResponseSpec) - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowResponseSpec.m deleted file mode 100644 index bbfa524c0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLShowResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLShowResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLShowResponseSpec) - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSliderResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSliderResponseSpec.m deleted file mode 100644 index 6f92c1e48..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSliderResponseSpec.m +++ /dev/null @@ -1,43 +0,0 @@ -// -// SDLSliderResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSliderResponse.h" -#import "SDLDIDResult.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSliderResponseSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSliderResponse* testResponse = [[SDLSliderResponse alloc] init]; - - testResponse.sliderPosition = @13; - - expect(testResponse.sliderPosition).to(equal(@13)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_response: - @{NAMES_parameters: - @{NAMES_sliderPosition:@13}, - NAMES_operation_name:NAMES_Slider}} mutableCopy]; - SDLSliderResponse* testResponse = [[SDLSliderResponse alloc] initWithDictionary:dict]; - - expect(testResponse.sliderPosition).to(equal(@13)); - }); - - it(@"Should return nil if not set", ^ { - SDLSliderResponse* testResponse = [[SDLSliderResponse alloc] init]; - - expect(testResponse.sliderPosition).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSpeakResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSpeakResponseSpec.m deleted file mode 100644 index 688e8f34c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSpeakResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLSpeakResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSpeakResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSpeakResponseSpec) - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeButtonResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeButtonResponseSpec.m deleted file mode 100644 index 5e78d95ed..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeButtonResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLSubscribeButtonResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSubscribeButtonResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSubscribeButtonResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeVehicleDataResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeVehicleDataResponseSpec.m deleted file mode 100644 index d6c0dc6ac..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeVehicleDataResponseSpec.m +++ /dev/null @@ -1,161 +0,0 @@ -// -// SDLSubscribeVehicleDataResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLNames.h" -#import "SDLSubscribeVehicleDataResponse.h" -#import "SDLVehicleDataResult.h" - - -QuickSpecBegin(SDLSubscribeVehicleDataResponseSpec) - -SDLVehicleDataResult* vehicleDataResult = [[SDLVehicleDataResult alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSubscribeVehicleDataResponse* testResponse = [[SDLSubscribeVehicleDataResponse alloc] init]; - - testResponse.gps = vehicleDataResult; - testResponse.speed = vehicleDataResult; - testResponse.rpm = vehicleDataResult; - testResponse.fuelLevel = vehicleDataResult; - testResponse.fuelLevel_State = vehicleDataResult; - testResponse.instantFuelConsumption = vehicleDataResult; - testResponse.externalTemperature = vehicleDataResult; - testResponse.prndl = vehicleDataResult; - testResponse.tirePressure = vehicleDataResult; - testResponse.odometer = vehicleDataResult; - testResponse.beltStatus = vehicleDataResult; - testResponse.bodyInformation = vehicleDataResult; - testResponse.deviceStatus = vehicleDataResult; - testResponse.driverBraking = vehicleDataResult; - testResponse.wiperStatus = vehicleDataResult; - testResponse.headLampStatus = vehicleDataResult; - testResponse.engineTorque = vehicleDataResult; - testResponse.accPedalPosition = vehicleDataResult; - testResponse.steeringWheelAngle = vehicleDataResult; - testResponse.eCallInfo = vehicleDataResult; - testResponse.airbagStatus = vehicleDataResult; - testResponse.emergencyEvent = vehicleDataResult; - testResponse.clusterModes = vehicleDataResult; - testResponse.myKey = vehicleDataResult; - - expect(testResponse.gps).to(equal(vehicleDataResult)); - expect(testResponse.speed).to(equal(vehicleDataResult)); - expect(testResponse.rpm).to(equal(vehicleDataResult)); - expect(testResponse.fuelLevel).to(equal(vehicleDataResult)); - expect(testResponse.fuelLevel_State).to(equal(vehicleDataResult)); - expect(testResponse.instantFuelConsumption).to(equal(vehicleDataResult)); - expect(testResponse.externalTemperature).to(equal(vehicleDataResult)); - expect(testResponse.prndl).to(equal(vehicleDataResult)); - expect(testResponse.tirePressure).to(equal(vehicleDataResult)); - expect(testResponse.odometer).to(equal(vehicleDataResult)); - expect(testResponse.beltStatus).to(equal(vehicleDataResult)); - expect(testResponse.bodyInformation).to(equal(vehicleDataResult)); - expect(testResponse.deviceStatus).to(equal(vehicleDataResult)); - expect(testResponse.driverBraking).to(equal(vehicleDataResult)); - expect(testResponse.wiperStatus).to(equal(vehicleDataResult)); - expect(testResponse.headLampStatus).to(equal(vehicleDataResult)); - expect(testResponse.engineTorque).to(equal(vehicleDataResult)); - expect(testResponse.accPedalPosition).to(equal(vehicleDataResult)); - expect(testResponse.steeringWheelAngle).to(equal(vehicleDataResult)); - expect(testResponse.eCallInfo).to(equal(vehicleDataResult)); - expect(testResponse.airbagStatus).to(equal(vehicleDataResult)); - expect(testResponse.emergencyEvent).to(equal(vehicleDataResult)); - expect(testResponse.clusterModes).to(equal(vehicleDataResult)); - expect(testResponse.myKey).to(equal(vehicleDataResult)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_response: - @{NAMES_parameters: - @{NAMES_gps:vehicleDataResult, - NAMES_speed:vehicleDataResult, - NAMES_rpm:vehicleDataResult, - NAMES_fuelLevel:vehicleDataResult, - NAMES_fuelLevel_State:vehicleDataResult, - NAMES_instantFuelConsumption:vehicleDataResult, - NAMES_externalTemperature:vehicleDataResult, - NAMES_prndl:vehicleDataResult, - NAMES_tirePressure:vehicleDataResult, - NAMES_odometer:vehicleDataResult, - NAMES_beltStatus:vehicleDataResult, - NAMES_bodyInformation:vehicleDataResult, - NAMES_deviceStatus:vehicleDataResult, - NAMES_driverBraking:vehicleDataResult, - NAMES_wiperStatus:vehicleDataResult, - NAMES_headLampStatus:vehicleDataResult, - NAMES_engineTorque:vehicleDataResult, - NAMES_accPedalPosition:vehicleDataResult, - NAMES_steeringWheelAngle:vehicleDataResult, - NAMES_eCallInfo:vehicleDataResult, - NAMES_airbagStatus:vehicleDataResult, - NAMES_emergencyEvent:vehicleDataResult, - NAMES_clusterModes:vehicleDataResult, - NAMES_myKey:vehicleDataResult}, - NAMES_operation_name:NAMES_SubscribeVehicleData}} mutableCopy]; - SDLSubscribeVehicleDataResponse* testResponse = [[SDLSubscribeVehicleDataResponse alloc] initWithDictionary:dict]; - - expect(testResponse.gps).to(equal(vehicleDataResult)); - expect(testResponse.speed).to(equal(vehicleDataResult)); - expect(testResponse.rpm).to(equal(vehicleDataResult)); - expect(testResponse.fuelLevel).to(equal(vehicleDataResult)); - expect(testResponse.fuelLevel_State).to(equal(vehicleDataResult)); - expect(testResponse.instantFuelConsumption).to(equal(vehicleDataResult)); - expect(testResponse.externalTemperature).to(equal(vehicleDataResult)); - expect(testResponse.prndl).to(equal(vehicleDataResult)); - expect(testResponse.tirePressure).to(equal(vehicleDataResult)); - expect(testResponse.odometer).to(equal(vehicleDataResult)); - expect(testResponse.beltStatus).to(equal(vehicleDataResult)); - expect(testResponse.bodyInformation).to(equal(vehicleDataResult)); - expect(testResponse.deviceStatus).to(equal(vehicleDataResult)); - expect(testResponse.driverBraking).to(equal(vehicleDataResult)); - expect(testResponse.wiperStatus).to(equal(vehicleDataResult)); - expect(testResponse.headLampStatus).to(equal(vehicleDataResult)); - expect(testResponse.engineTorque).to(equal(vehicleDataResult)); - expect(testResponse.accPedalPosition).to(equal(vehicleDataResult)); - expect(testResponse.steeringWheelAngle).to(equal(vehicleDataResult)); - expect(testResponse.eCallInfo).to(equal(vehicleDataResult)); - expect(testResponse.airbagStatus).to(equal(vehicleDataResult)); - expect(testResponse.emergencyEvent).to(equal(vehicleDataResult)); - expect(testResponse.clusterModes).to(equal(vehicleDataResult)); - expect(testResponse.myKey).to(equal(vehicleDataResult)); - }); - - it(@"Should return nil if not set", ^ { - SDLSubscribeVehicleDataResponse* testResponse = [[SDLSubscribeVehicleDataResponse alloc] init]; - - expect(testResponse.gps).to(beNil()); - expect(testResponse.speed).to(beNil()); - expect(testResponse.rpm).to(beNil()); - expect(testResponse.fuelLevel).to(beNil()); - expect(testResponse.fuelLevel_State).to(beNil()); - expect(testResponse.instantFuelConsumption).to(beNil()); - expect(testResponse.externalTemperature).to(beNil()); - expect(testResponse.prndl).to(beNil()); - expect(testResponse.tirePressure).to(beNil()); - expect(testResponse.odometer).to(beNil()); - expect(testResponse.beltStatus).to(beNil()); - expect(testResponse.bodyInformation).to(beNil()); - expect(testResponse.deviceStatus).to(beNil()); - expect(testResponse.driverBraking).to(beNil()); - expect(testResponse.wiperStatus).to(beNil()); - expect(testResponse.headLampStatus).to(beNil()); - expect(testResponse.engineTorque).to(beNil()); - expect(testResponse.accPedalPosition).to(beNil()); - expect(testResponse.steeringWheelAngle).to(beNil()); - expect(testResponse.eCallInfo).to(beNil()); - expect(testResponse.airbagStatus).to(beNil()); - expect(testResponse.emergencyEvent).to(beNil()); - expect(testResponse.clusterModes).to(beNil()); - expect(testResponse.myKey).to(beNil()); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSyncPDataResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSyncPDataResponseSpec.m deleted file mode 100644 index 6a287f226..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSyncPDataResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLSyncPDataResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSyncPDataResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSyncPDataResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSystemRequestResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSystemRequestResponseSpec.m deleted file mode 100644 index 2571379c8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSystemRequestResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLSystemRequestResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSystemRequestResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSystemRequestResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnregisterAppInterfaceResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnregisterAppInterfaceResponseSpec.m deleted file mode 100644 index f10eb6048..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnregisterAppInterfaceResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLUnregisterAppInterfaceResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLUnregisterAppInterfaceResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLUnregisterAppInterfaceResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeButtonResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeButtonResponseSpec.m deleted file mode 100644 index ca76ef4e7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeButtonResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLUnsubscribeButtonResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLUnsubscribeButtonResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLUnsubscribeButtonResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m deleted file mode 100644 index 29cb4e08c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m +++ /dev/null @@ -1,161 +0,0 @@ -// -// SDLUnsubscribeVehicleDataResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLUnsubscribeVehicleDataResponse.h" -#import "SDLNames.h" -#import "SDLVehicleDataResult.h" - - -QuickSpecBegin(SDLUnsubscribeVehicleDataResponseSpec) - -SDLVehicleDataResult* vehicleDataResult = [[SDLVehicleDataResult alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLUnsubscribeVehicleDataResponse* testResponse = [[SDLUnsubscribeVehicleDataResponse alloc] init]; - - testResponse.gps = vehicleDataResult; - testResponse.speed = vehicleDataResult; - testResponse.rpm = vehicleDataResult; - testResponse.fuelLevel = vehicleDataResult; - testResponse.fuelLevel_State = vehicleDataResult; - testResponse.instantFuelConsumption = vehicleDataResult; - testResponse.externalTemperature = vehicleDataResult; - testResponse.prndl = vehicleDataResult; - testResponse.tirePressure = vehicleDataResult; - testResponse.odometer = vehicleDataResult; - testResponse.beltStatus = vehicleDataResult; - testResponse.bodyInformation = vehicleDataResult; - testResponse.deviceStatus = vehicleDataResult; - testResponse.driverBraking = vehicleDataResult; - testResponse.wiperStatus = vehicleDataResult; - testResponse.headLampStatus = vehicleDataResult; - testResponse.engineTorque = vehicleDataResult; - testResponse.accPedalPosition = vehicleDataResult; - testResponse.steeringWheelAngle = vehicleDataResult; - testResponse.eCallInfo = vehicleDataResult; - testResponse.airbagStatus = vehicleDataResult; - testResponse.emergencyEvent = vehicleDataResult; - testResponse.clusterModes = vehicleDataResult; - testResponse.myKey = vehicleDataResult; - - expect(testResponse.gps).to(equal(vehicleDataResult)); - expect(testResponse.speed).to(equal(vehicleDataResult)); - expect(testResponse.rpm).to(equal(vehicleDataResult)); - expect(testResponse.fuelLevel).to(equal(vehicleDataResult)); - expect(testResponse.fuelLevel_State).to(equal(vehicleDataResult)); - expect(testResponse.instantFuelConsumption).to(equal(vehicleDataResult)); - expect(testResponse.externalTemperature).to(equal(vehicleDataResult)); - expect(testResponse.prndl).to(equal(vehicleDataResult)); - expect(testResponse.tirePressure).to(equal(vehicleDataResult)); - expect(testResponse.odometer).to(equal(vehicleDataResult)); - expect(testResponse.beltStatus).to(equal(vehicleDataResult)); - expect(testResponse.bodyInformation).to(equal(vehicleDataResult)); - expect(testResponse.deviceStatus).to(equal(vehicleDataResult)); - expect(testResponse.driverBraking).to(equal(vehicleDataResult)); - expect(testResponse.wiperStatus).to(equal(vehicleDataResult)); - expect(testResponse.headLampStatus).to(equal(vehicleDataResult)); - expect(testResponse.engineTorque).to(equal(vehicleDataResult)); - expect(testResponse.accPedalPosition).to(equal(vehicleDataResult)); - expect(testResponse.steeringWheelAngle).to(equal(vehicleDataResult)); - expect(testResponse.eCallInfo).to(equal(vehicleDataResult)); - expect(testResponse.airbagStatus).to(equal(vehicleDataResult)); - expect(testResponse.emergencyEvent).to(equal(vehicleDataResult)); - expect(testResponse.clusterModes).to(equal(vehicleDataResult)); - expect(testResponse.myKey).to(equal(vehicleDataResult)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_response: - @{NAMES_parameters: - @{NAMES_gps:vehicleDataResult, - NAMES_speed:vehicleDataResult, - NAMES_rpm:vehicleDataResult, - NAMES_fuelLevel:vehicleDataResult, - NAMES_fuelLevel_State:vehicleDataResult, - NAMES_instantFuelConsumption:vehicleDataResult, - NAMES_externalTemperature:vehicleDataResult, - NAMES_prndl:vehicleDataResult, - NAMES_tirePressure:vehicleDataResult, - NAMES_odometer:vehicleDataResult, - NAMES_beltStatus:vehicleDataResult, - NAMES_bodyInformation:vehicleDataResult, - NAMES_deviceStatus:vehicleDataResult, - NAMES_driverBraking:vehicleDataResult, - NAMES_wiperStatus:vehicleDataResult, - NAMES_headLampStatus:vehicleDataResult, - NAMES_engineTorque:vehicleDataResult, - NAMES_accPedalPosition:vehicleDataResult, - NAMES_steeringWheelAngle:vehicleDataResult, - NAMES_eCallInfo:vehicleDataResult, - NAMES_airbagStatus:vehicleDataResult, - NAMES_emergencyEvent:vehicleDataResult, - NAMES_clusterModes:vehicleDataResult, - NAMES_myKey:vehicleDataResult}, - NAMES_operation_name:NAMES_UnsubscribeVehicleData}} mutableCopy]; - SDLUnsubscribeVehicleDataResponse* testResponse = [[SDLUnsubscribeVehicleDataResponse alloc] initWithDictionary:dict]; - - expect(testResponse.gps).to(equal(vehicleDataResult)); - expect(testResponse.speed).to(equal(vehicleDataResult)); - expect(testResponse.rpm).to(equal(vehicleDataResult)); - expect(testResponse.fuelLevel).to(equal(vehicleDataResult)); - expect(testResponse.fuelLevel_State).to(equal(vehicleDataResult)); - expect(testResponse.instantFuelConsumption).to(equal(vehicleDataResult)); - expect(testResponse.externalTemperature).to(equal(vehicleDataResult)); - expect(testResponse.prndl).to(equal(vehicleDataResult)); - expect(testResponse.tirePressure).to(equal(vehicleDataResult)); - expect(testResponse.odometer).to(equal(vehicleDataResult)); - expect(testResponse.beltStatus).to(equal(vehicleDataResult)); - expect(testResponse.bodyInformation).to(equal(vehicleDataResult)); - expect(testResponse.deviceStatus).to(equal(vehicleDataResult)); - expect(testResponse.driverBraking).to(equal(vehicleDataResult)); - expect(testResponse.wiperStatus).to(equal(vehicleDataResult)); - expect(testResponse.headLampStatus).to(equal(vehicleDataResult)); - expect(testResponse.engineTorque).to(equal(vehicleDataResult)); - expect(testResponse.accPedalPosition).to(equal(vehicleDataResult)); - expect(testResponse.steeringWheelAngle).to(equal(vehicleDataResult)); - expect(testResponse.eCallInfo).to(equal(vehicleDataResult)); - expect(testResponse.airbagStatus).to(equal(vehicleDataResult)); - expect(testResponse.emergencyEvent).to(equal(vehicleDataResult)); - expect(testResponse.clusterModes).to(equal(vehicleDataResult)); - expect(testResponse.myKey).to(equal(vehicleDataResult)); - }); - - it(@"Should return nil if not set", ^ { - SDLUnsubscribeVehicleDataResponse* testResponse = [[SDLUnsubscribeVehicleDataResponse alloc] init]; - - expect(testResponse.gps).to(beNil()); - expect(testResponse.speed).to(beNil()); - expect(testResponse.rpm).to(beNil()); - expect(testResponse.fuelLevel).to(beNil()); - expect(testResponse.fuelLevel_State).to(beNil()); - expect(testResponse.instantFuelConsumption).to(beNil()); - expect(testResponse.externalTemperature).to(beNil()); - expect(testResponse.prndl).to(beNil()); - expect(testResponse.tirePressure).to(beNil()); - expect(testResponse.odometer).to(beNil()); - expect(testResponse.beltStatus).to(beNil()); - expect(testResponse.bodyInformation).to(beNil()); - expect(testResponse.deviceStatus).to(beNil()); - expect(testResponse.driverBraking).to(beNil()); - expect(testResponse.wiperStatus).to(beNil()); - expect(testResponse.headLampStatus).to(beNil()); - expect(testResponse.engineTorque).to(beNil()); - expect(testResponse.accPedalPosition).to(beNil()); - expect(testResponse.steeringWheelAngle).to(beNil()); - expect(testResponse.eCallInfo).to(beNil()); - expect(testResponse.airbagStatus).to(beNil()); - expect(testResponse.emergencyEvent).to(beNil()); - expect(testResponse.clusterModes).to(beNil()); - expect(testResponse.myKey).to(beNil()); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUpdateTurnListResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUpdateTurnListResponseSpec.m deleted file mode 100644 index d455dea46..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUpdateTurnListResponseSpec.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// SDLUpdateTurnListResponseSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLUpdateTurnListResponse.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLUpdateTurnListResponseSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAirbagStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAirbagStatusSpec.m deleted file mode 100644 index ea88855c5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAirbagStatusSpec.m +++ /dev/null @@ -1,76 +0,0 @@ -// -// SDLAirbagStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAirbagStatus.h" -#import "SDLNames.h" -#import "SDLVehicleDataEventStatus.h" - - -QuickSpecBegin(SDLAirbagStatusSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLAirbagStatus* testStruct = [[SDLAirbagStatus alloc] init]; - - testStruct.driverAirbagDeployed = [SDLVehicleDataEventStatus _YES]; - testStruct.driverSideAirbagDeployed = [SDLVehicleDataEventStatus NO_EVENT]; - testStruct.driverCurtainAirbagDeployed = [SDLVehicleDataEventStatus _NO]; - testStruct.passengerAirbagDeployed = [SDLVehicleDataEventStatus NOT_SUPPORTED]; - testStruct.passengerCurtainAirbagDeployed = [SDLVehicleDataEventStatus FAULT]; - testStruct.driverKneeAirbagDeployed = [SDLVehicleDataEventStatus _NO]; - testStruct.passengerSideAirbagDeployed = [SDLVehicleDataEventStatus _YES]; - testStruct.passengerKneeAirbagDeployed = [SDLVehicleDataEventStatus NO_EVENT]; - - expect(testStruct.driverAirbagDeployed).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.driverSideAirbagDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); - expect(testStruct.driverCurtainAirbagDeployed).to(equal([SDLVehicleDataEventStatus _NO])); - expect(testStruct.passengerAirbagDeployed).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); - expect(testStruct.passengerCurtainAirbagDeployed).to(equal([SDLVehicleDataEventStatus FAULT])); - expect(testStruct.driverKneeAirbagDeployed).to(equal([SDLVehicleDataEventStatus _NO])); - expect(testStruct.passengerSideAirbagDeployed).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.passengerKneeAirbagDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_driverAirbagDeployed:[SDLVehicleDataEventStatus _YES], - NAMES_driverSideAirbagDeployed:[SDLVehicleDataEventStatus NO_EVENT], - NAMES_driverCurtainAirbagDeployed:[SDLVehicleDataEventStatus _NO], - NAMES_passengerAirbagDeployed:[SDLVehicleDataEventStatus NOT_SUPPORTED], - NAMES_passengerCurtainAirbagDeployed:[SDLVehicleDataEventStatus FAULT], - NAMES_driverKneeAirbagDeployed:[SDLVehicleDataEventStatus _NO], - NAMES_passengerSideAirbagDeployed:[SDLVehicleDataEventStatus _YES], - NAMES_passengerKneeAirbagDeployed:[SDLVehicleDataEventStatus NO_EVENT]} mutableCopy]; - SDLAirbagStatus* testStruct = [[SDLAirbagStatus alloc] initWithDictionary:dict]; - - expect(testStruct.driverAirbagDeployed).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.driverSideAirbagDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); - expect(testStruct.driverCurtainAirbagDeployed).to(equal([SDLVehicleDataEventStatus _NO])); - expect(testStruct.passengerAirbagDeployed).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); - expect(testStruct.passengerCurtainAirbagDeployed).to(equal([SDLVehicleDataEventStatus FAULT])); - expect(testStruct.driverKneeAirbagDeployed).to(equal([SDLVehicleDataEventStatus _NO])); - expect(testStruct.passengerSideAirbagDeployed).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.passengerKneeAirbagDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); - }); - - it(@"Should return nil if not set", ^ { - SDLAirbagStatus* testStruct = [[SDLAirbagStatus alloc] init]; - - expect(testStruct.driverAirbagDeployed).to(beNil()); - expect(testStruct.driverSideAirbagDeployed).to(beNil()); - expect(testStruct.driverCurtainAirbagDeployed).to(beNil()); - expect(testStruct.passengerAirbagDeployed).to(beNil()); - expect(testStruct.passengerCurtainAirbagDeployed).to(beNil()); - expect(testStruct.driverKneeAirbagDeployed).to(beNil()); - expect(testStruct.passengerSideAirbagDeployed).to(beNil()); - expect(testStruct.passengerKneeAirbagDeployed).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAudioPassThruCapabilitiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAudioPassThruCapabilitiesSpec.m deleted file mode 100644 index 8d66fc8af..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAudioPassThruCapabilitiesSpec.m +++ /dev/null @@ -1,53 +0,0 @@ -// -// SDLAudioPassThruCapabilitiesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAudioPassThruCapabilities.h" -#import "SDLAudioType.h" -#import "SDLBitsPerSample.h" -#import "SDLNames.h" -#import "SDLSamplingRate.h" - - -QuickSpecBegin(SDLAudioPassThruCapabilitiesSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLAudioPassThruCapabilities* testStruct = [[SDLAudioPassThruCapabilities alloc] init]; - - testStruct.samplingRate = [SDLSamplingRate _22KHZ]; - testStruct.bitsPerSample = [SDLBitsPerSample _8_BIT]; - testStruct.audioType = [SDLAudioType PCM]; - - expect(testStruct.samplingRate).to(equal([SDLSamplingRate _22KHZ])); - expect(testStruct.bitsPerSample).to(equal([SDLBitsPerSample _8_BIT])); - expect(testStruct.audioType).to(equal([SDLAudioType PCM])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_samplingRate:[SDLSamplingRate _22KHZ], - NAMES_bitsPerSample:[SDLBitsPerSample _8_BIT], - NAMES_audioType:[SDLAudioType PCM]} mutableCopy]; - SDLAudioPassThruCapabilities* testStruct = [[SDLAudioPassThruCapabilities alloc] initWithDictionary:dict]; - - expect(testStruct.samplingRate).to(equal([SDLSamplingRate _22KHZ])); - expect(testStruct.bitsPerSample).to(equal([SDLBitsPerSample _8_BIT])); - expect(testStruct.audioType).to(equal([SDLAudioType PCM])); - }); - - it(@"Should return nil if not set", ^ { - SDLAudioPassThruCapabilities* testStruct = [[SDLAudioPassThruCapabilities alloc] init]; - - expect(testStruct.samplingRate).to(beNil()); - expect(testStruct.bitsPerSample).to(beNil()); - expect(testStruct.audioType).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBeltStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBeltStatusSpec.m deleted file mode 100644 index e0d8c4883..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBeltStatusSpec.m +++ /dev/null @@ -1,111 +0,0 @@ -// -// SDLBeltStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLBeltStatus.h" -#import "SDLNames.h" -#import "SDLVehicleDataEventStatus.h" - - -QuickSpecBegin(SDLBeltStatusSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLBeltStatus* testStruct = [[SDLBeltStatus alloc] init]; - - testStruct.driverBeltDeployed = [SDLVehicleDataEventStatus _YES]; - testStruct.passengerBeltDeployed = [SDLVehicleDataEventStatus NO_EVENT]; - testStruct.passengerBuckleBelted = [SDLVehicleDataEventStatus FAULT]; - testStruct.driverBuckleBelted = [SDLVehicleDataEventStatus _YES]; - testStruct.leftRow2BuckleBelted = [SDLVehicleDataEventStatus FAULT]; - testStruct.passengerChildDetected = [SDLVehicleDataEventStatus NOT_SUPPORTED]; - testStruct.rightRow2BuckleBelted = [SDLVehicleDataEventStatus _YES]; - testStruct.middleRow2BuckleBelted = [SDLVehicleDataEventStatus NO_EVENT]; - testStruct.middleRow3BuckleBelted = [SDLVehicleDataEventStatus NOT_SUPPORTED]; - testStruct.leftRow3BuckleBelted = [SDLVehicleDataEventStatus _YES]; - testStruct.rightRow3BuckleBelted = [SDLVehicleDataEventStatus _NO]; - testStruct.leftRearInflatableBelted = [SDLVehicleDataEventStatus NOT_SUPPORTED]; - testStruct.rightRearInflatableBelted = [SDLVehicleDataEventStatus FAULT]; - testStruct.middleRow1BeltDeployed = [SDLVehicleDataEventStatus _YES]; - testStruct.middleRow1BuckleBelted = [SDLVehicleDataEventStatus _NO]; - - expect(testStruct.driverBeltDeployed).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.passengerBeltDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); - expect(testStruct.passengerBuckleBelted).to(equal([SDLVehicleDataEventStatus FAULT])); - expect(testStruct.driverBuckleBelted).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.leftRow2BuckleBelted).to(equal([SDLVehicleDataEventStatus FAULT])); - expect(testStruct.passengerChildDetected).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); - expect(testStruct.rightRow2BuckleBelted).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.middleRow2BuckleBelted).to(equal([SDLVehicleDataEventStatus NO_EVENT])); - expect(testStruct.middleRow3BuckleBelted).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); - expect(testStruct.leftRow3BuckleBelted).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.rightRow3BuckleBelted).to(equal([SDLVehicleDataEventStatus _NO])); - expect(testStruct.leftRearInflatableBelted).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); - expect(testStruct.rightRearInflatableBelted).to(equal([SDLVehicleDataEventStatus FAULT])); - expect(testStruct.middleRow1BeltDeployed).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.middleRow1BuckleBelted).to(equal([SDLVehicleDataEventStatus _NO])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_driverBeltDeployed:[SDLVehicleDataEventStatus NO_EVENT], - NAMES_passengerBeltDeployed:[SDLVehicleDataEventStatus _YES], - NAMES_passengerBuckleBelted:[SDLVehicleDataEventStatus _NO], - NAMES_driverBuckleBelted:[SDLVehicleDataEventStatus FAULT], - NAMES_leftRow2BuckleBelted:[SDLVehicleDataEventStatus _YES], - NAMES_passengerChildDetected:[SDLVehicleDataEventStatus _NO], - NAMES_rightRow2BuckleBelted:[SDLVehicleDataEventStatus NOT_SUPPORTED], - NAMES_middleRow2BuckleBelted:[SDLVehicleDataEventStatus NO_EVENT], - NAMES_middleRow3BuckleBelted:[SDLVehicleDataEventStatus _YES], - NAMES_leftRow3BuckleBelted:[SDLVehicleDataEventStatus FAULT], - NAMES_rightRow3BuckleBelted:[SDLVehicleDataEventStatus _NO], - NAMES_leftRearInflatableBelted:[SDLVehicleDataEventStatus NOT_SUPPORTED], - NAMES_rightRearInflatableBelted:[SDLVehicleDataEventStatus FAULT], - NAMES_middleRow1BeltDeployed:[SDLVehicleDataEventStatus NO_EVENT], - NAMES_middleRow1BuckleBelted:[SDLVehicleDataEventStatus NOT_SUPPORTED]} mutableCopy]; - SDLBeltStatus* testStruct = [[SDLBeltStatus alloc] initWithDictionary:dict]; - - expect(testStruct.driverBeltDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); - expect(testStruct.passengerBeltDeployed).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.passengerBuckleBelted).to(equal([SDLVehicleDataEventStatus _NO])); - expect(testStruct.driverBuckleBelted).to(equal([SDLVehicleDataEventStatus FAULT])); - expect(testStruct.leftRow2BuckleBelted).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.passengerChildDetected).to(equal([SDLVehicleDataEventStatus _NO])); - expect(testStruct.rightRow2BuckleBelted).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); - expect(testStruct.middleRow2BuckleBelted).to(equal([SDLVehicleDataEventStatus NO_EVENT])); - expect(testStruct.middleRow3BuckleBelted).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.leftRow3BuckleBelted).to(equal([SDLVehicleDataEventStatus FAULT])); - expect(testStruct.rightRow3BuckleBelted).to(equal([SDLVehicleDataEventStatus _NO])); - expect(testStruct.leftRearInflatableBelted).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); - expect(testStruct.rightRearInflatableBelted).to(equal([SDLVehicleDataEventStatus FAULT])); - expect(testStruct.middleRow1BeltDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); - expect(testStruct.middleRow1BuckleBelted).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); - }); - - it(@"Should return nil if not set", ^ { - SDLBeltStatus* testStruct = [[SDLBeltStatus alloc] init]; - - expect(testStruct.driverBeltDeployed).to(beNil()); - expect(testStruct.passengerBeltDeployed).to(beNil()); - expect(testStruct.passengerBuckleBelted).to(beNil()); - expect(testStruct.driverBuckleBelted).to(beNil()); - expect(testStruct.leftRow2BuckleBelted).to(beNil()); - expect(testStruct.passengerChildDetected).to(beNil()); - expect(testStruct.rightRow2BuckleBelted).to(beNil()); - expect(testStruct.middleRow2BuckleBelted).to(beNil()); - expect(testStruct.middleRow3BuckleBelted).to(beNil()); - expect(testStruct.leftRow3BuckleBelted).to(beNil()); - expect(testStruct.rightRow3BuckleBelted).to(beNil()); - expect(testStruct.leftRearInflatableBelted).to(beNil()); - expect(testStruct.rightRearInflatableBelted).to(beNil()); - expect(testStruct.middleRow1BeltDeployed).to(beNil()); - expect(testStruct.middleRow1BuckleBelted).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBodyInformationSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBodyInformationSpec.m deleted file mode 100644 index a13a7cc9c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBodyInformationSpec.m +++ /dev/null @@ -1,71 +0,0 @@ -// -// SDLBodyInformationSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLBodyInformation.h" -#import "SDLIgnitionStableStatus.h" -#import "SDLIgnitionStatus.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLBodyInformationSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLBodyInformation* testStruct = [[SDLBodyInformation alloc] init]; - - testStruct.parkBrakeActive = @YES; - testStruct.ignitionStableStatus = [SDLIgnitionStableStatus IGNITION_SWITCH_STABLE]; - testStruct.ignitionStatus = [SDLIgnitionStatus START]; - testStruct.driverDoorAjar = @NO; - testStruct.passengerDoorAjar = @NO; - testStruct.rearLeftDoorAjar = @NO; - testStruct.rearRightDoorAjar = @YES; - - expect(testStruct.parkBrakeActive).to(equal(@YES)); - expect(testStruct.ignitionStableStatus).to(equal([SDLIgnitionStableStatus IGNITION_SWITCH_STABLE])); - expect(testStruct.ignitionStatus).to(equal([SDLIgnitionStatus START])); - expect(testStruct.driverDoorAjar).to(equal(@NO)); - expect(testStruct.passengerDoorAjar).to(equal(@NO)); - expect(testStruct.rearLeftDoorAjar).to(equal(@NO)); - expect(testStruct.rearRightDoorAjar).to(equal(@YES)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_parkBrakeActive:@YES, - NAMES_ignitionStableStatus:[SDLIgnitionStableStatus IGNITION_SWITCH_NOT_STABLE], - NAMES_ignitionStatus:[SDLIgnitionStatus START], - NAMES_driverDoorAjar:@NO, - NAMES_passengerDoorAjar:@NO, - NAMES_rearLeftDoorAjar:@NO, - NAMES_rearRightDoorAjar:@YES} mutableCopy]; - SDLBodyInformation* testStruct = [[SDLBodyInformation alloc] initWithDictionary:dict]; - - expect(testStruct.parkBrakeActive).to(equal(@YES)); - expect(testStruct.ignitionStableStatus).to(equal([SDLIgnitionStableStatus IGNITION_SWITCH_NOT_STABLE])); - expect(testStruct.ignitionStatus).to(equal([SDLIgnitionStatus START])); - expect(testStruct.driverDoorAjar).to(equal(@NO)); - expect(testStruct.passengerDoorAjar).to(equal(@NO)); - expect(testStruct.rearLeftDoorAjar).to(equal(@NO)); - expect(testStruct.rearRightDoorAjar).to(equal(@YES)); - }); - - it(@"Should return nil if not set", ^ { - SDLBodyInformation* testStruct = [[SDLBodyInformation alloc] init]; - - expect(testStruct.parkBrakeActive).to(beNil()); - expect(testStruct.ignitionStableStatus).to(beNil()); - expect(testStruct.ignitionStatus).to(beNil()); - expect(testStruct.driverDoorAjar).to(beNil()); - expect(testStruct.passengerDoorAjar).to(beNil()); - expect(testStruct.rearLeftDoorAjar).to(beNil()); - expect(testStruct.rearRightDoorAjar).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLButtonCapabilitiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLButtonCapabilitiesSpec.m deleted file mode 100644 index a5f753629..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLButtonCapabilitiesSpec.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SDLButtonCapabilitiesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLButtonCapabilities.h" -#import "SDLButtonName.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLButtonCapabilitiesSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLButtonCapabilities* testStruct = [[SDLButtonCapabilities alloc] init]; - - testStruct.name = [SDLButtonName TUNEUP]; - testStruct.shortPressAvailable = @YES; - testStruct.longPressAvailable = @YES; - testStruct.upDownAvailable = @NO; - - expect(testStruct.name).to(equal([SDLButtonName TUNEUP])); - expect(testStruct.shortPressAvailable).to(equal(@YES)); - expect(testStruct.longPressAvailable).to(equal(@YES)); - expect(testStruct.upDownAvailable).to(equal(@NO)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_name:[SDLButtonName CUSTOM_BUTTON], - NAMES_shortPressAvailable:@YES, - NAMES_longPressAvailable:@YES, - NAMES_upDownAvailable:@NO} mutableCopy]; - SDLButtonCapabilities* testStruct = [[SDLButtonCapabilities alloc] initWithDictionary:dict]; - - expect(testStruct.name).to(equal([SDLButtonName CUSTOM_BUTTON])); - expect(testStruct.shortPressAvailable).to(equal(@YES)); - expect(testStruct.longPressAvailable).to(equal(@YES)); - expect(testStruct.upDownAvailable).to(equal(@NO)); - }); - - it(@"Should return nil if not set", ^ { - SDLButtonCapabilities* testStruct = [[SDLButtonCapabilities alloc] init]; - - expect(testStruct.name).to(beNil()); - expect(testStruct.shortPressAvailable).to(beNil()); - expect(testStruct.longPressAvailable).to(beNil()); - expect(testStruct.upDownAvailable).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLChoiceSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLChoiceSpec.m deleted file mode 100644 index 63116976a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLChoiceSpec.m +++ /dev/null @@ -1,74 +0,0 @@ -// -// SDLChoiceSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLChoice.h" -#import "SDLImage.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLChoiceSpec) - -__block SDLImage* image = [[SDLImage alloc] init]; -__block SDLImage* secondaryImage = [[SDLImage alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLChoice* testStruct = [[SDLChoice alloc] init]; - - testStruct.choiceID = @3; - testStruct.menuName = @"Hello"; - testStruct.vrCommands = [@[@"1", @"2"] mutableCopy]; - testStruct.image = image; - testStruct.secondaryText = @"Arbitrary"; - testStruct.tertiaryText = @"qwerty"; - testStruct.secondaryImage = secondaryImage; - - expect(testStruct.choiceID).to(equal(@3)); - expect(testStruct.menuName).to(equal(@"Hello")); - expect(testStruct.vrCommands).to(equal([@[@"1", @"2"] mutableCopy])); - expect(testStruct.image).to(equal(image)); - expect(testStruct.secondaryText).to(equal(@"Arbitrary")); - expect(testStruct.tertiaryText).to(equal(@"qwerty")); - expect(testStruct.secondaryImage).to(equal(secondaryImage)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_choiceID:@3, - NAMES_menuName:@"Hello", - NAMES_vrCommands:[@[@"1", @"2"] mutableCopy], - NAMES_image:image, - NAMES_secondaryText:@"Arbitrary", - NAMES_tertiaryText:@"qwerty", - NAMES_secondaryImage:secondaryImage} mutableCopy]; - SDLChoice* testStruct = [[SDLChoice alloc] initWithDictionary:dict]; - - expect(testStruct.choiceID).to(equal(@3)); - expect(testStruct.menuName).to(equal(@"Hello")); - expect(testStruct.vrCommands).to(equal([@[@"1", @"2"] mutableCopy])); - expect(testStruct.image).to(equal(image)); - expect(testStruct.secondaryText).to(equal(@"Arbitrary")); - expect(testStruct.tertiaryText).to(equal(@"qwerty")); - expect(testStruct.secondaryImage).to(equal(secondaryImage)); - }); - - it(@"Should return nil if not set", ^ { - SDLChoice* testStruct = [[SDLChoice alloc] init]; - - expect(testStruct.choiceID).to(beNil()); - expect(testStruct.menuName).to(beNil()); - expect(testStruct.vrCommands).to(beNil()); - expect(testStruct.image).to(beNil()); - expect(testStruct.secondaryText).to(beNil()); - expect(testStruct.tertiaryText).to(beNil()); - expect(testStruct.secondaryImage).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m deleted file mode 100644 index 8e74324cf..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m +++ /dev/null @@ -1,57 +0,0 @@ -// -// SDLClusterModeStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLCarModeStatus.h" -#import "SDLClusterModeStatus.h" -#import "SDLPowerModeQualificationStatus.h" -#import "SDLPowerModeStatus.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLClusterModeStatusSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLClusterModeStatus* testStruct = [[SDLClusterModeStatus alloc] init]; - - testStruct.powerModeActive = @YES; - testStruct.powerModeQualificationStatus = [SDLPowerModeQualificationStatus POWER_MODE_EVALUATION_IN_PROGRESS]; - testStruct.carModeStatus = [SDLCarModeStatus CRASH]; - testStruct.powerModeStatus = [SDLPowerModeStatus IGNITION_ON_2]; - - expect(testStruct.powerModeActive).to(equal(@YES)); - expect(testStruct.powerModeQualificationStatus).to(equal([SDLPowerModeQualificationStatus POWER_MODE_EVALUATION_IN_PROGRESS])); - expect(testStruct.carModeStatus).to(equal([SDLCarModeStatus CRASH])); - expect(testStruct.powerModeStatus).to(equal([SDLPowerModeStatus IGNITION_ON_2])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_powerModeActive:@NO, - NAMES_powerModeQualificationStatus:[SDLPowerModeQualificationStatus POWER_MODE_OK], - NAMES_carModeStatus:[SDLCarModeStatus CRASH], - NAMES_powerModeStatus:[SDLPowerModeStatus KEY_OUT]} mutableCopy]; - SDLClusterModeStatus* testStruct = [[SDLClusterModeStatus alloc] initWithDictionary:dict]; - - expect(testStruct.powerModeActive).to(equal(@NO)); - expect(testStruct.powerModeQualificationStatus).to(equal([SDLPowerModeQualificationStatus POWER_MODE_OK])); - expect(testStruct.carModeStatus).to(equal([SDLCarModeStatus CRASH])); - expect(testStruct.powerModeStatus).to(equal([SDLPowerModeStatus KEY_OUT])); - }); - - it(@"Should return nil if not set", ^ { - SDLClusterModeStatus* testStruct = [[SDLClusterModeStatus alloc] init]; - - expect(testStruct.powerModeActive).to(beNil()); - expect(testStruct.powerModeQualificationStatus).to(beNil()); - expect(testStruct.carModeStatus).to(beNil()); - expect(testStruct.powerModeStatus).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDIDResult.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDIDResult.m deleted file mode 100644 index db626f959..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDIDResult.m +++ /dev/null @@ -1,51 +0,0 @@ -// -// SDLDIDResultSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDIDResult.h" -#import "SDLNames.h" -#import "SDLVehicleDataResultCode.h" - - -QuickSpecBegin(SDLDIDResultSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLDIDResult* testStruct = [[SDLDIDResult alloc] init]; - - testStruct.resultCode = [SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED]; - testStruct.didLocation = @300; - testStruct.data = @"gertwydhty4235tdhedt4tue"; - - expect(testStruct.resultCode).to(equal([SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED])); - expect(testStruct.didLocation).to(equal(@300)); - expect(testStruct.data).to(equal(@"gertwydhty4235tdhedt4tue")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_resultCode:[SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED], - NAMES_didLocation:@300, - NAMES_data:@"gertwydhty4235tdhedt4tue"} mutableCopy]; - SDLDIDResult* testStruct = [[SDLDIDResult alloc] initWithDictionary:dict]; - - expect(testStruct.resultCode).to(equal([SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED])); - expect(testStruct.didLocation).to(equal(@300)); - expect(testStruct.data).to(equal(@"gertwydhty4235tdhedt4tue")); - }); - - it(@"Should return nil if not set", ^ { - SDLDIDResult* testStruct = [[SDLDIDResult alloc] init]; - - expect(testStruct.resultCode).to(beNil()); - expect(testStruct.didLocation).to(beNil()); - expect(testStruct.data).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceInfoSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceInfoSpec.m deleted file mode 100644 index beb3b2d80..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceInfoSpec.m +++ /dev/null @@ -1,64 +0,0 @@ -// -// SDLDeviceInfoSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDeviceInfo.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLDeviceInfoSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLDeviceInfo* testStruct = [[SDLDeviceInfo alloc] init]; - - testStruct.hardware = @"GDFR34F"; - testStruct.firmwareRev = @"4.2a"; - testStruct.os = @"Robot"; - testStruct.osVersion = @"9.9"; - testStruct.carrier = @"ThatOneWirelessCompany"; - testStruct.maxNumberRFCOMMPorts = @20; - - expect(testStruct.hardware).to(equal(@"GDFR34F")); - expect(testStruct.firmwareRev).to(equal(@"4.2a")); - expect(testStruct.os).to(equal(@"Robot")); - expect(testStruct.osVersion).to(equal(@"9.9")); - expect(testStruct.carrier).to(equal(@"ThatOneWirelessCompany")); - expect(testStruct.maxNumberRFCOMMPorts).to(equal(@20)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_hardware:@"GDFR34F", - NAMES_firmwareRev:@"4.2a", - NAMES_os:@"Robot", - NAMES_osVersion:@"9.9", - NAMES_carrier:@"ThatOneWirelessCompany", - NAMES_maxNumberRFCOMMPorts:@20} mutableCopy]; - SDLDeviceInfo* testStruct = [[SDLDeviceInfo alloc] initWithDictionary:dict]; - - expect(testStruct.hardware).to(equal(@"GDFR34F")); - expect(testStruct.firmwareRev).to(equal(@"4.2a")); - expect(testStruct.os).to(equal(@"Robot")); - expect(testStruct.osVersion).to(equal(@"9.9")); - expect(testStruct.carrier).to(equal(@"ThatOneWirelessCompany")); - expect(testStruct.maxNumberRFCOMMPorts).to(equal(@20)); - }); - - it(@"Should return nil if not set", ^ { - SDLDeviceInfo* testStruct = [[SDLDeviceInfo alloc] init]; - - expect(testStruct.hardware).to(beNil()); - expect(testStruct.firmwareRev).to(beNil()); - expect(testStruct.os).to(beNil()); - expect(testStruct.osVersion).to(beNil()); - expect(testStruct.carrier).to(beNil()); - expect(testStruct.maxNumberRFCOMMPorts).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceStatusSpec.m deleted file mode 100644 index 1996e45a8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceStatusSpec.m +++ /dev/null @@ -1,92 +0,0 @@ -// -// SDLDeviceStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDeviceLevelStatus.h" -#import "SDLDeviceStatus.h" -#import "SDLNames.h" -#import "SDLPrimaryAudioSource.h" - - -QuickSpecBegin(SDLDeviceStatusSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLDeviceStatus* testStruct = [[SDLDeviceStatus alloc] init]; - - testStruct.voiceRecOn = @NO; - testStruct.btIconOn = @NO; - testStruct.callActive = @YES; - testStruct.phoneRoaming = @NO; - testStruct.textMsgAvailable = @YES; - testStruct.battLevelStatus = [SDLDeviceLevelStatus FOUR_LEVEL_BARS]; - testStruct.stereoAudioOutputMuted = @YES; - testStruct.monoAudioOutputMuted = @YES; - testStruct.signalLevelStatus = [SDLDeviceLevelStatus TWO_LEVEL_BARS]; - testStruct.primaryAudioSource = [SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST]; - testStruct.eCallEventActive = @NO; - - expect(testStruct.voiceRecOn).to(equal(@NO)); - expect(testStruct.btIconOn).to(equal(@NO)); - expect(testStruct.callActive).to(equal(@YES)); - expect(testStruct.phoneRoaming).to(equal(@NO)); - expect(testStruct.textMsgAvailable).to(equal(@YES)); - expect(testStruct.battLevelStatus).to(equal([SDLDeviceLevelStatus FOUR_LEVEL_BARS])); - expect(testStruct.stereoAudioOutputMuted).to(equal(@YES)); - expect(testStruct.monoAudioOutputMuted).to(equal(@YES)); - expect(testStruct.signalLevelStatus).to(equal([SDLDeviceLevelStatus TWO_LEVEL_BARS])); - expect(testStruct.primaryAudioSource).to(equal([SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST])); - expect(testStruct.eCallEventActive).to(equal(@NO)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_voiceRecOn:@NO, - NAMES_btIconOn:@NO, - NAMES_callActive:@YES, - NAMES_phoneRoaming:@NO, - NAMES_textMsgAvailable:@YES, - NAMES_battLevelStatus:[SDLDeviceLevelStatus FOUR_LEVEL_BARS], - NAMES_stereoAudioOutputMuted:@YES, - NAMES_monoAudioOutputMuted:@YES, - NAMES_signalLevelStatus:[SDLDeviceLevelStatus TWO_LEVEL_BARS], - NAMES_primaryAudioSource:[SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST], - NAMES_eCallEventActive:@NO} mutableCopy]; - SDLDeviceStatus* testStruct = [[SDLDeviceStatus alloc] initWithDictionary:dict]; - - expect(testStruct.voiceRecOn).to(equal(@NO)); - expect(testStruct.btIconOn).to(equal(@NO)); - expect(testStruct.callActive).to(equal(@YES)); - expect(testStruct.phoneRoaming).to(equal(@NO)); - expect(testStruct.textMsgAvailable).to(equal(@YES)); - expect(testStruct.battLevelStatus).to(equal([SDLDeviceLevelStatus FOUR_LEVEL_BARS])); - expect(testStruct.stereoAudioOutputMuted).to(equal(@YES)); - expect(testStruct.monoAudioOutputMuted).to(equal(@YES)); - expect(testStruct.signalLevelStatus).to(equal([SDLDeviceLevelStatus TWO_LEVEL_BARS])); - expect(testStruct.primaryAudioSource).to(equal([SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST])); - expect(testStruct.eCallEventActive).to(equal(@NO)); - }); - - it(@"Should return nil if not set", ^ { - SDLDeviceStatus* testStruct = [[SDLDeviceStatus alloc] init]; - - expect(testStruct.voiceRecOn).to(beNil()); - expect(testStruct.btIconOn).to(beNil()); - expect(testStruct.callActive).to(beNil()); - expect(testStruct.phoneRoaming).to(beNil()); - expect(testStruct.textMsgAvailable).to(beNil()); - expect(testStruct.battLevelStatus).to(beNil()); - expect(testStruct.stereoAudioOutputMuted).to(beNil()); - expect(testStruct.monoAudioOutputMuted).to(beNil()); - expect(testStruct.signalLevelStatus).to(beNil()); - expect(testStruct.primaryAudioSource).to(beNil()); - expect(testStruct.eCallEventActive).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDisplayCapabilitiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDisplayCapabilitiesSpec.m deleted file mode 100644 index 02cac7f54..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDisplayCapabilitiesSpec.m +++ /dev/null @@ -1,84 +0,0 @@ -// -// SDLDisplayCapabilitiesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLDisplayCapabilities.h" -#import "SDLDisplayType.h" -#import "SDLImageField.h" -#import "SDLMediaClockFormat.h" -#import "SDLNames.h" -#import "SDLScreenParams.h" -#import "SDLTextField.h" - - -QuickSpecBegin(SDLDisplayCapabilitiesSpec) - -SDLScreenParams* screenParams = [[SDLScreenParams alloc] init]; -SDLTextField* textField = [[SDLTextField alloc] init]; -SDLImageField* imageField = [[SDLImageField alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLDisplayCapabilities* testStruct = [[SDLDisplayCapabilities alloc] init]; - - testStruct.displayType = [SDLDisplayType GEN2_6_DMA]; - testStruct.textFields = [@[textField] mutableCopy]; - testStruct.imageFields = [@[imageField] mutableCopy]; - testStruct.mediaClockFormats = [@[[SDLMediaClockFormat CLOCKTEXT1], [SDLMediaClockFormat CLOCK3], [SDLMediaClockFormat CLOCKTEXT3]] copy]; - testStruct.graphicSupported = @YES; - testStruct.templatesAvailable = [@[@"String", @"String", @"String"] mutableCopy]; - testStruct.screenParams = screenParams; - testStruct.numCustomPresetsAvailable = @43; - - expect(testStruct.displayType).to(equal([SDLDisplayType GEN2_6_DMA])); - expect(testStruct.textFields).to(equal([@[textField] mutableCopy])); - expect(testStruct.imageFields).to(equal([@[imageField] mutableCopy])); - expect(testStruct.mediaClockFormats).to(equal([@[[SDLMediaClockFormat CLOCKTEXT1], [SDLMediaClockFormat CLOCK3], [SDLMediaClockFormat CLOCKTEXT3]] copy])); - expect(testStruct.graphicSupported).to(equal(@YES)); - expect(testStruct.templatesAvailable).to(equal([@[@"String", @"String", @"String"] mutableCopy])); - expect(testStruct.screenParams).to(equal(screenParams)); - expect(testStruct.numCustomPresetsAvailable).to(equal(@43)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_displayType:[SDLDisplayType GEN2_6_DMA], - NAMES_textFields:[@[textField] mutableCopy], - NAMES_imageFields:[@[imageField] mutableCopy], - NAMES_mediaClockFormats:[@[[SDLMediaClockFormat CLOCKTEXT1], [SDLMediaClockFormat CLOCK3], [SDLMediaClockFormat CLOCKTEXT3]] copy], - NAMES_graphicSupported:@YES, - NAMES_templatesAvailable:[@[@"String", @"String", @"String"] mutableCopy], - NAMES_screenParams:screenParams, - NAMES_numCustomPresetsAvailable:@43} mutableCopy]; - SDLDisplayCapabilities* testStruct = [[SDLDisplayCapabilities alloc] initWithDictionary:dict]; - - expect(testStruct.displayType).to(equal([SDLDisplayType GEN2_6_DMA])); - expect(testStruct.textFields).to(equal([@[textField] mutableCopy])); - expect(testStruct.imageFields).to(equal([@[imageField] mutableCopy])); - expect(testStruct.mediaClockFormats).to(equal([@[[SDLMediaClockFormat CLOCKTEXT1], [SDLMediaClockFormat CLOCK3], [SDLMediaClockFormat CLOCKTEXT3]] copy])); - expect(testStruct.graphicSupported).to(equal(@YES)); - expect(testStruct.templatesAvailable).to(equal([@[@"String", @"String", @"String"] mutableCopy])); - expect(testStruct.screenParams).to(equal(screenParams)); - expect(testStruct.numCustomPresetsAvailable).to(equal(@43)); - }); - - it(@"Should return nil if not set", ^ { - SDLDisplayCapabilities* testStruct = [[SDLDisplayCapabilities alloc] init]; - - expect(testStruct.displayType).to(beNil()); - expect(testStruct.textFields).to(beNil()); - expect(testStruct.imageFields).to(beNil()); - expect(testStruct.mediaClockFormats).to(beNil()); - expect(testStruct.graphicSupported).to(beNil()); - expect(testStruct.templatesAvailable).to(beNil()); - expect(testStruct.screenParams).to(beNil()); - expect(testStruct.numCustomPresetsAvailable).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLECallInfoSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLECallInfoSpec.m deleted file mode 100644 index 28e226187..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLECallInfoSpec.m +++ /dev/null @@ -1,52 +0,0 @@ -// -// SDLECallInfoSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLVehicleDataNotificationStatus.h" -#import "SDLECallConfirmationStatus.h" -#import "SDLECallInfo.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLECallInfoSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLECallInfo* testStruct = [[SDLECallInfo alloc] init]; - - testStruct.eCallNotificationStatus = [SDLVehicleDataNotificationStatus NORMAL]; - testStruct.auxECallNotificationStatus = [SDLVehicleDataNotificationStatus ACTIVE]; - testStruct.eCallConfirmationStatus = [SDLECallConfirmationStatus CALL_IN_PROGRESS]; - - expect(testStruct.eCallNotificationStatus).to(equal([SDLVehicleDataNotificationStatus NORMAL])); - expect(testStruct.auxECallNotificationStatus).to(equal([SDLVehicleDataNotificationStatus ACTIVE])); - expect(testStruct.eCallConfirmationStatus).to(equal([SDLECallConfirmationStatus CALL_IN_PROGRESS])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_eCallNotificationStatus:[SDLVehicleDataNotificationStatus NORMAL], - NAMES_auxECallNotificationStatus:[SDLVehicleDataNotificationStatus ACTIVE], - NAMES_eCallConfirmationStatus:[SDLECallConfirmationStatus CALL_IN_PROGRESS]} mutableCopy]; - SDLECallInfo* testStruct = [[SDLECallInfo alloc] initWithDictionary:dict]; - - expect(testStruct.eCallNotificationStatus).to(equal([SDLVehicleDataNotificationStatus NORMAL])); - expect(testStruct.auxECallNotificationStatus).to(equal([SDLVehicleDataNotificationStatus ACTIVE])); - expect(testStruct.eCallConfirmationStatus).to(equal([SDLECallConfirmationStatus CALL_IN_PROGRESS])); - }); - - it(@"Should return nil if not set", ^ { - SDLECallInfo* testStruct = [[SDLECallInfo alloc] init]; - - expect(testStruct.eCallNotificationStatus).to(beNil()); - expect(testStruct.auxECallNotificationStatus).to(beNil()); - expect(testStruct.eCallConfirmationStatus).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLEmergencyEventSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLEmergencyEventSpec.m deleted file mode 100644 index c67f45d45..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLEmergencyEventSpec.m +++ /dev/null @@ -1,63 +0,0 @@ -// -// SDLEmergencyEventSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLEmergencyEvent.h" -#import "SDLEmergencyEventType.h" -#import "SDLFuelCutoffStatus.h" -#import "SDLNames.h" -#import "SDLVehicleDataEventStatus.h" - - -QuickSpecBegin(SDLEmergencyEventSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLEmergencyEvent* testStruct = [[SDLEmergencyEvent alloc] init]; - - testStruct.emergencyEventType = [SDLEmergencyEventType FRONTAL]; - testStruct.fuelCutoffStatus = [SDLFuelCutoffStatus NORMAL_OPERATION]; - testStruct.rolloverEvent = [SDLVehicleDataEventStatus _YES]; - testStruct.maximumChangeVelocity = @33; - testStruct.multipleEvents = [SDLVehicleDataEventStatus _NO]; - - expect(testStruct.emergencyEventType).to(equal([SDLEmergencyEventType FRONTAL])); - expect(testStruct.fuelCutoffStatus).to(equal([SDLFuelCutoffStatus NORMAL_OPERATION])); - expect(testStruct.rolloverEvent).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.maximumChangeVelocity).to(equal(@33)); - expect(testStruct.multipleEvents).to(equal([SDLVehicleDataEventStatus _NO])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_emergencyEventType:[SDLEmergencyEventType FRONTAL], - NAMES_fuelCutoffStatus:[SDLFuelCutoffStatus NORMAL_OPERATION], - NAMES_rolloverEvent:[SDLVehicleDataEventStatus _YES], - NAMES_maximumChangeVelocity:@33, - NAMES_multipleEvents:[SDLVehicleDataEventStatus _NO]} mutableCopy]; - SDLEmergencyEvent* testStruct = [[SDLEmergencyEvent alloc] initWithDictionary:dict]; - - expect(testStruct.emergencyEventType).to(equal([SDLEmergencyEventType FRONTAL])); - expect(testStruct.fuelCutoffStatus).to(equal([SDLFuelCutoffStatus NORMAL_OPERATION])); - expect(testStruct.rolloverEvent).to(equal([SDLVehicleDataEventStatus _YES])); - expect(testStruct.maximumChangeVelocity).to(equal(@33)); - expect(testStruct.multipleEvents).to(equal([SDLVehicleDataEventStatus _NO])); - }); - - it(@"Should return nil if not set", ^ { - SDLEmergencyEvent* testStruct = [[SDLEmergencyEvent alloc] init]; - - expect(testStruct.emergencyEventType).to(beNil()); - expect(testStruct.fuelCutoffStatus).to(beNil()); - expect(testStruct.rolloverEvent).to(beNil()); - expect(testStruct.maximumChangeVelocity).to(beNil()); - expect(testStruct.multipleEvents).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLGPSDataSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLGPSDataSpec.m deleted file mode 100644 index 6d19dbf77..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLGPSDataSpec.m +++ /dev/null @@ -1,127 +0,0 @@ -// -// SDLGPSDataSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLCompassDirection.h" -#import "SDLDimension.h" -#import "SDLGPSData.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLGPSDataSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLGPSData* testStruct = [[SDLGPSData alloc] init]; - - testStruct.longitudeDegrees = @31.41592653589793; - testStruct.latitudeDegrees = @45; - testStruct.utcYear = @2015; - testStruct.utcMonth = @1; - testStruct.utcDay = @26; - testStruct.utcHours = @23; - testStruct.utcMinutes = @59; - testStruct.utcSeconds = @59; - testStruct.compassDirection = [SDLCompassDirection SOUTHEAST]; - testStruct.pdop = @3.4; - testStruct.hdop = @9.9; - testStruct.vdop = @0; - testStruct.actual = @NO; - testStruct.satellites = @12; - testStruct.dimension = [SDLDimension _3D]; - testStruct.altitude = @3000; - testStruct.heading = @96; - testStruct.speed = @64; - - expect(testStruct.longitudeDegrees).to(equal(@31.41592653589793)); - expect(testStruct.latitudeDegrees).to(equal(@45)); - expect(testStruct.utcYear).to(equal(@2015)); - expect(testStruct.utcMonth).to(equal(@1)); - expect(testStruct.utcDay).to(equal(@26)); - expect(testStruct.utcHours).to(equal(@23)); - expect(testStruct.utcMinutes).to(equal(@59)); - expect(testStruct.utcSeconds).to(equal(@59)); - expect(testStruct.compassDirection).to(equal([SDLCompassDirection SOUTHEAST])); - expect(testStruct.pdop).to(equal(@3.4)); - expect(testStruct.hdop).to(equal(@9.9)); - expect(testStruct.vdop).to(equal(@0)); - expect(testStruct.actual).to(equal(@NO)); - expect(testStruct.satellites).to(equal(@12)); - expect(testStruct.dimension).to(equal([SDLDimension _3D])); - expect(testStruct.altitude).to(equal(@3000)); - expect(testStruct.heading).to(equal(@96)); - expect(testStruct.speed).to(equal(@64)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_longitudeDegrees:@31.41592653589793, - NAMES_latitudeDegrees:@45, - NAMES_utcYear:@2015, - NAMES_utcMonth:@1, - NAMES_utcDay:@26, - NAMES_utcHours:@23, - NAMES_utcMinutes:@59, - NAMES_utcSeconds:@59, - NAMES_compassDirection:[SDLCompassDirection SOUTHEAST], - NAMES_pdop:@3.4, - NAMES_hdop:@9.9, - NAMES_vdop:@0, - NAMES_actual:@NO, - NAMES_satellites:@12, - NAMES_dimension:[SDLDimension _3D], - NAMES_altitude:@3000, - NAMES_heading:@96, - NAMES_speed:@64} mutableCopy]; - SDLGPSData* testStruct = [[SDLGPSData alloc] initWithDictionary:dict]; - - expect(testStruct.longitudeDegrees).to(equal(@31.41592653589793)); - expect(testStruct.latitudeDegrees).to(equal(@45)); - expect(testStruct.utcYear).to(equal(@2015)); - expect(testStruct.utcMonth).to(equal(@1)); - expect(testStruct.utcDay).to(equal(@26)); - expect(testStruct.utcHours).to(equal(@23)); - expect(testStruct.utcMinutes).to(equal(@59)); - expect(testStruct.utcSeconds).to(equal(@59)); - expect(testStruct.compassDirection).to(equal([SDLCompassDirection SOUTHEAST])); - expect(testStruct.pdop).to(equal(@3.4)); - expect(testStruct.hdop).to(equal(@9.9)); - expect(testStruct.vdop).to(equal(@0)); - expect(testStruct.actual).to(equal(@NO)); - expect(testStruct.satellites).to(equal(@12)); - expect(testStruct.dimension).to(equal([SDLDimension _3D])); - expect(testStruct.altitude).to(equal(@3000)); - expect(testStruct.heading).to(equal(@96)); - expect(testStruct.speed).to(equal(@64)); - }); - - it(@"Should return nil if not set", ^ { - SDLGPSData* testStruct = [[SDLGPSData alloc] init]; - - expect(testStruct.longitudeDegrees).to(beNil()); - expect(testStruct.latitudeDegrees).to(beNil()); - expect(testStruct.utcYear).to(beNil()); - expect(testStruct.utcMonth).to(beNil()); - expect(testStruct.utcDay).to(beNil()); - expect(testStruct.utcHours).to(beNil()); - expect(testStruct.utcMinutes).to(beNil()); - expect(testStruct.utcSeconds).to(beNil()); - expect(testStruct.compassDirection).to(beNil()); - expect(testStruct.pdop).to(beNil()); - expect(testStruct.hdop).to(beNil()); - expect(testStruct.vdop).to(beNil()); - expect(testStruct.actual).to(beNil()); - expect(testStruct.satellites).to(beNil()); - expect(testStruct.dimension).to(beNil()); - expect(testStruct.altitude).to(beNil()); - expect(testStruct.heading).to(beNil()); - expect(testStruct.speed).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m deleted file mode 100644 index e9935bedf..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m +++ /dev/null @@ -1,69 +0,0 @@ -// -// SDLHMICapabilitiesSpec.m -// SmartDeviceLink-iOS -// - -#import -#import - -#import "SDLHMICapabilities.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLHMICapabilitiesSpec) - -describe(@"SDLHMICapabilities struct", ^{ - __block SDLHMICapabilities *testStruct = nil; - __block NSNumber *somePhoneCallState = @NO; - __block NSNumber *someNavigationState = @YES; - - context(@"When initialized with properties", ^{ - beforeEach(^{ - testStruct = [[SDLHMICapabilities alloc] init]; - testStruct.phoneCall = somePhoneCallState; - testStruct.navigation = someNavigationState; - }); - - it(@"should properly set phone call", ^{ - expect(testStruct.phoneCall).to(equal(somePhoneCallState)); - }); - - it(@"should properly set navigation", ^{ - expect(testStruct.navigation).to(equal(someNavigationState)); - }); - }); - - context(@"When initialized with a dictionary", ^{ - beforeEach(^{ - NSDictionary *structInitDict = @{ - NAMES_navigation: someNavigationState, - NAMES_phoneCall: somePhoneCallState - }; - testStruct = [[SDLHMICapabilities alloc] initWithDictionary:[structInitDict mutableCopy]]; - }); - - it(@"should properly set phone call", ^{ - expect(testStruct.phoneCall).to(equal(somePhoneCallState)); - }); - - it(@"should properly set navigation", ^{ - expect(testStruct.navigation).to(equal(someNavigationState)); - }); - }); - - context(@"When not initialized", ^{ - beforeEach(^{ - testStruct = nil; - }); - - it(@"phoneCall should be nil", ^{ - expect(testStruct.phoneCall).to(beNil()); - }); - - it(@"navigation should be nil", ^{ - expect(testStruct.navigation).to(beNil()); - }); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMIPermissionsSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMIPermissionsSpec.m deleted file mode 100644 index 63df146cb..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMIPermissionsSpec.m +++ /dev/null @@ -1,45 +0,0 @@ -// -// SDLHMIPermissionsSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLHMIPermissions.h" -#import "SDLHMILevel.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLHMIPermissionsSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLHMIPermissions* testStruct = [[SDLHMIPermissions alloc] init]; - - testStruct.allowed = [@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy]; - testStruct.userDisallowed = [@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy]; - - expect(testStruct.allowed).to(equal([@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy])); - expect(testStruct.userDisallowed).to(equal([@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_allowed:[@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy], - NAMES_userDisallowed:[@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy]} mutableCopy]; - SDLHMIPermissions* testStruct = [[SDLHMIPermissions alloc] initWithDictionary:dict]; - - expect(testStruct.allowed).to(equal([@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy])); - expect(testStruct.userDisallowed).to(equal([@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy])); - }); - - it(@"Should return nil if not set", ^ { - SDLHMIPermissions* testStruct = [[SDLHMIPermissions alloc] init]; - - expect(testStruct.allowed).to(beNil()); - expect(testStruct.userDisallowed).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHeadLampStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHeadLampStatusSpec.m deleted file mode 100644 index b418b962b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHeadLampStatusSpec.m +++ /dev/null @@ -1,51 +0,0 @@ -// -// SDLHeadLampStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLAmbientLightStatus.h" -#import "SDLHeadLampStatus.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLHeadLampStatusSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLHeadLampStatus* testStruct = [[SDLHeadLampStatus alloc] init]; - - testStruct.lowBeamsOn = @YES; - testStruct.highBeamsOn = @NO; - testStruct.ambientLightSensorStatus = [SDLAmbientLightStatus TWILIGHT_3]; - - expect(testStruct.lowBeamsOn).to(equal(@YES)); - expect(testStruct.highBeamsOn).to(equal(@NO)); - expect(testStruct.ambientLightSensorStatus).to(equal([SDLAmbientLightStatus TWILIGHT_3])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_lowBeamsOn:@YES, - NAMES_highBeamsOn:@NO, - NAMES_ambientLightSensorStatus:[SDLAmbientLightStatus TWILIGHT_3]} mutableCopy]; - SDLHeadLampStatus* testStruct = [[SDLHeadLampStatus alloc] initWithDictionary:dict]; - - expect(testStruct.lowBeamsOn).to(equal(@YES)); - expect(testStruct.highBeamsOn).to(equal(@NO)); - expect(testStruct.ambientLightSensorStatus).to(equal([SDLAmbientLightStatus TWILIGHT_3])); - }); - - it(@"Should return nil if not set", ^ { - SDLHeadLampStatus* testStruct = [[SDLHeadLampStatus alloc] init]; - - expect(testStruct.lowBeamsOn).to(beNil()); - expect(testStruct.highBeamsOn).to(beNil()); - expect(testStruct.ambientLightSensorStatus).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageFieldSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageFieldSpec.m deleted file mode 100644 index 2bcef11f1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageFieldSpec.m +++ /dev/null @@ -1,55 +0,0 @@ -// -// SDLImageFieldSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLFileType.h" -#import "SDLImageField.h" -#import "SDLImageFieldName.h" -#import "SDLImageResolution.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLImageFieldSpec) - -SDLImageResolution* resolution = [[SDLImageResolution alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLImageField* testStruct = [[SDLImageField alloc] init]; - - testStruct.name = [SDLImageFieldName turnIcon]; - testStruct.imageTypeSupported = [@[[SDLFileType GRAPHIC_PNG], [SDLFileType GRAPHIC_JPEG]] copy]; - testStruct.imageResolution = resolution; - - expect(testStruct.name).to(equal([SDLImageFieldName turnIcon])); - expect(testStruct.imageTypeSupported).to(equal([@[[SDLFileType GRAPHIC_PNG], [SDLFileType GRAPHIC_JPEG]] copy])); - expect(testStruct.imageResolution).to(equal(resolution)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_name:[SDLImageFieldName turnIcon], - NAMES_imageTypeSupported:[@[[SDLFileType GRAPHIC_PNG], [SDLFileType GRAPHIC_JPEG]] copy], - NAMES_imageResolution:resolution} mutableCopy]; - SDLImageField* testStruct = [[SDLImageField alloc] initWithDictionary:dict]; - - expect(testStruct.name).to(equal([SDLImageFieldName turnIcon])); - expect(testStruct.imageTypeSupported).to(equal([@[[SDLFileType GRAPHIC_PNG], [SDLFileType GRAPHIC_JPEG]] copy])); - expect(testStruct.imageResolution).to(equal(resolution)); - }); - - it(@"Should return nil if not set", ^ { - SDLImageField* testStruct = [[SDLImageField alloc] init]; - - expect(testStruct.name).to(beNil()); - expect(testStruct.imageTypeSupported).to(beNil()); - expect(testStruct.imageResolution).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageSpec.m deleted file mode 100644 index dba2d630e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageSpec.m +++ /dev/null @@ -1,46 +0,0 @@ -// -// SDLImageSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLImage.h" -#import "SDLImageType.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLImageSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLImage* testStruct = [[SDLImage alloc] init]; - - testStruct.value = @"value"; - testStruct.imageType = [SDLImageType STATIC]; - - expect(testStruct.value).to(equal(@"value")); - expect(testStruct.imageType).to(equal([SDLImageType STATIC])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_value:@"value", - NAMES_imageType:[SDLImageType STATIC]} mutableCopy]; - SDLImage* testStruct = [[SDLImage alloc] initWithDictionary:dict]; - - expect(testStruct.value).to(equal(@"value")); - expect(testStruct.imageType).to(equal([SDLImageType STATIC])); - }); - - it(@"Should return nil if not set", ^ { - SDLImage* testStruct = [[SDLImage alloc] init]; - - expect(testStruct.value).to(beNil()); - expect(testStruct.imageType).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLKeyboardPropertiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLKeyboardPropertiesSpec.m deleted file mode 100644 index 3e6793b62..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLKeyboardPropertiesSpec.m +++ /dev/null @@ -1,63 +0,0 @@ -// -// SDLKeyboardPropertiesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLKeyboardLayout.h" -#import "SDLKeypressMode.h" -#import "SDLKeyboardProperties.h" -#import "SDLLanguage.h" -#import "SDLNames.h" - - -QuickSpecBegin(SDLKeyboardPropertiesSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLKeyboardProperties* testStruct = [[SDLKeyboardProperties alloc] init]; - - testStruct.language = [SDLLanguage DA_DK]; - testStruct.keyboardLayout = [SDLKeyboardLayout QWERTZ]; - testStruct.keypressMode = [SDLKeypressMode RESEND_CURRENT_ENTRY]; - testStruct.limitedCharacterList = [@[@"s", @"r", @"f", @"q"] mutableCopy]; - testStruct.autoCompleteText = @"Auto Carrot"; - - expect(testStruct.language).to(equal([SDLLanguage DA_DK])); - expect(testStruct.keyboardLayout).to(equal([SDLKeyboardLayout QWERTZ])); - expect(testStruct.keypressMode).to(equal([SDLKeypressMode RESEND_CURRENT_ENTRY])); - expect(testStruct.limitedCharacterList).to(equal([@[@"s", @"r", @"f", @"q"] mutableCopy])); - expect(testStruct.autoCompleteText).to(equal(@"Auto Carrot")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_language:[SDLLanguage DA_DK], - NAMES_keyboardLayout:[SDLKeyboardLayout QWERTZ], - NAMES_keypressMode:[SDLKeypressMode RESEND_CURRENT_ENTRY], - NAMES_limitedCharacterList:[@[@"s", @"r", @"f", @"q"] mutableCopy], - NAMES_autoCompleteText:@"Auto Carrot"} mutableCopy]; - SDLKeyboardProperties* testStruct = [[SDLKeyboardProperties alloc] initWithDictionary:dict]; - - expect(testStruct.language).to(equal([SDLLanguage DA_DK])); - expect(testStruct.keyboardLayout).to(equal([SDLKeyboardLayout QWERTZ])); - expect(testStruct.keypressMode).to(equal([SDLKeypressMode RESEND_CURRENT_ENTRY])); - expect(testStruct.limitedCharacterList).to(equal([@[@"s", @"r", @"f", @"q"] mutableCopy])); - expect(testStruct.autoCompleteText).to(equal(@"Auto Carrot")); - }); - - it(@"Should return nil if not set", ^ { - SDLKeyboardProperties* testStruct = [[SDLKeyboardProperties alloc] init]; - - expect(testStruct.language).to(beNil()); - expect(testStruct.keyboardLayout).to(beNil()); - expect(testStruct.keypressMode).to(beNil()); - expect(testStruct.limitedCharacterList).to(beNil()); - expect(testStruct.autoCompleteText).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMenuParamsSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMenuParamsSpec.m deleted file mode 100644 index 3d6bc6462..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMenuParamsSpec.m +++ /dev/null @@ -1,49 +0,0 @@ -// -// SDLMenuParamsSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLMenuParams.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLMenuParamsSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLMenuParams* testStruct = [[SDLMenuParams alloc] init]; - - testStruct.parentID = @504320489; - testStruct.position = @256; - testStruct.menuName = @"Menu"; - - expect(testStruct.parentID).to(equal(@504320489)); - expect(testStruct.position).to(equal(@256)); - expect(testStruct.menuName).to(equal(@"Menu")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_parentID:@504320489, - NAMES_position:@256, - NAMES_menuName:@"Menu"} mutableCopy]; - SDLMenuParams* testStruct = [[SDLMenuParams alloc] initWithDictionary:dict]; - - expect(testStruct.parentID).to(equal(@504320489)); - expect(testStruct.position).to(equal(@256)); - expect(testStruct.menuName).to(equal(@"Menu")); - }); - - it(@"Should return nil if not set", ^ { - SDLMenuParams* testStruct = [[SDLMenuParams alloc] init]; - - expect(testStruct.parentID).to(beNil()); - expect(testStruct.position).to(beNil()); - expect(testStruct.menuName).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMyKeySpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMyKeySpec.m deleted file mode 100644 index c442e2cfc..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMyKeySpec.m +++ /dev/null @@ -1,41 +0,0 @@ -// -// SDLMyKeySpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLMyKey.h" -#import "SDLNames.h" -#import "SDLVehicleDataStatus.h" - - -QuickSpecBegin(SDLMyKeySpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLMyKey* testStruct = [[SDLMyKey alloc] init]; - - testStruct.e911Override = [SDLVehicleDataStatus OFF]; - - expect(testStruct.e911Override).to(equal([SDLVehicleDataStatus OFF])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_e911Override:[SDLVehicleDataStatus ON]} mutableCopy]; - SDLMyKey* testStruct = [[SDLMyKey alloc] initWithDictionary:dict]; - - expect(testStruct.e911Override).to(equal([SDLVehicleDataStatus ON])); - }); - - it(@"Should return nil if not set", ^ { - SDLMyKey* testStruct = [[SDLMyKey alloc] init]; - - expect(testStruct.e911Override).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLParameterPermissionsSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLParameterPermissionsSpec.m deleted file mode 100644 index 08e375e9f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLParameterPermissionsSpec.m +++ /dev/null @@ -1,45 +0,0 @@ -// -// SDLParameterPermissionsSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLParameterPermissions.h" -#import "SDLHMILevel.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLParameterPermissionsSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLParameterPermissions* testStruct = [[SDLParameterPermissions alloc] init]; - - testStruct.allowed = [@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy]; - testStruct.userDisallowed = [@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy]; - - expect(testStruct.allowed).to(equal([@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy])); - expect(testStruct.userDisallowed).to(equal([@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_allowed:[@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy], - NAMES_userDisallowed:[@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy]} mutableCopy]; - SDLParameterPermissions* testStruct = [[SDLParameterPermissions alloc] initWithDictionary:dict]; - - expect(testStruct.allowed).to(equal([@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy])); - expect(testStruct.userDisallowed).to(equal([@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy])); - }); - - it(@"Should return nil if not set", ^ { - SDLParameterPermissions* testStruct = [[SDLParameterPermissions alloc] init]; - - expect(testStruct.allowed).to(beNil()); - expect(testStruct.userDisallowed).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPermissionItemSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPermissionItemSpec.m deleted file mode 100644 index 0e5b367d1..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPermissionItemSpec.m +++ /dev/null @@ -1,54 +0,0 @@ -// -// SDLPermissionItemSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLHMIPermissions.h" -#import "SDLParameterPermissions.h" -#import "SDLPermissionItem.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLPermissionItemSpec) - -SDLHMIPermissions* hmiPermissions = [[SDLHMIPermissions alloc] init]; -SDLParameterPermissions* parameterPermissions = [[SDLParameterPermissions alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLPermissionItem* testStruct = [[SDLPermissionItem alloc] init]; - - testStruct.rpcName = @"RPCNameThing"; - testStruct.hmiPermissions = hmiPermissions; - testStruct.parameterPermissions = parameterPermissions; - - expect(testStruct.rpcName).to(equal(@"RPCNameThing")); - expect(testStruct.hmiPermissions).to(equal(hmiPermissions)); - expect(testStruct.parameterPermissions).to(equal(parameterPermissions)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_rpcName:@"RPCNameThing", - NAMES_hmiPermissions:hmiPermissions, - NAMES_parameterPermissions:parameterPermissions} mutableCopy]; - SDLPermissionItem* testStruct = [[SDLPermissionItem alloc] initWithDictionary:dict]; - - expect(testStruct.rpcName).to(equal(@"RPCNameThing")); - expect(testStruct.hmiPermissions).to(equal(hmiPermissions)); - expect(testStruct.parameterPermissions).to(equal(parameterPermissions)); - }); - - it(@"Should return nil if not set", ^ { - SDLPermissionItem* testStruct = [[SDLPermissionItem alloc] init]; - - expect(testStruct.rpcName).to(beNil()); - expect(testStruct.hmiPermissions).to(beNil()); - expect(testStruct.parameterPermissions).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPresetBankCapabilitiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPresetBankCapabilitiesSpec.m deleted file mode 100644 index f473c60b6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPresetBankCapabilitiesSpec.m +++ /dev/null @@ -1,39 +0,0 @@ -// -// SDLPresetBankCapabilitiesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLPresetBankCapabilities.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLPresetBankCapabilitiesSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLPresetBankCapabilities* testStruct = [[SDLPresetBankCapabilities alloc] init]; - - testStruct.onScreenPresetsAvailable = @NO; - - expect(testStruct.onScreenPresetsAvailable).to(equal(@NO)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_onScreenPresetsAvailable:@YES} mutableCopy]; - SDLPresetBankCapabilities* testStruct = [[SDLPresetBankCapabilities alloc] initWithDictionary:dict]; - - expect(testStruct.onScreenPresetsAvailable).to(equal(@YES)); - }); - - it(@"Should return nil if not set", ^ { - SDLPresetBankCapabilities* testStruct = [[SDLPresetBankCapabilities alloc] init]; - - expect(testStruct.onScreenPresetsAvailable).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLScreenParamsSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLScreenParamsSpec.m deleted file mode 100644 index 0438b8a21..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLScreenParamsSpec.m +++ /dev/null @@ -1,50 +0,0 @@ -// -// SDLScreenParamsSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLImageResolution.h" -#import "SDLNames.h" -#import "SDLScreenParams.h" -#import "SDLTouchEventCapabilities.h" - - -QuickSpecBegin(SDLScreenParamsSpec) - -SDLImageResolution* resolution = [[SDLImageResolution alloc] init]; -SDLTouchEventCapabilities* capabilities = [[SDLTouchEventCapabilities alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLScreenParams* testStruct = [[SDLScreenParams alloc] init]; - - testStruct.resolution = resolution; - testStruct.touchEventAvailable = capabilities; - - expect(testStruct.resolution).to(equal(resolution)); - expect(testStruct.touchEventAvailable).to(equal(capabilities)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_resolution:resolution, - NAMES_touchEventAvailable:capabilities} mutableCopy]; - SDLScreenParams* testStruct = [[SDLScreenParams alloc] initWithDictionary:dict]; - - expect(testStruct.resolution).to(equal(resolution)); - expect(testStruct.touchEventAvailable).to(equal(capabilities)); - }); - - it(@"Should return nil if not set", ^ { - SDLScreenParams* testStruct = [[SDLScreenParams alloc] init]; - - expect(testStruct.resolution).to(beNil()); - expect(testStruct.touchEventAvailable).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSingleTireStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSingleTireStatusSpec.m deleted file mode 100644 index 6482a4f75..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSingleTireStatusSpec.m +++ /dev/null @@ -1,40 +0,0 @@ -// -// SDLSingleTireStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSingleTireStatus.h" -#import "SDLComponentVolumeStatus.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSingleTireStatusSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSingleTireStatus* testStruct = [[SDLSingleTireStatus alloc] init]; - - testStruct.status = [SDLComponentVolumeStatus NORMAL]; - - expect(testStruct.status).to(equal([SDLComponentVolumeStatus NORMAL])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_status:[SDLComponentVolumeStatus LOW]} mutableCopy]; - SDLSingleTireStatus* testStruct = [[SDLSingleTireStatus alloc] initWithDictionary:dict]; - - expect(testStruct.status).to(equal([SDLComponentVolumeStatus LOW])); - }); - - it(@"Should return nil if not set", ^ { - SDLSingleTireStatus* testStruct = [[SDLSingleTireStatus alloc] init]; - - expect(testStruct.status).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonCapabilitiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonCapabilitiesSpec.m deleted file mode 100644 index 0cb200414..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonCapabilitiesSpec.m +++ /dev/null @@ -1,54 +0,0 @@ -// -// SDLSoftButtonCapabilitiesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSoftButtonCapabilities.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSoftButtonCapabilitiesSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSoftButtonCapabilities* testStruct = [[SDLSoftButtonCapabilities alloc] init]; - - testStruct.shortPressAvailable = @NO; - testStruct.longPressAvailable = @YES; - testStruct.upDownAvailable = @NO; - testStruct.imageSupported = @NO; - - expect(testStruct.shortPressAvailable).to(equal(@NO)); - expect(testStruct.longPressAvailable).to(equal(@YES)); - expect(testStruct.upDownAvailable).to(equal(@NO)); - expect(testStruct.imageSupported).to(equal(@NO)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_shortPressAvailable:@NO, - NAMES_longPressAvailable:@YES, - NAMES_upDownAvailable:@NO, - NAMES_imageSupported:@NO} mutableCopy]; - SDLSoftButtonCapabilities* testStruct = [[SDLSoftButtonCapabilities alloc] initWithDictionary:dict]; - - expect(testStruct.shortPressAvailable).to(equal(@NO)); - expect(testStruct.longPressAvailable).to(equal(@YES)); - expect(testStruct.upDownAvailable).to(equal(@NO)); - expect(testStruct.imageSupported).to(equal(@NO)); - }); - - it(@"Should return nil if not set", ^ { - SDLSoftButtonCapabilities* testStruct = [[SDLSoftButtonCapabilities alloc] init]; - - expect(testStruct.shortPressAvailable).to(beNil()); - expect(testStruct.longPressAvailable).to(beNil()); - expect(testStruct.upDownAvailable).to(beNil()); - expect(testStruct.imageSupported).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonSpec.m deleted file mode 100644 index c9e766a65..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonSpec.m +++ /dev/null @@ -1,70 +0,0 @@ -// -// SDLSoftButtonSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLImage.h" -#import "SDLNames.h" -#import "SDLSoftButton.h" -#import "SDLSoftButtonType.h" -#import "SDLSystemAction.h" - - -QuickSpecBegin(SDLSoftButtonSpec) - -SDLImage* image = [[SDLImage alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSoftButton* testStruct = [[SDLSoftButton alloc] init]; - - testStruct.type = [SDLSoftButtonType IMAGE]; - testStruct.text = @"Button"; - testStruct.image = image; - testStruct.isHighlighted = @YES; - testStruct.softButtonID = @5423; - testStruct.systemAction = [SDLSystemAction KEEP_CONTEXT]; - - expect(testStruct.type).to(equal([SDLSoftButtonType IMAGE])); - expect(testStruct.text).to(equal(@"Button")); - expect(testStruct.image).to(equal(image)); - expect(testStruct.isHighlighted).to(equal(@YES)); - expect(testStruct.softButtonID).to(equal(@5423)); - expect(testStruct.systemAction).to(equal([SDLSystemAction KEEP_CONTEXT])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_type:[SDLSoftButtonType IMAGE], - NAMES_text:@"Button", - NAMES_image:image, - NAMES_isHighlighted:@YES, - NAMES_softButtonID:@5423, - NAMES_systemAction:[SDLSystemAction KEEP_CONTEXT]} mutableCopy]; - SDLSoftButton* testStruct = [[SDLSoftButton alloc] initWithDictionary:dict]; - - expect(testStruct.type).to(equal([SDLSoftButtonType IMAGE])); - expect(testStruct.text).to(equal(@"Button")); - expect(testStruct.image).to(equal(image)); - expect(testStruct.isHighlighted).to(equal(@YES)); - expect(testStruct.softButtonID).to(equal(@5423)); - expect(testStruct.systemAction).to(equal([SDLSystemAction KEEP_CONTEXT])); - }); - - it(@"Should return nil if not set", ^ { - SDLSoftButton* testStruct = [[SDLSoftButton alloc] init]; - - expect(testStruct.type).to(beNil()); - expect(testStruct.text).to(beNil()); - expect(testStruct.image).to(beNil()); - expect(testStruct.isHighlighted).to(beNil()); - expect(testStruct.softButtonID).to(beNil()); - expect(testStruct.systemAction).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLStartTimeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLStartTimeSpec.m deleted file mode 100644 index 476fc6500..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLStartTimeSpec.m +++ /dev/null @@ -1,49 +0,0 @@ -// -// SDLStartTimeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLStartTime.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLStartTimeSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLStartTime* testStruct = [[SDLStartTime alloc] init]; - - testStruct.hours = @22; - testStruct.minutes = @39; - testStruct.seconds = @11; - - expect(testStruct.hours).to(equal(@22)); - expect(testStruct.minutes).to(equal(@39)); - expect(testStruct.seconds).to(equal(@11)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_hours:@22, - NAMES_minutes:@39, - NAMES_seconds:@11} mutableCopy]; - SDLStartTime* testStruct = [[SDLStartTime alloc] initWithDictionary:dict]; - - expect(testStruct.hours).to(equal(@22)); - expect(testStruct.minutes).to(equal(@39)); - expect(testStruct.seconds).to(equal(@11)); - }); - - it(@"Should return nil if not set", ^ { - SDLStartTime* testStruct = [[SDLStartTime alloc] init]; - - expect(testStruct.hours).to(beNil()); - expect(testStruct.minutes).to(beNil()); - expect(testStruct.seconds).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSyncMsgVersionSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSyncMsgVersionSpec.m deleted file mode 100644 index 56c74cd18..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSyncMsgVersionSpec.m +++ /dev/null @@ -1,44 +0,0 @@ -// -// SDLSyncMsgVersionSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLSyncMsgVersion.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLSyncMsgVersionSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLSyncMsgVersion* testStruct = [[SDLSyncMsgVersion alloc] init]; - - testStruct.majorVersion = @4; - testStruct.minorVersion = @532; - - expect(testStruct.majorVersion).to(equal(@4)); - expect(testStruct.minorVersion).to(equal(@532)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_majorVersion:@4, - NAMES_minorVersion:@532} mutableCopy]; - SDLSyncMsgVersion* testStruct = [[SDLSyncMsgVersion alloc] initWithDictionary:dict]; - - expect(testStruct.majorVersion).to(equal(@4)); - expect(testStruct.minorVersion).to(equal(@532)); - }); - - it(@"Should return nil if not set", ^ { - SDLSyncMsgVersion* testStruct = [[SDLSyncMsgVersion alloc] init]; - - expect(testStruct.majorVersion).to(beNil()); - expect(testStruct.minorVersion).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTTSChunkSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTTSChunkSpec.m deleted file mode 100644 index 78ca915c9..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTTSChunkSpec.m +++ /dev/null @@ -1,46 +0,0 @@ -// -// SDLTTSChunkSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLNames.h" -#import "SDLSpeechCapabilities.h" -#import "SDLTTSChunk.h" - - -QuickSpecBegin(SDLTTSChunkSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLTTSChunk* testStruct = [[SDLTTSChunk alloc] init]; - - testStruct.text = @"TEXT"; - testStruct.type = [SDLSpeechCapabilities PRE_RECORDED]; - - expect(testStruct.text).to(equal(@"TEXT")); - expect(testStruct.type).to(equal([SDLSpeechCapabilities PRE_RECORDED])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_text:@"TEXT", - NAMES_type:[SDLSpeechCapabilities PRE_RECORDED]} mutableCopy]; - SDLTTSChunk* testStruct = [[SDLTTSChunk alloc] initWithDictionary:dict]; - - expect(testStruct.text).to(equal(@"TEXT")); - expect(testStruct.type).to(equal([SDLSpeechCapabilities PRE_RECORDED])); - }); - - it(@"Should return nil if not set", ^ { - SDLTTSChunk* testStruct = [[SDLTTSChunk alloc] init]; - - expect(testStruct.text).to(beNil()); - expect(testStruct.type).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTextFieldSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTextFieldSpec.m deleted file mode 100644 index a07331a59..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTextFieldSpec.m +++ /dev/null @@ -1,57 +0,0 @@ -// -// SDLTextFieldSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLCharacterSet.h" -#import "SDLNames.h" -#import "SDLTextField.h" -#import "SDLTextFieldName.h" - - -QuickSpecBegin(SDLTextFieldSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLTextField* testStruct = [[SDLTextField alloc] init]; - - testStruct.name = [SDLTextFieldName tertiaryText]; - testStruct.characterSet = [SDLCharacterSet TYPE5SET]; - testStruct.width = @111; - testStruct.rows = @4; - - expect(testStruct.name).to(equal([SDLTextFieldName tertiaryText])); - expect(testStruct.characterSet).to(equal([SDLCharacterSet TYPE5SET])); - expect(testStruct.width).to(equal(@111)); - expect(testStruct.rows).to(equal(@4)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_name:[SDLTextFieldName tertiaryText], - NAMES_characterSet:[SDLCharacterSet TYPE5SET], - NAMES_width:@111, - NAMES_rows:@4} mutableCopy]; - SDLTextField* testStruct = [[SDLTextField alloc] initWithDictionary:dict]; - - expect(testStruct.name).to(equal([SDLTextFieldName tertiaryText])); - expect(testStruct.characterSet).to(equal([SDLCharacterSet TYPE5SET])); - expect(testStruct.width).to(equal(@111)); - expect(testStruct.rows).to(equal(@4)); - }); - - it(@"Should return nil if not set", ^ { - SDLTextField* testStruct = [[SDLTextField alloc] init]; - - expect(testStruct.name).to(beNil()); - expect(testStruct.characterSet).to(beNil()); - expect(testStruct.width).to(beNil()); - expect(testStruct.rows).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTireStatusSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTireStatusSpec.m deleted file mode 100644 index dcad4943d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTireStatusSpec.m +++ /dev/null @@ -1,78 +0,0 @@ -// -// SDLTireStatusSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLTireStatus.h" -#import "SDLSingleTireStatus.h" -#import "SDLWarningLightStatus.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLTireStatusSpec) - -SDLSingleTireStatus* tire1 = [[SDLSingleTireStatus alloc] init]; -SDLSingleTireStatus* tire2 = [[SDLSingleTireStatus alloc] init]; -SDLSingleTireStatus* tire3 = [[SDLSingleTireStatus alloc] init]; -SDLSingleTireStatus* tire4 = [[SDLSingleTireStatus alloc] init]; -SDLSingleTireStatus* tire5 = [[SDLSingleTireStatus alloc] init]; -SDLSingleTireStatus* tire6 = [[SDLSingleTireStatus alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLTireStatus* testStruct = [[SDLTireStatus alloc] init]; - - testStruct.pressureTelltale = [SDLWarningLightStatus OFF]; - testStruct.leftFront = tire1; - testStruct.rightFront = tire2; - testStruct.leftRear = tire3; - testStruct.rightRear = tire4; - testStruct.innerLeftRear = tire5; - testStruct.innerRightRear = tire6; - - expect(testStruct.pressureTelltale).to(equal([SDLWarningLightStatus OFF])); - expect(testStruct.leftFront).to(equal(tire1)); - expect(testStruct.rightFront).to(equal(tire2)); - expect(testStruct.leftRear).to(equal(tire3)); - expect(testStruct.rightRear).to(equal(tire4)); - expect(testStruct.innerLeftRear).to(equal(tire5)); - expect(testStruct.innerRightRear).to(equal(tire6)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_pressureTelltale:[SDLWarningLightStatus OFF], - NAMES_leftFront:tire1, - NAMES_rightFront:tire2, - NAMES_leftRear:tire3, - NAMES_rightRear:tire4, - NAMES_innerLeftRear:tire5, - NAMES_innerRightRear:tire6} mutableCopy]; - SDLTireStatus* testStruct = [[SDLTireStatus alloc] initWithDictionary:dict]; - - expect(testStruct.pressureTelltale).to(equal([SDLWarningLightStatus OFF])); - expect(testStruct.leftFront).to(equal(tire1)); - expect(testStruct.rightFront).to(equal(tire2)); - expect(testStruct.leftRear).to(equal(tire3)); - expect(testStruct.rightRear).to(equal(tire4)); - expect(testStruct.innerLeftRear).to(equal(tire5)); - expect(testStruct.innerRightRear).to(equal(tire6)); - }); - - it(@"Should return nil if not set", ^ { - SDLTireStatus* testStruct = [[SDLTireStatus alloc] init]; - - expect(testStruct.pressureTelltale).to(beNil()); - expect(testStruct.leftFront).to(beNil()); - expect(testStruct.rightFront).to(beNil()); - expect(testStruct.leftRear).to(beNil()); - expect(testStruct.rightRear).to(beNil()); - expect(testStruct.innerLeftRear).to(beNil()); - expect(testStruct.innerRightRear).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchCoordSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchCoordSpec.m deleted file mode 100644 index eedca3a9b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchCoordSpec.m +++ /dev/null @@ -1,44 +0,0 @@ -// -// SDLTouchCoordSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLTouchCoord.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLTouchCoordSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLTouchCoord* testStruct = [[SDLTouchCoord alloc] init]; - - testStruct.x = @67; - testStruct.y = @362; - - expect(testStruct.x).to(equal(@67)); - expect(testStruct.y).to(equal(@362)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_x:@67, - NAMES_y:@362} mutableCopy]; - SDLTouchCoord* testStruct = [[SDLTouchCoord alloc] initWithDictionary:dict]; - - expect(testStruct.x).to(equal(@67)); - expect(testStruct.y).to(equal(@362)); - }); - - it(@"Should return nil if not set", ^ { - SDLTouchCoord* testStruct = [[SDLTouchCoord alloc] init]; - - expect(testStruct.x).to(beNil()); - expect(testStruct.y).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventCapabilitiesSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventCapabilitiesSpec.m deleted file mode 100644 index a8b8c73e0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventCapabilitiesSpec.m +++ /dev/null @@ -1,49 +0,0 @@ -// -// SDLTouchEventCapabilitiesSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLTouchEventCapabilities.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLTouchEventCapabilitiesSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLTouchEventCapabilities* testStruct = [[SDLTouchEventCapabilities alloc] init]; - - testStruct.pressAvailable = @YES; - testStruct.multiTouchAvailable = @NO; - testStruct.doublePressAvailable = @YES; - - expect(testStruct.pressAvailable).to(equal(@YES)); - expect(testStruct.multiTouchAvailable).to(equal(@NO)); - expect(testStruct.doublePressAvailable).to(equal(@YES)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_pressAvailable:@YES, - NAMES_multiTouchAvailable:@NO, - NAMES_doublePressAvailable:@NO} mutableCopy]; - SDLTouchEventCapabilities* testStruct = [[SDLTouchEventCapabilities alloc] initWithDictionary:dict]; - - expect(testStruct.pressAvailable).to(equal(@YES)); - expect(testStruct.multiTouchAvailable).to(equal(@NO)); - expect(testStruct.doublePressAvailable).to(equal(@NO)); - }); - - it(@"Should return nil if not set", ^ { - SDLTouchEventCapabilities* testStruct = [[SDLTouchEventCapabilities alloc] init]; - - expect(testStruct.pressAvailable).to(beNil()); - expect(testStruct.multiTouchAvailable).to(beNil()); - expect(testStruct.doublePressAvailable).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventSpec.m deleted file mode 100644 index c95cfb525..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventSpec.m +++ /dev/null @@ -1,52 +0,0 @@ -// -// SDLTouchEventSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLTouchEvent.h" -#import "SDLTouchCoord.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLTouchEventSpec) - -SDLTouchCoord* coord = [[SDLTouchCoord alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLTouchEvent* testStruct = [[SDLTouchEvent alloc] init]; - - testStruct.touchEventId = @3; - testStruct.timeStamp = [@[@23, @52, @41345234] mutableCopy]; - testStruct.coord = [@[coord] mutableCopy]; - - expect(testStruct.touchEventId).to(equal(@3)); - expect(testStruct.timeStamp).to(equal([@[@23, @52, @41345234] mutableCopy])); - expect(testStruct.coord).to(equal([@[coord] mutableCopy])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_id:@3, - NAMES_ts:[@[@23, @52, @41345234] mutableCopy], - NAMES_c:[@[coord] mutableCopy]} mutableCopy]; - SDLTouchEvent* testStruct = [[SDLTouchEvent alloc] initWithDictionary:dict]; - - expect(testStruct.touchEventId).to(equal(@3)); - expect(testStruct.timeStamp).to(equal([@[@23, @52, @41345234] mutableCopy])); - expect(testStruct.coord).to(equal([@[coord] mutableCopy])); - }); - - it(@"Should return nil if not set", ^ { - SDLTouchEvent* testStruct = [[SDLTouchEvent alloc] init]; - - expect(testStruct.touchEventId).to(beNil()); - expect(testStruct.timeStamp).to(beNil()); - expect(testStruct.coord).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTurnSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTurnSpec.m deleted file mode 100644 index 07152ad92..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTurnSpec.m +++ /dev/null @@ -1,47 +0,0 @@ -// -// SDLTurnSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLTurn.h" -#import "SDLNames.h" -#import "SDLImage.h" - -QuickSpecBegin(SDLTurnSpec) - -SDLImage* image = [[SDLImage alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLTurn* testStruct = [[SDLTurn alloc] init]; - - testStruct.navigationText = @"NAVTEXT"; - testStruct.turnIcon = image; - - expect(testStruct.navigationText).to(equal(@"NAVTEXT")); - expect(testStruct.turnIcon).to(equal(image)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_navigationText:@"NAVTEXT", - NAMES_turnIcon:image} mutableCopy]; - SDLTurn* testStruct = [[SDLTurn alloc] initWithDictionary:dict]; - - expect(testStruct.navigationText).to(equal(@"NAVTEXT")); - expect(testStruct.turnIcon).to(equal(image)); - }); - - it(@"Should return nil if not set", ^ { - SDLTurn* testStruct = [[SDLTurn alloc] init]; - - expect(testStruct.navigationText).to(beNil()); - expect(testStruct.turnIcon).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleDataResultSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleDataResultSpec.m deleted file mode 100644 index ee3c4774a..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleDataResultSpec.m +++ /dev/null @@ -1,46 +0,0 @@ -// -// SDLVehicleDataResultSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLVehicleDataResult.h" -#import "SDLVehicleDataResultCode.h" -#import "SDLVehicleDataType.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLVehicleDataResultSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLVehicleDataResult* testStruct = [[SDLVehicleDataResult alloc] init]; - - testStruct.dataType = [SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS]; - testStruct.resultCode = [SDLVehicleDataResultCode DISALLOWED]; - - expect(testStruct.dataType).to(equal([SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS])); - expect(testStruct.resultCode).to(equal([SDLVehicleDataResultCode DISALLOWED])); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_dataType:[SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS], - NAMES_resultCode:[SDLVehicleDataResultCode DISALLOWED]} mutableCopy]; - SDLVehicleDataResult* testStruct = [[SDLVehicleDataResult alloc] initWithDictionary:dict]; - - expect(testStruct.dataType).to(equal([SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS])); - expect(testStruct.resultCode).to(equal([SDLVehicleDataResultCode DISALLOWED])); - }); - - it(@"Should return nil if not set", ^ { - SDLVehicleDataResult* testStruct = [[SDLVehicleDataResult alloc] init]; - - expect(testStruct.dataType).to(beNil()); - expect(testStruct.resultCode).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleTypeSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleTypeSpec.m deleted file mode 100644 index 9a282b72e..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleTypeSpec.m +++ /dev/null @@ -1,54 +0,0 @@ -// -// SDLVehicleTypeSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLVehicleType.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLVehicleTypeSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLVehicleType* testStruct = [[SDLVehicleType alloc] init]; - - testStruct.make = @"Make"; - testStruct.model = @"Model"; - testStruct.modelYear = @"3.141*10^36"; - testStruct.trim = @"AE"; - - expect(testStruct.make).to(equal(@"Make")); - expect(testStruct.model).to(equal(@"Model")); - expect(testStruct.modelYear).to(equal(@"3.141*10^36")); - expect(testStruct.trim).to(equal(@"AE")); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_make:@"Make", - NAMES_model:@"Model", - NAMES_modelYear:@"3.141*10^36", - NAMES_trim:@"AE"} mutableCopy]; - SDLVehicleType* testStruct = [[SDLVehicleType alloc] initWithDictionary:dict]; - - expect(testStruct.make).to(equal(@"Make")); - expect(testStruct.model).to(equal(@"Model")); - expect(testStruct.modelYear).to(equal(@"3.141*10^36")); - expect(testStruct.trim).to(equal(@"AE")); - }); - - it(@"Should return nil if not set", ^ { - SDLVehicleType* testStruct = [[SDLVehicleType alloc] init]; - - expect(testStruct.make).to(beNil()); - expect(testStruct.model).to(beNil()); - expect(testStruct.modelYear).to(beNil()); - expect(testStruct.trim).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVrHelpItemSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVrHelpItemSpec.m deleted file mode 100644 index e76be2558..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVrHelpItemSpec.m +++ /dev/null @@ -1,53 +0,0 @@ -// -// SDLVrHelpItemSpec.m -// SmartDeviceLink - - -#import - -#import -#import - -#import "SDLImage.h" -#import "SDLNames.h" -#import "SDLVrHelpItem.h" - - -QuickSpecBegin(SDLVrHelpItemSpec) - -SDLImage* image = [[SDLImage alloc] init]; - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLVRHelpItem* testStruct = [[SDLVRHelpItem alloc] init]; - - testStruct.text = @"DON'T PANIC"; - testStruct.image = image; - testStruct.position = @42; - - expect(testStruct.text).to(equal(@"DON'T PANIC")); - expect(testStruct.image).to(equal(image)); - expect(testStruct.position).to(equal(@42)); - }); - - it(@"Should get correctly when initialized", ^ { - NSMutableDictionary* dict = [@{NAMES_text:@"DON'T PANIC", - NAMES_image:image, - NAMES_position:@42} mutableCopy]; - SDLVRHelpItem* testStruct = [[SDLVRHelpItem alloc] initWithDictionary:dict]; - - expect(testStruct.text).to(equal(@"DON'T PANIC")); - expect(testStruct.image).to(equal(image)); - expect(testStruct.position).to(equal(@42)); - }); - - it(@"Should return nil if not set", ^ { - SDLVRHelpItem* testStruct = [[SDLVRHelpItem alloc] init]; - - expect(testStruct.text).to(beNil()); - expect(testStruct.image).to(beNil()); - expect(testStruct.position).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLEnumSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLEnumSpec.m deleted file mode 100644 index e4d330a3c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLEnumSpec.m +++ /dev/null @@ -1,25 +0,0 @@ -// -// SDLEnumSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import - -#import "SDLEnum.h" - -QuickSpecBegin(SDLEnumSpec) - -describe(@"Value Tests", ^ { - it(@"Should get value correctly when initialized", ^ { - SDLEnum* enumValue = [[SDLEnum alloc] initWithValue:@"Enum"]; - - expect(enumValue).toNot(beNil()); - - expect(enumValue.value).to(equal(@"Enum")); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCMessageSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCMessageSpec.m deleted file mode 100644 index 39a9ebc74..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCMessageSpec.m +++ /dev/null @@ -1,115 +0,0 @@ -// -// SDLRPCMessage.m -// SmartDeviceLink-iOS - - -#import - -#import -#import - -#import "SDLRPCMessage.h" -#import "SDLNames.h" - -QuickSpecBegin(SDLRPCMessageSpec) - -describe(@"Readonly Property Tests", ^ { - it(@"Should get name correctly when initialized with name", ^ { - SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithName:@"Poorly Named"]; - - expect(testMessage.name).to(equal(@"Poorly Named")); - }); - - it(@"Should get correctly when initialized with dictionary", ^ { - SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithDictionary:[@{NAMES_notification: - @{NAMES_parameters: - @{@"name":@"George"}, - NAMES_operation_name:@"Poorly Named"}} mutableCopy]]; - - expect(testMessage.name).to(equal(@"Poorly Named")); - expect(testMessage.messageType).to(equal(NAMES_notification)); - }); -}); - -describe(@"Parameter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithName:@""]; - - [testMessage setParameters:@"ADogAPanicInAPagoda" value:@"adogaPAnIcinaPAgoDA"]; - - expect([testMessage getParameters:@"ADogAPanicInAPagoda"]).to(equal(@"adogaPAnIcinaPAgoDA")); - }); - - it(@"Should get correctly when initialized", ^ { - SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithDictionary:[@{NAMES_response: - @{NAMES_parameters: - @{@"age":@25}, - NAMES_operation_name:@"Nameless"}} mutableCopy]]; - - expect([testMessage getParameters:@"age"]).to(equal(@25)); - }); - - it(@"Should be nil if not set", ^ { - SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithName:@""]; - - expect([testMessage getParameters:@"ADogAPanicInAPagoda"]).to(beNil()); - }); -}); - -describe(@"FunctionName Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithName:@""]; - - [testMessage setFunctionName:@"Functioning"]; - - expect([testMessage getFunctionName]).to(equal(@"Functioning")); - }); - - it(@"Should get correctly when initialized", ^ { - SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithDictionary:[@{NAMES_request: - @{NAMES_parameters: - @{@"age":@25}, - NAMES_operation_name:@"DoNothing"}} mutableCopy]]; - - expect([testMessage getFunctionName]).to(equal(@"DoNothing")); - - testMessage = [[SDLRPCMessage alloc] initWithName:@"DoSomething"]; - - expect([testMessage getFunctionName]).to(equal(@"DoSomething")); - }); - - it(@"Should be nil if not set", ^ { - SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithDictionary:[@{NAMES_notification: - @{NAMES_parameters: - @{}}} mutableCopy]]; - expect([testMessage getFunctionName]).to(beNil()); - }); -}); - -describe(@"BulkDataTests", ^ { - it(@"Should set and get correctly", ^ { - SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithName:@""]; - - const char* testString = "ImportantData"; - testMessage.bulkData = [NSData dataWithBytes:testString length:strlen(testString)]; - - expect([NSString stringWithUTF8String:testMessage.bulkData.bytes]).to(equal(@"ImportantData")); - }); - - it(@"Should get correctly when initialized", ^ { - SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithDictionary:[@{NAMES_notification: - @{NAMES_parameters: - @{}}, - NAMES_bulkData:[NSData dataWithBytes:"ImageData" length:strlen("ImageData")]} mutableCopy]]; - - expect(testMessage.bulkData).to(equal([NSData dataWithBytes:"ImageData" length:strlen("ImageData")])); - }); - - it(@"Should be nil if not set", ^ { - SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithName:@""]; - - expect(testMessage.bulkData).to(beNil()); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCNotificationSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCNotificationSpec.m deleted file mode 100644 index d6dab74d5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCNotificationSpec.m +++ /dev/null @@ -1,15 +0,0 @@ -// -// SDLRPCNotificationSpec.m -// SmartDeviceLink-iOS - - -#import - -#import -#import - -#import "SDLRPCNotification.h" - -QuickSpecBegin(SDLRPCNotificationSpec) - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCRequestSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCRequestSpec.m deleted file mode 100644 index 1846e0700..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCRequestSpec.m +++ /dev/null @@ -1,25 +0,0 @@ -// -// SDLRPCRequest.m -// SmartDeviceLink-iOS - - -#import - -#import -#import - -#import "SDLRPCRequest.h" - -QuickSpecBegin(SDLRPCRequestSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLRPCRequest* testRequest = [[SDLRPCRequest alloc] initWithName:@"A Legitimate Request"]; - - testRequest.correlationID = @14641; - - expect(testRequest.correlationID).to(equal(@14641)); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCResponseSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCResponseSpec.m deleted file mode 100644 index 0619dd3dc..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCResponseSpec.m +++ /dev/null @@ -1,33 +0,0 @@ -// -// SDLRPCResponse.m -// SmartDeviceLink-iOS - - -#import - -#import -#import - -#import "SDLResult.h" -#import "SDLRPCResponse.h" - - -QuickSpecBegin(SDLRPCResponseSpec) - -describe(@"Getter/Setter Tests", ^ { - it(@"Should set and get correctly", ^ { - SDLRPCResponse* response = [[SDLRPCResponse alloc] initWithName:@"A Legitimate Response"]; - - response.correlationID = @14641; - response.success = @YES; - response.resultCode = [SDLResult IGNORED]; - response.info = @"It has been done"; - - expect(response.correlationID).to(equal(@14641)); - expect(response.success).to(equal(@YES)); - expect(response.resultCode).to(equal([SDLResult IGNORED])); - expect(response.info).to(equal(@"It has been done")); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCStructSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCStructSpec.m deleted file mode 100644 index 9352569ed..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCStructSpec.m +++ /dev/null @@ -1,24 +0,0 @@ -// -// SDLRPCStruct.m -// SmartDeviceLink-iOS - - -#import - -#import -#import - -#import "SDLRPCStruct.h" - -QuickSpecBegin(SDLRPCStructSpec) - -describe(@"SerializeAsDictionary Tests", ^ { - it(@"Should serialize correctly", ^ { - NSMutableDictionary* dict = [@{@"Key":@"Value", @"Answer":@42, @"Struct":[[SDLRPCStruct alloc] initWithDictionary:[@{@"Array":@[@1, @1, @1, @1]} mutableCopy]]} mutableCopy]; - SDLRPCStruct* testStruct = [[SDLRPCStruct alloc] initWithDictionary:dict]; - - expect([testStruct serializeAsDictionary:2]).to(equal([@{@"Key":@"Value", @"Answer":@42, @"Struct":@{@"Array":@[@1, @1, @1, @1]}} mutableCopy])); - }); -}); - -QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/SwiftSpec.swift b/SmartDeviceLink-iOS/SmartDeviceLinkTests/SwiftSpec.swift deleted file mode 100644 index 274da684d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/SwiftSpec.swift +++ /dev/null @@ -1,5 +0,0 @@ -// -// SwiftSpec.swift -// SmartDeviceLink-iOS - -import Quick; diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLRequestTaskSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLRequestTaskSpec.m deleted file mode 100644 index d78ff0c7f..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLRequestTaskSpec.m +++ /dev/null @@ -1,140 +0,0 @@ -#import -#import -#import - -#import "SDLURLRequestTask.h" - - -QuickSpecBegin(SDLURLRequestTaskSpec) - -describe(@"a url request task", ^{ - __block SDLURLRequestTask *testTask = nil; - - describe(@"when the server returns correct data", ^{ - NSData *testData = [@"someData" dataUsingEncoding:NSUTF8StringEncoding]; - - __block NSData *testReturnData = nil; - __block NSURLResponse *testReturnResponse = nil; - __block NSError *testReturnError = nil; - - beforeEach(^{ - [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { - return [request.URL.host isEqualToString:@"www.faketest.com"]; - } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { - return [[OHHTTPStubsResponse responseWithData:testData statusCode:200 headers:nil] requestTime:0.5 responseTime:0]; - }]; - - NSURLRequest *someURLRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.faketest.com"]]; - - testTask = [[SDLURLRequestTask alloc] initWithURLRequest:someURLRequest completionHandler:^void(NSData *data, NSURLResponse *response, NSError *error) { - testReturnData = data; - testReturnResponse = response; - testReturnError = error; - }]; - }); - - afterEach(^{ - testTask = nil; - [OHHTTPStubs removeAllStubs]; - }); - - it(@"should return data", ^{ - expect(testReturnData).toEventually(equal(testData)); - }); - - it(@"should return a response", ^{ - expect(testReturnResponse).toEventuallyNot(beNil()); - }); - - it(@"should not return an error", ^{ - expect(testReturnError).toEventually(beNil()); - }); - }); - - describe(@"when the connection fails because there is no internet", ^{ - NSError *someNetworkError = [NSError errorWithDomain:NSURLErrorDomain code:kCFURLErrorNotConnectedToInternet userInfo:nil]; - - __block NSData *testReturnData = nil; - __block NSURLResponse *testReturnResponse = nil; - __block NSError *testReturnError = nil; - - beforeEach(^{ - [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { - return [request.URL.host isEqualToString:@"www.faketest.com"]; - } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { - return [OHHTTPStubsResponse responseWithError:someNetworkError]; - }]; - - NSURLRequest *someURLRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.faketest.com"]]; - - testTask = [[SDLURLRequestTask alloc] initWithURLRequest:someURLRequest completionHandler:^void(NSData *data, NSURLResponse *response, NSError *error) { - testReturnData = data; - testReturnResponse = response; - testReturnError = error; - }]; - }); - - afterEach(^{ - testTask = nil; - [OHHTTPStubs removeAllStubs]; - }); - - it(@"should return nil data", ^{ - expect(testReturnData).toEventually(beNil()); - }); - - it(@"should return a nil response", ^{ - expect(testReturnResponse).toEventually(beNil()); - }); - - it(@"should return an error", ^{ - expect(@(testReturnError.code)).toEventually(equal(@(someNetworkError.code))); - }); - }); - - describe(@"when the connection fails because it was cancelled", ^{ - NSData *testData = [@"testData" dataUsingEncoding:NSUTF8StringEncoding]; - - __block NSData *testReturnData = nil; - __block NSURLResponse *testReturnResponse = nil; - __block NSError *testReturnError = nil; - - beforeEach(^{ - [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { - return [request.URL.host isEqualToString:@"www.faketest.com"]; - } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { - return [[OHHTTPStubsResponse responseWithData:testData statusCode:200 headers:nil] requestTime:0.25 responseTime:0.25]; - }]; - - NSURLRequest *someURLRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.faketest.com"]]; - - - testTask = [[SDLURLRequestTask alloc] initWithURLRequest:someURLRequest completionHandler:^void(NSData *data, NSURLResponse *response, NSError *error) { - testReturnData = data; - testReturnResponse = response; - testReturnError = error; - }]; - - [testTask cancel]; - }); - - afterEach(^{ - testTask = nil; - [OHHTTPStubs removeAllStubs]; - }); - - it(@"should return nil data", ^{ - expect(testReturnData).toEventually(beNil()); - }); - - it(@"should return a nil response", ^{ - expect(testReturnResponse).toEventually(beNil()); - }); - - it(@"should return an error", ^{ - expect(@(testReturnError.code)).toEventually(equal(@(kCFURLErrorCancelled))); - }); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLSessionSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLSessionSpec.m deleted file mode 100644 index d15bcc049..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLSessionSpec.m +++ /dev/null @@ -1,191 +0,0 @@ -#import -#import -#import - -#import "SDLURLSession.h" - -QuickSpecBegin(SDLURLSessionSpec) - -describe(@"the url session", ^{ - __block SDLURLSession *testSession = nil; - - describe(@"attempting to get good data", ^{ - context(@"uploading data", ^{ - NSData *testData = [@"testData" dataUsingEncoding:NSUTF8StringEncoding]; - NSArray *someJSONObject = @[@"one", @"two"]; - NSData *testJSONData = [NSJSONSerialization dataWithJSONObject:someJSONObject options:0 error:nil]; - - __block NSData *testReturnData = nil; - __block NSURLResponse *testReturnResponse = nil; - __block NSError *testReturnError = nil; - __block NSArray *testReturnJSONObject = nil; - - beforeEach(^{ - [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { - if ([request.URL.host isEqualToString:@"www.faketest.com"]) { - testReturnJSONObject = [NSJSONSerialization JSONObjectWithData:request.HTTPBody options:0 error:nil]; - return YES; - } - - return NO; - } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { - return [[OHHTTPStubsResponse responseWithData:testData statusCode:200 headers:nil] requestTime:0.5 responseTime:0]; - }]; - - testSession = [[SDLURLSession alloc] init]; - NSURLRequest *someURLRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.faketest.com"]]; - - [testSession uploadWithURLRequest:someURLRequest data:testJSONData completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { - testReturnData = data; - testReturnResponse = response; - testReturnError = error; - }]; - }); - - afterEach(^{ - testSession = nil; - [OHHTTPStubs removeAllStubs]; - }); - - it(@"should have the json object", ^{ - expect(testReturnJSONObject).toEventually(equal(someJSONObject)); - }); - - it(@"should not return any data", ^{ - expect(testReturnData).toEventually(equal(testData)); - }); - - it(@"should return a response", ^{ - expect(testReturnResponse).toEventuallyNot(beNil()); - }); - - it(@"should not return an error", ^{ - expect(testReturnError).toEventually(beNil()); - }); - }); - - context(@"downloading data", ^{ - NSData *testData = [@"someData" dataUsingEncoding:NSUTF8StringEncoding]; - - __block NSData *testReturnData = nil; - __block NSURLResponse *testReturnResponse = nil; - __block NSError *testReturnError = nil; - - beforeEach(^{ - [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { - return [request.URL.host isEqualToString:@"www.faketest.com"]; - } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { - return [[OHHTTPStubsResponse responseWithData:testData statusCode:200 headers:nil] requestTime:0.5 responseTime:0]; - }]; - - testSession = [[SDLURLSession alloc] init]; - [testSession dataFromURL:[NSURL URLWithString:@"http://www.faketest.com"] completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { - testReturnData = data; - testReturnResponse = response; - testReturnError = error; - }]; - }); - - afterEach(^{ - testSession = nil; - [OHHTTPStubs removeAllStubs]; - }); - - it(@"should not return any data", ^{ - expect(testReturnData).toEventually(equal(testData)); - }); - - it(@"should return a response", ^{ - expect(testReturnResponse).toEventuallyNot(beNil()); - }); - - it(@"should not return an error", ^{ - expect(testReturnError).toEventually(beNil()); - }); - }); - }); - - describe(@"when the connection fails because there is no internet", ^{ - NSError *someNetworkError = [NSError errorWithDomain:NSURLErrorDomain code:kCFURLErrorNotConnectedToInternet userInfo:nil]; - - __block NSData *testReturnData = nil; - __block NSURLResponse *testReturnResponse = nil; - __block NSError *testReturnError = nil; - - beforeEach(^{ - [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { - return [request.URL.host isEqualToString:@"www.faketest.com"]; - } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { - return [OHHTTPStubsResponse responseWithError:someNetworkError]; - }]; - - testSession = [[SDLURLSession alloc] init]; - [testSession dataFromURL:[NSURL URLWithString:@"http://www.faketest.com"] completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { - testReturnData = data; - testReturnResponse = response; - testReturnError = error; - }]; - }); - - afterEach(^{ - testSession = nil; - [OHHTTPStubs removeAllStubs]; - }); - - it(@"should return nil data", ^{ - expect(testReturnData).toEventually(beNil()); - }); - - it(@"should return a nil response", ^{ - expect(testReturnResponse).toEventually(beNil()); - }); - - it(@"should return an error", ^{ - expect(@(testReturnError.code)).toEventually(equal(@(someNetworkError.code))); - }); - }); - - describe(@"when the connection fails because it was cancelled", ^{ - NSData *testData = [@"testData" dataUsingEncoding:NSUTF8StringEncoding]; - - __block NSData *testReturnData = nil; - __block NSURLResponse *testReturnResponse = nil; - __block NSError *testReturnError = nil; - - beforeEach(^{ - [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { - return [request.URL.host isEqualToString:@"www.faketest.com"]; - } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { - return [[OHHTTPStubsResponse responseWithData:testData statusCode:200 headers:nil] requestTime:0.25 responseTime:0.25]; - }]; - - testSession = [[SDLURLSession alloc] init]; - [testSession dataFromURL:[NSURL URLWithString:@"http://www.faketest.com"] completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { - testReturnData = data; - testReturnResponse = response; - testReturnError = error; - }]; - - [testSession cancelAllTasks]; - }); - - afterEach(^{ - testSession = nil; - [OHHTTPStubs removeAllStubs]; - }); - - it(@"should return nil data", ^{ - expect(testReturnData).toEventually(beNil()); - }); - - it(@"should return a nil response", ^{ - expect(testReturnResponse).toEventually(beNil()); - }); - - it(@"should return an error", ^{ - expect(@(testReturnError.code)).toEventually(equal(@(kCFURLErrorCancelled))); - }); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLObjectWithPrioritySpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLObjectWithPrioritySpec.m deleted file mode 100644 index 73ca3f7ea..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLObjectWithPrioritySpec.m +++ /dev/null @@ -1,54 +0,0 @@ -// -// SDLObjectWithPrioritySpec.m -// SmartDeviceLink-iOS - -#import -#import -#import - -#import "SDLObjectWithPriority.h" - - -QuickSpecBegin(SDLObjectWithPrioritySpec) - -describe(@"a prioritized object", ^{ - __block SDLObjectWithPriority *testObject = nil; - - beforeEach(^{ - testObject = [[SDLObjectWithPriority alloc] init]; - }); - - describe(@"should initialize properly", ^{ - it(@"should not be nil", ^{ - expect(testObject).toNot(beNil()); - }); - - it(@"should store a nil object", ^{ - expect(testObject.object).to(beNil()); - }); - - it(@"should have a priority of 0", ^{ - expect(@(testObject.priority)).to(equal(@(NSIntegerMax))); - }); - }); - - describe(@"should store an object properly", ^{ - __block NSString *testString = nil; - - beforeEach(^{ - testString = @"TestString"; - testObject.object = testString; - testObject.priority = 100; - }); - - it(@"should store the string as it's object", ^{ - expect(testObject.object).to(equal(testString)); - }); - - it(@"should set the priority as specified", ^{ - expect(@(testObject.priority)).to(equal(@100)); - }); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLPrioritizedObjectCollectionSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLPrioritizedObjectCollectionSpec.m deleted file mode 100644 index d417d6d1d..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLPrioritizedObjectCollectionSpec.m +++ /dev/null @@ -1,89 +0,0 @@ -// -// SDLPrioritizedObjectCollectionSpec.m -// SmartDeviceLink-iOS - -#import -#import -#import - -#import "SDLPrioritizedObjectCollection.h" - - -QuickSpecBegin(SDLPrioritizedObjectCollectionSpec) - -describe(@"a prioritized object collection", ^{ - __block SDLPrioritizedObjectCollection *collection = nil; - beforeEach(^{ - collection = [[SDLPrioritizedObjectCollection alloc] init]; - }); - - it(@"should be empty when first created", ^{ - id returnObj = [collection nextObject]; - - expect(returnObj).to(beNil()); - }); - - it(@"should ignore adding nil objects", ^{ - id obj = nil; - [collection addObject:obj withPriority:0]; - - id returnObj = [collection nextObject]; - expect(returnObj).to(beNil()); - }); - - it(@"should ignore adding NSNull objects", ^{ - [collection addObject:[NSNull null] withPriority:0]; - - id returnObj = [collection nextObject]; - expect(returnObj).to(beNil()); - }); - - it(@"should be able to add and retrieve a single item", ^{ - NSString *string = @"testString"; - [collection addObject:string withPriority:0]; - - id returnObj = [collection nextObject]; - - expect(returnObj).to(equal(string)); - }); - - describe(@"should retrieve higher priority objects first", ^{ - __block id firstObjectOut = nil; - __block id secondObjectOut = nil; - __block id thirdObjectOut = nil; - - __block NSString *highPriorityString = nil; - __block NSString *mediumPriorityString = nil; - __block NSString *lowPriorityString = nil; - - beforeEach(^{ - highPriorityString = @"highPriority"; - mediumPriorityString = @"mediumPriority"; - lowPriorityString = @"lowPriority"; - - // Add them in "incorrect" order to make sure sorting works correctly. - // Lower numbers indicate higher priority - [collection addObject:mediumPriorityString withPriority:100]; - [collection addObject:lowPriorityString withPriority:200]; - [collection addObject:highPriorityString withPriority:0]; - - firstObjectOut = [collection nextObject]; - secondObjectOut = [collection nextObject]; - thirdObjectOut = [collection nextObject]; - }); - - it(@"should retrieve the highest priority first", ^{ - expect(firstObjectOut).to(equal(highPriorityString)); - }); - - it(@"should retrieve the medium priority second", ^{ - expect(secondObjectOut).to(equal(mediumPriorityString)); - }); - - it(@"should retrieve the lowest priority last", ^{ - expect(thirdObjectOut).to(equal(lowPriorityString)); - }); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/SDLGlobalsSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/SDLGlobalsSpec.m deleted file mode 100644 index 8acaaadcf..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/SDLGlobalsSpec.m +++ /dev/null @@ -1,85 +0,0 @@ -#import -#import - -#import "SDLGlobals.h" - -QuickSpecBegin(SDLGlobalsSpec) - -describe(@"The SDLGlobals class", ^{ - __block SDLGlobals *testGlobals = nil; - __block NSNumber *v1And2MTUSize = @1024; - __block NSNumber *v3And4MTUSize = @131084; - - beforeEach(^{ - testGlobals = [[SDLGlobals alloc] init]; - }); - - describe(@"when just initialized", ^{ - it(@"should properly set protocol version", ^{ - expect(@(testGlobals.protocolVersion)).to(equal(@1)); - }); - - it(@"should properly set max head unit version", ^{ - expect(@(testGlobals.maxHeadUnitVersion)).to(equal(@0)); - }); - - it(@"should throw an exception trying to get max MTU size", ^{ - expect(@(testGlobals.maxMTUSize)).to(equal(v1And2MTUSize)); - }); - }); - - describe(@"setting maxHeadUnitVersion should alter negotiated protocol version", ^{ - it(@"should use the max head unit version when lower than max proxy version", ^{ - NSUInteger someIntLowerThanMaxProxyVersion = 2; - testGlobals.maxHeadUnitVersion = someIntLowerThanMaxProxyVersion; - expect(@(testGlobals.protocolVersion)).to(equal(@(someIntLowerThanMaxProxyVersion))); - expect(@(testGlobals.maxHeadUnitVersion)).to(equal(@(someIntLowerThanMaxProxyVersion))); - }); - - it(@"should use the max proxy version when lower than max head unit version", ^{ - NSUInteger someIntHigherThanMaxProxyVersion = 1000; - testGlobals.maxHeadUnitVersion = someIntHigherThanMaxProxyVersion; - expect(@(testGlobals.protocolVersion)).to(beLessThan(@(someIntHigherThanMaxProxyVersion))); - expect(@(testGlobals.maxHeadUnitVersion)).to(equal(@(someIntHigherThanMaxProxyVersion))); - }); - }); - - describe(@"getting the max MTU version", ^{ - context(@"when protocol version is 1 - 2", ^{ - it(@"should return the correct value when protocol version is 1", ^{ - testGlobals.maxHeadUnitVersion = 1; - expect(@(testGlobals.maxMTUSize)).to(equal(v1And2MTUSize)); - }); - - it(@"should return the correct value when protocol version is 2", ^{ - testGlobals.maxHeadUnitVersion = 2; - expect(@(testGlobals.maxMTUSize)).to(equal(v1And2MTUSize)); - }); - }); - - context(@"when protocol version is 3 - 4", ^{ - it(@"should return the correct value when protocol version is 3", ^{ - testGlobals.maxHeadUnitVersion = 3; - expect(@(testGlobals.maxMTUSize)).to(equal(v3And4MTUSize)); - }); - - it(@"should return the correct value when protocol version is 4", ^{ - testGlobals.maxHeadUnitVersion = 4; - expect(@(testGlobals.maxMTUSize)).to(equal(v3And4MTUSize)); - }); - - describe(@"when the max proxy version is lower than max head unit version", ^{ - beforeEach(^{ - NSUInteger someIntHigherThanMaxProxyVersion = 1000; - testGlobals.maxHeadUnitVersion = someIntHigherThanMaxProxyVersion; - }); - - it(@"should return the v1 - 2 value", ^{ - expect(@(testGlobals.maxMTUSize)).to(equal(v1And2MTUSize)); - }); - }); - }); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/SDLHexUtilitySpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/SDLHexUtilitySpec.m deleted file mode 100644 index f9a539103..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/SDLHexUtilitySpec.m +++ /dev/null @@ -1,36 +0,0 @@ -// -// SDLHexUtilitySpec.m -// SmartDeviceLink-iOS - -#import - -#import -#import - -#import "SDLHexUtility.h" - - -QuickSpecBegin(SDLHexUtilitySpec) - -describe(@"getting a hex string", ^{ - context(@"from a byte array", ^{ - it(@"correctly returns a hex string", ^{ - UInt8 byteArray[] = {0x00, 0x0F, 0xFF, 0x13}; - NSString *hexString = [SDLHexUtility getHexString:byteArray length:4]; - - expect(hexString).to(equal(@"000FFF13")); - }); - }); - - context(@"From a data object", ^{ - it(@"correctly returns a hex string", ^{ - UInt8 byteArray[] = {0x00, 0x0F, 0xFF, 0x13}; - NSData *byteData = [NSData dataWithBytes:byteArray length:4]; - NSString *hexString = [SDLHexUtility getHexString:byteData]; - - expect(hexString).to(equal(@"000FFF13")); - }); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/SDLJingleSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/SDLJingleSpec.m deleted file mode 100644 index ed727abbb..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/UtilitiesSpecs/SDLJingleSpec.m +++ /dev/null @@ -1,24 +0,0 @@ -// -// SDLJingleSpec.m -// SmartDeviceLink-iOS - -#import -#import -#import - -#import "SDLJingle.h" - - -QuickSpecBegin(SDLJingleSpec) - -describe(@"retrieving jingle strings", ^{ - it(@"returns each jingle correctly", ^{ - expect([SDLJingle NEGATIVE_JINGLE]).to(equal(@"NEGATIVE_JINGLE")); - expect([SDLJingle POSITIVE_JINGLE]).to(equal(@"POSITIVE_JINGLE")); - expect([SDLJingle LISTEN_JINGLE]).to(equal(@"LISTEN_JINGLE")); - expect([SDLJingle INITIAL_JINGLE]).to(equal(@"INITIAL_JINGLE")); - expect([SDLJingle HELP_JINGLE]).to(equal(@"HELP_JINGLE")); - }); -}); - -QuickSpecEnd diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/ConnectionIAPTableViewController.storyboard b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/ConnectionIAPTableViewController.storyboard deleted file mode 100644 index 335364997..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/ConnectionIAPTableViewController.storyboard +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/ConnectionTCPTableViewController.storyboard b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/ConnectionTCPTableViewController.storyboard deleted file mode 100644 index 231cff68b..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/ConnectionTCPTableViewController.storyboard +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/LaunchScreen.xib b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/LaunchScreen.xib deleted file mode 100644 index 833c7dfd7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/LaunchScreen.xib +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/Main.storyboard b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/Main.storyboard deleted file mode 100644 index e0fd6eec5..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Base.lproj/Main.storyboard +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/AppDelegate.h b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/AppDelegate.h deleted file mode 100644 index b86efb1a6..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/AppDelegate.h +++ /dev/null @@ -1,13 +0,0 @@ -// -// AppDelegate.h -// SmartDeviceLink-iOS - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/AppDelegate.m b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/AppDelegate.m deleted file mode 100644 index 23e5c54be..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/AppDelegate.m +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// SmartDeviceLink-iOS - -#import "AppDelegate.h" - -#import "ProxyManager.h" - - -@interface AppDelegate () - -@end - - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. -} - -- (void)applicationWillTerminate:(UIApplication *)application { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.h b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.h deleted file mode 100644 index a09f1fa77..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.h +++ /dev/null @@ -1,12 +0,0 @@ -// -// ConnectionAnimatedTransition.h -// SmartDeviceLink-iOS - -#import - -#import - - -@interface ConnectionAnimatedTransition : NSObject - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.m b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.m deleted file mode 100644 index 1a4d4d141..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.m +++ /dev/null @@ -1,43 +0,0 @@ -// -// ConnectionAnimatedTransition.m -// SmartDeviceLink-iOS - -#import "ConnectionAnimatedTransition.h" - - -static CGFloat const ChildViewPadding = 16; -static CGFloat const DampingFactor = 0.8; -static CGFloat const InitialSpringVelocity = 0.6; - - -@implementation ConnectionAnimatedTransition - -- (NSTimeInterval)transitionDuration:(id)transitionContext { - return 0.4; -} - -- (void)animateTransition:(id)transitionContext { - UIViewController *fromViewController = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; - UIViewController *toViewController = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; - - BOOL goingRight = ([transitionContext initialFrameForViewController:toViewController].origin.x < [transitionContext finalFrameForViewController:toViewController].origin.x); - CGFloat travelDistance = [transitionContext containerView].bounds.size.width + ChildViewPadding; - CGAffineTransform travel = CGAffineTransformMakeTranslation((goingRight ? travelDistance : -travelDistance), 0); - - [[transitionContext containerView] addSubview:toViewController.view]; - toViewController.view.alpha = 0; - toViewController.view.transform = CGAffineTransformInvert(travel); - - [UIView animateWithDuration:[self transitionDuration:transitionContext] delay:0 usingSpringWithDamping:DampingFactor initialSpringVelocity:InitialSpringVelocity options:kNilOptions animations:^{ - fromViewController.view.transform = travel; - fromViewController.view.alpha = 0; - - toViewController.view.transform = [transitionContext targetTransform]; - toViewController.view.alpha = 1; - } completion:^(BOOL finished) { - fromViewController.view.transform = [transitionContext targetTransform]; - [transitionContext completeTransition:![transitionContext transitionWasCancelled]]; - }]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.h b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.h deleted file mode 100644 index 4e2d1ea32..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.h +++ /dev/null @@ -1,9 +0,0 @@ -// -// ConnectionContainerViewController.h -// SmartDeviceLink-iOS - -#import - -@interface ConnectionContainerViewController : UIViewController - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.m b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.m deleted file mode 100644 index b3fe8abc0..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.m +++ /dev/null @@ -1,121 +0,0 @@ -// -// ConnectionContainerViewController.m -// SmartDeviceLink-iOS - -#import "ConnectionContainerViewController.h" - -#import "ConnectionTCPTableViewController.h" -#import "ConnectionIAPTableViewController.h" -#import "ConnectionTransitionContext.h" -#import "ConnectionAnimatedTransition.h" - - - -@interface ConnectionContainerViewController () - -@property (weak, nonatomic) IBOutlet UISegmentedControl *connectionTypeSegmentedControl; -@property (strong, nonatomic) NSArray *viewControllers; -@property (strong, nonatomic) UIViewController *currentViewController; - -@property (strong, nonatomic) UIPanGestureRecognizer *panGestureRecognizer; - -@end - - - -@implementation ConnectionContainerViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - - self.navigationController.navigationBar.translucent = NO; - - // Setup the child VCs - UIStoryboard *tcpControllerStoryboard = [UIStoryboard storyboardWithName:@"ConnectionTCPTableViewController" bundle:[NSBundle mainBundle]]; - UIStoryboard *iapControllerStoryboard = [UIStoryboard storyboardWithName:@"ConnectionIAPTableViewController" bundle:[NSBundle mainBundle]]; - ConnectionTCPTableViewController *tcpController = [tcpControllerStoryboard instantiateInitialViewController]; - ConnectionIAPTableViewController *iapController = [iapControllerStoryboard instantiateInitialViewController]; - self.viewControllers = @[tcpController, iapController]; - - // Setup the pan gesture - self.panGestureRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panGestureRecognizerDidFire:)]; - [self.view addGestureRecognizer:self.panGestureRecognizer]; - - // Setup initial view controller state - self.connectionTypeSegmentedControl.selectedSegmentIndex = 0; - [self loadInitialChildViewController]; -} - -- (void)loadInitialChildViewController { - // On the initial load, we just add the new child VC with no animation - UIViewController *initialViewController = self.viewControllers[0]; - [self addChildViewController:initialViewController]; - [self.view addSubview:initialViewController.view]; - [initialViewController didMoveToParentViewController:self]; - - self.currentViewController = initialViewController; -} - - -#pragma mark - IBActions - -- (IBAction)connectionTypeSegmentedControlSelectedIndexDidChange:(UISegmentedControl *)sender { - [self transitionToViewControllerForSelectedIndex:sender.selectedSegmentIndex]; -} - - -#pragma mark - Gestures - -- (void)panGestureRecognizerDidFire:(UIPanGestureRecognizer *)gesture { - BOOL goingRight = ([gesture velocityInView:gesture.view].x < 0.0f); - - NSUInteger currentSegmentIndex = self.connectionTypeSegmentedControl.selectedSegmentIndex; - if (goingRight && (currentSegmentIndex != self.viewControllers.count - 1)) { - // If we're swiping left (going right) and current segment is not all the way to the right - NSUInteger nextIndex = currentSegmentIndex + 1; - self.connectionTypeSegmentedControl.selectedSegmentIndex = nextIndex; - [self transitionToViewControllerForSelectedIndex:nextIndex]; - } else if (!goingRight && (currentSegmentIndex > 0)) { - // If we're swiping right (going left) and the current segment is not all the way to the left - NSUInteger nextIndex = currentSegmentIndex - 1; - self.connectionTypeSegmentedControl.selectedSegmentIndex = nextIndex; - [self transitionToViewControllerForSelectedIndex:nextIndex]; - } -} - - -#pragma mark - Private API - -- (void)transitionToViewControllerForSelectedIndex:(NSInteger)selectedIndex { - UIViewController *toViewController = self.viewControllers[selectedIndex]; - - if (toViewController == nil || toViewController == self.currentViewController) { - return; - } - - [self.currentViewController willMoveToParentViewController:nil]; - [self addChildViewController:toViewController]; - - id animator = [[ConnectionAnimatedTransition alloc] init]; - NSUInteger fromIndex = [self.viewControllers indexOfObject:self.currentViewController]; - - ConnectionTransitionContext *transitionContext = [[ConnectionTransitionContext alloc] initWithFromViewController:self.currentViewController toViewController:toViewController direction:((selectedIndex > fromIndex) ? ConnectionTransitionDirectionRight : ConnectionTransitionDirectionLeft) transitionComplete:^(BOOL didComplete) { - [self.currentViewController.view removeFromSuperview]; - [self.currentViewController removeFromParentViewController]; - [toViewController didMoveToParentViewController:self]; - - if ([animator respondsToSelector:@selector(animationEnded:)]) { - [animator animationEnded:didComplete]; - } - - self.connectionTypeSegmentedControl.userInteractionEnabled = YES; - self.currentViewController = toViewController; - }]; - transitionContext.animated = YES; - transitionContext.interactive = NO; - - self.connectionTypeSegmentedControl.userInteractionEnabled = NO; - [animator animateTransition:transitionContext]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.h b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.h deleted file mode 100644 index 5ebb3801c..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.h +++ /dev/null @@ -1,9 +0,0 @@ -// -// ConnectionIAPTableViewController.h -// SmartDeviceLink-iOS - -#import - -@interface ConnectionIAPTableViewController : UITableViewController - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.m b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.m deleted file mode 100644 index 456f68cf2..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.m +++ /dev/null @@ -1,92 +0,0 @@ -// -// ConnectionIAPTableViewController.m -// SmartDeviceLink-iOS - -#import "ConnectionIAPTableViewController.h" - -#import "ProxyManager.h" - - - -@interface ConnectionIAPTableViewController () - -@property (weak, nonatomic) IBOutlet UITableViewCell *connectTableViewCell; -@property (weak, nonatomic) IBOutlet UIButton *connectButton; - -@end - - - -@implementation ConnectionIAPTableViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - - // Observe Proxy Manager state - [[ProxyManager sharedManager] addObserver:self forKeyPath:NSStringFromSelector(@selector(state)) options:(NSKeyValueObservingOptionInitial|NSKeyValueObservingOptionNew) context:nil]; - - // Tableview setup - self.tableView.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag; - - // Connect Button setup - self.connectButton.tintColor = [UIColor whiteColor]; -} - -- (void)dealloc { - @try { - [[ProxyManager sharedManager] removeObserver:self forKeyPath:NSStringFromSelector(@selector(state))]; - } @catch (NSException __unused *exception) {} -} - - -#pragma mark - IBActions - -- (IBAction)connectButtonWasPressed:(UIButton *)sender { - ProxyState state = [ProxyManager sharedManager].state; - switch (state) { - case ProxyStateStopped: { - [[ProxyManager sharedManager] startProxyWithTransportType:ProxyTransportTypeIAP]; - } break; - case ProxyStateSearchingForConnection: { - [[ProxyManager sharedManager] stopProxy]; - } break; - case ProxyStateConnected: { - [[ProxyManager sharedManager] stopProxy]; - } break; - default: break; - } -} - - -#pragma mark - KVO - -- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { - if ([keyPath isEqualToString:NSStringFromSelector(@selector(state))]) { - ProxyState newState = [change[NSKeyValueChangeNewKey] unsignedIntegerValue]; - [self proxyManagerDidChangeState:newState]; - } -} - - -#pragma mark - Private Methods - -- (void)proxyManagerDidChangeState:(ProxyState)newState { - switch (newState) { - case ProxyStateStopped: { - self.connectTableViewCell.backgroundColor = [UIColor redColor]; - self.connectButton.titleLabel.text = @"Connect"; - } break; - case ProxyStateSearchingForConnection: { - self.connectTableViewCell.backgroundColor = [UIColor blueColor]; - self.connectButton.titleLabel.text = @"Stop Searching"; - } break; - case ProxyStateConnected: { - self.connectTableViewCell.backgroundColor = [UIColor greenColor]; - self.connectButton.titleLabel.text = @"Disconnect"; - } break; - default: break; - } -} - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.h b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.h deleted file mode 100644 index 8414dfcfc..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.h +++ /dev/null @@ -1,9 +0,0 @@ -// -// ConnectionTCPTableViewController.h -// SmartDeviceLink-iOS - -#import - -@interface ConnectionTCPTableViewController : UITableViewController - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.m b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.m deleted file mode 100644 index 9cb0110c7..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.m +++ /dev/null @@ -1,123 +0,0 @@ -// -// ConnectionTCPTableViewController.m -// SmartDeviceLink-iOS - -@import AVFoundation; - -#import "ConnectionTCPTableViewController.h" - -#import "Preferences.h" -#import "ProxyManager.h" -#import "SDLStreamingMediaManager.h" - -#import - -@interface ConnectionTCPTableViewController () - -@property (weak, nonatomic) IBOutlet UITextField *ipAddressTextField; -@property (weak, nonatomic) IBOutlet UITextField *portTextField; - -@property (weak, nonatomic) IBOutlet UITableViewCell *connectTableViewCell; -@property (weak, nonatomic) IBOutlet UIButton *connectButton; - -@end - - - -@implementation ConnectionTCPTableViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - - // Observe Proxy Manager state - [[ProxyManager sharedManager] addObserver:self forKeyPath:NSStringFromSelector(@selector(state)) options:(NSKeyValueObservingOptionInitial|NSKeyValueObservingOptionNew) context:nil]; - - // Tableview setup - self.tableView.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag; - self.ipAddressTextField.text = [Preferences sharedPreferences].ipAddress; - self.portTextField.text = [Preferences sharedPreferences].port; - - // Connect Button setup - self.connectButton.tintColor = [UIColor whiteColor]; -} - -- (void)dealloc { - @try { - [[ProxyManager sharedManager] removeObserver:self forKeyPath:NSStringFromSelector(@selector(state))]; - } @catch (NSException __unused *exception) {} -} - -- (void)didReceiveMemoryWarning { - NSLog(@"***** MEMORY WARNING *****"); -} - - -#pragma mark - IBActions - -- (IBAction)connectButtonWasPressed:(UIButton *)sender { - [Preferences sharedPreferences].ipAddress = self.ipAddressTextField.text; - [Preferences sharedPreferences].port = self.portTextField.text; - - ProxyState state = [ProxyManager sharedManager].state; - switch (state) { - case ProxyStateStopped: { - [[ProxyManager sharedManager] startProxyWithTransportType:ProxyTransportTypeTCP]; - } break; - case ProxyStateSearchingForConnection: { - [[ProxyManager sharedManager] stopProxy]; - } break; - case ProxyStateConnected: { - [[ProxyManager sharedManager] stopProxy]; - } break; - default: break; - } -} - - -#pragma mark - Table view delegate - -- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { - if (indexPath.section != 0) { - return; - } - - switch (indexPath.row) { - case 0: { - [self.ipAddressTextField becomeFirstResponder]; - } break; - case 1: { - [self.portTextField becomeFirstResponder]; - } break; - default: break; - } -} - - -#pragma mark - KVO - -- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { - if ([keyPath isEqualToString:NSStringFromSelector(@selector(state))]) { - ProxyState newState = [change[NSKeyValueChangeNewKey] unsignedIntegerValue]; - [self proxyManagerDidChangeState:newState]; - } -} - -- (void)proxyManagerDidChangeState:(ProxyState)newState { - switch (newState) { - case ProxyStateStopped: { - self.connectTableViewCell.backgroundColor = [UIColor redColor]; - self.connectButton.titleLabel.text = @"Connect"; - } break; - case ProxyStateSearchingForConnection: { - self.connectTableViewCell.backgroundColor = [UIColor blueColor]; - self.connectButton.titleLabel.text = @"Stop Searching"; - } break; - case ProxyStateConnected: { - self.connectTableViewCell.backgroundColor = [UIColor greenColor]; - self.connectButton.titleLabel.text = @"Disconnect"; - } break; - default: break; - } -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.h b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.h deleted file mode 100644 index eda85adef..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.h +++ /dev/null @@ -1,25 +0,0 @@ -// -// ConnectionTransitionContext.h -// SmartDeviceLink-iOS - -#import - -#import - - -typedef NS_ENUM(NSUInteger, ConnectionTransitionDirection) { - ConnectionTransitionDirectionLeft, - ConnectionTransitionDirectionRight -}; - -typedef void (^TransitionCompleteBlock)(BOOL didComplete); - - -@interface ConnectionTransitionContext : NSObject - -@property (assign, nonatomic, getter=isAnimated) BOOL animated; -@property (assign, nonatomic, getter=isInteractive) BOOL interactive; - -- (instancetype)initWithFromViewController:(UIViewController *)fromViewController toViewController:(UIViewController *)toViewController direction:(ConnectionTransitionDirection)direction transitionComplete:(TransitionCompleteBlock)completion; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.m b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.m deleted file mode 100644 index 049d5ee40..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.m +++ /dev/null @@ -1,109 +0,0 @@ -// -// ConnectionTransitionContext.m -// SmartDeviceLink-iOS - -#import "ConnectionTransitionContext.h" - - - -@interface ConnectionTransitionContext () - -@property (assign, nonatomic) UIModalTransitionStyle presentationStyle; - -@property (weak, nonatomic) UIView *containerView; -@property (strong, nonatomic) NSDictionary *viewControllers; - -@property (assign, nonatomic) CGRect disappearingFromRect; -@property (assign, nonatomic) CGRect disappearingToRect; -@property (assign, nonatomic) CGRect appearingFromRect; -@property (assign, nonatomic) CGRect appearingToRect; - -@property (copy, nonatomic) TransitionCompleteBlock block; - -@end - - - -@implementation ConnectionTransitionContext - -- (instancetype)initWithFromViewController:(UIViewController *)fromViewController toViewController:(UIViewController *)toViewController direction:(ConnectionTransitionDirection)direction transitionComplete:(TransitionCompleteBlock)completion { - NSAssert((fromViewController.isViewLoaded && fromViewController.view.superview), @"The fromViewController must reside in the container view when initializing the transition context"); - - self = [super init]; - if (!self) { - return nil; - } - - self.presentationStyle = UIModalPresentationCustom; - self.containerView = fromViewController.view.superview; - self.viewControllers = @{ - UITransitionContextFromViewControllerKey: fromViewController, - UITransitionContextToViewControllerKey: toViewController - }; - - CGFloat travelDistance = (direction == ConnectionTransitionDirectionRight) ? -self.containerView.bounds.size.width : self.containerView.bounds.size.width; - self.disappearingFromRect = self.appearingToRect = self.containerView.bounds; - self.disappearingToRect = CGRectOffset(self.containerView.bounds, travelDistance, 0); - self.appearingFromRect = CGRectOffset(self.containerView.bounds, -travelDistance, 0); - - self.block = completion; - - return self; -} - -#pragma mark - UIViewControllerContextTransitioning - -- (CGRect)initialFrameForViewController:(UIViewController *)vc { - if (vc == [self viewControllerForKey:UITransitionContextFromViewControllerKey]) { - return self.disappearingFromRect; - } else { - return self.appearingFromRect; - } -} - -- (CGRect)finalFrameForViewController:(UIViewController *)vc { - if (vc == [self viewControllerForKey:UITransitionContextFromViewControllerKey]) { - return self.disappearingToRect; - } else { - return self.appearingToRect; - } -} - -- (UIViewController *)viewControllerForKey:(NSString *)key { - return self.viewControllers[key]; -} - -- (void)completeTransition:(BOOL)didComplete { - if (self.block != NULL) { - self.block(didComplete); - } -} - -- (BOOL)transitionWasCancelled { - return NO; -} - -- (UIView *)viewForKey:(NSString *)key { - UIViewController *viewController = nil; - if ([key isEqualToString:UITransitionContextFromViewControllerKey]) { - viewController = [self viewControllerForKey:UITransitionContextFromViewControllerKey]; - } else { - viewController = [self viewControllerForKey:UITransitionContextToViewControllerKey]; - } - - return viewController.view; -} - -- (CGAffineTransform)targetTransform { - return CGAffineTransformIdentity; -} - - -#pragma mark Interactive Transition - -- (void)updateInteractiveTransition:(CGFloat)percentComplete {} -- (void)finishInteractiveTransition {} -- (void)cancelInteractiveTransition {} - - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/Preferences.h b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/Preferences.h deleted file mode 100644 index 5b628cf92..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/Preferences.h +++ /dev/null @@ -1,27 +0,0 @@ -// -// Preferences.h -// SmartDeviceLink-iOS - -#import - -/** - * A fully thread safe way to set and access preferences stored on NSUserDefaults - * just read and write the property values, don't access them via iVar, you won't get - * very far...HA. I rhymed. Access them via the shared preferences object, or don't... - * the result will be the same. Like, exactly the same. Hopefully. - */ -@interface Preferences : NSObject - -/***** Computed Properties *****/ -// Connection -@property (strong, nonatomic) NSString *ipAddress; -@property (strong, nonatomic) NSString *port; - -+ (instancetype)sharedPreferences; - -/** - * Reset the properties in the defaults object to their default values, defined in the m file. - */ -- (void)resetPreferences; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/Preferences.m b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/Preferences.m deleted file mode 100644 index f103998da..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/Preferences.m +++ /dev/null @@ -1,112 +0,0 @@ -// -// Preferences.m -// SmartDeviceLink-iOS - -#import "Preferences.h" - - -NSString *const IPAddressPreferencesKey = @"SDLExampleAppIPAddress"; -NSString *const PortPreferencesKey = @"SDLExampleAppPort"; - -NSString *const DefaultIPAddressValue = @"192.168.1.1"; -NSString *const DefaultPortValue = @"12345"; - - - -@interface Preferences () - -@end - - - -@implementation Preferences - - -#pragma mark - Singleton / Initializers - -+ (instancetype)sharedPreferences { - static Preferences *sharedPreferences = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - sharedPreferences = [[Preferences alloc] init]; - }); - - return sharedPreferences; -} - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - if (self.ipAddress == nil || self.port == nil) { - [self resetPreferences]; - } - - return self; -} - - -#pragma mark - Public API - -- (void)resetPreferences { - self.ipAddress = DefaultIPAddressValue; - self.port = DefaultPortValue; -} - - -#pragma mark - Setters / Getters - -- (NSString *)ipAddress { - return [self stringForKey:IPAddressPreferencesKey]; -} - -- (void)setIpAddress:(NSString *)ipAddress { - [self setString:ipAddress forKey:IPAddressPreferencesKey]; -} - -- (NSString *)port { - return [self stringForKey:PortPreferencesKey]; -} - -- (void)setPort:(NSString *)port { - [self setString:port forKey:PortPreferencesKey]; -} - - -#pragma mark - Private User Defaults Helpers - -- (void)setString:(NSString *)aString forKey:(NSString *)aKey { - NSParameterAssert(aKey != nil); - - dispatch_async(self.class.preferencesQueue, ^{ - [[NSUserDefaults standardUserDefaults] setObject:aString forKey:aKey]; - }); -} - -- (NSString *)stringForKey:(NSString *)aKey { - NSParameterAssert(aKey != nil); - - __block NSString *retVal = nil; - dispatch_sync(self.class.preferencesQueue, ^{ - retVal = [[NSUserDefaults standardUserDefaults] stringForKey:aKey]; - }); - - return retVal; -} - - -#pragma mark - Class Queue - -+ (dispatch_queue_t)preferencesQueue { - static dispatch_queue_t preferencesQueue; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - preferencesQueue = dispatch_queue_create("com.sdl-example.preferences", DISPATCH_QUEUE_SERIAL); - }); - - return preferencesQueue; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ProxyManager.h b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ProxyManager.h deleted file mode 100644 index 604ffdc82..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ProxyManager.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// ProxyManager.h -// SmartDeviceLink-iOS - -#import - -@class SDLStreamingMediaManager; - - -typedef NS_ENUM(NSUInteger, ProxyTransportType) { - ProxyTransportTypeUnknown, - ProxyTransportTypeTCP, - ProxyTransportTypeIAP -}; - -typedef NS_ENUM(NSUInteger, ProxyState) { - ProxyStateStopped, - ProxyStateSearchingForConnection, - ProxyStateConnected -}; - - -@interface ProxyManager : NSObject - -@property (assign, nonatomic, readonly) ProxyState state; - -+ (instancetype)sharedManager; -- (void)startProxyWithTransportType:(ProxyTransportType)transportType; -- (void)resetProxyWithTransportType:(ProxyTransportType)transportType; -- (void)stopProxy; - -@property (strong, nonatomic, readonly) SDLStreamingMediaManager *mediaManager; - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ProxyManager.m b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ProxyManager.m deleted file mode 100644 index 355e91340..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/ProxyManager.m +++ /dev/null @@ -1,148 +0,0 @@ -// -// ProxyManager.m -// SmartDeviceLink-iOS - -@import SmartDeviceLink; - -#import "ProxyManager.h" - -#import "Preferences.h" - - -NSString *const SDLAppName = @"SDL Test"; -NSString *const SDLAppId = @"9999"; - - -@interface ProxyManager () - -@property (strong, nonatomic) SDLProxy *proxy; -@property (assign, nonatomic, readwrite) ProxyState state; -@property (assign, nonatomic) BOOL isFirstHMIFull; -@property (assign, nonatomic) ProxyTransportType currentTransportType; -@end - - -@implementation ProxyManager - -#pragma mark - Initialization - -+ (instancetype)sharedManager { - static ProxyManager *sharedManager = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - sharedManager = [[ProxyManager alloc] init]; - }); - - return sharedManager; -} - -- (instancetype)init { - self = [super init]; - if (self == nil) { - return nil; - } - - _proxy = nil; - _state = ProxyStateStopped; - _isFirstHMIFull = NO; - _currentTransportType = ProxyTransportTypeUnknown; - - return self; -} - - -#pragma mark - Public Proxy Setup - -- (void)resetProxyWithTransportType:(ProxyTransportType)transportType { - [self stopProxy]; - [self startProxyWithTransportType:transportType]; -} - - -#pragma mark - Private Proxy Setup - -- (void)startProxyWithTransportType:(ProxyTransportType)transportType { - if (self.proxy != nil) { - return; - } - - self.currentTransportType = transportType; - self.isFirstHMIFull = YES; - self.state = ProxyStateSearchingForConnection; - - switch (transportType) { - case ProxyTransportTypeTCP: { - self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self tcpIPAddress:[Preferences sharedPreferences].ipAddress tcpPort:[Preferences sharedPreferences].port]; - } break; - case ProxyTransportTypeIAP: { - self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self]; - } break; - default: NSAssert(NO, @"Unknown transport setup: %@", @(transportType)); - } -} - -- (void)stopProxy { - self.state = ProxyStateStopped; - - if (self.proxy != nil) { - [self.proxy dispose]; - self.proxy = nil; - } -} - -- (void)showInitialData { - SDLShow *showRPC = [SDLRPCRequestFactory buildShowWithMainField1:@"SDL" mainField2:@"Test" alignment:[SDLTextAlignment CENTERED] correlationID:[self nextCorrelationID]]; - [self.proxy sendRPC:showRPC]; -} - - -#pragma mark - Private Proxy Helpers - -- (NSNumber *)nextCorrelationID { - static NSInteger _correlationID = 1; - return @(_correlationID++); -} - -- (UInt32)nextMessageNumber { - static UInt32 _messageNumber = 1; - return _messageNumber++; -} - - -#pragma mark - SDLProxyListner delegate methods - -- (void)onProxyOpened { - self.state = ProxyStateConnected; - - SDLRegisterAppInterface *registerRequest = [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:SDLAppName languageDesired:[SDLLanguage EN_US] appID:SDLAppId]; - registerRequest.appHMIType = [NSMutableArray arrayWithObjects:[SDLAppHMIType MEDIA], nil]; - [self.proxy sendRPC:registerRequest]; -} - -- (void)onProxyClosed { - [self resetProxyWithTransportType:self.currentTransportType]; -} - -- (void)onOnDriverDistraction:(SDLOnDriverDistraction *)notification { - -} - -- (void)onOnHMIStatus:(SDLOnHMIStatus *)notification { - if ((notification.hmiLevel == [SDLHMILevel FULL]) && self.isFirstHMIFull) { - [self showInitialData]; - self.isFirstHMIFull = NO; - } -} - -- (void)onReceivedLockScreenIcon:(UIImage *)icon { - UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Lock Screen Icon" message:nil delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; - UIImageView *imageView = [[UIImageView alloc] initWithImage:icon]; - if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1) { - [alert setValue:imageView forKey:@"accessoryView"]; - }else{ - [alert addSubview:imageView]; - } - [alert show]; -} - -@end diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/main.m b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/main.m deleted file mode 100644 index 4566abbdd..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Classes/main.m +++ /dev/null @@ -1,12 +0,0 @@ -// -// main.m -// SmartDeviceLink-iOS - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Images.xcassets/AppIcon.appiconset/Contents.json b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Images.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 118c98f74..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Images.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Info.plist b/SmartDeviceLink-iOS/SmartDeviceLink_Example/Info.plist deleted file mode 100644 index 4754f95a8..000000000 --- a/SmartDeviceLink-iOS/SmartDeviceLink_Example/Info.plist +++ /dev/null @@ -1,91 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIBackgroundModes - - external-accessory - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedExternalAccessoryProtocols - - com.smartdevicelink.prot29 - com.smartdevicelink.prot28 - com.smartdevicelink.prot27 - com.smartdevicelink.prot26 - com.smartdevicelink.prot25 - com.smartdevicelink.prot24 - com.smartdevicelink.prot23 - com.smartdevicelink.prot22 - com.smartdevicelink.prot21 - com.smartdevicelink.prot20 - com.smartdevicelink.prot19 - com.smartdevicelink.prot18 - com.smartdevicelink.prot17 - com.smartdevicelink.prot16 - com.smartdevicelink.prot15 - com.smartdevicelink.prot14 - com.smartdevicelink.prot13 - com.smartdevicelink.prot12 - com.smartdevicelink.prot11 - com.smartdevicelink.prot10 - com.smartdevicelink.prot9 - com.smartdevicelink.prot8 - com.smartdevicelink.prot7 - com.smartdevicelink.prot6 - com.smartdevicelink.prot5 - com.smartdevicelink.prot4 - com.smartdevicelink.prot3 - com.smartdevicelink.prot2 - com.smartdevicelink.prot1 - com.smartdevicelink.prot0 - com.ford.sync.prot0 - - NSAppTransportSecurity - - NSExceptionDomains - - ford.com - - - NSIncludesSubdomains - - - NSTemporaryExceptionAllowsInsecureHTTPLoads - - - - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - - - diff --git a/SmartDeviceLink/EAAccessory+SDLProtocols.h b/SmartDeviceLink/EAAccessory+SDLProtocols.h new file mode 100644 index 000000000..417b5b07b --- /dev/null +++ b/SmartDeviceLink/EAAccessory+SDLProtocols.h @@ -0,0 +1,11 @@ +// +// EAAccessory+SyncProtocols.h +// + +#import + +@interface EAAccessory (SDLProtocols) + +- (BOOL)supportsProtocol:(NSString *)protocol; + +@end diff --git a/SmartDeviceLink/EAAccessory+SDLProtocols.m b/SmartDeviceLink/EAAccessory+SDLProtocols.m new file mode 100644 index 000000000..bffeeb829 --- /dev/null +++ b/SmartDeviceLink/EAAccessory+SDLProtocols.m @@ -0,0 +1,19 @@ +// +// EAAccessory+SyncProtocols.m +// + +#import "EAAccessory+SDLProtocols.h" + +@implementation EAAccessory (SDLProtocols) + +- (BOOL)supportsProtocol:(NSString *)protocol { + for (NSString *supportedProtocol in self.protocolStrings) { + if ([supportedProtocol isEqualToString:protocol]) { + return YES; + } + } + + return NO; +} + +@end diff --git a/SmartDeviceLink/EAAccessoryManager+SDLProtocols.h b/SmartDeviceLink/EAAccessoryManager+SDLProtocols.h new file mode 100644 index 000000000..b4b39d943 --- /dev/null +++ b/SmartDeviceLink/EAAccessoryManager+SDLProtocols.h @@ -0,0 +1,11 @@ +// +// EAAccessoryManager+SyncProtocols.h +// + +#import + +@interface EAAccessoryManager (SDLProtocols) + ++ (EAAccessory *)findAccessoryForProtocol:(NSString *)protocol; + +@end diff --git a/SmartDeviceLink/EAAccessoryManager+SDLProtocols.m b/SmartDeviceLink/EAAccessoryManager+SDLProtocols.m new file mode 100644 index 000000000..38b0b2477 --- /dev/null +++ b/SmartDeviceLink/EAAccessoryManager+SDLProtocols.m @@ -0,0 +1,20 @@ +// +// EAAccessoryManager+SyncProtocols.m +// + +#import "EAAccessory+SDLProtocols.h" +#import "EAAccessoryManager+SDLProtocols.h" + +@implementation EAAccessoryManager (SDLProtocols) + ++ (EAAccessory *)findAccessoryForProtocol:(NSString *)protocol { + for (EAAccessory *accessory in [[EAAccessoryManager sharedAccessoryManager] connectedAccessories]) { + if ([accessory supportsProtocol:protocol]) { + return accessory; + } + } + + return nil; +} + +@end diff --git a/SmartDeviceLink/Info.plist b/SmartDeviceLink/Info.plist new file mode 100644 index 000000000..438715f90 --- /dev/null +++ b/SmartDeviceLink/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 4.1.2 + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/SmartDeviceLink/NSThread+ThreadIndex.h b/SmartDeviceLink/NSThread+ThreadIndex.h new file mode 100644 index 000000000..60459e3e2 --- /dev/null +++ b/SmartDeviceLink/NSThread+ThreadIndex.h @@ -0,0 +1,9 @@ +// +// NSThread+ThreadIndex.h +// + +#import + +@interface NSThread (ThreadIndex) +- (NSInteger)threadIndex; +@end diff --git a/SmartDeviceLink/NSThread+ThreadIndex.m b/SmartDeviceLink/NSThread+ThreadIndex.m new file mode 100644 index 000000000..89cbbd5c2 --- /dev/null +++ b/SmartDeviceLink/NSThread+ThreadIndex.m @@ -0,0 +1,23 @@ +// +// NSThread+ThreadIndex.m +// + +#import "NSThread+ThreadIndex.h" + +@implementation NSThread (ThreadIndex) + +- (NSInteger)threadIndex { + NSString *description = [self description]; + NSArray *keyValuePairs = [description componentsSeparatedByString:@","]; + for (NSString *keyValuePair in keyValuePairs) { + NSArray *components = [keyValuePair componentsSeparatedByString:@"="]; + NSString *key = components[0]; + key = [key stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; + if ([key rangeOfString:@"num"].location != NSNotFound) { + return [components[1] integerValue]; + } + } + return -1; +} + +@end diff --git a/SmartDeviceLink/SDLAbstractProtocol.h b/SmartDeviceLink/SDLAbstractProtocol.h new file mode 100644 index 000000000..01a4c7e9d --- /dev/null +++ b/SmartDeviceLink/SDLAbstractProtocol.h @@ -0,0 +1,31 @@ +// SDLAbstractProtocol.h +// + +@class SDLAbstractTransport; +@class SDLRPCMessage; +@class SDLRPCRequest; + +#import "SDLProtocolListener.h" +#import "SDLTransportDelegate.h" + + +@interface SDLAbstractProtocol : NSObject + +@property (strong) NSString *debugConsoleGroupName; +@property (weak) SDLAbstractTransport *transport; +@property (strong) NSHashTable *protocolDelegateTable; // table of id + +// Sending +- (void)sendStartSessionWithType:(SDLServiceType)serviceType; +- (void)sendEndSessionWithType:(SDLServiceType)serviceType; +- (void)sendRPC:(SDLRPCMessage *)message; +- (void)sendRPCRequest:(SDLRPCRequest *)rpcRequest __deprecated_msg(("Use sendRPC: instead")); +- (void)sendHeartbeat __deprecated_msg("Heartbeat is no longer used."); +- (void)sendRawDataStream:(NSInputStream *)inputStream withServiceType:(SDLServiceType)serviceType; +- (void)sendRawData:(NSData *)data withServiceType:(SDLServiceType)serviceType; + +// Recieving +- (void)handleBytesFromTransport:(NSData *)receivedData; +- (void)dispose; + +@end diff --git a/SmartDeviceLink/SDLAbstractProtocol.m b/SmartDeviceLink/SDLAbstractProtocol.m new file mode 100644 index 000000000..ad536761c --- /dev/null +++ b/SmartDeviceLink/SDLAbstractProtocol.m @@ -0,0 +1,77 @@ +// SDLAbstractProtocol.m + +#import "SDLAbstractProtocol.h" + +#import "SDLRPCMessage.h" + + +@implementation SDLAbstractProtocol + +- (instancetype)init { + if (self = [super init]) { + _protocolDelegateTable = [NSHashTable weakObjectsHashTable]; + _debugConsoleGroupName = @"default"; + } + return self; +} + +// Implement in subclasses. +- (void)sendStartSessionWithType:(SDLServiceType)serviceType { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void)sendEndSessionWithType:(SDLServiceType)serviceType { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void)sendRPC:(SDLRPCMessage *)message { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void)sendRPCRequest:(SDLRPCRequest *)rpcRequest { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void)sendHeartbeat { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void)handleBytesFromTransport:(NSData *)receivedData { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void)sendRawDataStream:(NSInputStream *)inputStream withServiceType:(SDLServiceType)serviceType { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void)sendRawData:(NSData *)data withServiceType:(SDLServiceType)serviceType { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void)dispose { + [self doesNotRecognizeSelector:_cmd]; +} + + +#pragma - SDLTransportListener Implementation +- (void)onTransportConnected { + for (id listener in self.protocolDelegateTable.allObjects) { + if ([listener respondsToSelector:@selector(onProtocolOpened)]) { + [listener onProtocolOpened]; + } + } +} + +- (void)onTransportDisconnected { + for (id listener in self.protocolDelegateTable.allObjects) { + if ([listener respondsToSelector:@selector(onProtocolClosed)]) { + [listener onProtocolClosed]; + } + } +} + +- (void)onDataReceived:(NSData *)receivedData { + [self handleBytesFromTransport:receivedData]; +} + +@end diff --git a/SmartDeviceLink/SDLAbstractTransport.h b/SmartDeviceLink/SDLAbstractTransport.h new file mode 100644 index 000000000..a8a1f61be --- /dev/null +++ b/SmartDeviceLink/SDLAbstractTransport.h @@ -0,0 +1,18 @@ +// SDLAbstractTransport.h + +#import + +#import "SDLTransportDelegate.h" + +@interface SDLAbstractTransport : NSObject + +@property (weak) id delegate; +@property (strong) NSString *debugConsoleGroupName; + +- (void)connect; +- (void)disconnect; +- (void)sendData:(NSData *)dataToSend; +- (void)dispose; +- (double)retryDelay; + +@end diff --git a/SmartDeviceLink/SDLAbstractTransport.m b/SmartDeviceLink/SDLAbstractTransport.m new file mode 100644 index 000000000..6d7437748 --- /dev/null +++ b/SmartDeviceLink/SDLAbstractTransport.m @@ -0,0 +1,34 @@ +// SDLAbstractTransport.m + +#import "SDLAbstractTransport.h" + +@implementation SDLAbstractTransport + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (void)connect { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void)disconnect { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void)sendData:(NSData *)dataToSend { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void)dispose { + [self doesNotRecognizeSelector:_cmd]; +} + +- (double)retryDelay { + [self doesNotRecognizeSelector:_cmd]; + return 0.0; +} + +@end diff --git a/SmartDeviceLink/SDLAddCommand.h b/SmartDeviceLink/SDLAddCommand.h new file mode 100644 index 000000000..bce12fafd --- /dev/null +++ b/SmartDeviceLink/SDLAddCommand.h @@ -0,0 +1,92 @@ +// SDLAddCommand.h + + +#import "SDLRPCRequest.h" + +@class SDLMenuParams; +@class SDLImage; + + +/** + * This class will add a command to the application's Command Menu SDLMenuParams + * + * A command will be added to the end of the list of elements in + * the Command Menu under the following conditions: + *

  • When a SDLCommand is added with no SDLMenuParams value provided
  • + *
  • When a SDLMenuParams value is provided with a SDLMenuParam.position value + * greater than or equal to the number of menu items currently defined in the + * menu specified by the SDLMenuParam.parentID value
  • + * + * The set of choices which the application builds using SDLAddCommand can be a + * mixture of: + *
  • Choices having only VR synonym definitions, but no SDLMenuParams definitions + *
  • + *
  • Choices having only SDLMenuParams definitions, but no VR synonym definitions + *
  • + *
  • Choices having both SDLMenuParams and VR synonym definitions
  • + * + * HMILevel needs to be FULL, LIMITED or BACKGROUD + * + * @since SDL 1.0 + * + * @see SDLDeleteCommand SDLAddSubMenu SDLDeleteSubMenu + */ +@interface SDLAddCommand : SDLRPCRequest { +} + +/** + * Constructs a new SDLAddCommand object + */ +- (instancetype)init; + +/** + * Constructs a new *SDLAddCommand* object indicated by the dictionary parameter + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A Unique Command ID that identifies the command + * + * @discussion Is returned in an *SDLOnCommand* notification to identify the command selected by the user + * + * Required, Integer, 0 - 2,000,000,000 + */ +@property (strong) NSNumber *cmdID; + +/** + * @abstract a *SDLMenuParams* pointer which will defined the command and how it is added to the Command Menu + * + * @discussion If provided, this will define the command and how it is added to the + * Command Menu + * + * If null, commands will not be accessible through the HMI application menu + * + * Optional + */ +@property (strong) SDLMenuParams *menuParams; + +/** + * @abstract An array of strings to be used as VR synonyms for this command. + * + * @discussion If provided, defines one or more VR phrases the recognition of any of which triggers the *SDLOnCommand* notification with this cmdID + * + * If null, commands will not be accessible by voice commands (when the user hits push-to-talk) + * + * Optional, Array of Strings, Max String length 99 chars, Array size 1 - 100 + */ +@property (strong) NSMutableArray *vrCommands; + +/** + * @abstract Image struct containing a static or dynamic icon + * + * @discussion If provided, defines the image to be be shown along with a command + * + * If omitted on supported displays, no (or the default if applicable) icon will be displayed + * + * Optional + */ +@property (strong) SDLImage *cmdIcon; + +@end diff --git a/SmartDeviceLink/SDLAddCommand.m b/SmartDeviceLink/SDLAddCommand.m new file mode 100644 index 000000000..e9630665e --- /dev/null +++ b/SmartDeviceLink/SDLAddCommand.m @@ -0,0 +1,84 @@ +// SDLAddCommand.m +// + + +#import "SDLAddCommand.h" + +#import "SDLImage.h" +#import "SDLMenuParams.h" +#import "SDLNames.h" + + +@implementation SDLAddCommand + +- (instancetype)init { + if (self = [super initWithName:NAMES_AddCommand]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setCmdID:(NSNumber *)cmdID { + if (cmdID != nil) { + [parameters setObject:cmdID forKey:NAMES_cmdID]; + } else { + [parameters removeObjectForKey:NAMES_cmdID]; + } +} + +- (NSNumber *)cmdID { + return [parameters objectForKey:NAMES_cmdID]; +} + +- (void)setMenuParams:(SDLMenuParams *)menuParams { + if (menuParams != nil) { + [parameters setObject:menuParams forKey:NAMES_menuParams]; + } else { + [parameters removeObjectForKey:NAMES_menuParams]; + } +} + +- (SDLMenuParams *)menuParams { + NSObject *obj = [parameters objectForKey:NAMES_menuParams]; + if (obj == nil || [obj isKindOfClass:SDLMenuParams.class]) { + return (SDLMenuParams *)obj; + } else { + return [[SDLMenuParams alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setVrCommands:(NSMutableArray *)vrCommands { + if (vrCommands != nil) { + [parameters setObject:vrCommands forKey:NAMES_vrCommands]; + } else { + [parameters removeObjectForKey:NAMES_vrCommands]; + } +} + +- (NSMutableArray *)vrCommands { + return [parameters objectForKey:NAMES_vrCommands]; +} + +- (void)setCmdIcon:(SDLImage *)cmdIcon { + if (cmdIcon != nil) { + [parameters setObject:cmdIcon forKey:NAMES_cmdIcon]; + } else { + [parameters removeObjectForKey:NAMES_cmdIcon]; + } +} + +- (SDLImage *)cmdIcon { + NSObject *obj = [parameters objectForKey:NAMES_cmdIcon]; + if (obj == nil || [obj isKindOfClass:SDLImage.class]) { + return (SDLImage *)obj; + } else { + return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLAddCommandResponse.h b/SmartDeviceLink/SDLAddCommandResponse.h new file mode 100644 index 000000000..dfa132f6d --- /dev/null +++ b/SmartDeviceLink/SDLAddCommandResponse.h @@ -0,0 +1,18 @@ +// SDLAddCommandResponse.h + + +#import "SDLRPCResponse.h" + + +/** + * SDLAddCommandResponse is sent, when SDLAddCommand has been called + * + * Since SmartDeviceLink 1.0 + */ +@interface SDLAddCommandResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLAddCommandResponse.m b/SmartDeviceLink/SDLAddCommandResponse.m new file mode 100644 index 000000000..3beba9db6 --- /dev/null +++ b/SmartDeviceLink/SDLAddCommandResponse.m @@ -0,0 +1,21 @@ +// SDLAddCommandResponse.m + +#import "SDLAddCommandResponse.h" + +#import "SDLNames.h" + +@implementation SDLAddCommandResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_AddCommand]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLAddSubMenu.h b/SmartDeviceLink/SDLAddSubMenu.h new file mode 100644 index 000000000..0a749b382 --- /dev/null +++ b/SmartDeviceLink/SDLAddSubMenu.h @@ -0,0 +1,66 @@ +// SDLAddSubMenu.h + + +#import "SDLRPCRequest.h" + +/** + * Add a SDLSubMenu to the Command Menu + *

    + * A SDLSubMenu can only be added to the Top Level Menu (i.e.a SDLSubMenu cannot be + * added to a SDLSubMenu), and may only contain commands as children + *

    + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUD + *

    + * + * Since SmartDeviceLink 1.0
    + * see SDLDeleteSubMenu SDLAddCommand SDLDeleteCommand + */ +@interface SDLAddSubMenu : SDLRPCRequest { +} + +/** + * Constructs a new SDLAddSubMenu object + */ +- (instancetype)init; +/** + * Constructs a new SDLAddSubMenu object indicated by the dictionary parameter + *

    + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract a Menu ID that identifies a sub menu + * @discussion This value is used in + * SDLAddCommand to which SDLSubMenu is the parent of the command being added + *

    + */ +@property (strong) NSNumber *menuID; +/** + * @abstract a position of menu + * @discussion An NSNumber pointer representing the position within the items + * of the top level Command Menu. 0 will insert at the front, 1 + * will insert after the first existing element, etc. Position of + * any submenu will always be located before the return and exit + * options + *

    + * Notes:
    + *

      + *
    • + * Min Value: 0; Max Value: 1000
    • + *
    • If position is greater or equal than the number of items + * on top level, the sub menu will be appended by the end
    • + *
    • If this parameter is omitted, the entry will be added at + * the end of the list
    • + *
    + */ +@property (strong) NSNumber *position; +/** + * @abstract a menuName which is displayed representing this submenu item + * @discussion NSString which will be displayed representing this submenu item + */ +@property (strong) NSString *menuName; + +@end diff --git a/SmartDeviceLink/SDLAddSubMenu.m b/SmartDeviceLink/SDLAddSubMenu.m new file mode 100644 index 000000000..f02192b00 --- /dev/null +++ b/SmartDeviceLink/SDLAddSubMenu.m @@ -0,0 +1,57 @@ +// SDLAddSubMenu.m + +#import "SDLAddSubMenu.h" + +#import "SDLNames.h" + +@implementation SDLAddSubMenu + +- (instancetype)init { + if (self = [super initWithName:NAMES_AddSubMenu]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setMenuID:(NSNumber *)menuID { + if (menuID != nil) { + [parameters setObject:menuID forKey:NAMES_menuID]; + } else { + [parameters removeObjectForKey:NAMES_menuID]; + } +} + +- (NSNumber *)menuID { + return [parameters objectForKey:NAMES_menuID]; +} + +- (void)setPosition:(NSNumber *)position { + if (position != nil) { + [parameters setObject:position forKey:NAMES_position]; + } else { + [parameters removeObjectForKey:NAMES_position]; + } +} + +- (NSNumber *)position { + return [parameters objectForKey:NAMES_position]; +} + +- (void)setMenuName:(NSString *)menuName { + if (menuName != nil) { + [parameters setObject:menuName forKey:NAMES_menuName]; + } else { + [parameters removeObjectForKey:NAMES_menuName]; + } +} + +- (NSString *)menuName { + return [parameters objectForKey:NAMES_menuName]; +} + +@end diff --git a/SmartDeviceLink/SDLAddSubMenuResponse.h b/SmartDeviceLink/SDLAddSubMenuResponse.h new file mode 100644 index 000000000..2ea2157d7 --- /dev/null +++ b/SmartDeviceLink/SDLAddSubMenuResponse.h @@ -0,0 +1,16 @@ +// SDLAddSubMenuResponse.h + + +#import "SDLRPCResponse.h" + +/** + * SDLAddSubMenuResponse is sent, when SDLAddSubMenu has been called + * Since SmartDeviceLink 1.0 + */ +@interface SDLAddSubMenuResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLAddSubMenuResponse.m b/SmartDeviceLink/SDLAddSubMenuResponse.m new file mode 100644 index 000000000..5df2745b5 --- /dev/null +++ b/SmartDeviceLink/SDLAddSubMenuResponse.m @@ -0,0 +1,21 @@ +// SDLAddSubMenuResponse.m + +#import "SDLAddSubMenuResponse.h" + +#import "SDLNames.h" + +@implementation SDLAddSubMenuResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_AddSubMenu]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLAirbagStatus.h b/SmartDeviceLink/SDLAirbagStatus.h new file mode 100644 index 000000000..3681795b5 --- /dev/null +++ b/SmartDeviceLink/SDLAirbagStatus.h @@ -0,0 +1,24 @@ +// SDLAirbagStatus.h +// + +#import "SDLRPCMessage.h" + +@class SDLVehicleDataEventStatus; + + +@interface SDLAirbagStatus : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLVehicleDataEventStatus *driverAirbagDeployed; +@property (strong) SDLVehicleDataEventStatus *driverSideAirbagDeployed; +@property (strong) SDLVehicleDataEventStatus *driverCurtainAirbagDeployed; +@property (strong) SDLVehicleDataEventStatus *passengerAirbagDeployed; +@property (strong) SDLVehicleDataEventStatus *passengerCurtainAirbagDeployed; +@property (strong) SDLVehicleDataEventStatus *driverKneeAirbagDeployed; +@property (strong) SDLVehicleDataEventStatus *passengerSideAirbagDeployed; +@property (strong) SDLVehicleDataEventStatus *passengerKneeAirbagDeployed; + +@end diff --git a/SmartDeviceLink/SDLAirbagStatus.m b/SmartDeviceLink/SDLAirbagStatus.m new file mode 100644 index 000000000..a3ce06689 --- /dev/null +++ b/SmartDeviceLink/SDLAirbagStatus.m @@ -0,0 +1,159 @@ +// SDLAirbagStatus.m + +#import "SDLAirbagStatus.h" + +#import "SDLNames.h" +#import "SDLVehicleDataEventStatus.h" + + +@implementation SDLAirbagStatus + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setDriverAirbagDeployed:(SDLVehicleDataEventStatus *)driverAirbagDeployed { + if (driverAirbagDeployed != nil) { + [store setObject:driverAirbagDeployed forKey:NAMES_driverAirbagDeployed]; + } else { + [store removeObjectForKey:NAMES_driverAirbagDeployed]; + } +} + +- (SDLVehicleDataEventStatus *)driverAirbagDeployed { + NSObject *obj = [store objectForKey:NAMES_driverAirbagDeployed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setDriverSideAirbagDeployed:(SDLVehicleDataEventStatus *)driverSideAirbagDeployed { + if (driverSideAirbagDeployed != nil) { + [store setObject:driverSideAirbagDeployed forKey:NAMES_driverSideAirbagDeployed]; + } else { + [store removeObjectForKey:NAMES_driverSideAirbagDeployed]; + } +} + +- (SDLVehicleDataEventStatus *)driverSideAirbagDeployed { + NSObject *obj = [store objectForKey:NAMES_driverSideAirbagDeployed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setDriverCurtainAirbagDeployed:(SDLVehicleDataEventStatus *)driverCurtainAirbagDeployed { + if (driverCurtainAirbagDeployed != nil) { + [store setObject:driverCurtainAirbagDeployed forKey:NAMES_driverCurtainAirbagDeployed]; + } else { + [store removeObjectForKey:NAMES_driverCurtainAirbagDeployed]; + } +} + +- (SDLVehicleDataEventStatus *)driverCurtainAirbagDeployed { + NSObject *obj = [store objectForKey:NAMES_driverCurtainAirbagDeployed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setPassengerAirbagDeployed:(SDLVehicleDataEventStatus *)passengerAirbagDeployed { + if (passengerAirbagDeployed != nil) { + [store setObject:passengerAirbagDeployed forKey:NAMES_passengerAirbagDeployed]; + } else { + [store removeObjectForKey:NAMES_passengerAirbagDeployed]; + } +} + +- (SDLVehicleDataEventStatus *)passengerAirbagDeployed { + NSObject *obj = [store objectForKey:NAMES_passengerAirbagDeployed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setPassengerCurtainAirbagDeployed:(SDLVehicleDataEventStatus *)passengerCurtainAirbagDeployed { + if (passengerCurtainAirbagDeployed != nil) { + [store setObject:passengerCurtainAirbagDeployed forKey:NAMES_passengerCurtainAirbagDeployed]; + } else { + [store removeObjectForKey:NAMES_passengerCurtainAirbagDeployed]; + } +} + +- (SDLVehicleDataEventStatus *)passengerCurtainAirbagDeployed { + NSObject *obj = [store objectForKey:NAMES_passengerCurtainAirbagDeployed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setDriverKneeAirbagDeployed:(SDLVehicleDataEventStatus *)driverKneeAirbagDeployed { + if (driverKneeAirbagDeployed != nil) { + [store setObject:driverKneeAirbagDeployed forKey:NAMES_driverKneeAirbagDeployed]; + } else { + [store removeObjectForKey:NAMES_driverKneeAirbagDeployed]; + } +} + +- (SDLVehicleDataEventStatus *)driverKneeAirbagDeployed { + NSObject *obj = [store objectForKey:NAMES_driverKneeAirbagDeployed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setPassengerSideAirbagDeployed:(SDLVehicleDataEventStatus *)passengerSideAirbagDeployed { + if (passengerSideAirbagDeployed != nil) { + [store setObject:passengerSideAirbagDeployed forKey:NAMES_passengerSideAirbagDeployed]; + } else { + [store removeObjectForKey:NAMES_passengerSideAirbagDeployed]; + } +} + +- (SDLVehicleDataEventStatus *)passengerSideAirbagDeployed { + NSObject *obj = [store objectForKey:NAMES_passengerSideAirbagDeployed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setPassengerKneeAirbagDeployed:(SDLVehicleDataEventStatus *)passengerKneeAirbagDeployed { + if (passengerKneeAirbagDeployed != nil) { + [store setObject:passengerKneeAirbagDeployed forKey:NAMES_passengerKneeAirbagDeployed]; + } else { + [store removeObjectForKey:NAMES_passengerKneeAirbagDeployed]; + } +} + +- (SDLVehicleDataEventStatus *)passengerKneeAirbagDeployed { + NSObject *obj = [store objectForKey:NAMES_passengerKneeAirbagDeployed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLAlert.h b/SmartDeviceLink/SDLAlert.h new file mode 100644 index 000000000..59f909caa --- /dev/null +++ b/SmartDeviceLink/SDLAlert.h @@ -0,0 +1,144 @@ +// SDLAlert.h +// + + +#import "SDLRPCRequest.h" + +/** + * Shows an alert which typically consists of text-to-speech message and text on the display. At least either alertText1, alertText2 or TTSChunks need to be provided. + * + *
      + *
    • The displayed portion of the SDLAlert, if any, will persist until the + * specified timeout has elapsed, or the SDLAlert is preempted
    • + *
    • An SDLAlert will preempt (abort) any SmartDeviceLink Operation that is in-progress, + * except an already-in-progress SDLAlert
    • + *
    • An SDLAlert cannot be preempted by any SmartDeviceLink Operation
    • + *
    • An SDLAlert can be preempted by a user action (button push)
    • + *
    • An SDLAlert will fail if it is issued while another SDLAlert is in progress
    • + *
    • Although each Alert parameter is optional, in fact each SDLAlert request + * must supply at least one of the following parameters:
      + *
        + *
      • alertText1
      • + *
      • alertText2
      • + *
      • alertText3
      • + *
      • ttsChunks
      • + *
      + *
    • + *
    + *
    + * HMILevel needs to be FULL or LIMITED.
    + * If the app has been granted function group Notification the SDLHMILevel can + * also be BACKGROUND
    + * + * @since SDL 1.0 + */ +@interface SDLAlert : SDLRPCRequest { +} + +/** + * Constructs a new SDLAlert object + */ +- (instancetype)init; + +/** + * Constructs a new SDLAlert object indicated by the dictionary parameter + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + + +/** + * @abstract The String to be displayed in the first field of the display during the Alert + * + * @discussion Length is limited to what is indicated in *SDLRegisterAppInterface* response + * + * If omitted, top display line will be cleared + * + * Text is always centered + * + * Optional, Max length 500 chars + */ +@property (strong) NSString *alertText1; + +/** + * @abstract The String to be displayed in the second field of the display during the Alert + * + * @discussion Only permitted if HMI supports a second display line + * + * Length is limited to what is indicated in *SDLRegisterAppInterface* response + * + * If omitted, second display line will be cleared + * + * Text is always centered + * + * Optional, Max length 500 chars + */ +@property (strong) NSString *alertText2; + +/** + * @abstract the String to be displayed in the third field of the display during the Alert + * @discussion Only permitted if HMI supports a third display line + * + * Length is limited to what is indicated in *SDLRegisterAppInterface* response + * + * If omitted, third display line will be cleared + * + * Text is always centered + * + * Optional, Max length 500 chars + */ +@property (strong) NSString *alertText3; + +/** + * @abstract An array which, taken together, specify what is to be spoken to the user + * + * Optional, Array of SDLTTSChunk, Array length 1 - 100 + * + * @see SDLTTSChunk + */ +@property (strong) NSMutableArray *ttsChunks; + +/** + * @abstract The duration of the displayed portion of the alert, in milliseconds. + * + * @discussion After this amount of time has passed, the display fields alertText1 and alertText2 will revert to what was displayed in those fields before the alert began. + * + * Typical timeouts are 3 - 5 seconds + * + * If omitted, the timeout is set to 5 seconds + * + * Optional, Integer, 3000 - 10000 + */ +@property (strong) NSNumber *duration; + +/** + * @abstract Whether the alert tone should be played before the TTS (if any) is spoken. + * + * @discussion If ommitted, no tone is played + * + * Optional, Boolean + */ +@property (strong) NSNumber *playTone; + +/** + * @abstract If supported on the given platform, the alert GUI will include some sort of animation indicating that loading of a feature is progressing. e.g. a spinning wheel or hourglass, etc. + * + * Optional, Boolean + * + * @since SmartDeviceLink 2.0 + */ +@property (strong) NSNumber *progressIndicator; + +/** + * @abstract App defined SoftButtons. + * + * @discussion If omitted on supported displays, the displayed alert shall not have any SoftButtons + * + * Optional, Array of SDLSoftButton, Array size 0 - 4 + * + * @see SDLSoftButton + */ +@property (strong) NSMutableArray *softButtons; + +@end diff --git a/SmartDeviceLink/SDLAlert.m b/SmartDeviceLink/SDLAlert.m new file mode 100644 index 000000000..ddc7fdc3a --- /dev/null +++ b/SmartDeviceLink/SDLAlert.m @@ -0,0 +1,137 @@ +// SDLAlert.m + +#import "SDLAlert.h" + +#import "SDLNames.h" +#import "SDLSoftButton.h" +#import "SDLTTSChunk.h" + +@implementation SDLAlert + +- (instancetype)init { + if (self = [super initWithName:NAMES_Alert]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setAlertText1:(NSString *)alertText1 { + if (alertText1 != nil) { + [parameters setObject:alertText1 forKey:NAMES_alertText1]; + } else { + [parameters removeObjectForKey:NAMES_alertText1]; + } +} + +- (NSString *)alertText1 { + return [parameters objectForKey:NAMES_alertText1]; +} + +- (void)setAlertText2:(NSString *)alertText2 { + if (alertText2 != nil) { + [parameters setObject:alertText2 forKey:NAMES_alertText2]; + } else { + [parameters removeObjectForKey:NAMES_alertText2]; + } +} + +- (NSString *)alertText2 { + return [parameters objectForKey:NAMES_alertText2]; +} + +- (void)setAlertText3:(NSString *)alertText3 { + if (alertText3 != nil) { + [parameters setObject:alertText3 forKey:NAMES_alertText3]; + } else { + [parameters removeObjectForKey:NAMES_alertText3]; + } +} + +- (NSString *)alertText3 { + return [parameters objectForKey:NAMES_alertText3]; +} + +- (void)setTtsChunks:(NSMutableArray *)ttsChunks { + if (ttsChunks != nil) { + [parameters setObject:ttsChunks forKey:NAMES_ttsChunks]; + } else { + [parameters removeObjectForKey:NAMES_ttsChunks]; + } +} + +- (NSMutableArray *)ttsChunks { + NSMutableArray *array = [parameters objectForKey:NAMES_ttsChunks]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setDuration:(NSNumber *)duration { + if (duration != nil) { + [parameters setObject:duration forKey:NAMES_duration]; + } else { + [parameters removeObjectForKey:NAMES_duration]; + } +} + +- (NSNumber *)duration { + return [parameters objectForKey:NAMES_duration]; +} + +- (void)setPlayTone:(NSNumber *)playTone { + if (playTone != nil) { + [parameters setObject:playTone forKey:NAMES_playTone]; + } else { + [parameters removeObjectForKey:NAMES_playTone]; + } +} + +- (NSNumber *)playTone { + return [parameters objectForKey:NAMES_playTone]; +} + +- (void)setProgressIndicator:(NSNumber *)progressIndicator { + if (progressIndicator != nil) { + [parameters setObject:progressIndicator forKey:NAMES_progressIndicator]; + } else { + [parameters removeObjectForKey:NAMES_progressIndicator]; + } +} + +- (NSNumber *)progressIndicator { + return [parameters objectForKey:NAMES_progressIndicator]; +} + +- (void)setSoftButtons:(NSMutableArray *)softButtons { + if (softButtons != nil) { + [parameters setObject:softButtons forKey:NAMES_softButtons]; + } else { + [parameters removeObjectForKey:NAMES_softButtons]; + } +} + +- (NSMutableArray *)softButtons { + NSMutableArray *array = [parameters objectForKey:NAMES_softButtons]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButton.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLAlertManeuver.h b/SmartDeviceLink/SDLAlertManeuver.h new file mode 100644 index 000000000..2bb8e12ed --- /dev/null +++ b/SmartDeviceLink/SDLAlertManeuver.h @@ -0,0 +1,19 @@ +// SDLAlertManeuver.h +// + + +#import "SDLRPCRequest.h" + +/** + * @since SmartDeviceLink 1.0 + */ +@interface SDLAlertManeuver : SDLRPCRequest { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSMutableArray *ttsChunks; +@property (strong) NSMutableArray *softButtons; + +@end diff --git a/SmartDeviceLink/SDLAlertManeuver.m b/SmartDeviceLink/SDLAlertManeuver.m new file mode 100644 index 000000000..81717506f --- /dev/null +++ b/SmartDeviceLink/SDLAlertManeuver.m @@ -0,0 +1,67 @@ +// SDLAlertManeuver.m +// + + +#import "SDLAlertManeuver.h" + +#import "SDLNames.h" +#import "SDLSoftButton.h" +#import "SDLTTSChunk.h" + +@implementation SDLAlertManeuver + +- (instancetype)init { + if (self = [super initWithName:NAMES_AlertManeuver]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setTtsChunks:(NSMutableArray *)ttsChunks { + if (ttsChunks != nil) { + [parameters setObject:ttsChunks forKey:NAMES_ttsChunks]; + } else { + [parameters removeObjectForKey:NAMES_ttsChunks]; + } +} + +- (NSMutableArray *)ttsChunks { + NSMutableArray *array = [parameters objectForKey:NAMES_ttsChunks]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setSoftButtons:(NSMutableArray *)softButtons { + if (softButtons != nil) { + [parameters setObject:softButtons forKey:NAMES_softButtons]; + } else { + [parameters removeObjectForKey:NAMES_softButtons]; + } +} + +- (NSMutableArray *)softButtons { + NSMutableArray *array = [parameters objectForKey:NAMES_softButtons]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButton.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLAlertManeuverResponse.h b/SmartDeviceLink/SDLAlertManeuverResponse.h new file mode 100644 index 000000000..b7d3d6c0a --- /dev/null +++ b/SmartDeviceLink/SDLAlertManeuverResponse.h @@ -0,0 +1,16 @@ +// SDLAlertManeuverResponse.h +// + + +#import "SDLRPCResponse.h" + +/** SDLAlertManeuverResponse is sent, when SDLAlertManeuver has been called. + * @since SmartDeviceLink 1.0 + */ +@interface SDLAlertManeuverResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLAlertManeuverResponse.m b/SmartDeviceLink/SDLAlertManeuverResponse.m new file mode 100644 index 000000000..5687d3117 --- /dev/null +++ b/SmartDeviceLink/SDLAlertManeuverResponse.m @@ -0,0 +1,22 @@ +// SDLAlertManeuverResponse.m +// + +#import "SDLAlertManeuverResponse.h" + +#import "SDLNames.h" + +@implementation SDLAlertManeuverResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_AlertManeuver]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLAlertResponse.h b/SmartDeviceLink/SDLAlertResponse.h new file mode 100644 index 000000000..81228d34a --- /dev/null +++ b/SmartDeviceLink/SDLAlertResponse.h @@ -0,0 +1,19 @@ +// SDLAlertResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Sent after SDLAlert has been sent + * @since SDL 1.0 + */ +@interface SDLAlertResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSNumber *tryAgainTime; + +@end diff --git a/SmartDeviceLink/SDLAlertResponse.m b/SmartDeviceLink/SDLAlertResponse.m new file mode 100644 index 000000000..f55982377 --- /dev/null +++ b/SmartDeviceLink/SDLAlertResponse.m @@ -0,0 +1,34 @@ +// SDLAlertResponse.m +// + +#import "SDLAlertResponse.h" + +#import "SDLNames.h" + +@implementation SDLAlertResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_Alert]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setTryAgainTime:(NSNumber *)tryAgainTime { + if (tryAgainTime != nil) { + [parameters setObject:tryAgainTime forKey:NAMES_tryAgainTime]; + } else { + [parameters removeObjectForKey:NAMES_tryAgainTime]; + } +} + +- (NSNumber *)tryAgainTime { + return [parameters objectForKey:NAMES_tryAgainTime]; +} + +@end diff --git a/SmartDeviceLink/SDLAmbientLightStatus.h b/SmartDeviceLink/SDLAmbientLightStatus.h new file mode 100644 index 000000000..c778c2104 --- /dev/null +++ b/SmartDeviceLink/SDLAmbientLightStatus.h @@ -0,0 +1,26 @@ +// SDLAmbientLightStatus.h +// + + +#import "SDLEnum.h" + +/** + * Reflects the status of the ambient light sensor + * @since SDL 3.0 + */ +@interface SDLAmbientLightStatus : SDLEnum { +} + ++ (SDLAmbientLightStatus *)valueOf:(NSString *)value; ++ (NSArray *)values; + ++ (SDLAmbientLightStatus *)NIGHT; ++ (SDLAmbientLightStatus *)TWILIGHT_1; ++ (SDLAmbientLightStatus *)TWILIGHT_2; ++ (SDLAmbientLightStatus *)TWILIGHT_3; ++ (SDLAmbientLightStatus *)TWILIGHT_4; ++ (SDLAmbientLightStatus *)DAY; ++ (SDLAmbientLightStatus *)UNKNOWN; ++ (SDLAmbientLightStatus *)INVALID; + +@end diff --git a/SmartDeviceLink/SDLAmbientLightStatus.m b/SmartDeviceLink/SDLAmbientLightStatus.m new file mode 100644 index 000000000..7fa21db4a --- /dev/null +++ b/SmartDeviceLink/SDLAmbientLightStatus.m @@ -0,0 +1,100 @@ +// SDLAmbientLightStatus.m +// + +#import "SDLAmbientLightStatus.h" + +SDLAmbientLightStatus *SDLAmbientLightStatus_NIGHT = nil; +SDLAmbientLightStatus *SDLAmbientLightStatus_TWILIGHT_1 = nil; +SDLAmbientLightStatus *SDLAmbientLightStatus_TWILIGHT_2 = nil; +SDLAmbientLightStatus *SDLAmbientLightStatus_TWILIGHT_3 = nil; +SDLAmbientLightStatus *SDLAmbientLightStatus_TWILIGHT_4 = nil; +SDLAmbientLightStatus *SDLAmbientLightStatus_DAY = nil; +SDLAmbientLightStatus *SDLAmbientLightStatus_UNKNOWN = nil; +SDLAmbientLightStatus *SDLAmbientLightStatus_INVALID = nil; + +NSArray *SDLAmbientLightStatus_values = nil; + +@implementation SDLAmbientLightStatus + ++ (SDLAmbientLightStatus *)valueOf:(NSString *)value { + for (SDLAmbientLightStatus *item in SDLAmbientLightStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLAmbientLightStatus_values == nil) { + SDLAmbientLightStatus_values = @[ + SDLAmbientLightStatus.NIGHT, + SDLAmbientLightStatus.TWILIGHT_1, + SDLAmbientLightStatus.TWILIGHT_2, + SDLAmbientLightStatus.TWILIGHT_3, + SDLAmbientLightStatus.TWILIGHT_4, + SDLAmbientLightStatus.DAY, + SDLAmbientLightStatus.UNKNOWN, + SDLAmbientLightStatus.INVALID, + ]; + } + return SDLAmbientLightStatus_values; +} + ++ (SDLAmbientLightStatus *)NIGHT { + if (SDLAmbientLightStatus_NIGHT == nil) { + SDLAmbientLightStatus_NIGHT = [[SDLAmbientLightStatus alloc] initWithValue:@"NIGHT"]; + } + return SDLAmbientLightStatus_NIGHT; +} + ++ (SDLAmbientLightStatus *)TWILIGHT_1 { + if (SDLAmbientLightStatus_TWILIGHT_1 == nil) { + SDLAmbientLightStatus_TWILIGHT_1 = [[SDLAmbientLightStatus alloc] initWithValue:@"TWILIGHT_1"]; + } + return SDLAmbientLightStatus_TWILIGHT_1; +} + ++ (SDLAmbientLightStatus *)TWILIGHT_2 { + if (SDLAmbientLightStatus_TWILIGHT_2 == nil) { + SDLAmbientLightStatus_TWILIGHT_2 = [[SDLAmbientLightStatus alloc] initWithValue:@"TWILIGHT_2"]; + } + return SDLAmbientLightStatus_TWILIGHT_2; +} + ++ (SDLAmbientLightStatus *)TWILIGHT_3 { + if (SDLAmbientLightStatus_TWILIGHT_3 == nil) { + SDLAmbientLightStatus_TWILIGHT_3 = [[SDLAmbientLightStatus alloc] initWithValue:@"TWILIGHT_3"]; + } + return SDLAmbientLightStatus_TWILIGHT_3; +} + ++ (SDLAmbientLightStatus *)TWILIGHT_4 { + if (SDLAmbientLightStatus_TWILIGHT_4 == nil) { + SDLAmbientLightStatus_TWILIGHT_4 = [[SDLAmbientLightStatus alloc] initWithValue:@"TWILIGHT_4"]; + } + return SDLAmbientLightStatus_TWILIGHT_4; +} + ++ (SDLAmbientLightStatus *)DAY { + if (SDLAmbientLightStatus_DAY == nil) { + SDLAmbientLightStatus_DAY = [[SDLAmbientLightStatus alloc] initWithValue:@"DAY"]; + } + return SDLAmbientLightStatus_DAY; +} + ++ (SDLAmbientLightStatus *)UNKNOWN { + if (SDLAmbientLightStatus_UNKNOWN == nil) { + SDLAmbientLightStatus_UNKNOWN = [[SDLAmbientLightStatus alloc] initWithValue:@"UNKNOWN"]; + } + return SDLAmbientLightStatus_UNKNOWN; +} + ++ (SDLAmbientLightStatus *)INVALID { + if (SDLAmbientLightStatus_INVALID == nil) { + SDLAmbientLightStatus_INVALID = [[SDLAmbientLightStatus alloc] initWithValue:@"INVALID"]; + } + return SDLAmbientLightStatus_INVALID; +} + +@end diff --git a/SmartDeviceLink/SDLAppHMIType.h b/SmartDeviceLink/SDLAppHMIType.h new file mode 100644 index 000000000..3aaa45170 --- /dev/null +++ b/SmartDeviceLink/SDLAppHMIType.h @@ -0,0 +1,96 @@ +// SDLAppHMIType.h +// + + +#import "SDLEnum.h" + +/** + * Enumeration listing possible app hmi types. + * + * @since SDL 2.0 + */ +@interface SDLAppHMIType : SDLEnum { +} + +/** + * @abstract Convert String to AppHMIType + * + * @param value The value of the string to get an object for + * + * @return SDLAppHMIType + */ ++ (SDLAppHMIType *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLAppHMIType + * + * @return an array that store all possible SDLAppHMIType + */ ++ (NSArray *)values; + +/** + * @abstract The App will have default rights. + * + * @return SDLAppHMIType with value *DEFAULT* + */ ++ (SDLAppHMIType *)DEFAULT; + +/** + * @abstract Communication type of App + * + * @return SDLAppHMIType with value *COMMUNICATION* + */ ++ (SDLAppHMIType *)COMMUNICATION; + +/** + * @abstract App dealing with Media + * + * @return SDLAppHMIType with value *MEDIA* + */ ++ (SDLAppHMIType *)MEDIA; + +/** + * @abstract Messaging App + * + * @return SDLAppHMIType with value *MESSAGING* + */ ++ (SDLAppHMIType *)MESSAGING; + +/** + * @abstract Navigation App + * + * @return SDLAppHMIType with value *NAVIGATION* + */ ++ (SDLAppHMIType *)NAVIGATION; + +/** + * @abstract Information App + * + * @return SDLAppHMIType with value *INFORMATION* + */ ++ (SDLAppHMIType *)INFORMATION; + +/** + * @abstract App dealing with social media + * + * @return SDLAppHMIType with value *SOCIAL* + */ ++ (SDLAppHMIType *)SOCIAL; + ++ (SDLAppHMIType *)BACKGROUND_PROCESS; + +/** + * @abstract App only for Testing purposes + * + * @return SDLAppHMIType with value *TESTING* + */ ++ (SDLAppHMIType *)TESTING; + +/** + * @abstract System App + * + * @return SDLAppHMIType with value *SYSTEM* + */ ++ (SDLAppHMIType *)SYSTEM; + +@end diff --git a/SmartDeviceLink/SDLAppHMIType.m b/SmartDeviceLink/SDLAppHMIType.m new file mode 100644 index 000000000..f09f3af44 --- /dev/null +++ b/SmartDeviceLink/SDLAppHMIType.m @@ -0,0 +1,119 @@ +// SDLAppHMIType.m +// + + +#import "SDLAppHMIType.h" + +SDLAppHMIType *SDLAppHMIType_DEFAULT = nil; +SDLAppHMIType *SDLAppHMIType_COMMUNICATION = nil; +SDLAppHMIType *SDLAppHMIType_MEDIA = nil; +SDLAppHMIType *SDLAppHMIType_MESSAGING = nil; +SDLAppHMIType *SDLAppHMIType_NAVIGATION = nil; +SDLAppHMIType *SDLAppHMIType_INFORMATION = nil; +SDLAppHMIType *SDLAppHMIType_SOCIAL = nil; +SDLAppHMIType *SDLAppHMIType_BACKGROUND_PROCESS = nil; +SDLAppHMIType *SDLAppHMIType_TESTING = nil; +SDLAppHMIType *SDLAppHMIType_SYSTEM = nil; + +NSArray *SDLAppHMIType_values = nil; + +@implementation SDLAppHMIType + ++ (SDLAppHMIType *)valueOf:(NSString *)value { + for (SDLAppHMIType *item in SDLAppHMIType.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLAppHMIType_values == nil) { + SDLAppHMIType_values = @[ + SDLAppHMIType.DEFAULT, + SDLAppHMIType.COMMUNICATION, + SDLAppHMIType.MEDIA, + SDLAppHMIType.MESSAGING, + SDLAppHMIType.NAVIGATION, + SDLAppHMIType.INFORMATION, + SDLAppHMIType.SOCIAL, + SDLAppHMIType.BACKGROUND_PROCESS, + SDLAppHMIType.TESTING, + SDLAppHMIType.SYSTEM, + ]; + } + return SDLAppHMIType_values; +} + ++ (SDLAppHMIType *)DEFAULT { + if (SDLAppHMIType_DEFAULT == nil) { + SDLAppHMIType_DEFAULT = [[SDLAppHMIType alloc] initWithValue:@"DEFAULT"]; + } + return SDLAppHMIType_DEFAULT; +} + ++ (SDLAppHMIType *)COMMUNICATION { + if (SDLAppHMIType_COMMUNICATION == nil) { + SDLAppHMIType_COMMUNICATION = [[SDLAppHMIType alloc] initWithValue:@"COMMUNICATION"]; + } + return SDLAppHMIType_COMMUNICATION; +} + ++ (SDLAppHMIType *)MEDIA { + if (SDLAppHMIType_MEDIA == nil) { + SDLAppHMIType_MEDIA = [[SDLAppHMIType alloc] initWithValue:@"MEDIA"]; + } + return SDLAppHMIType_MEDIA; +} + ++ (SDLAppHMIType *)MESSAGING { + if (SDLAppHMIType_MESSAGING == nil) { + SDLAppHMIType_MESSAGING = [[SDLAppHMIType alloc] initWithValue:@"MESSAGING"]; + } + return SDLAppHMIType_MESSAGING; +} + ++ (SDLAppHMIType *)NAVIGATION { + if (SDLAppHMIType_NAVIGATION == nil) { + SDLAppHMIType_NAVIGATION = [[SDLAppHMIType alloc] initWithValue:@"NAVIGATION"]; + } + return SDLAppHMIType_NAVIGATION; +} + ++ (SDLAppHMIType *)INFORMATION { + if (SDLAppHMIType_INFORMATION == nil) { + SDLAppHMIType_INFORMATION = [[SDLAppHMIType alloc] initWithValue:@"INFORMATION"]; + } + return SDLAppHMIType_INFORMATION; +} + ++ (SDLAppHMIType *)SOCIAL { + if (SDLAppHMIType_SOCIAL == nil) { + SDLAppHMIType_SOCIAL = [[SDLAppHMIType alloc] initWithValue:@"SOCIAL"]; + } + return SDLAppHMIType_SOCIAL; +} + ++ (SDLAppHMIType *)BACKGROUND_PROCESS { + if (SDLAppHMIType_BACKGROUND_PROCESS == nil) { + SDLAppHMIType_BACKGROUND_PROCESS = [[SDLAppHMIType alloc] initWithValue:@"BACKGROUND_PROCESS"]; + } + return SDLAppHMIType_BACKGROUND_PROCESS; +} + ++ (SDLAppHMIType *)TESTING { + if (SDLAppHMIType_TESTING == nil) { + SDLAppHMIType_TESTING = [[SDLAppHMIType alloc] initWithValue:@"TESTING"]; + } + return SDLAppHMIType_TESTING; +} + ++ (SDLAppHMIType *)SYSTEM { + if (SDLAppHMIType_SYSTEM == nil) { + SDLAppHMIType_SYSTEM = [[SDLAppHMIType alloc] initWithValue:@"SYSTEM"]; + } + return SDLAppHMIType_SYSTEM; +} + +@end diff --git a/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.h b/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.h new file mode 100644 index 000000000..4fce3ba16 --- /dev/null +++ b/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.h @@ -0,0 +1,103 @@ +// SDLAppInterfaceUnregisteredReason.h +// + + +#import "SDLEnum.h" + +/** + * Indicates reason why app interface was unregistered. The application is being disconnected by SDL. + * + * @since SDL 1.0 + */ +@interface SDLAppInterfaceUnregisteredReason : SDLEnum { +} + +/** + * @abstract Convert String to SDLAppInterfaceUnregisteredReason + * + * @param value String value to retrieve the object for + * + * @return SDLAppInterfaceUnregisteredReason + */ ++ (SDLAppInterfaceUnregisteredReason *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLAppInterfaceUnregisteredReason + * + * @return an array that stores all possible SDLAppInterfaceUnregisteredReason + */ ++ (NSArray *)values; + +/** + * @abstract Vehicle ignition turned off. + * + * @return SDLAppInterfaceUnregisteredReason with value *IGNITION_OFF* + */ ++ (SDLAppInterfaceUnregisteredReason *)IGNITION_OFF; + +/** + * @abstract Bluetooth was turned off, causing termination of a necessary Bluetooth connection. + * + * @return SDLAppInterfaceUnregisteredReason with value *BLUETOOTH_OFF* + */ ++ (SDLAppInterfaceUnregisteredReason *)BLUETOOTH_OFF; + +/** + * @abstract USB was disconnected, causing termination of a necessary iAP connection. + * + * @return SDLAppInterfaceUnregisteredReason with value *USB_DISCONNECTED* + */ ++ (SDLAppInterfaceUnregisteredReason *)USB_DISCONNECTED; + +/** + * @abstract Application attempted SmartDeviceLink RPC request while HMILevel = NONE. App must have HMILevel other than NONE to issue RPC requests or get notifications or RPC responses. + * + * @return SDLAppInterfaceUnregisteredReason with value *REQUEST_WHILE_IN_NONE_HMI_LEVEL* + */ ++ (SDLAppInterfaceUnregisteredReason *)REQUEST_WHILE_IN_NONE_HMI_LEVEL; + +/** + * @abstract Either too many -- or too many per unit of time -- requests were made by the application. + * + * @return SDLAppInterfaceUnregisteredReason with value *TOO_MANY_REQUESTS* + */ ++ (SDLAppInterfaceUnregisteredReason *)TOO_MANY_REQUESTS; + +/** + * @abstract The application has issued requests which cause driver distraction rules to be violated. + * + * @return SDLAppInterfaceUnregisteredReason with value *DRIVER_DISTRACTION_VIOLATION* + */ ++ (SDLAppInterfaceUnregisteredReason *)DRIVER_DISTRACTION_VIOLATION; + +/** + * @abstract The user performed a language change on the SDL platform, causing the application to need to be reregistered for the new language. + * + * @return SDLAppInterfaceUnregisteredReason with value *LANGUAGE_CHANGE* + */ ++ (SDLAppInterfaceUnregisteredReason *)LANGUAGE_CHANGE; + +/** + * @abstract The user performed a MASTER RESET on the SDL platform, causing removal of a necessary Bluetooth pairing. + * + * @return SDLAppInterfaceUnregisteredReason with value *MASTER_RESET* + */ ++ (SDLAppInterfaceUnregisteredReason *)MASTER_RESET; + +/** + * @abstract The user restored settings to FACTORY DEFAULTS on the SDL platform. + * + * @return SDLAppInterfaceUnregisteredReason with value *FACTORY_DEFAULTS* + */ ++ (SDLAppInterfaceUnregisteredReason *)FACTORY_DEFAULTS; + +/** + * @abstract The app is not being authorized to be connected to SDL. + * + * @return SDLAppInterfaceUnregisteredReason with value *APP_UNAUTHORIZED* + * + * @since SDL 2.0 + */ ++ (SDLAppInterfaceUnregisteredReason *)APP_UNAUTHORIZED; + +@end diff --git a/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.m b/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.m new file mode 100644 index 000000000..72c19a8f5 --- /dev/null +++ b/SmartDeviceLink/SDLAppInterfaceUnregisteredReason.m @@ -0,0 +1,118 @@ +// SDLAppInterfaceUnregisteredReason.m +// + +#import "SDLAppInterfaceUnregisteredReason.h" + +SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_IGNITION_OFF = nil; +SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_BLUETOOTH_OFF = nil; +SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_USB_DISCONNECTED = nil; +SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_REQUEST_WHILE_IN_NONE_HMI_LEVEL = nil; +SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_TOO_MANY_REQUESTS = nil; +SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_DRIVER_DISTRACTION_VIOLATION = nil; +SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_LANGUAGE_CHANGE = nil; +SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_MASTER_RESET = nil; +SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_FACTORY_DEFAULTS = nil; +SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_APP_UNAUTHORIZED = nil; + +NSArray *SDLAppInterfaceUnregisteredReason_values = nil; + +@implementation SDLAppInterfaceUnregisteredReason + ++ (SDLAppInterfaceUnregisteredReason *)valueOf:(NSString *)value { + for (SDLAppInterfaceUnregisteredReason *item in SDLAppInterfaceUnregisteredReason.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLAppInterfaceUnregisteredReason_values == nil) { + SDLAppInterfaceUnregisteredReason_values = @[ + SDLAppInterfaceUnregisteredReason.IGNITION_OFF, + SDLAppInterfaceUnregisteredReason.BLUETOOTH_OFF, + SDLAppInterfaceUnregisteredReason.USB_DISCONNECTED, + SDLAppInterfaceUnregisteredReason.REQUEST_WHILE_IN_NONE_HMI_LEVEL, + SDLAppInterfaceUnregisteredReason.TOO_MANY_REQUESTS, + SDLAppInterfaceUnregisteredReason.DRIVER_DISTRACTION_VIOLATION, + SDLAppInterfaceUnregisteredReason.LANGUAGE_CHANGE, + SDLAppInterfaceUnregisteredReason.MASTER_RESET, + SDLAppInterfaceUnregisteredReason.FACTORY_DEFAULTS, + SDLAppInterfaceUnregisteredReason.APP_UNAUTHORIZED, + ]; + } + return SDLAppInterfaceUnregisteredReason_values; +} + ++ (SDLAppInterfaceUnregisteredReason *)IGNITION_OFF { + if (SDLAppInterfaceUnregisteredReason_IGNITION_OFF == nil) { + SDLAppInterfaceUnregisteredReason_IGNITION_OFF = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"IGNITION_OFF"]; + } + return SDLAppInterfaceUnregisteredReason_IGNITION_OFF; +} + ++ (SDLAppInterfaceUnregisteredReason *)BLUETOOTH_OFF { + if (SDLAppInterfaceUnregisteredReason_BLUETOOTH_OFF == nil) { + SDLAppInterfaceUnregisteredReason_BLUETOOTH_OFF = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"BLUETOOTH_OFF"]; + } + return SDLAppInterfaceUnregisteredReason_BLUETOOTH_OFF; +} + ++ (SDLAppInterfaceUnregisteredReason *)USB_DISCONNECTED { + if (SDLAppInterfaceUnregisteredReason_USB_DISCONNECTED == nil) { + SDLAppInterfaceUnregisteredReason_USB_DISCONNECTED = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"USB_DISCONNECTED"]; + } + return SDLAppInterfaceUnregisteredReason_USB_DISCONNECTED; +} + ++ (SDLAppInterfaceUnregisteredReason *)REQUEST_WHILE_IN_NONE_HMI_LEVEL { + if (SDLAppInterfaceUnregisteredReason_REQUEST_WHILE_IN_NONE_HMI_LEVEL == nil) { + SDLAppInterfaceUnregisteredReason_REQUEST_WHILE_IN_NONE_HMI_LEVEL = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"REQUEST_WHILE_IN_NONE_HMI_LEVEL"]; + } + return SDLAppInterfaceUnregisteredReason_REQUEST_WHILE_IN_NONE_HMI_LEVEL; +} + ++ (SDLAppInterfaceUnregisteredReason *)TOO_MANY_REQUESTS { + if (SDLAppInterfaceUnregisteredReason_TOO_MANY_REQUESTS == nil) { + SDLAppInterfaceUnregisteredReason_TOO_MANY_REQUESTS = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"TOO_MANY_REQUESTS"]; + } + return SDLAppInterfaceUnregisteredReason_TOO_MANY_REQUESTS; +} + ++ (SDLAppInterfaceUnregisteredReason *)DRIVER_DISTRACTION_VIOLATION { + if (SDLAppInterfaceUnregisteredReason_DRIVER_DISTRACTION_VIOLATION == nil) { + SDLAppInterfaceUnregisteredReason_DRIVER_DISTRACTION_VIOLATION = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"DRIVER_DISTRACTION_VIOLATION"]; + } + return SDLAppInterfaceUnregisteredReason_DRIVER_DISTRACTION_VIOLATION; +} + ++ (SDLAppInterfaceUnregisteredReason *)LANGUAGE_CHANGE { + if (SDLAppInterfaceUnregisteredReason_LANGUAGE_CHANGE == nil) { + SDLAppInterfaceUnregisteredReason_LANGUAGE_CHANGE = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"LANGUAGE_CHANGE"]; + } + return SDLAppInterfaceUnregisteredReason_LANGUAGE_CHANGE; +} + ++ (SDLAppInterfaceUnregisteredReason *)MASTER_RESET { + if (SDLAppInterfaceUnregisteredReason_MASTER_RESET == nil) { + SDLAppInterfaceUnregisteredReason_MASTER_RESET = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"MASTER_RESET"]; + } + return SDLAppInterfaceUnregisteredReason_MASTER_RESET; +} + ++ (SDLAppInterfaceUnregisteredReason *)FACTORY_DEFAULTS { + if (SDLAppInterfaceUnregisteredReason_FACTORY_DEFAULTS == nil) { + SDLAppInterfaceUnregisteredReason_FACTORY_DEFAULTS = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"FACTORY_DEFAULTS"]; + } + return SDLAppInterfaceUnregisteredReason_FACTORY_DEFAULTS; +} + ++ (SDLAppInterfaceUnregisteredReason *)APP_UNAUTHORIZED { + if (SDLAppInterfaceUnregisteredReason_APP_UNAUTHORIZED == nil) { + SDLAppInterfaceUnregisteredReason_APP_UNAUTHORIZED = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"APP_UNAUTHORIZED"]; + } + return SDLAppInterfaceUnregisteredReason_APP_UNAUTHORIZED; +} + +@end diff --git a/SmartDeviceLink/SDLAudioPassThruCapabilities.h b/SmartDeviceLink/SDLAudioPassThruCapabilities.h new file mode 100644 index 000000000..96772b62b --- /dev/null +++ b/SmartDeviceLink/SDLAudioPassThruCapabilities.h @@ -0,0 +1,74 @@ +// SDLAudioPassThruCapabilities.h +// + +#import "SDLRPCMessage.h" + +@class SDLAudioType; +@class SDLBitsPerSample; +@class SDLSamplingRate; + + +/** + * Describes different audio type configurations for SDLPerformAudioPassThru, e.g. {8kHz,8-bit,PCM} + *

    Parameter List + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    NameTypeDescriptionSmartDeviceLink Ver. Available
    samplingRateSDLSamplingRate * Describes the sampling rate for AudioPassThru + * SmartDeviceLink 2.0
    bitsPerSampleSDLBitsPerSample * Describes the sample depth in bit for AudioPassThru + * SmartDeviceLink 2.0
    audioTypeSDLAudioType * Describes the audiotype for AudioPassThru + * SmartDeviceLink 2.0
    + * Since SmartDeviceLink 2.0 + */ +@interface SDLAudioPassThruCapabilities : SDLRPCStruct { +} + +/** + * Constructs a newly allocated SDLAudioPassThruCapabilities object + */ +- (instancetype)init; +/** + * Constructs a newly allocated SDLAudioPassThruCapabilities object indicated by the Hashtable parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The sampling rate for AudioPassThru
    + * + */ +@property (strong) SDLSamplingRate *samplingRate; +/** + * @abstract The sample depth in bit for AudioPassThru
    + * + */ +@property (strong) SDLBitsPerSample *bitsPerSample; +/** + * @abstract The audiotype for AudioPassThru
    + * + */ +@property (strong) SDLAudioType *audioType; + +@end diff --git a/SmartDeviceLink/SDLAudioPassThruCapabilities.m b/SmartDeviceLink/SDLAudioPassThruCapabilities.m new file mode 100644 index 000000000..fbb02be84 --- /dev/null +++ b/SmartDeviceLink/SDLAudioPassThruCapabilities.m @@ -0,0 +1,78 @@ +// SDLAudioPassThruCapabilities.m +// + + +#import "SDLAudioPassThruCapabilities.h" + +#import "SDLAudioType.h" +#import "SDLBitsPerSample.h" +#import "SDLNames.h" +#import "SDLSamplingRate.h" + + +@implementation SDLAudioPassThruCapabilities + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setSamplingRate:(SDLSamplingRate *)samplingRate { + if (samplingRate != nil) { + [store setObject:samplingRate forKey:NAMES_samplingRate]; + } else { + [store removeObjectForKey:NAMES_samplingRate]; + } +} + +- (SDLSamplingRate *)samplingRate { + NSObject *obj = [store objectForKey:NAMES_samplingRate]; + if (obj == nil || [obj isKindOfClass:SDLSamplingRate.class]) { + return (SDLSamplingRate *)obj; + } else { + return [SDLSamplingRate valueOf:(NSString *)obj]; + } +} + +- (void)setBitsPerSample:(SDLBitsPerSample *)bitsPerSample { + if (bitsPerSample != nil) { + [store setObject:bitsPerSample forKey:NAMES_bitsPerSample]; + } else { + [store removeObjectForKey:NAMES_bitsPerSample]; + } +} + +- (SDLBitsPerSample *)bitsPerSample { + NSObject *obj = [store objectForKey:NAMES_bitsPerSample]; + if (obj == nil || [obj isKindOfClass:SDLBitsPerSample.class]) { + return (SDLBitsPerSample *)obj; + } else { + return [SDLBitsPerSample valueOf:(NSString *)obj]; + } +} + +- (void)setAudioType:(SDLAudioType *)audioType { + if (audioType != nil) { + [store setObject:audioType forKey:NAMES_audioType]; + } else { + [store removeObjectForKey:NAMES_audioType]; + } +} + +- (SDLAudioType *)audioType { + NSObject *obj = [store objectForKey:NAMES_audioType]; + if (obj == nil || [obj isKindOfClass:SDLAudioType.class]) { + return (SDLAudioType *)obj; + } else { + return [SDLAudioType valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLAudioStreamingState.h b/SmartDeviceLink/SDLAudioStreamingState.h new file mode 100644 index 000000000..3f364495e --- /dev/null +++ b/SmartDeviceLink/SDLAudioStreamingState.h @@ -0,0 +1,52 @@ +// SDLAudioStreamingState.h +// + + +#import "SDLEnum.h" + +/** + * Describes whether or not streaming audio is currently audible to the user. Though provided in every OnHMIStatus notification, this information is only relevant for applications that declare themselves as media apps in RegisterAppInterface + * + * @since SDL 1.0 + */ +@interface SDLAudioStreamingState : SDLEnum { +} + +/** + * @abstract Convert String to SDLAudioStreamingState + * + * @param value The value of the string to get an object for + * + * @return SDLAudioStreamingState + */ ++ (SDLAudioStreamingState *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLAudioStreamingState + * + * @return an array that store all possible SDLAudioStreamingState + */ ++ (NSArray *)values; +/** + * @abstract Currently streaming audio, if any, is audible to user. + * + * @return SDLAudioStreamingState with value of *AUDIBLE* + */ ++ (SDLAudioStreamingState *)AUDIBLE; + +/** + * @abstract Some kind of audio mixing is taking place. Currently streaming audio, if any, is audible to the user at a lowered volume. + * + * @return SDLAudioStreamingState with value of *ATTENUATED* + * + * @since SDL 2.0 + */ ++ (SDLAudioStreamingState *)ATTENUATED; + +/** + * @abstract Currently streaming audio, if any, is not audible to user. made via VR session. + * + * @return SDLAudioStreamingState with value of *NOT_AUDIBLE* + */ ++ (SDLAudioStreamingState *)NOT_AUDIBLE; +@end diff --git a/SmartDeviceLink/SDLAudioStreamingState.m b/SmartDeviceLink/SDLAudioStreamingState.m new file mode 100644 index 000000000..38b8676c3 --- /dev/null +++ b/SmartDeviceLink/SDLAudioStreamingState.m @@ -0,0 +1,56 @@ +// SDLAudioStreamingState.m +// + + +#import "SDLAudioStreamingState.h" + +SDLAudioStreamingState *SDLAudioStreamingState_AUDIBLE = nil; +SDLAudioStreamingState *SDLAudioStreamingState_ATTENUATED = nil; +SDLAudioStreamingState *SDLAudioStreamingState_NOT_AUDIBLE = nil; + +NSArray *SDLAudioStreamingState_values = nil; + +@implementation SDLAudioStreamingState + ++ (SDLAudioStreamingState *)valueOf:(NSString *)value { + for (SDLAudioStreamingState *item in SDLAudioStreamingState.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLAudioStreamingState_values == nil) { + SDLAudioStreamingState_values = @[ + SDLAudioStreamingState.AUDIBLE, + SDLAudioStreamingState.ATTENUATED, + SDLAudioStreamingState.NOT_AUDIBLE, + ]; + } + return SDLAudioStreamingState_values; +} + ++ (SDLAudioStreamingState *)AUDIBLE { + if (SDLAudioStreamingState_AUDIBLE == nil) { + SDLAudioStreamingState_AUDIBLE = [[SDLAudioStreamingState alloc] initWithValue:@"AUDIBLE"]; + } + return SDLAudioStreamingState_AUDIBLE; +} + ++ (SDLAudioStreamingState *)ATTENUATED { + if (SDLAudioStreamingState_ATTENUATED == nil) { + SDLAudioStreamingState_ATTENUATED = [[SDLAudioStreamingState alloc] initWithValue:@"ATTENUATED"]; + } + return SDLAudioStreamingState_ATTENUATED; +} + ++ (SDLAudioStreamingState *)NOT_AUDIBLE { + if (SDLAudioStreamingState_NOT_AUDIBLE == nil) { + SDLAudioStreamingState_NOT_AUDIBLE = [[SDLAudioStreamingState alloc] initWithValue:@"NOT_AUDIBLE"]; + } + return SDLAudioStreamingState_NOT_AUDIBLE; +} + +@end diff --git a/SmartDeviceLink/SDLAudioType.h b/SmartDeviceLink/SDLAudioType.h new file mode 100644 index 000000000..2f1879eea --- /dev/null +++ b/SmartDeviceLink/SDLAudioType.h @@ -0,0 +1,38 @@ +// SDLAudioType.h +// + + +#import "SDLEnum.h" + +/** + Describes different audio type options for PerformAudioPassThru + */ +@interface SDLAudioType : SDLEnum { +} + +/** + * @abstract Convert String to SDLAudioType + * + * @param value The value of the string to get an object for + * + * @return SDLAudioType + */ ++ (SDLAudioType *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLAudioType + * + * @return an array that store all possible SDLAudioType + */ ++ (NSArray *)values; + +/** + * @abstract PCM raw audio + * + * @return SDLAudioType with value of *PCM* + * + * @since SDL 2.0 + */ ++ (SDLAudioType *)PCM; + +@end \ No newline at end of file diff --git a/SmartDeviceLink/SDLAudioType.m b/SmartDeviceLink/SDLAudioType.m new file mode 100644 index 000000000..5e99123c7 --- /dev/null +++ b/SmartDeviceLink/SDLAudioType.m @@ -0,0 +1,37 @@ +// SDLAudioType.m +// + +#import "SDLAudioType.h" + +SDLAudioType *SDLAudioType_PCM = nil; + +NSArray *SDLAudioType_values = nil; + +@implementation SDLAudioType + ++ (SDLAudioType *)valueOf:(NSString *)value { + for (SDLAudioType *item in SDLAudioType.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLAudioType_values == nil) { + SDLAudioType_values = @[ + SDLAudioType.PCM, + ]; + } + return SDLAudioType_values; +} + ++ (SDLAudioType *)PCM { + if (SDLAudioType_PCM == nil) { + SDLAudioType_PCM = [[SDLAudioType alloc] initWithValue:@"PCM"]; + } + return SDLAudioType_PCM; +} + +@end diff --git a/SmartDeviceLink/SDLBeltStatus.h b/SmartDeviceLink/SDLBeltStatus.h new file mode 100644 index 000000000..d12e42eb7 --- /dev/null +++ b/SmartDeviceLink/SDLBeltStatus.h @@ -0,0 +1,31 @@ +// SDLBeltStatus.h +// + +#import "SDLRPCMessage.h" + +@class SDLVehicleDataEventStatus; + + +@interface SDLBeltStatus : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLVehicleDataEventStatus *driverBeltDeployed; +@property (strong) SDLVehicleDataEventStatus *passengerBeltDeployed; +@property (strong) SDLVehicleDataEventStatus *passengerBuckleBelted; +@property (strong) SDLVehicleDataEventStatus *driverBuckleBelted; +@property (strong) SDLVehicleDataEventStatus *leftRow2BuckleBelted; +@property (strong) SDLVehicleDataEventStatus *passengerChildDetected; +@property (strong) SDLVehicleDataEventStatus *rightRow2BuckleBelted; +@property (strong) SDLVehicleDataEventStatus *middleRow2BuckleBelted; +@property (strong) SDLVehicleDataEventStatus *middleRow3BuckleBelted; +@property (strong) SDLVehicleDataEventStatus *leftRow3BuckleBelted; +@property (strong) SDLVehicleDataEventStatus *rightRow3BuckleBelted; +@property (strong) SDLVehicleDataEventStatus *leftRearInflatableBelted; +@property (strong) SDLVehicleDataEventStatus *rightRearInflatableBelted; +@property (strong) SDLVehicleDataEventStatus *middleRow1BeltDeployed; +@property (strong) SDLVehicleDataEventStatus *middleRow1BuckleBelted; + +@end diff --git a/SmartDeviceLink/SDLBeltStatus.m b/SmartDeviceLink/SDLBeltStatus.m new file mode 100644 index 000000000..70b54d2bd --- /dev/null +++ b/SmartDeviceLink/SDLBeltStatus.m @@ -0,0 +1,279 @@ +// SDLBeltStatus.m +// + +#import "SDLBeltStatus.h" + +#import "SDLNames.h" +#import "SDLVehicleDataEventStatus.h" + + +@implementation SDLBeltStatus + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setDriverBeltDeployed:(SDLVehicleDataEventStatus *)driverBeltDeployed { + if (driverBeltDeployed != nil) { + [store setObject:driverBeltDeployed forKey:NAMES_driverBeltDeployed]; + } else { + [store removeObjectForKey:NAMES_driverBeltDeployed]; + } +} + +- (SDLVehicleDataEventStatus *)driverBeltDeployed { + NSObject *obj = [store objectForKey:NAMES_driverBeltDeployed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setPassengerBeltDeployed:(SDLVehicleDataEventStatus *)passengerBeltDeployed { + if (passengerBeltDeployed != nil) { + [store setObject:passengerBeltDeployed forKey:NAMES_passengerBeltDeployed]; + } else { + [store removeObjectForKey:NAMES_passengerBeltDeployed]; + } +} + +- (SDLVehicleDataEventStatus *)passengerBeltDeployed { + NSObject *obj = [store objectForKey:NAMES_passengerBeltDeployed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setPassengerBuckleBelted:(SDLVehicleDataEventStatus *)passengerBuckleBelted { + if (passengerBuckleBelted != nil) { + [store setObject:passengerBuckleBelted forKey:NAMES_passengerBuckleBelted]; + } else { + [store removeObjectForKey:NAMES_passengerBuckleBelted]; + } +} + +- (SDLVehicleDataEventStatus *)passengerBuckleBelted { + NSObject *obj = [store objectForKey:NAMES_passengerBuckleBelted]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setDriverBuckleBelted:(SDLVehicleDataEventStatus *)driverBuckleBelted { + if (driverBuckleBelted != nil) { + [store setObject:driverBuckleBelted forKey:NAMES_driverBuckleBelted]; + } else { + [store removeObjectForKey:NAMES_driverBuckleBelted]; + } +} + +- (SDLVehicleDataEventStatus *)driverBuckleBelted { + NSObject *obj = [store objectForKey:NAMES_driverBuckleBelted]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setLeftRow2BuckleBelted:(SDLVehicleDataEventStatus *)leftRow2BuckleBelted { + if (leftRow2BuckleBelted != nil) { + [store setObject:leftRow2BuckleBelted forKey:NAMES_leftRow2BuckleBelted]; + } else { + [store removeObjectForKey:NAMES_leftRow2BuckleBelted]; + } +} + +- (SDLVehicleDataEventStatus *)leftRow2BuckleBelted { + NSObject *obj = [store objectForKey:NAMES_leftRow2BuckleBelted]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setPassengerChildDetected:(SDLVehicleDataEventStatus *)passengerChildDetected { + if (passengerChildDetected != nil) { + [store setObject:passengerChildDetected forKey:NAMES_passengerChildDetected]; + } else { + [store removeObjectForKey:NAMES_passengerChildDetected]; + } +} + +- (SDLVehicleDataEventStatus *)passengerChildDetected { + NSObject *obj = [store objectForKey:NAMES_passengerChildDetected]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setRightRow2BuckleBelted:(SDLVehicleDataEventStatus *)rightRow2BuckleBelted { + if (rightRow2BuckleBelted != nil) { + [store setObject:rightRow2BuckleBelted forKey:NAMES_rightRow2BuckleBelted]; + } else { + [store removeObjectForKey:NAMES_rightRow2BuckleBelted]; + } +} + +- (SDLVehicleDataEventStatus *)rightRow2BuckleBelted { + NSObject *obj = [store objectForKey:NAMES_rightRow2BuckleBelted]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setMiddleRow2BuckleBelted:(SDLVehicleDataEventStatus *)middleRow2BuckleBelted { + if (middleRow2BuckleBelted != nil) { + [store setObject:middleRow2BuckleBelted forKey:NAMES_middleRow2BuckleBelted]; + } else { + [store removeObjectForKey:NAMES_middleRow2BuckleBelted]; + } +} + +- (SDLVehicleDataEventStatus *)middleRow2BuckleBelted { + NSObject *obj = [store objectForKey:NAMES_middleRow2BuckleBelted]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setMiddleRow3BuckleBelted:(SDLVehicleDataEventStatus *)middleRow3BuckleBelted { + if (middleRow3BuckleBelted != nil) { + [store setObject:middleRow3BuckleBelted forKey:NAMES_middleRow3BuckleBelted]; + } else { + [store removeObjectForKey:NAMES_middleRow3BuckleBelted]; + } +} + +- (SDLVehicleDataEventStatus *)middleRow3BuckleBelted { + NSObject *obj = [store objectForKey:NAMES_middleRow3BuckleBelted]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setLeftRow3BuckleBelted:(SDLVehicleDataEventStatus *)leftRow3BuckleBelted { + if (leftRow3BuckleBelted != nil) { + [store setObject:leftRow3BuckleBelted forKey:NAMES_leftRow3BuckleBelted]; + } else { + [store removeObjectForKey:NAMES_leftRow3BuckleBelted]; + } +} + +- (SDLVehicleDataEventStatus *)leftRow3BuckleBelted { + NSObject *obj = [store objectForKey:NAMES_leftRow3BuckleBelted]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setRightRow3BuckleBelted:(SDLVehicleDataEventStatus *)rightRow3BuckleBelted { + if (rightRow3BuckleBelted != nil) { + [store setObject:rightRow3BuckleBelted forKey:NAMES_rightRow3BuckleBelted]; + } else { + [store removeObjectForKey:NAMES_rightRow3BuckleBelted]; + } +} + +- (SDLVehicleDataEventStatus *)rightRow3BuckleBelted { + NSObject *obj = [store objectForKey:NAMES_rightRow3BuckleBelted]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setLeftRearInflatableBelted:(SDLVehicleDataEventStatus *)leftRearInflatableBelted { + if (leftRearInflatableBelted != nil) { + [store setObject:leftRearInflatableBelted forKey:NAMES_leftRearInflatableBelted]; + } else { + [store removeObjectForKey:NAMES_leftRearInflatableBelted]; + } +} + +- (SDLVehicleDataEventStatus *)leftRearInflatableBelted { + NSObject *obj = [store objectForKey:NAMES_leftRearInflatableBelted]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setRightRearInflatableBelted:(SDLVehicleDataEventStatus *)rightRearInflatableBelted { + if (rightRearInflatableBelted != nil) { + [store setObject:rightRearInflatableBelted forKey:NAMES_rightRearInflatableBelted]; + } else { + [store removeObjectForKey:NAMES_rightRearInflatableBelted]; + } +} + +- (SDLVehicleDataEventStatus *)rightRearInflatableBelted { + NSObject *obj = [store objectForKey:NAMES_rightRearInflatableBelted]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setMiddleRow1BeltDeployed:(SDLVehicleDataEventStatus *)middleRow1BeltDeployed { + if (middleRow1BeltDeployed != nil) { + [store setObject:middleRow1BeltDeployed forKey:NAMES_middleRow1BeltDeployed]; + } else { + [store removeObjectForKey:NAMES_middleRow1BeltDeployed]; + } +} + +- (SDLVehicleDataEventStatus *)middleRow1BeltDeployed { + NSObject *obj = [store objectForKey:NAMES_middleRow1BeltDeployed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setMiddleRow1BuckleBelted:(SDLVehicleDataEventStatus *)middleRow1BuckleBelted { + if (middleRow1BuckleBelted != nil) { + [store setObject:middleRow1BuckleBelted forKey:NAMES_middleRow1BuckleBelted]; + } else { + [store removeObjectForKey:NAMES_middleRow1BuckleBelted]; + } +} + +- (SDLVehicleDataEventStatus *)middleRow1BuckleBelted { + NSObject *obj = [store objectForKey:NAMES_middleRow1BuckleBelted]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLBitsPerSample.h b/SmartDeviceLink/SDLBitsPerSample.h new file mode 100644 index 000000000..9067ce17a --- /dev/null +++ b/SmartDeviceLink/SDLBitsPerSample.h @@ -0,0 +1,45 @@ +// SDLBitsPerSample.h +// + + +#import "SDLEnum.h" + +/** + * Describes different bit depth options for PerformAudioPassThru + * + * @since SDL 2.0 + */ +@interface SDLBitsPerSample : SDLEnum { +} + +/** + * @abstract Convert String to SDLBitsPerSample + * + * @param value The value of the string to get an object for + * + * @return SDLBitsPerSample + */ ++ (SDLBitsPerSample *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLBitsPerSample + * + * @return an array that store all possible SDLBitsPerSample + */ ++ (NSArray *)values; + +/** + * @abstract 8 bits per sample + * + * @return a SDLBitsPerSample with value of *8_BIT* + */ ++ (SDLBitsPerSample *)_8_BIT; + +/** + * @abstract 16 bits per sample + * + * @return a SDLBitsPerSample with value of *16_BIT* + */ ++ (SDLBitsPerSample *)_16_BIT; + +@end diff --git a/SmartDeviceLink/SDLBitsPerSample.m b/SmartDeviceLink/SDLBitsPerSample.m new file mode 100644 index 000000000..e082aff59 --- /dev/null +++ b/SmartDeviceLink/SDLBitsPerSample.m @@ -0,0 +1,47 @@ +// SDLBitsPerSample.m +// + + +#import "SDLBitsPerSample.h" + +SDLBitsPerSample *SDLBitsPerSample_8_BIT = nil; +SDLBitsPerSample *SDLBitsPerSample_16_BIT = nil; + +NSArray *SDLBitsPerSample_values = nil; + +@implementation SDLBitsPerSample + ++ (SDLBitsPerSample *)valueOf:(NSString *)value { + for (SDLBitsPerSample *item in SDLBitsPerSample.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLBitsPerSample_values == nil) { + SDLBitsPerSample_values = @[ + SDLBitsPerSample._8_BIT, + SDLBitsPerSample._16_BIT, + ]; + } + return SDLBitsPerSample_values; +} + ++ (SDLBitsPerSample *)_8_BIT { + if (SDLBitsPerSample_8_BIT == nil) { + SDLBitsPerSample_8_BIT = [[SDLBitsPerSample alloc] initWithValue:@"8_BIT"]; + } + return SDLBitsPerSample_8_BIT; +} + ++ (SDLBitsPerSample *)_16_BIT { + if (SDLBitsPerSample_16_BIT == nil) { + SDLBitsPerSample_16_BIT = [[SDLBitsPerSample alloc] initWithValue:@"16_BIT"]; + } + return SDLBitsPerSample_16_BIT; +} + +@end diff --git a/SmartDeviceLink/SDLBodyInformation.h b/SmartDeviceLink/SDLBodyInformation.h new file mode 100644 index 000000000..1c92243cd --- /dev/null +++ b/SmartDeviceLink/SDLBodyInformation.h @@ -0,0 +1,63 @@ +// SDLBodyInformation.h +// + +#import "SDLRPCMessage.h" + +@class SDLIgnitionStableStatus; +@class SDLIgnitionStatus; + + +/** + * The body information including power modes. + */ +@interface SDLBodyInformation : SDLRPCStruct { +} + +/** + * @abstract Constructs a new SDLBodyInformation object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLBodyInformation object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract References signal "PrkBrkActv_B_Actl". + */ +@property (strong) NSNumber *parkBrakeActive; + +/** + * @abstract References signal "Ignition_Switch_Stable". See IgnitionStableStatus. + */ +@property (strong) SDLIgnitionStableStatus *ignitionStableStatus; + +/** + * @abstract References signal "Ignition_status". See IgnitionStatus. + */ +@property (strong) SDLIgnitionStatus *ignitionStatus; + +/** + * @abstract References signal "DrStatDrv_B_Actl". + */ +@property (strong) NSNumber *driverDoorAjar; + +/** + * @abstract References signal "DrStatPsngr_B_Actl". + */ +@property (strong) NSNumber *passengerDoorAjar; + +/** + * @abstract References signal "DrStatRl_B_Actl". + */ +@property (strong) NSNumber *rearLeftDoorAjar; + +/** + * @abstract References signal "DrStatRr_B_Actl". + */ +@property (strong) NSNumber *rearRightDoorAjar; + +@end diff --git a/SmartDeviceLink/SDLBodyInformation.m b/SmartDeviceLink/SDLBodyInformation.m new file mode 100644 index 000000000..9be7a88d6 --- /dev/null +++ b/SmartDeviceLink/SDLBodyInformation.m @@ -0,0 +1,120 @@ +// SDLBodyInformation.m +// + + +#import "SDLBodyInformation.h" + +#import "SDLIgnitionStableStatus.h" +#import "SDLIgnitionStatus.h" +#import "SDLNames.h" + + +@implementation SDLBodyInformation + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setParkBrakeActive:(NSNumber *)parkBrakeActive { + if (parkBrakeActive != nil) { + [store setObject:parkBrakeActive forKey:NAMES_parkBrakeActive]; + } else { + [store removeObjectForKey:NAMES_parkBrakeActive]; + } +} + +- (NSNumber *)parkBrakeActive { + return [store objectForKey:NAMES_parkBrakeActive]; +} + +- (void)setIgnitionStableStatus:(SDLIgnitionStableStatus *)ignitionStableStatus { + if (ignitionStableStatus != nil) { + [store setObject:ignitionStableStatus forKey:NAMES_ignitionStableStatus]; + } else { + [store removeObjectForKey:NAMES_ignitionStableStatus]; + } +} + +- (SDLIgnitionStableStatus *)ignitionStableStatus { + NSObject *obj = [store objectForKey:NAMES_ignitionStableStatus]; + if (obj == nil || [obj isKindOfClass:SDLIgnitionStableStatus.class]) { + return (SDLIgnitionStableStatus *)obj; + } else { + return [SDLIgnitionStableStatus valueOf:(NSString *)obj]; + } +} + +- (void)setIgnitionStatus:(SDLIgnitionStatus *)ignitionStatus { + if (ignitionStatus != nil) { + [store setObject:ignitionStatus forKey:NAMES_ignitionStatus]; + } else { + [store removeObjectForKey:NAMES_ignitionStatus]; + } +} + +- (SDLIgnitionStatus *)ignitionStatus { + NSObject *obj = [store objectForKey:NAMES_ignitionStatus]; + if (obj == nil || [obj isKindOfClass:SDLIgnitionStatus.class]) { + return (SDLIgnitionStatus *)obj; + } else { + return [SDLIgnitionStatus valueOf:(NSString *)obj]; + } +} + +- (void)setDriverDoorAjar:(NSNumber *)driverDoorAjar { + if (driverDoorAjar != nil) { + [store setObject:driverDoorAjar forKey:NAMES_driverDoorAjar]; + } else { + [store removeObjectForKey:NAMES_driverDoorAjar]; + } +} + +- (NSNumber *)driverDoorAjar { + return [store objectForKey:NAMES_driverDoorAjar]; +} + +- (void)setPassengerDoorAjar:(NSNumber *)passengerDoorAjar { + if (passengerDoorAjar != nil) { + [store setObject:passengerDoorAjar forKey:NAMES_passengerDoorAjar]; + } else { + [store removeObjectForKey:NAMES_passengerDoorAjar]; + } +} + +- (NSNumber *)passengerDoorAjar { + return [store objectForKey:NAMES_passengerDoorAjar]; +} + +- (void)setRearLeftDoorAjar:(NSNumber *)rearLeftDoorAjar { + if (rearLeftDoorAjar != nil) { + [store setObject:rearLeftDoorAjar forKey:NAMES_rearLeftDoorAjar]; + } else { + [store removeObjectForKey:NAMES_rearLeftDoorAjar]; + } +} + +- (NSNumber *)rearLeftDoorAjar { + return [store objectForKey:NAMES_rearLeftDoorAjar]; +} + +- (void)setRearRightDoorAjar:(NSNumber *)rearRightDoorAjar { + if (rearRightDoorAjar != nil) { + [store setObject:rearRightDoorAjar forKey:NAMES_rearRightDoorAjar]; + } else { + [store removeObjectForKey:NAMES_rearRightDoorAjar]; + } +} + +- (NSNumber *)rearRightDoorAjar { + return [store objectForKey:NAMES_rearRightDoorAjar]; +} + +@end diff --git a/SmartDeviceLink/SDLButtonCapabilities.h b/SmartDeviceLink/SDLButtonCapabilities.h new file mode 100644 index 000000000..d84da609a --- /dev/null +++ b/SmartDeviceLink/SDLButtonCapabilities.h @@ -0,0 +1,54 @@ +// SDLButtonCapabilities.h +// + +#import "SDLRPCMessage.h" + +@class SDLButtonName; + + +/** + * Provides information about the capabilities of a SDL HMI button. + * + * @since SDL 1.0 + */ +@interface SDLButtonCapabilities : SDLRPCStruct { +} + +/** + * Constructs a newly allocated SDLButtonCapabilities object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLButtonCapabilities object indicated by the Hashtable parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The name of the SDL HMI button. + */ +@property (strong) SDLButtonName *name; + +/** + * @abstract A NSNumber value indicates whether the button supports a SHORT press + * + * Required, Boolean + */ +@property (strong) NSNumber *shortPressAvailable; + +/** + * @abstract A NSNumber value indicates whether the button supports a LONG press + * + * Required, Boolean + */ +@property (strong) NSNumber *longPressAvailable; + +/** + * @abstract A NSNumber value indicates whether the button supports "button down" and "button up" + * + * Required, Boolean + */ +@property (strong) NSNumber *upDownAvailable; + +@end diff --git a/SmartDeviceLink/SDLButtonCapabilities.m b/SmartDeviceLink/SDLButtonCapabilities.m new file mode 100644 index 000000000..fbcab54c9 --- /dev/null +++ b/SmartDeviceLink/SDLButtonCapabilities.m @@ -0,0 +1,77 @@ +// SDLButtonCapabilities.m +// + +#import "SDLButtonCapabilities.h" + +#import "SDLButtonName.h" +#import "SDLNames.h" + + +@implementation SDLButtonCapabilities + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setName:(SDLButtonName *)name { + if (name != nil) { + [store setObject:name forKey:NAMES_name]; + } else { + [store removeObjectForKey:NAMES_name]; + } +} + +- (SDLButtonName *)name { + NSObject *obj = [store objectForKey:NAMES_name]; + if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) { + return (SDLButtonName *)obj; + } else { + return [SDLButtonName valueOf:(NSString *)obj]; + } +} + +- (void)setShortPressAvailable:(NSNumber *)shortPressAvailable { + if (shortPressAvailable != nil) { + [store setObject:shortPressAvailable forKey:NAMES_shortPressAvailable]; + } else { + [store removeObjectForKey:NAMES_shortPressAvailable]; + } +} + +- (NSNumber *)shortPressAvailable { + return [store objectForKey:NAMES_shortPressAvailable]; +} + +- (void)setLongPressAvailable:(NSNumber *)longPressAvailable { + if (longPressAvailable != nil) { + [store setObject:longPressAvailable forKey:NAMES_longPressAvailable]; + } else { + [store removeObjectForKey:NAMES_longPressAvailable]; + } +} + +- (NSNumber *)longPressAvailable { + return [store objectForKey:NAMES_longPressAvailable]; +} + +- (void)setUpDownAvailable:(NSNumber *)upDownAvailable { + if (upDownAvailable != nil) { + [store setObject:upDownAvailable forKey:NAMES_upDownAvailable]; + } else { + [store removeObjectForKey:NAMES_upDownAvailable]; + } +} + +- (NSNumber *)upDownAvailable { + return [store objectForKey:NAMES_upDownAvailable]; +} + +@end diff --git a/SmartDeviceLink/SDLButtonEventMode.h b/SmartDeviceLink/SDLButtonEventMode.h new file mode 100644 index 000000000..56cd8683d --- /dev/null +++ b/SmartDeviceLink/SDLButtonEventMode.h @@ -0,0 +1,40 @@ +// SDLButtonEventMode.h +// + + +#import "SDLEnum.h" + +/** + * Indicates whether the button was depressed or released. A BUTTONUP event will always be preceded by a BUTTONDOWN event. + * + * @since SDL 1.0 + */ +@interface SDLButtonEventMode : SDLEnum { +} + +/** + * @abstract Convert String to SDLButtonEventMode + * @param value The value of the string to get an object for + * @return SDLButtonEventMode (BUTTONUP / BUTTONDOWN) + */ ++ (SDLButtonEventMode *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLButtonEventMode + * @return an array that store all possible SDLButtonEventMode + */ ++ (NSArray *)values; + +/** + * @abstract The button was released + * @return a SDLButtonEventMode with value of *BUTTONUP* + */ ++ (SDLButtonEventMode *)BUTTONUP; + +/** + * @abstract The button was depressed + * @return a SDLButtonEventMode with value of *BUTTONDOWN* + */ ++ (SDLButtonEventMode *)BUTTONDOWN; + +@end diff --git a/SmartDeviceLink/SDLButtonEventMode.m b/SmartDeviceLink/SDLButtonEventMode.m new file mode 100644 index 000000000..1dcc13635 --- /dev/null +++ b/SmartDeviceLink/SDLButtonEventMode.m @@ -0,0 +1,47 @@ +// SDLButtonEventMode.m +// + + +#import "SDLButtonEventMode.h" + +SDLButtonEventMode *SDLButtonEventMode_BUTTONUP = nil; +SDLButtonEventMode *SDLButtonEventMode_BUTTONDOWN = nil; + +NSArray *SDLButtonEventMode_values = nil; + +@implementation SDLButtonEventMode + ++ (SDLButtonEventMode *)valueOf:(NSString *)value { + for (SDLButtonEventMode *item in SDLButtonEventMode.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLButtonEventMode_values == nil) { + SDLButtonEventMode_values = @[ + SDLButtonEventMode.BUTTONUP, + SDLButtonEventMode.BUTTONDOWN, + ]; + } + return SDLButtonEventMode_values; +} + ++ (SDLButtonEventMode *)BUTTONUP { + if (SDLButtonEventMode_BUTTONUP == nil) { + SDLButtonEventMode_BUTTONUP = [[SDLButtonEventMode alloc] initWithValue:@"BUTTONUP"]; + } + return SDLButtonEventMode_BUTTONUP; +} + ++ (SDLButtonEventMode *)BUTTONDOWN { + if (SDLButtonEventMode_BUTTONDOWN == nil) { + SDLButtonEventMode_BUTTONDOWN = [[SDLButtonEventMode alloc] initWithValue:@"BUTTONDOWN"]; + } + return SDLButtonEventMode_BUTTONDOWN; +} + +@end diff --git a/SmartDeviceLink/SDLButtonName.h b/SmartDeviceLink/SDLButtonName.h new file mode 100644 index 000000000..519a3c554 --- /dev/null +++ b/SmartDeviceLink/SDLButtonName.h @@ -0,0 +1,152 @@ +// SDLButtonName.h +// + + +#import "SDLEnum.h" + +/** + * Defines logical buttons which, on a given SDL unit, would correspond to + * either physical or soft (touchscreen) buttons. These logical buttons present + * a standard functional abstraction which the developer can rely upon, + * independent of the SDL unit. For example, the developer can rely upon the OK + * button having the same meaning to the user across SDL platforms. + * + * The preset buttons (0-9) can typically be interpreted by the application as + * corresponding to some user-configured choices, though the application is free + * to interpret these button presses as it sees fit. + * + * The application can discover which buttons a given SDL unit implements by + * interrogating the ButtonCapabilities parameter of the + * RegisterAppInterface response. + * + * @since SDL 1.0 + */ +@interface SDLButtonName : SDLEnum { +} + +/** + * @abstract Convert String to SDLButtonName + * + * @param value String value to retrieve the object for + * + * @return SDLButtonName + */ ++ (SDLButtonName *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLButtonName + * + * @return an array that store all possible SDLButtonName + */ ++ (NSArray *)values; + +/** + * @abstract Represents the button usually labeled "OK". A typical use of this button is for the user to press it to make a selection. + * + * @return a SDLButtonName with the value of *OK* + */ ++ (SDLButtonName *)OK; + +/** + * @abstract Represents the seek-left button. A typical use of this button is for the user to scroll to the left through menu choices one menu item per press. + * + * @return a SDLButtonName with the value of *SEEKLEFT* + */ ++ (SDLButtonName *)SEEKLEFT; + +/** + * @abstract Represents the seek-right button. A typical use of this button is for the user to scroll to the right through menu choices one menu item per press. + * + * @return a SDLButtonName with the value of *SEEKRIGHT* + */ ++ (SDLButtonName *)SEEKRIGHT; + +/** + * @abstract Represents a turn of the tuner knob in the clockwise direction one tick. + * + * @return a SDLButtonName with the value of *TUNEUP* + */ ++ (SDLButtonName *)TUNEUP; + +/** + * @abstract Represents a turn of the tuner knob in the counter-clockwise direction one tick. + * + * @return a SDLButtonName with the value of *TUNEDOWN* + */ ++ (SDLButtonName *)TUNEDOWN; + +/** + * @abstract Represents the preset 0 button. + * + * @return a SDLButtonName with the value of *PRESET_0* + */ ++ (SDLButtonName *)PRESET_0; + +/** + * @abstract Represents the preset 1 button. + * + * @return a SDLButtonName with the value of *PRESET_1* + */ ++ (SDLButtonName *)PRESET_1; + +/** + * @abstract Represents the preset 2 button. + * + * @return a SDLButtonName with the value of *PRESET_2* + */ ++ (SDLButtonName *)PRESET_2; + +/** + * @abstract Represents the preset 3 button. + * + * @return a SDLButtonName with the value of *PRESET_3* + */ ++ (SDLButtonName *)PRESET_3; + +/** + * @abstract Represents the preset 4 button. + * + * @return a SDLButtonName with the value of *PRESET_4* + */ ++ (SDLButtonName *)PRESET_4; + +/** + * @abstract Represents the preset 5 button. + * + * @return a SDLButtonName with the value of *PRESET_5* + */ ++ (SDLButtonName *)PRESET_5; + +/** + * @abstract Represents the preset 6 button. + * + * @return a SDLButtonName with the value of *PRESET_6* + */ ++ (SDLButtonName *)PRESET_6; + +/** + * @abstract Represents the preset 7 button. + * + * @return a SDLButtonName with the value of *PRESET_7* + */ ++ (SDLButtonName *)PRESET_7; + +/** + * @abstract Represents the preset 8 button. + * + * @return a SDLButtonName with the value of *PRESET_8* + */ ++ (SDLButtonName *)PRESET_8; + +/** + * @abstract Represents the preset 9 button. + * + * @return a SDLButtonName with the value of *PRESET_9* + */ ++ (SDLButtonName *)PRESET_9; + ++ (SDLButtonName *)CUSTOM_BUTTON; + ++ (SDLButtonName *)SEARCH; + +@end diff --git a/SmartDeviceLink/SDLButtonName.m b/SmartDeviceLink/SDLButtonName.m new file mode 100644 index 000000000..8e0ae3454 --- /dev/null +++ b/SmartDeviceLink/SDLButtonName.m @@ -0,0 +1,182 @@ +// SDLButtonName.m +// + + +#import "SDLButtonName.h" + +SDLButtonName *SDLButtonName_OK = nil; +SDLButtonName *SDLButtonName_SEEKLEFT = nil; +SDLButtonName *SDLButtonName_SEEKRIGHT = nil; +SDLButtonName *SDLButtonName_TUNEUP = nil; +SDLButtonName *SDLButtonName_TUNEDOWN = nil; +SDLButtonName *SDLButtonName_PRESET_0 = nil; +SDLButtonName *SDLButtonName_PRESET_1 = nil; +SDLButtonName *SDLButtonName_PRESET_2 = nil; +SDLButtonName *SDLButtonName_PRESET_3 = nil; +SDLButtonName *SDLButtonName_PRESET_4 = nil; +SDLButtonName *SDLButtonName_PRESET_5 = nil; +SDLButtonName *SDLButtonName_PRESET_6 = nil; +SDLButtonName *SDLButtonName_PRESET_7 = nil; +SDLButtonName *SDLButtonName_PRESET_8 = nil; +SDLButtonName *SDLButtonName_PRESET_9 = nil; +SDLButtonName *SDLButtonName_CUSTOM_BUTTON = nil; +SDLButtonName *SDLButtonName_SEARCH = nil; + +NSArray *SDLButtonName_values = nil; + +@implementation SDLButtonName + ++ (SDLButtonName *)valueOf:(NSString *)value { + for (SDLButtonName *item in SDLButtonName.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLButtonName_values == nil) { + SDLButtonName_values = @[ + SDLButtonName.OK, + SDLButtonName.SEEKLEFT, + SDLButtonName.SEEKRIGHT, + SDLButtonName.TUNEUP, + SDLButtonName.TUNEDOWN, + SDLButtonName.PRESET_0, + SDLButtonName.PRESET_1, + SDLButtonName.PRESET_2, + SDLButtonName.PRESET_3, + SDLButtonName.PRESET_4, + SDLButtonName.PRESET_5, + SDLButtonName.PRESET_6, + SDLButtonName.PRESET_7, + SDLButtonName.PRESET_8, + SDLButtonName.PRESET_9, + SDLButtonName.CUSTOM_BUTTON, + SDLButtonName.SEARCH, + ]; + } + return SDLButtonName_values; +} + ++ (SDLButtonName *)OK { + if (SDLButtonName_OK == nil) { + SDLButtonName_OK = [[SDLButtonName alloc] initWithValue:@"OK"]; + } + return SDLButtonName_OK; +} + ++ (SDLButtonName *)SEEKLEFT { + if (SDLButtonName_SEEKLEFT == nil) { + SDLButtonName_SEEKLEFT = [[SDLButtonName alloc] initWithValue:@"SEEKLEFT"]; + } + return SDLButtonName_SEEKLEFT; +} + ++ (SDLButtonName *)SEEKRIGHT { + if (SDLButtonName_SEEKRIGHT == nil) { + SDLButtonName_SEEKRIGHT = [[SDLButtonName alloc] initWithValue:@"SEEKRIGHT"]; + } + return SDLButtonName_SEEKRIGHT; +} + ++ (SDLButtonName *)TUNEUP { + if (SDLButtonName_TUNEUP == nil) { + SDLButtonName_TUNEUP = [[SDLButtonName alloc] initWithValue:@"TUNEUP"]; + } + return SDLButtonName_TUNEUP; +} + ++ (SDLButtonName *)TUNEDOWN { + if (SDLButtonName_TUNEDOWN == nil) { + SDLButtonName_TUNEDOWN = [[SDLButtonName alloc] initWithValue:@"TUNEDOWN"]; + } + return SDLButtonName_TUNEDOWN; +} + ++ (SDLButtonName *)PRESET_0 { + if (SDLButtonName_PRESET_0 == nil) { + SDLButtonName_PRESET_0 = [[SDLButtonName alloc] initWithValue:@"PRESET_0"]; + } + return SDLButtonName_PRESET_0; +} + ++ (SDLButtonName *)PRESET_1 { + if (SDLButtonName_PRESET_1 == nil) { + SDLButtonName_PRESET_1 = [[SDLButtonName alloc] initWithValue:@"PRESET_1"]; + } + return SDLButtonName_PRESET_1; +} + ++ (SDLButtonName *)PRESET_2 { + if (SDLButtonName_PRESET_2 == nil) { + SDLButtonName_PRESET_2 = [[SDLButtonName alloc] initWithValue:@"PRESET_2"]; + } + return SDLButtonName_PRESET_2; +} + ++ (SDLButtonName *)PRESET_3 { + if (SDLButtonName_PRESET_3 == nil) { + SDLButtonName_PRESET_3 = [[SDLButtonName alloc] initWithValue:@"PRESET_3"]; + } + return SDLButtonName_PRESET_3; +} + ++ (SDLButtonName *)PRESET_4 { + if (SDLButtonName_PRESET_4 == nil) { + SDLButtonName_PRESET_4 = [[SDLButtonName alloc] initWithValue:@"PRESET_4"]; + } + return SDLButtonName_PRESET_4; +} + ++ (SDLButtonName *)PRESET_5 { + if (SDLButtonName_PRESET_5 == nil) { + SDLButtonName_PRESET_5 = [[SDLButtonName alloc] initWithValue:@"PRESET_5"]; + } + return SDLButtonName_PRESET_5; +} + ++ (SDLButtonName *)PRESET_6 { + if (SDLButtonName_PRESET_6 == nil) { + SDLButtonName_PRESET_6 = [[SDLButtonName alloc] initWithValue:@"PRESET_6"]; + } + return SDLButtonName_PRESET_6; +} + ++ (SDLButtonName *)PRESET_7 { + if (SDLButtonName_PRESET_7 == nil) { + SDLButtonName_PRESET_7 = [[SDLButtonName alloc] initWithValue:@"PRESET_7"]; + } + return SDLButtonName_PRESET_7; +} + ++ (SDLButtonName *)PRESET_8 { + if (SDLButtonName_PRESET_8 == nil) { + SDLButtonName_PRESET_8 = [[SDLButtonName alloc] initWithValue:@"PRESET_8"]; + } + return SDLButtonName_PRESET_8; +} + ++ (SDLButtonName *)PRESET_9 { + if (SDLButtonName_PRESET_9 == nil) { + SDLButtonName_PRESET_9 = [[SDLButtonName alloc] initWithValue:@"PRESET_9"]; + } + return SDLButtonName_PRESET_9; +} + ++ (SDLButtonName *)CUSTOM_BUTTON { + if (SDLButtonName_CUSTOM_BUTTON == nil) { + SDLButtonName_CUSTOM_BUTTON = [[SDLButtonName alloc] initWithValue:@"CUSTOM_BUTTON"]; + } + return SDLButtonName_CUSTOM_BUTTON; +} + ++ (SDLButtonName *)SEARCH { + if (SDLButtonName_SEARCH == nil) { + SDLButtonName_SEARCH = [[SDLButtonName alloc] initWithValue:@"SEARCH"]; + } + return SDLButtonName_SEARCH; +} + +@end diff --git a/SmartDeviceLink/SDLButtonPressMode.h b/SmartDeviceLink/SDLButtonPressMode.h new file mode 100644 index 000000000..8aca9c143 --- /dev/null +++ b/SmartDeviceLink/SDLButtonPressMode.h @@ -0,0 +1,45 @@ +// SDLButtonPressMode.h +// + + +#import "SDLEnum.h" + +/** + * Indicates whether this is a LONG or SHORT button press + * + * @since SDL 1.0 + */ +@interface SDLButtonPressMode : SDLEnum { +} + +/** + * @abstract Convert String to SDLButtonPressMode + * + * @param value The value of the string to get an object for + * + * @return SDLButtonPressMode + */ ++ (SDLButtonPressMode *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLButtonPressMode + * + * @return an array that store all possible SDLButtonPressMode + */ ++ (NSArray *)values; + +/** + * @abstract A button was released, after it was pressed for a long time. Actual timing is defined by the head unit and may vary. + * + * @return a SDLButtonPressMode with the value of *LONG* + */ ++ (SDLButtonPressMode *)LONG; + +/** + * @abstract A button was released, after it was pressed for a short time. Actual timing is defined by the head unit and may vary. + * + * @return a SDLButtonPressMode with the value of *SHORT* + */ ++ (SDLButtonPressMode *)SHORT; + +@end diff --git a/SmartDeviceLink/SDLButtonPressMode.m b/SmartDeviceLink/SDLButtonPressMode.m new file mode 100644 index 000000000..15e4c2334 --- /dev/null +++ b/SmartDeviceLink/SDLButtonPressMode.m @@ -0,0 +1,47 @@ +// SDLButtonPressMode.m +// + + +#import "SDLButtonPressMode.h" + +SDLButtonPressMode *SDLButtonPressMode_LONG = nil; +SDLButtonPressMode *SDLButtonPressMode_SHORT = nil; + +NSArray *SDLButtonPressMode_values = nil; + +@implementation SDLButtonPressMode + ++ (SDLButtonPressMode *)valueOf:(NSString *)value { + for (SDLButtonPressMode *item in SDLButtonPressMode.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLButtonPressMode_values == nil) { + SDLButtonPressMode_values = @[ + SDLButtonPressMode.LONG, + SDLButtonPressMode.SHORT, + ]; + } + return SDLButtonPressMode_values; +} + ++ (SDLButtonPressMode *)LONG { + if (SDLButtonPressMode_LONG == nil) { + SDLButtonPressMode_LONG = [[SDLButtonPressMode alloc] initWithValue:@"LONG"]; + } + return SDLButtonPressMode_LONG; +} + ++ (SDLButtonPressMode *)SHORT { + if (SDLButtonPressMode_SHORT == nil) { + SDLButtonPressMode_SHORT = [[SDLButtonPressMode alloc] initWithValue:@"SHORT"]; + } + return SDLButtonPressMode_SHORT; +} + +@end diff --git a/SmartDeviceLink/SDLCarModeStatus.h b/SmartDeviceLink/SDLCarModeStatus.h new file mode 100644 index 000000000..15bb7b284 --- /dev/null +++ b/SmartDeviceLink/SDLCarModeStatus.h @@ -0,0 +1,32 @@ +// SDLCarModeStatus.h +// + + +#import "SDLEnum.h" + +/** Describes the carmode the vehicle is in. + * Since SmartDeviceLink 2.0 + */ +@interface SDLCarModeStatus : SDLEnum { +} + ++ (SDLCarModeStatus *)valueOf:(NSString *)value; + ++ (NSArray *)values; +/** Provides carmode NORMAL to each module. + */ ++ (SDLCarModeStatus *)NORMAL; + +/** Provides carmode FACTORY to each module. + */ ++ (SDLCarModeStatus *)FACTORY; + +/** Provides carmode TRANSPORT to each module. + */ ++ (SDLCarModeStatus *)TRANSPORT; + +/** Provides carmode CRASH to each module. + */ ++ (SDLCarModeStatus *)CRASH; + +@end diff --git a/SmartDeviceLink/SDLCarModeStatus.m b/SmartDeviceLink/SDLCarModeStatus.m new file mode 100644 index 000000000..4f9c03c42 --- /dev/null +++ b/SmartDeviceLink/SDLCarModeStatus.m @@ -0,0 +1,65 @@ +// SDLCarModeStatus.m +// + + +#import "SDLCarModeStatus.h" + +SDLCarModeStatus *SDLCarModeStatus_NORMAL = nil; +SDLCarModeStatus *SDLCarModeStatus_FACTORY = nil; +SDLCarModeStatus *SDLCarModeStatus_TRANSPORT = nil; +SDLCarModeStatus *SDLCarModeStatus_CRASH = nil; + +NSArray *SDLCarModeStatus_values = nil; + +@implementation SDLCarModeStatus + ++ (SDLCarModeStatus *)valueOf:(NSString *)value { + for (SDLCarModeStatus *item in SDLCarModeStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLCarModeStatus_values == nil) { + SDLCarModeStatus_values = @[ + SDLCarModeStatus.NORMAL, + SDLCarModeStatus.FACTORY, + SDLCarModeStatus.TRANSPORT, + SDLCarModeStatus.CRASH, + ]; + } + return SDLCarModeStatus_values; +} + ++ (SDLCarModeStatus *)NORMAL { + if (SDLCarModeStatus_NORMAL == nil) { + SDLCarModeStatus_NORMAL = [[SDLCarModeStatus alloc] initWithValue:@"NORMAL"]; + } + return SDLCarModeStatus_NORMAL; +} + ++ (SDLCarModeStatus *)FACTORY { + if (SDLCarModeStatus_FACTORY == nil) { + SDLCarModeStatus_FACTORY = [[SDLCarModeStatus alloc] initWithValue:@"FACTORY"]; + } + return SDLCarModeStatus_FACTORY; +} + ++ (SDLCarModeStatus *)TRANSPORT { + if (SDLCarModeStatus_TRANSPORT == nil) { + SDLCarModeStatus_TRANSPORT = [[SDLCarModeStatus alloc] initWithValue:@"TRANSPORT"]; + } + return SDLCarModeStatus_TRANSPORT; +} + ++ (SDLCarModeStatus *)CRASH { + if (SDLCarModeStatus_CRASH == nil) { + SDLCarModeStatus_CRASH = [[SDLCarModeStatus alloc] initWithValue:@"CRASH"]; + } + return SDLCarModeStatus_CRASH; +} + +@end diff --git a/SmartDeviceLink/SDLChangeRegistration.h b/SmartDeviceLink/SDLChangeRegistration.h new file mode 100644 index 000000000..4bbc7c234 --- /dev/null +++ b/SmartDeviceLink/SDLChangeRegistration.h @@ -0,0 +1,70 @@ +// SDLChangeRegistration.h +// + + +#import "SDLRPCRequest.h" + +@class SDLLanguage; +@class SDLTTSChunk; + +/** + * If the app recognizes during the app registration that the SDL HMI language (voice/TTS and/or display) does not match the app language, the app will be able (but does not need) to change this registration with changeRegistration prior to app being brought into focus. + * + * Any HMILevel allowed + * + * @since SDL 2.0 + */ +@interface SDLChangeRegistration : SDLRPCRequest { +} + +/** + * Constructs a new SDLChangeRegistration object + */ +- (instancetype)init; + +/** + * Constructs a new SDLChangeRegistration object indicated by the dictionary parameter + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The language the app wants to change to + */ +@property (strong, nonatomic) SDLLanguage *language; + +/** + * @abstract HMI display language + */ +@property (strong, nonatomic) SDLLanguage *hmiDisplayLanguage; + +/** + * Request a new app name registration + * + * Optional, Max string length 100 chars + */ +@property (copy, nonatomic) NSString *appName; + +/** + * Request a new TTSName registration. + * + * Optional, Array of SDLTTSChunk, 1 - 100 elements + */ +@property (copy, nonatomic) NSArray *ttsName; + +/** + * Request a new app short name registration + * + * Optional, Max string length 100 chars + */ +@property (copy, nonatomic) NSString *ngnMediaScreenAppName; + +/** + * Request a new VR synonyms registration + * + * Optional, Array of NSString, 1 - 100 elements, max string length 40 chars + */ +@property (copy, nonatomic) NSArray *vrSynonyms; + +@end diff --git a/SmartDeviceLink/SDLChangeRegistration.m b/SmartDeviceLink/SDLChangeRegistration.m new file mode 100644 index 000000000..00a7de885 --- /dev/null +++ b/SmartDeviceLink/SDLChangeRegistration.m @@ -0,0 +1,106 @@ +// SDLChangeRegistration.m +// + + +#import "SDLChangeRegistration.h" + +#import "SDLLanguage.h" +#import "SDLNames.h" + +@implementation SDLChangeRegistration + +- (instancetype)init { + if (self = [super initWithName:NAMES_ChangeRegistration]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setLanguage:(SDLLanguage *)language { + if (language != nil) { + [parameters setObject:language forKey:NAMES_language]; + } else { + [parameters removeObjectForKey:NAMES_language]; + } +} + +- (SDLLanguage *)language { + NSObject *obj = [parameters objectForKey:NAMES_language]; + if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { + return (SDLLanguage *)obj; + } else { + return [SDLLanguage valueOf:(NSString *)obj]; + } +} + +- (void)setHmiDisplayLanguage:(SDLLanguage *)hmiDisplayLanguage { + if (hmiDisplayLanguage != nil) { + [parameters setObject:hmiDisplayLanguage forKey:NAMES_hmiDisplayLanguage]; + } else { + [parameters removeObjectForKey:NAMES_hmiDisplayLanguage]; + } +} + +- (SDLLanguage *)hmiDisplayLanguage { + NSObject *obj = [parameters objectForKey:NAMES_hmiDisplayLanguage]; + if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { + return (SDLLanguage *)obj; + } else { + return [SDLLanguage valueOf:(NSString *)obj]; + } +} + +- (void)setAppName:(NSString *)appName { + if (appName != nil) { + parameters[NAMES_appName] = [appName copy]; + } else { + [parameters removeObjectForKey:NAMES_appName]; + } +} + +- (NSString *)appName { + return [parameters[NAMES_appName] copy]; +} + +- (void)setTtsName:(NSArray *)ttsName { + if (ttsName != nil) { + [parameters setObject:[ttsName copy] forKey:NAMES_ttsName]; + } else { + [parameters removeObjectForKey:NAMES_ttsName]; + } +} + +- (NSArray *)ttsName { + return [parameters[NAMES_ttsName] copy]; +} + +- (void)setNgnMediaScreenAppName:(NSString *)ngnMediaScreenAppName { + if (ngnMediaScreenAppName != nil) { + parameters[NAMES_ngnMediaScreenAppName] = [ngnMediaScreenAppName copy]; + } else { + [parameters removeObjectForKey:NAMES_ngnMediaScreenAppName]; + } +} + +- (NSString *)ngnMediaScreenAppName { + return [parameters[NAMES_ngnMediaScreenAppName] copy]; +} + +- (void)setVrSynonyms:(NSArray *)vrSynonyms { + if (vrSynonyms != nil) { + [parameters setObject:[vrSynonyms copy] forKey:NAMES_vrSynonyms]; + } else { + [parameters removeObjectForKey:NAMES_vrSynonyms]; + } +} + +- (NSArray *)vrSynonyms { + return [parameters[NAMES_vrSynonyms] copy]; +} + +@end diff --git a/SmartDeviceLink/SDLChangeRegistrationResponse.h b/SmartDeviceLink/SDLChangeRegistrationResponse.h new file mode 100644 index 000000000..38709e235 --- /dev/null +++ b/SmartDeviceLink/SDLChangeRegistrationResponse.h @@ -0,0 +1,18 @@ +// SDLChangeRegistrationResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * SDLChangeRegistrationResponse is sent, when SDLChangeRegistration has been called + * + * @since SDL 2.0 + */ +@interface SDLChangeRegistrationResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLChangeRegistrationResponse.m b/SmartDeviceLink/SDLChangeRegistrationResponse.m new file mode 100644 index 000000000..710495d2c --- /dev/null +++ b/SmartDeviceLink/SDLChangeRegistrationResponse.m @@ -0,0 +1,23 @@ +// SDLChangeRegistrationResponse.m +// + + +#import "SDLChangeRegistrationResponse.h" + +#import "SDLNames.h" + +@implementation SDLChangeRegistrationResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_ChangeRegistration]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLCharacterSet.h b/SmartDeviceLink/SDLCharacterSet.h new file mode 100644 index 000000000..300afd720 --- /dev/null +++ b/SmartDeviceLink/SDLCharacterSet.h @@ -0,0 +1,39 @@ +// SDLCharacterSet.h +// + + +#import "SDLEnum.h" + +/** + * Character sets supported by SDL. + * + * @since SDL 1.0 + */ +@interface SDLCharacterSet : SDLEnum { +} + +/** + * @abstract Convert String to SDLCharacterSet + * + * @param value The value of the string to get an object for + * + * @return SDLCharacterSet + */ ++ (SDLCharacterSet *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLCharacterSet + * + * @return an array that store all possible SDLCharacterSet + */ ++ (NSArray *)values; + ++ (SDLCharacterSet *)TYPE2SET; + ++ (SDLCharacterSet *)TYPE5SET; + ++ (SDLCharacterSet *)CID1SET; + ++ (SDLCharacterSet *)CID2SET; + +@end diff --git a/SmartDeviceLink/SDLCharacterSet.m b/SmartDeviceLink/SDLCharacterSet.m new file mode 100644 index 000000000..18f00de90 --- /dev/null +++ b/SmartDeviceLink/SDLCharacterSet.m @@ -0,0 +1,65 @@ +// SDLCharacterSet.m +// + + +#import "SDLCharacterSet.h" + +SDLCharacterSet *SDLCharacterSet_TYPE2SET = nil; +SDLCharacterSet *SDLCharacterSet_TYPE5SET = nil; +SDLCharacterSet *SDLCharacterSet_CID1SET = nil; +SDLCharacterSet *SDLCharacterSet_CID2SET = nil; + +NSArray *SDLCharacterSet_values = nil; + +@implementation SDLCharacterSet + ++ (SDLCharacterSet *)valueOf:(NSString *)value { + for (SDLCharacterSet *item in SDLCharacterSet.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLCharacterSet_values == nil) { + SDLCharacterSet_values = @[ + SDLCharacterSet.TYPE2SET, + SDLCharacterSet.TYPE5SET, + SDLCharacterSet.CID1SET, + SDLCharacterSet.CID2SET, + ]; + } + return SDLCharacterSet_values; +} + ++ (SDLCharacterSet *)TYPE2SET { + if (SDLCharacterSet_TYPE2SET == nil) { + SDLCharacterSet_TYPE2SET = [[SDLCharacterSet alloc] initWithValue:@"TYPE2SET"]; + } + return SDLCharacterSet_TYPE2SET; +} + ++ (SDLCharacterSet *)TYPE5SET { + if (SDLCharacterSet_TYPE5SET == nil) { + SDLCharacterSet_TYPE5SET = [[SDLCharacterSet alloc] initWithValue:@"TYPE5SET"]; + } + return SDLCharacterSet_TYPE5SET; +} + ++ (SDLCharacterSet *)CID1SET { + if (SDLCharacterSet_CID1SET == nil) { + SDLCharacterSet_CID1SET = [[SDLCharacterSet alloc] initWithValue:@"CID1SET"]; + } + return SDLCharacterSet_CID1SET; +} + ++ (SDLCharacterSet *)CID2SET { + if (SDLCharacterSet_CID2SET == nil) { + SDLCharacterSet_CID2SET = [[SDLCharacterSet alloc] initWithValue:@"CID2SET"]; + } + return SDLCharacterSet_CID2SET; +} + +@end diff --git a/SmartDeviceLink/SDLChoice.h b/SmartDeviceLink/SDLChoice.h new file mode 100644 index 000000000..478b33b5f --- /dev/null +++ b/SmartDeviceLink/SDLChoice.h @@ -0,0 +1,116 @@ +// SDLChoice.h +// + +#import "SDLRPCMessage.h" + +@class SDLImage; + + +/** + * A choice is an option which a user can select either via the menu or via voice recognition (VR) during an application initiated interaction. + *

    Parameter List + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    NameTypeDescriptionSmartDeviceLink Ver. Available
    choiceIDNSNumber * Application-scoped identifier that uniquely identifies this choice. + *
    Min: 0 + *
    Max: 65535 + *
    SmartDeviceLink 1.0
    menuNameNSString * Text which appears in menu, representing this choice. + *
    Min: 1 + *
    Max: 100 + *
    SmartDeviceLink 1.0
    vrCommandsNSMutableArray *An array of strings to be used as VR synonyms for this choice. If this array is provided, it must have at least one non-empty elementSmartDeviceLink 1.0
    imageSDLImage * Either a static hex icon value or a binary image file name identifier (sent by PutFile).SmartDeviceLink 2.0
    + * + * Since SmartDeviceLink 1.0
    + */ +@interface SDLChoice : SDLRPCStruct { +} + +/** + * Constructs a newly allocated SDLChoice object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLChoice object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract the application-scoped identifier that uniquely identifies this choice + * + * Required, Integer 0 - 65535 + */ +@property (strong) NSNumber *choiceID; + +/** + * @abstract Text which appears in menu, representing this choice + * + * Required, Max string length 500 chars + */ +@property (strong) NSString *menuName; + +/** + * @abstract VR synonyms for this choice + * + * Required, Array of Strings, Array length 1 - 100, Max String length 99 chars + */ +@property (strong) NSMutableArray *vrCommands; + +/** + * @abstract The image of the choice + * + * Optional + */ +@property (strong) SDLImage *image; + +/** + * @abstract Optional secondary text to display; e.g. address of POI in a search result entry + * + * Optional, Max String length 500 chars + */ +@property (strong) NSString *secondaryText; + +/** + * @abstract Optional tertiary text to display; e.g. distance to POI for a search result entry + * + * Optional, Max String length 500 chars + */ +@property (strong) NSString *tertiaryText; + +/** + * @abstract Optional secondary image for choice + * + * Optional + */ +@property (strong) SDLImage *secondaryImage; + +@end diff --git a/SmartDeviceLink/SDLChoice.m b/SmartDeviceLink/SDLChoice.m new file mode 100644 index 000000000..83e1d56ae --- /dev/null +++ b/SmartDeviceLink/SDLChoice.m @@ -0,0 +1,118 @@ +// SDLChoice.m +// + +#import "SDLChoice.h" + +#import "SDLImage.h" +#import "SDLNames.h" + + +@implementation SDLChoice + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setChoiceID:(NSNumber *)choiceID { + if (choiceID != nil) { + [store setObject:choiceID forKey:NAMES_choiceID]; + } else { + [store removeObjectForKey:NAMES_choiceID]; + } +} + +- (NSNumber *)choiceID { + return [store objectForKey:NAMES_choiceID]; +} + +- (void)setMenuName:(NSString *)menuName { + if (menuName != nil) { + [store setObject:menuName forKey:NAMES_menuName]; + } else { + [store removeObjectForKey:NAMES_menuName]; + } +} + +- (NSString *)menuName { + return [store objectForKey:NAMES_menuName]; +} + +- (void)setVrCommands:(NSMutableArray *)vrCommands { + if (vrCommands != nil) { + [store setObject:vrCommands forKey:NAMES_vrCommands]; + } else { + [store removeObjectForKey:NAMES_vrCommands]; + } +} + +- (NSMutableArray *)vrCommands { + return [store objectForKey:NAMES_vrCommands]; +} + +- (void)setImage:(SDLImage *)image { + if (image != nil) { + [store setObject:image forKey:NAMES_image]; + } else { + [store removeObjectForKey:NAMES_image]; + } +} + +- (SDLImage *)image { + NSObject *obj = [store objectForKey:NAMES_image]; + if (obj == nil || [obj isKindOfClass:SDLImage.class]) { + return (SDLImage *)obj; + } else { + return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setSecondaryText:(NSString *)secondaryText { + if (secondaryText != nil) { + [store setObject:secondaryText forKey:NAMES_secondaryText]; + } else { + [store removeObjectForKey:NAMES_secondaryText]; + } +} + +- (NSString *)secondaryText { + return [store objectForKey:NAMES_secondaryText]; +} + +- (void)setTertiaryText:(NSString *)tertiaryText { + if (tertiaryText != nil) { + [store setObject:tertiaryText forKey:NAMES_tertiaryText]; + } else { + [store removeObjectForKey:NAMES_tertiaryText]; + } +} + +- (NSString *)tertiaryText { + return [store objectForKey:NAMES_tertiaryText]; +} + +- (void)setSecondaryImage:(SDLImage *)secondaryImage { + if (secondaryImage != nil) { + [store setObject:secondaryImage forKey:NAMES_secondaryImage]; + } else { + [store removeObjectForKey:NAMES_secondaryImage]; + } +} + +- (SDLImage *)secondaryImage { + NSObject *obj = [store objectForKey:NAMES_secondaryImage]; + if (obj == nil || [obj isKindOfClass:SDLImage.class]) { + return (SDLImage *)obj; + } else { + return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLClusterModeStatus.h b/SmartDeviceLink/SDLClusterModeStatus.h new file mode 100644 index 000000000..7b745804f --- /dev/null +++ b/SmartDeviceLink/SDLClusterModeStatus.h @@ -0,0 +1,22 @@ +// SDLClusterModeStatus.h +// + +#import "SDLRPCMessage.h" + +@class SDLCarModeStatus; +@class SDLPowerModeQualificationStatus; +@class SDLPowerModeStatus; + + +@interface SDLClusterModeStatus : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSNumber *powerModeActive; +@property (strong) SDLPowerModeQualificationStatus *powerModeQualificationStatus; +@property (strong) SDLCarModeStatus *carModeStatus; +@property (strong) SDLPowerModeStatus *powerModeStatus; + +@end diff --git a/SmartDeviceLink/SDLClusterModeStatus.m b/SmartDeviceLink/SDLClusterModeStatus.m new file mode 100644 index 000000000..ecd2a528b --- /dev/null +++ b/SmartDeviceLink/SDLClusterModeStatus.m @@ -0,0 +1,89 @@ +// SDLClusterModeStatus.m +// + +#import "SDLClusterModeStatus.h" + +#import "SDLCarModeStatus.h" +#import "SDLNames.h" +#import "SDLPowerModeQualificationStatus.h" +#import "SDLPowerModeStatus.h" + + +@implementation SDLClusterModeStatus + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setPowerModeActive:(NSNumber *)powerModeActive { + if (powerModeActive != nil) { + [store setObject:powerModeActive forKey:NAMES_powerModeActive]; + } else { + [store removeObjectForKey:NAMES_powerModeActive]; + } +} + +- (NSNumber *)powerModeActive { + return [store objectForKey:NAMES_powerModeActive]; +} + +- (void)setPowerModeQualificationStatus:(SDLPowerModeQualificationStatus *)powerModeQualificationStatus { + if (powerModeQualificationStatus != nil) { + [store setObject:powerModeQualificationStatus forKey:NAMES_powerModeQualificationStatus]; + } else { + [store removeObjectForKey:NAMES_powerModeQualificationStatus]; + } +} + +- (SDLPowerModeQualificationStatus *)powerModeQualificationStatus { + NSObject *obj = [store objectForKey:NAMES_powerModeQualificationStatus]; + if (obj == nil || [obj isKindOfClass:SDLPowerModeQualificationStatus.class]) { + return (SDLPowerModeQualificationStatus *)obj; + } else { + return [SDLPowerModeQualificationStatus valueOf:(NSString *)obj]; + } +} + +- (void)setCarModeStatus:(SDLCarModeStatus *)carModeStatus { + if (carModeStatus != nil) { + [store setObject:carModeStatus forKey:NAMES_carModeStatus]; + } else { + [store removeObjectForKey:NAMES_carModeStatus]; + } +} + +- (SDLCarModeStatus *)carModeStatus { + NSObject *obj = [store objectForKey:NAMES_carModeStatus]; + if (obj == nil || [obj isKindOfClass:SDLCarModeStatus.class]) { + return (SDLCarModeStatus *)obj; + } else { + return [SDLCarModeStatus valueOf:(NSString *)obj]; + } +} + +- (void)setPowerModeStatus:(SDLPowerModeStatus *)powerModeStatus { + if (powerModeStatus != nil) { + [store setObject:powerModeStatus forKey:NAMES_powerModeStatus]; + } else { + [store removeObjectForKey:NAMES_powerModeStatus]; + } +} + +- (SDLPowerModeStatus *)powerModeStatus { + NSObject *obj = [store objectForKey:NAMES_powerModeStatus]; + if (obj == nil || [obj isKindOfClass:SDLPowerModeStatus.class]) { + return (SDLPowerModeStatus *)obj; + } else { + return [SDLPowerModeStatus valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLCompassDirection.h b/SmartDeviceLink/SDLCompassDirection.h new file mode 100644 index 000000000..cad90cc90 --- /dev/null +++ b/SmartDeviceLink/SDLCompassDirection.h @@ -0,0 +1,76 @@ +// SDLCompassDirection.h +// + + +#import "SDLEnum.h" + +/** + * The list of potential compass directions. + * + * @since SDL 2.0 + */ +@interface SDLCompassDirection : SDLEnum { +} + +/** + * @abstract Convert String to SDLCompassDirection + * @param value The value of the string to get an object for + * @return SDLCompassDirection + */ ++ (SDLCompassDirection *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLCompassDirection + * @return An array that store all possible SDLCompassDirection + */ ++ (NSArray *)values; + +/** + * @abstract Direction North + * @return A SDLCompassDirection with the value of *NORTH* + */ ++ (SDLCompassDirection *)NORTH; + +/** + * @abstract Direction Northwest + * @return A SDLCompassDirection with the value of *NORTHWEST* + */ ++ (SDLCompassDirection *)NORTHWEST; + +/** + * @abstract Direction West + * @return A SDLCompassDirection with the value of *WEST* + */ ++ (SDLCompassDirection *)WEST; + +/** + * @abstract Direction Southwest + * @return A SDLCompassDirection with the value of *SOUTHWEST* + */ ++ (SDLCompassDirection *)SOUTHWEST; + +/** + * @abstract Direction South + * @return A SDLCompassDirection with the value of *SOUTH* + */ ++ (SDLCompassDirection *)SOUTH; + +/** + * @abstract Direction Southeast + * @return A SDLCompassDirection with the value of *SOUTHEAST* + */ ++ (SDLCompassDirection *)SOUTHEAST; + +/** + * @abstract Direction East + * @return A SDLCompassDirection with the value of *EAST* + */ ++ (SDLCompassDirection *)EAST; + +/** + * @abstract Direction Northeast + * @return A SDLCompassDirection with the value of *NORTHEAST* + */ ++ (SDLCompassDirection *)NORTHEAST; + +@end diff --git a/SmartDeviceLink/SDLCompassDirection.m b/SmartDeviceLink/SDLCompassDirection.m new file mode 100644 index 000000000..f1c79fed1 --- /dev/null +++ b/SmartDeviceLink/SDLCompassDirection.m @@ -0,0 +1,101 @@ +// SDLCompassDirection.m +// + + +#import "SDLCompassDirection.h" + +SDLCompassDirection *SDLCompassDirection_NORTH = nil; +SDLCompassDirection *SDLCompassDirection_NORTHWEST = nil; +SDLCompassDirection *SDLCompassDirection_WEST = nil; +SDLCompassDirection *SDLCompassDirection_SOUTHWEST = nil; +SDLCompassDirection *SDLCompassDirection_SOUTH = nil; +SDLCompassDirection *SDLCompassDirection_SOUTHEAST = nil; +SDLCompassDirection *SDLCompassDirection_EAST = nil; +SDLCompassDirection *SDLCompassDirection_NORTHEAST = nil; + +NSArray *SDLCompassDirection_values = nil; + +@implementation SDLCompassDirection + ++ (SDLCompassDirection *)valueOf:(NSString *)value { + for (SDLCompassDirection *item in SDLCompassDirection.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLCompassDirection_values == nil) { + SDLCompassDirection_values = @[ + SDLCompassDirection.NORTH, + SDLCompassDirection.NORTHWEST, + SDLCompassDirection.WEST, + SDLCompassDirection.SOUTHWEST, + SDLCompassDirection.SOUTH, + SDLCompassDirection.SOUTHEAST, + SDLCompassDirection.EAST, + SDLCompassDirection.NORTHEAST, + ]; + } + return SDLCompassDirection_values; +} + ++ (SDLCompassDirection *)NORTH { + if (SDLCompassDirection_NORTH == nil) { + SDLCompassDirection_NORTH = [[SDLCompassDirection alloc] initWithValue:@"NORTH"]; + } + return SDLCompassDirection_NORTH; +} + ++ (SDLCompassDirection *)NORTHWEST { + if (SDLCompassDirection_NORTHWEST == nil) { + SDLCompassDirection_NORTHWEST = [[SDLCompassDirection alloc] initWithValue:@"NORTHWEST"]; + } + return SDLCompassDirection_NORTHWEST; +} + ++ (SDLCompassDirection *)WEST { + if (SDLCompassDirection_WEST == nil) { + SDLCompassDirection_WEST = [[SDLCompassDirection alloc] initWithValue:@"WEST"]; + } + return SDLCompassDirection_WEST; +} + ++ (SDLCompassDirection *)SOUTHWEST { + if (SDLCompassDirection_SOUTHWEST == nil) { + SDLCompassDirection_SOUTHWEST = [[SDLCompassDirection alloc] initWithValue:@"SOUTHWEST"]; + } + return SDLCompassDirection_SOUTHWEST; +} + ++ (SDLCompassDirection *)SOUTH { + if (SDLCompassDirection_SOUTH == nil) { + SDLCompassDirection_SOUTH = [[SDLCompassDirection alloc] initWithValue:@"SOUTH"]; + } + return SDLCompassDirection_SOUTH; +} + ++ (SDLCompassDirection *)SOUTHEAST { + if (SDLCompassDirection_SOUTHEAST == nil) { + SDLCompassDirection_SOUTHEAST = [[SDLCompassDirection alloc] initWithValue:@"SOUTHEAST"]; + } + return SDLCompassDirection_SOUTHEAST; +} + ++ (SDLCompassDirection *)EAST { + if (SDLCompassDirection_EAST == nil) { + SDLCompassDirection_EAST = [[SDLCompassDirection alloc] initWithValue:@"EAST"]; + } + return SDLCompassDirection_EAST; +} + ++ (SDLCompassDirection *)NORTHEAST { + if (SDLCompassDirection_NORTHEAST == nil) { + SDLCompassDirection_NORTHEAST = [[SDLCompassDirection alloc] initWithValue:@"NORTHEAST"]; + } + return SDLCompassDirection_NORTHEAST; +} + +@end diff --git a/SmartDeviceLink/SDLComponentVolumeStatus.h b/SmartDeviceLink/SDLComponentVolumeStatus.h new file mode 100644 index 000000000..8df22663c --- /dev/null +++ b/SmartDeviceLink/SDLComponentVolumeStatus.h @@ -0,0 +1,64 @@ +// SDLComponentVolumeStatus.h +// + + +#import "SDLEnum.h" + +/** + * The volume status of a vehicle component. + * + * @since SDL 2.0 + */ +@interface SDLComponentVolumeStatus : SDLEnum { +} + +/** + * @abstract Convert String to SDLComponentVolumeStatus + * @param value The value of the string to get an object for + * @return SDLComponentVolumeStatus + */ ++ (SDLComponentVolumeStatus *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLComponentVolumeStatus + * @return An array that store all possible SDLComponentVolumeStatus + */ ++ (NSArray *)values; + +/** + * @abstract Unknown SDLComponentVolumeStatus + * @return a SDLComponentVolumeStatus with the value of *UNKNOWN* + */ ++ (SDLComponentVolumeStatus *)UNKNOWN; + +/** + * @abstract Normal SDLComponentVolumeStatus + * @return a SDLComponentVolumeStatus with the value of *NORMAL* + */ ++ (SDLComponentVolumeStatus *)NORMAL; + +/** + * @abstract Low SDLComponentVolumeStatus + * @return a SDLComponentVolumeStatus with the value of *LOW* + */ ++ (SDLComponentVolumeStatus *)LOW; + +/** + * @abstract Fault SDLComponentVolumeStatus + * @return a SDLComponentVolumeStatus with the value of *FAULT* + */ ++ (SDLComponentVolumeStatus *)FAULT; + +/** + * @abstract Alert SDLComponentVolumeStatus + * @return a SDLComponentVolumeStatus with the value of *ALERT* + */ ++ (SDLComponentVolumeStatus *)ALERT; + +/** + * @abstract Not supported SDLComponentVolumeStatus + * @return a SDLComponentVolumeStatus with the value of *NOT_SUPPORTED* + */ ++ (SDLComponentVolumeStatus *)NOT_SUPPORTED; + +@end diff --git a/SmartDeviceLink/SDLComponentVolumeStatus.m b/SmartDeviceLink/SDLComponentVolumeStatus.m new file mode 100644 index 000000000..2e6834fb5 --- /dev/null +++ b/SmartDeviceLink/SDLComponentVolumeStatus.m @@ -0,0 +1,83 @@ +// SDLComponentVolumeStatus.m +// + + +#import "SDLComponentVolumeStatus.h" + +SDLComponentVolumeStatus *SDLComponentVolumeStatus_UNKNOWN = nil; +SDLComponentVolumeStatus *SDLComponentVolumeStatus_NORMAL = nil; +SDLComponentVolumeStatus *SDLComponentVolumeStatus_LOW = nil; +SDLComponentVolumeStatus *SDLComponentVolumeStatus_FAULT = nil; +SDLComponentVolumeStatus *SDLComponentVolumeStatus_ALERT = nil; +SDLComponentVolumeStatus *SDLComponentVolumeStatus_NOT_SUPPORTED = nil; + +NSArray *SDLComponentVolumeStatus_values = nil; + +@implementation SDLComponentVolumeStatus + ++ (SDLComponentVolumeStatus *)valueOf:(NSString *)value { + for (SDLComponentVolumeStatus *item in SDLComponentVolumeStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLComponentVolumeStatus_values == nil) { + SDLComponentVolumeStatus_values = @[ + SDLComponentVolumeStatus.UNKNOWN, + SDLComponentVolumeStatus.NORMAL, + SDLComponentVolumeStatus.LOW, + SDLComponentVolumeStatus.FAULT, + SDLComponentVolumeStatus.ALERT, + SDLComponentVolumeStatus.NOT_SUPPORTED, + ]; + } + return SDLComponentVolumeStatus_values; +} + ++ (SDLComponentVolumeStatus *)UNKNOWN { + if (SDLComponentVolumeStatus_UNKNOWN == nil) { + SDLComponentVolumeStatus_UNKNOWN = [[SDLComponentVolumeStatus alloc] initWithValue:@"UNKNOWN"]; + } + return SDLComponentVolumeStatus_UNKNOWN; +} + ++ (SDLComponentVolumeStatus *)NORMAL { + if (SDLComponentVolumeStatus_NORMAL == nil) { + SDLComponentVolumeStatus_NORMAL = [[SDLComponentVolumeStatus alloc] initWithValue:@"NORMAL"]; + } + return SDLComponentVolumeStatus_NORMAL; +} + ++ (SDLComponentVolumeStatus *)LOW { + if (SDLComponentVolumeStatus_LOW == nil) { + SDLComponentVolumeStatus_LOW = [[SDLComponentVolumeStatus alloc] initWithValue:@"LOW"]; + } + return SDLComponentVolumeStatus_LOW; +} + ++ (SDLComponentVolumeStatus *)FAULT { + if (SDLComponentVolumeStatus_FAULT == nil) { + SDLComponentVolumeStatus_FAULT = [[SDLComponentVolumeStatus alloc] initWithValue:@"FAULT"]; + } + return SDLComponentVolumeStatus_FAULT; +} + ++ (SDLComponentVolumeStatus *)ALERT { + if (SDLComponentVolumeStatus_ALERT == nil) { + SDLComponentVolumeStatus_ALERT = [[SDLComponentVolumeStatus alloc] initWithValue:@"ALERT"]; + } + return SDLComponentVolumeStatus_ALERT; +} + ++ (SDLComponentVolumeStatus *)NOT_SUPPORTED { + if (SDLComponentVolumeStatus_NOT_SUPPORTED == nil) { + SDLComponentVolumeStatus_NOT_SUPPORTED = [[SDLComponentVolumeStatus alloc] initWithValue:@"NOT_SUPPORTED"]; + } + return SDLComponentVolumeStatus_NOT_SUPPORTED; +} + +@end diff --git a/SmartDeviceLink/SDLConsoleController.h b/SmartDeviceLink/SDLConsoleController.h new file mode 100644 index 000000000..5dec97948 --- /dev/null +++ b/SmartDeviceLink/SDLConsoleController.h @@ -0,0 +1,21 @@ +// SDLConsoleController.h +// + +#import +#import + +#import "SDLDebugTool.h" + + +@interface SDLConsoleController : UITableViewController { + NSMutableArray *messageList; + BOOL atBottom; + NSDateFormatter *dateFormatter; +} + +@property (strong, readonly) NSMutableArray *messageList; + +- (instancetype)initWithTableView:(UITableView *)tableView; + + +@end diff --git a/SmartDeviceLink/SDLConsoleController.m b/SmartDeviceLink/SDLConsoleController.m new file mode 100644 index 000000000..bf7f600ec --- /dev/null +++ b/SmartDeviceLink/SDLConsoleController.m @@ -0,0 +1,201 @@ +// SDLConsoleController.m +// + +#import "SDLConsoleController.h" + +#import "SDLJSONEncoder.h" +#import "SDLRPCResponse.h" + + +@implementation SDLConsoleController + +@synthesize messageList; + +- (instancetype)initWithTableView:(UITableView *)tableView { + if (self = [super initWithStyle:UITableViewStylePlain]) { + self.tableView = tableView; + self.tableView.delegate = self; + self.tableView.dataSource = self; + [self viewDidLoad]; + } + return self; +} + + +- (void)append:(id)toAppend { + dispatch_async(dispatch_get_main_queue(), ^{ + //Insert the new data + NSMutableDictionary *dictionary = [NSMutableDictionary dictionary]; + + [dictionary setObject:toAppend forKey:@"object"]; + [dictionary setObject:[NSDate date] forKey:@"date"]; + + [messageList addObject:dictionary]; + NSIndexPath *newIndex = [NSIndexPath indexPathForRow:(messageList.count - 1) inSection:0]; + [self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:newIndex] withRowAnimation:UITableViewRowAnimationNone]; + + //If we were at the bottom, scroll to the new bottom. + if (atBottom) { + [self.tableView scrollToRowAtIndexPath:newIndex atScrollPosition:UITableViewScrollPositionBottom animated:YES]; + } + + [self.tableView reloadData]; + }); +} + +- (BOOL)isLastRowVisible { + if (messageList.count == 0) { + return YES; + } else { + NSIndexPath *lastIndex = [NSIndexPath indexPathForRow:(messageList.count - 1) inSection:0]; + + NSArray *visibleRowIndexes = [self.tableView indexPathsForVisibleRows]; + for (NSIndexPath *aPath in visibleRowIndexes) { + if ([aPath compare:lastIndex] == NSOrderedSame) { + return YES; + } + } + } + return NO; +} + + +#pragma mark - +#pragma mark SDLDebugTool Console Delegate + +- (void)logInfo:(NSString *)info { + [self append:info]; +} + +- (void)logException:(NSException *)ex withMessage:(NSString *)message { + [self append:message]; + [self append:[ex description]]; +} + +- (void)logMessage:(SDLRPCMessage *)message { + [self append:message]; +} + + +#pragma mark - +#pragma mark View lifecycle + + +- (void)viewDidLoad { + [SDLDebugTool addConsole:self]; + + [super viewDidLoad]; + + atBottom = YES; + + messageList = [[NSMutableArray alloc] initWithCapacity:100]; + dateFormatter = [[NSDateFormatter alloc] init]; + dateFormatter.dateFormat = @"hh:mm:ss.SSS"; +} + +#pragma mark - +#pragma mark Scroll View Delegate + +- (void)updateWhetherScrolledToBottom { + if ([self isLastRowVisible]) { + atBottom = YES; + } else { + atBottom = NO; + } +} + +- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView { + [self updateWhetherScrolledToBottom]; +} + +- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)willDecelerate { + [self updateWhetherScrolledToBottom]; +} + + +#pragma mark - +#pragma mark Table view data source + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { + // Return the number of sections. + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + // Return the number of rows in the section. + return messageList.count; +} + +// Customize the appearance of table view cells. +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + static NSString *CellIdentifier = @"Cell"; + + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; + if (cell == nil) { + cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier]; + } + + NSDictionary *currentDictionary = [messageList objectAtIndex:indexPath.row]; + id msg = [currentDictionary objectForKey:@"object"]; + + NSString *tempdetail = [@"Time: " stringByAppendingString:[dateFormatter stringFromDate:[currentDictionary objectForKey:@"date"]]]; + + if ([msg isKindOfClass:SDLRPCMessage.class]) { + SDLRPCMessage *rpc = msg; + NSString *title = [NSString stringWithFormat:@"%@ (%@)", rpc.name, rpc.messageType]; + + cell.textLabel.text = title; + + if ([rpc.messageType isEqualToString:@"response"]) { + SDLRPCResponse *response = (SDLRPCResponse *)rpc; + + NSString *detail = [NSString stringWithFormat:@"%@ - %@", tempdetail, [response resultCode]]; + cell.detailTextLabel.text = detail; + } else { + cell.detailTextLabel.text = tempdetail; + } + + } else { + cell.textLabel.text = msg; + cell.detailTextLabel.text = tempdetail; + } + + return cell; +} + + +#pragma mark - +#pragma mark Table view delegate + +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { + NSDictionary *currentDictionary = [messageList objectAtIndex:indexPath.row]; + id obj = [currentDictionary objectForKey:@"object"]; + + NSString *alertText = nil; + if (obj == nil || [obj isKindOfClass:SDLRPCMessage.class]) { + SDLRPCMessage *rpc = obj; + NSDictionary *dictionary = [rpc serializeAsDictionary:2]; + NSError *error = nil; + NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dictionary + options:NSJSONWritingPrettyPrinted + error:&error]; + + if (!jsonData) { + alertText = @"Error parsing the JSON."; + } else { + alertText = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; + } + + } else { + alertText = [NSString stringWithFormat:@"%@", [obj description]]; + } + + UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"RPCMessage" message:alertText delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; + [alertView show]; + alertView = nil; + + [self.tableView deselectRowAtIndexPath:indexPath animated:YES]; +} + + +@end diff --git a/SmartDeviceLink/SDLCreateInteractionChoiceSet.h b/SmartDeviceLink/SDLCreateInteractionChoiceSet.h new file mode 100644 index 000000000..721f505d7 --- /dev/null +++ b/SmartDeviceLink/SDLCreateInteractionChoiceSet.h @@ -0,0 +1,49 @@ +// SDLCreateInteractionChoiceSet.h +// + + +#import "SDLRPCRequest.h" + +/** + * Creates a Choice Set which can be used in subsequent *SDLPerformInteraction* Operations. + * + * HMILevel needs to be FULL, LIMITED or BACKGROUND + * + * Before a perform interaction is sent you MUST wait for the success from the CreateInteractionChoiceSet RPC. + * + * If you do not wait the system may not recognize the first utterance from the user. + * + * @since SDL 1.0 + * + * @see SDLDeleteInteractionChoiceSet SDLPerformInteraction + */ +@interface SDLCreateInteractionChoiceSet : SDLRPCRequest { +} + +/** + * Constructs a new SDLCreateInteractionChoiceSet object + */ +- (instancetype)init; + +/** + * Constructs a new SDLCreateInteractionChoiceSet object indicated by the dictionary parameter + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A unique ID that identifies the Choice Set + * + * Required, Integer, 0 - 2,000,000,000 + */ +@property (strong) NSNumber *interactionChoiceSetID; + +/** + * @abstract Array of choices, which the user can select by menu or voice recognition + * + * Required, SDLChoice, Array size 1 - 100 + */ +@property (strong) NSMutableArray *choiceSet; + +@end diff --git a/SmartDeviceLink/SDLCreateInteractionChoiceSet.m b/SmartDeviceLink/SDLCreateInteractionChoiceSet.m new file mode 100644 index 000000000..32324d46e --- /dev/null +++ b/SmartDeviceLink/SDLCreateInteractionChoiceSet.m @@ -0,0 +1,57 @@ +// SDLCreateInteractionChoiceSet.m +// + + +#import "SDLCreateInteractionChoiceSet.h" + +#import "SDLChoice.h" +#import "SDLNames.h" + +@implementation SDLCreateInteractionChoiceSet + +- (instancetype)init { + if (self = [super initWithName:NAMES_CreateInteractionChoiceSet]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setInteractionChoiceSetID:(NSNumber *)interactionChoiceSetID { + if (interactionChoiceSetID != nil) { + [parameters setObject:interactionChoiceSetID forKey:NAMES_interactionChoiceSetID]; + } else { + [parameters removeObjectForKey:NAMES_interactionChoiceSetID]; + } +} + +- (NSNumber *)interactionChoiceSetID { + return [parameters objectForKey:NAMES_interactionChoiceSetID]; +} + +- (void)setChoiceSet:(NSMutableArray *)choiceSet { + if (choiceSet != nil) { + [parameters setObject:choiceSet forKey:NAMES_choiceSet]; + } else { + [parameters removeObjectForKey:NAMES_choiceSet]; + } +} + +- (NSMutableArray *)choiceSet { + NSMutableArray *array = [parameters objectForKey:NAMES_choiceSet]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLChoice.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLChoice alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.h b/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.h new file mode 100644 index 000000000..e2d3b76e5 --- /dev/null +++ b/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.h @@ -0,0 +1,19 @@ +// SDLCreateInteractionChoiceSetResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * SDLCreateInteractionChoiceSetResponse is sent, when SDLCreateInteractionChoiceSet + * has been called + * + * Since SmartDeviceLink 1.0 + */ +@interface SDLCreateInteractionChoiceSetResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.m b/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.m new file mode 100644 index 000000000..17c2bf3f9 --- /dev/null +++ b/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.m @@ -0,0 +1,23 @@ +// SDLCreateInteractionChoiceSetResponse.m +// + + +#import "SDLCreateInteractionChoiceSetResponse.h" + +#import "SDLNames.h" + +@implementation SDLCreateInteractionChoiceSetResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_CreateInteractionChoiceSet]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLDIDResult.h b/SmartDeviceLink/SDLDIDResult.h new file mode 100644 index 000000000..a7d0b6c16 --- /dev/null +++ b/SmartDeviceLink/SDLDIDResult.h @@ -0,0 +1,19 @@ +// SDLDIDResult.h +// + +#import "SDLRPCMessage.h" + +@class SDLVehicleDataResultCode; + + +@interface SDLDIDResult : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLVehicleDataResultCode *resultCode; +@property (strong) NSNumber *didLocation; +@property (strong) NSString *data; + +@end diff --git a/SmartDeviceLink/SDLDIDResult.m b/SmartDeviceLink/SDLDIDResult.m new file mode 100644 index 000000000..be42582e7 --- /dev/null +++ b/SmartDeviceLink/SDLDIDResult.m @@ -0,0 +1,65 @@ +// SDLDIDResult.m +// + +#import "SDLDIDResult.h" + +#import "SDLNames.h" +#import "SDLVehicleDataResultCode.h" + + +@implementation SDLDIDResult + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setResultCode:(SDLVehicleDataResultCode *)resultCode { + if (resultCode != nil) { + [store setObject:resultCode forKey:NAMES_resultCode]; + } else { + [store removeObjectForKey:NAMES_resultCode]; + } +} + +- (SDLVehicleDataResultCode *)resultCode { + NSObject *obj = [store objectForKey:NAMES_resultCode]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResultCode.class]) { + return (SDLVehicleDataResultCode *)obj; + } else { + return [SDLVehicleDataResultCode valueOf:(NSString *)obj]; + } +} + +- (void)setDidLocation:(NSNumber *)didLocation { + if (didLocation != nil) { + [store setObject:didLocation forKey:NAMES_didLocation]; + } else { + [store removeObjectForKey:NAMES_didLocation]; + } +} + +- (NSNumber *)didLocation { + return [store objectForKey:NAMES_didLocation]; +} + +- (void)setData:(NSString *)data { + if (data != nil) { + [store setObject:data forKey:NAMES_data]; + } else { + [store removeObjectForKey:NAMES_data]; + } +} + +- (NSString *)data { + return [store objectForKey:NAMES_data]; +} + +@end diff --git a/SmartDeviceLink/SDLDebugTool.h b/SmartDeviceLink/SDLDebugTool.h new file mode 100644 index 000000000..0e487303b --- /dev/null +++ b/SmartDeviceLink/SDLDebugTool.h @@ -0,0 +1,48 @@ +// SDLDebugTool.h +// + + +#import "SDLDebugToolConsole.h" +#import + +@class SDLRPCMessage; + + +typedef NS_ENUM(UInt8, SDLDebugType) { + SDLDebugType_Debug = 0, + SDLDebugType_Transport_iAP = 1, + SDLDebugType_Transport_TCP = 2, + SDLDebugType_Protocol = 3, + SDLDebugType_RPC = 4, + SDLDebugType_APP = 5 +}; + +typedef NS_ENUM(UInt8, SDLDebugOutput) { + SDLDebugOutput_All = 0xFF, + SDLDebugOutput_DeviceConsole = 1, + SDLDebugOutput_DebugToolConsole = 2, + SDLDebugOutput_File = 4 +}; + + +@interface SDLDebugTool : NSObject { +} + ++ (void)addConsole:(NSObject *)console; ++ (void)addConsole:(NSObject *)console toGroup:(NSString *)groupName; ++ (void)removeConsole:(NSObject *)console; ++ (void)removeConsole:(NSObject *)console fromGroup:(NSString *)groupName; ++ (void)logInfo:(NSString *)info; ++ (void)logInfo:(NSString *)info withType:(SDLDebugType)type; ++ (void)logInfo:(NSString *)info withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output; ++ (void)logInfo:(NSString *)info andBinaryData:(NSData *)data withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output; ++ (void)logInfo:(NSString *)info withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output toGroup:(NSString *)consoleGroupName; + ++ (void)enableDebugToLogFile; ++ (void)disableDebugToLogFile; ++ (void)writeToLogFile:(NSString *)info; + ++ (NSString *)stringForDebugType:(SDLDebugType)type; + + +@end diff --git a/SmartDeviceLink/SDLDebugTool.m b/SmartDeviceLink/SDLDebugTool.m new file mode 100644 index 000000000..1f0312c9c --- /dev/null +++ b/SmartDeviceLink/SDLDebugTool.m @@ -0,0 +1,258 @@ +// SDLDebugTool.m +// + +#import "SDLDebugTool.h" +#import "NSThread+ThreadIndex.h" +#import "SDLHexUtility.h" +#import "SDLRPCMessage.h" +#import "SDLSiphonServer.h" + +#define LOG_ERROR_ENABLED + +@interface SDLDebugTool () + +@property (nonatomic, assign) BOOL debugToLogFile; +@property (nonatomic, strong) NSMutableDictionary *namedConsoleSets; +@property (nonatomic, strong) NSDateFormatter *logDateFormatter; +@property (nonatomic, strong) NSFileHandle *logFileHandle; +@property (nonatomic, strong) dispatch_queue_t logQueue; + +@end + + +@implementation SDLDebugTool + +#pragma mark - Lifecycle + +- (instancetype)init { + self = [super init]; + if (!self) { + return nil; + } + + _debugToLogFile = NO; + _logQueue = dispatch_queue_create("com.sdl.log.file", DISPATCH_QUEUE_SERIAL); + + return self; +} + ++ (SDLDebugTool *)sharedTool { + static SDLDebugTool *sharedTool = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + sharedTool = [[self.class alloc] init]; + }); + + return sharedTool; +} + + +#pragma mark - Console Management + ++ (void)addConsole:(NSObject *)console { + [self addConsole:console toGroup:@"default"]; +} + +- (void)sdl_addConsole:(NSObject *)console toGroup:(NSString *)groupName { + // Make sure master dictionary exists + if (self.namedConsoleSets == nil) { + self.namedConsoleSets = [NSMutableDictionary new]; + } + + // Make sure the set to contain this group's elements exists + if ([self.namedConsoleSets objectForKey:groupName] == nil) { + [self.namedConsoleSets setValue:[NSMutableSet new] forKey:groupName]; + } + + // Add the console to the set + [[self.namedConsoleSets valueForKey:groupName] addObject:console]; +} + ++ (void)addConsole:(NSObject *)console toGroup:(NSString *)groupName { + [[self sharedTool] sdl_addConsole:console toGroup:groupName]; +} + ++ (void)removeConsole:(NSObject *)console { + [self removeConsole:console fromGroup:@"default"]; +} + ++ (void)removeConsole:(NSObject *)console fromGroup:(NSString *)groupName { + [[SDLDebugTool getConsoleListenersForGroup:groupName] removeObject:console]; +} + ++ (NSMutableSet *)getConsoleListenersForGroup:(NSString *)groupName { + return [[self sharedTool] sdl_getConsoleListenersForGroup:groupName]; +} + +- (NSMutableSet *)sdl_getConsoleListenersForGroup:(NSString *)groupName { + return [self.namedConsoleSets valueForKey:groupName]; +} + + +#pragma mark - Logging + ++ (void)logInfo:(NSString *)info { + [self logInfo:info withType:SDLDebugType_Debug toOutput:SDLDebugOutput_All toGroup:@"default"]; +} + ++ (void)logInfo:(NSString *)info withType:(SDLDebugType)type { + [self logInfo:info withType:type toOutput:SDLDebugOutput_All toGroup:@"default"]; +} + ++ (void)logInfo:(NSString *)info withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output { + [SDLDebugTool logInfo:info withType:type toOutput:output toGroup:@"default"]; +} + ++ (void)logInfo:(NSString *)info andBinaryData:(NSData *)data withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output { + // convert binary data to string, append the two strings, then pass to usual log method. + NSMutableString *outputString = [[NSMutableString alloc] init]; + if (info) { + [outputString appendString:info]; + } + + if (data) { + @autoreleasepool { + NSString *dataString = [SDLHexUtility getHexString:data]; + if (dataString) { + [outputString appendString:dataString]; + } + } + } + + [SDLDebugTool logInfo:outputString withType:type toOutput:output toGroup:@"default"]; +} + +// The designated logInfo method. All outputs should be performed here. ++ (void)logInfo:(NSString *)info withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output toGroup:(NSString *)consoleGroupName { + // Format the message, prepend the thread id + NSString *outputString = [NSString stringWithFormat:@"[%li] %@", (long)[[NSThread currentThread] threadIndex], info]; + + // Output to the various destinations + + //Output To DeviceConsole + if (output & SDLDebugOutput_DeviceConsole) { + NSLog(@"%@", outputString); + } + + //Output To DebugToolConsoles + if (output & SDLDebugOutput_DebugToolConsole) { + NSSet *consoleListeners = [self getConsoleListenersForGroup:consoleGroupName]; + for (NSObject *console in consoleListeners) { + [console logInfo:outputString]; + } + } + + //Output To LogFile + if (output & SDLDebugOutput_File) { + [SDLDebugTool writeToLogFile:outputString]; + } + + //Output To Siphon + [SDLSiphonServer init]; + [SDLSiphonServer _siphonNSLogData:outputString]; +} + + +#pragma mark - File Handling + ++ (void)enableDebugToLogFile { + [[self sharedTool] sdl_enableDebugToLogFile]; +} + +- (void)sdl_enableDebugToLogFile { + [SDLDebugTool logInfo:@"Enabling Log File" withType:SDLDebugType_Debug]; + + self.debugToLogFile = YES; + + //Delete Log File If It Exists + NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); + NSString *documentsDirectory = [paths objectAtIndex:0]; + NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"smartdevicelink.log"]; + + NSFileManager *manager = [NSFileManager defaultManager]; + if ([manager fileExistsAtPath:filePath]) { + [manager removeItemAtPath:filePath error:nil]; + } + + // Create log file + [manager createFileAtPath:filePath contents:nil attributes:nil]; + self.logFileHandle = [NSFileHandle fileHandleForWritingAtPath:filePath]; + [self.logFileHandle seekToEndOfFile]; +} + ++ (void)disableDebugToLogFile { + [[self sharedTool] sdl_disableDebugToLogFile]; +} + +- (void)sdl_disableDebugToLogFile { + self.debugToLogFile = false; +} + ++ (void)writeToLogFile:(NSString *)info { + [[self sharedTool] sdl_writeToLogFile:info]; +} + +- (void)sdl_writeToLogFile:(NSString *)info { + // Warning: do not call any logInfo method from here. recursion of death. + if (!self.debugToLogFile || info == NULL || info.length == 0) { + return; + } + + dispatch_async(self.logQueue, ^{ + // Create timestamp string, add it in front of the message to be logged + NSDate *currentDate = [NSDate date]; + NSString *dateString = [self.logDateFormatter stringFromDate:currentDate]; + NSString *outputString = [dateString stringByAppendingFormat:@": %@\n", info]; + + // File write takes an NSData, so convert string to data. + NSData *dataToLog = [outputString dataUsingEncoding:NSUTF8StringEncoding]; + + if (self.logFileHandle != nil) { + [self.logFileHandle seekToEndOfFile]; + [self.logFileHandle writeData:dataToLog]; + } else { + NSLog(@"SDL ERROR: Unable to log to file. File handle does not exist."); + } + }); +} + +- (NSDateFormatter *)logDateFormatter { + if (_logDateFormatter == nil) { + _logDateFormatter = [[NSDateFormatter alloc] init]; + [_logDateFormatter setDateFormat:@"MM/dd/YY HH:mm:ss.SSS"]; + } + + return _logDateFormatter; +} + + +#pragma mark - Helper Methods + ++ (NSString *)stringForDebugType:(SDLDebugType)debugType { + switch (debugType) { + case SDLDebugType_Debug: + return @"DBG"; + break; + case SDLDebugType_Transport_iAP: + return @"iAP"; + break; + case SDLDebugType_Transport_TCP: + return @"TCP"; + break; + case SDLDebugType_Protocol: + return @"Pro"; + break; + case SDLDebugType_RPC: + return @"RPC"; + break; + case SDLDebugType_APP: + return @"APP"; + break; + + default: + return @"Invalid DebugType"; + break; + } +} + +@end diff --git a/SmartDeviceLink/SDLDebugToolConsole.h b/SmartDeviceLink/SDLDebugToolConsole.h new file mode 100644 index 000000000..75d541e16 --- /dev/null +++ b/SmartDeviceLink/SDLDebugToolConsole.h @@ -0,0 +1,12 @@ +// +// SDLDebugToolConsole.h +// SmartDeviceLink-iOS + +#import + +@protocol SDLDebugToolConsole + +@required +- (void)logInfo:(NSString *)info; + +@end diff --git a/SmartDeviceLink/SDLDecoder.h b/SmartDeviceLink/SDLDecoder.h new file mode 100644 index 000000000..6328ecf82 --- /dev/null +++ b/SmartDeviceLink/SDLDecoder.h @@ -0,0 +1,11 @@ +// SDLDecoder.h +// + + +#import + +@protocol SDLDecoder + +- (NSDictionary *)decode:(NSData *)msgBytes; + +@end diff --git a/SmartDeviceLink/SDLDeleteCommand.h b/SmartDeviceLink/SDLDeleteCommand.h new file mode 100644 index 000000000..4f3b74d90 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteCommand.h @@ -0,0 +1,43 @@ +// SDLDeleteCommand.h +// + + +#import "SDLRPCRequest.h" + +/** + * Removes a command from the Command Menu + *

    + * HMI Status Requirements:
    + * HMILevel: FULL, LIMITED or BACKGROUND
    + * AudioStreamingState: N/A
    + * SystemContext: Should not be attempted when VRSESSION or MENU + *

    + * + * Since SmartDeviceLink 1.0
    + * see SDLAddCommand SDLAddSubMenu SDLDeleteSubMenu + */ +@interface SDLDeleteCommand : SDLRPCRequest { +} + +/** + * Constructs a new SDLDeleteCommand object + */ +- (instancetype)init; +/** + * Constructs a new SDLDeleteCommand object indicated by the NSMutableDictionary + * parameter + *

    + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract the Command ID that identifies the Command to be deleted from Command Menu + * @discussion an NSNumber value representing Command ID + *

    + * Notes: Min Value: 0; Max Value: 2000000000 + */ +@property (strong) NSNumber *cmdID; + +@end diff --git a/SmartDeviceLink/SDLDeleteCommand.m b/SmartDeviceLink/SDLDeleteCommand.m new file mode 100644 index 000000000..13c51d7ed --- /dev/null +++ b/SmartDeviceLink/SDLDeleteCommand.m @@ -0,0 +1,35 @@ +// SDLDeleteCommand.m +// + + +#import "SDLDeleteCommand.h" + +#import "SDLNames.h" + +@implementation SDLDeleteCommand + +- (instancetype)init { + if (self = [super initWithName:NAMES_DeleteCommand]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setCmdID:(NSNumber *)cmdID { + if (cmdID != nil) { + [parameters setObject:cmdID forKey:NAMES_cmdID]; + } else { + [parameters removeObjectForKey:NAMES_cmdID]; + } +} + +- (NSNumber *)cmdID { + return [parameters objectForKey:NAMES_cmdID]; +} + +@end diff --git a/SmartDeviceLink/SDLDeleteCommandResponse.h b/SmartDeviceLink/SDLDeleteCommandResponse.h new file mode 100644 index 000000000..7f231c8e3 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteCommandResponse.h @@ -0,0 +1,18 @@ +// SDLDeleteCommandResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * SDLDeleteCommandResponse is sent, when SDLDeleteCommand has been called + * + * Since SmartDeviceLink 1.0
    + */ +@interface SDLDeleteCommandResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLDeleteCommandResponse.m b/SmartDeviceLink/SDLDeleteCommandResponse.m new file mode 100644 index 000000000..3c3d5b7a7 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteCommandResponse.m @@ -0,0 +1,23 @@ +// SDLDeleteCommandResponse.m +// + + +#import "SDLDeleteCommandResponse.h" + +#import "SDLNames.h" + +@implementation SDLDeleteCommandResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_DeleteCommand]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLDeleteFile.h b/SmartDeviceLink/SDLDeleteFile.h new file mode 100644 index 000000000..325782673 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteFile.h @@ -0,0 +1,36 @@ +// SDLDeleteFile.h +// + + +#import "SDLRPCRequest.h" + +/** + * Used to delete a file resident on the SDL module in the app's local cache. + * Not supported on first generation SDL vehicles + *

    + * + * Since SmartDeviceLink 2.0
    + * see SDLPutFile SDLListFiles + */ +@interface SDLDeleteFile : SDLRPCRequest { +} + +/** + * Constructs a new SDLDeleteFile object + */ +- (instancetype)init; +/** + * Constructs a new SDLDeleteFile object indicated by the dictionary parameter + *

    + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract a file reference name + * @discussion a String value representing a file reference name + */ +@property (strong) NSString *syncFileName; + +@end diff --git a/SmartDeviceLink/SDLDeleteFile.m b/SmartDeviceLink/SDLDeleteFile.m new file mode 100644 index 000000000..d7a4c18b2 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteFile.m @@ -0,0 +1,35 @@ +// SDLDeleteFile.m +// + + +#import "SDLDeleteFile.h" + +#import "SDLNames.h" + +@implementation SDLDeleteFile + +- (instancetype)init { + if (self = [super initWithName:NAMES_DeleteFile]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setSyncFileName:(NSString *)syncFileName { + if (syncFileName != nil) { + [parameters setObject:syncFileName forKey:NAMES_syncFileName]; + } else { + [parameters removeObjectForKey:NAMES_syncFileName]; + } +} + +- (NSString *)syncFileName { + return [parameters objectForKey:NAMES_syncFileName]; +} + +@end diff --git a/SmartDeviceLink/SDLDeleteFileResponse.h b/SmartDeviceLink/SDLDeleteFileResponse.h new file mode 100644 index 000000000..ee61aa9d0 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteFileResponse.h @@ -0,0 +1,20 @@ +// SDLDeleteFileResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Delete File Response is sent, when DeleteFile has been called + * + * Since SmartDeviceLink 2.0
    + */ +@interface SDLDeleteFileResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSNumber *spaceAvailable; + +@end diff --git a/SmartDeviceLink/SDLDeleteFileResponse.m b/SmartDeviceLink/SDLDeleteFileResponse.m new file mode 100644 index 000000000..b94075b39 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteFileResponse.m @@ -0,0 +1,35 @@ +// SDLDeleteFileResponse.m +// + + +#import "SDLDeleteFileResponse.h" + +#import "SDLNames.h" + +@implementation SDLDeleteFileResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_DeleteFile]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setSpaceAvailable:(NSNumber *)spaceAvailable { + if (spaceAvailable != nil) { + [parameters setObject:spaceAvailable forKey:NAMES_spaceAvailable]; + } else { + [parameters removeObjectForKey:NAMES_spaceAvailable]; + } +} + +- (NSNumber *)spaceAvailable { + return [parameters objectForKey:NAMES_spaceAvailable]; +} + +@end diff --git a/SmartDeviceLink/SDLDeleteInteractionChoiceSet.h b/SmartDeviceLink/SDLDeleteInteractionChoiceSet.h new file mode 100644 index 000000000..28058064b --- /dev/null +++ b/SmartDeviceLink/SDLDeleteInteractionChoiceSet.h @@ -0,0 +1,45 @@ +// SDLDeleteInteractionChoiceSet.h +// + + +#import "SDLRPCRequest.h" + +/** + * Deletes an existing Choice Set identified by the parameter + * interactionChoiceSetID. If the specified interactionChoiceSetID is currently + * in use by an active SDLPerformInteraction this call to + * delete the Choice Set will fail returning an IN_USE resultCode + *

    + * Function Group: Base + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUD
    + *

    + * + * Since SmartDeviceLink 1.0
    + * see SDLCreateInteractionChoiceSet SDLPerformInteraction + */ +@interface SDLDeleteInteractionChoiceSet : SDLRPCRequest { +} + +/** + * Constructs a new SDLDeleteInteractionChoiceSet object + */ +- (instancetype)init; +/** + * Constructs a new SDLDeleteInteractionChoiceSet object indicated by the + * NSMutableDictionary parameter + *

    + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract a unique ID that identifies the Choice Set + * @discussion a unique ID that identifies the Choice Set + *

    + * Notes: Min Value: 0; Max Value: 2000000000 + */ +@property (strong) NSNumber *interactionChoiceSetID; + +@end diff --git a/SmartDeviceLink/SDLDeleteInteractionChoiceSet.m b/SmartDeviceLink/SDLDeleteInteractionChoiceSet.m new file mode 100644 index 000000000..fd5d202b1 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteInteractionChoiceSet.m @@ -0,0 +1,35 @@ +// SDLDeleteInteractionChoiceSet.m +// + + +#import "SDLDeleteInteractionChoiceSet.h" + +#import "SDLNames.h" + +@implementation SDLDeleteInteractionChoiceSet + +- (instancetype)init { + if (self = [super initWithName:NAMES_DeleteInteractionChoiceSet]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setInteractionChoiceSetID:(NSNumber *)interactionChoiceSetID { + if (interactionChoiceSetID != nil) { + [parameters setObject:interactionChoiceSetID forKey:NAMES_interactionChoiceSetID]; + } else { + [parameters removeObjectForKey:NAMES_interactionChoiceSetID]; + } +} + +- (NSNumber *)interactionChoiceSetID { + return [parameters objectForKey:NAMES_interactionChoiceSetID]; +} + +@end diff --git a/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.h b/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.h new file mode 100644 index 000000000..7a5cd4406 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.h @@ -0,0 +1,18 @@ +// SDLDeleteInteractionChoiceSetResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * SDLDeleteInteractionChoiceSetResponse is sent, when SDLDeleteInteractionChoiceSet has been called + * + * Since SmartDeviceLink 1.0 + */ +@interface SDLDeleteInteractionChoiceSetResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.m b/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.m new file mode 100644 index 000000000..666a758a1 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.m @@ -0,0 +1,23 @@ +// SDLDeleteInteractionChoiceSetResponse.m +// + + +#import "SDLDeleteInteractionChoiceSetResponse.h" + +#import "SDLNames.h" + +@implementation SDLDeleteInteractionChoiceSetResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_DeleteInteractionChoiceSet]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLDeleteSubMenu.h b/SmartDeviceLink/SDLDeleteSubMenu.h new file mode 100644 index 000000000..37c2dc544 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteSubMenu.h @@ -0,0 +1,38 @@ +// SDLDeleteSubMenu.h +// + + +#import "SDLRPCRequest.h" + +/** + * Deletes a submenu from the Command Menu + *

    + * Notes: When an app deletes a submenu that has child commands, those + * child commands are also deleted + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + * + * Since SmartDeviceLink 1.0
    + * see SDLAddCommand SDLAddSubMenu SDLDeleteCommand + */ +@interface SDLDeleteSubMenu : SDLRPCRequest { +} + +/** + * Constructs a new SDLDeleteSubMenu object + */ +- (instancetype)init; +/** + * Constructs a new SDLDeleteSubMenu object indicated by the dictionary parameter

    + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract the MenuID that identifies the SDLSubMenu to be delete + * @discussion Notes: Min Value: 0; Max Value: 2000000000 + */ +@property (strong) NSNumber *menuID; + +@end diff --git a/SmartDeviceLink/SDLDeleteSubMenu.m b/SmartDeviceLink/SDLDeleteSubMenu.m new file mode 100644 index 000000000..8727f44d3 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteSubMenu.m @@ -0,0 +1,35 @@ +// SDLDeleteSubMenu.m +// + + +#import "SDLDeleteSubMenu.h" + +#import "SDLNames.h" + +@implementation SDLDeleteSubMenu + +- (instancetype)init { + if (self = [super initWithName:NAMES_DeleteSubMenu]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setMenuID:(NSNumber *)menuID { + if (menuID != nil) { + [parameters setObject:menuID forKey:NAMES_menuID]; + } else { + [parameters removeObjectForKey:NAMES_menuID]; + } +} + +- (NSNumber *)menuID { + return [parameters objectForKey:NAMES_menuID]; +} + +@end diff --git a/SmartDeviceLink/SDLDeleteSubMenuResponse.h b/SmartDeviceLink/SDLDeleteSubMenuResponse.h new file mode 100644 index 000000000..3b32df8f3 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteSubMenuResponse.h @@ -0,0 +1,18 @@ +// SDLDeleteSubMenuResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * SDLDeleteSubMenuResponse is sent, when SDLDeleteSubMenu has been called + * + * Since SmartDeviceLink 1.0 + */ +@interface SDLDeleteSubMenuResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLDeleteSubMenuResponse.m b/SmartDeviceLink/SDLDeleteSubMenuResponse.m new file mode 100644 index 000000000..b88d9b626 --- /dev/null +++ b/SmartDeviceLink/SDLDeleteSubMenuResponse.m @@ -0,0 +1,23 @@ +// SDLDeleteSubMenuResponse.m +// + + +#import "SDLDeleteSubMenuResponse.h" + +#import "SDLNames.h" + +@implementation SDLDeleteSubMenuResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_DeleteSubMenu]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLDeviceInfo.h b/SmartDeviceLink/SDLDeviceInfo.h new file mode 100644 index 000000000..1bcbdaa27 --- /dev/null +++ b/SmartDeviceLink/SDLDeviceInfo.h @@ -0,0 +1,20 @@ +// SDLDeviceInfo.h +// + +#import "SDLRPCMessage.h" + + +@interface SDLDeviceInfo : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSString *hardware; +@property (strong) NSString *firmwareRev; +@property (strong) NSString *os; +@property (strong) NSString *osVersion; +@property (strong) NSString *carrier; +@property (strong) NSNumber *maxNumberRFCOMMPorts; + +@end diff --git a/SmartDeviceLink/SDLDeviceInfo.m b/SmartDeviceLink/SDLDeviceInfo.m new file mode 100644 index 000000000..134aea629 --- /dev/null +++ b/SmartDeviceLink/SDLDeviceInfo.m @@ -0,0 +1,95 @@ +// SDLDeviceInfo.m +// + +#import "SDLDeviceInfo.h" + +#import "SDLNames.h" + + +@implementation SDLDeviceInfo + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setHardware:(NSString *)hardware { + if (hardware != nil) { + [store setObject:hardware forKey:NAMES_hardware]; + } else { + [store removeObjectForKey:NAMES_hardware]; + } +} + +- (NSString *)hardware { + return [store objectForKey:NAMES_hardware]; +} + +- (void)setFirmwareRev:(NSString *)firmwareRev { + if (firmwareRev != nil) { + [store setObject:firmwareRev forKey:NAMES_firmwareRev]; + } else { + [store removeObjectForKey:NAMES_firmwareRev]; + } +} + +- (NSString *)firmwareRev { + return [store objectForKey:NAMES_firmwareRev]; +} + +- (void)setOs:(NSString *)os { + if (os != nil) { + [store setObject:os forKey:NAMES_os]; + } else { + [store removeObjectForKey:NAMES_os]; + } +} + +- (NSString *)os { + return [store objectForKey:NAMES_os]; +} + +- (void)setOsVersion:(NSString *)osVersion { + if (osVersion != nil) { + [store setObject:osVersion forKey:NAMES_osVersion]; + } else { + [store removeObjectForKey:NAMES_osVersion]; + } +} + +- (NSString *)osVersion { + return [store objectForKey:NAMES_osVersion]; +} + +- (void)setCarrier:(NSString *)carrier { + if (carrier != nil) { + [store setObject:carrier forKey:NAMES_carrier]; + } else { + [store removeObjectForKey:NAMES_carrier]; + } +} + +- (NSString *)carrier { + return [store objectForKey:NAMES_carrier]; +} + +- (void)setMaxNumberRFCOMMPorts:(NSNumber *)maxNumberRFCOMMPorts { + if (maxNumberRFCOMMPorts != nil) { + [store setObject:maxNumberRFCOMMPorts forKey:NAMES_maxNumberRFCOMMPorts]; + } else { + [store removeObjectForKey:NAMES_maxNumberRFCOMMPorts]; + } +} + +- (NSNumber *)maxNumberRFCOMMPorts { + return [store objectForKey:NAMES_maxNumberRFCOMMPorts]; +} + +@end diff --git a/SmartDeviceLink/SDLDeviceLevelStatus.h b/SmartDeviceLink/SDLDeviceLevelStatus.h new file mode 100644 index 000000000..e0cb85aea --- /dev/null +++ b/SmartDeviceLink/SDLDeviceLevelStatus.h @@ -0,0 +1,64 @@ +// SDLDeviceLevelStatus.h +// + + +#import "SDLEnum.h" + +/** + * Reflects the reported battery status of the connected device, if reported. + * + * @since SDL 2.0 + */ +@interface SDLDeviceLevelStatus : SDLEnum { +} + +/** + * Convert String to DeviceLevelStatus + * @param value String + * @return DeviceLevelStatus + */ ++ (SDLDeviceLevelStatus *)valueOf:(NSString *)value; + +/** + @abstract Store the enumeration of all possible SDLDeviceLevelStatus + @return an array that store all possible SDLDeviceLevelStatus + */ ++ (NSArray *)values; + +/** + * @abstract Device battery level is zero bars + * @return a SDLDeviceLevelStatus with value of *ZERO_LEVEL_BARS* + */ ++ (SDLDeviceLevelStatus *)ZERO_LEVEL_BARS; + +/** + * @abstract Device battery level is one bar + * @return a SDLDeviceLevelStatus with value of *ONE_LEVEL_BARS* + */ ++ (SDLDeviceLevelStatus *)ONE_LEVEL_BARS; + +/** + * @abstract Device battery level is two bars + * @return a SDLDeviceLevelStatus with value of *TWO_LEVEL_BARS* + */ ++ (SDLDeviceLevelStatus *)TWO_LEVEL_BARS; + +/** + * @abstract Device battery level is three bars + * @return a SDLDeviceLevelStatus with value of *THREE_LEVEL_BARS* + */ ++ (SDLDeviceLevelStatus *)THREE_LEVEL_BARS; + +/** + * @abstract Device battery level is four bars + * @return a SDLDeviceLevelStatus with value of *FOUR_LEVEL_BARS* + */ ++ (SDLDeviceLevelStatus *)FOUR_LEVEL_BARS; + +/** + * @abstract Device battery level is unknown + * @return a SDLDeviceLevelStatus with value of *NOT_PROVIDED* + */ ++ (SDLDeviceLevelStatus *)NOT_PROVIDED; + +@end diff --git a/SmartDeviceLink/SDLDeviceLevelStatus.m b/SmartDeviceLink/SDLDeviceLevelStatus.m new file mode 100644 index 000000000..5babd37b5 --- /dev/null +++ b/SmartDeviceLink/SDLDeviceLevelStatus.m @@ -0,0 +1,83 @@ +// SDLDeviceLevelStatus.m +// + + +#import "SDLDeviceLevelStatus.h" + +SDLDeviceLevelStatus *SDLDeviceLevelStatus_ZERO_LEVEL_BARS = nil; +SDLDeviceLevelStatus *SDLDeviceLevelStatus_ONE_LEVEL_BARS = nil; +SDLDeviceLevelStatus *SDLDeviceLevelStatus_TWO_LEVEL_BARS = nil; +SDLDeviceLevelStatus *SDLDeviceLevelStatus_THREE_LEVEL_BARS = nil; +SDLDeviceLevelStatus *SDLDeviceLevelStatus_FOUR_LEVEL_BARS = nil; +SDLDeviceLevelStatus *SDLDeviceLevelStatus_NOT_PROVIDED = nil; + +NSArray *SDLDeviceLevelStatus_values = nil; + +@implementation SDLDeviceLevelStatus + ++ (SDLDeviceLevelStatus *)valueOf:(NSString *)value { + for (SDLDeviceLevelStatus *item in SDLDeviceLevelStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLDeviceLevelStatus_values == nil) { + SDLDeviceLevelStatus_values = @[ + SDLDeviceLevelStatus.ZERO_LEVEL_BARS, + SDLDeviceLevelStatus.ONE_LEVEL_BARS, + SDLDeviceLevelStatus.TWO_LEVEL_BARS, + SDLDeviceLevelStatus.THREE_LEVEL_BARS, + SDLDeviceLevelStatus.FOUR_LEVEL_BARS, + SDLDeviceLevelStatus.NOT_PROVIDED, + ]; + } + return SDLDeviceLevelStatus_values; +} + ++ (SDLDeviceLevelStatus *)ZERO_LEVEL_BARS { + if (SDLDeviceLevelStatus_ZERO_LEVEL_BARS == nil) { + SDLDeviceLevelStatus_ZERO_LEVEL_BARS = [[SDLDeviceLevelStatus alloc] initWithValue:@"ZERO_LEVEL_BARS"]; + } + return SDLDeviceLevelStatus_ZERO_LEVEL_BARS; +} + ++ (SDLDeviceLevelStatus *)ONE_LEVEL_BARS { + if (SDLDeviceLevelStatus_ONE_LEVEL_BARS == nil) { + SDLDeviceLevelStatus_ONE_LEVEL_BARS = [[SDLDeviceLevelStatus alloc] initWithValue:@"ONE_LEVEL_BARS"]; + } + return SDLDeviceLevelStatus_ONE_LEVEL_BARS; +} + ++ (SDLDeviceLevelStatus *)TWO_LEVEL_BARS { + if (SDLDeviceLevelStatus_TWO_LEVEL_BARS == nil) { + SDLDeviceLevelStatus_TWO_LEVEL_BARS = [[SDLDeviceLevelStatus alloc] initWithValue:@"TWO_LEVEL_BARS"]; + } + return SDLDeviceLevelStatus_TWO_LEVEL_BARS; +} + ++ (SDLDeviceLevelStatus *)THREE_LEVEL_BARS { + if (SDLDeviceLevelStatus_THREE_LEVEL_BARS == nil) { + SDLDeviceLevelStatus_THREE_LEVEL_BARS = [[SDLDeviceLevelStatus alloc] initWithValue:@"THREE_LEVEL_BARS"]; + } + return SDLDeviceLevelStatus_THREE_LEVEL_BARS; +} + ++ (SDLDeviceLevelStatus *)FOUR_LEVEL_BARS { + if (SDLDeviceLevelStatus_FOUR_LEVEL_BARS == nil) { + SDLDeviceLevelStatus_FOUR_LEVEL_BARS = [[SDLDeviceLevelStatus alloc] initWithValue:@"FOUR_LEVEL_BARS"]; + } + return SDLDeviceLevelStatus_FOUR_LEVEL_BARS; +} + ++ (SDLDeviceLevelStatus *)NOT_PROVIDED { + if (SDLDeviceLevelStatus_NOT_PROVIDED == nil) { + SDLDeviceLevelStatus_NOT_PROVIDED = [[SDLDeviceLevelStatus alloc] initWithValue:@"NOT_PROVIDED"]; + } + return SDLDeviceLevelStatus_NOT_PROVIDED; +} + +@end diff --git a/SmartDeviceLink/SDLDeviceStatus.h b/SmartDeviceLink/SDLDeviceStatus.h new file mode 100644 index 000000000..d8442d438 --- /dev/null +++ b/SmartDeviceLink/SDLDeviceStatus.h @@ -0,0 +1,199 @@ +// SDLDeviceStatus.h +// + +#import "SDLRPCMessage.h" + +@class SDLDeviceLevelStatus; +@class SDLPrimaryAudioSource; + + +/** + * Describes the status related to a connected mobile device or SDL and if or how it is represented in the vehicle. + * + * Parameter List + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    NameTypeDescriptionSmartDeviceLink Ver. Available
    voiceRecOnNSNumber * Voice recognition is on + * SmartDeviceLink 2.0
    btIconOnNSNumber * Bluetooth connection established + * SmartDeviceLink 2.0
    callActiveNSNumber * A call is being active + * SmartDeviceLink 2.0
    phoneRoamingNSNumber * The phone is in roaming mode + * SmartDeviceLink 2.0
    textMsgAvailableNSNumber * A textmessage is available + * SmartDeviceLink 2.0
    battLevelStatusSDLDeviceLevelStatus * Battery level status + * SmartDeviceLink 2.0
    stereoAudioOutputMutedNSNumber * Status of the stereo audio output channel + * SmartDeviceLink 2.0
    monoAudioOutputMutedNSNumber * Status of the mono audio output channel + * SmartDeviceLink 2.0
    signalLevelStatusSDLDeviceLevelStatus * Signal level status + * SmartDeviceLink 2.0
    primaryAudioSourcePrimaryAudioSource * Reflects the current primary audio source of SDL (if selected). + * SmartDeviceLink 2.0
    eCallEventActiveNSNumber * Reflects, if an eCall event is active + * SmartDeviceLink 2.0
    + * @since SDL 2.0 + */ +@interface SDLDeviceStatus : SDLRPCStruct { +} + +/** + * Constructs a newly allocated SDLDeviceStatus object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLDeviceStatus object indicated by the dictionary parameter + * + * @param dict The dictionary to use to construct the object + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract Indicates whether the voice recognition is on or off + * + * Required, Boolean + */ +@property (strong) NSNumber *voiceRecOn; + +/** + * @abstract Indicates whether the bluetooth connection established + * + * Required, Boolean + */ +@property (strong) NSNumber *btIconOn; + +/** + * @abstract Indicates whether a call is being active + * + * Required, Boolean + */ +@property (strong) NSNumber *callActive; + +/** + * @abstract Indicates whether the phone is in roaming mode + * + * Required, Boolean + */ +@property (strong) NSNumber *phoneRoaming; + +/** + * @abstract Indicates whether a textmessage is available + * + * Required, Boolean + */ +@property (strong) NSNumber *textMsgAvailable; + +/** + * @abstract Battery level status + * + * @see SDLDeviceLevelStatus + * + * Required + */ +@property (strong) SDLDeviceLevelStatus *battLevelStatus; + +/** + * @abstract The status of the stereo audio output channel + * + * Required, Boolean + */ +@property (strong) NSNumber *stereoAudioOutputMuted; + +/** + * @abstract The status of the mono audio output channel + * + * Required, Boolean + */ +@property (strong) NSNumber *monoAudioOutputMuted; + +/** + * @abstract Signal level status + * + * @see SDLDeviceLevelStatus + * + * Required + */ +@property (strong) SDLDeviceLevelStatus *signalLevelStatus; + +/** + * @abstract The current primary audio source of SDL (if selected). + * + * @see SDLPrimaryAudioSource + * + * Required + */ +@property (strong) SDLPrimaryAudioSource *primaryAudioSource; + +/** + * @abstract Indicates if an emergency call is active + * + * Required, Boolean + */ +@property (strong) NSNumber *eCallEventActive; + +@end diff --git a/SmartDeviceLink/SDLDeviceStatus.m b/SmartDeviceLink/SDLDeviceStatus.m new file mode 100644 index 000000000..fbe3b4b96 --- /dev/null +++ b/SmartDeviceLink/SDLDeviceStatus.m @@ -0,0 +1,172 @@ +// SDLDeviceStatus.m +// + +#import "SDLDeviceStatus.h" + +#import "SDLDeviceLevelStatus.h" +#import "SDLNames.h" +#import "SDLPrimaryAudioSource.h" + + +@implementation SDLDeviceStatus + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setVoiceRecOn:(NSNumber *)voiceRecOn { + if (voiceRecOn != nil) { + [store setObject:voiceRecOn forKey:NAMES_voiceRecOn]; + } else { + [store removeObjectForKey:NAMES_voiceRecOn]; + } +} + +- (NSNumber *)voiceRecOn { + return [store objectForKey:NAMES_voiceRecOn]; +} + +- (void)setBtIconOn:(NSNumber *)btIconOn { + if (btIconOn != nil) { + [store setObject:btIconOn forKey:NAMES_btIconOn]; + } else { + [store removeObjectForKey:NAMES_btIconOn]; + } +} + +- (NSNumber *)btIconOn { + return [store objectForKey:NAMES_btIconOn]; +} + +- (void)setCallActive:(NSNumber *)callActive { + if (callActive != nil) { + [store setObject:callActive forKey:NAMES_callActive]; + } else { + [store removeObjectForKey:NAMES_callActive]; + } +} + +- (NSNumber *)callActive { + return [store objectForKey:NAMES_callActive]; +} + +- (void)setPhoneRoaming:(NSNumber *)phoneRoaming { + if (phoneRoaming != nil) { + [store setObject:phoneRoaming forKey:NAMES_phoneRoaming]; + } else { + [store removeObjectForKey:NAMES_phoneRoaming]; + } +} + +- (NSNumber *)phoneRoaming { + return [store objectForKey:NAMES_phoneRoaming]; +} + +- (void)setTextMsgAvailable:(NSNumber *)textMsgAvailable { + if (textMsgAvailable != nil) { + [store setObject:textMsgAvailable forKey:NAMES_textMsgAvailable]; + } else { + [store removeObjectForKey:NAMES_textMsgAvailable]; + } +} + +- (NSNumber *)textMsgAvailable { + return [store objectForKey:NAMES_textMsgAvailable]; +} + +- (void)setBattLevelStatus:(SDLDeviceLevelStatus *)battLevelStatus { + if (battLevelStatus != nil) { + [store setObject:battLevelStatus forKey:NAMES_battLevelStatus]; + } else { + [store removeObjectForKey:NAMES_battLevelStatus]; + } +} + +- (SDLDeviceLevelStatus *)battLevelStatus { + NSObject *obj = [store objectForKey:NAMES_battLevelStatus]; + if (obj == nil || [obj isKindOfClass:SDLDeviceLevelStatus.class]) { + return (SDLDeviceLevelStatus *)obj; + } else { + return [SDLDeviceLevelStatus valueOf:(NSString *)obj]; + } +} + +- (void)setStereoAudioOutputMuted:(NSNumber *)stereoAudioOutputMuted { + if (stereoAudioOutputMuted != nil) { + [store setObject:stereoAudioOutputMuted forKey:NAMES_stereoAudioOutputMuted]; + } else { + [store removeObjectForKey:NAMES_stereoAudioOutputMuted]; + } +} + +- (NSNumber *)stereoAudioOutputMuted { + return [store objectForKey:NAMES_stereoAudioOutputMuted]; +} + +- (void)setMonoAudioOutputMuted:(NSNumber *)monoAudioOutputMuted { + if (monoAudioOutputMuted != nil) { + [store setObject:monoAudioOutputMuted forKey:NAMES_monoAudioOutputMuted]; + } else { + [store removeObjectForKey:NAMES_monoAudioOutputMuted]; + } +} + +- (NSNumber *)monoAudioOutputMuted { + return [store objectForKey:NAMES_monoAudioOutputMuted]; +} + +- (void)setSignalLevelStatus:(SDLDeviceLevelStatus *)signalLevelStatus { + if (signalLevelStatus != nil) { + [store setObject:signalLevelStatus forKey:NAMES_signalLevelStatus]; + } else { + [store removeObjectForKey:NAMES_signalLevelStatus]; + } +} + +- (SDLDeviceLevelStatus *)signalLevelStatus { + NSObject *obj = [store objectForKey:NAMES_signalLevelStatus]; + if (obj == nil || [obj isKindOfClass:SDLDeviceLevelStatus.class]) { + return (SDLDeviceLevelStatus *)obj; + } else { + return [SDLDeviceLevelStatus valueOf:(NSString *)obj]; + } +} + +- (void)setPrimaryAudioSource:(SDLPrimaryAudioSource *)primaryAudioSource { + if (primaryAudioSource != nil) { + [store setObject:primaryAudioSource forKey:NAMES_primaryAudioSource]; + } else { + [store removeObjectForKey:NAMES_primaryAudioSource]; + } +} + +- (SDLPrimaryAudioSource *)primaryAudioSource { + NSObject *obj = [store objectForKey:NAMES_primaryAudioSource]; + if (obj == nil || [obj isKindOfClass:SDLPrimaryAudioSource.class]) { + return (SDLPrimaryAudioSource *)obj; + } else { + return [SDLPrimaryAudioSource valueOf:(NSString *)obj]; + } +} + +- (void)setECallEventActive:(NSNumber *)eCallEventActive { + if (eCallEventActive != nil) { + [store setObject:eCallEventActive forKey:NAMES_eCallEventActive]; + } else { + [store removeObjectForKey:NAMES_eCallEventActive]; + } +} + +- (NSNumber *)eCallEventActive { + return [store objectForKey:NAMES_eCallEventActive]; +} + +@end diff --git a/SmartDeviceLink/SDLDiagnosticMessage.h b/SmartDeviceLink/SDLDiagnosticMessage.h new file mode 100644 index 000000000..40ca013f2 --- /dev/null +++ b/SmartDeviceLink/SDLDiagnosticMessage.h @@ -0,0 +1,39 @@ +// SDLDiagnosticMessage.h +// + + +#import "SDLRPCRequest.h" + +/** + * Non periodic vehicle diagnostic request + * + * @since SDL 3.0 + */ +@interface SDLDiagnosticMessage : SDLRPCRequest { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * Name of target ECU + * + * Required, Integer, 0 - 65535 + */ +@property (strong) NSNumber *targetID; + +/** + * Length of message (in bytes) + * + * Required, Integer, 65535 + */ +@property (strong) NSNumber *messageLength; + +/** + * Array of bytes comprising CAN message. + * + * Required, Array of NSNumber (Integers), Array size 1 - 65535, Integer Size 0 - 255 + */ +@property (strong) NSMutableArray *messageData; + +@end diff --git a/SmartDeviceLink/SDLDiagnosticMessage.m b/SmartDeviceLink/SDLDiagnosticMessage.m new file mode 100644 index 000000000..8a45a8650 --- /dev/null +++ b/SmartDeviceLink/SDLDiagnosticMessage.m @@ -0,0 +1,59 @@ +// SDLDiagnosticMessage.m +// + + +#import "SDLDiagnosticMessage.h" + +#import "SDLNames.h" + +@implementation SDLDiagnosticMessage + +- (instancetype)init { + if (self = [super initWithName:NAMES_DiagnosticMessage]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setTargetID:(NSNumber *)targetID { + if (targetID != nil) { + [parameters setObject:targetID forKey:NAMES_targetID]; + } else { + [parameters removeObjectForKey:NAMES_targetID]; + } +} + +- (NSNumber *)targetID { + return [parameters objectForKey:NAMES_targetID]; +} + +- (void)setMessageLength:(NSNumber *)messageLength { + if (messageLength != nil) { + [parameters setObject:messageLength forKey:NAMES_messageLength]; + } else { + [parameters removeObjectForKey:NAMES_messageLength]; + } +} + +- (NSNumber *)messageLength { + return [parameters objectForKey:NAMES_messageLength]; +} + +- (void)setMessageData:(NSMutableArray *)messageData { + if (messageData != nil) { + [parameters setObject:messageData forKey:NAMES_messageData]; + } else { + [parameters removeObjectForKey:NAMES_messageData]; + } +} + +- (NSMutableArray *)messageData { + return [parameters objectForKey:NAMES_messageData]; +} + +@end diff --git a/SmartDeviceLink/SDLDiagnosticMessageResponse.h b/SmartDeviceLink/SDLDiagnosticMessageResponse.h new file mode 100644 index 000000000..4820b893f --- /dev/null +++ b/SmartDeviceLink/SDLDiagnosticMessageResponse.h @@ -0,0 +1,18 @@ +// SDLDiagnosticMessageResponse.h +// + + +#import "SDLRPCResponse.h" + +/** SDLDiagnosticMessageResponse is sent, when SDLDiagnosticMessage has been called. + * SinceSmartDeviceLink 3.0 + */ +@interface SDLDiagnosticMessageResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSMutableArray *messageDataResult; + +@end diff --git a/SmartDeviceLink/SDLDiagnosticMessageResponse.m b/SmartDeviceLink/SDLDiagnosticMessageResponse.m new file mode 100644 index 000000000..f8215d977 --- /dev/null +++ b/SmartDeviceLink/SDLDiagnosticMessageResponse.m @@ -0,0 +1,34 @@ +// SDLDiagnosticMessageResponse.m +// + +#import "SDLDiagnosticMessageResponse.h" + +#import "SDLNames.h" + +@implementation SDLDiagnosticMessageResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_DiagnosticMessage]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setMessageDataResult:(NSMutableArray *)messageDataResult { + if (messageDataResult != nil) { + [parameters setObject:messageDataResult forKey:NAMES_messageDataResult]; + } else { + [parameters removeObjectForKey:NAMES_messageDataResult]; + } +} + +- (NSMutableArray *)messageDataResult { + return [parameters objectForKey:NAMES_messageDataResult]; +} + +@end diff --git a/SmartDeviceLink/SDLDialNumber.h b/SmartDeviceLink/SDLDialNumber.h new file mode 100644 index 000000000..48cca6a6d --- /dev/null +++ b/SmartDeviceLink/SDLDialNumber.h @@ -0,0 +1,22 @@ +// +// SDLDialNumber.h +// SmartDeviceLink-iOS + +#import "SDLRPCRequest.h" + +/** + This RPC is used to tell the head unit to use bluetooth to dial a phone number using the phone. + + @since SDL 4.0 + */ +@interface SDLDialNumber : SDLRPCRequest + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * Up to 40 character string representing the phone number. All characters stripped except for '0'-'9', '*', '#', ',', ';', and '+' + */ +@property (strong, nonatomic) NSString *number; + +@end diff --git a/SmartDeviceLink/SDLDialNumber.m b/SmartDeviceLink/SDLDialNumber.m new file mode 100644 index 000000000..856f9ad75 --- /dev/null +++ b/SmartDeviceLink/SDLDialNumber.m @@ -0,0 +1,35 @@ +// +// SDLDialNumber.m +// SmartDeviceLink-iOS + +#import "SDLDialNumber.h" + +#import "SDLNames.h" + +@implementation SDLDialNumber + +- (instancetype)init { + if (self = [super initWithName:NAMES_DialNumber]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setNumber:(NSString *)number { + if (number != nil) { + parameters[NAMES_number] = number; + } else { + [parameters removeObjectForKey:NAMES_number]; + } +} + +- (NSString *)number { + return parameters[NAMES_number]; +} + +@end diff --git a/SmartDeviceLink/SDLDialNumberResponse.h b/SmartDeviceLink/SDLDialNumberResponse.h new file mode 100644 index 000000000..454babcf3 --- /dev/null +++ b/SmartDeviceLink/SDLDialNumberResponse.h @@ -0,0 +1,17 @@ +// +// SDLDialNumberResponse.h +// SmartDeviceLink-iOS + +#import "SDLRPCResponse.h" + +/** + Indicates the result, success, or failure of the SDLDialNumber request. + + @since SDL 4.0 + */ +@interface SDLDialNumberResponse : SDLRPCResponse + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLDialNumberResponse.m b/SmartDeviceLink/SDLDialNumberResponse.m new file mode 100644 index 000000000..a0b6dd83e --- /dev/null +++ b/SmartDeviceLink/SDLDialNumberResponse.m @@ -0,0 +1,24 @@ +// +// SDLDialNumberResponse.m +// SmartDeviceLink-iOS + +#import "SDLDialNumberResponse.h" + +#import "SDLNames.h" + + +@implementation SDLDialNumberResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_DialNumber]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLDimension.h b/SmartDeviceLink/SDLDimension.h new file mode 100644 index 000000000..535f93e6e --- /dev/null +++ b/SmartDeviceLink/SDLDimension.h @@ -0,0 +1,51 @@ +// SDLDimension.h +// + + +#import "SDLEnum.h" + +#import + +/** + * The supported dimensions of the GPS. + * + * @since SDL 2.0 + */ +@interface SDLDimension : SDLEnum { +} + +/** + * Convert String to SDLDimension + * + * @param value The value of the string to get an object for + * + * @return SDLDimension + */ ++ (SDLDimension *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLDimension + * + * @return An array that store all possible SDLDimension + */ ++ (NSArray *)values; + +/** + * @abstract No GPS at all + * @return the dimension with value of *NO_FIX* + */ ++ (SDLDimension *)NO_FIX; + +/** + * @abstract Longitude and latitude of the GPS + * @return the dimension with value of *2D* + */ ++ (SDLDimension *)_2D; + +/** + * @abstract Longitude and latitude and altitude of the GPS + * @return the dimension with value of *3D* + */ ++ (SDLDimension *)_3D; + +@end diff --git a/SmartDeviceLink/SDLDimension.m b/SmartDeviceLink/SDLDimension.m new file mode 100644 index 000000000..81e0114fc --- /dev/null +++ b/SmartDeviceLink/SDLDimension.m @@ -0,0 +1,56 @@ +// SDLDimension.m +// + + +#import "SDLDimension.h" + +SDLDimension *SDLDimension_NO_FIX = nil; +SDLDimension *SDLDimension_2D = nil; +SDLDimension *SDLDimension_3D = nil; + +NSArray *SDLDimension_values = nil; + +@implementation SDLDimension + ++ (SDLDimension *)valueOf:(NSString *)value { + for (SDLDimension *item in SDLDimension.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLDimension_values == nil) { + SDLDimension_values = @[ + SDLDimension.NO_FIX, + SDLDimension._2D, + SDLDimension._3D, + ]; + } + return SDLDimension_values; +} + ++ (SDLDimension *)NO_FIX { + if (SDLDimension_NO_FIX == nil) { + SDLDimension_NO_FIX = [[SDLDimension alloc] initWithValue:@"NO_FIX"]; + } + return SDLDimension_NO_FIX; +} + ++ (SDLDimension *)_2D { + if (SDLDimension_2D == nil) { + SDLDimension_2D = [[SDLDimension alloc] initWithValue:@"2D"]; + } + return SDLDimension_2D; +} + ++ (SDLDimension *)_3D { + if (SDLDimension_3D == nil) { + SDLDimension_3D = [[SDLDimension alloc] initWithValue:@"3D"]; + } + return SDLDimension_3D; +} + +@end diff --git a/SmartDeviceLink/SDLDisplayCapabilities.h b/SmartDeviceLink/SDLDisplayCapabilities.h new file mode 100644 index 000000000..57ebd6719 --- /dev/null +++ b/SmartDeviceLink/SDLDisplayCapabilities.h @@ -0,0 +1,100 @@ +// SDLDisplayCapabilities.h +// + +#import "SDLRPCMessage.h" + +@class SDLDisplayType; +@class SDLScreenParams; + + +/** + * Contains information about the display for the SDL system to which the application is currently connected. + * + * @since SDL 1.0 + */ +@interface SDLDisplayCapabilities : SDLRPCStruct { +} + +/** + * Constructs a newly allocated SDLDisplayCapabilities object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLDisplayCapabilities object indicated by the dictionary parameter + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The type of display + * + * Required + */ +@property (strong) SDLDisplayType *displayType; + +/** + * @abstract An array of SDLTextField structures, each of which describes a field in the HMI which the application can write to using operations such as *SDLShow*, *SDLSetMediaClockTimer*, etc. + * + * @discussion This array of SDLTextField structures identify all the text fields to which the application can write on the current display (identified by SDLDisplayType). + * + * @see SDLTextField + * + * Required, Array of SDLTextField, 1 - 100 objects + */ +@property (strong) NSMutableArray *textFields; + +/** + * @abstract An array of SDLImageField elements + * + * @discussion A set of all fields that support images. + * + * @see SDLImageField + * + * Optional, Array of SDLImageField, 1 - 100 objects + */ +@property (strong) NSMutableArray *imageFields; + +/** + * @abstract An array of SDLMediaClockFormat elements, defining the valid string formats used in specifying the contents of the media clock field + * + * @see SDLMediaClockFormat + * + * Required, Array of SDLMediaClockFormats, 0 - 100 objects + */ +@property (strong) NSMutableArray *mediaClockFormats; + +/** + * @abstract The display's persistent screen supports. + * + * @since SDL 2.0 + * + * Required, Boolean + */ +@property (strong) NSNumber *graphicSupported; + +/** + * @abstract Number of presets the screen supports + * + * @discussion The number of on-screen custom presets available (if any) + * + * Optional, Array of String, max string size 100, 0 - 100 objects + */ +@property (strong) NSMutableArray *templatesAvailable; + +/** + * @abstract A set of all parameters related to a prescribed screen area (e.g. for video / touch input) + * + * Optional + */ +@property (strong) SDLScreenParams *screenParams; + +/** + * @abstract The number of on-screen custom presets available (if any); otherwise omitted + * + * Optional, Integer 1 - 100 + */ +@property (strong) NSNumber *numCustomPresetsAvailable; + +@end diff --git a/SmartDeviceLink/SDLDisplayCapabilities.m b/SmartDeviceLink/SDLDisplayCapabilities.m new file mode 100644 index 000000000..07ae53d62 --- /dev/null +++ b/SmartDeviceLink/SDLDisplayCapabilities.m @@ -0,0 +1,161 @@ +// SDLDisplayCapabilities.m +// + +#import "SDLDisplayCapabilities.h" + +#import "SDLDisplayType.h" +#import "SDLImageField.h" +#import "SDLMediaClockFormat.h" +#import "SDLNames.h" +#import "SDLScreenParams.h" +#import "SDLTextField.h" + + +@implementation SDLDisplayCapabilities + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setDisplayType:(SDLDisplayType *)displayType { + if (displayType != nil) { + [store setObject:displayType forKey:NAMES_displayType]; + } else { + [store removeObjectForKey:NAMES_displayType]; + } +} + +- (SDLDisplayType *)displayType { + NSObject *obj = [store objectForKey:NAMES_displayType]; + if (obj == nil || [obj isKindOfClass:SDLDisplayType.class]) { + return (SDLDisplayType *)obj; + } else { + return [SDLDisplayType valueOf:(NSString *)obj]; + } +} + +- (void)setTextFields:(NSMutableArray *)textFields { + if (textFields != nil) { + [store setObject:textFields forKey:NAMES_textFields]; + } else { + [store removeObjectForKey:NAMES_textFields]; + } +} + +- (NSMutableArray *)textFields { + NSMutableArray *array = [store objectForKey:NAMES_textFields]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTextField.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTextField alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setImageFields:(NSMutableArray *)imageFields { + if (imageFields != nil) { + [store setObject:imageFields forKey:NAMES_imageFields]; + } else { + [store removeObjectForKey:NAMES_imageFields]; + } +} + +- (NSMutableArray *)imageFields { + NSMutableArray *array = [store objectForKey:NAMES_imageFields]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLImageField.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLImageField alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setMediaClockFormats:(NSMutableArray *)mediaClockFormats { + if (mediaClockFormats != nil) { + [store setObject:mediaClockFormats forKey:NAMES_mediaClockFormats]; + } else { + [store removeObjectForKey:NAMES_mediaClockFormats]; + } +} + +- (NSMutableArray *)mediaClockFormats { + NSMutableArray *array = [store objectForKey:NAMES_mediaClockFormats]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLMediaClockFormat.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSString *enumString in array) { + [newList addObject:[SDLMediaClockFormat valueOf:enumString]]; + } + return newList; + } +} + +- (void)setGraphicSupported:(NSNumber *)graphicSupported { + if (graphicSupported != nil) { + [store setObject:graphicSupported forKey:NAMES_graphicSupported]; + } else { + [store removeObjectForKey:NAMES_graphicSupported]; + } +} + +- (NSNumber *)graphicSupported { + return [store objectForKey:NAMES_graphicSupported]; +} + +- (void)setTemplatesAvailable:(NSMutableArray *)templatesAvailable { + if (templatesAvailable != nil) { + [store setObject:templatesAvailable forKey:NAMES_templatesAvailable]; + } else { + [store removeObjectForKey:NAMES_templatesAvailable]; + } +} + +- (NSMutableArray *)templatesAvailable { + return [store objectForKey:NAMES_templatesAvailable]; +} + +- (void)setScreenParams:(SDLScreenParams *)screenParams { + if (screenParams != nil) { + [store setObject:screenParams forKey:NAMES_screenParams]; + } else { + [store removeObjectForKey:NAMES_screenParams]; + } +} + +- (SDLScreenParams *)screenParams { + NSObject *obj = [store objectForKey:NAMES_screenParams]; + if (obj == nil || [obj isKindOfClass:SDLScreenParams.class]) { + return (SDLScreenParams *)obj; + } else { + return [[SDLScreenParams alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setNumCustomPresetsAvailable:(NSNumber *)numCustomPresetsAvailable { + if (numCustomPresetsAvailable != nil) { + [store setObject:numCustomPresetsAvailable forKey:NAMES_numCustomPresetsAvailable]; + } else { + [store removeObjectForKey:NAMES_numCustomPresetsAvailable]; + } +} + +- (NSNumber *)numCustomPresetsAvailable { + return [store objectForKey:NAMES_numCustomPresetsAvailable]; +} + +@end diff --git a/SmartDeviceLink/SDLDisplayType.h b/SmartDeviceLink/SDLDisplayType.h new file mode 100644 index 000000000..3bb2f2b9a --- /dev/null +++ b/SmartDeviceLink/SDLDisplayType.h @@ -0,0 +1,61 @@ +// SDLDisplayType.h +// + + +#import "SDLEnum.h" + +/** + * Identifies the various display types used by SDL. + * + * @since SDL 1.0 + */ +@interface SDLDisplayType : SDLEnum { +} + +/** + * Convert String to SDLDisplayType + * + * @param value The value of the string to get an object for + * + * @return SDLDisplayType + */ ++ (SDLDisplayType *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLDisplayType + * + * @return an array that store all possible SDLDisplayType + */ ++ (NSArray *)values; + +/** + * @abstract This display type provides a 2-line x 20 character "dot matrix" display. + * + * @return SDLDisplayType with value of *CID* + */ ++ (SDLDisplayType *)CID; + ++ (SDLDisplayType *)TYPE2; + ++ (SDLDisplayType *)TYPE5; + +/** + * @abstract This display type provides an 8 inch touchscreen display. + * + * @return SDLDisplayType with value of *NGN* + */ ++ (SDLDisplayType *)NGN; + ++ (SDLDisplayType *)GEN2_8_DMA; + ++ (SDLDisplayType *)GEN2_6_DMA; + ++ (SDLDisplayType *)MFD3; + ++ (SDLDisplayType *)MFD4; + ++ (SDLDisplayType *)MFD5; + ++ (SDLDisplayType *)GEN3_8_INCH; + +@end diff --git a/SmartDeviceLink/SDLDisplayType.m b/SmartDeviceLink/SDLDisplayType.m new file mode 100644 index 000000000..8059aa54b --- /dev/null +++ b/SmartDeviceLink/SDLDisplayType.m @@ -0,0 +1,119 @@ +// SDLDisplayType.m +// + + +#import "SDLDisplayType.h" + +SDLDisplayType *SDLDisplayType_CID = nil; +SDLDisplayType *SDLDisplayType_TYPE2 = nil; +SDLDisplayType *SDLDisplayType_TYPE5 = nil; +SDLDisplayType *SDLDisplayType_NGN = nil; +SDLDisplayType *SDLDisplayType_GEN2_8_DMA = nil; +SDLDisplayType *SDLDisplayType_GEN2_6_DMA = nil; +SDLDisplayType *SDLDisplayType_MFD3 = nil; +SDLDisplayType *SDLDisplayType_MFD4 = nil; +SDLDisplayType *SDLDisplayType_MFD5 = nil; +SDLDisplayType *SDLDisplayType_GEN3_8_INCH = nil; + +NSArray *SDLDisplayType_values = nil; + +@implementation SDLDisplayType + ++ (SDLDisplayType *)valueOf:(NSString *)value { + for (SDLDisplayType *item in SDLDisplayType.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLDisplayType_values == nil) { + SDLDisplayType_values = @[ + SDLDisplayType.CID, + SDLDisplayType.TYPE2, + SDLDisplayType.TYPE5, + SDLDisplayType.NGN, + SDLDisplayType.GEN2_8_DMA, + SDLDisplayType.GEN2_6_DMA, + SDLDisplayType.MFD3, + SDLDisplayType.MFD4, + SDLDisplayType.MFD5, + SDLDisplayType.GEN3_8_INCH, + ]; + } + return SDLDisplayType_values; +} + ++ (SDLDisplayType *)CID { + if (SDLDisplayType_CID == nil) { + SDLDisplayType_CID = [[SDLDisplayType alloc] initWithValue:@"CID"]; + } + return SDLDisplayType_CID; +} + ++ (SDLDisplayType *)TYPE2 { + if (SDLDisplayType_TYPE2 == nil) { + SDLDisplayType_TYPE2 = [[SDLDisplayType alloc] initWithValue:@"TYPE2"]; + } + return SDLDisplayType_TYPE2; +} + ++ (SDLDisplayType *)TYPE5 { + if (SDLDisplayType_TYPE5 == nil) { + SDLDisplayType_TYPE5 = [[SDLDisplayType alloc] initWithValue:@"TYPE5"]; + } + return SDLDisplayType_TYPE5; +} + ++ (SDLDisplayType *)NGN { + if (SDLDisplayType_NGN == nil) { + SDLDisplayType_NGN = [[SDLDisplayType alloc] initWithValue:@"NGN"]; + } + return SDLDisplayType_NGN; +} + ++ (SDLDisplayType *)GEN2_8_DMA { + if (SDLDisplayType_GEN2_8_DMA == nil) { + SDLDisplayType_GEN2_8_DMA = [[SDLDisplayType alloc] initWithValue:@"GEN2_8_DMA"]; + } + return SDLDisplayType_GEN2_8_DMA; +} + ++ (SDLDisplayType *)GEN2_6_DMA { + if (SDLDisplayType_GEN2_6_DMA == nil) { + SDLDisplayType_GEN2_6_DMA = [[SDLDisplayType alloc] initWithValue:@"GEN2_6_DMA"]; + } + return SDLDisplayType_GEN2_6_DMA; +} + ++ (SDLDisplayType *)MFD3 { + if (SDLDisplayType_MFD3 == nil) { + SDLDisplayType_MFD3 = [[SDLDisplayType alloc] initWithValue:@"MFD3"]; + } + return SDLDisplayType_MFD3; +} + ++ (SDLDisplayType *)MFD4 { + if (SDLDisplayType_MFD4 == nil) { + SDLDisplayType_MFD4 = [[SDLDisplayType alloc] initWithValue:@"MFD4"]; + } + return SDLDisplayType_MFD4; +} + ++ (SDLDisplayType *)MFD5 { + if (SDLDisplayType_MFD5 == nil) { + SDLDisplayType_MFD5 = [[SDLDisplayType alloc] initWithValue:@"MFD5"]; + } + return SDLDisplayType_MFD5; +} + ++ (SDLDisplayType *)GEN3_8_INCH { + if (SDLDisplayType_GEN3_8_INCH == nil) { + SDLDisplayType_GEN3_8_INCH = [[SDLDisplayType alloc] initWithValue:@"GEN3_8-INCH"]; + } + return SDLDisplayType_GEN3_8_INCH; +} + +@end diff --git a/SmartDeviceLink/SDLDriverDistractionState.h b/SmartDeviceLink/SDLDriverDistractionState.h new file mode 100644 index 000000000..7143d09d2 --- /dev/null +++ b/SmartDeviceLink/SDLDriverDistractionState.h @@ -0,0 +1,45 @@ +// SDLDriverDistractionState.h +// + + +#import "SDLEnum.h" + +/** + * Enumeration that describes possible states of driver distraction. + * + * @since SDL 1.0 + */ +@interface SDLDriverDistractionState : SDLEnum { +} + +/** + * Convert String to SDLDisplayType + * + * @param value The value of the string to get an object for + * + * @return SDLDisplayType + */ ++ (SDLDriverDistractionState *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLDriverDistractionState + * + * @return an array that store all possible SDLDriverDistractionState + */ ++ (NSArray *)values; + +/** + * @abstract Driver distraction rules are in effect. + * + * @return a SDLDriverDistractionState with value of *DD_ON* + */ ++ (SDLDriverDistractionState *)DD_ON; + +/** + * @abstract Driver distraction rules are NOT in effect. + * + * @return a SDLDriverDistractionState with value of *DD_OFF* + */ ++ (SDLDriverDistractionState *)DD_OFF; + +@end diff --git a/SmartDeviceLink/SDLDriverDistractionState.m b/SmartDeviceLink/SDLDriverDistractionState.m new file mode 100644 index 000000000..c9a6d8714 --- /dev/null +++ b/SmartDeviceLink/SDLDriverDistractionState.m @@ -0,0 +1,47 @@ +// SDLDriverDistractionState.m +// + + +#import "SDLDriverDistractionState.h" + +SDLDriverDistractionState *SDLDriverDistractionState_DD_ON = nil; +SDLDriverDistractionState *SDLDriverDistractionState_DD_OFF = nil; + +NSArray *SDLDriverDistractionState_values = nil; + +@implementation SDLDriverDistractionState + ++ (SDLDriverDistractionState *)valueOf:(NSString *)value { + for (SDLDriverDistractionState *item in SDLDriverDistractionState.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLDriverDistractionState_values == nil) { + SDLDriverDistractionState_values = @[ + SDLDriverDistractionState.DD_ON, + SDLDriverDistractionState.DD_OFF, + ]; + } + return SDLDriverDistractionState_values; +} + ++ (SDLDriverDistractionState *)DD_ON { + if (SDLDriverDistractionState_DD_ON == nil) { + SDLDriverDistractionState_DD_ON = [[SDLDriverDistractionState alloc] initWithValue:@"DD_ON"]; + } + return SDLDriverDistractionState_DD_ON; +} + ++ (SDLDriverDistractionState *)DD_OFF { + if (SDLDriverDistractionState_DD_OFF == nil) { + SDLDriverDistractionState_DD_OFF = [[SDLDriverDistractionState alloc] initWithValue:@"DD_OFF"]; + } + return SDLDriverDistractionState_DD_OFF; +} + +@end diff --git a/SmartDeviceLink/SDLECallConfirmationStatus.h b/SmartDeviceLink/SDLECallConfirmationStatus.h new file mode 100644 index 000000000..46fa78de6 --- /dev/null +++ b/SmartDeviceLink/SDLECallConfirmationStatus.h @@ -0,0 +1,52 @@ +// SDLECallConfirmationStatus.h +// + + +#import "SDLEnum.h" + +/** Reflects the status of the eCall Notification. + *Since SmartDeviceLink 2.0 +

    + */ +@interface SDLECallConfirmationStatus : SDLEnum { +} + ++ (SDLECallConfirmationStatus *)valueOf:(NSString *)value; ++ (NSArray *)values; + +/** No E-Call signal triggered. + */ + ++ (SDLECallConfirmationStatus *)NORMAL; + +/** An E-Call is being in progress. + */ + ++ (SDLECallConfirmationStatus *)CALL_IN_PROGRESS; + +/** CALL_CANCELLED An E-Call was cancelled by the user. + */ + ++ (SDLECallConfirmationStatus *)CALL_CANCELLED; + +/** The E-Call sequence is completed. + */ + ++ (SDLECallConfirmationStatus *)CALL_COMPLETED; + +/** An E-Call could not be connected. + */ + ++ (SDLECallConfirmationStatus *)CALL_UNSUCCESSFUL; + +/** E-Call is not configured on this vehicle. + */ + ++ (SDLECallConfirmationStatus *)ECALL_CONFIGURED_OFF; + +/** E-Call is considered to be complete without Emergency Operator contact. + */ + ++ (SDLECallConfirmationStatus *)CALL_COMPLETE_DTMF_TIMEOUT; + +@end diff --git a/SmartDeviceLink/SDLECallConfirmationStatus.m b/SmartDeviceLink/SDLECallConfirmationStatus.m new file mode 100644 index 000000000..aae11a791 --- /dev/null +++ b/SmartDeviceLink/SDLECallConfirmationStatus.m @@ -0,0 +1,92 @@ +// SDLECallConfirmationStatus.m +// + + +#import "SDLECallConfirmationStatus.h" + +SDLECallConfirmationStatus *SDLECallConfirmationStatus_NORMAL = nil; +SDLECallConfirmationStatus *SDLECallConfirmationStatus_CALL_IN_PROGRESS = nil; +SDLECallConfirmationStatus *SDLECallConfirmationStatus_CALL_CANCELLED = nil; +SDLECallConfirmationStatus *SDLECallConfirmationStatus_CALL_COMPLETED = nil; +SDLECallConfirmationStatus *SDLECallConfirmationStatus_CALL_UNSUCCESSFUL = nil; +SDLECallConfirmationStatus *SDLECallConfirmationStatus_ECALL_CONFIGURED_OFF = nil; +SDLECallConfirmationStatus *SDLECallConfirmationStatus_CALL_COMPLETE_DTMF_TIMEOUT = nil; + +NSArray *SDLECallConfirmationStatus_values = nil; + +@implementation SDLECallConfirmationStatus + ++ (SDLECallConfirmationStatus *)valueOf:(NSString *)value { + for (SDLECallConfirmationStatus *item in SDLECallConfirmationStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLECallConfirmationStatus_values == nil) { + SDLECallConfirmationStatus_values = @[ + SDLECallConfirmationStatus.NORMAL, + SDLECallConfirmationStatus.CALL_IN_PROGRESS, + SDLECallConfirmationStatus.CALL_CANCELLED, + SDLECallConfirmationStatus.CALL_COMPLETED, + SDLECallConfirmationStatus.CALL_UNSUCCESSFUL, + SDLECallConfirmationStatus.ECALL_CONFIGURED_OFF, + SDLECallConfirmationStatus.CALL_COMPLETE_DTMF_TIMEOUT, + ]; + } + return SDLECallConfirmationStatus_values; +} + ++ (SDLECallConfirmationStatus *)NORMAL { + if (SDLECallConfirmationStatus_NORMAL == nil) { + SDLECallConfirmationStatus_NORMAL = [[SDLECallConfirmationStatus alloc] initWithValue:@"NORMAL"]; + } + return SDLECallConfirmationStatus_NORMAL; +} + ++ (SDLECallConfirmationStatus *)CALL_IN_PROGRESS { + if (SDLECallConfirmationStatus_CALL_IN_PROGRESS == nil) { + SDLECallConfirmationStatus_CALL_IN_PROGRESS = [[SDLECallConfirmationStatus alloc] initWithValue:@"CALL_IN_PROGRESS"]; + } + return SDLECallConfirmationStatus_CALL_IN_PROGRESS; +} + ++ (SDLECallConfirmationStatus *)CALL_CANCELLED { + if (SDLECallConfirmationStatus_CALL_CANCELLED == nil) { + SDLECallConfirmationStatus_CALL_CANCELLED = [[SDLECallConfirmationStatus alloc] initWithValue:@"CALL_CANCELLED"]; + } + return SDLECallConfirmationStatus_CALL_CANCELLED; +} + ++ (SDLECallConfirmationStatus *)CALL_COMPLETED { + if (SDLECallConfirmationStatus_CALL_COMPLETED == nil) { + SDLECallConfirmationStatus_CALL_COMPLETED = [[SDLECallConfirmationStatus alloc] initWithValue:@"CALL_COMPLETED"]; + } + return SDLECallConfirmationStatus_CALL_COMPLETED; +} + ++ (SDLECallConfirmationStatus *)CALL_UNSUCCESSFUL { + if (SDLECallConfirmationStatus_CALL_UNSUCCESSFUL == nil) { + SDLECallConfirmationStatus_CALL_UNSUCCESSFUL = [[SDLECallConfirmationStatus alloc] initWithValue:@"CALL_UNSUCCESSFUL"]; + } + return SDLECallConfirmationStatus_CALL_UNSUCCESSFUL; +} + ++ (SDLECallConfirmationStatus *)ECALL_CONFIGURED_OFF { + if (SDLECallConfirmationStatus_ECALL_CONFIGURED_OFF == nil) { + SDLECallConfirmationStatus_ECALL_CONFIGURED_OFF = [[SDLECallConfirmationStatus alloc] initWithValue:@"ECALL_CONFIGURED_OFF"]; + } + return SDLECallConfirmationStatus_ECALL_CONFIGURED_OFF; +} + ++ (SDLECallConfirmationStatus *)CALL_COMPLETE_DTMF_TIMEOUT { + if (SDLECallConfirmationStatus_CALL_COMPLETE_DTMF_TIMEOUT == nil) { + SDLECallConfirmationStatus_CALL_COMPLETE_DTMF_TIMEOUT = [[SDLECallConfirmationStatus alloc] initWithValue:@"CALL_COMPLETE_DTMF_TIMEOUT"]; + } + return SDLECallConfirmationStatus_CALL_COMPLETE_DTMF_TIMEOUT; +} + +@end diff --git a/SmartDeviceLink/SDLECallInfo.h b/SmartDeviceLink/SDLECallInfo.h new file mode 100644 index 000000000..932cf056a --- /dev/null +++ b/SmartDeviceLink/SDLECallInfo.h @@ -0,0 +1,20 @@ +// SDLECallInfo.h +// + +#import "SDLRPCMessage.h" + +@class SDLVehicleDataNotificationStatus; +@class SDLECallConfirmationStatus; + + +@interface SDLECallInfo : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLVehicleDataNotificationStatus *eCallNotificationStatus; +@property (strong) SDLVehicleDataNotificationStatus *auxECallNotificationStatus; +@property (strong) SDLECallConfirmationStatus *eCallConfirmationStatus; + +@end diff --git a/SmartDeviceLink/SDLECallInfo.m b/SmartDeviceLink/SDLECallInfo.m new file mode 100644 index 000000000..44046fcd0 --- /dev/null +++ b/SmartDeviceLink/SDLECallInfo.m @@ -0,0 +1,76 @@ +// SDLECallInfo.m +// + +#import "SDLECallInfo.h" + +#import "SDLECallConfirmationStatus.h" +#import "SDLNames.h" +#import "SDLVehicleDataNotificationStatus.h" + + +@implementation SDLECallInfo + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setECallNotificationStatus:(SDLVehicleDataNotificationStatus *)eCallNotificationStatus { + if (eCallNotificationStatus != nil) { + [store setObject:eCallNotificationStatus forKey:NAMES_eCallNotificationStatus]; + } else { + [store removeObjectForKey:NAMES_eCallNotificationStatus]; + } +} + +- (SDLVehicleDataNotificationStatus *)eCallNotificationStatus { + NSObject *obj = [store objectForKey:NAMES_eCallNotificationStatus]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataNotificationStatus.class]) { + return (SDLVehicleDataNotificationStatus *)obj; + } else { + return [SDLVehicleDataNotificationStatus valueOf:(NSString *)obj]; + } +} + +- (void)setAuxECallNotificationStatus:(SDLVehicleDataNotificationStatus *)auxECallNotificationStatus { + if (auxECallNotificationStatus != nil) { + [store setObject:auxECallNotificationStatus forKey:NAMES_auxECallNotificationStatus]; + } else { + [store removeObjectForKey:NAMES_auxECallNotificationStatus]; + } +} + +- (SDLVehicleDataNotificationStatus *)auxECallNotificationStatus { + NSObject *obj = [store objectForKey:NAMES_auxECallNotificationStatus]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataNotificationStatus.class]) { + return (SDLVehicleDataNotificationStatus *)obj; + } else { + return [SDLVehicleDataNotificationStatus valueOf:(NSString *)obj]; + } +} + +- (void)setECallConfirmationStatus:(SDLECallConfirmationStatus *)eCallConfirmationStatus { + if (eCallConfirmationStatus != nil) { + [store setObject:eCallConfirmationStatus forKey:NAMES_eCallConfirmationStatus]; + } else { + [store removeObjectForKey:NAMES_eCallConfirmationStatus]; + } +} + +- (SDLECallConfirmationStatus *)eCallConfirmationStatus { + NSObject *obj = [store objectForKey:NAMES_eCallConfirmationStatus]; + if (obj == nil || [obj isKindOfClass:SDLECallConfirmationStatus.class]) { + return (SDLECallConfirmationStatus *)obj; + } else { + return [SDLECallConfirmationStatus valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLEmergencyEvent.h b/SmartDeviceLink/SDLEmergencyEvent.h new file mode 100644 index 000000000..6dd0c410d --- /dev/null +++ b/SmartDeviceLink/SDLEmergencyEvent.h @@ -0,0 +1,23 @@ +// SDLEmergencyEvent.h +// + +#import "SDLRPCMessage.h" + +@class SDLEmergencyEventType; +@class SDLFuelCutoffStatus; +@class SDLVehicleDataEventStatus; + + +@interface SDLEmergencyEvent : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLEmergencyEventType *emergencyEventType; +@property (strong) SDLFuelCutoffStatus *fuelCutoffStatus; +@property (strong) SDLVehicleDataEventStatus *rolloverEvent; +@property (strong) NSNumber *maximumChangeVelocity; +@property (strong) SDLVehicleDataEventStatus *multipleEvents; + +@end diff --git a/SmartDeviceLink/SDLEmergencyEvent.m b/SmartDeviceLink/SDLEmergencyEvent.m new file mode 100644 index 000000000..76fca57e2 --- /dev/null +++ b/SmartDeviceLink/SDLEmergencyEvent.m @@ -0,0 +1,106 @@ +// SDLEmergencyEvent.m +// + +#import "SDLEmergencyEvent.h" + +#import "SDLEmergencyEventType.h" +#import "SDLFuelCutoffStatus.h" +#import "SDLNames.h" +#import "SDLVehicleDataEventStatus.h" + + +@implementation SDLEmergencyEvent + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setEmergencyEventType:(SDLEmergencyEventType *)emergencyEventType { + if (emergencyEventType != nil) { + [store setObject:emergencyEventType forKey:NAMES_emergencyEventType]; + } else { + [store removeObjectForKey:NAMES_emergencyEventType]; + } +} + +- (SDLEmergencyEventType *)emergencyEventType { + NSObject *obj = [store objectForKey:NAMES_emergencyEventType]; + if (obj == nil || [obj isKindOfClass:SDLEmergencyEventType.class]) { + return (SDLEmergencyEventType *)obj; + } else { + return [SDLEmergencyEventType valueOf:(NSString *)obj]; + } +} + +- (void)setFuelCutoffStatus:(SDLFuelCutoffStatus *)fuelCutoffStatus { + if (fuelCutoffStatus != nil) { + [store setObject:fuelCutoffStatus forKey:NAMES_fuelCutoffStatus]; + } else { + [store removeObjectForKey:NAMES_fuelCutoffStatus]; + } +} + +- (SDLFuelCutoffStatus *)fuelCutoffStatus { + NSObject *obj = [store objectForKey:NAMES_fuelCutoffStatus]; + if (obj == nil || [obj isKindOfClass:SDLFuelCutoffStatus.class]) { + return (SDLFuelCutoffStatus *)obj; + } else { + return [SDLFuelCutoffStatus valueOf:(NSString *)obj]; + } +} + +- (void)setRolloverEvent:(SDLVehicleDataEventStatus *)rolloverEvent { + if (rolloverEvent != nil) { + [store setObject:rolloverEvent forKey:NAMES_rolloverEvent]; + } else { + [store removeObjectForKey:NAMES_rolloverEvent]; + } +} + +- (SDLVehicleDataEventStatus *)rolloverEvent { + NSObject *obj = [store objectForKey:NAMES_rolloverEvent]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setMaximumChangeVelocity:(NSNumber *)maximumChangeVelocity { + if (maximumChangeVelocity != nil) { + [store setObject:maximumChangeVelocity forKey:NAMES_maximumChangeVelocity]; + } else { + [store removeObjectForKey:NAMES_maximumChangeVelocity]; + } +} + +- (NSNumber *)maximumChangeVelocity { + return [store objectForKey:NAMES_maximumChangeVelocity]; +} + +- (void)setMultipleEvents:(SDLVehicleDataEventStatus *)multipleEvents { + if (multipleEvents != nil) { + [store setObject:multipleEvents forKey:NAMES_multipleEvents]; + } else { + [store removeObjectForKey:NAMES_multipleEvents]; + } +} + +- (SDLVehicleDataEventStatus *)multipleEvents { + NSObject *obj = [store objectForKey:NAMES_multipleEvents]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLEmergencyEventType.h b/SmartDeviceLink/SDLEmergencyEventType.h new file mode 100644 index 000000000..1e75b3ee0 --- /dev/null +++ b/SmartDeviceLink/SDLEmergencyEventType.h @@ -0,0 +1,53 @@ +// SDLEmergencyEventType.h +// + + +#import "SDLEnum.h" + +/** Reflects the emergency event status of the vehicle. + * Since: SmartDeviceLink 2.0 + *

    + */ + +@interface SDLEmergencyEventType : SDLEnum { +} + ++ (SDLEmergencyEventType *)valueOf:(NSString *)value; ++ (NSArray *)values; + +/** No emergency event has happened. + */ + ++ (SDLEmergencyEventType *)NO_EVENT; + +/** Frontal collision has happened. + */ + ++ (SDLEmergencyEventType *)FRONTAL; + +/** Side collision has happened. + */ + ++ (SDLEmergencyEventType *)SIDE; + +/**Rear collision has happened. + */ + ++ (SDLEmergencyEventType *)REAR; + +/** A rollover event has happened. + */ + ++ (SDLEmergencyEventType *)ROLLOVER; + +/** The signal is not supported + */ + ++ (SDLEmergencyEventType *)NOT_SUPPORTED; + +/** Emergency status cannot be determined + */ + ++ (SDLEmergencyEventType *)FAULT; + +@end diff --git a/SmartDeviceLink/SDLEmergencyEventType.m b/SmartDeviceLink/SDLEmergencyEventType.m new file mode 100644 index 000000000..b07979d01 --- /dev/null +++ b/SmartDeviceLink/SDLEmergencyEventType.m @@ -0,0 +1,92 @@ +// SDLEmergencyEventType.m +// + + +#import "SDLEmergencyEventType.h" + +SDLEmergencyEventType *SDLEmergencyEventType_NO_EVENT = nil; +SDLEmergencyEventType *SDLEmergencyEventType_FRONTAL = nil; +SDLEmergencyEventType *SDLEmergencyEventType_SIDE = nil; +SDLEmergencyEventType *SDLEmergencyEventType_REAR = nil; +SDLEmergencyEventType *SDLEmergencyEventType_ROLLOVER = nil; +SDLEmergencyEventType *SDLEmergencyEventType_NOT_SUPPORTED = nil; +SDLEmergencyEventType *SDLEmergencyEventType_FAULT = nil; + +NSArray *SDLEmergencyEventType_values = nil; + +@implementation SDLEmergencyEventType + ++ (SDLEmergencyEventType *)valueOf:(NSString *)value { + for (SDLEmergencyEventType *item in SDLEmergencyEventType.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLEmergencyEventType_values == nil) { + SDLEmergencyEventType_values = @[ + SDLEmergencyEventType.NO_EVENT, + SDLEmergencyEventType.FRONTAL, + SDLEmergencyEventType.SIDE, + SDLEmergencyEventType.REAR, + SDLEmergencyEventType.ROLLOVER, + SDLEmergencyEventType.NOT_SUPPORTED, + SDLEmergencyEventType.FAULT, + ]; + } + return SDLEmergencyEventType_values; +} + ++ (SDLEmergencyEventType *)NO_EVENT { + if (SDLEmergencyEventType_NO_EVENT == nil) { + SDLEmergencyEventType_NO_EVENT = [[SDLEmergencyEventType alloc] initWithValue:@"NO_EVENT"]; + } + return SDLEmergencyEventType_NO_EVENT; +} + ++ (SDLEmergencyEventType *)FRONTAL { + if (SDLEmergencyEventType_FRONTAL == nil) { + SDLEmergencyEventType_FRONTAL = [[SDLEmergencyEventType alloc] initWithValue:@"FRONTAL"]; + } + return SDLEmergencyEventType_FRONTAL; +} + ++ (SDLEmergencyEventType *)SIDE { + if (SDLEmergencyEventType_SIDE == nil) { + SDLEmergencyEventType_SIDE = [[SDLEmergencyEventType alloc] initWithValue:@"SIDE"]; + } + return SDLEmergencyEventType_SIDE; +} + ++ (SDLEmergencyEventType *)REAR { + if (SDLEmergencyEventType_REAR == nil) { + SDLEmergencyEventType_REAR = [[SDLEmergencyEventType alloc] initWithValue:@"REAR"]; + } + return SDLEmergencyEventType_REAR; +} + ++ (SDLEmergencyEventType *)ROLLOVER { + if (SDLEmergencyEventType_ROLLOVER == nil) { + SDLEmergencyEventType_ROLLOVER = [[SDLEmergencyEventType alloc] initWithValue:@"ROLLOVER"]; + } + return SDLEmergencyEventType_ROLLOVER; +} + ++ (SDLEmergencyEventType *)NOT_SUPPORTED { + if (SDLEmergencyEventType_NOT_SUPPORTED == nil) { + SDLEmergencyEventType_NOT_SUPPORTED = [[SDLEmergencyEventType alloc] initWithValue:@"NOT_SUPPORTED"]; + } + return SDLEmergencyEventType_NOT_SUPPORTED; +} + ++ (SDLEmergencyEventType *)FAULT { + if (SDLEmergencyEventType_FAULT == nil) { + SDLEmergencyEventType_FAULT = [[SDLEmergencyEventType alloc] initWithValue:@"FAULT"]; + } + return SDLEmergencyEventType_FAULT; +} + +@end diff --git a/SmartDeviceLink/SDLEncodedSyncPData.h b/SmartDeviceLink/SDLEncodedSyncPData.h new file mode 100644 index 000000000..b3b0276b7 --- /dev/null +++ b/SmartDeviceLink/SDLEncodedSyncPData.h @@ -0,0 +1,15 @@ +// SDLEncodedSyncPData.h +// + + +#import "SDLRPCRequest.h" + +@interface SDLEncodedSyncPData : SDLRPCRequest { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSMutableArray *data; + +@end diff --git a/SmartDeviceLink/SDLEncodedSyncPData.m b/SmartDeviceLink/SDLEncodedSyncPData.m new file mode 100644 index 000000000..b44cb7b3e --- /dev/null +++ b/SmartDeviceLink/SDLEncodedSyncPData.m @@ -0,0 +1,35 @@ +// SDLEncodedSyncPData.m +// + + +#import "SDLEncodedSyncPData.h" + +#import "SDLNames.h" + +@implementation SDLEncodedSyncPData + +- (instancetype)init { + if (self = [super initWithName:NAMES_EncodedSyncPData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setData:(NSMutableArray *)data { + if (data != nil) { + [parameters setObject:data forKey:NAMES_data]; + } else { + [parameters removeObjectForKey:NAMES_data]; + } +} + +- (NSMutableArray *)data { + return [parameters objectForKey:NAMES_data]; +} + +@end diff --git a/SmartDeviceLink/SDLEncodedSyncPDataResponse.h b/SmartDeviceLink/SDLEncodedSyncPDataResponse.h new file mode 100644 index 000000000..7d646ed23 --- /dev/null +++ b/SmartDeviceLink/SDLEncodedSyncPDataResponse.h @@ -0,0 +1,13 @@ +// SDLEncodedSyncPDataResponse.h +// + + +#import "SDLRPCResponse.h" + +@interface SDLEncodedSyncPDataResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLEncodedSyncPDataResponse.m b/SmartDeviceLink/SDLEncodedSyncPDataResponse.m new file mode 100644 index 000000000..cf899a21b --- /dev/null +++ b/SmartDeviceLink/SDLEncodedSyncPDataResponse.m @@ -0,0 +1,23 @@ +// SDLEncodedSyncPDataResponse.m +// + + +#import "SDLEncodedSyncPDataResponse.h" + +#import "SDLNames.h" + +@implementation SDLEncodedSyncPDataResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_EncodedSyncPData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLEncoder.h b/SmartDeviceLink/SDLEncoder.h new file mode 100644 index 000000000..911eb95d8 --- /dev/null +++ b/SmartDeviceLink/SDLEncoder.h @@ -0,0 +1,11 @@ +// SDLEncoder.h +// + + +#import + +@protocol SDLEncoder + +- (NSData *)encodeDictionary:(NSDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLEndAudioPassThru.h b/SmartDeviceLink/SDLEndAudioPassThru.h new file mode 100644 index 000000000..fddde6c13 --- /dev/null +++ b/SmartDeviceLink/SDLEndAudioPassThru.h @@ -0,0 +1,33 @@ +// SDLEndAudioPassThru.h +// + + +#import "SDLRPCRequest.h" + +/** + * When this request is invoked, the audio capture stops + *

    + * Function Group: AudioPassThru + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + * Since SmartDeviceLink 2.0
    + * see SDLPerformAudioPassThru + */ +@interface SDLEndAudioPassThru : SDLRPCRequest { +} + +/** + * Constructs a new SDLEndAudioPassThru object + */ +- (instancetype)init; +/** + * Constructs a new SDLEndAudioPassThru object indicated by the NSMutableDictionary + * parameter + *

    + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLEndAudioPassThru.m b/SmartDeviceLink/SDLEndAudioPassThru.m new file mode 100644 index 000000000..576287170 --- /dev/null +++ b/SmartDeviceLink/SDLEndAudioPassThru.m @@ -0,0 +1,23 @@ +// SDLEndAudioPassThru.m +// + + +#import "SDLEndAudioPassThru.h" + +#import "SDLNames.h" + +@implementation SDLEndAudioPassThru + +- (instancetype)init { + if (self = [super initWithName:NAMES_EndAudioPassThru]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLEndAudioPassThruResponse.h b/SmartDeviceLink/SDLEndAudioPassThruResponse.h new file mode 100644 index 000000000..e464f5d32 --- /dev/null +++ b/SmartDeviceLink/SDLEndAudioPassThruResponse.h @@ -0,0 +1,18 @@ +// SDLEndAudioPassThruResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * SDLEndAudioPassThruResponse is sent, when SDLEndAudioPassThru has been called + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLEndAudioPassThruResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLEndAudioPassThruResponse.m b/SmartDeviceLink/SDLEndAudioPassThruResponse.m new file mode 100644 index 000000000..73c3b6336 --- /dev/null +++ b/SmartDeviceLink/SDLEndAudioPassThruResponse.m @@ -0,0 +1,23 @@ +// SDLEndAudioPassThruResponse.m +// + + +#import "SDLEndAudioPassThruResponse.h" + +#import "SDLNames.h" + +@implementation SDLEndAudioPassThruResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_EndAudioPassThru]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLEnum.h b/SmartDeviceLink/SDLEnum.h new file mode 100644 index 000000000..bed0fffa3 --- /dev/null +++ b/SmartDeviceLink/SDLEnum.h @@ -0,0 +1,18 @@ +// SDLEnum.h +// + + +#import + + +@interface SDLEnum : NSObject { + NSString *value; +} + +- (instancetype)initWithValue:(NSString *)value; + +- (BOOL)isEqualToEnum:(SDLEnum *)object; + +@property (strong, readonly) NSString *value; + +@end diff --git a/SmartDeviceLink/SDLEnum.m b/SmartDeviceLink/SDLEnum.m new file mode 100644 index 000000000..f5ca2db2e --- /dev/null +++ b/SmartDeviceLink/SDLEnum.m @@ -0,0 +1,52 @@ +// SDLEnum.m +// + + +#import "SDLEnum.h" + +@implementation SDLEnum + +@synthesize value; + +- (instancetype)initWithValue:(NSString *)aValue { + if (self = [super init]) { + value = aValue; + } + return self; +} + +- (NSString *)description { + return value; +} + +- (id)debugQuickLookObject { + return value; +} + +- (NSUInteger)hash { + return [self.value hash]; +} + +- (BOOL)isEqual:(id)object { + // Test pointer equality + if (self == object) { + return YES; + } + + // Test class equality, if not equal, value equality doesn't matter + if (![object isMemberOfClass:self.class]) { + return NO; + } + + return [self isEqualToEnum:object]; +} + +- (BOOL)isEqualToEnum:(SDLEnum *)object { + // Test value equality, if it's equal we're good + if ([self.value isEqualToString:object.value]) { + return YES; + } + + return NO; +} +@end diff --git a/SmartDeviceLink/SDLFileType.h b/SmartDeviceLink/SDLFileType.h new file mode 100644 index 000000000..eb4339868 --- /dev/null +++ b/SmartDeviceLink/SDLFileType.h @@ -0,0 +1,87 @@ +// SDLFileType.h +// + + +#import "SDLEnum.h" + +/** + * Enumeration listing possible file types. + * + * @since SDL 2.0 + */ +@interface SDLFileType : SDLEnum { +} + +/** + * @abstract Convert String to SDLFileType + * + * @param value String value to retrieve the object for + * + * @return SDLFileType + */ ++ (SDLFileType *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLFileType + * + * @return an array that store all possible SDLFileType + */ ++ (NSArray *)values; + +/** + * @abstract file type: Bitmap (BMP) + * + * @return SDLFileType with value of *GRAPHIC_BMP* + */ ++ (SDLFileType *)GRAPHIC_BMP; + +/** + * @abstract file type: JPEG + * + * @return SDLFileType with value of *GRAPHIC_JPEG* + */ ++ (SDLFileType *)GRAPHIC_JPEG; + +/** + * @abstract file type: PNG + * + * @return SDLFileType with value of *GRAPHIC_PNG* + */ ++ (SDLFileType *)GRAPHIC_PNG; + +/** + * @abstract file type: WAVE (WAV) + * + * @return SDLFileType with value of *AUDIO_WAVE* + */ ++ (SDLFileType *)AUDIO_WAVE; + +/** + * @abstract file type: MP3 + * + * @return SDLFileType with value of *AUDIO_MP3* + */ ++ (SDLFileType *)AUDIO_MP3; + +/** + * @abstract file type: AAC + * + * @return SDLFileType with value of *AUDIO_AAC* + */ ++ (SDLFileType *)AUDIO_AAC; + +/** + * @abstract file type: BINARY + * + * @return SDLFileType with value of *BINARY* + */ ++ (SDLFileType *)BINARY; + +/** + * @abstract file type: JSON + * + * @return SDLFileType with value of *JSON* + */ ++ (SDLFileType *)JSON; + +@end diff --git a/SmartDeviceLink/SDLFileType.m b/SmartDeviceLink/SDLFileType.m new file mode 100644 index 000000000..f47932e9e --- /dev/null +++ b/SmartDeviceLink/SDLFileType.m @@ -0,0 +1,101 @@ +// SDLFileType.m +// + + +#import "SDLFileType.h" + +SDLFileType *SDLFileType_GRAPHIC_BMP = nil; +SDLFileType *SDLFileType_GRAPHIC_JPEG = nil; +SDLFileType *SDLFileType_GRAPHIC_PNG = nil; +SDLFileType *SDLFileType_AUDIO_WAVE = nil; +SDLFileType *SDLFileType_AUDIO_MP3 = nil; +SDLFileType *SDLFileType_AUDIO_AAC = nil; +SDLFileType *SDLFileType_BINARY = nil; +SDLFileType *SDLFileType_JSON = nil; + +NSArray *SDLFileType_values = nil; + +@implementation SDLFileType + ++ (SDLFileType *)valueOf:(NSString *)value { + for (SDLFileType *item in SDLFileType.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLFileType_values == nil) { + SDLFileType_values = @[ + SDLFileType.GRAPHIC_BMP, + SDLFileType.GRAPHIC_JPEG, + SDLFileType.GRAPHIC_PNG, + SDLFileType.AUDIO_WAVE, + SDLFileType.AUDIO_MP3, + SDLFileType.AUDIO_AAC, + SDLFileType.BINARY, + SDLFileType.JSON, + ]; + } + return SDLFileType_values; +} + ++ (SDLFileType *)GRAPHIC_BMP { + if (SDLFileType_GRAPHIC_BMP == nil) { + SDLFileType_GRAPHIC_BMP = [[SDLFileType alloc] initWithValue:@"GRAPHIC_BMP"]; + } + return SDLFileType_GRAPHIC_BMP; +} + ++ (SDLFileType *)GRAPHIC_JPEG { + if (SDLFileType_GRAPHIC_JPEG == nil) { + SDLFileType_GRAPHIC_JPEG = [[SDLFileType alloc] initWithValue:@"GRAPHIC_JPEG"]; + } + return SDLFileType_GRAPHIC_JPEG; +} + ++ (SDLFileType *)GRAPHIC_PNG { + if (SDLFileType_GRAPHIC_PNG == nil) { + SDLFileType_GRAPHIC_PNG = [[SDLFileType alloc] initWithValue:@"GRAPHIC_PNG"]; + } + return SDLFileType_GRAPHIC_PNG; +} + ++ (SDLFileType *)AUDIO_WAVE { + if (SDLFileType_AUDIO_WAVE == nil) { + SDLFileType_AUDIO_WAVE = [[SDLFileType alloc] initWithValue:@"AUDIO_WAVE"]; + } + return SDLFileType_AUDIO_WAVE; +} + ++ (SDLFileType *)AUDIO_MP3 { + if (SDLFileType_AUDIO_MP3 == nil) { + SDLFileType_AUDIO_MP3 = [[SDLFileType alloc] initWithValue:@"AUDIO_MP3"]; + } + return SDLFileType_AUDIO_MP3; +} + ++ (SDLFileType *)AUDIO_AAC { + if (SDLFileType_AUDIO_AAC == nil) { + SDLFileType_AUDIO_AAC = [[SDLFileType alloc] initWithValue:@"AUDIO_AAC"]; + } + return SDLFileType_AUDIO_AAC; +} + ++ (SDLFileType *)BINARY { + if (SDLFileType_BINARY == nil) { + SDLFileType_BINARY = [[SDLFileType alloc] initWithValue:@"BINARY"]; + } + return SDLFileType_BINARY; +} + ++ (SDLFileType *)JSON { + if (SDLFileType_JSON == nil) { + SDLFileType_JSON = [[SDLFileType alloc] initWithValue:@"JSON"]; + } + return SDLFileType_JSON; +} + +@end diff --git a/SmartDeviceLink/SDLFuelCutoffStatus.h b/SmartDeviceLink/SDLFuelCutoffStatus.h new file mode 100644 index 000000000..df213ff07 --- /dev/null +++ b/SmartDeviceLink/SDLFuelCutoffStatus.h @@ -0,0 +1,50 @@ +// SDLFuelCutoffStatus.h +// + + +#import "SDLEnum.h" + +/** + * Reflects the status of the Restraints Control Module fuel pump cutoff. + * The fuel pump is cut off typically after the vehicle has had a collision. + * + * @since SDL 2.0 + */ +@interface SDLFuelCutoffStatus : SDLEnum { +} + +/** + * @abstract Convert String to SDLFuelCutoffStatus + * + * @param value String value to retrieve the object for + * + * @return SDLFuelCutoffStatus + */ ++ (SDLFuelCutoffStatus *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLFuelCutoffStatus + * + * @return an array that stores all possible SDLFuelCutoffStatus + */ ++ (NSArray *)values; + +/** + * @abstract Fuel is cut off + * @return the fuel cutoff status: *TERMINATE_FUEL* + */ ++ (SDLFuelCutoffStatus *)TERMINATE_FUEL; + +/** + * @abstract Fuel is not cut off + * @return the fuel cutoff status: *NORMAL_OPERATION* + */ ++ (SDLFuelCutoffStatus *)NORMAL_OPERATION; + +/** + * @abstract Status of the fuel pump cannot be determined + * @return the fuel cutoff status: *FAULT* + */ ++ (SDLFuelCutoffStatus *)FAULT; + +@end diff --git a/SmartDeviceLink/SDLFuelCutoffStatus.m b/SmartDeviceLink/SDLFuelCutoffStatus.m new file mode 100644 index 000000000..3bbd92bb8 --- /dev/null +++ b/SmartDeviceLink/SDLFuelCutoffStatus.m @@ -0,0 +1,56 @@ +// SDLFuelCutoffStatus.m +// + + +#import "SDLFuelCutoffStatus.h" + +SDLFuelCutoffStatus *SDLFuelCutoffStatus_TERMINATE_FUEL = nil; +SDLFuelCutoffStatus *SDLFuelCutoffStatus_NORMAL_OPERATION = nil; +SDLFuelCutoffStatus *SDLFuelCutoffStatus_FAULT = nil; + +NSArray *SDLFuelCutoffStatus_values = nil; + +@implementation SDLFuelCutoffStatus + ++ (SDLFuelCutoffStatus *)valueOf:(NSString *)value { + for (SDLFuelCutoffStatus *item in SDLFuelCutoffStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLFuelCutoffStatus_values == nil) { + SDLFuelCutoffStatus_values = @[ + SDLFuelCutoffStatus.TERMINATE_FUEL, + SDLFuelCutoffStatus.NORMAL_OPERATION, + SDLFuelCutoffStatus.FAULT, + ]; + } + return SDLFuelCutoffStatus_values; +} + ++ (SDLFuelCutoffStatus *)TERMINATE_FUEL { + if (SDLFuelCutoffStatus_TERMINATE_FUEL == nil) { + SDLFuelCutoffStatus_TERMINATE_FUEL = [[SDLFuelCutoffStatus alloc] initWithValue:@"TERMINATE_FUEL"]; + } + return SDLFuelCutoffStatus_TERMINATE_FUEL; +} + ++ (SDLFuelCutoffStatus *)NORMAL_OPERATION { + if (SDLFuelCutoffStatus_NORMAL_OPERATION == nil) { + SDLFuelCutoffStatus_NORMAL_OPERATION = [[SDLFuelCutoffStatus alloc] initWithValue:@"NORMAL_OPERATION"]; + } + return SDLFuelCutoffStatus_NORMAL_OPERATION; +} + ++ (SDLFuelCutoffStatus *)FAULT { + if (SDLFuelCutoffStatus_FAULT == nil) { + SDLFuelCutoffStatus_FAULT = [[SDLFuelCutoffStatus alloc] initWithValue:@"FAULT"]; + } + return SDLFuelCutoffStatus_FAULT; +} + +@end diff --git a/SmartDeviceLink/SDLFunctionID.h b/SmartDeviceLink/SDLFunctionID.h new file mode 100644 index 000000000..8bbd1a52a --- /dev/null +++ b/SmartDeviceLink/SDLFunctionID.h @@ -0,0 +1,15 @@ +// SDLFunctionID.h +// + + +#import + + +@interface SDLFunctionID : NSObject { + NSDictionary *functionIDs; +} + +- (NSString *)getFunctionName:(int)functionID; +- (NSNumber *)getFunctionID:(NSString *)functionName; + +@end diff --git a/SmartDeviceLink/SDLFunctionID.m b/SmartDeviceLink/SDLFunctionID.m new file mode 100644 index 000000000..802ee3df3 --- /dev/null +++ b/SmartDeviceLink/SDLFunctionID.m @@ -0,0 +1,40 @@ +// SDLFunctionID.m +// + + +#import "SDLFunctionID.h" + +#import "SDLNames.h" + +@implementation SDLFunctionID + +- (instancetype)init { + if (self = [super init]) { + functionIDs = [NSDictionary dictionaryWithObjectsAndKeys: + NAMES_reserved, @"0", NAMES_RegisterAppInterface, @"1", NAMES_UnregisterAppInterface, @"2", NAMES_SetGlobalProperties, @"3", NAMES_ResetGlobalProperties, @"4", NAMES_AddCommand, @"5", NAMES_DeleteCommand, @"6", NAMES_AddSubMenu, @"7", NAMES_DeleteSubMenu, @"8", NAMES_CreateInteractionChoiceSet, @"9", NAMES_PerformInteraction, @"10", NAMES_DeleteInteractionChoiceSet, @"11", NAMES_Alert, @"12", NAMES_Show, @"13", NAMES_Speak, @"14", NAMES_SetMediaClockTimer, @"15", NAMES_PerformAudioPassThru, @"16", NAMES_EndAudioPassThru, @"17", NAMES_SubscribeButton, @"18", NAMES_UnsubscribeButton, @"19", NAMES_SubscribeVehicleData, @"20", NAMES_UnsubscribeVehicleData, @"21", NAMES_GetVehicleData, @"22", NAMES_ReadDID, @"23", NAMES_GetDTCs, @"24", NAMES_ScrollableMessage, @"25", NAMES_Slider, @"26", NAMES_ShowConstantTBT, @"27", NAMES_AlertManeuver, @"28", NAMES_UpdateTurnList, @"29", NAMES_ChangeRegistration, @"30", NAMES_GenericResponse, @"31", NAMES_PutFile, @"32", NAMES_DeleteFile, @"33", NAMES_ListFiles, @"34", NAMES_SetAppIcon, @"35", NAMES_SetDisplayLayout, @"36", NAMES_DiagnosticMessage, @"37", NAMES_SystemRequest, @"38", NAMES_SendLocation, @"39", NAMES_DialNumber, @"40", NAMES_OnHMIStatus, @"32768", NAMES_OnAppInterfaceUnregistered, @"32769", NAMES_OnButtonEvent, @"32770", NAMES_OnButtonPress, @"32771", NAMES_OnVehicleData, @"32772", NAMES_OnCommand, @"32773", NAMES_OnTBTClientState, @"32774", NAMES_OnDriverDistraction, @"32775", NAMES_OnPermissionsChange, @"32776", NAMES_OnAudioPassThru, @"32777", NAMES_OnLanguageChange, @"32778", NAMES_OnKeyboardInput, @"32779", NAMES_OnTouchEvent, @"32780", NAMES_OnSystemRequest, @"32781", NAMES_OnHashChange, @"32782", + + NAMES_EncodedSyncPData, + @"65536", + NAMES_SyncPData, + @"65537", + + NAMES_OnEncodedSyncPData, + @"98304", + NAMES_OnSyncPData, + @"98305", + nil]; + } + return self; +} + +- (NSString *)getFunctionName:(int)functionID { + return [functionIDs objectForKey:[NSString stringWithFormat:@"%d", functionID]]; +} + + +- (NSNumber *)getFunctionID:(NSString *)functionName { + return [NSNumber numberWithInt:[[[functionIDs allKeysForObject:functionName] objectAtIndex:0] intValue]]; +} + + +@end diff --git a/SmartDeviceLink/SDLGPSData.h b/SmartDeviceLink/SDLGPSData.h new file mode 100644 index 000000000..cfeebaa41 --- /dev/null +++ b/SmartDeviceLink/SDLGPSData.h @@ -0,0 +1,163 @@ +// SDLGPSData.h +// + +#import "SDLRPCMessage.h" + +@class SDLCompassDirection; +@class SDLDimension; + + +/** + * Describes the GPS data. Not all data will be available on all carlines. + * + * @since SDL 2.0 + */ +@interface SDLGPSData : SDLRPCStruct { +} + +/** + * Constructs a newly allocated SDLGPSData object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLGPSData object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract longitude degrees + * + * Required, Float, -180 - 180 + */ +@property (strong) NSNumber *longitudeDegrees; + +/** + * @abstract latitude degrees + * + * Required, Float, -90 - 90 + */ +@property (strong) NSNumber *latitudeDegrees; + +/** + * @abstract utc year + * + * Required, Integer, 2010 - 2100 + */ +@property (strong) NSNumber *utcYear; + +/** + * @abstract utc month + * + * Required, Integer, 1 - 12 + */ +@property (strong) NSNumber *utcMonth; + +/** + * @abstract utc day + * + * Required, Integer, 1 - 31 + */ +@property (strong) NSNumber *utcDay; + +/** + * @abstract utc hours + * + * Required, Integer, 0 - 23 + */ +@property (strong) NSNumber *utcHours; + +/** + * @abstract utc minutes + * + * Required, Integer, 0 - 59 + */ +@property (strong) NSNumber *utcMinutes; + +/** + * @abstract utc seconds + * + * Required, Integer, 0 - 59 + */ +@property (strong) NSNumber *utcSeconds; + +/** + * Potential Compass Directions + */ +@property (strong) SDLCompassDirection *compassDirection; + +/** + * @abstract The 3D positional dilution of precision. + * + * @discussion If undefined or unavailable, then value shall be set to 0 + * + * Required, Float, 0.0 - 10.0 + */ +@property (strong) NSNumber *pdop; + +/** + * @abstract The horizontal dilution of precision + * + * @discussion If undefined or unavailable, then value shall be set to 0 + * + * Required, Float, 0.0 - 10.0 + */ +@property (strong) NSNumber *hdop; + +/** + * @abstract the vertical dilution of precision + * + * @discussion If undefined or unavailable, then value shall be set to 0 + * + * Required, Float, 0.0 - 10.0 + */ +@property (strong) NSNumber *vdop; + +/** + * @abstract What the coordinates are based on + * + * @discussion YES, if coordinates are based on satellites. NO, if based on dead reckoning. + * + * Required, Boolean + */ +@property (strong) NSNumber *actual; + +/** + * @abstract The number of satellites in view + * + * Required, Integer, 0 - 31 + */ +@property (strong) NSNumber *satellites; + +/** + * The supported dimensions of the GPS + * + * Required + */ +@property (strong) SDLDimension *dimension; + +/** + * @abstract altitude in meters + * + * Required, Float, -10000.0 - 10000.0 + */ +@property (strong) NSNumber *altitude; + +/** + * @abstract Heading based on the GPS data. + * + * @discussion North is 0, East is 90, etc. Resolution is 0.01 + * + * Required, Float, 0.0 - 359.99 + */ +@property (strong) NSNumber *heading; + +/** + * @abstract speed in KPH + * + * Required, Float, 0.0 - 500.0 + */ +@property (strong) NSNumber *speed; + +@end diff --git a/SmartDeviceLink/SDLGPSData.m b/SmartDeviceLink/SDLGPSData.m new file mode 100644 index 000000000..1cec52112 --- /dev/null +++ b/SmartDeviceLink/SDLGPSData.m @@ -0,0 +1,251 @@ +// SDLGPSData.m +// + +#import "SDLGPSData.h" + +#import "SDLCompassDirection.h" +#import "SDLDimension.h" +#import "SDLNames.h" + + +@implementation SDLGPSData + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setLongitudeDegrees:(NSNumber *)longitudeDegrees { + if (longitudeDegrees != nil) { + [store setObject:longitudeDegrees forKey:NAMES_longitudeDegrees]; + } else { + [store removeObjectForKey:NAMES_longitudeDegrees]; + } +} + +- (NSNumber *)longitudeDegrees { + return [store objectForKey:NAMES_longitudeDegrees]; +} + +- (void)setLatitudeDegrees:(NSNumber *)latitudeDegrees { + if (latitudeDegrees != nil) { + [store setObject:latitudeDegrees forKey:NAMES_latitudeDegrees]; + } else { + [store removeObjectForKey:NAMES_latitudeDegrees]; + } +} + +- (NSNumber *)latitudeDegrees { + return [store objectForKey:NAMES_latitudeDegrees]; +} + +- (void)setUtcYear:(NSNumber *)utcYear { + if (utcYear != nil) { + [store setObject:utcYear forKey:NAMES_utcYear]; + } else { + [store removeObjectForKey:NAMES_utcYear]; + } +} + +- (NSNumber *)utcYear { + return [store objectForKey:NAMES_utcYear]; +} + +- (void)setUtcMonth:(NSNumber *)utcMonth { + if (utcMonth != nil) { + [store setObject:utcMonth forKey:NAMES_utcMonth]; + } else { + [store removeObjectForKey:NAMES_utcMonth]; + } +} + +- (NSNumber *)utcMonth { + return [store objectForKey:NAMES_utcMonth]; +} + +- (void)setUtcDay:(NSNumber *)utcDay { + if (utcDay != nil) { + [store setObject:utcDay forKey:NAMES_utcDay]; + } else { + [store removeObjectForKey:NAMES_utcDay]; + } +} + +- (NSNumber *)utcDay { + return [store objectForKey:NAMES_utcDay]; +} + +- (void)setUtcHours:(NSNumber *)utcHours { + if (utcHours != nil) { + [store setObject:utcHours forKey:NAMES_utcHours]; + } else { + [store removeObjectForKey:NAMES_utcHours]; + } +} + +- (NSNumber *)utcHours { + return [store objectForKey:NAMES_utcHours]; +} + +- (void)setUtcMinutes:(NSNumber *)utcMinutes { + if (utcMinutes != nil) { + [store setObject:utcMinutes forKey:NAMES_utcMinutes]; + } else { + [store removeObjectForKey:NAMES_utcMinutes]; + } +} + +- (NSNumber *)utcMinutes { + return [store objectForKey:NAMES_utcMinutes]; +} + +- (void)setUtcSeconds:(NSNumber *)utcSeconds { + if (utcSeconds != nil) { + [store setObject:utcSeconds forKey:NAMES_utcSeconds]; + } else { + [store removeObjectForKey:NAMES_utcSeconds]; + } +} + +- (NSNumber *)utcSeconds { + return [store objectForKey:NAMES_utcSeconds]; +} + +- (void)setCompassDirection:(SDLCompassDirection *)compassDirection { + if (compassDirection != nil) { + [store setObject:compassDirection forKey:NAMES_compassDirection]; + } else { + [store removeObjectForKey:NAMES_compassDirection]; + } +} + +- (SDLCompassDirection *)compassDirection { + NSObject *obj = [store objectForKey:NAMES_compassDirection]; + if (obj == nil || [obj isKindOfClass:SDLCompassDirection.class]) { + return (SDLCompassDirection *)obj; + } else { + return [SDLCompassDirection valueOf:(NSString *)obj]; + } +} + +- (void)setPdop:(NSNumber *)pdop { + if (pdop != nil) { + [store setObject:pdop forKey:NAMES_pdop]; + } else { + [store removeObjectForKey:NAMES_pdop]; + } +} + +- (NSNumber *)pdop { + return [store objectForKey:NAMES_pdop]; +} + +- (void)setHdop:(NSNumber *)hdop { + if (hdop != nil) { + [store setObject:hdop forKey:NAMES_hdop]; + } else { + [store removeObjectForKey:NAMES_hdop]; + } +} + +- (NSNumber *)hdop { + return [store objectForKey:NAMES_hdop]; +} + +- (void)setVdop:(NSNumber *)vdop { + if (vdop != nil) { + [store setObject:vdop forKey:NAMES_vdop]; + } else { + [store removeObjectForKey:NAMES_vdop]; + } +} + +- (NSNumber *)vdop { + return [store objectForKey:NAMES_vdop]; +} + +- (void)setActual:(NSNumber *)actual { + if (actual != nil) { + [store setObject:actual forKey:NAMES_actual]; + } else { + [store removeObjectForKey:NAMES_actual]; + } +} + +- (NSNumber *)actual { + return [store objectForKey:NAMES_actual]; +} + +- (void)setSatellites:(NSNumber *)satellites { + if (satellites != nil) { + [store setObject:satellites forKey:NAMES_satellites]; + } else { + [store removeObjectForKey:NAMES_satellites]; + } +} + +- (NSNumber *)satellites { + return [store objectForKey:NAMES_satellites]; +} + +- (void)setDimension:(SDLDimension *)dimension { + if (dimension != nil) { + [store setObject:dimension forKey:NAMES_dimension]; + } else { + [store removeObjectForKey:NAMES_dimension]; + } +} + +- (SDLDimension *)dimension { + NSObject *obj = [store objectForKey:NAMES_dimension]; + if (obj == nil || [obj isKindOfClass:SDLDimension.class]) { + return (SDLDimension *)obj; + } else { + return [SDLDimension valueOf:(NSString *)obj]; + } +} + +- (void)setAltitude:(NSNumber *)altitude { + if (altitude != nil) { + [store setObject:altitude forKey:NAMES_altitude]; + } else { + [store removeObjectForKey:NAMES_altitude]; + } +} + +- (NSNumber *)altitude { + return [store objectForKey:NAMES_altitude]; +} + +- (void)setHeading:(NSNumber *)heading { + if (heading != nil) { + [store setObject:heading forKey:NAMES_heading]; + } else { + [store removeObjectForKey:NAMES_heading]; + } +} + +- (NSNumber *)heading { + return [store objectForKey:NAMES_heading]; +} + +- (void)setSpeed:(NSNumber *)speed { + if (speed != nil) { + [store setObject:speed forKey:NAMES_speed]; + } else { + [store removeObjectForKey:NAMES_speed]; + } +} + +- (NSNumber *)speed { + return [store objectForKey:NAMES_speed]; +} + +@end diff --git a/SmartDeviceLink/SDLGenericResponse.h b/SmartDeviceLink/SDLGenericResponse.h new file mode 100644 index 000000000..4d339fb64 --- /dev/null +++ b/SmartDeviceLink/SDLGenericResponse.h @@ -0,0 +1,18 @@ +// SDLGenericResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Generic Response is sent, when the name of a received msg cannot be + * retrieved. Only used in case of an error. Currently, only resultCode + * INVALID_DATA is used. + */ +@interface SDLGenericResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLGenericResponse.m b/SmartDeviceLink/SDLGenericResponse.m new file mode 100644 index 000000000..aff982d8f --- /dev/null +++ b/SmartDeviceLink/SDLGenericResponse.m @@ -0,0 +1,23 @@ +// SDLGenericResponse.m +// + + +#import "SDLGenericResponse.h" + +#import "SDLNames.h" + +@implementation SDLGenericResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_GenericResponse]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLGetDTCs.h b/SmartDeviceLink/SDLGetDTCs.h new file mode 100644 index 000000000..3d38a0079 --- /dev/null +++ b/SmartDeviceLink/SDLGetDTCs.h @@ -0,0 +1,41 @@ +// SDLGetDTCs.h +// + + +#import "SDLRPCRequest.h" + +/** + * This RPC allows to request diagnostic module trouble codes from a certain + * vehicle module + *

    + * Function Group: ProprietaryData + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + */ +@interface SDLGetDTCs : SDLRPCRequest { +} +/** + * Constructs a new SDLGetDTCs object + */ +- (instancetype)init; +/** + * Constructs a new SDLGetDTCs object indicated by the dictionary parameter + *

    + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; +/** + * @abstract a name of the module to receive the DTC form + * @discussion an NSNumber value representing a name of the module to receive + * the DTC form + *

    + * Notes: Minvalue:0; Maxvalue:65535 + */ +@property (strong) NSNumber *ecuName; +/** + * @abstract DTC Mask Byte to be sent in diagnostic request to module. NSNumber* dtcMask Minvalue:0; Maxvalue:255 + */ +@property (strong) NSNumber *dtcMask; +@end diff --git a/SmartDeviceLink/SDLGetDTCs.m b/SmartDeviceLink/SDLGetDTCs.m new file mode 100644 index 000000000..cf7db88e5 --- /dev/null +++ b/SmartDeviceLink/SDLGetDTCs.m @@ -0,0 +1,47 @@ +// SDLGetDTCs.m +// + + +#import "SDLGetDTCs.h" + +#import "SDLNames.h" + +@implementation SDLGetDTCs + +- (instancetype)init { + if (self = [super initWithName:NAMES_GetDTCs]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setEcuName:(NSNumber *)ecuName { + if (ecuName != nil) { + [parameters setObject:ecuName forKey:NAMES_ecuName]; + } else { + [parameters removeObjectForKey:NAMES_ecuName]; + } +} + +- (NSNumber *)ecuName { + return [parameters objectForKey:NAMES_ecuName]; +} + +- (void)setDtcMask:(NSNumber *)dtcMask { + if (dtcMask != nil) { + [parameters setObject:dtcMask forKey:NAMES_dtcMask]; + } else { + [parameters removeObjectForKey:NAMES_dtcMask]; + } +} + +- (NSNumber *)dtcMask { + return [parameters objectForKey:NAMES_dtcMask]; +} + +@end diff --git a/SmartDeviceLink/SDLGetDTCsResponse.h b/SmartDeviceLink/SDLGetDTCsResponse.h new file mode 100644 index 000000000..4e0af4a39 --- /dev/null +++ b/SmartDeviceLink/SDLGetDTCsResponse.h @@ -0,0 +1,21 @@ +// SDLGetDTCsResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * SDLGetDTCsResponse is sent, when SDLGetDTCs has been called + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLGetDTCsResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSNumber *ecuHeader; +@property (strong) NSMutableArray *dtc; + +@end diff --git a/SmartDeviceLink/SDLGetDTCsResponse.m b/SmartDeviceLink/SDLGetDTCsResponse.m new file mode 100644 index 000000000..bbf678a78 --- /dev/null +++ b/SmartDeviceLink/SDLGetDTCsResponse.m @@ -0,0 +1,47 @@ +// SDLGetDTCsResponse.m +// + + +#import "SDLGetDTCsResponse.h" + +#import "SDLNames.h" + +@implementation SDLGetDTCsResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_GetDTCs]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setEcuHeader:(NSNumber *)ecuHeader { + if (ecuHeader != nil) { + [parameters setObject:ecuHeader forKey:NAMES_ecuHeader]; + } else { + [parameters removeObjectForKey:NAMES_ecuHeader]; + } +} + +- (NSNumber *)ecuHeader { + return [parameters objectForKey:NAMES_ecuHeader]; +} + +- (void)setDtc:(NSMutableArray *)dtc { + if (dtc != nil) { + [parameters setObject:dtc forKey:NAMES_dtc]; + } else { + [parameters removeObjectForKey:NAMES_dtc]; + } +} + +- (NSMutableArray *)dtc { + return [parameters objectForKey:NAMES_dtc]; +} + +@end diff --git a/SmartDeviceLink/SDLGetVehicleData.h b/SmartDeviceLink/SDLGetVehicleData.h new file mode 100644 index 000000000..df2c1923e --- /dev/null +++ b/SmartDeviceLink/SDLGetVehicleData.h @@ -0,0 +1,140 @@ +// SDLGetVehicleData.h +// + + +#import "SDLRPCRequest.h" + +/** + * Requests surrent values of specific published vehicle data items. + *

    + * Function Group: Location, VehicleInfo and DrivingChara + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + * + * Since SmartDeviceLink 2.0
    + * See SDLSubscribeVehicleData SDLUnsubscribeVehicleData + */ +@interface SDLGetVehicleData : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLGetVehicleData object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLGetVehicleData object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A boolean value. If true, requests Gps data + */ +@property (strong) NSNumber *gps; + +/** + * @abstract A boolean value. If true, requests speed data + */ +@property (strong) NSNumber *speed; + +/** + * @abstract A boolean value. If true, requests rpm data + */ +@property (strong) NSNumber *rpm; + +/** + * @abstract A boolean value. If true, requests FuelLevel data + */ +@property (strong) NSNumber *fuelLevel; + +/** + * @abstract A boolean value. If true, requests fuelLevel_State data + */ +@property (strong) NSNumber *fuelLevel_State; + +/** + * @abstract A boolean value. If true, requests instantFuelConsumption data + */ +@property (strong) NSNumber *instantFuelConsumption; + +/** + * @abstract A boolean value. If true, requests externalTemperature data + */ +@property (strong) NSNumber *externalTemperature; + +/** + * @abstract A boolean value. If true, requests Vehicle Identification Number + */ +@property (strong) NSNumber *vin; + +/** + * @abstract A boolean value. If true, requests Currently selected gear data + */ +@property (strong) NSNumber *prndl; + +/** + * @abstract A boolean value. If true, requests tire pressure status data + */ +@property (strong) NSNumber *tirePressure; + +/** + * @abstract A boolean value. If true, requests odometer data + */ +@property (strong) NSNumber *odometer; + +/** + * @abstract A boolean value. If true, requests belt Status data + */ +@property (strong) NSNumber *beltStatus; + +/** + * @abstract A boolean value. If true, requests body Information data + */ +@property (strong) NSNumber *bodyInformation; + +/** + * @abstract A boolean value. If true, requests device Status data + */ +@property (strong) NSNumber *deviceStatus; + +/** + * @abstract A boolean value. If true, requests driver Braking data + */ +@property (strong) NSNumber *driverBraking; + +/** + * @abstract A boolean value. If true, requests wiper Status data + */ +@property (strong) NSNumber *wiperStatus; + +/** + * @abstract A boolean value. If true, requests Head Lamp Status data + */ +@property (strong) NSNumber *headLampStatus; + +/** + * @abstract A boolean value. If true, requests Engine Torque data + */ +@property (strong) NSNumber *engineTorque; + +/** + * @abstract A boolean value. If true, means the accPedalPosition data has been + * subscribed. + */ +@property (strong) NSNumber *accPedalPosition; + +/** + * @abstract A boolean value. If true, means the steeringWheelAngle data has been + * subscribed. + */ +@property (strong) NSNumber *steeringWheelAngle; +@property (strong) NSNumber *eCallInfo; +@property (strong) NSNumber *airbagStatus; +@property (strong) NSNumber *emergencyEvent; +@property (strong) NSNumber *clusterModeStatus; +@property (strong) NSNumber *myKey; + +@end \ No newline at end of file diff --git a/SmartDeviceLink/SDLGetVehicleData.m b/SmartDeviceLink/SDLGetVehicleData.m new file mode 100644 index 000000000..ab5d59a19 --- /dev/null +++ b/SmartDeviceLink/SDLGetVehicleData.m @@ -0,0 +1,323 @@ +// SDLGetVehicleData.m +// + + +#import "SDLGetVehicleData.h" + +#import "SDLNames.h" + +@implementation SDLGetVehicleData + +- (instancetype)init { + if (self = [super initWithName:NAMES_GetVehicleData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setGps:(NSNumber *)gps { + if (gps != nil) { + [parameters setObject:gps forKey:NAMES_gps]; + } else { + [parameters removeObjectForKey:NAMES_gps]; + } +} + +- (NSNumber *)gps { + return [parameters objectForKey:NAMES_gps]; +} + +- (void)setSpeed:(NSNumber *)speed { + if (speed != nil) { + [parameters setObject:speed forKey:NAMES_speed]; + } else { + [parameters removeObjectForKey:NAMES_speed]; + } +} + +- (NSNumber *)speed { + return [parameters objectForKey:NAMES_speed]; +} + +- (void)setRpm:(NSNumber *)rpm { + if (rpm != nil) { + [parameters setObject:rpm forKey:NAMES_rpm]; + } else { + [parameters removeObjectForKey:NAMES_rpm]; + } +} + +- (NSNumber *)rpm { + return [parameters objectForKey:NAMES_rpm]; +} + +- (void)setFuelLevel:(NSNumber *)fuelLevel { + if (fuelLevel != nil) { + [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel]; + } +} + +- (NSNumber *)fuelLevel { + return [parameters objectForKey:NAMES_fuelLevel]; +} + +- (void)setFuelLevel_State:(NSNumber *)fuelLevel_State { + if (fuelLevel_State != nil) { + [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel_State]; + } +} + +- (NSNumber *)fuelLevel_State { + return [parameters objectForKey:NAMES_fuelLevel_State]; +} + +- (void)setInstantFuelConsumption:(NSNumber *)instantFuelConsumption { + if (instantFuelConsumption != nil) { + [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; + } else { + [parameters removeObjectForKey:NAMES_instantFuelConsumption]; + } +} + +- (NSNumber *)instantFuelConsumption { + return [parameters objectForKey:NAMES_instantFuelConsumption]; +} + +- (void)setExternalTemperature:(NSNumber *)externalTemperature { + if (externalTemperature != nil) { + [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; + } else { + [parameters removeObjectForKey:NAMES_externalTemperature]; + } +} + +- (NSNumber *)externalTemperature { + return [parameters objectForKey:NAMES_externalTemperature]; +} + +- (void)setVin:(NSNumber *)vin { + if (vin != nil) { + [parameters setObject:vin forKey:NAMES_vin]; + } else { + [parameters removeObjectForKey:NAMES_vin]; + } +} + +- (NSNumber *)vin { + return [parameters objectForKey:NAMES_vin]; +} + +- (void)setPrndl:(NSNumber *)prndl { + if (prndl != nil) { + [parameters setObject:prndl forKey:NAMES_prndl]; + } else { + [parameters removeObjectForKey:NAMES_prndl]; + } +} + +- (NSNumber *)prndl { + return [parameters objectForKey:NAMES_prndl]; +} + +- (void)setTirePressure:(NSNumber *)tirePressure { + if (tirePressure != nil) { + [parameters setObject:tirePressure forKey:NAMES_tirePressure]; + } else { + [parameters removeObjectForKey:NAMES_tirePressure]; + } +} + +- (NSNumber *)tirePressure { + return [parameters objectForKey:NAMES_tirePressure]; +} + +- (void)setOdometer:(NSNumber *)odometer { + if (odometer != nil) { + [parameters setObject:odometer forKey:NAMES_odometer]; + } else { + [parameters removeObjectForKey:NAMES_odometer]; + } +} + +- (NSNumber *)odometer { + return [parameters objectForKey:NAMES_odometer]; +} + +- (void)setBeltStatus:(NSNumber *)beltStatus { + if (beltStatus != nil) { + [parameters setObject:beltStatus forKey:NAMES_beltStatus]; + } else { + [parameters removeObjectForKey:NAMES_beltStatus]; + } +} + +- (NSNumber *)beltStatus { + return [parameters objectForKey:NAMES_beltStatus]; +} + +- (void)setBodyInformation:(NSNumber *)bodyInformation { + if (bodyInformation != nil) { + [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; + } else { + [parameters removeObjectForKey:NAMES_bodyInformation]; + } +} + +- (NSNumber *)bodyInformation { + return [parameters objectForKey:NAMES_bodyInformation]; +} + +- (void)setDeviceStatus:(NSNumber *)deviceStatus { + if (deviceStatus != nil) { + [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; + } else { + [parameters removeObjectForKey:NAMES_deviceStatus]; + } +} + +- (NSNumber *)deviceStatus { + return [parameters objectForKey:NAMES_deviceStatus]; +} + +- (void)setDriverBraking:(NSNumber *)driverBraking { + if (driverBraking != nil) { + [parameters setObject:driverBraking forKey:NAMES_driverBraking]; + } else { + [parameters removeObjectForKey:NAMES_driverBraking]; + } +} + +- (NSNumber *)driverBraking { + return [parameters objectForKey:NAMES_driverBraking]; +} + +- (void)setWiperStatus:(NSNumber *)wiperStatus { + if (wiperStatus != nil) { + [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; + } else { + [parameters removeObjectForKey:NAMES_wiperStatus]; + } +} + +- (NSNumber *)wiperStatus { + return [parameters objectForKey:NAMES_wiperStatus]; +} + +- (void)setHeadLampStatus:(NSNumber *)headLampStatus { + if (headLampStatus != nil) { + [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; + } else { + [parameters removeObjectForKey:NAMES_headLampStatus]; + } +} + +- (NSNumber *)headLampStatus { + return [parameters objectForKey:NAMES_headLampStatus]; +} + +- (void)setEngineTorque:(NSNumber *)engineTorque { + if (engineTorque != nil) { + [parameters setObject:engineTorque forKey:NAMES_engineTorque]; + } else { + [parameters removeObjectForKey:NAMES_engineTorque]; + } +} + +- (NSNumber *)engineTorque { + return [parameters objectForKey:NAMES_engineTorque]; +} + +- (void)setAccPedalPosition:(NSNumber *)accPedalPosition { + if (accPedalPosition != nil) { + [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; + } else { + [parameters removeObjectForKey:NAMES_accPedalPosition]; + } +} + +- (NSNumber *)accPedalPosition { + return [parameters objectForKey:NAMES_accPedalPosition]; +} + +- (void)setSteeringWheelAngle:(NSNumber *)steeringWheelAngle { + if (steeringWheelAngle != nil) { + [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; + } else { + [parameters removeObjectForKey:NAMES_steeringWheelAngle]; + } +} + +- (NSNumber *)steeringWheelAngle { + return [parameters objectForKey:NAMES_steeringWheelAngle]; +} + +- (void)setECallInfo:(NSNumber *)eCallInfo { + if (eCallInfo != nil) { + [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; + } else { + [parameters removeObjectForKey:NAMES_eCallInfo]; + } +} + +- (NSNumber *)eCallInfo { + return [parameters objectForKey:NAMES_eCallInfo]; +} + +- (void)setAirbagStatus:(NSNumber *)airbagStatus { + if (airbagStatus != nil) { + [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; + } else { + [parameters removeObjectForKey:NAMES_airbagStatus]; + } +} + +- (NSNumber *)airbagStatus { + return [parameters objectForKey:NAMES_airbagStatus]; +} + +- (void)setEmergencyEvent:(NSNumber *)emergencyEvent { + if (emergencyEvent != nil) { + [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; + } else { + [parameters removeObjectForKey:NAMES_emergencyEvent]; + } +} + +- (NSNumber *)emergencyEvent { + return [parameters objectForKey:NAMES_emergencyEvent]; +} + +- (void)setClusterModeStatus:(NSNumber *)clusterModeStatus { + if (clusterModeStatus != nil) { + [parameters setObject:clusterModeStatus forKey:NAMES_clusterModeStatus]; + } else { + [parameters removeObjectForKey:NAMES_clusterModeStatus]; + } +} + +- (NSNumber *)clusterModeStatus { + return [parameters objectForKey:NAMES_clusterModeStatus]; +} + +- (void)setMyKey:(NSNumber *)myKey { + if (myKey != nil) { + [parameters setObject:myKey forKey:NAMES_myKey]; + } else { + [parameters removeObjectForKey:NAMES_myKey]; + } +} + +- (NSNumber *)myKey { + return [parameters objectForKey:NAMES_myKey]; +} + +@end diff --git a/SmartDeviceLink/SDLGetVehicleDataResponse.h b/SmartDeviceLink/SDLGetVehicleDataResponse.h new file mode 100644 index 000000000..882c09b51 --- /dev/null +++ b/SmartDeviceLink/SDLGetVehicleDataResponse.h @@ -0,0 +1,150 @@ +// SDLGetVehicleDataResponse.h +// + +#import "SDLRPCResponse.h" + +@class SDLAirbagStatus; +@class SDLBeltStatus; +@class SDLBodyInformation; +@class SDLClusterModeStatus; +@class SDLComponentVolumeStatus; +@class SDLDeviceStatus; +@class SDLECallInfo; +@class SDLEmergencyEvent; +@class SDLGPSData; +@class SDLHeadLampStatus; +@class SDLMyKey; +@class SDLPRNDL; +@class SDLTireStatus; +@class SDLVehicleDataEventStatus; +@class SDLWiperStatus; + + +/** + * Get Vehicle Data Response is sent, when SDLGetVehicleData has been called + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLGetVehicleDataResponse : SDLRPCResponse { +} + + +/** + * @abstract Constructs a new SDLGetVehicleDataResponse object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLGetVehicleDataResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + + +/** + * @abstract A SDLGPSData* value. See GPSData. + */ +@property (strong) SDLGPSData *gps; + +/** + * @abstract The vehicle speed in kilometers per hour. + */ +@property (strong) NSNumber *speed; + +/** + * @abstract The number of revolutions per minute of the engine. + */ +@property (strong) NSNumber *rpm; + +/** + * @abstract The fuel level in the tank (percentage) + */ +@property (strong) NSNumber *fuelLevel; + +/** + * @abstract A SDLComponentVolumeStatus* value. The fuel level state. + */ +@property (strong) SDLComponentVolumeStatus *fuelLevel_State; + +/** + * @abstract The instantaneous fuel consumption in microlitres. + */ +@property (strong) NSNumber *instantFuelConsumption; + +/** + * @abstract The external temperature in degrees celsius. + */ +@property (strong) NSNumber *externalTemperature; + +/** + * @abstract The Vehicle Identification Number + */ +@property (strong) NSString *vin; + +/** + * @abstract See PRNDL. + */ +@property (strong) SDLPRNDL *prndl; + +/** + * @abstract A SDLTireStatus* value. See TireStatus. + */ +@property (strong) SDLTireStatus *tirePressure; + +/** + * @abstract Odometer reading in km. + */ +@property (strong) NSNumber *odometer; + +/** + * @abstract A SDLBeltStatus* value. The status of the seat belts. + */ +@property (strong) SDLBeltStatus *beltStatus; + +/** + * @abstract A SDLBodyInformation* value. The body information including power modes. + */ +@property (strong) SDLBodyInformation *bodyInformation; + +/** + * @abstract A SDLDeviceStatus* value. The device status including signal and battery strength. + */ +@property (strong) SDLDeviceStatus *deviceStatus; + +/** + * @abstract A SDLVehicleDataResult* value. The status of the brake pedal. + */ +@property (strong) SDLVehicleDataEventStatus *driverBraking; + +/** + * @abstract A SDLWiperStatus* value. The status of the wipers. + */ +@property (strong) SDLWiperStatus *wiperStatus; + +/** + * @abstract A SDLHeadLampStatus* value. Status of the head lamps. + */ +@property (strong) SDLHeadLampStatus *headLampStatus; + +/** + * @abstract Torque value for engine (in Nm) on non-diesel variants. + */ +@property (strong) NSNumber *engineTorque; + +/** + * @abstract Accelerator pedal position (percentage depressed) + */ +@property (strong) NSNumber *accPedalPosition; + +/** + * @abstract Current angle of the steering wheel (in deg) + */ +@property (strong) NSNumber *steeringWheelAngle; +@property (strong) SDLECallInfo *eCallInfo; +@property (strong) SDLAirbagStatus *airbagStatus; +@property (strong) SDLEmergencyEvent *emergencyEvent; +@property (strong) SDLClusterModeStatus *clusterModeStatus; +@property (strong) SDLMyKey *myKey; + +@end diff --git a/SmartDeviceLink/SDLGetVehicleDataResponse.m b/SmartDeviceLink/SDLGetVehicleDataResponse.m new file mode 100644 index 000000000..7f1bdb351 --- /dev/null +++ b/SmartDeviceLink/SDLGetVehicleDataResponse.m @@ -0,0 +1,414 @@ +// SDLGetVehicleDataResponse.m +// + + +#import "SDLGetVehicleDataResponse.h" + +#import "SDLAirbagStatus.h" +#import "SDLBeltStatus.h" +#import "SDLBodyInformation.h" +#import "SDLClusterModeStatus.h" +#import "SDLComponentVolumeStatus.h" +#import "SDLDeviceStatus.h" +#import "SDLECallInfo.h" +#import "SDLEmergencyEvent.h" +#import "SDLGPSData.h" +#import "SDLHeadLampStatus.h" +#import "SDLMyKey.h" +#import "SDLNames.h" +#import "SDLPRNDL.h" +#import "SDLTireStatus.h" +#import "SDLVehicleDataEventStatus.h" +#import "SDLWiperStatus.h" + + +@implementation SDLGetVehicleDataResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_GetVehicleData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setGps:(SDLGPSData *)gps { + if (gps != nil) { + [parameters setObject:gps forKey:NAMES_gps]; + } else { + [parameters removeObjectForKey:NAMES_gps]; + } +} + +- (SDLGPSData *)gps { + NSObject *obj = [parameters objectForKey:NAMES_gps]; + if (obj == nil || [obj isKindOfClass:SDLGPSData.class]) { + return (SDLGPSData *)obj; + } else { + return [[SDLGPSData alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setSpeed:(NSNumber *)speed { + if (speed != nil) { + [parameters setObject:speed forKey:NAMES_speed]; + } else { + [parameters removeObjectForKey:NAMES_speed]; + } +} + +- (NSNumber *)speed { + return [parameters objectForKey:NAMES_speed]; +} + +- (void)setRpm:(NSNumber *)rpm { + if (rpm != nil) { + [parameters setObject:rpm forKey:NAMES_rpm]; + } else { + [parameters removeObjectForKey:NAMES_rpm]; + } +} + +- (NSNumber *)rpm { + return [parameters objectForKey:NAMES_rpm]; +} + +- (void)setFuelLevel:(NSNumber *)fuelLevel { + if (fuelLevel != nil) { + [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel]; + } +} + +- (NSNumber *)fuelLevel { + return [parameters objectForKey:NAMES_fuelLevel]; +} + +- (void)setFuelLevel_State:(SDLComponentVolumeStatus *)fuelLevel_State { + if (fuelLevel_State != nil) { + [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel_State]; + } +} + +- (SDLComponentVolumeStatus *)fuelLevel_State { + NSObject *obj = [parameters objectForKey:NAMES_fuelLevel_State]; + if (obj == nil || [obj isKindOfClass:SDLComponentVolumeStatus.class]) { + return (SDLComponentVolumeStatus *)obj; + } else { + return [SDLComponentVolumeStatus valueOf:(NSString *)obj]; + } +} + +- (void)setInstantFuelConsumption:(NSNumber *)instantFuelConsumption { + if (instantFuelConsumption != nil) { + [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; + } else { + [parameters removeObjectForKey:NAMES_instantFuelConsumption]; + } +} + +- (NSNumber *)instantFuelConsumption { + return [parameters objectForKey:NAMES_instantFuelConsumption]; +} + +- (void)setExternalTemperature:(NSNumber *)externalTemperature { + if (externalTemperature != nil) { + [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; + } else { + [parameters removeObjectForKey:NAMES_externalTemperature]; + } +} + +- (NSNumber *)externalTemperature { + return [parameters objectForKey:NAMES_externalTemperature]; +} + +- (void)setVin:(NSString *)vin { + if (vin != nil) { + [parameters setObject:vin forKey:NAMES_vin]; + } else { + [parameters removeObjectForKey:NAMES_vin]; + } +} + +- (NSString *)vin { + return [parameters objectForKey:NAMES_vin]; +} + +- (void)setPrndl:(SDLPRNDL *)prndl { + if (prndl != nil) { + [parameters setObject:prndl forKey:NAMES_prndl]; + } else { + [parameters removeObjectForKey:NAMES_prndl]; + } +} + +- (SDLPRNDL *)prndl { + NSObject *obj = [parameters objectForKey:NAMES_prndl]; + if (obj == nil || [obj isKindOfClass:SDLPRNDL.class]) { + return (SDLPRNDL *)obj; + } else { + return [SDLPRNDL valueOf:(NSString *)obj]; + } +} + +- (void)setTirePressure:(SDLTireStatus *)tirePressure { + if (tirePressure != nil) { + [parameters setObject:tirePressure forKey:NAMES_tirePressure]; + } else { + [parameters removeObjectForKey:NAMES_tirePressure]; + } +} + +- (SDLTireStatus *)tirePressure { + NSObject *obj = [parameters objectForKey:NAMES_tirePressure]; + if (obj == nil || [obj isKindOfClass:SDLTireStatus.class]) { + return (SDLTireStatus *)obj; + } else { + return [[SDLTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setOdometer:(NSNumber *)odometer { + if (odometer != nil) { + [parameters setObject:odometer forKey:NAMES_odometer]; + } else { + [parameters removeObjectForKey:NAMES_odometer]; + } +} + +- (NSNumber *)odometer { + return [parameters objectForKey:NAMES_odometer]; +} + +- (void)setBeltStatus:(SDLBeltStatus *)beltStatus { + if (beltStatus != nil) { + [parameters setObject:beltStatus forKey:NAMES_beltStatus]; + } else { + [parameters removeObjectForKey:NAMES_beltStatus]; + } +} + +- (SDLBeltStatus *)beltStatus { + NSObject *obj = [parameters objectForKey:NAMES_beltStatus]; + if (obj == nil || [obj isKindOfClass:SDLBeltStatus.class]) { + return (SDLBeltStatus *)obj; + } else { + return [[SDLBeltStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setBodyInformation:(SDLBodyInformation *)bodyInformation { + if (bodyInformation != nil) { + [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; + } else { + [parameters removeObjectForKey:NAMES_bodyInformation]; + } +} + +- (SDLBodyInformation *)bodyInformation { + NSObject *obj = [parameters objectForKey:NAMES_bodyInformation]; + if (obj == nil || [obj isKindOfClass:SDLBodyInformation.class]) { + return (SDLBodyInformation *)obj; + } else { + return [[SDLBodyInformation alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setDeviceStatus:(SDLDeviceStatus *)deviceStatus { + if (deviceStatus != nil) { + [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; + } else { + [parameters removeObjectForKey:NAMES_deviceStatus]; + } +} + +- (SDLDeviceStatus *)deviceStatus { + NSObject *obj = [parameters objectForKey:NAMES_deviceStatus]; + if (obj == nil || [obj isKindOfClass:SDLDeviceStatus.class]) { + return (SDLDeviceStatus *)obj; + } else { + return [[SDLDeviceStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setDriverBraking:(SDLVehicleDataEventStatus *)driverBraking { + if (driverBraking != nil) { + [parameters setObject:driverBraking forKey:NAMES_driverBraking]; + } else { + [parameters removeObjectForKey:NAMES_driverBraking]; + } +} + +- (SDLVehicleDataEventStatus *)driverBraking { + NSObject *obj = [parameters objectForKey:NAMES_driverBraking]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setWiperStatus:(SDLWiperStatus *)wiperStatus { + if (wiperStatus != nil) { + [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; + } else { + [parameters removeObjectForKey:NAMES_wiperStatus]; + } +} + +- (SDLWiperStatus *)wiperStatus { + NSObject *obj = [parameters objectForKey:NAMES_wiperStatus]; + if (obj == nil || [obj isKindOfClass:SDLWiperStatus.class]) { + return (SDLWiperStatus *)obj; + } else { + return [SDLWiperStatus valueOf:(NSString *)obj]; + } +} + +- (void)setHeadLampStatus:(SDLHeadLampStatus *)headLampStatus { + if (headLampStatus != nil) { + [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; + } else { + [parameters removeObjectForKey:NAMES_headLampStatus]; + } +} + +- (SDLHeadLampStatus *)headLampStatus { + NSObject *obj = [parameters objectForKey:NAMES_headLampStatus]; + if (obj == nil || [obj isKindOfClass:SDLHeadLampStatus.class]) { + return (SDLHeadLampStatus *)obj; + } else { + return [[SDLHeadLampStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setEngineTorque:(NSNumber *)engineTorque { + if (engineTorque != nil) { + [parameters setObject:engineTorque forKey:NAMES_engineTorque]; + } else { + [parameters removeObjectForKey:NAMES_engineTorque]; + } +} + +- (NSNumber *)engineTorque { + return [parameters objectForKey:NAMES_engineTorque]; +} + +- (void)setAccPedalPosition:(NSNumber *)accPedalPosition { + if (accPedalPosition != nil) { + [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; + } else { + [parameters removeObjectForKey:NAMES_accPedalPosition]; + } +} + +- (NSNumber *)accPedalPosition { + return [parameters objectForKey:NAMES_accPedalPosition]; +} + +- (void)setSteeringWheelAngle:(NSNumber *)steeringWheelAngle { + if (steeringWheelAngle != nil) { + [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; + } else { + [parameters removeObjectForKey:NAMES_steeringWheelAngle]; + } +} + +- (NSNumber *)steeringWheelAngle { + return [parameters objectForKey:NAMES_steeringWheelAngle]; +} + +- (void)setECallInfo:(SDLECallInfo *)eCallInfo { + if (eCallInfo != nil) { + [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; + } else { + [parameters removeObjectForKey:NAMES_eCallInfo]; + } +} + +- (SDLECallInfo *)eCallInfo { + NSObject *obj = [parameters objectForKey:NAMES_eCallInfo]; + if (obj == nil || [obj isKindOfClass:SDLECallInfo.class]) { + return (SDLECallInfo *)obj; + } else { + return [[SDLECallInfo alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setAirbagStatus:(SDLAirbagStatus *)airbagStatus { + if (airbagStatus != nil) { + [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; + } else { + [parameters removeObjectForKey:NAMES_airbagStatus]; + } +} + +- (SDLAirbagStatus *)airbagStatus { + NSObject *obj = [parameters objectForKey:NAMES_airbagStatus]; + if (obj == nil || [obj isKindOfClass:SDLAirbagStatus.class]) { + return (SDLAirbagStatus *)obj; + } else { + return [[SDLAirbagStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setEmergencyEvent:(SDLEmergencyEvent *)emergencyEvent { + if (emergencyEvent != nil) { + [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; + } else { + [parameters removeObjectForKey:NAMES_emergencyEvent]; + } +} + +- (SDLEmergencyEvent *)emergencyEvent { + NSObject *obj = [parameters objectForKey:NAMES_emergencyEvent]; + if (obj == nil || [obj isKindOfClass:SDLEmergencyEvent.class]) { + return (SDLEmergencyEvent *)obj; + } else { + return [[SDLEmergencyEvent alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setClusterModeStatus:(SDLClusterModeStatus *)clusterModeStatus { + if (clusterModeStatus != nil) { + [parameters setObject:clusterModeStatus forKey:NAMES_clusterModeStatus]; + } else { + [parameters removeObjectForKey:NAMES_clusterModeStatus]; + } +} + +- (SDLClusterModeStatus *)clusterModeStatus { + NSObject *obj = [parameters objectForKey:NAMES_clusterModeStatus]; + if (obj == nil || [obj isKindOfClass:SDLClusterModeStatus.class]) { + return (SDLClusterModeStatus *)obj; + } else { + return [[SDLClusterModeStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setMyKey:(SDLMyKey *)myKey { + if (myKey != nil) { + [parameters setObject:myKey forKey:NAMES_myKey]; + } else { + [parameters removeObjectForKey:NAMES_myKey]; + } +} + +- (SDLMyKey *)myKey { + NSObject *obj = [parameters objectForKey:NAMES_myKey]; + if (obj == nil || [obj isKindOfClass:SDLMyKey.class]) { + return (SDLMyKey *)obj; + } else { + return [[SDLMyKey alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLGlobalProperty.h b/SmartDeviceLink/SDLGlobalProperty.h new file mode 100644 index 000000000..91302fa6e --- /dev/null +++ b/SmartDeviceLink/SDLGlobalProperty.h @@ -0,0 +1,50 @@ +// SDLGlobalProperty.h +// + + +#import "SDLEnum.h" + +/** + * Properties of a user-initiated VR interaction (i.e. interactions started by the user pressing the PTT button). + * + * @since SDL 1.0 + */ +@interface SDLGlobalProperty : SDLEnum { +} + +/** + * Convert String to SDLGlobalProperty + * @param value The value of the string to get an object for + * @return SDLGlobalProperty + */ ++ (SDLGlobalProperty *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLGlobalProperty + * @return An array that store all possible SDLGlobalProperty + */ ++ (NSArray *)values; + +/** + * @abstract The help prompt to be spoken if the user needs assistance during a user-initiated interaction. + * @return A SDLGlobalProperty with value of *HELPPROMPT* + */ ++ (SDLGlobalProperty *)HELPPROMPT; + +/** + * @abstract The prompt to be spoken if the user-initiated interaction times out waiting for the user's verbal input. + * @return A SDLGlobalProperty with value of *TIMEOUTPROMPT* + */ ++ (SDLGlobalProperty *)TIMEOUTPROMPT; + ++ (SDLGlobalProperty *)VRHELPTITLE; + ++ (SDLGlobalProperty *)VRHELPITEMS; + ++ (SDLGlobalProperty *)MENUNAME; + ++ (SDLGlobalProperty *)MENUICON; + ++ (SDLGlobalProperty *)KEYBOARDPROPERTIES; + +@end \ No newline at end of file diff --git a/SmartDeviceLink/SDLGlobalProperty.m b/SmartDeviceLink/SDLGlobalProperty.m new file mode 100644 index 000000000..59aa87e7b --- /dev/null +++ b/SmartDeviceLink/SDLGlobalProperty.m @@ -0,0 +1,92 @@ +// SDLGlobalProperty.m +// + + +#import "SDLGlobalProperty.h" + +SDLGlobalProperty *SDLGlobalProperty_HELPPROMPT = nil; +SDLGlobalProperty *SDLGlobalProperty_TIMEOUTPROMPT = nil; +SDLGlobalProperty *SDLGlobalProperty_VRHELPTITLE = nil; +SDLGlobalProperty *SDLGlobalProperty_VRHELPITEMS = nil; +SDLGlobalProperty *SDLGlobalProperty_MENUNAME = nil; +SDLGlobalProperty *SDLGlobalProperty_MENUICON = nil; +SDLGlobalProperty *SDLGlobalProperty_KEYBOARDPROPERTIES = nil; + +NSArray *SDLGlobalProperty_values = nil; + +@implementation SDLGlobalProperty + ++ (SDLGlobalProperty *)valueOf:(NSString *)value { + for (SDLGlobalProperty *item in SDLGlobalProperty.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLGlobalProperty_values == nil) { + SDLGlobalProperty_values = @[ + SDLGlobalProperty.HELPPROMPT, + SDLGlobalProperty.TIMEOUTPROMPT, + SDLGlobalProperty.VRHELPTITLE, + SDLGlobalProperty.VRHELPITEMS, + SDLGlobalProperty.MENUNAME, + SDLGlobalProperty.MENUICON, + SDLGlobalProperty.KEYBOARDPROPERTIES, + ]; + } + return SDLGlobalProperty_values; +} + ++ (SDLGlobalProperty *)HELPPROMPT { + if (SDLGlobalProperty_HELPPROMPT == nil) { + SDLGlobalProperty_HELPPROMPT = [[SDLGlobalProperty alloc] initWithValue:@"HELPPROMPT"]; + } + return SDLGlobalProperty_HELPPROMPT; +} + ++ (SDLGlobalProperty *)TIMEOUTPROMPT { + if (SDLGlobalProperty_TIMEOUTPROMPT == nil) { + SDLGlobalProperty_TIMEOUTPROMPT = [[SDLGlobalProperty alloc] initWithValue:@"TIMEOUTPROMPT"]; + } + return SDLGlobalProperty_TIMEOUTPROMPT; +} + ++ (SDLGlobalProperty *)VRHELPTITLE { + if (SDLGlobalProperty_VRHELPTITLE == nil) { + SDLGlobalProperty_VRHELPTITLE = [[SDLGlobalProperty alloc] initWithValue:@"VRHELPTITLE"]; + } + return SDLGlobalProperty_VRHELPTITLE; +} + ++ (SDLGlobalProperty *)VRHELPITEMS { + if (SDLGlobalProperty_VRHELPITEMS == nil) { + SDLGlobalProperty_VRHELPITEMS = [[SDLGlobalProperty alloc] initWithValue:@"VRHELPITEMS"]; + } + return SDLGlobalProperty_VRHELPITEMS; +} + ++ (SDLGlobalProperty *)MENUNAME { + if (SDLGlobalProperty_MENUNAME == nil) { + SDLGlobalProperty_MENUNAME = [[SDLGlobalProperty alloc] initWithValue:@"MENUNAME"]; + } + return SDLGlobalProperty_MENUNAME; +} + ++ (SDLGlobalProperty *)MENUICON { + if (SDLGlobalProperty_MENUICON == nil) { + SDLGlobalProperty_MENUICON = [[SDLGlobalProperty alloc] initWithValue:@"MENUICON"]; + } + return SDLGlobalProperty_MENUICON; +} + ++ (SDLGlobalProperty *)KEYBOARDPROPERTIES { + if (SDLGlobalProperty_KEYBOARDPROPERTIES == nil) { + SDLGlobalProperty_KEYBOARDPROPERTIES = [[SDLGlobalProperty alloc] initWithValue:@"KEYBOARDPROPERTIES"]; + } + return SDLGlobalProperty_KEYBOARDPROPERTIES; +} + +@end diff --git a/SmartDeviceLink/SDLGlobals.h b/SmartDeviceLink/SDLGlobals.h new file mode 100644 index 000000000..2b6fe2c47 --- /dev/null +++ b/SmartDeviceLink/SDLGlobals.h @@ -0,0 +1,21 @@ +// +// SDLGlobals.h +// SmartDeviceLink-iOS +// +// Created by Joel Fischer on 8/5/15. +// Copyright (c) 2015 smartdevicelink. All rights reserved. +// + +#import + +#define SDL_SYSTEM_VERSION_LESS_THAN(version) ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] == NSOrderedAscending) + +@interface SDLGlobals : NSObject + +@property (assign, nonatomic, readonly) NSUInteger protocolVersion; +@property (assign, nonatomic, readonly) NSUInteger maxMTUSize; +@property (assign, nonatomic) NSUInteger maxHeadUnitVersion; + ++ (instancetype)globals; + +@end diff --git a/SmartDeviceLink/SDLGlobals.m b/SmartDeviceLink/SDLGlobals.m new file mode 100644 index 000000000..7f122c01e --- /dev/null +++ b/SmartDeviceLink/SDLGlobals.m @@ -0,0 +1,77 @@ +// +// SDLGlobals.m +// SmartDeviceLink-iOS +// +// Created by Joel Fischer on 8/5/15. +// Copyright (c) 2015 smartdevicelink. All rights reserved. +// + +#import "SDLGlobals.h" + +static const NSUInteger maxProxyVersion = 4; + + +@interface SDLGlobals () + +@property (assign, nonatomic) NSUInteger protocolVersion; + +@end + + +@implementation SDLGlobals + ++ (instancetype)globals { + static SDLGlobals *sharedGlobals = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + sharedGlobals = [[SDLGlobals alloc] init]; + }); + + return sharedGlobals; +} + +- (instancetype)init { + self = [super init]; + if (!self) { + return nil; + } + + _protocolVersion = 1; + _maxHeadUnitVersion = 0; + + return self; +} + + +#pragma mark - Custom Getters / Setters + +- (void)setMaxHeadUnitVersion:(NSUInteger)maxHeadUnitVersion { + self.protocolVersion = MIN(maxHeadUnitVersion, maxProxyVersion); + + _maxHeadUnitVersion = maxHeadUnitVersion; +} + +- (NSUInteger)maxMTUSize { + switch (self.protocolVersion) { + case 1: // fallthrough + case 2: { + // HAX: This was set to 1024 at some point, for an unknown reason. We can't change it because of backward compatibility & validation concerns. The actual MTU for v1/2 is 1500 bytes. + return 1024; + } break; + case 3: // fallthrough + case 4: { + // If the head unit isn't running v3/4, but that's the connection scheme we're using, then we have to know that they could be running an MTU that's not 128k, so we default back to the v1/2 MTU for safety. + if (self.maxHeadUnitVersion > maxProxyVersion) { + return 1024; + } else { + return 131084; + } + } break; + default: { + NSAssert(NO, @"Unknown version number: %@", @(self.protocolVersion)); + return 0; + } + } +} + +@end diff --git a/SmartDeviceLink/SDLHMICapabilities.h b/SmartDeviceLink/SDLHMICapabilities.h new file mode 100644 index 000000000..6a84cec2c --- /dev/null +++ b/SmartDeviceLink/SDLHMICapabilities.h @@ -0,0 +1,26 @@ +// +// SDLHMICapabilities.h +// SmartDeviceLink-iOS + +#import "SDLRPCStruct.h" + +@interface SDLHMICapabilities : SDLRPCStruct + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + Availability of build in Nav. True: Available, False: Not Available + + Boolean value. Optional. + */ +@property (copy, nonatomic) NSNumber *navigation; + +/** + Availability of build in phone. True: Available, False: Not Available + + Boolean value. Optional. + */ +@property (copy, nonatomic) NSNumber *phoneCall; + +@end diff --git a/SmartDeviceLink/SDLHMICapabilities.m b/SmartDeviceLink/SDLHMICapabilities.m new file mode 100644 index 000000000..24b35be25 --- /dev/null +++ b/SmartDeviceLink/SDLHMICapabilities.m @@ -0,0 +1,54 @@ +// +// SDLHMICapabilities.m +// SmartDeviceLink-iOS + +#import "SDLHMICapabilities.h" + +#import "SDLNames.h" + + +@implementation SDLHMICapabilities + +- (instancetype)init { + self = [super init]; + if (!self) { + return nil; + } + + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + self = [super initWithDictionary:dict]; + if (!self) { + return nil; + } + + return self; +} + +- (void)setNavigation:(NSNumber *)navigation { + if (navigation != nil) { + store[NAMES_navigation] = navigation; + } else { + [store removeObjectForKey:NAMES_navigation]; + } +} + +- (NSNumber *)navigation { + return store[NAMES_navigation]; +} + +- (void)setPhoneCall:(NSNumber *)phoneCall { + if (phoneCall != nil) { + store[NAMES_phoneCall] = phoneCall; + } else { + [store removeObjectForKey:NAMES_phoneCall]; + } +} + +- (NSNumber *)phoneCall { + return store[NAMES_phoneCall]; +} + +@end diff --git a/SmartDeviceLink/SDLHMILevel.h b/SmartDeviceLink/SDLHMILevel.h new file mode 100644 index 000000000..426217465 --- /dev/null +++ b/SmartDeviceLink/SDLHMILevel.h @@ -0,0 +1,76 @@ +// SDLHMILevel.h +// + + +#import "SDLEnum.h" + +/** + * Specifies current level of the HMI. An HMI level indicates the degree of user interaction possible through the HMI (e.g. TTS only, display only, VR, etc.). The HMI level varies for an application based on the type of display (i.e. Nav or non-Nav) and the user directing "focus" to other applications (e.g. phone, other mobile applications, etc.) + * + * @since SDL 1.0 + */ +@interface SDLHMILevel : SDLEnum { +} + +/** + * Return HMILevel status (FULL, LIMITED, BACKGROUND, NONE) + * + * @param value String value to retrieve the object for + * + * @return Current HMI level + */ ++ (SDLHMILevel *)valueOf:(NSString *)value; + +/** + * Store all possible SDLHMILevel values + * + * @return an array with all possible HMILevel values inside + */ ++ (NSArray *)values; + +/** + * The application has full use of the SDL HMI. The app may output via TTS, display, or streaming audio and may gather input via VR, Menu, and button presses + * + * @return the HMILevel with value of *FULL* + */ ++ (SDLHMILevel *)FULL; + +/** + * This HMI Level is only defined for a media application using an HMI with an 8 inch touchscreen (Nav) system. The application's Show text is displayed and it receives button presses from media-oriented buttons (SEEKRIGHT, SEEKLEFT, TUNEUP, TUNEDOWN, PRESET_0-9) + * + * @return the HMILevel with value of *LIMITED* + */ ++ (SDLHMILevel *)LIMITED; + +/** + * App cannot interact with user via TTS, VR, Display or Button Presses. App can perform the following operations: + * + * @discussion
      + *
    • Operation : AddCommand
    • + *
    • Operation : DeleteCommand
    • + *
    • Operation : AddSubMenu
    • + *
    • Operation : DeleteSubMenu
    • + *
    • Operation : CreateInteractionChoiceSet
    • + *
    • Operation : DeleteInteractionChoiceSet
    • + *
    • Operation : SubscribeButton
    • + *
    • Operation : UnsubscribeButton
    • + *
    • Operation : Show
    • + *
    • Operation : UnregisterAppInterface
    • + *
    • Operation : ResetGlobalProperties
    • + *
    • Operation : SetGlobalProperties
    • + *
    + * + * @return the HMILevel with value of *BACKGROUND* + */ ++ (SDLHMILevel *)BACKGROUND; + +/** + * Application has been discovered by SDL, but it cannot send any requests or receive any notifications + * + * @discussion An HMILevel of NONE can also mean that the user has exited the application by saying "exit appname" or selecting "exit" from the application's menu. When this happens, the application still has an active interface registration with SDL and all SDL resources the application has created (e.g. Choice Sets, subscriptions, etc.) still exist. But while the HMILevel is NONE, the application cannot send any messages to SYNC, except UnregisterAppInterface + * + * @return the HMILevel with value of *NONE* + */ ++ (SDLHMILevel *)NONE; + +@end diff --git a/SmartDeviceLink/SDLHMILevel.m b/SmartDeviceLink/SDLHMILevel.m new file mode 100644 index 000000000..88b0be5b6 --- /dev/null +++ b/SmartDeviceLink/SDLHMILevel.m @@ -0,0 +1,65 @@ +// SDLHMILevel.m +// + + +#import "SDLHMILevel.h" + +SDLHMILevel *SDLHMILevel_FULL = nil; +SDLHMILevel *SDLHMILevel_LIMITED = nil; +SDLHMILevel *SDLHMILevel_BACKGROUND = nil; +SDLHMILevel *SDLHMILevel_NONE = nil; + +NSArray *SDLHMILevel_values = nil; + +@implementation SDLHMILevel + ++ (SDLHMILevel *)valueOf:(NSString *)value { + for (SDLHMILevel *item in SDLHMILevel.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLHMILevel_values == nil) { + SDLHMILevel_values = @[ + [SDLHMILevel FULL], + [SDLHMILevel LIMITED], + [SDLHMILevel BACKGROUND], + [SDLHMILevel NONE] + ]; + } + return SDLHMILevel_values; +} + ++ (SDLHMILevel *)FULL { + if (SDLHMILevel_FULL == nil) { + SDLHMILevel_FULL = [[SDLHMILevel alloc] initWithValue:@"FULL"]; + } + return SDLHMILevel_FULL; +} + ++ (SDLHMILevel *)LIMITED { + if (SDLHMILevel_LIMITED == nil) { + SDLHMILevel_LIMITED = [[SDLHMILevel alloc] initWithValue:@"LIMITED"]; + } + return SDLHMILevel_LIMITED; +} + ++ (SDLHMILevel *)BACKGROUND { + if (SDLHMILevel_BACKGROUND == nil) { + SDLHMILevel_BACKGROUND = [[SDLHMILevel alloc] initWithValue:@"BACKGROUND"]; + } + return SDLHMILevel_BACKGROUND; +} + ++ (SDLHMILevel *)NONE { + if (SDLHMILevel_NONE == nil) { + SDLHMILevel_NONE = [[SDLHMILevel alloc] initWithValue:@"NONE"]; + } + return SDLHMILevel_NONE; +} + +@end diff --git a/SmartDeviceLink/SDLHMIPermissions.h b/SmartDeviceLink/SDLHMIPermissions.h new file mode 100644 index 000000000..49a7025a7 --- /dev/null +++ b/SmartDeviceLink/SDLHMIPermissions.h @@ -0,0 +1,44 @@ +// SDLHMIPermissions.h +// + + +#import "SDLRPCMessage.h" + +/** + * Defining sets of HMI levels, which are permitted or prohibited for a given RPC. + * + * @since SDL 2.0 + */ +@interface SDLHMIPermissions : SDLRPCStruct { +} + +/** + * Constructs a newly allocated SDLHMIPermissions object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLHMIPermissions object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract a set of all HMI levels that are permitted for this given RPC + * + * @see SDLHMILevel + * + * Required, Array of SDLHMILevel, Array size 0 - 100 + */ +@property (strong) NSMutableArray *allowed; + +/** + * @abstract a set of all HMI levels that are prohibited for this given RPC + * + * @see SDLHMILevel + * + * Required, Array of SDLHMILevel, Array size 0 - 100 + */ +@property (strong) NSMutableArray *userDisallowed; + +@end diff --git a/SmartDeviceLink/SDLHMIPermissions.m b/SmartDeviceLink/SDLHMIPermissions.m new file mode 100644 index 000000000..29555bf59 --- /dev/null +++ b/SmartDeviceLink/SDLHMIPermissions.m @@ -0,0 +1,66 @@ +// SDLHMIPermissions.m +// + + +#import "SDLHMIPermissions.h" + +#import "SDLHMILevel.h" +#import "SDLNames.h" + +@implementation SDLHMIPermissions + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setAllowed:(NSMutableArray *)allowed { + if (allowed != nil) { + [store setObject:allowed forKey:NAMES_allowed]; + } else { + [store removeObjectForKey:NAMES_allowed]; + } +} + +- (NSMutableArray *)allowed { + NSMutableArray *array = [store objectForKey:NAMES_allowed]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLHMILevel.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSString *enumString in array) { + [newList addObject:[SDLHMILevel valueOf:enumString]]; + } + return newList; + } +} + +- (void)setUserDisallowed:(NSMutableArray *)userDisallowed { + if (userDisallowed != nil) { + [store setObject:userDisallowed forKey:NAMES_userDisallowed]; + } else { + [store removeObjectForKey:NAMES_userDisallowed]; + } +} + +- (NSMutableArray *)userDisallowed { + NSMutableArray *array = [store objectForKey:NAMES_userDisallowed]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLHMILevel.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSString *enumString in array) { + [newList addObject:[SDLHMILevel valueOf:enumString]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLHMIZoneCapabilities.h b/SmartDeviceLink/SDLHMIZoneCapabilities.h new file mode 100644 index 000000000..d63655bd8 --- /dev/null +++ b/SmartDeviceLink/SDLHMIZoneCapabilities.h @@ -0,0 +1,39 @@ +// SDLHmiZoneCapabilities.h +// + + +#import "SDLEnum.h" + +/** + * Specifies HMI Zones in the vehicle. + * + * @since SDL 1.0 + */ +@interface SDLHMIZoneCapabilities : SDLEnum { +} + +/** + * @abstract SDLHMIZoneCapabilities + * @param value The value of the string to get an object for + * @return SDLHMIZoneCapabilities + */ ++ (SDLHMIZoneCapabilities *)valueOf:(NSString *)value; + +/** + * @abstract store all possible SDLHMIZoneCapabilities values + * @return an array with all possible SDLHMIZoneCapabilities values inside + */ ++ (NSArray *)values; + +/** + * @abstract Indicates HMI available for front seat passengers. + * @return a SDLHMIZoneCapabilities with value of *FRONT* + */ ++ (SDLHMIZoneCapabilities *)FRONT; +/** + * @abstract Indicates HMI available for rear seat passengers. + * @return a SDLHMIZoneCapabilities with value of *BACK* + */ ++ (SDLHMIZoneCapabilities *)BACK; + +@end diff --git a/SmartDeviceLink/SDLHMIZoneCapabilities.m b/SmartDeviceLink/SDLHMIZoneCapabilities.m new file mode 100644 index 000000000..56eacf671 --- /dev/null +++ b/SmartDeviceLink/SDLHMIZoneCapabilities.m @@ -0,0 +1,47 @@ +// SDLHMIZoneCapabilities.m +// + + +#import "SDLHMIZoneCapabilities.h" + +SDLHMIZoneCapabilities *SDLHMIZoneCapabilities_FRONT = nil; +SDLHMIZoneCapabilities *SDLHMIZoneCapabilities_BACK = nil; + +NSArray *SDLHMIZoneCapabilities_values = nil; + +@implementation SDLHMIZoneCapabilities + ++ (SDLHMIZoneCapabilities *)valueOf:(NSString *)value { + for (SDLHMIZoneCapabilities *item in SDLHMIZoneCapabilities.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLHMIZoneCapabilities_values == nil) { + SDLHMIZoneCapabilities_values = @[ + SDLHMIZoneCapabilities.FRONT, + SDLHMIZoneCapabilities.BACK, + ]; + } + return SDLHMIZoneCapabilities_values; +} + ++ (SDLHMIZoneCapabilities *)FRONT { + if (SDLHMIZoneCapabilities_FRONT == nil) { + SDLHMIZoneCapabilities_FRONT = [[SDLHMIZoneCapabilities alloc] initWithValue:@"FRONT"]; + } + return SDLHMIZoneCapabilities_FRONT; +} + ++ (SDLHMIZoneCapabilities *)BACK { + if (SDLHMIZoneCapabilities_BACK == nil) { + SDLHMIZoneCapabilities_BACK = [[SDLHMIZoneCapabilities alloc] initWithValue:@"BACK"]; + } + return SDLHMIZoneCapabilities_BACK; +} + +@end diff --git a/SmartDeviceLink/SDLHeadLampStatus.h b/SmartDeviceLink/SDLHeadLampStatus.h new file mode 100644 index 000000000..cc1586122 --- /dev/null +++ b/SmartDeviceLink/SDLHeadLampStatus.h @@ -0,0 +1,33 @@ +// SDLHeadLampStatus.h +// + +#import "SDLRPCMessage.h" + +@class SDLAmbientLightStatus; + + +/** + * Status of the head lamps + */ +@interface SDLHeadLampStatus : SDLRPCStruct { +} +/** + * @abstract Constructs a new SDLHeadLampStatus object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLHeadLampStatus object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; +/** + * @abstract A boolean value. Status of the low beam lamps. + */ +@property (strong) NSNumber *lowBeamsOn; +/** + * @abstract A boolean value. Status of the high beam lamps. + */ +@property (strong) NSNumber *highBeamsOn; +@property (strong) SDLAmbientLightStatus *ambientLightSensorStatus; +@end \ No newline at end of file diff --git a/SmartDeviceLink/SDLHeadLampStatus.m b/SmartDeviceLink/SDLHeadLampStatus.m new file mode 100644 index 000000000..44ed87b44 --- /dev/null +++ b/SmartDeviceLink/SDLHeadLampStatus.m @@ -0,0 +1,65 @@ +// SDLHeadLampStatus.m +// + +#import "SDLHeadLampStatus.h" + +#import "SDLAmbientLightStatus.h" +#import "SDLNames.h" + + +@implementation SDLHeadLampStatus + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setLowBeamsOn:(NSNumber *)lowBeamsOn { + if (lowBeamsOn != nil) { + [store setObject:lowBeamsOn forKey:NAMES_lowBeamsOn]; + } else { + [store removeObjectForKey:NAMES_lowBeamsOn]; + } +} + +- (NSNumber *)lowBeamsOn { + return [store objectForKey:NAMES_lowBeamsOn]; +} + +- (void)setHighBeamsOn:(NSNumber *)highBeamsOn { + if (highBeamsOn != nil) { + [store setObject:highBeamsOn forKey:NAMES_highBeamsOn]; + } else { + [store removeObjectForKey:NAMES_highBeamsOn]; + } +} + +- (NSNumber *)highBeamsOn { + return [store objectForKey:NAMES_highBeamsOn]; +} + +- (void)setAmbientLightSensorStatus:(SDLAmbientLightStatus *)ambientLightSensorStatus { + if (ambientLightSensorStatus != nil) { + [store setObject:ambientLightSensorStatus forKey:NAMES_ambientLightSensorStatus]; + } else { + [store removeObjectForKey:NAMES_ambientLightSensorStatus]; + } +} + +- (SDLAmbientLightStatus *)ambientLightSensorStatus { + NSObject *obj = [store objectForKey:NAMES_ambientLightSensorStatus]; + if (obj == nil || [obj isKindOfClass:SDLAmbientLightStatus.class]) { + return (SDLAmbientLightStatus *)obj; + } else { + return [SDLAmbientLightStatus valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLHexUtility.h b/SmartDeviceLink/SDLHexUtility.h new file mode 100644 index 000000000..7b639a7af --- /dev/null +++ b/SmartDeviceLink/SDLHexUtility.h @@ -0,0 +1,13 @@ +// +// SDLHexUtility.h +// SmartDeviceLink +// + +#import + +@interface SDLHexUtility : NSObject + ++ (NSString *)getHexString:(UInt8 *)bytes length:(NSUInteger)length; ++ (NSString *)getHexString:(NSData *)data; + +@end diff --git a/SmartDeviceLink/SDLHexUtility.m b/SmartDeviceLink/SDLHexUtility.m new file mode 100644 index 000000000..0787d804a --- /dev/null +++ b/SmartDeviceLink/SDLHexUtility.m @@ -0,0 +1,60 @@ +// +// SDLHexUtility.m +// SmartDeviceLink +// + +#import "SDLHexUtility.h" + +@implementation SDLHexUtility + +// Using this function as a fail-safe, because we know this is successful. ++ (NSString *)getHexString:(UInt8 *)bytes length:(NSUInteger)length { + NSMutableString *ret = [NSMutableString stringWithCapacity:(length * 2)]; + for (int i = 0; i < length; i++) { + [ret appendFormat:@"%02X", ((Byte *)bytes)[i]]; + } + + return ret; +} + +static inline char itoh(int i) { + if (i > 9) { + return 'A' + (i - 10); + } + + return '0' + i; +} + +NSString *getHexString(NSData *data) { + NSUInteger length; + unsigned char *buffer, *bytes; + + length = data.length; + bytes = (unsigned char *)data.bytes; + buffer = malloc(length * 2); + + for (NSUInteger i = 0; i < length; i++) { + buffer[i * 2] = itoh((bytes[i] >> 4) & 0xF); + buffer[(i * 2) + 1] = itoh(bytes[i] & 0xF); + } + + NSString *hexString = [[NSString alloc] initWithBytesNoCopy:buffer + length:length * 2 + encoding:NSASCIIStringEncoding + freeWhenDone:YES]; + // HAX: https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/#//apple_ref/occ/instm/NSString/initWithBytesNoCopy:length:encoding:freeWhenDone: + // If there is an error allocating the string, we must free the buffer and fall back to the less performant method. + if (!hexString) { + free(buffer); + hexString = [SDLHexUtility getHexString:bytes length:length]; + } + + return hexString; +} + ++ (NSString *)getHexString:(NSData *)data { + return getHexString(data); +} + + +@end diff --git a/SmartDeviceLink/SDLIAPSession.h b/SmartDeviceLink/SDLIAPSession.h new file mode 100644 index 000000000..d21343894 --- /dev/null +++ b/SmartDeviceLink/SDLIAPSession.h @@ -0,0 +1,27 @@ +// +// SDLIAPSession.h +// + +#import "SDLIAPSessionDelegate.h" +#import +#import + +@class SDLStreamDelegate; + +typedef void (^SessionCompletionHandler)(BOOL success); + +@interface SDLIAPSession : NSObject + +@property (strong, atomic) EAAccessory *accessory; +@property (strong, atomic) NSString *protocol; +@property (strong, atomic) EASession *easession; +@property (weak) id delegate; +@property (strong, atomic) SDLStreamDelegate *streamDelegate; + +- (instancetype)initWithAccessory:(EAAccessory *)accessory + forProtocol:(NSString *)protocol; + +- (BOOL)start; +- (void)stop; + +@end diff --git a/SmartDeviceLink/SDLIAPSession.m b/SmartDeviceLink/SDLIAPSession.m new file mode 100644 index 000000000..5020b2081 --- /dev/null +++ b/SmartDeviceLink/SDLIAPSession.m @@ -0,0 +1,156 @@ +// +// SDLIAPSession.m +// + +#import "SDLIAPSession.h" +#import "SDLDebugTool.h" +#import "SDLStreamDelegate.h" +#import "SDLTimer.h" + + +@interface SDLIAPSession () + +@property (assign) BOOL isInputStreamOpen; +@property (assign) BOOL isOutputStreamOpen; + +@end + + +@implementation SDLIAPSession + +#pragma mark - Lifecycle + +- (instancetype)initWithAccessory:(EAAccessory *)accessory forProtocol:(NSString *)protocol { + NSString *logMessage = [NSString stringWithFormat:@"SDLIAPSession initWithAccessory:%@ forProtocol:%@", accessory, protocol]; + [SDLDebugTool logInfo:logMessage]; + + self = [super init]; + if (self) { + _delegate = nil; + _accessory = accessory; + _protocol = protocol; + _streamDelegate = nil; + _easession = nil; + _isInputStreamOpen = NO; + _isOutputStreamOpen = NO; + } + return self; +} + + +#pragma mark - Public Stream Lifecycle + +- (BOOL)start { + __weak typeof(self) weakSelf = self; + + NSString *logMessage = [NSString stringWithFormat:@"Opening EASession withAccessory:%@ forProtocol:%@", _accessory.name, _protocol]; + [SDLDebugTool logInfo:logMessage]; + + if ((self.easession = [[EASession alloc] initWithAccessory:_accessory forProtocol:_protocol])) { + __strong typeof(self) strongSelf = weakSelf; + + [SDLDebugTool logInfo:@"Created Session Object"]; + + strongSelf.streamDelegate.streamErrorHandler = [self streamErroredHandler]; + strongSelf.streamDelegate.streamOpenHandler = [self streamOpenedHandler]; + + [strongSelf startStream:weakSelf.easession.outputStream]; + [strongSelf startStream:weakSelf.easession.inputStream]; + + return YES; + + } else { + [SDLDebugTool logInfo:@"Error: Could Not Create Session Object"]; + return NO; + } +} + +- (void)stop { + [self stopStream:self.easession.outputStream]; + [self stopStream:self.easession.inputStream]; + self.easession = nil; +} + + +#pragma mark - Private Stream Lifecycle Helpers + +- (void)startStream:(NSStream *)stream { + stream.delegate = self.streamDelegate; + [stream scheduleInRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode]; + [stream open]; +} + +- (void)stopStream:(NSStream *)stream { + // Verify stream is in a state that can be closed. + // (N.B. Closing a stream that has not been opened has very, very bad effects.) + + // When you disconect the cable you get a stream end event and come here but stream is already in closed state. + // Still need to remove from run loop. + + NSUInteger status1 = stream.streamStatus; + if (status1 != NSStreamStatusNotOpen && + status1 != NSStreamStatusClosed) { + [stream close]; + } + + [stream removeFromRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode]; + [stream setDelegate:nil]; + + NSUInteger status2 = stream.streamStatus; + if (status2 == NSStreamStatusClosed) { + if (stream == [self.easession inputStream]) { + [SDLDebugTool logInfo:@"Input Stream Closed"]; + } else if (stream == [self.easession outputStream]) { + [SDLDebugTool logInfo:@"Output Stream Closed"]; + } + } +} + + +#pragma mark - Stream Handlers + +- (SDLStreamOpenHandler)streamOpenedHandler { + __weak typeof(self) weakSelf = self; + + return ^(NSStream *stream) { + __strong typeof(weakSelf) strongSelf = weakSelf; + + if (stream == [strongSelf.easession outputStream]) { + [SDLDebugTool logInfo:@"Output Stream Opened"]; + strongSelf.isOutputStreamOpen = YES; + } else if (stream == [strongSelf.easession inputStream]) { + [SDLDebugTool logInfo:@"Input Stream Opened"]; + strongSelf.isInputStreamOpen = YES; + } + + // When both streams are open, session initialization is complete. Let the delegate know. + if (strongSelf.isInputStreamOpen && strongSelf.isOutputStreamOpen) { + [strongSelf.delegate onSessionInitializationCompleteForSession:weakSelf]; + } + }; +} + +- (SDLStreamErrorHandler)streamErroredHandler { + __weak typeof(self) weakSelf = self; + + return ^(NSStream *stream) { + __strong typeof(weakSelf) strongSelf = weakSelf; + + [SDLDebugTool logInfo:@"Stream Error"]; + [strongSelf.delegate onSessionStreamsEnded:strongSelf]; + }; +} + + +#pragma mark - Lifecycle Destruction + +- (void)dealloc { + self.delegate = nil; + self.accessory = nil; + self.protocol = nil; + self.streamDelegate = nil; + self.easession = nil; + [SDLDebugTool logInfo:@"SDLIAPSession Dealloc"]; +} + +@end diff --git a/SmartDeviceLink/SDLIAPSessionDelegate.h b/SmartDeviceLink/SDLIAPSessionDelegate.h new file mode 100644 index 000000000..6ec7e189b --- /dev/null +++ b/SmartDeviceLink/SDLIAPSessionDelegate.h @@ -0,0 +1,13 @@ +// +// SDLIAPSessionDelegate.h +// + +#import +@class SDLIAPSession; + +@protocol SDLIAPSessionDelegate + +- (void)onSessionInitializationCompleteForSession:(SDLIAPSession *)session; +- (void)onSessionStreamsEnded:(SDLIAPSession *)session; + +@end diff --git a/SmartDeviceLink/SDLIAPTransport.h b/SmartDeviceLink/SDLIAPTransport.h new file mode 100644 index 000000000..ff082b9b3 --- /dev/null +++ b/SmartDeviceLink/SDLIAPTransport.h @@ -0,0 +1,15 @@ +// SDLIAPTransport.h +// + +#import + +#import "SDLAbstractTransport.h" +#import "SDLIAPSessionDelegate.h" + + +@interface SDLIAPTransport : SDLAbstractTransport + +@property (strong, atomic) SDLIAPSession *controlSession; +@property (strong, atomic) SDLIAPSession *session; + +@end diff --git a/SmartDeviceLink/SDLIAPTransport.m b/SmartDeviceLink/SDLIAPTransport.m new file mode 100644 index 000000000..5cf4ceb21 --- /dev/null +++ b/SmartDeviceLink/SDLIAPTransport.m @@ -0,0 +1,477 @@ +// SDLIAPTransport.h +// + + +#import +#import + +#import "EAAccessoryManager+SDLProtocols.h" +#import "SDLDebugTool.h" +#import "SDLGlobals.h" +#import "SDLIAPSession.h" +#import "SDLIAPTransport.h" +#import "SDLIAPTransport.h" +#import "SDLSiphonServer.h" +#import "SDLStreamDelegate.h" +#import "SDLTimer.h" +#import + + +NSString *const legacyProtocolString = @"com.ford.sync.prot0"; +NSString *const controlProtocolString = @"com.smartdevicelink.prot0"; +NSString *const indexedProtocolStringPrefix = @"com.smartdevicelink.prot"; + +int const createSessionRetries = 1; +int const protocolIndexTimeoutSeconds = 20; +int const streamOpenTimeoutSeconds = 2; + + +@interface SDLIAPTransport () { + dispatch_queue_t _transmit_queue; + BOOL _alreadyDestructed; +} + +@property (assign) int retryCounter; +@property (assign) BOOL sessionSetupInProgress; +@property (strong) SDLTimer *protocolIndexTimer; + +@end + + +@implementation SDLIAPTransport + +- (instancetype)init { + if (self = [super init]) { + _alreadyDestructed = NO; + _session = nil; + _controlSession = nil; + _retryCounter = 0; + _sessionSetupInProgress = NO; + _protocolIndexTimer = nil; + _transmit_queue = dispatch_queue_create("com.sdl.transport.iap.transmit", DISPATCH_QUEUE_SERIAL); + + [self sdl_startEventListening]; + [SDLSiphonServer init]; + } + + [SDLDebugTool logInfo:@"SDLIAPTransport Init"]; + + return self; +} + + +#pragma mark - Notification Subscriptions + +- (void)sdl_startEventListening { + [SDLDebugTool logInfo:@"SDLIAPTransport Listening For Events"]; + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(sdl_accessoryConnected:) + name:EAAccessoryDidConnectNotification + object:nil]; + + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(sdl_accessoryDisconnected:) + name:EAAccessoryDidDisconnectNotification + object:nil]; + + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(sdl_applicationWillEnterForeground:) + name:UIApplicationWillEnterForegroundNotification + object:nil]; +} + +- (void)sdl_stopEventListening { + [SDLDebugTool logInfo:@"SDLIAPTransport Stopped Listening For Events"]; + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +#pragma mark - EAAccessory Notifications + +- (void)sdl_accessoryConnected:(NSNotification *)notification { + NSMutableString *logMessage = [NSMutableString stringWithFormat:@"Accessory Connected, Opening in %0.03fs", self.retryDelay]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + self.retryCounter = 0; + [self performSelector:@selector(connect) withObject:nil afterDelay:self.retryDelay]; +} + +- (void)sdl_accessoryDisconnected:(NSNotification *)notification { + [SDLDebugTool logInfo:@"Accessory Disconnected Event" withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + // Only check for the data session, the control session is handled separately + EAAccessory *accessory = [notification.userInfo objectForKey:EAAccessoryKey]; + if (accessory.connectionID == self.session.accessory.connectionID) { + self.sessionSetupInProgress = NO; + [self disconnect]; + [self.delegate onTransportDisconnected]; + } +} + +- (void)sdl_applicationWillEnterForeground:(NSNotification *)notification { + [SDLDebugTool logInfo:@"App Foregrounded Event" withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + self.retryCounter = 0; + [self connect]; +} + + +#pragma mark - Stream Lifecycle + +- (void)connect { + if (!self.session && !self.sessionSetupInProgress) { + self.sessionSetupInProgress = YES; + [self sdl_establishSession]; + } else if (self.session) { + [SDLDebugTool logInfo:@"Session already established."]; + } else { + [SDLDebugTool logInfo:@"Session setup already in progress."]; + } +} + +- (void)disconnect { + [SDLDebugTool logInfo:@"IAP Disconnecting" withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + // Only disconnect the data session, the control session does not stay open and is handled separately + if (self.session != nil) { + [self.session stop]; + self.session = nil; + } +} + + +#pragma mark - Creating Session Streams + +- (void)sdl_establishSession { + [SDLDebugTool logInfo:@"Attempting To Connect"]; + if (self.retryCounter < createSessionRetries) { + // We should be attempting to connect + self.retryCounter++; + EAAccessory *accessory = nil; + + // Determine if we can start a multi-app session or a legacy (single-app) session + if ((accessory = [EAAccessoryManager findAccessoryForProtocol:controlProtocolString])) { + [self sdl_createIAPControlSessionWithAccessory:accessory]; + } else if ((accessory = [EAAccessoryManager findAccessoryForProtocol:legacyProtocolString])) { + [self sdl_createIAPDataSessionWithAccessory:accessory forProtocol:legacyProtocolString]; + } else { + // No compatible accessory + [SDLDebugTool logInfo:@"No accessory supporting a required sync protocol was found."]; + self.sessionSetupInProgress = NO; + } + } else { + // We are beyond the number of retries allowed + [SDLDebugTool logInfo:@"Create session retries exhausted."]; + self.sessionSetupInProgress = NO; + } +} + +- (void)sdl_createIAPControlSessionWithAccessory:(EAAccessory *)accessory { + [SDLDebugTool logInfo:@"Starting MultiApp Session"]; + self.controlSession = [[SDLIAPSession alloc] initWithAccessory:accessory forProtocol:controlProtocolString]; + + if (self.controlSession) { + self.controlSession.delegate = self; + + if (self.protocolIndexTimer == nil) { + self.protocolIndexTimer = [[SDLTimer alloc] initWithDuration:protocolIndexTimeoutSeconds repeat:NO]; + } else { + [self.protocolIndexTimer cancel]; + } + + __weak typeof(self) weakSelf = self; + void (^elapsedBlock)(void) = ^{ + __strong typeof(weakSelf) strongSelf = weakSelf; + + [SDLDebugTool logInfo:@"Protocol Index Timeout"]; + [strongSelf.controlSession stop]; + strongSelf.controlSession.streamDelegate = nil; + strongSelf.controlSession = nil; + [strongSelf sdl_retryEstablishSession]; + }; + self.protocolIndexTimer.elapsedBlock = elapsedBlock; + + SDLStreamDelegate *controlStreamDelegate = [SDLStreamDelegate new]; + self.controlSession.streamDelegate = controlStreamDelegate; + controlStreamDelegate.streamHasBytesHandler = [self sdl_controlStreamHasBytesHandlerForAccessory:accessory]; + controlStreamDelegate.streamEndHandler = [self sdl_controlStreamEndedHandler]; + controlStreamDelegate.streamErrorHandler = [self sdl_controlStreamErroredHandler]; + + if (![self.controlSession start]) { + [SDLDebugTool logInfo:@"Control Session Failed"]; + self.controlSession.streamDelegate = nil; + self.controlSession = nil; + [self sdl_retryEstablishSession]; + } + } else { + [SDLDebugTool logInfo:@"Failed MultiApp Control SDLIAPSession Initialization"]; + [self sdl_retryEstablishSession]; + } +} + +- (void)sdl_createIAPDataSessionWithAccessory:(EAAccessory *)accessory forProtocol:(NSString *)protocol { + [SDLDebugTool logInfo:@"Starting Data Session"]; + self.session = [[SDLIAPSession alloc] initWithAccessory:accessory forProtocol:protocol]; + if (self.session) { + self.session.delegate = self; + + SDLStreamDelegate *ioStreamDelegate = [[SDLStreamDelegate alloc] init]; + self.session.streamDelegate = ioStreamDelegate; + ioStreamDelegate.streamHasBytesHandler = [self sdl_dataStreamHasBytesHandler]; + ioStreamDelegate.streamEndHandler = [self sdl_dataStreamEndedHandler]; + ioStreamDelegate.streamErrorHandler = [self sdl_dataStreamErroredHandler]; + + if (![self.session start]) { + [SDLDebugTool logInfo:@"Data Session Failed"]; + self.session.streamDelegate = nil; + self.session = nil; + [self sdl_retryEstablishSession]; + } + } else { + [SDLDebugTool logInfo:@"Failed MultiApp Data SDLIAPSession Initialization"]; + [self sdl_retryEstablishSession]; + } +} + +- (void)sdl_retryEstablishSession { + // Current strategy disallows automatic retries. + self.sessionSetupInProgress = NO; +} + +// This gets called after both I/O streams of the session have opened. +- (void)onSessionInitializationCompleteForSession:(SDLIAPSession *)session { + // Control Session Opened + if ([controlProtocolString isEqualToString:session.protocol]) { + [SDLDebugTool logInfo:@"Control Session Established"]; + [self.protocolIndexTimer start]; + } + + // Data Session Opened + if (![controlProtocolString isEqualToString:session.protocol]) { + self.sessionSetupInProgress = NO; + [SDLDebugTool logInfo:@"Data Session Established"]; + [self.delegate onTransportConnected]; + } +} + + +#pragma mark - Session End + +// Retry establishSession on Stream End events only if it was the control session and we haven't already connected on non-control protocol +- (void)onSessionStreamsEnded:(SDLIAPSession *)session { + if (!self.session && [controlProtocolString isEqualToString:session.protocol]) { + [SDLDebugTool logInfo:@"onSessionStreamsEnded"]; + [session stop]; + [self sdl_retryEstablishSession]; + } +} + + +#pragma mark - Data Transmission + +- (void)sendData:(NSData *)data { + dispatch_async(_transmit_queue, ^{ + NSOutputStream *ostream = self.session.easession.outputStream; + NSMutableData *remainder = data.mutableCopy; + + while (remainder.length != 0) { + if (ostream.streamStatus == NSStreamStatusOpen && ostream.hasSpaceAvailable) { + NSInteger bytesWritten = [ostream write:remainder.bytes maxLength:remainder.length]; + + if (bytesWritten == -1) { + [SDLDebugTool logInfo:[NSString stringWithFormat:@"Error: %@", [ostream streamError]] withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All]; + break; + } + + [remainder replaceBytesInRange:NSMakeRange(0, bytesWritten) withBytes:NULL length:0]; + } + } + }); +} + + +#pragma mark - Stream Handlers +#pragma mark Control Stream + +- (SDLStreamEndHandler)sdl_controlStreamEndedHandler { + __weak typeof(self) weakSelf = self; + + return ^(NSStream *stream) { + __strong typeof(weakSelf) strongSelf = weakSelf; + + [SDLDebugTool logInfo:@"Control Stream Event End"]; + + // End events come in pairs, only perform this once per set. + if (strongSelf.controlSession != nil) { + [strongSelf.protocolIndexTimer cancel]; + [strongSelf.controlSession stop]; + strongSelf.controlSession.streamDelegate = nil; + strongSelf.controlSession = nil; + [strongSelf sdl_retryEstablishSession]; + } + }; +} + +- (SDLStreamHasBytesHandler)sdl_controlStreamHasBytesHandlerForAccessory:(EAAccessory *)accessory { + __weak typeof(self) weakSelf = self; + + return ^(NSInputStream *istream) { + __strong typeof(weakSelf) strongSelf = weakSelf; + + [SDLDebugTool logInfo:@"Control Stream Received Data"]; + + // Read in the stream a single byte at a time + uint8_t buf[1]; + NSUInteger len = [istream read:buf maxLength:1]; + if (len > 0) { + NSString *logMessage = [NSString stringWithFormat:@"Switching to protocol %@", [@(buf[0]) stringValue]]; + [SDLDebugTool logInfo:logMessage]; + + // Destroy the control session + [strongSelf.protocolIndexTimer cancel]; + [strongSelf.controlSession stop]; + strongSelf.controlSession.streamDelegate = nil; + strongSelf.controlSession = nil; + + // Determine protocol string of the data session, then create that data session + NSString *indexedProtocolString = [NSString stringWithFormat:@"%@%@", indexedProtocolStringPrefix, @(buf[0])]; + dispatch_sync(dispatch_get_main_queue(), ^{ + [strongSelf sdl_createIAPDataSessionWithAccessory:accessory forProtocol:indexedProtocolString]; + }); + } + }; +} + +- (SDLStreamErrorHandler)sdl_controlStreamErroredHandler { + __weak typeof(self) weakSelf = self; + + return ^(NSStream *stream) { + __strong typeof(weakSelf) strongSelf = weakSelf; + + [SDLDebugTool logInfo:@"Stream Error"]; + [strongSelf.protocolIndexTimer cancel]; + [strongSelf.controlSession stop]; + strongSelf.controlSession.streamDelegate = nil; + strongSelf.controlSession = nil; + [strongSelf sdl_retryEstablishSession]; + }; +} + + +#pragma mark Data Stream + +- (SDLStreamEndHandler)sdl_dataStreamEndedHandler { + __weak typeof(self) weakSelf = self; + + return ^(NSStream *stream) { + __strong typeof(weakSelf) strongSelf = weakSelf; + + [SDLDebugTool logInfo:@"Data Stream Event End"]; + [strongSelf.session stop]; + strongSelf.session.streamDelegate = nil; + + if (![legacyProtocolString isEqualToString:strongSelf.session.protocol]) { + [strongSelf sdl_retryEstablishSession]; + } + + strongSelf.session = nil; + }; +} + +- (SDLStreamHasBytesHandler)sdl_dataStreamHasBytesHandler { + __weak typeof(self) weakSelf = self; + + return ^(NSInputStream *istream) { + __strong typeof(weakSelf) strongSelf = weakSelf; + + uint8_t buf[[SDLGlobals globals].maxMTUSize]; + while ([istream hasBytesAvailable]) { + NSInteger bytesRead = [istream read:buf maxLength:[SDLGlobals globals].maxMTUSize]; + NSData *dataIn = [NSData dataWithBytes:buf length:bytesRead]; + + if (bytesRead > 0) { + [strongSelf.delegate onDataReceived:dataIn]; + } else { + break; + } + } + }; +} + +- (SDLStreamErrorHandler)sdl_dataStreamErroredHandler { + __weak typeof(self) weakSelf = self; + + return ^(NSStream *stream) { + __strong typeof(weakSelf) strongSelf = weakSelf; + + [SDLDebugTool logInfo:@"Data Stream Error"]; + [strongSelf.session stop]; + strongSelf.session.streamDelegate = nil; + + if (![legacyProtocolString isEqualToString:strongSelf.session.protocol]) { + [strongSelf sdl_retryEstablishSession]; + } + + strongSelf.session = nil; + }; +} + +- (double)retryDelay { + const double min_value = 0.0; + const double max_value = 10.0; + double range_length = max_value - min_value; + + static double delay = 0; + + // HAX: This pull the app name and hashes it in an attempt to provide a more even distribution of retry delays. The evidence that this does so is anecdotal. A more ideal solution would be to use a list of known, installed SDL apps on the phone to try and deterministically generate an even delay. + if (delay == 0) { + NSString *appName = [[NSProcessInfo processInfo] processName]; + if (appName == nil) { + appName = @"noname"; + } + + // Run the app name through an md5 hasher + const char *ptr = [appName UTF8String]; + unsigned char md5Buffer[CC_MD5_DIGEST_LENGTH]; + CC_MD5(ptr, (unsigned int)strlen(ptr), md5Buffer); + + // Generate a string of the hex hash + NSMutableString *output = [NSMutableString stringWithString:@"0x"]; + for (int i = 0; i < 8; i++) { + [output appendFormat:@"%02X", md5Buffer[i]]; + } + + // Transform the string into a number between 0 and 1 + unsigned long long firstHalf; + NSScanner *pScanner = [NSScanner scannerWithString:output]; + [pScanner scanHexLongLong:&firstHalf]; + double hashBasedValueInRange0to1 = ((double)firstHalf) / 0xffffffffffffffff; + + // Transform the number into a number between min and max + delay = ((range_length * hashBasedValueInRange0to1) + min_value); + } + + return delay; +} + + +#pragma mark - Lifecycle Destruction + +- (void)sdl_destructObjects { + if (!_alreadyDestructed) { + _alreadyDestructed = YES; + [self sdl_stopEventListening]; + self.controlSession = nil; + self.session = nil; + self.delegate = nil; + } +} + +- (void)dispose { + [self sdl_destructObjects]; +} + +- (void)dealloc { + [self sdl_destructObjects]; + [SDLDebugTool logInfo:@"SDLIAPTransport Dealloc" withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; +} + +@end diff --git a/SmartDeviceLink/SDLIgnitionStableStatus.h b/SmartDeviceLink/SDLIgnitionStableStatus.h new file mode 100644 index 000000000..96dcdfaa9 --- /dev/null +++ b/SmartDeviceLink/SDLIgnitionStableStatus.h @@ -0,0 +1,42 @@ +// SDLIgnitionStableStatus.h +// + + +#import "SDLEnum.h" + +/** + * Reflects the ignition switch stability. + * + * @since SDL 2.0 + */ +@interface SDLIgnitionStableStatus : SDLEnum { +} + +/** + * @abstract return SDLIgnitionStableStatus + * @param value The value of the string to get an object for + * @return SDLIgnitionStableStatus + */ ++ (SDLIgnitionStableStatus *)valueOf:(NSString *)value; + +/** + * @abstract store all possible SDLIgnitionStableStatus values + * @return an array with all possible SDLIgnitionStableStatus values inside + */ ++ (NSArray *)values; + +/** + * @abstract The current ignition switch status is considered not to be stable. + * @return the Ignition Stable Status with value of *IGNITION_SWITCH_NOT_STABLE* + */ ++ (SDLIgnitionStableStatus *)IGNITION_SWITCH_NOT_STABLE; + +/** + * @abstract The current ignition switch status is considered to be stable. + * @return the Ignition Stable Status with value of *IGNITION_SWITCH_STABLE* + */ ++ (SDLIgnitionStableStatus *)IGNITION_SWITCH_STABLE; + ++ (SDLIgnitionStableStatus *)MISSING_FROM_TRANSMITTER; + +@end diff --git a/SmartDeviceLink/SDLIgnitionStableStatus.m b/SmartDeviceLink/SDLIgnitionStableStatus.m new file mode 100644 index 000000000..868723b32 --- /dev/null +++ b/SmartDeviceLink/SDLIgnitionStableStatus.m @@ -0,0 +1,56 @@ +// SDLIgnitionStableStatus.m +// + + +#import "SDLIgnitionStableStatus.h" + +SDLIgnitionStableStatus *SDLIgnitionStableStatus_IGNITION_SWITCH_NOT_STABLE = nil; +SDLIgnitionStableStatus *SDLIgnitionStableStatus_IGNITION_SWITCH_STABLE = nil; +SDLIgnitionStableStatus *SDLIgnitionStableStatus_MISSING_FROM_TRANSMITTER = nil; + +NSArray *SDLIgnitionStableStatus_values = nil; + +@implementation SDLIgnitionStableStatus + ++ (SDLIgnitionStableStatus *)valueOf:(NSString *)value { + for (SDLIgnitionStableStatus *item in SDLIgnitionStableStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLIgnitionStableStatus_values == nil) { + SDLIgnitionStableStatus_values = @[ + SDLIgnitionStableStatus.IGNITION_SWITCH_NOT_STABLE, + SDLIgnitionStableStatus.IGNITION_SWITCH_STABLE, + SDLIgnitionStableStatus.MISSING_FROM_TRANSMITTER, + ]; + } + return SDLIgnitionStableStatus_values; +} + ++ (SDLIgnitionStableStatus *)IGNITION_SWITCH_NOT_STABLE { + if (SDLIgnitionStableStatus_IGNITION_SWITCH_NOT_STABLE == nil) { + SDLIgnitionStableStatus_IGNITION_SWITCH_NOT_STABLE = [[SDLIgnitionStableStatus alloc] initWithValue:@"IGNITION_SWITCH_NOT_STABLE"]; + } + return SDLIgnitionStableStatus_IGNITION_SWITCH_NOT_STABLE; +} + ++ (SDLIgnitionStableStatus *)IGNITION_SWITCH_STABLE { + if (SDLIgnitionStableStatus_IGNITION_SWITCH_STABLE == nil) { + SDLIgnitionStableStatus_IGNITION_SWITCH_STABLE = [[SDLIgnitionStableStatus alloc] initWithValue:@"IGNITION_SWITCH_STABLE"]; + } + return SDLIgnitionStableStatus_IGNITION_SWITCH_STABLE; +} + ++ (SDLIgnitionStableStatus *)MISSING_FROM_TRANSMITTER { + if (SDLIgnitionStableStatus_MISSING_FROM_TRANSMITTER == nil) { + SDLIgnitionStableStatus_MISSING_FROM_TRANSMITTER = [[SDLIgnitionStableStatus alloc] initWithValue:@"MISSING_FROM_TRANSMITTER"]; + } + return SDLIgnitionStableStatus_MISSING_FROM_TRANSMITTER; +} + +@end diff --git a/SmartDeviceLink/SDLIgnitionStatus.h b/SmartDeviceLink/SDLIgnitionStatus.h new file mode 100644 index 000000000..fadb3f5f4 --- /dev/null +++ b/SmartDeviceLink/SDLIgnitionStatus.h @@ -0,0 +1,64 @@ +// SDLIgnitionStatus.h +// + + +#import "SDLEnum.h" + +/** + * Reflects the status of ignition.. + * + * @since SDL 2.0 + */ +@interface SDLIgnitionStatus : SDLEnum { +} + +/** + * @abstract return SDLIgnitionStatus + * @param value The value of the string to get an object for + * @return SDLIgnitionStatus object + */ ++ (SDLIgnitionStatus *)valueOf:(NSString *)value; + +/** + * @abstract store all possible SDLIgnitionStatus values + * @return an array with all possible SDLIgnitionStatus values inside + */ ++ (NSArray *)values; + +/** + * @abstract Ignition status currently unknown + * @return Ignition Status with value of *UNKNOWN* + */ ++ (SDLIgnitionStatus *)UNKNOWN; + +/** + * @abstract Ignition is off + * @return Ignition Status with value of *OFF* + */ ++ (SDLIgnitionStatus *)OFF; + +/** + * @abstract Ignition is in mode accessory + * @return Ignition Status with value of *ACCESSORY* + */ ++ (SDLIgnitionStatus *)ACCESSORY; + +/** + * @abstract Ignition is in mode run + * @return Ignition Status with value of *RUN* + */ ++ (SDLIgnitionStatus *)RUN; + +/** + * @abstract Ignition is in mode start + * @return Ignition Status with value of *START* + */ ++ (SDLIgnitionStatus *)START; + +/** + * @abstract Signal is invalid + * @return Ignition Status with value of *INVALID* + */ ++ (SDLIgnitionStatus *)INVALID; + +@end diff --git a/SmartDeviceLink/SDLIgnitionStatus.m b/SmartDeviceLink/SDLIgnitionStatus.m new file mode 100644 index 000000000..ff069f0a0 --- /dev/null +++ b/SmartDeviceLink/SDLIgnitionStatus.m @@ -0,0 +1,83 @@ +// SDLIgnitionStatus.m +// + + +#import "SDLIgnitionStatus.h" + +SDLIgnitionStatus *SDLIgnitionStatus_UNKNOWN = nil; +SDLIgnitionStatus *SDLIgnitionStatus_OFF = nil; +SDLIgnitionStatus *SDLIgnitionStatus_ACCESSORY = nil; +SDLIgnitionStatus *SDLIgnitionStatus_RUN = nil; +SDLIgnitionStatus *SDLIgnitionStatus_START = nil; +SDLIgnitionStatus *SDLIgnitionStatus_INVALID = nil; + +NSArray *SDLIgnitionStatus_values = nil; + +@implementation SDLIgnitionStatus + ++ (SDLIgnitionStatus *)valueOf:(NSString *)value { + for (SDLIgnitionStatus *item in SDLIgnitionStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLIgnitionStatus_values == nil) { + SDLIgnitionStatus_values = @[ + SDLIgnitionStatus.UNKNOWN, + SDLIgnitionStatus.OFF, + SDLIgnitionStatus.ACCESSORY, + SDLIgnitionStatus.RUN, + SDLIgnitionStatus.START, + SDLIgnitionStatus.INVALID, + ]; + } + return SDLIgnitionStatus_values; +} + ++ (SDLIgnitionStatus *)UNKNOWN { + if (SDLIgnitionStatus_UNKNOWN == nil) { + SDLIgnitionStatus_UNKNOWN = [[SDLIgnitionStatus alloc] initWithValue:@"UNKNOWN"]; + } + return SDLIgnitionStatus_UNKNOWN; +} + ++ (SDLIgnitionStatus *)OFF { + if (SDLIgnitionStatus_OFF == nil) { + SDLIgnitionStatus_OFF = [[SDLIgnitionStatus alloc] initWithValue:@"OFF"]; + } + return SDLIgnitionStatus_OFF; +} + ++ (SDLIgnitionStatus *)ACCESSORY { + if (SDLIgnitionStatus_ACCESSORY == nil) { + SDLIgnitionStatus_ACCESSORY = [[SDLIgnitionStatus alloc] initWithValue:@"ACCESSORY"]; + } + return SDLIgnitionStatus_ACCESSORY; +} + ++ (SDLIgnitionStatus *)RUN { + if (SDLIgnitionStatus_RUN == nil) { + SDLIgnitionStatus_RUN = [[SDLIgnitionStatus alloc] initWithValue:@"RUN"]; + } + return SDLIgnitionStatus_RUN; +} + ++ (SDLIgnitionStatus *)START { + if (SDLIgnitionStatus_START == nil) { + SDLIgnitionStatus_START = [[SDLIgnitionStatus alloc] initWithValue:@"START"]; + } + return SDLIgnitionStatus_START; +} + ++ (SDLIgnitionStatus *)INVALID { + if (SDLIgnitionStatus_INVALID == nil) { + SDLIgnitionStatus_INVALID = [[SDLIgnitionStatus alloc] initWithValue:@"INVALID"]; + } + return SDLIgnitionStatus_INVALID; +} + +@end diff --git a/SmartDeviceLink/SDLImage.h b/SmartDeviceLink/SDLImage.h new file mode 100644 index 000000000..993107ec3 --- /dev/null +++ b/SmartDeviceLink/SDLImage.h @@ -0,0 +1,42 @@ +// SDLImage.h +// + +#import "SDLRPCMessage.h" + +@class SDLImageType; + + +/** + *Specifies, which image shall be used, e.g. in SDLAlerts or on SDLSoftbuttons provided the display supports it. + * + * @since SDL 2.0 + */ +@interface SDLImage : SDLRPCStruct { +} + +/** + * Constructs a newly allocated SDLImage object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLImage object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The static hex icon value or the binary image file name identifier (sent by SDLPutFile) + * + * Required, max length = 65535 + */ +@property (strong) NSString *value; + +/** + * @abstract Describes, whether it is a static or dynamic image + * + * Required + */ +@property (strong) SDLImageType *imageType; + +@end diff --git a/SmartDeviceLink/SDLImage.m b/SmartDeviceLink/SDLImage.m new file mode 100644 index 000000000..ef646f794 --- /dev/null +++ b/SmartDeviceLink/SDLImage.m @@ -0,0 +1,53 @@ +// SDLImage.m +// + +#import "SDLImage.h" + +#import "SDLImageType.h" +#import "SDLNames.h" + + +@implementation SDLImage + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setValue:(NSString *)value { + if (value != nil) { + [store setObject:value forKey:NAMES_value]; + } else { + [store removeObjectForKey:NAMES_value]; + } +} + +- (NSString *)value { + return [store objectForKey:NAMES_value]; +} + +- (void)setImageType:(SDLImageType *)imageType { + if (imageType != nil) { + [store setObject:imageType forKey:NAMES_imageType]; + } else { + [store removeObjectForKey:NAMES_imageType]; + } +} + +- (SDLImageType *)imageType { + NSObject *obj = [store objectForKey:NAMES_imageType]; + if (obj == nil || [obj isKindOfClass:SDLImageType.class]) { + return (SDLImageType *)obj; + } else { + return [SDLImageType valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLImageField.h b/SmartDeviceLink/SDLImageField.h new file mode 100644 index 000000000..eb0942e79 --- /dev/null +++ b/SmartDeviceLink/SDLImageField.h @@ -0,0 +1,20 @@ +// SDLImageField.h +// + +#import "SDLRPCMessage.h" + +@class SDLImageFieldName; +@class SDLImageResolution; + + +@interface SDLImageField : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLImageFieldName *name; +@property (strong) NSMutableArray *imageTypeSupported; +@property (strong) SDLImageResolution *imageResolution; + +@end diff --git a/SmartDeviceLink/SDLImageField.m b/SmartDeviceLink/SDLImageField.m new file mode 100644 index 000000000..af4f15517 --- /dev/null +++ b/SmartDeviceLink/SDLImageField.m @@ -0,0 +1,81 @@ +// SDLImageField.m +// + +#import "SDLImageField.h" + +#import "SDLFileType.h" +#import "SDLImageFieldName.h" +#import "SDLImageResolution.h" +#import "SDLNames.h" + + +@implementation SDLImageField + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setName:(SDLImageFieldName *)name { + if (name != nil) { + [store setObject:name forKey:NAMES_name]; + } else { + [store removeObjectForKey:NAMES_name]; + } +} + +- (SDLImageFieldName *)name { + NSObject *obj = [store objectForKey:NAMES_name]; + if (obj == nil || [obj isKindOfClass:SDLImageFieldName.class]) { + return (SDLImageFieldName *)obj; + } else { + return [SDLImageFieldName valueOf:(NSString *)obj]; + } +} + +- (void)setImageTypeSupported:(NSMutableArray *)imageTypeSupported { + if (imageTypeSupported != nil) { + [store setObject:imageTypeSupported forKey:NAMES_imageTypeSupported]; + } else { + [store removeObjectForKey:NAMES_imageTypeSupported]; + } +} + +- (NSMutableArray *)imageTypeSupported { + NSMutableArray *array = [store objectForKey:NAMES_imageTypeSupported]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLFileType.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSString *enumString in array) { + [newList addObject:[SDLFileType valueOf:enumString]]; + } + return newList; + } +} + +- (void)setImageResolution:(SDLImageResolution *)imageResolution { + if (imageResolution != nil) { + [store setObject:imageResolution forKey:NAMES_imageResolution]; + } else { + [store removeObjectForKey:NAMES_imageResolution]; + } +} + +- (SDLImageResolution *)imageResolution { + NSObject *obj = [store objectForKey:NAMES_imageResolution]; + if (obj == nil || [obj isKindOfClass:SDLImageResolution.class]) { + return (SDLImageResolution *)obj; + } else { + return [[SDLImageResolution alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLImageFieldName.h b/SmartDeviceLink/SDLImageFieldName.h new file mode 100644 index 000000000..5c63a5a71 --- /dev/null +++ b/SmartDeviceLink/SDLImageFieldName.h @@ -0,0 +1,82 @@ +// SDLImageFieldName.h +// + + +#import "SDLEnum.h" + +/** The name that identifies the filed. + * + * + * @since SmartDeviceLink 3.0 + * + */ +@interface SDLImageFieldName : SDLEnum { +} + ++ (SDLImageFieldName *)valueOf:(NSString *)value; ++ (NSArray *)values; + +/** The image field for SoftButton + * + */ ++ (SDLImageFieldName *)softButtonImage; + +/** The first image field for Choice. + * + */ ++ (SDLImageFieldName *)choiceImage; + +/** The scondary image field for Choice. + * + */ ++ (SDLImageFieldName *)choiceSecondaryImage; + +/** The image field for vrHelpItem. + * + */ ++ (SDLImageFieldName *)vrHelpItem; + +/** The image field for Turn. + * + */ + ++ (SDLImageFieldName *)turnIcon; + +/** The image field for the menu icon in SetGlobalProperties. + * + */ ++ (SDLImageFieldName *)menuIcon; + +/** The image filed for AddCommand. + * + */ + ++ (SDLImageFieldName *)cmdIcon; + +/** The iamage field for the app icon ( set by setAppIcon). + * + */ ++ (SDLImageFieldName *)appIcon; + +/** The image filed for Show. + * + */ ++ (SDLImageFieldName *)graphic; + +/** The primary image field for ShowConstant TBT. + * + */ ++ (SDLImageFieldName *)showConstantTBTIcon; + +/** The secondary image field for ShowConstant TBT. + * + */ ++ (SDLImageFieldName *)showConstantTBTNextTurnIcon; + +/** + * The optional image of a destination / location + * @since SDL 4.0 + */ ++ (SDLImageFieldName *)locationImage; + +@end diff --git a/SmartDeviceLink/SDLImageFieldName.m b/SmartDeviceLink/SDLImageFieldName.m new file mode 100644 index 000000000..7baa57b45 --- /dev/null +++ b/SmartDeviceLink/SDLImageFieldName.m @@ -0,0 +1,137 @@ +// SDLImageFieldName.m +// + + +#import "SDLImageFieldName.h" + +SDLImageFieldName *SDLImageFieldName_softButtonImage = nil; +SDLImageFieldName *SDLImageFieldName_choiceImage = nil; +SDLImageFieldName *SDLImageFieldName_choiceSecondaryImage = nil; +SDLImageFieldName *SDLImageFieldName_vrHelpItem = nil; +SDLImageFieldName *SDLImageFieldName_turnIcon = nil; +SDLImageFieldName *SDLImageFieldName_menuIcon = nil; +SDLImageFieldName *SDLImageFieldName_cmdIcon = nil; +SDLImageFieldName *SDLImageFieldName_appIcon = nil; +SDLImageFieldName *SDLImageFieldName_graphic = nil; +SDLImageFieldName *SDLImageFieldName_showConstantTBTIcon = nil; +SDLImageFieldName *SDLImageFieldName_showConstantTBTNextTurnIcon = nil; +SDLImageFieldName *SDLImageFieldName_locationImage = nil; + +NSArray *SDLImageFieldName_values = nil; + +@implementation SDLImageFieldName + ++ (SDLImageFieldName *)valueOf:(NSString *)value { + for (SDLImageFieldName *item in SDLImageFieldName.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLImageFieldName_values == nil) { + SDLImageFieldName_values = @[ + SDLImageFieldName.softButtonImage, + SDLImageFieldName.choiceImage, + SDLImageFieldName.choiceSecondaryImage, + SDLImageFieldName.vrHelpItem, + SDLImageFieldName.turnIcon, + SDLImageFieldName.menuIcon, + SDLImageFieldName.cmdIcon, + SDLImageFieldName.appIcon, + SDLImageFieldName.graphic, + SDLImageFieldName.showConstantTBTIcon, + SDLImageFieldName.showConstantTBTNextTurnIcon, + SDLImageFieldName.locationImage, + ]; + } + return SDLImageFieldName_values; +} + ++ (SDLImageFieldName *)softButtonImage { + if (SDLImageFieldName_softButtonImage == nil) { + SDLImageFieldName_softButtonImage = [[SDLImageFieldName alloc] initWithValue:@"softButtonImage"]; + } + return SDLImageFieldName_softButtonImage; +} + ++ (SDLImageFieldName *)choiceImage { + if (SDLImageFieldName_choiceImage == nil) { + SDLImageFieldName_choiceImage = [[SDLImageFieldName alloc] initWithValue:@"choiceImage"]; + } + return SDLImageFieldName_choiceImage; +} + ++ (SDLImageFieldName *)choiceSecondaryImage { + if (SDLImageFieldName_choiceSecondaryImage == nil) { + SDLImageFieldName_choiceSecondaryImage = [[SDLImageFieldName alloc] initWithValue:@"choiceSecondaryImage"]; + } + return SDLImageFieldName_choiceSecondaryImage; +} + ++ (SDLImageFieldName *)vrHelpItem { + if (SDLImageFieldName_vrHelpItem == nil) { + SDLImageFieldName_vrHelpItem = [[SDLImageFieldName alloc] initWithValue:@"vrHelpItem"]; + } + return SDLImageFieldName_vrHelpItem; +} + ++ (SDLImageFieldName *)turnIcon { + if (SDLImageFieldName_turnIcon == nil) { + SDLImageFieldName_turnIcon = [[SDLImageFieldName alloc] initWithValue:@"turnIcon"]; + } + return SDLImageFieldName_turnIcon; +} + ++ (SDLImageFieldName *)menuIcon { + if (SDLImageFieldName_menuIcon == nil) { + SDLImageFieldName_menuIcon = [[SDLImageFieldName alloc] initWithValue:@"menuIcon"]; + } + return SDLImageFieldName_menuIcon; +} + ++ (SDLImageFieldName *)cmdIcon { + if (SDLImageFieldName_cmdIcon == nil) { + SDLImageFieldName_cmdIcon = [[SDLImageFieldName alloc] initWithValue:@"cmdIcon"]; + } + return SDLImageFieldName_cmdIcon; +} + ++ (SDLImageFieldName *)appIcon { + if (SDLImageFieldName_appIcon == nil) { + SDLImageFieldName_appIcon = [[SDLImageFieldName alloc] initWithValue:@"appIcon"]; + } + return SDLImageFieldName_appIcon; +} + ++ (SDLImageFieldName *)graphic { + if (SDLImageFieldName_graphic == nil) { + SDLImageFieldName_graphic = [[SDLImageFieldName alloc] initWithValue:@"graphic"]; + } + return SDLImageFieldName_graphic; +} + ++ (SDLImageFieldName *)showConstantTBTIcon { + if (SDLImageFieldName_showConstantTBTIcon == nil) { + SDLImageFieldName_showConstantTBTIcon = [[SDLImageFieldName alloc] initWithValue:@"showConstantTBTIcon"]; + } + return SDLImageFieldName_showConstantTBTIcon; +} + ++ (SDLImageFieldName *)showConstantTBTNextTurnIcon { + if (SDLImageFieldName_showConstantTBTNextTurnIcon == nil) { + SDLImageFieldName_showConstantTBTNextTurnIcon = [[SDLImageFieldName alloc] initWithValue:@"showConstantTBTNextTurnIcon"]; + } + return SDLImageFieldName_showConstantTBTNextTurnIcon; +} + ++ (SDLImageFieldName *)locationImage { + if (SDLImageFieldName_locationImage == nil) { + SDLImageFieldName_locationImage = [[SDLImageFieldName alloc] initWithValue:@"locationImage"]; + } + return SDLImageFieldName_locationImage; +} + +@end diff --git a/SmartDeviceLink/SDLImageResolution.h b/SmartDeviceLink/SDLImageResolution.h new file mode 100644 index 000000000..bae946ab2 --- /dev/null +++ b/SmartDeviceLink/SDLImageResolution.h @@ -0,0 +1,16 @@ +// SDLImageResolution.h +// + + +#import "SDLRPCMessage.h" + +@interface SDLImageResolution : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSNumber *resolutionWidth; +@property (strong) NSNumber *resolutionHeight; + +@end diff --git a/SmartDeviceLink/SDLImageResolution.m b/SmartDeviceLink/SDLImageResolution.m new file mode 100644 index 000000000..7f10116de --- /dev/null +++ b/SmartDeviceLink/SDLImageResolution.m @@ -0,0 +1,47 @@ +// SDLImageResolution.m +// + + +#import "SDLImageResolution.h" + +#import "SDLNames.h" + +@implementation SDLImageResolution + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setResolutionWidth:(NSNumber *)resolutionWidth { + if (resolutionWidth != nil) { + [store setObject:resolutionWidth forKey:NAMES_resolutionWidth]; + } else { + [store removeObjectForKey:NAMES_resolutionWidth]; + } +} + +- (NSNumber *)resolutionWidth { + return [store objectForKey:NAMES_resolutionWidth]; +} + +- (void)setResolutionHeight:(NSNumber *)resolutionHeight { + if (resolutionHeight != nil) { + [store setObject:resolutionHeight forKey:NAMES_resolutionHeight]; + } else { + [store removeObjectForKey:NAMES_resolutionHeight]; + } +} + +- (NSNumber *)resolutionHeight { + return [store objectForKey:NAMES_resolutionHeight]; +} + +@end diff --git a/SmartDeviceLink/SDLImageType.h b/SmartDeviceLink/SDLImageType.h new file mode 100644 index 000000000..2b118a456 --- /dev/null +++ b/SmartDeviceLink/SDLImageType.h @@ -0,0 +1,47 @@ +// SDLImageType.h +// + + +#import "SDLEnum.h" + +/** +* Contains information about the type of image. +* +* @since SDL 2.0 +*/ +@interface SDLImageType : SDLEnum { +} + +/** + * @abstract return SDLImageType (STATIC / DYNAMIC) + * + * @param value The value of the string to get an object for + * + * @return An SDLImageType + */ ++ (SDLImageType *)valueOf:(NSString *)value; + +/** + * @abstract store all possible SDLImageType values + * + * @return An array with all possible SDLImageType values inside + */ ++ (NSArray *)values; + +/** + * @abstract Just the static hex icon value to be used + * + * @return The Image Type with value *STATIC* + */ ++ (SDLImageType *)STATIC; + +/** + * @abstract Binary image file to be used (identifier to be sent by SDLPutFile) + * + * @see SDLPutFile + * + * @return The Image Type with value *DYNAMIC* + */ ++ (SDLImageType *)DYNAMIC; + +@end diff --git a/SmartDeviceLink/SDLImageType.m b/SmartDeviceLink/SDLImageType.m new file mode 100644 index 000000000..878eb1773 --- /dev/null +++ b/SmartDeviceLink/SDLImageType.m @@ -0,0 +1,47 @@ +// SDLImageType.m +// + + +#import "SDLImageType.h" + +SDLImageType *SDLImageType_STATIC = nil; +SDLImageType *SDLImageType_DYNAMIC = nil; + +NSArray *SDLImageType_values = nil; + +@implementation SDLImageType + ++ (SDLImageType *)valueOf:(NSString *)value { + for (SDLImageType *item in SDLImageType.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLImageType_values == nil) { + SDLImageType_values = @[ + SDLImageType.STATIC, + SDLImageType.DYNAMIC, + ]; + } + return SDLImageType_values; +} + ++ (SDLImageType *)STATIC { + if (SDLImageType_STATIC == nil) { + SDLImageType_STATIC = [[SDLImageType alloc] initWithValue:@"STATIC"]; + } + return SDLImageType_STATIC; +} + ++ (SDLImageType *)DYNAMIC { + if (SDLImageType_DYNAMIC == nil) { + SDLImageType_DYNAMIC = [[SDLImageType alloc] initWithValue:@"DYNAMIC"]; + } + return SDLImageType_DYNAMIC; +} + +@end diff --git a/SmartDeviceLink/SDLInteractionMode.h b/SmartDeviceLink/SDLInteractionMode.h new file mode 100644 index 000000000..442d4f8d7 --- /dev/null +++ b/SmartDeviceLink/SDLInteractionMode.h @@ -0,0 +1,56 @@ +// SDLInteractionMode.h +// + + +#import "SDLEnum.h" + +/** + * For application-initiated interactions (SDLPerformInteraction), this specifies the mode by which the user is prompted and by which the user's selection is indicated + * + * @since SDL 1.0 + */ +@interface SDLInteractionMode : SDLEnum { +} + +/** + * @abstract SDLInteractionMode + * @param value The value of the string to get an object for + * @return SDLInteractionMode + */ ++ (SDLInteractionMode *)valueOf:(NSString *)value; + +/** + * @abstract store all possible SDLInteractionMode values + * @return an array with all possible SDLInteractionMode values inside + */ ++ (NSArray *)values; + +/** + * @abstract Interaction Mode : Manual Only + * @discussion This mode causes the interaction to occur only on the display, meaning the choices are presented and selected only via the display. Selections are viewed with the SEEKRIGHT, SEEKLEFT, TUNEUP, TUNEDOWN buttons. User's selection is indicated with the OK button + * + * @return Current Interaction Mode with value of *MANUAL_ONLY* + */ ++ (SDLInteractionMode *)MANUAL_ONLY; + +/** + * @abstract Interaction Mode : VR Only + * @discussion This mode causes the interaction to occur only through TTS and VR. The user is prompted via TTS to select a choice by saying one of the choice's synonyms + * + * @return Current Interaction Mode with value of *VR_ONLY* + */ ++ (SDLInteractionMode *)VR_ONLY; + +/** + * @abstract Interaction Mode : Manual & VR + * @discussion This mode is a combination of MANUAL_ONLY and VR_ONLY, meaning the user is prompted both visually and audibly. The user can make a selection either using the mode described in MANUAL_ONLY or using the mode described in VR_ONLY. + * + * If the user views selections as described in MANUAL_ONLY mode, the interaction becomes strictly, and irreversibly, a MANUAL_ONLY interaction (i.e. the VR session is cancelled, although the interaction itself is still in progress). If the user interacts with the VR session in any way (e.g. speaks a phrase, even if it is not a recognized choice), the interaction becomes strictly, and irreversibly, a VR_ONLY interaction (i.e. the MANUAL_ONLY mode forms of interaction will no longer be honored) + * + * The TriggerSource parameter of the *PerformInteraction* response will indicate which interaction mode the user finally chose to attempt the selection (even if the interaction did not end with a selection being made) + * + * @return Current Interaction Mode with value of *BOTH* + */ ++ (SDLInteractionMode *)BOTH; + +@end diff --git a/SmartDeviceLink/SDLInteractionMode.m b/SmartDeviceLink/SDLInteractionMode.m new file mode 100644 index 000000000..07dc5f7b2 --- /dev/null +++ b/SmartDeviceLink/SDLInteractionMode.m @@ -0,0 +1,56 @@ +// SDLInteractionMode.m +// + + +#import "SDLInteractionMode.h" + +SDLInteractionMode *SDLInteractionMode_MANUAL_ONLY = nil; +SDLInteractionMode *SDLInteractionMode_VR_ONLY = nil; +SDLInteractionMode *SDLInteractionMode_BOTH = nil; + +NSArray *SDLInteractionMode_values = nil; + +@implementation SDLInteractionMode + ++ (SDLInteractionMode *)valueOf:(NSString *)value { + for (SDLInteractionMode *item in SDLInteractionMode.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLInteractionMode_values == nil) { + SDLInteractionMode_values = @[ + SDLInteractionMode.MANUAL_ONLY, + SDLInteractionMode.VR_ONLY, + SDLInteractionMode.BOTH, + ]; + } + return SDLInteractionMode_values; +} + ++ (SDLInteractionMode *)MANUAL_ONLY { + if (SDLInteractionMode_MANUAL_ONLY == nil) { + SDLInteractionMode_MANUAL_ONLY = [[SDLInteractionMode alloc] initWithValue:@"MANUAL_ONLY"]; + } + return SDLInteractionMode_MANUAL_ONLY; +} + ++ (SDLInteractionMode *)VR_ONLY { + if (SDLInteractionMode_VR_ONLY == nil) { + SDLInteractionMode_VR_ONLY = [[SDLInteractionMode alloc] initWithValue:@"VR_ONLY"]; + } + return SDLInteractionMode_VR_ONLY; +} + ++ (SDLInteractionMode *)BOTH { + if (SDLInteractionMode_BOTH == nil) { + SDLInteractionMode_BOTH = [[SDLInteractionMode alloc] initWithValue:@"BOTH"]; + } + return SDLInteractionMode_BOTH; +} + +@end diff --git a/SmartDeviceLink/SDLJingle.h b/SmartDeviceLink/SDLJingle.h new file mode 100644 index 000000000..180ca85ef --- /dev/null +++ b/SmartDeviceLink/SDLJingle.h @@ -0,0 +1,16 @@ +// SDLJingle.h +// + + +#import + +@interface SDLJingle : NSObject { +} + ++ (NSString *)NEGATIVE_JINGLE; ++ (NSString *)POSITIVE_JINGLE; ++ (NSString *)LISTEN_JINGLE; ++ (NSString *)INITIAL_JINGLE; ++ (NSString *)HELP_JINGLE; + +@end diff --git a/SmartDeviceLink/SDLJingle.m b/SmartDeviceLink/SDLJingle.m new file mode 100644 index 000000000..7484bfabf --- /dev/null +++ b/SmartDeviceLink/SDLJingle.m @@ -0,0 +1,25 @@ +// SDLJingle.m +// + + +#import "SDLJingle.h" + +@implementation SDLJingle + ++ (NSString *)NEGATIVE_JINGLE { + return @"NEGATIVE_JINGLE"; +} ++ (NSString *)POSITIVE_JINGLE { + return @"POSITIVE_JINGLE"; +} ++ (NSString *)LISTEN_JINGLE { + return @"LISTEN_JINGLE"; +} ++ (NSString *)INITIAL_JINGLE { + return @"INITIAL_JINGLE"; +} ++ (NSString *)HELP_JINGLE { + return @"HELP_JINGLE"; +} + +@end diff --git a/SmartDeviceLink/SDLJsonDecoder.h b/SmartDeviceLink/SDLJsonDecoder.h new file mode 100644 index 000000000..4723989db --- /dev/null +++ b/SmartDeviceLink/SDLJsonDecoder.h @@ -0,0 +1,14 @@ +// SDLJsonDecoder.h +// + +#import + +#import "SDLDecoder.h" + + +@interface SDLJsonDecoder : NSObject { +} + ++ (NSObject *)instance; + +@end diff --git a/SmartDeviceLink/SDLJsonDecoder.m b/SmartDeviceLink/SDLJsonDecoder.m new file mode 100644 index 000000000..0ff561df8 --- /dev/null +++ b/SmartDeviceLink/SDLJsonDecoder.m @@ -0,0 +1,38 @@ +// SDLJsonDecoder.m +// + +#import "SDLJsonDecoder.h" + +#import "SDLDebugTool.h" +#import "SDLNames.h" + + +@implementation SDLJsonDecoder + +static NSObject *jsonDecoderInstance; + ++ (NSObject *)instance { + if (jsonDecoderInstance == nil) { + jsonDecoderInstance = [[SDLJsonDecoder alloc] init]; + } + return jsonDecoderInstance; +} + +- (NSDictionary *)decode:(NSData *)data { + if (data.length == 0) { + [SDLDebugTool logInfo:@"Warning: Decoding JSON data, no JSON to decode" withType:SDLDebugType_Protocol]; + return nil; + } + + NSError *error = nil; + NSDictionary *jsonObject = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; + + if (error != nil) { + [SDLDebugTool logInfo:[NSString stringWithFormat:@"Error decoding JSON data: %@", error] withType:SDLDebugType_Protocol]; + return nil; + } + + return jsonObject; +} + +@end diff --git a/SmartDeviceLink/SDLJsonEncoder.h b/SmartDeviceLink/SDLJsonEncoder.h new file mode 100644 index 000000000..680fe5da6 --- /dev/null +++ b/SmartDeviceLink/SDLJsonEncoder.h @@ -0,0 +1,14 @@ +// SDLJsonEncoder.h +// + +#import + +#import "SDLEncoder.h" + + +@interface SDLJsonEncoder : NSObject { +} + ++ (NSObject *)instance; + +@end diff --git a/SmartDeviceLink/SDLJsonEncoder.m b/SmartDeviceLink/SDLJsonEncoder.m new file mode 100644 index 000000000..dbb2374d9 --- /dev/null +++ b/SmartDeviceLink/SDLJsonEncoder.m @@ -0,0 +1,38 @@ +// SDLJsonEncoder.m +// + +#import "SDLJsonEncoder.h" + +#import "SDLDebugTool.h" +#import "SDLNames.h" + + +@implementation SDLJsonEncoder + +static NSObject *jsonEncoderInstance; + ++ (NSObject *)instance { + if (jsonEncoderInstance == nil) { + jsonEncoderInstance = [[SDLJsonEncoder alloc] init]; + } + return jsonEncoderInstance; +} + +- (NSData *)encodeDictionary:(NSDictionary *)dict { + if (dict == nil) { + [SDLDebugTool logInfo:@"Warning: Encoding dictionary to JSON, no dictionary passed" withType:SDLDebugType_Protocol]; + return nil; + } + + NSError *error = nil; + NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dict options:kNilOptions error:&error]; + + if (error != nil) { + [SDLDebugTool logInfo:[NSString stringWithFormat:@"Error encoding JSON data: %@", error] withType:SDLDebugType_Protocol]; + return nil; + } + + return jsonData; +} + +@end diff --git a/SmartDeviceLink/SDLKeyboardEvent.h b/SmartDeviceLink/SDLKeyboardEvent.h new file mode 100644 index 000000000..f0d90530e --- /dev/null +++ b/SmartDeviceLink/SDLKeyboardEvent.h @@ -0,0 +1,45 @@ +// SDLKeyboardEvent.h +// + + +#import "SDLEnum.h" + +/** Enumeration listing possible keyboard events. + * + * @since SmartDeviceLink 3.0 + * + */ +@interface SDLKeyboardEvent : SDLEnum { +} + ++ (SDLKeyboardEvent *)valueOf:(NSString *)value; ++ (NSArray *)values; + +/** The use has pressed the keyboard key (applies to both SINGLE_KEYPRESS and RESEND_CURRENT_ENTRY modes). + * + */ ++ (SDLKeyboardEvent *)KEYPRESS; + +/** The User has finished entering text from the keyboard and submitted the entry. + * + */ + ++ (SDLKeyboardEvent *)ENTRY_SUBMITTED; + +/** The User has pressed the HMI-defined "Cancel" button. + * + */ ++ (SDLKeyboardEvent *)ENTRY_CANCELLED; + + +/** The User has not finished entering text and the keyboard is aborted with the event of higher priority. + * + */ ++ (SDLKeyboardEvent *)ENTRY_ABORTED; + +/** + * @since SDL 4.0 + */ ++ (SDLKeyboardEvent *)ENTRY_VOICE; + +@end diff --git a/SmartDeviceLink/SDLKeyboardEvent.m b/SmartDeviceLink/SDLKeyboardEvent.m new file mode 100644 index 000000000..65a7d8e89 --- /dev/null +++ b/SmartDeviceLink/SDLKeyboardEvent.m @@ -0,0 +1,74 @@ +// SDLKeyboardEvent.m +// + + +#import "SDLKeyboardEvent.h" + +SDLKeyboardEvent *SDLKeyboardEvent_KEYPRESS = nil; +SDLKeyboardEvent *SDLKeyboardEvent_ENTRY_SUBMITTED = nil; +SDLKeyboardEvent *SDLKeyboardEvent_ENTRY_CANCELLED = nil; +SDLKeyboardEvent *SDLKeyboardEvent_ENTRY_ABORTED = nil; +SDLKeyboardEvent *SDLKeyboardEvent_ENTRY_VOICE = nil; + +NSArray *SDLKeyboardEvent_values = nil; + +@implementation SDLKeyboardEvent + ++ (SDLKeyboardEvent *)valueOf:(NSString *)value { + for (SDLKeyboardEvent *item in SDLKeyboardEvent.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLKeyboardEvent_values == nil) { + SDLKeyboardEvent_values = @[ + SDLKeyboardEvent.KEYPRESS, + SDLKeyboardEvent.ENTRY_SUBMITTED, + SDLKeyboardEvent.ENTRY_CANCELLED, + SDLKeyboardEvent.ENTRY_ABORTED, + SDLKeyboardEvent.ENTRY_VOICE, + ]; + } + return SDLKeyboardEvent_values; +} + ++ (SDLKeyboardEvent *)KEYPRESS { + if (SDLKeyboardEvent_KEYPRESS == nil) { + SDLKeyboardEvent_KEYPRESS = [[SDLKeyboardEvent alloc] initWithValue:@"KEYPRESS"]; + } + return SDLKeyboardEvent_KEYPRESS; +} + ++ (SDLKeyboardEvent *)ENTRY_SUBMITTED { + if (SDLKeyboardEvent_ENTRY_SUBMITTED == nil) { + SDLKeyboardEvent_ENTRY_SUBMITTED = [[SDLKeyboardEvent alloc] initWithValue:@"ENTRY_SUBMITTED"]; + } + return SDLKeyboardEvent_ENTRY_SUBMITTED; +} + ++ (SDLKeyboardEvent *)ENTRY_CANCELLED { + if (SDLKeyboardEvent_ENTRY_CANCELLED == nil) { + SDLKeyboardEvent_ENTRY_CANCELLED = [[SDLKeyboardEvent alloc] initWithValue:@"ENTRY_CANCELLED"]; + } + return SDLKeyboardEvent_ENTRY_CANCELLED; +} + ++ (SDLKeyboardEvent *)ENTRY_ABORTED { + if (SDLKeyboardEvent_ENTRY_ABORTED == nil) { + SDLKeyboardEvent_ENTRY_ABORTED = [[SDLKeyboardEvent alloc] initWithValue:@"ENTRY_ABORTED"]; + } + return SDLKeyboardEvent_ENTRY_ABORTED; +} + ++ (SDLKeyboardEvent *)ENTRY_VOICE { + if (SDLKeyboardEvent_ENTRY_VOICE == nil) { + SDLKeyboardEvent_ENTRY_VOICE = [[SDLKeyboardEvent alloc] initWithValue:@"ENTRY_VOICE"]; + } + return SDLKeyboardEvent_ENTRY_VOICE; +} + +@end diff --git a/SmartDeviceLink/SDLKeyboardLayout.h b/SmartDeviceLink/SDLKeyboardLayout.h new file mode 100644 index 000000000..042caf9d0 --- /dev/null +++ b/SmartDeviceLink/SDLKeyboardLayout.h @@ -0,0 +1,33 @@ +// SDLKeyboardLayout.h +// + + +#import "SDLEnum.h" + +/** Enumeration listing possible keyboard layouts + * + *Since SmartDeviceLink 3.0 + * + */ +@interface SDLKeyboardLayout : SDLEnum { +} + ++ (SDLKeyboardLayout *)valueOf:(NSString *)value; ++ (NSArray *)values; +/** QWERTY layout (the name comes from the first six keys
    appearing on the top left letter row of the keyboard and read from left to right) + * + */ ++ (SDLKeyboardLayout *)QWERTY; + +/** QWERTZ layout (the name comes from the first six keys
    appearing on the top left letter row of the keyboard and read from left to right) + * + */ ++ (SDLKeyboardLayout *)QWERTZ; + +/** AZERTY layout (the name comes from the first six keys
    appearing on the top left letter row of the keyboard and read from left to right) + * + */ + ++ (SDLKeyboardLayout *)AZERTY; + +@end diff --git a/SmartDeviceLink/SDLKeyboardLayout.m b/SmartDeviceLink/SDLKeyboardLayout.m new file mode 100644 index 000000000..700bd2622 --- /dev/null +++ b/SmartDeviceLink/SDLKeyboardLayout.m @@ -0,0 +1,56 @@ +// SDLKeyboardLayout.m +// + + +#import "SDLKeyboardLayout.h" + +SDLKeyboardLayout *SDLKeyboardLayout_QWERTY = nil; +SDLKeyboardLayout *SDLKeyboardLayout_QWERTZ = nil; +SDLKeyboardLayout *SDLKeyboardLayout_AZERTY = nil; + +NSArray *SDLKeyboardLayout_values = nil; + +@implementation SDLKeyboardLayout + ++ (SDLKeyboardLayout *)valueOf:(NSString *)value { + for (SDLKeyboardLayout *item in SDLKeyboardLayout.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLKeyboardLayout_values == nil) { + SDLKeyboardLayout_values = @[ + SDLKeyboardLayout.QWERTY, + SDLKeyboardLayout.QWERTZ, + SDLKeyboardLayout.AZERTY, + ]; + } + return SDLKeyboardLayout_values; +} + ++ (SDLKeyboardLayout *)QWERTY { + if (SDLKeyboardLayout_QWERTY == nil) { + SDLKeyboardLayout_QWERTY = [[SDLKeyboardLayout alloc] initWithValue:@"QWERTY"]; + } + return SDLKeyboardLayout_QWERTY; +} + ++ (SDLKeyboardLayout *)QWERTZ { + if (SDLKeyboardLayout_QWERTZ == nil) { + SDLKeyboardLayout_QWERTZ = [[SDLKeyboardLayout alloc] initWithValue:@"QWERTZ"]; + } + return SDLKeyboardLayout_QWERTZ; +} + ++ (SDLKeyboardLayout *)AZERTY { + if (SDLKeyboardLayout_AZERTY == nil) { + SDLKeyboardLayout_AZERTY = [[SDLKeyboardLayout alloc] initWithValue:@"AZERTY"]; + } + return SDLKeyboardLayout_AZERTY; +} + +@end diff --git a/SmartDeviceLink/SDLKeyboardProperties.h b/SmartDeviceLink/SDLKeyboardProperties.h new file mode 100644 index 000000000..8215a8938 --- /dev/null +++ b/SmartDeviceLink/SDLKeyboardProperties.h @@ -0,0 +1,23 @@ +// SDLKeyboardProperties.h +// + +#import "SDLRPCMessage.h" + +@class SDLLanguage; +@class SDLKeyboardLayout; +@class SDLKeypressMode; + + +@interface SDLKeyboardProperties : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLLanguage *language; +@property (strong) SDLKeyboardLayout *keyboardLayout; +@property (strong) SDLKeypressMode *keypressMode; +@property (strong) NSMutableArray *limitedCharacterList; +@property (strong) NSString *autoCompleteText; + +@end diff --git a/SmartDeviceLink/SDLKeyboardProperties.m b/SmartDeviceLink/SDLKeyboardProperties.m new file mode 100644 index 000000000..896f3a99a --- /dev/null +++ b/SmartDeviceLink/SDLKeyboardProperties.m @@ -0,0 +1,101 @@ +// SDLKeyboardProperties.m +// + +#import "SDLKeyboardProperties.h" + +#import "SDLKeyboardLayout.h" +#import "SDLKeypressMode.h" +#import "SDLLanguage.h" +#import "SDLNames.h" + + +@implementation SDLKeyboardProperties + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setLanguage:(SDLLanguage *)language { + if (language != nil) { + [store setObject:language forKey:NAMES_language]; + } else { + [store removeObjectForKey:NAMES_language]; + } +} + +- (SDLLanguage *)language { + NSObject *obj = [store objectForKey:NAMES_language]; + if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { + return (SDLLanguage *)obj; + } else { + return [SDLLanguage valueOf:(NSString *)obj]; + } +} + +- (void)setKeyboardLayout:(SDLKeyboardLayout *)keyboardLayout { + if (keyboardLayout != nil) { + [store setObject:keyboardLayout forKey:NAMES_keyboardLayout]; + } else { + [store removeObjectForKey:NAMES_keyboardLayout]; + } +} + +- (SDLKeyboardLayout *)keyboardLayout { + NSObject *obj = [store objectForKey:NAMES_keyboardLayout]; + if (obj == nil || [obj isKindOfClass:SDLKeyboardLayout.class]) { + return (SDLKeyboardLayout *)obj; + } else { + return [SDLKeyboardLayout valueOf:(NSString *)obj]; + } +} + +- (void)setKeypressMode:(SDLKeypressMode *)keypressMode { + if (keypressMode != nil) { + [store setObject:keypressMode forKey:NAMES_keypressMode]; + } else { + [store removeObjectForKey:NAMES_keypressMode]; + } +} + +- (SDLKeypressMode *)keypressMode { + NSObject *obj = [store objectForKey:NAMES_keypressMode]; + if (obj == nil || [obj isKindOfClass:SDLKeypressMode.class]) { + return (SDLKeypressMode *)obj; + } else { + return [SDLKeypressMode valueOf:(NSString *)obj]; + } +} + +- (void)setLimitedCharacterList:(NSMutableArray *)limitedCharacterList { + if (limitedCharacterList != nil) { + [store setObject:limitedCharacterList forKey:NAMES_limitedCharacterList]; + } else { + [store removeObjectForKey:NAMES_limitedCharacterList]; + } +} + +- (NSMutableArray *)limitedCharacterList { + return [store objectForKey:NAMES_limitedCharacterList]; +} + +- (void)setAutoCompleteText:(NSString *)autoCompleteText { + if (autoCompleteText != nil) { + [store setObject:autoCompleteText forKey:NAMES_autoCompleteText]; + } else { + [store removeObjectForKey:NAMES_autoCompleteText]; + } +} + +- (NSString *)autoCompleteText { + return [store objectForKey:NAMES_autoCompleteText]; +} + +@end diff --git a/SmartDeviceLink/SDLKeypressMode.h b/SmartDeviceLink/SDLKeypressMode.h new file mode 100644 index 000000000..1b4ad0fe1 --- /dev/null +++ b/SmartDeviceLink/SDLKeypressMode.h @@ -0,0 +1,35 @@ +// SDLKeypressMode.h +// + + +#import "SDLEnum.h" + +/** Enumeration listing possible keyboard events. + *

    + * Note: Depending on keypressMode value (from keyboardProperties structure of UI.SetGlobalProperties),
    HMI must send the onKeyboardInput notification with the following data:
    + SINGLE_KEYPRESS,QUEUE_KEYPRESSES,RESEND_CURRENT_ENTRY. + * @since SmartDeviceLink 3.0 + * + */ +@interface SDLKeypressMode : SDLEnum { +} + ++ (SDLKeypressMode *)valueOf:(NSString *)value; ++ (NSArray *)values; + +/** SINGLE_KEYPRESS:
    Each and every User`s keypress must be reported (new notification for every newly entered single symbol). + * + */ ++ (SDLKeypressMode *)SINGLE_KEYPRESS; + +/** QUEUE_KEYPRESSES:
    The whole entry is reported only after the User submits it (by ‘Search’ button click displayed on touchscreen keyboard) + * + */ ++ (SDLKeypressMode *)QUEUE_KEYPRESSES; + +/** RESEND_CURRENT_ENTRY:
    The whole entry must be reported each and every time the User makes a new keypress
    (new notification with all previously entered symbols and a newly entered one appended). + * + */ ++ (SDLKeypressMode *)RESEND_CURRENT_ENTRY; + +@end diff --git a/SmartDeviceLink/SDLKeypressMode.m b/SmartDeviceLink/SDLKeypressMode.m new file mode 100644 index 000000000..9fa0034e7 --- /dev/null +++ b/SmartDeviceLink/SDLKeypressMode.m @@ -0,0 +1,56 @@ +// SDLKeypressMode.m +// + + +#import "SDLKeypressMode.h" + +SDLKeypressMode *SDLKeypressMode_SINGLE_KEYPRESS = nil; +SDLKeypressMode *SDLKeypressMode_QUEUE_KEYPRESSES = nil; +SDLKeypressMode *SDLKeypressMode_RESEND_CURRENT_ENTRY = nil; + +NSArray *SDLKeypressMode_values = nil; + +@implementation SDLKeypressMode + ++ (SDLKeypressMode *)valueOf:(NSString *)value { + for (SDLKeypressMode *item in SDLKeypressMode.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLKeypressMode_values == nil) { + SDLKeypressMode_values = @[ + SDLKeypressMode.SINGLE_KEYPRESS, + SDLKeypressMode.QUEUE_KEYPRESSES, + SDLKeypressMode.RESEND_CURRENT_ENTRY, + ]; + } + return SDLKeypressMode_values; +} + ++ (SDLKeypressMode *)SINGLE_KEYPRESS { + if (SDLKeypressMode_SINGLE_KEYPRESS == nil) { + SDLKeypressMode_SINGLE_KEYPRESS = [[SDLKeypressMode alloc] initWithValue:@"SINGLE_KEYPRESS"]; + } + return SDLKeypressMode_SINGLE_KEYPRESS; +} + ++ (SDLKeypressMode *)QUEUE_KEYPRESSES { + if (SDLKeypressMode_QUEUE_KEYPRESSES == nil) { + SDLKeypressMode_QUEUE_KEYPRESSES = [[SDLKeypressMode alloc] initWithValue:@"QUEUE_KEYPRESSES"]; + } + return SDLKeypressMode_QUEUE_KEYPRESSES; +} + ++ (SDLKeypressMode *)RESEND_CURRENT_ENTRY { + if (SDLKeypressMode_RESEND_CURRENT_ENTRY == nil) { + SDLKeypressMode_RESEND_CURRENT_ENTRY = [[SDLKeypressMode alloc] initWithValue:@"RESEND_CURRENT_ENTRY"]; + } + return SDLKeypressMode_RESEND_CURRENT_ENTRY; +} + +@end diff --git a/SmartDeviceLink/SDLLanguage.h b/SmartDeviceLink/SDLLanguage.h new file mode 100644 index 000000000..38d63746b --- /dev/null +++ b/SmartDeviceLink/SDLLanguage.h @@ -0,0 +1,150 @@ +// SDLLanguage.h +// + + +#import "SDLEnum.h" + +/** + * Specifies the language to be used for TTS, VR, displayed messages/menus + * + * @since SDL 1.0 + */ +@interface SDLLanguage : SDLEnum { +} + +/** + * @abstract Get a Langusge according to a String + * + * @param value The value of the string to get an object for + * + * @return The Language + */ ++ (SDLLanguage *)valueOf:(NSString *)value; + +/** + * @abstract store all possible Language values + * + * @return an array with all possible Language values inside + */ ++ (NSArray *)values; +/*! + @abstract English_US + */ ++ (SDLLanguage *)EN_US; + +/** + @abstract Spanish - Mexico + */ ++ (SDLLanguage *)ES_MX; + +/** + * @abstract French - Canada + */ ++ (SDLLanguage *)FR_CA; + +/** + * @abstract German - Germany + */ ++ (SDLLanguage *)DE_DE; + +/** + * @abstract Spanish - Spain + */ ++ (SDLLanguage *)ES_ES; + +/** + @abstract English - Great Britain + */ ++ (SDLLanguage *)EN_GB; + +/** + * @abstract Russian - Russia + */ ++ (SDLLanguage *)RU_RU; + +/** + * @abstract Turkish - Turkey + */ ++ (SDLLanguage *)TR_TR; + +/** + * @abstract Polish - Poland + */ ++ (SDLLanguage *)PL_PL; + +/** + * @abstract French - France + */ ++ (SDLLanguage *)FR_FR; + +/** + * @abstract Italian - Italy + */ ++ (SDLLanguage *)IT_IT; + +/** + * @abstract Swedish - Sweden + */ ++ (SDLLanguage *)SV_SE; + +/** + * @abstract Portuguese - Portugal + */ ++ (SDLLanguage *)PT_PT; + +/** + * @abstract Dutch (Standard) - Netherlands + */ ++ (SDLLanguage *)NL_NL; + +/** + * @abstract English - Australia + */ ++ (SDLLanguage *)EN_AU; + +/** + * @abstract Mandarin - China + */ ++ (SDLLanguage *)ZH_CN; + +/** + * @abstract Mandarin - Taiwan + */ ++ (SDLLanguage *)ZH_TW; + +/** + * @abstract Japanese - Japan + */ ++ (SDLLanguage *)JA_JP; + +/** + * @abstract Arabic - Saudi Arabia + */ ++ (SDLLanguage *)AR_SA; + +/** + * @abstract Korean - South Korea + */ ++ (SDLLanguage *)KO_KR; + +/** + * @abstract Portuguese - Brazil + */ ++ (SDLLanguage *)PT_BR; + +/** + * @abstract Czech - Czech Republic + */ ++ (SDLLanguage *)CS_CZ; + +/** + * @abstract Danish - Denmark + */ ++ (SDLLanguage *)DA_DK; + +/** + * @abstract Norwegian - Norway + */ ++ (SDLLanguage *)NO_NO; + +@end diff --git a/SmartDeviceLink/SDLLanguage.m b/SmartDeviceLink/SDLLanguage.m new file mode 100644 index 000000000..df43adf4c --- /dev/null +++ b/SmartDeviceLink/SDLLanguage.m @@ -0,0 +1,245 @@ +// SDLLanguage.m +// + + +#import "SDLLanguage.h" + +SDLLanguage *SDLLanguage_EN_US = nil; +SDLLanguage *SDLLanguage_ES_MX = nil; +SDLLanguage *SDLLanguage_FR_CA = nil; +SDLLanguage *SDLLanguage_DE_DE = nil; +SDLLanguage *SDLLanguage_ES_ES = nil; +SDLLanguage *SDLLanguage_EN_GB = nil; +SDLLanguage *SDLLanguage_RU_RU = nil; +SDLLanguage *SDLLanguage_TR_TR = nil; +SDLLanguage *SDLLanguage_PL_PL = nil; +SDLLanguage *SDLLanguage_FR_FR = nil; +SDLLanguage *SDLLanguage_IT_IT = nil; +SDLLanguage *SDLLanguage_SV_SE = nil; +SDLLanguage *SDLLanguage_PT_PT = nil; +SDLLanguage *SDLLanguage_NL_NL = nil; +SDLLanguage *SDLLanguage_EN_AU = nil; +SDLLanguage *SDLLanguage_ZH_CN = nil; +SDLLanguage *SDLLanguage_ZH_TW = nil; +SDLLanguage *SDLLanguage_JA_JP = nil; +SDLLanguage *SDLLanguage_AR_SA = nil; +SDLLanguage *SDLLanguage_KO_KR = nil; +SDLLanguage *SDLLanguage_PT_BR = nil; +SDLLanguage *SDLLanguage_CS_CZ = nil; +SDLLanguage *SDLLanguage_DA_DK = nil; +SDLLanguage *SDLLanguage_NO_NO = nil; + +NSArray *SDLLanguage_values = nil; + +@implementation SDLLanguage + ++ (SDLLanguage *)valueOf:(NSString *)value { + for (SDLLanguage *item in SDLLanguage.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLLanguage_values == nil) { + SDLLanguage_values = @[ + SDLLanguage.EN_US, + SDLLanguage.ES_MX, + SDLLanguage.FR_CA, + SDLLanguage.DE_DE, + SDLLanguage.ES_ES, + SDLLanguage.EN_GB, + SDLLanguage.RU_RU, + SDLLanguage.TR_TR, + SDLLanguage.PL_PL, + SDLLanguage.FR_FR, + SDLLanguage.IT_IT, + SDLLanguage.SV_SE, + SDLLanguage.PT_PT, + SDLLanguage.NL_NL, + SDLLanguage.EN_AU, + SDLLanguage.ZH_CN, + SDLLanguage.ZH_TW, + SDLLanguage.JA_JP, + SDLLanguage.AR_SA, + SDLLanguage.KO_KR, + SDLLanguage.PT_BR, + SDLLanguage.CS_CZ, + SDLLanguage.DA_DK, + SDLLanguage.NO_NO, + ]; + } + return SDLLanguage_values; +} + ++ (SDLLanguage *)EN_US { + if (SDLLanguage_EN_US == nil) { + SDLLanguage_EN_US = [[SDLLanguage alloc] initWithValue:@"EN-US"]; + } + return SDLLanguage_EN_US; +} + ++ (SDLLanguage *)ES_MX { + if (SDLLanguage_ES_MX == nil) { + SDLLanguage_ES_MX = [[SDLLanguage alloc] initWithValue:@"ES-MX"]; + } + return SDLLanguage_ES_MX; +} + ++ (SDLLanguage *)FR_CA { + if (SDLLanguage_FR_CA == nil) { + SDLLanguage_FR_CA = [[SDLLanguage alloc] initWithValue:@"FR-CA"]; + } + return SDLLanguage_FR_CA; +} + ++ (SDLLanguage *)DE_DE { + if (SDLLanguage_DE_DE == nil) { + SDLLanguage_DE_DE = [[SDLLanguage alloc] initWithValue:@"DE-DE"]; + } + return SDLLanguage_DE_DE; +} + ++ (SDLLanguage *)ES_ES { + if (SDLLanguage_ES_ES == nil) { + SDLLanguage_ES_ES = [[SDLLanguage alloc] initWithValue:@"ES-ES"]; + } + return SDLLanguage_ES_ES; +} + ++ (SDLLanguage *)EN_GB { + if (SDLLanguage_EN_GB == nil) { + SDLLanguage_EN_GB = [[SDLLanguage alloc] initWithValue:@"EN-GB"]; + } + return SDLLanguage_EN_GB; +} + ++ (SDLLanguage *)RU_RU { + if (SDLLanguage_RU_RU == nil) { + SDLLanguage_RU_RU = [[SDLLanguage alloc] initWithValue:@"RU-RU"]; + } + return SDLLanguage_RU_RU; +} + ++ (SDLLanguage *)TR_TR { + if (SDLLanguage_TR_TR == nil) { + SDLLanguage_TR_TR = [[SDLLanguage alloc] initWithValue:@"TR-TR"]; + } + return SDLLanguage_TR_TR; +} + ++ (SDLLanguage *)PL_PL { + if (SDLLanguage_PL_PL == nil) { + SDLLanguage_PL_PL = [[SDLLanguage alloc] initWithValue:@"PL-PL"]; + } + return SDLLanguage_PL_PL; +} + ++ (SDLLanguage *)FR_FR { + if (SDLLanguage_FR_FR == nil) { + SDLLanguage_FR_FR = [[SDLLanguage alloc] initWithValue:@"FR-FR"]; + } + return SDLLanguage_FR_FR; +} + ++ (SDLLanguage *)IT_IT { + if (SDLLanguage_IT_IT == nil) { + SDLLanguage_IT_IT = [[SDLLanguage alloc] initWithValue:@"IT-IT"]; + } + return SDLLanguage_IT_IT; +} + ++ (SDLLanguage *)SV_SE { + if (SDLLanguage_SV_SE == nil) { + SDLLanguage_SV_SE = [[SDLLanguage alloc] initWithValue:@"SV-SE"]; + } + return SDLLanguage_SV_SE; +} + ++ (SDLLanguage *)PT_PT { + if (SDLLanguage_PT_PT == nil) { + SDLLanguage_PT_PT = [[SDLLanguage alloc] initWithValue:@"PT-PT"]; + } + return SDLLanguage_PT_PT; +} + ++ (SDLLanguage *)NL_NL { + if (SDLLanguage_NL_NL == nil) { + SDLLanguage_NL_NL = [[SDLLanguage alloc] initWithValue:@"NL-NL"]; + } + return SDLLanguage_NL_NL; +} + ++ (SDLLanguage *)EN_AU { + if (SDLLanguage_EN_AU == nil) { + SDLLanguage_EN_AU = [[SDLLanguage alloc] initWithValue:@"EN-AU"]; + } + return SDLLanguage_EN_AU; +} + ++ (SDLLanguage *)ZH_CN { + if (SDLLanguage_ZH_CN == nil) { + SDLLanguage_ZH_CN = [[SDLLanguage alloc] initWithValue:@"ZH-CN"]; + } + return SDLLanguage_ZH_CN; +} + ++ (SDLLanguage *)ZH_TW { + if (SDLLanguage_ZH_TW == nil) { + SDLLanguage_ZH_TW = [[SDLLanguage alloc] initWithValue:@"ZH-TW"]; + } + return SDLLanguage_ZH_TW; +} + ++ (SDLLanguage *)JA_JP { + if (SDLLanguage_JA_JP == nil) { + SDLLanguage_JA_JP = [[SDLLanguage alloc] initWithValue:@"JA-JP"]; + } + return SDLLanguage_JA_JP; +} + ++ (SDLLanguage *)AR_SA { + if (SDLLanguage_AR_SA == nil) { + SDLLanguage_AR_SA = [[SDLLanguage alloc] initWithValue:@"AR-SA"]; + } + return SDLLanguage_AR_SA; +} + ++ (SDLLanguage *)KO_KR { + if (SDLLanguage_KO_KR == nil) { + SDLLanguage_KO_KR = [[SDLLanguage alloc] initWithValue:@"KO-KR"]; + } + return SDLLanguage_KO_KR; +} + ++ (SDLLanguage *)PT_BR { + if (SDLLanguage_PT_BR == nil) { + SDLLanguage_PT_BR = [[SDLLanguage alloc] initWithValue:@"PT-BR"]; + } + return SDLLanguage_PT_BR; +} + ++ (SDLLanguage *)CS_CZ { + if (SDLLanguage_CS_CZ == nil) { + SDLLanguage_CS_CZ = [[SDLLanguage alloc] initWithValue:@"CS-CZ"]; + } + return SDLLanguage_CS_CZ; +} + ++ (SDLLanguage *)DA_DK { + if (SDLLanguage_DA_DK == nil) { + SDLLanguage_DA_DK = [[SDLLanguage alloc] initWithValue:@"DA-DK"]; + } + return SDLLanguage_DA_DK; +} + ++ (SDLLanguage *)NO_NO { + if (SDLLanguage_NO_NO == nil) { + SDLLanguage_NO_NO = [[SDLLanguage alloc] initWithValue:@"NO-NO"]; + } + return SDLLanguage_NO_NO; +} + +@end diff --git a/SmartDeviceLink/SDLLayoutMode.h b/SmartDeviceLink/SDLLayoutMode.h new file mode 100644 index 000000000..9e0377f40 --- /dev/null +++ b/SmartDeviceLink/SDLLayoutMode.h @@ -0,0 +1,43 @@ +// SDLLayoutMode.h +// + + +#import "SDLEnum.h" + +/** + * For touchscreen interactions, the mode of how the choices are presented. + * + * @since SDL 3.0 + */ +@interface SDLLayoutMode : SDLEnum { +} + ++ (SDLLayoutMode *)valueOf:(NSString *)value; ++ (NSArray *)values; + +/** + * This mode causes the interaction to display the previous set of choices as icons. + */ ++ (SDLLayoutMode *)ICON_ONLY; + +/** + * This mode causes the interaction to display the previous set of choices as icons along with a search field in the HMI. + */ ++ (SDLLayoutMode *)ICON_WITH_SEARCH; + +/** + * This mode causes the interaction to display the previous set of choices as a list. + */ ++ (SDLLayoutMode *)LIST_ONLY; + +/** + * This mode causes the interaction to display the previous set of choices as a list along with a search field in the HMI. + */ ++ (SDLLayoutMode *)LIST_WITH_SEARCH; + +/** + * This mode causes the interaction to immediately display a keyboard entry through the HMI. + */ ++ (SDLLayoutMode *)KEYBOARD; + +@end diff --git a/SmartDeviceLink/SDLLayoutMode.m b/SmartDeviceLink/SDLLayoutMode.m new file mode 100644 index 000000000..343f06a0f --- /dev/null +++ b/SmartDeviceLink/SDLLayoutMode.m @@ -0,0 +1,74 @@ +// SDLLayoutMode.m +// + + +#import "SDLLayoutMode.h" + +SDLLayoutMode *SDLLayoutMode_ICON_ONLY = nil; +SDLLayoutMode *SDLLayoutMode_ICON_WITH_SEARCH = nil; +SDLLayoutMode *SDLLayoutMode_LIST_ONLY = nil; +SDLLayoutMode *SDLLayoutMode_LIST_WITH_SEARCH = nil; +SDLLayoutMode *SDLLayoutMode_KEYBOARD = nil; + +NSArray *SDLLayoutMode_values = nil; + +@implementation SDLLayoutMode + ++ (SDLLayoutMode *)valueOf:(NSString *)value { + for (SDLLayoutMode *item in SDLLayoutMode.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLLayoutMode_values == nil) { + SDLLayoutMode_values = @[ + SDLLayoutMode.ICON_ONLY, + SDLLayoutMode.ICON_WITH_SEARCH, + SDLLayoutMode.LIST_ONLY, + SDLLayoutMode.LIST_WITH_SEARCH, + SDLLayoutMode.KEYBOARD, + ]; + } + return SDLLayoutMode_values; +} + ++ (SDLLayoutMode *)ICON_ONLY { + if (SDLLayoutMode_ICON_ONLY == nil) { + SDLLayoutMode_ICON_ONLY = [[SDLLayoutMode alloc] initWithValue:@"ICON_ONLY"]; + } + return SDLLayoutMode_ICON_ONLY; +} + ++ (SDLLayoutMode *)ICON_WITH_SEARCH { + if (SDLLayoutMode_ICON_WITH_SEARCH == nil) { + SDLLayoutMode_ICON_WITH_SEARCH = [[SDLLayoutMode alloc] initWithValue:@"ICON_WITH_SEARCH"]; + } + return SDLLayoutMode_ICON_WITH_SEARCH; +} + ++ (SDLLayoutMode *)LIST_ONLY { + if (SDLLayoutMode_LIST_ONLY == nil) { + SDLLayoutMode_LIST_ONLY = [[SDLLayoutMode alloc] initWithValue:@"LIST_ONLY"]; + } + return SDLLayoutMode_LIST_ONLY; +} + ++ (SDLLayoutMode *)LIST_WITH_SEARCH { + if (SDLLayoutMode_LIST_WITH_SEARCH == nil) { + SDLLayoutMode_LIST_WITH_SEARCH = [[SDLLayoutMode alloc] initWithValue:@"LIST_WITH_SEARCH"]; + } + return SDLLayoutMode_LIST_WITH_SEARCH; +} + ++ (SDLLayoutMode *)KEYBOARD { + if (SDLLayoutMode_KEYBOARD == nil) { + SDLLayoutMode_KEYBOARD = [[SDLLayoutMode alloc] initWithValue:@"KEYBOARD"]; + } + return SDLLayoutMode_KEYBOARD; +} + +@end diff --git a/SmartDeviceLink/SDLListFiles.h b/SmartDeviceLink/SDLListFiles.h new file mode 100644 index 000000000..8a58d8639 --- /dev/null +++ b/SmartDeviceLink/SDLListFiles.h @@ -0,0 +1,27 @@ +// SDLListFiles.h +// + + +#import "SDLRPCRequest.h" + +/** + * Requests the current list of resident filenames for the registered app. Not + * supported on First generation SDL vehicles + *

    + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLListFiles : SDLRPCRequest { +} +/** + * Constructs a new SDLListFiles object + */ +- (instancetype)init; +/** + * Constructs a new SDLListFiles object indicated by the dictionary parameter + *

    + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; +@end diff --git a/SmartDeviceLink/SDLListFiles.m b/SmartDeviceLink/SDLListFiles.m new file mode 100644 index 000000000..a1110df1b --- /dev/null +++ b/SmartDeviceLink/SDLListFiles.m @@ -0,0 +1,23 @@ +// SDLListFiles.m +// + + +#import "SDLListFiles.h" + +#import "SDLNames.h" + +@implementation SDLListFiles + +- (instancetype)init { + if (self = [super initWithName:NAMES_ListFiles]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLListFilesResponse.h b/SmartDeviceLink/SDLListFilesResponse.h new file mode 100644 index 000000000..fd309770c --- /dev/null +++ b/SmartDeviceLink/SDLListFilesResponse.h @@ -0,0 +1,21 @@ +// SDLListFilesResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * SDLListFilesResponse is sent, when SDLListFiles has been called + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLListFilesResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSMutableArray *filenames; +@property (strong) NSNumber *spaceAvailable; + +@end diff --git a/SmartDeviceLink/SDLListFilesResponse.m b/SmartDeviceLink/SDLListFilesResponse.m new file mode 100644 index 000000000..2d58371d8 --- /dev/null +++ b/SmartDeviceLink/SDLListFilesResponse.m @@ -0,0 +1,47 @@ +// SDLListFilesResponse.m +// + + +#import "SDLListFilesResponse.h" + +#import "SDLNames.h" + +@implementation SDLListFilesResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_ListFiles]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setFilenames:(NSMutableArray *)filenames { + if (filenames != nil) { + [parameters setObject:filenames forKey:NAMES_filenames]; + } else { + [parameters removeObjectForKey:NAMES_filenames]; + } +} + +- (NSMutableArray *)filenames { + return [parameters objectForKey:NAMES_filenames]; +} + +- (void)setSpaceAvailable:(NSNumber *)spaceAvailable { + if (spaceAvailable != nil) { + [parameters setObject:spaceAvailable forKey:NAMES_spaceAvailable]; + } else { + [parameters removeObjectForKey:NAMES_spaceAvailable]; + } +} + +- (NSNumber *)spaceAvailable { + return [parameters objectForKey:NAMES_spaceAvailable]; +} + +@end diff --git a/SmartDeviceLink/SDLLockScreenManager.h b/SmartDeviceLink/SDLLockScreenManager.h new file mode 100644 index 000000000..ee8750e83 --- /dev/null +++ b/SmartDeviceLink/SDLLockScreenManager.h @@ -0,0 +1,21 @@ +// +// SDLLockScreenManager.h +// SmartDeviceLink +// + +#import + +@class SDLHMILevel; +@class SDLLockScreenStatus; +@class SDLOnLockScreenStatus; + + +@interface SDLLockScreenManager : NSObject + +@property (assign, nonatomic) BOOL userSelected; +@property (assign, nonatomic) BOOL driverDistracted; +@property (strong, nonatomic) SDLHMILevel *hmiLevel; +@property (strong, nonatomic, readonly) SDLLockScreenStatus *lockScreenStatus; +@property (strong, nonatomic, readonly) SDLOnLockScreenStatus *lockScreenStatusNotification; + +@end diff --git a/SmartDeviceLink/SDLLockScreenManager.m b/SmartDeviceLink/SDLLockScreenManager.m new file mode 100644 index 000000000..71bb82369 --- /dev/null +++ b/SmartDeviceLink/SDLLockScreenManager.m @@ -0,0 +1,95 @@ +// +// SDLLockScreenManager.m +// SmartDeviceLink +// + +#import "SDLLockScreenManager.h" + +#import "SDLHMILevel.h" +#import "SDLLockScreenStatus.h" +#import "SDLOnLockScreenStatus.h" + + +@interface SDLLockScreenManager () + +@property (assign, nonatomic) BOOL haveDriverDistractionStatus; + +@end + + +@implementation SDLLockScreenManager + +#pragma mark - Lifecycle + +- (instancetype)init { + self = [super init]; + if (self) { + _userSelected = NO; + _driverDistracted = NO; + _haveDriverDistractionStatus = NO; + } + return self; +} + + +#pragma mark - Getters / Setters +#pragma mark Custom setters + +- (void)setDriverDistracted:(BOOL)driverDistracted { + _driverDistracted = driverDistracted; + _haveDriverDistractionStatus = YES; +} + +- (void)setHmiLevel:(SDLHMILevel *)hmiLevel { + if (_hmiLevel != hmiLevel) { + _hmiLevel = hmiLevel; + } + + if ([hmiLevel isEqualToEnum:[SDLHMILevel FULL]] || [hmiLevel isEqualToEnum:[SDLHMILevel LIMITED]]) { + self.userSelected = YES; + } else if ([hmiLevel isEqualToEnum:[SDLHMILevel NONE]]) { + self.userSelected = NO; + } +} + + +#pragma mark Custom Getters + +- (SDLOnLockScreenStatus *)lockScreenStatusNotification { + SDLOnLockScreenStatus *notification = [[SDLOnLockScreenStatus alloc] init]; + notification.driverDistractionStatus = @(self.driverDistracted); + notification.hmiLevel = self.hmiLevel; + notification.userSelected = @(self.userSelected); + notification.lockScreenStatus = self.lockScreenStatus; + + return notification; +} + +- (SDLLockScreenStatus *)lockScreenStatus { + if (self.hmiLevel == nil || [self.hmiLevel isEqualToEnum:[SDLHMILevel NONE]]) { + // App is not active on the car + return [SDLLockScreenStatus OFF]; + } else if ([self.hmiLevel isEqualToEnum:[SDLHMILevel BACKGROUND]]) { + // App is in the background on the car + // The lockscreen depends entirely on if the user selected the app + if (self.userSelected) { + return [SDLLockScreenStatus REQUIRED]; + } else { + return [SDLLockScreenStatus OFF]; + } + } else if ([self.hmiLevel isEqualToEnum:[SDLHMILevel FULL]] || [self.hmiLevel isEqualToEnum:[SDLHMILevel LIMITED]]) { + // App is in the foreground on the car in some manner + if (self.haveDriverDistractionStatus && !self.driverDistracted) { + // We have the distraction status, and the driver is not distracted + return [SDLLockScreenStatus OPTIONAL]; + } else { + // We don't have the distraction status, and/or the driver is distracted + return [SDLLockScreenStatus REQUIRED]; + } + } else { + // This shouldn't be possible. + return [SDLLockScreenStatus OFF]; + } +} + +@end diff --git a/SmartDeviceLink/SDLLockScreenStatus.h b/SmartDeviceLink/SDLLockScreenStatus.h new file mode 100644 index 000000000..044aa7e3e --- /dev/null +++ b/SmartDeviceLink/SDLLockScreenStatus.h @@ -0,0 +1,24 @@ +// +// SDLLockScreenStatus.h +// SmartDeviceLink +// + + +#import "SDLEnum.h" + +@interface SDLLockScreenStatus : SDLEnum ++ (SDLLockScreenStatus *)valueOf:(NSString *)value; ++ (NSMutableArray *)values; +/** + * LockScreen is Not Required + */ ++ (SDLLockScreenStatus *)OFF; +/** + * LockScreen is Optional + */ ++ (SDLLockScreenStatus *)OPTIONAL; +/** + * LockScreen is Not Required + */ ++ (SDLLockScreenStatus *)REQUIRED; +@end diff --git a/SmartDeviceLink/SDLLockScreenStatus.m b/SmartDeviceLink/SDLLockScreenStatus.m new file mode 100644 index 000000000..8ef8a7d43 --- /dev/null +++ b/SmartDeviceLink/SDLLockScreenStatus.m @@ -0,0 +1,59 @@ +// +// SDLLockScreenStatus.m +// SmartDeviceLink +// + +#import "SDLLockScreenStatus.h" + +@implementation SDLLockScreenStatus + +SDLLockScreenStatus *SDLLockScreenStatus_OFF = nil; +SDLLockScreenStatus *SDLLockScreenStatus_OPTIONAL = nil; +SDLLockScreenStatus *SDLLockScreenStatus_REQUIRED = nil; + +NSArray *SDLLockScreenStatus_values = nil; + + ++ (SDLLockScreenStatus *)valueOf:(NSString *)value { + for (SDLLockScreenStatus *item in SDLLockScreenStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLLockScreenStatus_values == nil) { + SDLLockScreenStatus_values = @[ + SDLLockScreenStatus.OFF, + SDLLockScreenStatus.OPTIONAL, + SDLLockScreenStatus.REQUIRED, + ]; + } + return SDLLockScreenStatus_values; +} + ++ (SDLLockScreenStatus *)OFF { + if (SDLLockScreenStatus_OFF == nil) { + SDLLockScreenStatus_OFF = [[SDLLockScreenStatus alloc] initWithValue:@"OFF"]; + } + return SDLLockScreenStatus_OFF; +} + ++ (SDLLockScreenStatus *)OPTIONAL { + if (SDLLockScreenStatus_OPTIONAL == nil) { + SDLLockScreenStatus_OPTIONAL = [[SDLLockScreenStatus alloc] initWithValue:@"OPTIONAL"]; + } + return SDLLockScreenStatus_OPTIONAL; +} + ++ (SDLLockScreenStatus *)REQUIRED { + if (SDLLockScreenStatus_REQUIRED == nil) { + SDLLockScreenStatus_REQUIRED = [[SDLLockScreenStatus alloc] initWithValue:@"REQUIRED"]; + } + return SDLLockScreenStatus_REQUIRED; +} + + +@end diff --git a/SmartDeviceLink/SDLMaintenanceModeStatus.h b/SmartDeviceLink/SDLMaintenanceModeStatus.h new file mode 100644 index 000000000..cd399e20c --- /dev/null +++ b/SmartDeviceLink/SDLMaintenanceModeStatus.h @@ -0,0 +1,50 @@ +// SDLMaintenanceModeStatus.h +// + + +#import "SDLEnum.h" + +/** + * The SDLMaintenanceModeStatus class. + */ +@interface SDLMaintenanceModeStatus : SDLEnum { +} + +/** + * @abstract Maintenance Mode Status + * @param value The value of the string to get an object for + * @return SDLMaintenanceModeStatus + */ ++ (SDLMaintenanceModeStatus *)valueOf:(NSString *)value; + +/** + * @abstract declare an array that store all possible Maintenance Mode Status inside + * @return the array + */ ++ (NSArray *)values; + +/** + * @abstract Maintenance Mode Status : Normal + * @return the object with value of *NORMAL* + */ ++ (SDLMaintenanceModeStatus *)NORMAL; + +/** + * @abstract Maintenance Mode Status : Near + * @return the object with value of *NEAR* + */ ++ (SDLMaintenanceModeStatus *)NEAR; + +/** + * @abstract Maintenance Mode Status : Active + * @return the object with value of *ACTIVE* + */ ++ (SDLMaintenanceModeStatus *)ACTIVE; + +/** + * @abstract Maintenance Mode Status : Feature not present + * @return the object with value of *FEATURE_NOT_PRESENT* + */ ++ (SDLMaintenanceModeStatus *)FEATURE_NOT_PRESENT; + +@end diff --git a/SmartDeviceLink/SDLMaintenanceModeStatus.m b/SmartDeviceLink/SDLMaintenanceModeStatus.m new file mode 100644 index 000000000..d6e7f8ddd --- /dev/null +++ b/SmartDeviceLink/SDLMaintenanceModeStatus.m @@ -0,0 +1,65 @@ +// SDLMaintenanceModeStatus.m +// + + +#import "SDLMaintenanceModeStatus.h" + +SDLMaintenanceModeStatus *SDLMaintenanceModeStatus_NORMAL = nil; +SDLMaintenanceModeStatus *SDLMaintenanceModeStatus_NEAR = nil; +SDLMaintenanceModeStatus *SDLMaintenanceModeStatus_ACTIVE = nil; +SDLMaintenanceModeStatus *SDLMaintenanceModeStatus_FEATURE_NOT_PRESENT = nil; + +NSArray *SDLMaintenanceModeStatus_values = nil; + +@implementation SDLMaintenanceModeStatus + ++ (SDLMaintenanceModeStatus *)valueOf:(NSString *)value { + for (SDLMaintenanceModeStatus *item in SDLMaintenanceModeStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLMaintenanceModeStatus_values == nil) { + SDLMaintenanceModeStatus_values = @[ + SDLMaintenanceModeStatus.NORMAL, + SDLMaintenanceModeStatus.NEAR, + SDLMaintenanceModeStatus.ACTIVE, + SDLMaintenanceModeStatus.FEATURE_NOT_PRESENT, + ]; + } + return SDLMaintenanceModeStatus_values; +} + ++ (SDLMaintenanceModeStatus *)NORMAL { + if (SDLMaintenanceModeStatus_NORMAL == nil) { + SDLMaintenanceModeStatus_NORMAL = [[SDLMaintenanceModeStatus alloc] initWithValue:@"NORMAL"]; + } + return SDLMaintenanceModeStatus_NORMAL; +} + ++ (SDLMaintenanceModeStatus *)NEAR { + if (SDLMaintenanceModeStatus_NEAR == nil) { + SDLMaintenanceModeStatus_NEAR = [[SDLMaintenanceModeStatus alloc] initWithValue:@"NEAR"]; + } + return SDLMaintenanceModeStatus_NEAR; +} + ++ (SDLMaintenanceModeStatus *)ACTIVE { + if (SDLMaintenanceModeStatus_ACTIVE == nil) { + SDLMaintenanceModeStatus_ACTIVE = [[SDLMaintenanceModeStatus alloc] initWithValue:@"ACTIVE"]; + } + return SDLMaintenanceModeStatus_ACTIVE; +} + ++ (SDLMaintenanceModeStatus *)FEATURE_NOT_PRESENT { + if (SDLMaintenanceModeStatus_FEATURE_NOT_PRESENT == nil) { + SDLMaintenanceModeStatus_FEATURE_NOT_PRESENT = [[SDLMaintenanceModeStatus alloc] initWithValue:@"FEATURE_NOT_PRESENT"]; + } + return SDLMaintenanceModeStatus_FEATURE_NOT_PRESENT; +} + +@end diff --git a/SmartDeviceLink/SDLMediaClockFormat.h b/SmartDeviceLink/SDLMediaClockFormat.h new file mode 100644 index 000000000..12c8b8e16 --- /dev/null +++ b/SmartDeviceLink/SDLMediaClockFormat.h @@ -0,0 +1,154 @@ +// SDLMediaClockFormat.h +// + + +#import "SDLEnum.h" + +/** + * Indicates the format of the time displayed on the connected SDL unit. + * + * Format description follows the following nomenclature:
    + * Sp = Space
    + * | = or
    + * c = character
    + * + * @since SDL 1.0 + */ +@interface SDLMediaClockFormat : SDLEnum { +} + +/** + * @abstract Media Clock Format + * + * @param value The value of the string to get an object for + * + * @return SDLMediaClockFormat + */ ++ (SDLMediaClockFormat *)valueOf:(NSString *)value; + +/** + * @abstract declare an array that store all possible Media clock formats inside + * + * @return the array + */ ++ (NSArray *)values; + +/** + * @abstract Media clock format: Clock1 + * + * @discussion + *

      + *
    • maxHours = 19
    • + *
    • maxMinutes = 59
    • + *
    • maxSeconds = 59
    • + *
    + * + * @return The SDLMediaClockFormat object with value *CLOCK1* + */ ++ (SDLMediaClockFormat *)CLOCK1; + +/** + * @abstract Media clock format: Clock2 + * + * @discussion + *
      + *
    • maxHours = 59
    • + *
    • maxMinutes = 59
    • + *
    • maxSeconds = 59
    • + *
    + * + * @return The SDLMediaClockFormat object with value *CLOCK2* + */ ++ (SDLMediaClockFormat *)CLOCK2; + +/** + * @abstract Media clock format: Clock3 + * + * @discussion + *
      + *
    • maxHours = 9
    • + *
    • maxMinutes = 59
    • + *
    • maxSeconds = 59
    • + *
    + * + * @since SDL 2.0 + * @return The SDLMediaClockFormat object with value *CLOCK3* + */ ++ (SDLMediaClockFormat *)CLOCK3; + +/** + * @abstract Media clock format: ClockText1 + * + * @discussion + *
      + *
    • 5 characters possible
    • + *
    • Format: 1|sp c :|sp c c
    • + *
    • 1|sp : digit "1" or space
    • + *
    • c : character out of following character set: sp|0-9|[letters, see + * TypeII column in XLS.
    • + *
    • :|sp : colon or space
    • + *
    • used for Type II headunit
    • + *
    + * + * @return The SDLMediaClockFormat object with value *CLOCKTEXT1* + */ ++ (SDLMediaClockFormat *)CLOCKTEXT1; + +/** + * @abstract Media clock format: ClockText2 + * + * @discussion + *
      + *
    • 5 characters possible
    • + *
    • Format: 1|sp c :|sp c c
    • + *
    • 1|sp : digit "1" or space
    • + *
    • c : character out of following character set: sp|0-9|[letters, see + * CID column in XLS.
    • + *
    • :|sp : colon or space
    • + *
    • used for CID headunit
    • + *
    + * difference between CLOCKTEXT1 and CLOCKTEXT2 is the supported character + * set + * + * @return The SDLMediaClockFormat object with value *CLOCKTEXT2* + */ ++ (SDLMediaClockFormat *)CLOCKTEXT2; + +/** + * @abstract Media clock format: ClockText3 + * + * @discussion + *
      + *
    • 6 chars possible
    • + *
    • Format: 1|sp c c :|sp c c
    • + *
    • 1|sp : digit "1" or space
    • + *
    • c : character out of following character set: sp|0-9|[letters, see + * Type 5 column in XLS].
    • + *
    • :|sp : colon or space
    • + *
    • used for Type V headunit
    • + *
    + * difference between CLOCKTEXT1 and CLOCKTEXT2 is the supported character + * set + * + * @return The SDLMediaClockFormat object with value *CLOCKTEXT3* + */ ++ (SDLMediaClockFormat *)CLOCKTEXT3; + +/** + * @abstract Media clock format: ClockText4 + * + * @discussion + *
      + *
    • 6 chars possible
    • + *
    • Format: c :|sp c c : c c
    • + *
    • :|sp : colon or space
    • + *
    • c : character out of following character set: sp|0-9|[letters]
    • + *
    • used for MFD3/4/5 headunits
    • + *
    + * + * @since SDL 2.0 + * @return The SDLMediaClockFormat object with value *CLOCKTEXT4* + */ ++ (SDLMediaClockFormat *)CLOCKTEXT4; + +@end diff --git a/SmartDeviceLink/SDLMediaClockFormat.m b/SmartDeviceLink/SDLMediaClockFormat.m new file mode 100644 index 000000000..20ddb8005 --- /dev/null +++ b/SmartDeviceLink/SDLMediaClockFormat.m @@ -0,0 +1,92 @@ +// SDLMediaClockFormat.m +// + + +#import "SDLMediaClockFormat.h" + +SDLMediaClockFormat *SDLMediaClockFormat_CLOCK1 = nil; +SDLMediaClockFormat *SDLMediaClockFormat_CLOCK2 = nil; +SDLMediaClockFormat *SDLMediaClockFormat_CLOCK3 = nil; +SDLMediaClockFormat *SDLMediaClockFormat_CLOCKTEXT1 = nil; +SDLMediaClockFormat *SDLMediaClockFormat_CLOCKTEXT2 = nil; +SDLMediaClockFormat *SDLMediaClockFormat_CLOCKTEXT3 = nil; +SDLMediaClockFormat *SDLMediaClockFormat_CLOCKTEXT4 = nil; + +NSArray *SDLMediaClockFormat_values = nil; + +@implementation SDLMediaClockFormat + ++ (SDLMediaClockFormat *)valueOf:(NSString *)value { + for (SDLMediaClockFormat *item in SDLMediaClockFormat.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLMediaClockFormat_values == nil) { + SDLMediaClockFormat_values = @[ + SDLMediaClockFormat.CLOCK1, + SDLMediaClockFormat.CLOCK2, + SDLMediaClockFormat.CLOCK3, + SDLMediaClockFormat.CLOCKTEXT1, + SDLMediaClockFormat.CLOCKTEXT2, + SDLMediaClockFormat.CLOCKTEXT3, + SDLMediaClockFormat.CLOCKTEXT4, + ]; + } + return SDLMediaClockFormat_values; +} + ++ (SDLMediaClockFormat *)CLOCK1 { + if (SDLMediaClockFormat_CLOCK1 == nil) { + SDLMediaClockFormat_CLOCK1 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCK1"]; + } + return SDLMediaClockFormat_CLOCK1; +} + ++ (SDLMediaClockFormat *)CLOCK2 { + if (SDLMediaClockFormat_CLOCK2 == nil) { + SDLMediaClockFormat_CLOCK2 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCK2"]; + } + return SDLMediaClockFormat_CLOCK2; +} + ++ (SDLMediaClockFormat *)CLOCK3 { + if (SDLMediaClockFormat_CLOCK3 == nil) { + SDLMediaClockFormat_CLOCK3 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCK3"]; + } + return SDLMediaClockFormat_CLOCK3; +} + ++ (SDLMediaClockFormat *)CLOCKTEXT1 { + if (SDLMediaClockFormat_CLOCKTEXT1 == nil) { + SDLMediaClockFormat_CLOCKTEXT1 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCKTEXT1"]; + } + return SDLMediaClockFormat_CLOCKTEXT1; +} + ++ (SDLMediaClockFormat *)CLOCKTEXT2 { + if (SDLMediaClockFormat_CLOCKTEXT2 == nil) { + SDLMediaClockFormat_CLOCKTEXT2 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCKTEXT2"]; + } + return SDLMediaClockFormat_CLOCKTEXT2; +} + ++ (SDLMediaClockFormat *)CLOCKTEXT3 { + if (SDLMediaClockFormat_CLOCKTEXT3 == nil) { + SDLMediaClockFormat_CLOCKTEXT3 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCKTEXT3"]; + } + return SDLMediaClockFormat_CLOCKTEXT3; +} + ++ (SDLMediaClockFormat *)CLOCKTEXT4 { + if (SDLMediaClockFormat_CLOCKTEXT4 == nil) { + SDLMediaClockFormat_CLOCKTEXT4 = [[SDLMediaClockFormat alloc] initWithValue:@"CLOCKTEXT4"]; + } + return SDLMediaClockFormat_CLOCKTEXT4; +} + +@end diff --git a/SmartDeviceLink/SDLMenuParams.h b/SmartDeviceLink/SDLMenuParams.h new file mode 100644 index 000000000..14f51e390 --- /dev/null +++ b/SmartDeviceLink/SDLMenuParams.h @@ -0,0 +1,56 @@ +// SDLMenuParams.h +// + + +#import "SDLRPCMessage.h" + +/** + * Used when adding a sub menu to an application menu or existing sub menu. + * + * @since SDL 1.0 + */ +@interface SDLMenuParams : SDLRPCStruct { +} + +/** + * Constructs a newly allocated SDLMenuParams object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLMenuParams object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + + +/** + * @abstract the unique ID of an existing submenu to which a command will be added + * @discussion If this element is not provided, the command will be added to the top level of the Command Menu. + * + * Optional, Integer, 0 - 2,000,000,000 + */ +@property (strong) NSNumber *parentID; + +/** + * @abstract The position within the items of the parent Command Menu + * @discussion 0 will insert at the front, 1 will insert after the first existing element, etc. + * + * Position of any submenu will always be located before the return and exit options. + * + * * If position is greater or equal than the number of items in the parent Command Menu, the sub menu will be appended to the end of that Command Menu. + * + * * If this element is omitted, the entry will be added at the end of the parent menu. + * + * Optional, Integer, 0 - 1000 + */ +@property (strong) NSNumber *position; + +/** + * @abstract the menu name which appears in menu, representing this command + * + * Required, max length 500 characters + */ +@property (strong) NSString *menuName; + +@end diff --git a/SmartDeviceLink/SDLMenuParams.m b/SmartDeviceLink/SDLMenuParams.m new file mode 100644 index 000000000..84fb595a8 --- /dev/null +++ b/SmartDeviceLink/SDLMenuParams.m @@ -0,0 +1,59 @@ +// SDLMenuParams.m +// + + +#import "SDLMenuParams.h" + +#import "SDLNames.h" + +@implementation SDLMenuParams + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setParentID:(NSNumber *)parentID { + if (parentID != nil) { + [store setObject:parentID forKey:NAMES_parentID]; + } else { + [store removeObjectForKey:NAMES_parentID]; + } +} + +- (NSNumber *)parentID { + return [store objectForKey:NAMES_parentID]; +} + +- (void)setPosition:(NSNumber *)position { + if (position != nil) { + [store setObject:position forKey:NAMES_position]; + } else { + [store removeObjectForKey:NAMES_position]; + } +} + +- (NSNumber *)position { + return [store objectForKey:NAMES_position]; +} + +- (void)setMenuName:(NSString *)menuName { + if (menuName != nil) { + [store setObject:menuName forKey:NAMES_menuName]; + } else { + [store removeObjectForKey:NAMES_menuName]; + } +} + +- (NSString *)menuName { + return [store objectForKey:NAMES_menuName]; +} + +@end diff --git a/SmartDeviceLink/SDLMyKey.h b/SmartDeviceLink/SDLMyKey.h new file mode 100644 index 000000000..ff039e582 --- /dev/null +++ b/SmartDeviceLink/SDLMyKey.h @@ -0,0 +1,17 @@ +// SDLMyKey.h +// + +#import "SDLRPCMessage.h" + +@class SDLVehicleDataStatus; + + +@interface SDLMyKey : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLVehicleDataStatus *e911Override; + +@end diff --git a/SmartDeviceLink/SDLMyKey.m b/SmartDeviceLink/SDLMyKey.m new file mode 100644 index 000000000..ec4e5ef95 --- /dev/null +++ b/SmartDeviceLink/SDLMyKey.m @@ -0,0 +1,41 @@ +// SDLMyKey.m +// + +#import "SDLMyKey.h" + +#import "SDLNames.h" +#import "SDLVehicleDataStatus.h" + + +@implementation SDLMyKey + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setE911Override:(SDLVehicleDataStatus *)e911Override { + if (e911Override != nil) { + [store setObject:e911Override forKey:NAMES_e911Override]; + } else { + [store removeObjectForKey:NAMES_e911Override]; + } +} + +- (SDLVehicleDataStatus *)e911Override { + NSObject *obj = [store objectForKey:NAMES_e911Override]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataStatus.class]) { + return (SDLVehicleDataStatus *)obj; + } else { + return [SDLVehicleDataStatus valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLNames.h b/SmartDeviceLink/SDLNames.h new file mode 100644 index 000000000..84bc142ad --- /dev/null +++ b/SmartDeviceLink/SDLNames.h @@ -0,0 +1,406 @@ +// SDLNames.h +// + + +#define NAMES_accPedalPosition @"accPedalPosition" +#define NAMES_actual @"actual" +#define NAMES_AddCommand @"AddCommand" +#define NAMES_addressLines @"addressLines" +#define NAMES_AddSubMenu @"AddSubMenu" +#define NAMES_airbagStatus @"airbagStatus" +#define NAMES_Alert @"Alert" +#define NAMES_AlertManeuver @"AlertManeuver" +#define NAMES_alertText1 @"alertText1" +#define NAMES_alertText2 @"alertText2" +#define NAMES_alertText3 @"alertText3" +#define NAMES_alignment @"alignment" +#define NAMES_allowed @"allowed" +#define NAMES_altitude @"altitude" +#define NAMES_ambientLightSensorStatus @"ambientLightSensorStatus" +#define NAMES_ambientLightStatus @"ambientLightStatus" +#define NAMES_appHMIType @"appHMIType" +#define NAMES_appID @"appID" +#define NAMES_appName @"appName" +#define NAMES_audioPassThruCapabilities @"audioPassThruCapabilities" +#define NAMES_audioPassThruDisplayText1 @"audioPassThruDisplayText1" +#define NAMES_audioPassThruDisplayText2 @"audioPassThruDisplayText2" +#define NAMES_audioStreamingState @"audioStreamingState" +#define NAMES_audioType @"audioType" +#define NAMES_autoCompleteText @"autoCompleteText" +#define NAMES_auxECallNotificationStatus @"auxECallNotificationStatus" +#define NAMES_battLevelStatus @"battLevelStatus" +#define NAMES_beltStatus @"beltStatus" +#define NAMES_bitsPerSample @"bitsPerSample" +#define NAMES_bodyInformation @"bodyInformation" +#define NAMES_btIconOn @"btIconOn" +#define NAMES_bulkData @"bulkData" +#define NAMES_buttonCapabilities @"buttonCapabilities" +#define NAMES_buttonEventMode @"buttonEventMode" +#define NAMES_buttonName @"buttonName" +#define NAMES_buttonPressMode @"buttonPressMode" +#define NAMES_c @"c" +#define NAMES_callActive @"callActive" +#define NAMES_carModeStatus @"carModeStatus" +#define NAMES_carrier @"carrier" +#define NAMES_ChangeRegistration @"ChangeRegistration" +#define NAMES_characterSet @"characterSet" +#define NAMES_choiceID @"choiceID" +#define NAMES_choiceSet @"choiceSet" +#define NAMES_clusterModes @"clusterModes" +#define NAMES_clusterModeStatus @"clusterModeStatus" +#define NAMES_cmdIcon @"cmdIcon" +#define NAMES_cmdID @"cmdID" +#define NAMES_compassDirection @"compassDirection" +#define NAMES_correlationID @"correlationID" +#define NAMES_CreateInteractionChoiceSet @"CreateInteractionChoiceSet" +#define NAMES_customButtonID @"customButtonID" +#define NAMES_customPresets @"customPresets" +#define NAMES_data @"data" +#define NAMES_dataResult @"dataResult" +#define NAMES_dataType @"dataType" +#define NAMES_DeleteCommand @"DeleteCommand" +#define NAMES_DeleteFile @"DeleteFile" +#define NAMES_DeleteInteractionChoiceSet @"DeleteInteractionChoiceSet" +#define NAMES_DeleteSubMenu @"DeleteSubMenu" +#define NAMES_deviceInfo @"deviceInfo" +#define NAMES_deviceStatus @"deviceStatus" +#define NAMES_DiagnosticMessage @"DiagnosticMessage" +#define NAMES_didLocation @"didLocation" +#define NAMES_didResult @"didResult" +#define NAMES_dimension @"dimension" +#define NAMES_displayCapabilities @"displayCapabilities" +#define NAMES_displayLayout @"displayLayout" +#define NAMES_displayType @"displayType" +#define NAMES_distanceToEmpty @"distanceToEmpty" +#define NAMES_distanceToManeuver @"distanceToManeuver" +#define NAMES_distanceToManeuverScale @"distanceToManeuverScale" +#define NAMES_doublePressAvailable @"doublePressAvailable" +#define NAMES_driverAirbagDeployed @"driverAirbagDeployed" +#define NAMES_driverBeltDeployed @"driverBeltDeployed" +#define NAMES_driverBraking @"driverBraking" +#define NAMES_driverBuckleBelted @"driverBuckleBelted" +#define NAMES_driverCurtainAirbagDeployed @"driverCurtainAirbagDeployed" +#define NAMES_driverDoorAjar @"driverDoorAjar" +#define NAMES_driverKneeAirbagDeployed @"driverKneeAirbagDeployed" +#define NAMES_driverSideAirbagDeployed @"driverSideAirbagDeployed" +#define NAMES_dtc @"dtc" +#define NAMES_dtcMask @"dtcMask" +#define NAMES_duration @"duration" +#define NAMES_e911Override @"e911Override" +#define NAMES_eCallConfirmationStatus @"eCallConfirmationStatus" +#define NAMES_eCallEventActive @"eCallEventActive" +#define NAMES_eCallInfo @"eCallInfo" +#define NAMES_eCallNotificationStatus @"eCallNotificationStatus" +#define NAMES_ecuHeader @"ecuHeader" +#define NAMES_ecuName @"ecuName" +#define NAMES_emergencyEvent @"emergencyEvent" +#define NAMES_emergencyEventType @"emergencyEventType" +#define NAMES_EncodedSyncPData @"EncodedSyncPData" +#define NAMES_EndAudioPassThru @"EndAudioPassThru" +#define NAMES_endTime @"endTime" +#define NAMES_engineTorque @"engineTorque" +#define NAMES_eta @"eta" +#define NAMES_event @"event" +#define NAMES_externalTemperature @"externalTemperature" +#define NAMES_fileName @"fileName" +#define NAMES_filenames @"filenames" +#define NAMES_fileType @"fileType" +#define NAMES_firmwareRev @"firmwareRev" +#define NAMES_fuelCutoffStatus @"fuelCutoffStatus" +#define NAMES_fuelLevel @"fuelLevel" +#define NAMES_fuelLevel_State @"fuelLevel_State" +#define NAMES_fuelMaintenanceMode @"fuelMaintenanceMode" +#define NAMES_GenericResponse @"GenericResponse" +#define NAMES_GetDTCs @"GetDTCs" +#define NAMES_GetVehicleData @"GetVehicleData" +#define NAMES_gps @"gps" +#define NAMES_graphic @"graphic" +#define NAMES_graphicSupported @"graphicSupported" +#define NAMES_hardware @"hardware" +#define NAMES_hashID @"hashID" +#define NAMES_hdop @"hdop" +#define NAMES_heading @"heading" +#define NAMES_headLampStatus @"headLampStatus" +#define NAMES_helpPrompt @"helpPrompt" +#define NAMES_highBeamsOn @"highBeamsOn" +#define NAMES_hmiDisplayLanguage @"hmiDisplayLanguage" +#define NAMES_hmiDisplayLanguageDesired @"hmiDisplayLanguageDesired" +#define NAMES_hmiLevel @"hmiLevel" +#define NAMES_hmiPermissions @"hmiPermissions" +#define NAMES_hmiCapabilities @"hmiCapabilities" +#define NAMES_hmiZoneCapabilities @"hmiZoneCapabilities" +#define NAMES_hours @"hours" +#define NAMES_id @"id" +#define NAMES_ignitionStableStatus @"ignitionStableStatus" +#define NAMES_ignitionStatus @"ignitionStatus" +#define NAMES_image @"image" +#define NAMES_imageFields @"imageFields" +#define NAMES_imageResolution @"imageResolution" +#define NAMES_imageSupported @"imageSupported" +#define NAMES_imageType @"imageType" +#define NAMES_imageTypeSupported @"imageTypeSupported" +#define NAMES_info @"info" +#define NAMES_initialPrompt @"initialPrompt" +#define NAMES_initialText @"initialText" +#define NAMES_innerLeftRear @"innerLeftRear" +#define NAMES_innerRightRear @"innerRightRear" +#define NAMES_instantFuelConsumption @"instantFuelConsumption" +#define NAMES_interactionChoiceSetID @"interactionChoiceSetID" +#define NAMES_interactionChoiceSetIDList @"interactionChoiceSetIDList" +#define NAMES_interactionLayout @"interactionLayout" +#define NAMES_interactionMode @"interactionMode" +#define NAMES_isHighlighted @"isHighlighted" +#define NAMES_isMediaApplication @"isMediaApplication" +#define NAMES_keyboardLayout @"keyboardLayout" +#define NAMES_keyboardProperties @"keyboardProperties" +#define NAMES_keypressMode @"keypressMode" +#define NAMES_language @"language" +#define NAMES_languageDesired @"languageDesired" +#define NAMES_latitudeDegrees @"latitudeDegrees" +#define NAMES_leftFront @"leftFront" +#define NAMES_leftRear @"leftRear" +#define NAMES_leftRearInflatableBelted @"leftRearInflatableBelted" +#define NAMES_leftRow2BuckleBelted @"leftRow2BuckleBelted" +#define NAMES_leftRow3BuckleBelted @"leftRow3BuckleBelted" +#define NAMES_length @"length" +#define NAMES_limitedCharacterList @"limitedCharacterList" +#define NAMES_ListFiles @"ListFiles" +#define NAMES_locationDescription @"locationDescription" +#define NAMES_locationImage @"locationImage" +#define NAMES_locationName @"locationName" +#define NAMES_longitudeDegrees @"longitudeDegrees" +#define NAMES_longPress @"longPress" +#define NAMES_longPressAvailable @"longPressAvailable" +#define NAMES_lowBeamsOn @"lowBeamsOn" +#define NAMES_mainField1 @"mainField1" +#define NAMES_mainField2 @"mainField2" +#define NAMES_mainField3 @"mainField3" +#define NAMES_mainField4 @"mainField4" +#define NAMES_majorVersion @"majorVersion" +#define NAMES_make @"make" +#define NAMES_maneuverComplete @"maneuverComplete" +#define NAMES_manualTextEntry @"manualTextEntry" +#define NAMES_maxDuration @"maxDuration" +#define NAMES_maximumChangeVelocity @"maximumChangeVelocity" +#define NAMES_maxNumberRFCOMMPorts @"maxNumberRFCOMMPorts" +#define NAMES_mediaClock @"mediaClock" +#define NAMES_mediaClockFormats @"mediaClockFormats" +#define NAMES_mediaTrack @"mediaTrack" +#define NAMES_menuIcon @"menuIcon" +#define NAMES_menuID @"menuID" +#define NAMES_menuName @"menuName" +#define NAMES_menuParams @"menuParams" +#define NAMES_menuTitle @"menuTitle" +#define NAMES_messageData @"messageData" +#define NAMES_messageDataResult @"messageDataResult" +#define NAMES_messageLength @"messageLength" +#define NAMES_middleRow1BeltDeployed @"middleRow1BeltDeployed" +#define NAMES_middleRow1BuckleBelted @"middleRow1BuckleBelted" +#define NAMES_middleRow2BuckleBelted @"middleRow2BuckleBelted" +#define NAMES_middleRow3BuckleBelted @"middleRow3BuckleBelted" +#define NAMES_minorVersion @"minorVersion" +#define NAMES_minutes @"minutes" +#define NAMES_model @"model" +#define NAMES_modelYear @"modelYear" +#define NAMES_monoAudioOutputMuted @"monoAudioOutputMuted" +#define NAMES_multipleEvents @"multipleEvents" +#define NAMES_multiTouchAvailable @"multiTouchAvailable" +#define NAMES_muteAudio @"muteAudio" +#define NAMES_myKey @"myKey" +#define NAMES_name @"name" +#define NAMES_navigation @"navigation" +#define NAMES_navigationText @"navigationText" +#define NAMES_navigationText1 @"navigationText1" +#define NAMES_navigationText2 @"navigationText2" +#define NAMES_nextTurnIcon @"nextTurnIcon" +#define NAMES_ngnMediaScreenAppName @"ngnMediaScreenAppName" +#define NAMES_notification @"notification" +#define NAMES_number @"number" +#define NAMES_numCustomPresetsAvailable @"numCustomPresetsAvailable" +#define NAMES_numTicks @"numTicks" +#define NAMES_odometer @"odometer" +#define NAMES_offset @"offset" +#define NAMES_OnAppInterfaceUnregistered @"OnAppInterfaceUnregistered" +#define NAMES_OnAudioPassThru @"OnAudioPassThru" +#define NAMES_OnButtonEvent @"OnButtonEvent" +#define NAMES_OnButtonPress @"OnButtonPress" +#define NAMES_OnCommand @"OnCommand" +#define NAMES_OnDriverDistraction @"OnDriverDistraction" +#define NAMES_OnEncodedSyncPData @"OnEncodedSyncPData" +#define NAMES_OnHashChange @"OnHashChange" +#define NAMES_OnHMIStatus @"OnHMIStatus" +#define NAMES_OnKeyboardInput @"OnKeyboardInput" +#define NAMES_OnLanguageChange @"OnLanguageChange" +#define NAMES_OnPermissionsChange @"OnPermissionsChange" +#define NAMES_onScreenPresetsAvailable @"onScreenPresetsAvailable" +#define NAMES_OnSyncPData @"OnSyncPData" +#define NAMES_OnSystemRequest @"OnSystemRequest" +#define NAMES_OnTBTClientState @"OnTBTClientState" +#define NAMES_OnTouchEvent @"OnTouchEvent" +#define NAMES_OnVehicleData @"OnVehicleData" +#define NAMES_operation_name @"name" +#define NAMES_os @"os" +#define NAMES_osVersion @"osVersion" +#define NAMES_parameterPermissions @"parameterPermissions" +#define NAMES_parameters @"parameters" +#define NAMES_parentID @"parentID" +#define NAMES_parkBrakeActive @"parkBrakeActive" +#define NAMES_passengerAirbagDeployed @"passengerAirbagDeployed" +#define NAMES_passengerBeltDeployed @"passengerBeltDeployed" +#define NAMES_passengerBuckleBelted @"passengerBuckleBelted" +#define NAMES_passengerChildDetected @"passengerChildDetected" +#define NAMES_passengerCurtainAirbagDeployed @"passengerCurtainAirbagDeployed" +#define NAMES_passengerDoorAjar @"passengerDoorAjar" +#define NAMES_passengerKneeAirbagDeployed @"passengerKneeAirbagDeployed" +#define NAMES_passengerSideAirbagDeployed @"passengerSideAirbagDeployed" +#define NAMES_pdop @"pdop" +#define NAMES_PerformAudioPassThru @"PerformAudioPassThru" +#define NAMES_PerformInteraction @"PerformInteraction" +#define NAMES_permissionItem @"permissionItem" +#define NAMES_persistentFile @"persistentFile" +#define NAMES_phoneCall @"phoneCall" +#define NAMES_phoneNumber @"phoneNumber" +#define NAMES_phoneRoaming @"phoneRoaming" +#define NAMES_playTone @"playTone" +#define NAMES_position @"position" +#define NAMES_powerModeActive @"powerModeActive" +#define NAMES_powerModeQualificationStatus @"powerModeQualificationStatus" +#define NAMES_powerModeStatus @"powerModeStatus" +#define NAMES_prerecordedSpeech @"prerecordedSpeech" +#define NAMES_presetBankCapabilities @"presetBankCapabilities" +#define NAMES_pressAvailable @"pressAvailable" +#define NAMES_pressure @"pressure" +#define NAMES_pressureTelltale @"pressureTelltale" +#define NAMES_primaryAudioSource @"primaryAudioSource" +#define NAMES_prndl @"prndl" +#define NAMES_progressIndicator @"progressIndicator" +#define NAMES_properties @"properties" +#define NAMES_PutFile @"PutFile" +#define NAMES_ReadDID @"ReadDID" +#define NAMES_rearLeftDoorAjar @"rearLeftDoorAjar" +#define NAMES_rearRightDoorAjar @"rearRightDoorAjar" +#define NAMES_reason @"reason" +#define NAMES_RegisterAppInterface @"RegisterAppInterface" +#define NAMES_request @"request" +#define NAMES_requestType @"requestType" +#define NAMES_reserved @"reserved" +#define NAMES_ResetGlobalProperties @"ResetGlobalProperties" +#define NAMES_resolution @"resolution" +#define NAMES_resolutionHeight @"resolutionHeight" +#define NAMES_resolutionWidth @"resolutionWidth" +#define NAMES_response @"response" +#define NAMES_result @"result" +#define NAMES_resultCode @"resultCode" +#define NAMES_rightFront @"rightFront" +#define NAMES_rightRear @"rightRear" +#define NAMES_rightRearInflatableBelted @"rightRearInflatableBelted" +#define NAMES_rightRow2BuckleBelted @"rightRow2BuckleBelted" +#define NAMES_rightRow3BuckleBelted @"rightRow3BuckleBelted" +#define NAMES_rolloverEvent @"rolloverEvent" +#define NAMES_rows @"rows" +#define NAMES_rpcName @"rpcName" +#define NAMES_rpm @"rpm" +#define NAMES_samplingRate @"samplingRate" +#define NAMES_satellites @"satellites" +#define NAMES_screenParams @"screenParams" +#define NAMES_ScrollableMessage @"ScrollableMessage" +#define NAMES_scrollableMessageBody @"scrollableMessageBody" +#define NAMES_sdlVersion @"sdlVersion" +#define NAMES_secondaryGraphic @"secondaryGraphic" +#define NAMES_secondaryImage @"secondaryImage" +#define NAMES_secondaryText @"secondaryText" +#define NAMES_seconds @"seconds" +#define NAMES_SendLocation @"SendLocation" +#define NAMES_SetAppIcon @"SetAppIcon" +#define NAMES_SetDisplayLayout @"SetDisplayLayout" +#define NAMES_SetGlobalProperties @"SetGlobalProperties" +#define NAMES_SetMediaClockTimer @"SetMediaClockTimer" +#define NAMES_shortPress @"shortPress" +#define NAMES_shortPressAvailable @"shortPressAvailable" +#define NAMES_Show @"Show" +#define NAMES_ShowConstantTBT @"ShowConstantTBT" +#define NAMES_signalLevelStatus @"signalLevelStatus" +#define NAMES_Slider @"Slider" +#define NAMES_sliderFooter @"sliderFooter" +#define NAMES_sliderHeader @"sliderHeader" +#define NAMES_sliderPosition @"sliderPosition" +#define NAMES_softButtonCapabilities @"softButtonCapabilities" +#define NAMES_softButtonID @"softButtonID" +#define NAMES_softButtons @"softButtons" +#define NAMES_spaceAvailable @"spaceAvailable" +#define NAMES_Speak @"Speak" +#define NAMES_speechCapabilities @"speechCapabilities" +#define NAMES_speed @"speed" +#define NAMES_startTime @"startTime" +#define NAMES_state @"state" +#define NAMES_stateOfCharge @"stateOfCharge" +#define NAMES_status @"status" +#define NAMES_statusBar @"statusBar" +#define NAMES_steeringWheelAngle @"steeringWheelAngle" +#define NAMES_stereoAudioOutputMuted @"stereoAudioOutputMuted" +#define NAMES_Subscribe @"Subscribe" +#define NAMES_SubscribeButton @"SubscribeButton" +#define NAMES_SubscribeVehicleData @"SubscribeVehicleData" +#define NAMES_success @"success" +#define NAMES_supportedDiagModes @"supportedDiagModes" +#define NAMES_syncFileName @"syncFileName" +#define NAMES_syncMsgVersion @"syncMsgVersion" +#define NAMES_SyncPData @"SyncPData" +#define NAMES_systemAction @"systemAction" +#define NAMES_systemContext @"systemContext" +#define NAMES_systemFile @"systemFile" +#define NAMES_SystemRequest @"SystemRequest" +#define NAMES_systemSoftwareVersion @"systemSoftwareVersion" +#define NAMES_DialNumber @"DialNumber" +#define NAMES_targetID @"targetID" +#define NAMES_templatesAvailable @"templatesAvailable" +#define NAMES_tertiaryText @"tertiaryText" +#define NAMES_text @"text" +#define NAMES_textFields @"textFields" +#define NAMES_textMsgAvailable @"textMsgAvailable" +#define NAMES_timeout @"timeout" +#define NAMES_Timeout @"Timeout" +#define NAMES_timeoutPrompt @"timeoutPrompt" +#define NAMES_timeToDestination @"timeToDestination" +#define NAMES_tirePressure @"tirePressure" +#define NAMES_totalDistance @"totalDistance" +#define NAMES_touchEventAvailable @"touchEventAvailable" +#define NAMES_triggerSource @"triggerSource" +#define NAMES_trim @"trim" +#define NAMES_tryAgainTime @"tryAgainTime" +#define NAMES_ts @"ts" +#define NAMES_ttsChunks @"ttsChunks" +#define NAMES_ttsName @"ttsName" +#define NAMES_turnIcon @"turnIcon" +#define NAMES_turnList @"turnList" +#define NAMES_type @"type" +#define NAMES_UnregisterAppInterface @"UnregisterAppInterface" +#define NAMES_Unsubscribe @"Unsubscribe" +#define NAMES_UnsubscribeButton @"UnsubscribeButton" +#define NAMES_UnsubscribeVehicleData @"UnsubscribeVehicleData" +#define NAMES_updateMode @"updateMode" +#define NAMES_UpdateTurnList @"UpdateTurnList" +#define NAMES_upDownAvailable @"upDownAvailable" +#define NAMES_url @"url" +#define NAMES_URL @"URL" +#define NAMES_userDisallowed @"userDisallowed" +#define NAMES_utcDay @"utcDay" +#define NAMES_utcHours @"utcHours" +#define NAMES_utcMinutes @"utcMinutes" +#define NAMES_utcMonth @"utcMonth" +#define NAMES_utcSeconds @"utcSeconds" +#define NAMES_utcYear @"utcYear" +#define NAMES_value @"value" +#define NAMES_vdop @"vdop" +#define NAMES_vehicleType @"vehicleType" +#define NAMES_vin @"vin" +#define NAMES_voiceRecOn @"voiceRecOn" +#define NAMES_vrCapabilities @"vrCapabilities" +#define NAMES_vrCommands @"vrCommands" +#define NAMES_vrHelp @"vrHelp" +#define NAMES_vrHelpTitle @"vrHelpTitle" +#define NAMES_vrSynonyms @"vrSynonyms" +#define NAMES_width @"width" +#define NAMES_wiperStatus @"wiperStatus" +#define NAMES_x @"x" +#define NAMES_y @"y" diff --git a/SmartDeviceLink/SDLObjectWithPriority.h b/SmartDeviceLink/SDLObjectWithPriority.h new file mode 100644 index 000000000..334139d5f --- /dev/null +++ b/SmartDeviceLink/SDLObjectWithPriority.h @@ -0,0 +1,18 @@ +// +// SDLObjectWithPriority.h +// SmartDeviceLink +// + +#import + + +@interface SDLObjectWithPriority : NSObject + +@property (strong) id object; +@property (assign) NSInteger priority; + +- (instancetype)initWithObject:(id)object priority:(NSInteger)priority NS_DESIGNATED_INITIALIZER; + ++ (instancetype)objectWithObject:(id)object priority:(NSInteger)priority; + +@end diff --git a/SmartDeviceLink/SDLObjectWithPriority.m b/SmartDeviceLink/SDLObjectWithPriority.m new file mode 100644 index 000000000..4dd72091e --- /dev/null +++ b/SmartDeviceLink/SDLObjectWithPriority.m @@ -0,0 +1,31 @@ +// +// SDLObjectWithPriority.m +// SmartDeviceLink +// + +#import "SDLObjectWithPriority.h" + + +@implementation SDLObjectWithPriority + +- (instancetype)initWithObject:(id)object priority:(NSInteger)priority { + self = [super init]; + if (self == nil) { + return nil; + } + + self.object = object; + self.priority = priority; + + return self; +} + +- (instancetype)init { + return [self initWithObject:nil priority:NSIntegerMax]; +} + ++ (instancetype)objectWithObject:(id)object priority:(NSInteger)priority { + return [[self alloc] initWithObject:object priority:priority]; +} + +@end diff --git a/SmartDeviceLink/SDLOnAppInterfaceUnregistered.h b/SmartDeviceLink/SDLOnAppInterfaceUnregistered.h new file mode 100644 index 000000000..59b596f58 --- /dev/null +++ b/SmartDeviceLink/SDLOnAppInterfaceUnregistered.h @@ -0,0 +1,35 @@ +// SDLOnAppInterfaceUnregistered.h +// + +#import "SDLRPCNotification.h" + +@class SDLAppInterfaceUnregisteredReason; + + +/** + * Notifies an application that its interface registration has been terminated. This means that all SDL resources associated with the application are discarded, including the Command Menu, Choice Sets, button subscriptions, etc. + * + * For more information about SDL resources related to an interface registration, see SDLRegisterAppInterface. + * + * @since SDL 1.0 + * @see SDLRegisterAppInterface + */ +@interface SDLOnAppInterfaceUnregistered : SDLRPCNotification { +} + +/** + * Constructs a newly allocated SDLOnAppInterfaceUnregistered object + */ +- (instancetype)init; +/** + * Constructs a newly allocated SDLOnAppInterfaceUnregistered object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The reason application's interface was terminated + */ +@property (strong) SDLAppInterfaceUnregisteredReason *reason; + +@end diff --git a/SmartDeviceLink/SDLOnAppInterfaceUnregistered.m b/SmartDeviceLink/SDLOnAppInterfaceUnregistered.m new file mode 100644 index 000000000..5427cf871 --- /dev/null +++ b/SmartDeviceLink/SDLOnAppInterfaceUnregistered.m @@ -0,0 +1,41 @@ +// SDLOnAppInterfaceUnregistered.m +// + +#import "SDLOnAppInterfaceUnregistered.h" + +#import "SDLAppInterfaceUnregisteredReason.h" +#import "SDLNames.h" + + +@implementation SDLOnAppInterfaceUnregistered + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnAppInterfaceUnregistered]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setReason:(SDLAppInterfaceUnregisteredReason *)reason { + if (reason != nil) { + [parameters setObject:reason forKey:NAMES_reason]; + } else { + [parameters removeObjectForKey:NAMES_reason]; + } +} + +- (SDLAppInterfaceUnregisteredReason *)reason { + NSObject *obj = [parameters objectForKey:NAMES_reason]; + if (obj == nil || [obj isKindOfClass:SDLAppInterfaceUnregisteredReason.class]) { + return (SDLAppInterfaceUnregisteredReason *)obj; + } else { + return [SDLAppInterfaceUnregisteredReason valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLOnAudioPassThru.h b/SmartDeviceLink/SDLOnAudioPassThru.h new file mode 100644 index 000000000..f37d4067e --- /dev/null +++ b/SmartDeviceLink/SDLOnAudioPassThru.h @@ -0,0 +1,39 @@ +// SDLOnAudioPassThru.h +// + + +#import "SDLRPCNotification.h" + +/** + * Binary data is in binary part of hybrid msg. + * + * HMI Status Requirements: + *
      + * HMILevel: + *
        + *
      • BACKGROUND, FULL, LIMITED
      • + *
      + * AudioStreamingState: + *
        + *
      • TBD
      • + *
      + * SystemContext: + *
        + *
      • TBD
      • + *
      + *
    + */ +@interface SDLOnAudioPassThru : SDLRPCNotification { +} + +/** + *Constructs a newly allocated SDLOnAudioPassThru object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLOnAudioPassThru object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; +@end diff --git a/SmartDeviceLink/SDLOnAudioPassThru.m b/SmartDeviceLink/SDLOnAudioPassThru.m new file mode 100644 index 000000000..e0360e3e4 --- /dev/null +++ b/SmartDeviceLink/SDLOnAudioPassThru.m @@ -0,0 +1,23 @@ +// SDLOnAudioPassThru.m +// + + +#import "SDLOnAudioPassThru.h" + +#import "SDLNames.h" + +@implementation SDLOnAudioPassThru + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnAudioPassThru]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLOnButtonEvent.h b/SmartDeviceLink/SDLOnButtonEvent.h new file mode 100644 index 000000000..0d1fc8afd --- /dev/null +++ b/SmartDeviceLink/SDLOnButtonEvent.h @@ -0,0 +1,81 @@ +// SDLOnButtonEvent.h +// + +#import "SDLRPCNotification.h" + +@class SDLButtonName; +@class SDLButtonEventMode; + + +/** + * Notifies application that user has depressed or released a button to which + * the application has subscribed. + * + * Further information about button events + * and button-presses can be found at SDLSubscribeButton. + *

    + *

    + * HMI Status Requirements: + *
      + * HMILevel: + *
        + *
      • The application will receive SDLOnButtonEvent notifications for all + * subscribed buttons when HMILevel is FULL.
      • + *
      • The application will receive SDLOnButtonEvent notifications for subscribed + * media buttons when HMILevel is LIMITED.
      • + *
      • Media buttons include SEEKLEFT, SEEKRIGHT, TUNEUP, TUNEDOWN, and + * PRESET_0-PRESET_9.
      • + *
      • The application will not receive SDLOnButtonEvent notification when HMILevel + * is BACKGROUND.
      • + *
      + * AudioStreamingState: + *
        + *
      • Any
      • + *
      + * SystemContext: + *
        + *
      • MAIN, VR. In MENU, only PRESET buttons. In VR, pressing any subscribable + * button will cancel VR.
      • + *
      + *
    + *

    + * + * @see SDLSubscribeButton + * + * @since SDL 1.0 + */ +@interface SDLOnButtonEvent : SDLRPCNotification { +} + +/** + * Constructs a newly allocated SDLOnButtonEvent object + */ +- (instancetype)init; + +/** + * @abstract Constructs a newly allocated SDLOnButtonEvent object indicated by the dictionary parameter + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The name of the button + */ +@property (strong) SDLButtonName *buttonName; + +/** + * @abstract Indicates whether this is an UP or DOWN event + */ +@property (strong) SDLButtonEventMode *buttonEventMode; + +/** + * @abstract If ButtonName is "CUSTOM_BUTTON", this references the integer ID passed by a custom button. (e.g. softButton ID) + * + * @since SDL 2.0 + * + * Optional, Integer, 0 - 65536 + */ +@property (strong) NSNumber *customButtonID; + +@end diff --git a/SmartDeviceLink/SDLOnButtonEvent.m b/SmartDeviceLink/SDLOnButtonEvent.m new file mode 100644 index 000000000..d112d88ea --- /dev/null +++ b/SmartDeviceLink/SDLOnButtonEvent.m @@ -0,0 +1,71 @@ +// SDLOnButtonEvent.m +// + +#import "SDLOnButtonEvent.h" + +#import "SDLButtonEventMode.h" +#import "SDLButtonName.h" +#import "SDLNames.h" + + +@implementation SDLOnButtonEvent + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnButtonEvent]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setButtonName:(SDLButtonName *)buttonName { + if (buttonName != nil) { + [parameters setObject:buttonName forKey:NAMES_buttonName]; + } else { + [parameters removeObjectForKey:NAMES_buttonName]; + } +} + +- (SDLButtonName *)buttonName { + NSObject *obj = [parameters objectForKey:NAMES_buttonName]; + if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) { + return (SDLButtonName *)obj; + } else { + return [SDLButtonName valueOf:(NSString *)obj]; + } +} + +- (void)setButtonEventMode:(SDLButtonEventMode *)buttonEventMode { + if (buttonEventMode != nil) { + [parameters setObject:buttonEventMode forKey:NAMES_buttonEventMode]; + } else { + [parameters removeObjectForKey:NAMES_buttonEventMode]; + } +} + +- (SDLButtonEventMode *)buttonEventMode { + NSObject *obj = [parameters objectForKey:NAMES_buttonEventMode]; + if (obj == nil || [obj isKindOfClass:SDLButtonEventMode.class]) { + return (SDLButtonEventMode *)obj; + } else { + return [SDLButtonEventMode valueOf:(NSString *)obj]; + } +} + +- (void)setCustomButtonID:(NSNumber *)customButtonID { + if (customButtonID != nil) { + [parameters setObject:customButtonID forKey:NAMES_customButtonID]; + } else { + [parameters removeObjectForKey:NAMES_customButtonID]; + } +} + +- (NSNumber *)customButtonID { + return [parameters objectForKey:NAMES_customButtonID]; +} + +@end diff --git a/SmartDeviceLink/SDLOnButtonPress.h b/SmartDeviceLink/SDLOnButtonPress.h new file mode 100644 index 000000000..942dbd583 --- /dev/null +++ b/SmartDeviceLink/SDLOnButtonPress.h @@ -0,0 +1,94 @@ +// SDLOnButtonPress.h +// + +#import "SDLRPCNotification.h" + +@class SDLButtonName; +@class SDLButtonPressMode; + + +/** + * Notifies application of button press events for buttons to which the + * application is subscribed. SDL supports two button press events defined as + * follows: + * + *

      + *
    • SHORT - Occurs when a button is depressed, then released within two + * seconds. The event is considered to occur immediately after the button is + * released.
    • + *
    • LONG - Occurs when a button is depressed and held for two seconds or + * more. The event is considered to occur immediately after the two second + * threshold has been crossed, before the button is released
    • + *
    + * HMI Status Requirements: + *
      + * HMILevel: + *
        + *
      • The application will receive OnButtonPress notifications for all + * subscribed buttons when HMILevel is FULL.
      • + *
      • The application will receive OnButtonPress notifications for subscribed + * media buttons when HMILevel is LIMITED.
      • + *
      • Media buttons include SEEKLEFT, SEEKRIGHT, TUNEUP, TUNEDOWN, and + * PRESET_0-PRESET_9.
      • + *
      • The application will not receive OnButtonPress notification when HMILevel + * is BACKGROUND or NONE.
      • + *
      + * AudioStreamingState: + *
        + *
      • Any
      • + *
      + * SystemContext: + *
        + *
      • MAIN, VR. In MENU, only PRESET buttons. In VR, pressing any subscribable + * button will cancel VR.
      • + *
      + *
    + * + * @see SDLSubscribeButton + * @see SDLUnsubscribeButton + * + * @since SDL 1.0 + */ +@interface SDLOnButtonPress : SDLRPCNotification { +} + +/** + * Constructs a newly allocated SDLOnButtonPress object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLOnButtonPress object indicated by the dictionary parameter + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract the button's name + * + * @see SDLButtonName + * + * Required + */ +@property (strong) SDLButtonName *buttonName; + +/** + * @abstract Indicates whether this is a LONG or SHORT button press event + * + * @see SDLButtonPressMode + * + * Required + */ +@property (strong) SDLButtonPressMode *buttonPressMode; + +/** + * @abstract If ButtonName is "CUSTOM_BUTTON", this references the integer ID passed by a custom button. (e.g. softButton ID) + * + * @since SDL 2.0 + * + * Optional, Integer 0 - 65536 + */ +@property (strong) NSNumber *customButtonID; + +@end diff --git a/SmartDeviceLink/SDLOnButtonPress.m b/SmartDeviceLink/SDLOnButtonPress.m new file mode 100644 index 000000000..8926b7951 --- /dev/null +++ b/SmartDeviceLink/SDLOnButtonPress.m @@ -0,0 +1,71 @@ +// SDLOnButtonPress.m +// + +#import "SDLOnButtonPress.h" + +#import "SDLButtonName.h" +#import "SDLButtonPressMode.h" +#import "SDLNames.h" + + +@implementation SDLOnButtonPress + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnButtonPress]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setButtonName:(SDLButtonName *)buttonName { + if (buttonName != nil) { + [parameters setObject:buttonName forKey:NAMES_buttonName]; + } else { + [parameters removeObjectForKey:NAMES_buttonName]; + } +} + +- (SDLButtonName *)buttonName { + NSObject *obj = [parameters objectForKey:NAMES_buttonName]; + if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) { + return (SDLButtonName *)obj; + } else { + return [SDLButtonName valueOf:(NSString *)obj]; + } +} + +- (void)setButtonPressMode:(SDLButtonPressMode *)buttonPressMode { + if (buttonPressMode != nil) { + [parameters setObject:buttonPressMode forKey:NAMES_buttonPressMode]; + } else { + [parameters removeObjectForKey:NAMES_buttonPressMode]; + } +} + +- (SDLButtonPressMode *)buttonPressMode { + NSObject *obj = [parameters objectForKey:NAMES_buttonPressMode]; + if (obj == nil || [obj isKindOfClass:SDLButtonPressMode.class]) { + return (SDLButtonPressMode *)obj; + } else { + return [SDLButtonPressMode valueOf:(NSString *)obj]; + } +} + +- (void)setCustomButtonID:(NSNumber *)customButtonID { + if (customButtonID != nil) { + [parameters setObject:customButtonID forKey:NAMES_customButtonID]; + } else { + [parameters removeObjectForKey:NAMES_customButtonID]; + } +} + +- (NSNumber *)customButtonID { + return [parameters objectForKey:NAMES_customButtonID]; +} + +@end diff --git a/SmartDeviceLink/SDLOnCommand.h b/SmartDeviceLink/SDLOnCommand.h new file mode 100644 index 000000000..5d3d3f599 --- /dev/null +++ b/SmartDeviceLink/SDLOnCommand.h @@ -0,0 +1,42 @@ +// SDLOnCommand.h +// + +#import "SDLRPCNotification.h" + +@class SDLTriggerSource; + + +/** + * This is called when a command was selected via VR after pressing the PTT button, or selected from the menu after + * pressing the MENU button. + * + * Note: The sequence of *SDLOnHMIStatus* and *SDLOnCommand* notifications for user-initiated interactions is indeterminate. + * + * @since SDL 1.0 + * @see SDLAddCommand SDLDeleteCommand SDLDeleteSubMenu + */ +@interface SDLOnCommand : SDLRPCNotification { +} + +/** + *Constructs a newly allocated SDLRPCNotification object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLRPCNotification object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The command ID of the command the user selected. This is the command ID value provided by the application in the SDLAddCommand operation that created the command. + */ +@property (strong) NSNumber *cmdID; + +/** + * @abstract Indicates whether command was selected via voice or via a menu selection (using the OK button). + */ +@property (strong) SDLTriggerSource *triggerSource; + +@end diff --git a/SmartDeviceLink/SDLOnCommand.m b/SmartDeviceLink/SDLOnCommand.m new file mode 100644 index 000000000..f16023d42 --- /dev/null +++ b/SmartDeviceLink/SDLOnCommand.m @@ -0,0 +1,53 @@ +// SDLOnCommand.m +// + +#import "SDLOnCommand.h" + +#import "SDLNames.h" +#import "SDLTriggerSource.h" + + +@implementation SDLOnCommand + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnCommand]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setCmdID:(NSNumber *)cmdID { + if (cmdID != nil) { + [parameters setObject:cmdID forKey:NAMES_cmdID]; + } else { + [parameters removeObjectForKey:NAMES_cmdID]; + } +} + +- (NSNumber *)cmdID { + return [parameters objectForKey:NAMES_cmdID]; +} + +- (void)setTriggerSource:(SDLTriggerSource *)triggerSource { + if (triggerSource != nil) { + [parameters setObject:triggerSource forKey:NAMES_triggerSource]; + } else { + [parameters removeObjectForKey:NAMES_triggerSource]; + } +} + +- (SDLTriggerSource *)triggerSource { + NSObject *obj = [parameters objectForKey:NAMES_triggerSource]; + if (obj == nil || [obj isKindOfClass:SDLTriggerSource.class]) { + return (SDLTriggerSource *)obj; + } else { + return [SDLTriggerSource valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLOnDriverDistraction.h b/SmartDeviceLink/SDLOnDriverDistraction.h new file mode 100644 index 000000000..d99e57393 --- /dev/null +++ b/SmartDeviceLink/SDLOnDriverDistraction.h @@ -0,0 +1,46 @@ +// SDLOnDriverDistraction.h +// + +#import "SDLRPCNotification.h" + +@class SDLDriverDistractionState; + + +/** + * Notifies the application of the current driver distraction state (whether driver distraction rules are in effect, or + * not). + * + * HMI Status Requirements: + * + *
      + * HMILevel: + *
      • Can be sent with FULL, LIMITED or BACKGROUND
      + * AudioStreamingState: + *
      • Any
      + * SystemContext: + *
      • Any
      + *
    + * + * @since SDL 1.0 + */ +@interface SDLOnDriverDistraction : SDLRPCNotification { +} + +/** + * Constructs a newly allocated SDLOnDriverDistraction object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLOnDriverDistraction object indicated by the dictionary parameter + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The driver distraction state (i.e. whether driver distraction rules are in effect, or not) + */ +@property (strong) SDLDriverDistractionState *state; + +@end diff --git a/SmartDeviceLink/SDLOnDriverDistraction.m b/SmartDeviceLink/SDLOnDriverDistraction.m new file mode 100644 index 000000000..1a87075b3 --- /dev/null +++ b/SmartDeviceLink/SDLOnDriverDistraction.m @@ -0,0 +1,41 @@ +// SDLOnDriverDistraction.m +// + +#import "SDLOnDriverDistraction.h" + +#import "SDLDriverDistractionState.h" +#import "SDLNames.h" + + +@implementation SDLOnDriverDistraction + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnDriverDistraction]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setState:(SDLDriverDistractionState *)state { + if (state != nil) { + [parameters setObject:state forKey:NAMES_state]; + } else { + [parameters removeObjectForKey:NAMES_state]; + } +} + +- (SDLDriverDistractionState *)state { + NSObject *obj = [parameters objectForKey:NAMES_state]; + if (obj == nil || [obj isKindOfClass:SDLDriverDistractionState.class]) { + return (SDLDriverDistractionState *)obj; + } else { + return [SDLDriverDistractionState valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLOnEncodedSyncPData.h b/SmartDeviceLink/SDLOnEncodedSyncPData.h new file mode 100644 index 000000000..618aaf7d2 --- /dev/null +++ b/SmartDeviceLink/SDLOnEncodedSyncPData.h @@ -0,0 +1,17 @@ +// SDLOnEncodedSyncPData.h +// + +#import "SDLRPCNotification.h" + + +@interface SDLOnEncodedSyncPData : SDLRPCNotification { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSMutableArray *data; +@property (strong) NSString *URL; +@property (strong) NSNumber *Timeout; + +@end diff --git a/SmartDeviceLink/SDLOnEncodedSyncPData.m b/SmartDeviceLink/SDLOnEncodedSyncPData.m new file mode 100644 index 000000000..f4aca251a --- /dev/null +++ b/SmartDeviceLink/SDLOnEncodedSyncPData.m @@ -0,0 +1,59 @@ +// SDLOnEncodedSyncPData.m +// + +#import "SDLOnEncodedSyncPData.h" + +#import "SDLNames.h" + + +@implementation SDLOnEncodedSyncPData + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnEncodedSyncPData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setData:(NSMutableArray *)data { + if (data != nil) { + [parameters setObject:data forKey:NAMES_data]; + } else { + [parameters removeObjectForKey:NAMES_data]; + } +} + +- (NSMutableArray *)data { + return [parameters objectForKey:NAMES_data]; +} + +- (void)setURL:(NSString *)URL { + if (URL != nil) { + [parameters setObject:URL forKey:NAMES_URL]; + } else { + [parameters removeObjectForKey:NAMES_URL]; + } +} + +- (NSString *)URL { + return [parameters objectForKey:NAMES_URL]; +} + +- (void)setTimeout:(NSNumber *)Timeout { + if (Timeout != nil) { + [parameters setObject:Timeout forKey:NAMES_Timeout]; + } else { + [parameters removeObjectForKey:NAMES_Timeout]; + } +} + +- (NSNumber *)Timeout { + return [parameters objectForKey:NAMES_Timeout]; +} + +@end diff --git a/SmartDeviceLink/SDLOnHMIStatus.h b/SmartDeviceLink/SDLOnHMIStatus.h new file mode 100644 index 000000000..c417070d5 --- /dev/null +++ b/SmartDeviceLink/SDLOnHMIStatus.h @@ -0,0 +1,58 @@ +// SDLOnHMIStatus.h +// + +#import "SDLRPCNotification.h" + +@class SDLAudioStreamingState; +@class SDLHMILevel; +@class SDLSystemContext; + + +/** + * Notifies an application that HMI conditions have changed for the application. This indicates whether the application + * can speak phrases, display text, perform interactions, receive button presses and events, stream audio, etc. This + * notification will be sent to the application when there has been a change in any one or several of the indicated + * states (SDLHMILevel, SDLAudioStreamingState or SDLSystemContext) for the application. + * + * All three values are, in principle, independent of each other (though there may be some relationships). A value for + * one parameter should not be interpreted from the value of another parameter. + * + * There are no guarantees about the timeliness or latency of the SDLOnHMIStatus notification. Therefore, for example, + * information such as SDLAudioStreamingState may not indicate that the audio stream became inaudible to the user + * exactly when the SDLOnHMIStatus notification was received. + * + * @since SDL 1.0 + */ +@interface SDLOnHMIStatus : SDLRPCNotification { +} + +/** + *Constructs a newly allocated SDLOnHMIStatus object + */ +- (instancetype)init; + +/** + *

    Constructs a newly allocated SDLOnHMIStatus object indicated by the dictionary parameter

    + *@param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract SDLHMILevel in effect for the application + */ +@property (strong) SDLHMILevel *hmiLevel; + +/** + * @abstract Current state of audio streaming for the application. When this parameter has a value of NOT_AUDIBLE, the application must stop streaming audio to SDL. + * + * Informs app whether any currently streaming audio is audible to user (AUDIBLE) or not (NOT_AUDIBLE). A value of NOT_AUDIBLE means that either the application's audio will not be audible to the user, or that the application's audio should not be audible to the user (i.e. some other application on the mobile device may be streaming audio and the application's audio would be blended with that other audio). + */ +@property (strong) SDLAudioStreamingState *audioStreamingState; + +/** + * @abstract the System Context + * @discussion whether a user-initiated interaction is in-progress (VRSESSION or MENU), or not (MAIN) + */ +@property (strong) SDLSystemContext *systemContext; + +@end diff --git a/SmartDeviceLink/SDLOnHMIStatus.m b/SmartDeviceLink/SDLOnHMIStatus.m new file mode 100644 index 000000000..e3dc0d7fc --- /dev/null +++ b/SmartDeviceLink/SDLOnHMIStatus.m @@ -0,0 +1,77 @@ +// SDLOnHMIStatus.m +// + +#import "SDLOnHMIStatus.h" + +#import "SDLAudioStreamingState.h" +#import "SDLHMILevel.h" +#import "SDLNames.h" +#import "SDLSystemContext.h" + + +@implementation SDLOnHMIStatus + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnHMIStatus]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setHmiLevel:(SDLHMILevel *)hmiLevel { + if (hmiLevel != nil) { + [parameters setObject:hmiLevel forKey:NAMES_hmiLevel]; + } else { + [parameters removeObjectForKey:NAMES_hmiLevel]; + } +} + +- (SDLHMILevel *)hmiLevel { + NSObject *obj = [parameters objectForKey:NAMES_hmiLevel]; + if (obj == nil || [obj isKindOfClass:SDLHMILevel.class]) { + return (SDLHMILevel *)obj; + } else { + return [SDLHMILevel valueOf:(NSString *)obj]; + } +} + +- (void)setAudioStreamingState:(SDLAudioStreamingState *)audioStreamingState { + if (audioStreamingState != nil) { + [parameters setObject:audioStreamingState forKey:NAMES_audioStreamingState]; + } else { + [parameters removeObjectForKey:NAMES_audioStreamingState]; + } +} + +- (SDLAudioStreamingState *)audioStreamingState { + NSObject *obj = [parameters objectForKey:NAMES_audioStreamingState]; + if (obj == nil || [obj isKindOfClass:SDLAudioStreamingState.class]) { + return (SDLAudioStreamingState *)obj; + } else { + return [SDLAudioStreamingState valueOf:(NSString *)obj]; + } +} + +- (void)setSystemContext:(SDLSystemContext *)systemContext { + if (systemContext != nil) { + [parameters setObject:systemContext forKey:NAMES_systemContext]; + } else { + [parameters removeObjectForKey:NAMES_systemContext]; + } +} + +- (SDLSystemContext *)systemContext { + NSObject *obj = [parameters objectForKey:NAMES_systemContext]; + if (obj == nil || [obj isKindOfClass:SDLSystemContext.class]) { + return (SDLSystemContext *)obj; + } else { + return [SDLSystemContext valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLOnHashChange.h b/SmartDeviceLink/SDLOnHashChange.h new file mode 100644 index 000000000..4facf1f15 --- /dev/null +++ b/SmartDeviceLink/SDLOnHashChange.h @@ -0,0 +1,15 @@ +// SDLOnHashChange.h +// + + +#import "SDLRPCNotification.h" + +@interface SDLOnHashChange : SDLRPCNotification { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSString *hashID; + +@end diff --git a/SmartDeviceLink/SDLOnHashChange.m b/SmartDeviceLink/SDLOnHashChange.m new file mode 100644 index 000000000..b1bfd8c6a --- /dev/null +++ b/SmartDeviceLink/SDLOnHashChange.m @@ -0,0 +1,35 @@ +// SDLOnHashChange.m +// + + +#import "SDLOnHashChange.h" + +#import "SDLNames.h" + +@implementation SDLOnHashChange + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnHashChange]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setHashID:(NSString *)hashID { + if (hashID != nil) { + [parameters setObject:hashID forKey:NAMES_hashID]; + } else { + [parameters removeObjectForKey:NAMES_hashID]; + } +} + +- (NSString *)hashID { + return [parameters objectForKey:NAMES_hashID]; +} + +@end diff --git a/SmartDeviceLink/SDLOnKeyboardInput.h b/SmartDeviceLink/SDLOnKeyboardInput.h new file mode 100644 index 000000000..e976d6c88 --- /dev/null +++ b/SmartDeviceLink/SDLOnKeyboardInput.h @@ -0,0 +1,18 @@ +// SDLOnKeyboardInput.h +// + +#import "SDLRPCNotification.h" + +@class SDLKeyboardEvent; + + +@interface SDLOnKeyboardInput : SDLRPCNotification { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLKeyboardEvent *event; +@property (strong) NSString *data; + +@end diff --git a/SmartDeviceLink/SDLOnKeyboardInput.m b/SmartDeviceLink/SDLOnKeyboardInput.m new file mode 100644 index 000000000..a70a7d06c --- /dev/null +++ b/SmartDeviceLink/SDLOnKeyboardInput.m @@ -0,0 +1,53 @@ +// SDLOnKeyboardInput.m +// + +#import "SDLOnKeyboardInput.h" + +#import "SDLKeyboardEvent.h" +#import "SDLNames.h" + + +@implementation SDLOnKeyboardInput + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnKeyboardInput]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setEvent:(SDLKeyboardEvent *)event { + if (event != nil) { + [parameters setObject:event forKey:NAMES_event]; + } else { + [parameters removeObjectForKey:NAMES_event]; + } +} + +- (SDLKeyboardEvent *)event { + NSObject *obj = [parameters objectForKey:NAMES_event]; + if (obj == nil || [obj isKindOfClass:SDLKeyboardEvent.class]) { + return (SDLKeyboardEvent *)obj; + } else { + return [SDLKeyboardEvent valueOf:(NSString *)obj]; + } +} + +- (void)setData:(NSString *)data { + if (data != nil) { + [parameters setObject:data forKey:NAMES_data]; + } else { + [parameters removeObjectForKey:NAMES_data]; + } +} + +- (NSString *)data { + return [parameters objectForKey:NAMES_data]; +} + +@end diff --git a/SmartDeviceLink/SDLOnLanguageChange.h b/SmartDeviceLink/SDLOnLanguageChange.h new file mode 100644 index 000000000..b794edcd1 --- /dev/null +++ b/SmartDeviceLink/SDLOnLanguageChange.h @@ -0,0 +1,38 @@ +// SDLOnLanguageChange.h +// + +#import "SDLRPCNotification.h" + +@class SDLLanguage; + + +/** + * Provides information to what language the SDL HMI language was changed + * + * @since SDL 2.0 + */ +@interface SDLOnLanguageChange : SDLRPCNotification { +} + +/** + *Constructs a newly allocated SDLOnLanguageChange object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLOnLanguageChange object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract Current SDL voice engine (VR+TTS) language + */ +@property (strong) SDLLanguage *language; + +/** + * @abstract Current display language + */ +@property (strong) SDLLanguage *hmiDisplayLanguage; + +@end diff --git a/SmartDeviceLink/SDLOnLanguageChange.m b/SmartDeviceLink/SDLOnLanguageChange.m new file mode 100644 index 000000000..216d0c4a5 --- /dev/null +++ b/SmartDeviceLink/SDLOnLanguageChange.m @@ -0,0 +1,58 @@ +// SDLOnLanguageChange.m +// + +#import "SDLOnLanguageChange.h" + +#import "SDLLanguage.h" +#import "SDLNames.h" + + +@implementation SDLOnLanguageChange + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnLanguageChange]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setLanguage:(SDLLanguage *)language { + if (language != nil) { + [parameters setObject:language forKey:NAMES_language]; + } else { + [parameters removeObjectForKey:NAMES_language]; + } +} + +- (SDLLanguage *)language { + NSObject *obj = [parameters objectForKey:NAMES_language]; + if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { + return (SDLLanguage *)obj; + } else { + return [SDLLanguage valueOf:(NSString *)obj]; + } +} + +- (void)setHmiDisplayLanguage:(SDLLanguage *)hmiDisplayLanguage { + if (hmiDisplayLanguage != nil) { + [parameters setObject:hmiDisplayLanguage forKey:NAMES_hmiDisplayLanguage]; + } else { + [parameters removeObjectForKey:NAMES_hmiDisplayLanguage]; + } +} + +- (SDLLanguage *)hmiDisplayLanguage { + NSObject *obj = [parameters objectForKey:NAMES_hmiDisplayLanguage]; + if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { + return (SDLLanguage *)obj; + } else { + return [SDLLanguage valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLOnLockScreenStatus.h b/SmartDeviceLink/SDLOnLockScreenStatus.h new file mode 100644 index 000000000..3a4a31452 --- /dev/null +++ b/SmartDeviceLink/SDLOnLockScreenStatus.h @@ -0,0 +1,47 @@ +// +// SDLOnLockScreenStatus.h +// SmartDeviceLink +// + +#import "SDLRPCNotification.h" + +@class SDLHMILevel; +@class SDLLockScreenStatus; + + +/** + * To help prevent driver distraction, any SmartDeviceLink application is required to implement a lockscreen that must be enforced while the application is active on the system while the vehicle is in motion. + * + * This lockscreen must perform the following: + * Limit all application control usability from the mobile device with a full-screen static image overlay or separate view. + * For simplicity, the OnLockScreenStatus RPC will be provided via the onOnLockScreenNotification call back. The call back will include the LockScreenStatus enum which indicates if the lockscreen is required, optional or not required. + * The call back also includes details regarding the current HMI_Status level, driver distraction status and user selection status of the application. + */ +@interface SDLOnLockScreenStatus : SDLRPCNotification + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + *

    Get the current driver distraction status(i.e. whether driver distraction rules are in effect, or not)

    + * @return String + */ +@property (strong) NSNumber *driverDistractionStatus; +/** + *

    Get user selection status for the application (has the app been selected via hmi or voice command)

    + * @return Boolean the current user selection status + */ + +@property (strong) NSNumber *userSelected; +/** + *

    Get the {@linkplain LockScreenStatus} enumeration, indicating if the lockscreen should be required, optional or off

    + * @return {@linkplain LockScreenStatus} + */ +@property (strong) SDLLockScreenStatus *lockScreenStatus; +/** + *

    Get HMILevel in effect for the application

    + * @return {@linkplain HMILevel} the current HMI Level in effect for the application + */ +@property (strong) SDLHMILevel *hmiLevel; + +@end diff --git a/SmartDeviceLink/SDLOnLockScreenStatus.m b/SmartDeviceLink/SDLOnLockScreenStatus.m new file mode 100644 index 000000000..fc9e39c00 --- /dev/null +++ b/SmartDeviceLink/SDLOnLockScreenStatus.m @@ -0,0 +1,84 @@ +// +// SDLOnLockScreenStatus.m +// SmartDeviceLink +// + +#import "SDLOnLockScreenStatus.h" + +#import "SDLHMILevel.h" +#import "SDLLockScreenStatus.h" + + +@implementation SDLOnLockScreenStatus + +- (instancetype)init { + if (self = [super initWithName:@"OnLockScreenStatus"]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setLockScreenStatus:(SDLLockScreenStatus *)lockScreenStatus { + if (lockScreenStatus != nil) { + [parameters setObject:lockScreenStatus forKey:@"OnLockScreenStatus"]; + } else { + [parameters removeObjectForKey:@"OnLockScreenStatus"]; + } +} + +- (SDLLockScreenStatus *)lockScreenStatus { + NSObject *obj = [parameters objectForKey:@"OnLockScreenStatus"]; + if (obj == nil || [obj isKindOfClass:SDLLockScreenStatus.class]) { + return (SDLLockScreenStatus *)obj; + } else { + return [SDLLockScreenStatus valueOf:(NSString *)obj]; + } +} + +- (void)setHmiLevel:(SDLHMILevel *)hmiLevel { + if (hmiLevel != nil) { + [parameters setObject:hmiLevel forKey:@"hmilevel"]; + } else { + [parameters removeObjectForKey:@"hmilevel"]; + } +} + +- (SDLHMILevel *)hmiLevel { + NSObject *obj = [parameters objectForKey:@"hmilevel"]; + if (obj == nil || [obj isKindOfClass:SDLHMILevel.class]) { + return (SDLHMILevel *)obj; + } else { + return [SDLHMILevel valueOf:(NSString *)obj]; + } +} + +- (void)setUserSelected:(NSNumber *)userSelected { + if (userSelected != nil) { + [parameters setObject:userSelected forKey:@"userselected"]; + } else { + [parameters removeObjectForKey:@"userselected"]; + } +} + +- (NSNumber *)userSelected { + return [parameters objectForKey:@"userselected"]; +} + +- (void)setDriverDistractionStatus:(NSNumber *)driverDistractionStatus { + if (driverDistractionStatus != nil) { + [parameters setObject:driverDistractionStatus forKey:@"driverdistractionstatus"]; + } else { + [parameters removeObjectForKey:@"driverdistractionstatus"]; + } +} + +- (NSNumber *)driverDistractionStatus { + return [parameters objectForKey:@"driverdistractionstatus"]; +} + +@end diff --git a/SmartDeviceLink/SDLOnPermissionsChange.h b/SmartDeviceLink/SDLOnPermissionsChange.h new file mode 100644 index 000000000..267a63a10 --- /dev/null +++ b/SmartDeviceLink/SDLOnPermissionsChange.h @@ -0,0 +1,35 @@ +// SDLOnPermissionsChange.h +// + +#import "SDLRPCNotification.h" + + +/** + * Provides update to app of which sets of functions are available + * + * @since SDL 2.0 + */ +@interface SDLOnPermissionsChange : SDLRPCNotification { +} + +/** + * Constructs a newly allocated SDLOnPermissionsChange object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLOnPermissionsChange object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract Describes change in permissions for a given set of RPCs + * + * Required, Array of SDLPermissionItem, Array size 0 - 500 + * + * @see SDLPermissionItem + */ +@property (strong) NSMutableArray *permissionItem; + +@end diff --git a/SmartDeviceLink/SDLOnPermissionsChange.m b/SmartDeviceLink/SDLOnPermissionsChange.m new file mode 100644 index 000000000..e80df88c4 --- /dev/null +++ b/SmartDeviceLink/SDLOnPermissionsChange.m @@ -0,0 +1,45 @@ +// SDLOnPermissionsChange.m +// + +#import "SDLOnPermissionsChange.h" + +#import "SDLNames.h" +#import "SDLPermissionItem.h" + + +@implementation SDLOnPermissionsChange + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnPermissionsChange]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setPermissionItem:(NSMutableArray *)permissionItem { + if (permissionItem != nil) { + [parameters setObject:permissionItem forKey:NAMES_permissionItem]; + } else { + [parameters removeObjectForKey:NAMES_permissionItem]; + } +} + +- (NSMutableArray *)permissionItem { + NSMutableArray *array = [parameters objectForKey:NAMES_permissionItem]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLPermissionItem.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLPermissionItem alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLOnSyncPData.h b/SmartDeviceLink/SDLOnSyncPData.h new file mode 100644 index 000000000..8729a881a --- /dev/null +++ b/SmartDeviceLink/SDLOnSyncPData.h @@ -0,0 +1,16 @@ +// SDLOnSyncPData.h +// + + +#import "SDLRPCNotification.h" + +@interface SDLOnSyncPData : SDLRPCNotification { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSString *URL; +@property (strong) NSNumber *Timeout; + +@end diff --git a/SmartDeviceLink/SDLOnSyncPData.m b/SmartDeviceLink/SDLOnSyncPData.m new file mode 100644 index 000000000..11fe8a3ac --- /dev/null +++ b/SmartDeviceLink/SDLOnSyncPData.m @@ -0,0 +1,47 @@ +// SDLOnSyncPData.m +// + + +#import "SDLOnSyncPData.h" + +#import "SDLNames.h" + +@implementation SDLOnSyncPData + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnSyncPData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setURL:(NSString *)URL { + if (URL != nil) { + [parameters setObject:URL forKey:NAMES_URL]; + } else { + [parameters removeObjectForKey:NAMES_URL]; + } +} + +- (NSString *)URL { + return [parameters objectForKey:NAMES_URL]; +} + +- (void)setTimeout:(NSNumber *)Timeout { + if (Timeout != nil) { + [parameters setObject:Timeout forKey:NAMES_Timeout]; + } else { + [parameters removeObjectForKey:NAMES_Timeout]; + } +} + +- (NSNumber *)Timeout { + return [parameters objectForKey:NAMES_Timeout]; +} + +@end diff --git a/SmartDeviceLink/SDLOnSystemRequest.h b/SmartDeviceLink/SDLOnSystemRequest.h new file mode 100644 index 000000000..b590f0650 --- /dev/null +++ b/SmartDeviceLink/SDLOnSystemRequest.h @@ -0,0 +1,23 @@ +// SDLOnSystemRequest.h +// + +#import "SDLRPCNotification.h" + +@class SDLFileType; +@class SDLRequestType; + + +@interface SDLOnSystemRequest : SDLRPCNotification { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLRequestType *requestType; +@property (strong) NSString *url; +@property (strong) NSNumber *timeout; +@property (strong) SDLFileType *fileType; +@property (strong) NSNumber *offset; +@property (strong) NSNumber *length; + +@end diff --git a/SmartDeviceLink/SDLOnSystemRequest.m b/SmartDeviceLink/SDLOnSystemRequest.m new file mode 100644 index 000000000..c5aff7569 --- /dev/null +++ b/SmartDeviceLink/SDLOnSystemRequest.m @@ -0,0 +1,107 @@ +// SDLOnSystemRequest.m +// + +#import "SDLOnSystemRequest.h" + +#import "SDLFileType.h" +#import "SDLNames.h" +#import "SDLRequestType.h" + + +@implementation SDLOnSystemRequest + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnSystemRequest]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setRequestType:(SDLRequestType *)requestType { + if (requestType != nil) { + [parameters setObject:requestType forKey:NAMES_requestType]; + } else { + [parameters removeObjectForKey:NAMES_requestType]; + } +} + +- (SDLRequestType *)requestType { + NSObject *obj = [parameters objectForKey:NAMES_requestType]; + if (obj == nil || [obj isKindOfClass:SDLRequestType.class]) { + return (SDLRequestType *)obj; + } else { + return [SDLRequestType valueOf:(NSString *)obj]; + } +} + +- (void)setUrl:(NSString *)url { + if (url != nil) { + [parameters setObject:url forKey:NAMES_url]; + } else { + [parameters removeObjectForKey:NAMES_url]; + } +} + +- (NSString *)url { + return [parameters objectForKey:NAMES_url]; +} + +- (void)setTimeout:(NSNumber *)timeout { + if (timeout != nil) { + [parameters setObject:timeout forKey:NAMES_timeout]; + } else { + [parameters removeObjectForKey:NAMES_timeout]; + } +} + +- (NSNumber *)timeout { + return [parameters objectForKey:NAMES_timeout]; +} + +- (void)setFileType:(SDLFileType *)fileType { + if (fileType != nil) { + [parameters setObject:fileType forKey:NAMES_fileType]; + } else { + [parameters removeObjectForKey:NAMES_fileType]; + } +} + +- (SDLFileType *)fileType { + NSObject *obj = [parameters objectForKey:NAMES_fileType]; + if (obj == nil || [obj isKindOfClass:SDLFileType.class]) { + return (SDLFileType *)obj; + } else { + return [SDLFileType valueOf:(NSString *)obj]; + } +} + +- (void)setOffset:(NSNumber *)offset { + if (offset != nil) { + [parameters setObject:offset forKey:NAMES_offset]; + } else { + [parameters removeObjectForKey:NAMES_offset]; + } +} + +- (NSNumber *)offset { + return [parameters objectForKey:NAMES_offset]; +} + +- (void)setLength:(NSNumber *)length { + if (length != nil) { + [parameters setObject:length forKey:NAMES_length]; + } else { + [parameters removeObjectForKey:NAMES_length]; + } +} + +- (NSNumber *)length { + return [parameters objectForKey:NAMES_length]; +} + +@end diff --git a/SmartDeviceLink/SDLOnTBTClientState.h b/SmartDeviceLink/SDLOnTBTClientState.h new file mode 100644 index 000000000..8dec001ca --- /dev/null +++ b/SmartDeviceLink/SDLOnTBTClientState.h @@ -0,0 +1,17 @@ +// SDLOnTBTClientState.h +// + +#import "SDLRPCNotification.h" + +@class SDLTBTState; + + +@interface SDLOnTBTClientState : SDLRPCNotification { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLTBTState *state; + +@end diff --git a/SmartDeviceLink/SDLOnTBTClientState.m b/SmartDeviceLink/SDLOnTBTClientState.m new file mode 100644 index 000000000..ee0dc1efc --- /dev/null +++ b/SmartDeviceLink/SDLOnTBTClientState.m @@ -0,0 +1,41 @@ +// SDLOnTBTClientState.m +// + +#import "SDLOnTBTClientState.h" + +#import "SDLNames.h" +#import "SDLTBTState.h" + + +@implementation SDLOnTBTClientState + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnTBTClientState]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setState:(SDLTBTState *)state { + if (state != nil) { + [parameters setObject:state forKey:NAMES_state]; + } else { + [parameters removeObjectForKey:NAMES_state]; + } +} + +- (SDLTBTState *)state { + NSObject *obj = [parameters objectForKey:NAMES_state]; + if (obj == nil || [obj isKindOfClass:SDLTBTState.class]) { + return (SDLTBTState *)obj; + } else { + return [SDLTBTState valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLOnTouchEvent.h b/SmartDeviceLink/SDLOnTouchEvent.h new file mode 100644 index 000000000..68f1fa707 --- /dev/null +++ b/SmartDeviceLink/SDLOnTouchEvent.h @@ -0,0 +1,18 @@ +// SDLOnTouchEvent.h +// + +#import "SDLRPCNotification.h" + +@class SDLTouchType; + + +@interface SDLOnTouchEvent : SDLRPCNotification { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLTouchType *type; +@property (strong) NSMutableArray *event; + +@end diff --git a/SmartDeviceLink/SDLOnTouchEvent.m b/SmartDeviceLink/SDLOnTouchEvent.m new file mode 100644 index 000000000..e73c79603 --- /dev/null +++ b/SmartDeviceLink/SDLOnTouchEvent.m @@ -0,0 +1,63 @@ +// SDLOnTouchEvent.m +// + +#import "SDLOnTouchEvent.h" + +#import "SDLNames.h" +#import "SDLTouchEvent.h" +#import "SDLTouchType.h" + + +@implementation SDLOnTouchEvent + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnTouchEvent]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setType:(SDLTouchType *)type { + if (type != nil) { + [parameters setObject:type forKey:NAMES_type]; + } else { + [parameters removeObjectForKey:NAMES_type]; + } +} + +- (SDLTouchType *)type { + NSObject *obj = [parameters objectForKey:NAMES_type]; + if (obj == nil || [obj isKindOfClass:SDLTouchType.class]) { + return (SDLTouchType *)obj; + } else { + return [SDLTouchType valueOf:(NSString *)obj]; + } +} + +- (void)setEvent:(NSMutableArray *)event { + if (event != nil) { + [parameters setObject:event forKey:NAMES_event]; + } else { + [parameters removeObjectForKey:NAMES_event]; + } +} + +- (NSMutableArray *)event { + NSMutableArray *array = [parameters objectForKey:NAMES_event]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTouchEvent.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTouchEvent alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLOnVehicleData.h b/SmartDeviceLink/SDLOnVehicleData.h new file mode 100644 index 000000000..245477e3b --- /dev/null +++ b/SmartDeviceLink/SDLOnVehicleData.h @@ -0,0 +1,150 @@ +// SDLOnVehicleData.h +// + +#import "SDLRPCNotification.h" + +@class SDLAirbagStatus; +@class SDLBeltStatus; +@class SDLBodyInformation; +@class SDLClusterModeStatus; +@class SDLComponentVolumeStatus; +@class SDLDeviceStatus; +@class SDLECallInfo; +@class SDLEmergencyEvent; +@class SDLGPSData; +@class SDLHeadLampStatus; +@class SDLMyKey; +@class SDLPRNDL; +@class SDLTireStatus; +@class SDLVehicleDataEventStatus; +@class SDLWiperStatus; + + +/** + * Request vehicle data. + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLOnVehicleData : SDLRPCNotification { +} + + +/** + * @abstract Constructs a new SDLOnVehicleData object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLOnVehicleData object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A SDLGPSData* value. See GPSData. + */ +@property (strong) SDLGPSData *gps; + +/** + * @abstract The vehicle speed in kilometers per hour. + */ +@property (strong) NSNumber *speed; + +/** + * @abstract The number of revolutions per minute of the engine. + */ +@property (strong) NSNumber *rpm; + +/** + * @abstract The fuel level in the tank (percentage) + */ +@property (strong) NSNumber *fuelLevel; + +/** + * @abstract A SDLComponentVolumeStatus* value. The fuel level state. + */ +@property (strong) SDLComponentVolumeStatus *fuelLevel_State; + +/** + * @abstract The instantaneous fuel consumption in microlitres. + */ +@property (strong) NSNumber *instantFuelConsumption; + +/** + * @abstract The external temperature in degrees celsius. + */ +@property (strong) NSNumber *externalTemperature; + +/** + * @abstract The Vehicle Identification Number + */ +@property (strong) NSString *vin; + +/** + * @abstract See PRNDL. + */ +@property (strong) SDLPRNDL *prndl; + +/** + * @abstract A SDLTireStatus* value. See TireStatus. + */ +@property (strong) SDLTireStatus *tirePressure; + +/** + * @abstract Odometer reading in km. + */ +@property (strong) NSNumber *odometer; + +/** + * @abstract A SDLBeltStatus* value. The status of the seat belts. + */ +@property (strong) SDLBeltStatus *beltStatus; + +/** + * @abstract A SDLBodyInformation* value. The body information including power modes. + */ +@property (strong) SDLBodyInformation *bodyInformation; + +/** + * @abstract A SDLDeviceStatus* value. The device status including signal and battery strength. + */ +@property (strong) SDLDeviceStatus *deviceStatus; + +/** + * @abstract A SDLVehicleDataResult* value. The status of the brake pedal. + */ +@property (strong) SDLVehicleDataEventStatus *driverBraking; + +/** + * @abstract A SDLWiperStatus* value. The status of the wipers. + */ +@property (strong) SDLWiperStatus *wiperStatus; + +/** + * @abstract A SDLHeadLampStatus* value. Status of the head lamps. + */ +@property (strong) SDLHeadLampStatus *headLampStatus; + +/** + * @abstract Torque value for engine (in Nm) on non-diesel variants. + */ +@property (strong) NSNumber *engineTorque; + +/** + * @abstract Accelerator pedal position (percentage depressed) + */ +@property (strong) NSNumber *accPedalPosition; + +/** + * @abstract Current angle of the steering wheel (in deg) + */ +@property (strong) NSNumber *steeringWheelAngle; +@property (strong) SDLECallInfo *eCallInfo; +@property (strong) SDLAirbagStatus *airbagStatus; +@property (strong) SDLEmergencyEvent *emergencyEvent; +@property (strong) SDLClusterModeStatus *clusterModeStatus; +@property (strong) SDLMyKey *myKey; + + +@end diff --git a/SmartDeviceLink/SDLOnVehicleData.m b/SmartDeviceLink/SDLOnVehicleData.m new file mode 100644 index 000000000..3386ca450 --- /dev/null +++ b/SmartDeviceLink/SDLOnVehicleData.m @@ -0,0 +1,413 @@ +// SDLOnVehicleData.m +// + +#import "SDLOnVehicleData.h" + +#import "SDLAirbagStatus.h" +#import "SDLBeltStatus.h" +#import "SDLBodyInformation.h" +#import "SDLClusterModeStatus.h" +#import "SDLComponentVolumeStatus.h" +#import "SDLDeviceStatus.h" +#import "SDLECallInfo.h" +#import "SDLEmergencyEvent.h" +#import "SDLGPSData.h" +#import "SDLHeadLampStatus.h" +#import "SDLMyKey.h" +#import "SDLNames.h" +#import "SDLPRNDL.h" +#import "SDLTireStatus.h" +#import "SDLVehicleDataEventStatus.h" +#import "SDLWiperStatus.h" + + +@implementation SDLOnVehicleData + +- (instancetype)init { + if (self = [super initWithName:NAMES_OnVehicleData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setGps:(SDLGPSData *)gps { + if (gps != nil) { + [parameters setObject:gps forKey:NAMES_gps]; + } else { + [parameters removeObjectForKey:NAMES_gps]; + } +} + +- (SDLGPSData *)gps { + NSObject *obj = [parameters objectForKey:NAMES_gps]; + if (obj == nil || [obj isKindOfClass:SDLGPSData.class]) { + return (SDLGPSData *)obj; + } else { + return [[SDLGPSData alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setSpeed:(NSNumber *)speed { + if (speed != nil) { + [parameters setObject:speed forKey:NAMES_speed]; + } else { + [parameters removeObjectForKey:NAMES_speed]; + } +} + +- (NSNumber *)speed { + return [parameters objectForKey:NAMES_speed]; +} + +- (void)setRpm:(NSNumber *)rpm { + if (rpm != nil) { + [parameters setObject:rpm forKey:NAMES_rpm]; + } else { + [parameters removeObjectForKey:NAMES_rpm]; + } +} + +- (NSNumber *)rpm { + return [parameters objectForKey:NAMES_rpm]; +} + +- (void)setFuelLevel:(NSNumber *)fuelLevel { + if (fuelLevel != nil) { + [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel]; + } +} + +- (NSNumber *)fuelLevel { + return [parameters objectForKey:NAMES_fuelLevel]; +} + +- (void)setFuelLevel_State:(SDLComponentVolumeStatus *)fuelLevel_State { + if (fuelLevel_State != nil) { + [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel_State]; + } +} + +- (SDLComponentVolumeStatus *)fuelLevel_State { + NSObject *obj = [parameters objectForKey:NAMES_fuelLevel_State]; + if (obj == nil || [obj isKindOfClass:SDLComponentVolumeStatus.class]) { + return (SDLComponentVolumeStatus *)obj; + } else { + return [SDLComponentVolumeStatus valueOf:(NSString *)obj]; + } +} + +- (void)setInstantFuelConsumption:(NSNumber *)instantFuelConsumption { + if (instantFuelConsumption != nil) { + [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; + } else { + [parameters removeObjectForKey:NAMES_instantFuelConsumption]; + } +} + +- (NSNumber *)instantFuelConsumption { + return [parameters objectForKey:NAMES_instantFuelConsumption]; +} + +- (void)setExternalTemperature:(NSNumber *)externalTemperature { + if (externalTemperature != nil) { + [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; + } else { + [parameters removeObjectForKey:NAMES_externalTemperature]; + } +} + +- (NSNumber *)externalTemperature { + return [parameters objectForKey:NAMES_externalTemperature]; +} + +- (void)setVin:(NSString *)vin { + if (vin != nil) { + [parameters setObject:vin forKey:NAMES_vin]; + } else { + [parameters removeObjectForKey:NAMES_vin]; + } +} + +- (NSString *)vin { + return [parameters objectForKey:NAMES_vin]; +} + +- (void)setPrndl:(SDLPRNDL *)prndl { + if (prndl != nil) { + [parameters setObject:prndl forKey:NAMES_prndl]; + } else { + [parameters removeObjectForKey:NAMES_prndl]; + } +} + +- (SDLPRNDL *)prndl { + NSObject *obj = [parameters objectForKey:NAMES_prndl]; + if (obj == nil || [obj isKindOfClass:SDLPRNDL.class]) { + return (SDLPRNDL *)obj; + } else { + return [SDLPRNDL valueOf:(NSString *)obj]; + } +} + +- (void)setTirePressure:(SDLTireStatus *)tirePressure { + if (tirePressure != nil) { + [parameters setObject:tirePressure forKey:NAMES_tirePressure]; + } else { + [parameters removeObjectForKey:NAMES_tirePressure]; + } +} + +- (SDLTireStatus *)tirePressure { + NSObject *obj = [parameters objectForKey:NAMES_tirePressure]; + if (obj == nil || [obj isKindOfClass:SDLTireStatus.class]) { + return (SDLTireStatus *)obj; + } else { + return [[SDLTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setOdometer:(NSNumber *)odometer { + if (odometer != nil) { + [parameters setObject:odometer forKey:NAMES_odometer]; + } else { + [parameters removeObjectForKey:NAMES_odometer]; + } +} + +- (NSNumber *)odometer { + return [parameters objectForKey:NAMES_odometer]; +} + +- (void)setBeltStatus:(SDLBeltStatus *)beltStatus { + if (beltStatus != nil) { + [parameters setObject:beltStatus forKey:NAMES_beltStatus]; + } else { + [parameters removeObjectForKey:NAMES_beltStatus]; + } +} + +- (SDLBeltStatus *)beltStatus { + NSObject *obj = [parameters objectForKey:NAMES_beltStatus]; + if (obj == nil || [obj isKindOfClass:SDLBeltStatus.class]) { + return (SDLBeltStatus *)obj; + } else { + return [[SDLBeltStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setBodyInformation:(SDLBodyInformation *)bodyInformation { + if (bodyInformation != nil) { + [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; + } else { + [parameters removeObjectForKey:NAMES_bodyInformation]; + } +} + +- (SDLBodyInformation *)bodyInformation { + NSObject *obj = [parameters objectForKey:NAMES_bodyInformation]; + if (obj == nil || [obj isKindOfClass:SDLBodyInformation.class]) { + return (SDLBodyInformation *)obj; + } else { + return [[SDLBodyInformation alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setDeviceStatus:(SDLDeviceStatus *)deviceStatus { + if (deviceStatus != nil) { + [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; + } else { + [parameters removeObjectForKey:NAMES_deviceStatus]; + } +} + +- (SDLDeviceStatus *)deviceStatus { + NSObject *obj = [parameters objectForKey:NAMES_deviceStatus]; + if (obj == nil || [obj isKindOfClass:SDLDeviceStatus.class]) { + return (SDLDeviceStatus *)obj; + } else { + return [[SDLDeviceStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setDriverBraking:(SDLVehicleDataEventStatus *)driverBraking { + if (driverBraking != nil) { + [parameters setObject:driverBraking forKey:NAMES_driverBraking]; + } else { + [parameters removeObjectForKey:NAMES_driverBraking]; + } +} + +- (SDLVehicleDataEventStatus *)driverBraking { + NSObject *obj = [parameters objectForKey:NAMES_driverBraking]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) { + return (SDLVehicleDataEventStatus *)obj; + } else { + return [SDLVehicleDataEventStatus valueOf:(NSString *)obj]; + } +} + +- (void)setWiperStatus:(SDLWiperStatus *)wiperStatus { + if (wiperStatus != nil) { + [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; + } else { + [parameters removeObjectForKey:NAMES_wiperStatus]; + } +} + +- (SDLWiperStatus *)wiperStatus { + NSObject *obj = [parameters objectForKey:NAMES_wiperStatus]; + if (obj == nil || [obj isKindOfClass:SDLWiperStatus.class]) { + return (SDLWiperStatus *)obj; + } else { + return [SDLWiperStatus valueOf:(NSString *)obj]; + } +} + +- (void)setHeadLampStatus:(SDLHeadLampStatus *)headLampStatus { + if (headLampStatus != nil) { + [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; + } else { + [parameters removeObjectForKey:NAMES_headLampStatus]; + } +} + +- (SDLHeadLampStatus *)headLampStatus { + NSObject *obj = [parameters objectForKey:NAMES_headLampStatus]; + if (obj == nil || [obj isKindOfClass:SDLHeadLampStatus.class]) { + return (SDLHeadLampStatus *)obj; + } else { + return [[SDLHeadLampStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setEngineTorque:(NSNumber *)engineTorque { + if (engineTorque != nil) { + [parameters setObject:engineTorque forKey:NAMES_engineTorque]; + } else { + [parameters removeObjectForKey:NAMES_engineTorque]; + } +} + +- (NSNumber *)engineTorque { + return [parameters objectForKey:NAMES_engineTorque]; +} + +- (void)setAccPedalPosition:(NSNumber *)accPedalPosition { + if (accPedalPosition != nil) { + [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; + } else { + [parameters removeObjectForKey:NAMES_accPedalPosition]; + } +} + +- (NSNumber *)accPedalPosition { + return [parameters objectForKey:NAMES_accPedalPosition]; +} + +- (void)setSteeringWheelAngle:(NSNumber *)steeringWheelAngle { + if (steeringWheelAngle != nil) { + [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; + } else { + [parameters removeObjectForKey:NAMES_steeringWheelAngle]; + } +} + +- (NSNumber *)steeringWheelAngle { + return [parameters objectForKey:NAMES_steeringWheelAngle]; +} + +- (void)setECallInfo:(SDLECallInfo *)eCallInfo { + if (eCallInfo != nil) { + [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; + } else { + [parameters removeObjectForKey:NAMES_eCallInfo]; + } +} + +- (SDLECallInfo *)eCallInfo { + NSObject *obj = [parameters objectForKey:NAMES_eCallInfo]; + if (obj == nil || [obj isKindOfClass:SDLECallInfo.class]) { + return (SDLECallInfo *)obj; + } else { + return [[SDLECallInfo alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setAirbagStatus:(SDLAirbagStatus *)airbagStatus { + if (airbagStatus != nil) { + [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; + } else { + [parameters removeObjectForKey:NAMES_airbagStatus]; + } +} + +- (SDLAirbagStatus *)airbagStatus { + NSObject *obj = [parameters objectForKey:NAMES_airbagStatus]; + if (obj == nil || [obj isKindOfClass:SDLAirbagStatus.class]) { + return (SDLAirbagStatus *)obj; + } else { + return [[SDLAirbagStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setEmergencyEvent:(SDLEmergencyEvent *)emergencyEvent { + if (emergencyEvent != nil) { + [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; + } else { + [parameters removeObjectForKey:NAMES_emergencyEvent]; + } +} + +- (SDLEmergencyEvent *)emergencyEvent { + NSObject *obj = [parameters objectForKey:NAMES_emergencyEvent]; + if (obj == nil || [obj isKindOfClass:SDLEmergencyEvent.class]) { + return (SDLEmergencyEvent *)obj; + } else { + return [[SDLEmergencyEvent alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setClusterModeStatus:(SDLClusterModeStatus *)clusterModeStatus { + if (clusterModeStatus != nil) { + [parameters setObject:clusterModeStatus forKey:NAMES_clusterModeStatus]; + } else { + [parameters removeObjectForKey:NAMES_clusterModeStatus]; + } +} + +- (SDLClusterModeStatus *)clusterModeStatus { + NSObject *obj = [parameters objectForKey:NAMES_clusterModeStatus]; + if (obj == nil || [obj isKindOfClass:SDLClusterModeStatus.class]) { + return (SDLClusterModeStatus *)obj; + } else { + return [[SDLClusterModeStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setMyKey:(SDLMyKey *)myKey { + if (myKey != nil) { + [parameters setObject:myKey forKey:NAMES_myKey]; + } else { + [parameters removeObjectForKey:NAMES_myKey]; + } +} + +- (SDLMyKey *)myKey { + NSObject *obj = [parameters objectForKey:NAMES_myKey]; + if (obj == nil || [obj isKindOfClass:SDLMyKey.class]) { + return (SDLMyKey *)obj; + } else { + return [[SDLMyKey alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLPRNDL.h b/SmartDeviceLink/SDLPRNDL.h new file mode 100644 index 000000000..6095d1a82 --- /dev/null +++ b/SmartDeviceLink/SDLPRNDL.h @@ -0,0 +1,143 @@ +// SDLPRNDL.h +// + + +#import "SDLEnum.h" + +/** + * The selected gear the car is in. + * + * @since SDL 2.0 + */ +@interface SDLPRNDL : SDLEnum { +} + +/** + * @abstract get SDLPRNDL according value string + * + * @param value The value of the string to get an object for + * + * @return SDLPRNDL object + */ ++ (SDLPRNDL *)valueOf:(NSString *)value; + +/** + * @abstract declare an array to store all possible SDLPRNDL values + * + * @return the array + */ ++ (NSArray *)values; + +/** + * @abstract Park + * + * @return SDLPRNDL: *PARK* + */ ++ (SDLPRNDL *)PARK; + +/** + * @abstract Reverse gear + * + * @return SDLPRNDL: *REVERSE* + */ ++ (SDLPRNDL *)REVERSE; + +/** + * @abstract No gear + * + * @return SDLPRNDL: *NEUTRAL* + */ ++ (SDLPRNDL *)NEUTRAL; + +/** + * @abstract: Drive gear + * + * @return SDLPRNDL: *DRIVE* + */ ++ (SDLPRNDL *)DRIVE; + +/** + * @abstract Drive Sport mode + * + * @return SDLPRNDL: *SPORT* + */ ++ (SDLPRNDL *)SPORT; + +/** + * @abstract 1st gear hold + * + * @return SDLPRNDL: *LOWGEAR* + */ ++ (SDLPRNDL *)LOWGEAR; + +/** + * @abstract First gear + * + * @return SDLPRNDL: *FIRST* + */ ++ (SDLPRNDL *)FIRST; + +/** + * @abstract Second gear + * + * @return SDLPRNDL: *SECOND* + */ ++ (SDLPRNDL *)SECOND; + +/** + * @abstract Third gear + * + * @return SDLPRNDL: *THIRD* + */ ++ (SDLPRNDL *)THIRD; + +/** + * @abstract Fourth gear + * + * @return SDLPRNDL: *FOURTH* + */ ++ (SDLPRNDL *)FOURTH; + +/** + * @abstract Fifth gear + * + * @return SDLPRNDL: *FIFTH* + */ ++ (SDLPRNDL *)FIFTH; + +/** + * @abstract Sixth gear + * + * @return SDLPRNDL: *SIXTH* + */ ++ (SDLPRNDL *)SIXTH; + +/** + * @abstract Seventh gear + * + * @return SDLPRNDL: *SEVENTH* + */ ++ (SDLPRNDL *)SEVENTH; + +/** + * @abstract Eighth gear + * + * @return SDLPRNDL: *EIGHTH* + */ ++ (SDLPRNDL *)EIGHTH; + +/** + * @abstract Unknown + * + * @return SDLPRNDL: *UNKNOWN* + */ ++ (SDLPRNDL *)UNKNOWN; + +/** + * @abstract Fault + * + * @return SDLPRNDL: *FAULT* + */ ++ (SDLPRNDL *)FAULT; + +@end diff --git a/SmartDeviceLink/SDLPRNDL.m b/SmartDeviceLink/SDLPRNDL.m new file mode 100644 index 000000000..e0588af77 --- /dev/null +++ b/SmartDeviceLink/SDLPRNDL.m @@ -0,0 +1,173 @@ +// SDLPRNDL.m +// + + +#import "SDLPRNDL.h" + +SDLPRNDL *SDLPRNDL_PARK = nil; +SDLPRNDL *SDLPRNDL_REVERSE = nil; +SDLPRNDL *SDLPRNDL_NEUTRAL = nil; +SDLPRNDL *SDLPRNDL_DRIVE = nil; +SDLPRNDL *SDLPRNDL_SPORT = nil; +SDLPRNDL *SDLPRNDL_LOWGEAR = nil; +SDLPRNDL *SDLPRNDL_FIRST = nil; +SDLPRNDL *SDLPRNDL_SECOND = nil; +SDLPRNDL *SDLPRNDL_THIRD = nil; +SDLPRNDL *SDLPRNDL_FOURTH = nil; +SDLPRNDL *SDLPRNDL_FIFTH = nil; +SDLPRNDL *SDLPRNDL_SIXTH = nil; +SDLPRNDL *SDLPRNDL_SEVENTH = nil; +SDLPRNDL *SDLPRNDL_EIGHTH = nil; +SDLPRNDL *SDLPRNDL_UNKNOWN = nil; +SDLPRNDL *SDLPRNDL_FAULT = nil; + +NSArray *SDLPRNDL_values = nil; + +@implementation SDLPRNDL + ++ (SDLPRNDL *)valueOf:(NSString *)value { + for (SDLPRNDL *item in SDLPRNDL.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLPRNDL_values == nil) { + SDLPRNDL_values = @[ + SDLPRNDL.PARK, + SDLPRNDL.REVERSE, + SDLPRNDL.NEUTRAL, + SDLPRNDL.DRIVE, + SDLPRNDL.SPORT, + SDLPRNDL.LOWGEAR, + SDLPRNDL.FIRST, + SDLPRNDL.SECOND, + SDLPRNDL.THIRD, + SDLPRNDL.FOURTH, + SDLPRNDL.FIFTH, + SDLPRNDL.SIXTH, + SDLPRNDL.SEVENTH, + SDLPRNDL.EIGHTH, + SDLPRNDL.UNKNOWN, + SDLPRNDL.FAULT, + ]; + } + return SDLPRNDL_values; +} + ++ (SDLPRNDL *)PARK { + if (SDLPRNDL_PARK == nil) { + SDLPRNDL_PARK = [[SDLPRNDL alloc] initWithValue:@"PARK"]; + } + return SDLPRNDL_PARK; +} + ++ (SDLPRNDL *)REVERSE { + if (SDLPRNDL_REVERSE == nil) { + SDLPRNDL_REVERSE = [[SDLPRNDL alloc] initWithValue:@"REVERSE"]; + } + return SDLPRNDL_REVERSE; +} + ++ (SDLPRNDL *)NEUTRAL { + if (SDLPRNDL_NEUTRAL == nil) { + SDLPRNDL_NEUTRAL = [[SDLPRNDL alloc] initWithValue:@"NEUTRAL"]; + } + return SDLPRNDL_NEUTRAL; +} + ++ (SDLPRNDL *)DRIVE { + if (SDLPRNDL_DRIVE == nil) { + SDLPRNDL_DRIVE = [[SDLPRNDL alloc] initWithValue:@"DRIVE"]; + } + return SDLPRNDL_DRIVE; +} + ++ (SDLPRNDL *)SPORT { + if (SDLPRNDL_SPORT == nil) { + SDLPRNDL_SPORT = [[SDLPRNDL alloc] initWithValue:@"SPORT"]; + } + return SDLPRNDL_SPORT; +} + ++ (SDLPRNDL *)LOWGEAR { + if (SDLPRNDL_LOWGEAR == nil) { + SDLPRNDL_LOWGEAR = [[SDLPRNDL alloc] initWithValue:@"LOWGEAR"]; + } + return SDLPRNDL_LOWGEAR; +} + ++ (SDLPRNDL *)FIRST { + if (SDLPRNDL_FIRST == nil) { + SDLPRNDL_FIRST = [[SDLPRNDL alloc] initWithValue:@"FIRST"]; + } + return SDLPRNDL_FIRST; +} + ++ (SDLPRNDL *)SECOND { + if (SDLPRNDL_SECOND == nil) { + SDLPRNDL_SECOND = [[SDLPRNDL alloc] initWithValue:@"SECOND"]; + } + return SDLPRNDL_SECOND; +} + ++ (SDLPRNDL *)THIRD { + if (SDLPRNDL_THIRD == nil) { + SDLPRNDL_THIRD = [[SDLPRNDL alloc] initWithValue:@"THIRD"]; + } + return SDLPRNDL_THIRD; +} + ++ (SDLPRNDL *)FOURTH { + if (SDLPRNDL_FOURTH == nil) { + SDLPRNDL_FOURTH = [[SDLPRNDL alloc] initWithValue:@"FOURTH"]; + } + return SDLPRNDL_FOURTH; +} + ++ (SDLPRNDL *)FIFTH { + if (SDLPRNDL_FIFTH == nil) { + SDLPRNDL_FIFTH = [[SDLPRNDL alloc] initWithValue:@"FIFTH"]; + } + return SDLPRNDL_FIFTH; +} + ++ (SDLPRNDL *)SIXTH { + if (SDLPRNDL_SIXTH == nil) { + SDLPRNDL_SIXTH = [[SDLPRNDL alloc] initWithValue:@"SIXTH"]; + } + return SDLPRNDL_SIXTH; +} + ++ (SDLPRNDL *)SEVENTH { + if (SDLPRNDL_SEVENTH == nil) { + SDLPRNDL_SEVENTH = [[SDLPRNDL alloc] initWithValue:@"SEVENTH"]; + } + return SDLPRNDL_SEVENTH; +} + ++ (SDLPRNDL *)EIGHTH { + if (SDLPRNDL_EIGHTH == nil) { + SDLPRNDL_EIGHTH = [[SDLPRNDL alloc] initWithValue:@"EIGHTH"]; + } + return SDLPRNDL_EIGHTH; +} + ++ (SDLPRNDL *)UNKNOWN { + if (SDLPRNDL_UNKNOWN == nil) { + SDLPRNDL_UNKNOWN = [[SDLPRNDL alloc] initWithValue:@"UNKNOWN"]; + } + return SDLPRNDL_UNKNOWN; +} + ++ (SDLPRNDL *)FAULT { + if (SDLPRNDL_FAULT == nil) { + SDLPRNDL_FAULT = [[SDLPRNDL alloc] initWithValue:@"FAULT"]; + } + return SDLPRNDL_FAULT; +} + +@end diff --git a/SmartDeviceLink/SDLParameterPermissions.h b/SmartDeviceLink/SDLParameterPermissions.h new file mode 100644 index 000000000..af724d53f --- /dev/null +++ b/SmartDeviceLink/SDLParameterPermissions.h @@ -0,0 +1,39 @@ +// SDLParameterPermissions.h +// + + +#import "SDLRPCMessage.h" + +/** + * Defining sets of parameters, which are permitted or prohibited for a given RPC. + * + * @since SDL 2.0 + */ +@interface SDLParameterPermissions : SDLRPCStruct { +} + +/** + * @abstract Constructs a newly allocated SDLParameterPermissions object + */ +- (instancetype)init; +/** + * @abstract Constructs a newly allocated SDLParameterPermissions object indicated by the dictionary parameter + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A set of all parameters that are permitted for this given RPC. + * + * Required, Array of String, max String length = 100, Array size 0 - 100 + */ +@property (strong) NSMutableArray *allowed; +/** + * @abstract A set of all parameters that are prohibited for this given RPC. + * + * Required, Array of String, max String length = 100, Array size 0 - 100 + */ +@property (strong) NSMutableArray *userDisallowed; + +@end diff --git a/SmartDeviceLink/SDLParameterPermissions.m b/SmartDeviceLink/SDLParameterPermissions.m new file mode 100644 index 000000000..e18d1ec12 --- /dev/null +++ b/SmartDeviceLink/SDLParameterPermissions.m @@ -0,0 +1,47 @@ +// SDLParameterPermissions.m +// + + +#import "SDLParameterPermissions.h" + +#import "SDLNames.h" + +@implementation SDLParameterPermissions + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setAllowed:(NSMutableArray *)allowed { + if (allowed != nil) { + [store setObject:allowed forKey:NAMES_allowed]; + } else { + [store removeObjectForKey:NAMES_allowed]; + } +} + +- (NSMutableArray *)allowed { + return [store objectForKey:NAMES_allowed]; +} + +- (void)setUserDisallowed:(NSMutableArray *)userDisallowed { + if (userDisallowed != nil) { + [store setObject:userDisallowed forKey:NAMES_userDisallowed]; + } else { + [store removeObjectForKey:NAMES_userDisallowed]; + } +} + +- (NSMutableArray *)userDisallowed { + return [store objectForKey:NAMES_userDisallowed]; +} + +@end diff --git a/SmartDeviceLink/SDLPerformAudioPassThru.h b/SmartDeviceLink/SDLPerformAudioPassThru.h new file mode 100644 index 000000000..66dfacf19 --- /dev/null +++ b/SmartDeviceLink/SDLPerformAudioPassThru.h @@ -0,0 +1,104 @@ +// SDLPerformAudioPassThru.h +// + +#import "SDLRPCRequest.h" + +@class SDLSamplingRate; +@class SDLBitsPerSample; +@class SDLAudioType; + + +/** + * This will open an audio pass thru session. By doing so the app can receive + * audio data through the vehicle microphone + *

    + * Function Group: AudioPassThru + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + * + *

    Since SmartDeviceLink 2.0

    + *

    See SDLEndAudioPassThru

    + */ +@interface SDLPerformAudioPassThru : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLPerformAudioPassThru object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLPerformAudioPassThru object indicated by the NSMutableDictionary + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract initial prompt which will be spoken before opening the audio pass + * thru session by SDL + * @discussion initialPrompt + * a Vector value represents the initial prompt which + * will be spoken before opening the audio pass thru session by + * SDL + *

    + * Notes: + *

      + *
    • This is an array of text chunks of type TTSChunk
    • + *
    • The array must have at least one item
    • + *
    • If omitted, then no initial prompt is spoken
    • + *
    • Array Minsize: 1
    • + *
    • Array Maxsize: 100
    • + *
    + */ +@property (strong) NSMutableArray *initialPrompt; +/** + * @abstract a line of text displayed during audio capture + * @discussion audioPassThruDisplayText1 + * a String value representing the line of text displayed during + * audio capture + *

    + * Notes: Maxlength=500 + */ +@property (strong) NSString *audioPassThruDisplayText1; +/** + * @abstract A line of text displayed during audio capture + * @discussion audioPassThruDisplayText2 + * a String value representing the line of text displayed during + * audio capture + *

    + * Notes: Maxlength=500 + */ +@property (strong) NSString *audioPassThruDisplayText2; +/** + * @abstract A samplingRate + * + * @discussion a SamplingRate value representing a 8 or 16 or 22 or 24 khz + */ +@property (strong) SDLSamplingRate *samplingRate; +/** + * @abstract the maximum duration of audio recording in milliseconds + * + * @discussion maxDuration + * an Integer value representing the maximum duration of audio + * recording in millisecond + *

    + * Notes: Minvalue:1; Maxvalue:1000000 + */ +@property (strong) NSNumber *maxDuration; +/** + * @abstract the quality the audio is recorded - 8 bit or 16 bit + * + * @discussion a BitsPerSample value representing 8 bit or 16 bit + */ +@property (strong) SDLBitsPerSample *bitsPerSample; +/** + * @abstract an audioType + */ +@property (strong) SDLAudioType *audioType; +/** + * @abstract a Boolean value representing if the current audio source should be + * muted during the APT session
    + */ +@property (strong) NSNumber *muteAudio; + +@end diff --git a/SmartDeviceLink/SDLPerformAudioPassThru.m b/SmartDeviceLink/SDLPerformAudioPassThru.m new file mode 100644 index 000000000..67b0f05c3 --- /dev/null +++ b/SmartDeviceLink/SDLPerformAudioPassThru.m @@ -0,0 +1,148 @@ +// SDLPerformAudioPassThru.m +// + + +#import "SDLPerformAudioPassThru.h" + +#import "SDLAudioType.h" +#import "SDLBitsPerSample.h" +#import "SDLNames.h" +#import "SDLSamplingRate.h" +#import "SDLTTSChunk.h" + + +@implementation SDLPerformAudioPassThru + +- (instancetype)init { + if (self = [super initWithName:NAMES_PerformAudioPassThru]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setInitialPrompt:(NSMutableArray *)initialPrompt { + if (initialPrompt != nil) { + [parameters setObject:initialPrompt forKey:NAMES_initialPrompt]; + } else { + [parameters removeObjectForKey:NAMES_initialPrompt]; + } +} + +- (NSMutableArray *)initialPrompt { + NSMutableArray *array = [parameters objectForKey:NAMES_initialPrompt]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setAudioPassThruDisplayText1:(NSString *)audioPassThruDisplayText1 { + if (audioPassThruDisplayText1 != nil) { + [parameters setObject:audioPassThruDisplayText1 forKey:NAMES_audioPassThruDisplayText1]; + } else { + [parameters removeObjectForKey:NAMES_audioPassThruDisplayText1]; + } +} + +- (NSString *)audioPassThruDisplayText1 { + return [parameters objectForKey:NAMES_audioPassThruDisplayText1]; +} + +- (void)setAudioPassThruDisplayText2:(NSString *)audioPassThruDisplayText2 { + if (audioPassThruDisplayText2 != nil) { + [parameters setObject:audioPassThruDisplayText2 forKey:NAMES_audioPassThruDisplayText2]; + } else { + [parameters removeObjectForKey:NAMES_audioPassThruDisplayText2]; + } +} + +- (NSString *)audioPassThruDisplayText2 { + return [parameters objectForKey:NAMES_audioPassThruDisplayText2]; +} + +- (void)setSamplingRate:(SDLSamplingRate *)samplingRate { + if (samplingRate != nil) { + [parameters setObject:samplingRate forKey:NAMES_samplingRate]; + } else { + [parameters removeObjectForKey:NAMES_samplingRate]; + } +} + +- (SDLSamplingRate *)samplingRate { + NSObject *obj = [parameters objectForKey:NAMES_samplingRate]; + if (obj == nil || [obj isKindOfClass:SDLSamplingRate.class]) { + return (SDLSamplingRate *)obj; + } else { + return [SDLSamplingRate valueOf:(NSString *)obj]; + } +} + +- (void)setMaxDuration:(NSNumber *)maxDuration { + if (maxDuration != nil) { + [parameters setObject:maxDuration forKey:NAMES_maxDuration]; + } else { + [parameters removeObjectForKey:NAMES_maxDuration]; + } +} + +- (NSNumber *)maxDuration { + return [parameters objectForKey:NAMES_maxDuration]; +} + +- (void)setBitsPerSample:(SDLBitsPerSample *)bitsPerSample { + if (bitsPerSample != nil) { + [parameters setObject:bitsPerSample forKey:NAMES_bitsPerSample]; + } else { + [parameters removeObjectForKey:NAMES_bitsPerSample]; + } +} + +- (SDLBitsPerSample *)bitsPerSample { + NSObject *obj = [parameters objectForKey:NAMES_bitsPerSample]; + if (obj == nil || [obj isKindOfClass:SDLBitsPerSample.class]) { + return (SDLBitsPerSample *)obj; + } else { + return [SDLBitsPerSample valueOf:(NSString *)obj]; + } +} + +- (void)setAudioType:(SDLAudioType *)audioType { + if (audioType != nil) { + [parameters setObject:audioType forKey:NAMES_audioType]; + } else { + [parameters removeObjectForKey:NAMES_audioType]; + } +} + +- (SDLAudioType *)audioType { + NSObject *obj = [parameters objectForKey:NAMES_audioType]; + if (obj == nil || [obj isKindOfClass:SDLAudioType.class]) { + return (SDLAudioType *)obj; + } else { + return [SDLAudioType valueOf:(NSString *)obj]; + } +} + +- (void)setMuteAudio:(NSNumber *)muteAudio { + if (muteAudio != nil) { + [parameters setObject:muteAudio forKey:NAMES_muteAudio]; + } else { + [parameters removeObjectForKey:NAMES_muteAudio]; + } +} + +- (NSNumber *)muteAudio { + return [parameters objectForKey:NAMES_muteAudio]; +} + +@end diff --git a/SmartDeviceLink/SDLPerformAudioPassThruResponse.h b/SmartDeviceLink/SDLPerformAudioPassThruResponse.h new file mode 100644 index 000000000..3d2835114 --- /dev/null +++ b/SmartDeviceLink/SDLPerformAudioPassThruResponse.h @@ -0,0 +1,25 @@ +// SDLPerformAudioPassThruResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Perform Audio Pass Thru Response is sent, when PerformAudioPassThru has been called + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLPerformAudioPassThruResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLPerformAudioPassThruResponse object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLPerformAudioPassThruResponse object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLPerformAudioPassThruResponse.m b/SmartDeviceLink/SDLPerformAudioPassThruResponse.m new file mode 100644 index 000000000..ed8a1e614 --- /dev/null +++ b/SmartDeviceLink/SDLPerformAudioPassThruResponse.m @@ -0,0 +1,23 @@ +// SDLPerformAudioPassThruResponse.m +// + + +#import "SDLPerformAudioPassThruResponse.h" + +#import "SDLNames.h" + +@implementation SDLPerformAudioPassThruResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_PerformAudioPassThru]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLPerformInteraction.h b/SmartDeviceLink/SDLPerformInteraction.h new file mode 100644 index 000000000..29f166c96 --- /dev/null +++ b/SmartDeviceLink/SDLPerformInteraction.h @@ -0,0 +1,85 @@ +// SDLPerformInteraction.h +// + + +#import "SDLRPCRequest.h" + +@class SDLInteractionMode; +@class SDLLayoutMode; + + +/** + * Performs an application-initiated interaction in which the user can select a + * {@linkplain Choice} from among the specified Choice Sets. For instance, an + * application may use a PerformInteraction to ask a user to say the name of a + * song to play. The user's response is only valid if it appears in the + * specified Choice Sets and is recognized by SDL + *

    + * Function Group: Base + *

    + * HMILevel needs to be FULL + *

    + * + * Since SmartDeviceLink 1.0
    + * See SDLCreateInteractionChoiceSet SDLDeleteInteractionChoiceSet + */ +@interface SDLPerformInteraction : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLPerformInteraction object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLPerformInteraction object indicated by the NSMutableDictionary + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The Text that Displayed when the interaction begins. This text may + * be overlaid by the "Listening" prompt during the interaction. Text is + * displayed on first line of multiline display, and is centered. If text + * does not fit on line, it will be truncated + */ +@property (strong) NSString *initialText; +/** + * @abstract An array of one or more TTSChunks that, taken together, specify + * what is to be spoken to the user at the start of an interaction + */ +@property (strong) NSMutableArray *initialPrompt; +/** + * @abstract The Indicates mode that indicate how user selects interaction + * choice. User can choose either by voice (VR_ONLY), by visual selection + * from the menu (MANUAL_ONLY), or by either mode (BOTH) + */ +@property (strong) SDLInteractionMode *interactionMode; +/** + * @abstract A Vector value representing an Array of one or more Choice + * Set IDs + */ +@property (strong) NSMutableArray *interactionChoiceSetIDList; +/** + * @abstract A Vector which taken together, specify the help phrase to + * be spoken when the user says "help" during the VR session + */ +@property (strong) NSMutableArray *helpPrompt; +/** + * @abstract An array of TTSChunks which, taken together, specify the phrase to + * be spoken when the listen times out during the VR session + */ +@property (strong) NSMutableArray *timeoutPrompt; +/** + * @abstract An Integer value representing the amount of time, in milliseconds, + * SDL will wait for the user to make a choice (VR or Menu) + */ +@property (strong) NSNumber *timeout; +/** + * @abstract A Voice recognition Help, which is a suggested VR Help Items to + * display on-screen during Perform Interaction + * @since SmartDeviceLink 2.0 + */ +@property (strong) NSMutableArray *vrHelp; +@property (strong) SDLLayoutMode *interactionLayout; + +@end diff --git a/SmartDeviceLink/SDLPerformInteraction.m b/SmartDeviceLink/SDLPerformInteraction.m new file mode 100644 index 000000000..de6c3622f --- /dev/null +++ b/SmartDeviceLink/SDLPerformInteraction.m @@ -0,0 +1,181 @@ +// SDLPerformInteraction.m +// + + +#import "SDLPerformInteraction.h" + +#import "SDLInteractionMode.h" +#import "SDLLayoutMode.h" +#import "SDLNames.h" +#import "SDLTTSChunk.h" +#import "SDLVRHelpItem.h" + +@implementation SDLPerformInteraction + +- (instancetype)init { + if (self = [super initWithName:NAMES_PerformInteraction]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setInitialText:(NSString *)initialText { + if (initialText != nil) { + [parameters setObject:initialText forKey:NAMES_initialText]; + } else { + [parameters removeObjectForKey:NAMES_initialText]; + } +} + +- (NSString *)initialText { + return [parameters objectForKey:NAMES_initialText]; +} + +- (void)setInitialPrompt:(NSMutableArray *)initialPrompt { + if (initialPrompt != nil) { + [parameters setObject:initialPrompt forKey:NAMES_initialPrompt]; + } else { + [parameters removeObjectForKey:NAMES_initialPrompt]; + } +} + +- (NSMutableArray *)initialPrompt { + NSMutableArray *array = [parameters objectForKey:NAMES_initialPrompt]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setInteractionMode:(SDLInteractionMode *)interactionMode { + if (interactionMode != nil) { + [parameters setObject:interactionMode forKey:NAMES_interactionMode]; + } else { + [parameters removeObjectForKey:NAMES_interactionMode]; + } +} + +- (SDLInteractionMode *)interactionMode { + NSObject *obj = [parameters objectForKey:NAMES_interactionMode]; + if (obj == nil || [obj isKindOfClass:SDLInteractionMode.class]) { + return (SDLInteractionMode *)obj; + } else { + return [SDLInteractionMode valueOf:(NSString *)obj]; + } +} + +- (void)setInteractionChoiceSetIDList:(NSMutableArray *)interactionChoiceSetIDList { + if (interactionChoiceSetIDList != nil) { + [parameters setObject:interactionChoiceSetIDList forKey:NAMES_interactionChoiceSetIDList]; + } else { + [parameters removeObjectForKey:NAMES_interactionChoiceSetIDList]; + } +} + +- (NSMutableArray *)interactionChoiceSetIDList { + return [parameters objectForKey:NAMES_interactionChoiceSetIDList]; +} + +- (void)setHelpPrompt:(NSMutableArray *)helpPrompt { + if (helpPrompt != nil) { + [parameters setObject:helpPrompt forKey:NAMES_helpPrompt]; + } else { + [parameters removeObjectForKey:NAMES_helpPrompt]; + } +} + +- (NSMutableArray *)helpPrompt { + NSMutableArray *array = [parameters objectForKey:NAMES_helpPrompt]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setTimeoutPrompt:(NSMutableArray *)timeoutPrompt { + if (timeoutPrompt != nil) { + [parameters setObject:timeoutPrompt forKey:NAMES_timeoutPrompt]; + } else { + [parameters removeObjectForKey:NAMES_timeoutPrompt]; + } +} + +- (NSMutableArray *)timeoutPrompt { + NSMutableArray *array = [parameters objectForKey:NAMES_timeoutPrompt]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setTimeout:(NSNumber *)timeout { + if (timeout != nil) { + [parameters setObject:timeout forKey:NAMES_timeout]; + } else { + [parameters removeObjectForKey:NAMES_timeout]; + } +} + +- (NSNumber *)timeout { + return [parameters objectForKey:NAMES_timeout]; +} + +- (void)setVrHelp:(NSMutableArray *)vrHelp { + if (vrHelp != nil) { + [parameters setObject:vrHelp forKey:NAMES_vrHelp]; + } else { + [parameters removeObjectForKey:NAMES_vrHelp]; + } +} + +- (NSMutableArray *)vrHelp { + NSMutableArray *array = [parameters objectForKey:NAMES_vrHelp]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLVRHelpItem.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLVRHelpItem alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setInteractionLayout:(SDLLayoutMode *)interactionLayout { + if (interactionLayout != nil) { + [parameters setObject:interactionLayout forKey:NAMES_interactionLayout]; + } else { + [parameters removeObjectForKey:NAMES_interactionLayout]; + } +} + +- (SDLLayoutMode *)interactionLayout { + NSObject *obj = [parameters objectForKey:NAMES_interactionLayout]; + if (obj == nil || [obj isKindOfClass:SDLLayoutMode.class]) { + return (SDLLayoutMode *)obj; + } else { + return [SDLLayoutMode valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLPerformInteractionResponse.h b/SmartDeviceLink/SDLPerformInteractionResponse.h new file mode 100644 index 000000000..b589f9492 --- /dev/null +++ b/SmartDeviceLink/SDLPerformInteractionResponse.h @@ -0,0 +1,55 @@ +// SDLPerformInteractionResponse.h +// + + +#import "SDLRPCResponse.h" + +@class SDLTriggerSource; + + +/** + * PerformInteraction Response is sent, when SDLPerformInteraction has been called + * + * @since SDL 1.0 + */ +@interface SDLPerformInteractionResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLPerformInteractionResponse object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLPerformInteractionResponse object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract ID of the choice that was selected in response to PerformInteraction. + * + * @discussion Only is valid if general result is "success:true". + * + * Optional, Integer, 0 - 2,000,000,000 + */ +@property (strong) NSNumber *choiceID; + +/** + * @abstract Manually entered text selection, e.g. through keyboard + * + * @discussion Can be returned in lieu of choiceID, depending on trigger source + * + * Optional, Max length 500 chars + */ +@property (strong) NSString *manualTextEntry; + +/** + * @abstract A *SDLTriggerSource* object which will be shown in the HMI + * + * @discussion Only is valid if resultCode is SUCCESS. + */ +@property (strong) SDLTriggerSource *triggerSource; + + +@end diff --git a/SmartDeviceLink/SDLPerformInteractionResponse.m b/SmartDeviceLink/SDLPerformInteractionResponse.m new file mode 100644 index 000000000..ae1c5e14c --- /dev/null +++ b/SmartDeviceLink/SDLPerformInteractionResponse.m @@ -0,0 +1,66 @@ +// SDLPerformInteractionResponse.m +// + + +#import "SDLPerformInteractionResponse.h" + +#import "SDLNames.h" +#import "SDLTriggerSource.h" + + +@implementation SDLPerformInteractionResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_PerformInteraction]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setChoiceID:(NSNumber *)choiceID { + if (choiceID != nil) { + [parameters setObject:choiceID forKey:NAMES_choiceID]; + } else { + [parameters removeObjectForKey:NAMES_choiceID]; + } +} + +- (NSNumber *)choiceID { + return [parameters objectForKey:NAMES_choiceID]; +} + +- (void)setManualTextEntry:(NSString *)manualTextEntry { + if (manualTextEntry != nil) { + [parameters setObject:manualTextEntry forKey:NAMES_manualTextEntry]; + } else { + [parameters removeObjectForKey:NAMES_manualTextEntry]; + } +} + +- (NSString *)manualTextEntry { + return [parameters objectForKey:NAMES_manualTextEntry]; +} + +- (void)setTriggerSource:(SDLTriggerSource *)triggerSource { + if (triggerSource != nil) { + [parameters setObject:triggerSource forKey:NAMES_triggerSource]; + } else { + [parameters removeObjectForKey:NAMES_triggerSource]; + } +} + +- (SDLTriggerSource *)triggerSource { + NSObject *obj = [parameters objectForKey:NAMES_triggerSource]; + if (obj == nil || [obj isKindOfClass:SDLTriggerSource.class]) { + return (SDLTriggerSource *)obj; + } else { + return [SDLTriggerSource valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLPermissionItem.h b/SmartDeviceLink/SDLPermissionItem.h new file mode 100644 index 000000000..a0fe0d580 --- /dev/null +++ b/SmartDeviceLink/SDLPermissionItem.h @@ -0,0 +1,20 @@ +// SDLPermissionItem.h +// + +#import "SDLRPCMessage.h" + +@class SDLHMIPermissions; +@class SDLParameterPermissions; + + +@interface SDLPermissionItem : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSString *rpcName; +@property (strong) SDLHMIPermissions *hmiPermissions; +@property (strong) SDLParameterPermissions *parameterPermissions; + +@end diff --git a/SmartDeviceLink/SDLPermissionItem.m b/SmartDeviceLink/SDLPermissionItem.m new file mode 100644 index 000000000..560094c2e --- /dev/null +++ b/SmartDeviceLink/SDLPermissionItem.m @@ -0,0 +1,71 @@ +// SDLPermissionItem.m +// + +#import "SDLPermissionItem.h" + +#import "SDLHMIPermissions.h" +#import "SDLNames.h" +#import "SDLParameterPermissions.h" + + +@implementation SDLPermissionItem + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setRpcName:(NSString *)rpcName { + if (rpcName != nil) { + [store setObject:rpcName forKey:NAMES_rpcName]; + } else { + [store removeObjectForKey:NAMES_rpcName]; + } +} + +- (NSString *)rpcName { + return [store objectForKey:NAMES_rpcName]; +} + +- (void)setHmiPermissions:(SDLHMIPermissions *)hmiPermissions { + if (hmiPermissions != nil) { + [store setObject:hmiPermissions forKey:NAMES_hmiPermissions]; + } else { + [store removeObjectForKey:NAMES_hmiPermissions]; + } +} + +- (SDLHMIPermissions *)hmiPermissions { + NSObject *obj = [store objectForKey:NAMES_hmiPermissions]; + if (obj == nil || [obj isKindOfClass:SDLHMIPermissions.class]) { + return (SDLHMIPermissions *)obj; + } else { + return [[SDLHMIPermissions alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setParameterPermissions:(SDLParameterPermissions *)parameterPermissions { + if (parameterPermissions != nil) { + [store setObject:parameterPermissions forKey:NAMES_parameterPermissions]; + } else { + [store removeObjectForKey:NAMES_parameterPermissions]; + } +} + +- (SDLParameterPermissions *)parameterPermissions { + NSObject *obj = [store objectForKey:NAMES_parameterPermissions]; + if (obj == nil || [obj isKindOfClass:SDLParameterPermissions.class]) { + return (SDLParameterPermissions *)obj; + } else { + return [[SDLParameterPermissions alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLPermissionStatus.h b/SmartDeviceLink/SDLPermissionStatus.h new file mode 100644 index 000000000..0ac9219ec --- /dev/null +++ b/SmartDeviceLink/SDLPermissionStatus.h @@ -0,0 +1,55 @@ +// SDLPermissionStatus.h +// + + +#import "SDLEnum.h" + +/** + * Enumeration that describes possible permission states of a policy table entry. + * + * @since SDL 2.0 + */ +@interface SDLPermissionStatus : SDLEnum { +} + +/** + * @abstract SDLPermissionStatus + * + * @param value The value of the string to get an object for + * + * @return a SDLPermissionStatus object + */ ++ (SDLPermissionStatus *)valueOf:(NSString *)value; + +/** + * @abstract declare an array to store all possible SDLPermissionStatus values + * @return the array + */ ++ (NSArray *)values; + + +/** + * @abstract permission: allowed + * @return permission status: *ALLOWED* + */ ++ (SDLPermissionStatus *)ALLOWED; + +/** + * @abstract permission: disallowed + * @return permission status: *DISALLOWED* + */ ++ (SDLPermissionStatus *)DISALLOWED; + +/** + * @abstract permission: user disallowed + * @return permission status: *USER_DISALLOWED* + */ ++ (SDLPermissionStatus *)USER_DISALLOWED; + +/** + * @abstract permission: user consent pending + * @return permission status: *USER_CONSENT_PENDING* + */ ++ (SDLPermissionStatus *)USER_CONSENT_PENDING; + +@end diff --git a/SmartDeviceLink/SDLPermissionStatus.m b/SmartDeviceLink/SDLPermissionStatus.m new file mode 100644 index 000000000..179cf2014 --- /dev/null +++ b/SmartDeviceLink/SDLPermissionStatus.m @@ -0,0 +1,65 @@ +// SDLPermissionStatus.m +// + + +#import "SDLPermissionStatus.h" + +SDLPermissionStatus *SDLPermissionStatus_ALLOWED = nil; +SDLPermissionStatus *SDLPermissionStatus_DISALLOWED = nil; +SDLPermissionStatus *SDLPermissionStatus_USER_DISALLOWED = nil; +SDLPermissionStatus *SDLPermissionStatus_USER_CONSENT_PENDING = nil; + +NSArray *SDLPermissionStatus_values = nil; + +@implementation SDLPermissionStatus + ++ (SDLPermissionStatus *)valueOf:(NSString *)value { + for (SDLPermissionStatus *item in SDLPermissionStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLPermissionStatus_values == nil) { + SDLPermissionStatus_values = @[ + SDLPermissionStatus.ALLOWED, + SDLPermissionStatus.DISALLOWED, + SDLPermissionStatus.USER_DISALLOWED, + SDLPermissionStatus.USER_CONSENT_PENDING, + ]; + } + return SDLPermissionStatus_values; +} + ++ (SDLPermissionStatus *)ALLOWED { + if (SDLPermissionStatus_ALLOWED == nil) { + SDLPermissionStatus_ALLOWED = [[SDLPermissionStatus alloc] initWithValue:@"ALLOWED"]; + } + return SDLPermissionStatus_ALLOWED; +} + ++ (SDLPermissionStatus *)DISALLOWED { + if (SDLPermissionStatus_DISALLOWED == nil) { + SDLPermissionStatus_DISALLOWED = [[SDLPermissionStatus alloc] initWithValue:@"DISALLOWED"]; + } + return SDLPermissionStatus_DISALLOWED; +} + ++ (SDLPermissionStatus *)USER_DISALLOWED { + if (SDLPermissionStatus_USER_DISALLOWED == nil) { + SDLPermissionStatus_USER_DISALLOWED = [[SDLPermissionStatus alloc] initWithValue:@"USER_DISALLOWED"]; + } + return SDLPermissionStatus_USER_DISALLOWED; +} + ++ (SDLPermissionStatus *)USER_CONSENT_PENDING { + if (SDLPermissionStatus_USER_CONSENT_PENDING == nil) { + SDLPermissionStatus_USER_CONSENT_PENDING = [[SDLPermissionStatus alloc] initWithValue:@"USER_CONSENT_PENDING"]; + } + return SDLPermissionStatus_USER_CONSENT_PENDING; +} + +@end diff --git a/SmartDeviceLink/SDLPolicyDataParser.h b/SmartDeviceLink/SDLPolicyDataParser.h new file mode 100644 index 000000000..4e005f9fe --- /dev/null +++ b/SmartDeviceLink/SDLPolicyDataParser.h @@ -0,0 +1,31 @@ +// +// PolicyDataParser.h +// + +#import + +@interface SDLPolicyDataParser : NSObject + +@property (assign) Byte protocolVersion; +@property (assign) BOOL isResponseRequired; +@property (assign) BOOL isHighBandwidth; +@property (assign) BOOL isSigned; +@property (assign) BOOL isEncrypted; +@property (assign) BOOL hasESN; +@property (assign) Byte serviceType; +@property (assign) Byte commandType; +@property (assign) BOOL CPUDestination; +@property (assign) Byte encryptionKeyIndex; +@property (assign) UInt32 payloadSize; +@property (strong) NSData *ESN; +@property (assign) UInt32 moduleMessageId; +@property (assign) UInt32 serverMessageId; +@property (assign) Byte messageStatus; +@property (strong) NSData *initializationVector; +@property (strong) NSData *payload; +@property (strong) NSData *signatureTag; + +- (NSData *)unwrap:(NSData *)wrappedData; +- (void)parsePolicyData:(NSData *)data; + +@end diff --git a/SmartDeviceLink/SDLPolicyDataParser.m b/SmartDeviceLink/SDLPolicyDataParser.m new file mode 100644 index 000000000..e528e4bd4 --- /dev/null +++ b/SmartDeviceLink/SDLPolicyDataParser.m @@ -0,0 +1,140 @@ +// +// PolicyDataParser.m +// + +#import "SDLPolicyDataParser.h" + + +@implementation SDLPolicyDataParser + +- (NSData *)unwrap:(NSData *)wrappedData { + NSData *decodedData = nil; + + @try { + NSError *errorJSONSerialization = nil; + NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:wrappedData options:kNilOptions error:&errorJSONSerialization]; + NSArray *array = dictionary[@"data"]; + NSString *base64EncodedString = array[0]; + + if ([NSData instancesRespondToSelector:@selector(initWithBase64EncodedString:options:)]) { + decodedData = [[NSData alloc] initWithBase64EncodedString:base64EncodedString options:0]; + } else { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + decodedData = [[NSData alloc] initWithBase64Encoding:base64EncodedString]; +#pragma clang diagnostic pop + } + } + @catch (NSException *exception) { + decodedData = nil; + NSLog(@"Error in PolicyDataParser::unwrap()"); + } + + return decodedData; +} + +- (void)parsePolicyData:(NSData *)data { + if (data == nil) { + return; + } + + @try { + Byte *bytes = (Byte *)data.bytes; + + Byte firstByte = bytes[0]; + self.protocolVersion = (firstByte & 0b11100000) >> 5; + self.isResponseRequired = (firstByte & 0b00010000) != 0; + self.isHighBandwidth = (firstByte & 0b00001000) != 0; + self.isSigned = (firstByte & 0b00000100) != 0; + self.isEncrypted = (firstByte & 0b00000010) != 0; + self.hasESN = (firstByte & 0b00000001) != 0; + + self.serviceType = bytes[1]; + + Byte thirdByte = bytes[2]; + self.commandType = (thirdByte & 0b11110000) >> 4; + self.CPUDestination = (thirdByte & 0b00001000) != 0; + self.encryptionKeyIndex = (thirdByte & 0b00000111); + + const int payloadSizeOffset = 3; + if (self.isHighBandwidth) { + self.payloadSize = ntohl(*(UInt32 *)(bytes + payloadSizeOffset)); + } else { + self.payloadSize = ntohs(*(UInt16 *)(bytes + payloadSizeOffset)); + } + + if (self.hasESN) { + int esnOffset = self.isHighBandwidth ? 7 : 5; + self.ESN = [NSData dataWithBytes:(bytes + esnOffset) length:8]; + } + + if (self.isHighBandwidth) { + int moduleMessageIdOffset = 7; + if (self.hasESN) + moduleMessageIdOffset += self.ESN.length; + self.moduleMessageId = ntohl(*(UInt32 *)(bytes + moduleMessageIdOffset)); + + int serverMessageIdOffset = 11; + if (self.hasESN) + serverMessageIdOffset += self.ESN.length; + self.serverMessageId = ntohl(*(UInt32 *)(bytes + serverMessageIdOffset)); + + int messageStatusOffset = 15; + if (self.hasESN) + messageStatusOffset += self.ESN.length; + self.messageStatus = bytes[messageStatusOffset]; + } + + if (self.isEncrypted) { + int ivOffset = 5; + if (self.isHighBandwidth) + ivOffset += 11; + if (self.hasESN) + ivOffset += self.ESN.length; + self.initializationVector = [NSData dataWithBytes:(bytes + ivOffset) length:16]; + } + + int payloadOffset = 5; + if (self.isHighBandwidth) + payloadOffset += 11; + if (self.hasESN) + payloadOffset += self.ESN.length; + if (self.isEncrypted) + payloadOffset += self.initializationVector.length; + self.payload = [NSData dataWithBytes:(bytes + payloadOffset) length:self.payloadSize]; + + if (self.isSigned) { + int signatureTagOffset = (int)data.length - 16; + self.signatureTag = [NSData dataWithBytes:(bytes + signatureTagOffset) length:16]; + } + + } + @catch (NSException *exception) { + NSLog(@"Error in PolicyDataParser::parsePolicyData()"); + } +} + +- (NSString *)description { + NSString *esnString = [[NSString alloc] initWithData:self.ESN encoding:NSUTF8StringEncoding]; + + NSMutableString *descriptionString = [NSMutableString stringWithFormat:@"Ver:%u; ", self.protocolVersion]; + [descriptionString appendFormat:@"RespReq:%u; ", self.isResponseRequired]; + [descriptionString appendFormat:@"HiBnd:%u; ", self.isHighBandwidth]; + [descriptionString appendFormat:@"Sign:%u; ", self.isSigned]; + [descriptionString appendFormat:@"Enc:%u; ", self.isEncrypted]; + [descriptionString appendFormat:@"HasESN:%u; ", self.hasESN]; + [descriptionString appendFormat:@"Svc:%u; ", self.serviceType]; + [descriptionString appendFormat:@"Cmd:%u; ", self.commandType]; + [descriptionString appendFormat:@"CPU:%u; ", self.CPUDestination]; + [descriptionString appendFormat:@"EncKey:%u; ", self.encryptionKeyIndex]; + [descriptionString appendFormat:@"sz:%u; ", (unsigned int)self.payloadSize]; + [descriptionString appendFormat:@"ESN:%@; ", esnString]; + [descriptionString appendFormat:@"mmid:%u; ", (unsigned int)self.moduleMessageId]; + [descriptionString appendFormat:@"smid:%u; ", (unsigned int)self.serverMessageId]; + [descriptionString appendFormat:@"status:%u; ", self.messageStatus]; + [descriptionString appendFormat:@"iv:%@; ", self.initializationVector]; + [descriptionString appendFormat:@"hmac:%@", self.signatureTag]; + return descriptionString; +} + +@end diff --git a/SmartDeviceLink/SDLPowerModeQualificationStatus.h b/SmartDeviceLink/SDLPowerModeQualificationStatus.h new file mode 100644 index 000000000..4e520196b --- /dev/null +++ b/SmartDeviceLink/SDLPowerModeQualificationStatus.h @@ -0,0 +1,18 @@ +// SDLPowerModeQualificationStatus.h +// + + +#import "SDLEnum.h" + +@interface SDLPowerModeQualificationStatus : SDLEnum { +} + ++ (SDLPowerModeQualificationStatus *)valueOf:(NSString *)value; ++ (NSArray *)values; + ++ (SDLPowerModeQualificationStatus *)POWER_MODE_UNDEFINED; ++ (SDLPowerModeQualificationStatus *)POWER_MODE_EVALUATION_IN_PROGRESS; ++ (SDLPowerModeQualificationStatus *)NOT_DEFINED; ++ (SDLPowerModeQualificationStatus *)POWER_MODE_OK; + +@end diff --git a/SmartDeviceLink/SDLPowerModeQualificationStatus.m b/SmartDeviceLink/SDLPowerModeQualificationStatus.m new file mode 100644 index 000000000..d820221e9 --- /dev/null +++ b/SmartDeviceLink/SDLPowerModeQualificationStatus.m @@ -0,0 +1,65 @@ +// SDLPowerModeQualificationStatus.m +// + + +#import "SDLPowerModeQualificationStatus.h" + +SDLPowerModeQualificationStatus *SDLPowerModeQualificationStatus_POWER_MODE_UNDEFINED = nil; +SDLPowerModeQualificationStatus *SDLPowerModeQualificationStatus_POWER_MODE_EVALUATION_IN_PROGRESS = nil; +SDLPowerModeQualificationStatus *SDLPowerModeQualificationStatus_NOT_DEFINED = nil; +SDLPowerModeQualificationStatus *SDLPowerModeQualificationStatus_POWER_MODE_OK = nil; + +NSArray *SDLPowerModeQualificationStatus_values = nil; + +@implementation SDLPowerModeQualificationStatus + ++ (SDLPowerModeQualificationStatus *)valueOf:(NSString *)value { + for (SDLPowerModeQualificationStatus *item in SDLPowerModeQualificationStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLPowerModeQualificationStatus_values == nil) { + SDLPowerModeQualificationStatus_values = @[ + SDLPowerModeQualificationStatus.POWER_MODE_UNDEFINED, + SDLPowerModeQualificationStatus.POWER_MODE_EVALUATION_IN_PROGRESS, + SDLPowerModeQualificationStatus.NOT_DEFINED, + SDLPowerModeQualificationStatus.POWER_MODE_OK, + ]; + } + return SDLPowerModeQualificationStatus_values; +} + ++ (SDLPowerModeQualificationStatus *)POWER_MODE_UNDEFINED { + if (SDLPowerModeQualificationStatus_POWER_MODE_UNDEFINED == nil) { + SDLPowerModeQualificationStatus_POWER_MODE_UNDEFINED = [[SDLPowerModeQualificationStatus alloc] initWithValue:@"POWER_MODE_UNDEFINED"]; + } + return SDLPowerModeQualificationStatus_POWER_MODE_UNDEFINED; +} + ++ (SDLPowerModeQualificationStatus *)POWER_MODE_EVALUATION_IN_PROGRESS { + if (SDLPowerModeQualificationStatus_POWER_MODE_EVALUATION_IN_PROGRESS == nil) { + SDLPowerModeQualificationStatus_POWER_MODE_EVALUATION_IN_PROGRESS = [[SDLPowerModeQualificationStatus alloc] initWithValue:@"POWER_MODE_EVALUATION_IN_PROGRESS"]; + } + return SDLPowerModeQualificationStatus_POWER_MODE_EVALUATION_IN_PROGRESS; +} + ++ (SDLPowerModeQualificationStatus *)NOT_DEFINED { + if (SDLPowerModeQualificationStatus_NOT_DEFINED == nil) { + SDLPowerModeQualificationStatus_NOT_DEFINED = [[SDLPowerModeQualificationStatus alloc] initWithValue:@"NOT_DEFINED"]; + } + return SDLPowerModeQualificationStatus_NOT_DEFINED; +} + ++ (SDLPowerModeQualificationStatus *)POWER_MODE_OK { + if (SDLPowerModeQualificationStatus_POWER_MODE_OK == nil) { + SDLPowerModeQualificationStatus_POWER_MODE_OK = [[SDLPowerModeQualificationStatus alloc] initWithValue:@"POWER_MODE_OK"]; + } + return SDLPowerModeQualificationStatus_POWER_MODE_OK; +} + +@end diff --git a/SmartDeviceLink/SDLPowerModeStatus.h b/SmartDeviceLink/SDLPowerModeStatus.h new file mode 100644 index 000000000..8eb24fdb4 --- /dev/null +++ b/SmartDeviceLink/SDLPowerModeStatus.h @@ -0,0 +1,23 @@ +// SDLPowerModeStatus.h +// + + +#import "SDLEnum.h" + +@interface SDLPowerModeStatus : SDLEnum { +} + ++ (SDLPowerModeStatus *)valueOf:(NSString *)value; ++ (NSArray *)values; + ++ (SDLPowerModeStatus *)KEY_OUT; ++ (SDLPowerModeStatus *)KEY_RECENTLY_OUT; ++ (SDLPowerModeStatus *)KEY_APPROVED_0; ++ (SDLPowerModeStatus *)POST_ACCESORY_0; ++ (SDLPowerModeStatus *)ACCESORY_1; ++ (SDLPowerModeStatus *)POST_IGNITION_1; ++ (SDLPowerModeStatus *)IGNITION_ON_2; ++ (SDLPowerModeStatus *)RUNNING_2; ++ (SDLPowerModeStatus *)CRANK_3; + +@end diff --git a/SmartDeviceLink/SDLPowerModeStatus.m b/SmartDeviceLink/SDLPowerModeStatus.m new file mode 100644 index 000000000..efc46a094 --- /dev/null +++ b/SmartDeviceLink/SDLPowerModeStatus.m @@ -0,0 +1,110 @@ +// SDLPowerModeStatus.m +// + + +#import "SDLPowerModeStatus.h" + +SDLPowerModeStatus *SDLPowerModeStatus_KEY_OUT = nil; +SDLPowerModeStatus *SDLPowerModeStatus_KEY_RECENTLY_OUT = nil; +SDLPowerModeStatus *SDLPowerModeStatus_KEY_APPROVED_0 = nil; +SDLPowerModeStatus *SDLPowerModeStatus_POST_ACCESORY_0 = nil; +SDLPowerModeStatus *SDLPowerModeStatus_ACCESORY_1 = nil; +SDLPowerModeStatus *SDLPowerModeStatus_POST_IGNITION_1 = nil; +SDLPowerModeStatus *SDLPowerModeStatus_IGNITION_ON_2 = nil; +SDLPowerModeStatus *SDLPowerModeStatus_RUNNING_2 = nil; +SDLPowerModeStatus *SDLPowerModeStatus_CRANK_3 = nil; + +NSArray *SDLPowerModeStatus_values = nil; + +@implementation SDLPowerModeStatus + ++ (SDLPowerModeStatus *)valueOf:(NSString *)value { + for (SDLPowerModeStatus *item in SDLPowerModeStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLPowerModeStatus_values == nil) { + SDLPowerModeStatus_values = @[ + SDLPowerModeStatus.KEY_OUT, + SDLPowerModeStatus.KEY_RECENTLY_OUT, + SDLPowerModeStatus.KEY_APPROVED_0, + SDLPowerModeStatus.POST_ACCESORY_0, + SDLPowerModeStatus.ACCESORY_1, + SDLPowerModeStatus.POST_IGNITION_1, + SDLPowerModeStatus.IGNITION_ON_2, + SDLPowerModeStatus.RUNNING_2, + SDLPowerModeStatus.CRANK_3, + ]; + } + return SDLPowerModeStatus_values; +} + ++ (SDLPowerModeStatus *)KEY_OUT { + if (SDLPowerModeStatus_KEY_OUT == nil) { + SDLPowerModeStatus_KEY_OUT = [[SDLPowerModeStatus alloc] initWithValue:@"KEY_OUT"]; + } + return SDLPowerModeStatus_KEY_OUT; +} + ++ (SDLPowerModeStatus *)KEY_RECENTLY_OUT { + if (SDLPowerModeStatus_KEY_RECENTLY_OUT == nil) { + SDLPowerModeStatus_KEY_RECENTLY_OUT = [[SDLPowerModeStatus alloc] initWithValue:@"KEY_RECENTLY_OUT"]; + } + return SDLPowerModeStatus_KEY_RECENTLY_OUT; +} + ++ (SDLPowerModeStatus *)KEY_APPROVED_0 { + if (SDLPowerModeStatus_KEY_APPROVED_0 == nil) { + SDLPowerModeStatus_KEY_APPROVED_0 = [[SDLPowerModeStatus alloc] initWithValue:@"KEY_APPROVED_0"]; + } + return SDLPowerModeStatus_KEY_APPROVED_0; +} + ++ (SDLPowerModeStatus *)POST_ACCESORY_0 { + if (SDLPowerModeStatus_POST_ACCESORY_0 == nil) { + SDLPowerModeStatus_POST_ACCESORY_0 = [[SDLPowerModeStatus alloc] initWithValue:@"POST_ACCESORY_0"]; + } + return SDLPowerModeStatus_POST_ACCESORY_0; +} + ++ (SDLPowerModeStatus *)ACCESORY_1 { + if (SDLPowerModeStatus_ACCESORY_1 == nil) { + SDLPowerModeStatus_ACCESORY_1 = [[SDLPowerModeStatus alloc] initWithValue:@"ACCESORY_1"]; + } + return SDLPowerModeStatus_ACCESORY_1; +} + ++ (SDLPowerModeStatus *)POST_IGNITION_1 { + if (SDLPowerModeStatus_POST_IGNITION_1 == nil) { + SDLPowerModeStatus_POST_IGNITION_1 = [[SDLPowerModeStatus alloc] initWithValue:@"POST_IGNITION_1"]; + } + return SDLPowerModeStatus_POST_IGNITION_1; +} + ++ (SDLPowerModeStatus *)IGNITION_ON_2 { + if (SDLPowerModeStatus_IGNITION_ON_2 == nil) { + SDLPowerModeStatus_IGNITION_ON_2 = [[SDLPowerModeStatus alloc] initWithValue:@"IGNITION_ON_2"]; + } + return SDLPowerModeStatus_IGNITION_ON_2; +} + ++ (SDLPowerModeStatus *)RUNNING_2 { + if (SDLPowerModeStatus_RUNNING_2 == nil) { + SDLPowerModeStatus_RUNNING_2 = [[SDLPowerModeStatus alloc] initWithValue:@"RUNNING_2"]; + } + return SDLPowerModeStatus_RUNNING_2; +} + ++ (SDLPowerModeStatus *)CRANK_3 { + if (SDLPowerModeStatus_CRANK_3 == nil) { + SDLPowerModeStatus_CRANK_3 = [[SDLPowerModeStatus alloc] initWithValue:@"CRANK_3"]; + } + return SDLPowerModeStatus_CRANK_3; +} + +@end diff --git a/SmartDeviceLink/SDLPredefinedLayout.h b/SmartDeviceLink/SDLPredefinedLayout.h new file mode 100644 index 000000000..7d061d449 --- /dev/null +++ b/SmartDeviceLink/SDLPredefinedLayout.h @@ -0,0 +1,34 @@ +// SDLPredefinedLayout.h +// + + +#import "SDLEnum.h" + +@interface SDLPredefinedLayout : SDLEnum { +} + ++ (SDLPredefinedLayout *)valueOf:(NSString *)value; ++ (NSArray *)values; + ++ (SDLPredefinedLayout *)DEFAULT; ++ (SDLPredefinedLayout *)MEDIA; ++ (SDLPredefinedLayout *)NON_MEDIA; ++ (SDLPredefinedLayout *)ONSCREEN_PRESETS; ++ (SDLPredefinedLayout *)NAV_FULLSCREEN_MAP; ++ (SDLPredefinedLayout *)NAV_LIST; ++ (SDLPredefinedLayout *)NAV_KEYBOARD; ++ (SDLPredefinedLayout *)GRAPHIC_WITH_TEXT; ++ (SDLPredefinedLayout *)TEXT_WITH_GRAPHIC; ++ (SDLPredefinedLayout *)TILES_ONLY; ++ (SDLPredefinedLayout *)TEXTBUTTONS_ONLY; ++ (SDLPredefinedLayout *)GRAPHIC_WITH_TILES; ++ (SDLPredefinedLayout *)TILES_WITH_GRAPHIC; ++ (SDLPredefinedLayout *)GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS; ++ (SDLPredefinedLayout *)TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC; ++ (SDLPredefinedLayout *)GRAPHIC_WITH_TEXTBUTTONS; ++ (SDLPredefinedLayout *)TEXTBUTTONS_WITH_GRAPHIC; ++ (SDLPredefinedLayout *)LARGE_GRAPHIC_WITH_SOFTBUTTONS; ++ (SDLPredefinedLayout *)DOUBLE_GRAPHIC_WITH_SOFTBUTTONS; ++ (SDLPredefinedLayout *)LARGE_GRAPHIC_ONLY; + +@end diff --git a/SmartDeviceLink/SDLPredefinedLayout.m b/SmartDeviceLink/SDLPredefinedLayout.m new file mode 100644 index 000000000..57dc2b384 --- /dev/null +++ b/SmartDeviceLink/SDLPredefinedLayout.m @@ -0,0 +1,209 @@ +// SDLPredefinedLayout.m +// + + +#import "SDLPredefinedLayout.h" + +SDLPredefinedLayout *SDLPredefinedLayout_DEFAULT = nil; +SDLPredefinedLayout *SDLPredefinedLayout_MEDIA = nil; +SDLPredefinedLayout *SDLPredefinedLayout_NON_MEDIA = nil; +SDLPredefinedLayout *SDLPredefinedLayout_ONSCREEN_PRESETS = nil; +SDLPredefinedLayout *SDLPredefinedLayout_NAV_FULLSCREEN_MAP = nil; +SDLPredefinedLayout *SDLPredefinedLayout_NAV_LIST = nil; +SDLPredefinedLayout *SDLPredefinedLayout_NAV_KEYBOARD = nil; +SDLPredefinedLayout *SDLPredefinedLayout_GRAPHIC_WITH_TEXT = nil; +SDLPredefinedLayout *SDLPredefinedLayout_TEXT_WITH_GRAPHIC = nil; +SDLPredefinedLayout *SDLPredefinedLayout_TILES_ONLY = nil; +SDLPredefinedLayout *SDLPredefinedLayout_TEXTBUTTONS_ONLY = nil; +SDLPredefinedLayout *SDLPredefinedLayout_GRAPHIC_WITH_TILES = nil; +SDLPredefinedLayout *SDLPredefinedLayout_TILES_WITH_GRAPHIC = nil; +SDLPredefinedLayout *SDLPredefinedLayout_GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS = nil; +SDLPredefinedLayout *SDLPredefinedLayout_TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC = nil; +SDLPredefinedLayout *SDLPredefinedLayout_GRAPHIC_WITH_TEXTBUTTONS = nil; +SDLPredefinedLayout *SDLPredefinedLayout_TEXTBUTTONS_WITH_GRAPHIC = nil; +SDLPredefinedLayout *SDLPredefinedLayout_LARGE_GRAPHIC_WITH_SOFTBUTTONS = nil; +SDLPredefinedLayout *SDLPredefinedLayout_DOUBLE_GRAPHIC_WITH_SOFTBUTTONS = nil; +SDLPredefinedLayout *SDLPredefinedLayout_LARGE_GRAPHIC_ONLY = nil; + +NSArray *SDLPredefinedLayout_values = nil; + +@implementation SDLPredefinedLayout + ++ (SDLPredefinedLayout *)valueOf:(NSString *)value { + for (SDLPredefinedLayout *item in SDLPredefinedLayout.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLPredefinedLayout_values == nil) { + SDLPredefinedLayout_values = @[ + SDLPredefinedLayout.DEFAULT, + SDLPredefinedLayout.MEDIA, + SDLPredefinedLayout.NON_MEDIA, + SDLPredefinedLayout.ONSCREEN_PRESETS, + SDLPredefinedLayout.NAV_FULLSCREEN_MAP, + SDLPredefinedLayout.NAV_LIST, + SDLPredefinedLayout.NAV_KEYBOARD, + SDLPredefinedLayout.GRAPHIC_WITH_TEXT, + SDLPredefinedLayout.TEXT_WITH_GRAPHIC, + SDLPredefinedLayout.TILES_ONLY, + SDLPredefinedLayout.TEXTBUTTONS_ONLY, + SDLPredefinedLayout.GRAPHIC_WITH_TILES, + SDLPredefinedLayout.TILES_WITH_GRAPHIC, + SDLPredefinedLayout.GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS, + SDLPredefinedLayout.TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC, + SDLPredefinedLayout.GRAPHIC_WITH_TEXTBUTTONS, + SDLPredefinedLayout.TEXTBUTTONS_WITH_GRAPHIC, + SDLPredefinedLayout.LARGE_GRAPHIC_WITH_SOFTBUTTONS, + SDLPredefinedLayout.DOUBLE_GRAPHIC_WITH_SOFTBUTTONS, + SDLPredefinedLayout.LARGE_GRAPHIC_ONLY, + ]; + } + return SDLPredefinedLayout_values; +} + ++ (SDLPredefinedLayout *)DEFAULT { + if (SDLPredefinedLayout_DEFAULT == nil) { + SDLPredefinedLayout_DEFAULT = [[SDLPredefinedLayout alloc] initWithValue:@"DEFAULT"]; + } + return SDLPredefinedLayout_DEFAULT; +} + ++ (SDLPredefinedLayout *)MEDIA { + if (SDLPredefinedLayout_MEDIA == nil) { + SDLPredefinedLayout_MEDIA = [[SDLPredefinedLayout alloc] initWithValue:@"MEDIA"]; + } + return SDLPredefinedLayout_MEDIA; +} + ++ (SDLPredefinedLayout *)NON_MEDIA { + if (SDLPredefinedLayout_NON_MEDIA == nil) { + SDLPredefinedLayout_NON_MEDIA = [[SDLPredefinedLayout alloc] initWithValue:@"NON-MEDIA"]; + } + return SDLPredefinedLayout_NON_MEDIA; +} + ++ (SDLPredefinedLayout *)ONSCREEN_PRESETS { + if (SDLPredefinedLayout_ONSCREEN_PRESETS == nil) { + SDLPredefinedLayout_ONSCREEN_PRESETS = [[SDLPredefinedLayout alloc] initWithValue:@"ONSCREEN_PRESETS"]; + } + return SDLPredefinedLayout_ONSCREEN_PRESETS; +} + ++ (SDLPredefinedLayout *)NAV_FULLSCREEN_MAP { + if (SDLPredefinedLayout_NAV_FULLSCREEN_MAP == nil) { + SDLPredefinedLayout_NAV_FULLSCREEN_MAP = [[SDLPredefinedLayout alloc] initWithValue:@"NAV_FULLSCREEN_MAP"]; + } + return SDLPredefinedLayout_NAV_FULLSCREEN_MAP; +} + ++ (SDLPredefinedLayout *)NAV_LIST { + if (SDLPredefinedLayout_NAV_LIST == nil) { + SDLPredefinedLayout_NAV_LIST = [[SDLPredefinedLayout alloc] initWithValue:@"NAV_LIST"]; + } + return SDLPredefinedLayout_NAV_LIST; +} + ++ (SDLPredefinedLayout *)NAV_KEYBOARD { + if (SDLPredefinedLayout_NAV_KEYBOARD == nil) { + SDLPredefinedLayout_NAV_KEYBOARD = [[SDLPredefinedLayout alloc] initWithValue:@"NAV_KEYBOARD"]; + } + return SDLPredefinedLayout_NAV_KEYBOARD; +} + ++ (SDLPredefinedLayout *)GRAPHIC_WITH_TEXT { + if (SDLPredefinedLayout_GRAPHIC_WITH_TEXT == nil) { + SDLPredefinedLayout_GRAPHIC_WITH_TEXT = [[SDLPredefinedLayout alloc] initWithValue:@"GRAPHIC_WITH_TEXT"]; + } + return SDLPredefinedLayout_GRAPHIC_WITH_TEXT; +} + ++ (SDLPredefinedLayout *)TEXT_WITH_GRAPHIC { + if (SDLPredefinedLayout_TEXT_WITH_GRAPHIC == nil) { + SDLPredefinedLayout_TEXT_WITH_GRAPHIC = [[SDLPredefinedLayout alloc] initWithValue:@"TEXT_WITH_GRAPHIC"]; + } + return SDLPredefinedLayout_TEXT_WITH_GRAPHIC; +} + ++ (SDLPredefinedLayout *)TILES_ONLY { + if (SDLPredefinedLayout_TILES_ONLY == nil) { + SDLPredefinedLayout_TILES_ONLY = [[SDLPredefinedLayout alloc] initWithValue:@"TILES_ONLY"]; + } + return SDLPredefinedLayout_TILES_ONLY; +} + ++ (SDLPredefinedLayout *)TEXTBUTTONS_ONLY { + if (SDLPredefinedLayout_TEXTBUTTONS_ONLY == nil) { + SDLPredefinedLayout_TEXTBUTTONS_ONLY = [[SDLPredefinedLayout alloc] initWithValue:@"TEXTBUTTONS_ONLY"]; + } + return SDLPredefinedLayout_TEXTBUTTONS_ONLY; +} + ++ (SDLPredefinedLayout *)GRAPHIC_WITH_TILES { + if (SDLPredefinedLayout_GRAPHIC_WITH_TILES == nil) { + SDLPredefinedLayout_GRAPHIC_WITH_TILES = [[SDLPredefinedLayout alloc] initWithValue:@"GRAPHIC_WITH_TILES"]; + } + return SDLPredefinedLayout_GRAPHIC_WITH_TILES; +} + ++ (SDLPredefinedLayout *)TILES_WITH_GRAPHIC { + if (SDLPredefinedLayout_TILES_WITH_GRAPHIC == nil) { + SDLPredefinedLayout_TILES_WITH_GRAPHIC = [[SDLPredefinedLayout alloc] initWithValue:@"TILES_WITH_GRAPHIC"]; + } + return SDLPredefinedLayout_TILES_WITH_GRAPHIC; +} + ++ (SDLPredefinedLayout *)GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS { + if (SDLPredefinedLayout_GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS == nil) { + SDLPredefinedLayout_GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS = [[SDLPredefinedLayout alloc] initWithValue:@"GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS"]; + } + return SDLPredefinedLayout_GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS; +} + ++ (SDLPredefinedLayout *)TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC { + if (SDLPredefinedLayout_TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC == nil) { + SDLPredefinedLayout_TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC = [[SDLPredefinedLayout alloc] initWithValue:@"TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC"]; + } + return SDLPredefinedLayout_TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC; +} + ++ (SDLPredefinedLayout *)GRAPHIC_WITH_TEXTBUTTONS { + if (SDLPredefinedLayout_GRAPHIC_WITH_TEXTBUTTONS == nil) { + SDLPredefinedLayout_GRAPHIC_WITH_TEXTBUTTONS = [[SDLPredefinedLayout alloc] initWithValue:@"GRAPHIC_WITH_TEXTBUTTONS"]; + } + return SDLPredefinedLayout_GRAPHIC_WITH_TEXTBUTTONS; +} + ++ (SDLPredefinedLayout *)TEXTBUTTONS_WITH_GRAPHIC { + if (SDLPredefinedLayout_TEXTBUTTONS_WITH_GRAPHIC == nil) { + SDLPredefinedLayout_TEXTBUTTONS_WITH_GRAPHIC = [[SDLPredefinedLayout alloc] initWithValue:@"TEXTBUTTONS_WITH_GRAPHIC"]; + } + return SDLPredefinedLayout_TEXTBUTTONS_WITH_GRAPHIC; +} + ++ (SDLPredefinedLayout *)LARGE_GRAPHIC_WITH_SOFTBUTTONS { + if (SDLPredefinedLayout_LARGE_GRAPHIC_WITH_SOFTBUTTONS == nil) { + SDLPredefinedLayout_LARGE_GRAPHIC_WITH_SOFTBUTTONS = [[SDLPredefinedLayout alloc] initWithValue:@"LARGE_GRAPHIC_WITH_SOFTBUTTONS"]; + } + return SDLPredefinedLayout_LARGE_GRAPHIC_WITH_SOFTBUTTONS; +} + ++ (SDLPredefinedLayout *)DOUBLE_GRAPHIC_WITH_SOFTBUTTONS { + if (SDLPredefinedLayout_DOUBLE_GRAPHIC_WITH_SOFTBUTTONS == nil) { + SDLPredefinedLayout_DOUBLE_GRAPHIC_WITH_SOFTBUTTONS = [[SDLPredefinedLayout alloc] initWithValue:@"DOUBLE_GRAPHIC_WITH_SOFTBUTTONS"]; + } + return SDLPredefinedLayout_DOUBLE_GRAPHIC_WITH_SOFTBUTTONS; +} + ++ (SDLPredefinedLayout *)LARGE_GRAPHIC_ONLY { + if (SDLPredefinedLayout_LARGE_GRAPHIC_ONLY == nil) { + SDLPredefinedLayout_LARGE_GRAPHIC_ONLY = [[SDLPredefinedLayout alloc] initWithValue:@"LARGE_GRAPHIC_ONLY"]; + } + return SDLPredefinedLayout_LARGE_GRAPHIC_ONLY; +} + +@end diff --git a/SmartDeviceLink/SDLPrerecordedSpeech.h b/SmartDeviceLink/SDLPrerecordedSpeech.h new file mode 100644 index 000000000..85934237a --- /dev/null +++ b/SmartDeviceLink/SDLPrerecordedSpeech.h @@ -0,0 +1,19 @@ +// SDLPrerecordedSpeech.h +// + + +#import "SDLEnum.h" + +@interface SDLPrerecordedSpeech : SDLEnum { +} + ++ (SDLPrerecordedSpeech *)valueOf:(NSString *)value; ++ (NSArray *)values; + ++ (SDLPrerecordedSpeech *)HELP_JINGLE; ++ (SDLPrerecordedSpeech *)INITIAL_JINGLE; ++ (SDLPrerecordedSpeech *)LISTEN_JINGLE; ++ (SDLPrerecordedSpeech *)POSITIVE_JINGLE; ++ (SDLPrerecordedSpeech *)NEGATIVE_JINGLE; + +@end diff --git a/SmartDeviceLink/SDLPrerecordedSpeech.m b/SmartDeviceLink/SDLPrerecordedSpeech.m new file mode 100644 index 000000000..676645f76 --- /dev/null +++ b/SmartDeviceLink/SDLPrerecordedSpeech.m @@ -0,0 +1,74 @@ +// SDLPrerecordedSpeech.m +// + + +#import "SDLPrerecordedSpeech.h" + +SDLPrerecordedSpeech *SDLPrerecordedSpeech_HELP_JINGLE = nil; +SDLPrerecordedSpeech *SDLPrerecordedSpeech_INITIAL_JINGLE = nil; +SDLPrerecordedSpeech *SDLPrerecordedSpeech_LISTEN_JINGLE = nil; +SDLPrerecordedSpeech *SDLPrerecordedSpeech_POSITIVE_JINGLE = nil; +SDLPrerecordedSpeech *SDLPrerecordedSpeech_NEGATIVE_JINGLE = nil; + +NSArray *SDLPrerecordedSpeech_values = nil; + +@implementation SDLPrerecordedSpeech + ++ (SDLPrerecordedSpeech *)valueOf:(NSString *)value { + for (SDLPrerecordedSpeech *item in SDLPrerecordedSpeech.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLPrerecordedSpeech_values == nil) { + SDLPrerecordedSpeech_values = @[ + SDLPrerecordedSpeech.HELP_JINGLE, + SDLPrerecordedSpeech.INITIAL_JINGLE, + SDLPrerecordedSpeech.LISTEN_JINGLE, + SDLPrerecordedSpeech.POSITIVE_JINGLE, + SDLPrerecordedSpeech.NEGATIVE_JINGLE, + ]; + } + return SDLPrerecordedSpeech_values; +} + ++ (SDLPrerecordedSpeech *)HELP_JINGLE { + if (SDLPrerecordedSpeech_HELP_JINGLE == nil) { + SDLPrerecordedSpeech_HELP_JINGLE = [[SDLPrerecordedSpeech alloc] initWithValue:@"HELP_JINGLE"]; + } + return SDLPrerecordedSpeech_HELP_JINGLE; +} + ++ (SDLPrerecordedSpeech *)INITIAL_JINGLE { + if (SDLPrerecordedSpeech_INITIAL_JINGLE == nil) { + SDLPrerecordedSpeech_INITIAL_JINGLE = [[SDLPrerecordedSpeech alloc] initWithValue:@"INITIAL_JINGLE"]; + } + return SDLPrerecordedSpeech_INITIAL_JINGLE; +} + ++ (SDLPrerecordedSpeech *)LISTEN_JINGLE { + if (SDLPrerecordedSpeech_LISTEN_JINGLE == nil) { + SDLPrerecordedSpeech_LISTEN_JINGLE = [[SDLPrerecordedSpeech alloc] initWithValue:@"LISTEN_JINGLE"]; + } + return SDLPrerecordedSpeech_LISTEN_JINGLE; +} + ++ (SDLPrerecordedSpeech *)POSITIVE_JINGLE { + if (SDLPrerecordedSpeech_POSITIVE_JINGLE == nil) { + SDLPrerecordedSpeech_POSITIVE_JINGLE = [[SDLPrerecordedSpeech alloc] initWithValue:@"POSITIVE_JINGLE"]; + } + return SDLPrerecordedSpeech_POSITIVE_JINGLE; +} + ++ (SDLPrerecordedSpeech *)NEGATIVE_JINGLE { + if (SDLPrerecordedSpeech_NEGATIVE_JINGLE == nil) { + SDLPrerecordedSpeech_NEGATIVE_JINGLE = [[SDLPrerecordedSpeech alloc] initWithValue:@"NEGATIVE_JINGLE"]; + } + return SDLPrerecordedSpeech_NEGATIVE_JINGLE; +} + +@end diff --git a/SmartDeviceLink/SDLPresetBankCapabilities.h b/SmartDeviceLink/SDLPresetBankCapabilities.h new file mode 100644 index 000000000..edf544f8b --- /dev/null +++ b/SmartDeviceLink/SDLPresetBankCapabilities.h @@ -0,0 +1,33 @@ +// SDLPresetBankCapabilities.h +// + + +#import "SDLRPCMessage.h" + +/** + * Contains information about on-screen preset capabilities. + * + * @since SDL 2.0 + */ +@interface SDLPresetBankCapabilities : SDLRPCStruct { +} + +/** + * @abstract Constructs a newly allocated SDLPresetBankCapabilities object + */ +- (instancetype)init; + +/** + * @abstract Constructs a newly allocated SDLPresetBankCapabilities object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract If Onscreen custom presets are available. + * + * Required, Boolean + */ +@property (strong) NSNumber *onScreenPresetsAvailable; + +@end diff --git a/SmartDeviceLink/SDLPresetBankCapabilities.m b/SmartDeviceLink/SDLPresetBankCapabilities.m new file mode 100644 index 000000000..7654aa61d --- /dev/null +++ b/SmartDeviceLink/SDLPresetBankCapabilities.m @@ -0,0 +1,35 @@ +// SDLPresetBankCapabilities.m +// + + +#import "SDLPresetBankCapabilities.h" + +#import "SDLNames.h" + +@implementation SDLPresetBankCapabilities + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setOnScreenPresetsAvailable:(NSNumber *)onScreenPresetsAvailable { + if (onScreenPresetsAvailable != nil) { + [store setObject:onScreenPresetsAvailable forKey:NAMES_onScreenPresetsAvailable]; + } else { + [store removeObjectForKey:NAMES_onScreenPresetsAvailable]; + } +} + +- (NSNumber *)onScreenPresetsAvailable { + return [store objectForKey:NAMES_onScreenPresetsAvailable]; +} + +@end diff --git a/SmartDeviceLink/SDLPrimaryAudioSource.h b/SmartDeviceLink/SDLPrimaryAudioSource.h new file mode 100644 index 000000000..81e9a2257 --- /dev/null +++ b/SmartDeviceLink/SDLPrimaryAudioSource.h @@ -0,0 +1,72 @@ +// SDLPrimaryAudioSource.h +// + + +#import "SDLEnum.h" + +/** + * Reflects the current primary audio source of SDL (if selected). + * + * @since SDL 2.0 + */ +@interface SDLPrimaryAudioSource : SDLEnum { +} + +/** + * @abstract get SDLPrimaryAudioSource according value string + * + * @param value String value to retrieve the object enum for + * + * @return SDLPrimaryAudioSource object + */ ++ (SDLPrimaryAudioSource *)valueOf:(NSString *)value; + +/** + * @abstract declare an array to store all possible SDLPrimaryAudioSource values + * @return the array + */ ++ (NSArray *)values; + +/** + * @abstract Currently no source selected + * @return the current primary audio source: *NO_SOURCE_SELECTED* + */ ++ (SDLPrimaryAudioSource *)NO_SOURCE_SELECTED; + +/** + * @abstract USB is current source + * @return the current primary audio source: *USB* + */ ++ (SDLPrimaryAudioSource *)USB; + +/** + * @abstract USB2 is current source + * @return the current primary audio source: *USB2* + */ ++ (SDLPrimaryAudioSource *)USB2; + +/** + * @abstract Bluetooth Stereo is current source + * @return the current primary audio source: *BLUETOOTH_STEREO_BTST* + */ ++ (SDLPrimaryAudioSource *)BLUETOOTH_STEREO_BTST; + +/** + * @abstract Line in is current source + * @return the current primary audio source: *LINE_IN* + */ ++ (SDLPrimaryAudioSource *)LINE_IN; + +/** + * @abstract iPod is current source + * @return the current primary audio source: *IPOD* + */ ++ (SDLPrimaryAudioSource *)IPOD; + +/** + * @abstract Mobile app is current source + * @return the current primary audio source: *MOBILE_APP* + */ ++ (SDLPrimaryAudioSource *)MOBILE_APP; + +@end diff --git a/SmartDeviceLink/SDLPrimaryAudioSource.m b/SmartDeviceLink/SDLPrimaryAudioSource.m new file mode 100644 index 000000000..4293411a8 --- /dev/null +++ b/SmartDeviceLink/SDLPrimaryAudioSource.m @@ -0,0 +1,92 @@ +// SDLPrimaryAudioSource.m +// + + +#import "SDLPrimaryAudioSource.h" + +SDLPrimaryAudioSource *SDLPrimaryAudioSource_NO_SOURCE_SELECTED = nil; +SDLPrimaryAudioSource *SDLPrimaryAudioSource_USB = nil; +SDLPrimaryAudioSource *SDLPrimaryAudioSource_USB2 = nil; +SDLPrimaryAudioSource *SDLPrimaryAudioSource_BLUETOOTH_STEREO_BTST = nil; +SDLPrimaryAudioSource *SDLPrimaryAudioSource_LINE_IN = nil; +SDLPrimaryAudioSource *SDLPrimaryAudioSource_IPOD = nil; +SDLPrimaryAudioSource *SDLPrimaryAudioSource_MOBILE_APP = nil; + +NSArray *SDLPrimaryAudioSource_values = nil; + +@implementation SDLPrimaryAudioSource + ++ (SDLPrimaryAudioSource *)valueOf:(NSString *)value { + for (SDLPrimaryAudioSource *item in SDLPrimaryAudioSource.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLPrimaryAudioSource_values == nil) { + SDLPrimaryAudioSource_values = @[ + SDLPrimaryAudioSource.NO_SOURCE_SELECTED, + SDLPrimaryAudioSource.USB, + SDLPrimaryAudioSource.USB2, + SDLPrimaryAudioSource.BLUETOOTH_STEREO_BTST, + SDLPrimaryAudioSource.LINE_IN, + SDLPrimaryAudioSource.IPOD, + SDLPrimaryAudioSource.MOBILE_APP, + ]; + } + return SDLPrimaryAudioSource_values; +} + ++ (SDLPrimaryAudioSource *)NO_SOURCE_SELECTED { + if (SDLPrimaryAudioSource_NO_SOURCE_SELECTED == nil) { + SDLPrimaryAudioSource_NO_SOURCE_SELECTED = [[SDLPrimaryAudioSource alloc] initWithValue:@"NO_SOURCE_SELECTED"]; + } + return SDLPrimaryAudioSource_NO_SOURCE_SELECTED; +} + ++ (SDLPrimaryAudioSource *)USB { + if (SDLPrimaryAudioSource_USB == nil) { + SDLPrimaryAudioSource_USB = [[SDLPrimaryAudioSource alloc] initWithValue:@"USB"]; + } + return SDLPrimaryAudioSource_USB; +} + ++ (SDLPrimaryAudioSource *)USB2 { + if (SDLPrimaryAudioSource_USB2 == nil) { + SDLPrimaryAudioSource_USB2 = [[SDLPrimaryAudioSource alloc] initWithValue:@"USB2"]; + } + return SDLPrimaryAudioSource_USB2; +} + ++ (SDLPrimaryAudioSource *)BLUETOOTH_STEREO_BTST { + if (SDLPrimaryAudioSource_BLUETOOTH_STEREO_BTST == nil) { + SDLPrimaryAudioSource_BLUETOOTH_STEREO_BTST = [[SDLPrimaryAudioSource alloc] initWithValue:@"BLUETOOTH_STEREO_BTST"]; + } + return SDLPrimaryAudioSource_BLUETOOTH_STEREO_BTST; +} + ++ (SDLPrimaryAudioSource *)LINE_IN { + if (SDLPrimaryAudioSource_LINE_IN == nil) { + SDLPrimaryAudioSource_LINE_IN = [[SDLPrimaryAudioSource alloc] initWithValue:@"LINE_IN"]; + } + return SDLPrimaryAudioSource_LINE_IN; +} + ++ (SDLPrimaryAudioSource *)IPOD { + if (SDLPrimaryAudioSource_IPOD == nil) { + SDLPrimaryAudioSource_IPOD = [[SDLPrimaryAudioSource alloc] initWithValue:@"IPOD"]; + } + return SDLPrimaryAudioSource_IPOD; +} + ++ (SDLPrimaryAudioSource *)MOBILE_APP { + if (SDLPrimaryAudioSource_MOBILE_APP == nil) { + SDLPrimaryAudioSource_MOBILE_APP = [[SDLPrimaryAudioSource alloc] initWithValue:@"MOBILE_APP"]; + } + return SDLPrimaryAudioSource_MOBILE_APP; +} + +@end diff --git a/SmartDeviceLink/SDLPrioritizedObjectCollection.h b/SmartDeviceLink/SDLPrioritizedObjectCollection.h new file mode 100644 index 000000000..8cf90c805 --- /dev/null +++ b/SmartDeviceLink/SDLPrioritizedObjectCollection.h @@ -0,0 +1,27 @@ +// +// SDLPrioritizedOutputCollection.h +// SmartDeviceLink +// + +#import + +@interface SDLPrioritizedObjectCollection : NSObject + +/** + * Add a new object to a push-pop collection. The object will be added in a location based on the priority passed in. + * + * A lower priority number is considered to be "higher". This is because this class is generally used with RPC service numbers, and lower services preempt higher ones. + * + * @param object The object to be added to the priority collection + * @param priority The priority to use when determining the location of the object in the collection. A lower number is considered a higher priority + */ +- (void)addObject:(id)object withPriority:(NSInteger)priority; + +/** + * Retreive the highest priority object from the collection. This also removes the object. + * + * @return The highest priority object retrieved from the collection. + */ +- (id)nextObject; + +@end diff --git a/SmartDeviceLink/SDLPrioritizedObjectCollection.m b/SmartDeviceLink/SDLPrioritizedObjectCollection.m new file mode 100644 index 000000000..637596d14 --- /dev/null +++ b/SmartDeviceLink/SDLPrioritizedObjectCollection.m @@ -0,0 +1,66 @@ +// +// SDLPrioritizedOutputCollection.m +// SmartDeviceLink +// + +#import "SDLPrioritizedObjectCollection.h" +#import "SDLObjectWithPriority.h" + + +@interface SDLPrioritizedObjectCollection () { + NSMutableArray *privateArray; +} +@end + + +@implementation SDLPrioritizedObjectCollection + +- (instancetype)init { + self = [super init]; + if (self) { + privateArray = [NSMutableArray new]; + } + return self; +} + +- (void)addObject:(id)object withPriority:(NSInteger)priority { + if (object == nil || [[NSNull null] isEqual:object]) { + return; + } + + SDLObjectWithPriority *newWrapper = [SDLObjectWithPriority objectWithObject:object priority:priority]; + + @synchronized(privateArray) { + // Find correct place to insert. + // Sorted in descending order. + BOOL lowerPriorityFound = NO; + NSInteger currentCount = privateArray.count; + for (int x = 0; x < currentCount; x++) { + SDLObjectWithPriority *o = privateArray[x]; + if (o.priority <= priority) { + lowerPriorityFound = YES; + [privateArray insertObject:newWrapper atIndex:x]; + break; + } + } + if (!lowerPriorityFound) { + [privateArray addObject:newWrapper]; + } + } +} + +- (instancetype)nextObject { + if (privateArray.count == 0) { + return nil; + } + + SDLObjectWithPriority *obj = nil; + @synchronized(privateArray) { + obj = (SDLObjectWithPriority *)[privateArray lastObject]; + [privateArray removeLastObject]; + } + + return obj.object; +} + +@end diff --git a/SmartDeviceLink/SDLProtocol.h b/SmartDeviceLink/SDLProtocol.h new file mode 100644 index 000000000..9c4505d2d --- /dev/null +++ b/SmartDeviceLink/SDLProtocol.h @@ -0,0 +1,21 @@ +// SDLSmartDeviceLinkProtocol.h +// + +#import "SDLAbstractProtocol.h" +@class SDLProtocolHeader; +@class SDLProtocolRecievedMessageRouter; + + +@interface SDLProtocol : SDLAbstractProtocol + +// Sending +- (void)sendStartSessionWithType:(SDLServiceType)serviceType; +- (void)sendEndSessionWithType:(SDLServiceType)serviceType; +- (void)sendRPC:(SDLRPCMessage *)message; +- (void)sendRPCRequest:(SDLRPCRequest *)rpcRequest __deprecated_msg(("Use sendRPC: instead")); +- (void)sendRawData:(NSData *)data withServiceType:(SDLServiceType)serviceType; + +// Recieving +- (void)handleBytesFromTransport:(NSData *)receivedData; + +@end diff --git a/SmartDeviceLink/SDLProtocol.m b/SmartDeviceLink/SDLProtocol.m new file mode 100644 index 000000000..bb6db1814 --- /dev/null +++ b/SmartDeviceLink/SDLProtocol.m @@ -0,0 +1,422 @@ +// SDLProtocol.m +// + + +#import "SDLFunctionID.h" +#import "SDLJsonEncoder.h" + +#import "SDLAbstractTransport.h" +#import "SDLDebugTool.h" +#import "SDLGlobals.h" +#import "SDLPrioritizedObjectCollection.h" +#import "SDLProtocol.h" +#import "SDLProtocolHeader.h" +#import "SDLProtocolMessage.h" +#import "SDLProtocolMessageDisassembler.h" +#import "SDLProtocolReceivedMessageRouter.h" +#import "SDLRPCNotification.h" +#import "SDLRPCPayload.h" +#import "SDLRPCRequest.h" +#import "SDLRPCResponse.h" +#import "SDLTimer.h" +#import "SDLV2ProtocolHeader.h" + + +@interface SDLProtocol () { + UInt32 _messageID; + dispatch_queue_t _receiveQueue; + dispatch_queue_t _sendQueue; + SDLPrioritizedObjectCollection *_prioritizedCollection; + NSMutableDictionary *_sessionIDs; + BOOL _alreadyDestructed; +} + +@property (assign) UInt8 sessionID; +@property (strong) NSMutableData *receiveBuffer; +@property (strong) SDLProtocolReceivedMessageRouter *messageRouter; +@end + + +@implementation SDLProtocol + +- (instancetype)init { + if (self = [super init]) { + _messageID = 0; + _sessionID = 0; + _receiveQueue = dispatch_queue_create("com.sdl.protocol.receive", DISPATCH_QUEUE_SERIAL); + _sendQueue = dispatch_queue_create("com.sdl.protocol.transmit", DISPATCH_QUEUE_SERIAL); + _prioritizedCollection = [[SDLPrioritizedObjectCollection alloc] init]; + _sessionIDs = [NSMutableDictionary new]; + _messageRouter = [[SDLProtocolReceivedMessageRouter alloc] init]; + _messageRouter.delegate = self; + } + + return self; +} + +- (void)sdl_storeSessionID:(UInt8)sessionID forServiceType:(SDLServiceType)serviceType { + _sessionIDs[@(serviceType)] = @(sessionID); +} + +- (void)sdl_removeSessionIdForServiceType:(SDLServiceType)serviceType { + [_sessionIDs removeObjectForKey:@(serviceType)]; +} + +- (UInt8)sdl_retrieveSessionIDforServiceType:(SDLServiceType)serviceType { + NSNumber *number = _sessionIDs[@(serviceType)]; + if (!number) { + NSString *logMessage = [NSString stringWithFormat:@"Warning: Tried to retrieve sessionID for serviceType %i, but no sessionID is saved for that service type.", serviceType]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Protocol toOutput:SDLDebugOutput_File | SDLDebugOutput_DeviceConsole toGroup:self.debugConsoleGroupName]; + } + + return (number ? [number unsignedCharValue] : 0); +} + +- (void)sendStartSessionWithType:(SDLServiceType)serviceType { + SDLProtocolHeader *header = [SDLProtocolHeader headerForVersion:[SDLGlobals globals].protocolVersion]; + switch (serviceType) { + case SDLServiceType_RPC: { + // Need a different header for starting the RPC service + header = [SDLProtocolHeader headerForVersion:1]; + if ([self sdl_retrieveSessionIDforServiceType:SDLServiceType_RPC]) { + header.sessionID = [self sdl_retrieveSessionIDforServiceType:SDLServiceType_RPC]; + } + } break; + default: { + header.sessionID = self.sessionID; + } break; + } + header.frameType = SDLFrameType_Control; + header.serviceType = serviceType; + header.frameData = SDLFrameData_StartSession; + + SDLProtocolMessage *message = [SDLProtocolMessage messageWithHeader:header andPayload:nil]; + [self sendDataToTransport:message.data withPriority:serviceType]; +} + +- (void)sendEndSessionWithType:(SDLServiceType)serviceType { + SDLProtocolHeader *header = [SDLProtocolHeader headerForVersion:[SDLGlobals globals].protocolVersion]; + header.frameType = SDLFrameType_Control; + header.serviceType = serviceType; + header.frameData = SDLFrameData_EndSession; + header.sessionID = [self sdl_retrieveSessionIDforServiceType:serviceType]; + + SDLProtocolMessage *message = [SDLProtocolMessage messageWithHeader:header andPayload:nil]; + [self sendDataToTransport:message.data withPriority:serviceType]; +} + +- (void)sendRPC:(SDLRPCMessage *)message { + NSParameterAssert(message != nil); + + NSData *jsonData = [[SDLJsonEncoder instance] encodeDictionary:[message serializeAsDictionary:[SDLGlobals globals].protocolVersion]]; + NSData *messagePayload = nil; + + NSString *logMessage = [NSString stringWithFormat:@"%@", message]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + // Build the message payload. Include the binary header if necessary + // VERSION DEPENDENT CODE + switch ([SDLGlobals globals].protocolVersion) { + case 1: { + // No binary header in version 1 + messagePayload = jsonData; + } break; + case 2: // Fallthrough + case 3: // Fallthrough + case 4: { + // Build a binary header + // Serialize the RPC data into an NSData + SDLRPCPayload *rpcPayload = [[SDLRPCPayload alloc] init]; + rpcPayload.functionID = [[[[SDLFunctionID alloc] init] getFunctionID:[message getFunctionName]] intValue]; + rpcPayload.jsonData = jsonData; + rpcPayload.binaryData = message.bulkData; + + // If it's a request or a response, we need to pull out the correlation ID, so we'll downcast + if ([message isKindOfClass:SDLRPCRequest.class]) { + rpcPayload.rpcType = SDLRPCMessageTypeRequest; + rpcPayload.correlationID = [((SDLRPCRequest *)message).correlationID intValue]; + } else if ([message isKindOfClass:SDLRPCResponse.class]) { + rpcPayload.rpcType = SDLRPCMessageTypeResponse; + rpcPayload.correlationID = [((SDLRPCResponse *)message).correlationID intValue]; + } else if ([message isKindOfClass:[SDLRPCNotification class]]) { + rpcPayload.rpcType = SDLRPCMessageTypeNotification; + } else { + NSAssert(NO, @"Unknown message type attempted to send. Type: %@", [message class]); + return; + } + + messagePayload = rpcPayload.data; + } break; + default: { + NSAssert(NO, @"Attempting to send an RPC based on an unknown version number: %@, message: %@", @([SDLGlobals globals].protocolVersion), message); + } break; + } + + // Build the protocol level header & message + SDLProtocolHeader *header = [SDLProtocolHeader headerForVersion:[SDLGlobals globals].protocolVersion]; + header.frameType = SDLFrameType_Single; + header.serviceType = (message.bulkData.length <= 0) ? SDLServiceType_RPC : SDLServiceType_BulkData; + header.frameData = SDLFrameData_SingleFrame; + header.sessionID = [self sdl_retrieveSessionIDforServiceType:SDLServiceType_RPC]; + header.bytesInPayload = (UInt32)messagePayload.length; + + // V2+ messages need to have message ID property set. + if ([SDLGlobals globals].protocolVersion >= 2) { + [((SDLV2ProtocolHeader *)header) setMessageID:++_messageID]; + } + + + SDLProtocolMessage *protocolMessage = [SDLProtocolMessage messageWithHeader:header andPayload:messagePayload]; + + // See if the message is small enough to send in one transmission. If not, break it up into smaller messages and send. + if (protocolMessage.size < [SDLGlobals globals].maxMTUSize) { + [self logRPCSend:protocolMessage]; + [self sendDataToTransport:protocolMessage.data withPriority:SDLServiceType_RPC]; + } else { + NSArray *messages = [SDLProtocolMessageDisassembler disassemble:protocolMessage withLimit:[SDLGlobals globals].maxMTUSize]; + for (SDLProtocolMessage *smallerMessage in messages) { + [self logRPCSend:smallerMessage]; + [self sendDataToTransport:smallerMessage.data withPriority:SDLServiceType_RPC]; + } + } +} + +// SDLRPCRequest in from app -> SDLProtocolMessage out to transport layer. +- (void)sendRPCRequest:(SDLRPCRequest *)rpcRequest { + [self sendRPC:rpcRequest]; +} + +- (void)logRPCSend:(SDLProtocolMessage *)message { + NSString *logMessage = [NSString stringWithFormat:@"Sending : %@", message]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Protocol toOutput:SDLDebugOutput_File | SDLDebugOutput_DeviceConsole toGroup:self.debugConsoleGroupName]; +} + +// Use for normal messages +- (void)sendDataToTransport:(NSData *)data withPriority:(NSInteger)priority { + [_prioritizedCollection addObject:data withPriority:priority]; + + dispatch_async(_sendQueue, ^{ + NSData *dataToTransmit = nil; + while (dataToTransmit = (NSData *)[_prioritizedCollection nextObject]) { + [self.transport sendData:dataToTransmit]; + }; + }); +} + +// Turn received bytes into message objects. +- (void)handleBytesFromTransport:(NSData *)receivedData { + // Initialize the receive buffer which will contain bytes while messages are constructed. + if (self.receiveBuffer == nil) { + self.receiveBuffer = [NSMutableData dataWithCapacity:(4 * [SDLGlobals globals].maxMTUSize)]; + } + + // Save the data + [self.receiveBuffer appendData:receivedData]; + + [self processMessages]; +} + +- (void)processMessages { + NSMutableString *logMessage = [[NSMutableString alloc] init]; + UInt8 incomingVersion = [SDLProtocolMessage determineVersion:self.receiveBuffer]; + + // If we have enough bytes, create the header. + SDLProtocolHeader *header = [SDLProtocolHeader headerForVersion:incomingVersion]; + NSUInteger headerSize = header.size; + if (self.receiveBuffer.length >= headerSize) { + [header parse:self.receiveBuffer]; + } else { + return; + } + + // If we have enough bytes, finish building the message. + SDLProtocolMessage *message = nil; + NSUInteger payloadSize = header.bytesInPayload; + NSUInteger messageSize = headerSize + payloadSize; + if (self.receiveBuffer.length >= messageSize) { + NSUInteger payloadOffset = headerSize; + NSUInteger payloadLength = payloadSize; + NSData *payload = [self.receiveBuffer subdataWithRange:NSMakeRange(payloadOffset, payloadLength)]; + message = [SDLProtocolMessage messageWithHeader:header andPayload:payload]; + [logMessage appendFormat:@"message complete. %@", message]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Protocol toOutput:SDLDebugOutput_File | SDLDebugOutput_DeviceConsole toGroup:self.debugConsoleGroupName]; + } else { + // Need to wait for more bytes. + [logMessage appendFormat:@"header complete. message incomplete, waiting for %ld more bytes. Header:%@", (long)(messageSize - self.receiveBuffer.length), header]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Protocol toOutput:SDLDebugOutput_File | SDLDebugOutput_DeviceConsole toGroup:self.debugConsoleGroupName]; + return; + } + + // Need to maintain the receiveBuffer, remove the bytes from it which we just processed. + self.receiveBuffer = [[self.receiveBuffer subdataWithRange:NSMakeRange(messageSize, self.receiveBuffer.length - messageSize)] mutableCopy]; + + // Pass on the message to the message router. + dispatch_async(_receiveQueue, ^{ + [self.messageRouter handleReceivedMessage:message]; + }); + + // Call recursively until the buffer is empty or incomplete message is encountered + if (self.receiveBuffer.length > 0) + [self processMessages]; +} + +- (void)sendHeartbeat { + SDLProtocolHeader *header = [SDLProtocolHeader headerForVersion:[SDLGlobals globals].protocolVersion]; + header.frameType = SDLFrameType_Control; + header.serviceType = SDLServiceType_Control; + header.frameData = SDLFrameData_Heartbeat; + header.sessionID = self.sessionID; + SDLProtocolMessage *message = [SDLProtocolMessage messageWithHeader:header andPayload:nil]; + [self sendDataToTransport:message.data withPriority:header.serviceType]; +} + +- (void)sendRawData:(NSData *)data withServiceType:(SDLServiceType)serviceType { + SDLV2ProtocolHeader *header = [[SDLV2ProtocolHeader alloc] initWithVersion:[SDLGlobals globals].protocolVersion]; + header.frameType = SDLFrameType_Single; + header.serviceType = serviceType; + header.sessionID = self.sessionID; + header.bytesInPayload = (UInt32)data.length; + header.messageID = ++_messageID; + + SDLProtocolMessage *message = [SDLProtocolMessage messageWithHeader:header andPayload:data]; + + if (message.size < [SDLGlobals globals].maxMTUSize) { + [self logRPCSend:message]; + [self sendDataToTransport:message.data withPriority:header.serviceType]; + } else { + NSArray *messages = [SDLProtocolMessageDisassembler disassemble:message withLimit:[SDLGlobals globals].maxMTUSize]; + for (SDLProtocolMessage *smallerMessage in messages) { + [self logRPCSend:smallerMessage]; + [self sendDataToTransport:smallerMessage.data withPriority:header.serviceType]; + } + } +} + + +#pragma mark - SDLProtocolListener Implementation +- (void)handleProtocolStartSessionACK:(SDLServiceType)serviceType sessionID:(Byte)sessionID version:(Byte)version { + switch (serviceType) { + case SDLServiceType_RPC: { + self.sessionID = sessionID; + [SDLGlobals globals].maxHeadUnitVersion = version; + } break; + default: + break; + } + + [self sdl_storeSessionID:sessionID forServiceType:serviceType]; + + for (id listener in self.protocolDelegateTable.allObjects) { + if ([listener respondsToSelector:@selector(handleProtocolStartSessionACK:sessionID:version:)]) { + [listener handleProtocolStartSessionACK:serviceType sessionID:sessionID version:version]; + } + } +} + +- (void)handleProtocolStartSessionNACK:(SDLServiceType)serviceType { + for (id listener in self.protocolDelegateTable.allObjects) { + if ([listener respondsToSelector:@selector(handleProtocolStartSessionNACK:)]) { + [listener handleProtocolStartSessionNACK:serviceType]; + } + } +} + +- (void)handleProtocolEndSessionACK:(SDLServiceType)serviceType { + // Remove the session id + [self sdl_removeSessionIdForServiceType:serviceType]; + + for (id listener in self.protocolDelegateTable.allObjects) { + if ([listener respondsToSelector:@selector(handleProtocolEndSessionACK:)]) { + [listener handleProtocolEndSessionACK:serviceType]; + } + } +} + +- (void)handleProtocolEndSessionNACK:(SDLServiceType)serviceType { + for (id listener in self.protocolDelegateTable.allObjects) { + if ([listener respondsToSelector:@selector(handleProtocolEndSessionNACK:)]) { + [listener handleProtocolEndSessionNACK:serviceType]; + } + } +} + +- (void)handleHeartbeatForSession:(Byte)session { + // Respond with a heartbeat ACK + SDLProtocolHeader *header = [SDLProtocolHeader headerForVersion:[SDLGlobals globals].protocolVersion]; + header.frameType = SDLFrameType_Control; + header.serviceType = SDLServiceType_Control; + header.frameData = SDLFrameData_HeartbeatACK; + header.sessionID = session; + SDLProtocolMessage *message = [SDLProtocolMessage messageWithHeader:header andPayload:nil]; + [self sendDataToTransport:message.data withPriority:header.serviceType]; + + for (id listener in self.protocolDelegateTable.allObjects) { + if ([listener respondsToSelector:@selector(handleHeartbeatForSession:)]) { + [listener handleHeartbeatForSession:session]; + } + } +} + +- (void)handleHeartbeatACK { + for (id listener in self.protocolDelegateTable.allObjects) { + if ([listener respondsToSelector:@selector(handleHeartbeatACK)]) { + [listener handleHeartbeatACK]; + } + } +} + +- (void)onProtocolMessageReceived:(SDLProtocolMessage *)msg { + for (id listener in self.protocolDelegateTable.allObjects) { + if ([listener respondsToSelector:@selector(onProtocolMessageReceived:)]) { + [listener onProtocolMessageReceived:msg]; + } + } +} + +- (void)onProtocolOpened { + for (id listener in self.protocolDelegateTable.allObjects) { + if ([listener respondsToSelector:@selector(onProtocolOpened)]) { + [listener onProtocolOpened]; + } + } +} + +- (void)onProtocolClosed { + for (id listener in self.protocolDelegateTable.allObjects) { + if ([listener respondsToSelector:@selector(onProtocolClosed)]) { + [listener onProtocolClosed]; + } + } +} + +- (void)onError:(NSString *)info exception:(NSException *)e { + for (id listener in self.protocolDelegateTable.allObjects) { + if ([listener respondsToSelector:@selector(onError:exception:)]) { + [listener onError:info exception:e]; + } + } +} + + +#pragma mark - Lifecycle + +- (void)destructObjects { + if (!_alreadyDestructed) { + _alreadyDestructed = YES; + self.messageRouter.delegate = nil; + self.messageRouter = nil; + self.transport = nil; + self.protocolDelegateTable = nil; + } +} + +- (void)dispose { + [self destructObjects]; +} + +- (void)dealloc { + [self destructObjects]; + [SDLDebugTool logInfo:@"SDLProtocol Dealloc" withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; +} + +@end diff --git a/SmartDeviceLink/SDLProtocolHeader.h b/SmartDeviceLink/SDLProtocolHeader.h new file mode 100644 index 000000000..e99e5d93c --- /dev/null +++ b/SmartDeviceLink/SDLProtocolHeader.h @@ -0,0 +1,61 @@ +// SDLProtocolHeader.h +// + +#import + + +typedef NS_ENUM(UInt8, SDLFrameType) { + SDLFrameType_Control = 0x00, + SDLFrameType_Single = 0x01, + SDLFrameType_First = 0x02, + SDLFrameType_Consecutive = 0x03 +}; + +typedef NS_ENUM(UInt8, SDLServiceType) { + SDLServiceType_Control = 0x00, + SDLServiceType_RPC = 0x07, + SDLServiceType_Audio = 0x0A, + SDLServiceType_Video = 0x0B, + SDLServiceType_BulkData = 0x0F +}; + +typedef NS_ENUM(UInt8, SDLFrameData) { + SDLFrameData_Heartbeat = 0x00, + SDLFrameData_StartSession = 0x01, + SDLFrameData_StartSessionACK = 0x02, + SDLFrameData_StartSessionNACK = 0x03, + SDLFrameData_EndSession = 0x04, + SDLFrameData_EndSessionACK = 0x05, + SDLFrameData_EndSessionNACK = 0x06, + SDLFrameData_ServiceDataACK = 0xFE, + SDLFrameData_HeartbeatACK = 0xFF, + // If frameType == Single (0x01) + SDLFrameData_SingleFrame = 0x00, + // If frameType == First (0x02) + SDLFrameData_FirstFrame = 0x00, + // If frametype == Consecutive (0x03) + SDLFrameData_ConsecutiveLastFrame = 0x00 +}; + + +@interface SDLProtocolHeader : NSObject { + UInt8 _version; + NSUInteger _size; +} + +@property (assign, readonly) UInt8 version; +@property (assign, readonly) NSUInteger size; +@property (assign) BOOL compressed; +@property (assign) SDLFrameType frameType; +@property (assign) SDLServiceType serviceType; +@property (assign) SDLFrameData frameData; +@property (assign) UInt8 sessionID; +@property (assign) UInt32 bytesInPayload; + +- (instancetype)init; +- (NSData *)data; +- (void)parse:(NSData *)data; +- (NSString *)description; ++ (SDLProtocolHeader *)headerForVersion:(UInt8)version; + +@end diff --git a/SmartDeviceLink/SDLProtocolHeader.m b/SmartDeviceLink/SDLProtocolHeader.m new file mode 100644 index 000000000..dff874a9d --- /dev/null +++ b/SmartDeviceLink/SDLProtocolHeader.m @@ -0,0 +1,60 @@ +// SDLProtocolHeader.m +// + + +#import "SDLProtocolHeader.h" +#import "SDLV1ProtocolHeader.h" +#import "SDLV2ProtocolHeader.h" + +@implementation SDLProtocolHeader + +@synthesize version = _version; +@synthesize size = _size; + + +- (instancetype)init { + if (self = [super init]) { + _version = 0; + _size = 0; + } + return self; +} + +- (id)copyWithZone:(NSZone *)zone { + [self doesNotRecognizeSelector:_cmd]; + return 0; +} + +- (NSData *)data { + [self doesNotRecognizeSelector:_cmd]; + return nil; +} + +- (void)parse:(NSData *)data { + [self doesNotRecognizeSelector:_cmd]; +} + +- (NSString *)description { + NSString *description = [NSString stringWithFormat:@"<%@: %p>", NSStringFromClass([self class]), self]; + return description; +} + ++ (SDLProtocolHeader *)headerForVersion:(UInt8)version { + // VERSION DEPENDENT CODE + switch (version) { + case 1: { + return [[SDLV1ProtocolHeader alloc] init]; + } break; + case 2: // Fallthrough + case 3: // Fallthrough + case 4: { + return [[SDLV2ProtocolHeader alloc] initWithVersion:version]; + } break; + default: { + NSString *reason = [NSString stringWithFormat:@"The version of header that is being created is unknown: %@", @(version)]; + @throw [NSException exceptionWithName:NSInvalidArgumentException reason:reason userInfo:@{ @"requestedVersion" : @(version) }]; + } break; + } +} + +@end \ No newline at end of file diff --git a/SmartDeviceLink/SDLProtocolListener.h b/SmartDeviceLink/SDLProtocolListener.h new file mode 100644 index 000000000..3fb1e550f --- /dev/null +++ b/SmartDeviceLink/SDLProtocolListener.h @@ -0,0 +1,23 @@ +// SDLProtocolListener.h +// + +#import "SDLProtocolHeader.h" + +@class SDLProtocolMessage; + + +@protocol SDLProtocolListener + +@optional +- (void)handleProtocolStartSessionACK:(SDLServiceType)serviceType sessionID:(Byte)sessionID version:(Byte)version; +- (void)handleProtocolStartSessionNACK:(SDLServiceType)serviceType; +- (void)handleProtocolEndSessionACK:(SDLServiceType)serviceType; +- (void)handleProtocolEndSessionNACK:(SDLServiceType)serviceType; +- (void)handleHeartbeatForSession:(Byte)session; +- (void)handleHeartbeatACK; +- (void)onProtocolMessageReceived:(SDLProtocolMessage *)msg; +- (void)onProtocolOpened; +- (void)onProtocolClosed; +- (void)onError:(NSString *)info exception:(NSException *)e; + +@end diff --git a/SmartDeviceLink/SDLProtocolMessage.h b/SmartDeviceLink/SDLProtocolMessage.h new file mode 100644 index 000000000..62abd6226 --- /dev/null +++ b/SmartDeviceLink/SDLProtocolMessage.h @@ -0,0 +1,23 @@ +// SDLSmartDeviceLinkProtocolMessage.h +// + +#import +@class SDLProtocolHeader; + + +@interface SDLProtocolMessage : NSObject + +@property (strong) SDLProtocolHeader *header; +@property (strong) NSData *payload; +@property (strong, readonly) NSData *data; + ++ (id)messageWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload; // Returns a V1 or V2 object + +- (NSUInteger)size; +- (NSString *)description; +- (NSDictionary *)rpcDictionary; // Use for RPC type messages to obtain the data in a dictionary + ++ (UInt8)determineVersion:(NSData *)data; + + +@end diff --git a/SmartDeviceLink/SDLProtocolMessage.m b/SmartDeviceLink/SDLProtocolMessage.m new file mode 100644 index 000000000..f68810123 --- /dev/null +++ b/SmartDeviceLink/SDLProtocolMessage.m @@ -0,0 +1,99 @@ +// SDLProtocolMessage.m +// + + +#import "SDLProtocolMessage.h" +#import "SDLFunctionID.h" +#import "SDLProtocolHeader.h" +#import "SDLRPCPayload.h" +#import "SDLV1ProtocolMessage.h" +#import "SDLV2ProtocolMessage.h" + +@interface SDLProtocolMessage () + +@property (strong) NSMutableData *internalBuffer; + +@end + +@implementation SDLProtocolMessage + +// For use in decoding a stream of bytes. +// Pass in bytes representing message (or beginning of message) +// Looks at and parses first byte to determine version. ++ (UInt8)determineVersion:(NSData *)data { + UInt8 firstByte = ((UInt8 *)data.bytes)[0]; + UInt8 version = firstByte >> 4; + return version; +} + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (NSDictionary *)rpcDictionary { + [self doesNotRecognizeSelector:_cmd]; + return nil; +} + +- (NSUInteger)size { + return (self.header.size + self.payload.length); +} + +- (NSData *)data { + NSMutableData *dataOut = [NSMutableData dataWithCapacity:[self size]]; + [dataOut appendData:self.header.data]; + [dataOut appendData:self.payload]; + + return dataOut; +} + +- (NSString *)description { + // Print the header data. + NSMutableString *description = [[NSMutableString alloc] init]; + [description appendString:self.header.description]; + + // If it's an RPC, provide greater detail + if (((self.header.serviceType == SDLServiceType_RPC) || (self.header.serviceType == SDLServiceType_BulkData)) && (self.header.frameType == SDLFrameType_Single)) { + // version of RPC Message determines how we access the info. + if (self.header.version >= 2) { + SDLRPCPayload *rpcPayload = [SDLRPCPayload rpcPayloadWithData:self.payload]; + if (rpcPayload) { + NSString *functionName = [[[SDLFunctionID alloc] init] getFunctionName:rpcPayload.functionID]; + + UInt8 rpcType = rpcPayload.rpcType; + NSArray *rpcTypeNames = @[ @"Request", @"Response", @"Notification" ]; + NSString *rpcTypeString = nil; + if (rpcType >= 0 && rpcType < rpcTypeNames.count) { + rpcTypeString = rpcTypeNames[rpcType]; + } + [description appendFormat:@" RPC Info: %@ %@", functionName, rpcTypeString]; + } + } else { + // version == 1 + // turn payload (which is JSON string) into dictionary and extract fields of interest. + } + } else { + // Not an RPC, provide generic info. + [description appendFormat:@" Payload: %lu bytes.", (unsigned long)self.payload.length]; + } + + return description; +} + +// Returns a V1 or V2 object ++ (id)messageWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload { + SDLProtocolMessage *newMessage = nil; + + UInt8 version = header.version; + if (version == 1) { + newMessage = [[SDLV1ProtocolMessage alloc] initWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload]; + } else if (version >= 2) { + newMessage = [[SDLV2ProtocolMessage alloc] initWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload]; + } + + return newMessage; +} + +@end diff --git a/SmartDeviceLink/SDLProtocolMessageAssembler.h b/SmartDeviceLink/SDLProtocolMessageAssembler.h new file mode 100644 index 000000000..3c793f441 --- /dev/null +++ b/SmartDeviceLink/SDLProtocolMessageAssembler.h @@ -0,0 +1,22 @@ +// SDLSmartDeviceLinkProtocolMessageAssembler.h +// + +#import + +@class SDLProtocolMessage; + + +typedef void (^SDLMessageAssemblyCompletionHandler)(BOOL done, SDLProtocolMessage *assembledMessage); + + +@interface SDLProtocolMessageAssembler : NSObject + +@property (assign, readonly) UInt8 sessionID; +@property (assign) UInt32 frameCount; // number of consecutive frames required for reassembly +@property (assign) UInt32 expectedBytes; +@property (strong) NSMutableDictionary *parts; + +- (instancetype)initWithSessionID:(UInt8)sessionID; +- (void)handleMessage:(SDLProtocolMessage *)message withCompletionHandler:(SDLMessageAssemblyCompletionHandler)completionHandler; + +@end diff --git a/SmartDeviceLink/SDLProtocolMessageAssembler.m b/SmartDeviceLink/SDLProtocolMessageAssembler.m new file mode 100644 index 000000000..c41591c51 --- /dev/null +++ b/SmartDeviceLink/SDLProtocolMessageAssembler.m @@ -0,0 +1,94 @@ +// SDLSmartDeviceLinkProtocolMessageAssembler.m +// + +#import "SDLProtocolMessageAssembler.h" + +#import "SDLProtocolHeader.h" +#import "SDLProtocolMessage.h" + +@implementation SDLProtocolMessageAssembler + +- (instancetype)initWithSessionID:(UInt8)sessionID { + if (self = [super init]) { + _sessionID = sessionID; + } + return self; +} + +- (void)handleMessage:(SDLProtocolMessage *)message withCompletionHandler:(SDLMessageAssemblyCompletionHandler)completionHandler { + // Validate input + if (message.header.sessionID != self.sessionID) { + NSLog(@"Error: message part sent to wrong assembler."); + return; + } + + if (self.parts == nil) { + self.parts = [NSMutableDictionary new]; + } + + + // Determine which frame it is and save it. + // Note: frames are numbered 1,2,3, ..., 0 + // Always 0 for last frame. + if (message.header.frameType == SDLFrameType_First) { + // If it's the first-frame, extract the meta-data + self.expectedBytes = NSSwapBigIntToHost(((UInt32 *)message.payload.bytes)[0]); + self.frameCount = NSSwapBigIntToHost(((UInt32 *)message.payload.bytes)[1]); + self.parts[@"firstframe"] = message.payload; + } else if (message.header.frameType == SDLFrameType_Consecutive) { + // Save the frame w/ frame# as the key + NSInteger frameNumber = message.header.frameData; + NSNumber *frameNumberObj = @(frameNumber); + self.parts[frameNumberObj] = message.payload; + } + + + // + // If we have all the parts, assemble it and execute the completion handler. + // + SDLProtocolMessage *assembledMessage = nil; + if (self.parts.count == self.frameCount + 1) { // +1 since we also require the first-frame + + // Create the header + SDLProtocolHeader *header = message.header.copy; + header.frameType = SDLFrameType_Single; + header.frameData = SDLFrameData_SingleFrame; + + + // Create the payload + NSMutableData *payload = [[NSMutableData alloc] init]; + for (unsigned int i = 1; i < self.frameCount; i++) { + NSData *dataToAppend = [self.parts objectForKey:[NSNumber numberWithUnsignedInt:i]]; + [payload appendData:dataToAppend]; + } + // Append the last frame, it has a frame # of 0. + NSData *dataToAppend = [self.parts objectForKey:[NSNumber numberWithUnsignedInt:0]]; + [payload appendData:dataToAppend]; + + // Validation + header.bytesInPayload = (UInt32)payload.length; + if (payload.length != self.expectedBytes) { + NSLog(@"Warning: collected bytes size of %lu not equal to expected size of %i.", (unsigned long)payload.length, (unsigned int)self.expectedBytes); + } + + // Create the message. + assembledMessage = [SDLProtocolMessage messageWithHeader:header andPayload:payload]; + + + // Execute completion handler. + if (completionHandler != nil) { + completionHandler(YES, assembledMessage); + } + + // Done with this data, release it. + self.parts = nil; + + } else { + // Not done, let caller know + if (completionHandler != nil) { + completionHandler(NO, nil); + } + } +} + +@end diff --git a/SmartDeviceLink/SDLProtocolMessageDisassembler.h b/SmartDeviceLink/SDLProtocolMessageDisassembler.h new file mode 100644 index 000000000..10f6f2860 --- /dev/null +++ b/SmartDeviceLink/SDLProtocolMessageDisassembler.h @@ -0,0 +1,13 @@ +// SDLSmartDeviceLinkProtocolMessageDisassembler.h +// + +#import + +@class SDLProtocolMessage; + + +@interface SDLProtocolMessageDisassembler : NSObject + ++ (NSArray *)disassemble:(SDLProtocolMessage *)protocolMessage withLimit:(NSUInteger)mtu; + +@end diff --git a/SmartDeviceLink/SDLProtocolMessageDisassembler.m b/SmartDeviceLink/SDLProtocolMessageDisassembler.m new file mode 100644 index 000000000..76d722956 --- /dev/null +++ b/SmartDeviceLink/SDLProtocolMessageDisassembler.m @@ -0,0 +1,89 @@ +// SDLProtocolMessageDisassembler.m +// + +#import "SDLProtocolMessageDisassembler.h" +#import "SDLProtocolHeader.h" +#import "SDLProtocolMessage.h" + + +@implementation SDLProtocolMessageDisassembler + + +// Use to break up a large message into a sequence of smaller messages, +// each of which is less than 'mtu' number of bytes total size. ++ (NSArray *)disassemble:(SDLProtocolMessage *)incomingMessage withLimit:(NSUInteger)mtu { + // Questions: + // What message IDs does the current system use? Same messageIDs? Same CorrelationIDs? + // What gets simply copied from incoming header to created headers; and what needs adjustment? + + // How big is the message header? + NSUInteger headerSize = incomingMessage.header.size; + + // The size of the message is too big to send in one chunk. + // So lets break it up. + // Just how big IS this message? + NSUInteger incomingPayloadSize = (incomingMessage.data.length - headerSize); + + // How many messages do we need to create to hold that many bytes? + // Note: this does NOT count the special first message which acts as a descriptor. + NSUInteger numberOfMessagesRequired = ceil((float)incomingPayloadSize / (float)(mtu - headerSize)); + + // And how many data bytes go in each message? + NSUInteger numberOfDataBytesPerMessage = mtu - headerSize; + + // Create the outgoing array to hold the messages we will create. + NSMutableArray *outgoingMessages = [NSMutableArray arrayWithCapacity:numberOfMessagesRequired + 1]; + + + // Create the first message + SDLProtocolHeader *firstFrameHeader = [incomingMessage.header copy]; + firstFrameHeader.frameType = SDLFrameType_First; + + UInt32 payloadData[2]; + payloadData[0] = CFSwapInt32HostToBig((UInt32)incomingMessage.payload.length); + payloadData[1] = CFSwapInt32HostToBig((UInt32)numberOfMessagesRequired); + NSMutableData *firstFramePayload = [NSMutableData dataWithBytes:payloadData length:sizeof(payloadData)]; + firstFrameHeader.bytesInPayload = (UInt32)firstFramePayload.length; + + SDLProtocolMessage *firstMessage = [SDLProtocolMessage messageWithHeader:firstFrameHeader andPayload:firstFramePayload]; + outgoingMessages[0] = firstMessage; + + + // Create the middle messages (the ones carrying the actual data). + for (int n = 0; n < numberOfMessagesRequired - 1; n++) { + // Frame # after 255 must cycle back to 1, not 0. + // A 0 signals last frame. + UInt8 frameNumber = (n % 255) + 1; + + SDLProtocolHeader *nextFrameHeader = [incomingMessage.header copy]; + nextFrameHeader.frameType = SDLFrameType_Consecutive; + nextFrameHeader.frameData = frameNumber; + + NSUInteger offsetOfDataForThisFrame = headerSize + (n * numberOfDataBytesPerMessage); + NSData *nextFramePayload = [incomingMessage.data subdataWithRange:NSMakeRange(offsetOfDataForThisFrame, numberOfDataBytesPerMessage)]; + nextFrameHeader.bytesInPayload = (UInt32)nextFramePayload.length; + + SDLProtocolMessage *nextMessage = [SDLProtocolMessage messageWithHeader:nextFrameHeader andPayload:nextFramePayload]; + outgoingMessages[n + 1] = nextMessage; + } + + + // Create the last message + SDLProtocolHeader *lastFrameHeader = [incomingMessage.header copy]; + lastFrameHeader.frameType = SDLFrameType_Consecutive; + lastFrameHeader.frameData = SDLFrameData_ConsecutiveLastFrame; + + NSUInteger numberOfMessagesCreatedSoFar = numberOfMessagesRequired - 1; + NSUInteger numberOfDataBytesSentSoFar = numberOfMessagesCreatedSoFar * numberOfDataBytesPerMessage; + NSUInteger numberOfDataBytesInLastMessage = incomingPayloadSize - numberOfDataBytesSentSoFar; + NSUInteger offsetOfDataForLastFrame = headerSize + numberOfDataBytesSentSoFar; + NSData *lastFramePayload = [incomingMessage.data subdataWithRange:NSMakeRange(offsetOfDataForLastFrame, numberOfDataBytesInLastMessage)]; + lastFrameHeader.bytesInPayload = (UInt32)lastFramePayload.length; + + SDLProtocolMessage *lastMessage = [SDLProtocolMessage messageWithHeader:lastFrameHeader andPayload:lastFramePayload]; + outgoingMessages[numberOfMessagesRequired] = lastMessage; + + return outgoingMessages; +} + +@end diff --git a/SmartDeviceLink/SDLProtocolReceivedMessageRouter.h b/SmartDeviceLink/SDLProtocolReceivedMessageRouter.h new file mode 100644 index 000000000..cd3e4c9c5 --- /dev/null +++ b/SmartDeviceLink/SDLProtocolReceivedMessageRouter.h @@ -0,0 +1,15 @@ +// SDLProtocolReceivedMessageRouter.h +// + + +#import "SDLProtocolListener.h" +@class SDLProtocolMessage; + + +@interface SDLProtocolReceivedMessageRouter : NSObject + +@property (weak) id delegate; + +- (void)handleReceivedMessage:(SDLProtocolMessage *)message; + +@end diff --git a/SmartDeviceLink/SDLProtocolReceivedMessageRouter.m b/SmartDeviceLink/SDLProtocolReceivedMessageRouter.m new file mode 100644 index 000000000..5ea7c6e63 --- /dev/null +++ b/SmartDeviceLink/SDLProtocolReceivedMessageRouter.m @@ -0,0 +1,116 @@ +// SDLProtocolReceivedMessageRouter.m +// + +// This class gets handed the SDLProtocol messages as they are received and decides what happens to them and where they are sent on to. + +#import "SDLProtocolReceivedMessageRouter.h" +#import "SDLDebugTool.h" +#import "SDLProtocolMessage.h" +#import "SDLProtocolMessageAssembler.h" + + +@interface SDLProtocolReceivedMessageRouter () + +@property (assign) BOOL alreadyDestructed; +@property (strong) NSMutableDictionary *messageAssemblers; + +- (void)dispatchProtocolMessage:(SDLProtocolMessage *)message; +- (void)dispatchControlMessage:(SDLProtocolMessage *)message; +- (void)dispatchMultiPartMessage:(SDLProtocolMessage *)message; + +@end + + +@implementation SDLProtocolReceivedMessageRouter + +- (instancetype)init { + if (self = [super init]) { + _alreadyDestructed = NO; + self.messageAssemblers = [NSMutableDictionary dictionaryWithCapacity:2]; + } + return self; +} + +- (void)handleReceivedMessage:(SDLProtocolMessage *)message { + SDLFrameType frameType = message.header.frameType; + + switch (frameType) { + case SDLFrameType_Single: { + [self dispatchProtocolMessage:message]; + } break; + case SDLFrameType_Control: { + [self dispatchControlMessage:message]; + } break; + case SDLFrameType_First: // fallthrough + case SDLFrameType_Consecutive: { + [self dispatchMultiPartMessage:message]; + } break; + default: break; + } +} + +- (void)dispatchProtocolMessage:(SDLProtocolMessage *)message { + [self.delegate onProtocolMessageReceived:message]; +} + +- (void)dispatchControlMessage:(SDLProtocolMessage *)message { + switch (message.header.frameData) { + case SDLFrameData_StartSessionACK: { + [self.delegate handleProtocolStartSessionACK:message.header.serviceType + sessionID:message.header.sessionID + version:message.header.version]; + + } break; + case SDLFrameData_StartSessionNACK: { + [self.delegate handleProtocolStartSessionNACK:message.header.serviceType]; + } break; + case SDLFrameData_EndSessionACK: { + [self.delegate handleProtocolEndSessionACK:message.header.serviceType]; + } break; + case SDLFrameData_EndSessionNACK: { + [self.delegate handleProtocolStartSessionNACK:message.header.serviceType]; + } break; + case SDLFrameData_Heartbeat: { + [self.delegate handleHeartbeatForSession:message.header.sessionID]; + } break; + case SDLFrameData_HeartbeatACK: { + [self.delegate handleHeartbeatACK]; + } break; + default: break; + } +} + +- (void)dispatchMultiPartMessage:(SDLProtocolMessage *)message { + // Pass multipart messages to an assembler and call delegate when done. + NSNumber *sessionID = [NSNumber numberWithUnsignedChar:message.header.sessionID]; + + SDLProtocolMessageAssembler *assembler = self.messageAssemblers[sessionID]; + if (assembler == nil) { + assembler = [[SDLProtocolMessageAssembler alloc] initWithSessionID:message.header.sessionID]; + self.messageAssemblers[sessionID] = assembler; + } + + SDLMessageAssemblyCompletionHandler completionHandler = ^void(BOOL done, SDLProtocolMessage *assembledMessage) { + if (done) { + [self dispatchProtocolMessage:assembledMessage]; + } + }; + [assembler handleMessage:message withCompletionHandler:completionHandler]; +} + +- (void)destructObjects { + if (!self.alreadyDestructed) { + self.alreadyDestructed = YES; + self.delegate = nil; + } +} + +- (void)dispose { + [self destructObjects]; +} + +- (void)dealloc { + [self destructObjects]; +} + +@end diff --git a/SmartDeviceLink/SDLProxy.h b/SmartDeviceLink/SDLProxy.h new file mode 100644 index 000000000..2d86439b7 --- /dev/null +++ b/SmartDeviceLink/SDLProxy.h @@ -0,0 +1,62 @@ +// SDLProxy.h +// + +@class SDLAbstractProtocol; +@class SDLAbstractTransport; +@class SDLProtocol; +@class SDLPutFile; +@class SDLRPCMessage; +@class SDLRPCRequestFactory; +@class SDLStreamingMediaManager; +@class SDLTimer; + +#import "SDLProtocolListener.h" +#import "SDLProxyListener.h" + + +@interface SDLProxy : NSObject { + Byte _version; + Byte _bulkSessionID; + BOOL _isConnected; + BOOL _alreadyDestructed; +} + +@property (strong) SDLAbstractProtocol *protocol; +@property (strong) SDLAbstractTransport *transport; +@property (readonly, copy) NSSet *proxyListeners; +@property (strong) SDLTimer *startSessionTimer; +@property (copy) NSString *debugConsoleGroupName; +@property (readonly, copy) NSString *proxyVersion; +@property (nonatomic, strong, readonly) SDLStreamingMediaManager *streamingMediaManager; + +- (id)initWithTransport:(SDLAbstractTransport *)transport + protocol:(SDLAbstractProtocol *)protocol + delegate:(NSObject *)delegate; +- (void)dispose; + +- (void)addDelegate:(NSObject *)delegate; +- (void)removeDelegate:(NSObject *)delegate; + +- (void)sendRPC:(SDLRPCMessage *)message; +- (void)sendRPCRequest:(SDLRPCMessage *)msg __deprecated_msg("use -sendRPC: instead"); + +- (void)handleRPCDictionary:(NSDictionary *)dictionary; +- (void)handleRpcMessage:(NSDictionary *)msg __deprecated_msg("use -handleRPCDictionary: instead"); + +- (void)handleProtocolMessage:(SDLProtocolMessage *)msgData; + ++ (void)enableSiphonDebug; ++ (void)disableSiphonDebug; + +/** + * Puts data into a file on the module + * @abstract Performs a putFile for a given input stream, performed in chunks, for handling very large files. + * @param inputStream A stream containing the data to put to the module. + * @param putFileRPCRequest A SDLPutFile object containing the parameters for the put(s) + * @discussion The proxy will read from the stream based on the max MTU size and send them in individual putFile requests. + * This may result in multiple responses being received, one for each request. + * Note: the length parameter of the putFileRPCRequest will be ignored. The proxy will substitute the number of bytes read from the stream. + */ +- (void)putFileStream:(NSInputStream *)inputStream withRequest:(SDLPutFile *)putFileRPCRequest; + +@end diff --git a/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink/SDLProxy.m new file mode 100644 index 000000000..73b8399e3 --- /dev/null +++ b/SmartDeviceLink/SDLProxy.m @@ -0,0 +1,758 @@ +// SDLProxy.m + +#import "SDLProxy.h" + +#import +#import +#import + +#import "SDLAbstractTransport.h" +#import "SDLAudioStreamingState.h" +#import "SDLDebugTool.h" +#import "SDLEncodedSyncPData.h" +#import "SDLFileType.h" +#import "SDLFunctionID.h" +#import "SDLGlobals.h" +#import "SDLHMILevel.h" +#import "SDLJsonDecoder.h" +#import "SDLJsonEncoder.h" +#import "SDLLanguage.h" +#import "SDLLayoutMode.h" +#import "SDLLockScreenManager.h" +#import "SDLLockScreenManager.h" +#import "SDLNames.h" +#import "SDLOnHMIStatus.h" +#import "SDLOnSystemRequest.h" +#import "SDLPolicyDataParser.h" +#import "SDLPolicyDataParser.h" +#import "SDLProtocol.h" +#import "SDLProtocolMessage.h" +#import "SDLProtocolMessage.h" +#import "SDLPutFile.h" +#import "SDLRPCPayload.h" +#import "SDLRPCPayload.h" +#import "SDLRPCRequestFactory.h" +#import "SDLRPCResponse.h" +#import "SDLRequestType.h" +#import "SDLSiphonServer.h" +#import "SDLStreamingMediaManager.h" +#import "SDLSystemContext.h" +#import "SDLSystemRequest.h" +#import "SDLTimer.h" +#import "SDLURLSession.h" + + +typedef void (^URLSessionTaskCompletionHandler)(NSData *data, NSURLResponse *response, NSError *error); +typedef void (^URLSessionDownloadTaskCompletionHandler)(NSURL *location, NSURLResponse *response, NSError *error); + +NSString *const SDLProxyVersion = @"4.1.2"; +const float startSessionTime = 10.0; +const float notifyProxyClosedDelay = 0.1; +const int POLICIES_CORRELATION_ID = 65535; + + +@interface SDLProxy () { + SDLLockScreenManager *_lsm; +} + +@property (strong, nonatomic) NSMutableSet *mutableProxyListeners; +@property (nonatomic, strong, readwrite) SDLStreamingMediaManager *streamingMediaManager; + +@end + + +@implementation SDLProxy + +#pragma mark - Object lifecycle +- (instancetype)initWithTransport:(SDLAbstractTransport *)transport protocol:(SDLAbstractProtocol *)protocol delegate:(NSObject *)theDelegate { + if (self = [super init]) { + _debugConsoleGroupName = @"default"; + _lsm = [[SDLLockScreenManager alloc] init]; + _alreadyDestructed = NO; + + _mutableProxyListeners = [NSMutableSet setWithObject:theDelegate]; + _protocol = protocol; + _transport = transport; + _transport.delegate = protocol; + [_protocol.protocolDelegateTable addObject:self]; + _protocol.transport = transport; + + [self.transport connect]; + + [SDLDebugTool logInfo:@"SDLProxy initWithTransport"]; + [[EAAccessoryManager sharedAccessoryManager] registerForLocalNotifications]; + } + + return self; +} + +- (void)destructObjects { + if (!_alreadyDestructed) { + _alreadyDestructed = YES; + + [[NSNotificationCenter defaultCenter] removeObserver:self]; + [[EAAccessoryManager sharedAccessoryManager] unregisterForLocalNotifications]; + + [[SDLURLSession defaultSession] cancelAllTasks]; + + [self.protocol dispose]; + [self.transport dispose]; + + _transport = nil; + _protocol = nil; + _mutableProxyListeners = nil; + } +} + +- (void)dispose { + if (self.transport != nil) { + [self.transport disconnect]; + } + + [self destructObjects]; +} + +- (void)dealloc { + [self destructObjects]; + [SDLDebugTool logInfo:@"SDLProxy Dealloc" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:_debugConsoleGroupName]; +} + +- (void)notifyProxyClosed { + if (_isConnected) { + _isConnected = NO; + [self invokeMethodOnDelegates:@selector(onProxyClosed) withObject:nil]; + } +} + +#pragma mark - Accessors + +- (NSSet *)proxyListeners { + return [self.mutableProxyListeners copy]; +} + +#pragma mark - Methods + +- (void)sendMobileHMIState { + UIApplicationState appState = [UIApplication sharedApplication].applicationState; + SDLOnHMIStatus *HMIStatusRPC = [[SDLOnHMIStatus alloc] init]; + + HMIStatusRPC.audioStreamingState = [SDLAudioStreamingState NOT_AUDIBLE]; + HMIStatusRPC.systemContext = [SDLSystemContext MAIN]; + + switch (appState) { + case UIApplicationStateActive: { + HMIStatusRPC.hmiLevel = [SDLHMILevel FULL]; + } break; + case UIApplicationStateBackground: // Fallthrough + case UIApplicationStateInactive: { + HMIStatusRPC.hmiLevel = [SDLHMILevel BACKGROUND]; + } break; + default: + break; + } + + NSString *log = [NSString stringWithFormat:@"Sending new mobile hmi state: %@", HMIStatusRPC.hmiLevel.value]; + [SDLDebugTool logInfo:log withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + [self sendRPC:HMIStatusRPC]; +} + + +#pragma mark - Setters / Getters + +- (NSString *)proxyVersion { + return SDLProxyVersion; +} + +- (SDLStreamingMediaManager *)streamingMediaManager { + if (_streamingMediaManager == nil) { + _streamingMediaManager = [[SDLStreamingMediaManager alloc] initWithProtocol:self.protocol]; + [self.protocol.protocolDelegateTable addObject:_streamingMediaManager]; + } + + return _streamingMediaManager; +} + + +#pragma mark - SDLProtocolListener Implementation +- (void)onProtocolOpened { + _isConnected = YES; + [SDLDebugTool logInfo:@"StartSession (request)" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + [self.protocol sendStartSessionWithType:SDLServiceType_RPC]; + + if (self.startSessionTimer == nil) { + self.startSessionTimer = [[SDLTimer alloc] initWithDuration:startSessionTime repeat:NO]; + __weak typeof(self) weakSelf = self; + self.startSessionTimer.elapsedBlock = ^{ + [SDLDebugTool logInfo:@"Start Session Timeout" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:weakSelf.debugConsoleGroupName]; + [weakSelf performSelector:@selector(notifyProxyClosed) withObject:nil afterDelay:notifyProxyClosedDelay]; + }; + } + [self.startSessionTimer start]; +} + +- (void)onProtocolClosed { + [self notifyProxyClosed]; +} + +- (void)onError:(NSString *)info exception:(NSException *)e { + [self invokeMethodOnDelegates:@selector(onError:) withObject:e]; +} + +- (void)handleProtocolStartSessionACK:(SDLServiceType)serviceType sessionID:(Byte)sessionID version:(Byte)version { + // Turn off the timer, the start session response came back + [self.startSessionTimer cancel]; + + NSString *logMessage = [NSString stringWithFormat:@"StartSession (response)\nSessionId: %d for serviceType %d", sessionID, serviceType]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + if (serviceType == SDLServiceType_RPC) { + [self invokeMethodOnDelegates:@selector(onProxyOpened) withObject:nil]; + } +} + +- (void)onProtocolMessageReceived:(SDLProtocolMessage *)msgData { + @try { + [self handleProtocolMessage:msgData]; + } @catch (NSException *e) { + NSString *logMessage = [NSString stringWithFormat:@"Proxy: Failed to handle protocol message %@", e]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Debug toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + } +} + + +#pragma mark - Message sending and recieving +- (void)sendRPC:(SDLRPCMessage *)message { + @try { + [self.protocol sendRPC:message]; + } @catch (NSException *exception) { + NSString *logMessage = [NSString stringWithFormat:@"Proxy: Failed to send RPC message: %@", message.name]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Debug toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + } +} + +- (void)sendRPCRequest:(SDLRPCMessage *)msg { + if ([msg isKindOfClass:SDLRPCRequest.class]) { + [self sendRPC:msg]; + } +} + +- (void)handleProtocolMessage:(SDLProtocolMessage *)incomingMessage { + // Convert protocol message to dictionary + NSDictionary *rpcMessageAsDictionary = [incomingMessage rpcDictionary]; + [self handleRPCDictionary:rpcMessageAsDictionary]; +} + +- (void)handleRPCDictionary:(NSDictionary *)dict { + SDLRPCMessage *message = [[SDLRPCMessage alloc] initWithDictionary:[dict mutableCopy]]; + NSString *functionName = [message getFunctionName]; + NSString *messageType = [message messageType]; + + // If it's a response, append response + if ([messageType isEqualToString:NAMES_response]) { + BOOL notGenericResponseMessage = ![functionName isEqualToString:@"GenericResponse"]; + if (notGenericResponseMessage) { + functionName = [NSString stringWithFormat:@"%@Response", functionName]; + } + } + + // From the function name, create the corresponding RPCObject and initialize it + NSString *functionClassName = [NSString stringWithFormat:@"SDL%@", functionName]; + SDLRPCMessage *newMessage = [[NSClassFromString(functionClassName) alloc] initWithDictionary:[dict mutableCopy]]; + + // Log the RPC message + NSString *logMessage = [NSString stringWithFormat:@"%@", newMessage]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + // Intercept and handle several messages ourselves + if ([functionName isEqualToString:NAMES_OnAppInterfaceUnregistered] || [functionName isEqualToString:NAMES_UnregisterAppInterface]) { + [self handleRPCUnregistered:dict]; + } + + if ([functionName isEqualToString:@"RegisterAppInterfaceResponse"]) { + [self handleRegisterAppInterfaceResponse:(SDLRPCResponse *)newMessage]; + } + + if ([functionName isEqualToString:@"EncodedSyncPDataResponse"]) { + [SDLDebugTool logInfo:@"EncodedSyncPData (response)" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + } + + if ([functionName isEqualToString:@"OnEncodedSyncPData"]) { + [self handleSyncPData:newMessage]; + } + + if ([functionName isEqualToString:@"OnSystemRequest"]) { + [self handleSystemRequest:dict]; + } + + if ([functionName isEqualToString:@"SystemRequestResponse"]) { + [self handleSystemRequestResponse:newMessage]; + } + + // Formulate the name of the method to call and invoke the method on the delegate(s) + NSString *handlerName = [NSString stringWithFormat:@"on%@:", functionName]; + SEL handlerSelector = NSSelectorFromString(handlerName); + [self invokeMethodOnDelegates:handlerSelector withObject:newMessage]; + + // When an OnHMIStatus notification comes in, after passing it on (above), generate an "OnLockScreenNotification" + if ([functionName isEqualToString:@"OnHMIStatus"]) { + [self handleAfterHMIStatus:newMessage]; + } + + // When an OnDriverDistraction notification comes in, after passing it on (above), generate an "OnLockScreenNotification" + if ([functionName isEqualToString:@"OnDriverDistraction"]) { + [self handleAfterDriverDistraction:newMessage]; + } +} + +- (void)handleRpcMessage:(NSDictionary *)msg { + [self handleRPCDictionary:msg]; +} + + +#pragma mark - RPC Handlers +- (void)handleRPCUnregistered:(NSDictionary *)messageDictionary { + NSString *logMessage = [NSString stringWithFormat:@"Unregistration forced by module. %@", messageDictionary]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + [self notifyProxyClosed]; +} + +- (void)handleRegisterAppInterfaceResponse:(SDLRPCResponse *)response { + //Print Proxy Version To Console + NSString *logMessage = [NSString stringWithFormat:@"Framework Version: %@", self.proxyVersion]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + if ([SDLGlobals globals].protocolVersion >= 4) { + [self sendMobileHMIState]; + // Send SDL updates to application state + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sendMobileHMIState) name:UIApplicationDidBecomeActiveNotification object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sendMobileHMIState) name:UIApplicationDidEnterBackgroundNotification object:nil]; + } +} + +- (void)handleSyncPData:(SDLRPCMessage *)message { + // If URL != nil, perform HTTP Post and don't pass the notification to proxy listeners + NSString *logMessage = [NSString stringWithFormat:@"OnEncodedSyncPData (notification)\n%@", message]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + NSString *urlString = (NSString *)[message getParameters:@"URL"]; + NSDictionary *encodedSyncPData = (NSDictionary *)[message getParameters:@"data"]; + NSNumber *encodedSyncPTimeout = (NSNumber *)[message getParameters:@"Timeout"]; + + if (urlString && encodedSyncPData && encodedSyncPTimeout) { + [self sendEncodedSyncPData:encodedSyncPData toURL:urlString withTimeout:encodedSyncPTimeout]; + } +} + +- (void)handleSystemRequest:(NSDictionary *)dict { + [SDLDebugTool logInfo:@"OnSystemRequest (notification)" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + SDLOnSystemRequest *systemRequest = [[SDLOnSystemRequest alloc] initWithDictionary:[dict mutableCopy]]; + SDLRequestType *requestType = systemRequest.requestType; + + // Handle the various OnSystemRequest types + if (requestType == [SDLRequestType PROPRIETARY]) { + [self handleSystemRequestProprietary:systemRequest]; + } else if (requestType == [SDLRequestType LOCK_SCREEN_ICON_URL]) { + [self handleSystemRequestLockScreenIconURL:systemRequest]; + } else if (requestType == [SDLRequestType HTTP]) { + [self sdl_handleSystemRequestHTTP:systemRequest]; + } else if (requestType == [SDLRequestType LAUNCH_APP]) { + [self sdl_handleSystemRequestLaunchApp:systemRequest]; + } +} + +- (void)handleSystemRequestResponse:(SDLRPCMessage *)message { + NSString *logMessage = [NSString stringWithFormat:@"SystemRequest (response)\n%@", message]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; +} + + +#pragma mark Handle Post-Invoke of Delegate Methods +- (void)handleAfterHMIStatus:(SDLRPCMessage *)message { + NSString *statusString = (NSString *)[message getParameters:NAMES_hmiLevel]; + SDLHMILevel *hmiLevel = [SDLHMILevel valueOf:statusString]; + _lsm.hmiLevel = hmiLevel; + + SEL callbackSelector = NSSelectorFromString(@"onOnLockScreenNotification:"); + [self invokeMethodOnDelegates:callbackSelector withObject:_lsm.lockScreenStatusNotification]; +} + +- (void)handleAfterDriverDistraction:(SDLRPCMessage *)message { + NSString *stateString = (NSString *)[message getParameters:NAMES_state]; + BOOL state = [stateString isEqualToString:@"DD_ON"] ? YES : NO; + _lsm.driverDistracted = state; + + SEL callbackSelector = NSSelectorFromString(@"onOnLockScreenNotification:"); + [self invokeMethodOnDelegates:callbackSelector withObject:_lsm.lockScreenStatusNotification]; +} + + +#pragma mark OnSystemRequest Handlers +- (void)sdl_handleSystemRequestLaunchApp:(SDLOnSystemRequest *)request { + NSURL *URLScheme = [NSURL URLWithString:request.url]; + if (URLScheme == nil) { + [SDLDebugTool logInfo:[NSString stringWithFormat:@"Launch App failure: invalid URL sent from module: %@", request.url] withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + return; + } + // If system version is less than 9.0 http://stackoverflow.com/a/5337804/1370927 + if (SDL_SYSTEM_VERSION_LESS_THAN(@"9.0")) { + // Return early if we can't openURL because openURL will crash instead of fail silently in < 9.0 + if (![[UIApplication sharedApplication] canOpenURL:URLScheme]) { + return; + } + } + [[UIApplication sharedApplication] openURL:URLScheme]; +} + +- (void)handleSystemRequestProprietary:(SDLOnSystemRequest *)request { + NSDictionary *JSONDictionary = [self validateAndParseSystemRequest:request]; + if (JSONDictionary == nil || request.url == nil) { + return; + } + + NSDictionary *requestData = JSONDictionary[@"HTTPRequest"]; + NSString *bodyString = requestData[@"body"]; + NSData *bodyData = [bodyString dataUsingEncoding:NSUTF8StringEncoding]; + + // Parse and display the policy data. + SDLPolicyDataParser *pdp = [[SDLPolicyDataParser alloc] init]; + NSData *policyData = [pdp unwrap:bodyData]; + if (policyData != nil) { + [pdp parsePolicyData:policyData]; + NSString *logMessage = [NSString stringWithFormat:@"Policy Data from Module\n%@", pdp]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + } + + // Send the HTTP Request + [self uploadForBodyDataDictionary:JSONDictionary + URLString:request.url + completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { + NSString *logMessage = nil; + + if (error) { + logMessage = [NSString stringWithFormat:@"OnSystemRequest (HTTP response) = ERROR: %@", error]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + return; + } + + if (data == nil || data.length == 0) { + [SDLDebugTool logInfo:@"OnSystemRequest (HTTP response) failure: no data returned" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + return; + } + + // Show the HTTP response + [SDLDebugTool logInfo:@"OnSystemRequest (HTTP response)" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + // Create the SystemRequest RPC to send to module. + SDLSystemRequest *request = [[SDLSystemRequest alloc] init]; + request.correlationID = [NSNumber numberWithInt:POLICIES_CORRELATION_ID]; + request.requestType = [SDLRequestType PROPRIETARY]; + request.bulkData = data; + + // Parse and display the policy data. + SDLPolicyDataParser *pdp = [[SDLPolicyDataParser alloc] init]; + NSData *policyData = [pdp unwrap:data]; + if (policyData) { + [pdp parsePolicyData:policyData]; + logMessage = [NSString stringWithFormat:@"Policy Data from Cloud\n%@", pdp]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + } + + // Send and log RPC Request + logMessage = [NSString stringWithFormat:@"SystemRequest (request)\n%@\nData length=%lu", [request serializeAsDictionary:2], (unsigned long)data.length]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + [self sendRPC:request]; + }]; +} + +- (void)handleSystemRequestLockScreenIconURL:(SDLOnSystemRequest *)request { + [[SDLURLSession defaultSession] dataFromURL:[NSURL URLWithString:request.url] + completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { + if (error != nil) { + NSString *logMessage = [NSString stringWithFormat:@"OnSystemRequest failure (HTTP response), download task failed: %@", error.localizedDescription]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + return; + } + + UIImage *icon = [UIImage imageWithData:data]; + [self invokeMethodOnDelegates:@selector(onReceivedLockScreenIcon:) withObject:icon]; + }]; +} + +- (void)sdl_handleSystemRequestHTTP:(SDLOnSystemRequest *)request { + if (request.bulkData.length == 0) { + // TODO: not sure how we want to handle http requests that don't have bulk data (maybe as GET?) + return; + } + + [self sdl_uploadData:request.bulkData + toURLString:request.url + completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { + NSString *logMessage = nil; + if (error != nil) { + logMessage = [NSString stringWithFormat:@"OnSystemRequest (HTTP response) = ERROR: %@", error.localizedDescription]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + return; + } + + if (data.length == 0) { + [SDLDebugTool logInfo:@"OnSystemRequest (HTTP response) failure: no data returned" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + return; + } + + // Show the HTTP response + NSString *responseLogString = [NSString stringWithFormat:@"OnSystemRequest (HTTP) response: %@", response]; + [SDLDebugTool logInfo:responseLogString withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + // Create the SystemRequest RPC to send to module. + SDLPutFile *putFile = [[SDLPutFile alloc] init]; + putFile.fileType = [SDLFileType JSON]; + putFile.correlationID = @(POLICIES_CORRELATION_ID); + putFile.syncFileName = @"response_data"; + putFile.bulkData = data; + + // Send and log RPC Request + logMessage = [NSString stringWithFormat:@"SystemRequest (request)\n%@\nData length=%lu", [request serializeAsDictionary:2], (unsigned long)data.length]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + [self sendRPC:putFile]; + }]; +} + +/** + * Determine if the System Request is valid and return it's JSON dictionary, if available. + * + * @param request The system request to parse + * + * @return A parsed JSON dictionary, or nil if it couldn't be parsed + */ +- (NSDictionary *)validateAndParseSystemRequest:(SDLOnSystemRequest *)request { + NSString *urlString = request.url; + SDLFileType *fileType = request.fileType; + + // Validate input + if (urlString == nil || [NSURL URLWithString:urlString] == nil) { + [SDLDebugTool logInfo:@"OnSystemRequest (notification) failure: url is nil" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + return nil; + } + + if (fileType != [SDLFileType JSON]) { + [SDLDebugTool logInfo:@"OnSystemRequest (notification) failure: file type is not JSON" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + return nil; + } + + // Get data dictionary from the bulkData + NSError *error = nil; + NSDictionary *JSONDictionary = [NSJSONSerialization JSONObjectWithData:request.bulkData options:kNilOptions error:&error]; + if (error != nil) { + [SDLDebugTool logInfo:@"OnSystemRequest failure: notification data is not valid JSON." withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + return nil; + } + + return JSONDictionary; +} + +/** + * Start an upload for some data to a web address specified + * + * @param data The data to be passed to the server + * @param urlString The URL the data should be POSTed to + * @param completionHandler A completion handler of what to do when the server responds + */ +- (void)sdl_uploadData:(NSData *_Nonnull)data toURLString:(NSString *_Nonnull)urlString completionHandler:(URLSessionTaskCompletionHandler _Nullable)completionHandler { + // NSURLRequest configuration + NSURL *url = [NSURL URLWithString:urlString]; + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; + [request setValue:@"application/json" forHTTPHeaderField:@"content-type"]; + request.HTTPMethod = @"POST"; + + // Logging + NSString *logMessage = [NSString stringWithFormat:@"OnSystemRequest (HTTP Request) to URL %@", urlString]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + // Create the upload task + [[SDLURLSession defaultSession] uploadWithURLRequest:request data:data completionHandler:completionHandler]; +} + +/** + * Start an upload for a body data dictionary, this is used by the "proprietary" system request needed for backward compatibility + * + * @param dictionary The system request dictionary that contains the HTTP data to be sent + * @param urlString A string containing the URL to send the upload to + * @param completionHandler A completion handler returning the response from the server to the upload task + */ +- (void)uploadForBodyDataDictionary:(NSDictionary *)dictionary URLString:(NSString *)urlString completionHandler:(URLSessionTaskCompletionHandler)completionHandler { + NSParameterAssert(dictionary != nil); + NSParameterAssert(urlString != nil); + NSParameterAssert(completionHandler != NULL); + + // Extract data from the dictionary + NSDictionary *requestData = dictionary[@"HTTPRequest"]; + NSDictionary *headers = requestData[@"headers"]; + NSString *contentType = headers[@"ContentType"]; + NSTimeInterval timeout = [headers[@"ConnectTimeout"] doubleValue]; + NSString *method = headers[@"RequestMethod"]; + NSString *bodyString = requestData[@"body"]; + NSData *bodyData = [bodyString dataUsingEncoding:NSUTF8StringEncoding]; + + // NSURLRequest configuration + NSURL *url = [NSURL URLWithString:urlString]; + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; + [request setValue:contentType forHTTPHeaderField:@"content-type"]; + request.timeoutInterval = timeout; + request.HTTPMethod = method; + + // Logging + NSString *logMessage = [NSString stringWithFormat:@"OnSystemRequest (HTTP Request) to URL %@", urlString]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + // Create the upload task + [[SDLURLSession defaultSession] uploadWithURLRequest:request data:bodyData completionHandler:completionHandler]; +} + + +#pragma mark - Delegate management + +- (void)addDelegate:(NSObject *)delegate { + @synchronized(self.mutableProxyListeners) { + [self.mutableProxyListeners addObject:delegate]; + } +} + +- (void)removeDelegate:(NSObject *)delegate { + @synchronized(self.mutableProxyListeners) { + [self.mutableProxyListeners removeObject:delegate]; + } +} + +- (void)invokeMethodOnDelegates:(SEL)aSelector withObject:(id)object { + dispatch_async(dispatch_get_main_queue(), ^{ + @autoreleasepool { + for (id listener in self.proxyListeners) { + if ([listener respondsToSelector:aSelector]) { + // HAX: http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown + ((void (*)(id, SEL, id))[(NSObject *)listener methodForSelector:aSelector])(listener, aSelector, object); + } + } + } + }); +} + + +#pragma mark - System Request and SyncP handling + +- (void)sendEncodedSyncPData:(NSDictionary *)encodedSyncPData toURL:(NSString *)urlString withTimeout:(NSNumber *)timeout { + // Configure HTTP URL & Request + NSURL *url = [NSURL URLWithString:urlString]; + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; + request.HTTPMethod = @"POST"; + [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; + request.timeoutInterval = 60; + + // Prepare the data in the required format + NSString *encodedSyncPDataString = [[NSString stringWithFormat:@"%@", encodedSyncPData] componentsSeparatedByString:@"\""][1]; + NSArray *array = [NSArray arrayWithObject:encodedSyncPDataString]; + NSDictionary *dictionary = @{ @"data" : array }; + NSError *JSONSerializationError = nil; + NSData *data = [NSJSONSerialization dataWithJSONObject:dictionary options:kNilOptions error:&JSONSerializationError]; + if (JSONSerializationError) { + NSString *logMessage = [NSString stringWithFormat:@"Error formatting data for HTTP Request. %@", JSONSerializationError]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + return; + } + + // Send the HTTP Request + [[SDLURLSession defaultSession] uploadWithURLRequest:request + data:data + completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { + [self syncPDataNetworkRequestCompleteWithData:data response:response error:error]; + }]; + + [SDLDebugTool logInfo:@"OnEncodedSyncPData (HTTP request)" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; +} + +// Handle the OnEncodedSyncPData HTTP Response +- (void)syncPDataNetworkRequestCompleteWithData:(NSData *)data response:(NSURLResponse *)response error:(NSError *)error { + // Sample of response: {"data":["SDLKGLSDKFJLKSjdslkfjslkJLKDSGLKSDJFLKSDJF"]} + [SDLDebugTool logInfo:@"OnEncodedSyncPData (HTTP response)" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + + // Validate response data. + if (data == nil || data.length == 0) { + [SDLDebugTool logInfo:@"OnEncodedSyncPData (HTTP response) failure: no data returned" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + return; + } + + // Convert data to RPCRequest + NSError *JSONConversionError = nil; + NSDictionary *responseDictionary = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&JSONConversionError]; + if (!JSONConversionError) { + SDLEncodedSyncPData *request = [[SDLEncodedSyncPData alloc] init]; + request.correlationID = [NSNumber numberWithInt:POLICIES_CORRELATION_ID]; + request.data = [responseDictionary objectForKey:@"data"]; + + [self sendRPC:request]; + } +} + + +#pragma mark - PutFile Streaming +- (void)putFileStream:(NSInputStream *)inputStream withRequest:(SDLPutFile *)putFileRPCRequest { + inputStream.delegate = self; + objc_setAssociatedObject(inputStream, @"SDLPutFile", putFileRPCRequest, OBJC_ASSOCIATION_RETAIN); + objc_setAssociatedObject(inputStream, @"BaseOffset", [putFileRPCRequest offset], OBJC_ASSOCIATION_RETAIN); + + [inputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; + [inputStream open]; +} + +- (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode { + switch (eventCode) { + case NSStreamEventHasBytesAvailable: { + // Grab some bytes from the stream and send them in a SDLPutFile RPC Request + NSUInteger currentStreamOffset = [[stream propertyForKey:NSStreamFileCurrentOffsetKey] unsignedIntegerValue]; + + NSMutableData *buffer = [NSMutableData dataWithLength:[SDLGlobals globals].maxMTUSize]; + NSUInteger nBytesRead = [(NSInputStream *)stream read:(uint8_t *)buffer.mutableBytes maxLength:buffer.length]; + if (nBytesRead > 0) { + NSData *data = [buffer subdataWithRange:NSMakeRange(0, nBytesRead)]; + NSUInteger baseOffset = [(NSNumber *)objc_getAssociatedObject(stream, @"BaseOffset") unsignedIntegerValue]; + NSUInteger newOffset = baseOffset + currentStreamOffset; + + SDLPutFile *putFileRPCRequest = (SDLPutFile *)objc_getAssociatedObject(stream, @"SDLPutFile"); + [putFileRPCRequest setOffset:[NSNumber numberWithUnsignedInteger:newOffset]]; + [putFileRPCRequest setLength:[NSNumber numberWithUnsignedInteger:nBytesRead]]; + [putFileRPCRequest setBulkData:data]; + + [self sendRPC:putFileRPCRequest]; + } + + break; + } + case NSStreamEventEndEncountered: { + // Cleanup the stream + [stream close]; + [stream removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; + + break; + } + case NSStreamEventErrorOccurred: { + [SDLDebugTool logInfo:@"Stream Event: Error" withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; + break; + } + default: { + break; + } + } +} + + +#pragma mark - Siphon management ++ (void)enableSiphonDebug { + [SDLSiphonServer enableSiphonDebug]; +} + ++ (void)disableSiphonDebug { + [SDLSiphonServer disableSiphonDebug]; +} + +@end diff --git a/SmartDeviceLink/SDLProxyFactory.h b/SmartDeviceLink/SDLProxyFactory.h new file mode 100644 index 000000000..b3a7ac6a0 --- /dev/null +++ b/SmartDeviceLink/SDLProxyFactory.h @@ -0,0 +1,19 @@ +// SDLProxyFactory.h +// + +#import + +#import "SDLProxyListener.h" + +@class SDLProxy; + + +@interface SDLProxyFactory : NSObject { +} + ++ (SDLProxy *)buildSDLProxyWithListener:(NSObject *)listener; + ++ (SDLProxy *)buildSDLProxyWithListener:(NSObject *)listener + tcpIPAddress:(NSString *)ipaddress + tcpPort:(NSString *)port; +@end diff --git a/SmartDeviceLink/SDLProxyFactory.m b/SmartDeviceLink/SDLProxyFactory.m new file mode 100644 index 000000000..b2320c641 --- /dev/null +++ b/SmartDeviceLink/SDLProxyFactory.m @@ -0,0 +1,37 @@ +// SDLSyncProxyFactory.m +// + +#import "SDLProxyFactory.h" + +#import "SDLDebugTool.h" +#import "SDLIAPTransport.h" +#import "SDLProtocol.h" +#import "SDLProxy.h" +#import "SDLTCPTransport.h" + + +@implementation SDLProxyFactory + ++ (SDLProxy *)buildSDLProxyWithListener:(NSObject *)delegate { + SDLIAPTransport *transport = [[SDLIAPTransport alloc] init]; + SDLProtocol *protocol = [[SDLProtocol alloc] init]; + SDLProxy *ret = [[SDLProxy alloc] initWithTransport:transport protocol:protocol delegate:delegate]; + + return ret; +} + ++ (SDLProxy *)buildSDLProxyWithListener:(NSObject *)delegate + tcpIPAddress:(NSString *)ipaddress + tcpPort:(NSString *)port { + SDLTCPTransport *transport = [[SDLTCPTransport alloc] init]; + transport.hostName = ipaddress; + transport.portNumber = port; + + SDLProtocol *protocol = [[SDLProtocol alloc] init]; + + SDLProxy *ret = [[SDLProxy alloc] initWithTransport:transport protocol:protocol delegate:delegate]; + + return ret; +} + +@end \ No newline at end of file diff --git a/SmartDeviceLink/SDLProxyListener.h b/SmartDeviceLink/SDLProxyListener.h new file mode 100644 index 000000000..60e4d6607 --- /dev/null +++ b/SmartDeviceLink/SDLProxyListener.h @@ -0,0 +1,135 @@ +// SDLProxyListener.h +// + +@import UIKit; + +@class SDLAddCommandResponse; +@class SDLAddSubMenuResponse; +@class SDLAlertManeuverResponse; +@class SDLAlertResponse; +@class SDLChangeRegistrationResponse; +@class SDLCreateInteractionChoiceSetResponse; +@class SDLDeleteCommandResponse; +@class SDLDeleteFileResponse; +@class SDLDeleteInteractionChoiceSetResponse; +@class SDLDeleteSubMenuResponse; +@class SDLDiagnosticMessageResponse; +@class SDLDialNumberResponse; +@class SDLEncodedSyncPDataResponse; +@class SDLEndAudioPassThruResponse; +@class SDLGenericResponse; +@class SDLGetDTCsResponse; +@class SDLGetVehicleDataResponse; +@class SDLListFilesResponse; +@class SDLOnAppInterfaceUnregistered; +@class SDLOnAudioPassThru; +@class SDLOnButtonEvent; +@class SDLOnButtonPress; +@class SDLOnCommand; +@class SDLOnDriverDistraction; +@class SDLOnEncodedSyncPData; +@class SDLOnHashChange; +@class SDLOnHMIStatus; +@class SDLOnLanguageChange; +@class SDLOnLockScreenStatus; +@class SDLOnPermissionsChange; +@class SDLOnSyncPData; +@class SDLOnSystemRequest; +@class SDLOnVehicleData; +@class SDLOnTBTClientState; +@class SDLOnTouchEvent; +@class SDLOnVehicleData; +@class SDLPerformAudioPassThruResponse; +@class SDLPerformInteractionResponse; +@class SDLPutFileResponse; +@class SDLReadDIDResponse; +@class SDLRegisterAppInterfaceResponse; +@class SDLResetGlobalPropertiesResponse; +@class SDLScrollableMessageResponse; +@class SDLSendLocationResponse; +@class SDLSetAppIconResponse; +@class SDLSetDisplayLayoutResponse; +@class SDLSetGlobalPropertiesResponse; +@class SDLSetMediaClockTimerResponse; +@class SDLShowConstantTBTResponse; +@class SDLShowResponse; +@class SDLSliderResponse; +@class SDLSpeakResponse; +@class SDLSubscribeButtonResponse; +@class SDLSubscribeVehicleDataResponse; +@class SDLSyncPDataResponse; +@class SDLUpdateTurnListResponse; +@class SDLUnregisterAppInterfaceResponse; +@class SDLUnsubscribeButtonResponse; +@class SDLUnsubscribeVehicleDataResponse; + + +@protocol SDLProxyListener + +- (void)onOnDriverDistraction:(SDLOnDriverDistraction *)notification; +- (void)onOnHMIStatus:(SDLOnHMIStatus *)notification; +- (void)onProxyClosed; +- (void)onProxyOpened; + +@optional + +- (void)onAddCommandResponse:(SDLAddCommandResponse *)response; +- (void)onAddSubMenuResponse:(SDLAddSubMenuResponse *)response; +- (void)onAlertManeuverResponse:(SDLAlertManeuverResponse *)response; +- (void)onAlertResponse:(SDLAlertResponse *)response; +- (void)onChangeRegistrationResponse:(SDLChangeRegistrationResponse *)response; +- (void)onCreateInteractionChoiceSetResponse:(SDLCreateInteractionChoiceSetResponse *)response; +- (void)onDeleteCommandResponse:(SDLDeleteCommandResponse *)response; +- (void)onDeleteFileResponse:(SDLDeleteFileResponse *)response; +- (void)onDeleteInteractionChoiceSetResponse:(SDLDeleteInteractionChoiceSetResponse *)response; +- (void)onDeleteSubMenuResponse:(SDLDeleteSubMenuResponse *)response; +- (void)onDiagnosticMessageResponse:(SDLDiagnosticMessageResponse *)response; +- (void)onDialNumberResponse:(SDLDialNumberResponse *)response; +- (void)onEncodedSyncPDataResponse:(SDLEncodedSyncPDataResponse *)response; +- (void)onEndAudioPassThruResponse:(SDLEndAudioPassThruResponse *)response; +- (void)onError:(NSException *)e; +- (void)onGenericResponse:(SDLGenericResponse *)response; +- (void)onGetDTCsResponse:(SDLGetDTCsResponse *)response; +- (void)onGetVehicleDataResponse:(SDLGetVehicleDataResponse *)response; +- (void)onListFilesResponse:(SDLListFilesResponse *)response; +- (void)onReceivedLockScreenIcon:(UIImage *)icon; +- (void)onOnAppInterfaceUnregistered:(SDLOnAppInterfaceUnregistered *)notification; +- (void)onOnAudioPassThru:(SDLOnAudioPassThru *)notification; +- (void)onOnButtonEvent:(SDLOnButtonEvent *)notification; +- (void)onOnButtonPress:(SDLOnButtonPress *)notification; +- (void)onOnCommand:(SDLOnCommand *)notification; +- (void)onOnEncodedSyncPData:(SDLOnEncodedSyncPData *)notification; +- (void)onOnHashChange:(SDLOnHashChange *)notification; +- (void)onOnLanguageChange:(SDLOnLanguageChange *)notification; +- (void)onOnLockScreenNotification:(SDLOnLockScreenStatus *)notification; +- (void)onOnPermissionsChange:(SDLOnPermissionsChange *)notification; +- (void)onOnSyncPData:(SDLOnSyncPData *)notification; +- (void)onOnSystemRequest:(SDLOnSystemRequest *)notification; +- (void)onOnTBTClientState:(SDLOnTBTClientState *)notification; +- (void)onOnTouchEvent:(SDLOnTouchEvent *)notification; +- (void)onOnVehicleData:(SDLOnVehicleData *)notification; +- (void)onPerformAudioPassThruResponse:(SDLPerformAudioPassThruResponse *)response; +- (void)onPerformInteractionResponse:(SDLPerformInteractionResponse *)response; +- (void)onPutFileResponse:(SDLPutFileResponse *)response; +- (void)onReadDIDResponse:(SDLReadDIDResponse *)response; +- (void)onRegisterAppInterfaceResponse:(SDLRegisterAppInterfaceResponse *)response; +- (void)onResetGlobalPropertiesResponse:(SDLResetGlobalPropertiesResponse *)response; +- (void)onScrollableMessageResponse:(SDLScrollableMessageResponse *)response; +- (void)onSendLocationResponse:(SDLSendLocationResponse *)response; +- (void)onSetAppIconResponse:(SDLSetAppIconResponse *)response; +- (void)onSetDisplayLayoutResponse:(SDLSetDisplayLayoutResponse *)response; +- (void)onSetGlobalPropertiesResponse:(SDLSetGlobalPropertiesResponse *)response; +- (void)onSetMediaClockTimerResponse:(SDLSetMediaClockTimerResponse *)response; +- (void)onShowConstantTBTResponse:(SDLShowConstantTBTResponse *)response; +- (void)onShowResponse:(SDLShowResponse *)response; +- (void)onSliderResponse:(SDLSliderResponse *)response; +- (void)onSpeakResponse:(SDLSpeakResponse *)response; +- (void)onSubscribeButtonResponse:(SDLSubscribeButtonResponse *)response; +- (void)onSubscribeVehicleDataResponse:(SDLSubscribeVehicleDataResponse *)response; +- (void)onSyncPDataResponse:(SDLSyncPDataResponse *)response; +- (void)onUpdateTurnListResponse:(SDLUpdateTurnListResponse *)response; +- (void)onUnregisterAppInterfaceResponse:(SDLUnregisterAppInterfaceResponse *)response; +- (void)onUnsubscribeButtonResponse:(SDLUnsubscribeButtonResponse *)response; +- (void)onUnsubscribeVehicleDataResponse:(SDLUnsubscribeVehicleDataResponse *)response; + +@end diff --git a/SmartDeviceLink/SDLPutFile.h b/SmartDeviceLink/SDLPutFile.h new file mode 100644 index 000000000..eb7bae2bf --- /dev/null +++ b/SmartDeviceLink/SDLPutFile.h @@ -0,0 +1,80 @@ +// SDLPutFile.h +// + +#import "SDLRPCRequest.h" + +@class SDLFileType; + + +/** + * Used to push a binary data onto the SDL module from a mobile device, such as + * icons and album art + * + * Since SmartDeviceLink 2.0 + * @see SDLDeleteFile + * @see SDLListFiles + */ +@interface SDLPutFile : SDLRPCRequest { +} + +/** + * Constructs a new SDLPutFile object + */ +- (instancetype)init; + +/** + * Constructs a new SDLPutFile object indicated by the dictionary parameter + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * A file reference name + * + * Required, maxlength 255 characters + */ +@property (strong) NSString *syncFileName; + +/** + * A FileType value representing a selected file type + * + * Required + */ +@property (strong) SDLFileType *fileType; + +/** + * A value to indicates if the file is meant to persist between + * sessions / ignition cycles. If set to TRUE, then the system will aim to + * persist this file through session / cycles. While files with this + * designation will have priority over others, they are subject to deletion + * by the system at any time. In the event of automatic deletion by the + * system, the app will receive a rejection and have to resend the file. If + * omitted, the value will be set to false + * + * Boolean, Optional, default = NO + */ +@property (strong) NSNumber *persistentFile; + +/** + * Indicates if the file is meant to be passed through core to elsewhere on the system. If set to TRUE, then the system will instead pass the data thru as it arrives to a predetermined area outside of core. + * + * Boolean, Optional, default = NO + */ +@property (strong) NSNumber *systemFile; + +/** + * Offset in bytes for resuming partial data chunks. + * + * Integer, Optional, 0 - 100,000,000,000 + */ +@property (strong) NSNumber *offset; + +/** + * Length in bytes for resuming partial data chunks. If offset is set to 0, then length is the total length of the file to be downloaded + * + * Integer, Optional, 0 - 100,000,000,000 + */ +@property (strong) NSNumber *length; + +@end diff --git a/SmartDeviceLink/SDLPutFile.m b/SmartDeviceLink/SDLPutFile.m new file mode 100644 index 000000000..69d83edcd --- /dev/null +++ b/SmartDeviceLink/SDLPutFile.m @@ -0,0 +1,101 @@ +// SDLPutFile.m +// + +#import "SDLPutFile.h" + +#import "SDLFileType.h" +#import "SDLNames.h" + + +@implementation SDLPutFile + +- (instancetype)init { + if (self = [super initWithName:NAMES_PutFile]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setSyncFileName:(NSString *)syncFileName { + if (syncFileName != nil) { + [parameters setObject:syncFileName forKey:NAMES_syncFileName]; + } else { + [parameters removeObjectForKey:NAMES_syncFileName]; + } +} + +- (NSString *)syncFileName { + return [parameters objectForKey:NAMES_syncFileName]; +} + +- (void)setFileType:(SDLFileType *)fileType { + if (fileType != nil) { + [parameters setObject:fileType forKey:NAMES_fileType]; + } else { + [parameters removeObjectForKey:NAMES_fileType]; + } +} + +- (SDLFileType *)fileType { + NSObject *obj = [parameters objectForKey:NAMES_fileType]; + if (obj == nil || [obj isKindOfClass:SDLFileType.class]) { + return (SDLFileType *)obj; + } else { + return [SDLFileType valueOf:(NSString *)obj]; + } +} + +- (void)setPersistentFile:(NSNumber *)persistentFile { + if (persistentFile != nil) { + [parameters setObject:persistentFile forKey:NAMES_persistentFile]; + } else { + [parameters removeObjectForKey:NAMES_persistentFile]; + } +} + +- (NSNumber *)persistentFile { + return [parameters objectForKey:NAMES_persistentFile]; +} + +- (void)setSystemFile:(NSNumber *)systemFile { + if (systemFile != nil) { + [parameters setObject:systemFile forKey:NAMES_systemFile]; + } else { + [parameters removeObjectForKey:NAMES_systemFile]; + } +} + +- (NSNumber *)systemFile { + return [parameters objectForKey:NAMES_systemFile]; +} + +- (void)setOffset:(NSNumber *)offset { + if (offset != nil) { + [parameters setObject:offset forKey:NAMES_offset]; + } else { + [parameters removeObjectForKey:NAMES_offset]; + } +} + +- (NSNumber *)offset { + return [parameters objectForKey:NAMES_offset]; +} + +- (void)setLength:(NSNumber *)length { + if (length != nil) { + [parameters setObject:length forKey:NAMES_length]; + } else { + [parameters removeObjectForKey:NAMES_length]; + } +} + +- (NSNumber *)length { + return [parameters objectForKey:NAMES_length]; +} + +@end diff --git a/SmartDeviceLink/SDLPutFileResponse.h b/SmartDeviceLink/SDLPutFileResponse.h new file mode 100644 index 000000000..9857607ca --- /dev/null +++ b/SmartDeviceLink/SDLPutFileResponse.h @@ -0,0 +1,24 @@ +// SDLPutFileResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Put File Response is sent, when SDLPutFile has been called + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLPutFileResponse : SDLRPCResponse { +} +/** + * @abstract Constructs a new SDLPutFileResponse object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLPutFileResponse object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; +@property (strong) NSNumber *spaceAvailable; +@end diff --git a/SmartDeviceLink/SDLPutFileResponse.m b/SmartDeviceLink/SDLPutFileResponse.m new file mode 100644 index 000000000..4a956cfbd --- /dev/null +++ b/SmartDeviceLink/SDLPutFileResponse.m @@ -0,0 +1,35 @@ +// SDLPutFileResponse.m +// + + +#import "SDLPutFileResponse.h" + +#import "SDLNames.h" + +@implementation SDLPutFileResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_PutFile]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setSpaceAvailable:(NSNumber *)spaceAvailable { + if (spaceAvailable != nil) { + [parameters setObject:spaceAvailable forKey:NAMES_spaceAvailable]; + } else { + [parameters removeObjectForKey:NAMES_spaceAvailable]; + } +} + +- (NSNumber *)spaceAvailable { + return [parameters objectForKey:NAMES_spaceAvailable]; +} + +@end diff --git a/SmartDeviceLink/SDLRPCMessage.h b/SmartDeviceLink/SDLRPCMessage.h new file mode 100644 index 000000000..fc5f577ef --- /dev/null +++ b/SmartDeviceLink/SDLRPCMessage.h @@ -0,0 +1,25 @@ +// SDLRPCMessage.h +// + +#import "SDLEnum.h" + +#import "SDLRPCStruct.h" + +@interface SDLRPCMessage : SDLRPCStruct { + NSMutableDictionary *function; + NSMutableDictionary *parameters; + NSString *messageType; +} + +- (instancetype)initWithName:(NSString *)name; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; +- (NSString *)getFunctionName; +- (void)setFunctionName:(NSString *)functionName; +- (NSObject *)getParameters:(NSString *)functionName; +- (void)setParameters:(NSString *)functionName value:(NSObject *)value; + +@property (strong) NSData *bulkData; +@property (strong, readonly) NSString *name; +@property (strong, readonly) NSString *messageType; + +@end diff --git a/SmartDeviceLink/SDLRPCMessage.m b/SmartDeviceLink/SDLRPCMessage.m new file mode 100644 index 000000000..be5f95334 --- /dev/null +++ b/SmartDeviceLink/SDLRPCMessage.m @@ -0,0 +1,81 @@ +// SDLRPCMessage.m +// + + +#import "SDLRPCMessage.h" + +#import "SDLNames.h" + + +@implementation SDLRPCMessage + +@synthesize messageType; + +- (instancetype)initWithName:(NSString *)name { + if (self = [super init]) { + function = [[NSMutableDictionary alloc] initWithCapacity:3]; + parameters = [[NSMutableDictionary alloc] init]; + messageType = NAMES_request; + [store setObject:function forKey:messageType]; + [function setObject:parameters forKey:NAMES_parameters]; + [function setObject:name forKey:NAMES_operation_name]; + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + NSEnumerator *enumerator = [store keyEnumerator]; + while (messageType = [enumerator nextObject]) { + if ([messageType isEqualToString:@"bulkData"] == FALSE) { + break; + } + } + + function = [store objectForKey:messageType]; + parameters = [function objectForKey:NAMES_parameters]; + self.bulkData = [dict objectForKey:@"bulkData"]; + } + return self; +} + +- (NSString *)getFunctionName { + return [function objectForKey:NAMES_operation_name]; +} + +- (void)setFunctionName:(NSString *)functionName { + if (functionName != nil) { + [function setObject:functionName forKey:NAMES_operation_name]; + } else { + [function removeObjectForKey:NAMES_operation_name]; + } +} + +- (NSObject *)getParameters:(NSString *)functionName { + return [parameters objectForKey:functionName]; +} + +- (void)setParameters:(NSString *)functionName value:(NSObject *)value { + if (value != nil) { + [parameters setObject:value forKey:functionName]; + } else { + [parameters removeObjectForKey:functionName]; + } +} + +- (void)dealloc { + function = nil; + parameters = nil; +} + +- (NSString *)name { + return [function objectForKey:NAMES_operation_name]; +} + +- (NSString *)description { + NSMutableString *description = [NSMutableString stringWithFormat:@"%@ (%@)\n%@", self.name, self.messageType, self->parameters]; + + return description; +} + +@end diff --git a/SmartDeviceLink/SDLRPCMessageType.h b/SmartDeviceLink/SDLRPCMessageType.h new file mode 100644 index 000000000..35f841687 --- /dev/null +++ b/SmartDeviceLink/SDLRPCMessageType.h @@ -0,0 +1,10 @@ +// SDLRPCMessageType.h +// + +#import + +typedef NS_ENUM(Byte, SDLRPCMessageType) { + SDLRPCMessageTypeRequest = 0, + SDLRPCMessageTypeResponse, + SDLRPCMessageTypeNotification +}; diff --git a/SmartDeviceLink/SDLRPCNotification.h b/SmartDeviceLink/SDLRPCNotification.h new file mode 100644 index 000000000..05f182b9b --- /dev/null +++ b/SmartDeviceLink/SDLRPCNotification.h @@ -0,0 +1,13 @@ +// SDLRPCNotification.h +// + + +#import "SDLRPCMessage.h" + +@interface SDLRPCNotification : SDLRPCMessage { +} + +- (instancetype)initWithName:(NSString *)name; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLRPCNotification.m b/SmartDeviceLink/SDLRPCNotification.m new file mode 100644 index 000000000..5c2a063dd --- /dev/null +++ b/SmartDeviceLink/SDLRPCNotification.m @@ -0,0 +1,35 @@ +// SDLRPCNotification.m +// + + +#import "SDLRPCNotification.h" + +#import "SDLNames.h" + +@implementation SDLRPCNotification + +- (instancetype)initWithName:(NSString *)name { + self = [super initWithName:name]; + if (!self) { + return nil; + } + + messageType = NAMES_notification; + [store setObject:function forKey:messageType]; + + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + self = [super initWithDictionary:dict]; + if (!self) { + return nil; + } + + messageType = NAMES_notification; + [store setObject:function forKey:messageType]; + + return self; +} + +@end diff --git a/SmartDeviceLink/SDLRPCPayload.h b/SmartDeviceLink/SDLRPCPayload.h new file mode 100644 index 000000000..1a490d956 --- /dev/null +++ b/SmartDeviceLink/SDLRPCPayload.h @@ -0,0 +1,21 @@ +// SDLRPCPayload.h +// + + +#import + +#import "SDLRPCMessageType.h" + + +@interface SDLRPCPayload : NSObject + +@property (assign) SDLRPCMessageType rpcType; +@property (assign) UInt32 functionID; +@property (assign) UInt32 correlationID; +@property (strong) NSData *jsonData; +@property (strong) NSData *binaryData; + +- (NSData *)data; ++ (id)rpcPayloadWithData:(NSData *)data; + +@end diff --git a/SmartDeviceLink/SDLRPCPayload.m b/SmartDeviceLink/SDLRPCPayload.m new file mode 100644 index 000000000..25a4c9dab --- /dev/null +++ b/SmartDeviceLink/SDLRPCPayload.m @@ -0,0 +1,121 @@ +// SDLRPCPayload.h +// + + +#import "SDLRPCPayload.h" + +const NSUInteger RPC_HEADER_SIZE = 12; + +@implementation SDLRPCPayload + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithData:(NSData *)data { + unsigned long dataLength = data.length; + + if (data == nil || dataLength == 0) { + NSLog(@"Error: data is nil."); + return nil; + } + + if (dataLength < RPC_HEADER_SIZE) { + NSLog(@"Error: insfficient data to form RPC header."); + return nil; + } + + if (self = [self init]) { + @try { + // Setup our pointers for data access + UInt8 *bytePointer = (UInt8 *)data.bytes; + UInt32 *ui32Pointer = (UInt32 *)data.bytes; + + // Extract the parts + UInt8 rpcType = (bytePointer[0] & 0xF0) >> 4; + + self.rpcType = rpcType; + + UInt32 functionID = ui32Pointer[0]; + functionID = CFSwapInt32BigToHost(functionID) & 0x0FFFFFFF; + self.functionID = functionID; + + UInt32 correlationID = ui32Pointer[1]; + correlationID = CFSwapInt32BigToHost(correlationID); + self.correlationID = correlationID; + + UInt32 jsonDataSize = ui32Pointer[2]; + jsonDataSize = CFSwapInt32BigToHost(jsonDataSize); + + NSData *jsonData = nil; + NSUInteger offsetOfJSONData = RPC_HEADER_SIZE; + if (jsonDataSize > 0 && jsonDataSize <= dataLength - RPC_HEADER_SIZE) { + jsonData = [data subdataWithRange:NSMakeRange(offsetOfJSONData, jsonDataSize)]; + } + self.jsonData = jsonData; + + NSData *binaryData = nil; + NSUInteger offsetOfBinaryData = RPC_HEADER_SIZE + jsonDataSize; + NSInteger binaryDataSize = data.length - jsonDataSize - RPC_HEADER_SIZE; + if (binaryDataSize > 0) { + binaryData = [data subdataWithRange:NSMakeRange(offsetOfBinaryData, binaryDataSize)]; + } + self.binaryData = binaryData; + + } @catch (NSException *e) { + // Print exception information + NSLog(@"NSException caught in SDLRPCPayload::initWithData"); + NSLog(@"Name: %@", e.name); + NSLog(@"Reason: %@", e.reason); + NSLog(@"Data: %@", data.debugDescription); + return nil; + } + } + + return self; +} + +- (NSData *)data { + // Header is: + // RPC Type - first 4 bits + // RPC Function ID - next 28 bits + // Correlation ID - next 32 bits + // JSON size - next 32 bits + UInt8 headerBuffer[RPC_HEADER_SIZE]; + *(UInt32 *)&headerBuffer[0] = CFSwapInt32HostToBig(self.functionID); + *(UInt32 *)&headerBuffer[4] = CFSwapInt32HostToBig(self.correlationID); + *(UInt32 *)&headerBuffer[8] = CFSwapInt32HostToBig((UInt32)self.jsonData.length); + UInt8 rpcType = (self.rpcType & 0x0F) << 4; + headerBuffer[0] &= 0x0F; + headerBuffer[0] |= rpcType; + + // Serialize the header, the json data then the binary data + NSMutableData *dataOut = [NSMutableData dataWithCapacity:[self size]]; + [dataOut appendBytes:&headerBuffer length:12]; + [dataOut appendData:self.jsonData]; + [dataOut appendData:self.binaryData]; + + return dataOut; +} + +- (NSUInteger)size { + NSUInteger headerSize = RPC_HEADER_SIZE; + NSUInteger jsonDataSize = self.jsonData.length; + NSUInteger binaryDataSize = self.binaryData.length; + + return (headerSize + jsonDataSize + binaryDataSize); +} + +- (NSString *)description { + NSMutableString *description = [[NSMutableString alloc] init]; + [description appendFormat:@" rpcType:%i, functionID:%i, correlationID:%i, json:%lu bytes, binary:%lu bytes", self.rpcType, (unsigned int)self.functionID, (unsigned int)self.correlationID, (unsigned long)self.jsonData.length, (unsigned long)self.binaryData.length]; + + return description; +} + ++ (id)rpcPayloadWithData:(NSData *)data { + return [[SDLRPCPayload alloc] initWithData:data]; +} +@end diff --git a/SmartDeviceLink/SDLRPCRequest.h b/SmartDeviceLink/SDLRPCRequest.h new file mode 100644 index 000000000..e637eb4bc --- /dev/null +++ b/SmartDeviceLink/SDLRPCRequest.h @@ -0,0 +1,12 @@ +// SDLRPCRequest.h +// + + +#import "SDLRPCMessage.h" + +@interface SDLRPCRequest : SDLRPCMessage { +} + +@property (strong) NSNumber *correlationID; + +@end diff --git a/SmartDeviceLink/SDLRPCRequest.m b/SmartDeviceLink/SDLRPCRequest.m new file mode 100644 index 000000000..48c568c9d --- /dev/null +++ b/SmartDeviceLink/SDLRPCRequest.m @@ -0,0 +1,23 @@ +// SDLRPCRequest.m +// + + +#import "SDLRPCRequest.h" + +#import "SDLNames.h" + +@implementation SDLRPCRequest + +- (NSNumber *)correlationID { + return [function objectForKey:NAMES_correlationID]; +} + +- (void)setCorrelationID:(NSNumber *)corrID { + if (corrID != nil) { + [function setObject:corrID forKey:NAMES_correlationID]; + } else { + [function removeObjectForKey:NAMES_correlationID]; + } +} + +@end diff --git a/SmartDeviceLink/SDLRPCRequestFactory.h b/SmartDeviceLink/SDLRPCRequestFactory.h new file mode 100644 index 000000000..6df474850 --- /dev/null +++ b/SmartDeviceLink/SDLRPCRequestFactory.h @@ -0,0 +1,210 @@ +// SDLRPCRequestFactory.h +// + +#import + +@class SDLAddCommand; +@class SDLAddSubMenu; +@class SDLAlert; +@class SDLAlertManeuver; +@class SDLAppHMIType; +@class SDLAudioType; +@class SDLBitsPerSample; +@class SDLButtonName; +@class SDLChangeRegistration; +@class SDLCreateInteractionChoiceSet; +@class SDLDeleteCommand; +@class SDLDeleteFile; +@class SDLDeleteInteractionChoiceSet; +@class SDLDeleteSubMenu; +@class SDLDialNumber; +@class SDLEndAudioPassThru; +@class SDLFileType; +@class SDLGetDTCs; +@class SDLGetVehicleData; +@class SDLImage; +@class SDLImageType; +@class SDLInteractionMode; +@class SDLLanguage; +@class SDLListFiles; +@class SDLPerformAudioPassThru; +@class SDLPerformInteraction; +@class SDLPutFile; +@class SDLReadDID; +@class SDLRegisterAppInterface; +@class SDLResetGlobalProperties; +@class SDLSamplingRate; +@class SDLScrollableMessage; +@class SDLSendLocation; +@class SDLSetAppIcon; +@class SDLSetDisplayLayout; +@class SDLSetGlobalProperties; +@class SDLSetMediaClockTimer; +@class SDLShow; +@class SDLShowConstantTBT; +@class SDLSlider; +@class SDLSpeak; +@class SDLSubscribeButton; +@class SDLSubscribeVehicleData; +@class SDLTextAlignment; +@class SDLUnregisterAppInterface; +@class SDLUnsubscribeButton; +@class SDLUnsubscribeVehicleData; +@class SDLUpdateMode; +@class SDLUpdateTurnList; + + +@interface SDLRPCRequestFactory : NSObject { +} + +//***** AddCommand ***** ++ (SDLAddCommand *)buildAddCommandWithID:(NSNumber *)cmdID menuName:(NSString *)menuName parentID:(NSNumber *)parentID position:(NSNumber *)position vrCommands:(NSArray *)vrCommands iconValue:(NSString *)iconValue iconType:(SDLImageType *)iconType correlationID:(NSNumber *)correlationID; + ++ (SDLAddCommand *)buildAddCommandWithID:(NSNumber *)cmdID menuName:(NSString *)menuName vrCommands:(NSArray *)vrCommands correlationID:(NSNumber *)correlationID; + ++ (SDLAddCommand *)buildAddCommandWithID:(NSNumber *)cmdID vrCommands:(NSArray *)vrCommands correlationID:(NSNumber *)correlationID; +//***** + + +//***** AddSubMenu ***** ++ (SDLAddSubMenu *)buildAddSubMenuWithID:(NSNumber *)menuID menuName:(NSString *)menuName position:(NSNumber *)position correlationID:(NSNumber *)correlationID; + ++ (SDLAddSubMenu *)buildAddSubMenuWithID:(NSNumber *)menuID menuName:(NSString *)menuName correlationID:(NSNumber *)correlationID; +//***** + + +//***** Alert ***** ++ (SDLAlert *)buildAlertWithTTS:(NSString *)ttsText alertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 playTone:(NSNumber *)playTone duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID; + ++ (SDLAlert *)buildAlertWithTTS:(NSString *)ttsText alertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 playTone:(NSNumber *)playTone duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID; + ++ (SDLAlert *)buildAlertWithTTS:(NSString *)ttsText playTone:(NSNumber *)playTone correlationID:(NSNumber *) + correlationID; + +//*** ++ (SDLAlert *)buildAlertWithTTSChunks:(NSArray *)ttsChunks alertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 playTone:(NSNumber *)playTone duration:(NSNumber *)duration softButtons:(NSArray *)softButtons correlationID:(NSNumber *)correlationID; + ++ (SDLAlert *)buildAlertWithTTSChunks:(NSArray *)ttsChunks playTone:(NSNumber *)playTone correlationID:(NSNumber *)correlationID; + +//*** ++ (SDLAlert *)buildAlertWithAlertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 duration:(NSNumber *)duration softButtons:(NSArray *)softButtons correlationID:(NSNumber *)correlationID; + ++ (SDLAlert *)buildAlertWithAlertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID; + ++ (SDLAlert *)buildAlertWithAlertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID; +//***** + ++ (SDLAlertManeuver *)buildAlertManeuverwithTTSchunks:(NSMutableArray *)ttsChunks softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID; + ++ (SDLChangeRegistration *)buildChangeRegistrationWithLanguage:(SDLLanguage *)language hmiDisplayLanguage:(SDLLanguage *)hmiDisplayLanguage correlationID:(NSNumber *)correlationID; + ++ (SDLCreateInteractionChoiceSet *)buildCreateInteractionChoiceSetWithID:(NSNumber *)interactionChoiceSetID choiceSet:(NSArray *)choices correlationID:(NSNumber *)correlationID; + ++ (SDLDeleteCommand *)buildDeleteCommandWithID:(NSNumber *)cmdID correlationID:(NSNumber *)correlationID; + ++ (SDLDeleteFile *)buildDeleteFileWithName:(NSString *)syncFileName correlationID:(NSNumber *)correlationID; + ++ (SDLDialNumber *)buildDialNumberWithNumber:(NSString *)phoneNumber; + ++ (SDLListFiles *)buildListFilesWithCorrelationID:(NSNumber *)correlationID; + ++ (SDLDeleteInteractionChoiceSet *)buildDeleteInteractionChoiceSetWithID:(NSNumber *)interactionChoiceSetID correlationID:(NSNumber *)correlationID; + ++ (SDLDeleteSubMenu *)buildDeleteSubMenuWithID:(NSNumber *)menuID correlationID:(NSNumber *)correlationID; + ++ (SDLEndAudioPassThru *)buildEndAudioPassThruWithCorrelationID:(NSNumber *)correlationID; + ++ (SDLGetDTCs *)buildGetDTCsWithECUName:(NSNumber *)ecuName correlationID:(NSNumber *)correlationID; + ++ (SDLGetVehicleData *)buildGetVehicleDataWithGPS:(NSNumber *)gps speed:(NSNumber *)speed rpm:(NSNumber *)rpm fuelLevel:(NSNumber *)fuelLevel fuelLevelState:(NSNumber *)fuelLevelState instantFuelConsumption:(NSNumber *)instantFuelConsumption externalTemperature:(NSNumber *)externalTemperature vin:(NSNumber *)vin prndl:(NSNumber *)prndl tirePressure:(NSNumber *)tirePressure odometer:(NSNumber *)odometer beltStatus:(NSNumber *)beltStatus bodyInformation:(NSNumber *)bodyInformation deviceStatus:(NSNumber *)deviceStatus driverBraking:(NSNumber *)driverBraking wiperStatus:(NSNumber *)wiperStatus headLampStatus:(NSNumber *)headLampStatus engineTorque:(NSNumber *)engineTorque accPedalPosition:(NSNumber *)accPedalPosition steeringWheelAngle:(NSNumber *)steeringWheelAngle correlationID:(NSNumber *)correlationID; + ++ (SDLPerformAudioPassThru *)buildPerformAudioPassThruWithInitialPrompt:(NSString *)initialPrompt audioPassThruDisplayText1:(NSString *)audioPassThruDisplayText1 audioPassThruDisplayText2:(NSString *)audioPassThruDisplayText2 samplingRate:(SDLSamplingRate *)samplingRate maxDuration:(NSNumber *)maxDuration bitsPerSample:(SDLBitsPerSample *)bitsPerSample audioType:(SDLAudioType *)audioType muteAudio:(NSNumber *)muteAudio correlationID:(NSNumber *)correlationID; + + +//***** PerformInteraction ***** ++ (SDLPerformInteraction *)buildPerformInteractionWithInitialChunks:(NSArray *)initialChunks initialText:(NSString *)initialText interactionChoiceSetIDList:(NSArray *)interactionChoiceSetIDList helpChunks:(NSArray *)helpChunks timeoutChunks:(NSArray *)timeoutChunks interactionMode:(SDLInteractionMode *)interactionMode timeout:(NSNumber *)timeout vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID; + +//*** ++ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetIDList:(NSArray *)interactionChoiceSetIDList helpPrompt:(NSString *)helpPrompt timeoutPrompt:(NSString *)timeoutPrompt interactionMode:(SDLInteractionMode *)interactionMode timeout:(NSNumber *)timeout vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID; + ++ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetID:(NSNumber *)interactionChoiceSetID vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID; + ++ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetIDList:(NSArray *)interactionChoiceSetIDList helpPrompt:(NSString *)helpPrompt timeoutPrompt:(NSString *)timeoutPrompt interactionMode:(SDLInteractionMode *)interactionMode timeout:(NSNumber *)timeout correlationID:(NSNumber *)correlationID; + ++ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetID:(NSNumber *)interactionChoiceSetID correlationID:(NSNumber *)correlationID; +//***** + ++ (SDLPutFile *)buildPutFileWithFileName:(NSString *)fileName fileType:(SDLFileType *)fileType persistentFile:(NSNumber *)persistentFile correlationId:(NSNumber *)correlationID; ++ (SDLPutFile *)buildPutFileWithFileName:(NSString *)syncFileName fileType:(SDLFileType *)fileType persisistentFile:(NSNumber *)persistentFile correlationID:(NSNumber *)correlationID __deprecated_msg("use buildPutFileWithFileName:fileType:persistentFile:correlationID: instead"); + ++ (SDLReadDID *)buildReadDIDWithECUName:(NSNumber *)ecuName didLocation:(NSArray *)didLocation correlationID:(NSNumber *)correlationID; + +//***** RegisterAppInterface ***** ++ (SDLRegisterAppInterface *)buildRegisterAppInterfaceWithAppName:(NSString *)appName ttsName:(NSMutableArray *)ttsName vrSynonyms:(NSMutableArray *)vrSynonyms isMediaApp:(NSNumber *)isMediaApp languageDesired:(SDLLanguage *)languageDesired hmiDisplayLanguageDesired:(SDLLanguage *)hmiDisplayLanguageDesired appID:(NSString *)appID; + ++ (SDLRegisterAppInterface *)buildRegisterAppInterfaceWithAppName:(NSString *)appName isMediaApp:(NSNumber *)isMediaApp languageDesired:(SDLLanguage *)languageDesired appID:(NSString *)appID; + ++ (SDLRegisterAppInterface *)buildRegisterAppInterfaceWithAppName:(NSString *)appName languageDesired:(SDLLanguage *)laguageDesired appID:(NSString *)appID; +//***** + ++ (SDLResetGlobalProperties *)buildResetGlobalPropertiesWithProperties:(NSArray *)properties correlationID:(NSNumber *)correlationID; + ++ (SDLSendLocation *)buildSendLocationWithLongitude:(NSNumber *)longitude latitude:(NSNumber *)latitude locationName:(NSString *)locationName locationDescription:(NSString *)locationDescription address:(NSArray *)address phoneNumber:(NSString *)phoneNumber image:(SDLImage *)image; + ++ (SDLScrollableMessage *)buildScrollableMessage:(NSString *)scrollableMessageBody timeout:(NSNumber *)timeout softButtons:(NSArray *)softButtons correlationID:(NSNumber *)correlationID; + ++ (SDLSetAppIcon *)buildSetAppIconWithFileName:(NSString *)syncFileName correlationID:(NSNumber *)correlationID; + ++ (SDLSetDisplayLayout *)buildSetDisplayLayout:(NSString *)displayLayout correlationID:(NSNumber *)correlationID; + + +//***** SetGlobalProperties ***** ++ (SDLSetGlobalProperties *)buildSetGlobalPropertiesWithHelpText:(NSString *)helpText timeoutText:(NSString *)timeoutText vrHelpTitle:(NSString *)vrHelpTitle vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID; + ++ (SDLSetGlobalProperties *)buildSetGlobalPropertiesWithHelpText:(NSString *)helpText timeoutText:(NSString *)timeoutText correlationID:(NSNumber *)correlationID; +//***** + + +//***** SetMediaClockTimer ***** ++ (SDLSetMediaClockTimer *)buildSetMediaClockTimerWithHours:(NSNumber *)hours minutes:(NSNumber *)minutes seconds:(NSNumber *)seconds updateMode:(SDLUpdateMode *)updateMode correlationID:(NSNumber *)correlationID; + ++ (SDLSetMediaClockTimer *)buildSetMediaClockTimerWithUpdateMode:(SDLUpdateMode *)updateMode correlationID:(NSNumber *)correlationID; +//***** + + +//***** Show ***** ++ (SDLShow *)buildShowWithMainField1:(NSString *)mainField1 mainField2:(NSString *)mainField2 mainField3:(NSString *)mainField3 mainField4:(NSString *)mainField4 statusBar:(NSString *)statusBar mediaClock:(NSString *)mediaClock mediaTrack:(NSString *)mediaTrack alignment:(SDLTextAlignment *)textAlignment graphic:(SDLImage *)graphic softButtons:(NSArray *)softButtons customPresets:(NSArray *)customPresets correlationID:(NSNumber *)correlationID; + ++ (SDLShow *)buildShowWithMainField1:(NSString *)mainField1 mainField2:(NSString *)mainField2 statusBar:(NSString *)statusBar mediaClock:(NSString *)mediaClock mediaTrack:(NSString *)mediaTrack alignment:(SDLTextAlignment *)textAlignment correlationID:(NSNumber *)correlationID; + ++ (SDLShow *)buildShowWithMainField1:(NSString *)mainField1 mainField2:(NSString *)mainField2 alignment:(SDLTextAlignment *)alignment correlationID:(NSNumber *)correlationID; +//***** + + +//***** Slider ***** ++ (SDLSlider *)buildSliderDynamicFooterWithNumTicks:(NSNumber *)numTicks position:(NSNumber *)position sliderHeader:(NSString *)sliderHeader sliderFooter:(NSArray *)sliderFooter timeout:(NSNumber *)timeout correlationID:(NSNumber *)correlationID; + ++ (SDLSlider *)buildSliderStaticFooterWithNumTicks:(NSNumber *)numTicks position:(NSNumber *)position sliderHeader:(NSString *)sliderHeader sliderFooter:(NSString *)sliderFooter timeout:(NSNumber *)timeout correlationID:(NSNumber *)correlationID; +//***** + +//***** Speak ***** ++ (SDLSpeak *)buildSpeakWithTTSChunks:(NSArray *)ttsChunks correlationID:(NSNumber *)correlationID; + +//*** ++ (SDLSpeak *)buildSpeakWithTTS:(NSString *)ttsText correlationID:(NSNumber *)correlationID; +//***** + ++ (SDLSubscribeButton *)buildSubscribeButtonWithName:(SDLButtonName *)buttonName correlationID:(NSNumber *)correlationID; + ++ (SDLSubscribeVehicleData *)buildSubscribeVehicleDataWithGPS:(NSNumber *)gps speed:(NSNumber *)speed rpm:(NSNumber *)rpm fuelLevel:(NSNumber *)fuelLevel fuelLevelState:(NSNumber *)fuelLevelState instantFuelConsumption:(NSNumber *)instantFuelConsumption externalTemperature:(NSNumber *)externalTemperature prndl:(NSNumber *)prndl tirePressure:(NSNumber *)tirePressure odometer:(NSNumber *)odometer beltStatus:(NSNumber *)beltStatus bodyInformation:(NSNumber *)bodyInformation deviceStatus:(NSNumber *)deviceStatus driverBraking:(NSNumber *)driverBraking wiperStatus:(NSNumber *)wiperStatus headLampStatus:(NSNumber *)headLampStatus engineTorque:(NSNumber *)engineTorque accPedalPosition:(NSNumber *)accPedalPosition steeringWheelAngle:(NSNumber *)steeringWheelAngle correlationID:(NSNumber *)correlationID; + ++ (SDLShowConstantTBT *)buildShowConstantTBTWithString:(NSString *)navigationText1 navigationText2:(NSString *)navigationText2 eta:(NSString *)eta timeToDestination:(NSString *)timeToDestination totalDistance:(NSString *)totalDistance turnIcon:(SDLImage *)turnIcon nextTurnIcon:(SDLImage *)nextTurnIcon distanceToManeuver:(NSNumber *)distanceToManeuver distanceToManeuverScale:(NSNumber *)distanceToManeuverScale maneuverComplete:(NSNumber *)maneuverComplete softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID; + ++ (SDLUnregisterAppInterface *)buildUnregisterAppInterfaceWithCorrelationID:(NSNumber *)correlationID; + ++ (SDLUnsubscribeButton *)buildUnsubscribeButtonWithName:(SDLButtonName *)buttonName correlationID:(NSNumber *)correlationID; + ++ (SDLUnsubscribeVehicleData *)buildUnsubscribeVehicleDataWithGPS:(NSNumber *)gps speed:(NSNumber *)speed rpm:(NSNumber *)rpm fuelLevel:(NSNumber *)fuelLevel fuelLevelState:(NSNumber *)fuelLevelState instantFuelConsumption:(NSNumber *)instantFuelConsumption externalTemperature:(NSNumber *)externalTemperature prndl:(NSNumber *)prndl tirePressure:(NSNumber *)tirePressure odometer:(NSNumber *)odometer beltStatus:(NSNumber *)beltStatus bodyInformation:(NSNumber *)bodyInformation deviceStatus:(NSNumber *)deviceStatus driverBraking:(NSNumber *)driverBraking wiperStatus:(NSNumber *)wiperStatus headLampStatus:(NSNumber *)headLampStatus engineTorque:(NSNumber *)engineTorque accPedalPosition:(NSNumber *)accPedalPosition steeringWheelAngle:(NSNumber *)steeringWheelAngle correlationID:(NSNumber *)correlationID; + ++ (SDLUpdateTurnList *)buildUpdateTurnListWithTurnList:(NSMutableArray *)turnList softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID; +@end diff --git a/SmartDeviceLink/SDLRPCRequestFactory.m b/SmartDeviceLink/SDLRPCRequestFactory.m new file mode 100644 index 000000000..44f9848a8 --- /dev/null +++ b/SmartDeviceLink/SDLRPCRequestFactory.m @@ -0,0 +1,689 @@ +// SDLRPCRequestFactory.m +// + +#import "SDLRPCRequestFactory.h" +#import +#import +#import + +#import "SDLAddCommand.h" +#import "SDLAddSubMenu.h" +#import "SDLAlert.h" +#import "SDLAlertManeuver.h" +#import "SDLAppHMIType.h" +#import "SDLChangeRegistration.h" +#import "SDLCreateInteractionChoiceSet.h" +#import "SDLDebugTool.h" +#import "SDLDeleteCommand.h" +#import "SDLDeleteFile.h" +#import "SDLDeleteInteractionChoiceSet.h" +#import "SDLDeleteSubMenu.h" +#import "SDLDeviceInfo.h" +#import "SDLDialNumber.h" +#import "SDLEndAudioPassThru.h" +#import "SDLFileType.h" +#import "SDLGetDTCs.h" +#import "SDLGetVehicleData.h" +#import "SDLImage.h" +#import "SDLInteractionMode.h" +#import "SDLListFiles.h" +#import "SDLMenuParams.h" +#import "SDLPerformAudioPassThru.h" +#import "SDLPerformInteraction.h" +#import "SDLPutFile.h" +#import "SDLReadDID.h" +#import "SDLRegisterAppInterface.h" +#import "SDLResetGlobalProperties.h" +#import "SDLScrollableMessage.h" +#import "SDLSendLocation.h" +#import "SDLSetAppIcon.h" +#import "SDLSetDisplayLayout.h" +#import "SDLSetGlobalProperties.h" +#import "SDLSetMediaClockTimer.h" +#import "SDLShow.h" +#import "SDLShowConstantTBT.h" +#import "SDLSlider.h" +#import "SDLSpeak.h" +#import "SDLSpeechCapabilities.h" +#import "SDLStartTime.h" +#import "SDLSubscribeButton.h" +#import "SDLSubscribeVehicleData.h" +#import "SDLSyncMsgVersion.h" +#import "SDLTTSChunk.h" +#import "SDLTTSChunkFactory.h" +#import "SDLUnregisterAppInterface.h" +#import "SDLUnsubscribeButton.h" +#import "SDLUnsubscribeVehicleData.h" +#import "SDLUpdateTurnList.h" + + +@implementation SDLRPCRequestFactory + +//***** AddCommand ***** ++ (SDLAddCommand *)buildAddCommandWithID:(NSNumber *)cmdID menuName:(NSString *)menuName parentID:(NSNumber *)parentID position:(NSNumber *)position vrCommands:(NSArray *)vrCommands iconValue:(NSString *)iconValue iconType:(SDLImageType *)iconType correlationID:(NSNumber *)correlationID { + SDLAddCommand *msg = [[SDLAddCommand alloc] init]; + msg.correlationID = correlationID; + + msg.cmdID = cmdID; + + if (menuName != nil || parentID != nil || position != nil) { + SDLMenuParams *menuParams = [[SDLMenuParams alloc] init]; + menuParams.menuName = menuName; + menuParams.parentID = parentID; + menuParams.position = position; + msg.menuParams = menuParams; + } + msg.vrCommands = [vrCommands mutableCopy]; + + if (iconValue != nil || iconType != nil) { + SDLImage *icon = [[SDLImage alloc] init]; + icon.value = iconValue; + icon.imageType = iconType; + msg.cmdIcon = icon; + } + + return msg; +} + ++ (SDLAddCommand *)buildAddCommandWithID:(NSNumber *)cmdID menuName:(NSString *)menuName vrCommands:(NSArray *)vrCommands correlationID:(NSNumber *)correlationID { + return [SDLRPCRequestFactory buildAddCommandWithID:cmdID menuName:menuName parentID:nil position:nil vrCommands:vrCommands iconValue:nil iconType:nil correlationID:correlationID]; +} + ++ (SDLAddCommand *)buildAddCommandWithID:(NSNumber *)cmdID vrCommands:(NSArray *)vrCommands correlationID:(NSNumber *)correlationID { + return [SDLRPCRequestFactory buildAddCommandWithID:cmdID menuName:nil vrCommands:vrCommands correlationID:correlationID]; +} +//***** + + +//***** AddSubMenu ***** ++ (SDLAddSubMenu *)buildAddSubMenuWithID:(NSNumber *)menuID menuName:(NSString *)menuName position:(NSNumber *)position correlationID:(NSNumber *)correlationID { + SDLAddSubMenu *msg = [[SDLAddSubMenu alloc] init]; + msg.correlationID = correlationID; + msg.menuID = menuID; + msg.menuName = menuName; + msg.position = position; + return msg; +} + ++ (SDLAddSubMenu *)buildAddSubMenuWithID:(NSNumber *)menuID menuName:(NSString *)menuName correlationID:(NSNumber *)correlationID { + return [SDLRPCRequestFactory buildAddSubMenuWithID:menuID menuName:menuName position:nil correlationID:correlationID]; +} +//***** + + +//***** Alert ***** ++ (SDLAlert *)buildAlertWithTTS:(NSString *)ttsText alertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 playTone:(NSNumber *)playTone duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID { + SDLTTSChunk *simpleChunk = [[SDLTTSChunk alloc] init]; + simpleChunk.text = ttsText; + simpleChunk.type = SDLSpeechCapabilities.TEXT; + NSArray *ttsChunks = [NSArray arrayWithObject:simpleChunk]; + + return [SDLRPCRequestFactory buildAlertWithTTSChunks:ttsChunks alertText1:alertText1 alertText2:alertText2 alertText3:alertText3 playTone:playTone duration:duration softButtons:nil correlationID:correlationID]; +} + ++ (SDLAlert *)buildAlertWithTTS:(NSString *)ttsText alertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 playTone:(NSNumber *)playTone duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID { + return [SDLRPCRequestFactory buildAlertWithTTS:ttsText alertText1:alertText1 alertText2:alertText2 alertText3:nil playTone:playTone duration:duration correlationID:correlationID]; +} + ++ (SDLAlert *)buildAlertWithTTS:(NSString *)ttsText playTone:(NSNumber *)playTone correlationID:(NSNumber *)correlationID { + return [SDLRPCRequestFactory buildAlertWithTTS:ttsText alertText1:nil alertText2:nil alertText3:nil playTone:playTone duration:nil correlationID:correlationID]; +} + +//*** ++ (SDLAlert *)buildAlertWithTTSChunks:(NSArray *)ttsChunks alertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 playTone:(NSNumber *)playTone duration:(NSNumber *)duration softButtons:(NSArray *)softButtons correlationID:(NSNumber *)correlationID { + SDLAlert *msg = [[SDLAlert alloc] init]; + msg.correlationID = correlationID; + msg.alertText1 = alertText1; + msg.alertText2 = alertText2; + msg.alertText3 = alertText3; + msg.ttsChunks = [ttsChunks mutableCopy]; + msg.playTone = playTone; + msg.duration = duration; + msg.softButtons = [softButtons mutableCopy]; + return msg; +} + ++ (SDLAlert *)buildAlertWithTTSChunks:(NSArray *)ttsChunks playTone:(NSNumber *)playTone correlationID:(NSNumber *)correlationID { + return [SDLRPCRequestFactory buildAlertWithTTSChunks:ttsChunks alertText1:nil alertText2:nil alertText3:nil playTone:playTone duration:nil softButtons:nil correlationID:correlationID]; +} + +//*** ++ (SDLAlert *)buildAlertWithAlertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 duration:(NSNumber *)duration softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID { + return [SDLRPCRequestFactory buildAlertWithTTSChunks:nil alertText1:alertText1 alertText2:alertText2 alertText3:alertText3 playTone:nil duration:duration softButtons:softButtons correlationID:correlationID]; +} + ++ (SDLAlert *)buildAlertWithAlertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 alertText3:(NSString *)alertText3 duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID { + return [SDLRPCRequestFactory buildAlertWithTTSChunks:nil alertText1:alertText1 alertText2:alertText2 alertText3:alertText3 playTone:nil duration:duration softButtons:nil correlationID:correlationID]; +} + ++ (SDLAlert *)buildAlertWithAlertText1:(NSString *)alertText1 alertText2:(NSString *)alertText2 duration:(NSNumber *)duration correlationID:(NSNumber *)correlationID { + return [SDLRPCRequestFactory buildAlertWithTTSChunks:nil alertText1:alertText1 alertText2:alertText2 alertText3:nil playTone:nil duration:duration softButtons:nil correlationID:correlationID]; +} +//***** + + ++ (SDLAlertManeuver *)buildAlertManeuverwithTTSchunks:(NSMutableArray *)ttsChunks softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID { + SDLAlertManeuver *msg = [[SDLAlertManeuver alloc] init]; + msg.ttsChunks = ttsChunks; + msg.softButtons = softButtons; + msg.correlationID = correlationID; + return msg; +} + ++ (SDLChangeRegistration *)buildChangeRegistrationWithLanguage:(SDLLanguage *)language hmiDisplayLanguage:(SDLLanguage *)hmiDisplayLanguage correlationID:(NSNumber *)correlationID { + SDLChangeRegistration *msg = [[SDLChangeRegistration alloc] init]; + msg.language = language; + msg.hmiDisplayLanguage = hmiDisplayLanguage; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLCreateInteractionChoiceSet *)buildCreateInteractionChoiceSetWithID:(NSNumber *)interactionChoiceSetID choiceSet:(NSArray *)choices correlationID:(NSNumber *)correlationID { + SDLCreateInteractionChoiceSet *msg = [[SDLCreateInteractionChoiceSet alloc] init]; + msg.interactionChoiceSetID = interactionChoiceSetID; + msg.choiceSet = [choices mutableCopy]; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLDeleteCommand *)buildDeleteCommandWithID:(NSNumber *)cmdID correlationID:(NSNumber *)correlationID { + SDLDeleteCommand *msg = [[SDLDeleteCommand alloc] init]; + msg.cmdID = cmdID; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLDeleteFile *)buildDeleteFileWithName:(NSString *)syncFileName correlationID:(NSNumber *)correlationID { + SDLDeleteFile *msg = [[SDLDeleteFile alloc] init]; + msg.syncFileName = syncFileName; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLDialNumber *)buildDialNumberWithNumber:(NSString *)phoneNumber { + SDLDialNumber *msg = [[SDLDialNumber alloc] init]; + msg.number = phoneNumber; + + return msg; +} + ++ (SDLListFiles *)buildListFilesWithCorrelationID:(NSNumber *)correlationID { + SDLListFiles *msg = [[SDLListFiles alloc] init]; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLDeleteInteractionChoiceSet *)buildDeleteInteractionChoiceSetWithID:(NSNumber *)interactionChoiceSetID correlationID:(NSNumber *)correlationID { + SDLDeleteInteractionChoiceSet *msg = [[SDLDeleteInteractionChoiceSet alloc] init]; + msg.interactionChoiceSetID = interactionChoiceSetID; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLDeleteSubMenu *)buildDeleteSubMenuWithID:(NSNumber *)menuID correlationID:(NSNumber *)correlationID { + SDLDeleteSubMenu *msg = [[SDLDeleteSubMenu alloc] init]; + msg.menuID = menuID; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLEndAudioPassThru *)buildEndAudioPassThruWithCorrelationID:(NSNumber *)correlationID { + SDLEndAudioPassThru *msg = [[SDLEndAudioPassThru alloc] init]; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLGetDTCs *)buildGetDTCsWithECUName:(NSNumber *)ecuName correlationID:(NSNumber *)correlationID { + SDLGetDTCs *msg = [[SDLGetDTCs alloc] init]; + msg.ecuName = ecuName; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLGetVehicleData *)buildGetVehicleDataWithGPS:(NSNumber *)gps speed:(NSNumber *)speed rpm:(NSNumber *)rpm fuelLevel:(NSNumber *)fuelLevel fuelLevelState:(NSNumber *)fuelLevelState instantFuelConsumption:(NSNumber *)instantFuelConsumption externalTemperature:(NSNumber *)externalTemperature vin:(NSNumber *)vin prndl:(NSNumber *)prndl tirePressure:(NSNumber *)tirePressure odometer:(NSNumber *)odometer beltStatus:(NSNumber *)beltStatus bodyInformation:(NSNumber *)bodyInformation deviceStatus:(NSNumber *)deviceStatus driverBraking:(NSNumber *)driverBraking wiperStatus:(NSNumber *)wiperStatus headLampStatus:(NSNumber *)headLampStatus engineTorque:(NSNumber *)engineTorque accPedalPosition:(NSNumber *)accPedalPosition steeringWheelAngle:(NSNumber *)steeringWheelAngle correlationID:(NSNumber *)correlationID { + SDLGetVehicleData *msg = [[SDLGetVehicleData alloc] init]; + msg.gps = gps; + msg.speed = speed; + msg.rpm = rpm; + msg.fuelLevel = fuelLevel; + msg.fuelLevel_State = fuelLevelState; + msg.instantFuelConsumption = instantFuelConsumption; + msg.externalTemperature = externalTemperature; + msg.vin = vin; + msg.prndl = prndl; + msg.tirePressure = tirePressure; + msg.odometer = odometer; + msg.beltStatus = beltStatus; + msg.bodyInformation = bodyInformation; + msg.deviceStatus = deviceStatus; + msg.driverBraking = driverBraking; + msg.wiperStatus = wiperStatus; + msg.headLampStatus = headLampStatus; + msg.engineTorque = engineTorque; + msg.accPedalPosition = accPedalPosition; + msg.steeringWheelAngle = steeringWheelAngle; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLPerformAudioPassThru *)buildPerformAudioPassThruWithInitialPrompt:(NSString *)initialPrompt audioPassThruDisplayText1:(NSString *)audioPassThruDisplayText1 audioPassThruDisplayText2:(NSString *)audioPassThruDisplayText2 samplingRate:(SDLSamplingRate *)samplingRate maxDuration:(NSNumber *)maxDuration bitsPerSample:(SDLBitsPerSample *)bitsPerSample audioType:(SDLAudioType *)audioType muteAudio:(NSNumber *)muteAudio correlationID:(NSNumber *)correlationID { + NSArray *initialChunks = [SDLTTSChunkFactory buildTTSChunksFromSimple:initialPrompt]; + + SDLPerformAudioPassThru *msg = [[SDLPerformAudioPassThru alloc] init]; + msg.initialPrompt = [initialChunks mutableCopy]; + msg.audioPassThruDisplayText1 = audioPassThruDisplayText1; + msg.audioPassThruDisplayText2 = audioPassThruDisplayText2; + msg.samplingRate = samplingRate; + msg.maxDuration = maxDuration; + msg.bitsPerSample = bitsPerSample; + msg.audioType = audioType; + msg.muteAudio = muteAudio; + msg.correlationID = correlationID; + + return msg; +} + + +//***** PerformInteraction ***** ++ (SDLPerformInteraction *)buildPerformInteractionWithInitialChunks:(NSArray *)initialChunks initialText:(NSString *)initialText interactionChoiceSetIDList:(NSArray *)interactionChoiceSetIDList helpChunks:(NSArray *)helpChunks timeoutChunks:(NSArray *)timeoutChunks interactionMode:(SDLInteractionMode *)interactionMode timeout:(NSNumber *)timeout vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID { + SDLPerformInteraction *msg = [[SDLPerformInteraction alloc] init]; + msg.initialPrompt = [initialChunks mutableCopy]; + msg.initialText = initialText; + msg.interactionChoiceSetIDList = [interactionChoiceSetIDList mutableCopy]; + msg.helpPrompt = [helpChunks mutableCopy]; + msg.timeoutPrompt = [timeoutChunks mutableCopy]; + msg.interactionMode = interactionMode; + msg.timeout = timeout; + msg.vrHelp = [vrHelp mutableCopy]; + msg.correlationID = correlationID; + + return msg; +} + +//*** ++ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetIDList:(NSArray *)interactionChoiceSetIDList helpPrompt:(NSString *)helpPrompt timeoutPrompt:(NSString *)timeoutPrompt interactionMode:(SDLInteractionMode *)interactionMode timeout:(NSNumber *)timeout vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID { + NSArray *initialChunks = [SDLTTSChunkFactory buildTTSChunksFromSimple:initialPrompt]; + NSArray *helpChunks = [SDLTTSChunkFactory buildTTSChunksFromSimple:helpPrompt]; + NSArray *timeoutChunks = [SDLTTSChunkFactory buildTTSChunksFromSimple:timeoutPrompt]; + + return [SDLRPCRequestFactory buildPerformInteractionWithInitialChunks:initialChunks initialText:initialText interactionChoiceSetIDList:interactionChoiceSetIDList helpChunks:helpChunks timeoutChunks:timeoutChunks interactionMode:interactionMode timeout:timeout vrHelp:vrHelp correlationID:correlationID]; +} + ++ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetID:(NSNumber *)interactionChoiceSetID vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID { + NSArray *interactionChoiceSetIDList = [NSArray arrayWithObject:interactionChoiceSetID]; + NSArray *initialChunks = [SDLTTSChunkFactory buildTTSChunksFromSimple:initialPrompt]; + + return [SDLRPCRequestFactory buildPerformInteractionWithInitialChunks:initialChunks initialText:initialText interactionChoiceSetIDList:interactionChoiceSetIDList helpChunks:nil timeoutChunks:nil interactionMode:SDLInteractionMode.BOTH timeout:nil vrHelp:vrHelp correlationID:correlationID]; +} + ++ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetIDList:(NSArray *)interactionChoiceSetIDList helpPrompt:(NSString *)helpPrompt timeoutPrompt:(NSString *)timeoutPrompt interactionMode:(SDLInteractionMode *)interactionMode timeout:(NSNumber *)timeout correlationID:(NSNumber *)correlationID { + return [SDLRPCRequestFactory buildPerformInteractionWithInitialPrompt:initialPrompt initialText:initialText interactionChoiceSetIDList:interactionChoiceSetIDList helpPrompt:helpPrompt timeoutPrompt:timeoutPrompt interactionMode:interactionMode timeout:timeout vrHelp:nil correlationID:(NSNumber *)correlationID]; +} + ++ (SDLPerformInteraction *)buildPerformInteractionWithInitialPrompt:(NSString *)initialPrompt initialText:(NSString *)initialText interactionChoiceSetID:(NSNumber *)interactionChoiceSetID correlationID:(NSNumber *)correlationID { + return [SDLRPCRequestFactory buildPerformInteractionWithInitialPrompt:initialPrompt initialText:initialText interactionChoiceSetID:interactionChoiceSetID vrHelp:nil correlationID:correlationID]; +} +//***** + ++ (SDLPutFile *)buildPutFileWithFileName:(NSString *)fileName fileType:(SDLFileType *)fileType persistentFile:(NSNumber *)persistentFile correlationId:(NSNumber *)correlationID { + SDLPutFile *msg = [[SDLPutFile alloc] init]; + msg.syncFileName = fileName; + + msg.fileType = fileType; + msg.persistentFile = persistentFile; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLPutFile *)buildPutFileWithFileName:(NSString *)syncFileName fileType:(SDLFileType *)fileType persisistentFile:(NSNumber *)persistentFile correlationID:(NSNumber *)correlationID { + return [self buildPutFileWithFileName:syncFileName fileType:fileType persistentFile:persistentFile correlationId:correlationID]; +} + ++ (SDLReadDID *)buildReadDIDWithECUName:(NSNumber *)ecuName didLocation:(NSArray *)didLocation correlationID:(NSNumber *)correlationID { + SDLReadDID *msg = [[SDLReadDID alloc] init]; + msg.ecuName = ecuName; + msg.didLocation = [didLocation mutableCopy]; + msg.correlationID = correlationID; + + return msg; +} + +//***** RegisterAppInterface ***** ++ (SDLRegisterAppInterface *)buildRegisterAppInterfaceWithAppName:(NSString *)appName ttsName:(NSArray *)ttsName vrSynonyms:(NSArray *)vrSynonyms isMediaApp:(NSNumber *)isMediaApp languageDesired:(SDLLanguage *)languageDesired hmiDisplayLanguageDesired:(SDLLanguage *)hmiDisplayLanguageDesired appID:(NSString *)appID { + SDLRegisterAppInterface *msg = [[SDLRegisterAppInterface alloc] init]; + SDLSyncMsgVersion *version = [[SDLSyncMsgVersion alloc] init]; + version.majorVersion = [NSNumber numberWithInt:1]; + version.minorVersion = [NSNumber numberWithInt:0]; + msg.syncMsgVersion = version; + msg.appName = appName; + msg.ttsName = [ttsName mutableCopy]; + msg.ngnMediaScreenAppName = appName; + msg.vrSynonyms = [vrSynonyms mutableCopy]; + msg.isMediaApplication = isMediaApp; + msg.languageDesired = languageDesired; + msg.hmiDisplayLanguageDesired = hmiDisplayLanguageDesired; + msg.appID = appID; + msg.deviceInfo = [self sdl_buildDeviceInfo]; + msg.correlationID = [NSNumber numberWithInt:1]; + + return msg; +} + ++ (SDLDeviceInfo *)sdl_buildDeviceInfo { + SDLDeviceInfo *deviceInfo = [[SDLDeviceInfo alloc] init]; + deviceInfo.hardware = [UIDevice currentDevice].model; + deviceInfo.os = [UIDevice currentDevice].systemName; + deviceInfo.osVersion = [UIDevice currentDevice].systemVersion; + CTTelephonyNetworkInfo *netinfo = [[CTTelephonyNetworkInfo alloc] init]; + CTCarrier *carrier = netinfo.subscriberCellularProvider; + NSString *carrierName = carrier.carrierName; + deviceInfo.carrier = carrierName; + + return deviceInfo; +} + ++ (SDLRegisterAppInterface *)buildRegisterAppInterfaceWithAppName:(NSString *)appName isMediaApp:(NSNumber *)isMediaApp languageDesired:(SDLLanguage *)languageDesired appID:(NSString *)appID { + NSMutableArray *syns = [NSMutableArray arrayWithObject:appName]; + return [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:appName ttsName:nil vrSynonyms:syns isMediaApp:isMediaApp languageDesired:languageDesired hmiDisplayLanguageDesired:languageDesired appID:appID]; +} + ++ (SDLRegisterAppInterface *)buildRegisterAppInterfaceWithAppName:(NSString *)appName languageDesired:(SDLLanguage *)languageDesired appID:(NSString *)appID { + return [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:appName isMediaApp:@NO languageDesired:languageDesired appID:appID]; +} +//***** + + ++ (SDLResetGlobalProperties *)buildResetGlobalPropertiesWithProperties:(NSArray *)properties correlationID:(NSNumber *)correlationID { + SDLResetGlobalProperties *msg = [[SDLResetGlobalProperties alloc] init]; + msg.properties = [properties mutableCopy]; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLScrollableMessage *)buildScrollableMessage:(NSString *)scrollableMessageBody timeout:(NSNumber *)timeout softButtons:(NSArray *)softButtons correlationID:(NSNumber *)correlationID { + SDLScrollableMessage *msg = [[SDLScrollableMessage alloc] init]; + msg.scrollableMessageBody = scrollableMessageBody; + msg.timeout = timeout; + msg.softButtons = [softButtons mutableCopy]; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLSendLocation *)buildSendLocationWithLongitude:(NSNumber *)longitude latitude:(NSNumber *)latitude locationName:(NSString *)locationName locationDescription:(NSString *)locationDescription address:(NSArray *)address phoneNumber:(NSString *)phoneNumber image:(SDLImage *)image { + SDLSendLocation *msg = [[SDLSendLocation alloc] init]; + msg.longitudeDegrees = longitude; + msg.latitudeDegrees = latitude; + msg.locationName = locationName; + msg.locationDescription = locationDescription; + msg.addressLines = address; + msg.phoneNumber = phoneNumber; + msg.locationImage = image; + + return msg; +} + ++ (SDLSetAppIcon *)buildSetAppIconWithFileName:(NSString *)syncFileName correlationID:(NSNumber *)correlationID { + SDLSetAppIcon *msg = [[SDLSetAppIcon alloc] init]; + msg.syncFileName = syncFileName; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLSetDisplayLayout *)buildSetDisplayLayout:(NSString *)displayLayout correlationID:(NSNumber *)correlationID { + SDLSetDisplayLayout *msg = [[SDLSetDisplayLayout alloc] init]; + msg.displayLayout = displayLayout; + msg.correlationID = correlationID; + + return msg; +} + + +//***** SetGlobalProperties ***** ++ (SDLSetGlobalProperties *)buildSetGlobalPropertiesWithHelpText:(NSString *)helpText timeoutText:(NSString *)timeoutText vrHelpTitle:(NSString *)vrHelpTitle vrHelp:(NSArray *)vrHelp correlationID:(NSNumber *)correlationID { + SDLSetGlobalProperties *msg = [[SDLSetGlobalProperties alloc] init]; + msg.helpPrompt = [SDLTTSChunkFactory buildTTSChunksFromSimple:helpText]; + msg.timeoutPrompt = [SDLTTSChunkFactory buildTTSChunksFromSimple:timeoutText]; + msg.vrHelpTitle = vrHelpTitle; + msg.vrHelp = [vrHelp mutableCopy]; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLSetGlobalProperties *)buildSetGlobalPropertiesWithHelpText:(NSString *)helpText timeoutText:(NSString *)timeoutText correlationID:(NSNumber *)correlationID { + SDLSetGlobalProperties *msg = [[SDLSetGlobalProperties alloc] init]; + msg.helpPrompt = [SDLTTSChunkFactory buildTTSChunksFromSimple:helpText]; + msg.timeoutPrompt = [SDLTTSChunkFactory buildTTSChunksFromSimple:timeoutText]; + msg.correlationID = correlationID; + + return msg; +} +//***** + + +//***** SetMediaClockTimer ***** ++ (SDLSetMediaClockTimer *)buildSetMediaClockTimerWithHours:(NSNumber *)hours minutes:(NSNumber *)minutes seconds:(NSNumber *)seconds updateMode:(SDLUpdateMode *)updateMode correlationID:(NSNumber *)correlationID { + SDLSetMediaClockTimer *msg = [[SDLSetMediaClockTimer alloc] init]; + SDLStartTime *startTime = [[SDLStartTime alloc] init]; + startTime.hours = hours; + startTime.minutes = minutes; + startTime.seconds = seconds; + msg.startTime = startTime; + msg.updateMode = updateMode; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLSetMediaClockTimer *)buildSetMediaClockTimerWithUpdateMode:(SDLUpdateMode *)updateMode correlationID:(NSNumber *)correlationID { + SDLSetMediaClockTimer *msg = [[SDLSetMediaClockTimer alloc] init]; + msg.updateMode = updateMode; + msg.correlationID = correlationID; + + return msg; +} +//***** + + +//***** Show ***** ++ (SDLShow *)buildShowWithMainField1:(NSString *)mainField1 mainField2:(NSString *)mainField2 mainField3:(NSString *)mainField3 mainField4:(NSString *)mainField4 statusBar:(NSString *)statusBar mediaClock:(NSString *)mediaClock mediaTrack:(NSString *)mediaTrack alignment:(SDLTextAlignment *)textAlignment graphic:(SDLImage *)graphic softButtons:(NSArray *)softButtons customPresets:(NSArray *)customPresets correlationID:(NSNumber *)correlationID { + SDLShow *msg = [[SDLShow alloc] init]; + msg.correlationID = correlationID; + msg.mainField1 = mainField1; + msg.mainField2 = mainField2; + msg.mainField3 = mainField3; + msg.mainField4 = mainField4; + msg.statusBar = statusBar; + msg.mediaClock = mediaClock; + msg.mediaTrack = mediaTrack; + msg.alignment = textAlignment; + msg.graphic = graphic; + msg.softButtons = [softButtons mutableCopy]; + msg.customPresets = [customPresets mutableCopy]; + + return msg; +} + ++ (SDLShow *)buildShowWithMainField1:(NSString *)mainField1 mainField2:(NSString *)mainField2 statusBar:(NSString *)statusBar mediaClock:(NSString *)mediaClock mediaTrack:(NSString *)mediaTrack alignment:(SDLTextAlignment *)textAlignment correlationID:(NSNumber *)correlationID { + SDLShow *msg = [[SDLShow alloc] init]; + msg.correlationID = correlationID; + msg.mainField1 = mainField1; + msg.mainField2 = mainField2; + msg.statusBar = statusBar; + msg.mediaClock = mediaClock; + msg.mediaTrack = mediaTrack; + msg.alignment = textAlignment; + + return msg; +} + ++ (SDLShow *)buildShowWithMainField1:(NSString *)mainField1 mainField2:(NSString *)mainField2 alignment:(SDLTextAlignment *)alignment correlationID:(NSNumber *)correlationID { + return [SDLRPCRequestFactory buildShowWithMainField1:mainField1 mainField2:mainField2 statusBar:nil mediaClock:nil mediaTrack:nil alignment:alignment correlationID:correlationID]; +} + ++ (SDLShowConstantTBT *)buildShowConstantTBTWithString:(NSString *)navigationText1 navigationText2:(NSString *)navigationText2 eta:(NSString *)eta timeToDestination:(NSString *)timeToDestination totalDistance:(NSString *)totalDistance turnIcon:(SDLImage *)turnIcon nextTurnIcon:(SDLImage *)nextTurnIcon distanceToManeuver:(NSNumber *)distanceToManeuver distanceToManeuverScale:(NSNumber *)distanceToManeuverScale maneuverComplete:(NSNumber *)maneuverComplete softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID { + SDLShowConstantTBT *msg = [[SDLShowConstantTBT alloc] init]; + msg.navigationText1 = navigationText1; + msg.navigationText2 = navigationText2; + msg.eta = eta; + msg.timeToDestination = timeToDestination; + msg.totalDistance = totalDistance; + msg.turnIcon = turnIcon; + msg.nextTurnIcon = nextTurnIcon; + msg.distanceToManeuver = distanceToManeuver; + msg.distanceToManeuverScale = distanceToManeuverScale; + msg.maneuverComplete = maneuverComplete; + msg.softButtons = [softButtons mutableCopy]; + msg.correlationID = correlationID; + + return msg; +} +//***** + + +//***** Slider ***** ++ (SDLSlider *)buildSliderDynamicFooterWithNumTicks:(NSNumber *)numTicks position:(NSNumber *)position sliderHeader:(NSString *)sliderHeader sliderFooter:(NSArray *)sliderFooter timeout:(NSNumber *)timeout correlationID:(NSNumber *)correlationID { + SDLSlider *msg = [[SDLSlider alloc] init]; + msg.correlationID = correlationID; + msg.numTicks = numTicks; + msg.position = position; + msg.sliderHeader = sliderHeader; + msg.sliderFooter = [sliderFooter mutableCopy]; + msg.timeout = timeout; + + return msg; +} + ++ (SDLSlider *)buildSliderStaticFooterWithNumTicks:(NSNumber *)numTicks position:(NSNumber *)position sliderHeader:(NSString *)sliderHeader sliderFooter:(NSString *)sliderFooter timeout:(NSNumber *)timeout correlationID:(NSNumber *)correlationID { + NSArray *sliderFooters = [NSArray arrayWithObject:sliderFooter]; + + // Populates array with the same footer value for each position + for (UInt32 i = 1; i < numTicks.unsignedIntegerValue; i++) { + sliderFooters = [sliderFooters arrayByAddingObject:sliderFooter]; + } + + return [SDLRPCRequestFactory buildSliderDynamicFooterWithNumTicks:numTicks position:position sliderHeader:sliderHeader sliderFooter:sliderFooters timeout:timeout correlationID:correlationID]; +} +//***** + + +//***** Speak ***** ++ (SDLSpeak *)buildSpeakWithTTSChunks:(NSArray *)ttsChunks correlationID:(NSNumber *)correlationID { + SDLSpeak *msg = [[SDLSpeak alloc] init]; + msg.correlationID = correlationID; + msg.ttsChunks = [ttsChunks mutableCopy]; + + return msg; +} + +//*** ++ (SDLSpeak *)buildSpeakWithTTS:(NSString *)ttsText correlationID:(NSNumber *)correlationID { + SDLTTSChunk *simpleChunk = [[SDLTTSChunk alloc] init]; + simpleChunk.text = ttsText; + simpleChunk.type = SDLSpeechCapabilities.TEXT; + NSArray *ttsChunks = [NSMutableArray arrayWithObject:simpleChunk]; + + return [SDLRPCRequestFactory buildSpeakWithTTSChunks:ttsChunks correlationID:correlationID]; +} +//***** + + ++ (SDLSubscribeButton *)buildSubscribeButtonWithName:(SDLButtonName *)buttonName correlationID:(NSNumber *)correlationID { + SDLSubscribeButton *msg = [[SDLSubscribeButton alloc] init]; + msg.correlationID = correlationID; + msg.buttonName = buttonName; + + return msg; +} + ++ (SDLSubscribeVehicleData *)buildSubscribeVehicleDataWithGPS:(NSNumber *)gps speed:(NSNumber *)speed rpm:(NSNumber *)rpm fuelLevel:(NSNumber *)fuelLevel fuelLevelState:(NSNumber *)fuelLevelState instantFuelConsumption:(NSNumber *)instantFuelConsumption externalTemperature:(NSNumber *)externalTemperature prndl:(NSNumber *)prndl tirePressure:(NSNumber *)tirePressure odometer:(NSNumber *)odometer beltStatus:(NSNumber *)beltStatus bodyInformation:(NSNumber *)bodyInformation deviceStatus:(NSNumber *)deviceStatus driverBraking:(NSNumber *)driverBraking wiperStatus:(NSNumber *)wiperStatus headLampStatus:(NSNumber *)headLampStatus engineTorque:(NSNumber *)engineTorque accPedalPosition:(NSNumber *)accPedalPosition steeringWheelAngle:(NSNumber *)steeringWheelAngle correlationID:(NSNumber *)correlationID { + SDLSubscribeVehicleData *msg = [[SDLSubscribeVehicleData alloc] init]; + msg.gps = gps; + msg.speed = speed; + msg.rpm = rpm; + msg.fuelLevel = fuelLevel; + msg.fuelLevel_State = fuelLevelState; + msg.instantFuelConsumption = instantFuelConsumption; + msg.externalTemperature = externalTemperature; + msg.prndl = prndl; + msg.tirePressure = tirePressure; + msg.odometer = odometer; + msg.beltStatus = beltStatus; + msg.bodyInformation = bodyInformation; + msg.deviceStatus = deviceStatus; + msg.driverBraking = driverBraking; + msg.wiperStatus = wiperStatus; + msg.headLampStatus = headLampStatus; + msg.engineTorque = engineTorque; + msg.accPedalPosition = accPedalPosition; + msg.steeringWheelAngle = steeringWheelAngle; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLUnregisterAppInterface *)buildUnregisterAppInterfaceWithCorrelationID:(NSNumber *)correlationID { + SDLUnregisterAppInterface *msg = [[SDLUnregisterAppInterface alloc] init]; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLUnsubscribeButton *)buildUnsubscribeButtonWithName:(SDLButtonName *)buttonName correlationID:(NSNumber *)correlationID { + SDLUnsubscribeButton *msg = [[SDLUnsubscribeButton alloc] init]; + msg.buttonName = buttonName; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLUnsubscribeVehicleData *)buildUnsubscribeVehicleDataWithGPS:(NSNumber *)gps speed:(NSNumber *)speed rpm:(NSNumber *)rpm fuelLevel:(NSNumber *)fuelLevel fuelLevelState:(NSNumber *)fuelLevelState instantFuelConsumption:(NSNumber *)instantFuelConsumption externalTemperature:(NSNumber *)externalTemperature prndl:(NSNumber *)prndl tirePressure:(NSNumber *)tirePressure odometer:(NSNumber *)odometer beltStatus:(NSNumber *)beltStatus bodyInformation:(NSNumber *)bodyInformation deviceStatus:(NSNumber *)deviceStatus driverBraking:(NSNumber *)driverBraking wiperStatus:(NSNumber *)wiperStatus headLampStatus:(NSNumber *)headLampStatus engineTorque:(NSNumber *)engineTorque accPedalPosition:(NSNumber *)accPedalPosition steeringWheelAngle:(NSNumber *)steeringWheelAngle correlationID:(NSNumber *)correlationID { + SDLUnsubscribeVehicleData *msg = [[SDLUnsubscribeVehicleData alloc] init]; + msg.gps = gps; + msg.speed = speed; + msg.rpm = rpm; + msg.fuelLevel = fuelLevel; + msg.fuelLevel_State = fuelLevelState; + msg.instantFuelConsumption = instantFuelConsumption; + msg.externalTemperature = externalTemperature; + msg.prndl = prndl; + msg.tirePressure = tirePressure; + msg.odometer = odometer; + msg.beltStatus = beltStatus; + msg.bodyInformation = bodyInformation; + msg.deviceStatus = deviceStatus; + msg.driverBraking = driverBraking; + msg.wiperStatus = wiperStatus; + msg.headLampStatus = headLampStatus; + msg.engineTorque = engineTorque; + msg.accPedalPosition = accPedalPosition; + msg.steeringWheelAngle = steeringWheelAngle; + msg.correlationID = correlationID; + + return msg; +} + ++ (SDLUpdateTurnList *)buildUpdateTurnListWithTurnList:(NSMutableArray *)turnList softButtons:(NSMutableArray *)softButtons correlationID:(NSNumber *)correlationID { + SDLUpdateTurnList *msg = [[SDLUpdateTurnList alloc] init]; + msg.turnList = [turnList mutableCopy]; + msg.softButtons = [softButtons mutableCopy]; + msg.correlationID = correlationID; + + return msg; +} + +@end diff --git a/SmartDeviceLink/SDLRPCResponse.h b/SmartDeviceLink/SDLRPCResponse.h new file mode 100644 index 000000000..57bd500f4 --- /dev/null +++ b/SmartDeviceLink/SDLRPCResponse.h @@ -0,0 +1,17 @@ +// SDLRPCResponse.h +// + + +#import "SDLRPCMessage.h" + +@class SDLResult; + +@interface SDLRPCResponse : SDLRPCMessage { +} + +@property (strong) NSNumber *correlationID; +@property (strong) NSNumber *success; +@property (strong) SDLResult *resultCode; +@property (strong) NSString *info; + +@end diff --git a/SmartDeviceLink/SDLRPCResponse.m b/SmartDeviceLink/SDLRPCResponse.m new file mode 100644 index 000000000..606781070 --- /dev/null +++ b/SmartDeviceLink/SDLRPCResponse.m @@ -0,0 +1,89 @@ +// SDLRPCResponse.m +// + + +#import "SDLRPCResponse.h" + +#import "SDLNames.h" +#import "SDLResult.h" + +@implementation SDLRPCResponse + +- (instancetype)initWithName:(NSString *)name { + self = [super initWithName:name]; + if (!self) { + return nil; + } + + messageType = NAMES_response; + [store setObject:function forKey:messageType]; + + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + self = [super initWithDictionary:dict]; + if (!self) { + return nil; + } + + messageType = NAMES_response; + [store setObject:function forKey:messageType]; + + return self; +} + +- (NSNumber *)correlationID { + return [function objectForKey:NAMES_correlationID]; +} + +- (void)setCorrelationID:(NSNumber *)corrID { + if (corrID != nil) { + [function setObject:corrID forKey:NAMES_correlationID]; + } else { + [function removeObjectForKey:NAMES_correlationID]; + } +} + +- (void)setSuccess:(NSNumber *)success { + if (success != nil) { + [parameters setObject:success forKey:NAMES_success]; + } else { + [parameters removeObjectForKey:NAMES_success]; + } +} + +- (NSNumber *)success { + return [parameters objectForKey:NAMES_success]; +} + +- (void)setResultCode:(SDLResult *)resultCode { + if (resultCode != nil) { + [parameters setObject:resultCode forKey:NAMES_resultCode]; + } else { + [parameters removeObjectForKey:NAMES_resultCode]; + } +} + +- (SDLResult *)resultCode { + NSObject *obj = [parameters objectForKey:NAMES_resultCode]; + if (obj == nil || [obj isKindOfClass:SDLResult.class]) { + return (SDLResult *)obj; + } else { + return [SDLResult valueOf:(NSString *)obj]; + } +} + +- (void)setInfo:(NSString *)info { + if (info != nil) { + [parameters setObject:info forKey:NAMES_info]; + } else { + [parameters removeObjectForKey:NAMES_info]; + } +} + +- (NSString *)info { + return [parameters objectForKey:NAMES_info]; +} + +@end diff --git a/SmartDeviceLink/SDLRPCStruct.h b/SmartDeviceLink/SDLRPCStruct.h new file mode 100644 index 000000000..e6b3bcccb --- /dev/null +++ b/SmartDeviceLink/SDLRPCStruct.h @@ -0,0 +1,16 @@ +// +// SDLRPCStruct.h + + +#import + +@interface SDLRPCStruct : NSObject { + NSMutableDictionary *store; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; +- (instancetype)init; + +- (NSMutableDictionary *)serializeAsDictionary:(Byte)version; + +@end diff --git a/SmartDeviceLink/SDLRPCStruct.m b/SmartDeviceLink/SDLRPCStruct.m new file mode 100644 index 000000000..dd96fff5d --- /dev/null +++ b/SmartDeviceLink/SDLRPCStruct.m @@ -0,0 +1,89 @@ +// +// SDLRPCStruct.m + + +#import "SDLRPCStruct.h" + +#import "SDLEnum.h" +#import "SDLNames.h" + + +@implementation SDLRPCStruct + +- (id)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super init]) { + if (dict != nil) { + store = dict; + } else { + store = [[NSMutableDictionary alloc] init]; + } + } + return self; +} + +- (id)init { + if (self = [super init]) { + store = [[NSMutableDictionary alloc] init]; + } + return self; +} + +- (NSMutableDictionary *)serializeDictionary:(NSDictionary *)dict version:(Byte)version { + NSMutableDictionary *ret = [NSMutableDictionary dictionaryWithCapacity:dict.count]; + for (NSString *key in [dict keyEnumerator]) { + NSObject *value = [dict objectForKey:key]; + if ([value isKindOfClass:SDLRPCStruct.class]) { + [ret setObject:[(SDLRPCStruct *)value serializeAsDictionary:version] forKey:key]; + } else if ([value isKindOfClass:NSDictionary.class]) { + [ret setObject:[self serializeDictionary:(NSDictionary *)value version:version] forKey:key]; + } else if ([value isKindOfClass:NSArray.class]) { + NSArray *arrayVal = (NSArray *)value; + + if (arrayVal.count > 0 && ([[arrayVal objectAtIndex:0] isKindOfClass:SDLRPCStruct.class])) { + NSMutableArray *serializedList = [NSMutableArray arrayWithCapacity:arrayVal.count]; + for (SDLRPCStruct *serializeable in arrayVal) { + [serializedList addObject:[serializeable serializeAsDictionary:version]]; + } + [ret setObject:serializedList forKey:key]; + } else if (arrayVal.count > 0 && ([[arrayVal objectAtIndex:0] isKindOfClass:SDLEnum.class])) { + NSMutableArray *serializedList = [NSMutableArray arrayWithCapacity:arrayVal.count]; + for (SDLEnum *anEnum in arrayVal) { + [serializedList addObject:anEnum.value]; + } + [ret setObject:serializedList forKey:key]; + } else { + [ret setObject:value forKey:key]; + } + } else if ([value isKindOfClass:SDLEnum.class]) { + [ret setObject:((SDLEnum *)value).value forKey:key]; + } else { + [ret setObject:value forKey:key]; + } + } + return ret; +} + +- (NSMutableDictionary *)serializeAsDictionary:(Byte)version { + if (version >= 2) { + NSString *messageType = [[store keyEnumerator] nextObject]; + NSMutableDictionary *function = [store objectForKey:messageType]; + if ([function isKindOfClass:NSMutableDictionary.class]) { + NSMutableDictionary *parameters = [function objectForKey:NAMES_parameters]; + return [self serializeDictionary:parameters version:version]; + } else { + return [self serializeDictionary:store version:version]; + } + } else { + return [self serializeDictionary:store version:version]; + } +} + +- (NSString *)description { + return [store description]; +} + +- (void)dealloc { + store = nil; +} + +@end diff --git a/SmartDeviceLink/SDLReadDID.h b/SmartDeviceLink/SDLReadDID.h new file mode 100644 index 000000000..76df4a592 --- /dev/null +++ b/SmartDeviceLink/SDLReadDID.h @@ -0,0 +1,52 @@ +// SDLReadDID.h +// + + +#import "SDLRPCRequest.h" + +/** + * Non periodic vehicle data read request. This is an RPC to get diagnostics + * data from certain vehicle modules. DIDs of a certain module might differ from + * vehicle type to vehicle type + *

    + * Function Group: ProprietaryData + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLReadDID : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLReadDID object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLReadDID object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract An ID of the vehicle module + *
    Notes: Minvalue:0; Maxvalue:65535 + */ +@property (strong) NSNumber *ecuName; + +/** + * @abstract Raw data from vehicle data DID location(s) + *
    a Vector value representing raw data from vehicle + * data DID location(s) + *

    + * Notes: + *

      + *
    • Minvalue:0; Maxvalue:65535
    • + *
    • ArrayMin:0; ArrayMax:1000
    • + *
    + */ +@property (strong) NSMutableArray *didLocation; + +@end diff --git a/SmartDeviceLink/SDLReadDID.m b/SmartDeviceLink/SDLReadDID.m new file mode 100644 index 000000000..198d992e0 --- /dev/null +++ b/SmartDeviceLink/SDLReadDID.m @@ -0,0 +1,47 @@ +// SDLReadDID.m +// + + +#import "SDLReadDID.h" + +#import "SDLNames.h" + +@implementation SDLReadDID + +- (instancetype)init { + if (self = [super initWithName:NAMES_ReadDID]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setEcuName:(NSNumber *)ecuName { + if (ecuName != nil) { + [parameters setObject:ecuName forKey:NAMES_ecuName]; + } else { + [parameters removeObjectForKey:NAMES_ecuName]; + } +} + +- (NSNumber *)ecuName { + return [parameters objectForKey:NAMES_ecuName]; +} + +- (void)setDidLocation:(NSMutableArray *)didLocation { + if (didLocation != nil) { + [parameters setObject:didLocation forKey:NAMES_didLocation]; + } else { + [parameters removeObjectForKey:NAMES_didLocation]; + } +} + +- (NSMutableArray *)didLocation { + return [parameters objectForKey:NAMES_didLocation]; +} + +@end diff --git a/SmartDeviceLink/SDLReadDIDResponse.h b/SmartDeviceLink/SDLReadDIDResponse.h new file mode 100644 index 000000000..da1c81573 --- /dev/null +++ b/SmartDeviceLink/SDLReadDIDResponse.h @@ -0,0 +1,20 @@ +// SDLReadDIDResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Read DID Response is sent, when ReadDID has been called + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLReadDIDResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSMutableArray *didResult; + +@end diff --git a/SmartDeviceLink/SDLReadDIDResponse.m b/SmartDeviceLink/SDLReadDIDResponse.m new file mode 100644 index 000000000..08c5477f6 --- /dev/null +++ b/SmartDeviceLink/SDLReadDIDResponse.m @@ -0,0 +1,45 @@ +// SDLReadDIDResponse.m +// + + +#import "SDLReadDIDResponse.h" + +#import "SDLDIDResult.h" +#import "SDLNames.h" + +@implementation SDLReadDIDResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_ReadDID]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setDidResult:(NSMutableArray *)didResult { + if (didResult != nil) { + [parameters setObject:didResult forKey:NAMES_didResult]; + } else { + [parameters removeObjectForKey:NAMES_didResult]; + } +} + +- (NSMutableArray *)didResult { + NSMutableArray *array = [parameters objectForKey:NAMES_didResult]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLDIDResult.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLDIDResult alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLRegisterAppInterface.h b/SmartDeviceLink/SDLRegisterAppInterface.h new file mode 100644 index 000000000..be9c1a30b --- /dev/null +++ b/SmartDeviceLink/SDLRegisterAppInterface.h @@ -0,0 +1,217 @@ +// SDLRegisterAppInterface.h +// + +#import "SDLRPCRequest.h" + +@class SDLDeviceInfo; +@class SDLLanguage; +@class SDLSyncMsgVersion; + + +/** + * Registers the application's interface with SDL®, declaring properties of + * the registration, including the messaging interface version, the app name, + * etc. The mobile application must establish its interface registration with + * SDL before any other interaction with SDL® can take place. The + * registration lasts until it is terminated either by the application calling + * the SDLUnregisterAppInterface method, or by SDL® + * sending an SDLOnAppInterfaceUnregistered notification, or + * by loss of the underlying transport connection, or closing of the underlying + * message transmission protocol RPC session + *

    + * Until the application receives its first SDLOnHMIStatus + * Notification, its HMI Status is assumed to be: + * SDLHMILevel=NONE, + * SDLAudioStreamingState + * =NOT_AUDIBLE, + * SDLSystemContext=MAIN + *

    + * All SDL® resources which the application creates or uses (e.g. Choice + * Sets, Command Menu, etc.) are associated with the application's interface + * registration. Therefore, when the interface registration ends, the SDL® + * resources associated with the application are disposed of. As a result, even + * though the application itself may continue to run on its host platform (e.g. + * mobile device) after the interface registration terminates, the application + * will not be able to use the SDL® HMI without first establishing a new + * interface registration and re-creating its required SDL® resources. That + * is, SDL® resources created by (or on behalf of) an application do not + * persist beyond the life-span of the interface registration + *

    + * Resources and settings whose lifespan is tied to the duration of an + * application's interface registration:
    + *

      + *
    • Choice Sets
    • + *
    • Command Menus (built by successive calls to SDLAddCommand + * )
    • + *
    • Media clock timer display value
    • + *
    • Media clock timer display value
    • + *
    • Media clock timer display value
    • + *
    + *

    + * The autoActivateID is used to grant an application the HMILevel and + * AudioStreamingState it had when it last disconnected + *

    + * Notes: The autoActivateID parameter, and associated behavior, is + * currently ignored by SDL® + *

    + * When first calling this method (i.e. first time within life cycle of mobile + * app), an autoActivateID should not be included. After successfully + * registering an interface, an autoActivateID is returned to the mobile + * application for it to use in subsequent connections. If the connection + * between SDL® and the mobile application is lost, such as the vehicle is + * turned off while the application is running, the autoActivateID can then be + * passed in another call to RegisterAppInterface to re-acquire + * SDLHMILevel=FULL + *

    + * If the application intends to stream audio it is important to indicate so via + * the isMediaApp parameter. When set to true, audio will reliably stream + * without any configuration required by the user. When not set, audio may + * stream, depending on what the user might have manually configured as a media + * source on SDL® + *

    + * There is no time limit for how long the autoActivateID is "valid" (i.e. would + * confer focus and opt-in) + *

    + * HMILevel is not defined before registering
    + *

    + * + * @since SDL 1.0 + * + * @see SDLUnregisterAppInterface SDLOnAppInterfaceUnregistered + */ +@interface SDLRegisterAppInterface : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLRegisterAppInterface object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLRegisterAppInterface object indicated by the dictionary parameter + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The version of the SDL interface + * + * Required + */ +@property (strong) SDLSyncMsgVersion *syncMsgVersion; + +/** + * @abstract The Mobile Application's Name, This name is displayed in the SDL Mobile Applications menu. It also serves as the unique identifier of the application for SmartDeviceLink + * + * @discussion + *
  • Needs to be unique over all applications.
  • + *
  • May not be empty.
  • + *
  • May not start with a new line character.
  • + *
  • May not interfere with any name or synonym of previously registered applications and any predefined blacklist of words (global commands).
  • + *
  • Needs to be unique over all applications. Applications with the same name will be rejected.
  • + * + * Required, Max length 100 chars + */ +@property (strong) NSString *appName; + +/** + * @abstract TTS string for VR recognition of the mobile application name. + * + * @discussion Meant to overcome any failing on speech engine in properly pronouncing / understanding app name. + *
  • Needs to be unique over all applications.
  • + *
  • May not be empty.
  • + *
  • May not start with a new line character.
  • + * + * Optional, Array of SDLTTSChunk, Array size 1 - 100 + * + * @since SDL 2.0 + * @see SDLTTSChunk + */ +@property (strong) NSMutableArray *ttsName; + +/** + * @abstract A String representing an abbreviated version of the mobile application's name (if necessary) that will be displayed on the media screen + * + * @discussion If not provided, the appName is used instead (and will be truncated if too long) + * + * Optional, Max length 100 chars + */ +@property (strong) NSString *ngnMediaScreenAppName; + +/** + * @abstract Defines a additional voice recognition commands + * + * @discussion May not interfere with any app name of previously registered applications and any predefined blacklist of words (global commands) + * + * Optional, Array of Strings, Array length 1 - 100, Max String length 40 + */ +@property (strong) NSMutableArray *vrSynonyms; + +/** + * @abstract Indicates if the application is a media or a non-media application. + * + * @discussion Only media applications will be able to stream audio to head units that is audible outside of the BT media source. + * + * Required, Boolean + */ +@property (strong) NSNumber *isMediaApplication; + +/** + * @abstract A Language enumeration indicating what language the application intends to use for user interaction (TTS and VR). + * + * @discussion If there is a mismatch with the head unit, the app will be able to change this registration with changeRegistration prior to app being brought into focus. + * + * Required + */ +@property (strong) SDLLanguage *languageDesired; + +/** + * @abstract An enumeration indicating what language the application intends to use for user interaction (Display). + * + * @discussion If there is a mismatch with the head unit, the app will be able to change this registration with changeRegistration prior to app being brought into focus. + * + * Required + * + * @since SDL 2.0 + */ +@property (strong) SDLLanguage *hmiDisplayLanguageDesired; + +/** + * @abstract A list of all applicable app types stating which classifications to be given to the app. + * + * Optional, Array of SDLAppHMIType, Array size 1 - 100 + * + * @since SDL 2.0 + * @see SDLAppHMIType + */ +@property (strong) NSMutableArray *appHMIType; + +/** + * @abstract ID used to uniquely identify current state of all app data that can persist through connection cycles (e.g. ignition cycles). + * + * @discussion This registered data (commands, submenus, choice sets, etc.) can be reestablished without needing to explicitly reregister each piece. If omitted, then the previous state of an app's commands, etc. will not be restored. + * + * When sending hashID, all RegisterAppInterface parameters should still be provided (e.g. ttsName, etc.). + * + * Optional, max length 100 chars + */ +@property (strong) NSString *hashID; + +/** + * @abstract Information about the connecting device + * + * Optional + */ +@property (strong) SDLDeviceInfo *deviceInfo; + +/** + * @abstract ID used to validate app with policy table entries + * + * Required, max length 100 + * + * @since SDL 2.0 + */ +@property (strong) NSString *appID; + +@end diff --git a/SmartDeviceLink/SDLRegisterAppInterface.m b/SmartDeviceLink/SDLRegisterAppInterface.m new file mode 100644 index 000000000..318d5dfa7 --- /dev/null +++ b/SmartDeviceLink/SDLRegisterAppInterface.m @@ -0,0 +1,211 @@ +// SDLRegisterAppInterface.m +// + + +#import "SDLRegisterAppInterface.h" + +#import "SDLAppHMIType.h" +#import "SDLDeviceInfo.h" +#import "SDLLanguage.h" +#import "SDLNames.h" +#import "SDLSyncMsgVersion.h" +#import "SDLTTSChunk.h" + + +@implementation SDLRegisterAppInterface + +- (instancetype)init { + if (self = [super initWithName:NAMES_RegisterAppInterface]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setSyncMsgVersion:(SDLSyncMsgVersion *)syncMsgVersion { + if (syncMsgVersion != nil) { + [parameters setObject:syncMsgVersion forKey:NAMES_syncMsgVersion]; + } else { + [parameters removeObjectForKey:NAMES_syncMsgVersion]; + } +} + +- (SDLSyncMsgVersion *)syncMsgVersion { + NSObject *obj = [parameters objectForKey:NAMES_syncMsgVersion]; + if (obj == nil || [obj isKindOfClass:SDLSyncMsgVersion.class]) { + return (SDLSyncMsgVersion *)obj; + } else { + return [[SDLSyncMsgVersion alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setAppName:(NSString *)appName { + if (appName != nil) { + [parameters setObject:appName forKey:NAMES_appName]; + } else { + [parameters removeObjectForKey:NAMES_appName]; + } +} + +- (NSString *)appName { + return [parameters objectForKey:NAMES_appName]; +} + +- (void)setTtsName:(NSMutableArray *)ttsName { + if (ttsName != nil) { + [parameters setObject:ttsName forKey:NAMES_ttsName]; + } else { + [parameters removeObjectForKey:NAMES_ttsName]; + } +} + +- (NSMutableArray *)ttsName { + NSMutableArray *array = [parameters objectForKey:NAMES_ttsName]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setNgnMediaScreenAppName:(NSString *)ngnMediaScreenAppName { + if (ngnMediaScreenAppName != nil) { + [parameters setObject:ngnMediaScreenAppName forKey:NAMES_ngnMediaScreenAppName]; + } else { + [parameters removeObjectForKey:NAMES_ngnMediaScreenAppName]; + } +} + +- (NSString *)ngnMediaScreenAppName { + return [parameters objectForKey:NAMES_ngnMediaScreenAppName]; +} + +- (void)setVrSynonyms:(NSMutableArray *)vrSynonyms { + if (vrSynonyms != nil) { + [parameters setObject:vrSynonyms forKey:NAMES_vrSynonyms]; + } else { + [parameters removeObjectForKey:NAMES_vrSynonyms]; + } +} + +- (NSMutableArray *)vrSynonyms { + return [parameters objectForKey:NAMES_vrSynonyms]; +} + +- (void)setIsMediaApplication:(NSNumber *)isMediaApplication { + if (isMediaApplication != nil) { + [parameters setObject:isMediaApplication forKey:NAMES_isMediaApplication]; + } else { + [parameters removeObjectForKey:NAMES_isMediaApplication]; + } +} + +- (NSNumber *)isMediaApplication { + return [parameters objectForKey:NAMES_isMediaApplication]; +} + +- (void)setLanguageDesired:(SDLLanguage *)languageDesired { + if (languageDesired != nil) { + [parameters setObject:languageDesired forKey:NAMES_languageDesired]; + } else { + [parameters removeObjectForKey:NAMES_languageDesired]; + } +} + +- (SDLLanguage *)languageDesired { + NSObject *obj = [parameters objectForKey:NAMES_languageDesired]; + if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { + return (SDLLanguage *)obj; + } else { + return [SDLLanguage valueOf:(NSString *)obj]; + } +} + +- (void)setHmiDisplayLanguageDesired:(SDLLanguage *)hmiDisplayLanguageDesired { + if (hmiDisplayLanguageDesired != nil) { + [parameters setObject:hmiDisplayLanguageDesired forKey:NAMES_hmiDisplayLanguageDesired]; + } else { + [parameters removeObjectForKey:NAMES_hmiDisplayLanguageDesired]; + } +} + +- (SDLLanguage *)hmiDisplayLanguageDesired { + NSObject *obj = [parameters objectForKey:NAMES_hmiDisplayLanguageDesired]; + if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { + return (SDLLanguage *)obj; + } else { + return [SDLLanguage valueOf:(NSString *)obj]; + } +} + +- (void)setAppHMIType:(NSMutableArray *)appHMIType { + if (appHMIType != nil) { + [parameters setObject:appHMIType forKey:NAMES_appHMIType]; + } else { + [parameters removeObjectForKey:NAMES_appHMIType]; + } +} + +- (NSMutableArray *)appHMIType { + NSMutableArray *array = [parameters objectForKey:NAMES_appHMIType]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLAppHMIType.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSString *enumString in array) { + [newList addObject:[SDLAppHMIType valueOf:enumString]]; + } + return newList; + } +} + +- (void)setHashID:(NSString *)hashID { + if (hashID != nil) { + [parameters setObject:hashID forKey:NAMES_hashID]; + } else { + [parameters removeObjectForKey:NAMES_hashID]; + } +} + +- (NSString *)hashID { + return [parameters objectForKey:NAMES_hashID]; +} + +- (void)setDeviceInfo:(SDLDeviceInfo *)deviceInfo { + if (deviceInfo != nil) { + [parameters setObject:deviceInfo forKey:NAMES_deviceInfo]; + } else { + [parameters removeObjectForKey:NAMES_deviceInfo]; + } +} + +- (SDLDeviceInfo *)deviceInfo { + NSObject *obj = [parameters objectForKey:NAMES_deviceInfo]; + if (obj == nil || [obj isKindOfClass:SDLDeviceInfo.class]) { + return (SDLDeviceInfo *)obj; + } else { + return [[SDLDeviceInfo alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setAppID:(NSString *)appID { + if (appID != nil) { + [parameters setObject:appID forKey:NAMES_appID]; + } else { + [parameters removeObjectForKey:NAMES_appID]; + } +} + +- (NSString *)appID { + return [parameters objectForKey:NAMES_appID]; +} + +@end diff --git a/SmartDeviceLink/SDLRegisterAppInterfaceResponse.h b/SmartDeviceLink/SDLRegisterAppInterfaceResponse.h new file mode 100644 index 000000000..9bfc0a16a --- /dev/null +++ b/SmartDeviceLink/SDLRegisterAppInterfaceResponse.h @@ -0,0 +1,166 @@ +// SDLRegisterAppInterfaceResponse.h +// + + +#import "SDLRPCResponse.h" + +@class SDLLanguage; +@class SDLDisplayCapabilities; +@class SDLHMICapabilities; +@class SDLPresetBankCapabilities; +@class SDLSyncMsgVersion; +@class SDLVehicleType; + + +/** + * @abstract Register AppInterface Response is sent, when SDLRegisterAppInterface has been called + * + * Since SmartDeviceLink 1.0 + */ +@interface SDLRegisterAppInterfaceResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLRegisterAppInterfaceResponse object + */ +- (instancetype)init; + +/** + * Constructs a new SDLRegisterAppInterfaceResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @see SDLSyncMsgVersion + * + * Optional + */ +@property (strong) SDLSyncMsgVersion *syncMsgVersion; + +/** + * The currently active VR+TTS language on Sync. + * + * @see SDLLanguage + * + * Optional + */ +@property (strong) SDLLanguage *language; + +/** + * The currently active display language on Sync + * + * @see SDLLanguage + * @since SmartDeviceLink 2.0 + * + * Optional + */ +@property (strong) SDLLanguage *hmiDisplayLanguage; + +/** + * @see SDLDisplayCapabilities + * + * Optional + */ +@property (strong) SDLDisplayCapabilities *displayCapabilities; + +/** + * @see SDLButtonCapabilities + * + * Optional, Array of length 1 - 100, of SDLButtonCapabilities + */ +@property (strong) NSMutableArray *buttonCapabilities; + +/** + * If returned, the platform supports on-screen SoftButtons + * + * @see SDLSoftButtonCapabilities + * + * Optional, Array of length 1 - 100, of SDLSoftButtonCapabilities + */ +@property (strong) NSMutableArray *softButtonCapabilities; + +/** + * If returned, the platform supports custom on-screen Presets + * + * @see SDLPresetBankCapabilities + * + * Optional + */ +@property (strong) SDLPresetBankCapabilities *presetBankCapabilities; + +/** + * @see SDLHMIZoneCapabilities + * + * Optional, Array of length 1 - 100, of SDLHMIZoneCapabilities + */ +@property (strong) NSMutableArray *hmiZoneCapabilities; + +/** + * @see SDLSpeechCapabilities + * + * Optional, Array of length 1 - 100, of SDLSpeechCapabilities + */ +@property (strong) NSMutableArray *speechCapabilities; + +/** + * @see SDLPrerecordedSpeech + * + * Optional, Array of length 1 - 100, of SDLPrerecordedSpeech + */ +@property (strong) NSMutableArray *prerecordedSpeech; + +/** + * @see SDLVRCapabilities + * + * Optional, Array of length 1 - 100, of SDLVRCapabilities + */ +@property (strong) NSMutableArray *vrCapabilities; + +/** + * @see SDLAudioPassThruCapabilities + * + * Optional, Array of length 1 - 100, of SDLAudioPassThruCapabilities + */ +@property (strong) NSMutableArray *audioPassThruCapabilities; + +/** + * Specifies the vehicle's type + * + * @see SDLVehicleType + * + * Optional, Array of length 1 - 100, of SDLVehicleType + */ +@property (strong) SDLVehicleType *vehicleType; + +/** + * Specifies the white-list of supported diagnostic modes (0x00-0xFF) capable for DiagnosticMessage requests. If a mode outside this list is requested, it will be rejected. + * + * Optional, Array of length 1 - 100, Integer 0 - 255 + */ +@property (strong) NSMutableArray *supportedDiagModes; + +/** + * @see SDLHMICapabilities + * + * Optional + */ +@property (strong) SDLHMICapabilities *hmiCapabilities; + +/** + * The SmartDeviceLink version + * + * Optional, String max length 100 + */ +@property (strong) NSString *sdlVersion; + +/** + * The software version of the system that implements the SmartDeviceLink core + * + * Optional, String max length 100 + */ +@property (strong) NSString *systemSoftwareVersion; + + +@end diff --git a/SmartDeviceLink/SDLRegisterAppInterfaceResponse.m b/SmartDeviceLink/SDLRegisterAppInterfaceResponse.m new file mode 100644 index 000000000..18356c34f --- /dev/null +++ b/SmartDeviceLink/SDLRegisterAppInterfaceResponse.m @@ -0,0 +1,339 @@ +// SDLRegisterAppInterfaceResponse.m +// + + +#import "SDLRegisterAppInterfaceResponse.h" + +#import "SDLAudioPassThruCapabilities.h" +#import "SDLButtonCapabilities.h" +#import "SDLDisplayCapabilities.h" +#import "SDLHMICapabilities.h" +#import "SDLHMIZoneCapabilities.h" +#import "SDLLanguage.h" +#import "SDLNames.h" +#import "SDLPrerecordedSpeech.h" +#import "SDLPresetBankCapabilities.h" +#import "SDLSoftButtonCapabilities.h" +#import "SDLSpeechCapabilities.h" +#import "SDLSyncMsgVersion.h" +#import "SDLVRCapabilities.h" +#import "SDLVehicleType.h" + + +@implementation SDLRegisterAppInterfaceResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_RegisterAppInterface]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setSyncMsgVersion:(SDLSyncMsgVersion *)syncMsgVersion { + if (syncMsgVersion != nil) { + [parameters setObject:syncMsgVersion forKey:NAMES_syncMsgVersion]; + } else { + [parameters removeObjectForKey:NAMES_syncMsgVersion]; + } +} + +- (SDLSyncMsgVersion *)syncMsgVersion { + NSObject *obj = [parameters objectForKey:NAMES_syncMsgVersion]; + if (obj == nil || [obj isKindOfClass:SDLSyncMsgVersion.class]) { + return (SDLSyncMsgVersion *)obj; + } else { + return [[SDLSyncMsgVersion alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setLanguage:(SDLLanguage *)language { + if (language != nil) { + [parameters setObject:language forKey:NAMES_language]; + } else { + [parameters removeObjectForKey:NAMES_language]; + } +} + +- (SDLLanguage *)language { + NSObject *obj = [parameters objectForKey:NAMES_language]; + if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { + return (SDLLanguage *)obj; + } else { + return [SDLLanguage valueOf:(NSString *)obj]; + } +} + +- (void)setHmiDisplayLanguage:(SDLLanguage *)hmiDisplayLanguage { + if (hmiDisplayLanguage != nil) { + [parameters setObject:hmiDisplayLanguage forKey:NAMES_hmiDisplayLanguage]; + } else { + [parameters removeObjectForKey:NAMES_hmiDisplayLanguage]; + } +} + +- (SDLLanguage *)hmiDisplayLanguage { + NSObject *obj = [parameters objectForKey:NAMES_hmiDisplayLanguage]; + if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) { + return (SDLLanguage *)obj; + } else { + return [SDLLanguage valueOf:(NSString *)obj]; + } +} + +- (void)setDisplayCapabilities:(SDLDisplayCapabilities *)displayCapabilities { + if (displayCapabilities != nil) { + [parameters setObject:displayCapabilities forKey:NAMES_displayCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_displayCapabilities]; + } +} + +- (SDLDisplayCapabilities *)displayCapabilities { + NSObject *obj = [parameters objectForKey:NAMES_displayCapabilities]; + if (obj == nil || [obj isKindOfClass:SDLDisplayCapabilities.class]) { + return (SDLDisplayCapabilities *)obj; + } else { + return [[SDLDisplayCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setButtonCapabilities:(NSMutableArray *)buttonCapabilities { + if (buttonCapabilities != nil) { + [parameters setObject:buttonCapabilities forKey:NAMES_buttonCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_buttonCapabilities]; + } +} + +- (NSMutableArray *)buttonCapabilities { + NSMutableArray *array = [parameters objectForKey:NAMES_buttonCapabilities]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLButtonCapabilities.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLButtonCapabilities alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setSoftButtonCapabilities:(NSMutableArray *)softButtonCapabilities { + if (softButtonCapabilities != nil) { + [parameters setObject:softButtonCapabilities forKey:NAMES_softButtonCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_softButtonCapabilities]; + } +} + +- (NSMutableArray *)softButtonCapabilities { + NSMutableArray *array = [parameters objectForKey:NAMES_softButtonCapabilities]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButtonCapabilities.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLSoftButtonCapabilities alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setPresetBankCapabilities:(SDLPresetBankCapabilities *)presetBankCapabilities { + if (presetBankCapabilities != nil) { + [parameters setObject:presetBankCapabilities forKey:NAMES_presetBankCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_presetBankCapabilities]; + } +} + +- (SDLPresetBankCapabilities *)presetBankCapabilities { + NSObject *obj = [parameters objectForKey:NAMES_presetBankCapabilities]; + if (obj == nil || [obj isKindOfClass:SDLPresetBankCapabilities.class]) { + return (SDLPresetBankCapabilities *)obj; + } else { + return [[SDLPresetBankCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setHmiZoneCapabilities:(NSMutableArray *)hmiZoneCapabilities { + if (hmiZoneCapabilities != nil) { + [parameters setObject:hmiZoneCapabilities forKey:NAMES_hmiZoneCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_hmiZoneCapabilities]; + } +} + +- (NSMutableArray *)hmiZoneCapabilities { + NSMutableArray *array = [parameters objectForKey:NAMES_hmiZoneCapabilities]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLHMIZoneCapabilities.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSString *enumString in array) { + [newList addObject:[SDLHMIZoneCapabilities valueOf:enumString]]; + } + return newList; + } +} + +- (void)setSpeechCapabilities:(NSMutableArray *)speechCapabilities { + if (speechCapabilities != nil) { + [parameters setObject:speechCapabilities forKey:NAMES_speechCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_speechCapabilities]; + } +} + +- (NSMutableArray *)speechCapabilities { + NSMutableArray *array = [parameters objectForKey:NAMES_speechCapabilities]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSpeechCapabilities.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSString *enumString in array) { + [newList addObject:[SDLSpeechCapabilities valueOf:enumString]]; + } + return newList; + } +} + +- (void)setPrerecordedSpeech:(NSMutableArray *)prerecordedSpeech { + if (prerecordedSpeech != nil) { + [parameters setObject:prerecordedSpeech forKey:NAMES_prerecordedSpeech]; + } else { + [parameters removeObjectForKey:NAMES_prerecordedSpeech]; + } +} + +- (NSMutableArray *)prerecordedSpeech { + NSMutableArray *array = [parameters objectForKey:NAMES_prerecordedSpeech]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLPrerecordedSpeech.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSString *enumString in array) { + [newList addObject:[SDLPrerecordedSpeech valueOf:enumString]]; + } + return newList; + } +} + +- (void)setVrCapabilities:(NSMutableArray *)vrCapabilities { + if (vrCapabilities != nil) { + [parameters setObject:vrCapabilities forKey:NAMES_vrCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_vrCapabilities]; + } +} + +- (NSMutableArray *)vrCapabilities { + NSMutableArray *array = [parameters objectForKey:NAMES_vrCapabilities]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLVRCapabilities.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSString *enumString in array) { + [newList addObject:[SDLVRCapabilities valueOf:enumString]]; + } + return newList; + } +} + +- (void)setAudioPassThruCapabilities:(NSMutableArray *)audioPassThruCapabilities { + if (audioPassThruCapabilities != nil) { + [parameters setObject:audioPassThruCapabilities forKey:NAMES_audioPassThruCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_audioPassThruCapabilities]; + } +} + +- (NSMutableArray *)audioPassThruCapabilities { + NSMutableArray *array = [parameters objectForKey:NAMES_audioPassThruCapabilities]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLAudioPassThruCapabilities.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLAudioPassThruCapabilities alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setVehicleType:(SDLVehicleType *)vehicleType { + if (vehicleType != nil) { + [parameters setObject:vehicleType forKey:NAMES_vehicleType]; + } else { + [parameters removeObjectForKey:NAMES_vehicleType]; + } +} + +- (SDLVehicleType *)vehicleType { + NSObject *obj = [parameters objectForKey:NAMES_vehicleType]; + if (obj == nil || [obj isKindOfClass:SDLVehicleType.class]) { + return (SDLVehicleType *)obj; + } else { + return [[SDLVehicleType alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setSupportedDiagModes:(NSMutableArray *)supportedDiagModes { + if (supportedDiagModes != nil) { + [parameters setObject:supportedDiagModes forKey:NAMES_supportedDiagModes]; + } else { + [parameters removeObjectForKey:NAMES_supportedDiagModes]; + } +} + +- (NSMutableArray *)supportedDiagModes { + return [parameters objectForKey:NAMES_supportedDiagModes]; +} + +- (void)setHmiCapabilities:(SDLHMICapabilities *)hmiCapabilities { + if (hmiCapabilities != nil) { + [parameters setObject:hmiCapabilities forKey:NAMES_hmiCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_hmiCapabilities]; + } +} + +- (SDLHMICapabilities *)hmiCapabilities { + NSObject *obj = [parameters objectForKey:NAMES_hmiCapabilities]; + if (obj == nil || [obj isKindOfClass:[SDLHMICapabilities class]]) { + return (SDLHMICapabilities *)obj; + } else { + return [[SDLHMICapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setSdlVersion:(NSString *)sdlVersion { + if (sdlVersion != nil) { + parameters[NAMES_sdlVersion] = sdlVersion; + } else { + [parameters removeObjectForKey:NAMES_sdlVersion]; + } +} + +- (NSString *)sdlVersion { + return parameters[NAMES_sdlVersion]; +} + +- (void)setSystemSoftwareVersion:(NSString *)systemSoftwareVersion { + if (systemSoftwareVersion != nil) { + parameters[NAMES_systemSoftwareVersion] = systemSoftwareVersion; + } else { + [parameters removeObjectForKey:NAMES_systemSoftwareVersion]; + } +} + +- (NSString *)systemSoftwareVersion { + return parameters[NAMES_systemSoftwareVersion]; +} + +@end diff --git a/SmartDeviceLink/SDLRequestType.h b/SmartDeviceLink/SDLRequestType.h new file mode 100644 index 000000000..a8d631234 --- /dev/null +++ b/SmartDeviceLink/SDLRequestType.h @@ -0,0 +1,34 @@ +// SDLRequestType.h +// + + +#import "SDLEnum.h" + +@interface SDLRequestType : SDLEnum { +} + ++ (SDLRequestType *)valueOf:(NSString *)value; ++ (NSArray *)values; + ++ (SDLRequestType *)HTTP; ++ (SDLRequestType *)FILE_RESUME; ++ (SDLRequestType *)AUTH_REQUEST; ++ (SDLRequestType *)AUTH_CHALLENGE; ++ (SDLRequestType *)AUTH_ACK; ++ (SDLRequestType *)PROPRIETARY; ++ (SDLRequestType *)QUERY_APPS; ++ (SDLRequestType *)LAUNCH_APP; ++ (SDLRequestType *)LOCK_SCREEN_ICON_URL; ++ (SDLRequestType *)TRAFFIC_MESSAGE_CHANNEL; ++ (SDLRequestType *)DRIVER_PROFILE; ++ (SDLRequestType *)VOICE_SEARCH; ++ (SDLRequestType *)NAVIGATION; ++ (SDLRequestType *)PHONE; ++ (SDLRequestType *)CLIMATE; ++ (SDLRequestType *)SETTINGS; ++ (SDLRequestType *)VEHICLE_DIAGNOSTICS; ++ (SDLRequestType *)EMERGENCY; ++ (SDLRequestType *)MEDIA; ++ (SDLRequestType *)FOTA; + +@end diff --git a/SmartDeviceLink/SDLRequestType.m b/SmartDeviceLink/SDLRequestType.m new file mode 100644 index 000000000..7332b9843 --- /dev/null +++ b/SmartDeviceLink/SDLRequestType.m @@ -0,0 +1,210 @@ +// SDLRequestType.m +// + + +#import "SDLRequestType.h" + +SDLRequestType *SDLRequestType_HTTP = nil; +SDLRequestType *SDLRequestType_FILE_RESUME = nil; +SDLRequestType *SDLRequestType_AUTH_REQUEST = nil; +SDLRequestType *SDLRequestType_AUTH_CHALLENGE = nil; +SDLRequestType *SDLRequestType_AUTH_ACK = nil; +SDLRequestType *SDLRequestType_PROPRIETARY = nil; +SDLRequestType *SDLRequestType_QUERY_APPS = nil; +SDLRequestType *SDLRequestType_LAUNCH_APP = nil; +SDLRequestType *SDLRequestType_LOCK_SCREEN_ICON_URL = nil; +SDLRequestType *SDLRequestType_TRAFFIC_MESSAGE_CHANNEL = nil; +SDLRequestType *SDLRequestType_DRIVER_PROFILE = nil; +SDLRequestType *SDLRequestType_VOICE_SEARCH = nil; +SDLRequestType *SDLRequestType_NAVIGATION = nil; +SDLRequestType *SDLRequestType_PHONE = nil; +SDLRequestType *SDLRequestType_CLIMATE = nil; +SDLRequestType *SDLRequestType_SETTINGS = nil; +SDLRequestType *SDLRequestType_VEHICLE_DIAGNOSTICS = nil; +SDLRequestType *SDLRequestType_EMERGENCY = nil; +SDLRequestType *SDLRequestType_MEDIA = nil; +SDLRequestType *SDLRequestType_FOTA = nil; + +NSArray *SDLRequestType_values = nil; + + +@implementation SDLRequestType + ++ (SDLRequestType *)valueOf:(NSString *)value { + for (SDLRequestType *item in SDLRequestType.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLRequestType_values == nil) { + SDLRequestType_values = @[ + [SDLRequestType HTTP], + [SDLRequestType FILE_RESUME], + [SDLRequestType AUTH_REQUEST], + [SDLRequestType AUTH_CHALLENGE], + [SDLRequestType AUTH_ACK], + [SDLRequestType PROPRIETARY], + [SDLRequestType QUERY_APPS], + [SDLRequestType LAUNCH_APP], + [SDLRequestType LOCK_SCREEN_ICON_URL], + [SDLRequestType TRAFFIC_MESSAGE_CHANNEL], + [SDLRequestType DRIVER_PROFILE], + [SDLRequestType VOICE_SEARCH], + [SDLRequestType NAVIGATION], + [SDLRequestType PHONE], + [SDLRequestType CLIMATE], + [SDLRequestType SETTINGS], + [SDLRequestType VEHICLE_DIAGNOSTICS], + [SDLRequestType EMERGENCY], + [SDLRequestType MEDIA], + [SDLRequestType FOTA], + ]; + } + return SDLRequestType_values; +} + ++ (SDLRequestType *)HTTP { + if (SDLRequestType_HTTP == nil) { + SDLRequestType_HTTP = [[SDLRequestType alloc] initWithValue:@"HTTP"]; + } + return SDLRequestType_HTTP; +} + ++ (SDLRequestType *)FILE_RESUME { + if (SDLRequestType_FILE_RESUME == nil) { + SDLRequestType_FILE_RESUME = [[SDLRequestType alloc] initWithValue:@"FILE_RESUME"]; + } + return SDLRequestType_FILE_RESUME; +} + ++ (SDLRequestType *)AUTH_REQUEST { + if (SDLRequestType_AUTH_REQUEST == nil) { + SDLRequestType_AUTH_REQUEST = [[SDLRequestType alloc] initWithValue:@"AUTH_REQUEST"]; + } + return SDLRequestType_AUTH_REQUEST; +} + ++ (SDLRequestType *)AUTH_CHALLENGE { + if (SDLRequestType_AUTH_CHALLENGE == nil) { + SDLRequestType_AUTH_CHALLENGE = [[SDLRequestType alloc] initWithValue:@"AUTH_CHALLENGE"]; + } + return SDLRequestType_AUTH_CHALLENGE; +} + ++ (SDLRequestType *)AUTH_ACK { + if (SDLRequestType_AUTH_ACK == nil) { + SDLRequestType_AUTH_ACK = [[SDLRequestType alloc] initWithValue:@"AUTH_ACK"]; + } + return SDLRequestType_AUTH_ACK; +} + ++ (SDLRequestType *)PROPRIETARY { + if (SDLRequestType_PROPRIETARY == nil) { + SDLRequestType_PROPRIETARY = [[SDLRequestType alloc] initWithValue:@"PROPRIETARY"]; + } + return SDLRequestType_PROPRIETARY; +} + ++ (SDLRequestType *)QUERY_APPS { + if (SDLRequestType_QUERY_APPS == nil) { + SDLRequestType_QUERY_APPS = [[SDLRequestType alloc] initWithValue:@"QUERY_APPS"]; + } + return SDLRequestType_QUERY_APPS; +} + ++ (SDLRequestType *)LAUNCH_APP { + if (SDLRequestType_LAUNCH_APP == nil) { + SDLRequestType_LAUNCH_APP = [[SDLRequestType alloc] initWithValue:@"LAUNCH_APP"]; + } + return SDLRequestType_LAUNCH_APP; +} + ++ (SDLRequestType *)LOCK_SCREEN_ICON_URL { + if (SDLRequestType_LOCK_SCREEN_ICON_URL == nil) { + SDLRequestType_LOCK_SCREEN_ICON_URL = [[SDLRequestType alloc] initWithValue:@"LOCK_SCREEN_ICON_URL"]; + } + return SDLRequestType_LOCK_SCREEN_ICON_URL; +} + ++ (SDLRequestType *)TRAFFIC_MESSAGE_CHANNEL { + if (SDLRequestType_TRAFFIC_MESSAGE_CHANNEL == nil) { + SDLRequestType_TRAFFIC_MESSAGE_CHANNEL = [[SDLRequestType alloc] initWithValue:@"TRAFFIC_MESSAGE_CHANNEL"]; + } + return SDLRequestType_TRAFFIC_MESSAGE_CHANNEL; +} + ++ (SDLRequestType *)DRIVER_PROFILE { + if (SDLRequestType_DRIVER_PROFILE == nil) { + SDLRequestType_DRIVER_PROFILE = [[SDLRequestType alloc] initWithValue:@"DRIVER_PROFILE"]; + } + return SDLRequestType_DRIVER_PROFILE; +} + ++ (SDLRequestType *)VOICE_SEARCH { + if (SDLRequestType_VOICE_SEARCH == nil) { + SDLRequestType_VOICE_SEARCH = [[SDLRequestType alloc] initWithValue:@"VOICE_SEARCH"]; + } + return SDLRequestType_VOICE_SEARCH; +} + ++ (SDLRequestType *)NAVIGATION { + if (SDLRequestType_NAVIGATION == nil) { + SDLRequestType_NAVIGATION = [[SDLRequestType alloc] initWithValue:@"NAVIGATION"]; + } + return SDLRequestType_NAVIGATION; +} + ++ (SDLRequestType *)PHONE { + if (SDLRequestType_PHONE == nil) { + SDLRequestType_PHONE = [[SDLRequestType alloc] initWithValue:@"PHONE"]; + } + return SDLRequestType_PHONE; +} + ++ (SDLRequestType *)CLIMATE { + if (SDLRequestType_CLIMATE == nil) { + SDLRequestType_CLIMATE = [[SDLRequestType alloc] initWithValue:@"CLIMATE"]; + } + return SDLRequestType_CLIMATE; +} + ++ (SDLRequestType *)SETTINGS { + if (SDLRequestType_SETTINGS == nil) { + SDLRequestType_SETTINGS = [[SDLRequestType alloc] initWithValue:@"SETTINGS"]; + } + return SDLRequestType_SETTINGS; +} + ++ (SDLRequestType *)VEHICLE_DIAGNOSTICS { + if (SDLRequestType_VEHICLE_DIAGNOSTICS == nil) { + SDLRequestType_VEHICLE_DIAGNOSTICS = [[SDLRequestType alloc] initWithValue:@"VEHICLE_DIAGNOSTICS"]; + } + return SDLRequestType_VEHICLE_DIAGNOSTICS; +} + ++ (SDLRequestType *)EMERGENCY { + if (SDLRequestType_EMERGENCY == nil) { + SDLRequestType_EMERGENCY = [[SDLRequestType alloc] initWithValue:@"EMERGENCY"]; + } + return SDLRequestType_EMERGENCY; +} + ++ (SDLRequestType *)MEDIA { + if (SDLRequestType_MEDIA == nil) { + SDLRequestType_MEDIA = [[SDLRequestType alloc] initWithValue:@"MEDIA"]; + } + return SDLRequestType_MEDIA; +} + ++ (SDLRequestType *)FOTA { + if (SDLRequestType_FOTA == nil) { + SDLRequestType_FOTA = [[SDLRequestType alloc] initWithValue:@"FOTA"]; + } + return SDLRequestType_FOTA; +} + +@end diff --git a/SmartDeviceLink/SDLResetGlobalProperties.h b/SmartDeviceLink/SDLResetGlobalProperties.h new file mode 100644 index 000000000..f30b59a41 --- /dev/null +++ b/SmartDeviceLink/SDLResetGlobalProperties.h @@ -0,0 +1,43 @@ +// SDLResetGlobalProperties.h +// + + +#import "SDLRPCRequest.h" + +/** + * Resets the passed global properties to their default values as defined by + * SDL + *

    + * The HELPPROMPT global property default value is generated by SDL consists of + * the first vrCommand of each Command Menu item defined at the moment PTT is + * pressed
    + * The TIMEOUTPROMPT global property default value is the same as the HELPPROMPT + * global property default value + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + * + * Since SmartDeviceLink 1.0 + * See SetGlobalProperties + */ +@interface SDLResetGlobalProperties : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLResetGlobalProperties object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLResetGlobalProperties object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract An array of one or more GlobalProperty enumeration elements + * indicating which global properties to reset to their default value + */ +@property (strong) NSMutableArray *properties; + +@end diff --git a/SmartDeviceLink/SDLResetGlobalProperties.m b/SmartDeviceLink/SDLResetGlobalProperties.m new file mode 100644 index 000000000..350f96de0 --- /dev/null +++ b/SmartDeviceLink/SDLResetGlobalProperties.m @@ -0,0 +1,45 @@ +// SDLResetGlobalProperties.m +// + + +#import "SDLResetGlobalProperties.h" + +#import "SDLGlobalProperty.h" +#import "SDLNames.h" + +@implementation SDLResetGlobalProperties + +- (instancetype)init { + if (self = [super initWithName:NAMES_ResetGlobalProperties]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setProperties:(NSMutableArray *)properties { + if (properties != nil) { + [parameters setObject:properties forKey:NAMES_properties]; + } else { + [parameters removeObjectForKey:NAMES_properties]; + } +} + +- (NSMutableArray *)properties { + NSMutableArray *array = [parameters objectForKey:NAMES_properties]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLGlobalProperty.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSString *enumString in array) { + [newList addObject:[SDLGlobalProperty valueOf:enumString]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLResetGlobalPropertiesResponse.h b/SmartDeviceLink/SDLResetGlobalPropertiesResponse.h new file mode 100644 index 000000000..5e576445a --- /dev/null +++ b/SmartDeviceLink/SDLResetGlobalPropertiesResponse.h @@ -0,0 +1,26 @@ +// SDLResetGlobalPropertiesResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Reset Global Properties Response is sent, when SDLResetGlobalProperties has been called + * + * Since SmartDeviceLink 1.0 + */ +@interface SDLResetGlobalPropertiesResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLResetGlobalPropertiesResponse object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLResetGlobalPropertiesResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLResetGlobalPropertiesResponse.m b/SmartDeviceLink/SDLResetGlobalPropertiesResponse.m new file mode 100644 index 000000000..e43b61a40 --- /dev/null +++ b/SmartDeviceLink/SDLResetGlobalPropertiesResponse.m @@ -0,0 +1,23 @@ +// SDLResetGlobalPropertiesResponse.m +// + + +#import "SDLResetGlobalPropertiesResponse.h" + +#import "SDLNames.h" + +@implementation SDLResetGlobalPropertiesResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_ResetGlobalProperties]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLResult.h b/SmartDeviceLink/SDLResult.h new file mode 100644 index 000000000..f11404c5a --- /dev/null +++ b/SmartDeviceLink/SDLResult.h @@ -0,0 +1,204 @@ +// SDLResult.h +// + + +#import "SDLEnum.h" + +/** + * Defines the possible result codes returned by SDL to the application in a response to a requested operation + * + * @since SDL 1.0 + */ +@interface SDLResult : SDLEnum { +} + +/** + * @abstract get SDLResult according value string + * @param value The value of the string to get an object for + * @return SDLResult object + */ ++ (SDLResult *)valueOf:(NSString *)value; + +/** + @abstract declare an array to store all possible SDLResult values + @return the array + */ ++ (NSArray *)values; + +/** + * @abstract The request succeeded + */ ++ (SDLResult *)SUCCESS; + +/** + * @abstract Result code : Invalid Data + * + * @discussion The data sent is invalid. For example: + *
  • Invalid Json syntax
  • + *
  • Parameters out of bounds (number or enum range)
  • + *
  • Mandatory parameters not provided
  • + *
  • Parameter provided with wrong type
  • + *
  • Invalid characters
  • + *
  • Empty string
  • + */ ++ (SDLResult *)INVALID_DATA; + ++ (SDLResult *)CHAR_LIMIT_EXCEEDED; + +/** + * @abstract The request is not supported by SDL + */ ++ (SDLResult *)UNSUPPORTED_REQUEST; + +/** + * @abstract The system could not process the request because the necessary memory couldn't be allocated + */ ++ (SDLResult *)OUT_OF_MEMORY; + +/** + * @abstract There are too many requests pending (means that the response has not been delivered yet). + * + * @discussion There is a limit of 1000 pending requests at a time. + */ ++ (SDLResult *)TOO_MANY_PENDING_REQUESTS; + +/** + * @abstract One of the provided IDs is not valid. + * @discussion For example: + *
  • CorrelationID
  • + *
  • CommandID
  • + *
  • MenuID
  • + */ ++ (SDLResult *)INVALID_ID; + +/** + * @abstract The provided name or synonym is a duplicate of some already-defined name or synonym. + */ ++ (SDLResult *)DUPLICATE_NAME; + +/** + * There are already too many registered applications. + */ ++ (SDLResult *)TOO_MANY_APPLICATIONS; + +/** + * RegisterApplication has been called again, after a RegisterApplication was successful before. + */ ++ (SDLResult *)APPLICATION_REGISTERED_ALREADY; + +/** + * The Head Unit doesn't support the protocol that is requested by the mobile application. + */ ++ (SDLResult *)UNSUPPORTED_VERSION; + +/** + * The requested language is currently not supported. Might be because of a mismatch of the currently active language on the head unit and the requested language. + */ ++ (SDLResult *)WRONG_LANGUAGE; + +/** + * A command can not be executed because no application has been registered with RegisterApplication. + */ ++ (SDLResult *)APPLICATION_NOT_REGISTERED; + +/** + * The data may not be changed, because it is currently in use. For example when trying to delete a command set that is currently involved in an interaction. + */ ++ (SDLResult *)IN_USE; + +/** + * The user has turned off access to vehicle data, and it is globally unavailable to mobile applications. + */ ++ (SDLResult *)VEHICLE_DATA_NOT_ALLOWED; + +/** + * The requested vehicle data is not available on this vehicle or is not published. + */ ++ (SDLResult *)VEHICLE_DATA_NOT_AVAILABLE; + +/** + * The requested command was rejected, e.g. because mobile app is in background and cannot perform any HMI commands. Or an HMI command (e.g. Speak) is rejected because a higher priority HMI command (e.g. Alert) is playing. + */ ++ (SDLResult *)REJECTED; + +/** + * A command was aborted, for example due to user interaction (e.g. user pressed button). Or an HMI command (e.g. Speak) is aborted because a higher priority HMI command (e.g. Alert) was requested. + */ ++ (SDLResult *)ABORTED; + +/** + * A command was ignored, because the intended result is already in effect. For example, SetMediaClockTimer was used to pause the media clock although the clock is paused already. + */ ++ (SDLResult *)IGNORED; + +/** + * A button that was requested for subscription is not supported under the current system. + */ ++ (SDLResult *)UNSUPPORTED_RESOURCE; + +/** + * A specified file could not be found on the head unit. + */ ++ (SDLResult *)FILE_NOT_FOUND; + +/** + * Provided data is valid but something went wrong in the lower layers. + */ ++ (SDLResult *)GENERIC_ERROR; + +/** + * RPC is not authorized in local policy table. + */ ++ (SDLResult *)DISALLOWED; + +/** + * RPC is included in a functional group explicitly blocked by the user. + */ ++ (SDLResult *)USER_DISALLOWED; + +/** + * Overlay reached the maximum timeout and closed. + */ ++ (SDLResult *)TIMED_OUT; + +/** + * User selected to Cancel Route. + */ ++ (SDLResult *)CANCEL_ROUTE; + +/** + * The RPC (e.g. ReadDID) executed successfully but the data exceeded the platform maximum threshold and thus, only part of the data is available. + */ ++ (SDLResult *)TRUNCATED_DATA; + +/** + * The user interrupted the RPC (e.g. PerformAudioPassThru) and indicated to start over. Note, the app must issue the new RPC. + */ ++ (SDLResult *)RETRY; + +/** + * The RPC (e.g. SubscribeVehicleData) executed successfully but one or more items have a warning or failure. + */ ++ (SDLResult *)WARNINGS; + +/** + * The RPC (e.g. Slider) executed successfully and the user elected to save the current position / value. + */ ++ (SDLResult *)SAVED; + +/** + * The certificate provided during authentication is invalid. + */ ++ (SDLResult *)INVALID_CERT; + +/** + * The certificate provided during authentication is expired. + */ ++ (SDLResult *)EXPIRED_CERT; + +/** + * The provided hash ID does not match the hash of the current set of registered data or the core could not resume the previous data. + */ ++ (SDLResult *)RESUME_FAILED; + +@end diff --git a/SmartDeviceLink/SDLResult.m b/SmartDeviceLink/SDLResult.m new file mode 100644 index 000000000..1ef2806c3 --- /dev/null +++ b/SmartDeviceLink/SDLResult.m @@ -0,0 +1,327 @@ +// SDLResult.m +// + + +#import "SDLResult.h" + +SDLResult *SDLResult_SUCCESS = nil; +SDLResult *SDLResult_INVALID_DATA = nil; +SDLResult *SDLResult_CHAR_LIMIT_EXCEEDED = nil; +SDLResult *SDLResult_UNSUPPORTED_REQUEST = nil; +SDLResult *SDLResult_OUT_OF_MEMORY = nil; +SDLResult *SDLResult_TOO_MANY_PENDING_REQUESTS = nil; +SDLResult *SDLResult_INVALID_ID = nil; +SDLResult *SDLResult_DUPLICATE_NAME = nil; +SDLResult *SDLResult_TOO_MANY_APPLICATIONS = nil; +SDLResult *SDLResult_APPLICATION_REGISTERED_ALREADY = nil; +SDLResult *SDLResult_UNSUPPORTED_VERSION = nil; +SDLResult *SDLResult_WRONG_LANGUAGE = nil; +SDLResult *SDLResult_APPLICATION_NOT_REGISTERED = nil; +SDLResult *SDLResult_IN_USE = nil; +SDLResult *SDLResult_VEHICLE_DATA_NOT_ALLOWED = nil; +SDLResult *SDLResult_VEHICLE_DATA_NOT_AVAILABLE = nil; +SDLResult *SDLResult_REJECTED = nil; +SDLResult *SDLResult_ABORTED = nil; +SDLResult *SDLResult_IGNORED = nil; +SDLResult *SDLResult_UNSUPPORTED_RESOURCE = nil; +SDLResult *SDLResult_FILE_NOT_FOUND = nil; +SDLResult *SDLResult_GENERIC_ERROR = nil; +SDLResult *SDLResult_DISALLOWED = nil; +SDLResult *SDLResult_USER_DISALLOWED = nil; +SDLResult *SDLResult_TIMED_OUT = nil; +SDLResult *SDLResult_CANCEL_ROUTE = nil; +SDLResult *SDLResult_TRUNCATED_DATA = nil; +SDLResult *SDLResult_RETRY = nil; +SDLResult *SDLResult_WARNINGS = nil; +SDLResult *SDLResult_SAVED = nil; +SDLResult *SDLResult_INVALID_CERT = nil; +SDLResult *SDLResult_EXPIRED_CERT = nil; +SDLResult *SDLResult_RESUME_FAILED = nil; + +NSArray *SDLResult_values = nil; + +@implementation SDLResult + ++ (SDLResult *)valueOf:(NSString *)value { + for (SDLResult *item in SDLResult.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLResult_values == nil) { + SDLResult_values = @[ + [SDLResult SUCCESS], + [SDLResult INVALID_DATA], + [SDLResult CHAR_LIMIT_EXCEEDED], + [SDLResult UNSUPPORTED_REQUEST], + [SDLResult OUT_OF_MEMORY], + [SDLResult TOO_MANY_PENDING_REQUESTS], + [SDLResult INVALID_ID], + [SDLResult DUPLICATE_NAME], + [SDLResult TOO_MANY_APPLICATIONS], + [SDLResult APPLICATION_REGISTERED_ALREADY], + [SDLResult UNSUPPORTED_VERSION], + [SDLResult WRONG_LANGUAGE], + [SDLResult APPLICATION_NOT_REGISTERED], + [SDLResult IN_USE], + [SDLResult VEHICLE_DATA_NOT_ALLOWED], + [SDLResult VEHICLE_DATA_NOT_AVAILABLE], + [SDLResult REJECTED], + [SDLResult ABORTED], + [SDLResult IGNORED], + [SDLResult UNSUPPORTED_RESOURCE], + [SDLResult FILE_NOT_FOUND], + [SDLResult GENERIC_ERROR], + [SDLResult DISALLOWED], + [SDLResult USER_DISALLOWED], + [SDLResult TIMED_OUT], + [SDLResult CANCEL_ROUTE], + [SDLResult TRUNCATED_DATA], + [SDLResult RETRY], + [SDLResult WARNINGS], + [SDLResult SAVED], + [SDLResult INVALID_CERT], + [SDLResult EXPIRED_CERT], + [SDLResult RESUME_FAILED], + ]; + } + return SDLResult_values; +} + ++ (SDLResult *)SUCCESS { + if (SDLResult_SUCCESS == nil) { + SDLResult_SUCCESS = [[SDLResult alloc] initWithValue:@"SUCCESS"]; + } + return SDLResult_SUCCESS; +} + ++ (SDLResult *)INVALID_DATA { + if (SDLResult_INVALID_DATA == nil) { + SDLResult_INVALID_DATA = [[SDLResult alloc] initWithValue:@"INVALID_DATA"]; + } + return SDLResult_INVALID_DATA; +} + ++ (SDLResult *)CHAR_LIMIT_EXCEEDED { + if (SDLResult_CHAR_LIMIT_EXCEEDED == nil) { + SDLResult_CHAR_LIMIT_EXCEEDED = [[SDLResult alloc] initWithValue:@"CHAR_LIMIT_EXCEEDED"]; + } + + return SDLResult_CHAR_LIMIT_EXCEEDED; +} + ++ (SDLResult *)UNSUPPORTED_REQUEST { + if (SDLResult_UNSUPPORTED_REQUEST == nil) { + SDLResult_UNSUPPORTED_REQUEST = [[SDLResult alloc] initWithValue:@"UNSUPPORTED_REQUEST"]; + } + return SDLResult_UNSUPPORTED_REQUEST; +} + ++ (SDLResult *)OUT_OF_MEMORY { + if (SDLResult_OUT_OF_MEMORY == nil) { + SDLResult_OUT_OF_MEMORY = [[SDLResult alloc] initWithValue:@"OUT_OF_MEMORY"]; + } + return SDLResult_OUT_OF_MEMORY; +} + ++ (SDLResult *)TOO_MANY_PENDING_REQUESTS { + if (SDLResult_TOO_MANY_PENDING_REQUESTS == nil) { + SDLResult_TOO_MANY_PENDING_REQUESTS = [[SDLResult alloc] initWithValue:@"TOO_MANY_PENDING_REQUESTS"]; + } + return SDLResult_TOO_MANY_PENDING_REQUESTS; +} + ++ (SDLResult *)INVALID_ID { + if (SDLResult_INVALID_ID == nil) { + SDLResult_INVALID_ID = [[SDLResult alloc] initWithValue:@"INVALID_ID"]; + } + return SDLResult_INVALID_ID; +} + ++ (SDLResult *)DUPLICATE_NAME { + if (SDLResult_DUPLICATE_NAME == nil) { + SDLResult_DUPLICATE_NAME = [[SDLResult alloc] initWithValue:@"DUPLICATE_NAME"]; + } + return SDLResult_DUPLICATE_NAME; +} + ++ (SDLResult *)TOO_MANY_APPLICATIONS { + if (SDLResult_TOO_MANY_APPLICATIONS == nil) { + SDLResult_TOO_MANY_APPLICATIONS = [[SDLResult alloc] initWithValue:@"TOO_MANY_APPLICATIONS"]; + } + return SDLResult_TOO_MANY_APPLICATIONS; +} + ++ (SDLResult *)APPLICATION_REGISTERED_ALREADY { + if (SDLResult_APPLICATION_REGISTERED_ALREADY == nil) { + SDLResult_APPLICATION_REGISTERED_ALREADY = [[SDLResult alloc] initWithValue:@"APPLICATION_REGISTERED_ALREADY"]; + } + return SDLResult_APPLICATION_REGISTERED_ALREADY; +} + ++ (SDLResult *)UNSUPPORTED_VERSION { + if (SDLResult_UNSUPPORTED_VERSION == nil) { + SDLResult_UNSUPPORTED_VERSION = [[SDLResult alloc] initWithValue:@"UNSUPPORTED_VERSION"]; + } + return SDLResult_UNSUPPORTED_VERSION; +} + ++ (SDLResult *)WRONG_LANGUAGE { + if (SDLResult_WRONG_LANGUAGE == nil) { + SDLResult_WRONG_LANGUAGE = [[SDLResult alloc] initWithValue:@"WRONG_LANGUAGE"]; + } + return SDLResult_WRONG_LANGUAGE; +} + ++ (SDLResult *)APPLICATION_NOT_REGISTERED { + if (SDLResult_APPLICATION_NOT_REGISTERED == nil) { + SDLResult_APPLICATION_NOT_REGISTERED = [[SDLResult alloc] initWithValue:@"APPLICATION_NOT_REGISTERED"]; + } + return SDLResult_APPLICATION_NOT_REGISTERED; +} + ++ (SDLResult *)IN_USE { + if (SDLResult_IN_USE == nil) { + SDLResult_IN_USE = [[SDLResult alloc] initWithValue:@"IN_USE"]; + } + return SDLResult_IN_USE; +} + ++ (SDLResult *)VEHICLE_DATA_NOT_ALLOWED { + if (SDLResult_VEHICLE_DATA_NOT_ALLOWED == nil) { + SDLResult_VEHICLE_DATA_NOT_ALLOWED = [[SDLResult alloc] initWithValue:@"VEHICLE_DATA_NOT_ALLOWED"]; + } + return SDLResult_VEHICLE_DATA_NOT_ALLOWED; +} + ++ (SDLResult *)VEHICLE_DATA_NOT_AVAILABLE { + if (SDLResult_VEHICLE_DATA_NOT_AVAILABLE == nil) { + SDLResult_VEHICLE_DATA_NOT_AVAILABLE = [[SDLResult alloc] initWithValue:@"VEHICLE_DATA_NOT_AVAILABLE"]; + } + return SDLResult_VEHICLE_DATA_NOT_AVAILABLE; +} + ++ (SDLResult *)REJECTED { + if (SDLResult_REJECTED == nil) { + SDLResult_REJECTED = [[SDLResult alloc] initWithValue:@"REJECTED"]; + } + return SDLResult_REJECTED; +} + ++ (SDLResult *)ABORTED { + if (SDLResult_ABORTED == nil) { + SDLResult_ABORTED = [[SDLResult alloc] initWithValue:@"ABORTED"]; + } + return SDLResult_ABORTED; +} + ++ (SDLResult *)IGNORED { + if (SDLResult_IGNORED == nil) { + SDLResult_IGNORED = [[SDLResult alloc] initWithValue:@"IGNORED"]; + } + return SDLResult_IGNORED; +} + ++ (SDLResult *)UNSUPPORTED_RESOURCE { + if (SDLResult_UNSUPPORTED_RESOURCE == nil) { + SDLResult_UNSUPPORTED_RESOURCE = [[SDLResult alloc] initWithValue:@"UNSUPPORTED_RESOURCE"]; + } + return SDLResult_UNSUPPORTED_RESOURCE; +} + ++ (SDLResult *)FILE_NOT_FOUND { + if (SDLResult_FILE_NOT_FOUND == nil) { + SDLResult_FILE_NOT_FOUND = [[SDLResult alloc] initWithValue:@"FILE_NOT_FOUND"]; + } + return SDLResult_FILE_NOT_FOUND; +} + ++ (SDLResult *)GENERIC_ERROR { + if (SDLResult_GENERIC_ERROR == nil) { + SDLResult_GENERIC_ERROR = [[SDLResult alloc] initWithValue:@"GENERIC_ERROR"]; + } + return SDLResult_GENERIC_ERROR; +} + ++ (SDLResult *)DISALLOWED { + if (SDLResult_DISALLOWED == nil) { + SDLResult_DISALLOWED = [[SDLResult alloc] initWithValue:@"DISALLOWED"]; + } + return SDLResult_DISALLOWED; +} + ++ (SDLResult *)USER_DISALLOWED { + if (SDLResult_USER_DISALLOWED == nil) { + SDLResult_USER_DISALLOWED = [[SDLResult alloc] initWithValue:@"USER_DISALLOWED"]; + } + return SDLResult_USER_DISALLOWED; +} + ++ (SDLResult *)TIMED_OUT { + if (SDLResult_TIMED_OUT == nil) { + SDLResult_TIMED_OUT = [[SDLResult alloc] initWithValue:@"TIMED_OUT"]; + } + return SDLResult_TIMED_OUT; +} + ++ (SDLResult *)CANCEL_ROUTE { + if (SDLResult_CANCEL_ROUTE == nil) { + SDLResult_CANCEL_ROUTE = [[SDLResult alloc] initWithValue:@"CANCEL_ROUTE"]; + } + return SDLResult_CANCEL_ROUTE; +} + ++ (SDLResult *)TRUNCATED_DATA { + if (SDLResult_TRUNCATED_DATA == nil) { + SDLResult_TRUNCATED_DATA = [[SDLResult alloc] initWithValue:@"TRUNCATED_DATA"]; + } + return SDLResult_TRUNCATED_DATA; +} + ++ (SDLResult *)RETRY { + if (SDLResult_RETRY == nil) { + SDLResult_RETRY = [[SDLResult alloc] initWithValue:@"RETRY"]; + } + return SDLResult_RETRY; +} + ++ (SDLResult *)WARNINGS { + if (SDLResult_WARNINGS == nil) { + SDLResult_WARNINGS = [[SDLResult alloc] initWithValue:@"WARNINGS"]; + } + return SDLResult_WARNINGS; +} + ++ (SDLResult *)SAVED { + if (SDLResult_SAVED == nil) { + SDLResult_SAVED = [[SDLResult alloc] initWithValue:@"SAVED"]; + } + return SDLResult_SAVED; +} + ++ (SDLResult *)INVALID_CERT { + if (SDLResult_INVALID_CERT == nil) { + SDLResult_INVALID_CERT = [[SDLResult alloc] initWithValue:@"INVALID_CERT"]; + } + return SDLResult_INVALID_CERT; +} + ++ (SDLResult *)EXPIRED_CERT { + if (SDLResult_EXPIRED_CERT == nil) { + SDLResult_EXPIRED_CERT = [[SDLResult alloc] initWithValue:@"EXPIRED_CERT"]; + } + return SDLResult_EXPIRED_CERT; +} + ++ (SDLResult *)RESUME_FAILED { + if (SDLResult_RESUME_FAILED == nil) { + SDLResult_RESUME_FAILED = [[SDLResult alloc] initWithValue:@"RESUME_FAILED"]; + } + return SDLResult_RESUME_FAILED; +} + +@end diff --git a/SmartDeviceLink/SDLSamplingRate.h b/SmartDeviceLink/SDLSamplingRate.h new file mode 100644 index 000000000..28d3d35dc --- /dev/null +++ b/SmartDeviceLink/SDLSamplingRate.h @@ -0,0 +1,56 @@ +// SDLSamplingRate.h +// + + +#import "SDLEnum.h" + +/** + * Describes different sampling rates for PerformAudioPassThru + * + * @since SDL 2.0 + */ +@interface SDLSamplingRate : SDLEnum { +} + +/** + * @abstract get SDLSamplingRate according value string + * + * @param value The value of the string to get an object for + * + * @return SDLSamplingRate object + */ ++ (SDLSamplingRate *)valueOf:(NSString *)value; + +/** + * @abstract declare an array to store all possible SDLSamplingRate values + * + * @return the array + */ ++ (NSArray *)values; + +/** + * @abstract Sampling rate of 8 kHz + * + * @return SamplingRate of *8KHZ* + */ ++ (SDLSamplingRate *)_8KHZ; +/** + * @abstract Sampling rate of 16 kHz + * + * @return SamplingRate of *16KHZ* + */ ++ (SDLSamplingRate *)_16KHZ; +/** + * @abstract Sampling rate of 22 kHz + * + * @return SamplingRate of *22KHZ* + */ ++ (SDLSamplingRate *)_22KHZ; +/** + * @abstract Sampling rate of 44 kHz + * + * @return SamplingRate of *44KHZ* + */ ++ (SDLSamplingRate *)_44KHZ; + +@end diff --git a/SmartDeviceLink/SDLSamplingRate.m b/SmartDeviceLink/SDLSamplingRate.m new file mode 100644 index 000000000..d0a36d730 --- /dev/null +++ b/SmartDeviceLink/SDLSamplingRate.m @@ -0,0 +1,65 @@ +// SDLSamplingRate.m +// + + +#import "SDLSamplingRate.h" + +SDLSamplingRate *SDLSamplingRate_8KHZ = nil; +SDLSamplingRate *SDLSamplingRate_16KHZ = nil; +SDLSamplingRate *SDLSamplingRate_22KHZ = nil; +SDLSamplingRate *SDLSamplingRate_44KHZ = nil; + +NSArray *SDLSamplingRate_values = nil; + +@implementation SDLSamplingRate + ++ (SDLSamplingRate *)valueOf:(NSString *)value { + for (SDLSamplingRate *item in SDLSamplingRate.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLSamplingRate_values == nil) { + SDLSamplingRate_values = @[ + SDLSamplingRate._8KHZ, + SDLSamplingRate._16KHZ, + SDLSamplingRate._22KHZ, + SDLSamplingRate._44KHZ, + ]; + } + return SDLSamplingRate_values; +} + ++ (SDLSamplingRate *)_8KHZ { + if (SDLSamplingRate_8KHZ == nil) { + SDLSamplingRate_8KHZ = [[SDLSamplingRate alloc] initWithValue:@"8KHZ"]; + } + return SDLSamplingRate_8KHZ; +} + ++ (SDLSamplingRate *)_16KHZ { + if (SDLSamplingRate_16KHZ == nil) { + SDLSamplingRate_16KHZ = [[SDLSamplingRate alloc] initWithValue:@"16KHZ"]; + } + return SDLSamplingRate_16KHZ; +} + ++ (SDLSamplingRate *)_22KHZ { + if (SDLSamplingRate_22KHZ == nil) { + SDLSamplingRate_22KHZ = [[SDLSamplingRate alloc] initWithValue:@"22KHZ"]; + } + return SDLSamplingRate_22KHZ; +} + ++ (SDLSamplingRate *)_44KHZ { + if (SDLSamplingRate_44KHZ == nil) { + SDLSamplingRate_44KHZ = [[SDLSamplingRate alloc] initWithValue:@"44KHZ"]; + } + return SDLSamplingRate_44KHZ; +} + +@end diff --git a/SmartDeviceLink/SDLScreenParams.h b/SmartDeviceLink/SDLScreenParams.h new file mode 100644 index 000000000..c60f6f1d6 --- /dev/null +++ b/SmartDeviceLink/SDLScreenParams.h @@ -0,0 +1,19 @@ +// SDLScreenParams.h +// + +#import "SDLRPCMessage.h" + +@class SDLImageResolution; +@class SDLTouchEventCapabilities; + + +@interface SDLScreenParams : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLImageResolution *resolution; +@property (strong) SDLTouchEventCapabilities *touchEventAvailable; + +@end diff --git a/SmartDeviceLink/SDLScreenParams.m b/SmartDeviceLink/SDLScreenParams.m new file mode 100644 index 000000000..1debff302 --- /dev/null +++ b/SmartDeviceLink/SDLScreenParams.m @@ -0,0 +1,59 @@ +// SDLScreenParams.m +// + +#import "SDLScreenParams.h" + +#import "SDLImageResolution.h" +#import "SDLNames.h" +#import "SDLTouchEventCapabilities.h" + + +@implementation SDLScreenParams + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setResolution:(SDLImageResolution *)resolution { + if (resolution != nil) { + [store setObject:resolution forKey:NAMES_resolution]; + } else { + [store removeObjectForKey:NAMES_resolution]; + } +} + +- (SDLImageResolution *)resolution { + NSObject *obj = [store objectForKey:NAMES_resolution]; + if (obj == nil || [obj isKindOfClass:SDLImageResolution.class]) { + return (SDLImageResolution *)obj; + } else { + return [[SDLImageResolution alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setTouchEventAvailable:(SDLTouchEventCapabilities *)touchEventAvailable { + if (touchEventAvailable != nil) { + [store setObject:touchEventAvailable forKey:NAMES_touchEventAvailable]; + } else { + [store removeObjectForKey:NAMES_touchEventAvailable]; + } +} + +- (SDLTouchEventCapabilities *)touchEventAvailable { + NSObject *obj = [store objectForKey:NAMES_touchEventAvailable]; + if (obj == nil || [obj isKindOfClass:SDLTouchEventCapabilities.class]) { + return (SDLTouchEventCapabilities *)obj; + } else { + return [[SDLTouchEventCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLScrollableMessage.h b/SmartDeviceLink/SDLScrollableMessage.h new file mode 100644 index 000000000..27e894221 --- /dev/null +++ b/SmartDeviceLink/SDLScrollableMessage.h @@ -0,0 +1,56 @@ +// SDLScrollableMessage.h +// + + +#import "SDLRPCRequest.h" + +/** + * Creates a full screen overlay containing a large block of formatted text that + * can be scrolled with up to 8 SoftButtons defined + *

    + * Function Group: ScrollableMessage + *

    + * HMILevel needs to be FULL + *

    + */ +@interface SDLScrollableMessage : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLScrollableMessage object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLScrollableMessage object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A Body of text that can include newlines and tabs + * @discussion A String value representing the Body of text that can include + * newlines and tabs + *

    + * Notes: Maxlength=500 + */ +@property (strong) NSString *scrollableMessageBody; +/** + * @abstract Gets/Sets an App defined timeout. Indicates how long of a timeout in milliseconds from the + * last action + * @discussion An Integer value representing an App defined timeout in milliseconds + *

    + * Notes:Minval=0; Maxval=65535;Default=30000 + */ +@property (strong) NSNumber *timeout; +/** + * @abstract Gets/Sets App defined SoftButtons.If omitted on supported displays, only the + * system defined "Close" SoftButton will be displayed + * @discussion A Vector value representing App defined + * SoftButtons + *

    + * Notes: Minsize=0, Maxsize=8 + */ +@property (strong) NSMutableArray *softButtons; + +@end diff --git a/SmartDeviceLink/SDLScrollableMessage.m b/SmartDeviceLink/SDLScrollableMessage.m new file mode 100644 index 000000000..5995e7874 --- /dev/null +++ b/SmartDeviceLink/SDLScrollableMessage.m @@ -0,0 +1,69 @@ +// SDLScrollableMessage.m +// + + +#import "SDLScrollableMessage.h" + +#import "SDLNames.h" +#import "SDLSoftButton.h" + +@implementation SDLScrollableMessage + +- (instancetype)init { + if (self = [super initWithName:NAMES_ScrollableMessage]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setScrollableMessageBody:(NSString *)scrollableMessageBody { + if (scrollableMessageBody != nil) { + [parameters setObject:scrollableMessageBody forKey:NAMES_scrollableMessageBody]; + } else { + [parameters removeObjectForKey:NAMES_scrollableMessageBody]; + } +} + +- (NSString *)scrollableMessageBody { + return [parameters objectForKey:NAMES_scrollableMessageBody]; +} + +- (void)setTimeout:(NSNumber *)timeout { + if (timeout != nil) { + [parameters setObject:timeout forKey:NAMES_timeout]; + } else { + [parameters removeObjectForKey:NAMES_timeout]; + } +} + +- (NSNumber *)timeout { + return [parameters objectForKey:NAMES_timeout]; +} + +- (void)setSoftButtons:(NSMutableArray *)softButtons { + if (softButtons != nil) { + [parameters setObject:softButtons forKey:NAMES_softButtons]; + } else { + [parameters removeObjectForKey:NAMES_softButtons]; + } +} + +- (NSMutableArray *)softButtons { + NSMutableArray *array = [parameters objectForKey:NAMES_softButtons]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButton.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLScrollableMessageResponse.h b/SmartDeviceLink/SDLScrollableMessageResponse.h new file mode 100644 index 000000000..e75b157ec --- /dev/null +++ b/SmartDeviceLink/SDLScrollableMessageResponse.h @@ -0,0 +1,26 @@ +// SDLScrollableMessageResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Scrollable Message Response is sent, when SDLScrollableMessage has been called + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLScrollableMessageResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLScrollableMessageResponse object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLScrollableMessageResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLScrollableMessageResponse.m b/SmartDeviceLink/SDLScrollableMessageResponse.m new file mode 100644 index 000000000..77473f07e --- /dev/null +++ b/SmartDeviceLink/SDLScrollableMessageResponse.m @@ -0,0 +1,23 @@ +// SDLScrollableMessageResponse.m +// + + +#import "SDLScrollableMessageResponse.h" + +#import "SDLNames.h" + +@implementation SDLScrollableMessageResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_ScrollableMessage]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLSendLocation.h b/SmartDeviceLink/SDLSendLocation.h new file mode 100644 index 000000000..cec60c422 --- /dev/null +++ b/SmartDeviceLink/SDLSendLocation.h @@ -0,0 +1,65 @@ +// +// SDLSendLocation.h +// SmartDeviceLink + +#import + +#import "SDLImage.h" +#import "SDLRPCRequest.h" + + +@interface SDLSendLocation : SDLRPCRequest + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * The longitudinal coordinate of the location. + * + * Float, Required, -180.0 - 180.0 + */ +@property (copy, nonatomic) NSNumber *longitudeDegrees; + +/** + * The latitudinal coordinate of the location. + * + * Float, Required, -90.0 - 90.0 + */ +@property (copy, nonatomic) NSNumber *latitudeDegrees; + +/** + * Name / title of intended location + * + * Optional, Maxlength = 500 char + */ +@property (copy, nonatomic) NSString *locationName; + +/** + * Description of the intended location / establishment + * + * Optional, MaxLength = 500 char + */ +@property (copy, nonatomic) NSString *locationDescription; + +/** + * Array of lines for the location address + * + * Contains String, Optional, Max Array Length = 4, Max String Length = 500 + */ +@property (copy, nonatomic) NSArray *addressLines; + +/** + * Phone number of intended location / establishment + * + * Optional, Max Length = 500 + */ +@property (copy, nonatomic) NSString *phoneNumber; + +/** + * Image / icon of intended location + * + * Optional + */ +@property (strong, nonatomic) SDLImage *locationImage; + +@end diff --git a/SmartDeviceLink/SDLSendLocation.m b/SmartDeviceLink/SDLSendLocation.m new file mode 100644 index 000000000..7bf1c5c70 --- /dev/null +++ b/SmartDeviceLink/SDLSendLocation.m @@ -0,0 +1,119 @@ +// +// SDLSendLocation.m +// SmartDeviceLink + +#import "SDLSendLocation.h" + +#import "SDLNames.h" + + +@implementation SDLSendLocation + +- (instancetype)init { + self = [super initWithName:NAMES_SendLocation]; + if (!self) { + return nil; + } + + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + self = [super initWithDictionary:dict]; + if (!self) { + return nil; + } + + return self; +} + +- (void)setLongitudeDegrees:(NSNumber *)longitudeDegrees { + if (longitudeDegrees != nil) { + parameters[NAMES_longitudeDegrees] = longitudeDegrees; + } else { + [parameters removeObjectForKey:NAMES_longitudeDegrees]; + } +} + +- (NSNumber *)longitudeDegrees { + return parameters[NAMES_longitudeDegrees]; +} + +- (void)setLatitudeDegrees:(NSNumber *)latitudeDegrees { + if (latitudeDegrees != nil) { + parameters[NAMES_latitudeDegrees] = latitudeDegrees; + } else { + [parameters removeObjectForKey:NAMES_latitudeDegrees]; + } +} + +- (NSNumber *)latitudeDegrees { + return parameters[NAMES_latitudeDegrees]; +} + +- (void)setLocationName:(NSString *)locationName { + if (locationName != nil) { + parameters[NAMES_locationName] = locationName; + } else { + [parameters removeObjectForKey:NAMES_locationName]; + } +} + +- (NSString *)locationName { + return parameters[NAMES_locationName]; +} + +- (void)setAddressLines:(NSArray *)addressLines { + if (addressLines != nil) { + parameters[NAMES_addressLines] = addressLines; + } else { + [parameters removeObjectForKey:NAMES_addressLines]; + } +} + +- (NSString *)locationDescription { + return parameters[NAMES_locationDescription]; +} + +- (void)setLocationDescription:(NSString *)locationDescription { + if (locationDescription != nil) { + parameters[NAMES_locationDescription] = locationDescription; + } else { + [parameters removeObjectForKey:NAMES_locationDescription]; + } +} + +- (NSArray *)addressLines { + return parameters[NAMES_addressLines]; +} + +- (void)setPhoneNumber:(NSString *)phoneNumber { + if (phoneNumber != nil) { + parameters[NAMES_phoneNumber] = phoneNumber; + } else { + [parameters removeObjectForKey:NAMES_phoneNumber]; + } +} + +- (NSString *)phoneNumber { + return parameters[NAMES_phoneNumber]; +} + +- (void)setLocationImage:(SDLImage *)locationImage { + if (locationImage != nil) { + parameters[NAMES_locationImage] = locationImage; + } else { + [parameters removeObjectForKey:NAMES_locationImage]; + } +} + +- (SDLImage *)locationImage { + id obj = parameters[NAMES_locationImage]; + if (obj == nil || [obj isKindOfClass:[SDLImage class]]) { + return (SDLImage *)obj; + } else { + return [[SDLImage alloc] initWithDictionary:obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLSendLocationResponse.h b/SmartDeviceLink/SDLSendLocationResponse.h new file mode 100644 index 000000000..39d8a4ba2 --- /dev/null +++ b/SmartDeviceLink/SDLSendLocationResponse.h @@ -0,0 +1,12 @@ +// +// SDLSendLocationResponse.h +// SmartDeviceLink-iOS + +#import "SDLRPCResponse.h" + +@interface SDLSendLocationResponse : SDLRPCResponse + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLSendLocationResponse.m b/SmartDeviceLink/SDLSendLocationResponse.m new file mode 100644 index 000000000..83cde8118 --- /dev/null +++ b/SmartDeviceLink/SDLSendLocationResponse.m @@ -0,0 +1,30 @@ +// +// SDLSendLocationResponse.m +// SmartDeviceLink-iOS + +#import "SDLSendLocationResponse.h" + +#import "SDLNames.h" + + +@implementation SDLSendLocationResponse + +- (instancetype)init { + self = [super initWithName:NAMES_SendLocation]; + if (!self) { + return nil; + } + + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + self = [super initWithDictionary:dict]; + if (!self) { + return nil; + } + + return self; +} + +@end diff --git a/SmartDeviceLink/SDLSetAppIcon.h b/SmartDeviceLink/SDLSetAppIcon.h new file mode 100644 index 000000000..eee61deb5 --- /dev/null +++ b/SmartDeviceLink/SDLSetAppIcon.h @@ -0,0 +1,35 @@ +// SDLSetAppIcon.h +// + + +#import "SDLRPCRequest.h" + +/** + * Used to set existing local file on SDL as the app's icon. Not supported on + * first generation SDL modules. + *

    + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLSetAppIcon : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLSetAppIcon object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLSetAppIcon object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A file reference name + * @discussion A String value representing a file reference name + *

    + * Notes: Maxlength=500 + */ +@property (strong) NSString *syncFileName; + +@end diff --git a/SmartDeviceLink/SDLSetAppIcon.m b/SmartDeviceLink/SDLSetAppIcon.m new file mode 100644 index 000000000..717eeb023 --- /dev/null +++ b/SmartDeviceLink/SDLSetAppIcon.m @@ -0,0 +1,35 @@ +// SDLSetAppIcon.m +// + + +#import "SDLSetAppIcon.h" + +#import "SDLNames.h" + +@implementation SDLSetAppIcon + +- (instancetype)init { + if (self = [super initWithName:NAMES_SetAppIcon]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setSyncFileName:(NSString *)syncFileName { + if (syncFileName != nil) { + [parameters setObject:syncFileName forKey:NAMES_syncFileName]; + } else { + [parameters removeObjectForKey:NAMES_syncFileName]; + } +} + +- (NSString *)syncFileName { + return [parameters objectForKey:NAMES_syncFileName]; +} + +@end diff --git a/SmartDeviceLink/SDLSetAppIconResponse.h b/SmartDeviceLink/SDLSetAppIconResponse.h new file mode 100644 index 000000000..31dd1e6c9 --- /dev/null +++ b/SmartDeviceLink/SDLSetAppIconResponse.h @@ -0,0 +1,16 @@ +// SDLSetAppIconResponse.h +// + + +#import "SDLRPCResponse.h" + +/** SDLSetAppIconResponse is sent, when SDLSetAppIcon has been called. + * SinceSmartDeviceLink 2.0 + */ +@interface SDLSetAppIconResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLSetAppIconResponse.m b/SmartDeviceLink/SDLSetAppIconResponse.m new file mode 100644 index 000000000..64c10600f --- /dev/null +++ b/SmartDeviceLink/SDLSetAppIconResponse.m @@ -0,0 +1,23 @@ +// SDLSetAppIconResponse.m +// + + +#import "SDLSetAppIconResponse.h" + +#import "SDLNames.h" + +@implementation SDLSetAppIconResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_SetAppIcon]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLSetDisplayLayout.h b/SmartDeviceLink/SDLSetDisplayLayout.h new file mode 100644 index 000000000..15226a821 --- /dev/null +++ b/SmartDeviceLink/SDLSetDisplayLayout.h @@ -0,0 +1,35 @@ +// SDLSetDisplayLayout.h +// + + +#import "SDLRPCRequest.h" + +/** + * Used to set an alternate display layout. If not sent, default screen for + * given platform will be shown + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLSetDisplayLayout : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLSetDisplayLayout object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLSetDisplayLayout object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A display layout. Predefined or dynamically created screen layout. + * Currently only predefined screen layouts are defined. Predefined layouts + * include: "ONSCREEN_PRESETS" Custom screen containing app-defined onscreen + * presets. Currently defined for GEN2 + */ +@property (strong) NSString *displayLayout; + +@end diff --git a/SmartDeviceLink/SDLSetDisplayLayout.m b/SmartDeviceLink/SDLSetDisplayLayout.m new file mode 100644 index 000000000..ed812f647 --- /dev/null +++ b/SmartDeviceLink/SDLSetDisplayLayout.m @@ -0,0 +1,35 @@ +// SDLSetDisplayLayout.m +// + + +#import "SDLSetDisplayLayout.h" + +#import "SDLNames.h" + +@implementation SDLSetDisplayLayout + +- (instancetype)init { + if (self = [super initWithName:NAMES_SetDisplayLayout]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setDisplayLayout:(NSString *)displayLayout { + if (displayLayout != nil) { + [parameters setObject:displayLayout forKey:NAMES_displayLayout]; + } else { + [parameters removeObjectForKey:NAMES_displayLayout]; + } +} + +- (NSString *)displayLayout { + return [parameters objectForKey:NAMES_displayLayout]; +} + +@end diff --git a/SmartDeviceLink/SDLSetDisplayLayoutResponse.h b/SmartDeviceLink/SDLSetDisplayLayoutResponse.h new file mode 100644 index 000000000..7838ae0a6 --- /dev/null +++ b/SmartDeviceLink/SDLSetDisplayLayoutResponse.h @@ -0,0 +1,29 @@ +// SDLSetDisplayLayoutResponse.h +// + +#import "SDLRPCResponse.h" + +@class SDLDisplayCapabilities; +@class SDLPresetBankCapabilities; + + +/** + * Set Display Layout Response is sent, when SetDisplayLayout has been called + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLSetDisplayLayoutResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLSetDisplayLayoutResponse object + */ +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLDisplayCapabilities *displayCapabilities; +@property (strong) NSMutableArray *buttonCapabilities; +@property (strong) NSMutableArray *softButtonCapabilities; +@property (strong) SDLPresetBankCapabilities *presetBankCapabilities; + +@end diff --git a/SmartDeviceLink/SDLSetDisplayLayoutResponse.m b/SmartDeviceLink/SDLSetDisplayLayoutResponse.m new file mode 100644 index 000000000..fde37062e --- /dev/null +++ b/SmartDeviceLink/SDLSetDisplayLayoutResponse.m @@ -0,0 +1,104 @@ +// SDLSetDisplayLayoutResponse.m +// + + +#import "SDLSetDisplayLayoutResponse.h" + +#import "SDLButtonCapabilities.h" +#import "SDLDisplayCapabilities.h" +#import "SDLNames.h" +#import "SDLPresetBankCapabilities.h" +#import "SDLSoftButtonCapabilities.h" + + +@implementation SDLSetDisplayLayoutResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_SetDisplayLayout]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setDisplayCapabilities:(SDLDisplayCapabilities *)displayCapabilities { + if (displayCapabilities != nil) { + [parameters setObject:displayCapabilities forKey:NAMES_displayCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_displayCapabilities]; + } +} + +- (SDLDisplayCapabilities *)displayCapabilities { + NSObject *obj = [parameters objectForKey:NAMES_displayCapabilities]; + if (obj == nil || [obj isKindOfClass:SDLDisplayCapabilities.class]) { + return (SDLDisplayCapabilities *)obj; + } else { + return [[SDLDisplayCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setButtonCapabilities:(NSMutableArray *)buttonCapabilities { + if (buttonCapabilities != nil) { + [parameters setObject:buttonCapabilities forKey:NAMES_buttonCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_buttonCapabilities]; + } +} + +- (NSMutableArray *)buttonCapabilities { + NSMutableArray *array = [parameters objectForKey:NAMES_buttonCapabilities]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLButtonCapabilities.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLButtonCapabilities alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setSoftButtonCapabilities:(NSMutableArray *)softButtonCapabilities { + if (softButtonCapabilities != nil) { + [parameters setObject:softButtonCapabilities forKey:NAMES_softButtonCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_softButtonCapabilities]; + } +} + +- (NSMutableArray *)softButtonCapabilities { + NSMutableArray *array = [parameters objectForKey:NAMES_softButtonCapabilities]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButtonCapabilities.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLSoftButtonCapabilities alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setPresetBankCapabilities:(SDLPresetBankCapabilities *)presetBankCapabilities { + if (presetBankCapabilities != nil) { + [parameters setObject:presetBankCapabilities forKey:NAMES_presetBankCapabilities]; + } else { + [parameters removeObjectForKey:NAMES_presetBankCapabilities]; + } +} + +- (SDLPresetBankCapabilities *)presetBankCapabilities { + NSObject *obj = [parameters objectForKey:NAMES_presetBankCapabilities]; + if (obj == nil || [obj isKindOfClass:SDLPresetBankCapabilities.class]) { + return (SDLPresetBankCapabilities *)obj; + } else { + return [[SDLPresetBankCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLSetGlobalProperties.h b/SmartDeviceLink/SDLSetGlobalProperties.h new file mode 100644 index 000000000..7ad36e8d5 --- /dev/null +++ b/SmartDeviceLink/SDLSetGlobalProperties.h @@ -0,0 +1,96 @@ +// SDLSetGlobalProperties.h +// + +#import "SDLRPCRequest.h" + +@class SDLImage; +@class SDLKeyboardProperties; + + +/** + * Sets value(s) for the specified global property(ies) + *

    + * Function Group: Base

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + * + * Since SmartDeviceLink 1.0 + * See SDLResetGlobalProperties + */ +@interface SDLSetGlobalProperties : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLSetGlobalProperties object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLSetGlobalProperties object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract Sets a Vector for Help Prompt that Array of one or more + * TTSChunk elements specifying the help prompt used in an interaction + * started by PTT + * @discussion helpPrompt + * a Vector of one or more TTSChunk elements + *

    + * Notes: + *

      + *
    • Array must have at least one element
    • + *
    • Only optional it timeoutPrompt has been specified
    • + *
    + */ +@property (strong) NSMutableArray *helpPrompt; +/** + * @abstract A Vector for Timeout Prompt representing Array of one or + * more TTSChunk elements specifying the help prompt used in an interaction + * started by PTT + * + */ +@property (strong) NSMutableArray *timeoutPrompt; +/** + * @abstract Sets a voice recognition Help Title + * + * @discussion A String value representing a voice recognition Help Title + *

    + * Notes:
    + *

      + *
    • If omitted on supported displays, the default SDL help + * title will be used
    • + *
    • If omitted and one or more vrHelp items are provided, the + * request will be rejected.
    • + *
    • String Maxlength = 500
    • + *
    + * @since SmartDeviceLink 2.0 + */ +@property (strong) NSString *vrHelpTitle; +/** + * @abstract Sets the items listed in the VR help screen used in an interaction + * started by PTT + * + * @discussion A Vector value representing items listed in the VR help screen + * used in an interaction started by PTT + *

    + * Notes:
    + *

      + *
    • If omitted on supported displays, the default SmartDeviceLink VR + * help / What Can I Say? screen will be used
    • + *
    • If the list of VR Help Items contains nonsequential + * positions (e.g. [1,2,4]), the RPC will be rejected
    • + *
    • If omitted and a vrHelpTitle is provided, the request + * will be rejected
    • + *
    • Array Minsize: = 1
    • + *
    • Array Maxsize = 100
    • + *
    + * @since SmartDeviceLink 2.0 + */ +@property (strong) NSMutableArray *vrHelp; +@property (strong) NSString *menuTitle; +@property (strong) SDLImage *menuIcon; +@property (strong) SDLKeyboardProperties *keyboardProperties; + +@end diff --git a/SmartDeviceLink/SDLSetGlobalProperties.m b/SmartDeviceLink/SDLSetGlobalProperties.m new file mode 100644 index 000000000..ba9749e3e --- /dev/null +++ b/SmartDeviceLink/SDLSetGlobalProperties.m @@ -0,0 +1,149 @@ +// SDLSetGlobalProperties.m +// + + +#import "SDLSetGlobalProperties.h" + +#import "SDLImage.h" +#import "SDLKeyboardProperties.h" +#import "SDLNames.h" +#import "SDLTTSChunk.h" +#import "SDLVRHelpItem.h" + + +@implementation SDLSetGlobalProperties + +- (instancetype)init { + if (self = [super initWithName:NAMES_SetGlobalProperties]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setHelpPrompt:(NSMutableArray *)helpPrompt { + if (helpPrompt != nil) { + [parameters setObject:helpPrompt forKey:NAMES_helpPrompt]; + } else { + [parameters removeObjectForKey:NAMES_helpPrompt]; + } +} + +- (NSMutableArray *)helpPrompt { + NSMutableArray *array = [parameters objectForKey:NAMES_helpPrompt]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setTimeoutPrompt:(NSMutableArray *)timeoutPrompt { + if (timeoutPrompt != nil) { + [parameters setObject:timeoutPrompt forKey:NAMES_timeoutPrompt]; + } else { + [parameters removeObjectForKey:NAMES_timeoutPrompt]; + } +} + +- (NSMutableArray *)timeoutPrompt { + NSMutableArray *array = [parameters objectForKey:NAMES_timeoutPrompt]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setVrHelpTitle:(NSString *)vrHelpTitle { + if (vrHelpTitle != nil) { + [parameters setObject:vrHelpTitle forKey:NAMES_vrHelpTitle]; + } else { + [parameters removeObjectForKey:NAMES_vrHelpTitle]; + } +} + +- (NSString *)vrHelpTitle { + return [parameters objectForKey:NAMES_vrHelpTitle]; +} + +- (void)setVrHelp:(NSMutableArray *)vrHelp { + if (vrHelp != nil) { + [parameters setObject:vrHelp forKey:NAMES_vrHelp]; + } else { + [parameters removeObjectForKey:NAMES_vrHelp]; + } +} + +- (NSMutableArray *)vrHelp { + NSMutableArray *array = [parameters objectForKey:NAMES_vrHelp]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLVRHelpItem.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLVRHelpItem alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setMenuTitle:(NSString *)menuTitle { + if (menuTitle != nil) { + [parameters setObject:menuTitle forKey:NAMES_menuTitle]; + } else { + [parameters removeObjectForKey:NAMES_menuTitle]; + } +} + +- (NSString *)menuTitle { + return [parameters objectForKey:NAMES_menuTitle]; +} + +- (void)setMenuIcon:(SDLImage *)menuIcon { + if (menuIcon != nil) { + [parameters setObject:menuIcon forKey:NAMES_menuIcon]; + } else { + [parameters removeObjectForKey:NAMES_menuIcon]; + } +} + +- (SDLImage *)menuIcon { + NSObject *obj = [parameters objectForKey:NAMES_menuIcon]; + if (obj == nil || [obj isKindOfClass:SDLImage.class]) { + return (SDLImage *)obj; + } else { + return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setKeyboardProperties:(SDLKeyboardProperties *)keyboardProperties { + if (keyboardProperties != nil) { + [parameters setObject:keyboardProperties forKey:NAMES_keyboardProperties]; + } else { + [parameters removeObjectForKey:NAMES_keyboardProperties]; + } +} + +- (SDLKeyboardProperties *)keyboardProperties { + NSObject *obj = [parameters objectForKey:NAMES_keyboardProperties]; + if (obj == nil || [obj isKindOfClass:SDLKeyboardProperties.class]) { + return (SDLKeyboardProperties *)obj; + } else { + return [[SDLKeyboardProperties alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLSetGlobalPropertiesResponse.h b/SmartDeviceLink/SDLSetGlobalPropertiesResponse.h new file mode 100644 index 000000000..131700137 --- /dev/null +++ b/SmartDeviceLink/SDLSetGlobalPropertiesResponse.h @@ -0,0 +1,26 @@ +// SDLSetGlobalPropertiesResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Set Global Properties Response is sent, when SDLSetGlobalProperties has been called + * + * Since SmartDeviceLink 1.0 + */ +@interface SDLSetGlobalPropertiesResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLSetGlobalPropertiesResponse object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLSetGlobalPropertiesResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLSetGlobalPropertiesResponse.m b/SmartDeviceLink/SDLSetGlobalPropertiesResponse.m new file mode 100644 index 000000000..ff4db22c8 --- /dev/null +++ b/SmartDeviceLink/SDLSetGlobalPropertiesResponse.m @@ -0,0 +1,23 @@ +// SDLSetGlobalPropertiesResponse.m +// + + +#import "SDLSetGlobalPropertiesResponse.h" + +#import "SDLNames.h" + +@implementation SDLSetGlobalPropertiesResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_SetGlobalProperties]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLSetMediaClockTimer.h b/SmartDeviceLink/SDLSetMediaClockTimer.h new file mode 100644 index 000000000..71de56b35 --- /dev/null +++ b/SmartDeviceLink/SDLSetMediaClockTimer.h @@ -0,0 +1,68 @@ +// SDLSetMediaClockTimer.h +// + +#import "SDLRPCRequest.h" + +@class SDLStartTime; +@class SDLUpdateMode; + + +/** + * Sets the media clock/timer value and the update method (e.g.count-up, + * count-down, etc.) + *

    + * Function Group: Base

    + * HMILevel needs to be FULL, LIMITIED or BACKGROUND + *

    + * + * Since SmartDeviceLink 1.0 + */ +@interface SDLSetMediaClockTimer : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLSetMediaClockTimer object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLSetMediaClockTimer object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A Start Time with specifying hour, minute, second values + * + * @discussion A startTime object with specifying hour, minute, second values + *

    + * Notes: + *

      + *
    • If "updateMode" is COUNTUP or COUNTDOWN, this parameter + * must be provided
    • + *
    • Will be ignored for PAUSE/RESUME and CLEAR
    • + *
    + */ +@property (strong) SDLStartTime *startTime; +/** + * @abstract An END time of type SDLStartTime, specifying hour, minute, second values + * + * @discussion An SDLStartTime object with specifying hour, minute, second values + */ +@property (strong) SDLStartTime *endTime; +/** + * @abstract The media clock/timer update mode (COUNTUP/COUNTDOWN/PAUSE/RESUME) + * + * @discussion a Enumeration value (COUNTUP/COUNTDOWN/PAUSE/RESUME) + *

    + * Notes: + *

      + *
    • When updateMode is PAUSE, RESUME or CLEAR, the start time value + * is ignored
    • + *
    • When updateMode is RESUME, the timer resumes counting from + * the timer's value when it was paused
    • + *
    + */ +@property (strong) SDLUpdateMode *updateMode; + +@end diff --git a/SmartDeviceLink/SDLSetMediaClockTimer.m b/SmartDeviceLink/SDLSetMediaClockTimer.m new file mode 100644 index 000000000..325d0e347 --- /dev/null +++ b/SmartDeviceLink/SDLSetMediaClockTimer.m @@ -0,0 +1,77 @@ +// SDLSetMediaClockTimer.m +// + + +#import "SDLSetMediaClockTimer.h" + +#import "SDLNames.h" +#import "SDLStartTime.h" +#import "SDLUpdateMode.h" + + +@implementation SDLSetMediaClockTimer + +- (instancetype)init { + if (self = [super initWithName:NAMES_SetMediaClockTimer]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setStartTime:(SDLStartTime *)startTime { + if (startTime != nil) { + [parameters setObject:startTime forKey:NAMES_startTime]; + } else { + [parameters removeObjectForKey:NAMES_startTime]; + } +} + +- (SDLStartTime *)startTime { + NSObject *obj = [parameters objectForKey:NAMES_startTime]; + if (obj == nil || [obj isKindOfClass:SDLStartTime.class]) { + return (SDLStartTime *)obj; + } else { + return [[SDLStartTime alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setEndTime:(SDLStartTime *)endTime { + if (endTime != nil) { + [parameters setObject:endTime forKey:NAMES_endTime]; + } else { + [parameters removeObjectForKey:NAMES_endTime]; + } +} + +- (SDLStartTime *)endTime { + NSObject *obj = [parameters objectForKey:NAMES_endTime]; + if (obj == nil || [obj isKindOfClass:SDLStartTime.class]) { + return (SDLStartTime *)obj; + } else { + return [[SDLStartTime alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setUpdateMode:(SDLUpdateMode *)updateMode { + if (updateMode != nil) { + [parameters setObject:updateMode forKey:NAMES_updateMode]; + } else { + [parameters removeObjectForKey:NAMES_updateMode]; + } +} + +- (SDLUpdateMode *)updateMode { + NSObject *obj = [parameters objectForKey:NAMES_updateMode]; + if (obj == nil || [obj isKindOfClass:SDLUpdateMode.class]) { + return (SDLUpdateMode *)obj; + } else { + return [SDLUpdateMode valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLSetMediaClockTimerResponse.h b/SmartDeviceLink/SDLSetMediaClockTimerResponse.h new file mode 100644 index 000000000..ffa6a77ae --- /dev/null +++ b/SmartDeviceLink/SDLSetMediaClockTimerResponse.h @@ -0,0 +1,28 @@ +// SDLSetMediaClockTimerResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Set Media Clock Timer Response is sent, when SDLSetMediaClockTimer has been called + * + * Since SmartDeviceLink 1.0 + */ +@interface SDLSetMediaClockTimerResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLSetMediaClockTimerResponse object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLSetMediaClockTimerResponse object indicated by the NSMutableDictionary + * parameter + *

    + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLSetMediaClockTimerResponse.m b/SmartDeviceLink/SDLSetMediaClockTimerResponse.m new file mode 100644 index 000000000..098522fbd --- /dev/null +++ b/SmartDeviceLink/SDLSetMediaClockTimerResponse.m @@ -0,0 +1,23 @@ +// SDLSetMediaClockTimerResponse.m +// + + +#import "SDLSetMediaClockTimerResponse.h" + +#import "SDLNames.h" + +@implementation SDLSetMediaClockTimerResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_SetMediaClockTimer]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLShow.h b/SmartDeviceLink/SDLShow.h new file mode 100644 index 000000000..20cf84a92 --- /dev/null +++ b/SmartDeviceLink/SDLShow.h @@ -0,0 +1,233 @@ +// SDLShow.h +// + +#import "SDLRPCRequest.h" + +@class SDLImage; +@class SDLTextAlignment; + + +/** + * Updates the application's display text area, regardless of whether or not + * this text area is visible to the user at the time of the request. The + * application's display text area remains unchanged until updated by subsequent + * calls to Show + *

    + * The content of the application's display text area is visible to the user + * when the application + * is FULL or LIMITED, and the + * SDLSystemContext=MAIN and no + * SDLAlert is in progress + *

    + * The Show operation cannot be used to create an animated scrolling screen. To + * avoid distracting the driver, Show commands cannot be issued more than once + * every 4 seconds. Requests made more frequently than this will be rejected + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + * + * Since SmartDeviceLink 1.0 + * See SDLAlert SDLSetMediaClockTimer + */ +@interface SDLShow : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLShow object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLShow object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The text displayed in a single-line display, or in the upper display + * line in a two-line display + * @discussion The String value representing the text displayed in a + * single-line display, or in the upper display line in a + * two-line display + *

    + * Notes: + *

      + *
    • If this parameter is omitted, the text of mainField1 does + * not change
    • + *
    • If this parameter is an empty string, the field will be + * cleared
    • + *
    + */ +@property (strong) NSString *mainField1; +/** + * @abstract The text displayed on the second display line of a two-line display + * + * @discussion The String value representing the text displayed on the second + * display line of a two-line display + *

    + * Notes: + *

      + *
    • If this parameter is omitted, the text of mainField2 does + * not change
    • + *
    • If this parameter is an empty string, the field will be + * cleared
    • + *
    • If provided and the display is a single-line display, the + * parameter is ignored
    • + *
    • Maxlength = 500
    • + *
    + */ +@property (strong) NSString *mainField2; +/** + * @abstract The text displayed on the first display line of the second page + * + * @discussion The String value representing the text displayed on the first + * display line of the second page + *

    + * Notes: + *

      + *
    • If this parameter is omitted, the text of mainField3 does + * not change
    • + *
    • If this parameter is an empty string, the field will be + * cleared
    • + *
    • If provided and the display is a single-line display, the + * parameter is ignored
    • + *
    • Maxlength = 500
    • + *
    + * @since SmartDeviceLink 2.0 + */ +@property (strong) NSString *mainField3; +/** + * @abstract The text displayed on the second display line of the second page + * + * @discussion The String value representing the text displayed on the second + * display line of the second page + *

    + * Notes: + *

      + *
    • If this parameter is omitted, the text of mainField4 does + * not change
    • + *
    • If this parameter is an empty string, the field will be + * cleared
    • + *
    • If provided and the display is a single-line display, the + * parameter is ignored
    • + *
    • Maxlength = 500
    • + *
    + * @since SmartDeviceLink 2.0 + */ +@property (strong) NSString *mainField4; +/** + * @abstract The alignment that Specifies how mainField1 and mainField2 text + * should be aligned on display + * + * @discussion An Enumeration value + *

    + * Notes: + *

      + *
    • Applies only to mainField1 and mainField2 provided on this + * call, not to what is already showing in display
    • + *
    • If this parameter is omitted, text in both mainField1 and + * mainField2 will be centered
    • + *
    • Has no effect with navigation display
    • + *
    + */ +@property (strong) SDLTextAlignment *alignment; +/** + * @abstract Text in the Status Bar + * + * @discussion A String representing the text you want to add in the Status + * Bar + *

    + * Notes: The status bar only exists on navigation + * displays
    + *

      + *
    • If this parameter is omitted, the status bar text will + * remain unchanged
    • + *
    • If this parameter is an empty string, the field will be + * cleared
    • + *
    • If provided and the display has no status bar, this + * parameter is ignored
    • + *
    + */ +@property (strong) NSString *statusBar; +/** + * @abstract This property is deprecated use SetMediaClockTimer instead. + *

    The value for the MediaClock field using a format described in the + * MediaClockFormat enumeration + * + * @discussion A String value for the MediaClock + *

    + * Notes:
    + *

      + *
    • Must be properly formatted as described in the + * MediaClockFormat enumeration
    • + *
    • If a value of five spaces is provided, this will clear + * that field on the display (i.e. the media clock timer field + * will not display anything)
    • + *
    + */ +@property (strong) NSString *mediaClock; +/** + * @abstract The text in the track field + * + * @discussion A String value disaplayed in the track field + *

    + * Notes:
    + *

      + *
    • If parameter is omitted, the track field remains unchanged
    • + *
    • If an empty string is provided, the field will be cleared
    • + *
    • This field is only valid for media applications on navigation displays
    • + *
    + */ +@property (strong) NSString *mediaTrack; +/** + * @abstract An image to be shown on supported displays + * + * @discussion The value representing the image shown on supported displays + *

    + * Notes: If omitted on supported displays, the displayed + * graphic shall not change
    + * @since SmartDeviceLink 2.0 + */ +@property (strong) SDLImage *graphic; +/** + * @abstract An image to be shown on supported displays + * + * @discussion The value representing the image shown on supported displays + *

    + * Notes: If omitted on supported displays, the displayed + * graphic shall not change
    + * @since SmartDeviceLink 2.0 + */ +@property (strong) SDLImage *secondaryGraphic; +/** + * @abstract The the Soft buttons defined by the App + * + * @discussion A Vector value represemting the Soft buttons defined by the + * App + *

    + * Notes:
    + *

      + *
    • If omitted on supported displays, the currently displayed + * SoftButton values will not change
    • + *
    • Array Minsize: 0
    • + *
    • Array Maxsize: 8
    • + *
    + * + * @since SmartDeviceLink 2.0 + */ +@property (strong) NSMutableArray *softButtons; +/** + * @abstract The Custom Presets defined by the App + * + * @discussion A Vector value representing the Custom Presets defined by the + * App + *

    + *

      + *
    • If omitted on supported displays, the presets will be shown as not defined
    • + *
    • Array Minsize: 0
    • + *
    • Array Maxsize: 6
    • + *
    + * @since SmartDeviceLink 2.0 + */ +@property (strong) NSMutableArray *customPresets; + +@end diff --git a/SmartDeviceLink/SDLShow.m b/SmartDeviceLink/SDLShow.m new file mode 100644 index 000000000..933167159 --- /dev/null +++ b/SmartDeviceLink/SDLShow.m @@ -0,0 +1,195 @@ +// SDLShow.m +// + + +#import "SDLShow.h" + +#import "SDLImage.h" +#import "SDLNames.h" +#import "SDLSoftButton.h" +#import "SDLTextAlignment.h" + + +@implementation SDLShow + +- (instancetype)init { + if (self = [super initWithName:NAMES_Show]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setMainField1:(NSString *)mainField1 { + if (mainField1 != nil) { + [parameters setObject:mainField1 forKey:NAMES_mainField1]; + } else { + [parameters removeObjectForKey:NAMES_mainField1]; + } +} + +- (NSString *)mainField1 { + return [parameters objectForKey:NAMES_mainField1]; +} + +- (void)setMainField2:(NSString *)mainField2 { + if (mainField2 != nil) { + [parameters setObject:mainField2 forKey:NAMES_mainField2]; + } else { + [parameters removeObjectForKey:NAMES_mainField2]; + } +} + +- (NSString *)mainField2 { + return [parameters objectForKey:NAMES_mainField2]; +} + +- (void)setMainField3:(NSString *)mainField3 { + if (mainField3 != nil) { + [parameters setObject:mainField3 forKey:NAMES_mainField3]; + } else { + [parameters removeObjectForKey:NAMES_mainField3]; + } +} + +- (NSString *)mainField3 { + return [parameters objectForKey:NAMES_mainField3]; +} + +- (void)setMainField4:(NSString *)mainField4 { + if (mainField4 != nil) { + [parameters setObject:mainField4 forKey:NAMES_mainField4]; + } else { + [parameters removeObjectForKey:NAMES_mainField4]; + } +} + +- (NSString *)mainField4 { + return [parameters objectForKey:NAMES_mainField4]; +} + +- (void)setAlignment:(SDLTextAlignment *)alignment { + if (alignment != nil) { + [parameters setObject:alignment forKey:NAMES_alignment]; + } else { + [parameters removeObjectForKey:NAMES_alignment]; + } +} + +- (SDLTextAlignment *)alignment { + NSObject *obj = [parameters objectForKey:NAMES_alignment]; + if (obj == nil || [obj isKindOfClass:SDLTextAlignment.class]) { + return (SDLTextAlignment *)obj; + } else { + return [SDLTextAlignment valueOf:(NSString *)obj]; + } +} + +- (void)setStatusBar:(NSString *)statusBar { + if (statusBar != nil) { + [parameters setObject:statusBar forKey:NAMES_statusBar]; + } else { + [parameters removeObjectForKey:NAMES_statusBar]; + } +} + +- (NSString *)statusBar { + return [parameters objectForKey:NAMES_statusBar]; +} + +- (void)setMediaClock:(NSString *)mediaClock { + if (mediaClock != nil) { + [parameters setObject:mediaClock forKey:NAMES_mediaClock]; + } else { + [parameters removeObjectForKey:NAMES_mediaClock]; + } +} + +- (NSString *)mediaClock { + return [parameters objectForKey:NAMES_mediaClock]; +} + +- (void)setMediaTrack:(NSString *)mediaTrack { + if (mediaTrack != nil) { + [parameters setObject:mediaTrack forKey:NAMES_mediaTrack]; + } else { + [parameters removeObjectForKey:NAMES_mediaTrack]; + } +} + +- (NSString *)mediaTrack { + return [parameters objectForKey:NAMES_mediaTrack]; +} + +- (void)setGraphic:(SDLImage *)graphic { + if (graphic != nil) { + [parameters setObject:graphic forKey:NAMES_graphic]; + } else { + [parameters removeObjectForKey:NAMES_graphic]; + } +} + +- (SDLImage *)graphic { + NSObject *obj = [parameters objectForKey:NAMES_graphic]; + if (obj == nil || [obj isKindOfClass:SDLImage.class]) { + return (SDLImage *)obj; + } else { + return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setSecondaryGraphic:(SDLImage *)secondaryGraphic { + if (secondaryGraphic != nil) { + [parameters setObject:secondaryGraphic forKey:NAMES_secondaryGraphic]; + } else { + [parameters removeObjectForKey:NAMES_secondaryGraphic]; + } +} + +- (SDLImage *)secondaryGraphic { + NSObject *obj = [parameters objectForKey:NAMES_secondaryGraphic]; + if (obj == nil || [obj isKindOfClass:SDLImage.class]) { + return (SDLImage *)obj; + } else { + return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setSoftButtons:(NSMutableArray *)softButtons { + if (softButtons != nil) { + [parameters setObject:softButtons forKey:NAMES_softButtons]; + } else { + [parameters removeObjectForKey:NAMES_softButtons]; + } +} + +- (NSMutableArray *)softButtons { + NSMutableArray *array = [parameters objectForKey:NAMES_softButtons]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButton.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setCustomPresets:(NSMutableArray *)customPresets { + if (customPresets != nil) { + [parameters setObject:customPresets forKey:NAMES_customPresets]; + } else { + [parameters removeObjectForKey:NAMES_customPresets]; + } +} + +- (NSMutableArray *)customPresets { + return [parameters objectForKey:NAMES_customPresets]; +} + +@end diff --git a/SmartDeviceLink/SDLShowConstantTBT.h b/SmartDeviceLink/SDLShowConstantTBT.h new file mode 100644 index 000000000..ae5dda108 --- /dev/null +++ b/SmartDeviceLink/SDLShowConstantTBT.h @@ -0,0 +1,33 @@ +// SDLShowConstantTBT.h +// + +#import "SDLRPCRequest.h" + +@class SDLImage; + + +/** This RPC is used to update the user with navigation information
    + * for the constantly shown screen (base screen),but also for the
    + * alert type screen. + *

    + * @since SmartDeviceLink 2.0 + */ +@interface SDLShowConstantTBT : SDLRPCRequest { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSString *navigationText1; +@property (strong) NSString *navigationText2; +@property (strong) NSString *eta; +@property (strong) NSString *timeToDestination; +@property (strong) NSString *totalDistance; +@property (strong) SDLImage *turnIcon; +@property (strong) SDLImage *nextTurnIcon; +@property (strong) NSNumber *distanceToManeuver; +@property (strong) NSNumber *distanceToManeuverScale; +@property (strong) NSNumber *maneuverComplete; +@property (strong) NSMutableArray *softButtons; + +@end diff --git a/SmartDeviceLink/SDLShowConstantTBT.m b/SmartDeviceLink/SDLShowConstantTBT.m new file mode 100644 index 000000000..c3f87f071 --- /dev/null +++ b/SmartDeviceLink/SDLShowConstantTBT.m @@ -0,0 +1,177 @@ +// SDLShowConstantTBT.m +// + + +#import "SDLShowConstantTBT.h" + +#import "SDLImage.h" +#import "SDLNames.h" +#import "SDLSoftButton.h" + + +@implementation SDLShowConstantTBT + +- (instancetype)init { + if (self = [super initWithName:NAMES_ShowConstantTBT]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setNavigationText1:(NSString *)navigationText1 { + if (navigationText1 != nil) { + [parameters setObject:navigationText1 forKey:NAMES_navigationText1]; + } else { + [parameters removeObjectForKey:NAMES_navigationText1]; + } +} + +- (NSString *)navigationText1 { + return [parameters objectForKey:NAMES_navigationText1]; +} + +- (void)setNavigationText2:(NSString *)navigationText2 { + if (navigationText2 != nil) { + [parameters setObject:navigationText2 forKey:NAMES_navigationText2]; + } else { + [parameters removeObjectForKey:NAMES_navigationText2]; + } +} + +- (NSString *)navigationText2 { + return [parameters objectForKey:NAMES_navigationText2]; +} + +- (void)setEta:(NSString *)eta { + if (eta != nil) { + [parameters setObject:eta forKey:NAMES_eta]; + } else { + [parameters removeObjectForKey:NAMES_eta]; + } +} + +- (NSString *)eta { + return [parameters objectForKey:NAMES_eta]; +} + +- (void)setTimeToDestination:(NSString *)timeToDestination { + if (timeToDestination != nil) { + [parameters setObject:timeToDestination forKey:NAMES_timeToDestination]; + } else { + [parameters removeObjectForKey:NAMES_timeToDestination]; + } +} + +- (NSString *)timeToDestination { + return [parameters objectForKey:NAMES_timeToDestination]; +} + +- (void)setTotalDistance:(NSString *)totalDistance { + if (totalDistance != nil) { + [parameters setObject:totalDistance forKey:NAMES_totalDistance]; + } else { + [parameters removeObjectForKey:NAMES_totalDistance]; + } +} + +- (NSString *)totalDistance { + return [parameters objectForKey:NAMES_totalDistance]; +} + +- (void)setTurnIcon:(SDLImage *)turnIcon { + if (turnIcon != nil) { + [parameters setObject:turnIcon forKey:NAMES_turnIcon]; + } else { + [parameters removeObjectForKey:NAMES_turnIcon]; + } +} + +- (SDLImage *)turnIcon { + NSObject *obj = [parameters objectForKey:NAMES_turnIcon]; + if (obj == nil || [obj isKindOfClass:SDLImage.class]) { + return (SDLImage *)obj; + } else { + return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setNextTurnIcon:(SDLImage *)nextTurnIcon { + if (nextTurnIcon != nil) { + [parameters setObject:nextTurnIcon forKey:NAMES_nextTurnIcon]; + } else { + [parameters removeObjectForKey:NAMES_nextTurnIcon]; + } +} + +- (SDLImage *)nextTurnIcon { + NSObject *obj = [parameters objectForKey:NAMES_nextTurnIcon]; + if (obj == nil || [obj isKindOfClass:SDLImage.class]) { + return (SDLImage *)obj; + } else { + return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setDistanceToManeuver:(NSNumber *)distanceToManeuver { + if (distanceToManeuver != nil) { + [parameters setObject:distanceToManeuver forKey:NAMES_distanceToManeuver]; + } else { + [parameters removeObjectForKey:NAMES_distanceToManeuver]; + } +} + +- (NSNumber *)distanceToManeuver { + return [parameters objectForKey:NAMES_distanceToManeuver]; +} + +- (void)setDistanceToManeuverScale:(NSNumber *)distanceToManeuverScale { + if (distanceToManeuverScale != nil) { + [parameters setObject:distanceToManeuverScale forKey:NAMES_distanceToManeuverScale]; + } else { + [parameters removeObjectForKey:NAMES_distanceToManeuverScale]; + } +} + +- (NSNumber *)distanceToManeuverScale { + return [parameters objectForKey:NAMES_distanceToManeuverScale]; +} + +- (void)setManeuverComplete:(NSNumber *)maneuverComplete { + if (maneuverComplete != nil) { + [parameters setObject:maneuverComplete forKey:NAMES_maneuverComplete]; + } else { + [parameters removeObjectForKey:NAMES_maneuverComplete]; + } +} + +- (NSNumber *)maneuverComplete { + return [parameters objectForKey:NAMES_maneuverComplete]; +} + +- (void)setSoftButtons:(NSMutableArray *)softButtons { + if (softButtons != nil) { + [parameters setObject:softButtons forKey:NAMES_softButtons]; + } else { + [parameters removeObjectForKey:NAMES_softButtons]; + } +} + +- (NSMutableArray *)softButtons { + NSMutableArray *array = [parameters objectForKey:NAMES_softButtons]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButton.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLShowConstantTBTResponse.h b/SmartDeviceLink/SDLShowConstantTBTResponse.h new file mode 100644 index 000000000..8396f17a1 --- /dev/null +++ b/SmartDeviceLink/SDLShowConstantTBTResponse.h @@ -0,0 +1,16 @@ +// SDLShowConstantTBTResponse.h +// + + +#import "SDLRPCResponse.h" + +/** SDLShowConstantTBTResponse is sent, when SDLShowConstantTBT has been called. + * SinceSmartDeviceLink 2.0 + */ +@interface SDLShowConstantTBTResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLShowConstantTBTResponse.m b/SmartDeviceLink/SDLShowConstantTBTResponse.m new file mode 100644 index 000000000..995b16e1c --- /dev/null +++ b/SmartDeviceLink/SDLShowConstantTBTResponse.m @@ -0,0 +1,23 @@ +// SDLShowConstantTBTResponse.m +// + + +#import "SDLShowConstantTBTResponse.h" + +#import "SDLNames.h" + +@implementation SDLShowConstantTBTResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_ShowConstantTBT]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLShowResponse.h b/SmartDeviceLink/SDLShowResponse.h new file mode 100644 index 000000000..b0d558633 --- /dev/null +++ b/SmartDeviceLink/SDLShowResponse.h @@ -0,0 +1,26 @@ +// SDLShowResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Show Response is sent, when Show has been called + * + * Since SmartDeviceLink 1.0 + */ +@interface SDLShowResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLShowResponse object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLShowResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLShowResponse.m b/SmartDeviceLink/SDLShowResponse.m new file mode 100644 index 000000000..1ebb5dea9 --- /dev/null +++ b/SmartDeviceLink/SDLShowResponse.m @@ -0,0 +1,23 @@ +// SDLShowResponse.m +// + + +#import "SDLShowResponse.h" + +#import "SDLNames.h" + +@implementation SDLShowResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_Show]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLSingleTireStatus.h b/SmartDeviceLink/SDLSingleTireStatus.h new file mode 100644 index 000000000..897ba1bf8 --- /dev/null +++ b/SmartDeviceLink/SDLSingleTireStatus.h @@ -0,0 +1,33 @@ +// SDLSingleTireStatus.h +// + +#import "SDLRPCMessage.h" + +@class SDLComponentVolumeStatus; + + +/** + * Tire pressure status of a single tire. + * + * @since SmartDeviceLink 2.0 + */ +@interface SDLSingleTireStatus : SDLRPCStruct { +} + +/** + * @abstract Constructs a newly allocated SDLSingleTireStatus object + */ +- (instancetype)init; + +/** + * @abstract Constructs a newly allocated SDLSingleTireStatus object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The volume status of a single tire + */ +@property (strong) SDLComponentVolumeStatus *status; + +@end diff --git a/SmartDeviceLink/SDLSingleTireStatus.m b/SmartDeviceLink/SDLSingleTireStatus.m new file mode 100644 index 000000000..87826f32b --- /dev/null +++ b/SmartDeviceLink/SDLSingleTireStatus.m @@ -0,0 +1,41 @@ +// SDLSingleTireStatus.m +// + +#import "SDLSingleTireStatus.h" + +#import "SDLComponentVolumeStatus.h" +#import "SDLNames.h" + + +@implementation SDLSingleTireStatus + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setStatus:(SDLComponentVolumeStatus *)status { + if (status != nil) { + [store setObject:status forKey:NAMES_status]; + } else { + [store removeObjectForKey:NAMES_status]; + } +} + +- (SDLComponentVolumeStatus *)status { + NSObject *obj = [store objectForKey:NAMES_status]; + if (obj == nil || [obj isKindOfClass:SDLComponentVolumeStatus.class]) { + return (SDLComponentVolumeStatus *)obj; + } else { + return [SDLComponentVolumeStatus valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLSiphonServer.h b/SmartDeviceLink/SDLSiphonServer.h new file mode 100644 index 000000000..31033e7eb --- /dev/null +++ b/SmartDeviceLink/SDLSiphonServer.h @@ -0,0 +1,20 @@ +// SDLSiphonServer.h +// + + +#import + +@interface SDLSiphonServer : NSObject { +} + ++ (void)enableSiphonDebug; ++ (void)disableSiphonDebug; ++ (bool)_siphonRawTransportDataFromApp:(const void *)msgBytes msgBytesLength:(int)msgBytesLength; ++ (bool)_siphonRawTransportDataFromSDL:(const void *)msgBytes msgBytesLength:(int)msgBytesLength; ++ (bool)_siphonNSLogData:(NSString *)textToLog; ++ (bool)_siphonFormattedTraceData:(NSString *)traceData; ++ (bool)_siphonIsActive; ++ (void)init; ++ (void)dealloc; + +@end diff --git a/SmartDeviceLink/SDLSiphonServer.m b/SmartDeviceLink/SDLSiphonServer.m new file mode 100644 index 000000000..dbb433424 --- /dev/null +++ b/SmartDeviceLink/SDLSiphonServer.m @@ -0,0 +1,452 @@ +// SDLSiphonServer.m +// + + +/******************************* + * Description: + * This class opens a socket on port 7474. + * The 'sendSiphonData' Function will + * write to the socket that the SDL Relay Sniffer is + * listening on. + ******************************/ + +//#define ZERO_CONFIG //Uncomment when implementing zero-config. +//#define DEBUG_SIPHON //Uncomment to have output to NSLog. + +#import "SDLSiphonServer.h" +#import "SDLDebugTool.h" +#include +#include +#include +#include +#include +#include + +typedef enum { + fromApp = 0x01, + fromSDL = 0x00, + appLog = 0x02, + formattedTrace = 0x03 +} SiphonDataType; + +const Byte siphonMsgVersionNumber = 1; +volatile int siphonSocket = 0; +NSObject *siphonLock = nil; +CFSocketRef _listeningSocket; +NSNetService *netService = nil; +volatile bool initStarted = false; +bool siphonServerEnabled = false; +bool sendingFormattedTrace = false; +NSDate *startTimeStamp; +int FIRST_PORT_TO_ATTEMPT_CONNECTION = 7474; + +void _closeSiphonSocket(); +bool _sendDataToSiphonSocket(int soc, const void *pData, int dataLength); +bool _sendSiphonData(const void *dataBytes, int dataBytesLength, SiphonDataType siphonDataType); +void _startServerOnPort(int port); +void _stopServer(NSString *reason); + + +@implementation SDLSiphonServer + +// Model currently counts on init being called before any apps call _siphonNSLogData() +// The following is not thread safe (i.e. two threads could create siphon lock), +// but will assume for now that we won't have two transports created in the same proxy. ++ (void)init { + if (initStarted) { + return; + } // end-if + + if (!siphonLock) { + siphonLock = [NSData alloc]; + } // end-if + + @synchronized(siphonLock) { + if (initStarted) { + return; + } + + initStarted = true; + + startTimeStamp = [NSDate date]; + + _closeSiphonSocket(); + + _startServerOnPort(FIRST_PORT_TO_ATTEMPT_CONNECTION); + } +} + ++ (void)enableSiphonDebug { + siphonServerEnabled = true; +} + ++ (void)disableSiphonDebug { + siphonServerEnabled = false; +} + +void _closeSiphonSocket() { +#ifdef DEBUG_SIPHON + NSLog(@"siphon: Resetting siphon socket ..."); +#endif + if (siphonLock) { + @synchronized(siphonLock) { + if (siphonSocket) { + close(siphonSocket); + siphonSocket = 0; + } // end-if + } // end-lock + } // end-if +#ifdef DEBUG_SIPHON + NSLog(@"siphon: siphon socket reset complete"); +#endif +} // end-method + ++ (void)dealloc { +#ifdef ZERO_CONFIG + _stopServer(@"Shutting Down"); +#endif +} + ++ (bool)_siphonIsActive { + if (siphonSocket == 0) { + return NO; + } + return YES; +} + + ++ (bool)_siphonFormattedTraceData:(NSString *)traceData { + if ((traceData == NULL) || (traceData.length == 0)) { + return NO; + } // end-if + + NSData *traceBytes = [traceData dataUsingEncoding:NSUTF8StringEncoding]; + + if (traceBytes == nil) { + return NO; + } // end-if + + bool dataSent = NO; + + sendingFormattedTrace = true; + + dataSent = _sendSiphonData(traceBytes.bytes, (int)traceBytes.length, formattedTrace); + + return dataSent; +} // end-method + ++ (bool)_siphonNSLogData:(NSString *)textToLog { + if ((textToLog == NULL) || (textToLog.length == 0)) { + return NO; + } // end-if + + NSData *textBytes = [textToLog dataUsingEncoding:NSUTF8StringEncoding]; + + if (textBytes == nil) { + return NO; + } // end-if + + bool dataSent = NO; + + dataSent = _sendSiphonData(textBytes.bytes, (int)textBytes.length, appLog); + + return dataSent; +} // end-method + ++ (bool)_siphonRawTransportDataFromApp:(const void *)msgBytes msgBytesLength:(int)msgBytesLength { + if (sendingFormattedTrace) { + return false; + } // end-if + + if (msgBytes == NULL || msgBytesLength == 0) { + return false; + } // end-if + + return _sendSiphonData(msgBytes, msgBytesLength, fromApp); +} + ++ (bool)_siphonRawTransportDataFromSDL:(const void *)msgBytes msgBytesLength:(int)msgBytesLength { + if (sendingFormattedTrace) { + return false; + } // end-if + + if (msgBytes == NULL || msgBytesLength == 0) { + return false; + } // end-if + + return _sendSiphonData(msgBytes, msgBytesLength, fromSDL); +} + +bool _sendSiphonData(const void *dataBytes, int dataBytesLength, SiphonDataType siphonDataType) { + bool wasSent = NO; + + if (dataBytes == NULL || dataBytesLength == 0 || !siphonServerEnabled) { + return false; + } // end-if + + NSDate *currentTime = [NSDate date]; + NSTimeInterval deltaTimeMillis = ([currentTime timeIntervalSinceDate:startTimeStamp] * 1000.0); + uint32_t integerDeltaTimeMillis = ((uint32_t)deltaTimeMillis); + + integerDeltaTimeMillis = htonl(integerDeltaTimeMillis); + + if (siphonLock) { + @synchronized(siphonLock) { + if (siphonSocket) { + Byte sdt = (Byte)siphonDataType; + sdt = (Byte)0x80 | sdt; + uint32_t sizeBytes = htonl(dataBytesLength + sizeof(sdt) + sizeof(integerDeltaTimeMillis) + sizeof(siphonMsgVersionNumber)); + + wasSent = _sendDataToSiphonSocket(siphonSocket, &sizeBytes, sizeof(sizeBytes)); + + if (wasSent) { + wasSent = _sendDataToSiphonSocket(siphonSocket, &sdt, sizeof(sdt)); + } + + if (wasSent) { + wasSent = _sendDataToSiphonSocket(siphonSocket, &siphonMsgVersionNumber, sizeof(siphonMsgVersionNumber)); + } + + if (wasSent) { + wasSent = _sendDataToSiphonSocket(siphonSocket, &integerDeltaTimeMillis, sizeof(integerDeltaTimeMillis)); + } + + if (wasSent) { + wasSent = _sendDataToSiphonSocket(siphonSocket, dataBytes, dataBytesLength); + } + + if (wasSent) { + return YES; + } else { +#ifdef DEBUG_SIPHON + NSLog(@"siphon: failure sending to siphon socket"); +#endif + _closeSiphonSocket(); + return NO; + } // end-if + } else { +#ifdef DEBUG_SIPHON + NSLog(@"siphon: siphon socket is NULL"); +#endif + } // end-if + } //end Synchronized + } // end-if + return NO; + +} // end-method + +bool _sendDataToSiphonSocket(int soc, const void *pData, int dataLength) { + int bytesRemainingToSend = dataLength; + ssize_t bytesSent = 0; + const UInt8 *pd = pData; + + if (pData == NULL || dataLength == 0) { + return false; + } // end-if + + while (bytesRemainingToSend > 0) { + if (soc) { + bytesSent = send(soc, pd, bytesRemainingToSend, 0); + + if (bytesSent == -1) { +#ifdef DEBUG_SIPHON + NSLog(@"siphon: got bytesSent==-1 on send(siphonSocket)"); +#endif + return NO; + } // end-if + + bytesRemainingToSend -= bytesSent; + pd += bytesSent; + } // end-if + + } // end-while + + return YES; + +} // end-method + + +void _serverDidStartOnPort(int port) { +#ifdef DEBUG_SIPHON + NSLog(@"siphon: server started on port: %d", port); +#endif +} + +#ifdef ZERO_CONFIG + +#pragma mark +#pragma mark Server + +- (void)_didSendData:(NSData *)data { +} + +void _serverDidStopWithReason(NSString *reason) { +} + +- (void)_updateStatus:(NSString *)statusString { + NSLog(@"siphon: %@", statusString); +} + +- (void)_SendDidStopWithStatus:(NSString *)statusString { + NSLog(@"siphon: server configured for output"); +} + +- (BOOL)isStarted { + return (netService != nil); +} +#endif + + +void _acceptConnection(int fd) { + if (siphonLock) { + @synchronized(siphonLock) { + int socketOps = 1; + + _closeSiphonSocket(); +#ifdef DEBUG_SIPHON + NSLog(@"siphon: storing newly accepted siphon socket handle %08x ...", fd); +#endif + siphonSocket = fd; + + setsockopt(siphonSocket, SOL_SOCKET, SO_NOSIGPIPE, (void *)&socketOps, sizeof(int)); + [SDLDebugTool logInfo:@"Siphon connected." withType:SDLDebugType_Debug]; + + } // end-lock + } // end-if + return; +} + +static void AcceptCallback(CFSocketRef s, CFSocketCallBackType type, CFDataRef address, const void *data, void *info) { +#ifdef DEBUG_SIPHON + NSLog(@"siphon: accepted siphon connection ..."); +#endif + +#pragma unused(type) + assert(type == kCFSocketAcceptCallBack); +#pragma unused(address) + assert(data != NULL); + +#pragma unused(s) + assert(s == _listeningSocket); + + _acceptConnection(*(int *)data); +} + + +#ifdef ZERO_CONFIG +- (void)netService:(NSNetService *)sender didNotPublish:(NSDictionary *)errorDict { +#pragma unused(sender) + assert(sender == netService); +#pragma unused(errorDict) + + _stopServer(@"Registration failed"); +} +#endif + +void _startServerOnPort(int port) { + BOOL success; + int err; + int fd; + struct sockaddr_in addr; + int const retryLimit = 1000; + + fd = socket(AF_INET, SOCK_STREAM, 0); + success = (fd != -1); + + if (success) { + memset(&addr, 0, sizeof(addr)); + addr.sin_len = sizeof(addr); + addr.sin_family = AF_INET; + + addr.sin_addr.s_addr = INADDR_ANY; + + bool openPortFound = false; + short bindPort = (short)port; + success = false; + for (int retryCount = 0; retryCount < retryLimit && !openPortFound; retryCount++) { + addr.sin_port = htons(bindPort); + err = bind(fd, (const struct sockaddr *)&addr, sizeof(addr)); + if (err == 0) { + openPortFound = true; + success = (err == 0); + port = bindPort; + } else { + bindPort++; + } + } // end-for + } + if (success) { + err = listen(fd, 5); + success = (err == 0); + } + if (success) { + socklen_t addrLen; + + addrLen = sizeof(addr); + err = getsockname(fd, (struct sockaddr *)&addr, &addrLen); + success = (err == 0); + + if (success) { + assert(addrLen == sizeof(addr)); + port = ntohs(addr.sin_port); + } +#ifdef DEBUG_SIPHON + NSLog(@"siphon: my port is %d ", port); +#endif + } + if (success) { + _listeningSocket = CFSocketCreateWithNative( + NULL, + fd, + kCFSocketAcceptCallBack, + AcceptCallback, + NULL); + success = (_listeningSocket != NULL); + + if (success) { + CFRunLoopSourceRef rls; + fd = -1; + rls = CFSocketCreateRunLoopSource(NULL, _listeningSocket, 0); + assert(rls != NULL); + CFRunLoopAddSource(CFRunLoopGetCurrent(), rls, kCFRunLoopDefaultMode); + CFRelease(rls); + } + } + +#ifdef ZERO_CONFIG + + if (success) { + UIDevice *device = [UIDevice currentDevice]; + ; + NSString *serviceName = [NSString stringWithFormat:@"%@_%d ", device.name, port]; + netService = [[[NSNetService alloc] initWithDomain:@"local." type:@"_sync._tcp." name:serviceName port:port] autorelease]; + success = (netService != nil); + } + if (success) { + [netService publishWithOptions:NSNetServiceNoAutoRename]; + } + + if (success) { + assert(port != 0); + _serverDidStartOnPort(port); + } else { + _stopServer(@"Start failed"); + if (fd != -1) { + assert(startFailed == 0); + } + } + +#endif +} + +void _stopServer(NSString *reason) { +#ifdef ZERO_CONFIG + if (netService != nil) { + [netService stop]; + netService = nil; + } + _serverDidStopWithReason(reason); +#endif +} + +@end diff --git a/SmartDeviceLink/SDLSlider.h b/SmartDeviceLink/SDLSlider.h new file mode 100644 index 000000000..04724d780 --- /dev/null +++ b/SmartDeviceLink/SDLSlider.h @@ -0,0 +1,75 @@ +// SDLSlider.h +// + + +#import "SDLRPCRequest.h" + +/** + * Creates a full screen or pop-up overlay (depending on platform) with a single user controlled slider + * + * HMILevel needs to be FULL + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLSlider : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLSlider object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLSlider object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract Represents a number of selectable items on a horizontal axis + * + * Required, Integer, 2 - 26 + */ +@property (strong) NSNumber *numTicks; + +/** + * @abstract An Initial position of slider control + * + * Required, Integer, 1 - 26 + */ +@property (strong) NSNumber *position; + +/** + * @abstract A text header to display + * + * Rquired, Max length 500 chars + */ +@property (strong) NSString *sliderHeader; + +/** + * @abstract A text footer to display + * + * @discussion For a static text footer, only one footer string shall be provided in the array. + * + * For a dynamic text footer, the number of footer text string in the array must match the numTicks value. + * + * For a dynamic text footer, text array string should correlate with potential slider position index. + * + * If omitted on supported displays, no footer text shall be displayed. + * + * Optional, Array of Strings, Array length 1 - 26, Max string length 500 chars + */ +@property (strong) NSMutableArray *sliderFooter; + +/** + * @abstract An App defined timeout + * + * @discussion Indicates how long of a timeout from the last action (i.e. sliding control resets timeout). + * + * If omitted, the value is set to 10000. + * + * Optional, Integer, 1000 - 65535 + */ +@property (strong) NSNumber *timeout; + +@end diff --git a/SmartDeviceLink/SDLSlider.m b/SmartDeviceLink/SDLSlider.m new file mode 100644 index 000000000..80a56d1aa --- /dev/null +++ b/SmartDeviceLink/SDLSlider.m @@ -0,0 +1,83 @@ +// SDLSlider.m +// + + +#import "SDLSlider.h" + +#import "SDLNames.h" + +@implementation SDLSlider + +- (instancetype)init { + if (self = [super initWithName:NAMES_Slider]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setNumTicks:(NSNumber *)numTicks { + if (numTicks != nil) { + [parameters setObject:numTicks forKey:NAMES_numTicks]; + } else { + [parameters removeObjectForKey:NAMES_numTicks]; + } +} + +- (NSNumber *)numTicks { + return [parameters objectForKey:NAMES_numTicks]; +} + +- (void)setPosition:(NSNumber *)position { + if (position != nil) { + [parameters setObject:position forKey:NAMES_position]; + } else { + [parameters removeObjectForKey:NAMES_position]; + } +} + +- (NSNumber *)position { + return [parameters objectForKey:NAMES_position]; +} + +- (void)setSliderHeader:(NSString *)sliderHeader { + if (sliderHeader != nil) { + [parameters setObject:sliderHeader forKey:NAMES_sliderHeader]; + } else { + [parameters removeObjectForKey:NAMES_sliderHeader]; + } +} + +- (NSString *)sliderHeader { + return [parameters objectForKey:NAMES_sliderHeader]; +} + +- (void)setSliderFooter:(NSMutableArray *)sliderFooter { + if (sliderFooter != nil) { + [parameters setObject:sliderFooter forKey:NAMES_sliderFooter]; + } else { + [parameters removeObjectForKey:NAMES_sliderFooter]; + } +} + +- (NSMutableArray *)sliderFooter { + return [parameters objectForKey:NAMES_sliderFooter]; +} + +- (void)setTimeout:(NSNumber *)timeout { + if (timeout != nil) { + [parameters setObject:timeout forKey:NAMES_timeout]; + } else { + [parameters removeObjectForKey:NAMES_timeout]; + } +} + +- (NSNumber *)timeout { + return [parameters objectForKey:NAMES_timeout]; +} + +@end diff --git a/SmartDeviceLink/SDLSliderResponse.h b/SmartDeviceLink/SDLSliderResponse.h new file mode 100644 index 000000000..5b38b7f0f --- /dev/null +++ b/SmartDeviceLink/SDLSliderResponse.h @@ -0,0 +1,31 @@ +// SDLSliderResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Slider Response is sent, when Slider has been called + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLSliderResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLSliderResponse object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLSliderResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The selected position of the slider. + */ +@property (strong) NSNumber *sliderPosition; + +@end diff --git a/SmartDeviceLink/SDLSliderResponse.m b/SmartDeviceLink/SDLSliderResponse.m new file mode 100644 index 000000000..927ad569d --- /dev/null +++ b/SmartDeviceLink/SDLSliderResponse.m @@ -0,0 +1,35 @@ +// SDLSliderResponse.m +// + + +#import "SDLSliderResponse.h" + +#import "SDLNames.h" + +@implementation SDLSliderResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_Slider]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setSliderPosition:(NSNumber *)sliderPosition { + if (sliderPosition != nil) { + [parameters setObject:sliderPosition forKey:NAMES_sliderPosition]; + } else { + [parameters removeObjectForKey:NAMES_sliderPosition]; + } +} + +- (NSNumber *)sliderPosition { + return [parameters objectForKey:NAMES_sliderPosition]; +} + +@end diff --git a/SmartDeviceLink/SDLSoftButton.h b/SmartDeviceLink/SDLSoftButton.h new file mode 100644 index 000000000..db2393ae7 --- /dev/null +++ b/SmartDeviceLink/SDLSoftButton.h @@ -0,0 +1,24 @@ +// SDLSoftButton.h +// + +#import "SDLRPCMessage.h" + +@class SDLImage; +@class SDLSoftButtonType; +@class SDLSystemAction; + + +@interface SDLSoftButton : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLSoftButtonType *type; +@property (strong) NSString *text; +@property (strong) SDLImage *image; +@property (strong) NSNumber *isHighlighted; +@property (strong) NSNumber *softButtonID; +@property (strong) SDLSystemAction *systemAction; + +@end diff --git a/SmartDeviceLink/SDLSoftButton.m b/SmartDeviceLink/SDLSoftButton.m new file mode 100644 index 000000000..a93ce510c --- /dev/null +++ b/SmartDeviceLink/SDLSoftButton.m @@ -0,0 +1,113 @@ +// SDLSoftButton.m +// + +#import "SDLSoftButton.h" + +#import "SDLImage.h" +#import "SDLNames.h" +#import "SDLSoftButtonType.h" +#import "SDLSystemAction.h" + + +@implementation SDLSoftButton + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setType:(SDLSoftButtonType *)type { + if (type != nil) { + [store setObject:type forKey:NAMES_type]; + } else { + [store removeObjectForKey:NAMES_type]; + } +} + +- (SDLSoftButtonType *)type { + NSObject *obj = [store objectForKey:NAMES_type]; + if (obj == nil || [obj isKindOfClass:SDLSoftButtonType.class]) { + return (SDLSoftButtonType *)obj; + } else { + return [SDLSoftButtonType valueOf:(NSString *)obj]; + } +} + +- (void)setText:(NSString *)text { + if (text != nil) { + [store setObject:text forKey:NAMES_text]; + } else { + [store removeObjectForKey:NAMES_text]; + } +} + +- (NSString *)text { + return [store objectForKey:NAMES_text]; +} + +- (void)setImage:(SDLImage *)image { + if (image != nil) { + [store setObject:image forKey:NAMES_image]; + } else { + [store removeObjectForKey:NAMES_image]; + } +} + +- (SDLImage *)image { + NSObject *obj = [store objectForKey:NAMES_image]; + if (obj == nil || [obj isKindOfClass:SDLImage.class]) { + return (SDLImage *)obj; + } else { + return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setIsHighlighted:(NSNumber *)isHighlighted { + if (isHighlighted != nil) { + [store setObject:isHighlighted forKey:NAMES_isHighlighted]; + } else { + [store removeObjectForKey:NAMES_isHighlighted]; + } +} + +- (NSNumber *)isHighlighted { + return [store objectForKey:NAMES_isHighlighted]; +} + +- (void)setSoftButtonID:(NSNumber *)softButtonID { + if (softButtonID != nil) { + [store setObject:softButtonID forKey:NAMES_softButtonID]; + } else { + [store removeObjectForKey:NAMES_softButtonID]; + } +} + +- (NSNumber *)softButtonID { + return [store objectForKey:NAMES_softButtonID]; +} + +- (void)setSystemAction:(SDLSystemAction *)systemAction { + if (systemAction != nil) { + [store setObject:systemAction forKey:NAMES_systemAction]; + } else { + [store removeObjectForKey:NAMES_systemAction]; + } +} + +- (SDLSystemAction *)systemAction { + NSObject *obj = [store objectForKey:NAMES_systemAction]; + if (obj == nil || [obj isKindOfClass:SDLSystemAction.class]) { + return (SDLSystemAction *)obj; + } else { + return [SDLSystemAction valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLSoftButtonCapabilities.h b/SmartDeviceLink/SDLSoftButtonCapabilities.h new file mode 100644 index 000000000..ca9eeb2bf --- /dev/null +++ b/SmartDeviceLink/SDLSoftButtonCapabilities.h @@ -0,0 +1,60 @@ +// SDLSoftButtonCapabilities.h +// + + +#import "SDLRPCMessage.h" + +/** + * Contains information about a SoftButton's capabilities. + * + * @since SDL 2.0 + */ +@interface SDLSoftButtonCapabilities : SDLRPCStruct { +} + +/** + * @abstract Constructs a newly allocated SDLSoftButtonCapabilities object + */ +- (instancetype)init; + +/** + * @abstract Constructs a newly allocated SDLSoftButtonCapabilities object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The button supports a short press. + * + * @discussion Whenever the button is pressed short, onButtonPressed(SHORT) will be invoked. + * + * Required, Boolean + */ +@property (strong) NSNumber *shortPressAvailable; + +/** + * @abstract The button supports a LONG press. + * + * @discussion Whenever the button is pressed long, onButtonPressed(LONG) will be invoked. + * + * Required, Boolean + */ +@property (strong) NSNumber *longPressAvailable; + +/** + * @abstract The button supports "button down" and "button up". + * + * @discussion Whenever the button is pressed, onButtonEvent(DOWN) will be invoked. Whenever the button is released, onButtonEvent(UP) will be invoked. + * + * Required, Boolean + */ +@property (strong) NSNumber *upDownAvailable; + +/** + * @abstract The button supports referencing a static or dynamic image. + * + * Required, Boolean + */ +@property (strong) NSNumber *imageSupported; + +@end diff --git a/SmartDeviceLink/SDLSoftButtonCapabilities.m b/SmartDeviceLink/SDLSoftButtonCapabilities.m new file mode 100644 index 000000000..d9a502db1 --- /dev/null +++ b/SmartDeviceLink/SDLSoftButtonCapabilities.m @@ -0,0 +1,71 @@ +// SDLSoftButtonCapabilities.m +// + + +#import "SDLSoftButtonCapabilities.h" + +#import "SDLNames.h" + +@implementation SDLSoftButtonCapabilities + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setShortPressAvailable:(NSNumber *)shortPressAvailable { + if (shortPressAvailable != nil) { + [store setObject:shortPressAvailable forKey:NAMES_shortPressAvailable]; + } else { + [store removeObjectForKey:NAMES_shortPressAvailable]; + } +} + +- (NSNumber *)shortPressAvailable { + return [store objectForKey:NAMES_shortPressAvailable]; +} + +- (void)setLongPressAvailable:(NSNumber *)longPressAvailable { + if (longPressAvailable != nil) { + [store setObject:longPressAvailable forKey:NAMES_longPressAvailable]; + } else { + [store removeObjectForKey:NAMES_longPressAvailable]; + } +} + +- (NSNumber *)longPressAvailable { + return [store objectForKey:NAMES_longPressAvailable]; +} + +- (void)setUpDownAvailable:(NSNumber *)upDownAvailable { + if (upDownAvailable != nil) { + [store setObject:upDownAvailable forKey:NAMES_upDownAvailable]; + } else { + [store removeObjectForKey:NAMES_upDownAvailable]; + } +} + +- (NSNumber *)upDownAvailable { + return [store objectForKey:NAMES_upDownAvailable]; +} + +- (void)setImageSupported:(NSNumber *)imageSupported { + if (imageSupported != nil) { + [store setObject:imageSupported forKey:NAMES_imageSupported]; + } else { + [store removeObjectForKey:NAMES_imageSupported]; + } +} + +- (NSNumber *)imageSupported { + return [store objectForKey:NAMES_imageSupported]; +} + +@end diff --git a/SmartDeviceLink/SDLSoftButtonType.h b/SmartDeviceLink/SDLSoftButtonType.h new file mode 100644 index 000000000..d2b59a8d5 --- /dev/null +++ b/SmartDeviceLink/SDLSoftButtonType.h @@ -0,0 +1,41 @@ +// SDLSoftButtonType.h +// + + +#import "SDLEnum.h" + +/** + SoftButtonType (TEXT / IMAGE / BOTH) + */ +@interface SDLSoftButtonType : SDLEnum { +} + +/** + @abstract get SDLSoftButtonType according value string + @param value NSString + @return SDLSoftButtonType object + */ ++ (SDLSoftButtonType *)valueOf:(NSString *)value; +/** + @abstract declare an array to store all possible SDLSoftButtonType values + @return the array + */ ++ (NSArray *)values; + +/** + @abstract Text kind Softbutton + @return SDLSoftButtonType object with string value *TEXT* + */ ++ (SDLSoftButtonType *)TEXT; +/** + @abstract Image kind Softbutton + @return SDLSoftButtonType object with string value *IMAGE* + */ ++ (SDLSoftButtonType *)IMAGE; +/** + @abstract Both (Text & Image) kind Softbutton + @return SDLSoftButtonType object with string value *BOTH* + */ ++ (SDLSoftButtonType *)BOTH; + +@end diff --git a/SmartDeviceLink/SDLSoftButtonType.m b/SmartDeviceLink/SDLSoftButtonType.m new file mode 100644 index 000000000..9add8edfe --- /dev/null +++ b/SmartDeviceLink/SDLSoftButtonType.m @@ -0,0 +1,56 @@ +// SDLSoftButtonType.m +// + + +#import "SDLSoftButtonType.h" + +SDLSoftButtonType *SDLSoftButtonType_TEXT = nil; +SDLSoftButtonType *SDLSoftButtonType_IMAGE = nil; +SDLSoftButtonType *SDLSoftButtonType_BOTH = nil; + +NSArray *SDLSoftButtonType_values = nil; + +@implementation SDLSoftButtonType + ++ (SDLSoftButtonType *)valueOf:(NSString *)value { + for (SDLSoftButtonType *item in SDLSoftButtonType.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLSoftButtonType_values == nil) { + SDLSoftButtonType_values = @[ + SDLSoftButtonType.TEXT, + SDLSoftButtonType.IMAGE, + SDLSoftButtonType.BOTH, + ]; + } + return SDLSoftButtonType_values; +} + ++ (SDLSoftButtonType *)TEXT { + if (SDLSoftButtonType_TEXT == nil) { + SDLSoftButtonType_TEXT = [[SDLSoftButtonType alloc] initWithValue:@"TEXT"]; + } + return SDLSoftButtonType_TEXT; +} + ++ (SDLSoftButtonType *)IMAGE { + if (SDLSoftButtonType_IMAGE == nil) { + SDLSoftButtonType_IMAGE = [[SDLSoftButtonType alloc] initWithValue:@"IMAGE"]; + } + return SDLSoftButtonType_IMAGE; +} + ++ (SDLSoftButtonType *)BOTH { + if (SDLSoftButtonType_BOTH == nil) { + SDLSoftButtonType_BOTH = [[SDLSoftButtonType alloc] initWithValue:@"BOTH"]; + } + return SDLSoftButtonType_BOTH; +} + +@end diff --git a/SmartDeviceLink/SDLSpeak.h b/SmartDeviceLink/SDLSpeak.h new file mode 100644 index 000000000..8e6eb8e7e --- /dev/null +++ b/SmartDeviceLink/SDLSpeak.h @@ -0,0 +1,64 @@ +// SDLSpeak.h +// + +#import "SDLRPCRequest.h" + +/** + * Speaks a phrase over the vehicle audio system using SDL's TTS (text-to-speech) engine. The provided text to be spoken can be simply a text phrase, or it can consist of phoneme specifications to direct SDL's TTS engine to speak a "speech-sculpted" phrase. + * + * Receipt of the Response indicates the completion of the Speak operation, regardless of how the Speak operation may have completed (i.e. successfully, interrupted, terminated, etc.). + * + * Requesting a new Speak operation while the application has another Speak operation already in progress (i.e. no corresponding Response for that in-progress Speak operation has been received yet) will terminate the in-progress Speak operation (causing its corresponding Response to be sent by SDL) and begin the requested Speak operation + * + * Requesting a new Speak operation while the application has an SDLAlert operation already in progress (i.e. no corresponding Response for that in-progress SDLAlert operation has been received yet) will result in the Speak operation request being rejected (indicated in the Response to the Request) + * + * Requesting a new SDLAlert operation while the application has a Speak operation already in progress (i.e. no corresponding Response for that in-progress Speak operation has been received yet) will terminate the in-progress Speak operation (causing its corresponding Response to be sent by SDL) and begin the requested SDLAlert operation + * + * Requesting a new Speak operation while the application has a SDLPerformInteraction operation already in progress (i.e. no corresponding Response for that in-progress SDLPerformInteraction operation has been received yet) will result in the Speak operation request being rejected (indicated in the Response to the Request) + * + * Requesting a SDLPerformInteraction operation while the application has a Speak operation already in progress (i.e. no corresponding Response for that in-progress Speak operation has been received yet) will terminate the in-progress Speak operation (causing its corresponding Response to be sent by SDL) and begin the requested SDLPerformInteraction operation + * + * HMI Status Requirements: + *

  • HMILevel: FULL, Limited
  • + *
  • AudioStreamingState: Any
  • + *
  • SystemContext: MAIN, MENU, VR
  • + + * Notes: + *
  • When SDLAlert is issued with MENU in effect, SDLAlert is queued and "played" when MENU interaction is completed (i.e. SystemContext reverts to MAIN). When SDLAlert + * is issued with VR in effect, SDLAlert is queued and "played" when VR interaction is completed (i.e. SystemContext reverts to MAIN)
  • + *
  • When both SDLAlert and Speak are queued during MENU or VR, they are "played" back in the order in which they were queued, with all existing rules for "collisions" still in effect
  • + * + * Additional Notes: + *
  • Total character limit depends on platform.
  • + *
  • Chunks are limited to 500 characters; however you can have multiple TTS chunks.
  • + *
  • On old systems there is a total character limit of 500 characters across all chunks. This could vary according to the VCA.
  • + * + * @since SmartDeviceLink 1.0 + * @see SDLAlert + */ +@interface SDLSpeak : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLSpeak object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLSpeak object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract An array of TTSChunk structs which, taken together, specify the phrase to be spoken + * + * @discussion The total length of the phrase composed from the ttsChunks provided must be less than 500 characters or the request will be rejected + * + * Required, Array of SDLTTSChunk, Array size 1 - 100 + * + * @see SDLTTSChunk + */ +@property (strong) NSMutableArray *ttsChunks; + +@end diff --git a/SmartDeviceLink/SDLSpeak.m b/SmartDeviceLink/SDLSpeak.m new file mode 100644 index 000000000..8f19b925b --- /dev/null +++ b/SmartDeviceLink/SDLSpeak.m @@ -0,0 +1,45 @@ +// SDLSpeak.m +// + + +#import "SDLSpeak.h" + +#import "SDLNames.h" +#import "SDLTTSChunk.h" + +@implementation SDLSpeak + +- (instancetype)init { + if (self = [super initWithName:NAMES_Speak]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setTtsChunks:(NSMutableArray *)ttsChunks { + if (ttsChunks != nil) { + [parameters setObject:ttsChunks forKey:NAMES_ttsChunks]; + } else { + [parameters removeObjectForKey:NAMES_ttsChunks]; + } +} + +- (NSMutableArray *)ttsChunks { + NSMutableArray *array = [parameters objectForKey:NAMES_ttsChunks]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTTSChunk.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTTSChunk alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLSpeakResponse.h b/SmartDeviceLink/SDLSpeakResponse.h new file mode 100644 index 000000000..2a7eef046 --- /dev/null +++ b/SmartDeviceLink/SDLSpeakResponse.h @@ -0,0 +1,26 @@ +// SDLSpeakResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Speak Response is sent, when Speak has been called + * + * Since SmartDeviceLink 1.0 + */ +@interface SDLSpeakResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLSpeakResponse object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLSpeakResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLSpeakResponse.m b/SmartDeviceLink/SDLSpeakResponse.m new file mode 100644 index 000000000..dfb8dff33 --- /dev/null +++ b/SmartDeviceLink/SDLSpeakResponse.m @@ -0,0 +1,23 @@ +// SDLSpeakResponse.m +// + + +#import "SDLSpeakResponse.h" + +#import "SDLNames.h" + +@implementation SDLSpeakResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_Speak]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLSpeechCapabilities.h b/SmartDeviceLink/SDLSpeechCapabilities.h new file mode 100644 index 000000000..9529e3fef --- /dev/null +++ b/SmartDeviceLink/SDLSpeechCapabilities.h @@ -0,0 +1,46 @@ +// SDLSpeechCapabilities.h +// + + +#import "SDLEnum.h" + +/* + * Contains information about TTS capabilities on the SDL platform. + * + * @since SDL 1.0 + */ +@interface SDLSpeechCapabilities : SDLEnum { +} + +/** + * @abstract get SDLSpeechCapabilities according value string + * + * @param value The value of the string to get an object for + * + * @return SDLSpeechCapabilities object + */ ++ (SDLSpeechCapabilities *)valueOf:(NSString *)value; + +/** + * @abstract declare an array to store all possible SDLSpeechCapabilities values + * + * @return the array of all possible values + */ ++ (NSArray *)values; + +/** + * @abstract The SDL platform can speak text phrases. + * + * @return SDLSpeechCapabilities of value: *TEXT* + */ ++ (SDLSpeechCapabilities *)TEXT; + ++ (SDLSpeechCapabilities *)SAPI_PHONEMES; + ++ (SDLSpeechCapabilities *)LHPLUS_PHONEMES; + ++ (SDLSpeechCapabilities *)PRE_RECORDED; + ++ (SDLSpeechCapabilities *)SILENCE; + +@end diff --git a/SmartDeviceLink/SDLSpeechCapabilities.m b/SmartDeviceLink/SDLSpeechCapabilities.m new file mode 100644 index 000000000..2018b8321 --- /dev/null +++ b/SmartDeviceLink/SDLSpeechCapabilities.m @@ -0,0 +1,74 @@ +// SDLSpeechCapabilities.m +// + + +#import "SDLSpeechCapabilities.h" + +SDLSpeechCapabilities *SDLSpeechCapabilities_TEXT = nil; +SDLSpeechCapabilities *SDLSpeechCapabilities_SAPI_PHONEMES = nil; +SDLSpeechCapabilities *SDLSpeechCapabilities_LHPLUS_PHONEMES = nil; +SDLSpeechCapabilities *SDLSpeechCapabilities_PRE_RECORDED = nil; +SDLSpeechCapabilities *SDLSpeechCapabilities_SILENCE = nil; + +NSArray *SDLSpeechCapabilities_values = nil; + +@implementation SDLSpeechCapabilities + ++ (SDLSpeechCapabilities *)valueOf:(NSString *)value { + for (SDLSpeechCapabilities *item in SDLSpeechCapabilities.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLSpeechCapabilities_values == nil) { + SDLSpeechCapabilities_values = @[ + SDLSpeechCapabilities.TEXT, + SDLSpeechCapabilities.SAPI_PHONEMES, + SDLSpeechCapabilities.LHPLUS_PHONEMES, + SDLSpeechCapabilities.PRE_RECORDED, + SDLSpeechCapabilities.SILENCE, + ]; + } + return SDLSpeechCapabilities_values; +} + ++ (SDLSpeechCapabilities *)TEXT { + if (SDLSpeechCapabilities_TEXT == nil) { + SDLSpeechCapabilities_TEXT = [[SDLSpeechCapabilities alloc] initWithValue:@"TEXT"]; + } + return SDLSpeechCapabilities_TEXT; +} + ++ (SDLSpeechCapabilities *)SAPI_PHONEMES { + if (SDLSpeechCapabilities_SAPI_PHONEMES == nil) { + SDLSpeechCapabilities_SAPI_PHONEMES = [[SDLSpeechCapabilities alloc] initWithValue:@"SAPI_PHONEMES"]; + } + return SDLSpeechCapabilities_SAPI_PHONEMES; +} + ++ (SDLSpeechCapabilities *)LHPLUS_PHONEMES { + if (SDLSpeechCapabilities_LHPLUS_PHONEMES == nil) { + SDLSpeechCapabilities_LHPLUS_PHONEMES = [[SDLSpeechCapabilities alloc] initWithValue:@"LHPLUS_PHONEMES"]; + } + return SDLSpeechCapabilities_LHPLUS_PHONEMES; +} + ++ (SDLSpeechCapabilities *)PRE_RECORDED { + if (SDLSpeechCapabilities_PRE_RECORDED == nil) { + SDLSpeechCapabilities_PRE_RECORDED = [[SDLSpeechCapabilities alloc] initWithValue:@"PRE_RECORDED"]; + } + return SDLSpeechCapabilities_PRE_RECORDED; +} + ++ (SDLSpeechCapabilities *)SILENCE { + if (SDLSpeechCapabilities_SILENCE == nil) { + SDLSpeechCapabilities_SILENCE = [[SDLSpeechCapabilities alloc] initWithValue:@"SILENCE"]; + } + return SDLSpeechCapabilities_SILENCE; +} + +@end diff --git a/SmartDeviceLink/SDLStartTime.h b/SmartDeviceLink/SDLStartTime.h new file mode 100644 index 000000000..55eb147d6 --- /dev/null +++ b/SmartDeviceLink/SDLStartTime.h @@ -0,0 +1,49 @@ +// SDLStartTime.h +// + + +#import "SDLRPCMessage.h" + +/** + * Describes the hour, minute and second values used to set the media clock. + * + * @since SDL 1.0 + */ +@interface SDLStartTime : SDLRPCStruct { +} + +/** + * @abstract Constructs a newly allocated SDLStartTime object + */ +- (instancetype)init; + +/** + * @abstract Constructs a newly allocated SDLStartTime object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The hour of the media clock + * + * @discussion Some display types only support a max value of 19. If out of range, it will be rejected. + * + * Required, Integer, 0 - 59 + */ +@property (strong) NSNumber *hours; + +/** + * @abstract The minute of the media clock + * + * Required, Integer, 0 - 59 + */ +@property (strong) NSNumber *minutes; + +/** + * @abstract The second of the media clock + * + * Required, Integer, 0 - 59 + */ +@property (strong) NSNumber *seconds; + +@end diff --git a/SmartDeviceLink/SDLStartTime.m b/SmartDeviceLink/SDLStartTime.m new file mode 100644 index 000000000..4745bf712 --- /dev/null +++ b/SmartDeviceLink/SDLStartTime.m @@ -0,0 +1,59 @@ +// SDLStartTime.m +// + + +#import "SDLStartTime.h" + +#import "SDLNames.h" + +@implementation SDLStartTime + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setHours:(NSNumber *)hours { + if (hours != nil) { + [store setObject:hours forKey:NAMES_hours]; + } else { + [store removeObjectForKey:NAMES_hours]; + } +} + +- (NSNumber *)hours { + return [store objectForKey:NAMES_hours]; +} + +- (void)setMinutes:(NSNumber *)minutes { + if (minutes != nil) { + [store setObject:minutes forKey:NAMES_minutes]; + } else { + [store removeObjectForKey:NAMES_minutes]; + } +} + +- (NSNumber *)minutes { + return [store objectForKey:NAMES_minutes]; +} + +- (void)setSeconds:(NSNumber *)seconds { + if (seconds != nil) { + [store setObject:seconds forKey:NAMES_seconds]; + } else { + [store removeObjectForKey:NAMES_seconds]; + } +} + +- (NSNumber *)seconds { + return [store objectForKey:NAMES_seconds]; +} + +@end diff --git a/SmartDeviceLink/SDLStreamDelegate.h b/SmartDeviceLink/SDLStreamDelegate.h new file mode 100644 index 000000000..fdd8bfbac --- /dev/null +++ b/SmartDeviceLink/SDLStreamDelegate.h @@ -0,0 +1,22 @@ +// +// SDLStreamDelegate.h + +#import + +// Convenience typedefs +typedef void (^SDLStreamOpenHandler)(NSStream *stream); +typedef void (^SDLStreamHasBytesHandler)(NSInputStream *istream); +typedef void (^SDLStreamHasSpaceHandler)(NSOutputStream *ostream); +typedef void (^SDLStreamErrorHandler)(NSStream *stream); +typedef void (^SDLStreamEndHandler)(NSStream *stream); + + +@interface SDLStreamDelegate : NSObject + +@property (nonatomic, copy) SDLStreamOpenHandler streamOpenHandler; +@property (nonatomic, copy) SDLStreamHasBytesHandler streamHasBytesHandler; +@property (nonatomic, copy) SDLStreamHasSpaceHandler streamHasSpaceHandler; +@property (nonatomic, copy) SDLStreamErrorHandler streamErrorHandler; +@property (nonatomic, copy) SDLStreamEndHandler streamEndHandler; + +@end diff --git a/SmartDeviceLink/SDLStreamDelegate.m b/SmartDeviceLink/SDLStreamDelegate.m new file mode 100644 index 000000000..6c2db6c34 --- /dev/null +++ b/SmartDeviceLink/SDLStreamDelegate.m @@ -0,0 +1,92 @@ +// +// SDLtreamDelegate.m +// + +#import "SDLStreamDelegate.h" +#import "SDLDebugTool.h" + +@interface SDLStreamDelegate () { + dispatch_queue_t _input_stream_queue; +} + +@end + + +@implementation SDLStreamDelegate + +- (instancetype)init { + self = [super init]; + if (self) { + _streamOpenHandler = defaultStreamOpenHandler; + _streamHasBytesHandler = defaultStreamHasBytesHandler; + _streamHasSpaceHandler = defaultStreamHasSpaceHandler; + _streamErrorHandler = defaultStreamErrorHandler; + _streamEndHandler = defaultStreamErrorHandler; + + _input_stream_queue = dispatch_queue_create("com.sdl.streamdelegate.input", DISPATCH_QUEUE_SERIAL); + } + return self; +} + +- (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode { + switch (eventCode) { + case NSStreamEventOpenCompleted: { + if (_streamOpenHandler) { + self.streamOpenHandler(stream); + } + break; + } + case NSStreamEventHasBytesAvailable: { + if (_streamHasBytesHandler) { + dispatch_async(_input_stream_queue, ^{ + self.streamHasBytesHandler((NSInputStream *)stream); + }); + } + break; + } + case NSStreamEventHasSpaceAvailable: { + if (_streamHasSpaceHandler) { + self.streamHasSpaceHandler((NSOutputStream *)stream); + } + break; + } + case NSStreamEventErrorOccurred: { + if (_streamErrorHandler) { + self.streamErrorHandler(stream); + } + break; + } + case NSStreamEventEndEncountered: { + if (_streamEndHandler) { + self.streamEndHandler(stream); + } + break; + } + case NSStreamEventNone: + default: { + break; + } + } +} + +SDLStreamOpenHandler defaultStreamOpenHandler = ^(NSStream *stream) { + [SDLDebugTool logInfo:@"Stream Event Open"]; +}; + +SDLStreamHasBytesHandler defaultStreamHasBytesHandler = ^(NSInputStream *istream) { + [SDLDebugTool logInfo:@"Stream Event Has Bytes"]; +}; + +SDLStreamHasSpaceHandler defaultStreamHasSpaceHandler = ^(NSOutputStream *ostream) { + +}; + +SDLStreamErrorHandler defaultStreamErrorHandler = ^(NSStream *stream) { + [SDLDebugTool logInfo:@"Stream Event Error"]; +}; + +SDLStreamEndHandler defaultStreamEndHandler = ^(NSStream *stream) { + [SDLDebugTool logInfo:@"Stream Event End"]; +}; + +@end diff --git a/SmartDeviceLink/SDLStreamingMediaManager.h b/SmartDeviceLink/SDLStreamingMediaManager.h new file mode 100644 index 000000000..05a855e13 --- /dev/null +++ b/SmartDeviceLink/SDLStreamingMediaManager.h @@ -0,0 +1,91 @@ +// +// SDLStreamingDataManager.h +// SmartDeviceLink-iOS +// +// Created by Joel Fischer on 8/11/15. +// Copyright (c) 2015 smartdevicelink. All rights reserved. +// + +#import +@import VideoToolbox; + +#import "SDLProtocolListener.h" + +@class SDLAbstractProtocol; + + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, SDLStreamingVideoError) { + SDLStreamingVideoErrorHeadUnitNACK, + SDLSTreamingVideoErrorInvalidOperatingSystemVersion, + SDLStreamingVideoErrorConfigurationCompressionSessionCreationFailure, + SDLStreamingVideoErrorConfigurationAllocationFailure, + SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure +}; + +typedef NS_ENUM(NSInteger, SDLStreamingAudioError) { + SDLStreamingAudioErrorHeadUnitNACK +}; + +extern NSString *const SDLErrorDomainStreamingMediaVideo; +extern NSString *const SDLErrorDomainStreamingMediaAudio; + +typedef void (^SDLStreamingStartBlock)(BOOL success, NSError *__nullable error); + + +@interface SDLStreamingMediaManager : NSObject + +- (instancetype)initWithProtocol:(SDLAbstractProtocol *)protocol; + +/** + * This method will attempt to start a streaming video session. It will set up iOS's video encoder, and call out to the head unit asking if it will start a video session. + * + * @warning If this method is called on an 8.0 device, it will assert (in debug), or return a failure immediately to your block (in release). + * + * @param startBlock A block that will be called with the result of attempting to start a video session + */ +- (void)startVideoSessionWithStartBlock:(SDLStreamingStartBlock)startBlock; + +/** + * This method will stop a running video session if there is one running. + */ +- (void)stopVideoSession; + +/** + * This method receives raw image data and will run iOS8+'s hardware video encoder to turn the data into a video stream, which will then be passed to the connected head unit. + * + * @param imageBuffer A CVImageBufferRef to be encoded by Video Toolbox + * + * @return Whether or not the data was successfully encoded and sent. + */ +- (BOOL)sendVideoData:(CVImageBufferRef)imageBuffer; + +/** + * This method will attempt to start an audio session + * + * @param startBlock A block that will be called with the result of attempting to start an audio session + */ +- (void)startAudioStreamingWithStartBlock:(SDLStreamingStartBlock)startBlock; + +/** + * This method will stop a running audio session if there is one running. + */ +- (void)stopAudioSession; + +/** + * This method receives PCM audio data and will attempt to send that data across to the head unit for immediate playback + * + * @param pcmAudioData The data in PCM audio format, to be played + * + * @return Whether or not the data was successfully sent. + */ +- (BOOL)sendAudioData:(NSData *)pcmAudioData; + +@property (assign, nonatomic, readonly) BOOL videoSessionConnected; +@property (assign, nonatomic, readonly) BOOL audioSessionConnected; + + +@end + +NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink/SDLStreamingMediaManager.m b/SmartDeviceLink/SDLStreamingMediaManager.m new file mode 100644 index 000000000..9b7f5a8ac --- /dev/null +++ b/SmartDeviceLink/SDLStreamingMediaManager.m @@ -0,0 +1,411 @@ +// +// SDLStreamingDataManager.m +// SmartDeviceLink-iOS +// +// Created by Joel Fischer on 8/11/15. +// Copyright (c) 2015 smartdevicelink. All rights reserved. +// + +#import "SDLStreamingMediaManager.h" + +@import UIKit; + +#import "SDLAbstractProtocol.h" +#import "SDLGlobals.h" + + +NSString *const SDLErrorDomainStreamingMediaVideo = @"com.sdl.streamingmediamanager.video"; +NSString *const SDLErrorDomainStreamingMediaAudio = @"com.sdl.streamingmediamanager.audio"; + + +NS_ASSUME_NONNULL_BEGIN + +@interface SDLStreamingMediaManager () + +@property (assign, nonatomic, nullable) VTCompressionSessionRef compressionSession; + +@property (assign, nonatomic) NSUInteger currentFrameNumber; + +@property (assign, nonatomic, readwrite) BOOL videoSessionConnected; +@property (assign, nonatomic, readwrite) BOOL audioSessionConnected; + +@property (weak, nonatomic) SDLAbstractProtocol *protocol; + +@property (copy, nonatomic, nullable) SDLStreamingStartBlock videoStartBlock; +@property (copy, nonatomic, nullable) SDLStreamingStartBlock audioStartBlock; + +@end + + +@implementation SDLStreamingMediaManager + +#pragma mark - Class Lifecycle + +- (instancetype)initWithProtocol:(SDLAbstractProtocol *)protocol { + self = [super init]; + if (!self) { + return nil; + } + + _compressionSession = NULL; + + _currentFrameNumber = 0; + _videoSessionConnected = NO; + _audioSessionConnected = NO; + _protocol = protocol; + + _videoStartBlock = nil; + _audioStartBlock = nil; + + return self; +} + + +#pragma mark - Streaming media lifecycle + +- (void)startVideoSessionWithStartBlock:(SDLStreamingStartBlock)startBlock { + if (SDL_SYSTEM_VERSION_LESS_THAN(@"8.0")) { + NSAssert(NO, @"SDL Video Sessions can only be run on iOS 8+ devices"); + startBlock(NO, [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLSTreamingVideoErrorInvalidOperatingSystemVersion userInfo:nil]); + + return; + } + + + self.videoStartBlock = [startBlock copy]; + + [self.protocol sendStartSessionWithType:SDLServiceType_Video]; +} + +- (void)stopVideoSession { + if (!self.videoSessionConnected) { + return; + } + + [self.protocol sendEndSessionWithType:SDLServiceType_Video]; +} + +- (void)startAudioStreamingWithStartBlock:(SDLStreamingStartBlock)startBlock { + self.audioStartBlock = [startBlock copy]; + + [self.protocol sendStartSessionWithType:SDLServiceType_Audio]; +} + +- (void)stopAudioSession { + if (!self.audioSessionConnected) { + return; + } + + [self.protocol sendEndSessionWithType:SDLServiceType_Audio]; +} + + +#pragma mark - Send media data + +- (BOOL)sendVideoData:(CVImageBufferRef)imageBuffer { + if (!self.videoSessionConnected) { + return NO; + } + + // TODO (Joel F.)[2015-08-17]: Somehow monitor connection to make sure we're not clogging the connection with data. + OSStatus status = VTCompressionSessionEncodeFrame(_compressionSession, imageBuffer, CMTimeMake(self.currentFrameNumber++, 30), kCMTimeInvalid, NULL, (__bridge void *)self, NULL); + + return (status == noErr); +} + +- (BOOL)sendAudioData:(NSData *)pcmAudioData { + if (!self.audioSessionConnected) { + return NO; + } + + dispatch_async([self.class sdl_streamingDataSerialQueue], ^{ + @autoreleasepool { + [self.protocol sendRawData:pcmAudioData withServiceType:SDLServiceType_Audio]; + } + }); + + return YES; +} + + +#pragma mark - SDLProtocolListener Methods + +- (void)handleProtocolStartSessionACK:(SDLServiceType)serviceType sessionID:(Byte)sessionID version:(Byte)version { + switch (serviceType) { + case SDLServiceType_Audio: { + self.audioSessionConnected = YES; + self.audioStartBlock(YES, nil); + self.audioStartBlock = nil; + } break; + case SDLServiceType_Video: { + NSError *error = nil; + BOOL success = [self sdl_configureVideoEncoderWithError:&error]; + + if (!success) { + [self sdl_teardownCompressionSession]; + self.videoStartBlock(NO, error); + self.videoStartBlock = nil; + + return; + } + + self.videoSessionConnected = YES; + self.videoStartBlock(YES, nil); + self.videoStartBlock = nil; + } break; + default: break; + } +} + +- (void)handleProtocolStartSessionNACK:(SDLServiceType)serviceType { + switch (serviceType) { + case SDLServiceType_Audio: { + NSError *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaAudio code:SDLStreamingAudioErrorHeadUnitNACK userInfo:nil]; + + self.audioStartBlock(NO, error); + self.audioStartBlock = nil; + } break; + case SDLServiceType_Video: { + NSError *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorHeadUnitNACK userInfo:nil]; + + self.videoStartBlock(NO, error); + self.videoStartBlock = nil; + } break; + default: break; + } +} + +- (void)handleProtocolEndSessionACK:(SDLServiceType)serviceType { + switch (serviceType) { + case SDLServiceType_Audio: { + self.audioSessionConnected = NO; + } break; + case SDLServiceType_Video: { + self.videoSessionConnected = NO; + [self sdl_teardownCompressionSession]; + } break; + default: break; + } +} + +- (void)handleProtocolEndSessionNACK:(SDLServiceType)serviceType { + // TODO (Joel F.)[2015-08-17]: This really, really shouldn't ever happen. Should we assert? Do nothing? We don't have any additional info on why this failed. +} + + +#pragma mark - Video Encoding + +#pragma mark Lifecycle + +- (void)sdl_teardownCompressionSession { + VTCompressionSessionInvalidate(self.compressionSession); + CFRelease(self.compressionSession); +} + + +#pragma mark Callbacks + +void sdl_videoEncoderOutputCallback(void *outputCallbackRefCon, void *sourceFrameRefCon, OSStatus status, VTEncodeInfoFlags infoFlags, CMSampleBufferRef sampleBuffer) { + // If there was an error in the encoding, drop the frame + if (status != noErr) { + NSLog(@"Error encoding video, err=%lld", (int64_t)status); + return; + } + + SDLStreamingMediaManager *mediaManager = (__bridge SDLStreamingMediaManager *)sourceFrameRefCon; + NSData *elementaryStreamData = [mediaManager.class sdl_encodeElementaryStreamWithSampleBuffer:sampleBuffer]; + [mediaManager.protocol sendRawData:elementaryStreamData withServiceType:SDLServiceType_Video]; +} + + +#pragma mark Configuration + +- (BOOL)sdl_configureVideoEncoderWithError:(NSError *__autoreleasing *)error { + OSStatus status; + + // Create a compression session + // TODO (Joel F.)[2015-08-18]: Dimensions should be from the Head Unit + status = VTCompressionSessionCreate(NULL, 640, 480, kCMVideoCodecType_H264, NULL, NULL, NULL, &sdl_videoEncoderOutputCallback, (__bridge void *)self, &_compressionSession); + + if (status != noErr) { + // TODO: Log the error + if (*error != nil) { + *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationCompressionSessionCreationFailure userInfo:@{ @"OSStatus" : @(status) }]; + } + + return NO; + } + + // Set the bitrate of our video compression + int bitRate = 5000; + CFNumberRef bitRateNumRef = CFNumberCreate(NULL, kCFNumberSInt32Type, &bitRate); + if (bitRateNumRef == NULL) { + // TODO: Log & end session + if (*error != nil) { + *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationAllocationFailure userInfo:nil]; + } + + return NO; + } + + status = VTSessionSetProperty(self.compressionSession, kVTCompressionPropertyKey_AverageBitRate, bitRateNumRef); + + // Release our bitrate number + CFRelease(bitRateNumRef); + bitRateNumRef = NULL; + + if (status != noErr) { + // TODO: Log & End session + if (*error != nil) { + *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure userInfo:@{ @"OSStatus" : @(status) }]; + } + + return NO; + } + + // Set the profile level of the video stream + status = VTSessionSetProperty(self.compressionSession, kVTCompressionPropertyKey_ProfileLevel, kVTProfileLevel_H264_Baseline_AutoLevel); + if (status != noErr) { + if (*error != nil) { + *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure userInfo:@{ @"OSStatus" : @(status) }]; + } + + return NO; + } + + // Set the session to compress in real time + status = VTSessionSetProperty(self.compressionSession, kVTCompressionPropertyKey_RealTime, kCFBooleanTrue); + if (status != noErr) { + if (*error != nil) { + *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure userInfo:@{ @"OSStatus" : @(status) }]; + } + + return NO; + } + + // Set the key-frame interval + // TODO: This may be unnecessary, can the encoder do a better job than us? + int interval = 50; + CFNumberRef intervalNumRef = CFNumberCreate(NULL, kCFNumberSInt32Type, &interval); + if (intervalNumRef == NULL) { + if (*error != nil) { + *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationAllocationFailure userInfo:nil]; + } + + return NO; + } + + status = VTSessionSetProperty(self.compressionSession, kVTCompressionPropertyKey_MaxKeyFrameInterval, intervalNumRef); + + CFRelease(intervalNumRef); + intervalNumRef = NULL; + + if (status != noErr) { + if (*error != nil) { + *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure userInfo:@{ @"OSStatus" : @(status) }]; + } + + return NO; + } + + return YES; +} + +#pragma mark Elementary Stream Formatting + ++ (NSData *)sdl_encodeElementaryStreamWithSampleBuffer:(CMSampleBufferRef)sampleBuffer { + // Creating an elementaryStream: http://stackoverflow.com/questions/28396622/extracting-h264-from-cmblockbuffer + + NSMutableData *elementaryStream = [NSMutableData data]; + BOOL isIFrame = NO; + CFArrayRef attachmentsArray = CMSampleBufferGetSampleAttachmentsArray(sampleBuffer, 0); + + if (CFArrayGetCount(attachmentsArray)) { + CFBooleanRef notSync; + CFDictionaryRef dict = CFArrayGetValueAtIndex(attachmentsArray, 0); + BOOL keyExists = CFDictionaryGetValueIfPresent(dict, + kCMSampleAttachmentKey_NotSync, + (const void **)¬Sync); + + // Find out if the sample buffer contains an I-Frame (sync frame). If so we will write the SPS and PPS NAL units to the elementary stream. + isIFrame = !keyExists || !CFBooleanGetValue(notSync); + } + + // This is the start code that we will write to the elementary stream before every NAL unit + static const size_t startCodeLength = 4; + static const uint8_t startCode[] = {0x00, 0x00, 0x00, 0x01}; + + // Write the SPS and PPS NAL units to the elementary stream before every I-Frame + if (isIFrame) { + CMFormatDescriptionRef description = CMSampleBufferGetFormatDescription(sampleBuffer); + + // Find out how many parameter sets there are + size_t numberOfParameterSets; + CMVideoFormatDescriptionGetH264ParameterSetAtIndex(description, + 0, + NULL, + NULL, + &numberOfParameterSets, + NULL); + + // Write each parameter set to the elementary stream + for (int i = 0; i < numberOfParameterSets; i++) { + const uint8_t *parameterSetPointer; + size_t parameterSetLength; + CMVideoFormatDescriptionGetH264ParameterSetAtIndex(description, + i, + ¶meterSetPointer, + ¶meterSetLength, + NULL, + NULL); + + // Write the parameter set to the elementary stream + [elementaryStream appendBytes:startCode length:startCodeLength]; + [elementaryStream appendBytes:parameterSetPointer length:parameterSetLength]; + } + } + + // Get a pointer to the raw AVCC NAL unit data in the sample buffer + size_t blockBufferLength = 0; + char *bufferDataPointer = NULL; + CMBlockBufferRef blockBufferRef = CMSampleBufferGetDataBuffer(sampleBuffer); + + CMBlockBufferGetDataPointer(blockBufferRef, 0, NULL, &blockBufferLength, &bufferDataPointer); + + // Loop through all the NAL units in the block buffer and write them to the elementary stream with start codes instead of AVCC length headers + size_t bufferOffset = 0; + static const int AVCCHeaderLength = 4; + while (bufferOffset < blockBufferLength - AVCCHeaderLength) { + // Read the NAL unit length + uint32_t NALUnitLength = 0; + memcpy(&NALUnitLength, bufferDataPointer + bufferOffset, AVCCHeaderLength); + + // Convert the length value from Big-endian to Little-endian + NALUnitLength = CFSwapInt32BigToHost(NALUnitLength); + [elementaryStream appendBytes:startCode length:startCodeLength]; + + // Write the NAL unit without the AVCC length header to the elementary stream + [elementaryStream appendBytes:bufferDataPointer + bufferOffset + AVCCHeaderLength length:NALUnitLength]; + + // Move to the next NAL unit in the block buffer + bufferOffset += AVCCHeaderLength + NALUnitLength; + } + + return [elementaryStream copy]; +} + +#pragma mark - Private static singleton variables + ++ (dispatch_queue_t)sdl_streamingDataSerialQueue { + static dispatch_queue_t streamingDataQueue = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + streamingDataQueue = dispatch_queue_create("com.sdl.videoaudiostreaming.encoder", DISPATCH_QUEUE_SERIAL); + }); + + return streamingDataQueue; +} + +@end + +NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink/SDLSubscribeButton.h b/SmartDeviceLink/SDLSubscribeButton.h new file mode 100644 index 000000000..a01df2d16 --- /dev/null +++ b/SmartDeviceLink/SDLSubscribeButton.h @@ -0,0 +1,80 @@ +// SDLSubscribeButton.h +// + + +#import "SDLRPCRequest.h" + +@class SDLButtonName; + + +/** + * Establishes a subscription to button notifications for HMI buttons. Buttons + * are not necessarily physical buttons, but can also be "soft" buttons on a + * touch screen, depending on the display in the vehicle. Once subscribed to a + * particular button, an application will receive both + * SDLOnButtonEvent and SDLOnButtonPress notifications + * whenever that button is pressed. The application may also unsubscribe from + * notifications for a button by invoking the SDLUnsubscribeButton + * operation + *

    + * When a button is depressed, an SDLOnButtonEvent notification is + * sent to the application with a ButtonEventMode of BUTTONDOWN. When that same + * button is released, an SDLOnButtonEvent notification is sent to the + * application with a ButtonEventMode of BUTTONUP + *

    + * When the duration of a button depression (that is, time between depression + * and release) is less than two seconds, an SDLOnButtonPress + * notification is sent to the application (at the moment the button is + * released) with a ButtonPressMode of SHORT. When the duration is two or more + * seconds, an SDLOnButtonPress notification is sent to the + * application (at the moment the two seconds have elapsed) with a + * ButtonPressMode of LONG + *

    + * The purpose of SDLOnButtonPress notifications is to allow for + * programmatic detection of long button presses similar to those used to store + * presets while listening to the radio, for example + *

    + * When a button is depressed and released, the sequence in which notifications + * will be sent to the application is as follows: + *

    + * For short presses:
    + *

      + *
    • OnButtonEvent (ButtonEventMode = BUTTONDOWN)
    • + *
    • OnButtonEvent (ButtonEventMode = BUTTONUP)
    • + *
    • OnButtonPress (ButtonPressMode = SHORT)
    • + *
    + *

    + * For long presses:
    + *

      + *
    • OnButtonEvent (ButtonEventMode = BUTTONDOWN)
    • + *
    • OnButtonEvent (ButtonEventMode = BUTTONUP)
    • + *
    • OnButtonPress (ButtonPressMode = LONG)
    • + *
    + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + * + * Since SmartDeviceLink 1.0
    + * See SDLUnsubscribeButton + */ +@interface SDLSubscribeButton : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLSubscribeButton object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLSubscribeButton object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The name of the button to subscribe to + * @discussion An enum value, see SDLButtonName + */ +@property (strong) SDLButtonName *buttonName; + +@end diff --git a/SmartDeviceLink/SDLSubscribeButton.m b/SmartDeviceLink/SDLSubscribeButton.m new file mode 100644 index 000000000..58a28a797 --- /dev/null +++ b/SmartDeviceLink/SDLSubscribeButton.m @@ -0,0 +1,42 @@ +// SDLSubscribeButton.m +// + + +#import "SDLSubscribeButton.h" + +#import "SDLButtonName.h" +#import "SDLNames.h" + + +@implementation SDLSubscribeButton + +- (instancetype)init { + if (self = [super initWithName:NAMES_SubscribeButton]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setButtonName:(SDLButtonName *)buttonName { + if (buttonName != nil) { + [parameters setObject:buttonName forKey:NAMES_buttonName]; + } else { + [parameters removeObjectForKey:NAMES_buttonName]; + } +} + +- (SDLButtonName *)buttonName { + NSObject *obj = [parameters objectForKey:NAMES_buttonName]; + if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) { + return (SDLButtonName *)obj; + } else { + return [SDLButtonName valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLSubscribeButtonResponse.h b/SmartDeviceLink/SDLSubscribeButtonResponse.h new file mode 100644 index 000000000..b38eb5a27 --- /dev/null +++ b/SmartDeviceLink/SDLSubscribeButtonResponse.h @@ -0,0 +1,26 @@ +// SDLSubscribeButtonResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * SubscribeButton Response is sent, when SDLSubscribeButton has been called + * + * Since SmartDeviceLink 1.0 + */ +@interface SDLSubscribeButtonResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLSubscribeButtonResponse object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLSubscribeButtonResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLSubscribeButtonResponse.m b/SmartDeviceLink/SDLSubscribeButtonResponse.m new file mode 100644 index 000000000..a70d58ede --- /dev/null +++ b/SmartDeviceLink/SDLSubscribeButtonResponse.m @@ -0,0 +1,23 @@ +// SDLSubscribeButtonResponse.m +// + + +#import "SDLSubscribeButtonResponse.h" + +#import "SDLNames.h" + +@implementation SDLSubscribeButtonResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_SubscribeButton]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLSubscribeVehicleData.h b/SmartDeviceLink/SDLSubscribeVehicleData.h new file mode 100644 index 000000000..e357cd484 --- /dev/null +++ b/SmartDeviceLink/SDLSubscribeVehicleData.h @@ -0,0 +1,139 @@ +// SDLSubscribeVehicleData.h +// + + +#import "SDLRPCRequest.h" + +/** + * Subscribes for specific published vehicle data items. The data will be only + * sent, if it has changed. The application will be notified by the + * onVehicleData notification whenever new data is available. The update rate is + * very much dependent on sensors, vehicle architecture and vehicle type. Be + * also prepared for the situation that a signal is not available on a vehicle + *

    + * Function Group: Location, VehicleInfo and DrivingChara + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + * + * Since SmartDeviceLink 2.0
    + * See SDLUnsubscribeVehicleData SDLGetVehicleData + */ +@interface SDLSubscribeVehicleData : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLSubscribeVehicleData object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLSubscribeVehicleData object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A boolean value. If true, subscribes Gps data + */ +@property (strong) NSNumber *gps; + +/** + * @abstract A boolean value. If true, subscribes speed data + */ +@property (strong) NSNumber *speed; + +/** + * @abstract A boolean value. If true, subscribes rpm data + */ +@property (strong) NSNumber *rpm; + +/** + * @abstract A boolean value. If true, subscribes FuelLevel data + */ +@property (strong) NSNumber *fuelLevel; + +/** + * @abstract A boolean value. If true, subscribes fuelLevel_State data + */ +@property (strong) NSNumber *fuelLevel_State; + +/** + * @abstract A boolean value. If true, subscribes instantFuelConsumption data + */ +@property (strong) NSNumber *instantFuelConsumption; + +/** + * @abstract A boolean value. If true, subscribes externalTemperature data + */ +@property (strong) NSNumber *externalTemperature; + +/** + * @abstract A boolean value. If true, subscribes Currently selected gear data + */ +@property (strong) NSNumber *prndl; + +/** + * @abstract A boolean value. If true, subscribes tire pressure status data + */ +@property (strong) NSNumber *tirePressure; + +/** + * @abstract A boolean value. If true, subscribes odometer data + */ +@property (strong) NSNumber *odometer; + +/** + * @abstract A boolean value. If true, subscribes belt Status data + */ +@property (strong) NSNumber *beltStatus; + +/** + * @abstract A boolean value. If true, subscribes body Information data + */ +@property (strong) NSNumber *bodyInformation; + +/** + * @abstract A boolean value. If true, subscribes device Status data + */ +@property (strong) NSNumber *deviceStatus; + +/** + * @abstract A boolean value. If true, subscribes driver Braking data + */ +@property (strong) NSNumber *driverBraking; + +/** + * @abstract A boolean value. If true, subscribes wiper Status data + */ +@property (strong) NSNumber *wiperStatus; + +/** + * @abstract A boolean value. If true, subscribes Head Lamp Status data + */ +@property (strong) NSNumber *headLampStatus; + +/** + * @abstract A boolean value. If true, subscribes Engine Torque data + */ +@property (strong) NSNumber *engineTorque; + +/** + * @abstract A boolean value. If true, means the accPedalPosition data has been + * subscribed. + */ +@property (strong) NSNumber *accPedalPosition; + +/** + * @abstract A boolean value. If true, means the steeringWheelAngle data has been + * subscribed. + */ +@property (strong) NSNumber *steeringWheelAngle; +@property (strong) NSNumber *eCallInfo; +@property (strong) NSNumber *airbagStatus; +@property (strong) NSNumber *emergencyEvent; +@property (strong) NSNumber *clusterModeStatus; +@property (strong) NSNumber *myKey; + +@end diff --git a/SmartDeviceLink/SDLSubscribeVehicleData.m b/SmartDeviceLink/SDLSubscribeVehicleData.m new file mode 100644 index 000000000..55ec5e9d0 --- /dev/null +++ b/SmartDeviceLink/SDLSubscribeVehicleData.m @@ -0,0 +1,311 @@ +// SDLSubscribeVehicleData.m +// + + +#import "SDLSubscribeVehicleData.h" + +#import "SDLNames.h" + +@implementation SDLSubscribeVehicleData + +- (instancetype)init { + if (self = [super initWithName:NAMES_SubscribeVehicleData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setGps:(NSNumber *)gps { + if (gps != nil) { + [parameters setObject:gps forKey:NAMES_gps]; + } else { + [parameters removeObjectForKey:NAMES_gps]; + } +} + +- (NSNumber *)gps { + return [parameters objectForKey:NAMES_gps]; +} + +- (void)setSpeed:(NSNumber *)speed { + if (speed != nil) { + [parameters setObject:speed forKey:NAMES_speed]; + } else { + [parameters removeObjectForKey:NAMES_speed]; + } +} + +- (NSNumber *)speed { + return [parameters objectForKey:NAMES_speed]; +} + +- (void)setRpm:(NSNumber *)rpm { + if (rpm != nil) { + [parameters setObject:rpm forKey:NAMES_rpm]; + } else { + [parameters removeObjectForKey:NAMES_rpm]; + } +} + +- (NSNumber *)rpm { + return [parameters objectForKey:NAMES_rpm]; +} + +- (void)setFuelLevel:(NSNumber *)fuelLevel { + if (fuelLevel != nil) { + [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel]; + } +} + +- (NSNumber *)fuelLevel { + return [parameters objectForKey:NAMES_fuelLevel]; +} + +- (void)setFuelLevel_State:(NSNumber *)fuelLevel_State { + if (fuelLevel_State != nil) { + [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel_State]; + } +} + +- (NSNumber *)fuelLevel_State { + return [parameters objectForKey:NAMES_fuelLevel_State]; +} + +- (void)setInstantFuelConsumption:(NSNumber *)instantFuelConsumption { + if (instantFuelConsumption != nil) { + [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; + } else { + [parameters removeObjectForKey:NAMES_instantFuelConsumption]; + } +} + +- (NSNumber *)instantFuelConsumption { + return [parameters objectForKey:NAMES_instantFuelConsumption]; +} + +- (void)setExternalTemperature:(NSNumber *)externalTemperature { + if (externalTemperature != nil) { + [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; + } else { + [parameters removeObjectForKey:NAMES_externalTemperature]; + } +} + +- (NSNumber *)externalTemperature { + return [parameters objectForKey:NAMES_externalTemperature]; +} + +- (void)setPrndl:(NSNumber *)prndl { + if (prndl != nil) { + [parameters setObject:prndl forKey:NAMES_prndl]; + } else { + [parameters removeObjectForKey:NAMES_prndl]; + } +} + +- (NSNumber *)prndl { + return [parameters objectForKey:NAMES_prndl]; +} + +- (void)setTirePressure:(NSNumber *)tirePressure { + if (tirePressure != nil) { + [parameters setObject:tirePressure forKey:NAMES_tirePressure]; + } else { + [parameters removeObjectForKey:NAMES_tirePressure]; + } +} + +- (NSNumber *)tirePressure { + return [parameters objectForKey:NAMES_tirePressure]; +} + +- (void)setOdometer:(NSNumber *)odometer { + if (odometer != nil) { + [parameters setObject:odometer forKey:NAMES_odometer]; + } else { + [parameters removeObjectForKey:NAMES_odometer]; + } +} + +- (NSNumber *)odometer { + return [parameters objectForKey:NAMES_odometer]; +} + +- (void)setBeltStatus:(NSNumber *)beltStatus { + if (beltStatus != nil) { + [parameters setObject:beltStatus forKey:NAMES_beltStatus]; + } else { + [parameters removeObjectForKey:NAMES_beltStatus]; + } +} + +- (NSNumber *)beltStatus { + return [parameters objectForKey:NAMES_beltStatus]; +} + +- (void)setBodyInformation:(NSNumber *)bodyInformation { + if (bodyInformation != nil) { + [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; + } else { + [parameters removeObjectForKey:NAMES_bodyInformation]; + } +} + +- (NSNumber *)bodyInformation { + return [parameters objectForKey:NAMES_bodyInformation]; +} + +- (void)setDeviceStatus:(NSNumber *)deviceStatus { + if (deviceStatus != nil) { + [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; + } else { + [parameters removeObjectForKey:NAMES_deviceStatus]; + } +} + +- (NSNumber *)deviceStatus { + return [parameters objectForKey:NAMES_deviceStatus]; +} + +- (void)setDriverBraking:(NSNumber *)driverBraking { + if (driverBraking != nil) { + [parameters setObject:driverBraking forKey:NAMES_driverBraking]; + } else { + [parameters removeObjectForKey:NAMES_driverBraking]; + } +} + +- (NSNumber *)driverBraking { + return [parameters objectForKey:NAMES_driverBraking]; +} + +- (void)setWiperStatus:(NSNumber *)wiperStatus { + if (wiperStatus != nil) { + [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; + } else { + [parameters removeObjectForKey:NAMES_wiperStatus]; + } +} + +- (NSNumber *)wiperStatus { + return [parameters objectForKey:NAMES_wiperStatus]; +} + +- (void)setHeadLampStatus:(NSNumber *)headLampStatus { + if (headLampStatus != nil) { + [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; + } else { + [parameters removeObjectForKey:NAMES_headLampStatus]; + } +} + +- (NSNumber *)headLampStatus { + return [parameters objectForKey:NAMES_headLampStatus]; +} + +- (void)setEngineTorque:(NSNumber *)engineTorque { + if (engineTorque != nil) { + [parameters setObject:engineTorque forKey:NAMES_engineTorque]; + } else { + [parameters removeObjectForKey:NAMES_engineTorque]; + } +} + +- (NSNumber *)engineTorque { + return [parameters objectForKey:NAMES_engineTorque]; +} + +- (void)setAccPedalPosition:(NSNumber *)accPedalPosition { + if (accPedalPosition != nil) { + [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; + } else { + [parameters removeObjectForKey:NAMES_accPedalPosition]; + } +} + +- (NSNumber *)accPedalPosition { + return [parameters objectForKey:NAMES_accPedalPosition]; +} + +- (void)setSteeringWheelAngle:(NSNumber *)steeringWheelAngle { + if (steeringWheelAngle != nil) { + [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; + } else { + [parameters removeObjectForKey:NAMES_steeringWheelAngle]; + } +} + +- (NSNumber *)steeringWheelAngle { + return [parameters objectForKey:NAMES_steeringWheelAngle]; +} + +- (void)setECallInfo:(NSNumber *)eCallInfo { + if (eCallInfo != nil) { + [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; + } else { + [parameters removeObjectForKey:NAMES_eCallInfo]; + } +} + +- (NSNumber *)eCallInfo { + return [parameters objectForKey:NAMES_eCallInfo]; +} + +- (void)setAirbagStatus:(NSNumber *)airbagStatus { + if (airbagStatus != nil) { + [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; + } else { + [parameters removeObjectForKey:NAMES_airbagStatus]; + } +} + +- (NSNumber *)airbagStatus { + return [parameters objectForKey:NAMES_airbagStatus]; +} + +- (void)setEmergencyEvent:(NSNumber *)emergencyEvent { + if (emergencyEvent != nil) { + [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; + } else { + [parameters removeObjectForKey:NAMES_emergencyEvent]; + } +} + +- (NSNumber *)emergencyEvent { + return [parameters objectForKey:NAMES_emergencyEvent]; +} + +- (void)setClusterModeStatus:(NSNumber *)clusterModeStatus { + if (clusterModeStatus != nil) { + [parameters setObject:clusterModeStatus forKey:NAMES_clusterModeStatus]; + } else { + [parameters removeObjectForKey:NAMES_clusterModeStatus]; + } +} + +- (NSNumber *)clusterModeStatus { + return [parameters objectForKey:NAMES_clusterModeStatus]; +} + +- (void)setMyKey:(NSNumber *)myKey { + if (myKey != nil) { + [parameters setObject:myKey forKey:NAMES_myKey]; + } else { + [parameters removeObjectForKey:NAMES_myKey]; + } +} + +- (NSNumber *)myKey { + return [parameters objectForKey:NAMES_myKey]; +} + +@end diff --git a/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h b/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h new file mode 100644 index 000000000..0b4f15ca7 --- /dev/null +++ b/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h @@ -0,0 +1,130 @@ +// SDLSubscribeVehicleDataResponse.h +// + +#import "SDLRPCResponse.h" + +@class SDLVehicleDataResult; + + +/** + * Subscribe Vehicle Data Response is sent, when SDLSubscribeVehicleData has been called + * + * Since SmartDeviceLink 2.0 + */ +@interface SDLSubscribeVehicleDataResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLSubscribeVehicleDataResponse object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLSubscribeVehicleDataResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + + +/** + * @abstract A SDLVehicleDataResult* value. See GPSData. + */ +@property (strong) SDLVehicleDataResult *gps; + +/** + * @abstract A SDLVehicleDataResult* value. The vehicle speed in kilometers per hour. + */ +@property (strong) SDLVehicleDataResult *speed; + +/** + * @abstract A SDLVehicleDataResult* value. The number of revolutions per minute of the engine. + */ +@property (strong) SDLVehicleDataResult *rpm; + +/** + * @abstract A SDLVehicleDataResult* value. The fuel level in the tank (percentage) + */ +@property (strong) SDLVehicleDataResult *fuelLevel; + +/** + * @abstract A SDLVehicleDataResult* value. The fuel level state. + */ +@property (strong) SDLVehicleDataResult *fuelLevel_State; + +/** + * @abstract A SDLVehicleDataResult* value. The instantaneous fuel consumption in microlitres. + */ +@property (strong) SDLVehicleDataResult *instantFuelConsumption; + +/** + * @abstract A SDLVehicleDataResult* value. The external temperature in degrees celsius. + */ +@property (strong) SDLVehicleDataResult *externalTemperature; + +/** + * @abstract A SDLVehicleDataResult* value. See PRNDL. + */ +@property (strong) SDLVehicleDataResult *prndl; + +/** + * @abstract A SDLVehicleDataResult* value. See TireStatus. + */ +@property (strong) SDLVehicleDataResult *tirePressure; + +/** + * @abstract A SDLVehicleDataResult* value. Odometer in km. + */ +@property (strong) SDLVehicleDataResult *odometer; + +/** + * @abstract A SDLVehicleDataResult* value. The status of the seat belts. + */ +@property (strong) SDLVehicleDataResult *beltStatus; + +/** + * @abstract A SDLVehicleDataResult* value. The body information including power modes. + */ +@property (strong) SDLVehicleDataResult *bodyInformation; + +/** + * @abstract A SDLVehicleDataResult* value. The device status including signal and battery strength. + */ +@property (strong) SDLVehicleDataResult *deviceStatus; + +/** + * @abstract A SDLVehicleDataResult* value. The status of the brake pedal. + */ +@property (strong) SDLVehicleDataResult *driverBraking; + +/** + * @abstract A SDLVehicleDataResult* value. The status of the wipers. + */ +@property (strong) SDLVehicleDataResult *wiperStatus; + +/** + * @abstract A SDLVehicleDataResult* value. Status of the head lamps. + */ +@property (strong) SDLVehicleDataResult *headLampStatus; + +/** + * @abstract A SDLVehicleDataResult* value. Torque value for engine (in Nm) on non-diesel variants. + */ +@property (strong) SDLVehicleDataResult *engineTorque; + +/** + * @abstract A SDLVehicleDataResult* value. Accelerator pedal position (percentage depressed) + */ +@property (strong) SDLVehicleDataResult *accPedalPosition; + +/** + * @abstract A SDLVehicleDataResult* value. Current angle of the steering wheel (in deg) + */ +@property (strong) SDLVehicleDataResult *steeringWheelAngle; +@property (strong) SDLVehicleDataResult *eCallInfo; +@property (strong) SDLVehicleDataResult *airbagStatus; +@property (strong) SDLVehicleDataResult *emergencyEvent; +@property (strong) SDLVehicleDataResult *clusterModes; +@property (strong) SDLVehicleDataResult *myKey; + +@end diff --git a/SmartDeviceLink/SDLSubscribeVehicleDataResponse.m b/SmartDeviceLink/SDLSubscribeVehicleDataResponse.m new file mode 100644 index 000000000..5afa5f1be --- /dev/null +++ b/SmartDeviceLink/SDLSubscribeVehicleDataResponse.m @@ -0,0 +1,433 @@ +// SDLSubscribeVehicleDataResponse.m +// + + +#import "SDLSubscribeVehicleDataResponse.h" + +#import "SDLNames.h" +#import "SDLVehicleDataResult.h" + + +@implementation SDLSubscribeVehicleDataResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_SubscribeVehicleData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setGps:(SDLVehicleDataResult *)gps { + if (gps != nil) { + [parameters setObject:gps forKey:NAMES_gps]; + } else { + [parameters removeObjectForKey:NAMES_gps]; + } +} + +- (SDLVehicleDataResult *)gps { + NSObject *obj = [parameters objectForKey:NAMES_gps]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setSpeed:(SDLVehicleDataResult *)speed { + if (speed != nil) { + [parameters setObject:speed forKey:NAMES_speed]; + } else { + [parameters removeObjectForKey:NAMES_speed]; + } +} + +- (SDLVehicleDataResult *)speed { + NSObject *obj = [parameters objectForKey:NAMES_speed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setRpm:(SDLVehicleDataResult *)rpm { + if (rpm != nil) { + [parameters setObject:rpm forKey:NAMES_rpm]; + } else { + [parameters removeObjectForKey:NAMES_rpm]; + } +} + +- (SDLVehicleDataResult *)rpm { + NSObject *obj = [parameters objectForKey:NAMES_rpm]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setFuelLevel:(SDLVehicleDataResult *)fuelLevel { + if (fuelLevel != nil) { + [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel]; + } +} + +- (SDLVehicleDataResult *)fuelLevel { + NSObject *obj = [parameters objectForKey:NAMES_fuelLevel]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setFuelLevel_State:(SDLVehicleDataResult *)fuelLevel_State { + if (fuelLevel_State != nil) { + [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel_State]; + } +} + +- (SDLVehicleDataResult *)fuelLevel_State { + NSObject *obj = [parameters objectForKey:NAMES_fuelLevel_State]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setInstantFuelConsumption:(SDLVehicleDataResult *)instantFuelConsumption { + if (instantFuelConsumption != nil) { + [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; + } else { + [parameters removeObjectForKey:NAMES_instantFuelConsumption]; + } +} + +- (SDLVehicleDataResult *)instantFuelConsumption { + NSObject *obj = [parameters objectForKey:NAMES_instantFuelConsumption]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setExternalTemperature:(SDLVehicleDataResult *)externalTemperature { + if (externalTemperature != nil) { + [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; + } else { + [parameters removeObjectForKey:NAMES_externalTemperature]; + } +} + +- (SDLVehicleDataResult *)externalTemperature { + NSObject *obj = [parameters objectForKey:NAMES_externalTemperature]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setPrndl:(SDLVehicleDataResult *)prndl { + if (prndl != nil) { + [parameters setObject:prndl forKey:NAMES_prndl]; + } else { + [parameters removeObjectForKey:NAMES_prndl]; + } +} + +- (SDLVehicleDataResult *)prndl { + NSObject *obj = [parameters objectForKey:NAMES_prndl]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setTirePressure:(SDLVehicleDataResult *)tirePressure { + if (tirePressure != nil) { + [parameters setObject:tirePressure forKey:NAMES_tirePressure]; + } else { + [parameters removeObjectForKey:NAMES_tirePressure]; + } +} + +- (SDLVehicleDataResult *)tirePressure { + NSObject *obj = [parameters objectForKey:NAMES_tirePressure]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setOdometer:(SDLVehicleDataResult *)odometer { + if (odometer != nil) { + [parameters setObject:odometer forKey:NAMES_odometer]; + } else { + [parameters removeObjectForKey:NAMES_odometer]; + } +} + +- (SDLVehicleDataResult *)odometer { + NSObject *obj = [parameters objectForKey:NAMES_odometer]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setBeltStatus:(SDLVehicleDataResult *)beltStatus { + if (beltStatus != nil) { + [parameters setObject:beltStatus forKey:NAMES_beltStatus]; + } else { + [parameters removeObjectForKey:NAMES_beltStatus]; + } +} + +- (SDLVehicleDataResult *)beltStatus { + NSObject *obj = [parameters objectForKey:NAMES_beltStatus]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setBodyInformation:(SDLVehicleDataResult *)bodyInformation { + if (bodyInformation != nil) { + [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; + } else { + [parameters removeObjectForKey:NAMES_bodyInformation]; + } +} + +- (SDLVehicleDataResult *)bodyInformation { + NSObject *obj = [parameters objectForKey:NAMES_bodyInformation]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setDeviceStatus:(SDLVehicleDataResult *)deviceStatus { + if (deviceStatus != nil) { + [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; + } else { + [parameters removeObjectForKey:NAMES_deviceStatus]; + } +} + +- (SDLVehicleDataResult *)deviceStatus { + NSObject *obj = [parameters objectForKey:NAMES_deviceStatus]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setDriverBraking:(SDLVehicleDataResult *)driverBraking { + if (driverBraking != nil) { + [parameters setObject:driverBraking forKey:NAMES_driverBraking]; + } else { + [parameters removeObjectForKey:NAMES_driverBraking]; + } +} + +- (SDLVehicleDataResult *)driverBraking { + NSObject *obj = [parameters objectForKey:NAMES_driverBraking]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setWiperStatus:(SDLVehicleDataResult *)wiperStatus { + if (wiperStatus != nil) { + [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; + } else { + [parameters removeObjectForKey:NAMES_wiperStatus]; + } +} + +- (SDLVehicleDataResult *)wiperStatus { + NSObject *obj = [parameters objectForKey:NAMES_wiperStatus]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setHeadLampStatus:(SDLVehicleDataResult *)headLampStatus { + if (headLampStatus != nil) { + [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; + } else { + [parameters removeObjectForKey:NAMES_headLampStatus]; + } +} + +- (SDLVehicleDataResult *)headLampStatus { + NSObject *obj = [parameters objectForKey:NAMES_headLampStatus]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setEngineTorque:(SDLVehicleDataResult *)engineTorque { + if (engineTorque != nil) { + [parameters setObject:engineTorque forKey:NAMES_engineTorque]; + } else { + [parameters removeObjectForKey:NAMES_engineTorque]; + } +} + +- (SDLVehicleDataResult *)engineTorque { + NSObject *obj = [parameters objectForKey:NAMES_engineTorque]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setAccPedalPosition:(SDLVehicleDataResult *)accPedalPosition { + if (accPedalPosition != nil) { + [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; + } else { + [parameters removeObjectForKey:NAMES_accPedalPosition]; + } +} + +- (SDLVehicleDataResult *)accPedalPosition { + NSObject *obj = [parameters objectForKey:NAMES_accPedalPosition]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setSteeringWheelAngle:(SDLVehicleDataResult *)steeringWheelAngle { + if (steeringWheelAngle != nil) { + [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; + } else { + [parameters removeObjectForKey:NAMES_steeringWheelAngle]; + } +} + +- (SDLVehicleDataResult *)steeringWheelAngle { + NSObject *obj = [parameters objectForKey:NAMES_steeringWheelAngle]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setECallInfo:(SDLVehicleDataResult *)eCallInfo { + if (eCallInfo != nil) { + [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; + } else { + [parameters removeObjectForKey:NAMES_eCallInfo]; + } +} + +- (SDLVehicleDataResult *)eCallInfo { + NSObject *obj = [parameters objectForKey:NAMES_eCallInfo]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setAirbagStatus:(SDLVehicleDataResult *)airbagStatus { + if (airbagStatus != nil) { + [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; + } else { + [parameters removeObjectForKey:NAMES_airbagStatus]; + } +} + +- (SDLVehicleDataResult *)airbagStatus { + NSObject *obj = [parameters objectForKey:NAMES_airbagStatus]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setEmergencyEvent:(SDLVehicleDataResult *)emergencyEvent { + if (emergencyEvent != nil) { + [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; + } else { + [parameters removeObjectForKey:NAMES_emergencyEvent]; + } +} + +- (SDLVehicleDataResult *)emergencyEvent { + NSObject *obj = [parameters objectForKey:NAMES_emergencyEvent]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setClusterModes:(SDLVehicleDataResult *)clusterModes { + if (clusterModes != nil) { + [parameters setObject:clusterModes forKey:NAMES_clusterModes]; + } else { + [parameters removeObjectForKey:NAMES_clusterModes]; + } +} + +- (SDLVehicleDataResult *)clusterModes { + NSObject *obj = [parameters objectForKey:NAMES_clusterModes]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setMyKey:(SDLVehicleDataResult *)myKey { + if (myKey != nil) { + [parameters setObject:myKey forKey:NAMES_myKey]; + } else { + [parameters removeObjectForKey:NAMES_myKey]; + } +} + +- (SDLVehicleDataResult *)myKey { + NSObject *obj = [parameters objectForKey:NAMES_myKey]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLSyncMsgVersion.h b/SmartDeviceLink/SDLSyncMsgVersion.h new file mode 100644 index 000000000..98b573eec --- /dev/null +++ b/SmartDeviceLink/SDLSyncMsgVersion.h @@ -0,0 +1,39 @@ +// SDLSyncMsgVersion.h +// + + +#import "SDLRPCMessage.h" + +/** + * Specifies the version number of the SDL V4 interface. This is used by both the application and SDL to declare what interface version each is using. + * + * @since SDL 1.0 + */ +@interface SDLSyncMsgVersion : SDLRPCStruct { +} + +/** + * @abstract Constructs a newly allocated SDLSyncMsgVersion object + */ +- (instancetype)init; + +/** + * @abstract Constructs a newly allocated SDLSyncMsgVersion object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The major version indicates versions that is not-compatible to previous versions + * + * Required, Integer, 1 - 10 + */ +@property (strong) NSNumber *majorVersion; +/** + * @abstract The minor version indicates a change to a previous version that should still allow to be run on an older version (with limited functionality) + * + * Required, Integer, 0 - 1000 + */ +@property (strong) NSNumber *minorVersion; + +@end diff --git a/SmartDeviceLink/SDLSyncMsgVersion.m b/SmartDeviceLink/SDLSyncMsgVersion.m new file mode 100644 index 000000000..2d516539e --- /dev/null +++ b/SmartDeviceLink/SDLSyncMsgVersion.m @@ -0,0 +1,50 @@ +// SDLSyncMsgVersion.m +// + + +#import "SDLSyncMsgVersion.h" + +#import "SDLNames.h" + +@implementation SDLSyncMsgVersion + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setMajorVersion:(NSNumber *)majorVersion { + if (majorVersion != nil) { + [store setObject:majorVersion forKey:NAMES_majorVersion]; + } else { + [store removeObjectForKey:NAMES_majorVersion]; + } +} + +- (NSNumber *)majorVersion { + return [store objectForKey:NAMES_majorVersion]; +} + +- (void)setMinorVersion:(NSNumber *)minorVersion { + if (minorVersion != nil) { + [store setObject:minorVersion forKey:NAMES_minorVersion]; + } else { + [store removeObjectForKey:NAMES_minorVersion]; + } +} + +- (NSNumber *)minorVersion { + return [store objectForKey:NAMES_minorVersion]; +} + +- (NSString *)description { + return [NSString stringWithFormat:@"%@.%@", self.majorVersion, self.minorVersion]; +} +@end diff --git a/SmartDeviceLink/SDLSyncPData.h b/SmartDeviceLink/SDLSyncPData.h new file mode 100644 index 000000000..e71ea600d --- /dev/null +++ b/SmartDeviceLink/SDLSyncPData.h @@ -0,0 +1,13 @@ +// SDLSyncPData.h +// + + +#import "SDLRPCRequest.h" + +@interface SDLSyncPData : SDLRPCRequest { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLSyncPData.m b/SmartDeviceLink/SDLSyncPData.m new file mode 100644 index 000000000..c8730a2f1 --- /dev/null +++ b/SmartDeviceLink/SDLSyncPData.m @@ -0,0 +1,23 @@ +// SDLSyncPData.m +// + + +#import "SDLSyncPData.h" + +#import "SDLNames.h" + +@implementation SDLSyncPData + +- (instancetype)init { + if (self = [super initWithName:NAMES_SyncPData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLSyncPDataResponse.h b/SmartDeviceLink/SDLSyncPDataResponse.h new file mode 100644 index 000000000..25a12b74a --- /dev/null +++ b/SmartDeviceLink/SDLSyncPDataResponse.h @@ -0,0 +1,13 @@ +// SDLSyncPDataResponse.h +// + + +#import "SDLRPCResponse.h" + +@interface SDLSyncPDataResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLSyncPDataResponse.m b/SmartDeviceLink/SDLSyncPDataResponse.m new file mode 100644 index 000000000..00edf14b1 --- /dev/null +++ b/SmartDeviceLink/SDLSyncPDataResponse.m @@ -0,0 +1,23 @@ +// SDLSyncPDataResponse.m +// + + +#import "SDLSyncPDataResponse.h" + +#import "SDLNames.h" + +@implementation SDLSyncPDataResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_SyncPData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLSystemAction.h b/SmartDeviceLink/SDLSystemAction.h new file mode 100644 index 000000000..55371e87d --- /dev/null +++ b/SmartDeviceLink/SDLSystemAction.h @@ -0,0 +1,39 @@ +// SDLSystemAction.h +// + + +#import "SDLEnum.h" + +/** + * + * Enumeration that describes system actions that can be triggered. + */ +@interface SDLSystemAction : SDLEnum { +} + +/** + * Convert String to SDLSystemAction + * @param value String + * @return SDLSystemAction + */ ++ (SDLSystemAction *)valueOf:(NSString *)value; +/** + @abstract Store the enumeration of all possible SDLSystemAction + @return an array that store all possible SDLSystemAction + */ ++ (NSArray *)values; + +/** + @abstract Default_Action + */ ++ (SDLSystemAction *)DEFAULT_ACTION; +/** + @abstract Steal_Focus + */ ++ (SDLSystemAction *)STEAL_FOCUS; +/** + @abstract Keep_Context + */ ++ (SDLSystemAction *)KEEP_CONTEXT; + +@end diff --git a/SmartDeviceLink/SDLSystemAction.m b/SmartDeviceLink/SDLSystemAction.m new file mode 100644 index 000000000..15b34b08b --- /dev/null +++ b/SmartDeviceLink/SDLSystemAction.m @@ -0,0 +1,56 @@ +// SDLSystemAction.m +// + + +#import "SDLSystemAction.h" + +SDLSystemAction *SDLSystemAction_DEFAULT_ACTION = nil; +SDLSystemAction *SDLSystemAction_STEAL_FOCUS = nil; +SDLSystemAction *SDLSystemAction_KEEP_CONTEXT = nil; + +NSArray *SDLSystemAction_values = nil; + +@implementation SDLSystemAction + ++ (SDLSystemAction *)valueOf:(NSString *)value { + for (SDLSystemAction *item in SDLSystemAction.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLSystemAction_values == nil) { + SDLSystemAction_values = @[ + SDLSystemAction.DEFAULT_ACTION, + SDLSystemAction.STEAL_FOCUS, + SDLSystemAction.KEEP_CONTEXT, + ]; + } + return SDLSystemAction_values; +} + ++ (SDLSystemAction *)DEFAULT_ACTION { + if (SDLSystemAction_DEFAULT_ACTION == nil) { + SDLSystemAction_DEFAULT_ACTION = [[SDLSystemAction alloc] initWithValue:@"DEFAULT_ACTION"]; + } + return SDLSystemAction_DEFAULT_ACTION; +} + ++ (SDLSystemAction *)STEAL_FOCUS { + if (SDLSystemAction_STEAL_FOCUS == nil) { + SDLSystemAction_STEAL_FOCUS = [[SDLSystemAction alloc] initWithValue:@"STEAL_FOCUS"]; + } + return SDLSystemAction_STEAL_FOCUS; +} + ++ (SDLSystemAction *)KEEP_CONTEXT { + if (SDLSystemAction_KEEP_CONTEXT == nil) { + SDLSystemAction_KEEP_CONTEXT = [[SDLSystemAction alloc] initWithValue:@"KEEP_CONTEXT"]; + } + return SDLSystemAction_KEEP_CONTEXT; +} + +@end diff --git a/SmartDeviceLink/SDLSystemContext.h b/SmartDeviceLink/SDLSystemContext.h new file mode 100644 index 000000000..89e92e420 --- /dev/null +++ b/SmartDeviceLink/SDLSystemContext.h @@ -0,0 +1,70 @@ +// SDLSystemContext.h +// + + +#import "SDLEnum.h" + +/** + * Indicates whether or not a user-initiated interaction is in progress, and if so, in what mode (i.e. MENU or VR). + * + * @since SDL 1.0 + */ +@interface SDLSystemContext : SDLEnum { +} + +/** + * Convert String to SDLSystemContext + * + * @param value String value to retrieve the object for + * + * @return SDLSystemContext + */ ++ (SDLSystemContext *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLSystemContext + * + * @return an array that store all possible SDLSystemContext + */ ++ (NSArray *)values; + +/** + * @abstract No user interaction (user-initiated or app-initiated) is in progress. + * + * @return SDLSystemContext object of value *MAIN* + */ ++ (SDLSystemContext *)MAIN; + +/** + * @abstract VR-oriented, user-initiated or app-initiated interaction is in-progress. + * + * @return SDLSystemContext object of value *VRSESSION* + */ ++ (SDLSystemContext *)VRSESSION; + +/** + * @abstract Menu-oriented, user-initiated or app-initiated interaction is in-progress. + * + * @return SDLSystemContext object of value *MENU* + */ ++ (SDLSystemContext *)MENU; + +/** + * @abstract The app's display HMI is currently being obscured by either a system or other app's overlay. + * + * @return SDLSystemContext object of value *HMI_OBSCURED* + * + * @since SDL 2.0 + */ ++ (SDLSystemContext *)HMI_OBSCURED; + +/** + * @abstract Broadcast only to whichever app has an alert currently being displayed. + * + * @return SDLSystemContext object of value *ALERT* + * + * @since SDL 2.0 + */ ++ (SDLSystemContext *)ALERT; + +@end diff --git a/SmartDeviceLink/SDLSystemContext.m b/SmartDeviceLink/SDLSystemContext.m new file mode 100644 index 000000000..76c5c9f38 --- /dev/null +++ b/SmartDeviceLink/SDLSystemContext.m @@ -0,0 +1,74 @@ +// SDLSystemContext.m +// + + +#import "SDLSystemContext.h" + +SDLSystemContext *SDLSystemContext_MAIN = nil; +SDLSystemContext *SDLSystemContext_VRSESSION = nil; +SDLSystemContext *SDLSystemContext_MENU = nil; +SDLSystemContext *SDLSystemContext_HMI_OBSCURED = nil; +SDLSystemContext *SDLSystemContext_ALERT = nil; + +NSArray *SDLSystemContext_values = nil; + +@implementation SDLSystemContext + ++ (SDLSystemContext *)valueOf:(NSString *)value { + for (SDLSystemContext *item in SDLSystemContext.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLSystemContext_values == nil) { + SDLSystemContext_values = @[ + SDLSystemContext.MAIN, + SDLSystemContext.VRSESSION, + SDLSystemContext.MENU, + SDLSystemContext.HMI_OBSCURED, + SDLSystemContext.ALERT, + ]; + } + return SDLSystemContext_values; +} + ++ (SDLSystemContext *)MAIN { + if (SDLSystemContext_MAIN == nil) { + SDLSystemContext_MAIN = [[SDLSystemContext alloc] initWithValue:@"MAIN"]; + } + return SDLSystemContext_MAIN; +} + ++ (SDLSystemContext *)VRSESSION { + if (SDLSystemContext_VRSESSION == nil) { + SDLSystemContext_VRSESSION = [[SDLSystemContext alloc] initWithValue:@"VRSESSION"]; + } + return SDLSystemContext_VRSESSION; +} + ++ (SDLSystemContext *)MENU { + if (SDLSystemContext_MENU == nil) { + SDLSystemContext_MENU = [[SDLSystemContext alloc] initWithValue:@"MENU"]; + } + return SDLSystemContext_MENU; +} + ++ (SDLSystemContext *)HMI_OBSCURED { + if (SDLSystemContext_HMI_OBSCURED == nil) { + SDLSystemContext_HMI_OBSCURED = [[SDLSystemContext alloc] initWithValue:@"HMI_OBSCURED"]; + } + return SDLSystemContext_HMI_OBSCURED; +} + ++ (SDLSystemContext *)ALERT { + if (SDLSystemContext_ALERT == nil) { + SDLSystemContext_ALERT = [[SDLSystemContext alloc] initWithValue:@"ALERT"]; + } + return SDLSystemContext_ALERT; +} + +@end diff --git a/SmartDeviceLink/SDLSystemRequest.h b/SmartDeviceLink/SDLSystemRequest.h new file mode 100644 index 000000000..479b5d18e --- /dev/null +++ b/SmartDeviceLink/SDLSystemRequest.h @@ -0,0 +1,23 @@ +// SDLSystemRequest.h +// + +#import "SDLRPCRequest.h" + +@class SDLRequestType; + + +/** An asynchronous request from the device; binary data can be included in hybrid part of message for some requests
    (such as HTTP, Proprietary, or Authentication requests) + *

    + * @since SmartDeviceLink 3.0 + * + */ +@interface SDLSystemRequest : SDLRPCRequest { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLRequestType *requestType; +@property (strong) NSString *fileName; + +@end diff --git a/SmartDeviceLink/SDLSystemRequest.m b/SmartDeviceLink/SDLSystemRequest.m new file mode 100644 index 000000000..836b44447 --- /dev/null +++ b/SmartDeviceLink/SDLSystemRequest.m @@ -0,0 +1,54 @@ +// SDLSystemRequest.m +// + + +#import "SDLSystemRequest.h" + +#import "SDLNames.h" +#import "SDLRequestType.h" + + +@implementation SDLSystemRequest + +- (instancetype)init { + if (self = [super initWithName:NAMES_SystemRequest]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setRequestType:(SDLRequestType *)requestType { + if (requestType != nil) { + [parameters setObject:requestType forKey:NAMES_requestType]; + } else { + [parameters removeObjectForKey:NAMES_requestType]; + } +} + +- (SDLRequestType *)requestType { + NSObject *obj = [parameters objectForKey:NAMES_requestType]; + if (obj == nil || [obj isKindOfClass:SDLRequestType.class]) { + return (SDLRequestType *)obj; + } else { + return [SDLRequestType valueOf:(NSString *)obj]; + } +} + +- (void)setFileName:(NSString *)fileName { + if (fileName != nil) { + [parameters setObject:fileName forKey:NAMES_fileName]; + } else { + [parameters removeObjectForKey:NAMES_fileName]; + } +} + +- (NSString *)fileName { + return [parameters objectForKey:NAMES_fileName]; +} + +@end diff --git a/SmartDeviceLink/SDLSystemRequestResponse.h b/SmartDeviceLink/SDLSystemRequestResponse.h new file mode 100644 index 000000000..4c99d605f --- /dev/null +++ b/SmartDeviceLink/SDLSystemRequestResponse.h @@ -0,0 +1,16 @@ +// SDLSystemRequestResponse.h +// + + +#import "SDLRPCResponse.h" + +/** SDLSystemRequestResponse is sent, when SDLSystemRequest has been called. + * SinceSmartDeviceLink 3.0 + */ +@interface SDLSystemRequestResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLSystemRequestResponse.m b/SmartDeviceLink/SDLSystemRequestResponse.m new file mode 100644 index 000000000..ba563e561 --- /dev/null +++ b/SmartDeviceLink/SDLSystemRequestResponse.m @@ -0,0 +1,23 @@ +// SDLSystemRequestResponse.m +// + + +#import "SDLSystemRequestResponse.h" + +#import "SDLNames.h" + +@implementation SDLSystemRequestResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_SystemRequest]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLTBTState.h b/SmartDeviceLink/SDLTBTState.h new file mode 100644 index 000000000..397f500dd --- /dev/null +++ b/SmartDeviceLink/SDLTBTState.h @@ -0,0 +1,24 @@ +// SDLTBTState.h +// + + +#import "SDLEnum.h" + +@interface SDLTBTState : SDLEnum { +} + ++ (SDLTBTState *)valueOf:(NSString *)value; ++ (NSArray *)values; + ++ (SDLTBTState *)ROUTE_UPDATE_REQUEST; ++ (SDLTBTState *)ROUTE_ACCEPTED; ++ (SDLTBTState *)ROUTE_REFUSED; ++ (SDLTBTState *)ROUTE_CANCELLED; ++ (SDLTBTState *)ETA_REQUEST; ++ (SDLTBTState *)NEXT_TURN_REQUEST; ++ (SDLTBTState *)ROUTE_STATUS_REQUEST; ++ (SDLTBTState *)ROUTE_SUMMARY_REQUEST; ++ (SDLTBTState *)TRIP_STATUS_REQUEST; ++ (SDLTBTState *)ROUTE_UPDATE_REQUEST_TIMEOUT; + +@end diff --git a/SmartDeviceLink/SDLTBTState.m b/SmartDeviceLink/SDLTBTState.m new file mode 100644 index 000000000..0a2a23b8b --- /dev/null +++ b/SmartDeviceLink/SDLTBTState.m @@ -0,0 +1,119 @@ +// SDLTBTState.m +// + + +#import "SDLTBTState.h" + +SDLTBTState *SDLTBTState_ROUTE_UPDATE_REQUEST = nil; +SDLTBTState *SDLTBTState_ROUTE_ACCEPTED = nil; +SDLTBTState *SDLTBTState_ROUTE_REFUSED = nil; +SDLTBTState *SDLTBTState_ROUTE_CANCELLED = nil; +SDLTBTState *SDLTBTState_ETA_REQUEST = nil; +SDLTBTState *SDLTBTState_NEXT_TURN_REQUEST = nil; +SDLTBTState *SDLTBTState_ROUTE_STATUS_REQUEST = nil; +SDLTBTState *SDLTBTState_ROUTE_SUMMARY_REQUEST = nil; +SDLTBTState *SDLTBTState_TRIP_STATUS_REQUEST = nil; +SDLTBTState *SDLTBTState_ROUTE_UPDATE_REQUEST_TIMEOUT = nil; + +NSArray *SDLTBTState_values = nil; + +@implementation SDLTBTState + ++ (SDLTBTState *)valueOf:(NSString *)value { + for (SDLTBTState *item in SDLTBTState.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLTBTState_values == nil) { + SDLTBTState_values = @[ + SDLTBTState.ROUTE_UPDATE_REQUEST, + SDLTBTState.ROUTE_ACCEPTED, + SDLTBTState.ROUTE_REFUSED, + SDLTBTState.ROUTE_CANCELLED, + SDLTBTState.ETA_REQUEST, + SDLTBTState.NEXT_TURN_REQUEST, + SDLTBTState.ROUTE_STATUS_REQUEST, + SDLTBTState.ROUTE_SUMMARY_REQUEST, + SDLTBTState.TRIP_STATUS_REQUEST, + SDLTBTState.ROUTE_UPDATE_REQUEST_TIMEOUT, + ]; + } + return SDLTBTState_values; +} + ++ (SDLTBTState *)ROUTE_UPDATE_REQUEST { + if (SDLTBTState_ROUTE_UPDATE_REQUEST == nil) { + SDLTBTState_ROUTE_UPDATE_REQUEST = [[SDLTBTState alloc] initWithValue:@"ROUTE_UPDATE_REQUEST"]; + } + return SDLTBTState_ROUTE_UPDATE_REQUEST; +} + ++ (SDLTBTState *)ROUTE_ACCEPTED { + if (SDLTBTState_ROUTE_ACCEPTED == nil) { + SDLTBTState_ROUTE_ACCEPTED = [[SDLTBTState alloc] initWithValue:@"ROUTE_ACCEPTED"]; + } + return SDLTBTState_ROUTE_ACCEPTED; +} + ++ (SDLTBTState *)ROUTE_REFUSED { + if (SDLTBTState_ROUTE_REFUSED == nil) { + SDLTBTState_ROUTE_REFUSED = [[SDLTBTState alloc] initWithValue:@"ROUTE_REFUSED"]; + } + return SDLTBTState_ROUTE_REFUSED; +} + ++ (SDLTBTState *)ROUTE_CANCELLED { + if (SDLTBTState_ROUTE_CANCELLED == nil) { + SDLTBTState_ROUTE_CANCELLED = [[SDLTBTState alloc] initWithValue:@"ROUTE_CANCELLED"]; + } + return SDLTBTState_ROUTE_CANCELLED; +} + ++ (SDLTBTState *)ETA_REQUEST { + if (SDLTBTState_ETA_REQUEST == nil) { + SDLTBTState_ETA_REQUEST = [[SDLTBTState alloc] initWithValue:@"ETA_REQUEST"]; + } + return SDLTBTState_ETA_REQUEST; +} + ++ (SDLTBTState *)NEXT_TURN_REQUEST { + if (SDLTBTState_NEXT_TURN_REQUEST == nil) { + SDLTBTState_NEXT_TURN_REQUEST = [[SDLTBTState alloc] initWithValue:@"NEXT_TURN_REQUEST"]; + } + return SDLTBTState_NEXT_TURN_REQUEST; +} + ++ (SDLTBTState *)ROUTE_STATUS_REQUEST { + if (SDLTBTState_ROUTE_STATUS_REQUEST == nil) { + SDLTBTState_ROUTE_STATUS_REQUEST = [[SDLTBTState alloc] initWithValue:@"ROUTE_STATUS_REQUEST"]; + } + return SDLTBTState_ROUTE_STATUS_REQUEST; +} + ++ (SDLTBTState *)ROUTE_SUMMARY_REQUEST { + if (SDLTBTState_ROUTE_SUMMARY_REQUEST == nil) { + SDLTBTState_ROUTE_SUMMARY_REQUEST = [[SDLTBTState alloc] initWithValue:@"ROUTE_SUMMARY_REQUEST"]; + } + return SDLTBTState_ROUTE_SUMMARY_REQUEST; +} + ++ (SDLTBTState *)TRIP_STATUS_REQUEST { + if (SDLTBTState_TRIP_STATUS_REQUEST == nil) { + SDLTBTState_TRIP_STATUS_REQUEST = [[SDLTBTState alloc] initWithValue:@"TRIP_STATUS_REQUEST"]; + } + return SDLTBTState_TRIP_STATUS_REQUEST; +} + ++ (SDLTBTState *)ROUTE_UPDATE_REQUEST_TIMEOUT { + if (SDLTBTState_ROUTE_UPDATE_REQUEST_TIMEOUT == nil) { + SDLTBTState_ROUTE_UPDATE_REQUEST_TIMEOUT = [[SDLTBTState alloc] initWithValue:@"ROUTE_UPDATE_REQUEST_TIMEOUT"]; + } + return SDLTBTState_ROUTE_UPDATE_REQUEST_TIMEOUT; +} + +@end diff --git a/SmartDeviceLink/SDLTCPTransport.h b/SmartDeviceLink/SDLTCPTransport.h new file mode 100644 index 000000000..2c9f55805 --- /dev/null +++ b/SmartDeviceLink/SDLTCPTransport.h @@ -0,0 +1,13 @@ +// SDLTCPTransport.h +// + +#import "SDLAbstractTransport.h" + +@interface SDLTCPTransport : SDLAbstractTransport { + CFSocketRef socket; +} + +@property (strong, atomic) NSString *hostName; +@property (strong, atomic) NSString *portNumber; + +@end diff --git a/SmartDeviceLink/SDLTCPTransport.m b/SmartDeviceLink/SDLTCPTransport.m new file mode 100644 index 000000000..81fc9c555 --- /dev/null +++ b/SmartDeviceLink/SDLTCPTransport.m @@ -0,0 +1,175 @@ +// SDLTCPTransport.m +// + + +#import "SDLTCPTransport.h" +#import "SDLDebugTool.h" +#import "SDLHexUtility.h" +#import +#import +#import +#import +#import +#import +#import +#import +#import + + +// C function forward declarations. +int call_socket(const char *hostname, const char *port); +static void TCPCallback(CFSocketRef socket, CFSocketCallBackType type, CFDataRef address, const void *data, void *info); + +@interface SDLTCPTransport () { + BOOL _alreadyDestructed; + dispatch_queue_t _sendQueue; +} + +@end + + +@implementation SDLTCPTransport + +- (instancetype)init { + if (self = [super init]) { + _alreadyDestructed = NO; + _sendQueue = dispatch_queue_create("com.sdl.transport.tcp.transmit", DISPATCH_QUEUE_SERIAL); + [SDLDebugTool logInfo:@"SDLTCPTransport Init" + withType:SDLDebugType_Transport_iAP + toOutput:SDLDebugOutput_All + toGroup:self.debugConsoleGroupName]; + } + + return self; +} + + +- (void)connect { + [SDLDebugTool logInfo:@"Init" withType:SDLDebugType_Transport_TCP]; + + int sock_fd = call_socket([self.hostName UTF8String], [self.portNumber UTF8String]); + if (sock_fd < 0) { + [SDLDebugTool logInfo:@"Server Not Ready, Connection Failed" withType:SDLDebugType_Transport_TCP]; + return; + } + + CFSocketContext socketCtxt = {0, (__bridge void *)(self), NULL, NULL, NULL}; + socket = CFSocketCreateWithNative(kCFAllocatorDefault, sock_fd, kCFSocketDataCallBack | kCFSocketConnectCallBack, (CFSocketCallBack)&TCPCallback, &socketCtxt); + CFRunLoopSourceRef source = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0); + CFRunLoopRef loop = CFRunLoopGetCurrent(); + CFRunLoopAddSource(loop, source, kCFRunLoopDefaultMode); + CFRelease(source); +} + +- (void)sendData:(NSData *)msgBytes { + dispatch_async(_sendQueue, ^{ + @autoreleasepool { + NSString *byteStr = [SDLHexUtility getHexString:msgBytes]; + [SDLDebugTool logInfo:[NSString stringWithFormat:@"Sent %lu bytes: %@", (unsigned long)msgBytes.length, byteStr] withType:SDLDebugType_Transport_TCP toOutput:SDLDebugOutput_DeviceConsole]; + + CFSocketError e = CFSocketSendData(socket, NULL, (__bridge CFDataRef)msgBytes, 10000); + if (e != kCFSocketSuccess) { + NSString *errorCause = nil; + switch (e) { + case kCFSocketTimeout: + errorCause = @"Socket Timeout Error."; + break; + + case kCFSocketError: + default: + errorCause = @"Socket Error."; + break; + } + + [SDLDebugTool logInfo:[NSString stringWithFormat:@"Socket sendData error: %@", errorCause] withType:SDLDebugType_Transport_TCP toOutput:SDLDebugOutput_DeviceConsole]; + } + } + }); +} + +- (void)destructObjects { + if (!_alreadyDestructed) { + _alreadyDestructed = YES; + if (socket != nil) { + CFSocketInvalidate(socket); + CFRelease(socket); + } + } +} + +- (void)disconnect { + [self dispose]; +} + +- (void)dispose { + [self destructObjects]; +} + +- (void)dealloc { + [self destructObjects]; +} + +@end + +// C functions +int call_socket(const char *hostname, const char *port) { + int status, sock; + struct addrinfo hints; + struct addrinfo *servinfo; + + memset(&hints, 0, sizeof hints); + hints.ai_family = AF_UNSPEC; + hints.ai_socktype = SOCK_STREAM; + + //no host name?, no problem, get local host + if (hostname == nil) { + char localhost[128]; + gethostname(localhost, sizeof localhost); + hostname = (const char *)&localhost; + } + + //getaddrinfo setup + if ((status = getaddrinfo(hostname, port, &hints, &servinfo)) != 0) { + fprintf(stderr, "getaddrinfo error: %s\n", gai_strerror(status)); + return (-1); + } + + //get socket + if ((sock = socket(servinfo->ai_family, servinfo->ai_socktype, servinfo->ai_protocol)) < 0) + return (-1); + + //connect + if (connect(sock, servinfo->ai_addr, servinfo->ai_addrlen) < 0) { + close(sock); + return (-1); + } + + freeaddrinfo(servinfo); // free the linked-list + return (sock); +} + +static void TCPCallback(CFSocketRef socket, CFSocketCallBackType type, CFDataRef address, const void *data, void *info) { + if (kCFSocketConnectCallBack == type) { + SDLTCPTransport *transport = (__bridge SDLTCPTransport *)info; + SInt32 errorNumber = 0; + if (data) { + SInt32 *errorNumberPtr = (SInt32 *)data; + errorNumber = *errorNumberPtr; + } + [transport.delegate onTransportConnected]; + } else if (kCFSocketDataCallBack == type) { + SDLTCPTransport *transport = (__bridge SDLTCPTransport *)info; + + NSMutableString *byteStr = [NSMutableString stringWithCapacity:((int)CFDataGetLength((CFDataRef)data) * 2)]; + for (int i = 0; i < (int)CFDataGetLength((CFDataRef)data); i++) { + [byteStr appendFormat:@"%02X", ((Byte *)(UInt8 *)CFDataGetBytePtr((CFDataRef)data))[i]]; + } + + [SDLDebugTool logInfo:[NSString stringWithFormat:@"Read %d bytes: %@", (int)CFDataGetLength((CFDataRef)data), byteStr] withType:SDLDebugType_Transport_TCP toOutput:SDLDebugOutput_DeviceConsole]; + + [transport.delegate onDataReceived:[NSData dataWithBytes:(UInt8 *)CFDataGetBytePtr((CFDataRef)data) length:(int)CFDataGetLength((CFDataRef)data)]]; + } else { + NSString *logMessage = [NSString stringWithFormat:@"unhandled TCPCallback: %lu", type]; + [SDLDebugTool logInfo:logMessage withType:SDLDebugType_Transport_TCP toOutput:SDLDebugOutput_DeviceConsole]; + } +} diff --git a/SmartDeviceLink/SDLTTSChunk.h b/SmartDeviceLink/SDLTTSChunk.h new file mode 100644 index 000000000..a304c3d99 --- /dev/null +++ b/SmartDeviceLink/SDLTTSChunk.h @@ -0,0 +1,69 @@ +// SDLTTSChunk.h +// + +#import "SDLRPCMessage.h" + +@class SDLSpeechCapabilities; + + +/** + * Specifies what is to be spoken. This can be simply a text phrase, which SDL will speak according to its own rules. It can also be phonemes from either the Microsoft SAPI phoneme set, or from the LHPLUS phoneme set. It can also be a pre-recorded sound in WAV format (either developer-defined, or provided by the SDL platform). + * + * In SDL, words, and therefore sentences, can be built up from phonemes and are used to explicitly provide the proper pronounciation to the TTS engine. For example, to have SDL pronounce the word "read" as "red", rather than as when it is pronounced like "reed", the developer would use phonemes to express this desired pronounciation. + * + * For more information about phonemes, see http://en.wikipedia.org/wiki/Phoneme. + * + * Parameter List + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    NameTypeDescriptionSmartDeviceLink Ver. Available
    textStringText to be spoken, or a phoneme specification, or the name of a pre-recorded sound. The contents of this field are indicated by the "type" field.SmartDeviceLink 1.0
    typeSpeechCapabilitiesIndicates the type of information in the "text" field (e.g. phrase to be spoken, phoneme specification, name of pre-recorded sound). SmartDeviceLink 1.0
    + * + * @since SmartDeviceLink 1.0 + */ +@interface SDLTTSChunk : SDLRPCStruct { +} + +/** + * @abstract Constructs a newly allocated SDLTTSChunk object + */ +- (instancetype)init; + +/** + * @abstract Constructs a newly allocated SDLTTSChunk object indicated by the dictionary parameter + * + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract Text to be spoken, or a phoneme specification, or the name of a pre-recorded sound. The contents of this field are indicated by the "type" field. + * + * Required, Max length 500 + */ +@property (strong) NSString *text; + +/** + * @abstract The type of information in the "text" field (e.g. phrase to be spoken, phoneme specification, name of pre-recorded sound). + * + * Required + */ +@property (strong) SDLSpeechCapabilities *type; + +@end diff --git a/SmartDeviceLink/SDLTTSChunk.m b/SmartDeviceLink/SDLTTSChunk.m new file mode 100644 index 000000000..7e45413eb --- /dev/null +++ b/SmartDeviceLink/SDLTTSChunk.m @@ -0,0 +1,53 @@ +// SDLTTSChunk.m +// + +#import "SDLTTSChunk.h" + +#import "SDLNames.h" +#import "SDLSpeechCapabilities.h" + + +@implementation SDLTTSChunk + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setText:(NSString *)text { + if (text != nil) { + [store setObject:text forKey:NAMES_text]; + } else { + [store removeObjectForKey:NAMES_text]; + } +} + +- (NSString *)text { + return [store objectForKey:NAMES_text]; +} + +- (void)setType:(SDLSpeechCapabilities *)type { + if (type != nil) { + [store setObject:type forKey:NAMES_type]; + } else { + [store removeObjectForKey:NAMES_type]; + } +} + +- (SDLSpeechCapabilities *)type { + NSObject *obj = [store objectForKey:NAMES_type]; + if (obj == nil || [obj isKindOfClass:SDLSpeechCapabilities.class]) { + return (SDLSpeechCapabilities *)obj; + } else { + return [SDLSpeechCapabilities valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLTTSChunkFactory.h b/SmartDeviceLink/SDLTTSChunkFactory.h new file mode 100644 index 000000000..466ae2bae --- /dev/null +++ b/SmartDeviceLink/SDLTTSChunkFactory.h @@ -0,0 +1,16 @@ +// SDLTTSChunkFactory.h +// + +#import + +@class SDLTTSChunk; +@class SDLSpeechCapabilities; + + +@interface SDLTTSChunkFactory : NSObject { +} + ++ (SDLTTSChunk *)buildTTSChunkForString:(NSString *)text type:(SDLSpeechCapabilities *)type; ++ (NSMutableArray *)buildTTSChunksFromSimple:(NSString *)simple; + +@end diff --git a/SmartDeviceLink/SDLTTSChunkFactory.m b/SmartDeviceLink/SDLTTSChunkFactory.m new file mode 100644 index 000000000..c27983d3a --- /dev/null +++ b/SmartDeviceLink/SDLTTSChunkFactory.m @@ -0,0 +1,27 @@ +// SDLTTSChunkFactory.m +// + +#import "SDLTTSChunkFactory.h" + +#import "SDLSpeechCapabilities.h" +#import "SDLTTSChunk.h" + + +@implementation SDLTTSChunkFactory + ++ (SDLTTSChunk *)buildTTSChunkForString:(NSString *)text type:(SDLSpeechCapabilities *)type { + SDLTTSChunk *ret = [[SDLTTSChunk alloc] init]; + ret.text = text; + ret.type = type; + + return ret; +} + ++ (NSMutableArray *)buildTTSChunksFromSimple:(NSString *)simple { + if (simple == nil) + return nil; + + return [NSMutableArray arrayWithObject:[SDLTTSChunkFactory buildTTSChunkForString:simple type:[SDLSpeechCapabilities TEXT]]]; +} + +@end diff --git a/SmartDeviceLink/SDLTextAlignment.h b/SmartDeviceLink/SDLTextAlignment.h new file mode 100644 index 000000000..0d9913e86 --- /dev/null +++ b/SmartDeviceLink/SDLTextAlignment.h @@ -0,0 +1,52 @@ +// SDLTextAlignment.h +// + + +#import "SDLEnum.h" + +/** + * The list of possible alignments of text in a field. May only work on some display types. + * + * @since SDL 1.0 + */ +@interface SDLTextAlignment : SDLEnum { +} + +/** + * Convert String to SDLTextAlignment + * + * @param value The value of the string to get an object for + * + * @return SDLTextAlignment + */ ++ (SDLTextAlignment *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLTextAlignment + * + * @return an array that store all possible SDLTextAlignment + */ ++ (NSArray *)values; + +/** + * @abstract Text aligned left. + * + * @return A SDLTextAlignment object with value of *LEFT_ALIGNED* + */ ++ (SDLTextAlignment *)LEFT_ALIGNED; + +/** + * @abstract Text aligned right. + * + * @return A SDLTextAlignment object with value of *RIGHT_ALIGNED* + */ ++ (SDLTextAlignment *)RIGHT_ALIGNED; + +/** + * @abstract Text aligned centered. + * + * @return A SDLTextAlignment object with value of *CENTERED* + */ ++ (SDLTextAlignment *)CENTERED; + +@end diff --git a/SmartDeviceLink/SDLTextAlignment.m b/SmartDeviceLink/SDLTextAlignment.m new file mode 100644 index 000000000..30560f4a2 --- /dev/null +++ b/SmartDeviceLink/SDLTextAlignment.m @@ -0,0 +1,56 @@ +// SDLTextAlignment.m +// + + +#import "SDLTextAlignment.h" + +SDLTextAlignment *SDLTextAlignment_LEFT_ALIGNED = nil; +SDLTextAlignment *SDLTextAlignment_RIGHT_ALIGNED = nil; +SDLTextAlignment *SDLTextAlignment_CENTERED = nil; + +NSArray *SDLTextAlignment_values = nil; + +@implementation SDLTextAlignment + ++ (SDLTextAlignment *)valueOf:(NSString *)value { + for (SDLTextAlignment *item in SDLTextAlignment.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLTextAlignment_values == nil) { + SDLTextAlignment_values = @[ + SDLTextAlignment.LEFT_ALIGNED, + SDLTextAlignment.RIGHT_ALIGNED, + SDLTextAlignment.CENTERED, + ]; + } + return SDLTextAlignment_values; +} + ++ (SDLTextAlignment *)LEFT_ALIGNED { + if (SDLTextAlignment_LEFT_ALIGNED == nil) { + SDLTextAlignment_LEFT_ALIGNED = [[SDLTextAlignment alloc] initWithValue:@"LEFT_ALIGNED"]; + } + return SDLTextAlignment_LEFT_ALIGNED; +} + ++ (SDLTextAlignment *)RIGHT_ALIGNED { + if (SDLTextAlignment_RIGHT_ALIGNED == nil) { + SDLTextAlignment_RIGHT_ALIGNED = [[SDLTextAlignment alloc] initWithValue:@"RIGHT_ALIGNED"]; + } + return SDLTextAlignment_RIGHT_ALIGNED; +} + ++ (SDLTextAlignment *)CENTERED { + if (SDLTextAlignment_CENTERED == nil) { + SDLTextAlignment_CENTERED = [[SDLTextAlignment alloc] initWithValue:@"CENTERED"]; + } + return SDLTextAlignment_CENTERED; +} + +@end diff --git a/SmartDeviceLink/SDLTextField.h b/SmartDeviceLink/SDLTextField.h new file mode 100644 index 000000000..7af898fe5 --- /dev/null +++ b/SmartDeviceLink/SDLTextField.h @@ -0,0 +1,106 @@ +// SDLTextField.h +// + +#import "SDLRPCMessage.h" + +@class SDLCharacterSet; +@class SDLTextFieldName; + + +/** + * Struct defining the characteristics of a displayed field on the HMI. + * + * Parameter List + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    NameTypeDescriptionSmartDeviceLink Ver. Available
    nameTextFieldNameEnumeration identifying the field. SDL 1.0
    characterSetCharacterSetThe character set that is supported in this field. SDL 1.0
    widthInt16The number of characters in one row of this field. + *
      + *
    • Minvalue="1"
    • + *
    • maxvalue="500"
    • + *
    + *
    SDL 1.0
    rowsInt16The number of rows for this text field. + *
      + *
    • Minvalue="1"
    • + *
    • maxvalue="3"
    • + *
    + *
    SDL 1.0
    + * + * @since SDL 1.0 + */ +@interface SDLTextField : SDLRPCStruct { +} + +/** + * @abstract Constructs a newly allocated SDLTextField object + */ +- (instancetype)init; + +/** + * @abstract Constructs a newly allocated SDLTextField object indicated by the dictionary parameter + * + * @param dict The dictionary to use to construct the object + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The enumeration identifying the field. + * + * @see SDLTextFieldName + * + * Required + */ +@property (strong) SDLTextFieldName *name; + +/** + * @abstract The character set that is supported in this field. + * + * @see SDLCharacterSet + * + * Required + */ +@property (strong) SDLCharacterSet *characterSet; + +/** + * @abstract The number of characters in one row of this field. + * + * Required, Integer 1 - 500 + */ +@property (strong) NSNumber *width; + +/** + * @abstract The number of rows for this text field. + * + * Required, Integer 1 - 8 + */ +@property (strong) NSNumber *rows; + +@end diff --git a/SmartDeviceLink/SDLTextField.m b/SmartDeviceLink/SDLTextField.m new file mode 100644 index 000000000..926d258f1 --- /dev/null +++ b/SmartDeviceLink/SDLTextField.m @@ -0,0 +1,83 @@ +// SDLTextField.m +// + +#import "SDLTextField.h" + +#import "SDLCharacterSet.h" +#import "SDLNames.h" +#import "SDLTextFieldName.h" + + +@implementation SDLTextField + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setName:(SDLTextFieldName *)name { + if (name != nil) { + [store setObject:name forKey:NAMES_name]; + } else { + [store removeObjectForKey:NAMES_name]; + } +} + +- (SDLTextFieldName *)name { + NSObject *obj = [store objectForKey:NAMES_name]; + if (obj == nil || [obj isKindOfClass:SDLTextFieldName.class]) { + return (SDLTextFieldName *)obj; + } else { + return [SDLTextFieldName valueOf:(NSString *)obj]; + } +} + +- (void)setCharacterSet:(SDLCharacterSet *)characterSet { + if (characterSet != nil) { + [store setObject:characterSet forKey:NAMES_characterSet]; + } else { + [store removeObjectForKey:NAMES_characterSet]; + } +} + +- (SDLCharacterSet *)characterSet { + NSObject *obj = [store objectForKey:NAMES_characterSet]; + if (obj == nil || [obj isKindOfClass:SDLCharacterSet.class]) { + return (SDLCharacterSet *)obj; + } else { + return [SDLCharacterSet valueOf:(NSString *)obj]; + } +} + +- (void)setWidth:(NSNumber *)width { + if (width != nil) { + [store setObject:width forKey:NAMES_width]; + } else { + [store removeObjectForKey:NAMES_width]; + } +} + +- (NSNumber *)width { + return [store objectForKey:NAMES_width]; +} + +- (void)setRows:(NSNumber *)rows { + if (rows != nil) { + [store setObject:rows forKey:NAMES_rows]; + } else { + [store removeObjectForKey:NAMES_rows]; + } +} + +- (NSNumber *)rows { + return [store objectForKey:NAMES_rows]; +} + +@end diff --git a/SmartDeviceLink/SDLTextFieldName.h b/SmartDeviceLink/SDLTextFieldName.h new file mode 100644 index 000000000..8fc4c9def --- /dev/null +++ b/SmartDeviceLink/SDLTextFieldName.h @@ -0,0 +1,267 @@ +// SDLTextFieldName.h +// + + +#import "SDLEnum.h" + +/** + * Names of the text fields that can appear on a SDL display. + * + * @since SDL 1.0 + */ +@interface SDLTextFieldName : SDLEnum { +} + +/** + * Convert String to SDLTextFieldName + * + * @param value String value to retrieve the object for + * + * @return SDLTextFieldName + */ ++ (SDLTextFieldName *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLTextFieldName + * + * @return an array that store all possible SDLTextFieldName + */ ++ (NSArray *)values; + +/** + * @abstract The first line of the first set of main fields of the persistent display. Applies to SDLShow. + * + * @return a SDLTextFieldName with value of *mainField1* + */ ++ (SDLTextFieldName *)mainField1; + +/** + * @abstract The second line of the first set of main fields of the persistent display. Applies to SDLShow. + * + * @return a SDLTextFieldName with value of *mainField2* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)mainField2; + +/** + * @abstract The first line of the second set of main fields of the persistent display. Applies to SDLShow. + * + * @return a SDLTextFieldName with value of *mainField3* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)mainField3; + +/** + * @abstract The second line of the second set of main fields of the persistent display. Applies to SDLShow. + * + * @return a SDLTextFieldName with value of *mainField4* + */ ++ (SDLTextFieldName *)mainField4; + +/** + * @abstract The status bar on the NGN display. Applies to SDLShow. + * + * @return a SDLTextFieldName with value of *statusBar* + */ ++ (SDLTextFieldName *)statusBar; + +/** + * @abstract Text value for MediaClock field. Must be properly formatted according to MediaClockFormat. Applies to SDLShow. + * + * @discussion This field is commonly used to show elapsed or remaining time in an audio track or audio capture. + * + * @return a SDLTextFieldName with value of *mediaClock* + */ ++ (SDLTextFieldName *)mediaClock; + +/** + * @abstract The track field of NGN type ACMs. This field is only available for media applications on a NGN display. Applies to SDLShow. + * + * @discussion This field is commonly used to show the current track number + * + * @return a SDLTextFieldName with value of *mediaTrack* + */ ++ (SDLTextFieldName *)mediaTrack; + +/** + * @abstract The first line of the alert text field. Applies to SDLAlert. + * + * @return a SDLTextFieldName with value of *alertText1* + */ ++ (SDLTextFieldName *)alertText1; + +/** + * @abstract The second line of the alert text field. Applies to SDLAlert. + * + * @return a SDLTextFieldName with value of *alertText2* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)alertText2; + +/** + * @abstract The third line of the alert text field. Applies to SDLAlert. + * + * @return a SDLTextFieldName with value of *alertText3* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)alertText3; + +/** + * @abstract Long form body of text that can include newlines and tabs. Applies to SDLScrollableMessage. + * + * @return a SDLTextFieldName with value of *scrollableMessageBody* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)scrollableMessageBody; + +/** + * @abstract First line suggestion for a user response (in the case of VR enabled interaction). + * + * @return a SDLTextFieldName with value of *initialInteractionText* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)initialInteractionText; + +/** + * @abstract First line of navigation text. + * + * @return a SDLTextFieldName with value of *navigationText1* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)navigationText1; + +/** + * @abstract Second line of navigation text. + * + * @return a SDLTextFieldName with value of *navigationText2* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)navigationText2; + +/** + * @abstract Estimated Time of Arrival time for navigation. + * + * @return a SDLTextFieldName with value of *ETA* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)ETA; + +/** + * @abstract Total distance to destination for navigation. + * + * @return a SDLTextFieldName with value of *totalDistance* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)totalDistance; + +/** + * @abstract First line of text for audio pass thru. + * + * @return a SDLTextFieldName with value of *audioPassThruDisplayText1* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)audioPassThruDisplayText1; + +/** + * @abstract Second line of text for audio pass thru. + * + * @return a SDLTextFieldName with value of *audioPassThruDisplayText2* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)audioPassThruDisplayText2; + +/** + * @abstract Header text for slider. + * + * @return a SDLTextFieldName with value of *sliderHeader* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)sliderHeader; + +/** + * @abstract Footer text for slider + * + * @return a SDLTextFieldName with value of *sliderFooter* + * + * @since SDL 2.0 + */ ++ (SDLTextFieldName *)sliderFooter; + +/** + * Primary text for SDLChoice + * + * @return a SDLTextFieldName with value of *menuName* + */ ++ (SDLTextFieldName *)menuName; + +/** + * Secondary text for SDLChoice + * + * @return a SDLTextFieldName with value of *secondaryText* + */ ++ (SDLTextFieldName *)secondaryText; + +/** + * Tertiary text for SDLChoice + * + * @return a SDLTextFieldName with value of *tertiaryText* + */ ++ (SDLTextFieldName *)tertiaryText; + +/** + * Optional text to label an app menu button (for certain touchscreen platforms) + * + * @return a SDLTextFieldName with value of *menuTitle* + */ ++ (SDLTextFieldName *)menuTitle; + +/** + * Optional name / title of intended location for SDLSendLocation + * + * @return a SDLTextFieldName with value of *locationName* + * + * @since SDL 4.0 + */ ++ (SDLTextFieldName *)locationName; + +/** + * Optional description of intended location / establishment (if applicable) for SDLSendLocation + * + * @return a SDLTextFieldName with value of *locationDescription* + * + * @since SDL 4.0 + */ ++ (SDLTextFieldName *)locationDescription; + +/** + * Optional location address (if applicable) for SDLSendLocation + * + * @return a SDLTextFieldName with value of *addressLines* + * + * @since SDL 4.0 + */ ++ (SDLTextFieldName *)addressLines; + +/** + * Optional hone number of intended location / establishment (if applicable) for SDLSendLocation + * + * @return a SDLTextFieldName with value of *phoneNumber* + * + * @since SDL 4.0 + */ ++ (SDLTextFieldName *)phoneNumber; + +@end diff --git a/SmartDeviceLink/SDLTextFieldName.m b/SmartDeviceLink/SDLTextFieldName.m new file mode 100644 index 000000000..4cc1ac369 --- /dev/null +++ b/SmartDeviceLink/SDLTextFieldName.m @@ -0,0 +1,281 @@ +// SDLTextFieldName.m +// + + +#import "SDLTextFieldName.h" + +SDLTextFieldName *SDLTextFieldName_mainField1 = nil; +SDLTextFieldName *SDLTextFieldName_mainField2 = nil; +SDLTextFieldName *SDLTextFieldName_mainField3 = nil; +SDLTextFieldName *SDLTextFieldName_mainField4 = nil; +SDLTextFieldName *SDLTextFieldName_statusBar = nil; +SDLTextFieldName *SDLTextFieldName_mediaClock = nil; +SDLTextFieldName *SDLTextFieldName_mediaTrack = nil; +SDLTextFieldName *SDLTextFieldName_alertText1 = nil; +SDLTextFieldName *SDLTextFieldName_alertText2 = nil; +SDLTextFieldName *SDLTextFieldName_alertText3 = nil; +SDLTextFieldName *SDLTextFieldName_scrollableMessageBody = nil; +SDLTextFieldName *SDLTextFieldName_initialInteractionText = nil; +SDLTextFieldName *SDLTextFieldName_navigationText1 = nil; +SDLTextFieldName *SDLTextFieldName_navigationText2 = nil; +SDLTextFieldName *SDLTextFieldName_ETA = nil; +SDLTextFieldName *SDLTextFieldName_totalDistance = nil; +SDLTextFieldName *SDLTextFieldName_audioPassThruDisplayText1 = nil; +SDLTextFieldName *SDLTextFieldName_audioPassThruDisplayText2 = nil; +SDLTextFieldName *SDLTextFieldName_sliderHeader = nil; +SDLTextFieldName *SDLTextFieldName_sliderFooter = nil; +SDLTextFieldName *SDLTextFieldName_menuName = nil; +SDLTextFieldName *SDLTextFieldName_secondaryText = nil; +SDLTextFieldName *SDLTextFieldName_tertiaryText = nil; +SDLTextFieldName *SDLTextFieldName_menuTitle = nil; +SDLTextFieldName *SDLTextFieldName_locationName = nil; +SDLTextFieldName *SDLTextFieldName_locationDescription = nil; +SDLTextFieldName *SDLTextFieldName_addressLines = nil; +SDLTextFieldName *SDLTextFieldName_phoneNumber = nil; + +NSArray *SDLTextFieldName_values = nil; + +@implementation SDLTextFieldName + ++ (SDLTextFieldName *)valueOf:(NSString *)value { + for (SDLTextFieldName *item in SDLTextFieldName.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLTextFieldName_values == nil) { + SDLTextFieldName_values = @[ + SDLTextFieldName.mainField1, + SDLTextFieldName.mainField2, + SDLTextFieldName.mainField3, + SDLTextFieldName.mainField4, + SDLTextFieldName.statusBar, + SDLTextFieldName.mediaClock, + SDLTextFieldName.mediaTrack, + SDLTextFieldName.alertText1, + SDLTextFieldName.alertText2, + SDLTextFieldName.alertText3, + SDLTextFieldName.scrollableMessageBody, + SDLTextFieldName.initialInteractionText, + SDLTextFieldName.navigationText1, + SDLTextFieldName.navigationText2, + SDLTextFieldName.ETA, + SDLTextFieldName.totalDistance, + SDLTextFieldName.audioPassThruDisplayText1, + SDLTextFieldName.audioPassThruDisplayText2, + SDLTextFieldName.sliderHeader, + SDLTextFieldName.sliderFooter, + SDLTextFieldName.menuName, + SDLTextFieldName.secondaryText, + SDLTextFieldName.tertiaryText, + SDLTextFieldName.menuTitle, + SDLTextFieldName.locationName, + SDLTextFieldName.locationDescription, + SDLTextFieldName.addressLines, + SDLTextFieldName.phoneNumber, + ]; + } + return SDLTextFieldName_values; +} + ++ (SDLTextFieldName *)mainField1 { + if (SDLTextFieldName_mainField1 == nil) { + SDLTextFieldName_mainField1 = [[SDLTextFieldName alloc] initWithValue:@"mainField1"]; + } + return SDLTextFieldName_mainField1; +} + ++ (SDLTextFieldName *)mainField2 { + if (SDLTextFieldName_mainField2 == nil) { + SDLTextFieldName_mainField2 = [[SDLTextFieldName alloc] initWithValue:@"mainField2"]; + } + return SDLTextFieldName_mainField2; +} + ++ (SDLTextFieldName *)mainField3 { + if (SDLTextFieldName_mainField3 == nil) { + SDLTextFieldName_mainField3 = [[SDLTextFieldName alloc] initWithValue:@"mainField3"]; + } + return SDLTextFieldName_mainField3; +} + ++ (SDLTextFieldName *)mainField4 { + if (SDLTextFieldName_mainField4 == nil) { + SDLTextFieldName_mainField4 = [[SDLTextFieldName alloc] initWithValue:@"mainField4"]; + } + return SDLTextFieldName_mainField4; +} + ++ (SDLTextFieldName *)statusBar { + if (SDLTextFieldName_statusBar == nil) { + SDLTextFieldName_statusBar = [[SDLTextFieldName alloc] initWithValue:@"statusBar"]; + } + return SDLTextFieldName_statusBar; +} + ++ (SDLTextFieldName *)mediaClock { + if (SDLTextFieldName_mediaClock == nil) { + SDLTextFieldName_mediaClock = [[SDLTextFieldName alloc] initWithValue:@"mediaClock"]; + } + return SDLTextFieldName_mediaClock; +} + ++ (SDLTextFieldName *)mediaTrack { + if (SDLTextFieldName_mediaTrack == nil) { + SDLTextFieldName_mediaTrack = [[SDLTextFieldName alloc] initWithValue:@"mediaTrack"]; + } + return SDLTextFieldName_mediaTrack; +} + ++ (SDLTextFieldName *)alertText1 { + if (SDLTextFieldName_alertText1 == nil) { + SDLTextFieldName_alertText1 = [[SDLTextFieldName alloc] initWithValue:@"alertText1"]; + } + return SDLTextFieldName_alertText1; +} + ++ (SDLTextFieldName *)alertText2 { + if (SDLTextFieldName_alertText2 == nil) { + SDLTextFieldName_alertText2 = [[SDLTextFieldName alloc] initWithValue:@"alertText2"]; + } + return SDLTextFieldName_alertText2; +} + ++ (SDLTextFieldName *)alertText3 { + if (SDLTextFieldName_alertText3 == nil) { + SDLTextFieldName_alertText3 = [[SDLTextFieldName alloc] initWithValue:@"alertText3"]; + } + return SDLTextFieldName_alertText3; +} + ++ (SDLTextFieldName *)scrollableMessageBody { + if (SDLTextFieldName_scrollableMessageBody == nil) { + SDLTextFieldName_scrollableMessageBody = [[SDLTextFieldName alloc] initWithValue:@"scrollableMessageBody"]; + } + return SDLTextFieldName_scrollableMessageBody; +} + ++ (SDLTextFieldName *)initialInteractionText { + if (SDLTextFieldName_initialInteractionText == nil) { + SDLTextFieldName_initialInteractionText = [[SDLTextFieldName alloc] initWithValue:@"initialInteractionText"]; + } + return SDLTextFieldName_initialInteractionText; +} + ++ (SDLTextFieldName *)navigationText1 { + if (SDLTextFieldName_navigationText1 == nil) { + SDLTextFieldName_navigationText1 = [[SDLTextFieldName alloc] initWithValue:@"navigationText1"]; + } + return SDLTextFieldName_navigationText1; +} + ++ (SDLTextFieldName *)navigationText2 { + if (SDLTextFieldName_navigationText2 == nil) { + SDLTextFieldName_navigationText2 = [[SDLTextFieldName alloc] initWithValue:@"navigationText2"]; + } + return SDLTextFieldName_navigationText2; +} + ++ (SDLTextFieldName *)ETA { + if (SDLTextFieldName_ETA == nil) { + SDLTextFieldName_ETA = [[SDLTextFieldName alloc] initWithValue:@"ETA"]; + } + return SDLTextFieldName_ETA; +} + ++ (SDLTextFieldName *)totalDistance { + if (SDLTextFieldName_totalDistance == nil) { + SDLTextFieldName_totalDistance = [[SDLTextFieldName alloc] initWithValue:@"totalDistance"]; + } + return SDLTextFieldName_totalDistance; +} + ++ (SDLTextFieldName *)audioPassThruDisplayText1 { + if (SDLTextFieldName_audioPassThruDisplayText1 == nil) { + SDLTextFieldName_audioPassThruDisplayText1 = [[SDLTextFieldName alloc] initWithValue:@"audioPassThruDisplayText1"]; + } + return SDLTextFieldName_audioPassThruDisplayText1; +} + ++ (SDLTextFieldName *)audioPassThruDisplayText2 { + if (SDLTextFieldName_audioPassThruDisplayText2 == nil) { + SDLTextFieldName_audioPassThruDisplayText2 = [[SDLTextFieldName alloc] initWithValue:@"audioPassThruDisplayText2"]; + } + return SDLTextFieldName_audioPassThruDisplayText2; +} + ++ (SDLTextFieldName *)sliderHeader { + if (SDLTextFieldName_sliderHeader == nil) { + SDLTextFieldName_sliderHeader = [[SDLTextFieldName alloc] initWithValue:@"sliderHeader"]; + } + return SDLTextFieldName_sliderHeader; +} + ++ (SDLTextFieldName *)sliderFooter { + if (SDLTextFieldName_sliderFooter == nil) { + SDLTextFieldName_sliderFooter = [[SDLTextFieldName alloc] initWithValue:@"sliderFooter"]; + } + return SDLTextFieldName_sliderFooter; +} + ++ (SDLTextFieldName *)menuName { + if (SDLTextFieldName_menuName == nil) { + SDLTextFieldName_menuName = [[SDLTextFieldName alloc] initWithValue:@"menuName"]; + } + return SDLTextFieldName_menuName; +} + ++ (SDLTextFieldName *)secondaryText { + if (SDLTextFieldName_secondaryText == nil) { + SDLTextFieldName_secondaryText = [[SDLTextFieldName alloc] initWithValue:@"secondaryText"]; + } + return SDLTextFieldName_secondaryText; +} + ++ (SDLTextFieldName *)tertiaryText { + if (SDLTextFieldName_tertiaryText == nil) { + SDLTextFieldName_tertiaryText = [[SDLTextFieldName alloc] initWithValue:@"tertiaryText"]; + } + return SDLTextFieldName_tertiaryText; +} + ++ (SDLTextFieldName *)menuTitle { + if (SDLTextFieldName_menuTitle == nil) { + SDLTextFieldName_menuTitle = [[SDLTextFieldName alloc] initWithValue:@"menuTitle"]; + } + return SDLTextFieldName_menuTitle; +} + ++ (SDLTextFieldName *)locationName { + if (SDLTextFieldName_locationName == nil) { + SDLTextFieldName_locationName = [[SDLTextFieldName alloc] initWithValue:@"locationName"]; + } + return SDLTextFieldName_locationName; +} + ++ (SDLTextFieldName *)locationDescription { + if (SDLTextFieldName_locationDescription == nil) { + SDLTextFieldName_locationDescription = [[SDLTextFieldName alloc] initWithValue:@"locationDescription"]; + } + return SDLTextFieldName_locationDescription; +} + ++ (SDLTextFieldName *)addressLines { + if (SDLTextFieldName_addressLines == nil) { + SDLTextFieldName_addressLines = [[SDLTextFieldName alloc] initWithValue:@"addressLines"]; + } + return SDLTextFieldName_addressLines; +} + ++ (SDLTextFieldName *)phoneNumber { + if (SDLTextFieldName_phoneNumber == nil) { + SDLTextFieldName_phoneNumber = [[SDLTextFieldName alloc] initWithValue:@"phoneNumber"]; + } + return SDLTextFieldName_phoneNumber; +} + +@end diff --git a/SmartDeviceLink/SDLTimer.h b/SmartDeviceLink/SDLTimer.h new file mode 100644 index 000000000..f9f7be3d9 --- /dev/null +++ b/SmartDeviceLink/SDLTimer.h @@ -0,0 +1,19 @@ +// +// SDLTimer.h +// + +#import + +@interface SDLTimer : NSObject + +@property (nonatomic, copy) void (^elapsedBlock)(void); +@property (nonatomic, copy) void (^canceledBlock)(void); +@property (assign) float duration; + +- (instancetype)init; +- (instancetype)initWithDuration:(float)duration __deprecated; +- (instancetype)initWithDuration:(float)duration repeat:(BOOL)repeat; +- (void)start; +- (void)cancel; + +@end diff --git a/SmartDeviceLink/SDLTimer.m b/SmartDeviceLink/SDLTimer.m new file mode 100644 index 000000000..84ee6e24b --- /dev/null +++ b/SmartDeviceLink/SDLTimer.m @@ -0,0 +1,79 @@ +// +// SDLTimer.m +// + +#import "SDLTimer.h" + + +@interface SDLTimer () + +@property (strong) NSTimer *timer; +@property (assign) BOOL timerRunning; +@property (nonatomic) BOOL repeat; +@end + + +@implementation SDLTimer + +- (instancetype)init { + if (self = [super init]) { + _duration = 0; + _timerRunning = NO; + } + return self; +} + +- (instancetype)initWithDuration:(float)duration { + return [self initWithDuration:duration repeat:NO]; +} + +- (instancetype)initWithDuration:(float)duration repeat:(BOOL)repeat { + self = [super init]; + if (self) { + _duration = duration; + _repeat = repeat; + _timerRunning = NO; + } + return self; +} + +- (void)start { + if (self.duration > 0) { + [self stopAndDestroyTimer]; + self.timer = [NSTimer timerWithTimeInterval:self.duration target:self selector:@selector(timerElapsed) userInfo:nil repeats:self.repeat]; + [[NSRunLoop mainRunLoop] addTimer:self.timer forMode:NSRunLoopCommonModes]; + self.timerRunning = YES; + } +} + +- (void)cancel { + [self stopAndDestroyTimer]; + if (self.timerRunning && self.canceledBlock != nil) { + self.timerRunning = NO; + self.canceledBlock(); + } + self.timerRunning = NO; +} + +- (void)timerElapsed { + if (self.repeat == NO) { + [self stopAndDestroyTimer]; + self.timerRunning = NO; + } + if (self.elapsedBlock != nil) { + self.elapsedBlock(); + } +} + +- (void)stopAndDestroyTimer { + if (self.timer != nil) { + [self.timer invalidate]; + self.timer = nil; + } +} + +- (void)dealloc { + [self cancel]; +} + +@end diff --git a/SmartDeviceLink/SDLTimerMode.h b/SmartDeviceLink/SDLTimerMode.h new file mode 100644 index 000000000..f625f6636 --- /dev/null +++ b/SmartDeviceLink/SDLTimerMode.h @@ -0,0 +1,17 @@ +// SDLTimerMode.h +// + + +#import "SDLEnum.h" + +@interface SDLTimerMode : SDLEnum { +} + ++ (SDLTimerMode *)valueOf:(NSString *)value; ++ (NSArray *)values; + ++ (SDLTimerMode *)UP; ++ (SDLTimerMode *)DOWN; ++ (SDLTimerMode *)NONE; + +@end diff --git a/SmartDeviceLink/SDLTimerMode.m b/SmartDeviceLink/SDLTimerMode.m new file mode 100644 index 000000000..5787a2eb4 --- /dev/null +++ b/SmartDeviceLink/SDLTimerMode.m @@ -0,0 +1,56 @@ +// SDLTimerMode.m +// + + +#import "SDLTimerMode.h" + +SDLTimerMode *SDLTimerMode_UP = nil; +SDLTimerMode *SDLTimerMode_DOWN = nil; +SDLTimerMode *SDLTimerMode_NONE = nil; + +NSArray *SDLTimerMode_values = nil; + +@implementation SDLTimerMode + ++ (SDLTimerMode *)valueOf:(NSString *)value { + for (SDLTimerMode *item in SDLTimerMode.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLTimerMode_values == nil) { + SDLTimerMode_values = @[ + SDLTimerMode.UP, + SDLTimerMode.DOWN, + SDLTimerMode.NONE, + ]; + } + return SDLTimerMode_values; +} + ++ (SDLTimerMode *)UP { + if (SDLTimerMode_UP == nil) { + SDLTimerMode_UP = [[SDLTimerMode alloc] initWithValue:@"UP"]; + } + return SDLTimerMode_UP; +} + ++ (SDLTimerMode *)DOWN { + if (SDLTimerMode_DOWN == nil) { + SDLTimerMode_DOWN = [[SDLTimerMode alloc] initWithValue:@"DOWN"]; + } + return SDLTimerMode_DOWN; +} + ++ (SDLTimerMode *)NONE { + if (SDLTimerMode_NONE == nil) { + SDLTimerMode_NONE = [[SDLTimerMode alloc] initWithValue:@"NONE"]; + } + return SDLTimerMode_NONE; +} + +@end diff --git a/SmartDeviceLink/SDLTireStatus.h b/SmartDeviceLink/SDLTireStatus.h new file mode 100644 index 000000000..9ebd68d8e --- /dev/null +++ b/SmartDeviceLink/SDLTireStatus.h @@ -0,0 +1,24 @@ +// SDLTireStatus.h +// + +#import "SDLRPCMessage.h" + +@class SDLSingleTireStatus; +@class SDLWarningLightStatus; + + +@interface SDLTireStatus : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLWarningLightStatus *pressureTelltale; +@property (strong) SDLSingleTireStatus *leftFront; +@property (strong) SDLSingleTireStatus *rightFront; +@property (strong) SDLSingleTireStatus *leftRear; +@property (strong) SDLSingleTireStatus *rightRear; +@property (strong) SDLSingleTireStatus *innerLeftRear; +@property (strong) SDLSingleTireStatus *innerRightRear; + +@end diff --git a/SmartDeviceLink/SDLTireStatus.m b/SmartDeviceLink/SDLTireStatus.m new file mode 100644 index 000000000..c2768565a --- /dev/null +++ b/SmartDeviceLink/SDLTireStatus.m @@ -0,0 +1,144 @@ +// SDLTireStatus.m +// + +#import "SDLTireStatus.h" + +#import "SDLNames.h" +#import "SDLSingleTireStatus.h" +#import "SDLWarningLightStatus.h" + + +@implementation SDLTireStatus + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setPressureTelltale:(SDLWarningLightStatus *)pressureTelltale { + if (pressureTelltale != nil) { + [store setObject:pressureTelltale forKey:NAMES_pressureTelltale]; + } else { + [store removeObjectForKey:NAMES_pressureTelltale]; + } +} + +- (SDLWarningLightStatus *)pressureTelltale { + NSObject *obj = [store objectForKey:NAMES_pressureTelltale]; + if (obj == nil || [obj isKindOfClass:SDLWarningLightStatus.class]) { + return (SDLWarningLightStatus *)obj; + } else { + return [SDLWarningLightStatus valueOf:(NSString *)obj]; + } +} + +- (void)setLeftFront:(SDLSingleTireStatus *)leftFront { + if (leftFront != nil) { + [store setObject:leftFront forKey:NAMES_leftFront]; + } else { + [store removeObjectForKey:NAMES_leftFront]; + } +} + +- (SDLSingleTireStatus *)leftFront { + NSObject *obj = [store objectForKey:NAMES_leftFront]; + if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) { + return (SDLSingleTireStatus *)obj; + } else { + return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setRightFront:(SDLSingleTireStatus *)rightFront { + if (rightFront != nil) { + [store setObject:rightFront forKey:NAMES_rightFront]; + } else { + [store removeObjectForKey:NAMES_rightFront]; + } +} + +- (SDLSingleTireStatus *)rightFront { + NSObject *obj = [store objectForKey:NAMES_rightFront]; + if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) { + return (SDLSingleTireStatus *)obj; + } else { + return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setLeftRear:(SDLSingleTireStatus *)leftRear { + if (leftRear != nil) { + [store setObject:leftRear forKey:NAMES_leftRear]; + } else { + [store removeObjectForKey:NAMES_leftRear]; + } +} + +- (SDLSingleTireStatus *)leftRear { + NSObject *obj = [store objectForKey:NAMES_leftRear]; + if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) { + return (SDLSingleTireStatus *)obj; + } else { + return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setRightRear:(SDLSingleTireStatus *)rightRear { + if (rightRear != nil) { + [store setObject:rightRear forKey:NAMES_rightRear]; + } else { + [store removeObjectForKey:NAMES_rightRear]; + } +} + +- (SDLSingleTireStatus *)rightRear { + NSObject *obj = [store objectForKey:NAMES_rightRear]; + if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) { + return (SDLSingleTireStatus *)obj; + } else { + return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setInnerLeftRear:(SDLSingleTireStatus *)innerLeftRear { + if (innerLeftRear != nil) { + [store setObject:innerLeftRear forKey:NAMES_innerLeftRear]; + } else { + [store removeObjectForKey:NAMES_innerLeftRear]; + } +} + +- (SDLSingleTireStatus *)innerLeftRear { + NSObject *obj = [store objectForKey:NAMES_innerLeftRear]; + if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) { + return (SDLSingleTireStatus *)obj; + } else { + return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setInnerRightRear:(SDLSingleTireStatus *)innerRightRear { + if (innerRightRear != nil) { + [store setObject:innerRightRear forKey:NAMES_innerRightRear]; + } else { + [store removeObjectForKey:NAMES_innerRightRear]; + } +} + +- (SDLSingleTireStatus *)innerRightRear { + NSObject *obj = [store objectForKey:NAMES_innerRightRear]; + if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) { + return (SDLSingleTireStatus *)obj; + } else { + return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLTouchCoord.h b/SmartDeviceLink/SDLTouchCoord.h new file mode 100644 index 000000000..63515811f --- /dev/null +++ b/SmartDeviceLink/SDLTouchCoord.h @@ -0,0 +1,16 @@ +// SDLTouchCoord.h +// + + +#import "SDLRPCMessage.h" + +@interface SDLTouchCoord : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSNumber *x; +@property (strong) NSNumber *y; + +@end diff --git a/SmartDeviceLink/SDLTouchCoord.m b/SmartDeviceLink/SDLTouchCoord.m new file mode 100644 index 000000000..78895696f --- /dev/null +++ b/SmartDeviceLink/SDLTouchCoord.m @@ -0,0 +1,47 @@ +// SDLTouchCoord.m +// + + +#import "SDLTouchCoord.h" + +#import "SDLNames.h" + +@implementation SDLTouchCoord + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setX:(NSNumber *)x { + if (x != nil) { + [store setObject:x forKey:NAMES_x]; + } else { + [store removeObjectForKey:NAMES_x]; + } +} + +- (NSNumber *)x { + return [store objectForKey:NAMES_x]; +} + +- (void)setY:(NSNumber *)y { + if (y != nil) { + [store setObject:y forKey:NAMES_y]; + } else { + [store removeObjectForKey:NAMES_y]; + } +} + +- (NSNumber *)y { + return [store objectForKey:NAMES_y]; +} + +@end diff --git a/SmartDeviceLink/SDLTouchEvent.h b/SmartDeviceLink/SDLTouchEvent.h new file mode 100644 index 000000000..01af99b98 --- /dev/null +++ b/SmartDeviceLink/SDLTouchEvent.h @@ -0,0 +1,40 @@ +// SDLTouchEvent.h +// + + +#import "SDLRPCMessage.h" + +@interface SDLTouchEvent : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + A touch's unique identifier. The application can track the current touch events by id. + If a touch event has type begin, the id should be added to the set of touches. + If a touch event has type end, the id should be removed from the set of touches. + + Mandatory, 0-9 + */ +@property (strong) NSNumber *touchEventId; + +/** + The time that the touch was recorded. This number can the time since the beginning of the session or something else as long as the units are in milliseconds. + + The timestamp is used to determined the rate of change of position of a touch. + + The application also uses the time to verify whether two touches, with different ids, are part of a single action by the user. + + If there is only a single timestamp in this array, it is the same for every coordinate in the coordinates array. + + Mandatory, array size 1-1000, contains size 0-5000000000 + */ +@property (strong) NSMutableArray *timeStamp; + +/** + * Mandatory, array size 1-1000, contains SDLTouchCoord + */ +@property (strong) NSMutableArray *coord; + +@end diff --git a/SmartDeviceLink/SDLTouchEvent.m b/SmartDeviceLink/SDLTouchEvent.m new file mode 100644 index 000000000..e54e8b79e --- /dev/null +++ b/SmartDeviceLink/SDLTouchEvent.m @@ -0,0 +1,69 @@ +// SDLTouchEvent.m +// + + +#import "SDLTouchEvent.h" + +#import "SDLNames.h" +#import "SDLTouchCoord.h" + +@implementation SDLTouchEvent + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setTouchEventId:(NSNumber *)touchEventId { + if (touchEventId != nil) { + [store setObject:touchEventId forKey:NAMES_id]; + } else { + [store removeObjectForKey:NAMES_id]; + } +} + +- (NSNumber *)touchEventId { + return [store objectForKey:NAMES_id]; +} + +- (void)setTimeStamp:(NSMutableArray *)timeStamp { + if (timeStamp != nil) { + [store setObject:timeStamp forKey:NAMES_ts]; + } else { + [store removeObjectForKey:NAMES_ts]; + } +} + +- (NSMutableArray *)timeStamp { + return [store objectForKey:NAMES_ts]; +} + +- (void)setCoord:(NSMutableArray *)coord { + if (coord != nil) { + [store setObject:coord forKey:NAMES_c]; + } else { + [store removeObjectForKey:NAMES_c]; + } +} + +- (NSMutableArray *)coord { + NSMutableArray *array = [store objectForKey:NAMES_c]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTouchCoord.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTouchCoord alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLTouchEventCapabilities.h b/SmartDeviceLink/SDLTouchEventCapabilities.h new file mode 100644 index 000000000..6d346d874 --- /dev/null +++ b/SmartDeviceLink/SDLTouchEventCapabilities.h @@ -0,0 +1,17 @@ +// SDLTouchEventCapabilities.h +// + + +#import "SDLRPCMessage.h" + +@interface SDLTouchEventCapabilities : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSNumber *pressAvailable; +@property (strong) NSNumber *multiTouchAvailable; +@property (strong) NSNumber *doublePressAvailable; + +@end diff --git a/SmartDeviceLink/SDLTouchEventCapabilities.m b/SmartDeviceLink/SDLTouchEventCapabilities.m new file mode 100644 index 000000000..4fc71cfec --- /dev/null +++ b/SmartDeviceLink/SDLTouchEventCapabilities.m @@ -0,0 +1,59 @@ +// SDLTouchEventCapabilities.m +// + + +#import "SDLTouchEventCapabilities.h" + +#import "SDLNames.h" + +@implementation SDLTouchEventCapabilities + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setPressAvailable:(NSNumber *)pressAvailable { + if (pressAvailable != nil) { + [store setObject:pressAvailable forKey:NAMES_pressAvailable]; + } else { + [store removeObjectForKey:NAMES_pressAvailable]; + } +} + +- (NSNumber *)pressAvailable { + return [store objectForKey:NAMES_pressAvailable]; +} + +- (void)setMultiTouchAvailable:(NSNumber *)multiTouchAvailable { + if (multiTouchAvailable != nil) { + [store setObject:multiTouchAvailable forKey:NAMES_multiTouchAvailable]; + } else { + [store removeObjectForKey:NAMES_multiTouchAvailable]; + } +} + +- (NSNumber *)multiTouchAvailable { + return [store objectForKey:NAMES_multiTouchAvailable]; +} + +- (void)setDoublePressAvailable:(NSNumber *)doublePressAvailable { + if (doublePressAvailable != nil) { + [store setObject:doublePressAvailable forKey:NAMES_doublePressAvailable]; + } else { + [store removeObjectForKey:NAMES_doublePressAvailable]; + } +} + +- (NSNumber *)doublePressAvailable { + return [store objectForKey:NAMES_doublePressAvailable]; +} + +@end diff --git a/SmartDeviceLink/SDLTouchType.h b/SmartDeviceLink/SDLTouchType.h new file mode 100644 index 000000000..bfbb91fd4 --- /dev/null +++ b/SmartDeviceLink/SDLTouchType.h @@ -0,0 +1,17 @@ +// SDLTouchType.h +// + + +#import "SDLEnum.h" + +@interface SDLTouchType : SDLEnum { +} + ++ (SDLTouchType *)valueOf:(NSString *)value; ++ (NSArray *)values; + ++ (SDLTouchType *)BEGIN; ++ (SDLTouchType *)MOVE; ++ (SDLTouchType *)END; + +@end diff --git a/SmartDeviceLink/SDLTouchType.m b/SmartDeviceLink/SDLTouchType.m new file mode 100644 index 000000000..d834d012d --- /dev/null +++ b/SmartDeviceLink/SDLTouchType.m @@ -0,0 +1,56 @@ +// SDLTouchType.m +// + + +#import "SDLTouchType.h" + +SDLTouchType *SDLTouchType_BEGIN = nil; +SDLTouchType *SDLTouchType_MOVE = nil; +SDLTouchType *SDLTouchType_END = nil; + +NSArray *SDLTouchType_values = nil; + +@implementation SDLTouchType + ++ (SDLTouchType *)valueOf:(NSString *)value { + for (SDLTouchType *item in SDLTouchType.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLTouchType_values == nil) { + SDLTouchType_values = @[ + SDLTouchType.BEGIN, + SDLTouchType.MOVE, + SDLTouchType.END, + ]; + } + return SDLTouchType_values; +} + ++ (SDLTouchType *)BEGIN { + if (SDLTouchType_BEGIN == nil) { + SDLTouchType_BEGIN = [[SDLTouchType alloc] initWithValue:@"BEGIN"]; + } + return SDLTouchType_BEGIN; +} + ++ (SDLTouchType *)MOVE { + if (SDLTouchType_MOVE == nil) { + SDLTouchType_MOVE = [[SDLTouchType alloc] initWithValue:@"MOVE"]; + } + return SDLTouchType_MOVE; +} + ++ (SDLTouchType *)END { + if (SDLTouchType_END == nil) { + SDLTouchType_END = [[SDLTouchType alloc] initWithValue:@"END"]; + } + return SDLTouchType_END; +} + +@end diff --git a/SmartDeviceLink/SDLTransportDelegate.h b/SmartDeviceLink/SDLTransportDelegate.h new file mode 100644 index 000000000..4f4abe33f --- /dev/null +++ b/SmartDeviceLink/SDLTransportDelegate.h @@ -0,0 +1,10 @@ +// SDLTransportDelegate.h +// + +@protocol SDLTransportDelegate + +- (void)onTransportConnected; +- (void)onTransportDisconnected; +- (void)onDataReceived:(NSData *)receivedData; + +@end \ No newline at end of file diff --git a/SmartDeviceLink/SDLTriggerSource.h b/SmartDeviceLink/SDLTriggerSource.h new file mode 100644 index 000000000..36e646f17 --- /dev/null +++ b/SmartDeviceLink/SDLTriggerSource.h @@ -0,0 +1,46 @@ +// SDLTriggerSource.h +// + + +#import "SDLEnum.h" + +/** + * Indicates whether choice/command was selected via VR or via a menu selection (using SEEKRIGHT/SEEKLEFT, TUNEUP, TUNEDOWN, OK buttons) + * + * @since SDL 1.0 + */ +@interface SDLTriggerSource : SDLEnum { +} + +/** + * Convert String to SDLTriggerSource + * @param value The value of the string to get an object for + * @return SDLTriggerSource + */ ++ (SDLTriggerSource *)valueOf:(NSString *)value; + +/** + @abstract Store the enumeration of all possible SDLTriggerSource + @return an array that store all possible SDLTriggerSource + */ ++ (NSArray *)values; + +/** + * @abstract Selection made via menu + * @return SDLTriggerSource with value of *MENU* + */ ++ (SDLTriggerSource *)MENU; + +/** + * @abstract Selection made via Voice session + * @return SDLTriggerSource with value of *VR* + */ ++ (SDLTriggerSource *)VR; + +/** + * @abstract Selection made via Keyboard + * @return SDLTriggerSource with value of *KEYBOARD* + */ ++ (SDLTriggerSource *)KEYBOARD; + +@end diff --git a/SmartDeviceLink/SDLTriggerSource.m b/SmartDeviceLink/SDLTriggerSource.m new file mode 100644 index 000000000..a56b66c6f --- /dev/null +++ b/SmartDeviceLink/SDLTriggerSource.m @@ -0,0 +1,56 @@ +// SDLTriggerSource.m +// + + +#import "SDLTriggerSource.h" + +SDLTriggerSource *SDLTriggerSource_MENU = nil; +SDLTriggerSource *SDLTriggerSource_VR = nil; +SDLTriggerSource *SDLTriggerSource_KEYBOARD = nil; + +NSArray *SDLTriggerSource_values = nil; + +@implementation SDLTriggerSource + ++ (SDLTriggerSource *)valueOf:(NSString *)value { + for (SDLTriggerSource *item in SDLTriggerSource.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLTriggerSource_values == nil) { + SDLTriggerSource_values = @[ + SDLTriggerSource.MENU, + SDLTriggerSource.VR, + SDLTriggerSource.KEYBOARD, + ]; + } + return SDLTriggerSource_values; +} + ++ (SDLTriggerSource *)MENU { + if (SDLTriggerSource_MENU == nil) { + SDLTriggerSource_MENU = [[SDLTriggerSource alloc] initWithValue:@"MENU"]; + } + return SDLTriggerSource_MENU; +} + ++ (SDLTriggerSource *)VR { + if (SDLTriggerSource_VR == nil) { + SDLTriggerSource_VR = [[SDLTriggerSource alloc] initWithValue:@"VR"]; + } + return SDLTriggerSource_VR; +} + ++ (SDLTriggerSource *)KEYBOARD { + if (SDLTriggerSource_KEYBOARD == nil) { + SDLTriggerSource_KEYBOARD = [[SDLTriggerSource alloc] initWithValue:@"KEYBOARD"]; + } + return SDLTriggerSource_KEYBOARD; +} + +@end diff --git a/SmartDeviceLink/SDLTurn.h b/SmartDeviceLink/SDLTurn.h new file mode 100644 index 000000000..ef2cf9ebe --- /dev/null +++ b/SmartDeviceLink/SDLTurn.h @@ -0,0 +1,18 @@ +// SDLTurn.h +// + +#import "SDLRPCMessage.h" + +@class SDLImage; + + +@interface SDLTurn : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSString *navigationText; +@property (strong) SDLImage *turnIcon; + +@end diff --git a/SmartDeviceLink/SDLTurn.m b/SmartDeviceLink/SDLTurn.m new file mode 100644 index 000000000..875fa2e73 --- /dev/null +++ b/SmartDeviceLink/SDLTurn.m @@ -0,0 +1,53 @@ +// SDLTurn.m +// + +#import "SDLTurn.h" + +#import "SDLImage.h" +#import "SDLNames.h" + + +@implementation SDLTurn + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setNavigationText:(NSString *)navigationText { + if (navigationText != nil) { + [store setObject:navigationText forKey:NAMES_navigationText]; + } else { + [store removeObjectForKey:NAMES_navigationText]; + } +} + +- (NSString *)navigationText { + return [store objectForKey:NAMES_navigationText]; +} + +- (void)setTurnIcon:(SDLImage *)turnIcon { + if (turnIcon != nil) { + [store setObject:turnIcon forKey:NAMES_turnIcon]; + } else { + [store removeObjectForKey:NAMES_turnIcon]; + } +} + +- (SDLImage *)turnIcon { + NSObject *obj = [store objectForKey:NAMES_turnIcon]; + if (obj == nil || [obj isKindOfClass:SDLImage.class]) { + return (SDLImage *)obj; + } else { + return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLURLRequestTask.h b/SmartDeviceLink/SDLURLRequestTask.h new file mode 100644 index 000000000..8745f8519 --- /dev/null +++ b/SmartDeviceLink/SDLURLRequestTask.h @@ -0,0 +1,46 @@ +// +// SDLURLRequestTask.h +// SmartDeviceLink-iOS +// +// Created by Joel Fischer on 8/17/15. +// Copyright (c) 2015 smartdevicelink. All rights reserved. +// + +#import + +@class SDLURLRequestTask; +@class SDLURLSession; + + +typedef void (^SDLURLConnectionRequestCompletionHandler)(NSData *__nullable data, NSURLResponse *__nullable response, NSError *__nullable error); + +typedef NS_ENUM(NSUInteger, SDLURLRequestTaskState) { + SDLURLRequestTaskStateRunning, + SDLURLRequestTaskStateCompleted +}; + + +NS_ASSUME_NONNULL_BEGIN + +@protocol SDLURLRequestTaskDelegate + +- (void)taskDidFinish:(SDLURLRequestTask *)task; + +@end + + +@interface SDLURLRequestTask : NSObject + +@property (weak, nonatomic) id delegate; +@property (assign, nonatomic) SDLURLRequestTaskState state; + +- (instancetype)init NS_UNAVAILABLE; +- (instancetype)initWithURLRequest:(NSURLRequest *)request completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler NS_DESIGNATED_INITIALIZER; + ++ (instancetype)taskWithURLRequest:(NSURLRequest *)request completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler; + +- (void)cancel; + +@end + +NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink/SDLURLRequestTask.m b/SmartDeviceLink/SDLURLRequestTask.m new file mode 100644 index 000000000..d1895ac10 --- /dev/null +++ b/SmartDeviceLink/SDLURLRequestTask.m @@ -0,0 +1,110 @@ +// +// SDLURLRequestTask.m +// SmartDeviceLink-iOS +// +// Created by Joel Fischer on 8/17/15. +// Copyright (c) 2015 smartdevicelink. All rights reserved. +// + +#import "SDLURLRequestTask.h" + +#import "SDLURLSession.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface SDLURLRequestTask () + +@property (strong, nonatomic) NSURLConnection *connection; +@property (strong, nonatomic, nullable) NSURLResponse *response; +@property (copy, nonatomic) SDLURLConnectionRequestCompletionHandler completionHandler; +@property (strong, nonatomic) NSMutableData *mutableData; + +@end + + +@implementation SDLURLRequestTask + +#pragma mark - Lifecycle + +- (instancetype)init { + NSAssert(NO, @"use initWithURLRequest:completionHandler instead"); + return nil; +} + +- (instancetype)initWithURLRequest:(NSURLRequest *)request completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler { + self = [super init]; + if (!self) { + return nil; + } + + _connection = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:NO]; + [_connection scheduleInRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode]; + [_connection start]; + + _completionHandler = completionHandler; + + _mutableData = [NSMutableData data]; + _response = nil; + _state = SDLURLRequestTaskStateRunning; + + return self; +} + ++ (instancetype)taskWithURLRequest:(NSURLRequest *)request completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler { + return [[self alloc] initWithURLRequest:request completionHandler:completionHandler]; +} + +- (void)dealloc { + [_connection cancel]; +} + + +#pragma mark - Data Methods + +- (void)sdl_addData:(NSData *)data { + [self.mutableData appendData:data]; +} + + +#pragma mark - Cancel + +- (void)cancel { + [self.connection cancel]; + [self connection:self.connection didFailWithError:[NSError errorWithDomain:NSURLErrorDomain code:kCFURLErrorCancelled userInfo:nil]]; +} + + +#pragma mark - NSURLConnectionDelegate + +- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error { + dispatch_async(dispatch_get_main_queue(), ^{ + self.completionHandler(nil, self.response, error); + + self.state = SDLURLRequestTaskStateCompleted; + [self.delegate taskDidFinish:self]; + }); +} + + +#pragma mark - NSURLConnectionDataDelegate + +- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { + [self sdl_addData:data]; +} + +- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response { + self.response = response; +} + +- (void)connectionDidFinishLoading:(NSURLConnection *)connection { + dispatch_async(dispatch_get_main_queue(), ^{ + self.completionHandler([self.mutableData copy], self.response, nil); + + self.state = SDLURLRequestTaskStateCompleted; + [self.delegate taskDidFinish:self]; + }); +} + +@end + +NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink/SDLURLSession.h b/SmartDeviceLink/SDLURLSession.h new file mode 100644 index 000000000..0d2a22e28 --- /dev/null +++ b/SmartDeviceLink/SDLURLSession.h @@ -0,0 +1,57 @@ +// +// SDLURLConnection.h +// SmartDeviceLink-iOS +// +// Created by Joel Fischer on 8/17/15. +// Copyright (c) 2015 smartdevicelink. All rights reserved. +// + +#import + + +typedef void (^SDLURLConnectionRequestCompletionHandler)(NSData *__nullable data, NSURLResponse *__nullable response, NSError *__nullable error); + + +NS_ASSUME_NONNULL_BEGIN + +@interface SDLURLSession : NSObject + +@property (assign, nonatomic) NSURLRequestCachePolicy cachePolicy; + +/** + * If any task is started with a request that is at the default timeout (60.0 sec), it will be altered to this connection timeout (by default 45.0 sec). + */ +@property (assign, nonatomic) NSTimeInterval connectionTimeout; + +/** + * Get the default session, a singleton. + * + * @return The default session + */ ++ (instancetype)defaultSession; + +/** + * Retrieves data from a specified URL. Default settings for timeout and cache policy will be used. + * + * @param url An NSURLRequest will be assembled for this URL + * @param completionHandler The completion handler that will be called when the request is complete + */ +- (void)dataFromURL:(NSURL *)url completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler; + +/** + * Starts a URL request using data supplied. + * + * @param request An NSURLRequest that provides the URL, cache policy, request method, etc. The HTTPBody data in this request will be ignored + * @param data The data to be uploaded over HTTP + * @param completionHandler The completion handler that will be called when the request is complete + */ +- (void)uploadWithURLRequest:(NSURLRequest *)request data:(NSData *)data completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler; + +/** + * Tells all pending requests to cancel + */ +- (void)cancelAllTasks; + +@end + +NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink/SDLURLSession.m b/SmartDeviceLink/SDLURLSession.m new file mode 100644 index 000000000..363c6fbad --- /dev/null +++ b/SmartDeviceLink/SDLURLSession.m @@ -0,0 +1,102 @@ +// +// SDLURLConnection.m +// SmartDeviceLink-iOS +// +// Created by Joel Fischer on 8/17/15. +// Copyright (c) 2015 smartdevicelink. All rights reserved. +// + +#import "SDLURLSession.h" + +#import "SDLURLRequestTask.h" + + +NS_ASSUME_NONNULL_BEGIN + +static float DefaultConnectionTimeout = 45.0; + + +@interface SDLURLSession () + +@property (strong, nonatomic) NSMutableSet *activeTasks; + +@end + + +@implementation SDLURLSession + + +#pragma mark - Lifecycle + ++ (instancetype)defaultSession { + static SDLURLSession *sharedSession = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + sharedSession = [[self alloc] init]; + }); + + return sharedSession; +} + +- (void)dealloc { + for (SDLURLRequestTask *task in self.activeTasks) { + [task cancel]; + } +} + +- (instancetype)init { + self = [super init]; + if (!self) { + return nil; + } + + _cachePolicy = NSURLRequestUseProtocolCachePolicy; + _connectionTimeout = DefaultConnectionTimeout; + + _activeTasks = [NSMutableSet set]; + + return self; +} + + +#pragma mark - URL Request Methods + +- (void)dataFromURL:(NSURL *)url completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler { + NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:self.cachePolicy timeoutInterval:self.connectionTimeout]; + + SDLURLRequestTask *task = [[SDLURLRequestTask alloc] initWithURLRequest:request completionHandler:completionHandler]; + task.delegate = self; + + [self.activeTasks addObject:task]; +} + +- (void)uploadWithURLRequest:(NSURLRequest *)request data:(NSData *)data completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler { + NSMutableURLRequest *mutableRequest = [request mutableCopy]; + mutableRequest.HTTPBody = data; + mutableRequest.HTTPMethod = @"POST"; + + SDLURLRequestTask *task = [[SDLURLRequestTask alloc] initWithURLRequest:mutableRequest completionHandler:completionHandler]; + task.delegate = self; + + [self.activeTasks addObject:task]; +} + + +#pragma mark - Cancel Methods + +- (void)cancelAllTasks { + for (SDLURLRequestTask *task in self.activeTasks) { + [task cancel]; + } +} + + +#pragma mark - SDLURLRequestTaskDelegate + +- (void)taskDidFinish:(SDLURLRequestTask *)task { + [self.activeTasks removeObject:task]; +} + +@end + +NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink/SDLUnregisterAppInterface.h b/SmartDeviceLink/SDLUnregisterAppInterface.h new file mode 100644 index 000000000..d35d40193 --- /dev/null +++ b/SmartDeviceLink/SDLUnregisterAppInterface.h @@ -0,0 +1,36 @@ +// SDLUnregisterAppInterface.h +// + + +#import "SDLRPCRequest.h" + +/** + * Terminates an application's interface registration. This causes SDL® to + * dispose of all resources associated with the application's interface + * registration (e.g. Command Menu items, Choice Sets, button subscriptions, + * etc.) + *

    + * After the UnregisterAppInterface operation is performed, no other operations + * can be performed until a new app interface registration is established by + * calling {@linkplain RegisterAppInterface} + *

    + * HMILevel can be FULL, LIMITED, BACKGROUND or NONE + *

    + * + * See SDLRegisterAppInterface SDLOnAppInterfaceUnregistered + */ +@interface SDLUnregisterAppInterface : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLUnregisterAppInterface object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLUnregisterAppInterface object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLUnregisterAppInterface.m b/SmartDeviceLink/SDLUnregisterAppInterface.m new file mode 100644 index 000000000..88039631d --- /dev/null +++ b/SmartDeviceLink/SDLUnregisterAppInterface.m @@ -0,0 +1,23 @@ +// SDLUnregisterAppInterface.m +// + + +#import "SDLUnregisterAppInterface.h" + +#import "SDLNames.h" + +@implementation SDLUnregisterAppInterface + +- (instancetype)init { + if (self = [super initWithName:NAMES_UnregisterAppInterface]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.h b/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.h new file mode 100644 index 000000000..8ebbb46af --- /dev/null +++ b/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.h @@ -0,0 +1,26 @@ +// SDLUnregisterAppInterfaceResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Unregister AppInterface Response is sent, when SDLUnregisterAppInterface has been called + * + * @since SmartDeviceLink 1.0 + */ +@interface SDLUnregisterAppInterfaceResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLUnregisterAppInterfaceResponse object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLUnregisterAppInterfaceResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.m b/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.m new file mode 100644 index 000000000..6bebbe83d --- /dev/null +++ b/SmartDeviceLink/SDLUnregisterAppInterfaceResponse.m @@ -0,0 +1,23 @@ +// SDLUnregisterAppInterfaceResponse.m +// + + +#import "SDLUnregisterAppInterfaceResponse.h" + +#import "SDLNames.h" + +@implementation SDLUnregisterAppInterfaceResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_UnregisterAppInterface]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLUnsubscribeButton.h b/SmartDeviceLink/SDLUnsubscribeButton.h new file mode 100644 index 000000000..bb16f43f5 --- /dev/null +++ b/SmartDeviceLink/SDLUnsubscribeButton.h @@ -0,0 +1,43 @@ +// SDLUnsubscribeButton.h +// + +#import "SDLRPCRequest.h" + +@class SDLButtonName; + + +/** + * Deletes a subscription to button notifications for the specified button. For + * more information about button subscriptions, see SDLSubscribeButton + *

    + * Application can unsubscribe from a button that is currently being pressed + * (i.e. has not yet been released), but app will not get button event + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + + * @since SmartDeviceLink 1.0
    + * See SDLSubscribeButton + */ +@interface SDLUnsubscribeButton : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLUnsubscribeButton object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLUnsubscribeButton object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A name of the button to unsubscribe from + * @discussion An Enumeration value, see + * SDLButtonName + */ +@property (strong) SDLButtonName *buttonName; + +@end diff --git a/SmartDeviceLink/SDLUnsubscribeButton.m b/SmartDeviceLink/SDLUnsubscribeButton.m new file mode 100644 index 000000000..9853fa9da --- /dev/null +++ b/SmartDeviceLink/SDLUnsubscribeButton.m @@ -0,0 +1,42 @@ +// SDLUnsubscribeButton.m +// + + +#import "SDLUnsubscribeButton.h" + +#import "SDLButtonName.h" +#import "SDLNames.h" + + +@implementation SDLUnsubscribeButton + +- (instancetype)init { + if (self = [super initWithName:NAMES_UnsubscribeButton]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setButtonName:(SDLButtonName *)buttonName { + if (buttonName != nil) { + [parameters setObject:buttonName forKey:NAMES_buttonName]; + } else { + [parameters removeObjectForKey:NAMES_buttonName]; + } +} + +- (SDLButtonName *)buttonName { + NSObject *obj = [parameters objectForKey:NAMES_buttonName]; + if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) { + return (SDLButtonName *)obj; + } else { + return [SDLButtonName valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLUnsubscribeButtonResponse.h b/SmartDeviceLink/SDLUnsubscribeButtonResponse.h new file mode 100644 index 000000000..62011539f --- /dev/null +++ b/SmartDeviceLink/SDLUnsubscribeButtonResponse.h @@ -0,0 +1,26 @@ +// SDLUnsubscribeButtonResponse.h +// + + +#import "SDLRPCResponse.h" + +/** + * Unsubscribe Button Response is sent, when SDLUnsubscribeButton has been called + * + * @since SmartDeviceLink 1.0 + */ +@interface SDLUnsubscribeButtonResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLUnsubscribeButtonResponse object + */ +- (instancetype)init; +/** + * @abstract Constructs a new SDLUnsubscribeButtonResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLUnsubscribeButtonResponse.m b/SmartDeviceLink/SDLUnsubscribeButtonResponse.m new file mode 100644 index 000000000..a28cf2768 --- /dev/null +++ b/SmartDeviceLink/SDLUnsubscribeButtonResponse.m @@ -0,0 +1,23 @@ +// SDLUnsubscribeButtonResponse.m +// + + +#import "SDLUnsubscribeButtonResponse.h" + +#import "SDLNames.h" + +@implementation SDLUnsubscribeButtonResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_UnsubscribeButton]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLUnsubscribeVehicleData.h b/SmartDeviceLink/SDLUnsubscribeVehicleData.h new file mode 100644 index 000000000..389173256 --- /dev/null +++ b/SmartDeviceLink/SDLUnsubscribeVehicleData.h @@ -0,0 +1,130 @@ +// SDLUnsubscribeVehicleData.h +// + + +#import "SDLRPCRequest.h" + +/** + * This function is used to unsubscribe the notifications from the + * subscribeVehicleData function + *

    + * Function Group: Location, VehicleInfo and DrivingChara + *

    + * HMILevel needs to be FULL, LIMITED or BACKGROUND + *

    + * + * @since SmartDeviceLink 2.0
    + * See SDLSubscribeVehicleData SDLGetVehicleData + */ +@interface SDLUnsubscribeVehicleData : SDLRPCRequest { +} + +/** + * @abstract Constructs a new SDLUnsubscribeVehicleData object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLUnsubscribeVehicleData object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A boolean value. If true, unsubscribes Gps data + */ +@property (strong) NSNumber *gps; + +/** + * @abstract A boolean value. If true, unsubscribes speed data + */ +@property (strong) NSNumber *speed; + +/** + * @abstract A boolean value. If true, unsubscribe data + */ +@property (strong) NSNumber *rpm; + +/** + * @abstract A boolean value. If true, unsubscribes FuelLevel data + */ +@property (strong) NSNumber *fuelLevel; + +/** + * @abstract A boolean value. If true, unsubscribes fuelLevel_State data + */ +@property (strong) NSNumber *fuelLevel_State; + +/** + * @abstract A boolean value. If true, unsubscribes instantFuelConsumption data + */ +@property (strong) NSNumber *instantFuelConsumption; + +/** + * @abstract A boolean value. If true, unsubscribes externalTemperature data + */ +@property (strong) NSNumber *externalTemperature; + +/** + * @abstract A boolean value. If true, unsubscribes Currently selected gear data + */ +@property (strong) NSNumber *prndl; + +/** + * @abstract A boolean value. If true, unsubscribes tire pressure status data + */ +@property (strong) NSNumber *tirePressure; + +/** + * @abstract A boolean value. If true, unsubscribes odometer data + */ +@property (strong) NSNumber *odometer; + +/** + * @abstract A boolean value. If true, unsubscribes belt Status data + */ +@property (strong) NSNumber *beltStatus; + +/** + * @abstract A boolean value. If true, unsubscribes body Information data + */ +@property (strong) NSNumber *bodyInformation; + +/** + * @abstract A boolean value. If true, unsubscribes device Status data + */ +@property (strong) NSNumber *deviceStatus; + +/** + * @abstract A boolean value. If true, unsubscribes driver Braking data + */ +@property (strong) NSNumber *driverBraking; + +/** + * @abstract A boolean value. If true, unsubscribes wiper Status data + */ +@property (strong) NSNumber *wiperStatus; + +/** + * @abstract A boolean value. If true, unsubscribes Head Lamp Status data + */ +@property (strong) NSNumber *headLampStatus; + +/** + * @abstract A boolean value. If true, unsubscribes Engine Torque data + */ +@property (strong) NSNumber *engineTorque; + +/** + * @abstract A boolean value. If true, unsubscribes accPedalPosition data + */ +@property (strong) NSNumber *accPedalPosition; +@property (strong) NSNumber *steeringWheelAngle; +@property (strong) NSNumber *eCallInfo; +@property (strong) NSNumber *airbagStatus; +@property (strong) NSNumber *emergencyEvent; +@property (strong) NSNumber *clusterModeStatus; +@property (strong) NSNumber *myKey; + +@end diff --git a/SmartDeviceLink/SDLUnsubscribeVehicleData.m b/SmartDeviceLink/SDLUnsubscribeVehicleData.m new file mode 100644 index 000000000..11aa044e1 --- /dev/null +++ b/SmartDeviceLink/SDLUnsubscribeVehicleData.m @@ -0,0 +1,311 @@ +// SDLUnsubscribeVehicleData.m +// + + +#import "SDLUnsubscribeVehicleData.h" + +#import "SDLNames.h" + +@implementation SDLUnsubscribeVehicleData + +- (instancetype)init { + if (self = [super initWithName:NAMES_UnsubscribeVehicleData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setGps:(NSNumber *)gps { + if (gps != nil) { + [parameters setObject:gps forKey:NAMES_gps]; + } else { + [parameters removeObjectForKey:NAMES_gps]; + } +} + +- (NSNumber *)gps { + return [parameters objectForKey:NAMES_gps]; +} + +- (void)setSpeed:(NSNumber *)speed { + if (speed != nil) { + [parameters setObject:speed forKey:NAMES_speed]; + } else { + [parameters removeObjectForKey:NAMES_speed]; + } +} + +- (NSNumber *)speed { + return [parameters objectForKey:NAMES_speed]; +} + +- (void)setRpm:(NSNumber *)rpm { + if (rpm != nil) { + [parameters setObject:rpm forKey:NAMES_rpm]; + } else { + [parameters removeObjectForKey:NAMES_rpm]; + } +} + +- (NSNumber *)rpm { + return [parameters objectForKey:NAMES_rpm]; +} + +- (void)setFuelLevel:(NSNumber *)fuelLevel { + if (fuelLevel != nil) { + [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel]; + } +} + +- (NSNumber *)fuelLevel { + return [parameters objectForKey:NAMES_fuelLevel]; +} + +- (void)setFuelLevel_State:(NSNumber *)fuelLevel_State { + if (fuelLevel_State != nil) { + [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel_State]; + } +} + +- (NSNumber *)fuelLevel_State { + return [parameters objectForKey:NAMES_fuelLevel_State]; +} + +- (void)setInstantFuelConsumption:(NSNumber *)instantFuelConsumption { + if (instantFuelConsumption != nil) { + [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; + } else { + [parameters removeObjectForKey:NAMES_instantFuelConsumption]; + } +} + +- (NSNumber *)instantFuelConsumption { + return [parameters objectForKey:NAMES_instantFuelConsumption]; +} + +- (void)setExternalTemperature:(NSNumber *)externalTemperature { + if (externalTemperature != nil) { + [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; + } else { + [parameters removeObjectForKey:NAMES_externalTemperature]; + } +} + +- (NSNumber *)externalTemperature { + return [parameters objectForKey:NAMES_externalTemperature]; +} + +- (void)setPrndl:(NSNumber *)prndl { + if (prndl != nil) { + [parameters setObject:prndl forKey:NAMES_prndl]; + } else { + [parameters removeObjectForKey:NAMES_prndl]; + } +} + +- (NSNumber *)prndl { + return [parameters objectForKey:NAMES_prndl]; +} + +- (void)setTirePressure:(NSNumber *)tirePressure { + if (tirePressure != nil) { + [parameters setObject:tirePressure forKey:NAMES_tirePressure]; + } else { + [parameters removeObjectForKey:NAMES_tirePressure]; + } +} + +- (NSNumber *)tirePressure { + return [parameters objectForKey:NAMES_tirePressure]; +} + +- (void)setOdometer:(NSNumber *)odometer { + if (odometer != nil) { + [parameters setObject:odometer forKey:NAMES_odometer]; + } else { + [parameters removeObjectForKey:NAMES_odometer]; + } +} + +- (NSNumber *)odometer { + return [parameters objectForKey:NAMES_odometer]; +} + +- (void)setBeltStatus:(NSNumber *)beltStatus { + if (beltStatus != nil) { + [parameters setObject:beltStatus forKey:NAMES_beltStatus]; + } else { + [parameters removeObjectForKey:NAMES_beltStatus]; + } +} + +- (NSNumber *)beltStatus { + return [parameters objectForKey:NAMES_beltStatus]; +} + +- (void)setBodyInformation:(NSNumber *)bodyInformation { + if (bodyInformation != nil) { + [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; + } else { + [parameters removeObjectForKey:NAMES_bodyInformation]; + } +} + +- (NSNumber *)bodyInformation { + return [parameters objectForKey:NAMES_bodyInformation]; +} + +- (void)setDeviceStatus:(NSNumber *)deviceStatus { + if (deviceStatus != nil) { + [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; + } else { + [parameters removeObjectForKey:NAMES_deviceStatus]; + } +} + +- (NSNumber *)deviceStatus { + return [parameters objectForKey:NAMES_deviceStatus]; +} + +- (void)setDriverBraking:(NSNumber *)driverBraking { + if (driverBraking != nil) { + [parameters setObject:driverBraking forKey:NAMES_driverBraking]; + } else { + [parameters removeObjectForKey:NAMES_driverBraking]; + } +} + +- (NSNumber *)driverBraking { + return [parameters objectForKey:NAMES_driverBraking]; +} + +- (void)setWiperStatus:(NSNumber *)wiperStatus { + if (wiperStatus != nil) { + [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; + } else { + [parameters removeObjectForKey:NAMES_wiperStatus]; + } +} + +- (NSNumber *)wiperStatus { + return [parameters objectForKey:NAMES_wiperStatus]; +} + +- (void)setHeadLampStatus:(NSNumber *)headLampStatus { + if (headLampStatus != nil) { + [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; + } else { + [parameters removeObjectForKey:NAMES_headLampStatus]; + } +} + +- (NSNumber *)headLampStatus { + return [parameters objectForKey:NAMES_headLampStatus]; +} + +- (void)setEngineTorque:(NSNumber *)engineTorque { + if (engineTorque != nil) { + [parameters setObject:engineTorque forKey:NAMES_engineTorque]; + } else { + [parameters removeObjectForKey:NAMES_engineTorque]; + } +} + +- (NSNumber *)engineTorque { + return [parameters objectForKey:NAMES_engineTorque]; +} + +- (void)setAccPedalPosition:(NSNumber *)accPedalPosition { + if (accPedalPosition != nil) { + [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; + } else { + [parameters removeObjectForKey:NAMES_accPedalPosition]; + } +} + +- (NSNumber *)accPedalPosition { + return [parameters objectForKey:NAMES_accPedalPosition]; +} + +- (void)setSteeringWheelAngle:(NSNumber *)steeringWheelAngle { + if (steeringWheelAngle != nil) { + [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; + } else { + [parameters removeObjectForKey:NAMES_steeringWheelAngle]; + } +} + +- (NSNumber *)steeringWheelAngle { + return [parameters objectForKey:NAMES_steeringWheelAngle]; +} + +- (void)setECallInfo:(NSNumber *)eCallInfo { + if (eCallInfo != nil) { + [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; + } else { + [parameters removeObjectForKey:NAMES_eCallInfo]; + } +} + +- (NSNumber *)eCallInfo { + return [parameters objectForKey:NAMES_eCallInfo]; +} + +- (void)setAirbagStatus:(NSNumber *)airbagStatus { + if (airbagStatus != nil) { + [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; + } else { + [parameters removeObjectForKey:NAMES_airbagStatus]; + } +} + +- (NSNumber *)airbagStatus { + return [parameters objectForKey:NAMES_airbagStatus]; +} + +- (void)setEmergencyEvent:(NSNumber *)emergencyEvent { + if (emergencyEvent != nil) { + [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; + } else { + [parameters removeObjectForKey:NAMES_emergencyEvent]; + } +} + +- (NSNumber *)emergencyEvent { + return [parameters objectForKey:NAMES_emergencyEvent]; +} + +- (void)setClusterModeStatus:(NSNumber *)clusterModeStatus { + if (clusterModeStatus != nil) { + [parameters setObject:clusterModeStatus forKey:NAMES_clusterModeStatus]; + } else { + [parameters removeObjectForKey:NAMES_clusterModeStatus]; + } +} + +- (NSNumber *)clusterModeStatus { + return [parameters objectForKey:NAMES_clusterModeStatus]; +} + +- (void)setMyKey:(NSNumber *)myKey { + if (myKey != nil) { + [parameters setObject:myKey forKey:NAMES_myKey]; + } else { + [parameters removeObjectForKey:NAMES_myKey]; + } +} + +- (NSNumber *)myKey { + return [parameters objectForKey:NAMES_myKey]; +} + +@end diff --git a/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h b/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h new file mode 100644 index 000000000..beb1b93e2 --- /dev/null +++ b/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h @@ -0,0 +1,129 @@ +// SDLUnsubscribeVehicleDataResponse.h +// + +#import "SDLRPCResponse.h" + +@class SDLVehicleDataResult; + + +/** + * Unsubscribe Vehicle Data Response is sent, when UnsubscribeVehicleData has been called + * + * @since SmartDeviceLink 2.0 + */ +@interface SDLUnsubscribeVehicleDataResponse : SDLRPCResponse { +} + +/** + * @abstract Constructs a new SDLUnsubscribeVehicleDataResponse object + */ +- (instancetype)init; + +/** + * @abstract Constructs a new SDLUnsubscribeVehicleDataResponse object indicated by the NSMutableDictionary + * parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract A SDLVehicleDataResult* value. See GPSData. + */ +@property (strong) SDLVehicleDataResult *gps; + +/** + * @abstract A SDLVehicleDataResult* value. The vehicle speed in kilometers per hour. + */ +@property (strong) SDLVehicleDataResult *speed; + +/** + * @abstract A SDLVehicleDataResult* value. The number of revolutions per minute of the engine. + */ +@property (strong) SDLVehicleDataResult *rpm; + +/** + * @abstract A SDLVehicleDataResult* value. The fuel level in the tank (percentage) + */ +@property (strong) SDLVehicleDataResult *fuelLevel; + +/** + * @abstract A SDLVehicleDataResult* value. The fuel level state. + */ +@property (strong) SDLVehicleDataResult *fuelLevel_State; + +/** + * @abstract A SDLVehicleDataResult* value. The instantaneous fuel consumption in microlitres. + */ +@property (strong) SDLVehicleDataResult *instantFuelConsumption; + +/** + * @abstract A SDLVehicleDataResult* value. The external temperature in degrees celsius. + */ +@property (strong) SDLVehicleDataResult *externalTemperature; + +/** + * @abstract A SDLVehicleDataResult* value. See PRNDL. + */ +@property (strong) SDLVehicleDataResult *prndl; + +/** + * @abstract A SDLVehicleDataResult* value. See TireStatus. + */ +@property (strong) SDLVehicleDataResult *tirePressure; + +/** + * @abstract A SDLVehicleDataResult* value. Odometer in km. + */ +@property (strong) SDLVehicleDataResult *odometer; + +/** + * @abstract A SDLVehicleDataResult* value. The status of the seat belts. + */ +@property (strong) SDLVehicleDataResult *beltStatus; + +/** + * @abstract A SDLVehicleDataResult* value. The body information including power modes. + */ +@property (strong) SDLVehicleDataResult *bodyInformation; + +/** + * @abstract A SDLVehicleDataResult* value. The device status including signal and battery strength. + */ +@property (strong) SDLVehicleDataResult *deviceStatus; + +/** + * @abstract A SDLVehicleDataResult* value. The status of the brake pedal. + */ +@property (strong) SDLVehicleDataResult *driverBraking; + +/** + * @abstract A SDLVehicleDataResult* value. The status of the wipers. + */ +@property (strong) SDLVehicleDataResult *wiperStatus; + +/** + * @abstract A SDLVehicleDataResult* value. Status of the head lamps. + */ +@property (strong) SDLVehicleDataResult *headLampStatus; + +/** + * @abstract A SDLVehicleDataResult* value. Torque value for engine (in Nm) on non-diesel variants. + */ +@property (strong) SDLVehicleDataResult *engineTorque; + +/** + * @abstract A SDLVehicleDataResult* value. Accelerator pedal position (percentage depressed) + */ +@property (strong) SDLVehicleDataResult *accPedalPosition; + +/** + * @abstract A SDLVehicleDataResult* value. Current angle of the steering wheel (in deg) + */ +@property (strong) SDLVehicleDataResult *steeringWheelAngle; +@property (strong) SDLVehicleDataResult *eCallInfo; +@property (strong) SDLVehicleDataResult *airbagStatus; +@property (strong) SDLVehicleDataResult *emergencyEvent; +@property (strong) SDLVehicleDataResult *clusterModes; +@property (strong) SDLVehicleDataResult *myKey; + +@end diff --git a/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m b/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m new file mode 100644 index 000000000..ec4916447 --- /dev/null +++ b/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m @@ -0,0 +1,433 @@ +// SDLUnsubscribeVehicleDataResponse.m +// + + +#import "SDLUnsubscribeVehicleDataResponse.h" + +#import "SDLNames.h" +#import "SDLVehicleDataResult.h" + + +@implementation SDLUnsubscribeVehicleDataResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_UnsubscribeVehicleData]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setGps:(SDLVehicleDataResult *)gps { + if (gps != nil) { + [parameters setObject:gps forKey:NAMES_gps]; + } else { + [parameters removeObjectForKey:NAMES_gps]; + } +} + +- (SDLVehicleDataResult *)gps { + NSObject *obj = [parameters objectForKey:NAMES_gps]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setSpeed:(SDLVehicleDataResult *)speed { + if (speed != nil) { + [parameters setObject:speed forKey:NAMES_speed]; + } else { + [parameters removeObjectForKey:NAMES_speed]; + } +} + +- (SDLVehicleDataResult *)speed { + NSObject *obj = [parameters objectForKey:NAMES_speed]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setRpm:(SDLVehicleDataResult *)rpm { + if (rpm != nil) { + [parameters setObject:rpm forKey:NAMES_rpm]; + } else { + [parameters removeObjectForKey:NAMES_rpm]; + } +} + +- (SDLVehicleDataResult *)rpm { + NSObject *obj = [parameters objectForKey:NAMES_rpm]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setFuelLevel:(SDLVehicleDataResult *)fuelLevel { + if (fuelLevel != nil) { + [parameters setObject:fuelLevel forKey:NAMES_fuelLevel]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel]; + } +} + +- (SDLVehicleDataResult *)fuelLevel { + NSObject *obj = [parameters objectForKey:NAMES_fuelLevel]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setFuelLevel_State:(SDLVehicleDataResult *)fuelLevel_State { + if (fuelLevel_State != nil) { + [parameters setObject:fuelLevel_State forKey:NAMES_fuelLevel_State]; + } else { + [parameters removeObjectForKey:NAMES_fuelLevel_State]; + } +} + +- (SDLVehicleDataResult *)fuelLevel_State { + NSObject *obj = [parameters objectForKey:NAMES_fuelLevel_State]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setInstantFuelConsumption:(SDLVehicleDataResult *)instantFuelConsumption { + if (instantFuelConsumption != nil) { + [parameters setObject:instantFuelConsumption forKey:NAMES_instantFuelConsumption]; + } else { + [parameters removeObjectForKey:NAMES_instantFuelConsumption]; + } +} + +- (SDLVehicleDataResult *)instantFuelConsumption { + NSObject *obj = [parameters objectForKey:NAMES_instantFuelConsumption]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setExternalTemperature:(SDLVehicleDataResult *)externalTemperature { + if (externalTemperature != nil) { + [parameters setObject:externalTemperature forKey:NAMES_externalTemperature]; + } else { + [parameters removeObjectForKey:NAMES_externalTemperature]; + } +} + +- (SDLVehicleDataResult *)externalTemperature { + NSObject *obj = [parameters objectForKey:NAMES_externalTemperature]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setPrndl:(SDLVehicleDataResult *)prndl { + if (prndl != nil) { + [parameters setObject:prndl forKey:NAMES_prndl]; + } else { + [parameters removeObjectForKey:NAMES_prndl]; + } +} + +- (SDLVehicleDataResult *)prndl { + NSObject *obj = [parameters objectForKey:NAMES_prndl]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setTirePressure:(SDLVehicleDataResult *)tirePressure { + if (tirePressure != nil) { + [parameters setObject:tirePressure forKey:NAMES_tirePressure]; + } else { + [parameters removeObjectForKey:NAMES_tirePressure]; + } +} + +- (SDLVehicleDataResult *)tirePressure { + NSObject *obj = [parameters objectForKey:NAMES_tirePressure]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setOdometer:(SDLVehicleDataResult *)odometer { + if (odometer != nil) { + [parameters setObject:odometer forKey:NAMES_odometer]; + } else { + [parameters removeObjectForKey:NAMES_odometer]; + } +} + +- (SDLVehicleDataResult *)odometer { + NSObject *obj = [parameters objectForKey:NAMES_odometer]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setBeltStatus:(SDLVehicleDataResult *)beltStatus { + if (beltStatus != nil) { + [parameters setObject:beltStatus forKey:NAMES_beltStatus]; + } else { + [parameters removeObjectForKey:NAMES_beltStatus]; + } +} + +- (SDLVehicleDataResult *)beltStatus { + NSObject *obj = [parameters objectForKey:NAMES_beltStatus]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setBodyInformation:(SDLVehicleDataResult *)bodyInformation { + if (bodyInformation != nil) { + [parameters setObject:bodyInformation forKey:NAMES_bodyInformation]; + } else { + [parameters removeObjectForKey:NAMES_bodyInformation]; + } +} + +- (SDLVehicleDataResult *)bodyInformation { + NSObject *obj = [parameters objectForKey:NAMES_bodyInformation]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setDeviceStatus:(SDLVehicleDataResult *)deviceStatus { + if (deviceStatus != nil) { + [parameters setObject:deviceStatus forKey:NAMES_deviceStatus]; + } else { + [parameters removeObjectForKey:NAMES_deviceStatus]; + } +} + +- (SDLVehicleDataResult *)deviceStatus { + NSObject *obj = [parameters objectForKey:NAMES_deviceStatus]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setDriverBraking:(SDLVehicleDataResult *)driverBraking { + if (driverBraking != nil) { + [parameters setObject:driverBraking forKey:NAMES_driverBraking]; + } else { + [parameters removeObjectForKey:NAMES_driverBraking]; + } +} + +- (SDLVehicleDataResult *)driverBraking { + NSObject *obj = [parameters objectForKey:NAMES_driverBraking]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setWiperStatus:(SDLVehicleDataResult *)wiperStatus { + if (wiperStatus != nil) { + [parameters setObject:wiperStatus forKey:NAMES_wiperStatus]; + } else { + [parameters removeObjectForKey:NAMES_wiperStatus]; + } +} + +- (SDLVehicleDataResult *)wiperStatus { + NSObject *obj = [parameters objectForKey:NAMES_wiperStatus]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setHeadLampStatus:(SDLVehicleDataResult *)headLampStatus { + if (headLampStatus != nil) { + [parameters setObject:headLampStatus forKey:NAMES_headLampStatus]; + } else { + [parameters removeObjectForKey:NAMES_headLampStatus]; + } +} + +- (SDLVehicleDataResult *)headLampStatus { + NSObject *obj = [parameters objectForKey:NAMES_headLampStatus]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setEngineTorque:(SDLVehicleDataResult *)engineTorque { + if (engineTorque != nil) { + [parameters setObject:engineTorque forKey:NAMES_engineTorque]; + } else { + [parameters removeObjectForKey:NAMES_engineTorque]; + } +} + +- (SDLVehicleDataResult *)engineTorque { + NSObject *obj = [parameters objectForKey:NAMES_engineTorque]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setAccPedalPosition:(SDLVehicleDataResult *)accPedalPosition { + if (accPedalPosition != nil) { + [parameters setObject:accPedalPosition forKey:NAMES_accPedalPosition]; + } else { + [parameters removeObjectForKey:NAMES_accPedalPosition]; + } +} + +- (SDLVehicleDataResult *)accPedalPosition { + NSObject *obj = [parameters objectForKey:NAMES_accPedalPosition]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setSteeringWheelAngle:(SDLVehicleDataResult *)steeringWheelAngle { + if (steeringWheelAngle != nil) { + [parameters setObject:steeringWheelAngle forKey:NAMES_steeringWheelAngle]; + } else { + [parameters removeObjectForKey:NAMES_steeringWheelAngle]; + } +} + +- (SDLVehicleDataResult *)steeringWheelAngle { + NSObject *obj = [parameters objectForKey:NAMES_steeringWheelAngle]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setECallInfo:(SDLVehicleDataResult *)eCallInfo { + if (eCallInfo != nil) { + [parameters setObject:eCallInfo forKey:NAMES_eCallInfo]; + } else { + [parameters removeObjectForKey:NAMES_eCallInfo]; + } +} + +- (SDLVehicleDataResult *)eCallInfo { + NSObject *obj = [parameters objectForKey:NAMES_eCallInfo]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setAirbagStatus:(SDLVehicleDataResult *)airbagStatus { + if (airbagStatus != nil) { + [parameters setObject:airbagStatus forKey:NAMES_airbagStatus]; + } else { + [parameters removeObjectForKey:NAMES_airbagStatus]; + } +} + +- (SDLVehicleDataResult *)airbagStatus { + NSObject *obj = [parameters objectForKey:NAMES_airbagStatus]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setEmergencyEvent:(SDLVehicleDataResult *)emergencyEvent { + if (emergencyEvent != nil) { + [parameters setObject:emergencyEvent forKey:NAMES_emergencyEvent]; + } else { + [parameters removeObjectForKey:NAMES_emergencyEvent]; + } +} + +- (SDLVehicleDataResult *)emergencyEvent { + NSObject *obj = [parameters objectForKey:NAMES_emergencyEvent]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setClusterModes:(SDLVehicleDataResult *)clusterModes { + if (clusterModes != nil) { + [parameters setObject:clusterModes forKey:NAMES_clusterModes]; + } else { + [parameters removeObjectForKey:NAMES_clusterModes]; + } +} + +- (SDLVehicleDataResult *)clusterModes { + NSObject *obj = [parameters objectForKey:NAMES_clusterModes]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setMyKey:(SDLVehicleDataResult *)myKey { + if (myKey != nil) { + [parameters setObject:myKey forKey:NAMES_myKey]; + } else { + [parameters removeObjectForKey:NAMES_myKey]; + } +} + +- (SDLVehicleDataResult *)myKey { + NSObject *obj = [parameters objectForKey:NAMES_myKey]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) { + return (SDLVehicleDataResult *)obj; + } else { + return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLUpdateMode.h b/SmartDeviceLink/SDLUpdateMode.h new file mode 100644 index 000000000..3ff84a2e9 --- /dev/null +++ b/SmartDeviceLink/SDLUpdateMode.h @@ -0,0 +1,57 @@ +// SDLUpdateMode.h +// + + +#import "SDLEnum.h" + +/** + * Specifies what function should be performed on the media clock/counter + * + * @since SDL 1.0 + */ +@interface SDLUpdateMode : SDLEnum { +} + +/** + * Convert String to SDLUpdateMode + * @param value The value of the string to get an object for + * @return SDLUpdateMode + */ ++ (SDLUpdateMode *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLUpdateMode + * @return an array that store all possible SDLUpdateMode + */ ++ (NSArray *)values; + +/** + * @abstract Starts the media clock timer counting upward, in increments of 1 second. + * @return SDLUpdateMode with value of *COUNTUP* + */ ++ (SDLUpdateMode *)COUNTUP; + +/** + * @abstract Starts the media clock timer counting downward, in increments of 1 second. + * @return SDLUpdateMode with value of *COUNTDOWN* + */ ++ (SDLUpdateMode *)COUNTDOWN; + +/** + * @abstract Pauses the media clock timer. + * @return SDLUpdateMode with value of *PAUSE* + */ ++ (SDLUpdateMode *)PAUSE; + +/** + * @abstract Resumes the media clock timer. The timer resumes counting in whatever mode was in effect before pausing (i.e. COUNTUP or COUNTDOWN). + * @return SDLUpdateMode with value of *RESUME* + */ ++ (SDLUpdateMode *)RESUME; + +/** + * @abstract Clear the media clock timer. + */ ++ (SDLUpdateMode *)CLEAR; + +@end diff --git a/SmartDeviceLink/SDLUpdateMode.m b/SmartDeviceLink/SDLUpdateMode.m new file mode 100644 index 000000000..2a2e8c7e5 --- /dev/null +++ b/SmartDeviceLink/SDLUpdateMode.m @@ -0,0 +1,74 @@ +// SDLUpdateMode.m +// + + +#import "SDLUpdateMode.h" + +SDLUpdateMode *SDLUpdateMode_COUNTUP = nil; +SDLUpdateMode *SDLUpdateMode_COUNTDOWN = nil; +SDLUpdateMode *SDLUpdateMode_PAUSE = nil; +SDLUpdateMode *SDLUpdateMode_RESUME = nil; +SDLUpdateMode *SDLUpdateMode_CLEAR = nil; + +NSArray *SDLUpdateMode_values = nil; + +@implementation SDLUpdateMode + ++ (SDLUpdateMode *)valueOf:(NSString *)value { + for (SDLUpdateMode *item in SDLUpdateMode.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLUpdateMode_values == nil) { + SDLUpdateMode_values = @[ + SDLUpdateMode.COUNTUP, + SDLUpdateMode.COUNTDOWN, + SDLUpdateMode.PAUSE, + SDLUpdateMode.RESUME, + SDLUpdateMode.CLEAR, + ]; + } + return SDLUpdateMode_values; +} + ++ (SDLUpdateMode *)COUNTUP { + if (SDLUpdateMode_COUNTUP == nil) { + SDLUpdateMode_COUNTUP = [[SDLUpdateMode alloc] initWithValue:@"COUNTUP"]; + } + return SDLUpdateMode_COUNTUP; +} + ++ (SDLUpdateMode *)COUNTDOWN { + if (SDLUpdateMode_COUNTDOWN == nil) { + SDLUpdateMode_COUNTDOWN = [[SDLUpdateMode alloc] initWithValue:@"COUNTDOWN"]; + } + return SDLUpdateMode_COUNTDOWN; +} + ++ (SDLUpdateMode *)PAUSE { + if (SDLUpdateMode_PAUSE == nil) { + SDLUpdateMode_PAUSE = [[SDLUpdateMode alloc] initWithValue:@"PAUSE"]; + } + return SDLUpdateMode_PAUSE; +} + ++ (SDLUpdateMode *)RESUME { + if (SDLUpdateMode_RESUME == nil) { + SDLUpdateMode_RESUME = [[SDLUpdateMode alloc] initWithValue:@"RESUME"]; + } + return SDLUpdateMode_RESUME; +} + ++ (SDLUpdateMode *)CLEAR { + if (SDLUpdateMode_CLEAR == nil) { + SDLUpdateMode_CLEAR = [[SDLUpdateMode alloc] initWithValue:@"CLEAR"]; + } + return SDLUpdateMode_CLEAR; +} + +@end diff --git a/SmartDeviceLink/SDLUpdateTurnList.h b/SmartDeviceLink/SDLUpdateTurnList.h new file mode 100644 index 000000000..d5d9daf6a --- /dev/null +++ b/SmartDeviceLink/SDLUpdateTurnList.h @@ -0,0 +1,28 @@ +// SDLUpdateTurnList.h +// + + +#import "SDLRPCRequest.h" + +/** Updates the list of next maneuvers, which can be requested by the user pressing the softbutton
    + * “Turns” on the Navigation base screen. Three softbuttons are predefined by the system: Up, Down, Close. + *

    + * @since SmartDeviceLink 2.0 + */ +@interface SDLUpdateTurnList : SDLRPCRequest { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * Optional, SDLTurn, 1 - 100 entries + */ +@property (strong) NSMutableArray *turnList; + +/** + * Required, SDLSoftButton, 0 - 1 Entries + */ +@property (strong) NSMutableArray *softButtons; + +@end diff --git a/SmartDeviceLink/SDLUpdateTurnList.m b/SmartDeviceLink/SDLUpdateTurnList.m new file mode 100644 index 000000000..7063c9c29 --- /dev/null +++ b/SmartDeviceLink/SDLUpdateTurnList.m @@ -0,0 +1,67 @@ +// SDLUpdateTurnList.m +// + + +#import "SDLUpdateTurnList.h" + +#import "SDLNames.h" +#import "SDLSoftButton.h" +#import "SDLTurn.h" + +@implementation SDLUpdateTurnList + +- (instancetype)init { + if (self = [super initWithName:NAMES_UpdateTurnList]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setTurnList:(NSMutableArray *)turnList { + if (turnList != nil) { + [parameters setObject:turnList forKey:NAMES_turnList]; + } else { + [parameters removeObjectForKey:NAMES_turnList]; + } +} + +- (NSMutableArray *)turnList { + NSMutableArray *array = [parameters objectForKey:NAMES_turnList]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLTurn.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLTurn alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +- (void)setSoftButtons:(NSMutableArray *)softButtons { + if (softButtons != nil) { + [parameters setObject:softButtons forKey:NAMES_softButtons]; + } else { + [parameters removeObjectForKey:NAMES_softButtons]; + } +} + +- (NSMutableArray *)softButtons { + NSMutableArray *array = [parameters objectForKey:NAMES_softButtons]; + if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLSoftButton.class]) { + return array; + } else { + NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + for (NSDictionary *dict in array) { + [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]]; + } + return newList; + } +} + +@end diff --git a/SmartDeviceLink/SDLUpdateTurnListResponse.h b/SmartDeviceLink/SDLUpdateTurnListResponse.h new file mode 100644 index 000000000..c02c912e9 --- /dev/null +++ b/SmartDeviceLink/SDLUpdateTurnListResponse.h @@ -0,0 +1,16 @@ +// SDLUpdateTurnListResponse.h +// + +#import "SDLRPCResponse.h" + + +/** SDLUpdateTurnListResponse is sent, when SDLUpdateTurnList has been called. + * SinceSmartDeviceLink 2.0 + */ +@interface SDLUpdateTurnListResponse : SDLRPCResponse { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@end diff --git a/SmartDeviceLink/SDLUpdateTurnListResponse.m b/SmartDeviceLink/SDLUpdateTurnListResponse.m new file mode 100644 index 000000000..18e04082b --- /dev/null +++ b/SmartDeviceLink/SDLUpdateTurnListResponse.m @@ -0,0 +1,23 @@ +// SDLUpdateTurnListResponse.m +// + + +#import "SDLUpdateTurnListResponse.h" + +#import "SDLNames.h" + +@implementation SDLUpdateTurnListResponse + +- (instancetype)init { + if (self = [super initWithName:NAMES_UpdateTurnList]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +@end diff --git a/SmartDeviceLink/SDLV1ProtocolHeader.h b/SmartDeviceLink/SDLV1ProtocolHeader.h new file mode 100644 index 000000000..b7fa454f2 --- /dev/null +++ b/SmartDeviceLink/SDLV1ProtocolHeader.h @@ -0,0 +1,14 @@ +// SDLSmartDeviceLinkV1ProtocolHeader.h +// + + +#import "SDLProtocolHeader.h" + +@interface SDLV1ProtocolHeader : SDLProtocolHeader + +- (instancetype)init; +- (NSData *)data; +- (void)parse:(NSData *)data; +- (NSString *)description; + +@end diff --git a/SmartDeviceLink/SDLV1ProtocolHeader.m b/SmartDeviceLink/SDLV1ProtocolHeader.m new file mode 100644 index 000000000..61c976c51 --- /dev/null +++ b/SmartDeviceLink/SDLV1ProtocolHeader.m @@ -0,0 +1,84 @@ +// SDLSmartDeviceLinkV1ProtocolHeader.m +// + + +#import "SDLV1ProtocolHeader.h" + +const int V1PROTOCOL_HEADERSIZE = 8; + +@implementation SDLV1ProtocolHeader + +- (instancetype)init { + if (self = [super init]) { + _version = 1; + _size = V1PROTOCOL_HEADERSIZE; + } + return self; +} + +- (NSData *)data { + // Assembles the properties in the binary header format + Byte headerBytes[V1PROTOCOL_HEADERSIZE] = {0}; + + Byte version = (self.version & 0xF) << 4; // first 4 bits + Byte compressed = (self.compressed ? 1 : 0) << 3; // next 1 bit + Byte frameType = (self.frameType & 0x7); // last 3 bits + + headerBytes[0] = version | compressed | frameType; + headerBytes[1] = self.serviceType; + headerBytes[2] = self.frameData; + headerBytes[3] = self.sessionID; + + // Need to write the larger ints as big-endian. + UInt32 *p = (UInt32 *)&headerBytes[4]; + *p = CFSwapInt32HostToBig(self.bytesInPayload); // swap the byte order + + // Now put it all in an NSData object. + NSData *dataOut = [NSData dataWithBytes:headerBytes length:V1PROTOCOL_HEADERSIZE]; + + return dataOut; +} + +- (id)copyWithZone:(NSZone *)zone { + SDLV1ProtocolHeader *newHeader = [[SDLV1ProtocolHeader allocWithZone:zone] init]; + newHeader.compressed = self.compressed; + newHeader.frameType = self.frameType; + newHeader.serviceType = self.serviceType; + newHeader.frameData = self.frameData; + newHeader.bytesInPayload = self.bytesInPayload; + newHeader.sessionID = self.sessionID; + + return newHeader; +} + +- (void)parse:(NSData *)data { + NSParameterAssert(data != nil); + NSAssert(data.length >= _size, @"Error: insufficient data available to parse V1 header."); + + Byte *bytePointer = (Byte *)data.bytes; + Byte firstByte = bytePointer[0]; + self.compressed = ((firstByte & 8) != 0); + self.frameType = (firstByte & 7); + self.serviceType = bytePointer[1]; + self.frameData = bytePointer[2]; + self.sessionID = bytePointer[3]; + + UInt32 *uintPointer = (UInt32 *)data.bytes; + self.bytesInPayload = CFSwapInt32BigToHost(uintPointer[1]); // Data is coming in in big-endian, so swap it. +} + +- (NSString *)description { + NSMutableString *description = [[NSMutableString alloc] init]; + [description appendFormat:@"Version:%i, compressed:%i, frameType:%i, serviceType:%i, frameData:%i, sessionID:%i, dataSize:%i", + self.version, + self.compressed, + self.frameType, + self.serviceType, + self.frameData, + self.sessionID, + (unsigned int)self.bytesInPayload]; + return description; +} + + +@end diff --git a/SmartDeviceLink/SDLV1ProtocolMessage.h b/SmartDeviceLink/SDLV1ProtocolMessage.h new file mode 100644 index 000000000..39f26e76e --- /dev/null +++ b/SmartDeviceLink/SDLV1ProtocolMessage.h @@ -0,0 +1,14 @@ +// SDLV1ProtocolMessage.h +// + +#import "SDLProtocolMessage.h" + +@class SDLProtocolHeader; + + +@interface SDLV1ProtocolMessage : SDLProtocolMessage + +- (instancetype)initWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload; +- (NSDictionary *)rpcDictionary; + +@end diff --git a/SmartDeviceLink/SDLV1ProtocolMessage.m b/SmartDeviceLink/SDLV1ProtocolMessage.m new file mode 100644 index 000000000..736dd0b13 --- /dev/null +++ b/SmartDeviceLink/SDLV1ProtocolMessage.m @@ -0,0 +1,24 @@ +// SDLV1ProtocolMessage.m +// + +#import "SDLV1ProtocolMessage.h" +#import "SDLJsonDecoder.h" +#import "SDLProtocolHeader.h" + + +@implementation SDLV1ProtocolMessage + +- (instancetype)initWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload { + if (self = [self init]) { + self.header = header; + self.payload = payload; + } + return self; +} + +- (NSDictionary *)rpcDictionary { + NSDictionary *rpcMessageAsDictionary = [[SDLJsonDecoder instance] decode:self.payload]; + return rpcMessageAsDictionary; +} + +@end diff --git a/SmartDeviceLink/SDLV2ProtocolHeader.h b/SmartDeviceLink/SDLV2ProtocolHeader.h new file mode 100644 index 000000000..c7a0d4272 --- /dev/null +++ b/SmartDeviceLink/SDLV2ProtocolHeader.h @@ -0,0 +1,17 @@ +// SDLSmartDeviceLinkV2ProtocolHeader.h +// + + +#import "SDLProtocolHeader.h" + +@interface SDLV2ProtocolHeader : SDLProtocolHeader + +@property (assign) UInt32 messageID; + +- (instancetype)init; +- (instancetype)initWithVersion:(UInt8)version; +- (NSData *)data; +- (void)parse:(NSData *)data; +- (NSString *)description; + +@end diff --git a/SmartDeviceLink/SDLV2ProtocolHeader.m b/SmartDeviceLink/SDLV2ProtocolHeader.m new file mode 100644 index 000000000..42f915cb8 --- /dev/null +++ b/SmartDeviceLink/SDLV2ProtocolHeader.m @@ -0,0 +1,124 @@ +// SDLSmartDeviceLinkV2ProtocolHeader.m +// + + +#import "SDLV2ProtocolHeader.h" + +const int V2PROTOCOL_HEADERSIZE = 12; + + +@interface SDLV2ProtocolHeader () + +@end + + +@implementation SDLV2ProtocolHeader + +- (instancetype)init { + // TODO: Should this be changed to whatever the current version is from SDLGlobals + return [self initWithVersion:2]; +} + +- (instancetype)initWithVersion:(UInt8)version { + if (self = [super init]) { + _version = version; + _size = V2PROTOCOL_HEADERSIZE; + } + return self; +} + +- (NSData *)data { + // Assembles the properties in the binary header format + Byte headerBytes[V2PROTOCOL_HEADERSIZE] = {0}; + + Byte version = (self.version & 0xF) << 4; // first 4 bits + Byte compressed = (self.compressed ? 1 : 0) << 3; // next 1 bit + Byte frameType = (self.frameType & 0x7); // last 3 bits + + headerBytes[0] = version | compressed | frameType; + headerBytes[1] = self.serviceType; + headerBytes[2] = self.frameData; + headerBytes[3] = self.sessionID; + + // Need to write these ints as big-endian. + UInt32 *p = (UInt32 *)&headerBytes[4]; + *p = CFSwapInt32HostToBig(self.bytesInPayload); + + p = (UInt32 *)&headerBytes[8]; + *p = CFSwapInt32HostToBig(self.messageID); + + // Now put it all in an NSData object. + NSData *dataOut = [NSData dataWithBytes:headerBytes length:V2PROTOCOL_HEADERSIZE]; + + return dataOut; +} + +- (id)copyWithZone:(NSZone *)zone { + SDLV2ProtocolHeader *newHeader = [[SDLV2ProtocolHeader allocWithZone:zone] init]; + newHeader->_version = self.version; + newHeader.compressed = self.compressed; + newHeader.frameType = self.frameType; + newHeader.serviceType = self.serviceType; + newHeader.frameData = self.frameData; + newHeader.bytesInPayload = self.bytesInPayload; + newHeader.sessionID = self.sessionID; + newHeader.messageID = self.messageID; + + return newHeader; +} + +- (void)parse:(NSData *)data { + NSParameterAssert(data != nil); + NSAssert(data.length >= _size, @"Error: insufficient data available to parse V2 header."); + + Byte *bytePointer = (Byte *)data.bytes; + Byte firstByte = bytePointer[0]; + self.compressed = ((firstByte & 8) != 0); + self.frameType = (firstByte & 7); + self.serviceType = bytePointer[1]; + self.frameData = bytePointer[2]; + self.sessionID = bytePointer[3]; + + UInt32 *uintPointer = (UInt32 *)data.bytes; + self.bytesInPayload = CFSwapInt32BigToHost(uintPointer[1]); // Data is coming in in big-endian, so swap it. + self.messageID = CFSwapInt32BigToHost(uintPointer[2]); // Data is coming in in big-endian, so swap it. +} + +- (NSString *)description { + NSString *frameTypeString = nil; + if (self.frameType >= 0 && self.frameType <= 3) { + NSArray *frameTypeNames = @[ @"Control", @"Single", @"First", @"Consecutive" ]; + frameTypeString = frameTypeNames[self.frameType]; + } + + + NSString *frameDataString = nil; + if (self.frameType == SDLFrameType_Control) { + if (self.frameData >= 0 && self.frameData <= 5) { + NSArray *controlFrameDataNames = @[ @"Heartbeat", @"StartSession", @"StartSessionACK", @"StartSessionNACK", @"EndSession", @"EndSessionNACK" ]; + frameDataString = controlFrameDataNames[self.frameData]; + } else { + frameDataString = @"Reserved"; + } + } else if (self.frameType == SDLFrameType_Single || self.frameType == SDLFrameType_First) { + frameDataString = @"Reserved"; + } else if (self.frameType == SDLFrameType_Consecutive) { + frameDataString = @"Frame#"; + } + + NSMutableString *description = [[NSMutableString alloc] init]; + [description appendFormat:@"Version:%i, compressed:%i, frameType:%@(%i), serviceType:%i, frameData:%@(%i), sessionID:%i, dataSize:%i, messageID:%i ", + self.version, + self.compressed, + frameTypeString, + self.frameType, + self.serviceType, + frameDataString, + self.frameData, + self.sessionID, + (unsigned int)self.bytesInPayload, + (unsigned int)self.messageID]; + return description; +} + +@end diff --git a/SmartDeviceLink/SDLV2ProtocolMessage.h b/SmartDeviceLink/SDLV2ProtocolMessage.h new file mode 100644 index 000000000..6f9912cf9 --- /dev/null +++ b/SmartDeviceLink/SDLV2ProtocolMessage.h @@ -0,0 +1,15 @@ +// SDLSmartDeviceLinkV2ProtocolMessage.h +// + + +#import "SDLProtocolMessage.h" + +@class SDLProtocolHeader; + + +@interface SDLV2ProtocolMessage : SDLProtocolMessage + +- (instancetype)initWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload; +- (NSDictionary *)rpcDictionary; + +@end diff --git a/SmartDeviceLink/SDLV2ProtocolMessage.m b/SmartDeviceLink/SDLV2ProtocolMessage.m new file mode 100644 index 000000000..683c10335 --- /dev/null +++ b/SmartDeviceLink/SDLV2ProtocolMessage.m @@ -0,0 +1,60 @@ +// SDLSmartDeviceLinkV2ProtocolMessage.m +// + +#import "SDLV2ProtocolMessage.h" +#import "SDLFunctionID.h" +#import "SDLJsonDecoder.h" +#import "SDLNames.h" +#import "SDLProtocolHeader.h" +#import "SDLRPCPayload.h" + + +@implementation SDLV2ProtocolMessage + +- (instancetype)initWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload { + if (self = [self init]) { + self.header = header; + self.payload = payload; + } + return self; +} + +// Convert RPC payload to dictionary (for consumption by RPC layer) +- (NSDictionary *)rpcDictionary { + // Only applicable to RPCs + if ((self.header.serviceType != SDLServiceType_RPC) && (self.header.serviceType != SDLServiceType_BulkData)) { + return nil; + } + + NSMutableDictionary *rpcMessageAsDictionary = [[NSMutableDictionary alloc] init]; + + // Parse the payload as RPC struct + SDLRPCPayload *rpcPayload = [SDLRPCPayload rpcPayloadWithData:self.payload]; + + // Create the inner dictionary with the RPC properties + NSMutableDictionary *innerDictionary = [[NSMutableDictionary alloc] init]; + NSString *functionName = [[[SDLFunctionID alloc] init] getFunctionName:rpcPayload.functionID]; + [innerDictionary setObject:functionName forKey:NAMES_operation_name]; + [innerDictionary setObject:[NSNumber numberWithInt:rpcPayload.correlationID] forKey:NAMES_correlationID]; + + // Get the json data from the struct + if (rpcPayload.jsonData) { + NSDictionary *jsonDictionary = [[SDLJsonDecoder instance] decode:rpcPayload.jsonData]; + if (jsonDictionary) { + [innerDictionary setObject:jsonDictionary forKey:NAMES_parameters]; + } + } + + // Store it in the containing dictionary + UInt8 rpcType = rpcPayload.rpcType; + NSArray *rpcTypeNames = @[ NAMES_request, NAMES_response, NAMES_notification ]; + [rpcMessageAsDictionary setObject:innerDictionary forKey:rpcTypeNames[rpcType]]; + + // The bulk data also goes in the dictionary + if (rpcPayload.binaryData) { + [rpcMessageAsDictionary setObject:rpcPayload.binaryData forKey:NAMES_bulkData]; + } + + return rpcMessageAsDictionary; +} +@end diff --git a/SmartDeviceLink/SDLVehicleDataActiveStatus.h b/SmartDeviceLink/SDLVehicleDataActiveStatus.h new file mode 100644 index 000000000..dbb36b550 --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataActiveStatus.h @@ -0,0 +1,46 @@ +// SDLVehicleDataActiveStatus.h +// + + +#import "SDLEnum.h" + +/** + Vehicle Data Activity Status + */ +@interface SDLVehicleDataActiveStatus : SDLEnum { +} + +/** + * @abstract Convert String to SDLVehicleDataActiveStatus + * @param value NSString + * @return SDLVehicleDataActiveStatus + */ ++ (SDLVehicleDataActiveStatus *)valueOf:(NSString *)value; + +/** + @abstract return the array that store all possible SDLVehicleDataActiveStatus values + */ ++ (NSArray *)values; + +/** + @abstract SDLVehicleDataActiveStatus : Inactive not confirmed + */ ++ (SDLVehicleDataActiveStatus *)INACTIVE_NOT_CONFIRMED; +/** + @abstract SDLVehicleDataActiveStatus : Inactive confirmed + */ ++ (SDLVehicleDataActiveStatus *)INACTIVE_CONFIRMED; +/** + @abstract SDLVehicleDataActiveStatus : Active not confirmed + */ ++ (SDLVehicleDataActiveStatus *)ACTIVE_NOT_CONFIRMED; +/** + @abstract SDLVehicleDataActiveStatus : Active confirmed + */ ++ (SDLVehicleDataActiveStatus *)ACTIVE_CONFIRMED; +/** + @abstract SDLVehicleDataActiveStatus : Fault + */ ++ (SDLVehicleDataActiveStatus *)FAULT; + +@end diff --git a/SmartDeviceLink/SDLVehicleDataActiveStatus.m b/SmartDeviceLink/SDLVehicleDataActiveStatus.m new file mode 100644 index 000000000..98bf85738 --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataActiveStatus.m @@ -0,0 +1,74 @@ +// SDLVehicleDataActiveStatus.m +// + + +#import "SDLVehicleDataActiveStatus.h" + +SDLVehicleDataActiveStatus *SDLVehicleDataActiveStatus_INACTIVE_NOT_CONFIRMED = nil; +SDLVehicleDataActiveStatus *SDLVehicleDataActiveStatus_INACTIVE_CONFIRMED = nil; +SDLVehicleDataActiveStatus *SDLVehicleDataActiveStatus_ACTIVE_NOT_CONFIRMED = nil; +SDLVehicleDataActiveStatus *SDLVehicleDataActiveStatus_ACTIVE_CONFIRMED = nil; +SDLVehicleDataActiveStatus *SDLVehicleDataActiveStatus_FAULT = nil; + +NSArray *SDLVehicleDataActiveStatus_values = nil; + +@implementation SDLVehicleDataActiveStatus + ++ (SDLVehicleDataActiveStatus *)valueOf:(NSString *)value { + for (SDLVehicleDataActiveStatus *item in SDLVehicleDataActiveStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLVehicleDataActiveStatus_values == nil) { + SDLVehicleDataActiveStatus_values = @[ + SDLVehicleDataActiveStatus.INACTIVE_NOT_CONFIRMED, + SDLVehicleDataActiveStatus.INACTIVE_CONFIRMED, + SDLVehicleDataActiveStatus.ACTIVE_NOT_CONFIRMED, + SDLVehicleDataActiveStatus.ACTIVE_CONFIRMED, + SDLVehicleDataActiveStatus.FAULT, + ]; + } + return SDLVehicleDataActiveStatus_values; +} + ++ (SDLVehicleDataActiveStatus *)INACTIVE_NOT_CONFIRMED { + if (SDLVehicleDataActiveStatus_INACTIVE_NOT_CONFIRMED == nil) { + SDLVehicleDataActiveStatus_INACTIVE_NOT_CONFIRMED = [[SDLVehicleDataActiveStatus alloc] initWithValue:@"INACTIVE_NOT_CONFIRMED"]; + } + return SDLVehicleDataActiveStatus_INACTIVE_NOT_CONFIRMED; +} + ++ (SDLVehicleDataActiveStatus *)INACTIVE_CONFIRMED { + if (SDLVehicleDataActiveStatus_INACTIVE_CONFIRMED == nil) { + SDLVehicleDataActiveStatus_INACTIVE_CONFIRMED = [[SDLVehicleDataActiveStatus alloc] initWithValue:@"INACTIVE_CONFIRMED"]; + } + return SDLVehicleDataActiveStatus_INACTIVE_CONFIRMED; +} + ++ (SDLVehicleDataActiveStatus *)ACTIVE_NOT_CONFIRMED { + if (SDLVehicleDataActiveStatus_ACTIVE_NOT_CONFIRMED == nil) { + SDLVehicleDataActiveStatus_ACTIVE_NOT_CONFIRMED = [[SDLVehicleDataActiveStatus alloc] initWithValue:@"ACTIVE_NOT_CONFIRMED"]; + } + return SDLVehicleDataActiveStatus_ACTIVE_NOT_CONFIRMED; +} + ++ (SDLVehicleDataActiveStatus *)ACTIVE_CONFIRMED { + if (SDLVehicleDataActiveStatus_ACTIVE_CONFIRMED == nil) { + SDLVehicleDataActiveStatus_ACTIVE_CONFIRMED = [[SDLVehicleDataActiveStatus alloc] initWithValue:@"ACTIVE_CONFIRMED"]; + } + return SDLVehicleDataActiveStatus_ACTIVE_CONFIRMED; +} + ++ (SDLVehicleDataActiveStatus *)FAULT { + if (SDLVehicleDataActiveStatus_FAULT == nil) { + SDLVehicleDataActiveStatus_FAULT = [[SDLVehicleDataActiveStatus alloc] initWithValue:@"FAULT"]; + } + return SDLVehicleDataActiveStatus_FAULT; +} + +@end diff --git a/SmartDeviceLink/SDLVehicleDataEventStatus.h b/SmartDeviceLink/SDLVehicleDataEventStatus.h new file mode 100644 index 000000000..880e4ec2d --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataEventStatus.h @@ -0,0 +1,58 @@ +// SDLVehicleDataEventStatus.h +// + + +#import "SDLEnum.h" + +/** + * Reflects the status of a vehicle data event; e.g. a seat belt event status. + * + * @since SDL 2.0 + */ +@interface SDLVehicleDataEventStatus : SDLEnum { +} + +/** + * Convert String to SDLVehicleDataEventStatus + * + * @param value The value of the string to get an object for + * + * @return SDLVehicleDataEventStatus + */ ++ (SDLVehicleDataEventStatus *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLVehicleDataEventStatus + * + * @return an array that store all possible SDLVehicleDataEventStatus + */ ++ (NSArray *)values; + +/** + * @return The SDLVehicleDataEventStatus instance with value of *NO_EVENT* + */ ++ (SDLVehicleDataEventStatus *)NO_EVENT; + +/** + * @return The SDLVehicleDataEventStatus instance with value of *NO* + */ ++ (SDLVehicleDataEventStatus *)_NO; + +/** + * @return The SDLVehicleDataEventStatus instance with value of *YES* + */ ++ (SDLVehicleDataEventStatus *)_YES; + +/** + * @abstract Vehicle data event is not supported + * + * @return the SDLVehicleDataEventStatus instance with value of *NOT_SUPPORTED* + */ ++ (SDLVehicleDataEventStatus *)NOT_SUPPORTED; + +/** + * @abstract The SDLVehicleDataEventStatus instance with value of *FAULT* + */ ++ (SDLVehicleDataEventStatus *)FAULT; + +@end diff --git a/SmartDeviceLink/SDLVehicleDataEventStatus.m b/SmartDeviceLink/SDLVehicleDataEventStatus.m new file mode 100644 index 000000000..a27178886 --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataEventStatus.m @@ -0,0 +1,74 @@ +// SDLVehicleDataEventStatus.m +// + + +#import "SDLVehicleDataEventStatus.h" + +SDLVehicleDataEventStatus *SDLVehicleDataEventStatus_NO_EVENT = nil; +SDLVehicleDataEventStatus *SDLVehicleDataEventStatus_NO = nil; +SDLVehicleDataEventStatus *SDLVehicleDataEventStatus_YES = nil; +SDLVehicleDataEventStatus *SDLVehicleDataEventStatus_NOT_SUPPORTED = nil; +SDLVehicleDataEventStatus *SDLVehicleDataEventStatus_FAULT = nil; + +NSArray *SDLVehicleDataEventStatus_values = nil; + +@implementation SDLVehicleDataEventStatus + ++ (SDLVehicleDataEventStatus *)valueOf:(NSString *)value { + for (SDLVehicleDataEventStatus *item in SDLVehicleDataEventStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLVehicleDataEventStatus_values == nil) { + SDLVehicleDataEventStatus_values = @[ + SDLVehicleDataEventStatus.NO_EVENT, + SDLVehicleDataEventStatus._NO, + SDLVehicleDataEventStatus._YES, + SDLVehicleDataEventStatus.NOT_SUPPORTED, + SDLVehicleDataEventStatus.FAULT, + ]; + } + return SDLVehicleDataEventStatus_values; +} + ++ (SDLVehicleDataEventStatus *)NO_EVENT { + if (SDLVehicleDataEventStatus_NO_EVENT == nil) { + SDLVehicleDataEventStatus_NO_EVENT = [[SDLVehicleDataEventStatus alloc] initWithValue:@"NO_EVENT"]; + } + return SDLVehicleDataEventStatus_NO_EVENT; +} + ++ (SDLVehicleDataEventStatus *)_NO { + if (SDLVehicleDataEventStatus_NO == nil) { + SDLVehicleDataEventStatus_NO = [[SDLVehicleDataEventStatus alloc] initWithValue:@"NO"]; + } + return SDLVehicleDataEventStatus_NO; +} + ++ (SDLVehicleDataEventStatus *)_YES { + if (SDLVehicleDataEventStatus_YES == nil) { + SDLVehicleDataEventStatus_YES = [[SDLVehicleDataEventStatus alloc] initWithValue:@"YES"]; + } + return SDLVehicleDataEventStatus_YES; +} + ++ (SDLVehicleDataEventStatus *)NOT_SUPPORTED { + if (SDLVehicleDataEventStatus_NOT_SUPPORTED == nil) { + SDLVehicleDataEventStatus_NOT_SUPPORTED = [[SDLVehicleDataEventStatus alloc] initWithValue:@"NOT_SUPPORTED"]; + } + return SDLVehicleDataEventStatus_NOT_SUPPORTED; +} + ++ (SDLVehicleDataEventStatus *)FAULT { + if (SDLVehicleDataEventStatus_FAULT == nil) { + SDLVehicleDataEventStatus_FAULT = [[SDLVehicleDataEventStatus alloc] initWithValue:@"FAULT"]; + } + return SDLVehicleDataEventStatus_FAULT; +} + +@end diff --git a/SmartDeviceLink/SDLVehicleDataNotificationStatus.h b/SmartDeviceLink/SDLVehicleDataNotificationStatus.h new file mode 100644 index 000000000..24a3fc372 --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataNotificationStatus.h @@ -0,0 +1,48 @@ +// SDLVehicleDataNotificationStatus.h +// + + +#import "SDLEnum.h" + +/** + * Reflects the status of a vehicle data notification. + * + * @since SDL 2.0 + */ +@interface SDLVehicleDataNotificationStatus : SDLEnum { +} + +/** + * Convert String to SDLVehicleDataNotificationStatus + * @param value The value of the string to get an object for + * @return SDLVehicleDataNotificationStatus + */ ++ (SDLVehicleDataNotificationStatus *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLVehicleDataNotificationStatus + * @return an array that store all possible SDLVehicleDataNotificationStatus + */ ++ (NSArray *)values; + +/** + * @abstract SDLVehicleDataNotificationStatus: *NOT_SUPPORTED* + */ ++ (SDLVehicleDataNotificationStatus *)NOT_SUPPORTED; + +/** + @abstract SDLVehicleDataNotificationStatus: *NORMAL* + */ ++ (SDLVehicleDataNotificationStatus *)NORMAL; + +/** + @abstract SDLVehicleDataNotificationStatus: *ACTIVE* + */ ++ (SDLVehicleDataNotificationStatus *)ACTIVE; + +/** + @abstract SDLVehicleDataNotificationStatus: *NOT_USED* + */ ++ (SDLVehicleDataNotificationStatus *)NOT_USED; + +@end diff --git a/SmartDeviceLink/SDLVehicleDataNotificationStatus.m b/SmartDeviceLink/SDLVehicleDataNotificationStatus.m new file mode 100644 index 000000000..40d66d163 --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataNotificationStatus.m @@ -0,0 +1,65 @@ +// SDLVehicleDataNotificationStatus.m +// + + +#import "SDLVehicleDataNotificationStatus.h" + +SDLVehicleDataNotificationStatus *SDLVehicleDataNotificationStatus_NOT_SUPPORTED = nil; +SDLVehicleDataNotificationStatus *SDLVehicleDataNotificationStatus_NORMAL = nil; +SDLVehicleDataNotificationStatus *SDLVehicleDataNotificationStatus_ACTIVE = nil; +SDLVehicleDataNotificationStatus *SDLVehicleDataNotificationStatus_NOT_USED = nil; + +NSArray *SDLVehicleDataNotificationStatus_values = nil; + +@implementation SDLVehicleDataNotificationStatus + ++ (SDLVehicleDataNotificationStatus *)valueOf:(NSString *)value { + for (SDLVehicleDataNotificationStatus *item in SDLVehicleDataNotificationStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLVehicleDataNotificationStatus_values == nil) { + SDLVehicleDataNotificationStatus_values = @[ + SDLVehicleDataNotificationStatus.NOT_SUPPORTED, + SDLVehicleDataNotificationStatus.NORMAL, + SDLVehicleDataNotificationStatus.ACTIVE, + SDLVehicleDataNotificationStatus.NOT_USED, + ]; + } + return SDLVehicleDataNotificationStatus_values; +} + ++ (SDLVehicleDataNotificationStatus *)NOT_SUPPORTED { + if (SDLVehicleDataNotificationStatus_NOT_SUPPORTED == nil) { + SDLVehicleDataNotificationStatus_NOT_SUPPORTED = [[SDLVehicleDataNotificationStatus alloc] initWithValue:@"NOT_SUPPORTED"]; + } + return SDLVehicleDataNotificationStatus_NOT_SUPPORTED; +} + ++ (SDLVehicleDataNotificationStatus *)NORMAL { + if (SDLVehicleDataNotificationStatus_NORMAL == nil) { + SDLVehicleDataNotificationStatus_NORMAL = [[SDLVehicleDataNotificationStatus alloc] initWithValue:@"NORMAL"]; + } + return SDLVehicleDataNotificationStatus_NORMAL; +} + ++ (SDLVehicleDataNotificationStatus *)ACTIVE { + if (SDLVehicleDataNotificationStatus_ACTIVE == nil) { + SDLVehicleDataNotificationStatus_ACTIVE = [[SDLVehicleDataNotificationStatus alloc] initWithValue:@"ACTIVE"]; + } + return SDLVehicleDataNotificationStatus_ACTIVE; +} + ++ (SDLVehicleDataNotificationStatus *)NOT_USED { + if (SDLVehicleDataNotificationStatus_NOT_USED == nil) { + SDLVehicleDataNotificationStatus_NOT_USED = [[SDLVehicleDataNotificationStatus alloc] initWithValue:@"NOT_USED"]; + } + return SDLVehicleDataNotificationStatus_NOT_USED; +} + +@end diff --git a/SmartDeviceLink/SDLVehicleDataResult.h b/SmartDeviceLink/SDLVehicleDataResult.h new file mode 100644 index 000000000..9a03e5d07 --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataResult.h @@ -0,0 +1,19 @@ +// SDLVehicleDataResult.h +// + +#import "SDLRPCMessage.h" + +@class SDLVehicleDataType; +@class SDLVehicleDataResultCode; + + +@interface SDLVehicleDataResult : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) SDLVehicleDataType *dataType; +@property (strong) SDLVehicleDataResultCode *resultCode; + +@end diff --git a/SmartDeviceLink/SDLVehicleDataResult.m b/SmartDeviceLink/SDLVehicleDataResult.m new file mode 100644 index 000000000..e395717eb --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataResult.m @@ -0,0 +1,59 @@ +// SDLVehicleDataResult.m +// + +#import "SDLVehicleDataResult.h" + +#import "SDLNames.h" +#import "SDLVehicleDataResultCode.h" +#import "SDLVehicleDataType.h" + + +@implementation SDLVehicleDataResult + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setDataType:(SDLVehicleDataType *)dataType { + if (dataType != nil) { + [store setObject:dataType forKey:NAMES_dataType]; + } else { + [store removeObjectForKey:NAMES_dataType]; + } +} + +- (SDLVehicleDataType *)dataType { + NSObject *obj = [store objectForKey:NAMES_dataType]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataType.class]) { + return (SDLVehicleDataType *)obj; + } else { + return [SDLVehicleDataType valueOf:(NSString *)obj]; + } +} + +- (void)setResultCode:(SDLVehicleDataResultCode *)resultCode { + if (resultCode != nil) { + [store setObject:resultCode forKey:NAMES_resultCode]; + } else { + [store removeObjectForKey:NAMES_resultCode]; + } +} + +- (SDLVehicleDataResultCode *)resultCode { + NSObject *obj = [store objectForKey:NAMES_resultCode]; + if (obj == nil || [obj isKindOfClass:SDLVehicleDataResultCode.class]) { + return (SDLVehicleDataResultCode *)obj; + } else { + return [SDLVehicleDataResultCode valueOf:(NSString *)obj]; + } +} + +@end diff --git a/SmartDeviceLink/SDLVehicleDataResultCode.h b/SmartDeviceLink/SDLVehicleDataResultCode.h new file mode 100644 index 000000000..162ecff59 --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataResultCode.h @@ -0,0 +1,71 @@ +// SDLVehicleDataResultCode.h +// + + +#import "SDLEnum.h" + +/** + 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; + +/** + * Individual vehicle data item / DTC / DID request or subscription successful + */ ++ (SDLVehicleDataResultCode *)SUCCESS; + +/** + * DTC / DID request successful, however, not all active DTCs or full contents of DID location available + */ ++ (SDLVehicleDataResultCode *)TRUNCATED_DATA; + +/** + * This vehicle data item is not allowed for this app by SDL + */ ++ (SDLVehicleDataResultCode *)DISALLOWED; + +/** + * The user has not granted access to this type of vehicle data item at this time + */ ++ (SDLVehicleDataResultCode *)USER_DISALLOWED; + +/** + * The ECU ID referenced is not a valid ID on the bus / system + */ ++ (SDLVehicleDataResultCode *)INVALID_ID; + +/** + * The requested vehicle data item / DTC / DID is not currently available or responding on the bus / system + */ ++ (SDLVehicleDataResultCode *)VEHICLE_DATA_NOT_AVAILABLE; + +/** + * The vehicle data item is already subscribed + */ ++ (SDLVehicleDataResultCode *)DATA_ALREADY_SUBSCRIBED; + +/** + * The vehicle data item cannot be unsubscribed because it is not currently subscribed + */ ++ (SDLVehicleDataResultCode *)DATA_NOT_SUBSCRIBED; + +/** + * The request for this item is ignored because it is already in progress + */ ++ (SDLVehicleDataResultCode *)IGNORED; + +@end diff --git a/SmartDeviceLink/SDLVehicleDataResultCode.m b/SmartDeviceLink/SDLVehicleDataResultCode.m new file mode 100644 index 000000000..8aa912568 --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataResultCode.m @@ -0,0 +1,110 @@ +// SDLVehicleDataResultCode.m +// + + +#import "SDLVehicleDataResultCode.h" + +SDLVehicleDataResultCode *SDLVehicleDataResultCode_SUCCESS = nil; +SDLVehicleDataResultCode *SDLVehicleDataResultCode_TRUNCATED_DATA = nil; +SDLVehicleDataResultCode *SDLVehicleDataResultCode_DISALLOWED = nil; +SDLVehicleDataResultCode *SDLVehicleDataResultCode_USER_DISALLOWED = nil; +SDLVehicleDataResultCode *SDLVehicleDataResultCode_INVALID_ID = nil; +SDLVehicleDataResultCode *SDLVehicleDataResultCode_VEHICLE_DATA_NOT_AVAILABLE = nil; +SDLVehicleDataResultCode *SDLVehicleDataResultCode_DATA_ALREADY_SUBSCRIBED = nil; +SDLVehicleDataResultCode *SDLVehicleDataResultCode_DATA_NOT_SUBSCRIBED = nil; +SDLVehicleDataResultCode *SDLVehicleDataResultCode_IGNORED = nil; + +NSArray *SDLVehicleDataResultCode_values = nil; + +@implementation SDLVehicleDataResultCode + ++ (SDLVehicleDataResultCode *)valueOf:(NSString *)value { + for (SDLVehicleDataResultCode *item in SDLVehicleDataResultCode.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLVehicleDataResultCode_values == nil) { + SDLVehicleDataResultCode_values = @[ + SDLVehicleDataResultCode.SUCCESS, + SDLVehicleDataResultCode.TRUNCATED_DATA, + SDLVehicleDataResultCode.DISALLOWED, + SDLVehicleDataResultCode.USER_DISALLOWED, + SDLVehicleDataResultCode.INVALID_ID, + SDLVehicleDataResultCode.VEHICLE_DATA_NOT_AVAILABLE, + SDLVehicleDataResultCode.DATA_ALREADY_SUBSCRIBED, + SDLVehicleDataResultCode.DATA_NOT_SUBSCRIBED, + SDLVehicleDataResultCode.IGNORED, + ]; + } + return SDLVehicleDataResultCode_values; +} + ++ (SDLVehicleDataResultCode *)SUCCESS { + if (SDLVehicleDataResultCode_SUCCESS == nil) { + SDLVehicleDataResultCode_SUCCESS = [[SDLVehicleDataResultCode alloc] initWithValue:@"SUCCESS"]; + } + return SDLVehicleDataResultCode_SUCCESS; +} + ++ (SDLVehicleDataResultCode *)TRUNCATED_DATA { + if (SDLVehicleDataResultCode_TRUNCATED_DATA == nil) { + SDLVehicleDataResultCode_TRUNCATED_DATA = [[SDLVehicleDataResultCode alloc] initWithValue:@"TRUNCATED_DATA"]; + } + return SDLVehicleDataResultCode_TRUNCATED_DATA; +} + ++ (SDLVehicleDataResultCode *)DISALLOWED { + if (SDLVehicleDataResultCode_DISALLOWED == nil) { + SDLVehicleDataResultCode_DISALLOWED = [[SDLVehicleDataResultCode alloc] initWithValue:@"DISALLOWED"]; + } + return SDLVehicleDataResultCode_DISALLOWED; +} + ++ (SDLVehicleDataResultCode *)USER_DISALLOWED { + if (SDLVehicleDataResultCode_USER_DISALLOWED == nil) { + SDLVehicleDataResultCode_USER_DISALLOWED = [[SDLVehicleDataResultCode alloc] initWithValue:@"USER_DISALLOWED"]; + } + return SDLVehicleDataResultCode_USER_DISALLOWED; +} + ++ (SDLVehicleDataResultCode *)INVALID_ID { + if (SDLVehicleDataResultCode_INVALID_ID == nil) { + SDLVehicleDataResultCode_INVALID_ID = [[SDLVehicleDataResultCode alloc] initWithValue:@"INVALID_ID"]; + } + return SDLVehicleDataResultCode_INVALID_ID; +} + ++ (SDLVehicleDataResultCode *)VEHICLE_DATA_NOT_AVAILABLE { + if (SDLVehicleDataResultCode_VEHICLE_DATA_NOT_AVAILABLE == nil) { + SDLVehicleDataResultCode_VEHICLE_DATA_NOT_AVAILABLE = [[SDLVehicleDataResultCode alloc] initWithValue:@"VEHICLE_DATA_NOT_AVAILABLE"]; + } + return SDLVehicleDataResultCode_VEHICLE_DATA_NOT_AVAILABLE; +} + ++ (SDLVehicleDataResultCode *)DATA_ALREADY_SUBSCRIBED { + if (SDLVehicleDataResultCode_DATA_ALREADY_SUBSCRIBED == nil) { + SDLVehicleDataResultCode_DATA_ALREADY_SUBSCRIBED = [[SDLVehicleDataResultCode alloc] initWithValue:@"DATA_ALREADY_SUBSCRIBED"]; + } + return SDLVehicleDataResultCode_DATA_ALREADY_SUBSCRIBED; +} + ++ (SDLVehicleDataResultCode *)DATA_NOT_SUBSCRIBED { + if (SDLVehicleDataResultCode_DATA_NOT_SUBSCRIBED == nil) { + SDLVehicleDataResultCode_DATA_NOT_SUBSCRIBED = [[SDLVehicleDataResultCode alloc] initWithValue:@"DATA_NOT_SUBSCRIBED"]; + } + return SDLVehicleDataResultCode_DATA_NOT_SUBSCRIBED; +} + ++ (SDLVehicleDataResultCode *)IGNORED { + if (SDLVehicleDataResultCode_IGNORED == nil) { + SDLVehicleDataResultCode_IGNORED = [[SDLVehicleDataResultCode alloc] initWithValue:@"IGNORED"]; + } + return SDLVehicleDataResultCode_IGNORED; +} + +@end diff --git a/SmartDeviceLink/SDLVehicleDataStatus.h b/SmartDeviceLink/SDLVehicleDataStatus.h new file mode 100644 index 000000000..e7720c924 --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataStatus.h @@ -0,0 +1,44 @@ +// SDLVehicleDataStatus.h +// + + +#import "SDLEnum.h" + +/** + * Reflects the status of a binary vehicle data item. + * + * @since SDL 2.0 + */ +@interface SDLVehicleDataStatus : SDLEnum { +} + +/** + * Convert String to SDLVehicleDataStatus + * @param value The value of the string to get an object for + * @return SDLVehicleDataStatus + */ ++ (SDLVehicleDataStatus *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLVehicleDataStatus + * @return an array that store all possible SDLVehicleDataStatus + */ ++ (NSArray *)values; + +/** + * @abstract No data avaliable + * @return SDLVehicleDataStatus: *NO_DATA_EXISTS* + */ ++ (SDLVehicleDataStatus *)NO_DATA_EXISTS; + +/** + * @abstract return SDLVehicleDataStatus: *OFF* + */ ++ (SDLVehicleDataStatus *)OFF; + +/** + * @abstract return SDLVehicleDataStatus: *ON* + */ ++ (SDLVehicleDataStatus *)ON; + +@end diff --git a/SmartDeviceLink/SDLVehicleDataStatus.m b/SmartDeviceLink/SDLVehicleDataStatus.m new file mode 100644 index 000000000..0fe108a1e --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataStatus.m @@ -0,0 +1,56 @@ +// SDLVehicleDataStatus.m +// + + +#import "SDLVehicleDataStatus.h" + +SDLVehicleDataStatus *SDLVehicleDataStatus_NO_DATA_EXISTS = nil; +SDLVehicleDataStatus *SDLVehicleDataStatus_OFF = nil; +SDLVehicleDataStatus *SDLVehicleDataStatus_ON = nil; + +NSArray *SDLVehicleDataStatus_values = nil; + +@implementation SDLVehicleDataStatus + ++ (SDLVehicleDataStatus *)valueOf:(NSString *)value { + for (SDLVehicleDataStatus *item in SDLVehicleDataStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLVehicleDataStatus_values == nil) { + SDLVehicleDataStatus_values = @[ + SDLVehicleDataStatus.NO_DATA_EXISTS, + SDLVehicleDataStatus.OFF, + SDLVehicleDataStatus.ON, + ]; + } + return SDLVehicleDataStatus_values; +} + ++ (SDLVehicleDataStatus *)NO_DATA_EXISTS { + if (SDLVehicleDataStatus_NO_DATA_EXISTS == nil) { + SDLVehicleDataStatus_NO_DATA_EXISTS = [[SDLVehicleDataStatus alloc] initWithValue:@"NO_DATA_EXISTS"]; + } + return SDLVehicleDataStatus_NO_DATA_EXISTS; +} + ++ (SDLVehicleDataStatus *)OFF { + if (SDLVehicleDataStatus_OFF == nil) { + SDLVehicleDataStatus_OFF = [[SDLVehicleDataStatus alloc] initWithValue:@"OFF"]; + } + return SDLVehicleDataStatus_OFF; +} + ++ (SDLVehicleDataStatus *)ON { + if (SDLVehicleDataStatus_ON == nil) { + SDLVehicleDataStatus_ON = [[SDLVehicleDataStatus alloc] initWithValue:@"ON"]; + } + return SDLVehicleDataStatus_ON; +} + +@end diff --git a/SmartDeviceLink/SDLVehicleDataType.h b/SmartDeviceLink/SDLVehicleDataType.h new file mode 100644 index 000000000..71ec1f4fe --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataType.h @@ -0,0 +1,159 @@ +// SDLVehicleDataType.h +// + + +#import "SDLEnum.h" + +/** + * Defines the vehicle data types that can be published and/or subscribed to using SDLSubscribeVehicleData + */ +@interface SDLVehicleDataType : SDLEnum { +} + +/** + * Convert String to SDLVehicleDataType + * + * @param value String value to retrieve the object for + * + * @return SDLVehicleDataType + */ ++ (SDLVehicleDataType *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLVehicleDataType + * + * @return an array that store all possible SDLVehicleDataType + */ ++ (NSArray *)values; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_GPS* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_GPS; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_SPEED* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_SPEED; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_RPM* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_RPM; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_FUELLEVEL* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_FUELLEVEL; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_FUELLEVEL_STATE* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_FUELLEVEL_STATE; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_FUELCONSUMPTION* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_FUELCONSUMPTION; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_EXTERNTEMP* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_EXTERNTEMP; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_VIN* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_VIN; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_PRNDL* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_PRNDL; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_TIREPRESSURE* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_TIREPRESSURE; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_ODOMETER* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_ODOMETER; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_BELTSTATUS* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_BELTSTATUS; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_BODYINFO* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_BODYINFO; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_DEVICESTATUS* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_DEVICESTATUS; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_ECALLINFO* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_ECALLINFO; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_AIRBAGSTATUS* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_AIRBAGSTATUS; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_EMERGENCYEVENT* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_EMERGENCYEVENT; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_CLUSTERMODESTATUS* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_CLUSTERMODESTATUS; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_MYKEY* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_MYKEY; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_BRAKING* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_BRAKING; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_WIPERSTATUS* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_WIPERSTATUS; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_HEADLAMPSTATUS* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_HEADLAMPSTATUS; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_BATTVOLTAGE* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_BATTVOLTAGE; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_ENGINETORQUE* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_ENGINETORQUE; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_ACCPEDAL* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_ACCPEDAL; + +/** + * @abstract SDLVehicleDataType: *VEHICLEDATA_STEERINGWHEEL* + */ ++ (SDLVehicleDataType *)VEHICLEDATA_STEERINGWHEEL; + +@end diff --git a/SmartDeviceLink/SDLVehicleDataType.m b/SmartDeviceLink/SDLVehicleDataType.m new file mode 100644 index 000000000..fa5573745 --- /dev/null +++ b/SmartDeviceLink/SDLVehicleDataType.m @@ -0,0 +1,263 @@ +// SDLVehicleDataType.m +// + + +#import "SDLVehicleDataType.h" + +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_GPS = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_SPEED = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_RPM = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_FUELLEVEL = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_FUELLEVEL_STATE = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_FUELCONSUMPTION = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_EXTERNTEMP = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_VIN = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_PRNDL = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_TIREPRESSURE = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_ODOMETER = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_BELTSTATUS = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_BODYINFO = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_DEVICESTATUS = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_ECALLINFO = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_AIRBAGSTATUS = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_EMERGENCYEVENT = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_CLUSTERMODESTATUS = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_MYKEY = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_BRAKING = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_WIPERSTATUS = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_HEADLAMPSTATUS = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_BATTVOLTAGE = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_ENGINETORQUE = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_ACCPEDAL = nil; +SDLVehicleDataType *SDLVehicleDataType_VEHICLEDATA_STEERINGWHEEL = nil; + +NSArray *SDLVehicleDataType_values = nil; + +@implementation SDLVehicleDataType + ++ (SDLVehicleDataType *)valueOf:(NSString *)value { + for (SDLVehicleDataType *item in SDLVehicleDataType.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLVehicleDataType_values == nil) { + SDLVehicleDataType_values = @[ + SDLVehicleDataType.VEHICLEDATA_GPS, + SDLVehicleDataType.VEHICLEDATA_SPEED, + SDLVehicleDataType.VEHICLEDATA_RPM, + SDLVehicleDataType.VEHICLEDATA_FUELLEVEL, + SDLVehicleDataType.VEHICLEDATA_FUELLEVEL_STATE, + SDLVehicleDataType.VEHICLEDATA_FUELCONSUMPTION, + SDLVehicleDataType.VEHICLEDATA_EXTERNTEMP, + SDLVehicleDataType.VEHICLEDATA_VIN, + SDLVehicleDataType.VEHICLEDATA_PRNDL, + SDLVehicleDataType.VEHICLEDATA_TIREPRESSURE, + SDLVehicleDataType.VEHICLEDATA_ODOMETER, + SDLVehicleDataType.VEHICLEDATA_BELTSTATUS, + SDLVehicleDataType.VEHICLEDATA_BODYINFO, + SDLVehicleDataType.VEHICLEDATA_DEVICESTATUS, + SDLVehicleDataType.VEHICLEDATA_ECALLINFO, + SDLVehicleDataType.VEHICLEDATA_AIRBAGSTATUS, + SDLVehicleDataType.VEHICLEDATA_EMERGENCYEVENT, + SDLVehicleDataType.VEHICLEDATA_CLUSTERMODESTATUS, + SDLVehicleDataType.VEHICLEDATA_MYKEY, + SDLVehicleDataType.VEHICLEDATA_BRAKING, + SDLVehicleDataType.VEHICLEDATA_WIPERSTATUS, + SDLVehicleDataType.VEHICLEDATA_HEADLAMPSTATUS, + SDLVehicleDataType.VEHICLEDATA_BATTVOLTAGE, + SDLVehicleDataType.VEHICLEDATA_ENGINETORQUE, + SDLVehicleDataType.VEHICLEDATA_ACCPEDAL, + SDLVehicleDataType.VEHICLEDATA_STEERINGWHEEL, + ]; + } + return SDLVehicleDataType_values; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_GPS { + if (SDLVehicleDataType_VEHICLEDATA_GPS == nil) { + SDLVehicleDataType_VEHICLEDATA_GPS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_GPS"]; + } + return SDLVehicleDataType_VEHICLEDATA_GPS; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_SPEED { + if (SDLVehicleDataType_VEHICLEDATA_SPEED == nil) { + SDLVehicleDataType_VEHICLEDATA_SPEED = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_SPEED"]; + } + return SDLVehicleDataType_VEHICLEDATA_SPEED; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_RPM { + if (SDLVehicleDataType_VEHICLEDATA_RPM == nil) { + SDLVehicleDataType_VEHICLEDATA_RPM = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_RPM"]; + } + return SDLVehicleDataType_VEHICLEDATA_RPM; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_FUELLEVEL { + if (SDLVehicleDataType_VEHICLEDATA_FUELLEVEL == nil) { + SDLVehicleDataType_VEHICLEDATA_FUELLEVEL = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_FUELLEVEL"]; + } + return SDLVehicleDataType_VEHICLEDATA_FUELLEVEL; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_FUELLEVEL_STATE { + if (SDLVehicleDataType_VEHICLEDATA_FUELLEVEL_STATE == nil) { + SDLVehicleDataType_VEHICLEDATA_FUELLEVEL_STATE = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_FUELLEVEL_STATE"]; + } + return SDLVehicleDataType_VEHICLEDATA_FUELLEVEL_STATE; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_FUELCONSUMPTION { + if (SDLVehicleDataType_VEHICLEDATA_FUELCONSUMPTION == nil) { + SDLVehicleDataType_VEHICLEDATA_FUELCONSUMPTION = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_FUELCONSUMPTION"]; + } + return SDLVehicleDataType_VEHICLEDATA_FUELCONSUMPTION; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_EXTERNTEMP { + if (SDLVehicleDataType_VEHICLEDATA_EXTERNTEMP == nil) { + SDLVehicleDataType_VEHICLEDATA_EXTERNTEMP = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_EXTERNTEMP"]; + } + return SDLVehicleDataType_VEHICLEDATA_EXTERNTEMP; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_VIN { + if (SDLVehicleDataType_VEHICLEDATA_VIN == nil) { + SDLVehicleDataType_VEHICLEDATA_VIN = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_VIN"]; + } + return SDLVehicleDataType_VEHICLEDATA_VIN; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_PRNDL { + if (SDLVehicleDataType_VEHICLEDATA_PRNDL == nil) { + SDLVehicleDataType_VEHICLEDATA_PRNDL = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_PRNDL"]; + } + return SDLVehicleDataType_VEHICLEDATA_PRNDL; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_TIREPRESSURE { + if (SDLVehicleDataType_VEHICLEDATA_TIREPRESSURE == nil) { + SDLVehicleDataType_VEHICLEDATA_TIREPRESSURE = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_TIREPRESSURE"]; + } + return SDLVehicleDataType_VEHICLEDATA_TIREPRESSURE; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_ODOMETER { + if (SDLVehicleDataType_VEHICLEDATA_ODOMETER == nil) { + SDLVehicleDataType_VEHICLEDATA_ODOMETER = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_ODOMETER"]; + } + return SDLVehicleDataType_VEHICLEDATA_ODOMETER; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_BELTSTATUS { + if (SDLVehicleDataType_VEHICLEDATA_BELTSTATUS == nil) { + SDLVehicleDataType_VEHICLEDATA_BELTSTATUS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_BELTSTATUS"]; + } + return SDLVehicleDataType_VEHICLEDATA_BELTSTATUS; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_BODYINFO { + if (SDLVehicleDataType_VEHICLEDATA_BODYINFO == nil) { + SDLVehicleDataType_VEHICLEDATA_BODYINFO = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_BODYINFO"]; + } + return SDLVehicleDataType_VEHICLEDATA_BODYINFO; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_DEVICESTATUS { + if (SDLVehicleDataType_VEHICLEDATA_DEVICESTATUS == nil) { + SDLVehicleDataType_VEHICLEDATA_DEVICESTATUS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_DEVICESTATUS"]; + } + return SDLVehicleDataType_VEHICLEDATA_DEVICESTATUS; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_ECALLINFO { + if (SDLVehicleDataType_VEHICLEDATA_ECALLINFO == nil) { + SDLVehicleDataType_VEHICLEDATA_ECALLINFO = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_ECALLINFO"]; + } + return SDLVehicleDataType_VEHICLEDATA_ECALLINFO; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_AIRBAGSTATUS { + if (SDLVehicleDataType_VEHICLEDATA_AIRBAGSTATUS == nil) { + SDLVehicleDataType_VEHICLEDATA_AIRBAGSTATUS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_AIRBAGSTATUS"]; + } + return SDLVehicleDataType_VEHICLEDATA_AIRBAGSTATUS; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_EMERGENCYEVENT { + if (SDLVehicleDataType_VEHICLEDATA_EMERGENCYEVENT == nil) { + SDLVehicleDataType_VEHICLEDATA_EMERGENCYEVENT = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_EMERGENCYEVENT"]; + } + return SDLVehicleDataType_VEHICLEDATA_EMERGENCYEVENT; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_CLUSTERMODESTATUS { + if (SDLVehicleDataType_VEHICLEDATA_CLUSTERMODESTATUS == nil) { + SDLVehicleDataType_VEHICLEDATA_CLUSTERMODESTATUS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_CLUSTERMODESTATUS"]; + } + return SDLVehicleDataType_VEHICLEDATA_CLUSTERMODESTATUS; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_MYKEY { + if (SDLVehicleDataType_VEHICLEDATA_MYKEY == nil) { + SDLVehicleDataType_VEHICLEDATA_MYKEY = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_MYKEY"]; + } + return SDLVehicleDataType_VEHICLEDATA_MYKEY; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_BRAKING { + if (SDLVehicleDataType_VEHICLEDATA_BRAKING == nil) { + SDLVehicleDataType_VEHICLEDATA_BRAKING = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_BRAKING"]; + } + return SDLVehicleDataType_VEHICLEDATA_BRAKING; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_WIPERSTATUS { + if (SDLVehicleDataType_VEHICLEDATA_WIPERSTATUS == nil) { + SDLVehicleDataType_VEHICLEDATA_WIPERSTATUS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_WIPERSTATUS"]; + } + return SDLVehicleDataType_VEHICLEDATA_WIPERSTATUS; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_HEADLAMPSTATUS { + if (SDLVehicleDataType_VEHICLEDATA_HEADLAMPSTATUS == nil) { + SDLVehicleDataType_VEHICLEDATA_HEADLAMPSTATUS = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_HEADLAMPSTATUS"]; + } + return SDLVehicleDataType_VEHICLEDATA_HEADLAMPSTATUS; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_BATTVOLTAGE { + if (SDLVehicleDataType_VEHICLEDATA_BATTVOLTAGE == nil) { + SDLVehicleDataType_VEHICLEDATA_BATTVOLTAGE = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_BATTVOLTAGE"]; + } + return SDLVehicleDataType_VEHICLEDATA_BATTVOLTAGE; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_ENGINETORQUE { + if (SDLVehicleDataType_VEHICLEDATA_ENGINETORQUE == nil) { + SDLVehicleDataType_VEHICLEDATA_ENGINETORQUE = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_ENGINETORQUE"]; + } + return SDLVehicleDataType_VEHICLEDATA_ENGINETORQUE; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_ACCPEDAL { + if (SDLVehicleDataType_VEHICLEDATA_ACCPEDAL == nil) { + SDLVehicleDataType_VEHICLEDATA_ACCPEDAL = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_ACCPEDAL"]; + } + return SDLVehicleDataType_VEHICLEDATA_ACCPEDAL; +} + ++ (SDLVehicleDataType *)VEHICLEDATA_STEERINGWHEEL { + if (SDLVehicleDataType_VEHICLEDATA_STEERINGWHEEL == nil) { + SDLVehicleDataType_VEHICLEDATA_STEERINGWHEEL = [[SDLVehicleDataType alloc] initWithValue:@"VEHICLEDATA_STEERINGWHEEL"]; + } + return SDLVehicleDataType_VEHICLEDATA_STEERINGWHEEL; +} + +@end diff --git a/SmartDeviceLink/SDLVehicleType.h b/SmartDeviceLink/SDLVehicleType.h new file mode 100644 index 000000000..1a934b5eb --- /dev/null +++ b/SmartDeviceLink/SDLVehicleType.h @@ -0,0 +1,62 @@ +// SDLVehicleType.h +// + + +#import "SDLRPCMessage.h" + +/** + * Describes the type of vehicle the mobile phone is connected with. + * + * @since SDL 2.0 + */ +@interface SDLVehicleType : SDLRPCStruct { +} + +/** + * @abstract Constructs a newly allocated SDLVehicleType object + */ +- (instancetype)init; + +/** + * @abstract Constructs a newly allocated SDLVehicleType object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +/** + * @abstract The make of the vehicle + * + * @discussion For example, "Ford", "Lincoln", etc. + * + * Optional, Max String length 500 chars + */ +@property (strong) NSString *make; + +/** + * @abstract The model of the vehicle + * + * @discussion For example, "Fiesta", "Focus", etc. + * + * Optional, Max String length 500 chars + */ +@property (strong) NSString *model; + +/** + * @abstract The model year of the vehicle + * + * @discussion For example, "2013" + * + * Optional, Max String length 500 chars + */ +@property (strong) NSString *modelYear; + +/** + * @abstract The trim of the vehicle + * + * @discussion For example, "SE", "SEL" + * + * Optional, Max String length 500 chars + */ +@property (strong) NSString *trim; + +@end diff --git a/SmartDeviceLink/SDLVehicleType.m b/SmartDeviceLink/SDLVehicleType.m new file mode 100644 index 000000000..ebee2de7f --- /dev/null +++ b/SmartDeviceLink/SDLVehicleType.m @@ -0,0 +1,71 @@ +// SDLVehicleType.m +// + + +#import "SDLVehicleType.h" + +#import "SDLNames.h" + +@implementation SDLVehicleType + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setMake:(NSString *)make { + if (make != nil) { + [store setObject:make forKey:NAMES_make]; + } else { + [store removeObjectForKey:NAMES_make]; + } +} + +- (NSString *)make { + return [store objectForKey:NAMES_make]; +} + +- (void)setModel:(NSString *)model { + if (model != nil) { + [store setObject:model forKey:NAMES_model]; + } else { + [store removeObjectForKey:NAMES_model]; + } +} + +- (NSString *)model { + return [store objectForKey:NAMES_model]; +} + +- (void)setModelYear:(NSString *)modelYear { + if (modelYear != nil) { + [store setObject:modelYear forKey:NAMES_modelYear]; + } else { + [store removeObjectForKey:NAMES_modelYear]; + } +} + +- (NSString *)modelYear { + return [store objectForKey:NAMES_modelYear]; +} + +- (void)setTrim:(NSString *)trim { + if (trim != nil) { + [store setObject:trim forKey:NAMES_trim]; + } else { + [store removeObjectForKey:NAMES_trim]; + } +} + +- (NSString *)trim { + return [store objectForKey:NAMES_trim]; +} + +@end diff --git a/SmartDeviceLink/SDLVrCapabilities.h b/SmartDeviceLink/SDLVrCapabilities.h new file mode 100644 index 000000000..0698d272f --- /dev/null +++ b/SmartDeviceLink/SDLVrCapabilities.h @@ -0,0 +1,34 @@ +// SDLVRCapabilities.h +// + + +#import "SDLEnum.h" + +/** + * The VR capabilities of the connected SDL platform. + * + * @since SDL 1.0 + */ +@interface SDLVRCapabilities : SDLEnum { +} + +/** + * Convert String to SDLVRCapabilities + * @param value The value of the string to get an object for + * @return SDLVRCapabilities + */ ++ (SDLVRCapabilities *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLVRCapabilities + * @return an array that store all possible SDLVRCapabilities + */ ++ (NSArray *)values; + +/** + * @abstract The SDL platform is capable of recognizing spoken text in the current language. + * @return an SDLVRCapabilities instance pointer with value of *TEXT* + */ ++ (SDLVRCapabilities *)TEXT; + +@end diff --git a/SmartDeviceLink/SDLVrCapabilities.m b/SmartDeviceLink/SDLVrCapabilities.m new file mode 100644 index 000000000..72c8c39d2 --- /dev/null +++ b/SmartDeviceLink/SDLVrCapabilities.m @@ -0,0 +1,42 @@ +// SDLVRCapabilities.m +// + + +#import "SDLVRCapabilities.h" + +SDLVRCapabilities *SDLVRCapabilities_TEXT = nil; + +NSArray *SDLVRCapabilities_values = nil; + +@implementation SDLVRCapabilities + ++ (SDLVRCapabilities *)valueOf:(NSString *)value { + for (SDLVRCapabilities *item in SDLVRCapabilities.values) { + //NOTE: This was added for Sync Module Compatability, V1 module resturns "Text" and a + // Gen 1.1 module returns "TEXT", the new if statement makes a case insensitive + // check instead to accept both + //if ([item.value isEqualToString:value]) { + if (item.value && [item.value caseInsensitiveCompare:value] == NSOrderedSame) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLVRCapabilities_values == nil) { + SDLVRCapabilities_values = @[ + SDLVRCapabilities.TEXT, + ]; + } + return SDLVRCapabilities_values; +} + ++ (SDLVRCapabilities *)TEXT { + if (SDLVRCapabilities_TEXT == nil) { + SDLVRCapabilities_TEXT = [[SDLVRCapabilities alloc] initWithValue:@"TEXT"]; + } + return SDLVRCapabilities_TEXT; +} + +@end diff --git a/SmartDeviceLink/SDLVrHelpItem.h b/SmartDeviceLink/SDLVrHelpItem.h new file mode 100644 index 000000000..a46c1301b --- /dev/null +++ b/SmartDeviceLink/SDLVrHelpItem.h @@ -0,0 +1,19 @@ +// SDLVRHelpItem.h +// + +#import "SDLRPCMessage.h" + +@class SDLImage; + + +@interface SDLVRHelpItem : SDLRPCStruct { +} + +- (instancetype)init; +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + +@property (strong) NSString *text; +@property (strong) SDLImage *image; +@property (strong) NSNumber *position; + +@end diff --git a/SmartDeviceLink/SDLVrHelpItem.m b/SmartDeviceLink/SDLVrHelpItem.m new file mode 100644 index 000000000..4ed2c1409 --- /dev/null +++ b/SmartDeviceLink/SDLVrHelpItem.m @@ -0,0 +1,65 @@ +// SDLVRHelpItem.m +// + + +#import "SDLVRHelpItem.h" + +#import "SDLImage.h" +#import "SDLNames.h" + +@implementation SDLVRHelpItem + +- (instancetype)init { + if (self = [super init]) { + } + return self; +} + +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict { + if (self = [super initWithDictionary:dict]) { + } + return self; +} + +- (void)setText:(NSString *)text { + if (text != nil) { + [store setObject:text forKey:NAMES_text]; + } else { + [store removeObjectForKey:NAMES_text]; + } +} + +- (NSString *)text { + return [store objectForKey:NAMES_text]; +} + +- (void)setImage:(SDLImage *)image { + if (image != nil) { + [store setObject:image forKey:NAMES_image]; + } else { + [store removeObjectForKey:NAMES_image]; + } +} + +- (SDLImage *)image { + NSObject *obj = [store objectForKey:NAMES_image]; + if (obj == nil || [obj isKindOfClass:SDLImage.class]) { + return (SDLImage *)obj; + } else { + return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj]; + } +} + +- (void)setPosition:(NSNumber *)position { + if (position != nil) { + [store setObject:position forKey:NAMES_position]; + } else { + [store removeObjectForKey:NAMES_position]; + } +} + +- (NSNumber *)position { + return [store objectForKey:NAMES_position]; +} + +@end diff --git a/SmartDeviceLink/SDLWarningLightStatus.h b/SmartDeviceLink/SDLWarningLightStatus.h new file mode 100644 index 000000000..1176d5371 --- /dev/null +++ b/SmartDeviceLink/SDLWarningLightStatus.h @@ -0,0 +1,52 @@ +// SDLWarningLightStatus.h +// + + +#import "SDLEnum.h" + +/** + * Reflects the status of a cluster instrument warning light. + * + * @since SDL 2.0 + */ +@interface SDLWarningLightStatus : SDLEnum { +} + +/** + * Convert String to SDLWarningLightStatus + * @param value The value of the string to get an object for + * @return SDLWarningLightStatus + */ ++ (SDLWarningLightStatus *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLWarningLightStatus + * @return an array that store all possible SDLWarningLightStatus + */ ++ (NSArray *)values; + +/** + * @abstract Warninglight Off + * @return SDLWarningLightStatus instance with value of *OFF* + */ ++ (SDLWarningLightStatus *)OFF; + +/** + * @abstract Warninglight On + * @return SDLWarningLightStatus instance with value of *ON* + */ ++ (SDLWarningLightStatus *)ON; + +/** + * @abstract Warninglight is flashing + * @return SDLWarningLightStatus instance with value of *FLASH* + */ ++ (SDLWarningLightStatus *)FLASH; + +/** + * @abstract Not used + * @return SDLWarningLightStatus instance with value of *NOT_USED* + */ ++ (SDLWarningLightStatus *)NOT_USED; + +@end diff --git a/SmartDeviceLink/SDLWarningLightStatus.m b/SmartDeviceLink/SDLWarningLightStatus.m new file mode 100644 index 000000000..c9d47a407 --- /dev/null +++ b/SmartDeviceLink/SDLWarningLightStatus.m @@ -0,0 +1,65 @@ +// SDLWarningLightStatus.m +// + + +#import "SDLWarningLightStatus.h" + +SDLWarningLightStatus *SDLWarningLightStatus_OFF = nil; +SDLWarningLightStatus *SDLWarningLightStatus_ON = nil; +SDLWarningLightStatus *SDLWarningLightStatus_FLASH = nil; +SDLWarningLightStatus *SDLWarningLightStatus_NOT_USED = nil; + +NSArray *SDLWarningLightStatus_values = nil; + +@implementation SDLWarningLightStatus + ++ (SDLWarningLightStatus *)valueOf:(NSString *)value { + for (SDLWarningLightStatus *item in SDLWarningLightStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLWarningLightStatus_values == nil) { + SDLWarningLightStatus_values = @[ + SDLWarningLightStatus.OFF, + SDLWarningLightStatus.ON, + SDLWarningLightStatus.FLASH, + SDLWarningLightStatus.NOT_USED, + ]; + } + return SDLWarningLightStatus_values; +} + ++ (SDLWarningLightStatus *)OFF { + if (SDLWarningLightStatus_OFF == nil) { + SDLWarningLightStatus_OFF = [[SDLWarningLightStatus alloc] initWithValue:@"OFF"]; + } + return SDLWarningLightStatus_OFF; +} + ++ (SDLWarningLightStatus *)ON { + if (SDLWarningLightStatus_ON == nil) { + SDLWarningLightStatus_ON = [[SDLWarningLightStatus alloc] initWithValue:@"ON"]; + } + return SDLWarningLightStatus_ON; +} + ++ (SDLWarningLightStatus *)FLASH { + if (SDLWarningLightStatus_FLASH == nil) { + SDLWarningLightStatus_FLASH = [[SDLWarningLightStatus alloc] initWithValue:@"FLASH"]; + } + return SDLWarningLightStatus_FLASH; +} + ++ (SDLWarningLightStatus *)NOT_USED { + if (SDLWarningLightStatus_NOT_USED == nil) { + SDLWarningLightStatus_NOT_USED = [[SDLWarningLightStatus alloc] initWithValue:@"NOT_USED"]; + } + return SDLWarningLightStatus_NOT_USED; +} + +@end diff --git a/SmartDeviceLink/SDLWiperStatus.h b/SmartDeviceLink/SDLWiperStatus.h new file mode 100644 index 000000000..51a7a1f5d --- /dev/null +++ b/SmartDeviceLink/SDLWiperStatus.h @@ -0,0 +1,101 @@ +// SDLWiperStatus.h +// + + +#import "SDLEnum.h" + +/** + * Wiper Status + */ +@interface SDLWiperStatus : SDLEnum { +} + +/** + * Convert String to SDLWiperStatus + * @param value The value of the string to get an object for + * @return SDLWiperStatus + */ ++ (SDLWiperStatus *)valueOf:(NSString *)value; + +/** + * @abstract Store the enumeration of all possible SDLWiperStatus + * @return An array that store all possible SDLWiperStatus + */ ++ (NSArray *)values; + +/** + * @abstract SDLWiperStatus: *OFF* + */ ++ (SDLWiperStatus *)OFF; + +/** + * @abstract SDLWiperStatus: *AUTO_OFF* + */ ++ (SDLWiperStatus *)AUTO_OFF; + +/** + * @abstract SDLWiperStatus: *OFF_MOVING* + */ ++ (SDLWiperStatus *)OFF_MOVING; + +/** + * @abstract SDLWiperStatus: *MAN_INT_OFF* + */ ++ (SDLWiperStatus *)MAN_INT_OFF; + +/** + * @abstract SDLWiperStatus: *MAN_INT_ON* + */ ++ (SDLWiperStatus *)MAN_INT_ON; + +/** + * @abstract SDLWiperStatus: *MAN_LOW* + */ ++ (SDLWiperStatus *)MAN_LOW; + +/** + * @abstract SDLWiperStatus: *MAN_HIGH* + */ ++ (SDLWiperStatus *)MAN_HIGH; + +/** + * @abstract SDLWiperStatus: *MAN_FLICK* + */ ++ (SDLWiperStatus *)MAN_FLICK; + +/** + * @abstract SDLWiperStatus: *WASH* + */ ++ (SDLWiperStatus *)WASH; + +/** + * @abstract SDLWiperStatus: *AUTO_LOW* + */ ++ (SDLWiperStatus *)AUTO_LOW; + +/** + * @abstract SDLWiperStatus: *AUTO_HIGH* + */ ++ (SDLWiperStatus *)AUTO_HIGH; + +/** + * @abstract SDLWiperStatus: *COURTESYWIPE* + */ ++ (SDLWiperStatus *)COURTESYWIPE; + +/** + * @abstract SDLWiperStatus: *AUTO_ADJUST* + */ ++ (SDLWiperStatus *)AUTO_ADJUST; + +/** + * @abstract SDLWiperStatus: *STALLED* + */ ++ (SDLWiperStatus *)STALLED; + +/** + * @abstract SDLWiperStatus: *NO_DATA_EXISTS* + */ ++ (SDLWiperStatus *)NO_DATA_EXISTS; + +@end diff --git a/SmartDeviceLink/SDLWiperStatus.m b/SmartDeviceLink/SDLWiperStatus.m new file mode 100644 index 000000000..d56749a9f --- /dev/null +++ b/SmartDeviceLink/SDLWiperStatus.m @@ -0,0 +1,164 @@ +// SDLWiperStatus.m +// + + +#import "SDLWiperStatus.h" + +SDLWiperStatus *SDLWiperStatus_OFF = nil; +SDLWiperStatus *SDLWiperStatus_AUTO_OFF = nil; +SDLWiperStatus *SDLWiperStatus_OFF_MOVING = nil; +SDLWiperStatus *SDLWiperStatus_MAN_INT_OFF = nil; +SDLWiperStatus *SDLWiperStatus_MAN_INT_ON = nil; +SDLWiperStatus *SDLWiperStatus_MAN_LOW = nil; +SDLWiperStatus *SDLWiperStatus_MAN_HIGH = nil; +SDLWiperStatus *SDLWiperStatus_MAN_FLICK = nil; +SDLWiperStatus *SDLWiperStatus_WASH = nil; +SDLWiperStatus *SDLWiperStatus_AUTO_LOW = nil; +SDLWiperStatus *SDLWiperStatus_AUTO_HIGH = nil; +SDLWiperStatus *SDLWiperStatus_COURTESYWIPE = nil; +SDLWiperStatus *SDLWiperStatus_AUTO_ADJUST = nil; +SDLWiperStatus *SDLWiperStatus_STALLED = nil; +SDLWiperStatus *SDLWiperStatus_NO_DATA_EXISTS = nil; + +NSArray *SDLWiperStatus_values = nil; + +@implementation SDLWiperStatus + ++ (SDLWiperStatus *)valueOf:(NSString *)value { + for (SDLWiperStatus *item in SDLWiperStatus.values) { + if ([item.value isEqualToString:value]) { + return item; + } + } + return nil; +} + ++ (NSArray *)values { + if (SDLWiperStatus_values == nil) { + SDLWiperStatus_values = @[ + SDLWiperStatus.OFF, + SDLWiperStatus.AUTO_OFF, + SDLWiperStatus.OFF_MOVING, + SDLWiperStatus.MAN_INT_OFF, + SDLWiperStatus.MAN_INT_ON, + SDLWiperStatus.MAN_LOW, + SDLWiperStatus.MAN_HIGH, + SDLWiperStatus.MAN_FLICK, + SDLWiperStatus.WASH, + SDLWiperStatus.AUTO_LOW, + SDLWiperStatus.AUTO_HIGH, + SDLWiperStatus.COURTESYWIPE, + SDLWiperStatus.AUTO_ADJUST, + SDLWiperStatus.STALLED, + SDLWiperStatus.NO_DATA_EXISTS, + ]; + } + return SDLWiperStatus_values; +} + ++ (SDLWiperStatus *)OFF { + if (SDLWiperStatus_OFF == nil) { + SDLWiperStatus_OFF = [[SDLWiperStatus alloc] initWithValue:@"OFF"]; + } + return SDLWiperStatus_OFF; +} + ++ (SDLWiperStatus *)AUTO_OFF { + if (SDLWiperStatus_AUTO_OFF == nil) { + SDLWiperStatus_AUTO_OFF = [[SDLWiperStatus alloc] initWithValue:@"AUTO_OFF"]; + } + return SDLWiperStatus_AUTO_OFF; +} + ++ (SDLWiperStatus *)OFF_MOVING { + if (SDLWiperStatus_OFF_MOVING == nil) { + SDLWiperStatus_OFF_MOVING = [[SDLWiperStatus alloc] initWithValue:@"OFF_MOVING"]; + } + return SDLWiperStatus_OFF_MOVING; +} + ++ (SDLWiperStatus *)MAN_INT_OFF { + if (SDLWiperStatus_MAN_INT_OFF == nil) { + SDLWiperStatus_MAN_INT_OFF = [[SDLWiperStatus alloc] initWithValue:@"MAN_INT_OFF"]; + } + return SDLWiperStatus_MAN_INT_OFF; +} + ++ (SDLWiperStatus *)MAN_INT_ON { + if (SDLWiperStatus_MAN_INT_ON == nil) { + SDLWiperStatus_MAN_INT_ON = [[SDLWiperStatus alloc] initWithValue:@"MAN_INT_ON"]; + } + return SDLWiperStatus_MAN_INT_ON; +} + ++ (SDLWiperStatus *)MAN_LOW { + if (SDLWiperStatus_MAN_LOW == nil) { + SDLWiperStatus_MAN_LOW = [[SDLWiperStatus alloc] initWithValue:@"MAN_LOW"]; + } + return SDLWiperStatus_MAN_LOW; +} + ++ (SDLWiperStatus *)MAN_HIGH { + if (SDLWiperStatus_MAN_HIGH == nil) { + SDLWiperStatus_MAN_HIGH = [[SDLWiperStatus alloc] initWithValue:@"MAN_HIGH"]; + } + return SDLWiperStatus_MAN_HIGH; +} + ++ (SDLWiperStatus *)MAN_FLICK { + if (SDLWiperStatus_MAN_FLICK == nil) { + SDLWiperStatus_MAN_FLICK = [[SDLWiperStatus alloc] initWithValue:@"MAN_FLICK"]; + } + return SDLWiperStatus_MAN_FLICK; +} + ++ (SDLWiperStatus *)WASH { + if (SDLWiperStatus_WASH == nil) { + SDLWiperStatus_WASH = [[SDLWiperStatus alloc] initWithValue:@"WASH"]; + } + return SDLWiperStatus_WASH; +} + ++ (SDLWiperStatus *)AUTO_LOW { + if (SDLWiperStatus_AUTO_LOW == nil) { + SDLWiperStatus_AUTO_LOW = [[SDLWiperStatus alloc] initWithValue:@"AUTO_LOW"]; + } + return SDLWiperStatus_AUTO_LOW; +} + ++ (SDLWiperStatus *)AUTO_HIGH { + if (SDLWiperStatus_AUTO_HIGH == nil) { + SDLWiperStatus_AUTO_HIGH = [[SDLWiperStatus alloc] initWithValue:@"AUTO_HIGH"]; + } + return SDLWiperStatus_AUTO_HIGH; +} + ++ (SDLWiperStatus *)COURTESYWIPE { + if (SDLWiperStatus_COURTESYWIPE == nil) { + SDLWiperStatus_COURTESYWIPE = [[SDLWiperStatus alloc] initWithValue:@"COURTESYWIPE"]; + } + return SDLWiperStatus_COURTESYWIPE; +} + ++ (SDLWiperStatus *)AUTO_ADJUST { + if (SDLWiperStatus_AUTO_ADJUST == nil) { + SDLWiperStatus_AUTO_ADJUST = [[SDLWiperStatus alloc] initWithValue:@"AUTO_ADJUST"]; + } + return SDLWiperStatus_AUTO_ADJUST; +} + ++ (SDLWiperStatus *)STALLED { + if (SDLWiperStatus_STALLED == nil) { + SDLWiperStatus_STALLED = [[SDLWiperStatus alloc] initWithValue:@"STALLED"]; + } + return SDLWiperStatus_STALLED; +} + ++ (SDLWiperStatus *)NO_DATA_EXISTS { + if (SDLWiperStatus_NO_DATA_EXISTS == nil) { + SDLWiperStatus_NO_DATA_EXISTS = [[SDLWiperStatus alloc] initWithValue:@"NO_DATA_EXISTS"]; + } + return SDLWiperStatus_NO_DATA_EXISTS; +} + +@end diff --git a/SmartDeviceLink/SmartDeviceLink.h b/SmartDeviceLink/SmartDeviceLink.h new file mode 100644 index 000000000..1bfbcb655 --- /dev/null +++ b/SmartDeviceLink/SmartDeviceLink.h @@ -0,0 +1,275 @@ +// SmartDeviceLink.h +// + +#import + +//! Project version number for SmartDeviceLink. +FOUNDATION_EXPORT double SmartDeviceLinkVersionNumber; + +//! Project version string for SmartDeviceLink. +FOUNDATION_EXPORT const unsigned char SmartDeviceLinkVersionString[]; + +/**** Utilities *****/ +#import "SDLJingle.h" + +/***** Proxy *****/ +#import "SDLProxy.h" +#import "SDLProxyFactory.h" +#import "SDLProxyListener.h" +#import "SDLStreamingMediaManager.h" +#import "SDLTTSChunkFactory.h" + +/***** Debug *****/ +#import "SDLConsoleController.h" +#import "SDLDebugTool.h" +#import "SDLDebugToolConsole.h" +#import "SDLSiphonServer.h" + +/***** Transport *****/ +#import "SDLAbstractTransport.h" +#import "SDLIAPSessionDelegate.h" +#import "SDLIAPTransport.h" +#import "SDLTCPTransport.h" +#import "SDLTransportDelegate.h" + +/***** Protocol *****/ +#import "SDLAbstractProtocol.h" +#import "SDLProtocol.h" +#import "SDLProtocolListener.h" + +// Header +#import "SDLProtocolHeader.h" + +// Message +#import "SDLProtocolMessage.h" + +/***** RPCs *****/ +// Superclasses +#import "SDLEnum.h" +#import "SDLRPCMessage.h" +#import "SDLRPCNotification.h" +#import "SDLRPCRequest.h" +#import "SDLRPCResponse.h" +#import "SDLRPCStruct.h" + +// Factories +#import "SDLRPCRequestFactory.h" + +// Requests +#import "SDLAddCommand.h" +#import "SDLAddSubMenu.h" +#import "SDLAlert.h" +#import "SDLAlertManeuver.h" +#import "SDLChangeRegistration.h" +#import "SDLCreateInteractionChoiceSet.h" +#import "SDLDeleteCommand.h" +#import "SDLDeleteFile.h" +#import "SDLDeleteInteractionChoiceSet.h" +#import "SDLDeleteSubMenu.h" +#import "SDLDiagnosticMessage.h" +#import "SDLDialNumber.h" +#import "SDLEncodedSyncPData.h" +#import "SDLEndAudioPassThru.h" +#import "SDLGetDTCs.h" +#import "SDLGetVehicleData.h" +#import "SDLListFiles.h" +#import "SDLPerformAudioPassThru.h" +#import "SDLPerformInteraction.h" +#import "SDLPutFile.h" +#import "SDLReadDID.h" +#import "SDLRegisterAppInterface.h" +#import "SDLResetGlobalProperties.h" +#import "SDLScrollableMessage.h" +#import "SDLSendLocation.h" +#import "SDLSetAppIcon.h" +#import "SDLSetDisplayLayout.h" +#import "SDLSetGlobalProperties.h" +#import "SDLSetMediaClockTimer.h" +#import "SDLShow.h" +#import "SDLShowConstantTBT.h" +#import "SDLSlider.h" +#import "SDLSpeak.h" +#import "SDLSubscribeButton.h" +#import "SDLSubscribeVehicleData.h" +#import "SDLSyncPData.h" +#import "SDLUnregisterAppInterface.h" +#import "SDLUnsubscribeButton.h" +#import "SDLUnsubscribeVehicleData.h" +#import "SDLUpdateTurnList.h" + +// Responses +#import "SDLAddCommandResponse.h" +#import "SDLAddSubMenuResponse.h" +#import "SDLAlertManeuverResponse.h" +#import "SDLAlertResponse.h" +#import "SDLChangeRegistrationResponse.h" +#import "SDLCreateInteractionChoiceSetResponse.h" +#import "SDLDeleteCommandResponse.h" +#import "SDLDeleteFileResponse.h" +#import "SDLDeleteInteractionChoiceSetResponse.h" +#import "SDLDeleteSubMenuResponse.h" +#import "SDLDiagnosticMessageResponse.h" +#import "SDLDialNumberResponse.h" +#import "SDLEncodedSyncPDataResponse.h" +#import "SDLEndAudioPassThruResponse.h" +#import "SDLGenericResponse.h" +#import "SDLGetDTCsResponse.h" +#import "SDLGetVehicleDataResponse.h" +#import "SDLListFilesResponse.h" +#import "SDLPerformAudioPassThruResponse.h" +#import "SDLPerformInteractionResponse.h" +#import "SDLPutFileResponse.h" +#import "SDLReadDIDResponse.h" +#import "SDLRegisterAppInterfaceResponse.h" +#import "SDLResetGlobalPropertiesResponse.h" +#import "SDLScrollableMessageResponse.h" +#import "SDLSendLocationResponse.h" +#import "SDLSetAppIconResponse.h" +#import "SDLSetDisplayLayoutResponse.h" +#import "SDLSetGlobalPropertiesResponse.h" +#import "SDLSetMediaClockTimerResponse.h" +#import "SDLShowConstantTBTResponse.h" +#import "SDLShowResponse.h" +#import "SDLSliderResponse.h" +#import "SDLSpeakResponse.h" +#import "SDLSubscribeButtonResponse.h" +#import "SDLSubscribeVehicleDataResponse.h" +#import "SDLSyncPDataResponse.h" +#import "SDLUnregisterAppInterfaceResponse.h" +#import "SDLUnsubscribeButtonResponse.h" +#import "SDLUnsubscribeVehicleDataResponse.h" +#import "SDLUpdateTurnListResponse.h" + +// Notifications +#import "SDLOnAppInterfaceUnregistered.h" +#import "SDLOnAudioPassThru.h" +#import "SDLOnButtonEvent.h" +#import "SDLOnButtonPress.h" +#import "SDLOnCommand.h" +#import "SDLOnDriverDistraction.h" +#import "SDLOnEncodedSyncPData.h" +#import "SDLOnHMIStatus.h" +#import "SDLOnHashChange.h" +#import "SDLOnKeyboardInput.h" +#import "SDLOnLanguageChange.h" +#import "SDLOnLockScreenStatus.h" +#import "SDLOnPermissionsChange.h" +#import "SDLOnSyncPData.h" +#import "SDLOnSystemRequest.h" +#import "SDLOnTBTClientState.h" +#import "SDLOnTouchEvent.h" +#import "SDLOnVehicleData.h" + +// Structs +#import "SDLAirbagStatus.h" +#import "SDLAudioPassThruCapabilities.h" +#import "SDLBeltStatus.h" +#import "SDLBodyInformation.h" +#import "SDLButtonCapabilities.h" +#import "SDLChoice.h" +#import "SDLClusterModeStatus.h" +#import "SDLDIDResult.h" +#import "SDLDeviceInfo.h" +#import "SDLDeviceStatus.h" +#import "SDLDisplayCapabilities.h" +#import "SDLECallInfo.h" +#import "SDLEmergencyEvent.h" +#import "SDLGPSData.h" +#import "SDLHMICapabilities.h" +#import "SDLHMIPermissions.h" +#import "SDLHeadLampStatus.h" +#import "SDLImage.h" +#import "SDLImageField.h" +#import "SDLImageResolution.h" +#import "SDLKeyboardProperties.h" +#import "SDLMenuParams.h" +#import "SDLMyKey.h" +#import "SDLParameterPermissions.h" +#import "SDLPermissionItem.h" +#import "SDLPresetBankCapabilities.h" +#import "SDLScreenParams.h" +#import "SDLSingleTireStatus.h" +#import "SDLSoftButton.h" +#import "SDLSoftButtonCapabilities.h" +#import "SDLStartTime.h" +#import "SDLSyncMsgVersion.h" +#import "SDLTTSChunk.h" +#import "SDLTextField.h" +#import "SDLTireStatus.h" +#import "SDLTouchCoord.h" +#import "SDLTouchEvent.h" +#import "SDLTouchEventCapabilities.h" +#import "SDLTurn.h" +#import "SDLVRHelpItem.h" +#import "SDLVehicleDataResult.h" +#import "SDLVehicleType.h" + +// Enums +#import "SDLAmbientLightStatus.h" +#import "SDLAppHMIType.h" +#import "SDLAppInterfaceUnregisteredReason.h" +#import "SDLAudioStreamingState.h" +#import "SDLAudioType.h" +#import "SDLBitsPerSample.h" +#import "SDLButtonEventMode.h" +#import "SDLButtonName.h" +#import "SDLButtonPressMode.h" +#import "SDLCarModeStatus.h" +#import "SDLCharacterSet.h" +#import "SDLCompassDirection.h" +#import "SDLComponentVolumeStatus.h" +#import "SDLDeviceLevelStatus.h" +#import "SDLDimension.h" +#import "SDLDisplayType.h" +#import "SDLDriverDistractionState.h" +#import "SDLECallConfirmationStatus.h" +#import "SDLEmergencyEventType.h" +#import "SDLFileType.h" +#import "SDLFuelCutoffStatus.h" +#import "SDLGlobalProperty.h" +#import "SDLHMILevel.h" +#import "SDLHMIZoneCapabilities.h" +#import "SDLIgnitionStableStatus.h" +#import "SDLIgnitionStatus.h" +#import "SDLImageFieldName.h" +#import "SDLImageType.h" +#import "SDLInteractionMode.h" +#import "SDLKeyboardEvent.h" +#import "SDLKeyboardLayout.h" +#import "SDLKeypressMode.h" +#import "SDLLanguage.h" +#import "SDLLayoutMode.h" +#import "SDLLockScreenStatus.h" +#import "SDLMaintenanceModeStatus.h" +#import "SDLMediaClockFormat.h" +#import "SDLPRNDL.h" +#import "SDLPermissionStatus.h" +#import "SDLPowerModeQualificationStatus.h" +#import "SDLPowerModeStatus.h" +#import "SDLPredefinedLayout.h" +#import "SDLPrerecordedSpeech.h" +#import "SDLPrimaryAudioSource.h" +#import "SDLRPCMessageType.h" +#import "SDLRequestType.h" +#import "SDLResult.h" +#import "SDLSamplingRate.h" +#import "SDLSoftButtonType.h" +#import "SDLSpeechCapabilities.h" +#import "SDLSystemAction.h" +#import "SDLSystemContext.h" +#import "SDLTBTState.h" +#import "SDLTextAlignment.h" +#import "SDLTextFieldName.h" +#import "SDLTimerMode.h" +#import "SDLTouchType.h" +#import "SDLTriggerSource.h" +#import "SDLUpdateMode.h" +#import "SDLVRCapabilities.h" +#import "SDLVehicleDataActiveStatus.h" +#import "SDLVehicleDataEventStatus.h" +#import "SDLVehicleDataNotificationStatus.h" +#import "SDLVehicleDataResultCode.h" +#import "SDLVehicleDataStatus.h" +#import "SDLVehicleDataType.h" +#import "SDLWarningLightStatus.h" +#import "SDLWiperStatus.h" diff --git a/SmartDeviceLinkTests/Info.plist b/SmartDeviceLinkTests/Info.plist new file mode 100644 index 000000000..ba72822e8 --- /dev/null +++ b/SmartDeviceLinkTests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLProtocolHeaderSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLProtocolHeaderSpec.m new file mode 100644 index 000000000..573003bc8 --- /dev/null +++ b/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLProtocolHeaderSpec.m @@ -0,0 +1,29 @@ +// +// SDLProtocolHeaderSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import + +#import "SDLProtocolHeader.h" +#import "SDLV1ProtocolHeader.h" +#import "SDLV2ProtocolHeader.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLProtocolHeaderSpec) + +describe(@"HeaderForVersion Tests", ^ { + it(@"Should return the correct header", ^ { + expect([SDLProtocolHeader headerForVersion:1]).to(beAKindOf(SDLV1ProtocolHeader.class)); + expect([SDLProtocolHeader headerForVersion:2]).to(beAKindOf(SDLV2ProtocolHeader.class)); + }); + + it(@"Should return latest version for unknown version", ^ { + expect([SDLProtocolHeader headerForVersion:5]).to(raiseException().named(NSInvalidArgumentException)); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV1ProtocolHeaderSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV1ProtocolHeaderSpec.m new file mode 100644 index 000000000..ae17425ab --- /dev/null +++ b/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV1ProtocolHeaderSpec.m @@ -0,0 +1,89 @@ +// +// SDLV1ProtocolHeaderSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import + +#import "SDLV1ProtocolHeader.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLV1ProtocolHeaderSpec) + +__block SDLV1ProtocolHeader* testHeader; +__block NSData* testData; + +beforeSuite(^ { + //Set up test header + testHeader = [[SDLV1ProtocolHeader alloc] init]; + + testHeader.compressed = YES; + testHeader.frameType = SDLFrameType_Control; + testHeader.serviceType = SDLServiceType_RPC; + testHeader.frameData = SDLFrameData_StartSession; + testHeader.sessionID = 0x53; + testHeader.bytesInPayload = 0x1234; + + const char testBytes[8] = {0x18 | (SDLFrameType_Control & 0xFF), SDLServiceType_RPC, SDLFrameData_StartSession, 0x53, 0x00, 0x00, 0x12, 0x34}; + testData = [NSData dataWithBytes:testBytes length:8]; +}); + +describe(@"Getter/Setter Tests", ^ { + it(@"Should get readonly values correctly", ^ { + expect(@(testHeader.version)).to(equal(@1)); + expect(@(testHeader.size)).to(equal(@8)); + }); + + it(@"Should set and get correctly", ^ { + expect(@(testHeader.compressed)).to(equal(@YES)); + expect(@(testHeader.frameType)).to(equal(@(SDLFrameType_Control))); + expect(@(testHeader.serviceType)).to(equal(@(SDLServiceType_RPC))); + expect(@(testHeader.frameData)).to(equal(@(SDLFrameData_StartSession))); + expect(@(testHeader.sessionID)).to(equal(@0x53)); + expect(@(testHeader.bytesInPayload)).to(equal(@0x1234)); + }); +}); + +describe(@"Copy Tests", ^ { + it(@"Should copy correctly", ^ { + SDLV1ProtocolHeader* headerCopy = [testHeader copy]; + + expect(@(headerCopy.version)).to(equal(@1)); + expect(@(headerCopy.size)).to(equal(@8)); + + expect(@(headerCopy.compressed)).to(equal(@YES)); + expect(@(headerCopy.frameType)).to(equal(@(SDLFrameType_Control))); + expect(@(headerCopy.serviceType)).to(equal(@(SDLServiceType_RPC))); + expect(@(headerCopy.frameData)).to(equal(@(SDLFrameData_StartSession))); + expect(@(headerCopy.sessionID)).to(equal(@0x53)); + expect(@(headerCopy.bytesInPayload)).to(equal(@0x1234)); + + expect(headerCopy).toNot(beIdenticalTo(testHeader)); + }); +}); + +describe(@"Data Tests", ^ { + it (@"Should convert to byte data correctly", ^ { + expect(testHeader.data).to(equal(testData)); + }); +}); + +describe(@"RPCPayloadWithData Test", ^ { + it (@"Should convert from byte data correctly", ^ { + SDLV1ProtocolHeader* constructedHeader = [[SDLV1ProtocolHeader alloc] init]; + + [constructedHeader parse:testData]; + + expect(@(constructedHeader.compressed)).to(equal(@YES)); + expect(@(constructedHeader.frameType)).to(equal(@(SDLFrameType_Control))); + expect(@(constructedHeader.serviceType)).to(equal(@(SDLServiceType_RPC))); + expect(@(constructedHeader.frameData)).to(equal(@(SDLFrameData_StartSession))); + expect(@(constructedHeader.sessionID)).to(equal(@0x53)); + expect(@(constructedHeader.bytesInPayload)).to(equal(@0x1234)); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV2ProtocolHeaderSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV2ProtocolHeaderSpec.m new file mode 100644 index 000000000..1530b8cba --- /dev/null +++ b/SmartDeviceLinkTests/ProtocolSpecs/HeaderSpecs/SDLV2ProtocolHeaderSpec.m @@ -0,0 +1,93 @@ +// +// SDLV2ProtocolHeaderSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import + +#import "SDLV2ProtocolHeader.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLV2ProtocolHeaderSpec) + +__block SDLV2ProtocolHeader* testHeader; +__block NSData* testData; + +beforeSuite(^ { + //Set up test header + testHeader = [[SDLV2ProtocolHeader alloc] init]; + + testHeader.compressed = YES; + testHeader.frameType = SDLFrameType_Control; + testHeader.serviceType = SDLServiceType_RPC; + testHeader.frameData = SDLFrameData_StartSession; + testHeader.sessionID = 0x53; + testHeader.bytesInPayload = 0x1234; + testHeader.messageID = 0x6DAB424F; + + const char testBytes[12] = {0x28 | (SDLFrameType_Control & 0xFF), SDLServiceType_RPC, SDLFrameData_StartSession, 0x53, 0x00, 0x00, 0x12, 0x34, 0x6D, 0xAB, 0x42, 0x4F}; + testData = [NSData dataWithBytes:testBytes length:12]; +}); + +describe(@"Getter/Setter Tests", ^ { + it(@"Should get readonly values correctly", ^ { + expect(@(testHeader.version)).to(equal(@2)); + expect(@(testHeader.size)).to(equal(@12)); + }); + + it(@"Should set and get correctly", ^ { + expect(@(testHeader.compressed)).to(equal(@YES)); + expect(@(testHeader.frameType)).to(equal(@(SDLFrameType_Control))); + expect(@(testHeader.serviceType)).to(equal(@(SDLServiceType_RPC))); + expect(@(testHeader.frameData)).to(equal(@(SDLFrameData_StartSession))); + expect(@(testHeader.sessionID)).to(equal(@0x53)); + expect(@(testHeader.bytesInPayload)).to(equal(@0x1234)); + expect(@(testHeader.messageID)).to(equal(@0x6DAB424F)); + }); +}); + +describe(@"Copy Tests", ^ { + it(@"Should copy correctly", ^ { + SDLV2ProtocolHeader* headerCopy = [testHeader copy]; + + expect(@(headerCopy.version)).to(equal(@2)); + expect(@(headerCopy.size)).to(equal(@12)); + + expect(@(headerCopy.compressed)).to(equal(@YES)); + expect(@(headerCopy.frameType)).to(equal(@(SDLFrameType_Control))); + expect(@(headerCopy.serviceType)).to(equal(@(SDLServiceType_RPC))); + expect(@(headerCopy.frameData)).to(equal(@(SDLFrameData_StartSession))); + expect(@(headerCopy.sessionID)).to(equal(@0x53)); + expect(@(headerCopy.bytesInPayload)).to(equal(@0x1234)); + expect(@(testHeader.messageID)).to(equal(@0x6DAB424F)); + + expect(headerCopy).toNot(beIdenticalTo(testHeader)); + }); +}); + +describe(@"Data Tests", ^ { + it (@"Should convert to byte data correctly", ^ { + expect(testHeader.data).to(equal(testData)); + }); +}); + +describe(@"RPCPayloadWithData Test", ^ { + it (@"Should convert from byte data correctly", ^ { + SDLV2ProtocolHeader* constructedHeader = [[SDLV2ProtocolHeader alloc] init]; + + [constructedHeader parse:testData]; + + expect(@(constructedHeader.compressed)).to(equal(@YES)); + expect(@(constructedHeader.frameType)).to(equal(@(SDLFrameType_Control))); + expect(@(constructedHeader.serviceType)).to(equal(@(SDLServiceType_RPC))); + expect(@(constructedHeader.frameData)).to(equal(@(SDLFrameData_StartSession))); + expect(@(constructedHeader.sessionID)).to(equal(@0x53)); + expect(@(constructedHeader.bytesInPayload)).to(equal(@0x1234)); + expect(@(testHeader.messageID)).to(equal(@0x6DAB424F)); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolMessageSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolMessageSpec.m new file mode 100644 index 000000000..12b634218 --- /dev/null +++ b/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolMessageSpec.m @@ -0,0 +1,72 @@ +// +// SDLProtocolMessageSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import +#import + +#import "SDLProtocolHeader.h" +#import "SDLProtocolMessage.h" +#import "SDLV1ProtocolHeader.h" +#import "SDLV1ProtocolMessage.h" +#import "SDLV2ProtocolHeader.h" +#import "SDLV2ProtocolMessage.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLProtocolMessageSpec) + +describe(@"MessageWithHeader Tests", ^ { + it(@"Should return an appropriate object", ^ { + NSData* testPayload = [NSData dataWithBytes:"Test Data" length:strlen("Test Data")]; + SDLV1ProtocolHeader* testHeaderV1 = [[SDLV1ProtocolHeader alloc] init]; + SDLProtocolMessage* testMessageV1 = [SDLProtocolMessage messageWithHeader:testHeaderV1 andPayload:testPayload]; + + expect(testMessageV1).to(beAKindOf(SDLV1ProtocolMessage.class)); + expect(testMessageV1.header).to(equal(testHeaderV1)); + expect(testMessageV1.payload).to(equal(testPayload)); + + SDLV2ProtocolHeader* testHeaderV2 = [[SDLV2ProtocolHeader alloc] init]; + SDLProtocolMessage* testMessageV2 = [SDLProtocolMessage messageWithHeader:testHeaderV2 andPayload:testPayload]; + + expect(testMessageV2).to(beAKindOf(SDLV2ProtocolMessage.class)); + expect(testMessageV2.header).to(equal(testHeaderV2)); + expect(testMessageV2.payload).to(equal(testPayload)); + }); +}); + +describe(@"DetermineVersion Tests", ^ { + it(@"Should return the correct version", ^ { + const char bytesV1[8] = {0x10 | SDLFrameType_First, SDLServiceType_BulkData, SDLFrameData_StartSessionACK, 0x5E, 0x00, 0x00, 0x00, 0x00}; + NSData* messageV1 = [NSData dataWithBytes:bytesV1 length:8]; + expect(@([SDLProtocolMessage determineVersion:messageV1])).to(equal(@1)); + + const char bytesV2[12] = {0x20 | SDLFrameType_First, SDLServiceType_BulkData, SDLFrameData_StartSessionACK, 0x5E, 0x00, 0x00, 0x00, 0x00, 0x44, 0x44, 0x44, 0x44}; + NSData* messageV2 = [NSData dataWithBytes:bytesV2 length:12]; + expect(@([SDLProtocolMessage determineVersion:messageV2])).to(equal(@2)); + }); +}); + +describe(@"Data tests", ^ { + it(@"Should return the correct data", ^ { + SDLProtocolMessage* testMessage = [[SDLProtocolMessage alloc] init]; + + SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; + + id headerMock = OCMPartialMock(testHeader); + const char headerData[12] = {0x20 | SDLFrameType_First, SDLServiceType_BulkData, SDLFrameData_StartSessionACK, 0x5E, 0x0E, 0x00, 0x00, strlen("Test Data"), 0x65, 0x22, 0x41, 0x38}; + [[[headerMock stub] andReturn:[NSData dataWithBytes:headerData length:12]] data]; + + testMessage.header = testHeader; + testMessage.payload = [NSData dataWithBytes:"Test Data" length:strlen("Test Data")]; + + NSMutableData* testData = [NSMutableData dataWithBytes:headerData length:12]; + [testData appendBytes:"Test Data" length:strlen("Test Data")]; + expect(testMessage.data).to(equal([testData copy])); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m new file mode 100644 index 000000000..373575a4d --- /dev/null +++ b/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m @@ -0,0 +1,511 @@ +// +// SDLProtocolSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import +#import + +#import "SDLAbstractTransport.h" +#import "SDLProtocolHeader.h" +#import "SDLProtocol.h" +#import "SDLProtocolMessage.h" +#import "SDLProtocolReceivedMessageRouter.h" +#import "SDLRPCRequest.h" +#import "SDLNames.h" +#import "SDLV1ProtocolMessage.h" +#import "SDLV2ProtocolMessage.h" +#import "SDLV1ProtocolHeader.h" +#import "SDLV2ProtocolHeader.h" + + +QuickSpecBegin(SDLProtocolSpec) + +//Test dictionaries +NSDictionary* dictionaryV1 = @{NAMES_request: + @{NAMES_operation_name:@"DeleteCommand", + NAMES_correlationID:@0x98765, + NAMES_parameters: + @{NAMES_cmdID:@55}}}; +NSDictionary* dictionaryV2 = @{NAMES_cmdID:@55}; + +describe(@"SendStartSession Tests", ^ { + it(@"Should send the correct data", ^ { + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + + __block BOOL verified = NO; + id transportMock = OCMClassMock([SDLAbstractTransport class]); + [[[transportMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + + //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 + __unsafe_unretained NSData* data; + [invocation getArgument:&data atIndex:2]; + NSData* dataSent = [data copy]; + + const char testHeader[8] = {0x10 | SDLFrameType_Control, SDLServiceType_BulkData, SDLFrameData_StartSession, 0x00, 0x00, 0x00, 0x00, 0x00}; + expect(dataSent).to(equal([NSData dataWithBytes:testHeader length:8])); + }] sendData:[OCMArg any]]; + testProtocol.transport = transportMock; + + [testProtocol sendStartSessionWithType:SDLServiceType_BulkData]; + + expect(@(verified)).toEventually(beTruthy()); + }); +}); + +describe(@"SendEndSession Tests", ^ { + context(@"During V1 session", ^ { + it(@"Should send the correct data", ^ { + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0x03 version:0x01]; + + __block BOOL verified = NO; + id transportMock = OCMClassMock([SDLAbstractTransport class]); + [[[transportMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + + //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 + __unsafe_unretained NSData* data; + [invocation getArgument:&data atIndex:2]; + NSData* dataSent = [data copy]; + + const char testHeader[8] = {0x10 | SDLFrameType_Control, SDLServiceType_RPC, SDLFrameData_EndSession, 0x03, 0x00, 0x00, 0x00, 0x00}; + expect(dataSent).to(equal([NSData dataWithBytes:testHeader length:8])); + }] sendData:[OCMArg any]]; + testProtocol.transport = transportMock; + + [testProtocol sendEndSessionWithType:SDLServiceType_RPC]; + + expect(@(verified)).toEventually(beTruthy()); + }); + }); + + context(@"During V2 session", ^ { + it(@"Should send the correct data", ^ { + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0x61 version:0x02]; + + __block BOOL verified = NO; + id transportMock = OCMClassMock([SDLAbstractTransport class]); + [[[transportMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + + //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 + __unsafe_unretained NSData* data; + [invocation getArgument:&data atIndex:2]; + NSData* dataSent = [data copy]; + + const char testHeader[12] = {0x20 | SDLFrameType_Control, SDLServiceType_RPC, SDLFrameData_EndSession, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; + expect(dataSent).to(equal([NSData dataWithBytes:testHeader length:12])); + }] sendData:[OCMArg any]]; + testProtocol.transport = transportMock; + + [testProtocol sendEndSessionWithType:SDLServiceType_RPC]; + + expect(@(verified)).toEventually(beTruthy()); + }); + }); +}); + +describe(@"SendRPCRequest Tests", ^ { + __block id mockRequest; + beforeEach(^ { + mockRequest = OCMPartialMock([[SDLRPCRequest alloc] init]); + }); + + context(@"During V1 session", ^ { + it(@"Should send the correct data", ^ { + [[[[mockRequest stub] andReturn:dictionaryV1] ignoringNonObjectArgs] serializeAsDictionary:1]; + + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0xFF version:0x01]; + + __block BOOL verified = NO; + id transportMock = OCMClassMock([SDLAbstractTransport class]); + [[[transportMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + + //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 + __unsafe_unretained NSData* data; + [invocation getArgument:&data atIndex:2]; + NSData* dataSent = [data copy]; + + NSData* jsonTestData = [NSJSONSerialization dataWithJSONObject:dictionaryV1 options:0 error:0]; + NSUInteger dataLength = jsonTestData.length; + + const char testHeader[8] = {0x10 | SDLFrameType_Single, SDLServiceType_RPC, SDLFrameData_SingleFrame, 0xFF, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; + NSMutableData* testData = [NSMutableData dataWithBytes:testHeader length:8]; + [testData appendData:jsonTestData]; + + expect(dataSent).to(equal([testData copy])); + }] sendData:[OCMArg any]]; + testProtocol.transport = transportMock; + + [testProtocol sendRPC:mockRequest]; + + expect(@(verified)).toEventually(beTruthy()); + }); + }); + + context(@"During V2 session", ^ { + it(@"Should send the correct data bulk data when bulk data is available", ^ { + [[[[mockRequest stub] andReturn:dictionaryV2] ignoringNonObjectArgs] serializeAsDictionary:2]; + [[[mockRequest stub] andReturn:@0x98765] correlationID]; + [[[mockRequest stub] andReturn:@"DeleteCommand"] getFunctionName]; + [[[mockRequest stub] andReturn:[NSData dataWithBytes:"COMMAND" length:strlen("COMMAND")]] bulkData]; + + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0x01 version:0x02]; + + __block BOOL verified = NO; + id transportMock = OCMClassMock([SDLAbstractTransport class]); + [[[transportMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + + //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 + __unsafe_unretained NSData* data; + [invocation getArgument:&data atIndex:2]; + NSData* dataSent = [data copy]; + + NSData* jsonTestData = [NSJSONSerialization dataWithJSONObject:dictionaryV2 options:0 error:0]; + NSUInteger dataLength = jsonTestData.length; + + const char testPayloadHeader[12] = {0x00, 0x00, 0x00, 0x06, 0x00, 0x09, 0x87, 0x65, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; + + NSMutableData* payloadData = [NSMutableData dataWithBytes:testPayloadHeader length:12]; + [payloadData appendData:jsonTestData]; + [payloadData appendBytes:"COMMAND" length:strlen("COMMAND")]; + + const char testHeader[12] = {0x20 | SDLFrameType_Single, SDLServiceType_BulkData, SDLFrameData_SingleFrame, 0x01, (payloadData.length >> 24) & 0xFF, (payloadData.length >> 16) & 0xFF,(payloadData.length >> 8) & 0xFF, payloadData.length & 0xFF, 0x00, 0x00, 0x00, 0x01}; + + NSMutableData* testData = [NSMutableData dataWithBytes:testHeader length:12]; + [testData appendData:payloadData]; + + expect(dataSent).to(equal([testData copy])); + }] sendData:[OCMArg any]]; + testProtocol.transport = transportMock; + + [testProtocol sendRPC:mockRequest]; + + expect(@(verified)).toEventually(beTruthy()); + }); + }); +}); + +describe(@"HandleBytesFromTransport Tests", ^ { + context(@"During V1 session", ^ { + it(@"Should parse the data correctly", ^ { + id routerMock = OCMClassMock(SDLProtocolReceivedMessageRouter.class); + + //Override initialization methods so that our protocol will use our object instead + [[[routerMock stub] andReturn:routerMock] alloc]; + (void)[[[routerMock stub] andReturn:routerMock] init]; + + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0x43 version:0x01]; + + NSData* jsonTestData = [NSJSONSerialization dataWithJSONObject:dictionaryV1 options:0 error:0]; + NSUInteger dataLength = jsonTestData.length; + + __block BOOL verified = NO; + [[[routerMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + + //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 + __unsafe_unretained SDLV1ProtocolMessage* message; + [invocation getArgument:&message atIndex:2]; + + SDLV1ProtocolMessage* messageReceived = message; + + expect(messageReceived.payload).to(equal(jsonTestData)); + expect(@(messageReceived.header.version)).to(equal(@1)); + expect(@(messageReceived.header.compressed)).to(equal(@NO)); + expect(@(messageReceived.header.frameType)).to(equal(@(SDLFrameType_Single))); + expect(@(messageReceived.header.sessionID)).to(equal(@0xFF)); + expect(@(messageReceived.header.serviceType)).to(equal(@(SDLServiceType_RPC))); + expect(@(messageReceived.header.frameData)).to(equal(@(SDLFrameData_SingleFrame))); + expect(@(messageReceived.header.bytesInPayload)).to(equal(@(dataLength))); + }] handleReceivedMessage:[OCMArg any]]; + + const char testHeader[8] = {0x10 | SDLFrameType_Single, SDLServiceType_RPC, SDLFrameData_SingleFrame, 0xFF, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; + NSMutableData* testData = [NSMutableData dataWithBytes:testHeader length:8]; + [testData appendData:jsonTestData]; + + [testProtocol handleBytesFromTransport:testData]; + + expect(@(verified)).toEventually(beTruthy()); + }); + }); + + context(@"During V2 session", ^ { + it(@"Should parse the data correctly", ^ { + id routerMock = OCMClassMock(SDLProtocolReceivedMessageRouter.class); + + //Override initialization methods so that our protocol will use our object instead + [[[routerMock stub] andReturn:routerMock] alloc]; + (void)[[[routerMock stub] andReturn:routerMock] init]; + + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0xF5 version:0x02]; + + NSData* jsonTestData = [NSJSONSerialization dataWithJSONObject:dictionaryV2 options:0 error:0]; + NSUInteger dataLength = jsonTestData.length; + + const char testPayloadHeader[12] = {0x00, 0x00, 0x00, 0x06, 0x00, 0x09, 0x87, 0x65, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; + + NSMutableData* payloadData = [NSMutableData dataWithBytes:testPayloadHeader length:12]; + [payloadData appendData:jsonTestData]; + [payloadData appendBytes:"COMMAND" length:strlen("COMMAND")]; + + __block BOOL verified = NO; + [[[routerMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + + //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 + __unsafe_unretained SDLV2ProtocolMessage* message; + [invocation getArgument:&message atIndex:2]; + + SDLV2ProtocolMessage* messageReceived = message; + + expect(messageReceived.payload).to(equal(payloadData)); + expect(@(messageReceived.header.version)).to(equal(@2)); + expect(@(messageReceived.header.compressed)).to(equal(@NO)); + expect(@(messageReceived.header.frameType)).to(equal(@(SDLFrameType_Single))); + expect(@(messageReceived.header.sessionID)).to(equal(@0x01)); + expect(@(messageReceived.header.serviceType)).to(equal(@(SDLServiceType_RPC))); + expect(@(messageReceived.header.frameData)).to(equal(@(SDLFrameData_SingleFrame))); + expect(@(messageReceived.header.bytesInPayload)).to(equal(@(payloadData.length))); + expect(@(((SDLV2ProtocolHeader*)messageReceived.header).messageID)).to(equal(@1)); + + }] handleReceivedMessage:[OCMArg any]]; + testProtocol.transport = routerMock; + + const char testHeader[12] = {0x20 | SDLFrameType_Single, SDLServiceType_RPC, SDLFrameData_SingleFrame, 0x01, (payloadData.length >> 24) & 0xFF, (payloadData.length >> 16) & 0xFF, + (payloadData.length >> 8) & 0xFF, payloadData.length & 0xFF, 0x00, 0x00, 0x00, 0x01}; + + NSMutableData* testData = [NSMutableData dataWithBytes:testHeader length:12]; + [testData appendData:payloadData]; + + [testProtocol handleBytesFromTransport:testData]; + + expect(@(verified)).toEventually(beTruthy()); + }); + }); +}); + +describe(@"SendHeartbeat Tests", ^ { + context(@"During V1 session", ^ { + it(@"Should send the correct data", ^ { + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0x43 version:0x01]; + + __block BOOL verified = NO; + id transportMock = OCMClassMock([SDLAbstractTransport class]); + [[[transportMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + + //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 + __unsafe_unretained NSData* data; + [invocation getArgument:&data atIndex:2]; + NSData* dataSent = [data copy]; + + const char testHeader[8] = {0x10 | SDLFrameType_Control, 0x00, SDLFrameData_Heartbeat, 0x43, 0x00, 0x00, 0x00, 0x00}; + expect(dataSent).to(equal([NSData dataWithBytes:testHeader length:8])); + }] sendData:[OCMArg any]]; + testProtocol.transport = transportMock; + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + [testProtocol sendHeartbeat]; +#pragma clang diagnostic pop + + expect(@(verified)).toEventually(beTruthy()); + }); + }); + + context(@"During V2 session", ^ { + it(@"Should send the correct data", ^ { + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + [testProtocol handleProtocolStartSessionACK:SDLServiceType_RPC sessionID:0xF5 version:0x02]; + + __block BOOL verified = NO; + id transportMock = OCMClassMock([SDLAbstractTransport class]); + [[[transportMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + + //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 + __unsafe_unretained NSData* data; + [invocation getArgument:&data atIndex:2]; + NSData* dataSent = [data copy]; + + const char testHeader[12] = {0x20 | SDLFrameType_Control, 0x00, SDLFrameData_Heartbeat, 0xF5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; + expect(dataSent).to(equal([NSData dataWithBytes:testHeader length:12])); + }] sendData:[OCMArg any]]; + testProtocol.transport = transportMock; + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + [testProtocol sendHeartbeat]; +#pragma clang diagnostic pop + + expect(@(verified)).toEventually(beTruthy()); + }); + }); +}); + +describe(@"HandleProtocolSessionStarted Tests", ^ { + it(@"Should pass information along to delegate", ^ { + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + + id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); + + __block BOOL verified = NO; + [[[[delegateMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + Byte serviceType; + Byte sessionID; + Byte version; + + [invocation getArgument:&serviceType atIndex:2]; + [invocation getArgument:&sessionID atIndex:3]; + [invocation getArgument:&version atIndex:4]; + + expect(@(serviceType)).to(equal(@(SDLServiceType_BulkData))); + expect(@(sessionID)).to(equal(@0x44)); + expect(@(version)).to(equal(@0x03)); + }] ignoringNonObjectArgs] handleProtocolStartSessionACK:0 sessionID:0 version:0]; + + [testProtocol.protocolDelegateTable addObject:delegateMock]; + + [testProtocol handleProtocolStartSessionACK:SDLServiceType_BulkData sessionID:0x44 version:0x03]; + + expect(@(verified)).to(beTruthy()); + }); +}); + +describe(@"HandleHeartbeatForSession Tests", ^{ + // TODO: Test automatically sending data to head unit (dependency injection?) + it(@"Should pass information along to delegate", ^ { + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + + id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); + + __block BOOL verified = NO; + [[[[delegateMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + Byte sessionID; + + [invocation getArgument:&sessionID atIndex:2]; + + expect(@(sessionID)).to(equal(@0x44)); + }] ignoringNonObjectArgs] handleHeartbeatForSession:0]; + + [testProtocol.protocolDelegateTable addObject:delegateMock]; + + [testProtocol handleHeartbeatForSession:0x44]; + + expect(@(verified)).to(beTruthy()); + }); +}); + +describe(@"OnProtocolMessageReceived Tests", ^ { + it(@"Should pass information along to delegate", ^ { + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + + SDLProtocolMessage* testMessage = [[SDLProtocolMessage alloc] init]; + + id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); + + __block BOOL verified = NO; + [[[[delegateMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + + //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 + __unsafe_unretained SDLProtocolMessage* message; + + [invocation getArgument:&message atIndex:2]; + + expect(message).to(beIdenticalTo(testMessage)); + }] ignoringNonObjectArgs] onProtocolMessageReceived:[OCMArg any]]; + + [testProtocol.protocolDelegateTable addObject:delegateMock]; + + [testProtocol onProtocolMessageReceived:testMessage]; + + expect(@(verified)).toEventually(beTruthy()); + }); +}); + +describe(@"OnProtocolOpened Tests", ^ { + it(@"Should pass information along to delegate", ^ { + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + + id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); + + __block BOOL verified = NO; + [[[delegateMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + }] onProtocolOpened]; + + [testProtocol.protocolDelegateTable addObject:delegateMock]; + + [testProtocol onProtocolOpened]; + + expect(@(verified)).toEventually(beTruthy()); + }); +}); + +describe(@"OnProtocolClosed Tests", ^ { + it(@"Should pass information along to delegate", ^ { + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + + id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); + + __block BOOL verified = NO; + [[[delegateMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + }] onProtocolClosed]; + + [testProtocol.protocolDelegateTable addObject:delegateMock]; + + [testProtocol onProtocolClosed]; + + expect(@(verified)).toEventually(beTruthy()); + }); +}); + +describe(@"OnError Tests", ^ { + it(@"Should pass information along to delegate", ^ { + SDLProtocol* testProtocol = [[SDLProtocol alloc] init]; + + NSException* testException = [[NSException alloc] initWithName:@"Name" reason:@"No Reason" userInfo:@{}]; + + id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); + + __block BOOL verified = NO; + [[[delegateMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 + __unsafe_unretained NSString* message; + __unsafe_unretained NSException* exception; + + [invocation getArgument:&message atIndex:2]; + [invocation getArgument:&exception atIndex:3]; + + expect(message).to(equal(@"Nothing actually happened")); + expect(exception).to(equal(testException)); + }] onError:[OCMArg any] exception:[OCMArg any]]; + + [testProtocol.protocolDelegateTable addObject:delegateMock]; + + [testProtocol onError:@"Nothing actually happened" exception:testException]; + + expect(@(verified)).toEventually(beTruthy()); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV1ProtocolMessageSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV1ProtocolMessageSpec.m new file mode 100644 index 000000000..0a40b94f3 --- /dev/null +++ b/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV1ProtocolMessageSpec.m @@ -0,0 +1,32 @@ +// +// SDLV1ProtocolMessageSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import +#import + +#import "SDLV1ProtocolMessage.h" +#import "SDLV1ProtocolHeader.h" + + +QuickSpecBegin(SDLV1ProtocolMessageSpec) + +describe(@"RPCDictionary Tests", ^ { + it(@"Should return the correct dictionary", ^ { + SDLV1ProtocolHeader* testHeader = [[SDLV1ProtocolHeader alloc] init]; + NSDictionary* testDictionary = @{@"Oyster": @"Soup", + @"Soup": @"Kitchen", + @"Kitchen": @"Floor", + @"Floor": @"Wax", + @"Wax": @"Museum"}; + SDLV1ProtocolMessage* testMessage = [[SDLV1ProtocolMessage alloc] initWithHeader:testHeader andPayload:[NSJSONSerialization dataWithJSONObject:testDictionary options:0 error:0]]; + + expect([testMessage rpcDictionary]).to(equal(testDictionary)); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV2ProtocolMessageSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV2ProtocolMessageSpec.m new file mode 100644 index 000000000..84a053004 --- /dev/null +++ b/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV2ProtocolMessageSpec.m @@ -0,0 +1,57 @@ +// +// SDLV2ProtocolMessageSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import +#import + +#import "SDLV2ProtocolMessage.h" +#import "SDLV2ProtocolHeader.h" +#import "SDLRPCPayload.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLV2ProtocolMessageSpec) + +describe(@"RPCDictionary Tests", ^ { + it(@"Should return the correct dictionary", ^ { + SDLServiceType serviceType = SDLServiceType_RPC; + + SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; + id headerMock = OCMPartialMock(testHeader); + [[[headerMock stub] andReturnValue:[NSValue value:&serviceType withObjCType:@encode(SDLServiceType)]] serviceType]; + + NSDictionary* dictionary = @{@"A": @1, + @"B": @2, + @"C": @3, + @"D": @4, + @"E": @5}; + UInt32 correlationID = 99; + UInt32 functionID = 26; + Byte rpcType = 0; + + SDLRPCPayload* testPayload = [[SDLRPCPayload alloc] init]; + id payloadMock = OCMPartialMock(testPayload); + [[[payloadMock stub] andReturn:[NSJSONSerialization dataWithJSONObject:dictionary options:0 error:0]] jsonData]; + [[[payloadMock stub] andReturnValue:[NSValue value:&correlationID withObjCType:@encode(UInt32)]] correlationID]; + [[[payloadMock stub] andReturnValue:[NSValue value:&functionID withObjCType:@encode(UInt32)]] functionID]; + [[[payloadMock stub] andReturnValue:[NSValue value:&rpcType withObjCType:@encode(Byte)]] rpcType]; + [[[payloadMock stub] andReturn:[NSData dataWithBytes:"Database" length:strlen("Database")]] binaryData]; + + id payloadClassMock = OCMClassMock(SDLRPCPayload.class); + [[[payloadClassMock stub] andReturn:testPayload] rpcPayloadWithData:[OCMArg any]]; + + SDLV2ProtocolMessage* testMessage = [[SDLV2ProtocolMessage alloc] initWithHeader:testHeader andPayload:[[NSMutableData alloc] initWithCapacity:0]]; + + expect([testMessage rpcDictionary]).to(equal(@{NAMES_request: + @{NAMES_operation_name:NAMES_Slider, + NAMES_correlationID:@99, + NAMES_parameters:dictionary}, + NAMES_bulkData:[NSData dataWithBytes:"Database" length:strlen("Database")]})); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/ProtocolSpecs/SDLAbstractProtocolSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/SDLAbstractProtocolSpec.m new file mode 100644 index 000000000..c393e2f7e --- /dev/null +++ b/SmartDeviceLinkTests/ProtocolSpecs/SDLAbstractProtocolSpec.m @@ -0,0 +1,57 @@ +// +// SDLAbstractProtocolSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import +#import + +#import "SDLAbstractProtocol.h" +#import "SDLProtocolListener.h" + +QuickSpecBegin(SDLAbstractProtocolSpec) + +describe(@"OnTransportConnected Tests", ^ { + it(@"Should invoke the correct method", ^ { + id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); + + SDLAbstractProtocol* abstractProtocol = [[SDLAbstractProtocol alloc] init]; + [abstractProtocol.protocolDelegateTable addObject:delegateMock]; + + __block BOOL verified = NO; + [[[delegateMock stub] andDo:^(NSInvocation* invocation) {verified = YES;}] onProtocolOpened]; + + [abstractProtocol onTransportConnected]; + + //Verifications don't work with Nimble at this point + //OCMVerify([delegateMock onProtocolOpened]); + + //Workaround for now + expect(@(verified)).to(beTruthy()); + }); +}); + +describe(@"OnTransportDisconnected Tests", ^ { + it(@"Should invoke the correct method", ^ { + id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); + + SDLAbstractProtocol* abstractProtocol = [[SDLAbstractProtocol alloc] init]; + [abstractProtocol.protocolDelegateTable addObject:delegateMock]; + + __block BOOL verified = NO; + [[[delegateMock stub] andDo:^(NSInvocation* invocation) {verified = YES;}] onProtocolClosed]; + + [abstractProtocol onTransportDisconnected]; + + //Verifications don't work with Nimble at this point + //OCMVerify([delegateMock onProtocolClosed]); + + //Workaround for now + expect(@(verified)).to(beTruthy()); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/ProtocolSpecs/SDLFunctionIDSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/SDLFunctionIDSpec.m new file mode 100644 index 000000000..eff1ae3b2 --- /dev/null +++ b/SmartDeviceLinkTests/ProtocolSpecs/SDLFunctionIDSpec.m @@ -0,0 +1,152 @@ +// +// FunctionIDSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import + +#import "SDLFunctionID.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLFunctionIDSpec) + +SDLFunctionID* functionID = [[SDLFunctionID alloc] init]; + +describe(@"GetFunctionName Tests", ^ { + it(@"Should return the correct function name", ^ { + expect([functionID getFunctionName:1]).to(equal(NAMES_RegisterAppInterface)); + expect([functionID getFunctionName:2]).to(equal(NAMES_UnregisterAppInterface)); + expect([functionID getFunctionName:3]).to(equal(NAMES_SetGlobalProperties)); + expect([functionID getFunctionName:4]).to(equal(NAMES_ResetGlobalProperties)); + expect([functionID getFunctionName:5]).to(equal(NAMES_AddCommand)); + expect([functionID getFunctionName:6]).to(equal(NAMES_DeleteCommand)); + expect([functionID getFunctionName:7]).to(equal(NAMES_AddSubMenu)); + expect([functionID getFunctionName:8]).to(equal(NAMES_DeleteSubMenu)); + expect([functionID getFunctionName:9]).to(equal(NAMES_CreateInteractionChoiceSet)); + expect([functionID getFunctionName:10]).to(equal(NAMES_PerformInteraction)); + expect([functionID getFunctionName:11]).to(equal(NAMES_DeleteInteractionChoiceSet)); + expect([functionID getFunctionName:12]).to(equal(NAMES_Alert)); + expect([functionID getFunctionName:13]).to(equal(NAMES_Show)); + expect([functionID getFunctionName:14]).to(equal(NAMES_Speak)); + expect([functionID getFunctionName:15]).to(equal(NAMES_SetMediaClockTimer)); + expect([functionID getFunctionName:16]).to(equal(NAMES_PerformAudioPassThru)); + expect([functionID getFunctionName:17]).to(equal(NAMES_EndAudioPassThru)); + expect([functionID getFunctionName:18]).to(equal(NAMES_SubscribeButton)); + expect([functionID getFunctionName:19]).to(equal(NAMES_UnsubscribeButton)); + expect([functionID getFunctionName:20]).to(equal(NAMES_SubscribeVehicleData)); + expect([functionID getFunctionName:21]).to(equal(NAMES_UnsubscribeVehicleData)); + expect([functionID getFunctionName:22]).to(equal(NAMES_GetVehicleData)); + expect([functionID getFunctionName:23]).to(equal(NAMES_ReadDID)); + expect([functionID getFunctionName:24]).to(equal(NAMES_GetDTCs)); + expect([functionID getFunctionName:25]).to(equal(NAMES_ScrollableMessage)); + expect([functionID getFunctionName:26]).to(equal(NAMES_Slider)); + expect([functionID getFunctionName:27]).to(equal(NAMES_ShowConstantTBT)); + expect([functionID getFunctionName:28]).to(equal(NAMES_AlertManeuver)); + expect([functionID getFunctionName:29]).to(equal(NAMES_UpdateTurnList)); + expect([functionID getFunctionName:30]).to(equal(NAMES_ChangeRegistration)); + expect([functionID getFunctionName:31]).to(equal(NAMES_GenericResponse)); + expect([functionID getFunctionName:32]).to(equal(NAMES_PutFile)); + expect([functionID getFunctionName:33]).to(equal(NAMES_DeleteFile)); + expect([functionID getFunctionName:34]).to(equal(NAMES_ListFiles)); + expect([functionID getFunctionName:35]).to(equal(NAMES_SetAppIcon)); + expect([functionID getFunctionName:36]).to(equal(NAMES_SetDisplayLayout)); + expect([functionID getFunctionName:37]).to(equal(NAMES_DiagnosticMessage)); + expect([functionID getFunctionName:38]).to(equal(NAMES_SystemRequest)); + expect([functionID getFunctionName:39]).to(equal(NAMES_SendLocation)); + expect([functionID getFunctionName:40]).to(equal(NAMES_DialNumber)); + expect([functionID getFunctionName:32768]).to(equal(NAMES_OnHMIStatus)); + expect([functionID getFunctionName:32769]).to(equal(NAMES_OnAppInterfaceUnregistered)); + expect([functionID getFunctionName:32770]).to(equal(NAMES_OnButtonEvent)); + expect([functionID getFunctionName:32771]).to(equal(NAMES_OnButtonPress)); + expect([functionID getFunctionName:32772]).to(equal(NAMES_OnVehicleData)); + expect([functionID getFunctionName:32773]).to(equal(NAMES_OnCommand)); + expect([functionID getFunctionName:32774]).to(equal(NAMES_OnTBTClientState)); + expect([functionID getFunctionName:32775]).to(equal(NAMES_OnDriverDistraction)); + expect([functionID getFunctionName:32776]).to(equal(NAMES_OnPermissionsChange)); + expect([functionID getFunctionName:32777]).to(equal(NAMES_OnAudioPassThru)); + expect([functionID getFunctionName:32778]).to(equal(NAMES_OnLanguageChange)); + expect([functionID getFunctionName:32779]).to(equal(NAMES_OnKeyboardInput)); + expect([functionID getFunctionName:32780]).to(equal(NAMES_OnTouchEvent)); + expect([functionID getFunctionName:32781]).to(equal(NAMES_OnSystemRequest)); + expect([functionID getFunctionName:32782]).to(equal(NAMES_OnHashChange)); + + //Not listed in Spec + expect([functionID getFunctionName:65536]).to(equal(NAMES_EncodedSyncPData)); + expect([functionID getFunctionName:65537]).to(equal(NAMES_SyncPData)); + + expect([functionID getFunctionName:98304]).to(equal(NAMES_OnEncodedSyncPData)); + expect([functionID getFunctionName:98305]).to(equal(NAMES_OnSyncPData)); + }); +}); + +describe(@"GetFunctionID Tests", ^ { + it(@"Should return the correct function ID", ^ { + expect([functionID getFunctionID:NAMES_RegisterAppInterface]).to(equal(@1)); + expect([functionID getFunctionID:NAMES_UnregisterAppInterface]).to(equal(@2)); + expect([functionID getFunctionID:NAMES_SetGlobalProperties]).to(equal(@3)); + expect([functionID getFunctionID:NAMES_ResetGlobalProperties]).to(equal(@4)); + expect([functionID getFunctionID:NAMES_AddCommand]).to(equal(@5)); + expect([functionID getFunctionID:NAMES_DeleteCommand]).to(equal(@6)); + expect([functionID getFunctionID:NAMES_AddSubMenu]).to(equal(@7)); + expect([functionID getFunctionID:NAMES_DeleteSubMenu]).to(equal(@8)); + expect([functionID getFunctionID:NAMES_CreateInteractionChoiceSet]).to(equal(@9)); + expect([functionID getFunctionID:NAMES_PerformInteraction]).to(equal(@10)); + expect([functionID getFunctionID:NAMES_DeleteInteractionChoiceSet]).to(equal(@11)); + expect([functionID getFunctionID:NAMES_Alert]).to(equal(@12)); + expect([functionID getFunctionID:NAMES_Show]).to(equal(@13)); + expect([functionID getFunctionID:NAMES_Speak]).to(equal(@14)); + expect([functionID getFunctionID:NAMES_SetMediaClockTimer]).to(equal(@15)); + expect([functionID getFunctionID:NAMES_PerformAudioPassThru]).to(equal(@16)); + expect([functionID getFunctionID:NAMES_EndAudioPassThru]).to(equal(@17)); + expect([functionID getFunctionID:NAMES_SubscribeButton]).to(equal(@18)); + expect([functionID getFunctionID:NAMES_UnsubscribeButton]).to(equal(@19)); + expect([functionID getFunctionID:NAMES_SubscribeVehicleData]).to(equal(@20)); + expect([functionID getFunctionID:NAMES_UnsubscribeVehicleData]).to(equal(@21)); + expect([functionID getFunctionID:NAMES_GetVehicleData]).to(equal(@22)); + expect([functionID getFunctionID:NAMES_ReadDID]).to(equal(@23)); + expect([functionID getFunctionID:NAMES_GetDTCs]).to(equal(@24)); + expect([functionID getFunctionID:NAMES_ScrollableMessage]).to(equal(@25)); + expect([functionID getFunctionID:NAMES_Slider]).to(equal(@26)); + expect([functionID getFunctionID:NAMES_ShowConstantTBT]).to(equal(@27)); + expect([functionID getFunctionID:NAMES_AlertManeuver]).to(equal(@28)); + expect([functionID getFunctionID:NAMES_UpdateTurnList]).to(equal(@29)); + expect([functionID getFunctionID:NAMES_ChangeRegistration]).to(equal(@30)); + expect([functionID getFunctionID:NAMES_GenericResponse]).to(equal(@31)); + expect([functionID getFunctionID:NAMES_PutFile]).to(equal(@32)); + expect([functionID getFunctionID:NAMES_DeleteFile]).to(equal(@33)); + expect([functionID getFunctionID:NAMES_ListFiles]).to(equal(@34)); + expect([functionID getFunctionID:NAMES_SetAppIcon]).to(equal(@35)); + expect([functionID getFunctionID:NAMES_SetDisplayLayout]).to(equal(@36)); + expect([functionID getFunctionID:NAMES_DiagnosticMessage]).to(equal(@37)); + expect([functionID getFunctionID:NAMES_SystemRequest]).to(equal(@38)); + expect([functionID getFunctionID:NAMES_SendLocation]).to(equal(@39)); + expect([functionID getFunctionID:NAMES_DialNumber]).to(equal(@40)); + expect([functionID getFunctionID:NAMES_OnHMIStatus]).to(equal(@32768)); + expect([functionID getFunctionID:NAMES_OnAppInterfaceUnregistered]).to(equal(@32769)); + expect([functionID getFunctionID:NAMES_OnButtonEvent]).to(equal(@32770)); + expect([functionID getFunctionID:NAMES_OnButtonPress]).to(equal(@32771)); + expect([functionID getFunctionID:NAMES_OnVehicleData]).to(equal(@32772)); + expect([functionID getFunctionID:NAMES_OnCommand]).to(equal(@32773)); + expect([functionID getFunctionID:NAMES_OnTBTClientState]).to(equal(@32774)); + expect([functionID getFunctionID:NAMES_OnDriverDistraction]).to(equal(@32775)); + expect([functionID getFunctionID:NAMES_OnPermissionsChange]).to(equal(@32776)); + expect([functionID getFunctionID:NAMES_OnAudioPassThru]).to(equal(@32777)); + expect([functionID getFunctionID:NAMES_OnLanguageChange]).to(equal(@32778)); + expect([functionID getFunctionID:NAMES_OnKeyboardInput]).to(equal(@32779)); + expect([functionID getFunctionID:NAMES_OnTouchEvent]).to(equal(@32780)); + expect([functionID getFunctionID:NAMES_OnSystemRequest]).to(equal(@32781)); + expect([functionID getFunctionID:NAMES_OnHashChange]).to(equal(@32782)); + + //Not listed in Spec + expect([functionID getFunctionID:NAMES_EncodedSyncPData]).to(equal(@65536)); + expect([functionID getFunctionID:NAMES_SyncPData]).to(equal(@65537)); + + expect([functionID getFunctionID:NAMES_OnEncodedSyncPData]).to(equal(@98304)); + expect([functionID getFunctionID:NAMES_OnSyncPData]).to(equal(@98305)); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageAssemblerSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageAssemblerSpec.m new file mode 100644 index 000000000..d31a6e061 --- /dev/null +++ b/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageAssemblerSpec.m @@ -0,0 +1,100 @@ +// +// SDLProtocolMessageAssemblerSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import +#import + +#import "SDLProtocolMessageAssembler.h" +#import "SDLV2ProtocolHeader.h" +#import "SDLV2ProtocolMessage.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLProtocolMessageAssemblerSpec) + +describe(@"HandleMessage Tests", ^ { + it(@"Should assemble the message properly", ^ { + const NSUInteger dataLength = 2000; + + char dummyBytes[dataLength]; + + const char testPayloadHeader[12] = {0x20, 0x55, 0x64, 0x73, 0x12, 0x34, 0x43, 0x21, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; + + NSMutableData* payloadData = [NSMutableData dataWithBytes:testPayloadHeader length:12]; + [payloadData appendBytes:dummyBytes length:dataLength]; + + SDLV2ProtocolMessage* testMessage = [[SDLV2ProtocolMessage alloc] init]; + SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; + + //First frame + testHeader.frameType = SDLFrameType_First; + testHeader.serviceType = SDLServiceType_BulkData; + testHeader.frameData = 1; + testHeader.sessionID = 0x16; + testHeader.bytesInPayload = 8; + + testMessage.header = testHeader; + + const char firstPayload[8] = {(payloadData.length >> 24) & 0xFF, (payloadData.length >> 16) & 0xFF, (payloadData.length >> 8) & 0xFF, payloadData.length & 0xFF, 0x00, 0x00, 0x00, ceil(payloadData.length / 500.0)}; + testMessage.payload = [NSData dataWithBytes:firstPayload length:8]; + + SDLProtocolMessageAssembler* assembler = [[SDLProtocolMessageAssembler alloc] initWithSessionID:0x16]; + + __block BOOL verified = NO; + + SDLMessageAssemblyCompletionHandler incompleteHandler = ^void(BOOL done, SDLProtocolMessage* assembledMessage) { + verified = YES; + + expect(@(done)).to(equal(@NO)); + expect(assembledMessage).to(beNil()); + }; + + [assembler handleMessage:testMessage withCompletionHandler:incompleteHandler]; + + expect(@(verified)).to(beTruthy()); + verified = NO; + + testMessage.header.frameType = SDLFrameType_Consecutive; + testMessage.header.bytesInPayload = 500; + + NSUInteger frameNumber = 1; + NSUInteger offset = 0; + while ((offset + 500) < payloadData.length) { + //Consecutive frames + testMessage.header.frameData = frameNumber; + testMessage.payload = [payloadData subdataWithRange:NSMakeRange(offset, 500)]; + [assembler handleMessage:testMessage withCompletionHandler:incompleteHandler]; + + expect(@(verified)).to(beTruthy()); + verified = NO; + + frameNumber++; + offset += 500; + } + + //Final frame + testMessage.header.frameData = 0; + testMessage.payload = [payloadData subdataWithRange:NSMakeRange(offset, payloadData.length - offset)]; + [assembler handleMessage:testMessage withCompletionHandler: ^void(BOOL done, SDLProtocolMessage* assembledMessage) { + verified = YES; + + // FIXME: At the moment, this test fails because the completion handler is accidentally called twice + expect(@(done)).to(equal(@YES)); + + expect(assembledMessage.payload).to(equal(payloadData)); + expect(@(assembledMessage.header.frameType)).to(equal(@(SDLFrameType_Single))); + expect(@(assembledMessage.header.serviceType)).to(equal(@(SDLServiceType_BulkData))); + expect(@(assembledMessage.header.frameData)).to(equal(@(SDLFrameData_SingleFrame))); + expect(@(assembledMessage.header.sessionID)).to(equal(@0x16)); + expect(@(assembledMessage.header.bytesInPayload)).to(equal(@(payloadData.length))); + }]; + + expect(@(verified)).to(beTruthy()); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageDisassemblerSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageDisassemblerSpec.m new file mode 100644 index 000000000..04fb30c5e --- /dev/null +++ b/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolMessageDisassemblerSpec.m @@ -0,0 +1,95 @@ +// +// SDLProtocolMessageDisassemblerSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import +#import + +#import "SDLGlobals.h" +#import "SDLProtocolMessageDisassembler.h" +#import "SDLV2ProtocolHeader.h" +#import "SDLV2ProtocolMessage.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLProtocolMessageDisassemblerSpec) + +describe(@"Disassemble Tests", ^ { + it(@"Should assemble the message properly", ^ { + //Allocate 2000 bytes, and use it as sample data + const NSUInteger dataLength = 2000; + char dummyBytes[dataLength]; + + SDLGlobals *globals = [[SDLGlobals alloc] init]; + globals.maxHeadUnitVersion = 2; + + const char testPayloadHeader[12] = {0x20, 0x55, 0x64, 0x73, 0x12, 0x34, 0x43, 0x21, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; + + NSMutableData* payloadData = [NSMutableData dataWithBytes:testPayloadHeader length:12]; + [payloadData appendBytes:dummyBytes length:dataLength]; + + SDLV2ProtocolMessage* testMessage = [[SDLV2ProtocolMessage alloc] init]; + SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; + + testHeader.frameType = SDLFrameType_Single; + testHeader.serviceType = SDLServiceType_BulkData; + testHeader.frameData = SDLFrameData_SingleFrame; + testHeader.sessionID = 0x84; + testHeader.bytesInPayload = (UInt32)payloadData.length; + + testMessage.header = testHeader; + testMessage.payload = payloadData; + + NSArray* messageList = [SDLProtocolMessageDisassembler disassemble:testMessage withLimit:globals.maxMTUSize]; + + //Payload length per message + UInt32 payloadLength = 1012; // v1/2 MTU(1024) - header length(12) + + const char firstPayload[8] = {(payloadData.length >> 24) & 0xFF, (payloadData.length >> 16) & 0xFF, (payloadData.length >> 8) & 0xFF, payloadData.length & 0xFF, 0x00, 0x00, 0x00, ceil(1.0 * payloadData.length / payloadLength)}; + + SDLProtocolMessage* message = messageList[0]; + + //First frame + expect(message.payload).to(equal([NSData dataWithBytes:firstPayload length:8])); + + expect(@(message.header.frameType)).to(equal(@(SDLFrameType_First))); + expect(@(message.header.serviceType)).to(equal(@(SDLServiceType_BulkData))); + expect(@(message.header.frameData)).to(equal(@(SDLFrameData_FirstFrame))); + expect(@(message.header.sessionID)).to(equal(@0x84)); + expect(@(message.header.bytesInPayload)).to(equal(@8)); + + NSUInteger offset = 0; + for (int i = 1; i < messageList.count - 1; i++) { + message = messageList[i]; + + //Consecutive frames + expect(message.payload).to(equal([NSData dataWithData:[payloadData subdataWithRange:NSMakeRange(offset, payloadLength)]])); + + expect(@(message.header.frameType)).to(equal(@(SDLFrameType_Consecutive))); + expect(@(message.header.serviceType)).to(equal(@(SDLServiceType_BulkData))); + expect(@(message.header.frameData)).to(equal(@(i))); + expect(@(message.header.sessionID)).to(equal(@0x84)); + expect(@(message.header.bytesInPayload)).to(equal(@(payloadLength))); + + offset += payloadLength; + } + + message = [messageList lastObject]; + + NSUInteger remaining = payloadData.length - offset; + + //Last frame + expect(message.payload).to(equal([NSData dataWithData:[payloadData subdataWithRange:NSMakeRange(offset, remaining)]])); + + expect(@(message.header.frameType)).to(equal(@(SDLFrameType_Consecutive))); + expect(@(message.header.serviceType)).to(equal(@(SDLServiceType_BulkData))); + expect(@(message.header.frameData)).to(equal(@(SDLFrameData_ConsecutiveLastFrame))); + expect(@(message.header.sessionID)).to(equal(@0x84)); + expect(@(message.header.bytesInPayload)).to(equal(@(remaining))); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolReceivedMessageRouterSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolReceivedMessageRouterSpec.m new file mode 100644 index 000000000..6e22fd901 --- /dev/null +++ b/SmartDeviceLinkTests/ProtocolSpecs/SDLProtocolReceivedMessageRouterSpec.m @@ -0,0 +1,176 @@ +// +// SDLProtocolReceivedMessageRouterSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import +#import + +#import "SDLProtocolReceivedMessageRouter.h" +#import "SDLV2ProtocolHeader.h" +#import "SDLV2ProtocolMessage.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLProtocolReceivedMessageRouterSpec) + +describe(@"HandleReceivedMessage Tests", ^ { + context(@"When handling control message", ^ { + it(@"Should route message correctly", ^ { + id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); + + SDLV2ProtocolMessage* testMessage = [[SDLV2ProtocolMessage alloc] init]; + SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; + + testHeader.frameType = SDLFrameType_Control; + testHeader.serviceType = SDLServiceType_RPC; + testHeader.frameData = SDLFrameData_StartSessionACK; + testHeader.sessionID = 0x93; + testHeader.bytesInPayload = 0; + + testMessage.header = testHeader; + testMessage.payload = [NSData data]; + + __block BOOL verified = NO; + [[[[delegateMock stub] andDo: ^(NSInvocation* invocation) { + verified = YES; + Byte serviceType; + Byte sessionID; + Byte version; + + [invocation getArgument:&serviceType atIndex:2]; + [invocation getArgument:&sessionID atIndex:3]; + [invocation getArgument:&version atIndex:4]; + + expect(@(serviceType)).to(equal(@(SDLServiceType_RPC))); + expect(@(sessionID)).to(equal(@0x93)); + expect(@(version)).to(equal(@0x02)); + }] ignoringNonObjectArgs] handleProtocolStartSessionACK:0 sessionID:0 version:0]; + + SDLProtocolReceivedMessageRouter* router = [[SDLProtocolReceivedMessageRouter alloc] init]; + router.delegate = delegateMock; + + [router handleReceivedMessage:testMessage]; + + expect(@(verified)).to(beTruthy()); + }); + }); + + context(@"When handling single frame message", ^ { + it(@"Should route message correctly", ^ { + id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); + + SDLV2ProtocolMessage* testMessage = [[SDLV2ProtocolMessage alloc] init]; + SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; + + testHeader.frameType = SDLFrameType_Single; + testHeader.serviceType = SDLServiceType_RPC; + testHeader.frameData = SDLFrameData_SingleFrame; + testHeader.sessionID = 0x07; + testHeader.bytesInPayload = 0; + + testMessage.header = testHeader; + + testMessage.payload = [NSData data]; + + __block BOOL verified = NO; + [[[[delegateMock stub] andDo: ^(NSInvocation* invocation) { + verified = YES; + + __unsafe_unretained SDLProtocolMessage* message; + + [invocation getArgument:&message atIndex:2]; + + SDLV2ProtocolMessage* messageReceived = (SDLV2ProtocolMessage*)message; + + expect(messageReceived).to(beIdenticalTo(testMessage)); + }] ignoringNonObjectArgs] onProtocolMessageReceived:[OCMArg any]]; + + SDLProtocolReceivedMessageRouter* router = [[SDLProtocolReceivedMessageRouter alloc] init]; + router.delegate = delegateMock; + + [router handleReceivedMessage:testMessage]; + + expect(@(verified)).to(beTruthy()); + }); + }); + + context(@"When handling multi-frame message", ^ { + it(@"Should route message correctly", ^ { + //Allocate 2000 bytes and use it as test data + const NSUInteger dataLength = 2000; + char dummyBytes[dataLength]; + + const char testPayloadHeader[12] = {0x20, 0x55, 0x64, 0x73, 0x12, 0x34, 0x43, 0x21, (dataLength >> 24) & 0xFF, (dataLength >> 16) & 0xFF, (dataLength >> 8) & 0xFF, dataLength & 0xFF}; + + NSMutableData* payloadData = [NSMutableData dataWithBytes:testPayloadHeader length:12]; + [payloadData appendBytes:dummyBytes length:dataLength]; + + SDLV2ProtocolMessage* testMessage = [[SDLV2ProtocolMessage alloc] init]; + SDLV2ProtocolHeader* testHeader = [[SDLV2ProtocolHeader alloc] init]; + + //First frame + testHeader.frameType = SDLFrameType_First; + testHeader.serviceType = SDLServiceType_BulkData; + testHeader.frameData = 1; + testHeader.sessionID = 0x33; + testHeader.bytesInPayload = 8; + + testMessage.header = testHeader; + + const char firstPayload[8] = {(payloadData.length >> 24) & 0xFF, (payloadData.length >> 16) & 0xFF, (payloadData.length >> 8) & 0xFF, payloadData.length & 0xFF, 0x00, 0x00, 0x00, ceil(payloadData.length / 500.0)}; + testMessage.payload = [NSData dataWithBytes:firstPayload length:8]; + + SDLProtocolReceivedMessageRouter* router = [[SDLProtocolReceivedMessageRouter alloc] init]; + + [router handleReceivedMessage:testMessage]; + + testMessage.header.frameType = SDLFrameType_Consecutive; + testMessage.header.bytesInPayload = 500; + + NSUInteger frameNumber = 1; + NSUInteger offset = 0; + while ((offset + 500) < payloadData.length) { + //Consectutive frames + testMessage.header.frameData = frameNumber; + testMessage.payload = [payloadData subdataWithRange:NSMakeRange(offset, 500)]; + [router handleReceivedMessage:testMessage]; + + frameNumber++; + offset += 500; + } + + //Final frame + testMessage.header.frameData = 0; + testMessage.payload = [payloadData subdataWithRange:NSMakeRange(offset, payloadData.length - offset)]; + + id delegateMock = OCMProtocolMock(@protocol(SDLProtocolListener)); + + __block BOOL verified = NO; + [[[delegateMock stub] andDo:^(NSInvocation* invocation) { + verified = YES; + + //Without the __unsafe_unretained, a double release will occur. More information: https://github.com/erikdoe/ocmock/issues/123 + __unsafe_unretained SDLProtocolMessage* message; + [invocation getArgument:&message atIndex:2]; + SDLProtocolMessage* assembledMessage = message; + + expect(assembledMessage.payload).to(equal(payloadData)); + expect(@(assembledMessage.header.frameType)).to(equal(@(SDLFrameType_Single))); + expect(@(assembledMessage.header.serviceType)).to(equal(@(SDLServiceType_BulkData))); + expect(@(assembledMessage.header.frameData)).to(equal(@(SDLFrameData_SingleFrame))); + expect(@(assembledMessage.header.sessionID)).to(equal(@0x33)); + expect(@(assembledMessage.header.bytesInPayload)).to(equal(@(payloadData.length))); + }] onProtocolMessageReceived:[OCMArg any]]; + + router.delegate = delegateMock; + [router handleReceivedMessage:testMessage]; + + expect(@(verified)).to(beTruthy()); + }); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/ProxySpecs/SDLLockScreenManagerSpec.m b/SmartDeviceLinkTests/ProxySpecs/SDLLockScreenManagerSpec.m new file mode 100644 index 000000000..76c85b9f4 --- /dev/null +++ b/SmartDeviceLinkTests/ProxySpecs/SDLLockScreenManagerSpec.m @@ -0,0 +1,235 @@ +// +// SDLHexUtilitySpec.m +// SmartDeviceLink-iOS + +#import +#import + +#import "SDLHMILevel.h" +#import "SDLOnLockScreenStatus.h" +#import "SDLLockScreenManager.h" +#import "SDLLockScreenStatus.h" + + +QuickSpecBegin(SDLLockScreenManagerSpec) + +describe(@"the lockscreen manager", ^{ + __block SDLLockScreenManager *lockScreenManager; + beforeEach(^{ + lockScreenManager = [[SDLLockScreenManager alloc] init]; + }); + + it(@"should properly initialize user selected app boolean to false", ^{ + expect(@(lockScreenManager.userSelected)).to(beFalse()); + }); + + it(@"should properly initialize driver is distracted boolean to false", ^{ + expect(@(lockScreenManager.driverDistracted)).to(beFalse()); + }); + + it(@"should properly initialize hmi level object to nil", ^{ + expect(lockScreenManager.hmiLevel).to(beNil()); + }); + + describe(@"when setting HMI level", ^{ + context(@"to FULL", ^{ + beforeEach(^{ + lockScreenManager.userSelected = NO; + lockScreenManager.hmiLevel = [SDLHMILevel FULL]; + }); + + it(@"should set user selected to true", ^{ + expect(@(lockScreenManager.userSelected)).to(beTrue()); + }); + }); + + context(@"to LIMITED", ^{ + beforeEach(^{ + lockScreenManager.userSelected = NO; + lockScreenManager.hmiLevel = [SDLHMILevel LIMITED]; + }); + + it(@"should set user selected to true", ^{ + expect(@(lockScreenManager.userSelected)).to(beTrue()); + }); + }); + + context(@"to BACKGROUND", ^{ + beforeEach(^{ + lockScreenManager.hmiLevel = [SDLHMILevel BACKGROUND]; + }); + + context(@"when user selected is false", ^{ + beforeEach(^{ + lockScreenManager.userSelected = NO; + }); + + it(@"should not alter the value", ^{ + expect(@(lockScreenManager.userSelected)).to(beFalse()); + }); + }); + + context(@"when user selected is true", ^{ + beforeEach(^{ + lockScreenManager.userSelected = YES; + }); + + it(@"should not alter the value", ^{ + expect(@(lockScreenManager.userSelected)).to(beTrue()); + }); + }); + }); + + context(@"to NONE", ^{ + beforeEach(^{ + lockScreenManager.userSelected = YES; + lockScreenManager.hmiLevel = [SDLHMILevel NONE]; + }); + + it(@"should set user selected to false", ^{ + expect(@(lockScreenManager.userSelected)).to(beFalse()); + }); + }); + }); + + describe(@"when getting lock screen status", ^{ + context(@"when HMI level is nil", ^{ + beforeEach(^{ + lockScreenManager.hmiLevel = nil; + }); + + it(@"should return lock screen off", ^{ + expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus OFF])); + }); + }); + + context(@"when HMI level is NONE", ^{ + beforeEach(^{ + lockScreenManager.hmiLevel = [SDLHMILevel NONE]; + }); + + it(@"should return lock screen off", ^{ + expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus OFF])); + }); + }); + + context(@"when HMI level is BACKGROUND", ^{ + beforeEach(^{ + lockScreenManager.hmiLevel = [SDLHMILevel BACKGROUND]; + }); + + context(@"when user selected is true", ^{ + beforeEach(^{ + lockScreenManager.userSelected = YES; + }); + + it(@"should return lock screen required", ^{ + expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); + }); + }); + + context(@"when user selected is false", ^{ + beforeEach(^{ + lockScreenManager.userSelected = NO; + }); + + it(@"should return lock screen off", ^{ + expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus OFF])); + }); + }); + }); + + context(@"when HMI level is LIMITED", ^{ + beforeEach(^{ + lockScreenManager.hmiLevel = [SDLHMILevel LIMITED]; + }); + + context(@"if we do not set the driver distraction state", ^{ + it(@"should return lock screen required", ^{ + expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); + }); + }); + + context(@"if we set the driver distraction state to false", ^{ + beforeEach(^{ + lockScreenManager.driverDistracted = NO; + }); + + it(@"should return lock screen optional", ^{ + expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus OPTIONAL])); + }); + }); + + context(@"if we set the driver distraction state to true", ^{ + beforeEach(^{ + lockScreenManager.driverDistracted = YES; + }); + + it(@"should return lock screen required", ^{ + expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); + }); + }); + }); + + context(@"when HMI level is FULL", ^{ + beforeEach(^{ + lockScreenManager.hmiLevel = [SDLHMILevel FULL]; + }); + + context(@"if we do not set the driver distraction state", ^{ + it(@"should return lock screen required", ^{ + expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); + }); + }); + + context(@"if we set the driver distraction state to false", ^{ + beforeEach(^{ + lockScreenManager.driverDistracted = NO; + }); + + it(@"should return lock screen optional", ^{ + expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus OPTIONAL])); + }); + }); + + context(@"if we set the driver distraction state to true", ^{ + beforeEach(^{ + lockScreenManager.driverDistracted = YES; + }); + + it(@"should return lock screen required", ^{ + expect(lockScreenManager.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); + }); + }); + }); + }); + + describe(@"when getting lock screen status notification", ^{ + __block SDLOnLockScreenStatus *onLockScreenStatusNotification = nil; + beforeEach(^{ + lockScreenManager.userSelected = YES; + lockScreenManager.driverDistracted = NO; + lockScreenManager.hmiLevel = [SDLHMILevel LIMITED]; + + onLockScreenStatusNotification = lockScreenManager.lockScreenStatusNotification; + }); + + it(@"should properly return user selected", ^{ + expect(onLockScreenStatusNotification.userSelected).to(beTrue()); + }); + + it(@"should properly return driver distraction status", ^{ + expect(onLockScreenStatusNotification.driverDistractionStatus).to(beFalse()); + }); + + it(@"should properly return HMI level", ^{ + expect(onLockScreenStatusNotification.hmiLevel).to(equal([SDLHMILevel LIMITED])); + }); + + it(@"should properly return lock screen status", ^{ + expect(onLockScreenStatusNotification.lockScreenStatus).to(equal([SDLLockScreenStatus OPTIONAL])); + }); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAmbientLightStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAmbientLightStatusSpec.m new file mode 100644 index 000000000..c5259da1d --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAmbientLightStatusSpec.m @@ -0,0 +1,71 @@ +// +// SDLAmbientLightStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAmbientLightStatus.h" + +QuickSpecBegin(SDLAmbientLightStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLAmbientLightStatus NIGHT].value).to(equal(@"NIGHT")); + expect([SDLAmbientLightStatus TWILIGHT_1].value).to(equal(@"TWILIGHT_1")); + expect([SDLAmbientLightStatus TWILIGHT_2].value).to(equal(@"TWILIGHT_2")); + expect([SDLAmbientLightStatus TWILIGHT_3].value).to(equal(@"TWILIGHT_3")); + expect([SDLAmbientLightStatus TWILIGHT_4].value).to(equal(@"TWILIGHT_4")); + expect([SDLAmbientLightStatus DAY].value).to(equal(@"DAY")); + expect([SDLAmbientLightStatus UNKNOWN].value).to(equal(@"UNKNOWN")); + expect([SDLAmbientLightStatus INVALID].value).to(equal(@"INVALID")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLAmbientLightStatus valueOf:@"NIGHT"]).to(equal([SDLAmbientLightStatus NIGHT])); + expect([SDLAmbientLightStatus valueOf:@"TWILIGHT_1"]).to(equal([SDLAmbientLightStatus TWILIGHT_1])); + expect([SDLAmbientLightStatus valueOf:@"TWILIGHT_2"]).to(equal([SDLAmbientLightStatus TWILIGHT_2])); + expect([SDLAmbientLightStatus valueOf:@"TWILIGHT_3"]).to(equal([SDLAmbientLightStatus TWILIGHT_3])); + expect([SDLAmbientLightStatus valueOf:@"TWILIGHT_4"]).to(equal([SDLAmbientLightStatus TWILIGHT_4])); + expect([SDLAmbientLightStatus valueOf:@"DAY"]).to(equal([SDLAmbientLightStatus DAY])); + expect([SDLAmbientLightStatus valueOf:@"UNKNOWN"]).to(equal([SDLAmbientLightStatus UNKNOWN])); + expect([SDLAmbientLightStatus valueOf:@"INVALID"]).to(equal([SDLAmbientLightStatus INVALID])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLAmbientLightStatus valueOf:nil]).to(beNil()); + expect([SDLAmbientLightStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLAmbientLightStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLAmbientLightStatus NIGHT], + [SDLAmbientLightStatus TWILIGHT_1], + [SDLAmbientLightStatus TWILIGHT_2], + [SDLAmbientLightStatus TWILIGHT_3], + [SDLAmbientLightStatus TWILIGHT_4], + [SDLAmbientLightStatus DAY], + [SDLAmbientLightStatus UNKNOWN], + [SDLAmbientLightStatus INVALID]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppHMITypeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppHMITypeSpec.m new file mode 100644 index 000000000..4e55a1543 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppHMITypeSpec.m @@ -0,0 +1,77 @@ +// +// SDLAppHMITypeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAppHMIType.h" + +QuickSpecBegin(SDLAppHMITypeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLAppHMIType DEFAULT].value).to(equal(@"DEFAULT")); + expect([SDLAppHMIType COMMUNICATION].value).to(equal(@"COMMUNICATION")); + expect([SDLAppHMIType MEDIA].value).to(equal(@"MEDIA")); + expect([SDLAppHMIType MESSAGING].value).to(equal(@"MESSAGING")); + expect([SDLAppHMIType NAVIGATION].value).to(equal(@"NAVIGATION")); + expect([SDLAppHMIType INFORMATION].value).to(equal(@"INFORMATION")); + expect([SDLAppHMIType SOCIAL].value).to(equal(@"SOCIAL")); + expect([SDLAppHMIType BACKGROUND_PROCESS].value).to(equal(@"BACKGROUND_PROCESS")); + expect([SDLAppHMIType TESTING].value).to(equal(@"TESTING")); + expect([SDLAppHMIType SYSTEM].value).to(equal(@"SYSTEM")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLAppHMIType valueOf:@"DEFAULT"]).to(equal([SDLAppHMIType DEFAULT])); + expect([SDLAppHMIType valueOf:@"COMMUNICATION"]).to(equal([SDLAppHMIType COMMUNICATION])); + expect([SDLAppHMIType valueOf:@"MEDIA"]).to(equal([SDLAppHMIType MEDIA])); + expect([SDLAppHMIType valueOf:@"MESSAGING"]).to(equal([SDLAppHMIType MESSAGING])); + expect([SDLAppHMIType valueOf:@"NAVIGATION"]).to(equal([SDLAppHMIType NAVIGATION])); + expect([SDLAppHMIType valueOf:@"INFORMATION"]).to(equal([SDLAppHMIType INFORMATION])); + expect([SDLAppHMIType valueOf:@"SOCIAL"]).to(equal([SDLAppHMIType SOCIAL])); + expect([SDLAppHMIType valueOf:@"BACKGROUND_PROCESS"]).to(equal([SDLAppHMIType BACKGROUND_PROCESS])); + expect([SDLAppHMIType valueOf:@"TESTING"]).to(equal([SDLAppHMIType TESTING])); + expect([SDLAppHMIType valueOf:@"SYSTEM"]).to(equal([SDLAppHMIType SYSTEM])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLAppHMIType valueOf:nil]).to(beNil()); + expect([SDLAppHMIType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLAppHMIType values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLAppHMIType DEFAULT], + [SDLAppHMIType COMMUNICATION], + [SDLAppHMIType MEDIA], + [SDLAppHMIType MESSAGING], + [SDLAppHMIType NAVIGATION], + [SDLAppHMIType INFORMATION], + [SDLAppHMIType SOCIAL], + [SDLAppHMIType BACKGROUND_PROCESS], + [SDLAppHMIType TESTING], + [SDLAppHMIType SYSTEM]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppInterfaceUnregisteredReasonSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppInterfaceUnregisteredReasonSpec.m new file mode 100644 index 000000000..a8927c447 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppInterfaceUnregisteredReasonSpec.m @@ -0,0 +1,85 @@ +// +// SDLAppInterfaceUnregisteredReasonSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAppInterfaceUnregisteredReason.h" + +//Commented tests refer to values defined in the spec, but are not implemented + +QuickSpecBegin(SDLAppInterfaceUnregisteredReasonSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + //expect([SDLAppInterfaceUnregisteredReason USER_EXIT].value).to(equal(@"USER_EXIT")); + expect([SDLAppInterfaceUnregisteredReason IGNITION_OFF].value).to(equal(@"IGNITION_OFF")); + expect([SDLAppInterfaceUnregisteredReason BLUETOOTH_OFF].value).to(equal(@"BLUETOOTH_OFF")); + expect([SDLAppInterfaceUnregisteredReason USB_DISCONNECTED].value).to(equal(@"USB_DISCONNECTED")); + expect([SDLAppInterfaceUnregisteredReason REQUEST_WHILE_IN_NONE_HMI_LEVEL].value).to(equal(@"REQUEST_WHILE_IN_NONE_HMI_LEVEL")); + expect([SDLAppInterfaceUnregisteredReason TOO_MANY_REQUESTS].value).to(equal(@"TOO_MANY_REQUESTS")); + expect([SDLAppInterfaceUnregisteredReason DRIVER_DISTRACTION_VIOLATION].value).to(equal(@"DRIVER_DISTRACTION_VIOLATION")); + expect([SDLAppInterfaceUnregisteredReason LANGUAGE_CHANGE].value).to(equal(@"LANGUAGE_CHANGE")); + expect([SDLAppInterfaceUnregisteredReason MASTER_RESET].value).to(equal(@"MASTER_RESET")); + expect([SDLAppInterfaceUnregisteredReason FACTORY_DEFAULTS].value).to(equal(@"FACTORY_DEFAULTS")); + expect([SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED].value).to(equal(@"APP_UNAUTHORIZED")); + //expect([SDLAppInterfaceUnregisteredReason PROTOCOL_VIOLATION].value).to(equal(@"PROTOCOL_VIOLATION")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + //expect([SDLAppInterfaceUnregisteredReason valueOf:@"USER_EXIT"]).to(equal([SDLAppInterfaceUnregisteredReason USER_EXIT])); + expect([SDLAppInterfaceUnregisteredReason valueOf:@"IGNITION_OFF"]).to(equal([SDLAppInterfaceUnregisteredReason IGNITION_OFF])); + expect([SDLAppInterfaceUnregisteredReason valueOf:@"BLUETOOTH_OFF"]).to(equal([SDLAppInterfaceUnregisteredReason BLUETOOTH_OFF])); + expect([SDLAppInterfaceUnregisteredReason valueOf:@"USB_DISCONNECTED"]).to(equal([SDLAppInterfaceUnregisteredReason USB_DISCONNECTED])); + expect([SDLAppInterfaceUnregisteredReason valueOf:@"REQUEST_WHILE_IN_NONE_HMI_LEVEL"]).to(equal([SDLAppInterfaceUnregisteredReason REQUEST_WHILE_IN_NONE_HMI_LEVEL])); + expect([SDLAppInterfaceUnregisteredReason valueOf:@"TOO_MANY_REQUESTS"]).to(equal([SDLAppInterfaceUnregisteredReason TOO_MANY_REQUESTS])); + expect([SDLAppInterfaceUnregisteredReason valueOf:@"DRIVER_DISTRACTION_VIOLATION"]).to(equal([SDLAppInterfaceUnregisteredReason DRIVER_DISTRACTION_VIOLATION])); + expect([SDLAppInterfaceUnregisteredReason valueOf:@"LANGUAGE_CHANGE"]).to(equal([SDLAppInterfaceUnregisteredReason LANGUAGE_CHANGE])); + expect([SDLAppInterfaceUnregisteredReason valueOf:@"MASTER_RESET"]).to(equal([SDLAppInterfaceUnregisteredReason MASTER_RESET])); + expect([SDLAppInterfaceUnregisteredReason valueOf:@"FACTORY_DEFAULTS"]).to(equal([SDLAppInterfaceUnregisteredReason FACTORY_DEFAULTS])); + expect([SDLAppInterfaceUnregisteredReason valueOf:@"APP_UNAUTHORIZED"]).to(equal([SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED])); + //expect([SDLAppInterfaceUnregisteredReason valueOf:@"PROTOCOL_VIOLATION"]).to(equal([SDLAppInterfaceUnregisteredReason PROTOCOL_VIOLATION])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLAppInterfaceUnregisteredReason valueOf:nil]).to(beNil()); + expect([SDLAppInterfaceUnregisteredReason valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLAppInterfaceUnregisteredReason values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[//[SDLAppInterfaceUnregisteredReason USER_EXIT], + [SDLAppInterfaceUnregisteredReason IGNITION_OFF], + [SDLAppInterfaceUnregisteredReason BLUETOOTH_OFF], + [SDLAppInterfaceUnregisteredReason USB_DISCONNECTED], + [SDLAppInterfaceUnregisteredReason REQUEST_WHILE_IN_NONE_HMI_LEVEL], + [SDLAppInterfaceUnregisteredReason TOO_MANY_REQUESTS], + [SDLAppInterfaceUnregisteredReason DRIVER_DISTRACTION_VIOLATION], + [SDLAppInterfaceUnregisteredReason LANGUAGE_CHANGE], + [SDLAppInterfaceUnregisteredReason MASTER_RESET], + [SDLAppInterfaceUnregisteredReason FACTORY_DEFAULTS], + [SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED]] copy]; + //[SDLAppInterfaceUnregisteredReason PROTOCOL_VIOLATION] + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioStreamingStateSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioStreamingStateSpec.m new file mode 100644 index 000000000..0787d7321 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioStreamingStateSpec.m @@ -0,0 +1,56 @@ +// +// SDLAudioStreamingStateSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAudioStreamingState.h" + +QuickSpecBegin(SDLAudioStreamingStateSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLAudioStreamingState AUDIBLE].value).to(equal(@"AUDIBLE")); + expect([SDLAudioStreamingState ATTENUATED].value).to(equal(@"ATTENUATED")); + expect([SDLAudioStreamingState NOT_AUDIBLE].value).to(equal(@"NOT_AUDIBLE")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLAudioStreamingState valueOf:@"AUDIBLE"]).to(equal([SDLAudioStreamingState AUDIBLE])); + expect([SDLAudioStreamingState valueOf:@"ATTENUATED"]).to(equal([SDLAudioStreamingState ATTENUATED])); + expect([SDLAudioStreamingState valueOf:@"NOT_AUDIBLE"]).to(equal([SDLAudioStreamingState NOT_AUDIBLE])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLAudioStreamingState valueOf:nil]).to(beNil()); + expect([SDLAudioStreamingState valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLAudioStreamingState values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLAudioStreamingState AUDIBLE], + [SDLAudioStreamingState ATTENUATED], + [SDLAudioStreamingState NOT_AUDIBLE]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioTypeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioTypeSpec.m new file mode 100644 index 000000000..8587b7ee1 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioTypeSpec.m @@ -0,0 +1,50 @@ +// +// SDLAudioTypeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAudioType.h" + +QuickSpecBegin(SDLAudioTypeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLAudioType PCM].value).to(equal(@"PCM")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLAudioType valueOf:@"PCM"]).to(equal([SDLAudioType PCM])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLAudioType valueOf:nil]).to(beNil()); + expect([SDLAudioType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLAudioType values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLAudioType PCM]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLBitsPerSampleSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLBitsPerSampleSpec.m new file mode 100644 index 000000000..bcc5dd01c --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLBitsPerSampleSpec.m @@ -0,0 +1,53 @@ +// +// SDLBitsPerSampleSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLBitsPerSample.h" + +QuickSpecBegin(SDLBitsPerSampleSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLBitsPerSample _8_BIT].value).to(equal(@"8_BIT")); + expect([SDLBitsPerSample _16_BIT].value).to(equal(@"16_BIT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLBitsPerSample valueOf:@"8_BIT"]).to(equal([SDLBitsPerSample _8_BIT])); + expect([SDLBitsPerSample valueOf:@"16_BIT"]).to(equal([SDLBitsPerSample _16_BIT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLBitsPerSample valueOf:nil]).to(beNil()); + expect([SDLBitsPerSample valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLBitsPerSample values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLBitsPerSample _8_BIT], + [SDLBitsPerSample _16_BIT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonEventModeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonEventModeSpec.m new file mode 100644 index 000000000..4f6e6d054 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonEventModeSpec.m @@ -0,0 +1,53 @@ +// +// SDLButtonEventModeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLButtonEventMode.h" + +QuickSpecBegin(SDLButtonEventModeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLButtonEventMode BUTTONUP].value).to(equal(@"BUTTONUP")); + expect([SDLButtonEventMode BUTTONDOWN].value).to(equal(@"BUTTONDOWN")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLButtonEventMode valueOf:@"BUTTONUP"]).to(equal([SDLButtonEventMode BUTTONUP])); + expect([SDLButtonEventMode valueOf:@"BUTTONDOWN"]).to(equal([SDLButtonEventMode BUTTONDOWN])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLButtonEventMode valueOf:nil]).to(beNil()); + expect([SDLButtonEventMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLButtonEventMode values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLButtonEventMode BUTTONUP], + [SDLButtonEventMode BUTTONDOWN]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonNameSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonNameSpec.m new file mode 100644 index 000000000..6b9c64900 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonNameSpec.m @@ -0,0 +1,98 @@ +// +// SDLButtonNameSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLButtonName.h" + +QuickSpecBegin(SDLButtonNameSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLButtonName OK].value).to(equal(@"OK")); + expect([SDLButtonName SEEKLEFT].value).to(equal(@"SEEKLEFT")); + expect([SDLButtonName SEEKRIGHT].value).to(equal(@"SEEKRIGHT")); + expect([SDLButtonName TUNEUP].value).to(equal(@"TUNEUP")); + expect([SDLButtonName TUNEDOWN].value).to(equal(@"TUNEDOWN")); + expect([SDLButtonName PRESET_0].value).to(equal(@"PRESET_0")); + expect([SDLButtonName PRESET_1].value).to(equal(@"PRESET_1")); + expect([SDLButtonName PRESET_2].value).to(equal(@"PRESET_2")); + expect([SDLButtonName PRESET_3].value).to(equal(@"PRESET_3")); + expect([SDLButtonName PRESET_4].value).to(equal(@"PRESET_4")); + expect([SDLButtonName PRESET_5].value).to(equal(@"PRESET_5")); + expect([SDLButtonName PRESET_6].value).to(equal(@"PRESET_6")); + expect([SDLButtonName PRESET_7].value).to(equal(@"PRESET_7")); + expect([SDLButtonName PRESET_8].value).to(equal(@"PRESET_8")); + expect([SDLButtonName PRESET_9].value).to(equal(@"PRESET_9")); + expect([SDLButtonName CUSTOM_BUTTON].value).to(equal(@"CUSTOM_BUTTON")); + expect([SDLButtonName SEARCH].value).to(equal(@"SEARCH")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLButtonName valueOf:@"OK"]).to(equal([SDLButtonName OK])); + expect([SDLButtonName valueOf:@"SEEKLEFT"]).to(equal([SDLButtonName SEEKLEFT])); + expect([SDLButtonName valueOf:@"SEEKRIGHT"]).to(equal([SDLButtonName SEEKRIGHT])); + expect([SDLButtonName valueOf:@"TUNEUP"]).to(equal([SDLButtonName TUNEUP])); + expect([SDLButtonName valueOf:@"TUNEDOWN"]).to(equal([SDLButtonName TUNEDOWN])); + expect([SDLButtonName valueOf:@"PRESET_0"]).to(equal([SDLButtonName PRESET_0])); + expect([SDLButtonName valueOf:@"PRESET_1"]).to(equal([SDLButtonName PRESET_1])); + expect([SDLButtonName valueOf:@"PRESET_2"]).to(equal([SDLButtonName PRESET_2])); + expect([SDLButtonName valueOf:@"PRESET_3"]).to(equal([SDLButtonName PRESET_3])); + expect([SDLButtonName valueOf:@"PRESET_4"]).to(equal([SDLButtonName PRESET_4])); + expect([SDLButtonName valueOf:@"PRESET_5"]).to(equal([SDLButtonName PRESET_5])); + expect([SDLButtonName valueOf:@"PRESET_6"]).to(equal([SDLButtonName PRESET_6])); + expect([SDLButtonName valueOf:@"PRESET_7"]).to(equal([SDLButtonName PRESET_7])); + expect([SDLButtonName valueOf:@"PRESET_8"]).to(equal([SDLButtonName PRESET_8])); + expect([SDLButtonName valueOf:@"PRESET_9"]).to(equal([SDLButtonName PRESET_9])); + expect([SDLButtonName valueOf:@"CUSTOM_BUTTON"]).to(equal([SDLButtonName CUSTOM_BUTTON])); + expect([SDLButtonName valueOf:@"SEARCH"]).to(equal([SDLButtonName SEARCH])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLButtonName valueOf:nil]).to(beNil()); + expect([SDLButtonName valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLButtonName values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLButtonName OK], + [SDLButtonName SEEKLEFT], + [SDLButtonName SEEKRIGHT], + [SDLButtonName TUNEUP], + [SDLButtonName TUNEDOWN], + [SDLButtonName PRESET_0], + [SDLButtonName PRESET_1], + [SDLButtonName PRESET_2], + [SDLButtonName PRESET_3], + [SDLButtonName PRESET_4], + [SDLButtonName PRESET_5], + [SDLButtonName PRESET_6], + [SDLButtonName PRESET_7], + [SDLButtonName PRESET_8], + [SDLButtonName PRESET_9], + [SDLButtonName CUSTOM_BUTTON], + [SDLButtonName SEARCH]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonPressModeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonPressModeSpec.m new file mode 100644 index 000000000..eb6b2fa35 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonPressModeSpec.m @@ -0,0 +1,53 @@ +// +// SDLButtonPressModeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLButtonPressMode.h" + +QuickSpecBegin(SDLButtonPressModeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLButtonPressMode LONG].value).to(equal(@"LONG")); + expect([SDLButtonPressMode SHORT].value).to(equal(@"SHORT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLButtonPressMode valueOf:@"LONG"]).to(equal([SDLButtonPressMode LONG])); + expect([SDLButtonPressMode valueOf:@"SHORT"]).to(equal([SDLButtonPressMode SHORT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLButtonPressMode valueOf:nil]).to(beNil()); + expect([SDLButtonPressMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLButtonPressMode values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLButtonPressMode LONG], + [SDLButtonPressMode SHORT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCarModeStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCarModeStatusSpec.m new file mode 100644 index 000000000..78f04e837 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCarModeStatusSpec.m @@ -0,0 +1,60 @@ +// +// SDLCarModeStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLCarModeStatus.h" + +QuickSpecBegin(SDLCarModeStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLCarModeStatus NORMAL].value).to(equal(@"NORMAL")); + expect([SDLCarModeStatus FACTORY].value).to(equal(@"FACTORY")); + expect([SDLCarModeStatus TRANSPORT].value).to(equal(@"TRANSPORT")); + expect([SDLCarModeStatus CRASH].value).to(equal(@"CRASH")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLCarModeStatus valueOf:@"NORMAL"]).to(equal([SDLCarModeStatus NORMAL])); + expect([SDLCarModeStatus valueOf:@"FACTORY"]).to(equal([SDLCarModeStatus FACTORY])); + expect([SDLCarModeStatus valueOf:@"TRANSPORT"]).to(equal([SDLCarModeStatus TRANSPORT])); + expect([SDLCarModeStatus valueOf:@"CRASH"]).to(equal([SDLCarModeStatus CRASH])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLCarModeStatus valueOf:nil]).to(beNil()); + expect([SDLCarModeStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLCarModeStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLCarModeStatus NORMAL], + [SDLCarModeStatus FACTORY], + [SDLCarModeStatus TRANSPORT], + [SDLCarModeStatus CRASH]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd + diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCharacterSetSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCharacterSetSpec.m new file mode 100644 index 000000000..df29296a5 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCharacterSetSpec.m @@ -0,0 +1,59 @@ +// +// SDLCharacterSetSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLCharacterSet.h" + +QuickSpecBegin(SDLCharacterSetSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLCharacterSet TYPE2SET].value).to(equal(@"TYPE2SET")); + expect([SDLCharacterSet TYPE5SET].value).to(equal(@"TYPE5SET")); + expect([SDLCharacterSet CID1SET].value).to(equal(@"CID1SET")); + expect([SDLCharacterSet CID2SET].value).to(equal(@"CID2SET")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLCharacterSet valueOf:@"TYPE2SET"]).to(equal([SDLCharacterSet TYPE2SET])); + expect([SDLCharacterSet valueOf:@"TYPE5SET"]).to(equal([SDLCharacterSet TYPE5SET])); + expect([SDLCharacterSet valueOf:@"CID1SET"]).to(equal([SDLCharacterSet CID1SET])); + expect([SDLCharacterSet valueOf:@"CID2SET"]).to(equal([SDLCharacterSet CID2SET])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLCharacterSet valueOf:nil]).to(beNil()); + expect([SDLCharacterSet valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLCharacterSet values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLCharacterSet TYPE2SET], + [SDLCharacterSet TYPE5SET], + [SDLCharacterSet CID1SET], + [SDLCharacterSet CID2SET]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCompassDirectionSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCompassDirectionSpec.m new file mode 100644 index 000000000..49a10e02d --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCompassDirectionSpec.m @@ -0,0 +1,71 @@ +// +// SDLCompassDirectionSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLCompassDirection.h" + +QuickSpecBegin(SDLCompassDirectionSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLCompassDirection NORTH].value).to(equal(@"NORTH")); + expect([SDLCompassDirection NORTHWEST].value).to(equal(@"NORTHWEST")); + expect([SDLCompassDirection WEST].value).to(equal(@"WEST")); + expect([SDLCompassDirection SOUTHWEST].value).to(equal(@"SOUTHWEST")); + expect([SDLCompassDirection SOUTH].value).to(equal(@"SOUTH")); + expect([SDLCompassDirection SOUTHEAST].value).to(equal(@"SOUTHEAST")); + expect([SDLCompassDirection EAST].value).to(equal(@"EAST")); + expect([SDLCompassDirection NORTHEAST].value).to(equal(@"NORTHEAST")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLCompassDirection valueOf:@"NORTH"]).to(equal([SDLCompassDirection NORTH])); + expect([SDLCompassDirection valueOf:@"NORTHWEST"]).to(equal([SDLCompassDirection NORTHWEST])); + expect([SDLCompassDirection valueOf:@"WEST"]).to(equal([SDLCompassDirection WEST])); + expect([SDLCompassDirection valueOf:@"SOUTHWEST"]).to(equal([SDLCompassDirection SOUTHWEST])); + expect([SDLCompassDirection valueOf:@"SOUTH"]).to(equal([SDLCompassDirection SOUTH])); + expect([SDLCompassDirection valueOf:@"SOUTHEAST"]).to(equal([SDLCompassDirection SOUTHEAST])); + expect([SDLCompassDirection valueOf:@"EAST"]).to(equal([SDLCompassDirection EAST])); + expect([SDLCompassDirection valueOf:@"NORTHEAST"]).to(equal([SDLCompassDirection NORTHEAST])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLCompassDirection valueOf:nil]).to(beNil()); + expect([SDLCompassDirection valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLCompassDirection values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLCompassDirection NORTH], + [SDLCompassDirection NORTHWEST], + [SDLCompassDirection WEST], + [SDLCompassDirection SOUTHWEST], + [SDLCompassDirection SOUTH], + [SDLCompassDirection SOUTHEAST], + [SDLCompassDirection EAST], + [SDLCompassDirection NORTHEAST]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLComponentVolumeStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLComponentVolumeStatusSpec.m new file mode 100644 index 000000000..491e802aa --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLComponentVolumeStatusSpec.m @@ -0,0 +1,65 @@ +// +// SDLComponentVolumeStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLComponentVolumeStatus.h" + +QuickSpecBegin(SDLComponentVolumeStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLComponentVolumeStatus UNKNOWN].value).to(equal(@"UNKNOWN")); + expect([SDLComponentVolumeStatus NORMAL].value).to(equal(@"NORMAL")); + expect([SDLComponentVolumeStatus LOW].value).to(equal(@"LOW")); + expect([SDLComponentVolumeStatus FAULT].value).to(equal(@"FAULT")); + expect([SDLComponentVolumeStatus ALERT].value).to(equal(@"ALERT")); + expect([SDLComponentVolumeStatus NOT_SUPPORTED].value).to(equal(@"NOT_SUPPORTED")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLComponentVolumeStatus valueOf:@"UNKNOWN"]).to(equal([SDLComponentVolumeStatus UNKNOWN])); + expect([SDLComponentVolumeStatus valueOf:@"NORMAL"]).to(equal([SDLComponentVolumeStatus NORMAL])); + expect([SDLComponentVolumeStatus valueOf:@"LOW"]).to(equal([SDLComponentVolumeStatus LOW])); + expect([SDLComponentVolumeStatus valueOf:@"FAULT"]).to(equal([SDLComponentVolumeStatus FAULT])); + expect([SDLComponentVolumeStatus valueOf:@"ALERT"]).to(equal([SDLComponentVolumeStatus ALERT])); + expect([SDLComponentVolumeStatus valueOf:@"NOT_SUPPORTED"]).to(equal([SDLComponentVolumeStatus NOT_SUPPORTED])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLComponentVolumeStatus valueOf:nil]).to(beNil()); + expect([SDLComponentVolumeStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLComponentVolumeStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLComponentVolumeStatus UNKNOWN], + [SDLComponentVolumeStatus NORMAL], + [SDLComponentVolumeStatus LOW], + [SDLComponentVolumeStatus FAULT], + [SDLComponentVolumeStatus ALERT], + [SDLComponentVolumeStatus NOT_SUPPORTED]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDeviceLevelStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDeviceLevelStatusSpec.m new file mode 100644 index 000000000..70f1bfb61 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDeviceLevelStatusSpec.m @@ -0,0 +1,65 @@ +// +// SDLDeviceLevelStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDeviceLevelStatus.h" + +QuickSpecBegin(SDLDeviceLevelStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLDeviceLevelStatus ZERO_LEVEL_BARS].value).to(equal(@"ZERO_LEVEL_BARS")); + expect([SDLDeviceLevelStatus ONE_LEVEL_BARS].value).to(equal(@"ONE_LEVEL_BARS")); + expect([SDLDeviceLevelStatus TWO_LEVEL_BARS].value).to(equal(@"TWO_LEVEL_BARS")); + expect([SDLDeviceLevelStatus THREE_LEVEL_BARS].value).to(equal(@"THREE_LEVEL_BARS")); + expect([SDLDeviceLevelStatus FOUR_LEVEL_BARS].value).to(equal(@"FOUR_LEVEL_BARS")); + expect([SDLDeviceLevelStatus NOT_PROVIDED].value).to(equal(@"NOT_PROVIDED")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLDeviceLevelStatus valueOf:@"ZERO_LEVEL_BARS"]).to(equal([SDLDeviceLevelStatus ZERO_LEVEL_BARS])); + expect([SDLDeviceLevelStatus valueOf:@"ONE_LEVEL_BARS"]).to(equal([SDLDeviceLevelStatus ONE_LEVEL_BARS])); + expect([SDLDeviceLevelStatus valueOf:@"TWO_LEVEL_BARS"]).to(equal([SDLDeviceLevelStatus TWO_LEVEL_BARS])); + expect([SDLDeviceLevelStatus valueOf:@"THREE_LEVEL_BARS"]).to(equal([SDLDeviceLevelStatus THREE_LEVEL_BARS])); + expect([SDLDeviceLevelStatus valueOf:@"FOUR_LEVEL_BARS"]).to(equal([SDLDeviceLevelStatus FOUR_LEVEL_BARS])); + expect([SDLDeviceLevelStatus valueOf:@"NOT_PROVIDED"]).to(equal([SDLDeviceLevelStatus NOT_PROVIDED])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLDeviceLevelStatus valueOf:nil]).to(beNil()); + expect([SDLDeviceLevelStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLDeviceLevelStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLDeviceLevelStatus ZERO_LEVEL_BARS], + [SDLDeviceLevelStatus ONE_LEVEL_BARS], + [SDLDeviceLevelStatus TWO_LEVEL_BARS], + [SDLDeviceLevelStatus THREE_LEVEL_BARS], + [SDLDeviceLevelStatus FOUR_LEVEL_BARS], + [SDLDeviceLevelStatus NOT_PROVIDED]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDimensionSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDimensionSpec.m new file mode 100644 index 000000000..e65ee8201 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDimensionSpec.m @@ -0,0 +1,56 @@ +// +// SDLDimensionSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDimension.h" + +QuickSpecBegin(SDLDimensionSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLDimension NO_FIX].value).to(equal(@"NO_FIX")); + expect([SDLDimension _2D].value).to(equal(@"2D")); + expect([SDLDimension _3D].value).to(equal(@"3D")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLDimension valueOf:@"NO_FIX"]).to(equal([SDLDimension NO_FIX])); + expect([SDLDimension valueOf:@"2D"]).to(equal([SDLDimension _2D])); + expect([SDLDimension valueOf:@"3D"]).to(equal([SDLDimension _3D])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLDimension valueOf:nil]).to(beNil()); + expect([SDLDimension valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLDimension values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLDimension NO_FIX], + [SDLDimension _2D], + [SDLDimension _3D]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDisplayTypeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDisplayTypeSpec.m new file mode 100644 index 000000000..964736fbc --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDisplayTypeSpec.m @@ -0,0 +1,80 @@ +// +// SDLDisplayTypeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDisplayType.h" + +QuickSpecBegin(SDLDisplayTypeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLDisplayType CID].value).to(equal(@"CID")); + expect([SDLDisplayType TYPE2].value).to(equal(@"TYPE2")); + expect([SDLDisplayType TYPE5].value).to(equal(@"TYPE5")); + expect([SDLDisplayType NGN].value).to(equal(@"NGN")); + expect([SDLDisplayType GEN2_6_DMA].value).to(equal(@"GEN2_6_DMA")); + expect([SDLDisplayType GEN2_8_DMA].value).to(equal(@"GEN2_8_DMA")); + expect([SDLDisplayType MFD3].value).to(equal(@"MFD3")); + expect([SDLDisplayType MFD4].value).to(equal(@"MFD4")); + expect([SDLDisplayType MFD5].value).to(equal(@"MFD5")); + //NOT DEFINED IN SPEC + expect([SDLDisplayType GEN3_8_INCH].value).to(equal(@"GEN3_8-INCH")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLDisplayType valueOf:@"CID"]).to(equal([SDLDisplayType CID])); + expect([SDLDisplayType valueOf:@"TYPE2"]).to(equal([SDLDisplayType TYPE2])); + expect([SDLDisplayType valueOf:@"TYPE5"]).to(equal([SDLDisplayType TYPE5])); + expect([SDLDisplayType valueOf:@"NGN"]).to(equal([SDLDisplayType NGN])); + expect([SDLDisplayType valueOf:@"GEN2_6_DMA"]).to(equal([SDLDisplayType GEN2_6_DMA])); + expect([SDLDisplayType valueOf:@"GEN2_8_DMA"]).to(equal([SDLDisplayType GEN2_8_DMA])); + expect([SDLDisplayType valueOf:@"MFD3"]).to(equal([SDLDisplayType MFD3])); + expect([SDLDisplayType valueOf:@"MFD4"]).to(equal([SDLDisplayType MFD4])); + expect([SDLDisplayType valueOf:@"MFD5"]).to(equal([SDLDisplayType MFD5])); + //NOT DEFINED IN SPEC + expect([SDLDisplayType valueOf:@"GEN3_8-INCH"]).to(equal([SDLDisplayType GEN3_8_INCH])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLDisplayType valueOf:nil]).to(beNil()); + expect([SDLDisplayType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLDisplayType values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLDisplayType CID], + [SDLDisplayType TYPE2], + [SDLDisplayType TYPE5], + [SDLDisplayType NGN], + [SDLDisplayType GEN2_6_DMA], + [SDLDisplayType GEN2_8_DMA], + [SDLDisplayType MFD3], + [SDLDisplayType MFD4], + [SDLDisplayType MFD5], + //NOT DEFINED IN SPEC + [SDLDisplayType GEN3_8_INCH]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDriverDistractionStateSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDriverDistractionStateSpec.m new file mode 100644 index 000000000..8280259bc --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDriverDistractionStateSpec.m @@ -0,0 +1,53 @@ +// +// SDLDriverDistractionStateSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDriverDistractionState.h" + +QuickSpecBegin(SDLDriverDistractionStateSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLDriverDistractionState DD_OFF].value).to(equal(@"DD_OFF")); + expect([SDLDriverDistractionState DD_ON].value).to(equal(@"DD_ON")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLDriverDistractionState valueOf:@"DD_OFF"]).to(equal([SDLDriverDistractionState DD_OFF])); + expect([SDLDriverDistractionState valueOf:@"DD_ON"]).to(equal([SDLDriverDistractionState DD_ON])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLDriverDistractionState valueOf:nil]).to(beNil()); + expect([SDLDriverDistractionState valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLDriverDistractionState values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLDriverDistractionState DD_OFF], + [SDLDriverDistractionState DD_ON]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLECallConfirmationStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLECallConfirmationStatusSpec.m new file mode 100644 index 000000000..aa5398c94 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLECallConfirmationStatusSpec.m @@ -0,0 +1,68 @@ +// +// SDLECallConfirmationStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLECallConfirmationStatus.h" + +QuickSpecBegin(SDLECallConfirmationStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLECallConfirmationStatus NORMAL].value).to(equal(@"NORMAL")); + expect([SDLECallConfirmationStatus CALL_IN_PROGRESS].value).to(equal(@"CALL_IN_PROGRESS")); + expect([SDLECallConfirmationStatus CALL_CANCELLED].value).to(equal(@"CALL_CANCELLED")); + expect([SDLECallConfirmationStatus CALL_COMPLETED].value).to(equal(@"CALL_COMPLETED")); + expect([SDLECallConfirmationStatus CALL_UNSUCCESSFUL].value).to(equal(@"CALL_UNSUCCESSFUL")); + expect([SDLECallConfirmationStatus ECALL_CONFIGURED_OFF].value).to(equal(@"ECALL_CONFIGURED_OFF")); + expect([SDLECallConfirmationStatus CALL_COMPLETE_DTMF_TIMEOUT].value).to(equal(@"CALL_COMPLETE_DTMF_TIMEOUT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLECallConfirmationStatus valueOf:@"NORMAL"]).to(equal([SDLECallConfirmationStatus NORMAL])); + expect([SDLECallConfirmationStatus valueOf:@"CALL_IN_PROGRESS"]).to(equal([SDLECallConfirmationStatus CALL_IN_PROGRESS])); + expect([SDLECallConfirmationStatus valueOf:@"CALL_CANCELLED"]).to(equal([SDLECallConfirmationStatus CALL_CANCELLED])); + expect([SDLECallConfirmationStatus valueOf:@"CALL_COMPLETED"]).to(equal([SDLECallConfirmationStatus CALL_COMPLETED])); + expect([SDLECallConfirmationStatus valueOf:@"CALL_UNSUCCESSFUL"]).to(equal([SDLECallConfirmationStatus CALL_UNSUCCESSFUL])); + expect([SDLECallConfirmationStatus valueOf:@"ECALL_CONFIGURED_OFF"]).to(equal([SDLECallConfirmationStatus ECALL_CONFIGURED_OFF])); + expect([SDLECallConfirmationStatus valueOf:@"CALL_COMPLETE_DTMF_TIMEOUT"]).to(equal([SDLECallConfirmationStatus CALL_COMPLETE_DTMF_TIMEOUT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLECallConfirmationStatus valueOf:nil]).to(beNil()); + expect([SDLECallConfirmationStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLECallConfirmationStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLECallConfirmationStatus NORMAL], + [SDLECallConfirmationStatus CALL_IN_PROGRESS], + [SDLECallConfirmationStatus CALL_CANCELLED], + [SDLECallConfirmationStatus CALL_COMPLETED], + [SDLECallConfirmationStatus CALL_UNSUCCESSFUL], + [SDLECallConfirmationStatus ECALL_CONFIGURED_OFF], + [SDLECallConfirmationStatus CALL_COMPLETE_DTMF_TIMEOUT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLEmergencyEventTypeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLEmergencyEventTypeSpec.m new file mode 100644 index 000000000..ff0126233 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLEmergencyEventTypeSpec.m @@ -0,0 +1,68 @@ +// +// SDLEmergencyEventTypeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLEmergencyEventType.h" + +QuickSpecBegin(SDLEmergencyEventTypeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLEmergencyEventType NO_EVENT].value).to(equal(@"NO_EVENT")); + expect([SDLEmergencyEventType FRONTAL].value).to(equal(@"FRONTAL")); + expect([SDLEmergencyEventType SIDE].value).to(equal(@"SIDE")); + expect([SDLEmergencyEventType REAR].value).to(equal(@"REAR")); + expect([SDLEmergencyEventType ROLLOVER].value).to(equal(@"ROLLOVER")); + expect([SDLEmergencyEventType NOT_SUPPORTED].value).to(equal(@"NOT_SUPPORTED")); + expect([SDLEmergencyEventType FAULT].value).to(equal(@"FAULT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLEmergencyEventType valueOf:@"NO_EVENT"]).to(equal([SDLEmergencyEventType NO_EVENT])); + expect([SDLEmergencyEventType valueOf:@"FRONTAL"]).to(equal([SDLEmergencyEventType FRONTAL])); + expect([SDLEmergencyEventType valueOf:@"SIDE"]).to(equal([SDLEmergencyEventType SIDE])); + expect([SDLEmergencyEventType valueOf:@"REAR"]).to(equal([SDLEmergencyEventType REAR])); + expect([SDLEmergencyEventType valueOf:@"ROLLOVER"]).to(equal([SDLEmergencyEventType ROLLOVER])); + expect([SDLEmergencyEventType valueOf:@"NOT_SUPPORTED"]).to(equal([SDLEmergencyEventType NOT_SUPPORTED])); + expect([SDLEmergencyEventType valueOf:@"FAULT"]).to(equal([SDLEmergencyEventType FAULT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLEmergencyEventType valueOf:nil]).to(beNil()); + expect([SDLEmergencyEventType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLEmergencyEventType values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLEmergencyEventType NO_EVENT], + [SDLEmergencyEventType FRONTAL], + [SDLEmergencyEventType SIDE], + [SDLEmergencyEventType REAR], + [SDLEmergencyEventType ROLLOVER], + [SDLEmergencyEventType NOT_SUPPORTED], + [SDLEmergencyEventType FAULT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFileTypeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFileTypeSpec.m new file mode 100644 index 000000000..77eab74dc --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFileTypeSpec.m @@ -0,0 +1,71 @@ +// +// SDLFileTypeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLFileType.h" + +QuickSpecBegin(SDLFileTypeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLFileType GRAPHIC_BMP].value).to(equal(@"GRAPHIC_BMP")); + expect([SDLFileType GRAPHIC_JPEG].value).to(equal(@"GRAPHIC_JPEG")); + expect([SDLFileType GRAPHIC_PNG].value).to(equal(@"GRAPHIC_PNG")); + expect([SDLFileType AUDIO_WAVE].value).to(equal(@"AUDIO_WAVE")); + expect([SDLFileType AUDIO_MP3].value).to(equal(@"AUDIO_MP3")); + expect([SDLFileType AUDIO_AAC].value).to(equal(@"AUDIO_AAC")); + expect([SDLFileType BINARY].value).to(equal(@"BINARY")); + expect([SDLFileType JSON].value).to(equal(@"JSON")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLFileType valueOf:@"GRAPHIC_BMP"]).to(equal([SDLFileType GRAPHIC_BMP])); + expect([SDLFileType valueOf:@"GRAPHIC_JPEG"]).to(equal([SDLFileType GRAPHIC_JPEG])); + expect([SDLFileType valueOf:@"GRAPHIC_PNG"]).to(equal([SDLFileType GRAPHIC_PNG])); + expect([SDLFileType valueOf:@"AUDIO_WAVE"]).to(equal([SDLFileType AUDIO_WAVE])); + expect([SDLFileType valueOf:@"AUDIO_MP3"]).to(equal([SDLFileType AUDIO_MP3])); + expect([SDLFileType valueOf:@"AUDIO_AAC"]).to(equal([SDLFileType AUDIO_AAC])); + expect([SDLFileType valueOf:@"BINARY"]).to(equal([SDLFileType BINARY])); + expect([SDLFileType valueOf:@"JSON"]).to(equal([SDLFileType JSON])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLFileType valueOf:nil]).to(beNil()); + expect([SDLFileType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLFileType values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLFileType GRAPHIC_BMP], + [SDLFileType GRAPHIC_JPEG], + [SDLFileType GRAPHIC_PNG], + [SDLFileType AUDIO_WAVE], + [SDLFileType AUDIO_MP3], + [SDLFileType AUDIO_AAC], + [SDLFileType BINARY], + [SDLFileType JSON]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFuelCutoffStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFuelCutoffStatusSpec.m new file mode 100644 index 000000000..d4833ff40 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLFuelCutoffStatusSpec.m @@ -0,0 +1,56 @@ +// +// SDLFuelCutoffStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLFuelCutoffStatus.h" + +QuickSpecBegin(SDLFuelCutoffStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLFuelCutoffStatus TERMINATE_FUEL].value).to(equal(@"TERMINATE_FUEL")); + expect([SDLFuelCutoffStatus NORMAL_OPERATION].value).to(equal(@"NORMAL_OPERATION")); + expect([SDLFuelCutoffStatus FAULT].value).to(equal(@"FAULT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLFuelCutoffStatus valueOf:@"TERMINATE_FUEL"]).to(equal([SDLFuelCutoffStatus TERMINATE_FUEL])); + expect([SDLFuelCutoffStatus valueOf:@"NORMAL_OPERATION"]).to(equal([SDLFuelCutoffStatus NORMAL_OPERATION])); + expect([SDLFuelCutoffStatus valueOf:@"FAULT"]).to(equal([SDLFuelCutoffStatus FAULT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLFuelCutoffStatus valueOf:nil]).to(beNil()); + expect([SDLFuelCutoffStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLFuelCutoffStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLFuelCutoffStatus TERMINATE_FUEL], + [SDLFuelCutoffStatus NORMAL_OPERATION], + [SDLFuelCutoffStatus FAULT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLGlobalProperySpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLGlobalProperySpec.m new file mode 100644 index 000000000..2844dcf41 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLGlobalProperySpec.m @@ -0,0 +1,68 @@ +// +// SDLGlobalPropertySpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLGlobalProperty.h" + +QuickSpecBegin(SDLGlobalPropertySpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLGlobalProperty HELPPROMPT].value).to(equal(@"HELPPROMPT")); + expect([SDLGlobalProperty TIMEOUTPROMPT].value).to(equal(@"TIMEOUTPROMPT")); + expect([SDLGlobalProperty VRHELPTITLE].value).to(equal(@"VRHELPTITLE")); + expect([SDLGlobalProperty VRHELPITEMS].value).to(equal(@"VRHELPITEMS")); + expect([SDLGlobalProperty MENUNAME].value).to(equal(@"MENUNAME")); + expect([SDLGlobalProperty MENUICON].value).to(equal(@"MENUICON")); + expect([SDLGlobalProperty KEYBOARDPROPERTIES].value).to(equal(@"KEYBOARDPROPERTIES")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLGlobalProperty valueOf:@"HELPPROMPT"]).to(equal([SDLGlobalProperty HELPPROMPT])); + expect([SDLGlobalProperty valueOf:@"TIMEOUTPROMPT"]).to(equal([SDLGlobalProperty TIMEOUTPROMPT])); + expect([SDLGlobalProperty valueOf:@"VRHELPTITLE"]).to(equal([SDLGlobalProperty VRHELPTITLE])); + expect([SDLGlobalProperty valueOf:@"VRHELPITEMS"]).to(equal([SDLGlobalProperty VRHELPITEMS])); + expect([SDLGlobalProperty valueOf:@"MENUNAME"]).to(equal([SDLGlobalProperty MENUNAME])); + expect([SDLGlobalProperty valueOf:@"MENUICON"]).to(equal([SDLGlobalProperty MENUICON])); + expect([SDLGlobalProperty valueOf:@"KEYBOARDPROPERTIES"]).to(equal([SDLGlobalProperty KEYBOARDPROPERTIES])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLGlobalProperty valueOf:nil]).to(beNil()); + expect([SDLGlobalProperty valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLGlobalProperty values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLGlobalProperty HELPPROMPT], + [SDLGlobalProperty TIMEOUTPROMPT], + [SDLGlobalProperty VRHELPTITLE], + [SDLGlobalProperty VRHELPITEMS], + [SDLGlobalProperty MENUNAME], + [SDLGlobalProperty MENUICON], + [SDLGlobalProperty KEYBOARDPROPERTIES]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMILevelSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMILevelSpec.m new file mode 100644 index 000000000..8b9d9f9b7 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMILevelSpec.m @@ -0,0 +1,59 @@ +// +// SDLHMILevelSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLHMILevel.h" + +QuickSpecBegin(SDLHMILevelSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLHMILevel FULL].value).to(equal(@"FULL")); + expect([SDLHMILevel LIMITED].value).to(equal(@"LIMITED")); + expect([SDLHMILevel BACKGROUND].value).to(equal(@"BACKGROUND")); + expect([SDLHMILevel NONE].value).to(equal(@"NONE")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLHMILevel valueOf:@"FULL"]).to(equal([SDLHMILevel FULL])); + expect([SDLHMILevel valueOf:@"LIMITED"]).to(equal([SDLHMILevel LIMITED])); + expect([SDLHMILevel valueOf:@"BACKGROUND"]).to(equal([SDLHMILevel BACKGROUND])); + expect([SDLHMILevel valueOf:@"NONE"]).to(equal([SDLHMILevel NONE])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLHMILevel valueOf:nil]).to(beNil()); + expect([SDLHMILevel valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLHMILevel values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLHMILevel FULL], + [SDLHMILevel LIMITED], + [SDLHMILevel BACKGROUND], + [SDLHMILevel NONE]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMIZoneCapabilitiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMIZoneCapabilitiesSpec.m new file mode 100644 index 000000000..d19e1f855 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMIZoneCapabilitiesSpec.m @@ -0,0 +1,53 @@ +// +// SDLHMIZoneCapabilitiesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLHMIZoneCapabilities.h" + +QuickSpecBegin(SDLHmiZoneCapabilitiesSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLHMIZoneCapabilities FRONT].value).to(equal(@"FRONT")); + expect([SDLHMIZoneCapabilities BACK].value).to(equal(@"BACK")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLHMIZoneCapabilities valueOf:@"FRONT"]).to(equal([SDLHMIZoneCapabilities FRONT])); + expect([SDLHMIZoneCapabilities valueOf:@"BACK"]).to(equal([SDLHMIZoneCapabilities BACK])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLHMIZoneCapabilities valueOf:nil]).to(beNil()); + expect([SDLHMIZoneCapabilities valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLHMIZoneCapabilities values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLHMIZoneCapabilities FRONT], + [SDLHMIZoneCapabilities BACK]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStableStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStableStatusSpec.m new file mode 100644 index 000000000..bbe507499 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStableStatusSpec.m @@ -0,0 +1,56 @@ +// +// SDLIgnitionStableStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLIgnitionStableStatus.h" + +QuickSpecBegin(SDLIgnitionStableStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLIgnitionStableStatus IGNITION_SWITCH_NOT_STABLE].value).to(equal(@"IGNITION_SWITCH_NOT_STABLE")); + expect([SDLIgnitionStableStatus IGNITION_SWITCH_STABLE].value).to(equal(@"IGNITION_SWITCH_STABLE")); + expect([SDLIgnitionStableStatus MISSING_FROM_TRANSMITTER].value).to(equal(@"MISSING_FROM_TRANSMITTER")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLIgnitionStableStatus valueOf:@"IGNITION_SWITCH_NOT_STABLE"]).to(equal([SDLIgnitionStableStatus IGNITION_SWITCH_NOT_STABLE])); + expect([SDLIgnitionStableStatus valueOf:@"IGNITION_SWITCH_STABLE"]).to(equal([SDLIgnitionStableStatus IGNITION_SWITCH_STABLE])); + expect([SDLIgnitionStableStatus valueOf:@"MISSING_FROM_TRANSMITTER"]).to(equal([SDLIgnitionStableStatus MISSING_FROM_TRANSMITTER])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLIgnitionStableStatus valueOf:nil]).to(beNil()); + expect([SDLIgnitionStableStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLIgnitionStableStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLIgnitionStableStatus IGNITION_SWITCH_NOT_STABLE], + [SDLIgnitionStableStatus IGNITION_SWITCH_STABLE], + [SDLIgnitionStableStatus MISSING_FROM_TRANSMITTER]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStatusSpec.m new file mode 100644 index 000000000..c36c30c23 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLIgnitionStatusSpec.m @@ -0,0 +1,65 @@ +// +// SDLIgnitionStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLIgnitionStatus.h" + +QuickSpecBegin(SDLIgnitionStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLIgnitionStatus UNKNOWN].value).to(equal(@"UNKNOWN")); + expect([SDLIgnitionStatus OFF].value).to(equal(@"OFF")); + expect([SDLIgnitionStatus ACCESSORY].value).to(equal(@"ACCESSORY")); + expect([SDLIgnitionStatus RUN].value).to(equal(@"RUN")); + expect([SDLIgnitionStatus START].value).to(equal(@"START")); + expect([SDLIgnitionStatus INVALID].value).to(equal(@"INVALID")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLIgnitionStatus valueOf:@"UNKNOWN"]).to(equal([SDLIgnitionStatus UNKNOWN])); + expect([SDLIgnitionStatus valueOf:@"OFF"]).to(equal([SDLIgnitionStatus OFF])); + expect([SDLIgnitionStatus valueOf:@"ACCESSORY"]).to(equal([SDLIgnitionStatus ACCESSORY])); + expect([SDLIgnitionStatus valueOf:@"RUN"]).to(equal([SDLIgnitionStatus RUN])); + expect([SDLIgnitionStatus valueOf:@"START"]).to(equal([SDLIgnitionStatus START])); + expect([SDLIgnitionStatus valueOf:@"INVALID"]).to(equal([SDLIgnitionStatus INVALID])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLIgnitionStatus valueOf:nil]).to(beNil()); + expect([SDLIgnitionStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLIgnitionStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLIgnitionStatus UNKNOWN], + [SDLIgnitionStatus OFF], + [SDLIgnitionStatus ACCESSORY], + [SDLIgnitionStatus RUN], + [SDLIgnitionStatus START], + [SDLIgnitionStatus INVALID]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageFieldNameSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageFieldNameSpec.m new file mode 100644 index 000000000..5b19dc384 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageFieldNameSpec.m @@ -0,0 +1,86 @@ +// +// SDLImageFieldNameSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLImageFieldName.h" + +QuickSpecBegin(SDLImageFieldNameSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLImageFieldName softButtonImage].value).to(equal(@"softButtonImage")); + expect([SDLImageFieldName choiceImage].value).to(equal(@"choiceImage")); + expect([SDLImageFieldName choiceSecondaryImage].value).to(equal(@"choiceSecondaryImage")); + expect([SDLImageFieldName vrHelpItem].value).to(equal(@"vrHelpItem")); + expect([SDLImageFieldName turnIcon].value).to(equal(@"turnIcon")); + expect([SDLImageFieldName menuIcon].value).to(equal(@"menuIcon")); + expect([SDLImageFieldName cmdIcon].value).to(equal(@"cmdIcon")); + expect([SDLImageFieldName appIcon].value).to(equal(@"appIcon")); + expect([SDLImageFieldName graphic].value).to(equal(@"graphic")); + expect([SDLImageFieldName showConstantTBTIcon].value).to(equal(@"showConstantTBTIcon")); + expect([SDLImageFieldName showConstantTBTNextTurnIcon].value).to(equal(@"showConstantTBTNextTurnIcon")); + expect([SDLImageFieldName locationImage].value).to(equal(@"locationImage")); + }); +}); + +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLImageFieldName valueOf:@"softButtonImage"]).to(equal([SDLImageFieldName softButtonImage])); + expect([SDLImageFieldName valueOf:@"choiceImage"]).to(equal([SDLImageFieldName choiceImage])); + expect([SDLImageFieldName valueOf:@"choiceSecondaryImage"]).to(equal([SDLImageFieldName choiceSecondaryImage])); + expect([SDLImageFieldName valueOf:@"vrHelpItem"]).to(equal([SDLImageFieldName vrHelpItem])); + expect([SDLImageFieldName valueOf:@"turnIcon"]).to(equal([SDLImageFieldName turnIcon])); + expect([SDLImageFieldName valueOf:@"menuIcon"]).to(equal([SDLImageFieldName menuIcon])); + expect([SDLImageFieldName valueOf:@"cmdIcon"]).to(equal([SDLImageFieldName cmdIcon])); + expect([SDLImageFieldName valueOf:@"appIcon"]).to(equal([SDLImageFieldName appIcon])); + expect([SDLImageFieldName valueOf:@"graphic"]).to(equal([SDLImageFieldName graphic])); + expect([SDLImageFieldName valueOf:@"showConstantTBTIcon"]).to(equal([SDLImageFieldName showConstantTBTIcon])); + expect([SDLImageFieldName valueOf:@"showConstantTBTNextTurnIcon"]).to(equal([SDLImageFieldName showConstantTBTNextTurnIcon])); + expect([SDLImageFieldName valueOf:@"locationImage"]).to(equal([SDLImageFieldName locationImage])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLImageFieldName valueOf:nil]).to(beNil()); + expect([SDLImageFieldName valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); + +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLImageFieldName values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLImageFieldName softButtonImage], + [SDLImageFieldName choiceImage], + [SDLImageFieldName choiceSecondaryImage], + [SDLImageFieldName vrHelpItem], + [SDLImageFieldName turnIcon], + [SDLImageFieldName menuIcon], + [SDLImageFieldName cmdIcon], + [SDLImageFieldName appIcon], + [SDLImageFieldName graphic], + [SDLImageFieldName showConstantTBTIcon], + [SDLImageFieldName locationImage], + [SDLImageFieldName showConstantTBTNextTurnIcon]] copy]; + + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageTypeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageTypeSpec.m new file mode 100644 index 000000000..1a63bf7f8 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageTypeSpec.m @@ -0,0 +1,53 @@ +// +// SDLImageTypeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLImageType.h" + +QuickSpecBegin(SDLImageTypeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLImageType STATIC].value).to(equal(@"STATIC")); + expect([SDLImageType DYNAMIC].value).to(equal(@"DYNAMIC")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLImageType valueOf:@"STATIC"]).to(equal([SDLImageType STATIC])); + expect([SDLImageType valueOf:@"DYNAMIC"]).to(equal([SDLImageType DYNAMIC])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLImageType valueOf:nil]).to(beNil()); + expect([SDLImageType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLImageType values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLImageType STATIC], + [SDLImageType DYNAMIC]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLInteractionModeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLInteractionModeSpec.m new file mode 100644 index 000000000..95341e347 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLInteractionModeSpec.m @@ -0,0 +1,56 @@ +// +// SDLInteractionModeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLInteractionMode.h" + +QuickSpecBegin(SDLInteractionModeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLInteractionMode MANUAL_ONLY].value).to(equal(@"MANUAL_ONLY")); + expect([SDLInteractionMode VR_ONLY].value).to(equal(@"VR_ONLY")); + expect([SDLInteractionMode BOTH].value).to(equal(@"BOTH")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLInteractionMode valueOf:@"MANUAL_ONLY"]).to(equal([SDLInteractionMode MANUAL_ONLY])); + expect([SDLInteractionMode valueOf:@"VR_ONLY"]).to(equal([SDLInteractionMode VR_ONLY])); + expect([SDLInteractionMode valueOf:@"BOTH"]).to(equal([SDLInteractionMode BOTH])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLInteractionMode valueOf:nil]).to(beNil()); + expect([SDLInteractionMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLInteractionMode values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLInteractionMode MANUAL_ONLY], + [SDLInteractionMode VR_ONLY], + [SDLInteractionMode BOTH]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardEventSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardEventSpec.m new file mode 100644 index 000000000..560876185 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardEventSpec.m @@ -0,0 +1,64 @@ +// +// SDLKeyboardEventSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLKeyboardEvent.h" + +QuickSpecBegin(SDLKeyboardEventSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLKeyboardEvent KEYPRESS].value).to(equal(@"KEYPRESS")); + expect([SDLKeyboardEvent ENTRY_SUBMITTED].value).to(equal(@"ENTRY_SUBMITTED")); + expect([SDLKeyboardEvent ENTRY_CANCELLED].value).to(equal(@"ENTRY_CANCELLED")); + expect([SDLKeyboardEvent ENTRY_ABORTED].value).to(equal(@"ENTRY_ABORTED")); + expect([SDLKeyboardEvent ENTRY_VOICE].value).to(equal(@"ENTRY_VOICE")); + }); +}); + +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLKeyboardEvent valueOf:@"KEYPRESS"]).to(equal([SDLKeyboardEvent KEYPRESS])); + expect([SDLKeyboardEvent valueOf:@"ENTRY_SUBMITTED"]).to(equal([SDLKeyboardEvent ENTRY_SUBMITTED])); + expect([SDLKeyboardEvent valueOf:@"ENTRY_CANCELLED"]).to(equal([SDLKeyboardEvent ENTRY_CANCELLED])); + expect([SDLKeyboardEvent valueOf:@"ENTRY_ABORTED"]).to(equal([SDLKeyboardEvent ENTRY_ABORTED])); + expect([SDLKeyboardEvent valueOf:@"ENTRY_VOICE"]).to(equal([SDLKeyboardEvent ENTRY_VOICE])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLKeyboardEvent valueOf:nil]).to(beNil()); + expect([SDLKeyboardEvent valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); + +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLKeyboardEvent values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLKeyboardEvent KEYPRESS], + [SDLKeyboardEvent ENTRY_SUBMITTED], + [SDLKeyboardEvent ENTRY_CANCELLED], + [SDLKeyboardEvent ENTRY_ABORTED], + [SDLKeyboardEvent ENTRY_VOICE]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardLayoutSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardLayoutSpec.m new file mode 100644 index 000000000..c55d8cd28 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeyboardLayoutSpec.m @@ -0,0 +1,56 @@ +// +// SDLKeyboardLayoutSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLKeyboardLayout.h" + +QuickSpecBegin(SDLKeyboardLayoutSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLKeyboardLayout QWERTY].value).to(equal(@"QWERTY")); + expect([SDLKeyboardLayout QWERTZ].value).to(equal(@"QWERTZ")); + expect([SDLKeyboardLayout AZERTY].value).to(equal(@"AZERTY")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLKeyboardLayout valueOf:@"QWERTY"]).to(equal([SDLKeyboardLayout QWERTY])); + expect([SDLKeyboardLayout valueOf:@"QWERTZ"]).to(equal([SDLKeyboardLayout QWERTZ])); + expect([SDLKeyboardLayout valueOf:@"AZERTY"]).to(equal([SDLKeyboardLayout AZERTY])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLKeyboardLayout valueOf:nil]).to(beNil()); + expect([SDLKeyboardLayout valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLKeyboardLayout values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLKeyboardLayout QWERTY], + [SDLKeyboardLayout QWERTZ], + [SDLKeyboardLayout AZERTY]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeypressModeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeypressModeSpec.m new file mode 100644 index 000000000..d7304fe5e --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLKeypressModeSpec.m @@ -0,0 +1,56 @@ +// +// SDLKeypressModeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLKeypressMode.h" + +QuickSpecBegin(SDLKeypressModeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLKeypressMode SINGLE_KEYPRESS].value).to(equal(@"SINGLE_KEYPRESS")); + expect([SDLKeypressMode QUEUE_KEYPRESSES].value).to(equal(@"QUEUE_KEYPRESSES")); + expect([SDLKeypressMode RESEND_CURRENT_ENTRY].value).to(equal(@"RESEND_CURRENT_ENTRY")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLKeypressMode valueOf:@"SINGLE_KEYPRESS"]).to(equal([SDLKeypressMode SINGLE_KEYPRESS])); + expect([SDLKeypressMode valueOf:@"QUEUE_KEYPRESSES"]).to(equal([SDLKeypressMode QUEUE_KEYPRESSES])); + expect([SDLKeypressMode valueOf:@"RESEND_CURRENT_ENTRY"]).to(equal([SDLKeypressMode RESEND_CURRENT_ENTRY])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLKeypressMode valueOf:nil]).to(beNil()); + expect([SDLKeypressMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLKeypressMode values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLKeypressMode SINGLE_KEYPRESS], + [SDLKeypressMode QUEUE_KEYPRESSES], + [SDLKeypressMode RESEND_CURRENT_ENTRY]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLanguageSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLanguageSpec.m new file mode 100644 index 000000000..1c3ec06e0 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLanguageSpec.m @@ -0,0 +1,119 @@ +// +// SDLLanguageSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLLanguage.h" + +QuickSpecBegin(SDLLanguageSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLLanguage EN_US].value).to(equal(@"EN-US")); + expect([SDLLanguage ES_MX].value).to(equal(@"ES-MX")); + expect([SDLLanguage FR_CA].value).to(equal(@"FR-CA")); + expect([SDLLanguage DE_DE].value).to(equal(@"DE-DE")); + expect([SDLLanguage ES_ES].value).to(equal(@"ES-ES")); + expect([SDLLanguage EN_GB].value).to(equal(@"EN-GB")); + expect([SDLLanguage RU_RU].value).to(equal(@"RU-RU")); + expect([SDLLanguage TR_TR].value).to(equal(@"TR-TR")); + expect([SDLLanguage PL_PL].value).to(equal(@"PL-PL")); + expect([SDLLanguage FR_FR].value).to(equal(@"FR-FR")); + expect([SDLLanguage IT_IT].value).to(equal(@"IT-IT")); + expect([SDLLanguage SV_SE].value).to(equal(@"SV-SE")); + expect([SDLLanguage PT_PT].value).to(equal(@"PT-PT")); + expect([SDLLanguage NL_NL].value).to(equal(@"NL-NL")); + expect([SDLLanguage EN_AU].value).to(equal(@"EN-AU")); + expect([SDLLanguage ZH_CN].value).to(equal(@"ZH-CN")); + expect([SDLLanguage ZH_TW].value).to(equal(@"ZH-TW")); + expect([SDLLanguage JA_JP].value).to(equal(@"JA-JP")); + expect([SDLLanguage AR_SA].value).to(equal(@"AR-SA")); + expect([SDLLanguage KO_KR].value).to(equal(@"KO-KR")); + expect([SDLLanguage PT_BR].value).to(equal(@"PT-BR")); + expect([SDLLanguage CS_CZ].value).to(equal(@"CS-CZ")); + expect([SDLLanguage DA_DK].value).to(equal(@"DA-DK")); + expect([SDLLanguage NO_NO].value).to(equal(@"NO-NO")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLLanguage valueOf:@"EN-US"]).to(equal([SDLLanguage EN_US])); + expect([SDLLanguage valueOf:@"ES-MX"]).to(equal([SDLLanguage ES_MX])); + expect([SDLLanguage valueOf:@"FR-CA"]).to(equal([SDLLanguage FR_CA])); + expect([SDLLanguage valueOf:@"DE-DE"]).to(equal([SDLLanguage DE_DE])); + expect([SDLLanguage valueOf:@"ES-ES"]).to(equal([SDLLanguage ES_ES])); + expect([SDLLanguage valueOf:@"EN-GB"]).to(equal([SDLLanguage EN_GB])); + expect([SDLLanguage valueOf:@"RU-RU"]).to(equal([SDLLanguage RU_RU])); + expect([SDLLanguage valueOf:@"TR-TR"]).to(equal([SDLLanguage TR_TR])); + expect([SDLLanguage valueOf:@"PL-PL"]).to(equal([SDLLanguage PL_PL])); + expect([SDLLanguage valueOf:@"FR-FR"]).to(equal([SDLLanguage FR_FR])); + expect([SDLLanguage valueOf:@"IT-IT"]).to(equal([SDLLanguage IT_IT])); + expect([SDLLanguage valueOf:@"SV-SE"]).to(equal([SDLLanguage SV_SE])); + expect([SDLLanguage valueOf:@"PT-PT"]).to(equal([SDLLanguage PT_PT])); + expect([SDLLanguage valueOf:@"NL-NL"]).to(equal([SDLLanguage NL_NL])); + expect([SDLLanguage valueOf:@"EN-AU"]).to(equal([SDLLanguage EN_AU])); + expect([SDLLanguage valueOf:@"ZH-CN"]).to(equal([SDLLanguage ZH_CN])); + expect([SDLLanguage valueOf:@"ZH-TW"]).to(equal([SDLLanguage ZH_TW])); + expect([SDLLanguage valueOf:@"JA-JP"]).to(equal([SDLLanguage JA_JP])); + expect([SDLLanguage valueOf:@"AR-SA"]).to(equal([SDLLanguage AR_SA])); + expect([SDLLanguage valueOf:@"KO-KR"]).to(equal([SDLLanguage KO_KR])); + expect([SDLLanguage valueOf:@"PT-BR"]).to(equal([SDLLanguage PT_BR])); + expect([SDLLanguage valueOf:@"CS-CZ"]).to(equal([SDLLanguage CS_CZ])); + expect([SDLLanguage valueOf:@"DA-DK"]).to(equal([SDLLanguage DA_DK])); + expect([SDLLanguage valueOf:@"NO-NO"]).to(equal([SDLLanguage NO_NO])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLLanguage valueOf:nil]).to(beNil()); + expect([SDLLanguage valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLLanguage values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLLanguage EN_US], + [SDLLanguage ES_MX], + [SDLLanguage FR_CA], + [SDLLanguage DE_DE], + [SDLLanguage ES_ES], + [SDLLanguage EN_GB], + [SDLLanguage RU_RU], + [SDLLanguage TR_TR], + [SDLLanguage PL_PL], + [SDLLanguage FR_FR], + [SDLLanguage IT_IT], + [SDLLanguage SV_SE], + [SDLLanguage PT_PT], + [SDLLanguage NL_NL], + [SDLLanguage EN_AU], + [SDLLanguage ZH_CN], + [SDLLanguage ZH_TW], + [SDLLanguage JA_JP], + [SDLLanguage AR_SA], + [SDLLanguage KO_KR], + [SDLLanguage PT_BR], + [SDLLanguage CS_CZ], + [SDLLanguage DA_DK], + [SDLLanguage NO_NO]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLayoutModeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLayoutModeSpec.m new file mode 100644 index 000000000..6aea31374 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLayoutModeSpec.m @@ -0,0 +1,62 @@ +// +// SDLLayoutModeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLLayoutMode.h" + +QuickSpecBegin(SDLLayoutModeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLLayoutMode ICON_ONLY].value).to(equal(@"ICON_ONLY")); + expect([SDLLayoutMode ICON_WITH_SEARCH].value).to(equal(@"ICON_WITH_SEARCH")); + expect([SDLLayoutMode LIST_ONLY].value).to(equal(@"LIST_ONLY")); + expect([SDLLayoutMode LIST_WITH_SEARCH].value).to(equal(@"LIST_WITH_SEARCH")); + expect([SDLLayoutMode KEYBOARD].value).to(equal(@"KEYBOARD")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLLayoutMode valueOf:@"ICON_ONLY"]).to(equal([SDLLayoutMode ICON_ONLY])); + expect([SDLLayoutMode valueOf:@"ICON_WITH_SEARCH"]).to(equal([SDLLayoutMode ICON_WITH_SEARCH])); + expect([SDLLayoutMode valueOf:@"LIST_ONLY"]).to(equal([SDLLayoutMode LIST_ONLY])); + expect([SDLLayoutMode valueOf:@"LIST_WITH_SEARCH"]).to(equal([SDLLayoutMode LIST_WITH_SEARCH])); + expect([SDLLayoutMode valueOf:@"KEYBOARD"]).to(equal([SDLLayoutMode KEYBOARD])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLLayoutMode valueOf:nil]).to(beNil()); + expect([SDLLayoutMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLLayoutMode values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLLayoutMode ICON_ONLY], + [SDLLayoutMode ICON_WITH_SEARCH], + [SDLLayoutMode LIST_ONLY], + [SDLLayoutMode LIST_WITH_SEARCH], + [SDLLayoutMode KEYBOARD]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLockScreenStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLockScreenStatusSpec.m new file mode 100644 index 000000000..a6d7ecdac --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLockScreenStatusSpec.m @@ -0,0 +1,56 @@ +// +// SDLLockScreenStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLLockScreenStatus.h" + +QuickSpecBegin(SDLLockScreenStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLLockScreenStatus OFF].value).to(equal(@"OFF")); + expect([SDLLockScreenStatus OPTIONAL].value).to(equal(@"OPTIONAL")); + expect([SDLLockScreenStatus REQUIRED].value).to(equal(@"REQUIRED")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLLockScreenStatus valueOf:@"OFF"]).to(equal([SDLLockScreenStatus OFF])); + expect([SDLLockScreenStatus valueOf:@"OPTIONAL"]).to(equal([SDLLockScreenStatus OPTIONAL])); + expect([SDLLockScreenStatus valueOf:@"REQUIRED"]).to(equal([SDLLockScreenStatus REQUIRED])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLLockScreenStatus valueOf:nil]).to(beNil()); + expect([SDLLockScreenStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLLockScreenStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLLockScreenStatus OFF], + [SDLLockScreenStatus OPTIONAL], + [SDLLockScreenStatus REQUIRED]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMaintenanceModeStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMaintenanceModeStatusSpec.m new file mode 100644 index 000000000..349a073eb --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMaintenanceModeStatusSpec.m @@ -0,0 +1,59 @@ +// +// SDLMaintenanceModeStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLMaintenanceModeStatus.h" + +QuickSpecBegin(SDLMaintenanceModeStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLMaintenanceModeStatus NORMAL].value).to(equal(@"NORMAL")); + expect([SDLMaintenanceModeStatus NEAR].value).to(equal(@"NEAR")); + expect([SDLMaintenanceModeStatus ACTIVE].value).to(equal(@"ACTIVE")); + expect([SDLMaintenanceModeStatus FEATURE_NOT_PRESENT].value).to(equal(@"FEATURE_NOT_PRESENT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLMaintenanceModeStatus valueOf:@"NORMAL"]).to(equal([SDLMaintenanceModeStatus NORMAL])); + expect([SDLMaintenanceModeStatus valueOf:@"NEAR"]).to(equal([SDLMaintenanceModeStatus NEAR])); + expect([SDLMaintenanceModeStatus valueOf:@"ACTIVE"]).to(equal([SDLMaintenanceModeStatus ACTIVE])); + expect([SDLMaintenanceModeStatus valueOf:@"FEATURE_NOT_PRESENT"]).to(equal([SDLMaintenanceModeStatus FEATURE_NOT_PRESENT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLMaintenanceModeStatus valueOf:nil]).to(beNil()); + expect([SDLMaintenanceModeStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLMaintenanceModeStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLMaintenanceModeStatus NORMAL], + [SDLMaintenanceModeStatus NEAR], + [SDLMaintenanceModeStatus ACTIVE], + [SDLMaintenanceModeStatus FEATURE_NOT_PRESENT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMediaClockFormatSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMediaClockFormatSpec.m new file mode 100644 index 000000000..80603a2b0 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMediaClockFormatSpec.m @@ -0,0 +1,68 @@ +// +// SDLMediaClockFormatSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLMediaClockFormat.h" + +QuickSpecBegin(SDLMediaClockFormatSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLMediaClockFormat CLOCK1].value).to(equal(@"CLOCK1")); + expect([SDLMediaClockFormat CLOCK2].value).to(equal(@"CLOCK2")); + expect([SDLMediaClockFormat CLOCK3].value).to(equal(@"CLOCK3")); + expect([SDLMediaClockFormat CLOCKTEXT1].value).to(equal(@"CLOCKTEXT1")); + expect([SDLMediaClockFormat CLOCKTEXT2].value).to(equal(@"CLOCKTEXT2")); + expect([SDLMediaClockFormat CLOCKTEXT3].value).to(equal(@"CLOCKTEXT3")); + expect([SDLMediaClockFormat CLOCKTEXT4].value).to(equal(@"CLOCKTEXT4")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLMediaClockFormat valueOf:@"CLOCK1"]).to(equal([SDLMediaClockFormat CLOCK1])); + expect([SDLMediaClockFormat valueOf:@"CLOCK2"]).to(equal([SDLMediaClockFormat CLOCK2])); + expect([SDLMediaClockFormat valueOf:@"CLOCK3"]).to(equal([SDLMediaClockFormat CLOCK3])); + expect([SDLMediaClockFormat valueOf:@"CLOCKTEXT1"]).to(equal([SDLMediaClockFormat CLOCKTEXT1])); + expect([SDLMediaClockFormat valueOf:@"CLOCKTEXT2"]).to(equal([SDLMediaClockFormat CLOCKTEXT2])); + expect([SDLMediaClockFormat valueOf:@"CLOCKTEXT3"]).to(equal([SDLMediaClockFormat CLOCKTEXT3])); + expect([SDLMediaClockFormat valueOf:@"CLOCKTEXT4"]).to(equal([SDLMediaClockFormat CLOCKTEXT4])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLMediaClockFormat valueOf:nil]).to(beNil()); + expect([SDLMediaClockFormat valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLMediaClockFormat values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLMediaClockFormat CLOCK1], + [SDLMediaClockFormat CLOCK2], + [SDLMediaClockFormat CLOCK3], + [SDLMediaClockFormat CLOCKTEXT1], + [SDLMediaClockFormat CLOCKTEXT2], + [SDLMediaClockFormat CLOCKTEXT3], + [SDLMediaClockFormat CLOCKTEXT4]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPRNDLSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPRNDLSpec.m new file mode 100644 index 000000000..5310f3488 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPRNDLSpec.m @@ -0,0 +1,95 @@ +// +// SDLPRNDLSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLPRNDL.h" + +QuickSpecBegin(SDLPRNDLSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLPRNDL PARK].value).to(equal(@"PARK")); + expect([SDLPRNDL REVERSE].value).to(equal(@"REVERSE")); + expect([SDLPRNDL NEUTRAL].value).to(equal(@"NEUTRAL")); + expect([SDLPRNDL DRIVE].value).to(equal(@"DRIVE")); + expect([SDLPRNDL SPORT].value).to(equal(@"SPORT")); + expect([SDLPRNDL LOWGEAR].value).to(equal(@"LOWGEAR")); + expect([SDLPRNDL FIRST].value).to(equal(@"FIRST")); + expect([SDLPRNDL SECOND].value).to(equal(@"SECOND")); + expect([SDLPRNDL THIRD].value).to(equal(@"THIRD")); + expect([SDLPRNDL FOURTH].value).to(equal(@"FOURTH")); + expect([SDLPRNDL FIFTH].value).to(equal(@"FIFTH")); + expect([SDLPRNDL SIXTH].value).to(equal(@"SIXTH")); + expect([SDLPRNDL SEVENTH].value).to(equal(@"SEVENTH")); + expect([SDLPRNDL EIGHTH].value).to(equal(@"EIGHTH")); + expect([SDLPRNDL UNKNOWN].value).to(equal(@"UNKNOWN")); + expect([SDLPRNDL FAULT].value).to(equal(@"FAULT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLPRNDL valueOf:@"PARK"]).to(equal([SDLPRNDL PARK])); + expect([SDLPRNDL valueOf:@"REVERSE"]).to(equal([SDLPRNDL REVERSE])); + expect([SDLPRNDL valueOf:@"NEUTRAL"]).to(equal([SDLPRNDL NEUTRAL])); + expect([SDLPRNDL valueOf:@"DRIVE"]).to(equal([SDLPRNDL DRIVE])); + expect([SDLPRNDL valueOf:@"SPORT"]).to(equal([SDLPRNDL SPORT])); + expect([SDLPRNDL valueOf:@"LOWGEAR"]).to(equal([SDLPRNDL LOWGEAR])); + expect([SDLPRNDL valueOf:@"FIRST"]).to(equal([SDLPRNDL FIRST])); + expect([SDLPRNDL valueOf:@"SECOND"]).to(equal([SDLPRNDL SECOND])); + expect([SDLPRNDL valueOf:@"THIRD"]).to(equal([SDLPRNDL THIRD])); + expect([SDLPRNDL valueOf:@"FOURTH"]).to(equal([SDLPRNDL FOURTH])); + expect([SDLPRNDL valueOf:@"FIFTH"]).to(equal([SDLPRNDL FIFTH])); + expect([SDLPRNDL valueOf:@"SIXTH"]).to(equal([SDLPRNDL SIXTH])); + expect([SDLPRNDL valueOf:@"SEVENTH"]).to(equal([SDLPRNDL SEVENTH])); + expect([SDLPRNDL valueOf:@"EIGHTH"]).to(equal([SDLPRNDL EIGHTH])); + expect([SDLPRNDL valueOf:@"UNKNOWN"]).to(equal([SDLPRNDL UNKNOWN])); + expect([SDLPRNDL valueOf:@"FAULT"]).to(equal([SDLPRNDL FAULT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLPRNDL valueOf:nil]).to(beNil()); + expect([SDLPRNDL valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLPRNDL values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLPRNDL PARK], + [SDLPRNDL REVERSE], + [SDLPRNDL NEUTRAL], + [SDLPRNDL DRIVE], + [SDLPRNDL SPORT], + [SDLPRNDL LOWGEAR], + [SDLPRNDL FIRST], + [SDLPRNDL SECOND], + [SDLPRNDL THIRD], + [SDLPRNDL FOURTH], + [SDLPRNDL FIFTH], + [SDLPRNDL SIXTH], + [SDLPRNDL SEVENTH], + [SDLPRNDL EIGHTH], + [SDLPRNDL UNKNOWN], + [SDLPRNDL FAULT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPermissionStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPermissionStatusSpec.m new file mode 100644 index 000000000..3ca864595 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPermissionStatusSpec.m @@ -0,0 +1,59 @@ +// +// SDLPermissionStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLPermissionStatus.h" + +QuickSpecBegin(SDLPermissionStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLPermissionStatus ALLOWED].value).to(equal(@"ALLOWED")); + expect([SDLPermissionStatus DISALLOWED].value).to(equal(@"DISALLOWED")); + expect([SDLPermissionStatus USER_DISALLOWED].value).to(equal(@"USER_DISALLOWED")); + expect([SDLPermissionStatus USER_CONSENT_PENDING].value).to(equal(@"USER_CONSENT_PENDING")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLPermissionStatus valueOf:@"ALLOWED"]).to(equal([SDLPermissionStatus ALLOWED])); + expect([SDLPermissionStatus valueOf:@"DISALLOWED"]).to(equal([SDLPermissionStatus DISALLOWED])); + expect([SDLPermissionStatus valueOf:@"USER_DISALLOWED"]).to(equal([SDLPermissionStatus USER_DISALLOWED])); + expect([SDLPermissionStatus valueOf:@"USER_CONSENT_PENDING"]).to(equal([SDLPermissionStatus USER_CONSENT_PENDING])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLPermissionStatus valueOf:nil]).to(beNil()); + expect([SDLPermissionStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLPermissionStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLPermissionStatus ALLOWED], + [SDLPermissionStatus DISALLOWED], + [SDLPermissionStatus USER_DISALLOWED], + [SDLPermissionStatus USER_CONSENT_PENDING]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeQualificationStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeQualificationStatusSpec.m new file mode 100644 index 000000000..1a8c2dd55 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeQualificationStatusSpec.m @@ -0,0 +1,59 @@ +// +// SDLPowerModeQualificationStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLPowerModeQualificationStatus.h" + +QuickSpecBegin(SDLPowerModeQualificationStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLPowerModeQualificationStatus POWER_MODE_UNDEFINED].value).to(equal(@"POWER_MODE_UNDEFINED")); + expect([SDLPowerModeQualificationStatus POWER_MODE_EVALUATION_IN_PROGRESS].value).to(equal(@"POWER_MODE_EVALUATION_IN_PROGRESS")); + expect([SDLPowerModeQualificationStatus NOT_DEFINED].value).to(equal(@"NOT_DEFINED")); + expect([SDLPowerModeQualificationStatus POWER_MODE_OK].value).to(equal(@"POWER_MODE_OK")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLPowerModeQualificationStatus valueOf:@"POWER_MODE_UNDEFINED"]).to(equal([SDLPowerModeQualificationStatus POWER_MODE_UNDEFINED])); + expect([SDLPowerModeQualificationStatus valueOf:@"POWER_MODE_EVALUATION_IN_PROGRESS"]).to(equal([SDLPowerModeQualificationStatus POWER_MODE_EVALUATION_IN_PROGRESS])); + expect([SDLPowerModeQualificationStatus valueOf:@"NOT_DEFINED"]).to(equal([SDLPowerModeQualificationStatus NOT_DEFINED])); + expect([SDLPowerModeQualificationStatus valueOf:@"POWER_MODE_OK"]).to(equal([SDLPowerModeQualificationStatus POWER_MODE_OK])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLPowerModeQualificationStatus valueOf:nil]).to(beNil()); + expect([SDLPowerModeQualificationStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLPowerModeQualificationStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLPowerModeQualificationStatus POWER_MODE_UNDEFINED], + [SDLPowerModeQualificationStatus POWER_MODE_EVALUATION_IN_PROGRESS], + [SDLPowerModeQualificationStatus NOT_DEFINED], + [SDLPowerModeQualificationStatus POWER_MODE_OK]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeStatusSpec.m new file mode 100644 index 000000000..4ffc91aba --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPowerModeStatusSpec.m @@ -0,0 +1,74 @@ +// +// SDLPowerModeStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLPowerModeStatus.h" + +QuickSpecBegin(SDLPowerModeStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLPowerModeStatus KEY_OUT].value).to(equal(@"KEY_OUT")); + expect([SDLPowerModeStatus KEY_RECENTLY_OUT].value).to(equal(@"KEY_RECENTLY_OUT")); + expect([SDLPowerModeStatus KEY_APPROVED_0].value).to(equal(@"KEY_APPROVED_0")); + expect([SDLPowerModeStatus POST_ACCESORY_0].value).to(equal(@"POST_ACCESORY_0")); + expect([SDLPowerModeStatus ACCESORY_1].value).to(equal(@"ACCESORY_1")); + expect([SDLPowerModeStatus POST_IGNITION_1].value).to(equal(@"POST_IGNITION_1")); + expect([SDLPowerModeStatus IGNITION_ON_2].value).to(equal(@"IGNITION_ON_2")); + expect([SDLPowerModeStatus RUNNING_2].value).to(equal(@"RUNNING_2")); + expect([SDLPowerModeStatus CRANK_3].value).to(equal(@"CRANK_3")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLPowerModeStatus valueOf:@"KEY_OUT"]).to(equal([SDLPowerModeStatus KEY_OUT])); + expect([SDLPowerModeStatus valueOf:@"KEY_RECENTLY_OUT"]).to(equal([SDLPowerModeStatus KEY_RECENTLY_OUT])); + expect([SDLPowerModeStatus valueOf:@"KEY_APPROVED_0"]).to(equal([SDLPowerModeStatus KEY_APPROVED_0])); + expect([SDLPowerModeStatus valueOf:@"POST_ACCESORY_0"]).to(equal([SDLPowerModeStatus POST_ACCESORY_0])); + expect([SDLPowerModeStatus valueOf:@"ACCESORY_1"]).to(equal([SDLPowerModeStatus ACCESORY_1])); + expect([SDLPowerModeStatus valueOf:@"POST_IGNITION_1"]).to(equal([SDLPowerModeStatus POST_IGNITION_1])); + expect([SDLPowerModeStatus valueOf:@"IGNITION_ON_2"]).to(equal([SDLPowerModeStatus IGNITION_ON_2])); + expect([SDLPowerModeStatus valueOf:@"RUNNING_2"]).to(equal([SDLPowerModeStatus RUNNING_2])); + expect([SDLPowerModeStatus valueOf:@"CRANK_3"]).to(equal([SDLPowerModeStatus CRANK_3])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLPowerModeStatus valueOf:nil]).to(beNil()); + expect([SDLPowerModeStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLPowerModeStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLPowerModeStatus KEY_OUT], + [SDLPowerModeStatus KEY_RECENTLY_OUT], + [SDLPowerModeStatus KEY_APPROVED_0], + [SDLPowerModeStatus POST_ACCESORY_0], + [SDLPowerModeStatus ACCESORY_1], + [SDLPowerModeStatus POST_IGNITION_1], + [SDLPowerModeStatus IGNITION_ON_2], + [SDLPowerModeStatus RUNNING_2], + [SDLPowerModeStatus CRANK_3]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPredefinedLayoutSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPredefinedLayoutSpec.m new file mode 100644 index 000000000..0f110d08c --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPredefinedLayoutSpec.m @@ -0,0 +1,107 @@ +// +// SDLPredefinedLayoutSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLPredefinedLayout.h" + +QuickSpecBegin(SDLPredefinedLayoutSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLPredefinedLayout DEFAULT].value).to(equal(@"DEFAULT")); + expect([SDLPredefinedLayout MEDIA].value).to(equal(@"MEDIA")); + expect([SDLPredefinedLayout NON_MEDIA].value).to(equal(@"NON-MEDIA")); + expect([SDLPredefinedLayout ONSCREEN_PRESETS].value).to(equal(@"ONSCREEN_PRESETS")); + expect([SDLPredefinedLayout NAV_FULLSCREEN_MAP].value).to(equal(@"NAV_FULLSCREEN_MAP")); + expect([SDLPredefinedLayout NAV_LIST].value).to(equal(@"NAV_LIST")); + expect([SDLPredefinedLayout NAV_KEYBOARD].value).to(equal(@"NAV_KEYBOARD")); + expect([SDLPredefinedLayout GRAPHIC_WITH_TEXT].value).to(equal(@"GRAPHIC_WITH_TEXT")); + expect([SDLPredefinedLayout TEXT_WITH_GRAPHIC].value).to(equal(@"TEXT_WITH_GRAPHIC")); + expect([SDLPredefinedLayout TILES_ONLY].value).to(equal(@"TILES_ONLY")); + expect([SDLPredefinedLayout TEXTBUTTONS_ONLY].value).to(equal(@"TEXTBUTTONS_ONLY")); + expect([SDLPredefinedLayout GRAPHIC_WITH_TILES].value).to(equal(@"GRAPHIC_WITH_TILES")); + expect([SDLPredefinedLayout TILES_WITH_GRAPHIC].value).to(equal(@"TILES_WITH_GRAPHIC")); + expect([SDLPredefinedLayout GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS].value).to(equal(@"GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS")); + expect([SDLPredefinedLayout TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC].value).to(equal(@"TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC")); + expect([SDLPredefinedLayout GRAPHIC_WITH_TEXTBUTTONS].value).to(equal(@"GRAPHIC_WITH_TEXTBUTTONS")); + expect([SDLPredefinedLayout TEXTBUTTONS_WITH_GRAPHIC].value).to(equal(@"TEXTBUTTONS_WITH_GRAPHIC")); + expect([SDLPredefinedLayout LARGE_GRAPHIC_WITH_SOFTBUTTONS].value).to(equal(@"LARGE_GRAPHIC_WITH_SOFTBUTTONS")); + expect([SDLPredefinedLayout DOUBLE_GRAPHIC_WITH_SOFTBUTTONS].value).to(equal(@"DOUBLE_GRAPHIC_WITH_SOFTBUTTONS")); + expect([SDLPredefinedLayout LARGE_GRAPHIC_ONLY].value).to(equal(@"LARGE_GRAPHIC_ONLY")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLPredefinedLayout valueOf:@"DEFAULT"]).to(equal([SDLPredefinedLayout DEFAULT])); + expect([SDLPredefinedLayout valueOf:@"MEDIA"]).to(equal([SDLPredefinedLayout MEDIA])); + expect([SDLPredefinedLayout valueOf:@"NON-MEDIA"]).to(equal([SDLPredefinedLayout NON_MEDIA])); + expect([SDLPredefinedLayout valueOf:@"ONSCREEN_PRESETS"]).to(equal([SDLPredefinedLayout ONSCREEN_PRESETS])); + expect([SDLPredefinedLayout valueOf:@"NAV_FULLSCREEN_MAP"]).to(equal([SDLPredefinedLayout NAV_FULLSCREEN_MAP])); + expect([SDLPredefinedLayout valueOf:@"NAV_LIST"]).to(equal([SDLPredefinedLayout NAV_LIST])); + expect([SDLPredefinedLayout valueOf:@"NAV_KEYBOARD"]).to(equal([SDLPredefinedLayout NAV_KEYBOARD])); + expect([SDLPredefinedLayout valueOf:@"GRAPHIC_WITH_TEXT"]).to(equal([SDLPredefinedLayout GRAPHIC_WITH_TEXT])); + expect([SDLPredefinedLayout valueOf:@"TEXT_WITH_GRAPHIC"]).to(equal([SDLPredefinedLayout TEXT_WITH_GRAPHIC])); + expect([SDLPredefinedLayout valueOf:@"TILES_ONLY"]).to(equal([SDLPredefinedLayout TILES_ONLY])); + expect([SDLPredefinedLayout valueOf:@"TEXTBUTTONS_ONLY"]).to(equal([SDLPredefinedLayout TEXTBUTTONS_ONLY])); + expect([SDLPredefinedLayout valueOf:@"GRAPHIC_WITH_TILES"]).to(equal([SDLPredefinedLayout GRAPHIC_WITH_TILES])); + expect([SDLPredefinedLayout valueOf:@"TILES_WITH_GRAPHIC"]).to(equal([SDLPredefinedLayout TILES_WITH_GRAPHIC])); + expect([SDLPredefinedLayout valueOf:@"GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS"]).to(equal([SDLPredefinedLayout GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS])); + expect([SDLPredefinedLayout valueOf:@"TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC"]).to(equal([SDLPredefinedLayout TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC])); + expect([SDLPredefinedLayout valueOf:@"GRAPHIC_WITH_TEXTBUTTONS"]).to(equal([SDLPredefinedLayout GRAPHIC_WITH_TEXTBUTTONS])); + expect([SDLPredefinedLayout valueOf:@"TEXTBUTTONS_WITH_GRAPHIC"]).to(equal([SDLPredefinedLayout TEXTBUTTONS_WITH_GRAPHIC])); + expect([SDLPredefinedLayout valueOf:@"LARGE_GRAPHIC_WITH_SOFTBUTTONS"]).to(equal([SDLPredefinedLayout LARGE_GRAPHIC_WITH_SOFTBUTTONS])); + expect([SDLPredefinedLayout valueOf:@"DOUBLE_GRAPHIC_WITH_SOFTBUTTONS"]).to(equal([SDLPredefinedLayout DOUBLE_GRAPHIC_WITH_SOFTBUTTONS])); + expect([SDLPredefinedLayout valueOf:@"LARGE_GRAPHIC_ONLY"]).to(equal([SDLPredefinedLayout LARGE_GRAPHIC_ONLY])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLPredefinedLayout valueOf:nil]).to(beNil()); + expect([SDLPredefinedLayout valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLPredefinedLayout values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLPredefinedLayout DEFAULT], + [SDLPredefinedLayout MEDIA], + [SDLPredefinedLayout NON_MEDIA], + [SDLPredefinedLayout ONSCREEN_PRESETS], + [SDLPredefinedLayout NAV_FULLSCREEN_MAP], + [SDLPredefinedLayout NAV_LIST], + [SDLPredefinedLayout NAV_KEYBOARD], + [SDLPredefinedLayout GRAPHIC_WITH_TEXT], + [SDLPredefinedLayout TEXT_WITH_GRAPHIC], + [SDLPredefinedLayout TILES_ONLY], + [SDLPredefinedLayout TEXTBUTTONS_ONLY], + [SDLPredefinedLayout GRAPHIC_WITH_TILES], + [SDLPredefinedLayout TILES_WITH_GRAPHIC], + [SDLPredefinedLayout GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS], + [SDLPredefinedLayout TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC], + [SDLPredefinedLayout GRAPHIC_WITH_TEXTBUTTONS], + [SDLPredefinedLayout TEXTBUTTONS_WITH_GRAPHIC], + [SDLPredefinedLayout LARGE_GRAPHIC_WITH_SOFTBUTTONS], + [SDLPredefinedLayout DOUBLE_GRAPHIC_WITH_SOFTBUTTONS], + [SDLPredefinedLayout LARGE_GRAPHIC_ONLY]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrerecordedSpeechSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrerecordedSpeechSpec.m new file mode 100644 index 000000000..89c0bd218 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrerecordedSpeechSpec.m @@ -0,0 +1,62 @@ +// +// SDLPrerecordedSpeechSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLPrerecordedSpeech.h" + +QuickSpecBegin(SDLPrerecordedSpeechSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLPrerecordedSpeech HELP_JINGLE].value).to(equal(@"HELP_JINGLE")); + expect([SDLPrerecordedSpeech INITIAL_JINGLE].value).to(equal(@"INITIAL_JINGLE")); + expect([SDLPrerecordedSpeech LISTEN_JINGLE].value).to(equal(@"LISTEN_JINGLE")); + expect([SDLPrerecordedSpeech POSITIVE_JINGLE].value).to(equal(@"POSITIVE_JINGLE")); + expect([SDLPrerecordedSpeech NEGATIVE_JINGLE].value).to(equal(@"NEGATIVE_JINGLE")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLPrerecordedSpeech valueOf:@"HELP_JINGLE"]).to(equal([SDLPrerecordedSpeech HELP_JINGLE])); + expect([SDLPrerecordedSpeech valueOf:@"INITIAL_JINGLE"]).to(equal([SDLPrerecordedSpeech INITIAL_JINGLE])); + expect([SDLPrerecordedSpeech valueOf:@"LISTEN_JINGLE"]).to(equal([SDLPrerecordedSpeech LISTEN_JINGLE])); + expect([SDLPrerecordedSpeech valueOf:@"POSITIVE_JINGLE"]).to(equal([SDLPrerecordedSpeech POSITIVE_JINGLE])); + expect([SDLPrerecordedSpeech valueOf:@"NEGATIVE_JINGLE"]).to(equal([SDLPrerecordedSpeech NEGATIVE_JINGLE])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLPrerecordedSpeech valueOf:nil]).to(beNil()); + expect([SDLPrerecordedSpeech valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLPrerecordedSpeech values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLPrerecordedSpeech HELP_JINGLE], + [SDLPrerecordedSpeech INITIAL_JINGLE], + [SDLPrerecordedSpeech LISTEN_JINGLE], + [SDLPrerecordedSpeech POSITIVE_JINGLE], + [SDLPrerecordedSpeech NEGATIVE_JINGLE]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrimaryAudioSource.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrimaryAudioSource.m new file mode 100644 index 000000000..0b273e0df --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPrimaryAudioSource.m @@ -0,0 +1,68 @@ +// +// SDLPrimaryAudioSourceSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLPrimaryAudioSource.h" + +QuickSpecBegin(SDLPrimaryAudioSourceSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLPrimaryAudioSource NO_SOURCE_SELECTED].value).to(equal(@"NO_SOURCE_SELECTED")); + expect([SDLPrimaryAudioSource USB].value).to(equal(@"USB")); + expect([SDLPrimaryAudioSource USB2].value).to(equal(@"USB2")); + expect([SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST].value).to(equal(@"BLUETOOTH_STEREO_BTST")); + expect([SDLPrimaryAudioSource LINE_IN].value).to(equal(@"LINE_IN")); + expect([SDLPrimaryAudioSource IPOD].value).to(equal(@"IPOD")); + expect([SDLPrimaryAudioSource MOBILE_APP].value).to(equal(@"MOBILE_APP")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLPrimaryAudioSource valueOf:@"NO_SOURCE_SELECTED"]).to(equal([SDLPrimaryAudioSource NO_SOURCE_SELECTED])); + expect([SDLPrimaryAudioSource valueOf:@"USB"]).to(equal([SDLPrimaryAudioSource USB])); + expect([SDLPrimaryAudioSource valueOf:@"USB2"]).to(equal([SDLPrimaryAudioSource USB2])); + expect([SDLPrimaryAudioSource valueOf:@"BLUETOOTH_STEREO_BTST"]).to(equal([SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST])); + expect([SDLPrimaryAudioSource valueOf:@"LINE_IN"]).to(equal([SDLPrimaryAudioSource LINE_IN])); + expect([SDLPrimaryAudioSource valueOf:@"IPOD"]).to(equal([SDLPrimaryAudioSource IPOD])); + expect([SDLPrimaryAudioSource valueOf:@"MOBILE_APP"]).to(equal([SDLPrimaryAudioSource MOBILE_APP])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLPrimaryAudioSource valueOf:nil]).to(beNil()); + expect([SDLPrimaryAudioSource valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLPrimaryAudioSource values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLPrimaryAudioSource NO_SOURCE_SELECTED], + [SDLPrimaryAudioSource USB], + [SDLPrimaryAudioSource USB2], + [SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST], + [SDLPrimaryAudioSource LINE_IN], + [SDLPrimaryAudioSource IPOD], + [SDLPrimaryAudioSource MOBILE_APP]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLRequestTypeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLRequestTypeSpec.m new file mode 100644 index 000000000..7a314e1a6 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLRequestTypeSpec.m @@ -0,0 +1,108 @@ +// +// SDLRequestTypeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLRequestType.h" + +QuickSpecBegin(SDLRequestTypeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLRequestType HTTP].value).to(equal(@"HTTP")); + expect([SDLRequestType FILE_RESUME].value).to(equal(@"FILE_RESUME")); + expect([SDLRequestType AUTH_REQUEST].value).to(equal(@"AUTH_REQUEST")); + expect([SDLRequestType AUTH_CHALLENGE].value).to(equal(@"AUTH_CHALLENGE")); + expect([SDLRequestType AUTH_ACK].value).to(equal(@"AUTH_ACK")); + expect([SDLRequestType PROPRIETARY].value).to(equal(@"PROPRIETARY")); + expect([SDLRequestType QUERY_APPS].value).to(equal(@"QUERY_APPS")); + expect([SDLRequestType LAUNCH_APP].value).to(equal(@"LAUNCH_APP")); + expect([SDLRequestType LOCK_SCREEN_ICON_URL].value).to(equal(@"LOCK_SCREEN_ICON_URL")); + expect([SDLRequestType TRAFFIC_MESSAGE_CHANNEL].value).to(equal(@"TRAFFIC_MESSAGE_CHANNEL")); + expect([SDLRequestType DRIVER_PROFILE].value).to(equal(@"DRIVER_PROFILE")); + expect([SDLRequestType VOICE_SEARCH].value).to(equal(@"VOICE_SEARCH")); + expect([SDLRequestType NAVIGATION].value).to(equal(@"NAVIGATION")); + expect([SDLRequestType PHONE].value).to(equal(@"PHONE")); + expect([SDLRequestType CLIMATE].value).to(equal(@"CLIMATE")); + expect([SDLRequestType SETTINGS].value).to(equal(@"SETTINGS")); + expect([SDLRequestType VEHICLE_DIAGNOSTICS].value).to(equal(@"VEHICLE_DIAGNOSTICS")); + expect([SDLRequestType EMERGENCY].value).to(equal(@"EMERGENCY")); + expect([SDLRequestType MEDIA].value).to(equal(@"MEDIA")); + expect([SDLRequestType FOTA].value).to(equal(@"FOTA")); + }); +}); + +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLRequestType valueOf:@"HTTP"]).to(equal([SDLRequestType HTTP])); + expect([SDLRequestType valueOf:@"FILE_RESUME"]).to(equal([SDLRequestType FILE_RESUME])); + expect([SDLRequestType valueOf:@"AUTH_REQUEST"]).to(equal([SDLRequestType AUTH_REQUEST])); + expect([SDLRequestType valueOf:@"AUTH_CHALLENGE"]).to(equal([SDLRequestType AUTH_CHALLENGE])); + expect([SDLRequestType valueOf:@"AUTH_ACK"]).to(equal([SDLRequestType AUTH_ACK])); + expect([SDLRequestType valueOf:@"QUERY_APPS"]).to(equal([SDLRequestType QUERY_APPS])); + expect([SDLRequestType valueOf:@"LAUNCH_APP"]).to(equal([SDLRequestType LAUNCH_APP])); + expect([SDLRequestType valueOf:@"LOCK_SCREEN_ICON_URL"]).to(equal([SDLRequestType LOCK_SCREEN_ICON_URL])); + expect([SDLRequestType valueOf:@"TRAFFIC_MESSAGE_CHANNEL"]).to(equal([SDLRequestType TRAFFIC_MESSAGE_CHANNEL])); + expect([SDLRequestType valueOf:@"DRIVER_PROFILE"]).to(equal([SDLRequestType DRIVER_PROFILE])); + expect([SDLRequestType valueOf:@"VOICE_SEARCH"]).to(equal([SDLRequestType VOICE_SEARCH])); + expect([SDLRequestType valueOf:@"NAVIGATION"]).to(equal([SDLRequestType NAVIGATION])); + expect([SDLRequestType valueOf:@"PHONE"]).to(equal([SDLRequestType PHONE])); + expect([SDLRequestType valueOf:@"CLIMATE"]).to(equal([SDLRequestType CLIMATE])); + expect([SDLRequestType valueOf:@"SETTINGS"]).to(equal([SDLRequestType SETTINGS])); + expect([SDLRequestType valueOf:@"VEHICLE_DIAGNOSTICS"]).to(equal([SDLRequestType VEHICLE_DIAGNOSTICS])); + expect([SDLRequestType valueOf:@"EMERGENCY"]).to(equal([SDLRequestType EMERGENCY])); + expect([SDLRequestType valueOf:@"MEDIA"]).to(equal([SDLRequestType MEDIA])); + expect([SDLRequestType valueOf:@"FOTA"]).to(equal([SDLRequestType FOTA])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLRequestType valueOf:nil]).to(beNil()); + expect([SDLRequestType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); + +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLRequestType values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLRequestType HTTP], + [SDLRequestType FILE_RESUME], + [SDLRequestType AUTH_REQUEST], + [SDLRequestType AUTH_CHALLENGE], + [SDLRequestType AUTH_ACK], + [SDLRequestType PROPRIETARY], + [SDLRequestType QUERY_APPS], + [SDLRequestType LAUNCH_APP], + [SDLRequestType LOCK_SCREEN_ICON_URL], + [SDLRequestType TRAFFIC_MESSAGE_CHANNEL], + [SDLRequestType DRIVER_PROFILE], + [SDLRequestType VOICE_SEARCH], + [SDLRequestType NAVIGATION], + [SDLRequestType PHONE], + [SDLRequestType CLIMATE], + [SDLRequestType SETTINGS], + [SDLRequestType VEHICLE_DIAGNOSTICS], + [SDLRequestType EMERGENCY], + [SDLRequestType MEDIA], + [SDLRequestType FOTA]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLResultSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLResultSpec.m new file mode 100644 index 000000000..916cb6155 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLResultSpec.m @@ -0,0 +1,145 @@ +// +// SDLResultSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLResult.h" + +QuickSpecBegin(SDLResultSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLResult SUCCESS].value).to(equal(@"SUCCESS")); + expect([SDLResult UNSUPPORTED_REQUEST].value).to(equal(@"UNSUPPORTED_REQUEST")); + expect([SDLResult UNSUPPORTED_RESOURCE].value).to(equal(@"UNSUPPORTED_RESOURCE")); + expect([SDLResult DISALLOWED].value).to(equal(@"DISALLOWED")); + expect([SDLResult REJECTED].value).to(equal(@"REJECTED")); + expect([SDLResult ABORTED].value).to(equal(@"ABORTED")); + expect([SDLResult IGNORED].value).to(equal(@"IGNORED")); + expect([SDLResult RETRY].value).to(equal(@"RETRY")); + expect([SDLResult IN_USE].value).to(equal(@"IN_USE")); + expect([SDLResult VEHICLE_DATA_NOT_AVAILABLE].value).to(equal(@"VEHICLE_DATA_NOT_AVAILABLE")); + expect([SDLResult TIMED_OUT].value).to(equal(@"TIMED_OUT")); + expect([SDLResult INVALID_DATA].value).to(equal(@"INVALID_DATA")); + expect([SDLResult CHAR_LIMIT_EXCEEDED].value).to(equal(@"CHAR_LIMIT_EXCEEDED")); + expect([SDLResult INVALID_ID].value).to(equal(@"INVALID_ID")); + expect([SDLResult DUPLICATE_NAME].value).to(equal(@"DUPLICATE_NAME")); + expect([SDLResult APPLICATION_NOT_REGISTERED].value).to(equal(@"APPLICATION_NOT_REGISTERED")); + expect([SDLResult WRONG_LANGUAGE].value).to(equal(@"WRONG_LANGUAGE")); + expect([SDLResult OUT_OF_MEMORY].value).to(equal(@"OUT_OF_MEMORY")); + expect([SDLResult TOO_MANY_PENDING_REQUESTS].value).to(equal(@"TOO_MANY_PENDING_REQUESTS")); + expect([SDLResult TOO_MANY_APPLICATIONS].value).to(equal(@"TOO_MANY_APPLICATIONS")); + expect([SDLResult APPLICATION_REGISTERED_ALREADY].value).to(equal(@"APPLICATION_REGISTERED_ALREADY")); + expect([SDLResult WARNINGS].value).to(equal(@"WARNINGS")); + expect([SDLResult GENERIC_ERROR].value).to(equal(@"GENERIC_ERROR")); + expect([SDLResult USER_DISALLOWED].value).to(equal(@"USER_DISALLOWED")); + expect([SDLResult UNSUPPORTED_VERSION].value).to(equal(@"UNSUPPORTED_VERSION")); + expect([SDLResult VEHICLE_DATA_NOT_ALLOWED].value).to(equal(@"VEHICLE_DATA_NOT_ALLOWED")); + expect([SDLResult FILE_NOT_FOUND].value).to(equal(@"FILE_NOT_FOUND")); + expect([SDLResult CANCEL_ROUTE].value).to(equal(@"CANCEL_ROUTE")); + expect([SDLResult TRUNCATED_DATA].value).to(equal(@"TRUNCATED_DATA")); + expect([SDLResult SAVED].value).to(equal(@"SAVED")); + expect([SDLResult INVALID_CERT].value).to(equal(@"INVALID_CERT")); + expect([SDLResult EXPIRED_CERT].value).to(equal(@"EXPIRED_CERT")); + expect([SDLResult RESUME_FAILED].value).to(equal(@"RESUME_FAILED")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLResult valueOf:@"SUCCESS"]).to(equal([SDLResult SUCCESS])); + expect([SDLResult valueOf:@"UNSUPPORTED_REQUEST"]).to(equal([SDLResult UNSUPPORTED_REQUEST])); + expect([SDLResult valueOf:@"UNSUPPORTED_RESOURCE"]).to(equal([SDLResult UNSUPPORTED_RESOURCE])); + expect([SDLResult valueOf:@"DISALLOWED"]).to(equal([SDLResult DISALLOWED])); + expect([SDLResult valueOf:@"REJECTED"]).to(equal([SDLResult REJECTED])); + expect([SDLResult valueOf:@"IGNORED"]).to(equal([SDLResult IGNORED])); + expect([SDLResult valueOf:@"RETRY"]).to(equal([SDLResult RETRY])); + expect([SDLResult valueOf:@"IN_USE"]).to(equal([SDLResult IN_USE])); + expect([SDLResult valueOf:@"VEHICLE_DATA_NOT_AVAILABLE"]).to(equal([SDLResult VEHICLE_DATA_NOT_AVAILABLE])); + expect([SDLResult valueOf:@"TIMED_OUT"]).to(equal([SDLResult TIMED_OUT])); + expect([SDLResult valueOf:@"INVALID_DATA"]).to(equal([SDLResult INVALID_DATA])); + expect([SDLResult valueOf:@"CHAR_LIMIT_EXCEEDED"]).to(equal([SDLResult CHAR_LIMIT_EXCEEDED])); + expect([SDLResult valueOf:@"INVALID_ID"]).to(equal([SDLResult INVALID_ID])); + expect([SDLResult valueOf:@"DUPLICATE_NAME"]).to(equal([SDLResult DUPLICATE_NAME])); + expect([SDLResult valueOf:@"APPLICATION_NOT_REGISTERED"]).to(equal([SDLResult APPLICATION_NOT_REGISTERED])); + expect([SDLResult valueOf:@"WRONG_LANGUAGE"]).to(equal([SDLResult WRONG_LANGUAGE])); + expect([SDLResult valueOf:@"OUT_OF_MEMORY"]).to(equal([SDLResult OUT_OF_MEMORY])); + expect([SDLResult valueOf:@"TOO_MANY_PENDING_REQUESTS"]).to(equal([SDLResult TOO_MANY_PENDING_REQUESTS])); + expect([SDLResult valueOf:@"TOO_MANY_APPLICATIONS"]).to(equal([SDLResult TOO_MANY_APPLICATIONS])); + expect([SDLResult valueOf:@"APPLICATION_REGISTERED_ALREADY"]).to(equal([SDLResult APPLICATION_REGISTERED_ALREADY])); + expect([SDLResult valueOf:@"WARNINGS"]).to(equal([SDLResult WARNINGS])); + expect([SDLResult valueOf:@"GENERIC_ERROR"]).to(equal([SDLResult GENERIC_ERROR])); + expect([SDLResult valueOf:@"USER_DISALLOWED"]).to(equal([SDLResult USER_DISALLOWED])); + expect([SDLResult valueOf:@"UNSUPPORTED_VERSION"]).to(equal([SDLResult UNSUPPORTED_VERSION])); + expect([SDLResult valueOf:@"VEHICLE_DATA_NOT_ALLOWED"]).to(equal([SDLResult VEHICLE_DATA_NOT_ALLOWED])); + expect([SDLResult valueOf:@"FILE_NOT_FOUND"]).to(equal([SDLResult FILE_NOT_FOUND])); + expect([SDLResult valueOf:@"CANCEL_ROUTE"]).to(equal([SDLResult CANCEL_ROUTE])); + expect([SDLResult valueOf:@"TRUNCATED_DATA"]).to(equal([SDLResult TRUNCATED_DATA])); + expect([SDLResult valueOf:@"SAVED"]).to(equal([SDLResult SAVED])); + expect([SDLResult valueOf:@"INVALID_CERT"]).to(equal([SDLResult INVALID_CERT])); + expect([SDLResult valueOf:@"EXPIRED_CERT"]).to(equal([SDLResult EXPIRED_CERT])); + expect([SDLResult valueOf:@"RESUME_FAILED"]).to(equal([SDLResult RESUME_FAILED])); +}); + + it(@"Should return nil when invalid", ^ { + expect([SDLResult valueOf:nil]).to(beNil()); + expect([SDLResult valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLResult values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLResult SUCCESS], + [SDLResult UNSUPPORTED_REQUEST], + [SDLResult UNSUPPORTED_RESOURCE], + [SDLResult DISALLOWED], + [SDLResult REJECTED], + [SDLResult ABORTED], + [SDLResult IGNORED], + [SDLResult RETRY], + [SDLResult IN_USE], + [SDLResult VEHICLE_DATA_NOT_AVAILABLE], + [SDLResult TIMED_OUT], + [SDLResult INVALID_DATA], + [SDLResult CHAR_LIMIT_EXCEEDED], + [SDLResult INVALID_ID], + [SDLResult DUPLICATE_NAME], + [SDLResult APPLICATION_NOT_REGISTERED], + [SDLResult WRONG_LANGUAGE], + [SDLResult OUT_OF_MEMORY], + [SDLResult TOO_MANY_PENDING_REQUESTS], + [SDLResult TOO_MANY_APPLICATIONS], + [SDLResult APPLICATION_REGISTERED_ALREADY], + [SDLResult WARNINGS], + [SDLResult GENERIC_ERROR], + [SDLResult USER_DISALLOWED], + [SDLResult UNSUPPORTED_VERSION], + [SDLResult VEHICLE_DATA_NOT_ALLOWED], + [SDLResult FILE_NOT_FOUND], + [SDLResult CANCEL_ROUTE], + [SDLResult TRUNCATED_DATA], + [SDLResult SAVED], + [SDLResult INVALID_CERT], + [SDLResult EXPIRED_CERT], + [SDLResult RESUME_FAILED]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSamplingRateSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSamplingRateSpec.m new file mode 100644 index 000000000..1d4e56611 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSamplingRateSpec.m @@ -0,0 +1,59 @@ +// +// SDLSamplingRateSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSamplingRate.h" + +QuickSpecBegin(SDLSamplingRateSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLSamplingRate _8KHZ].value).to(equal(@"8KHZ")); + expect([SDLSamplingRate _16KHZ].value).to(equal(@"16KHZ")); + expect([SDLSamplingRate _22KHZ].value).to(equal(@"22KHZ")); + expect([SDLSamplingRate _44KHZ].value).to(equal(@"44KHZ")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLSamplingRate valueOf:@"8KHZ"]).to(equal([SDLSamplingRate _8KHZ])); + expect([SDLSamplingRate valueOf:@"16KHZ"]).to(equal([SDLSamplingRate _16KHZ])); + expect([SDLSamplingRate valueOf:@"22KHZ"]).to(equal([SDLSamplingRate _22KHZ])); + expect([SDLSamplingRate valueOf:@"44KHZ"]).to(equal([SDLSamplingRate _44KHZ])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLSamplingRate valueOf:nil]).to(beNil()); + expect([SDLSamplingRate valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLSamplingRate values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLSamplingRate _8KHZ], + [SDLSamplingRate _16KHZ], + [SDLSamplingRate _22KHZ], + [SDLSamplingRate _44KHZ]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSoftButtonTypeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSoftButtonTypeSpec.m new file mode 100644 index 000000000..6960fa1b1 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSoftButtonTypeSpec.m @@ -0,0 +1,56 @@ +// +// SDLSoftButtonTypeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSoftButtonType.h" + +QuickSpecBegin(SDLSoftButtonTypeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLSoftButtonType TEXT].value).to(equal(@"TEXT")); + expect([SDLSoftButtonType IMAGE].value).to(equal(@"IMAGE")); + expect([SDLSoftButtonType BOTH].value).to(equal(@"BOTH")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLSoftButtonType valueOf:@"TEXT"]).to(equal([SDLSoftButtonType TEXT])); + expect([SDLSoftButtonType valueOf:@"IMAGE"]).to(equal([SDLSoftButtonType IMAGE])); + expect([SDLSoftButtonType valueOf:@"BOTH"]).to(equal([SDLSoftButtonType BOTH])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLSoftButtonType valueOf:nil]).to(beNil()); + expect([SDLSoftButtonType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLSoftButtonType values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLSoftButtonType TEXT], + [SDLSoftButtonType IMAGE], + [SDLSoftButtonType BOTH]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSpeechCapabilitiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSpeechCapabilitiesSpec.m new file mode 100644 index 000000000..c33de9c8c --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSpeechCapabilitiesSpec.m @@ -0,0 +1,62 @@ +// +// SDLSpeechCapabilitiesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSpeechCapabilities.h" + +QuickSpecBegin(SDLSpeechCapabilitiesSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLSpeechCapabilities TEXT].value).to(equal(@"TEXT")); + expect([SDLSpeechCapabilities SAPI_PHONEMES].value).to(equal(@"SAPI_PHONEMES")); + expect([SDLSpeechCapabilities LHPLUS_PHONEMES].value).to(equal(@"LHPLUS_PHONEMES")); + expect([SDLSpeechCapabilities PRE_RECORDED].value).to(equal(@"PRE_RECORDED")); + expect([SDLSpeechCapabilities SILENCE].value).to(equal(@"SILENCE")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLSpeechCapabilities valueOf:@"TEXT"]).to(equal([SDLSpeechCapabilities TEXT])); + expect([SDLSpeechCapabilities valueOf:@"SAPI_PHONEMES"]).to(equal([SDLSpeechCapabilities SAPI_PHONEMES])); + expect([SDLSpeechCapabilities valueOf:@"LHPLUS_PHONEMES"]).to(equal([SDLSpeechCapabilities LHPLUS_PHONEMES])); + expect([SDLSpeechCapabilities valueOf:@"PRE_RECORDED"]).to(equal([SDLSpeechCapabilities PRE_RECORDED])); + expect([SDLSpeechCapabilities valueOf:@"SILENCE"]).to(equal([SDLSpeechCapabilities SILENCE])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLSpeechCapabilities valueOf:nil]).to(beNil()); + expect([SDLSpeechCapabilities valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLSpeechCapabilities values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLSpeechCapabilities TEXT], + [SDLSpeechCapabilities SAPI_PHONEMES], + [SDLSpeechCapabilities LHPLUS_PHONEMES], + [SDLSpeechCapabilities PRE_RECORDED], + [SDLSpeechCapabilities SILENCE]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemAction.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemAction.m new file mode 100644 index 000000000..917e1acb6 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemAction.m @@ -0,0 +1,56 @@ +// +// SDLSystemActionSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSystemAction.h" + +QuickSpecBegin(SDLSystemActionSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLSystemAction DEFAULT_ACTION].value).to(equal(@"DEFAULT_ACTION")); + expect([SDLSystemAction STEAL_FOCUS].value).to(equal(@"STEAL_FOCUS")); + expect([SDLSystemAction KEEP_CONTEXT].value).to(equal(@"KEEP_CONTEXT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLSystemAction valueOf:@"DEFAULT_ACTION"]).to(equal([SDLSystemAction DEFAULT_ACTION])); + expect([SDLSystemAction valueOf:@"STEAL_FOCUS"]).to(equal([SDLSystemAction STEAL_FOCUS])); + expect([SDLSystemAction valueOf:@"KEEP_CONTEXT"]).to(equal([SDLSystemAction KEEP_CONTEXT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLSystemAction valueOf:nil]).to(beNil()); + expect([SDLSystemAction valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLSystemAction values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLSystemAction DEFAULT_ACTION], + [SDLSystemAction STEAL_FOCUS], + [SDLSystemAction KEEP_CONTEXT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemContextSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemContextSpec.m new file mode 100644 index 000000000..694247a1d --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLSystemContextSpec.m @@ -0,0 +1,62 @@ +// +// SDLSystemContextSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSystemContext.h" + +QuickSpecBegin(SDLSystemContextSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLSystemContext MAIN].value).to(equal(@"MAIN")); + expect([SDLSystemContext VRSESSION].value).to(equal(@"VRSESSION")); + expect([SDLSystemContext MENU].value).to(equal(@"MENU")); + expect([SDLSystemContext HMI_OBSCURED].value).to(equal(@"HMI_OBSCURED")); + expect([SDLSystemContext ALERT].value).to(equal(@"ALERT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLSystemContext valueOf:@"MAIN"]).to(equal([SDLSystemContext MAIN])); + expect([SDLSystemContext valueOf:@"VRSESSION"]).to(equal([SDLSystemContext VRSESSION])); + expect([SDLSystemContext valueOf:@"MENU"]).to(equal([SDLSystemContext MENU])); + expect([SDLSystemContext valueOf:@"HMI_OBSCURED"]).to(equal([SDLSystemContext HMI_OBSCURED])); + expect([SDLSystemContext valueOf:@"ALERT"]).to(equal([SDLSystemContext ALERT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLSystemContext valueOf:nil]).to(beNil()); + expect([SDLSystemContext valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLSystemContext values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLSystemContext MAIN], + [SDLSystemContext VRSESSION], + [SDLSystemContext MENU], + [SDLSystemContext HMI_OBSCURED], + [SDLSystemContext ALERT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTBTStateSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTBTStateSpec.m new file mode 100644 index 000000000..070986389 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTBTStateSpec.m @@ -0,0 +1,77 @@ +// +// SDLTBTStateSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLTBTState.h" + +QuickSpecBegin(SDLTBTStateSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLTBTState ROUTE_UPDATE_REQUEST].value).to(equal(@"ROUTE_UPDATE_REQUEST")); + expect([SDLTBTState ROUTE_ACCEPTED].value).to(equal(@"ROUTE_ACCEPTED")); + expect([SDLTBTState ROUTE_REFUSED].value).to(equal(@"ROUTE_REFUSED")); + expect([SDLTBTState ROUTE_CANCELLED].value).to(equal(@"ROUTE_CANCELLED")); + expect([SDLTBTState ETA_REQUEST].value).to(equal(@"ETA_REQUEST")); + expect([SDLTBTState NEXT_TURN_REQUEST].value).to(equal(@"NEXT_TURN_REQUEST")); + expect([SDLTBTState ROUTE_STATUS_REQUEST].value).to(equal(@"ROUTE_STATUS_REQUEST")); + expect([SDLTBTState ROUTE_SUMMARY_REQUEST].value).to(equal(@"ROUTE_SUMMARY_REQUEST")); + expect([SDLTBTState TRIP_STATUS_REQUEST].value).to(equal(@"TRIP_STATUS_REQUEST")); + expect([SDLTBTState ROUTE_UPDATE_REQUEST_TIMEOUT].value).to(equal(@"ROUTE_UPDATE_REQUEST_TIMEOUT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLTBTState valueOf:@"ROUTE_UPDATE_REQUEST"]).to(equal([SDLTBTState ROUTE_UPDATE_REQUEST])); + expect([SDLTBTState valueOf:@"ROUTE_ACCEPTED"]).to(equal([SDLTBTState ROUTE_ACCEPTED])); + expect([SDLTBTState valueOf:@"ROUTE_REFUSED"]).to(equal([SDLTBTState ROUTE_REFUSED])); + expect([SDLTBTState valueOf:@"ROUTE_CANCELLED"]).to(equal([SDLTBTState ROUTE_CANCELLED])); + expect([SDLTBTState valueOf:@"ETA_REQUEST"]).to(equal([SDLTBTState ETA_REQUEST])); + expect([SDLTBTState valueOf:@"NEXT_TURN_REQUEST"]).to(equal([SDLTBTState NEXT_TURN_REQUEST])); + expect([SDLTBTState valueOf:@"ROUTE_STATUS_REQUEST"]).to(equal([SDLTBTState ROUTE_STATUS_REQUEST])); + expect([SDLTBTState valueOf:@"ROUTE_SUMMARY_REQUEST"]).to(equal([SDLTBTState ROUTE_SUMMARY_REQUEST])); + expect([SDLTBTState valueOf:@"TRIP_STATUS_REQUEST"]).to(equal([SDLTBTState TRIP_STATUS_REQUEST])); + expect([SDLTBTState valueOf:@"ROUTE_UPDATE_REQUEST_TIMEOUT"]).to(equal([SDLTBTState ROUTE_UPDATE_REQUEST_TIMEOUT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLTBTState valueOf:nil]).to(beNil()); + expect([SDLTBTState valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLTBTState values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLTBTState ROUTE_UPDATE_REQUEST], + [SDLTBTState ROUTE_ACCEPTED], + [SDLTBTState ROUTE_REFUSED], + [SDLTBTState ROUTE_CANCELLED], + [SDLTBTState ETA_REQUEST], + [SDLTBTState NEXT_TURN_REQUEST], + [SDLTBTState ROUTE_STATUS_REQUEST], + [SDLTBTState ROUTE_SUMMARY_REQUEST], + [SDLTBTState TRIP_STATUS_REQUEST], + [SDLTBTState ROUTE_UPDATE_REQUEST_TIMEOUT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextAlignmentSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextAlignmentSpec.m new file mode 100644 index 000000000..06082c576 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextAlignmentSpec.m @@ -0,0 +1,56 @@ +// +// SDLTextAlignmentSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLTextAlignment.h" + +QuickSpecBegin(SDLTextAlignmentSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLTextAlignment LEFT_ALIGNED].value).to(equal(@"LEFT_ALIGNED")); + expect([SDLTextAlignment RIGHT_ALIGNED].value).to(equal(@"RIGHT_ALIGNED")); + expect([SDLTextAlignment CENTERED].value).to(equal(@"CENTERED")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLTextAlignment valueOf:@"LEFT_ALIGNED"]).to(equal([SDLTextAlignment LEFT_ALIGNED])); + expect([SDLTextAlignment valueOf:@"RIGHT_ALIGNED"]).to(equal([SDLTextAlignment RIGHT_ALIGNED])); + expect([SDLTextAlignment valueOf:@"CENTERED"]).to(equal([SDLTextAlignment CENTERED])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLTextAlignment valueOf:nil]).to(beNil()); + expect([SDLTextAlignment valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLTextAlignment values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLTextAlignment LEFT_ALIGNED], + [SDLTextAlignment RIGHT_ALIGNED], + [SDLTextAlignment CENTERED]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextFieldNameSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextFieldNameSpec.m new file mode 100644 index 000000000..40be02374 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTextFieldNameSpec.m @@ -0,0 +1,133 @@ +// +// SDLTextFieldNameSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLTextFieldName.h" + +QuickSpecBegin(SDLTextFieldNameSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLTextFieldName mainField1].value).to(equal(@"mainField1")); + expect([SDLTextFieldName mainField2].value).to(equal(@"mainField2")); + expect([SDLTextFieldName mainField3].value).to(equal(@"mainField3")); + expect([SDLTextFieldName mainField4].value).to(equal(@"mainField4")); + expect([SDLTextFieldName statusBar].value).to(equal(@"statusBar")); + expect([SDLTextFieldName mediaClock].value).to(equal(@"mediaClock")); + expect([SDLTextFieldName mediaTrack].value).to(equal(@"mediaTrack")); + expect([SDLTextFieldName alertText1].value).to(equal(@"alertText1")); + expect([SDLTextFieldName alertText2].value).to(equal(@"alertText2")); + expect([SDLTextFieldName alertText3].value).to(equal(@"alertText3")); + expect([SDLTextFieldName scrollableMessageBody].value).to(equal(@"scrollableMessageBody")); + expect([SDLTextFieldName initialInteractionText].value).to(equal(@"initialInteractionText")); + expect([SDLTextFieldName navigationText1].value).to(equal(@"navigationText1")); + expect([SDLTextFieldName navigationText2].value).to(equal(@"navigationText2")); + expect([SDLTextFieldName ETA].value).to(equal(@"ETA")); + expect([SDLTextFieldName totalDistance].value).to(equal(@"totalDistance")); + expect([SDLTextFieldName audioPassThruDisplayText1].value).to(equal(@"audioPassThruDisplayText1")); + expect([SDLTextFieldName audioPassThruDisplayText2].value).to(equal(@"audioPassThruDisplayText2")); + expect([SDLTextFieldName sliderHeader].value).to(equal(@"sliderHeader")); + expect([SDLTextFieldName sliderFooter].value).to(equal(@"sliderFooter")); + expect([SDLTextFieldName menuName].value).to(equal(@"menuName")); + expect([SDLTextFieldName secondaryText].value).to(equal(@"secondaryText")); + expect([SDLTextFieldName tertiaryText].value).to(equal(@"tertiaryText")); + expect([SDLTextFieldName menuTitle].value).to(equal(@"menuTitle")); + expect([SDLTextFieldName locationName].value).to(equal(@"locationName")); + expect([SDLTextFieldName locationDescription].value).to(equal(@"locationDescription")); + expect([SDLTextFieldName addressLines].value).to(equal(@"addressLines")); + expect([SDLTextFieldName phoneNumber].value).to(equal(@"phoneNumber")); + }); +}); + +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLTextFieldName valueOf:@"mainField1"]).to(equal([SDLTextFieldName mainField1])); + expect([SDLTextFieldName valueOf:@"mainField2"]).to(equal([SDLTextFieldName mainField2])); + expect([SDLTextFieldName valueOf:@"mainField3"]).to(equal([SDLTextFieldName mainField3])); + expect([SDLTextFieldName valueOf:@"mainField4"]).to(equal([SDLTextFieldName mainField4])); + expect([SDLTextFieldName valueOf:@"statusBar"]).to(equal([SDLTextFieldName statusBar])); + expect([SDLTextFieldName valueOf:@"mediaClock"]).to(equal([SDLTextFieldName mediaClock])); + expect([SDLTextFieldName valueOf:@"mediaTrack"]).to(equal([SDLTextFieldName mediaTrack])); + expect([SDLTextFieldName valueOf:@"alertText1"]).to(equal([SDLTextFieldName alertText1])); + expect([SDLTextFieldName valueOf:@"alertText2"]).to(equal([SDLTextFieldName alertText2])); + expect([SDLTextFieldName valueOf:@"alertText3"]).to(equal([SDLTextFieldName alertText3])); + expect([SDLTextFieldName valueOf:@"scrollableMessageBody"]).to(equal([SDLTextFieldName scrollableMessageBody])); + expect([SDLTextFieldName valueOf:@"initialInteractionText"]).to(equal([SDLTextFieldName initialInteractionText])); + expect([SDLTextFieldName valueOf:@"navigationText1"]).to(equal([SDLTextFieldName navigationText1])); + expect([SDLTextFieldName valueOf:@"navigationText2"]).to(equal([SDLTextFieldName navigationText2])); + expect([SDLTextFieldName valueOf:@"ETA"]).to(equal([SDLTextFieldName ETA])); + expect([SDLTextFieldName valueOf:@"totalDistance"]).to(equal([SDLTextFieldName totalDistance])); + expect([SDLTextFieldName valueOf:@"audioPassThruDisplayText1"]).to(equal([SDLTextFieldName audioPassThruDisplayText1])); + expect([SDLTextFieldName valueOf:@"audioPassThruDisplayText2"]).to(equal([SDLTextFieldName audioPassThruDisplayText2])); + expect([SDLTextFieldName valueOf:@"sliderHeader"]).to(equal([SDLTextFieldName sliderHeader])); + expect([SDLTextFieldName valueOf:@"sliderFooter"]).to(equal([SDLTextFieldName sliderFooter])); + expect([SDLTextFieldName valueOf:@"menuName"]).to(equal([SDLTextFieldName menuName])); + expect([SDLTextFieldName valueOf:@"secondaryText"]).to(equal([SDLTextFieldName secondaryText])); + expect([SDLTextFieldName valueOf:@"tertiaryText"]).to(equal([SDLTextFieldName tertiaryText])); + expect([SDLTextFieldName valueOf:@"menuTitle"]).to(equal([SDLTextFieldName menuTitle])); + expect([SDLTextFieldName valueOf:@"locationName"]).to(equal([SDLTextFieldName locationName])); + expect([SDLTextFieldName valueOf:@"locationDescription"]).to(equal([SDLTextFieldName locationDescription])); + expect([SDLTextFieldName valueOf:@"addressLines"]).to(equal([SDLTextFieldName addressLines])); + expect([SDLTextFieldName valueOf:@"phoneNumber"]).to(equal([SDLTextFieldName phoneNumber])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLTextFieldName valueOf:nil]).to(beNil()); + expect([SDLTextFieldName valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); + +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLTextFieldName values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLTextFieldName mainField1], + [SDLTextFieldName mainField2], + [SDLTextFieldName mainField3], + [SDLTextFieldName mainField4], + [SDLTextFieldName statusBar], + [SDLTextFieldName mediaClock], + [SDLTextFieldName mediaTrack], + [SDLTextFieldName alertText1], + [SDLTextFieldName alertText2], + [SDLTextFieldName alertText3], + [SDLTextFieldName scrollableMessageBody], + [SDLTextFieldName initialInteractionText], + [SDLTextFieldName navigationText1], + [SDLTextFieldName navigationText2], + [SDLTextFieldName ETA], + [SDLTextFieldName totalDistance], + [SDLTextFieldName audioPassThruDisplayText1], + [SDLTextFieldName audioPassThruDisplayText2], + [SDLTextFieldName sliderHeader], + [SDLTextFieldName sliderFooter], + [SDLTextFieldName menuName], + [SDLTextFieldName secondaryText], + [SDLTextFieldName tertiaryText], + [SDLTextFieldName menuTitle], + [SDLTextFieldName locationName], + [SDLTextFieldName locationDescription], + [SDLTextFieldName addressLines], + [SDLTextFieldName phoneNumber]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTimerModeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTimerModeSpec.m new file mode 100644 index 000000000..0bb0a7448 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTimerModeSpec.m @@ -0,0 +1,56 @@ +// +// SDLTimerModeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLTimerMode.h" + +QuickSpecBegin(SDLTimerModeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLTimerMode UP].value).to(equal(@"UP")); + expect([SDLTimerMode DOWN].value).to(equal(@"DOWN")); + expect([SDLTimerMode NONE].value).to(equal(@"NONE")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLTimerMode valueOf:@"UP"]).to(equal([SDLTimerMode UP])); + expect([SDLTimerMode valueOf:@"DOWN"]).to(equal([SDLTimerMode DOWN])); + expect([SDLTimerMode valueOf:@"NONE"]).to(equal([SDLTimerMode NONE])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLTimerMode valueOf:nil]).to(beNil()); + expect([SDLTimerMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLTimerMode values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLTimerMode UP], + [SDLTimerMode DOWN], + [SDLTimerMode NONE]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTouchTypeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTouchTypeSpec.m new file mode 100644 index 000000000..dc72c74b2 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTouchTypeSpec.m @@ -0,0 +1,56 @@ +// +// SDLTouchTypeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLTouchType.h" + +QuickSpecBegin(SDLTouchTypeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLTouchType BEGIN].value).to(equal(@"BEGIN")); + expect([SDLTouchType MOVE].value).to(equal(@"MOVE")); + expect([SDLTouchType END].value).to(equal(@"END")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLTouchType valueOf:@"BEGIN"]).to(equal([SDLTouchType BEGIN])); + expect([SDLTouchType valueOf:@"MOVE"]).to(equal([SDLTouchType MOVE])); + expect([SDLTouchType valueOf:@"END"]).to(equal([SDLTouchType END])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLTouchType valueOf:nil]).to(beNil()); + expect([SDLTouchType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLTouchType values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLTouchType BEGIN], + [SDLTouchType MOVE], + [SDLTouchType END]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTriggerSource.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTriggerSource.m new file mode 100644 index 000000000..1a1413f54 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTriggerSource.m @@ -0,0 +1,56 @@ +// +// SDLTriggerSourceSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLTriggerSource.h" + +QuickSpecBegin(SDLTriggerSourceSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLTriggerSource MENU].value).to(equal(@"MENU")); + expect([SDLTriggerSource VR].value).to(equal(@"VR")); + expect([SDLTriggerSource KEYBOARD].value).to(equal(@"KEYBOARD")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLTriggerSource valueOf:@"MENU"]).to(equal([SDLTriggerSource MENU])); + expect([SDLTriggerSource valueOf:@"VR"]).to(equal([SDLTriggerSource VR])); + expect([SDLTriggerSource valueOf:@"KEYBOARD"]).to(equal([SDLTriggerSource KEYBOARD])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLTriggerSource valueOf:nil]).to(beNil()); + expect([SDLTriggerSource valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLTriggerSource values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLTriggerSource MENU], + [SDLTriggerSource VR], + [SDLTriggerSource KEYBOARD]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLUpdateModeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLUpdateModeSpec.m new file mode 100644 index 000000000..23c8bb5a5 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLUpdateModeSpec.m @@ -0,0 +1,62 @@ +// +// SDLUpdateModeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLUpdateMode.h" + +QuickSpecBegin(SDLUpdateModeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLUpdateMode COUNTUP].value).to(equal(@"COUNTUP")); + expect([SDLUpdateMode COUNTDOWN].value).to(equal(@"COUNTDOWN")); + expect([SDLUpdateMode PAUSE].value).to(equal(@"PAUSE")); + expect([SDLUpdateMode RESUME].value).to(equal(@"RESUME")); + expect([SDLUpdateMode CLEAR].value).to(equal(@"CLEAR")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLUpdateMode valueOf:@"COUNTUP"]).to(equal([SDLUpdateMode COUNTUP])); + expect([SDLUpdateMode valueOf:@"COUNTDOWN"]).to(equal([SDLUpdateMode COUNTDOWN])); + expect([SDLUpdateMode valueOf:@"PAUSE"]).to(equal([SDLUpdateMode PAUSE])); + expect([SDLUpdateMode valueOf:@"RESUME"]).to(equal([SDLUpdateMode RESUME])); + expect([SDLUpdateMode valueOf:@"CLEAR"]).to(equal([SDLUpdateMode CLEAR])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLUpdateMode valueOf:nil]).to(beNil()); + expect([SDLUpdateMode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLUpdateMode values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLUpdateMode COUNTUP], + [SDLUpdateMode COUNTDOWN], + [SDLUpdateMode PAUSE], + [SDLUpdateMode RESUME], + [SDLUpdateMode CLEAR]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataActiveStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataActiveStatusSpec.m new file mode 100644 index 000000000..46c2cd927 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataActiveStatusSpec.m @@ -0,0 +1,62 @@ +// +// SDLVehicleDataActiveStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLVehicleDataActiveStatus.h" + +QuickSpecBegin(SDLVehicleDataActiveStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLVehicleDataActiveStatus INACTIVE_NOT_CONFIRMED].value).to(equal(@"INACTIVE_NOT_CONFIRMED")); + expect([SDLVehicleDataActiveStatus INACTIVE_CONFIRMED].value).to(equal(@"INACTIVE_CONFIRMED")); + expect([SDLVehicleDataActiveStatus ACTIVE_NOT_CONFIRMED].value).to(equal(@"ACTIVE_NOT_CONFIRMED")); + expect([SDLVehicleDataActiveStatus ACTIVE_CONFIRMED].value).to(equal(@"ACTIVE_CONFIRMED")); + expect([SDLVehicleDataActiveStatus FAULT].value).to(equal(@"FAULT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLVehicleDataActiveStatus valueOf:@"INACTIVE_NOT_CONFIRMED"]).to(equal([SDLVehicleDataActiveStatus INACTIVE_NOT_CONFIRMED])); + expect([SDLVehicleDataActiveStatus valueOf:@"INACTIVE_CONFIRMED"]).to(equal([SDLVehicleDataActiveStatus INACTIVE_CONFIRMED])); + expect([SDLVehicleDataActiveStatus valueOf:@"ACTIVE_NOT_CONFIRMED"]).to(equal([SDLVehicleDataActiveStatus ACTIVE_NOT_CONFIRMED])); + expect([SDLVehicleDataActiveStatus valueOf:@"ACTIVE_CONFIRMED"]).to(equal([SDLVehicleDataActiveStatus ACTIVE_CONFIRMED])); + expect([SDLVehicleDataActiveStatus valueOf:@"FAULT"]).to(equal([SDLVehicleDataActiveStatus FAULT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLVehicleDataActiveStatus valueOf:nil]).to(beNil()); + expect([SDLVehicleDataActiveStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLVehicleDataActiveStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLVehicleDataActiveStatus INACTIVE_NOT_CONFIRMED], + [SDLVehicleDataActiveStatus INACTIVE_CONFIRMED], + [SDLVehicleDataActiveStatus ACTIVE_NOT_CONFIRMED], + [SDLVehicleDataActiveStatus ACTIVE_CONFIRMED], + [SDLVehicleDataActiveStatus FAULT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataEventStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataEventStatusSpec.m new file mode 100644 index 000000000..452404231 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataEventStatusSpec.m @@ -0,0 +1,62 @@ +// +// SDLVehicleDataEventStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLVehicleDataEventStatus.h" + +QuickSpecBegin(SDLVehicleDataEventStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLVehicleDataEventStatus NO_EVENT].value).to(equal(@"NO_EVENT")); + expect([SDLVehicleDataEventStatus _NO].value).to(equal(@"NO")); + expect([SDLVehicleDataEventStatus _YES].value).to(equal(@"YES")); + expect([SDLVehicleDataEventStatus NOT_SUPPORTED].value).to(equal(@"NOT_SUPPORTED")); + expect([SDLVehicleDataEventStatus FAULT].value).to(equal(@"FAULT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLVehicleDataEventStatus valueOf:@"NO_EVENT"]).to(equal([SDLVehicleDataEventStatus NO_EVENT])); + expect([SDLVehicleDataEventStatus valueOf:@"NO"]).to(equal([SDLVehicleDataEventStatus _NO])); + expect([SDLVehicleDataEventStatus valueOf:@"YES"]).to(equal([SDLVehicleDataEventStatus _YES])); + expect([SDLVehicleDataEventStatus valueOf:@"NOT_SUPPORTED"]).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); + expect([SDLVehicleDataEventStatus valueOf:@"FAULT"]).to(equal([SDLVehicleDataEventStatus FAULT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLVehicleDataEventStatus valueOf:nil]).to(beNil()); + expect([SDLVehicleDataEventStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLVehicleDataEventStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLVehicleDataEventStatus NO_EVENT], + [SDLVehicleDataEventStatus _NO], + [SDLVehicleDataEventStatus _YES], + [SDLVehicleDataEventStatus NOT_SUPPORTED], + [SDLVehicleDataEventStatus FAULT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataNotificationStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataNotificationStatusSpec.m new file mode 100644 index 000000000..6edf13783 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataNotificationStatusSpec.m @@ -0,0 +1,60 @@ +// +// SDLVehicleDataNotificationStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLVehicleDataNotificationStatus.h" + +QuickSpecBegin(SDLVehicleDataNotificationStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLVehicleDataNotificationStatus NOT_SUPPORTED].value).to(equal(@"NOT_SUPPORTED")); + expect([SDLVehicleDataNotificationStatus NORMAL].value).to(equal(@"NORMAL")); + expect([SDLVehicleDataNotificationStatus ACTIVE].value).to(equal(@"ACTIVE")); + expect([SDLVehicleDataNotificationStatus NOT_USED].value).to(equal(@"NOT_USED")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLVehicleDataNotificationStatus valueOf:@"NOT_SUPPORTED"]).to(equal([SDLVehicleDataNotificationStatus NOT_SUPPORTED])); + expect([SDLVehicleDataNotificationStatus valueOf:@"NORMAL"]).to(equal([SDLVehicleDataNotificationStatus NORMAL])); + expect([SDLVehicleDataNotificationStatus valueOf:@"ACTIVE"]).to(equal([SDLVehicleDataNotificationStatus ACTIVE])); + expect([SDLVehicleDataNotificationStatus valueOf:@"NOT_USED"]).to(equal([SDLVehicleDataNotificationStatus NOT_USED])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLVehicleDataNotificationStatus valueOf:nil]).to(beNil()); + expect([SDLVehicleDataNotificationStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLVehicleDataNotificationStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLVehicleDataNotificationStatus NOT_SUPPORTED], + [SDLVehicleDataNotificationStatus NORMAL], + [SDLVehicleDataNotificationStatus ACTIVE], + [SDLVehicleDataNotificationStatus NOT_USED]] copy]; + + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataResultCodeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataResultCodeSpec.m new file mode 100644 index 000000000..be09e2495 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataResultCodeSpec.m @@ -0,0 +1,74 @@ +// +// SDLVehicleDataResultCodeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLVehicleDataResultCode.h" + +QuickSpecBegin(SDLVehicleDataResultCodeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLVehicleDataResultCode SUCCESS].value).to(equal(@"SUCCESS")); + expect([SDLVehicleDataResultCode TRUNCATED_DATA].value).to(equal(@"TRUNCATED_DATA")); + expect([SDLVehicleDataResultCode DISALLOWED].value).to(equal(@"DISALLOWED")); + expect([SDLVehicleDataResultCode USER_DISALLOWED].value).to(equal(@"USER_DISALLOWED")); + expect([SDLVehicleDataResultCode INVALID_ID].value).to(equal(@"INVALID_ID")); + expect([SDLVehicleDataResultCode VEHICLE_DATA_NOT_AVAILABLE].value).to(equal(@"VEHICLE_DATA_NOT_AVAILABLE")); + expect([SDLVehicleDataResultCode DATA_ALREADY_SUBSCRIBED].value).to(equal(@"DATA_ALREADY_SUBSCRIBED")); + expect([SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED].value).to(equal(@"DATA_NOT_SUBSCRIBED")); + expect([SDLVehicleDataResultCode IGNORED].value).to(equal(@"IGNORED")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLVehicleDataResultCode valueOf:@"SUCCESS"]).to(equal([SDLVehicleDataResultCode SUCCESS])); + expect([SDLVehicleDataResultCode valueOf:@"TRUNCATED_DATA"]).to(equal([SDLVehicleDataResultCode TRUNCATED_DATA])); + expect([SDLVehicleDataResultCode valueOf:@"DISALLOWED"]).to(equal([SDLVehicleDataResultCode DISALLOWED])); + expect([SDLVehicleDataResultCode valueOf:@"USER_DISALLOWED"]).to(equal([SDLVehicleDataResultCode USER_DISALLOWED])); + expect([SDLVehicleDataResultCode valueOf:@"INVALID_ID"]).to(equal([SDLVehicleDataResultCode INVALID_ID])); + expect([SDLVehicleDataResultCode valueOf:@"VEHICLE_DATA_NOT_AVAILABLE"]).to(equal([SDLVehicleDataResultCode VEHICLE_DATA_NOT_AVAILABLE])); + expect([SDLVehicleDataResultCode valueOf:@"DATA_ALREADY_SUBSCRIBED"]).to(equal([SDLVehicleDataResultCode DATA_ALREADY_SUBSCRIBED])); + expect([SDLVehicleDataResultCode valueOf:@"DATA_NOT_SUBSCRIBED"]).to(equal([SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED])); + expect([SDLVehicleDataResultCode valueOf:@"IGNORED"]).to(equal([SDLVehicleDataResultCode IGNORED])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLVehicleDataResultCode valueOf:nil]).to(beNil()); + expect([SDLVehicleDataResultCode valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLVehicleDataResultCode values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLVehicleDataResultCode SUCCESS], + [SDLVehicleDataResultCode TRUNCATED_DATA], + [SDLVehicleDataResultCode DISALLOWED], + [SDLVehicleDataResultCode USER_DISALLOWED], + [SDLVehicleDataResultCode INVALID_ID], + [SDLVehicleDataResultCode VEHICLE_DATA_NOT_AVAILABLE], + [SDLVehicleDataResultCode DATA_ALREADY_SUBSCRIBED], + [SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED], + [SDLVehicleDataResultCode IGNORED]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataStatusSpec.m new file mode 100644 index 000000000..997837562 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataStatusSpec.m @@ -0,0 +1,56 @@ +// +// SDLVehicleDataStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLVehicleDataStatus.h" + +QuickSpecBegin(SDLVehicleDataStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLVehicleDataStatus NO_DATA_EXISTS].value).to(equal(@"NO_DATA_EXISTS")); + expect([SDLVehicleDataStatus OFF].value).to(equal(@"OFF")); + expect([SDLVehicleDataStatus ON].value).to(equal(@"ON")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLVehicleDataStatus valueOf:@"NO_DATA_EXISTS"]).to(equal([SDLVehicleDataStatus NO_DATA_EXISTS])); + expect([SDLVehicleDataStatus valueOf:@"OFF"]).to(equal([SDLVehicleDataStatus OFF])); + expect([SDLVehicleDataStatus valueOf:@"ON"]).to(equal([SDLVehicleDataStatus ON])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLVehicleDataStatus valueOf:nil]).to(beNil()); + expect([SDLVehicleDataStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLVehicleDataStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLVehicleDataStatus NO_DATA_EXISTS], + [SDLVehicleDataStatus OFF], + [SDLVehicleDataStatus ON]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataTypeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataTypeSpec.m new file mode 100644 index 000000000..c11e93a7f --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVehicleDataTypeSpec.m @@ -0,0 +1,125 @@ +// +// SDLVehicleDataTypeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLVehicleDataType.h" + +QuickSpecBegin(SDLVehicleDataTypeSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLVehicleDataType VEHICLEDATA_GPS].value).to(equal(@"VEHICLEDATA_GPS")); + expect([SDLVehicleDataType VEHICLEDATA_SPEED].value).to(equal(@"VEHICLEDATA_SPEED")); + expect([SDLVehicleDataType VEHICLEDATA_RPM].value).to(equal(@"VEHICLEDATA_RPM")); + expect([SDLVehicleDataType VEHICLEDATA_FUELLEVEL].value).to(equal(@"VEHICLEDATA_FUELLEVEL")); + expect([SDLVehicleDataType VEHICLEDATA_FUELLEVEL_STATE].value).to(equal(@"VEHICLEDATA_FUELLEVEL_STATE")); + expect([SDLVehicleDataType VEHICLEDATA_FUELCONSUMPTION].value).to(equal(@"VEHICLEDATA_FUELCONSUMPTION")); + expect([SDLVehicleDataType VEHICLEDATA_EXTERNTEMP].value).to(equal(@"VEHICLEDATA_EXTERNTEMP")); + expect([SDLVehicleDataType VEHICLEDATA_VIN].value).to(equal(@"VEHICLEDATA_VIN")); + expect([SDLVehicleDataType VEHICLEDATA_PRNDL].value).to(equal(@"VEHICLEDATA_PRNDL")); + expect([SDLVehicleDataType VEHICLEDATA_TIREPRESSURE].value).to(equal(@"VEHICLEDATA_TIREPRESSURE")); + expect([SDLVehicleDataType VEHICLEDATA_ODOMETER].value).to(equal(@"VEHICLEDATA_ODOMETER")); + expect([SDLVehicleDataType VEHICLEDATA_BELTSTATUS].value).to(equal(@"VEHICLEDATA_BELTSTATUS")); + expect([SDLVehicleDataType VEHICLEDATA_BODYINFO].value).to(equal(@"VEHICLEDATA_BODYINFO")); + expect([SDLVehicleDataType VEHICLEDATA_DEVICESTATUS].value).to(equal(@"VEHICLEDATA_DEVICESTATUS")); + expect([SDLVehicleDataType VEHICLEDATA_ECALLINFO].value).to(equal(@"VEHICLEDATA_ECALLINFO")); + expect([SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS].value).to(equal(@"VEHICLEDATA_AIRBAGSTATUS")); + expect([SDLVehicleDataType VEHICLEDATA_EMERGENCYEVENT].value).to(equal(@"VEHICLEDATA_EMERGENCYEVENT")); + expect([SDLVehicleDataType VEHICLEDATA_CLUSTERMODESTATUS].value).to(equal(@"VEHICLEDATA_CLUSTERMODESTATUS")); + expect([SDLVehicleDataType VEHICLEDATA_MYKEY].value).to(equal(@"VEHICLEDATA_MYKEY")); + expect([SDLVehicleDataType VEHICLEDATA_BRAKING].value).to(equal(@"VEHICLEDATA_BRAKING")); + expect([SDLVehicleDataType VEHICLEDATA_WIPERSTATUS].value).to(equal(@"VEHICLEDATA_WIPERSTATUS")); + expect([SDLVehicleDataType VEHICLEDATA_HEADLAMPSTATUS].value).to(equal(@"VEHICLEDATA_HEADLAMPSTATUS")); + expect([SDLVehicleDataType VEHICLEDATA_BATTVOLTAGE].value).to(equal(@"VEHICLEDATA_BATTVOLTAGE")); + expect([SDLVehicleDataType VEHICLEDATA_ENGINETORQUE].value).to(equal(@"VEHICLEDATA_ENGINETORQUE")); + expect([SDLVehicleDataType VEHICLEDATA_ACCPEDAL].value).to(equal(@"VEHICLEDATA_ACCPEDAL")); + expect([SDLVehicleDataType VEHICLEDATA_STEERINGWHEEL].value).to(equal(@"VEHICLEDATA_STEERINGWHEEL")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_GPS"]).to(equal([SDLVehicleDataType VEHICLEDATA_GPS])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_SPEED"]).to(equal([SDLVehicleDataType VEHICLEDATA_SPEED])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_RPM"]).to(equal([SDLVehicleDataType VEHICLEDATA_RPM])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_FUELLEVEL"]).to(equal([SDLVehicleDataType VEHICLEDATA_FUELLEVEL])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_FUELLEVEL_STATE"]).to(equal([SDLVehicleDataType VEHICLEDATA_FUELLEVEL_STATE])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_FUELCONSUMPTION"]).to(equal([SDLVehicleDataType VEHICLEDATA_FUELCONSUMPTION])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_EXTERNTEMP"]).to(equal([SDLVehicleDataType VEHICLEDATA_EXTERNTEMP])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_VIN"]).to(equal([SDLVehicleDataType VEHICLEDATA_VIN])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_PRNDL"]).to(equal([SDLVehicleDataType VEHICLEDATA_PRNDL])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_TIREPRESSURE"]).to(equal([SDLVehicleDataType VEHICLEDATA_TIREPRESSURE])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_ODOMETER"]).to(equal([SDLVehicleDataType VEHICLEDATA_ODOMETER])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_BELTSTATUS"]).to(equal([SDLVehicleDataType VEHICLEDATA_BELTSTATUS])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_BODYINFO"]).to(equal([SDLVehicleDataType VEHICLEDATA_BODYINFO])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_DEVICESTATUS"]).to(equal([SDLVehicleDataType VEHICLEDATA_DEVICESTATUS])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_ECALLINFO"]).to(equal([SDLVehicleDataType VEHICLEDATA_ECALLINFO])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_AIRBAGSTATUS"]).to(equal([SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_EMERGENCYEVENT"]).to(equal([SDLVehicleDataType VEHICLEDATA_EMERGENCYEVENT])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_CLUSTERMODESTATUS"]).to(equal([SDLVehicleDataType VEHICLEDATA_CLUSTERMODESTATUS])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_MYKEY"]).to(equal([SDLVehicleDataType VEHICLEDATA_MYKEY])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_BRAKING"]).to(equal([SDLVehicleDataType VEHICLEDATA_BRAKING])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_WIPERSTATUS"]).to(equal([SDLVehicleDataType VEHICLEDATA_WIPERSTATUS])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_HEADLAMPSTATUS"]).to(equal([SDLVehicleDataType VEHICLEDATA_HEADLAMPSTATUS])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_BATTVOLTAGE"]).to(equal([SDLVehicleDataType VEHICLEDATA_BATTVOLTAGE])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_ENGINETORQUE"]).to(equal([SDLVehicleDataType VEHICLEDATA_ENGINETORQUE])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_ACCPEDAL"]).to(equal([SDLVehicleDataType VEHICLEDATA_ACCPEDAL])); + expect([SDLVehicleDataType valueOf:@"VEHICLEDATA_STEERINGWHEEL"]).to(equal([SDLVehicleDataType VEHICLEDATA_STEERINGWHEEL])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLVehicleDataType valueOf:nil]).to(beNil()); + expect([SDLVehicleDataType valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLVehicleDataType values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLVehicleDataType VEHICLEDATA_GPS], + [SDLVehicleDataType VEHICLEDATA_SPEED], + [SDLVehicleDataType VEHICLEDATA_RPM], + [SDLVehicleDataType VEHICLEDATA_FUELLEVEL], + [SDLVehicleDataType VEHICLEDATA_FUELLEVEL_STATE], + [SDLVehicleDataType VEHICLEDATA_FUELCONSUMPTION], + [SDLVehicleDataType VEHICLEDATA_EXTERNTEMP], + [SDLVehicleDataType VEHICLEDATA_VIN], + [SDLVehicleDataType VEHICLEDATA_PRNDL], + [SDLVehicleDataType VEHICLEDATA_TIREPRESSURE], + [SDLVehicleDataType VEHICLEDATA_ODOMETER], + [SDLVehicleDataType VEHICLEDATA_BELTSTATUS], + [SDLVehicleDataType VEHICLEDATA_BODYINFO], + [SDLVehicleDataType VEHICLEDATA_DEVICESTATUS], + [SDLVehicleDataType VEHICLEDATA_ECALLINFO], + [SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS], + [SDLVehicleDataType VEHICLEDATA_EMERGENCYEVENT], + [SDLVehicleDataType VEHICLEDATA_CLUSTERMODESTATUS], + [SDLVehicleDataType VEHICLEDATA_MYKEY], + [SDLVehicleDataType VEHICLEDATA_BRAKING], + [SDLVehicleDataType VEHICLEDATA_WIPERSTATUS], + [SDLVehicleDataType VEHICLEDATA_HEADLAMPSTATUS], + [SDLVehicleDataType VEHICLEDATA_BATTVOLTAGE], + [SDLVehicleDataType VEHICLEDATA_ENGINETORQUE], + [SDLVehicleDataType VEHICLEDATA_ACCPEDAL], + [SDLVehicleDataType VEHICLEDATA_STEERINGWHEEL]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVrCapabilitiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVrCapabilitiesSpec.m new file mode 100644 index 000000000..be62ee96a --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVrCapabilitiesSpec.m @@ -0,0 +1,50 @@ +// +// SDLVrCapabilitiesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLVrCapabilities.h" + +QuickSpecBegin(SDLVrCapabilitiesSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLVRCapabilities TEXT].value).to(equal(@"TEXT")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLVRCapabilities valueOf:@"TEXT"]).to(equal([SDLVRCapabilities TEXT])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLVRCapabilities valueOf:nil]).to(beNil()); + expect([SDLVRCapabilities valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLVRCapabilities values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLVRCapabilities TEXT]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWarningLightStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWarningLightStatusSpec.m new file mode 100644 index 000000000..698116e50 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWarningLightStatusSpec.m @@ -0,0 +1,60 @@ +// +// SDLWarningLightStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLWarningLightStatus.h" + +QuickSpecBegin(SDLWarningLightStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLWarningLightStatus OFF].value).to(equal(@"OFF")); + expect([SDLWarningLightStatus ON].value).to(equal(@"ON")); + expect([SDLWarningLightStatus FLASH].value).to(equal(@"FLASH")); + expect([SDLWarningLightStatus NOT_USED].value).to(equal(@"NOT_USED")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLWarningLightStatus valueOf:@"OFF"]).to(equal([SDLWarningLightStatus OFF])); + expect([SDLWarningLightStatus valueOf:@"ON"]).to(equal([SDLWarningLightStatus ON])); + expect([SDLWarningLightStatus valueOf:@"FLASH"]).to(equal([SDLWarningLightStatus FLASH])); + expect([SDLWarningLightStatus valueOf:@"NOT_USED"]).to(equal([SDLWarningLightStatus NOT_USED])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLWarningLightStatus valueOf:nil]).to(beNil()); + expect([SDLWarningLightStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLWarningLightStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLWarningLightStatus OFF], + [SDLWarningLightStatus ON], + [SDLWarningLightStatus FLASH], + [SDLWarningLightStatus NOT_USED]] copy]; + + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWiperStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWiperStatusSpec.m new file mode 100644 index 000000000..18fbce66c --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWiperStatusSpec.m @@ -0,0 +1,92 @@ +// +// SDLWiperStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLWiperStatus.h" + +QuickSpecBegin(SDLWiperStatusSpec) + +describe(@"Individual Enum Value Tests", ^ { + it(@"Should match internal values", ^ { + expect([SDLWiperStatus OFF].value).to(equal(@"OFF")); + expect([SDLWiperStatus AUTO_OFF].value).to(equal(@"AUTO_OFF")); + expect([SDLWiperStatus OFF_MOVING].value).to(equal(@"OFF_MOVING")); + expect([SDLWiperStatus MAN_INT_OFF].value).to(equal(@"MAN_INT_OFF")); + expect([SDLWiperStatus MAN_INT_ON].value).to(equal(@"MAN_INT_ON")); + expect([SDLWiperStatus MAN_LOW].value).to(equal(@"MAN_LOW")); + expect([SDLWiperStatus MAN_HIGH].value).to(equal(@"MAN_HIGH")); + expect([SDLWiperStatus MAN_FLICK].value).to(equal(@"MAN_FLICK")); + expect([SDLWiperStatus WASH].value).to(equal(@"WASH")); + expect([SDLWiperStatus AUTO_LOW].value).to(equal(@"AUTO_LOW")); + expect([SDLWiperStatus AUTO_HIGH].value).to(equal(@"AUTO_HIGH")); + expect([SDLWiperStatus COURTESYWIPE].value).to(equal(@"COURTESYWIPE")); + expect([SDLWiperStatus AUTO_ADJUST].value).to(equal(@"AUTO_ADJUST")); + expect([SDLWiperStatus STALLED].value).to(equal(@"STALLED")); + expect([SDLWiperStatus NO_DATA_EXISTS].value).to(equal(@"NO_DATA_EXISTS")); + }); +}); +describe(@"ValueOf Tests", ^ { + it(@"Should return correct values when valid", ^ { + expect([SDLWiperStatus valueOf:@"OFF"]).to(equal([SDLWiperStatus OFF])); + expect([SDLWiperStatus valueOf:@"AUTO_OFF"]).to(equal([SDLWiperStatus AUTO_OFF])); + expect([SDLWiperStatus valueOf:@"OFF_MOVING"]).to(equal([SDLWiperStatus OFF_MOVING])); + expect([SDLWiperStatus valueOf:@"MAN_INT_OFF"]).to(equal([SDLWiperStatus MAN_INT_OFF])); + expect([SDLWiperStatus valueOf:@"MAN_INT_ON"]).to(equal([SDLWiperStatus MAN_INT_ON])); + expect([SDLWiperStatus valueOf:@"MAN_LOW"]).to(equal([SDLWiperStatus MAN_LOW])); + expect([SDLWiperStatus valueOf:@"MAN_HIGH"]).to(equal([SDLWiperStatus MAN_HIGH])); + expect([SDLWiperStatus valueOf:@"MAN_FLICK"]).to(equal([SDLWiperStatus MAN_FLICK])); + expect([SDLWiperStatus valueOf:@"WASH"]).to(equal([SDLWiperStatus WASH])); + expect([SDLWiperStatus valueOf:@"AUTO_LOW"]).to(equal([SDLWiperStatus AUTO_LOW])); + expect([SDLWiperStatus valueOf:@"AUTO_HIGH"]).to(equal([SDLWiperStatus AUTO_HIGH])); + expect([SDLWiperStatus valueOf:@"COURTESYWIPE"]).to(equal([SDLWiperStatus COURTESYWIPE])); + expect([SDLWiperStatus valueOf:@"AUTO_ADJUST"]).to(equal([SDLWiperStatus AUTO_ADJUST])); + expect([SDLWiperStatus valueOf:@"STALLED"]).to(equal([SDLWiperStatus STALLED])); + expect([SDLWiperStatus valueOf:@"NO_DATA_EXISTS"]).to(equal([SDLWiperStatus NO_DATA_EXISTS])); + }); + + it(@"Should return nil when invalid", ^ { + expect([SDLWiperStatus valueOf:nil]).to(beNil()); + expect([SDLWiperStatus valueOf:@"JKUYTFHYTHJGFRFGYTR"]).to(beNil()); + }); +}); +describe(@"Value List Tests", ^ { + NSArray* storedValues = [SDLWiperStatus values]; + __block NSArray* definedValues; + beforeSuite(^ { + definedValues = [@[[SDLWiperStatus OFF], + [SDLWiperStatus AUTO_OFF], + [SDLWiperStatus OFF_MOVING], + [SDLWiperStatus MAN_INT_OFF], + [SDLWiperStatus MAN_INT_ON], + [SDLWiperStatus MAN_LOW], + [SDLWiperStatus MAN_HIGH], + [SDLWiperStatus MAN_FLICK], + [SDLWiperStatus WASH], + [SDLWiperStatus AUTO_LOW], + [SDLWiperStatus AUTO_HIGH], + [SDLWiperStatus COURTESYWIPE], + [SDLWiperStatus AUTO_ADJUST], + [SDLWiperStatus STALLED], + [SDLWiperStatus NO_DATA_EXISTS]] copy]; + }); + + it(@"Should contain all defined enum values", ^ { + for (int i = 0; i < definedValues.count; i++) { + expect(storedValues).to(contain(definedValues[i])); + } + }); + + it(@"Should contain only defined enum values", ^ { + for (int i = 0; i < storedValues.count; i++) { + expect(definedValues).to(contain(storedValues[i])); + } + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/FactorySpecs/SDLRPCRequestFactorySpec.m b/SmartDeviceLinkTests/RPCSpecs/FactorySpecs/SDLRPCRequestFactorySpec.m new file mode 100644 index 000000000..1f7da2226 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/FactorySpecs/SDLRPCRequestFactorySpec.m @@ -0,0 +1,986 @@ +// +// SmartDeviceLinkTests.m +// SmartDeviceLinkTests + + +#import + +#import +#import + +#import "SmartDeviceLink.h" + + +QuickSpecBegin(SDLRPCRequestFactorySpec) + +describe(@"BuildAddCommand Tests", ^ { + it(@"Should build correctly", ^ { + SDLAddCommand* message = [SDLRPCRequestFactory buildAddCommandWithID:@33 menuName:@"Menu" parentID:@4 position:@500 + vrCommands:nil iconValue:@"No" iconType:[SDLImageType STATIC] correlationID:@94]; + expect([message menuParams].position).to(equal(@500)); + expect([message menuParams].menuName).to(equal(@"Menu")); + expect([message menuParams].parentID).to(equal(@4)); + expect([message cmdIcon].value).to(equal(@"No")); + expect([message cmdIcon].imageType).to(equal([SDLImageType STATIC])); + expect(message.vrCommands).to(beNil()); + expect(message.cmdID).to(equal(@33)); + expect(message.correlationID).to(equal(@94)); + + NSArray* aliases = @[@"Joe1", @"Joe2", @"Joe3", + @"--------------------------------ASLONGOFASTRINGASICANPOSSIBLYMAKEINASINGLELINE---------------------------------"]; + message = [SDLRPCRequestFactory buildAddCommandWithID:@276 menuName:@"Arbitrary" vrCommands:aliases correlationID:@200]; + + expect([message menuParams].position).to(beNil()); + expect([message menuParams].menuName).to(equal(@"Arbitrary")); + expect([message menuParams].parentID).to(beNil()); + expect(message.vrCommands).to(equal(aliases)); + expect(message.cmdIcon).to(beNil()); + expect(message.cmdID).to(equal(@276)); + expect(message.correlationID).to(equal(@200)); + + message = [SDLRPCRequestFactory buildAddCommandWithID:@9001 vrCommands:@[@" ", @" ", @" ", @""] correlationID:@27]; + + expect(message.menuParams).to(beNil()); + expect(message.vrCommands).to(equal(@[@" ", @" ", @" ", @""])); + expect(message.cmdIcon).to(beNil()); + expect(message.cmdID).to(equal(@9001)); + expect(message.correlationID).to(equal(@27)); + }); +}); + +describe(@"BuildAddSubMenu Tests", ^ { + it(@"Should build correctly", ^ { + SDLAddSubMenu* message = [SDLRPCRequestFactory buildAddSubMenuWithID:@234234 menuName:@"QWERTY" position:@3 correlationID:@13]; + + expect(message.menuName).to(equal(@"QWERTY")); + expect(message.position).to(equal(@3)); + expect(message.menuID).to(equal(@234234)); + expect(message.correlationID).to(equal(@13)); + + message = [SDLRPCRequestFactory buildAddSubMenuWithID:@444 menuName:@"Words" correlationID:@423]; + + expect(message.menuName).to(equal(@"Words")); + expect(message.position).to(beNil()); + expect(message.menuID).to(equal(@444)); + expect(message.correlationID).to(equal(@423)); + }); +}); + +describe(@"BuildAlert Tests", ^ { + context(@"With Text", ^ { + it(@"Should build correctly", ^ { + NSArray* softButtons = @[[[SDLSoftButton alloc] init]]; + SDLAlert* message = [SDLRPCRequestFactory buildAlertWithAlertText1:@"String1" alertText2:@"String2" alertText3:@"String3" + duration:@9999 softButtons:softButtons correlationID:@41]; + + expect(message.alertText1).to(equal(@"String1")); + expect(message.alertText2).to(equal(@"String2")); + expect(message.alertText3).to(equal(@"String3")); + expect(message.ttsChunks).to(beNil()); + expect(message.duration).to(equal(@9999)); + expect(message.playTone).to(beNil()); + expect(message.progressIndicator).to(beNil()); + expect(message.softButtons).to(equal(softButtons)); + expect(message.correlationID).to(equal(@41)); + + message = [SDLRPCRequestFactory buildAlertWithAlertText1:@"Alarming" alertText2:@"Astonishing" alertText3:@"Attention" + duration:@3000 correlationID:@11234]; + + expect(message.alertText1).to(equal(@"Alarming")); + expect(message.alertText2).to(equal(@"Astonishing")); + expect(message.alertText3).to(equal(@"Attention")); + expect(message.ttsChunks).to(beNil()); + expect(message.duration).to(equal(@3000)); + expect(message.playTone).to(beNil()); + expect(message.progressIndicator).to(beNil()); + expect(message.softButtons).to(beNil()); + expect(message.correlationID).to(equal(@11234)); + + message = [SDLRPCRequestFactory buildAlertWithAlertText1:@"1" alertText2:@"2" duration:@4153 correlationID:@1432143]; + + expect(message.alertText1).to(equal(@"1")); + expect(message.alertText2).to(equal(@"2")); + expect(message.alertText3).to(beNil()); + expect(message.ttsChunks).to(beNil()); + expect(message.duration).to(equal(@4153)); + expect(message.playTone).to(beNil()); + expect(message.progressIndicator).to(beNil()); + expect(message.softButtons).to(beNil()); + expect(message.correlationID).to(equal(@1432143)); + }); + }); + + context(@"With TTS", ^ { + it(@"Should build correctly", ^ { + SDLAlert* message = [SDLRPCRequestFactory buildAlertWithTTS:@"Wat" alertText1:@"11" alertText2:@"12" alertText3:@"13" + playTone:@NO duration:@3424 correlationID:@9999999]; + + expect(message.alertText1).to(equal(@"11")); + expect(message.alertText2).to(equal(@"12")); + expect(message.alertText3).to(equal(@"13")); + expect(((SDLTTSChunk*)[message ttsChunks][0]).text).to(equal(@"Wat")); + expect(message.duration).to(equal(@3424)); + expect(message.playTone).to(equal(@NO)); + expect(message.progressIndicator).to(beNil()); + expect(message.softButtons).to(beNil()); + expect(message.correlationID).to(equal(@9999999)); + + message = [SDLRPCRequestFactory buildAlertWithTTS:@"Say This" alertText1:@"hgkj" alertText2:@"bgydhgfc" + playTone:@YES duration:@6546 correlationID:@65436786]; + + expect(message.alertText1).to(equal(@"hgkj")); + expect(message.alertText2).to(equal(@"bgydhgfc")); + expect(message.alertText3).to(beNil()); + expect(((SDLTTSChunk*)[message ttsChunks][0]).text).to(equal(@"Say This")); + expect(message.duration).to(equal(@6546)); + expect(message.playTone).to(equal(@YES)); + expect(message.progressIndicator).to(beNil()); + expect(message.softButtons).to(beNil()); + expect(message.correlationID).to(equal(@65436786)); + + message = [SDLRPCRequestFactory buildAlertWithTTS:@"Surprise" playTone:@YES correlationID:@34]; + + expect(message.alertText1).to(beNil()); + expect(message.alertText2).to(beNil()); + expect(message.alertText3).to(beNil()); + expect(((SDLTTSChunk*)[message ttsChunks][0]).text).to(equal(@"Surprise")); + expect(message.duration).to(beNil()); + expect(message.playTone).to(equal(@YES)); + expect(message.progressIndicator).to(beNil()); + expect(message.softButtons).to(beNil()); + expect(message.correlationID).to(equal(@34)); + }); + }); + + context(@"With TTSChunks", ^ { + it(@"Should build correctly", ^ { + NSArray* softButtons = @[[[SDLSoftButton alloc] init]]; + NSArray* ttsChunks = @[[[SDLTTSChunk alloc] init]]; + SDLAlert* message = [SDLRPCRequestFactory buildAlertWithTTSChunks:ttsChunks alertText1:@"Astonish" alertText2:@"Hi" alertText3:@"Alert" + playTone:@NO duration:@4145 softButtons:softButtons correlationID:@19]; + + expect(message.alertText1).to(equal(@"Astonish")); + expect(message.alertText2).to(equal(@"Hi")); + expect(message.alertText3).to(equal(@"Alert")); + expect(message.ttsChunks).to(equal(ttsChunks)); + expect(message.duration).to(equal(@4145)); + expect(message.playTone).to(equal(@NO)); + expect(message.progressIndicator).to(beNil()); + expect(message.softButtons).to(equal(softButtons)); + expect(message.correlationID).to(equal(@19)); + + message = [SDLRPCRequestFactory buildAlertWithTTSChunks:ttsChunks playTone:@YES correlationID:@1234321]; + + expect(message.alertText1).to(beNil()); + expect(message.alertText2).to(beNil()); + expect(message.alertText3).to(beNil()); + expect(message.ttsChunks).to(equal(ttsChunks)); + expect(message.duration).to(beNil()); + expect(message.playTone).to(equal(@YES)); + expect(message.progressIndicator).to(beNil()); + expect(message.softButtons).to(beNil()); + expect(message.correlationID).to(equal(@1234321)); + }); + }); +}); + + +describe(@"SDLAlertManeuver Tests", ^ { + __block NSMutableArray *softButtons = nil; + __block NSMutableArray *ttsChunks = nil; + __block SDLAlertManeuver *message = nil; + + describe(@"Should build correctly", ^ { + beforeEach(^{ + softButtons = [@[[[SDLSoftButton alloc] init]] mutableCopy]; + ttsChunks = [@[[[SDLTTSChunk alloc] init]] mutableCopy]; + message = [SDLRPCRequestFactory buildAlertManeuverwithTTSchunks:ttsChunks softButtons:softButtons correlationID:@1234]; + }); + + it(@"Should properly set TTS Chunks", ^{ + expect(message.ttsChunks).to(equal(ttsChunks)); + }); + + it(@"Should properly set Soft Buttons", ^{ + expect(message.softButtons).to(equal(softButtons)); + }); + + it(@"Should properly set Correlation ID", ^{ + expect(message.correlationID).to(equal(@1234)); + }); + }); +}); + + +describe(@"BuildChangeRegistration Tests", ^ { + it(@"Should build correctly", ^ { + SDLChangeRegistration* message = [SDLRPCRequestFactory buildChangeRegistrationWithLanguage:[SDLLanguage EN_GB] hmiDisplayLanguage:[SDLLanguage DE_DE] correlationID:@22336644]; + + expect(message.language).to(equal([SDLLanguage EN_GB])); + expect(message.hmiDisplayLanguage).to(equal([SDLLanguage DE_DE])); + expect(message.correlationID).to(equal(@22336644)); + }); +}); + +describe(@"BuildCreateInteractionChoiceSet Tests", ^ { + it(@"Should build correctly", ^ { + NSArray* choices = @[[[SDLChoice alloc] init]]; + SDLCreateInteractionChoiceSet* message = [SDLRPCRequestFactory buildCreateInteractionChoiceSetWithID:@4567654 choiceSet:choices correlationID:@0]; + + expect(message.interactionChoiceSetID).to(equal(@4567654)); + expect(message.choiceSet).to(equal(choices)); + expect(message.correlationID).to(equal(@0)); + }); +}); + +describe(@"BuildDeleteCommand Tests", ^ { + it(@"Should build correctly", ^ { + SDLDeleteCommand* message = [SDLRPCRequestFactory buildDeleteCommandWithID:@2 correlationID:@234]; + + expect(message.cmdID).to(equal(@2)); + expect(message.correlationID).to(equal(@234)); + }); +}); + +describe(@"BuildDeleteFile Tests", ^ { + it(@"Should build correctly", ^ { + SDLDeleteFile* message = [SDLRPCRequestFactory buildDeleteFileWithName:@"CRITICAL_FILE" correlationID:@4930]; + + expect(message.syncFileName).to(equal(@"CRITICAL_FILE")); + expect(message.correlationID).to(equal(@4930)); + }); +}); + +describe(@"BuildListFiles Tests", ^ { + it(@"Should build correctly", ^ { + SDLListFiles* message = [SDLRPCRequestFactory buildListFilesWithCorrelationID:@13123]; + + expect(message.correlationID).to(equal(@13123)); + }); +}); + +describe(@"BuildDeleteInteractionChoiceSet Tests", ^ { + it(@"Should build correctly", ^ { + SDLDeleteInteractionChoiceSet* message = [SDLRPCRequestFactory buildDeleteInteractionChoiceSetWithID:@46765426 correlationID:@46765426]; + + expect(message.interactionChoiceSetID).to(equal(@46765426)); + expect(message.correlationID).to(equal(@46765426)); + }); +}); + +describe(@"BuildDeleteSubMenu Tests", ^ { + it(@"Should build correctly", ^ { + SDLDeleteSubMenu* message = [SDLRPCRequestFactory buildDeleteSubMenuWithID:@3515 correlationID:@5153]; + + expect(message.menuID).to(equal(@3515)); + expect(message.correlationID).to(equal(@5153)); + }); +}); + +describe(@"BuildDialNumber", ^{ + __block SDLDialNumber *message = nil; + __block NSString *someNumberString = nil; + + describe(@"when built correctly", ^{ + beforeEach(^{ + someNumberString = @"1234567890"; + message = [SDLRPCRequestFactory buildDialNumberWithNumber:someNumberString]; + }); + + it(@"should not be nil", ^{ + expect(message).toNot(beNil()); + }); + + it(@"should have number set properly", ^{ + expect(message.number).to(equal(someNumberString)); + }); + }); +}); + +describe(@"BuildEndAudioPassThru Tests", ^ { + it(@"Should build correctly", ^ { + SDLEndAudioPassThru* message = [SDLRPCRequestFactory buildEndAudioPassThruWithCorrelationID:@13123]; + + expect(message.correlationID).to(equal(@13123)); + }); +}); + +describe(@"BuildGetDTCs Tests", ^ { + it(@"Should build correctly", ^ { + SDLGetDTCs* message = [SDLRPCRequestFactory buildGetDTCsWithECUName:@255 correlationID:@60806050]; + + expect(message.ecuName).to(equal(@255)); + expect(message.dtcMask).to(beNil()); + expect(message.correlationID).to(equal(@60806050)); + }); +}); + +describe(@"BuildGetVehicleData Tests", ^ { + it(@"Should build correctly", ^ { + SDLGetVehicleData* message = [SDLRPCRequestFactory buildGetVehicleDataWithGPS:@YES speed:@NO rpm:@NO + fuelLevel:@YES fuelLevelState:@YES instantFuelConsumption:@NO + externalTemperature:@YES vin:@YES prndl:@YES + tirePressure:@NO odometer:@NO beltStatus:@NO + bodyInformation:@YES deviceStatus:@NO driverBraking:@NO + wiperStatus:@NO headLampStatus:@YES engineTorque:@YES + accPedalPosition:@NO steeringWheelAngle:@YES correlationID:@936]; + + expect(message.gps).to(equal(@YES)); + expect(message.speed).to(equal(@NO)); + expect(message.rpm).to(equal(@NO)); + expect(message.fuelLevel).to(equal(@YES)); + expect(message.fuelLevel_State).to(equal(@YES)); + expect(message.instantFuelConsumption).to(equal(@NO)); + expect(message.externalTemperature).to(equal(@YES)); + expect(message.vin).to(equal(@YES)); + expect(message.prndl).to(equal(@YES)); + expect(message.tirePressure).to(equal(@NO)); + expect(message.odometer).to(equal(@NO)); + expect(message.beltStatus).to(equal(@NO)); + expect(message.bodyInformation).to(equal(@YES)); + expect(message.deviceStatus).to(equal(@NO)); + expect(message.driverBraking).to(equal(@NO)); + expect(message.wiperStatus).to(equal(@NO)); + expect(message.headLampStatus).to(equal(@YES)); + expect(message.engineTorque).to(equal(@YES)); + expect(message.accPedalPosition).to(equal(@NO)); + expect(message.steeringWheelAngle).to(equal(@YES)); + expect(message.eCallInfo).to(beNil()); + expect(message.airbagStatus).to(beNil()); + expect(message.emergencyEvent).to(beNil()); + expect(message.clusterModeStatus).to(beNil()); + expect(message.myKey).to(beNil()); + expect(message.correlationID).to(equal(@936)); + }); +}); + +describe(@"BuildPerformAudioPassThru Tests", ^ { + it(@"Should build correctly", ^ { + SDLPerformAudioPassThru* message = [SDLRPCRequestFactory buildPerformAudioPassThruWithInitialPrompt:@"" audioPassThruDisplayText1:@"Display1" audioPassThruDisplayText2:@"Display2" + samplingRate:[SDLSamplingRate _44KHZ] maxDuration:@10 bitsPerSample:[SDLBitsPerSample _16_BIT] audioType:[SDLAudioType PCM] + muteAudio:@NO correlationID:@2500]; + + expect(((SDLTTSChunk*)[message initialPrompt][0]).text).to(equal(@"")); + expect(message.audioPassThruDisplayText1).to(equal(@"Display1")); + expect(message.audioPassThruDisplayText2).to(equal(@"Display2")); + expect(message.samplingRate).to(equal([SDLSamplingRate _44KHZ])); + expect(message.maxDuration).to(equal(@10)); + expect(message.bitsPerSample).to(equal([SDLBitsPerSample _16_BIT])); + expect(message.audioType).to(equal([SDLAudioType PCM])); + expect(message.muteAudio).to(equal(@NO)); + expect(message.correlationID).to(equal(@2500)); + }); +}); + +describe(@"BuildPerformInteraction Tests", ^ { + context(@"With Initial Chunks", ^ { + it(@"Should build correctly", ^ { + NSArray* initialChunks = @[[[SDLTTSChunk alloc] init]]; + NSArray* helpChunks = @[[[SDLTTSChunk alloc] init]]; + NSArray* timeoutChunks = @[[[SDLTTSChunk alloc] init]]; + NSArray* vrHelp = @[[[SDLVRHelpItem alloc] init]]; + SDLPerformInteraction* message = [SDLRPCRequestFactory buildPerformInteractionWithInitialChunks:initialChunks initialText:@"Start" interactionChoiceSetIDList:@[@878] + helpChunks:helpChunks timeoutChunks:timeoutChunks interactionMode:[SDLInteractionMode MANUAL_ONLY] timeout:@7500 + vrHelp:vrHelp correlationID:@272727]; + + expect(message.initialPrompt).to(equal(initialChunks)); + expect(message.initialText).to(equal(@"Start")); + expect(message.interactionChoiceSetIDList).to(equal(@[@878])); + expect(message.helpPrompt).to(equal(helpChunks)); + expect(message.timeoutPrompt).to(equal(timeoutChunks)); + expect(message.interactionMode).to(equal([SDLInteractionMode MANUAL_ONLY])); + expect(message.timeout).to(equal(@7500)); + expect(message.vrHelp).to(equal(vrHelp)); + expect(message.interactionLayout).to(beNil()); + expect(message.correlationID).to(equal(@272727)); + }); + }); + + context(@"With Initial Prompt", ^ { + it(@"Should build correctly", ^ { + NSArray* vrHelp = @[[[SDLVRHelpItem alloc] init]]; + SDLPerformInteraction* message = [SDLRPCRequestFactory buildPerformInteractionWithInitialPrompt:@"Nothing" initialText:@"Still Nothing" interactionChoiceSetIDList:@[@4223, @1337] + helpPrompt:@"A Whole Lot of Nothing" timeoutPrompt:@"Time Remaining" interactionMode:[SDLInteractionMode VR_ONLY] + timeout:@5600 vrHelp:vrHelp correlationID:@31564]; + + expect(((SDLTTSChunk*)[message initialPrompt][0]).text).to(equal(@"Nothing")); + expect(message.initialText).to(equal(@"Still Nothing")); + expect(message.interactionChoiceSetIDList).to(equal(@[@4223, @1337])); + expect(((SDLTTSChunk*)[message helpPrompt][0]).text).to(equal(@"A Whole Lot of Nothing")); + expect(((SDLTTSChunk*)[message timeoutPrompt][0]).text).to(equal(@"Time Remaining")); + expect(message.interactionMode).to(equal([SDLInteractionMode VR_ONLY])); + expect(message.timeout).to(equal(@5600)); + expect(message.vrHelp).to(equal(vrHelp)); + expect(message.interactionLayout).to(beNil()); + expect(message.correlationID).to(equal(@31564)); + + message = [SDLRPCRequestFactory buildPerformInteractionWithInitialPrompt:@"A" initialText:@"B" interactionChoiceSetIDList:@[@1, @2, @3, @4] helpPrompt:@"C" timeoutPrompt:@"D" + interactionMode:[SDLInteractionMode BOTH] timeout:@10000 correlationID:@7734]; + + expect(((SDLTTSChunk*)[message initialPrompt][0]).text).to(equal(@"A")); + expect(message.initialText).to(equal(@"B")); + expect(message.interactionChoiceSetIDList).to(equal(@[@1, @2, @3, @4])); + expect(((SDLTTSChunk*)[message helpPrompt][0]).text).to(equal(@"C")); + expect(((SDLTTSChunk*)[message timeoutPrompt][0]).text).to(equal(@"D")); + expect(message.interactionMode).to(equal([SDLInteractionMode BOTH])); + expect(message.timeout).to(equal(@10000)); + expect(message.vrHelp).to(beNil()); + expect(message.interactionLayout).to(beNil()); + expect(message.correlationID).to(equal(@7734)); + + message = [SDLRPCRequestFactory buildPerformInteractionWithInitialPrompt:@"Initializing" initialText:@"Initialized" interactionChoiceSetID:@1456 vrHelp:vrHelp correlationID:@7056704]; + + expect(((SDLTTSChunk*)[message initialPrompt][0]).text).to(equal(@"Initializing")); + expect(message.initialText).to(equal(@"Initialized")); + expect(message.interactionChoiceSetIDList).to(equal(@[@1456])); + expect(message.helpPrompt).to(beNil()); + expect(message.timeoutPrompt).to(beNil()); + //Don't know whether the reason for this failure is a bug... + expect(message.interactionMode).to(equal([SDLInteractionMode BOTH])); + expect(message.timeout).to(beNil()); + expect(message.vrHelp).to(equal(vrHelp)); + expect(message.interactionLayout).to(beNil()); + expect(message.correlationID).to(equal(@7056704)); + + message = [SDLRPCRequestFactory buildPerformInteractionWithInitialPrompt:@"#$%@" initialText:@"!%%&&^$" interactionChoiceSetID:@105503 correlationID:@1454156465]; + + expect(((SDLTTSChunk*)[message initialPrompt][0]).text).to(equal(@"#$%@")); + expect(message.initialText).to(equal(@"!%%&&^$")); + expect(message.interactionChoiceSetIDList).to(equal(@[@105503])); + expect(message.helpPrompt).to(beNil()); + expect(message.timeoutPrompt).to(beNil()); + expect(message.interactionMode).to(equal([SDLInteractionMode BOTH])); + expect(message.timeout).to(beNil()); + expect(message.vrHelp).to(beNil()); + expect(message.interactionLayout).to(beNil()); + expect(message.correlationID).to(equal(@1454156465)); + }); + }); +}); + +describe(@"BuildPutFile Tests", ^ { + it(@"Should build correctly", ^ { + SDLPutFile *message = [SDLRPCRequestFactory buildPutFileWithFileName:@"YES!?" fileType:[SDLFileType GRAPHIC_BMP] persistentFile:@165636 correlationId:@147986]; + + expect(message.syncFileName).to(equal(@"YES!?")); + expect(message.fileType).to(equal([SDLFileType GRAPHIC_BMP])); + expect(message.persistentFile).to(equal(@165636)); + expect(message.correlationID).to(equal(@147986)); + }); +}); + +describe(@"BuildReadDID Tests", ^ { + it(@"Should build correctly", ^ { + SDLReadDID* message = [SDLRPCRequestFactory buildReadDIDWithECUName:@12500 didLocation:@[@1, @5, @10, @10, @5, @1] correlationID:@6465678]; + + expect(message.ecuName).to(equal(@12500)); + expect(message.didLocation).to(equal(@[@1, @5, @10, @10, @5, @1])); + expect(message.correlationID).to(equal(@6465678)); + }); +}); + +describe(@"BuildRegisterAppInterface Tests", ^ { + it(@"Should build correctly", ^ { + NSMutableArray *ttsName = [NSMutableArray arrayWithArray:@[[[SDLTTSChunk alloc] init]]]; + NSMutableArray *synonyms = [NSMutableArray arrayWithArray:@[@"Q", @"W", @"E", @"R"]]; + SDLRegisterAppInterface* message = [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:@"Interface" ttsName:ttsName vrSynonyms:synonyms + isMediaApp:@YES languageDesired:[SDLLanguage EN_US] + hmiDisplayLanguageDesired:[SDLLanguage ES_MX] appID:@"6h43g"]; + + expect(message.syncMsgVersion).toNot(beNil()); + expect(message.syncMsgVersion.majorVersion).to(equal(@1)); + expect(message.syncMsgVersion.minorVersion).to(equal(@0)); + + expect(message.appName).to(equal(@"Interface")); + expect(message.ttsName).to(equal(ttsName)); + expect(message.ngnMediaScreenAppName).to(equal(@"Interface")); + expect(message.vrSynonyms).to(equal(@[@"Q", @"W", @"E", @"R"])); + expect(message.isMediaApplication).to(equal(@YES)); + expect(message.languageDesired).to(equal([SDLLanguage EN_US])); + expect(message.hmiDisplayLanguageDesired).to(equal([SDLLanguage ES_MX])); + expect(message.appHMIType).to(beNil()); + expect(message.hashID).to(beNil()); + expect(message.deviceInfo).toNot(beNil()); + expect(message.appID).to(equal(@"6h43g")); + expect(message.correlationID).to(equal(@1)); + + message = [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:@"Register App Interface" isMediaApp:@NO languageDesired:[SDLLanguage PT_BR] appID:@"36g6rsw4"]; + + expect(message.syncMsgVersion).toNot(beNil()); + expect(message.syncMsgVersion.majorVersion).to(equal(@1)); + expect(message.syncMsgVersion.minorVersion).to(equal(@0)); + + expect(message.appName).to(equal(@"Register App Interface")); + expect(message.ttsName).to(beNil()); + expect(message.ngnMediaScreenAppName).to(equal(@"Register App Interface")); + expect(message.vrSynonyms).to(equal(@[@"Register App Interface"])); + expect(message.isMediaApplication).to(equal(@NO)); + expect(message.languageDesired).to(equal([SDLLanguage PT_BR])); + expect(message.hmiDisplayLanguageDesired).to(equal([SDLLanguage PT_BR])); + expect(message.appHMIType).to(beNil()); + expect(message.hashID).to(beNil()); + expect(message.deviceInfo).toNot(beNil()); + expect(message.appID).to(equal(@"36g6rsw4")); + expect(message.correlationID).to(equal(@1)); + + message = [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:@"..." languageDesired:[SDLLanguage CS_CZ] appID:@"56ht5j"]; + + expect(message.syncMsgVersion).toNot(beNil()); + expect(message.syncMsgVersion.majorVersion).to(equal(@1)); + expect(message.syncMsgVersion.minorVersion).to(equal(@0)); + + expect(message.appName).to(equal(@"...")); + expect(message.ttsName).to(beNil()); + expect(message.ngnMediaScreenAppName).to(equal(@"...")); + expect(message.vrSynonyms).to(equal(@[@"..."])); + expect(message.isMediaApplication).to(equal(@NO)); + expect(message.languageDesired).to(equal([SDLLanguage CS_CZ])); + expect(message.hmiDisplayLanguageDesired).to(equal([SDLLanguage CS_CZ])); + expect(message.appHMIType).to(beNil()); + expect(message.hashID).to(beNil()); + expect(message.deviceInfo).toNot(beNil()); + expect(message.appID).to(equal(@"56ht5j")); + expect(message.correlationID).to(equal(@1)); + }); +}); + +describe(@"BuildResetGlobalProperties Tests", ^ { + it(@"Should build correctly", ^ { + SDLResetGlobalProperties* message = [SDLRPCRequestFactory buildResetGlobalPropertiesWithProperties:@[[SDLGlobalProperty MENUNAME], [SDLGlobalProperty TIMEOUTPROMPT]] + correlationID:@906842]; + + expect(message.properties).to(equal(@[[SDLGlobalProperty MENUNAME], [SDLGlobalProperty TIMEOUTPROMPT]])); + expect(message.correlationID).to(equal(@906842)); + }); +}); + +describe(@"BuildSendLocation", ^{ + __block SDLSendLocation *message = nil; + __block NSNumber *someLongitude = nil; + __block NSNumber *someLatitude = nil; + __block NSString *someLocation = nil; + __block NSString *someLocationDescription = nil; + __block NSArray *someAddressLines = nil; + __block NSString *somePhoneNumber = nil; + __block SDLImage *someImage = nil; + + describe(@"when built correctly", ^{ + beforeEach(^{ + someLongitude = @123.4567; + someLatitude = @65.4321; + someLocation = @"Livio"; + someLocationDescription = @"A great place to work"; + someAddressLines = @[@"3136 Hilton Rd", @"Ferndale, MI", @"48220"]; + somePhoneNumber = @"248-591-0333"; + someImage = [[SDLImage alloc] init]; + + message = [SDLRPCRequestFactory buildSendLocationWithLongitude:someLongitude latitude:someLatitude locationName:someLocation locationDescription:someLocationDescription address:someAddressLines phoneNumber:somePhoneNumber image:someImage]; + }); + + it(@"should not be nil", ^{ + expect(message).toNot(beNil()); + }); + + it(@"should properly set longitude", ^{ + expect(message.longitudeDegrees).to(equal(someLongitude)); + }); + + it(@"should properly set latitude", ^{ + expect(message.latitudeDegrees).to(equal(someLatitude)); + }); + + it(@"should properly set location", ^{ + expect(message.locationName).to(equal(someLocation)); + }); + + it(@"should properly set location description", ^{ + expect(message.locationDescription).to(equal(someLocationDescription)); + }); + + it(@"should properly set address lines", ^{ + expect(message.addressLines).to(equal(someAddressLines)); + }); + + it(@"should properly set phone number", ^{ + expect(message.phoneNumber).to(equal(somePhoneNumber)); + }); + + it(@"should properly set image", ^{ + expect(message.locationImage).to(equal(someImage)); + }); + }); +}); + +describe(@"BuildScrollableMessage Tests", ^ { + it(@"Should build correctly", ^ { + NSArray* softButtons = @[[[SDLSoftButton alloc] init]]; + SDLScrollableMessage* message = [SDLRPCRequestFactory buildScrollableMessage:@"Message Box" timeout:@37821 softButtons:softButtons correlationID:@9783356]; + + expect(message.scrollableMessageBody).to(equal(@"Message Box")); + expect(message.timeout).to(equal(@37821)); + expect(message.softButtons).to(equal(softButtons)); + expect(message.correlationID).to(equal(@9783356)); + }); +}); + +describe(@"BuildSetAppIcon Tests", ^ { + it(@"Should build correctly", ^ { + SDLSetAppIcon* message = [SDLRPCRequestFactory buildSetAppIconWithFileName:@"Iconic" correlationID:@465819]; + + expect(message.syncFileName).to(equal(@"Iconic")); + expect(message.correlationID).to(equal(@465819)); + }); +}); + +describe(@"BuildSetDisplayLayout Tests", ^ { + it(@"Should build correctly", ^ { + SDLSetDisplayLayout* message = [SDLRPCRequestFactory buildSetDisplayLayout:@"NONE" correlationID:@467926]; + + expect(message.displayLayout).to(equal(@"NONE")); + expect(message.correlationID).to(equal(@467926)); + }); +}); + +describe(@"BuildSetGlobalProperties Tests", ^ { + it(@"Should build correctly", ^ { + NSArray* help = @[[[SDLVRHelpItem alloc] init]]; + SDLSetGlobalProperties* message = [SDLRPCRequestFactory buildSetGlobalPropertiesWithHelpText:@"Beyond Help" timeoutText:@"You took too long" vrHelpTitle:@"Voice" + vrHelp:help correlationID:@5666666]; + + expect(((SDLTTSChunk*)[message helpPrompt][0]).text).to(equal(@"Beyond Help")); + expect(((SDLTTSChunk*)[message timeoutPrompt][0]).text).to(equal(@"You took too long")); + expect(message.vrHelpTitle).to(equal(@"Voice")); + expect(message.vrHelp).to(equal(help)); + expect(message.menuTitle).to(beNil()); + expect(message.menuIcon).to(beNil()); + expect(message.keyboardProperties).to(beNil()); + expect(message.correlationID).to(equal(@5666666)); + + message = [SDLRPCRequestFactory buildSetGlobalPropertiesWithHelpText:@"Helpful" timeoutText:@"Timed Out" correlationID:@10010100]; + + expect(((SDLTTSChunk*)[message helpPrompt][0]).text).to(equal(@"Helpful")); + expect(((SDLTTSChunk*)[message timeoutPrompt][0]).text).to(equal(@"Timed Out")); + expect(message.vrHelpTitle).to(beNil()); + expect(message.vrHelp).to(beNil()); + expect(message.menuTitle).to(beNil()); + expect(message.menuIcon).to(beNil()); + expect(message.keyboardProperties).to(beNil()); + expect(message.correlationID).to(equal(@10010100)); + }); +}); + +describe(@"BuildSetMediaClockTimer Tests", ^ { + it(@"Should build correctly", ^ { + SDLSetMediaClockTimer* message = [SDLRPCRequestFactory buildSetMediaClockTimerWithHours:@15 minutes:@36 seconds:@11 updateMode:[SDLUpdateMode COUNTDOWN] correlationID:@404]; + + expect([message startTime].hours).to(equal(@15)); + expect([message startTime].minutes).to(equal(@36)); + expect([message startTime].seconds).to(equal(@11)); + expect(message.endTime).to(beNil()); + expect(message.updateMode).to(equal([SDLUpdateMode COUNTDOWN])); + expect(message.correlationID).to(equal(@404)); + + message = [SDLRPCRequestFactory buildSetMediaClockTimerWithUpdateMode:[SDLUpdateMode RESUME] correlationID:@11213141]; + + expect(message.startTime).to(beNil()); + expect(message.endTime).to(beNil()); + expect(message.updateMode).to(equal([SDLUpdateMode RESUME])); + expect(message.correlationID).to(equal(@11213141)); + }); +}); + +describe(@"BuildShow Tests", ^ { + it(@"Should build correctly", ^ { + SDLImage* image = [[SDLImage alloc] init]; + NSArray* softButtons = @[[[SDLSoftButton alloc] init]]; + SDLShow* message = [SDLRPCRequestFactory buildShowWithMainField1:@"11" mainField2:@"22" mainField3:@"33" mainField4:@"44" statusBar:@"Bar" mediaClock:@"Time" mediaTrack:@"Crucial Line" + alignment:[SDLTextAlignment CENTERED] graphic:image softButtons:softButtons customPresets:@[@"w", @"x", @"y", @"z"] correlationID:@3432343]; + + expect(message.mainField1).to(equal(@"11")); + expect(message.mainField2).to(equal(@"22")); + expect(message.mainField3).to(equal(@"33")); + expect(message.mainField4).to(equal(@"44")); + expect(message.statusBar).to(equal(@"Bar")); + expect(message.mediaClock).to(equal(@"Time")); + expect(message.mediaTrack).to(equal(@"Crucial Line")); + expect(message.alignment).to(equal([SDLTextAlignment CENTERED])); + expect(message.graphic).to(equal(image)); + expect(message.secondaryGraphic).to(beNil()); + expect(message.softButtons).to(equal(softButtons)); + expect(message.customPresets).to(equal(@[@"w", @"x", @"y", @"z"])); + expect(message.correlationID).to(equal(@3432343)); + + message = [SDLRPCRequestFactory buildShowWithMainField1:@"A" mainField2:@"S" statusBar:@"D" mediaClock:@"F" mediaTrack:@"G" alignment:[SDLTextAlignment RIGHT_ALIGNED] correlationID:@999]; + + expect(message.mainField1).to(equal(@"A")); + expect(message.mainField2).to(equal(@"S")); + expect(message.mainField3).to(beNil()); + expect(message.mainField4).to(beNil()); + expect(message.statusBar).to(equal(@"D")); + expect(message.mediaClock).to(equal(@"F")); + expect(message.mediaTrack).to(equal(@"G")); + expect(message.alignment).to(equal([SDLTextAlignment RIGHT_ALIGNED])); + expect(message.graphic).to(beNil()); + expect(message.secondaryGraphic).to(beNil()); + expect(message.softButtons).to(beNil()); + expect(message.customPresets).to(beNil()); + expect(message.correlationID).to(equal(@999)); + + message = [SDLRPCRequestFactory buildShowWithMainField1:@"Hello" mainField2:@"World" alignment:[SDLTextAlignment LEFT_ALIGNED] correlationID:@38792607]; + + expect(message.mainField1).to(equal(@"Hello")); + expect(message.mainField2).to(equal(@"World")); + expect(message.mainField3).to(beNil()); + expect(message.mainField4).to(beNil()); + expect(message.statusBar).to(beNil()); + expect(message.mediaClock).to(beNil()); + expect(message.mediaTrack).to(beNil()); + expect(message.alignment).to(equal([SDLTextAlignment LEFT_ALIGNED])); + expect(message.graphic).to(beNil()); + expect(message.secondaryGraphic).to(beNil()); + expect(message.softButtons).to(beNil()); + expect(message.customPresets).to(beNil()); + expect(message.correlationID).to(equal(@38792607)); + }); +}); + +describe(@"SDLShowConstantTBT Tests", ^ { + __block NSMutableArray *softButtons = nil; + __block SDLImage *image1 = nil; + __block SDLImage *image2 = nil; + __block SDLShowConstantTBT *message = nil; + + describe(@"Should build correctly", ^ { + beforeEach(^{ + softButtons = [@[[[SDLSoftButton alloc] init]] mutableCopy]; + image1 = [[SDLImage alloc]init]; + image2 = [[SDLImage alloc]init]; + message = [SDLRPCRequestFactory buildShowConstantTBTWithString:@"Navigation Text 1" navigationText2:@"Navigation Text 2" eta:@"ETA String" timeToDestination:@"10:31 PM" totalDistance:@"1000 Miles" turnIcon:image1 nextTurnIcon:image2 distanceToManeuver:@100.11 distanceToManeuverScale:@10.20 maneuverComplete:@23.2 softButtons:softButtons correlationID:@1234]; + }); + + it(@"Should properly set title navigation text", ^{ + expect(message.navigationText1).to(equal(@"Navigation Text 1")); + }); + + it(@"Should properly set secondary navigation text", ^{ + expect(message.navigationText2).to(equal(@"Navigation Text 2")); + }); + + it(@"Should properly set Estimated Time Of Arrival (ETA)", ^{ + expect(message.eta).to(equal(@"ETA String")); + }); + + it(@"Should properly set time to distance", ^{ + expect(message.timeToDestination).to(equal(@"10:31 PM")); + }); + + it(@"Should properly set total distance", ^{ + expect(message.totalDistance).to(equal(@"1000 Miles")); + }); + + it(@"Should properly set first turn icon", ^{ + expect(message.turnIcon).to(equal(image1)); + }); + + it(@"Should properly set second turn icon", ^{ + expect(message.nextTurnIcon).to(equal(image2)); + }); + + it(@"Should properly set distance to maneuver", ^{ + expect(message.distanceToManeuver).to(equal(@100.11)); + }); + + it(@"Should properly set scale for distance to maneuver", ^{ + expect(message.distanceToManeuverScale).to(equal(@10.20)); + }); + + it(@"Should properly set maneuver complete", ^{ + expect(message.maneuverComplete).to(equal(@23.2)); + }); + + it(@"Should properly set soft buttons", ^{ + expect(message.softButtons).to(equal(softButtons)); + }); + + it(@"Should properly set the correlation ID", ^{ + expect(message.correlationID).to(equal(@1234)); + }); + }); +}); + +describe(@"BuildSlider Tests", ^ { + it(@"Should build correctly", ^ { + SDLSlider* message = [SDLRPCRequestFactory buildSliderDynamicFooterWithNumTicks:@3 position:@2 sliderHeader:@"HEAD" sliderFooter:@[@"FOOT1", @"FOOT2", @"FOOT3"] timeout:@32321 + correlationID:@200]; + + expect(message.numTicks).to(equal(@3)); + expect(message.position).to(equal(@2)); + expect(message.sliderHeader).to(equal(@"HEAD")); + expect(message.sliderFooter).to(equal(@[@"FOOT1", @"FOOT2", @"FOOT3"])); + expect(message.timeout).to(equal(@32321)); + expect(message.correlationID).to(equal(@200)); + + message = [SDLRPCRequestFactory buildSliderStaticFooterWithNumTicks:@4 position:@2 sliderHeader:@"UP" sliderFooter:@"DOWN" timeout:@65535 correlationID:@1024]; + + expect(message.numTicks).to(equal(@4)); + expect(message.position).to(equal(@2)); + expect(message.sliderHeader).to(equal(@"UP")); + expect(message.sliderFooter).to(equal(@[@"DOWN", @"DOWN", @"DOWN", @"DOWN"])); + expect(message.timeout).to(equal(@65535)); + expect(message.correlationID).to(equal(@1024)); + }); +}); + +describe(@"BuildSpeak Tests", ^ { + it(@"Should build correctly", ^ { + NSArray* ttsChunks = @[[[SDLTTSChunk alloc] init]]; + SDLSpeak* message = [SDLRPCRequestFactory buildSpeakWithTTS:@"GREETINGS HUMAN" correlationID:@65]; + + expect(((SDLTTSChunk*)[message ttsChunks][0]).text).to(equal(@"GREETINGS HUMAN")); + expect(message.correlationID).to(equal(@65)); + + message = [SDLRPCRequestFactory buildSpeakWithTTSChunks:ttsChunks correlationID:@56]; + + expect(message.ttsChunks).to(equal(ttsChunks)); + expect(message.correlationID).to(equal(@56)); + }); +}); + +describe(@"BuildSubscribeButton Tests", ^ { + it(@"Should build correctly", ^ { + SDLSubscribeButton* message = [SDLRPCRequestFactory buildSubscribeButtonWithName:[SDLButtonName SEARCH] correlationID:@5555555]; + + expect(message.buttonName).to(equal([SDLButtonName SEARCH])); + expect(message.correlationID).to(equal(@5555555)); + }); +}); + +describe(@"BuildSubscribeVehicleData Tests", ^ { + it(@"Should build correctly", ^ { + SDLSubscribeVehicleData* message = [SDLRPCRequestFactory buildSubscribeVehicleDataWithGPS:@YES speed:@YES rpm:@YES + fuelLevel:@NO fuelLevelState:@NO instantFuelConsumption:@NO + externalTemperature:@YES prndl:@YES tirePressure:@YES + odometer:@NO beltStatus:@NO bodyInformation:@NO + deviceStatus:@YES driverBraking:@YES wiperStatus:@YES + headLampStatus:@NO engineTorque:@NO accPedalPosition:@NO + steeringWheelAngle:@YES correlationID:@3692581470]; + + expect(message.gps).to(equal(@YES)); + expect(message.speed).to(equal(@YES)); + expect(message.rpm).to(equal(@YES)); + expect(message.fuelLevel).to(equal(@NO)); + expect(message.fuelLevel_State).to(equal(@NO)); + expect(message.instantFuelConsumption).to(equal(@NO)); + expect(message.externalTemperature).to(equal(@YES)); + expect(message.prndl).to(equal(@YES)); + expect(message.tirePressure).to(equal(@YES)); + expect(message.odometer).to(equal(@NO)); + expect(message.beltStatus).to(equal(@NO)); + expect(message.bodyInformation).to(equal(@NO)); + expect(message.deviceStatus).to(equal(@YES)); + expect(message.driverBraking).to(equal(@YES)); + expect(message.wiperStatus).to(equal(@YES)); + expect(message.headLampStatus).to(equal(@NO)); + expect(message.engineTorque).to(equal(@NO)); + expect(message.accPedalPosition).to(equal(@NO)); + expect(message.steeringWheelAngle).to(equal(@YES)); + expect(message.eCallInfo).to(beNil()); + expect(message.airbagStatus).to(beNil()); + expect(message.emergencyEvent).to(beNil()); + expect(message.clusterModeStatus).to(beNil()); + expect(message.myKey).to(beNil()); + expect(message.correlationID).to(equal(@3692581470)); + }); +}); + +describe(@"BuildUnregisterAppInterface Tests", ^ { + it(@"Should build correctly", ^ { + SDLUnregisterAppInterface* message = [SDLRPCRequestFactory buildUnregisterAppInterfaceWithCorrelationID:@4200]; + + expect(message.correlationID).to(equal(@4200)); + }); +}); + +describe(@"BuildUnsubscribeButton Tests", ^ { + it(@"Should build correctly", ^ { + SDLUnsubscribeButton* message = [SDLRPCRequestFactory buildUnsubscribeButtonWithName:[SDLButtonName OK] correlationID:@88]; + + expect(message.buttonName).to(equal([SDLButtonName OK])); + expect(message.correlationID).to(equal(@88)); + }); +}); + +describe(@"BuildSubscribeVehicleData Tests", ^ { + it(@"Should build correctly", ^ { + SDLSubscribeVehicleData* message = [SDLRPCRequestFactory buildSubscribeVehicleDataWithGPS:@YES speed:@NO rpm:@YES + fuelLevel:@YES fuelLevelState:@NO instantFuelConsumption:@NO + externalTemperature:@YES prndl:@NO tirePressure:@YES + odometer:@YES beltStatus:@NO bodyInformation:@NO + deviceStatus:@YES driverBraking:@NO wiperStatus:@YES + headLampStatus:@YES engineTorque:@NO accPedalPosition:@NO + steeringWheelAngle:@YES correlationID:@1627384950]; + + expect(message.gps).to(equal(@YES)); + expect(message.speed).to(equal(@NO)); + expect(message.rpm).to(equal(@YES)); + expect(message.fuelLevel).to(equal(@YES)); + expect(message.fuelLevel_State).to(equal(@NO)); + expect(message.instantFuelConsumption).to(equal(@NO)); + expect(message.externalTemperature).to(equal(@YES)); + expect(message.prndl).to(equal(@NO)); + expect(message.tirePressure).to(equal(@YES)); + expect(message.odometer).to(equal(@YES)); + expect(message.beltStatus).to(equal(@NO)); + expect(message.bodyInformation).to(equal(@NO)); + expect(message.deviceStatus).to(equal(@YES)); + expect(message.driverBraking).to(equal(@NO)); + expect(message.wiperStatus).to(equal(@YES)); + expect(message.headLampStatus).to(equal(@YES)); + expect(message.engineTorque).to(equal(@NO)); + expect(message.accPedalPosition).to(equal(@NO)); + expect(message.steeringWheelAngle).to(equal(@YES)); + expect(message.eCallInfo).to(beNil()); + expect(message.airbagStatus).to(beNil()); + expect(message.emergencyEvent).to(beNil()); + expect(message.clusterModeStatus).to(beNil()); + expect(message.myKey).to(beNil()); + expect(message.correlationID).to(equal(@1627384950)); + }); +}); + +describe(@"SDLUpdateTurnList Tests", ^ { + __block NSMutableArray *softButtons = nil; + __block NSMutableArray *turns = nil; + __block SDLUpdateTurnList *message = nil; + + __block SDLTurn *turn1 = nil; + __block SDLTurn *turn2 = nil; + + describe(@"Should build correctly", ^ { + beforeEach(^{ + softButtons = [@[[[SDLSoftButton alloc] init]] mutableCopy]; + + turn1 = [[SDLTurn alloc] init]; + turn2 = [[SDLTurn alloc] init]; + turns = [@[turn1, turn2] mutableCopy]; + + message = [SDLRPCRequestFactory buildUpdateTurnListWithTurnList:turns softButtons:softButtons correlationID:@1234]; + }); + + it(@"Should properly set Turns", ^{ + expect(message.turnList).to(equal(turns)); + }); + + it(@"Should properly set Soft Buttons", ^{ + expect(message.softButtons).to(equal(softButtons)); + }); + + it(@"Should properly set Correlation Id", ^{ + expect(message.correlationID).to(equal(@1234)); + }); + }); +}); + +QuickSpecEnd + + diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAppInterfaceUnregisteredSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAppInterfaceUnregisteredSpec.m new file mode 100644 index 000000000..2ec566031 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAppInterfaceUnregisteredSpec.m @@ -0,0 +1,43 @@ +// +// SDLOnAppInterfaceUnregisteredSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAppInterfaceUnregisteredReason.h" +#import "SDLOnAppInterfaceUnregistered.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLOnAppInterfaceUnregisteredSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnAppInterfaceUnregistered* testNotification = [[SDLOnAppInterfaceUnregistered alloc] init]; + + testNotification.reason = [SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED]; + + expect(testNotification.reason).to(equal([SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_reason:[SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED]}, + NAMES_operation_name:NAMES_OnAppInterfaceUnregistered}} mutableCopy]; + SDLOnAppInterfaceUnregistered* testNotification = [[SDLOnAppInterfaceUnregistered alloc] initWithDictionary:dict]; + + expect(testNotification.reason).to(equal([SDLAppInterfaceUnregisteredReason APP_UNAUTHORIZED])); + }); + + it(@"Should return nil if not set", ^ { + SDLOnAppInterfaceUnregistered* testNotification = [[SDLOnAppInterfaceUnregistered alloc] init]; + + expect(testNotification.reason).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAudioPassThruSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAudioPassThruSpec.m new file mode 100644 index 000000000..213246b1c --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAudioPassThruSpec.m @@ -0,0 +1,16 @@ +// +// SDLOnAudioPassThruSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLOnAudioPassThru.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLOnAudioPassThruSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonEventSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonEventSpec.m new file mode 100644 index 000000000..becc5c251 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonEventSpec.m @@ -0,0 +1,55 @@ +// +// SDLOnButtonEventSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLButtonEventMode.h" +#import "SDLButtonName.h" +#import "SDLNames.h" +#import "SDLOnButtonEvent.h" + + +QuickSpecBegin(SDLOnButtonEventSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnButtonEvent* testNotification = [[SDLOnButtonEvent alloc] init]; + + testNotification.buttonName = [SDLButtonName CUSTOM_BUTTON]; + testNotification.buttonEventMode = [SDLButtonEventMode BUTTONDOWN]; + testNotification.customButtonID = @4252; + + expect(testNotification.buttonName).to(equal([SDLButtonName CUSTOM_BUTTON])); + expect(testNotification.buttonEventMode).to(equal([SDLButtonEventMode BUTTONDOWN])); + expect(testNotification.customButtonID).to(equal(@4252)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_buttonName:[SDLButtonName CUSTOM_BUTTON], + NAMES_buttonEventMode:[SDLButtonEventMode BUTTONDOWN], + NAMES_customButtonID:@4252}, + NAMES_operation_name:NAMES_OnButtonEvent}} mutableCopy]; + SDLOnButtonEvent* testNotification = [[SDLOnButtonEvent alloc] initWithDictionary:dict]; + + expect(testNotification.buttonName).to(equal([SDLButtonName CUSTOM_BUTTON])); + expect(testNotification.buttonEventMode).to(equal([SDLButtonEventMode BUTTONDOWN])); + expect(testNotification.customButtonID).to(equal(@4252)); + }); + + it(@"Should return nil if not set", ^ { + SDLOnButtonEvent* testNotification = [[SDLOnButtonEvent alloc] init]; + + expect(testNotification.buttonName).to(beNil()); + expect(testNotification.buttonEventMode).to(beNil()); + expect(testNotification.customButtonID).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonPressSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonPressSpec.m new file mode 100644 index 000000000..4467f72a5 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnButtonPressSpec.m @@ -0,0 +1,55 @@ +// +// SDLOnButtonPressSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLButtonName.h" +#import "SDLButtonPressMode.h" +#import "SDLOnButtonPress.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLOnButtonPressSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnButtonPress* testNotification = [[SDLOnButtonPress alloc] init]; + + testNotification.buttonName = [SDLButtonName CUSTOM_BUTTON]; + testNotification.buttonPressMode = [SDLButtonPressMode LONG]; + testNotification.customButtonID = @5642; + + expect(testNotification.buttonName).to(equal([SDLButtonName CUSTOM_BUTTON])); + expect(testNotification.buttonPressMode).to(equal([SDLButtonPressMode LONG])); + expect(testNotification.customButtonID).to(equal(@5642)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_buttonName:[SDLButtonName CUSTOM_BUTTON], + NAMES_buttonPressMode:[SDLButtonPressMode LONG], + NAMES_customButtonID:@5642}, + NAMES_operation_name:NAMES_OnButtonPress}} mutableCopy]; + SDLOnButtonPress* testNotification = [[SDLOnButtonPress alloc] initWithDictionary:dict]; + + expect(testNotification.buttonName).to(equal([SDLButtonName CUSTOM_BUTTON])); + expect(testNotification.buttonPressMode).to(equal([SDLButtonPressMode LONG])); + expect(testNotification.customButtonID).to(equal(@5642)); + }); + + it(@"Should return nil if not set", ^ { + SDLOnButtonPress* testNotification = [[SDLOnButtonPress alloc] init]; + + expect(testNotification.buttonName).to(beNil()); + expect(testNotification.buttonPressMode).to(beNil()); + expect(testNotification.customButtonID).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnCommandSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnCommandSpec.m new file mode 100644 index 000000000..6b8afd10b --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnCommandSpec.m @@ -0,0 +1,48 @@ +// +// SDLOnCommandSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLNames.h" +#import "SDLOnCommand.h" +#import "SDLTriggerSource.h" + +QuickSpecBegin(SDLOnCommandSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnCommand* testNotification = [[SDLOnCommand alloc] init]; + + testNotification.cmdID = @5676544; + testNotification.triggerSource = [SDLTriggerSource KEYBOARD]; + + expect(testNotification.cmdID).to(equal(@5676544)); + expect(testNotification.triggerSource).to(equal([SDLTriggerSource KEYBOARD])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_cmdID:@5676544, + NAMES_triggerSource:[SDLTriggerSource KEYBOARD]}, + NAMES_operation_name:NAMES_OnCommand}} mutableCopy]; + SDLOnCommand* testNotification = [[SDLOnCommand alloc] initWithDictionary:dict]; + + expect(testNotification.cmdID).to(equal(@5676544)); + expect(testNotification.triggerSource).to(equal([SDLTriggerSource KEYBOARD])); + }); + + it(@"Should return nil if not set", ^ { + SDLOnCommand* testNotification = [[SDLOnCommand alloc] init]; + + expect(testNotification.cmdID).to(beNil()); + expect(testNotification.triggerSource).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnDriverDistractionSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnDriverDistractionSpec.m new file mode 100644 index 000000000..79c90bdd7 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnDriverDistractionSpec.m @@ -0,0 +1,43 @@ +// +// SDLOnDriverDistractionSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDriverDistractionState.h" +#import "SDLOnDriverDistraction.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLOnDriverDistractionSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnDriverDistraction* testNotification = [[SDLOnDriverDistraction alloc] init]; + + testNotification.state = [SDLDriverDistractionState DD_ON]; + + expect(testNotification.state).to(equal([SDLDriverDistractionState DD_ON])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_state:[SDLDriverDistractionState DD_ON]}, + NAMES_operation_name:NAMES_OnDriverDistraction}} mutableCopy]; + SDLOnDriverDistraction* testNotification = [[SDLOnDriverDistraction alloc] initWithDictionary:dict]; + + expect(testNotification.state).to(equal([SDLDriverDistractionState DD_ON])); + }); + + it(@"Should return nil if not set", ^ { + SDLOnDriverDistraction* testNotification = [[SDLOnDriverDistraction alloc] init]; + + expect(testNotification.state).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnEncodedSyncPDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnEncodedSyncPDataSpec.m new file mode 100644 index 000000000..a8844e22a --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnEncodedSyncPDataSpec.m @@ -0,0 +1,52 @@ +// +// SDLOnEncodedSyncPDataSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLOnEncodedSyncPData.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLOnEncodedSyncPDataSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnEncodedSyncPData* testNotification = [[SDLOnEncodedSyncPData alloc] init]; + + testNotification.data = [@[@0] mutableCopy]; + testNotification.URL = @"www.zombo.com"; + testNotification.Timeout = @564; + + expect(testNotification.data).to(equal([@[@0] mutableCopy])); + expect(testNotification.URL).to(equal(@"www.zombo.com")); + expect(testNotification.Timeout).to(equal(@564)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_data:[@[@0] mutableCopy], + NAMES_URL:@"www.zombo.com", + NAMES_Timeout:@564}, + NAMES_operation_name:NAMES_OnEncodedSyncPData}} mutableCopy]; + SDLOnEncodedSyncPData* testNotification = [[SDLOnEncodedSyncPData alloc] initWithDictionary:dict]; + + expect(testNotification.data).to(equal([@[@0] mutableCopy])); + expect(testNotification.URL).to(equal(@"www.zombo.com")); + expect(testNotification.Timeout).to(equal(@564)); + }); + + it(@"Should return nil if not set", ^ { + SDLOnEncodedSyncPData* testNotification = [[SDLOnEncodedSyncPData alloc] init]; + + expect(testNotification.data).to(beNil()); + expect(testNotification.URL).to(beNil()); + expect(testNotification.Timeout).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHMIStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHMIStatusSpec.m new file mode 100644 index 000000000..c2d58a484 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHMIStatusSpec.m @@ -0,0 +1,56 @@ +// +// SDLOnHMIStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAudioStreamingState.h" +#import "SDLHMILevel.h" +#import "SDLOnHMIStatus.h" +#import "SDLNames.h" +#import "SDLSystemContext.h" + + +QuickSpecBegin(SDLOnHMIStatusSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnHMIStatus* testNotification = [[SDLOnHMIStatus alloc] init]; + + testNotification.hmiLevel = [SDLHMILevel LIMITED]; + testNotification.audioStreamingState = [SDLAudioStreamingState ATTENUATED]; + testNotification.systemContext = [SDLSystemContext HMI_OBSCURED]; + + expect(testNotification.hmiLevel).to(equal([SDLHMILevel LIMITED])); + expect(testNotification.audioStreamingState).to(equal([SDLAudioStreamingState ATTENUATED])); + expect(testNotification.systemContext).to(equal([SDLSystemContext HMI_OBSCURED])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_hmiLevel:[SDLHMILevel LIMITED], + NAMES_audioStreamingState:[SDLAudioStreamingState ATTENUATED], + NAMES_systemContext:[SDLSystemContext HMI_OBSCURED]}, + NAMES_operation_name:NAMES_OnHMIStatus}} mutableCopy]; + SDLOnHMIStatus* testNotification = [[SDLOnHMIStatus alloc] initWithDictionary:dict]; + + expect(testNotification.hmiLevel).to(equal([SDLHMILevel LIMITED])); + expect(testNotification.audioStreamingState).to(equal([SDLAudioStreamingState ATTENUATED])); + expect(testNotification.systemContext).to(equal([SDLSystemContext HMI_OBSCURED])); + }); + + it(@"Should return nil if not set", ^ { + SDLOnHMIStatus* testNotification = [[SDLOnHMIStatus alloc] init]; + + expect(testNotification.hmiLevel).to(beNil()); + expect(testNotification.audioStreamingState).to(beNil()); + expect(testNotification.systemContext).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHashChangeSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHashChangeSpec.m new file mode 100644 index 000000000..308347c61 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnHashChangeSpec.m @@ -0,0 +1,42 @@ +// +// SDLOnHashChangeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLOnHashChange.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLOnHashChangeSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnHashChange* testNotification = [[SDLOnHashChange alloc] init]; + + testNotification.hashID = @"hash"; + + expect(testNotification.hashID).to(equal(@"hash")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_hashID:@"hash"}, + NAMES_operation_name:NAMES_OnHashChange}} mutableCopy]; + SDLOnHashChange* testNotification = [[SDLOnHashChange alloc] initWithDictionary:dict]; + + expect(testNotification.hashID).to(equal(@"hash")); + }); + + it(@"Should return nil if not set", ^ { + SDLOnHashChange* testNotification = [[SDLOnHashChange alloc] init]; + + expect(testNotification.hashID).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnKeyboardInputSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnKeyboardInputSpec.m new file mode 100644 index 000000000..cf87e853d --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnKeyboardInputSpec.m @@ -0,0 +1,48 @@ +// +// SDLOnKeyboardInputSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLKeyboardEvent.h" +#import "SDLOnKeyboardInput.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLOnKeyboardInputSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnKeyboardInput* testNotification = [[SDLOnKeyboardInput alloc] init]; + + testNotification.event = [SDLKeyboardEvent ENTRY_SUBMITTED]; + testNotification.data = @"qwertyg"; + + expect(testNotification.event).to(equal([SDLKeyboardEvent ENTRY_SUBMITTED])); + expect(testNotification.data).to(equal(@"qwertyg")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_event:[SDLKeyboardEvent ENTRY_SUBMITTED], + NAMES_data:@"qwertyg"}, + NAMES_operation_name:NAMES_OnKeyboardInput}} mutableCopy]; + SDLOnKeyboardInput* testNotification = [[SDLOnKeyboardInput alloc] initWithDictionary:dict]; + + expect(testNotification.event).to(equal([SDLKeyboardEvent ENTRY_SUBMITTED])); + expect(testNotification.data).to(equal(@"qwertyg")); + }); + + it(@"Should return nil if not set", ^ { + SDLOnKeyboardInput* testNotification = [[SDLOnKeyboardInput alloc] init]; + + expect(testNotification.event).to(beNil()); + expect(testNotification.data).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLanguageChangeSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLanguageChangeSpec.m new file mode 100644 index 000000000..f9009f69c --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLanguageChangeSpec.m @@ -0,0 +1,49 @@ +// +// SDLOnLanguageChangeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLLanguage.h" +#import "SDLOnLanguageChange.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLOnLanguageChangeSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnLanguageChange* testNotification = [[SDLOnLanguageChange alloc] init]; + + testNotification.language = [SDLLanguage ES_ES]; + testNotification.hmiDisplayLanguage = [SDLLanguage DE_DE]; + + expect(testNotification.language).to(equal([SDLLanguage ES_ES])); + expect(testNotification.hmiDisplayLanguage).to(equal([SDLLanguage DE_DE])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_language:[SDLLanguage ES_ES], + NAMES_hmiDisplayLanguage:[SDLLanguage DE_DE]}, + NAMES_operation_name:NAMES_OnLanguageChange}} mutableCopy]; + SDLOnLanguageChange* testNotification = [[SDLOnLanguageChange alloc] initWithDictionary:dict]; + + expect(testNotification.language).to(equal([SDLLanguage ES_ES])); + expect(testNotification.hmiDisplayLanguage).to(equal([SDLLanguage DE_DE])); + }); + + it(@"Should return nil if not set", ^ { + SDLOnLanguageChange* testNotification = [[SDLOnLanguageChange alloc] init]; + + expect(testNotification.language).to(beNil()); + expect(testNotification.hmiDisplayLanguage).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLockScreenStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLockScreenStatusSpec.m new file mode 100644 index 000000000..d438ec621 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnLockScreenStatusSpec.m @@ -0,0 +1,59 @@ +// +// SDLOnLockScreenStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLOnLockScreenStatus.h" +#import "SDLHMILevel.h" +#import "SDLLockScreenStatus.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLOnLockScreenStatusSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnLockScreenStatus* testNotification = [[SDLOnLockScreenStatus alloc] init]; + + testNotification.driverDistractionStatus = @NO; + testNotification.userSelected = @3; + testNotification.lockScreenStatus = [SDLLockScreenStatus REQUIRED]; + testNotification.hmiLevel = [SDLHMILevel NONE]; + + expect(testNotification.driverDistractionStatus).to(equal(@NO)); + expect(testNotification.userSelected).to(equal(@3)); + expect(testNotification.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); + expect(testNotification.hmiLevel).to(equal([SDLHMILevel NONE])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{@"driverdistractionstatus":@NO, + @"userselected":@3, + @"OnLockScreenStatus":[SDLLockScreenStatus REQUIRED], + @"hmilevel":[SDLHMILevel NONE]}, + NAMES_operation_name:@"OnLockScreenStatus"}} mutableCopy]; + SDLOnLockScreenStatus* testNotification = [[SDLOnLockScreenStatus alloc] initWithDictionary:dict]; + + expect(testNotification.driverDistractionStatus).to(equal(@NO)); + expect(testNotification.userSelected).to(equal(@3)); + expect(testNotification.lockScreenStatus).to(equal([SDLLockScreenStatus REQUIRED])); + expect(testNotification.hmiLevel).to(equal([SDLHMILevel NONE])); + }); + + it(@"Should return nil if not set", ^ { + SDLOnLockScreenStatus* testNotification = [[SDLOnLockScreenStatus alloc] init]; + + expect(testNotification.driverDistractionStatus).to(beNil()); + expect(testNotification.userSelected).to(beNil()); + expect(testNotification.lockScreenStatus).to(beNil()); + expect(testNotification.hmiLevel).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnPermissionsChangeSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnPermissionsChangeSpec.m new file mode 100644 index 000000000..5a5d349cc --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnPermissionsChangeSpec.m @@ -0,0 +1,45 @@ +// +// SDLOnPermissionsChangeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLOnPermissionsChange.h" +#import "SDLPermissionItem.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLOnPermissionsChangeSpec) + +SDLPermissionItem* item = [[SDLPermissionItem alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnPermissionsChange* testNotification = [[SDLOnPermissionsChange alloc] init]; + + testNotification.permissionItem = [@[item] mutableCopy]; + + expect(testNotification.permissionItem).to(equal([@[item] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_permissionItem:[@[item] mutableCopy]}, + NAMES_operation_name:NAMES_OnPermissionsChange}} mutableCopy]; + SDLOnPermissionsChange* testNotification = [[SDLOnPermissionsChange alloc] initWithDictionary:dict]; + + expect(testNotification.permissionItem).to(equal([@[item] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLOnPermissionsChange* testNotification = [[SDLOnPermissionsChange alloc] init]; + + expect(testNotification.permissionItem).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSyncPDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSyncPDataSpec.m new file mode 100644 index 000000000..34ac9af9e --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSyncPDataSpec.m @@ -0,0 +1,47 @@ +// +// SDLOnSyncPDataSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLOnSyncPData.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLOnSyncPDataSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnSyncPData* testNotification = [[SDLOnSyncPData alloc] init]; + + testNotification.URL = @"https://www.youtube.com/watch?v=ygr5AHufBN4"; + testNotification.Timeout = @8357; + + expect(testNotification.URL).to(equal(@"https://www.youtube.com/watch?v=ygr5AHufBN4")); + expect(testNotification.Timeout).to(equal(@8357)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_URL:@"https://www.youtube.com/watch?v=ygr5AHufBN4", + NAMES_Timeout:@8357}, + NAMES_operation_name:NAMES_OnSyncPData}} mutableCopy]; + SDLOnSyncPData* testNotification = [[SDLOnSyncPData alloc] initWithDictionary:dict]; + + expect(testNotification.URL).to(equal(@"https://www.youtube.com/watch?v=ygr5AHufBN4")); + expect(testNotification.Timeout).to(equal(@8357)); + }); + + it(@"Should return nil if not set", ^ { + SDLOnSyncPData* testNotification = [[SDLOnSyncPData alloc] init]; + + expect(testNotification.URL).to(beNil()); + expect(testNotification.Timeout).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSystemRequestSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSystemRequestSpec.m new file mode 100644 index 000000000..ed235871e --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnSystemRequestSpec.m @@ -0,0 +1,70 @@ +// +// SDLOnSystemRequestSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLFileType.h" +#import "SDLNames.h" +#import "SDLOnSystemRequest.h" +#import "SDLRequestType.h" + + +QuickSpecBegin(SDLOnSystemRequestSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnSystemRequest* testNotification = [[SDLOnSystemRequest alloc] init]; + + testNotification.requestType = [SDLRequestType FILE_RESUME]; + testNotification.url = [@[@"www.google.com"] mutableCopy]; + testNotification.timeout = @52345; + testNotification.fileType = [SDLFileType GRAPHIC_PNG]; + testNotification.offset = @2532678684; + testNotification.length = @50000000000; + + expect(testNotification.requestType).to(equal([SDLRequestType FILE_RESUME])); + expect(testNotification.url).to(equal([@[@"www.google.com"] mutableCopy])); + expect(testNotification.timeout).to(equal(@52345)); + expect(testNotification.fileType).to(equal([SDLFileType GRAPHIC_PNG])); + expect(testNotification.offset).to(equal(@2532678684)); + expect(testNotification.length).to(equal(@50000000000)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_requestType:[SDLRequestType FILE_RESUME], + NAMES_url:[@[@"www.google.com"] mutableCopy], + NAMES_timeout:@52345, + NAMES_fileType:[SDLFileType GRAPHIC_PNG], + NAMES_offset:@2532678684, + NAMES_length:@50000000000}, + NAMES_operation_name:NAMES_OnSystemRequest}} mutableCopy]; + SDLOnSystemRequest* testNotification = [[SDLOnSystemRequest alloc] initWithDictionary:dict]; + + expect(testNotification.requestType).to(equal([SDLRequestType FILE_RESUME])); + expect(testNotification.url).to(equal([@[@"www.google.com"] mutableCopy])); + expect(testNotification.timeout).to(equal(@52345)); + expect(testNotification.fileType).to(equal([SDLFileType GRAPHIC_PNG])); + expect(testNotification.offset).to(equal(@2532678684)); + expect(testNotification.length).to(equal(@50000000000)); + }); + + it(@"Should return nil if not set", ^ { + SDLOnSystemRequest* testNotification = [[SDLOnSystemRequest alloc] init]; + + expect(testNotification.requestType).to(beNil()); + expect(testNotification.url).to(beNil()); + expect(testNotification.timeout).to(beNil()); + expect(testNotification.fileType).to(beNil()); + expect(testNotification.offset).to(beNil()); + expect(testNotification.length).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTBTClientStateSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTBTClientStateSpec.m new file mode 100644 index 000000000..b1391d033 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTBTClientStateSpec.m @@ -0,0 +1,44 @@ +// +// SDLOnTBTClientStateSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLOnTBTClientState.h" +#import "SDLNames.h" +#import "SDLTBTState.h" + + +QuickSpecBegin(SDLOnTBTClientStateSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnTBTClientState* testNotification = [[SDLOnTBTClientState alloc] init]; + + testNotification.state = [SDLTBTState ETA_REQUEST]; + + expect(testNotification.state).to(equal([SDLTBTState ETA_REQUEST])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_state:[SDLTBTState ETA_REQUEST]}, + NAMES_operation_name:NAMES_OnTBTClientState}} mutableCopy]; + SDLOnTBTClientState* testNotification = [[SDLOnTBTClientState alloc] initWithDictionary:dict]; + + expect(testNotification.state).to(equal([SDLTBTState ETA_REQUEST])); + }); + + it(@"Should return nil if not set", ^ { + SDLOnTBTClientState* testNotification = [[SDLOnTBTClientState alloc] init]; + + expect(testNotification.state).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTouchEventSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTouchEventSpec.m new file mode 100644 index 000000000..298ffef9f --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnTouchEventSpec.m @@ -0,0 +1,52 @@ +// +// SDLOnTouchEventSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLOnTouchEvent.h" +#import "SDLNames.h" +#import "SDLTouchEvent.h" +#import "SDLTouchType.h" + + +QuickSpecBegin(SDLOnTouchEventSpec) + +SDLTouchEvent* event = [[SDLTouchEvent alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnTouchEvent* testNotification = [[SDLOnTouchEvent alloc] init]; + + testNotification.type = [SDLTouchType BEGIN]; + testNotification.event = [@[event] mutableCopy]; + + expect(testNotification.type).to(equal([SDLTouchType BEGIN])); + expect(testNotification.event).to(equal([@[event] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_type:[SDLTouchType BEGIN], + NAMES_event:[@[event] mutableCopy]}, + NAMES_operation_name:NAMES_OnTouchEvent}} mutableCopy]; + SDLOnTouchEvent* testNotification = [[SDLOnTouchEvent alloc] initWithDictionary:dict]; + + expect(testNotification.type).to(equal([SDLTouchType BEGIN])); + expect(testNotification.event).to(equal([@[event] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLOnTouchEvent* testNotification = [[SDLOnTouchEvent alloc] init]; + + expect(testNotification.type).to(beNil()); + expect(testNotification.event).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m new file mode 100644 index 000000000..17704a304 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m @@ -0,0 +1,175 @@ +// +// SDLOnVehicleDataSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SmartDeviceLink.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLOnVehicleDataSpec) + +SDLGPSData* gps = [[SDLGPSData alloc] init]; +SDLTireStatus* tires = [[SDLTireStatus alloc] init]; +SDLBeltStatus* belt = [[SDLBeltStatus alloc] init]; +SDLBodyInformation* body = [[SDLBodyInformation alloc] init]; +SDLDeviceStatus* device = [[SDLDeviceStatus alloc] init]; +SDLHeadLampStatus* headLamp = [[SDLHeadLampStatus alloc] init]; +SDLECallInfo* eCall = [[SDLECallInfo alloc] init]; +SDLAirbagStatus* airbag = [[SDLAirbagStatus alloc] init]; +SDLEmergencyEvent* event = [[SDLEmergencyEvent alloc] init]; +SDLClusterModeStatus* clusterMode = [[SDLClusterModeStatus alloc] init]; +SDLMyKey* myKey = [[SDLMyKey alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLOnVehicleData* testNotification = [[SDLOnVehicleData alloc] init]; + + testNotification.gps = gps; + testNotification.speed = @70.1; + testNotification.rpm = @4242; + testNotification.fuelLevel = @10.3; + testNotification.fuelLevel_State = [SDLComponentVolumeStatus ALERT]; + testNotification.instantFuelConsumption = @4000.63; + testNotification.externalTemperature = @-10; + testNotification.vin = @"222222222722"; + testNotification.prndl = [SDLPRNDL DRIVE]; + testNotification.tirePressure = tires; + testNotification.odometer = @100050; + testNotification.beltStatus = belt; + testNotification.bodyInformation = body; + testNotification.deviceStatus = device; + testNotification.driverBraking = [SDLVehicleDataEventStatus _YES]; + testNotification.wiperStatus = [SDLWiperStatus STALLED]; + testNotification.headLampStatus = headLamp; + testNotification.engineTorque = @-200.124; + testNotification.accPedalPosition = @99.99999999; + testNotification.steeringWheelAngle = @0.000000001; + testNotification.eCallInfo = eCall; + testNotification.airbagStatus = airbag; + testNotification.emergencyEvent = event; + testNotification.clusterModeStatus = clusterMode; + testNotification.myKey = myKey; + + expect(testNotification.gps).to(equal(gps)); + expect(testNotification.speed).to(equal(@70.1)); + expect(testNotification.rpm).to(equal(@4242)); + expect(testNotification.fuelLevel).to(equal(@10.3)); + expect(testNotification.fuelLevel_State).to(equal([SDLComponentVolumeStatus ALERT])); + expect(testNotification.instantFuelConsumption).to(equal(@4000.63)); + expect(testNotification.externalTemperature).to(equal(@-10)); + expect(testNotification.vin).to(equal(@"222222222722")); + expect(testNotification.prndl).to(equal([SDLPRNDL DRIVE])); + expect(testNotification.tirePressure).to(equal(tires)); + expect(testNotification.odometer).to(equal(@100050)); + expect(testNotification.beltStatus).to(equal(belt)); + expect(testNotification.bodyInformation).to(equal(body)); + expect(testNotification.deviceStatus).to(equal(device)); + expect(testNotification.driverBraking).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testNotification.wiperStatus).to(equal([SDLWiperStatus STALLED])); + expect(testNotification.headLampStatus).to(equal(headLamp)); + expect(testNotification.engineTorque).to(equal(@-200.124)); + expect(testNotification.accPedalPosition).to(equal(@99.99999999)); + expect(testNotification.steeringWheelAngle).to(equal(@0.000000001)); + expect(testNotification.eCallInfo).to(equal(eCall)); + expect(testNotification.airbagStatus).to(equal(airbag)); + expect(testNotification.emergencyEvent).to(equal(event)); + expect(testNotification.clusterModeStatus).to(equal(clusterMode)); + expect(testNotification.myKey).to(equal(myKey)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_gps:gps, + NAMES_speed:@70.1, + NAMES_rpm:@4242, + NAMES_fuelLevel:@10.3, + NAMES_fuelLevel_State:[SDLComponentVolumeStatus ALERT], + NAMES_instantFuelConsumption:@4000.63, + NAMES_externalTemperature:@-10, + NAMES_vin:@"222222222722", + NAMES_prndl:[SDLPRNDL DRIVE], + NAMES_tirePressure:tires, + NAMES_odometer:@100050, + NAMES_beltStatus:belt, + NAMES_bodyInformation:body, + NAMES_deviceStatus:device, + NAMES_driverBraking:[SDLVehicleDataEventStatus _YES], + NAMES_wiperStatus:[SDLWiperStatus STALLED], + NAMES_headLampStatus:headLamp, + NAMES_engineTorque:@-200.124, + NAMES_accPedalPosition:@99.99999999, + NAMES_steeringWheelAngle:@0.000000001, + NAMES_eCallInfo:eCall, + NAMES_airbagStatus:airbag, + NAMES_emergencyEvent:event, + NAMES_clusterModeStatus:clusterMode, + NAMES_myKey:myKey}, + NAMES_operation_name:NAMES_OnVehicleData}} mutableCopy]; + SDLOnVehicleData* testNotification = [[SDLOnVehicleData alloc] initWithDictionary:dict]; + + expect(testNotification.gps).to(equal(gps)); + expect(testNotification.speed).to(equal(@70.1)); + expect(testNotification.rpm).to(equal(@4242)); + expect(testNotification.fuelLevel).to(equal(@10.3)); + expect(testNotification.fuelLevel_State).to(equal([SDLComponentVolumeStatus ALERT])); + expect(testNotification.instantFuelConsumption).to(equal(@4000.63)); + expect(testNotification.externalTemperature).to(equal(@-10)); + expect(testNotification.vin).to(equal(@"222222222722")); + expect(testNotification.prndl).to(equal([SDLPRNDL DRIVE])); + expect(testNotification.tirePressure).to(equal(tires)); + expect(testNotification.odometer).to(equal(@100050)); + expect(testNotification.beltStatus).to(equal(belt)); + expect(testNotification.bodyInformation).to(equal(body)); + expect(testNotification.deviceStatus).to(equal(device)); + expect(testNotification.driverBraking).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testNotification.wiperStatus).to(equal([SDLWiperStatus STALLED])); + expect(testNotification.headLampStatus).to(equal(headLamp)); + expect(testNotification.engineTorque).to(equal(@-200.124)); + expect(testNotification.accPedalPosition).to(equal(@99.99999999)); + expect(testNotification.steeringWheelAngle).to(equal(@0.000000001)); + expect(testNotification.eCallInfo).to(equal(eCall)); + expect(testNotification.airbagStatus).to(equal(airbag)); + expect(testNotification.emergencyEvent).to(equal(event)); + expect(testNotification.clusterModeStatus).to(equal(clusterMode)); + expect(testNotification.myKey).to(equal(myKey)); + }); + + it(@"Should return nil if not set", ^ { + SDLOnVehicleData* testNotification = [[SDLOnVehicleData alloc] init]; + + expect(testNotification.gps).to(beNil()); + expect(testNotification.speed).to(beNil()); + expect(testNotification.rpm).to(beNil()); + expect(testNotification.fuelLevel).to(beNil()); + expect(testNotification.fuelLevel_State).to(beNil()); + expect(testNotification.instantFuelConsumption).to(beNil()); + expect(testNotification.externalTemperature).to(beNil()); + expect(testNotification.vin).to(beNil()); + expect(testNotification.prndl).to(beNil()); + expect(testNotification.tirePressure).to(beNil()); + expect(testNotification.odometer).to(beNil()); + expect(testNotification.beltStatus).to(beNil()); + expect(testNotification.bodyInformation).to(beNil()); + expect(testNotification.deviceStatus).to(beNil()); + expect(testNotification.driverBraking).to(beNil()); + expect(testNotification.wiperStatus).to(beNil()); + expect(testNotification.headLampStatus).to(beNil()); + expect(testNotification.engineTorque).to(beNil()); + expect(testNotification.accPedalPosition).to(beNil()); + expect(testNotification.steeringWheelAngle).to(beNil()); + expect(testNotification.eCallInfo).to(beNil()); + expect(testNotification.airbagStatus).to(beNil()); + expect(testNotification.emergencyEvent).to(beNil()); + expect(testNotification.clusterModeStatus).to(beNil()); + expect(testNotification.myKey).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/PayloadSpecs/SDLRPCPayloadSpec.m b/SmartDeviceLinkTests/RPCSpecs/PayloadSpecs/SDLRPCPayloadSpec.m new file mode 100644 index 000000000..441eca732 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/PayloadSpecs/SDLRPCPayloadSpec.m @@ -0,0 +1,75 @@ +// +// SDLRPCPayloadSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import + +#import "SDLRPCPayload.h" +#import "SDLRPCMessageType.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLRPCPayloadSpec) + +__block SDLRPCPayload* testPayload; +__block NSDictionary* dict = @{NAMES_response: + @{NAMES_parameters:@{}, + NAMES_operation_name:NAMES_DeleteCommand}}; + +NSData* (^testData)() = ^NSData* { + NSData* jsonData = [NSJSONSerialization dataWithJSONObject:dict options:0 error:0]; + NSData* binaryData = [NSData dataWithBytes:"PrimitiveString" length:strlen("PrimitiveString")]; + + UInt8 header[12] = {0x10, 0x00, 0x00, 0x06, 0x00, 0x00, 0x14, 0x43, 0x00, 0x00, 0x00, 0x00}; + *(UInt32 *)&header[8] = CFSwapInt32HostToBig((unsigned int)jsonData.length); + + NSMutableData *data = [NSMutableData dataWithCapacity:12 + jsonData.length]; + [data appendBytes:&header length:12]; + [data appendData:jsonData]; + [data appendData:binaryData]; + + return data; +}; + +beforeSuite(^ { + testPayload = [[SDLRPCPayload alloc] init]; + + testPayload.rpcType = 0x01; + testPayload.functionID = 0x06; + testPayload.correlationID = 0x1443; + testPayload.jsonData = [NSJSONSerialization dataWithJSONObject:dict options:0 error:0]; + testPayload.binaryData = [NSData dataWithBytes:"PrimitiveString" length:strlen("PrimitiveString")]; +}); + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + expect(@(testPayload.rpcType)).to(equal(@0x01)); + expect(@(testPayload.functionID)).to(equal(@0x06)); + expect(@(testPayload.correlationID)).to(equal(@0x1443)); + expect([NSJSONSerialization JSONObjectWithData:testPayload.jsonData options:0 error:0]).to(equal(dict)); + expect([NSString stringWithUTF8String:[testPayload binaryData].bytes]).to(equal(@"PrimitiveString")); + }); +}); + +describe(@"Data Tests", ^ { + it (@"Should convert to byte data correctly", ^ { + expect(testPayload.data).to(equal(testData())); + }); +}); + +describe(@"RPCPayloadWithData Test", ^ { + it (@"Should convert from byte data correctly", ^ { + SDLRPCPayload* constructedPayload = [SDLRPCPayload rpcPayloadWithData:testData()]; + + expect(@(constructedPayload.rpcType)).to(equal(@0x01)); + expect(@(constructedPayload.functionID)).to(equal(@0x06)); + expect(@(constructedPayload.correlationID)).to(equal(@0x1443)); + expect([NSJSONSerialization JSONObjectWithData:constructedPayload.jsonData options:0 error:0]).to(equal(dict)); + expect([NSString stringWithUTF8String:[constructedPayload binaryData].bytes]).to(equal(@"PrimitiveString")); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddCommandSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddCommandSpec.m new file mode 100644 index 000000000..455552bad --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddCommandSpec.m @@ -0,0 +1,62 @@ +// +// SDLAddCommandSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAddCommand.h" +#import "SDLImage.h" +#import "SDLMenuParams.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLAddCommandSpec) + +SDLMenuParams* menu = [[SDLMenuParams alloc] init]; +SDLImage* image = [[SDLImage alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLAddCommand* testRequest = [[SDLAddCommand alloc] init]; + + testRequest.cmdID = @434577; + testRequest.menuParams = menu; + testRequest.vrCommands = [@[@"name", @"anotherName"] mutableCopy]; + testRequest.cmdIcon = image; + + expect(testRequest.cmdID).to(equal(@434577)); + expect(testRequest.menuParams).to(equal(menu)); + expect(testRequest.vrCommands).to(equal([@[@"name", @"anotherName"] mutableCopy])); + expect(testRequest.cmdIcon).to(equal(image)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_cmdID:@434577, + NAMES_menuParams:menu, + NAMES_vrCommands:[@[@"name", @"anotherName"] mutableCopy], + NAMES_cmdIcon:image}, + NAMES_operation_name:NAMES_AddCommand}} mutableCopy]; + SDLAddCommand* testRequest = [[SDLAddCommand alloc] initWithDictionary:dict]; + + expect(testRequest.cmdID).to(equal(@434577)); + expect(testRequest.menuParams).to(equal(menu)); + expect(testRequest.vrCommands).to(equal([@[@"name", @"anotherName"] mutableCopy])); + expect(testRequest.cmdIcon).to(equal(image)); + }); + + it(@"Should return nil if not set", ^ { + SDLAddCommand* testRequest = [[SDLAddCommand alloc] init]; + + expect(testRequest.cmdID).to(beNil()); + expect(testRequest.menuParams).to(beNil()); + expect(testRequest.vrCommands).to(beNil()); + expect(testRequest.cmdIcon).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m new file mode 100644 index 000000000..04a6526a8 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m @@ -0,0 +1,52 @@ +// +// SDLAddSubMenuSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAddSubMenu.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLAddSubMenuSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLAddSubMenu* testRequest = [[SDLAddSubMenu alloc] init]; + + testRequest.menuID = @4345645; + testRequest.position = @27; + testRequest.menuName = @"Welcome to the menu"; + + expect(testRequest.menuID).to(equal(@4345645)); + expect(testRequest.position).to(equal(@27)); + expect(testRequest.menuName).to(equal(@"Welcome to the menu")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_menuID:@4345645, + NAMES_position:@27, + NAMES_menuName:@"Welcome to the menu"}, + NAMES_operation_name:NAMES_AddSubMenu}} mutableCopy]; + SDLAddSubMenu* testRequest = [[SDLAddSubMenu alloc] initWithDictionary:dict]; + + expect(testRequest.menuID).to(equal(@4345645)); + expect(testRequest.position).to(equal(@27)); + expect(testRequest.menuName).to(equal(@"Welcome to the menu")); + }); + + it(@"Should return nil if not set", ^ { + SDLAddSubMenu* testRequest = [[SDLAddSubMenu alloc] init]; + + expect(testRequest.menuID).to(beNil()); + expect(testRequest.position).to(beNil()); + expect(testRequest.menuName).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertManeuverSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertManeuverSpec.m new file mode 100644 index 000000000..16d5aa0e6 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertManeuverSpec.m @@ -0,0 +1,52 @@ +// +// SDLAlertManeuverSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAlertManeuver.h" +#import "SDLTTSChunk.h" +#import "SDLSoftButton.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLAlertManeuverSpec) + +SDLTTSChunk* tts = [[SDLTTSChunk alloc] init]; +SDLSoftButton* button = [[SDLSoftButton alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLAlertManeuver* testRequest = [[SDLAlertManeuver alloc] init]; + + testRequest.ttsChunks = [@[tts] mutableCopy]; + testRequest.softButtons = [@[button] mutableCopy]; + + expect(testRequest.ttsChunks).to(equal([@[tts] mutableCopy])); + expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_ttsChunks:[@[tts] mutableCopy], + NAMES_softButtons:[@[button] mutableCopy]}, + NAMES_operation_name:NAMES_AlertManeuver}} mutableCopy]; + SDLAlertManeuver* testRequest = [[SDLAlertManeuver alloc] initWithDictionary:dict]; + + expect(testRequest.ttsChunks).to(equal([@[tts] mutableCopy])); + expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLAlertManeuver* testRequest = [[SDLAlertManeuver alloc] init]; + + expect(testRequest.ttsChunks).to(beNil()); + expect(testRequest.softButtons).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertSpec.m new file mode 100644 index 000000000..b5725e168 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAlertSpec.m @@ -0,0 +1,82 @@ +// +// SDLAlertSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAlert.h" +#import "SDLTTSChunk.h" +#import "SDLSoftButton.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLAlertSpec) + +SDLTTSChunk* tts = [[SDLTTSChunk alloc] init]; +SDLSoftButton* button = [[SDLSoftButton alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLAlert* testRequest = [[SDLAlert alloc] init]; + + testRequest.alertText1 = @"alert#1"; + testRequest.alertText2 = @"alert#2"; + testRequest.alertText3 = @"alert#3"; + testRequest.ttsChunks = [@[tts] mutableCopy]; + testRequest.duration = @4357; + testRequest.playTone = @YES; + testRequest.progressIndicator = @NO; + testRequest.softButtons = [@[button] mutableCopy]; + + expect(testRequest.alertText1).to(equal(@"alert#1")); + expect(testRequest.alertText2).to(equal(@"alert#2")); + expect(testRequest.alertText3).to(equal(@"alert#3")); + expect(testRequest.ttsChunks).to(equal([@[tts] mutableCopy])); + expect(testRequest.duration).to(equal(@4357)); + expect(testRequest.playTone).to(equal(@YES)); + expect(testRequest.progressIndicator).to(equal(@NO)); + expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_alertText1:@"alert#1", + NAMES_alertText2:@"alert#2", + NAMES_alertText3:@"alert#3", + NAMES_ttsChunks:[@[tts] mutableCopy], + NAMES_duration:@4357, + NAMES_playTone:@YES, + NAMES_progressIndicator:@NO, + NAMES_softButtons:[@[button] mutableCopy]}, + NAMES_operation_name:NAMES_Alert}} mutableCopy]; + SDLAlert* testRequest = [[SDLAlert alloc] initWithDictionary:dict]; + + expect(testRequest.alertText1).to(equal(@"alert#1")); + expect(testRequest.alertText2).to(equal(@"alert#2")); + expect(testRequest.alertText3).to(equal(@"alert#3")); + expect(testRequest.ttsChunks).to(equal([@[tts] mutableCopy])); + expect(testRequest.duration).to(equal(@4357)); + expect(testRequest.playTone).to(equal(@YES)); + expect(testRequest.progressIndicator).to(equal(@NO)); + expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLAlert* testRequest = [[SDLAlert alloc] init]; + + expect(testRequest.alertText1).to(beNil()); + expect(testRequest.alertText2).to(beNil()); + expect(testRequest.alertText3).to(beNil()); + expect(testRequest.ttsChunks).to(beNil()); + expect(testRequest.duration).to(beNil()); + expect(testRequest.playTone).to(beNil()); + expect(testRequest.progressIndicator).to(beNil()); + expect(testRequest.softButtons).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLChangeRegistrationSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLChangeRegistrationSpec.m new file mode 100644 index 000000000..9bf496042 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLChangeRegistrationSpec.m @@ -0,0 +1,186 @@ +// +// SDLChangeRegistrationSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLChangeRegistration.h" +#import "SDLLanguage.h" +#import "SDLNames.h" +#import "SDLTTSChunk.h" + + +QuickSpecBegin(SDLChangeRegistrationSpec) + +describe(@"change registration", ^ { + __block SDLChangeRegistration *testRequest = nil; + __block SDLLanguage *someLanguage = nil; + __block SDLLanguage *someOtherLanguage = nil; + __block NSString *someAppName = nil; + __block NSArray *someTTSChunks = nil; + __block NSString *someNGNMediaAppName = nil; + __block NSArray *someVRSynonyms = nil; + + describe(@"when initializing with properites", ^{ + context(@"when parameters are set", ^{ + beforeEach(^{ + testRequest = [[SDLChangeRegistration alloc] init]; + + someLanguage = [SDLLanguage IT_IT]; + someOtherLanguage = [SDLLanguage KO_KR]; + someAppName = @"someAppName"; + someTTSChunks = @[[[SDLTTSChunk alloc] init]]; + someNGNMediaAppName = @"some media app name"; + someVRSynonyms = @[@"some1", @"some2"]; + + testRequest.language = someLanguage; + testRequest.hmiDisplayLanguage = someOtherLanguage; + testRequest.appName = someAppName; + testRequest.ttsName = someTTSChunks; + testRequest.ngnMediaScreenAppName = someNGNMediaAppName; + testRequest.vrSynonyms = someVRSynonyms; + }); + + // Since the properties are immutable, a copy should be executed as a retain, so they should be identical + it(@"should get language correctly", ^{ + expect(testRequest.language).to(beIdenticalTo(someLanguage)); + }); + + it(@"should get hmi display language correctly", ^{ + expect(testRequest.hmiDisplayLanguage).to(beIdenticalTo(someOtherLanguage)); + }); + + it(@"should get app name correctly", ^{ + expect(testRequest.appName).to(beIdenticalTo(someAppName)); + }); + + it(@"should get tts chuncks correctly", ^{ + expect(testRequest.ttsName).to(beIdenticalTo(someTTSChunks)); + }); + + it(@"should get ngn media app name correctly", ^{ + expect(testRequest.ngnMediaScreenAppName).to(beIdenticalTo(someNGNMediaAppName)); + }); + + it(@"should get vr synonyms correctly", ^{ + expect(testRequest.vrSynonyms).to(beIdenticalTo(someVRSynonyms)); + }); + }); + + context(@"when no parameters are set", ^{ + beforeEach(^{ + testRequest = [[SDLChangeRegistration alloc] init]; + }); + + it(@"Should return nil if for language", ^ { + expect(testRequest.language).to(beNil()); + }); + + it(@"should return nil for hmi display language", ^{ + expect(testRequest.hmiDisplayLanguage).to(beNil()); + }); + + it(@"should return nil for app name", ^{ + expect(testRequest.appName).to(beNil()); + }); + + it(@"should return nil for tts name", ^{ + expect(testRequest.ttsName).to(beNil()); + }); + + it(@"should return nil for ngn media screen app name", ^{ + expect(testRequest.ngnMediaScreenAppName).to(beNil()); + }); + + it(@"should return nil for vr synonyms", ^{ + expect(testRequest.vrSynonyms).to(beNil()); + }); + }); + }); + + describe(@"when initializing with a dictionary", ^{ + context(@"when parameters are set", ^{ + beforeEach(^{ + someLanguage = [SDLLanguage IT_IT]; + someOtherLanguage = [SDLLanguage KO_KR]; + someAppName = @"someAppName"; + someTTSChunks = @[[[SDLTTSChunk alloc] init]]; + someNGNMediaAppName = @"some media app name"; + someVRSynonyms = @[@"some1", @"some2"]; + + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_language:someLanguage, + NAMES_hmiDisplayLanguage:someOtherLanguage, + NAMES_appName:someAppName, + NAMES_ttsName:someTTSChunks, + NAMES_ngnMediaScreenAppName:someNGNMediaAppName, + NAMES_vrSynonyms:someVRSynonyms}, + NAMES_operation_name:NAMES_ChangeRegistration}} mutableCopy]; + + testRequest = [[SDLChangeRegistration alloc] initWithDictionary:dict]; + }); + + // Since the properties are immutable, a copy should be executed as a retain, so they should be identical + it(@"should get language correctly", ^{ + expect(testRequest.language).to(beIdenticalTo(someLanguage)); + }); + + it(@"should get hmi display language correctly", ^{ + expect(testRequest.hmiDisplayLanguage).to(beIdenticalTo(someOtherLanguage)); + }); + + it(@"should get app name correctly", ^{ + expect(testRequest.appName).to(beIdenticalTo(someAppName)); + }); + + it(@"should get tts chuncks correctly", ^{ + expect(testRequest.ttsName).to(beIdenticalTo(someTTSChunks)); + }); + + it(@"should get ngn media app name correctly", ^{ + expect(testRequest.ngnMediaScreenAppName).to(beIdenticalTo(someNGNMediaAppName)); + }); + + it(@"should get vr synonyms correctly", ^{ + expect(testRequest.vrSynonyms).to(beIdenticalTo(someVRSynonyms)); + }); + }); + + context(@"when no parameters are set", ^{ + beforeEach(^{ + testRequest = [[SDLChangeRegistration alloc] initWithDictionary:[NSMutableDictionary dictionary]]; + }); + + it(@"Should return nil if for language", ^ { + expect(testRequest.language).to(beNil()); + }); + + it(@"should return nil for hmi display language", ^{ + expect(testRequest.hmiDisplayLanguage).to(beNil()); + }); + + it(@"should return nil for app name", ^{ + expect(testRequest.appName).to(beNil()); + }); + + it(@"should return nil for tts name", ^{ + expect(testRequest.ttsName).to(beNil()); + }); + + it(@"should return nil for ngn media screen app name", ^{ + expect(testRequest.ngnMediaScreenAppName).to(beNil()); + }); + + it(@"should return nil for vr synonyms", ^{ + expect(testRequest.vrSynonyms).to(beNil()); + }); + }); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLCreateInteractionChoiceSetSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLCreateInteractionChoiceSetSpec.m new file mode 100644 index 000000000..39cadb2d6 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLCreateInteractionChoiceSetSpec.m @@ -0,0 +1,50 @@ +// +// SDLCreateInteractionChoiceSetSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLCreateInteractionChoiceSet.h" +#import "SDLChoice.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLCreateInteractionChoiceSetSpec) + +SDLChoice* choice = [[SDLChoice alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLCreateInteractionChoiceSet* testRequest = [[SDLCreateInteractionChoiceSet alloc] init]; + + testRequest.interactionChoiceSetID = @141414; + testRequest.choiceSet = [@[choice] mutableCopy]; + + expect(testRequest.interactionChoiceSetID).to(equal(@141414)); + expect(testRequest.choiceSet).to(equal([@[choice] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_interactionChoiceSetID:@141414, + NAMES_choiceSet:[@[choice] mutableCopy]}, + NAMES_operation_name:NAMES_CreateInteractionChoiceSet}} mutableCopy]; + SDLCreateInteractionChoiceSet* testRequest = [[SDLCreateInteractionChoiceSet alloc] initWithDictionary:dict]; + + expect(testRequest.interactionChoiceSetID).to(equal(@141414)); + expect(testRequest.choiceSet).to(equal([@[choice] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLCreateInteractionChoiceSet* testRequest = [[SDLCreateInteractionChoiceSet alloc] init]; + + expect(testRequest.interactionChoiceSetID).to(beNil()); + expect(testRequest.choiceSet).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteCommandSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteCommandSpec.m new file mode 100644 index 000000000..2d0be62d8 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteCommandSpec.m @@ -0,0 +1,42 @@ +// +// SDLDeleteCommandSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDeleteCommand.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLDeleteCommandSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLDeleteCommand* testRequest = [[SDLDeleteCommand alloc] init]; + + testRequest.cmdID = @11223344; + + expect(testRequest.cmdID).to(equal(@11223344)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_cmdID:@11223344}, + NAMES_operation_name:NAMES_DeleteCommand}} mutableCopy]; + SDLDeleteCommand* testRequest = [[SDLDeleteCommand alloc] initWithDictionary:dict]; + + expect(testRequest.cmdID).to(equal(@11223344)); + }); + + it(@"Should return nil if not set", ^ { + SDLDeleteCommand* testRequest = [[SDLDeleteCommand alloc] init]; + + expect(testRequest.cmdID).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteFileSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteFileSpec.m new file mode 100755 index 000000000..c6e471fc4 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteFileSpec.m @@ -0,0 +1,42 @@ +// +// SDLDeleteFileSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDeleteFile.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLDeleteFileSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLDeleteFile* testRequest = [[SDLDeleteFile alloc] init]; + + testRequest.syncFileName = @"synchro"; + + expect(testRequest.syncFileName).to(equal(@"synchro")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_syncFileName:@"synchro"}, + NAMES_operation_name:NAMES_DeleteFile}} mutableCopy]; + SDLDeleteFile* testRequest = [[SDLDeleteFile alloc] initWithDictionary:dict]; + + expect(testRequest.syncFileName).to(equal(@"synchro")); + }); + + it(@"Should return nil if not set", ^ { + SDLDeleteFile* testRequest = [[SDLDeleteFile alloc] init]; + + expect(testRequest.syncFileName).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m new file mode 100755 index 000000000..6d42d114f --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m @@ -0,0 +1,42 @@ +// +// SDLDeleteInteractionChoiceSetSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDeleteInteractionChoiceSet.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLDeleteInteractionChoiceSetSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLDeleteInteractionChoiceSet* testRequest = [[SDLDeleteInteractionChoiceSet alloc] init]; + + testRequest.interactionChoiceSetID = @20314; + + expect(testRequest.interactionChoiceSetID).to(equal(@20314)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_interactionChoiceSetID:@20314}, + NAMES_operation_name:NAMES_DeleteInteractionChoiceSet}} mutableCopy]; + SDLDeleteInteractionChoiceSet* testRequest = [[SDLDeleteInteractionChoiceSet alloc] initWithDictionary:dict]; + + expect(testRequest.interactionChoiceSetID).to(equal(@20314)); + }); + + it(@"Should return nil if not set", ^ { + SDLDeleteInteractionChoiceSet* testRequest = [[SDLDeleteInteractionChoiceSet alloc] init]; + + expect(testRequest.interactionChoiceSetID).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteSubMenuSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteSubMenuSpec.m new file mode 100755 index 000000000..9b2d6588d --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteSubMenuSpec.m @@ -0,0 +1,42 @@ +// +// SDLDeleteSubMenuSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDeleteSubMenu.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLDeleteSubMenuSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLDeleteSubMenu* testRequest = [[SDLDeleteSubMenu alloc] init]; + + testRequest.menuID = @25614; + + expect(testRequest.menuID).to(equal(@25614)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_menuID:@25614}, + NAMES_operation_name:NAMES_DeleteSubMenu}} mutableCopy]; + SDLDeleteSubMenu* testRequest = [[SDLDeleteSubMenu alloc] initWithDictionary:dict]; + + expect(testRequest.menuID).to(equal(@25614)); + }); + + it(@"Should return nil if not set", ^ { + SDLDeleteSubMenu* testRequest = [[SDLDeleteSubMenu alloc] init]; + + expect(testRequest.menuID).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDiagnosticMessageSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDiagnosticMessageSpec.m new file mode 100755 index 000000000..965920f39 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDiagnosticMessageSpec.m @@ -0,0 +1,52 @@ +// +// SDLDiagnosticMessageSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDiagnosticMessage.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLDiagnosticMessageSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLDiagnosticMessage* testRequest = [[SDLDiagnosticMessage alloc] init]; + + testRequest.targetID = @3562; + testRequest.messageLength = @55555; + testRequest.messageData = [@[@1, @4, @16, @64] mutableCopy]; + + expect(testRequest.targetID).to(equal(@3562)); + expect(testRequest.messageLength).to(equal(@55555)); + expect(testRequest.messageData).to(equal([@[@1, @4, @16, @64] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_targetID:@3562, + NAMES_messageLength:@55555, + NAMES_messageData:[@[@1, @4, @16, @64] mutableCopy]}, + NAMES_operation_name:NAMES_DiagnosticMessage}} mutableCopy]; + SDLDiagnosticMessage* testRequest = [[SDLDiagnosticMessage alloc] initWithDictionary:dict]; + + expect(testRequest.targetID).to(equal(@3562)); + expect(testRequest.messageLength).to(equal(@55555)); + expect(testRequest.messageData).to(equal([@[@1, @4, @16, @64] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLDiagnosticMessage* testRequest = [[SDLDiagnosticMessage alloc] init]; + + expect(testRequest.targetID).to(beNil()); + expect(testRequest.messageLength).to(beNil()); + expect(testRequest.messageData).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDialNumberSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDialNumberSpec.m new file mode 100644 index 000000000..7371fedf3 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDialNumberSpec.m @@ -0,0 +1,80 @@ +// +// SDLDialNumberSpec.m +// SmartDeviceLink-iOS + +#import +#import + +#import "SDLDialNumber.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLDialNumberSpec) + +describe(@"Dial Number RPC", ^{ + describe(@"when initialized with 'init'", ^{ + __block SDLDialNumber *testRequest = nil; + beforeEach(^{ + testRequest = [[SDLDialNumber alloc] init]; + }); + + context(@"when parameters are set correctly", ^{ + __block NSString *somePhoneNumber = nil; + beforeEach(^{ + somePhoneNumber = @"1234567890"; + testRequest.number = [somePhoneNumber copy]; + }); + + it(@"should get 'number' correctly", ^{ + expect(testRequest.number).to(equal(somePhoneNumber)); + }); + }); + + context(@"when parameters are not set correctly", ^{ + it(@"should return nil for number", ^{ + expect(testRequest.number).to(beNil()); + }); + }); + }); + + describe(@"when initialized with a dictionary and parameters are set correctly", ^{ + __block SDLDialNumber *testRequest = nil; + __block NSString *somePhoneNumber = nil; + beforeEach(^{ + somePhoneNumber = @"1234567890"; + NSDictionary *initDict = @{ + NAMES_request: @{ + NAMES_parameters: @{ + NAMES_number: [somePhoneNumber copy] + } + } + }; + + testRequest = [[SDLDialNumber alloc] initWithDictionary:[initDict mutableCopy]]; + }); + + it(@"should get 'number' correctly", ^{ + expect(testRequest.number).to(equal(somePhoneNumber)); + }); + }); + + describe(@"when initialized with a dictionary and parameters are not set correctly", ^{ + __block SDLDialNumber *testRequest = nil; + beforeEach(^{ + NSDictionary *initDict = @{ + NAMES_request: @{ + NAMES_parameters: @{ + } + } + }; + + testRequest = [[SDLDialNumber alloc] initWithDictionary:[initDict mutableCopy]]; + }); + + it(@"should return nil for number", ^{ + expect(testRequest.number).to(beNil()); + }); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m new file mode 100755 index 000000000..753608940 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m @@ -0,0 +1,42 @@ +// +// SDLEncodedSyncPDataSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLEncodedSyncPData.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLEncodedSyncPDataSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLEncodedSyncPData* testRequest = [[SDLEncodedSyncPData alloc] init]; + + testRequest.data = [@[@2, @2, @2] mutableCopy]; + + expect(testRequest.data).to(equal([@[@2, @2, @2] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_data:[@[@2, @2, @2] mutableCopy]}, + NAMES_operation_name:NAMES_EncodedSyncPData}} mutableCopy]; + SDLEncodedSyncPData* testRequest = [[SDLEncodedSyncPData alloc] initWithDictionary:dict]; + + expect(testRequest.data).to(equal([@[@2, @2, @2] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLEncodedSyncPData* testRequest = [[SDLEncodedSyncPData alloc] init]; + + expect(testRequest.data).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEndAudioPassThruSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEndAudioPassThruSpec.m new file mode 100644 index 000000000..843d917be --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEndAudioPassThruSpec.m @@ -0,0 +1,16 @@ +// +// SDLEndAudioPassThruSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLEndAudioPassThru.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLEndAudioPassThruSpec) + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetDTCsSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetDTCsSpec.m new file mode 100755 index 000000000..87f84fd4d --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetDTCsSpec.m @@ -0,0 +1,47 @@ +// +// SDLGetDTCsSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLGetDTCs.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLGetDTCsSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLGetDTCs* testRequest = [[SDLGetDTCs alloc] init]; + + testRequest.ecuName = @4321; + testRequest.dtcMask = @22; + + expect(testRequest.ecuName).to(equal(@4321)); + expect(testRequest.dtcMask).to(equal(@22)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_ecuName:@4321, + NAMES_dtcMask:@22}, + NAMES_operation_name:NAMES_EndAudioPassThru}} mutableCopy]; + SDLGetDTCs* testRequest = [[SDLGetDTCs alloc] initWithDictionary:dict]; + + expect(testRequest.ecuName).to(equal(@4321)); + expect(testRequest.dtcMask).to(equal(@22)); + }); + + it(@"Should return nil if not set", ^ { + SDLGetDTCs* testRequest = [[SDLGetDTCs alloc] init]; + + expect(testRequest.ecuName).to(beNil()); + expect(testRequest.dtcMask).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m new file mode 100644 index 000000000..936550ce7 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m @@ -0,0 +1,162 @@ +// +// SDLGetVehicleDataSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLGetVehicleData.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLGetVehicleDataSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLGetVehicleData* testRequest = [[SDLGetVehicleData alloc] init]; + + testRequest.gps = @NO; + testRequest.speed = @YES; + testRequest.rpm = @NO; + testRequest.fuelLevel = @YES; + testRequest.fuelLevel_State = @NO; + testRequest.instantFuelConsumption = @YES; + testRequest.externalTemperature = @NO; + testRequest.vin = @YES; + testRequest.prndl = @NO; + testRequest.tirePressure = @YES; + testRequest.odometer = @NO; + testRequest.beltStatus = @YES; + testRequest.bodyInformation = @NO; + testRequest.deviceStatus = @YES; + testRequest.driverBraking = @NO; + testRequest.wiperStatus = @YES; + testRequest.headLampStatus = @NO; + testRequest.engineTorque = @YES; + testRequest.accPedalPosition = @NO; + testRequest.steeringWheelAngle = @YES; + testRequest.eCallInfo = @NO; + testRequest.airbagStatus = @YES; + testRequest.emergencyEvent = @NO; + testRequest.clusterModeStatus = @YES; + testRequest.myKey = @NO; + + expect(testRequest.gps).to(equal(@NO)); + expect(testRequest.speed).to(equal(@YES)); + expect(testRequest.rpm).to(equal(@NO)); + expect(testRequest.fuelLevel).to(equal(@YES)); + expect(testRequest.fuelLevel_State).to(equal(@NO)); + expect(testRequest.instantFuelConsumption).to(equal(@YES)); + expect(testRequest.externalTemperature).to(equal(@NO)); + expect(testRequest.vin).to(equal(@YES)); + expect(testRequest.prndl).to(equal(@NO)); + expect(testRequest.tirePressure).to(equal(@YES)); + expect(testRequest.odometer).to(equal(@NO)); + expect(testRequest.beltStatus).to(equal(@YES)); + expect(testRequest.bodyInformation).to(equal(@NO)); + expect(testRequest.deviceStatus).to(equal(@YES)); + expect(testRequest.driverBraking).to(equal(@NO)); + expect(testRequest.wiperStatus).to(equal(@YES)); + expect(testRequest.headLampStatus).to(equal(@NO)); + expect(testRequest.engineTorque).to(equal(@YES)); + expect(testRequest.accPedalPosition).to(equal(@NO)); + expect(testRequest.steeringWheelAngle).to(equal(@YES)); + expect(testRequest.eCallInfo).to(equal(@NO)); + expect(testRequest.airbagStatus).to(equal(@YES)); + expect(testRequest.emergencyEvent).to(equal(@NO)); + expect(testRequest.clusterModeStatus).to(equal(@YES)); + expect(testRequest.myKey).to(equal(@NO)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_gps:@NO, + NAMES_speed:@YES, + NAMES_rpm:@NO, + NAMES_fuelLevel:@YES, + NAMES_fuelLevel_State:@NO, + NAMES_instantFuelConsumption:@YES, + NAMES_externalTemperature:@NO, + NAMES_vin:@YES, + NAMES_prndl:@NO, + NAMES_tirePressure:@YES, + NAMES_odometer:@NO, + NAMES_beltStatus:@YES, + NAMES_bodyInformation:@NO, + NAMES_deviceStatus:@YES, + NAMES_driverBraking:@NO, + NAMES_wiperStatus:@YES, + NAMES_headLampStatus:@NO, + NAMES_engineTorque:@YES, + NAMES_accPedalPosition:@NO, + NAMES_steeringWheelAngle:@YES, + NAMES_eCallInfo:@NO, + NAMES_airbagStatus:@YES, + NAMES_emergencyEvent:@NO, + NAMES_clusterModeStatus:@YES, + NAMES_myKey:@NO}, + NAMES_operation_name:NAMES_GetVehicleData}} mutableCopy]; + SDLGetVehicleData* testRequest = [[SDLGetVehicleData alloc] initWithDictionary:dict]; + + expect(testRequest.gps).to(equal(@NO)); + expect(testRequest.speed).to(equal(@YES)); + expect(testRequest.rpm).to(equal(@NO)); + expect(testRequest.fuelLevel).to(equal(@YES)); + expect(testRequest.fuelLevel_State).to(equal(@NO)); + expect(testRequest.instantFuelConsumption).to(equal(@YES)); + expect(testRequest.externalTemperature).to(equal(@NO)); + expect(testRequest.vin).to(equal(@YES)); + expect(testRequest.prndl).to(equal(@NO)); + expect(testRequest.tirePressure).to(equal(@YES)); + expect(testRequest.odometer).to(equal(@NO)); + expect(testRequest.beltStatus).to(equal(@YES)); + expect(testRequest.bodyInformation).to(equal(@NO)); + expect(testRequest.deviceStatus).to(equal(@YES)); + expect(testRequest.driverBraking).to(equal(@NO)); + expect(testRequest.wiperStatus).to(equal(@YES)); + expect(testRequest.headLampStatus).to(equal(@NO)); + expect(testRequest.engineTorque).to(equal(@YES)); + expect(testRequest.accPedalPosition).to(equal(@NO)); + expect(testRequest.steeringWheelAngle).to(equal(@YES)); + expect(testRequest.eCallInfo).to(equal(@NO)); + expect(testRequest.airbagStatus).to(equal(@YES)); + expect(testRequest.emergencyEvent).to(equal(@NO)); + expect(testRequest.clusterModeStatus).to(equal(@YES)); + expect(testRequest.myKey).to(equal(@NO)); + }); + + it(@"Should return nil if not set", ^ { + SDLGetVehicleData* testRequest = [[SDLGetVehicleData alloc] init]; + + expect(testRequest.gps).to(beNil()); + expect(testRequest.speed).to(beNil()); + expect(testRequest.rpm).to(beNil()); + expect(testRequest.fuelLevel).to(beNil()); + expect(testRequest.fuelLevel_State).to(beNil()); + expect(testRequest.instantFuelConsumption).to(beNil()); + expect(testRequest.externalTemperature).to(beNil()); + expect(testRequest.vin).to(beNil()); + expect(testRequest.prndl).to(beNil()); + expect(testRequest.tirePressure).to(beNil()); + expect(testRequest.odometer).to(beNil()); + expect(testRequest.beltStatus).to(beNil()); + expect(testRequest.bodyInformation).to(beNil()); + expect(testRequest.deviceStatus).to(beNil()); + expect(testRequest.driverBraking).to(beNil()); + expect(testRequest.wiperStatus).to(beNil()); + expect(testRequest.headLampStatus).to(beNil()); + expect(testRequest.engineTorque).to(beNil()); + expect(testRequest.accPedalPosition).to(beNil()); + expect(testRequest.steeringWheelAngle).to(beNil()); + expect(testRequest.eCallInfo).to(beNil()); + expect(testRequest.airbagStatus).to(beNil()); + expect(testRequest.emergencyEvent).to(beNil()); + expect(testRequest.clusterModeStatus).to(beNil()); + expect(testRequest.myKey).to(beNil()); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLListFilesSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLListFilesSpec.m new file mode 100644 index 000000000..0f0084f41 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLListFilesSpec.m @@ -0,0 +1,16 @@ +// +// SDLListFilesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLListFiles.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLListFilesSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformAudioPassThruSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformAudioPassThruSpec.m new file mode 100644 index 000000000..011a7adf5 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformAudioPassThruSpec.m @@ -0,0 +1,76 @@ +// +// SDLPerformAudioPassThruSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAudioType.h" +#import "SDLBitsPerSample.h" +#import "SDLNames.h" +#import "SDLPerformAudioPassThru.h" +#import "SDLSamplingRate.h" + + +QuickSpecBegin(SDLPerformAudioPassThruSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLPerformAudioPassThru* testRequest = [[SDLPerformAudioPassThru alloc] init]; + + testRequest.audioPassThruDisplayText1 = @"passthru#1"; + testRequest.audioPassThruDisplayText2 = @"passthru#2"; + testRequest.samplingRate = [SDLSamplingRate _22KHZ]; + testRequest.maxDuration = @34563; + testRequest.bitsPerSample = [SDLBitsPerSample _16_BIT]; + testRequest.audioType = [SDLAudioType PCM]; + testRequest.muteAudio = @NO; + + expect(testRequest.audioPassThruDisplayText1).to(equal(@"passthru#1")); + expect(testRequest.audioPassThruDisplayText2).to(equal(@"passthru#2")); + expect(testRequest.samplingRate).to(equal([SDLSamplingRate _22KHZ])); + expect(testRequest.maxDuration).to(equal(@34563)); + expect(testRequest.bitsPerSample).to(equal([SDLBitsPerSample _16_BIT])); + expect(testRequest.audioType).to(equal([SDLAudioType PCM])); + expect(testRequest.muteAudio).to(equal(@NO)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_audioPassThruDisplayText1:@"passthru#1", + NAMES_audioPassThruDisplayText2:@"passthru#2", + NAMES_samplingRate:[SDLSamplingRate _22KHZ], + NAMES_maxDuration:@34563, + NAMES_bitsPerSample:[SDLBitsPerSample _16_BIT], + NAMES_audioType:[SDLAudioType PCM], + NAMES_muteAudio:@NO}, + NAMES_operation_name:NAMES_PerformAudioPassThru}} mutableCopy]; + SDLPerformAudioPassThru* testRequest = [[SDLPerformAudioPassThru alloc] initWithDictionary:dict]; + + expect(testRequest.audioPassThruDisplayText1).to(equal(@"passthru#1")); + expect(testRequest.audioPassThruDisplayText2).to(equal(@"passthru#2")); + expect(testRequest.samplingRate).to(equal([SDLSamplingRate _22KHZ])); + expect(testRequest.maxDuration).to(equal(@34563)); + expect(testRequest.bitsPerSample).to(equal([SDLBitsPerSample _16_BIT])); + expect(testRequest.audioType).to(equal([SDLAudioType PCM])); + expect(testRequest.muteAudio).to(equal(@NO)); + }); + + it(@"Should return nil if not set", ^ { + SDLPerformAudioPassThru* testRequest = [[SDLPerformAudioPassThru alloc] init]; + + expect(testRequest.audioPassThruDisplayText1).to(beNil()); + expect(testRequest.audioPassThruDisplayText2).to(beNil()); + expect(testRequest.samplingRate).to(beNil()); + expect(testRequest.maxDuration).to(beNil()); + expect(testRequest.bitsPerSample).to(beNil()); + expect(testRequest.audioType).to(beNil()); + expect(testRequest.muteAudio).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformInteractionSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformInteractionSpec.m new file mode 100644 index 000000000..c89c3d5bd --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPerformInteractionSpec.m @@ -0,0 +1,91 @@ +// +// SDLPerformInteractionSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLInteractionMode.h" +#import "SDLLayoutMode.h" +#import "SDLPerformInteraction.h" +#import "SDLTTSChunk.h" +#import "SDLVrHelpItem.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLPerformInteractionSpec) + +SDLTTSChunk* chunk1 = [[SDLTTSChunk alloc] init]; +SDLTTSChunk* chunk2 = [[SDLTTSChunk alloc] init]; +SDLTTSChunk* chunk3 = [[SDLTTSChunk alloc] init]; +SDLVRHelpItem* helpItem = [[SDLVRHelpItem alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLPerformInteraction* testRequest = [[SDLPerformInteraction alloc] init]; + + testRequest.initialText = @"a"; + testRequest.initialPrompt = [@[chunk1] mutableCopy]; + testRequest.interactionMode = [SDLInteractionMode VR_ONLY]; + testRequest.interactionChoiceSetIDList = [@[@1, @2, @3] mutableCopy]; + testRequest.helpPrompt = [@[chunk2] mutableCopy]; + testRequest.timeoutPrompt = [@[chunk3] mutableCopy]; + testRequest.timeout = @42000; + testRequest.vrHelp = [@[helpItem] mutableCopy]; + testRequest.interactionLayout = [SDLLayoutMode ICON_WITH_SEARCH]; + + expect(testRequest.initialText).to(equal(@"a")); + expect(testRequest.initialPrompt).to(equal([@[chunk1] mutableCopy])); + expect(testRequest.interactionMode).to(equal([SDLInteractionMode VR_ONLY])); + expect(testRequest.interactionChoiceSetIDList).to(equal([@[@1, @2, @3] mutableCopy])); + expect(testRequest.helpPrompt).to(equal([@[chunk2] mutableCopy])); + expect(testRequest.timeoutPrompt).to(equal([@[chunk3] mutableCopy])); + expect(testRequest.timeout).to(equal(@42000)); + expect(testRequest.vrHelp).to(equal([@[helpItem] mutableCopy])); + expect(testRequest.interactionLayout).to(equal([SDLLayoutMode ICON_WITH_SEARCH])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_initialText:@"a", + NAMES_initialPrompt:[@[chunk1] mutableCopy], + NAMES_interactionMode:[SDLInteractionMode VR_ONLY], + NAMES_interactionChoiceSetIDList:[@[@1, @2, @3] mutableCopy], + NAMES_helpPrompt:[@[chunk2] mutableCopy], + NAMES_timeoutPrompt:[@[chunk3] mutableCopy], + NAMES_timeout:@42000, + NAMES_vrHelp:[@[helpItem] mutableCopy], + NAMES_interactionLayout:[SDLLayoutMode ICON_WITH_SEARCH]}, + NAMES_operation_name:NAMES_PerformInteraction}} mutableCopy]; + SDLPerformInteraction* testRequest = [[SDLPerformInteraction alloc] initWithDictionary:dict]; + + expect(testRequest.initialText).to(equal(@"a")); + expect(testRequest.initialPrompt).to(equal([@[chunk1] mutableCopy])); + expect(testRequest.interactionMode).to(equal([SDLInteractionMode VR_ONLY])); + expect(testRequest.interactionChoiceSetIDList).to(equal([@[@1, @2, @3] mutableCopy])); + expect(testRequest.helpPrompt).to(equal([@[chunk2] mutableCopy])); + expect(testRequest.timeoutPrompt).to(equal([@[chunk3] mutableCopy])); + expect(testRequest.timeout).to(equal(@42000)); + expect(testRequest.vrHelp).to(equal([@[helpItem] mutableCopy])); + expect(testRequest.interactionLayout).to(equal([SDLLayoutMode ICON_WITH_SEARCH])); + }); + + it(@"Should return nil if not set", ^ { + SDLPerformInteraction* testRequest = [[SDLPerformInteraction alloc] init]; + + expect(testRequest.initialText).to(beNil()); + expect(testRequest.initialPrompt).to(beNil()); + expect(testRequest.interactionMode).to(beNil()); + expect(testRequest.interactionChoiceSetIDList).to(beNil()); + expect(testRequest.helpPrompt).to(beNil()); + expect(testRequest.timeoutPrompt).to(beNil()); + expect(testRequest.timeout).to(beNil()); + expect(testRequest.vrHelp).to(beNil()); + expect(testRequest.interactionLayout).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPutFileSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPutFileSpec.m new file mode 100644 index 000000000..bfa24dc13 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLPutFileSpec.m @@ -0,0 +1,69 @@ +// +// SDLPutFileSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLFileType.h" +#import "SDLNames.h" +#import "SDLPutFile.h" + + +QuickSpecBegin(SDLPutFileSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLPutFile* testRequest = [[SDLPutFile alloc] init]; + + testRequest.syncFileName = @"fileName"; + testRequest.fileType = [SDLFileType GRAPHIC_JPEG]; + testRequest.persistentFile = @YES; + testRequest.systemFile = @NO; + testRequest.offset = @987654321; + testRequest.length = @123456789; + + expect(testRequest.syncFileName).to(equal(@"fileName")); + expect(testRequest.fileType).to(equal([SDLFileType GRAPHIC_JPEG])); + expect(testRequest.persistentFile).to(equal(@YES)); + expect(testRequest.systemFile).to(equal(@NO)); + expect(testRequest.offset).to(equal(@987654321)); + expect(testRequest.length).to(equal(@123456789)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_syncFileName:@"fileName", + NAMES_fileType:[SDLFileType GRAPHIC_JPEG], + NAMES_persistentFile:@YES, + NAMES_systemFile:@NO, + NAMES_offset:@987654321, + NAMES_length:@123456789}, + NAMES_operation_name:NAMES_PutFile}} mutableCopy]; + SDLPutFile* testRequest = [[SDLPutFile alloc] initWithDictionary:dict]; + + expect(testRequest.syncFileName).to(equal(@"fileName")); + expect(testRequest.fileType).to(equal([SDLFileType GRAPHIC_JPEG])); + expect(testRequest.persistentFile).to(equal(@YES)); + expect(testRequest.systemFile).to(equal(@NO)); + expect(testRequest.offset).to(equal(@987654321)); + expect(testRequest.length).to(equal(@123456789)); + }); + + it(@"Should return nil if not set", ^ { + SDLPutFile* testRequest = [[SDLPutFile alloc] init]; + + expect(testRequest.syncFileName).to(beNil()); + expect(testRequest.fileType).to(beNil()); + expect(testRequest.persistentFile).to(beNil()); + expect(testRequest.systemFile).to(beNil()); + expect(testRequest.offset).to(beNil()); + expect(testRequest.length).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLReadDIDSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLReadDIDSpec.m new file mode 100644 index 000000000..7c5598bbb --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLReadDIDSpec.m @@ -0,0 +1,47 @@ +// +// SDLReadDIDSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLReadDID.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLReadDIDSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLReadDID* testRequest = [[SDLReadDID alloc] init]; + + testRequest.ecuName = @33112; + testRequest.didLocation = [@[@200, @201, @205] mutableCopy]; + + expect(testRequest.ecuName).to(equal(@33112)); + expect(testRequest.didLocation).to(equal([@[@200, @201, @205] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_ecuName:@33112, + NAMES_didLocation:[@[@200, @201, @205] mutableCopy]}, + NAMES_operation_name:NAMES_EndAudioPassThru}} mutableCopy]; + SDLReadDID* testRequest = [[SDLReadDID alloc] initWithDictionary:dict]; + + expect(testRequest.ecuName).to(equal(@33112)); + expect(testRequest.didLocation).to(equal([@[@200, @201, @205] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLReadDID* testRequest = [[SDLReadDID alloc] init]; + + expect(testRequest.ecuName).to(beNil()); + expect(testRequest.didLocation).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLRegisterAppInterfaceSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLRegisterAppInterfaceSpec.m new file mode 100644 index 000000000..6e8a4cc5d --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLRegisterAppInterfaceSpec.m @@ -0,0 +1,107 @@ +// +// SDLRegisterAppInterfaceSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAppHMIType.h" +#import "SDLDeviceInfo.h" +#import "SDLLanguage.h" +#import "SDLNames.h" +#import "SDLRegisterAppInterface.h" +#import "SDLSyncMsgVersion.h" +#import "SDLTTSChunk.h" + + +QuickSpecBegin(SDLRegisterAppInterfaceSpec) + +SDLSyncMsgVersion* version = [[SDLSyncMsgVersion alloc] init]; +SDLTTSChunk* chunk = [[SDLTTSChunk alloc] init]; +SDLDeviceInfo* info = [[SDLDeviceInfo alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLRegisterAppInterface* testRequest = [[SDLRegisterAppInterface alloc] init]; + + testRequest.syncMsgVersion = version; + testRequest.appName = @"app56"; + testRequest.ttsName = [@[chunk] mutableCopy]; + testRequest.ngnMediaScreenAppName = @"whatisanngn"; + testRequest.vrSynonyms = [@[@"paraphrase of the original name"] mutableCopy]; + testRequest.isMediaApplication = @NO; + testRequest.languageDesired = [SDLLanguage NO_NO]; + testRequest.hmiDisplayLanguageDesired = [SDLLanguage PT_PT]; + testRequest.appHMIType = [@[[SDLAppHMIType MESSAGING], [SDLAppHMIType INFORMATION]] copy]; + testRequest.hashID = @"gercd35grw2"; + testRequest.deviceInfo = info; + testRequest.appID = @"123456789"; + + expect(testRequest.syncMsgVersion).to(equal(version)); + expect(testRequest.appName).to(equal(@"app56")); + expect(testRequest.ttsName).to(equal([@[chunk] mutableCopy])); + expect(testRequest.ngnMediaScreenAppName).to(equal(@"whatisanngn")); + expect(testRequest.vrSynonyms).to(equal([@[@"paraphrase of the original name"] mutableCopy])); + expect(testRequest.isMediaApplication).to(equal(@NO)); + expect(testRequest.languageDesired).to(equal([SDLLanguage NO_NO])); + expect(testRequest.hmiDisplayLanguageDesired).to(equal([SDLLanguage PT_PT])); + expect(testRequest.appHMIType).to(equal([@[[SDLAppHMIType MESSAGING], [SDLAppHMIType INFORMATION]] copy])); + expect(testRequest.hashID).to(equal(@"gercd35grw2")); + expect(testRequest.deviceInfo).to(equal(info)); + expect(testRequest.appID).to(equal(@"123456789")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_syncMsgVersion:version, + NAMES_appName:@"app56", + NAMES_ttsName:[@[chunk] mutableCopy], + NAMES_ngnMediaScreenAppName:@"whatisanngn", + NAMES_vrSynonyms:[@[@"paraphrase of the original name"] mutableCopy], + NAMES_isMediaApplication:@NO, + NAMES_languageDesired:[SDLLanguage NO_NO], + NAMES_hmiDisplayLanguageDesired:[SDLLanguage PT_PT], + NAMES_appHMIType:[@[[SDLAppHMIType MESSAGING], [SDLAppHMIType INFORMATION]] copy], + NAMES_hashID:@"gercd35grw2", + NAMES_deviceInfo:info, + NAMES_appID:@"123456789"}, + NAMES_operation_name:NAMES_RegisterAppInterface}} mutableCopy]; + SDLRegisterAppInterface* testRequest = [[SDLRegisterAppInterface alloc] initWithDictionary:dict]; + + expect(testRequest.syncMsgVersion).to(equal(version)); + expect(testRequest.appName).to(equal(@"app56")); + expect(testRequest.ttsName).to(equal([@[chunk] mutableCopy])); + expect(testRequest.ngnMediaScreenAppName).to(equal(@"whatisanngn")); + expect(testRequest.vrSynonyms).to(equal([@[@"paraphrase of the original name"] mutableCopy])); + expect(testRequest.isMediaApplication).to(equal(@NO)); + expect(testRequest.languageDesired).to(equal([SDLLanguage NO_NO])); + expect(testRequest.hmiDisplayLanguageDesired).to(equal([SDLLanguage PT_PT])); + expect(testRequest.appHMIType).to(equal([@[[SDLAppHMIType MESSAGING], [SDLAppHMIType INFORMATION]] copy])); + expect(testRequest.hashID).to(equal(@"gercd35grw2")); + expect(testRequest.deviceInfo).to(equal(info)); + expect(testRequest.appID).to(equal(@"123456789")); + }); + + it(@"Should return nil if not set", ^ { + SDLRegisterAppInterface* testRequest = [[SDLRegisterAppInterface alloc] init]; + + expect(testRequest.syncMsgVersion).to(beNil()); + expect(testRequest.appName).to(beNil()); + expect(testRequest.ttsName).to(beNil()); + expect(testRequest.ngnMediaScreenAppName).to(beNil()); + expect(testRequest.vrSynonyms).to(beNil()); + expect(testRequest.isMediaApplication).to(beNil()); + expect(testRequest.languageDesired).to(beNil()); + expect(testRequest.hmiDisplayLanguageDesired).to(beNil()); + expect(testRequest.appHMIType).to(beNil()); + expect(testRequest.hashID).to(beNil()); + expect(testRequest.deviceInfo).to(beNil()); + expect(testRequest.appID).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLResetGlobalPropertiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLResetGlobalPropertiesSpec.m new file mode 100644 index 000000000..e99320f18 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLResetGlobalPropertiesSpec.m @@ -0,0 +1,43 @@ +// +// SDLResetGlobalPropertiesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLResetGlobalProperties.h" +#import "SDLGlobalProperty.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLResetGlobalPropertiesSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLResetGlobalProperties* testRequest = [[SDLResetGlobalProperties alloc] init]; + + testRequest.properties = [@[[SDLGlobalProperty MENUNAME], [SDLGlobalProperty VRHELPTITLE]] copy]; + + expect(testRequest.properties).to(equal([@[[SDLGlobalProperty MENUNAME], [SDLGlobalProperty VRHELPTITLE]] copy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_properties:[@[[SDLGlobalProperty MENUNAME], [SDLGlobalProperty VRHELPTITLE]] copy]}, + NAMES_operation_name:NAMES_ResetGlobalProperties}} mutableCopy]; + SDLResetGlobalProperties* testRequest = [[SDLResetGlobalProperties alloc] initWithDictionary:dict]; + + expect(testRequest.properties).to(equal([@[[SDLGlobalProperty MENUNAME], [SDLGlobalProperty VRHELPTITLE]] copy])); + }); + + it(@"Should return nil if not set", ^ { + SDLResetGlobalProperties* testRequest = [[SDLResetGlobalProperties alloc] init]; + + expect(testRequest.properties).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLScrollableMessageSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLScrollableMessageSpec.m new file mode 100644 index 000000000..6b1142d6b --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLScrollableMessageSpec.m @@ -0,0 +1,55 @@ +// +// SDLScrollableMessageSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLScrollableMessage.h" +#import "SDLSoftButton.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLScrollableMessageSpec) + +SDLSoftButton* button = [[SDLSoftButton alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLScrollableMessage* testRequest = [[SDLScrollableMessage alloc] init]; + + testRequest.scrollableMessageBody = @"thatmessagebody"; + testRequest.timeout = @9182; + testRequest.softButtons = [@[button] mutableCopy]; + + expect(testRequest.scrollableMessageBody).to(equal(@"thatmessagebody")); + expect(testRequest.timeout).to(equal(@9182)); + expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_scrollableMessageBody:@"thatmessagebody", + NAMES_timeout:@9182, + NAMES_softButtons:[@[button] mutableCopy]}, + NAMES_operation_name:NAMES_ScrollableMessage}} mutableCopy]; + SDLScrollableMessage* testRequest = [[SDLScrollableMessage alloc] initWithDictionary:dict]; + + expect(testRequest.scrollableMessageBody).to(equal(@"thatmessagebody")); + expect(testRequest.timeout).to(equal(@9182)); + expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLScrollableMessage* testRequest = [[SDLScrollableMessage alloc] init]; + + expect(testRequest.scrollableMessageBody).to(beNil()); + expect(testRequest.timeout).to(beNil()); + expect(testRequest.softButtons).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSendLocationSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSendLocationSpec.m new file mode 100644 index 000000000..ccd4bafdb --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSendLocationSpec.m @@ -0,0 +1,222 @@ +// +// SDLSendLocationSpec.m +// SmartDeviceLink-iOS + +#import +#import + +#import "SDLNames.h" +#import "SDLSendLocation.h" + + +QuickSpecBegin(SDLSendLocationSpec) + +describe(@"Send Location RPC", ^{ + __block SDLSendLocation *testRequest = nil; + __block NSNumber *someLongitude = nil; + __block NSNumber *someLatitude = nil; + __block NSString *someLocation = nil; + __block NSString *someLocationDescription = nil; + __block NSArray *someAddressLines = nil; + __block NSString *somePhoneNumber = nil; + __block SDLImage *someImage = nil; + + describe(@"when initialized with init", ^{ + beforeEach(^{ + testRequest = [[SDLSendLocation alloc] init]; + }); + + context(@"when parameters are set correctly", ^{ + beforeEach(^{ + someLongitude = @123.4567; + someLatitude = @65.4321; + someLocation = @"Livio"; + someLocationDescription = @"A great place to work"; + someAddressLines = @[@"3136 Hilton Rd", @"Ferndale, MI", @"48220"]; + somePhoneNumber = @"248-591-0333"; + someImage = [[SDLImage alloc] init]; + + testRequest.longitudeDegrees = someLongitude; + testRequest.latitudeDegrees = someLatitude; + testRequest.locationName = someLocation; + testRequest.locationDescription = someLocationDescription; + testRequest.addressLines = someAddressLines; + testRequest.phoneNumber = somePhoneNumber; + testRequest.locationImage = someImage; + }); + + // Since all the properties are immutable, a copy should be executed as a retain, which means they should be identical + it(@"should get longitude correctly", ^{ + expect(testRequest.longitudeDegrees).to(equal(someLongitude)); + expect(testRequest.longitudeDegrees).to(beIdenticalTo(someLongitude)); + }); + + it(@"should get latitude correctly", ^{ + expect(testRequest.latitudeDegrees).to(equal(someLatitude)); + expect(testRequest.latitudeDegrees).to(beIdenticalTo(someLatitude)); + }); + + it(@"should get location correctly", ^{ + expect(testRequest.locationName).to(equal(someLocation)); + expect(testRequest.locationName).to(beIdenticalTo(someLocation)); + }); + + it(@"should get location description correctly", ^{ + expect(testRequest.locationDescription).to(equal(someLocationDescription)); + expect(testRequest.locationDescription).to(beIdenticalTo(someLocationDescription)); + }); + + it(@"should get address lines correctly", ^{ + expect(testRequest.addressLines).to(equal(someAddressLines)); + expect(testRequest.addressLines).to(beIdenticalTo(someAddressLines)); + }); + + it(@"should get phone number correctly", ^{ + expect(testRequest.phoneNumber).to(equal(somePhoneNumber)); + expect(testRequest.phoneNumber).to(beIdenticalTo(somePhoneNumber)); + }); + + it(@"should get image correctly", ^{ + expect(testRequest.locationImage).to(equal(someImage)); + expect(testRequest.locationImage).to(beIdenticalTo(someImage)); + }); + }); + + context(@"when parameters are not set", ^{ + it(@"should return nil for longitude", ^{ + expect(testRequest.longitudeDegrees).to(beNil()); + }); + + it(@"should return nil for latitude", ^{ + expect(testRequest.latitudeDegrees).to(beNil()); + }); + + it(@"should return nil for location", ^{ + expect(testRequest.locationName).to(beNil()); + }); + + it(@"should return nil for location description", ^{ + expect(testRequest.locationDescription).to(beNil()); + }); + + it(@"should return nil for address lines", ^{ + expect(testRequest.addressLines).to(beNil()); + }); + + it(@"should return nil for phone number", ^{ + expect(testRequest.phoneNumber).to(beNil()); + }); + + it(@"should return nil for image", ^{ + expect(testRequest.locationImage).to(beNil()); + }); + }); + }); + + describe(@"when initialized with a dictionary", ^{ + context(@"when parameters are set correctly", ^{ + beforeEach(^{ + someLongitude = @123.4567; + someLatitude = @65.4321; + someLocation = @"Livio"; + someLocationDescription = @"A great place to work"; + someAddressLines = @[@"3136 Hilton Rd", @"Ferndale, MI", @"48220"]; + somePhoneNumber = @"248-591-0333"; + someImage = [[SDLImage alloc] init]; + NSDictionary *initDict = @{ + NAMES_request: @{ + NAMES_parameters: @{ + NAMES_longitudeDegrees: someLongitude, + NAMES_latitudeDegrees: someLatitude, + NAMES_locationName: someLocation, + NAMES_locationDescription: someLocationDescription, + NAMES_addressLines: someAddressLines, + NAMES_phoneNumber: somePhoneNumber, + NAMES_locationImage: someImage + } + } + }; + + testRequest = [[SDLSendLocation alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]]; + }); + + // Since all the properties are immutable, a copy should be executed as a retain, which means they should be identical + it(@"should get longitude correctly", ^{ + expect(testRequest.longitudeDegrees).to(equal(someLongitude)); + expect(testRequest.longitudeDegrees).to(beIdenticalTo(someLongitude)); + }); + + it(@"should get latitude correctly", ^{ + expect(testRequest.latitudeDegrees).to(equal(someLatitude)); + expect(testRequest.latitudeDegrees).to(beIdenticalTo(someLatitude)); + }); + + it(@"should get location correctly", ^{ + expect(testRequest.locationName).to(equal(someLocation)); + expect(testRequest.locationName).to(beIdenticalTo(someLocation)); + }); + + it(@"should get location description correctly", ^{ + expect(testRequest.locationDescription).to(equal(someLocationDescription)); + expect(testRequest.locationDescription).to(beIdenticalTo(someLocationDescription)); + }); + + it(@"should get address lines correctly", ^{ + expect(testRequest.addressLines).to(equal(someAddressLines)); + expect(testRequest.addressLines).to(beIdenticalTo(someAddressLines)); + }); + + it(@"should get phone number correctly", ^{ + expect(testRequest.phoneNumber).to(equal(somePhoneNumber)); + expect(testRequest.phoneNumber).to(beIdenticalTo(somePhoneNumber)); + }); + + it(@"should get image correctly", ^{ + expect(testRequest.locationImage).to(equal(someImage)); + expect(testRequest.locationImage).to(beIdenticalTo(someImage)); + }); + }); + + context(@"when parameters are not set", ^{ + beforeEach(^{ + NSDictionary *initDict = @{ + NAMES_request: @{ + NAMES_parameters: @{} + } + }; + + testRequest = [[SDLSendLocation alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]]; + }); + + it(@"should return nil for longitude", ^{ + expect(testRequest.longitudeDegrees).to(beNil()); + }); + + it(@"should return nil for latitude", ^{ + expect(testRequest.latitudeDegrees).to(beNil()); + }); + + it(@"should return nil for location", ^{ + expect(testRequest.locationName).to(beNil()); + }); + + it(@"should return nil for location description", ^{ + expect(testRequest.locationDescription).to(beNil()); + }); + + it(@"should return nil for address lines", ^{ + expect(testRequest.addressLines).to(beNil()); + }); + + it(@"should return nil for phone number", ^{ + expect(testRequest.phoneNumber).to(beNil()); + }); + + it(@"should return nil for image", ^{ + expect(testRequest.locationImage).to(beNil()); + }); + }); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetAppIconSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetAppIconSpec.m new file mode 100644 index 000000000..9c24c9e91 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetAppIconSpec.m @@ -0,0 +1,42 @@ +// +// SDLSetAppIconSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSetAppIcon.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSetAppIconSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSetAppIcon* testRequest = [[SDLSetAppIcon alloc] init]; + + testRequest.syncFileName = @"A/File/Name"; + + expect(testRequest.syncFileName).to(equal(@"A/File/Name")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_syncFileName:@"A/File/Name"}, + NAMES_operation_name:NAMES_SetAppIcon}} mutableCopy]; + SDLSetAppIcon* testRequest = [[SDLSetAppIcon alloc] initWithDictionary:dict]; + + expect(testRequest.syncFileName).to(equal(@"A/File/Name")); + }); + + it(@"Should return nil if not set", ^ { + SDLSetAppIcon* testRequest = [[SDLSetAppIcon alloc] init]; + + expect(testRequest.syncFileName).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetDisplayLayoutSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetDisplayLayoutSpec.m new file mode 100644 index 000000000..41e63323a --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetDisplayLayoutSpec.m @@ -0,0 +1,42 @@ +// +// SDLSetDisplayLayoutSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSetDisplayLayout.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSetDisplayLayoutSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSetDisplayLayout* testRequest = [[SDLSetDisplayLayout alloc] init]; + + testRequest.displayLayout = @"wat"; + + expect(testRequest.displayLayout).to(equal(@"wat")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_displayLayout:@"wat"}, + NAMES_operation_name:NAMES_SetDisplayLayout}} mutableCopy]; + SDLSetDisplayLayout* testRequest = [[SDLSetDisplayLayout alloc] initWithDictionary:dict]; + + expect(testRequest.displayLayout).to(equal(@"wat")); + }); + + it(@"Should return nil if not set", ^ { + SDLSetDisplayLayout* testRequest = [[SDLSetDisplayLayout alloc] init]; + + expect(testRequest.displayLayout).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetGlobalPropertiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetGlobalPropertiesSpec.m new file mode 100644 index 000000000..437218896 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetGlobalPropertiesSpec.m @@ -0,0 +1,83 @@ +// +// SDLSetGlobalPropertiesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLImage.h" +#import "SDLKeyboardProperties.h" +#import "SDLNames.h" +#import "SDLSetGlobalProperties.h" +#import "SDLTTSChunk.h" +#import "SDLVrHelpItem.h" + + +QuickSpecBegin(SDLSetGlobalPropertiesSpec) + +SDLTTSChunk* chunk1 = [[SDLTTSChunk alloc] init]; +SDLTTSChunk* chunk2 = [[SDLTTSChunk alloc] init]; +SDLVRHelpItem* help = [[SDLVRHelpItem alloc] init]; +SDLImage* image = [[SDLImage alloc] init]; +SDLKeyboardProperties* keyboard = [[SDLKeyboardProperties alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSetGlobalProperties* testRequest = [[SDLSetGlobalProperties alloc] init]; + + testRequest.helpPrompt = [@[chunk1] mutableCopy]; + testRequest.timeoutPrompt = [@[chunk2] mutableCopy]; + testRequest.vrHelpTitle = @"vr"; + testRequest.vrHelp = [@[help] mutableCopy]; + testRequest.menuTitle = @"TheNewMenu"; + testRequest.menuIcon = image; + testRequest.keyboardProperties = keyboard; + + expect(testRequest.helpPrompt).to(equal([@[chunk1] mutableCopy])); + expect(testRequest.timeoutPrompt).to(equal([@[chunk2] mutableCopy])); + expect(testRequest.vrHelpTitle).to(equal(@"vr")); + expect(testRequest.vrHelp).to(equal([@[help] mutableCopy])); + expect(testRequest.menuTitle).to(equal(@"TheNewMenu")); + expect(testRequest.menuIcon).to(equal(image)); + expect(testRequest.keyboardProperties).to(equal(keyboard)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_helpPrompt:[@[chunk1] mutableCopy], + NAMES_timeoutPrompt:[@[chunk2] mutableCopy], + NAMES_vrHelpTitle:@"vr", + NAMES_vrHelp:[@[help] mutableCopy], + NAMES_menuTitle:@"TheNewMenu", + NAMES_menuIcon:image, + NAMES_keyboardProperties:keyboard}, + NAMES_operation_name:NAMES_SetGlobalProperties}} mutableCopy]; + SDLSetGlobalProperties* testRequest = [[SDLSetGlobalProperties alloc] initWithDictionary:dict]; + + expect(testRequest.helpPrompt).to(equal([@[chunk1] mutableCopy])); + expect(testRequest.timeoutPrompt).to(equal([@[chunk2] mutableCopy])); + expect(testRequest.vrHelpTitle).to(equal(@"vr")); + expect(testRequest.vrHelp).to(equal([@[help] mutableCopy])); + expect(testRequest.menuTitle).to(equal(@"TheNewMenu")); + expect(testRequest.menuIcon).to(equal(image)); + expect(testRequest.keyboardProperties).to(equal(keyboard)); + }); + + it(@"Should return nil if not set", ^ { + SDLSetGlobalProperties* testRequest = [[SDLSetGlobalProperties alloc] init]; + + expect(testRequest.helpPrompt).to(beNil()); + expect(testRequest.timeoutPrompt).to(beNil()); + expect(testRequest.vrHelpTitle).to(beNil()); + expect(testRequest.vrHelp).to(beNil()); + expect(testRequest.menuTitle).to(beNil()); + expect(testRequest.menuIcon).to(beNil()); + expect(testRequest.keyboardProperties).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m new file mode 100644 index 000000000..8d2a9a36e --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m @@ -0,0 +1,58 @@ +// +// SDLSetMediaClockTimerSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLNames.h" +#import "SDLSetMediaClockTimer.h" +#import "SDLStartTime.h" +#import "SDLUpdateMode.h" + + +QuickSpecBegin(SDLSetMediaClockTimerSpec) + +SDLStartTime* time1 = [[SDLStartTime alloc] init]; +SDLStartTime* time2 = [[SDLStartTime alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSetMediaClockTimer* testRequest = [[SDLSetMediaClockTimer alloc] init]; + + testRequest.startTime = time1; + testRequest.endTime = time2; + testRequest.updateMode = [SDLUpdateMode COUNTUP]; + + expect(testRequest.startTime).to(equal(time1)); + expect(testRequest.endTime).to(equal(time2)); + expect(testRequest.updateMode).to(equal([SDLUpdateMode COUNTUP])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_startTime:time1, + NAMES_endTime:time2, + NAMES_updateMode:[SDLUpdateMode COUNTUP]}, + NAMES_operation_name:NAMES_SetMediaClockTimer}} mutableCopy]; + SDLSetMediaClockTimer* testRequest = [[SDLSetMediaClockTimer alloc] initWithDictionary:dict]; + + expect(testRequest.startTime).to(equal(time1)); + expect(testRequest.endTime).to(equal(time2)); + expect(testRequest.updateMode).to(equal([SDLUpdateMode COUNTUP])); + }); + + it(@"Should return nil if not set", ^ { + SDLSetMediaClockTimer* testRequest = [[SDLSetMediaClockTimer alloc] init]; + + expect(testRequest.startTime).to(beNil()); + expect(testRequest.endTime).to(beNil()); + expect(testRequest.updateMode).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowConstantTBTSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowConstantTBTSpec.m new file mode 100644 index 000000000..3af100462 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowConstantTBTSpec.m @@ -0,0 +1,99 @@ +// +// SDLShowConstantTBTSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLImage.h" +#import "SDLNames.h" +#import "SDLShowConstantTBT.h" +#import "SDLSoftButton.h" + + +QuickSpecBegin(SDLShowConstantTBTSpec) + +SDLImage* image1 = [[SDLImage alloc] init]; +SDLImage* image2 = [[SDLImage alloc] init]; +SDLSoftButton* button = [[SDLSoftButton alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLShowConstantTBT* testRequest = [[SDLShowConstantTBT alloc] init]; + + testRequest.navigationText1 = @"nav1"; + testRequest.navigationText2 = @"nav2"; + testRequest.eta = @"4/1/7015"; + testRequest.timeToDestination = @"5000 Years"; + testRequest.totalDistance = @"1 parsec"; + testRequest.turnIcon = image1; + testRequest.nextTurnIcon = image2; + testRequest.distanceToManeuver = @2; + testRequest.distanceToManeuverScale = @4; + testRequest.maneuverComplete = @NO; + testRequest.softButtons = [@[button] mutableCopy]; + + expect(testRequest.navigationText1).to(equal(@"nav1")); + expect(testRequest.navigationText2).to(equal(@"nav2")); + expect(testRequest.eta).to(equal(@"4/1/7015")); + expect(testRequest.timeToDestination).to(equal(@"5000 Years")); + expect(testRequest.totalDistance).to(equal(@"1 parsec")); + expect(testRequest.turnIcon).to(equal(image1)); + expect(testRequest.nextTurnIcon).to(equal(image2)); + expect(testRequest.distanceToManeuver).to(equal(@2)); + expect(testRequest.distanceToManeuverScale).to(equal(@4)); + expect(testRequest.maneuverComplete).to(equal(@NO)); + expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_navigationText1:@"nav1", + NAMES_navigationText2:@"nav2", + NAMES_eta:@"4/1/7015", + NAMES_timeToDestination:@"5000 Years", + NAMES_totalDistance:@"1 parsec", + NAMES_turnIcon:image1, + NAMES_nextTurnIcon:image2, + NAMES_distanceToManeuver:@2, + NAMES_distanceToManeuverScale:@4, + NAMES_maneuverComplete:@NO, + NAMES_softButtons:[@[button] mutableCopy]}, + NAMES_operation_name:NAMES_ShowConstantTBT}} mutableCopy]; + SDLShowConstantTBT* testRequest = [[SDLShowConstantTBT alloc] initWithDictionary:dict]; + + expect(testRequest.navigationText1).to(equal(@"nav1")); + expect(testRequest.navigationText2).to(equal(@"nav2")); + expect(testRequest.eta).to(equal(@"4/1/7015")); + expect(testRequest.timeToDestination).to(equal(@"5000 Years")); + expect(testRequest.totalDistance).to(equal(@"1 parsec")); + expect(testRequest.turnIcon).to(equal(image1)); + expect(testRequest.nextTurnIcon).to(equal(image2)); + expect(testRequest.distanceToManeuver).to(equal(@2)); + expect(testRequest.distanceToManeuverScale).to(equal(@4)); + expect(testRequest.maneuverComplete).to(equal(@NO)); + expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLShowConstantTBT* testRequest = [[SDLShowConstantTBT alloc] init]; + + expect(testRequest.navigationText1).to(beNil()); + expect(testRequest.navigationText2).to(beNil()); + expect(testRequest.eta).to(beNil()); + expect(testRequest.timeToDestination).to(beNil()); + expect(testRequest.totalDistance).to(beNil()); + expect(testRequest.turnIcon).to(beNil()); + expect(testRequest.nextTurnIcon).to(beNil()); + expect(testRequest.distanceToManeuver).to(beNil()); + expect(testRequest.distanceToManeuverScale).to(beNil()); + expect(testRequest.maneuverComplete).to(beNil()); + expect(testRequest.softButtons).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowSpec.m new file mode 100644 index 000000000..3058872e6 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLShowSpec.m @@ -0,0 +1,105 @@ +// +// SDLShowSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLImage.h" +#import "SDLNames.h" +#import "SDLShow.h" +#import "SDLSoftButton.h" +#import "SDLTextAlignment.h" + + +QuickSpecBegin(SDLShowSpec) + +SDLImage* image1 = [[SDLImage alloc] init]; +SDLImage* image2 = [[SDLImage alloc] init]; +SDLSoftButton* button = [[SDLSoftButton alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLShow* testRequest = [[SDLShow alloc] init]; + + testRequest.mainField1 = @"field1"; + testRequest.mainField2 = @"field2"; + testRequest.mainField3 = @"field3"; + testRequest.mainField4 = @"field4"; + testRequest.alignment = [SDLTextAlignment LEFT_ALIGNED]; + testRequest.statusBar = @"status"; + testRequest.mediaClock = @"TheTime"; + testRequest.mediaTrack = @"In The Clear"; + testRequest.graphic = image1; + testRequest.secondaryGraphic = image2; + testRequest.softButtons = [@[button] mutableCopy]; + testRequest.customPresets = [@[@"preset1", @"preset2"] mutableCopy]; + + expect(testRequest.mainField1).to(equal(@"field1")); + expect(testRequest.mainField2).to(equal(@"field2")); + expect(testRequest.mainField3).to(equal(@"field3")); + expect(testRequest.mainField4).to(equal(@"field4")); + expect(testRequest.alignment).to(equal([SDLTextAlignment LEFT_ALIGNED])); + expect(testRequest.statusBar).to(equal(@"status")); + expect(testRequest.mediaClock).to(equal(@"TheTime")); + expect(testRequest.mediaTrack).to(equal(@"In The Clear")); + expect(testRequest.graphic).to(equal(image1)); + expect(testRequest.secondaryGraphic).to(equal(image2)); + expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); + expect(testRequest.customPresets).to(equal([@[@"preset1", @"preset2"] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_mainField1:@"field1", + NAMES_mainField2:@"field2", + NAMES_mainField3:@"field3", + NAMES_mainField4:@"field4", + NAMES_alignment:[SDLTextAlignment LEFT_ALIGNED], + NAMES_statusBar:@"status", + NAMES_mediaClock:@"TheTime", + NAMES_mediaTrack:@"In The Clear", + NAMES_graphic:image1, + NAMES_secondaryGraphic:image2, + NAMES_softButtons:[@[button] mutableCopy], + NAMES_customPresets:[@[@"preset1", @"preset2"] mutableCopy]}, + NAMES_operation_name:NAMES_Show}} mutableCopy]; + SDLShow* testRequest = [[SDLShow alloc] initWithDictionary:dict]; + + expect(testRequest.mainField1).to(equal(@"field1")); + expect(testRequest.mainField2).to(equal(@"field2")); + expect(testRequest.mainField3).to(equal(@"field3")); + expect(testRequest.mainField4).to(equal(@"field4")); + expect(testRequest.alignment).to(equal([SDLTextAlignment LEFT_ALIGNED])); + expect(testRequest.statusBar).to(equal(@"status")); + expect(testRequest.mediaClock).to(equal(@"TheTime")); + expect(testRequest.mediaTrack).to(equal(@"In The Clear")); + expect(testRequest.graphic).to(equal(image1)); + expect(testRequest.secondaryGraphic).to(equal(image2)); + expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); + expect(testRequest.customPresets).to(equal([@[@"preset1", @"preset2"] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLShow* testRequest = [[SDLShow alloc] init]; + + expect(testRequest.mainField1).to(beNil()); + expect(testRequest.mainField2).to(beNil()); + expect(testRequest.mainField3).to(beNil()); + expect(testRequest.mainField4).to(beNil()); + expect(testRequest.alignment).to(beNil()); + expect(testRequest.statusBar).to(beNil()); + expect(testRequest.mediaClock).to(beNil()); + expect(testRequest.mediaTrack).to(beNil()); + expect(testRequest.graphic).to(beNil()); + expect(testRequest.secondaryGraphic).to(beNil()); + expect(testRequest.softButtons).to(beNil()); + expect(testRequest.customPresets).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSliderSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSliderSpec.m new file mode 100644 index 000000000..7455bcf51 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSliderSpec.m @@ -0,0 +1,62 @@ +// +// SDLSliderSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSlider.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSliderSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSlider* testRequest = [[SDLSlider alloc] init]; + + testRequest.numTicks = @2; + testRequest.position = @1; + testRequest.sliderHeader = @"Head"; + testRequest.sliderFooter = [@[@"LeftFoot", @"RightFoot"] mutableCopy]; + testRequest.timeout = @2000; + + expect(testRequest.numTicks).to(equal(@2)); + expect(testRequest.position).to(equal(@1)); + expect(testRequest.sliderHeader).to(equal(@"Head")); + expect(testRequest.sliderFooter).to(equal([@[@"LeftFoot", @"RightFoot"] mutableCopy])); + expect(testRequest.timeout).to(equal(@2000)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_numTicks:@2, + NAMES_position:@1, + NAMES_sliderHeader:@"Head", + NAMES_sliderFooter:[@[@"LeftFoot", @"RightFoot"] mutableCopy], + NAMES_timeout:@2000}, + NAMES_operation_name:NAMES_Slider}} mutableCopy]; + SDLSlider* testRequest = [[SDLSlider alloc] initWithDictionary:dict]; + + expect(testRequest.numTicks).to(equal(@2)); + expect(testRequest.position).to(equal(@1)); + expect(testRequest.sliderHeader).to(equal(@"Head")); + expect(testRequest.sliderFooter).to(equal([@[@"LeftFoot", @"RightFoot"] mutableCopy])); + expect(testRequest.timeout).to(equal(@2000)); + }); + + it(@"Should return nil if not set", ^ { + SDLSlider* testRequest = [[SDLSlider alloc] init]; + + expect(testRequest.numTicks).to(beNil()); + expect(testRequest.position).to(beNil()); + expect(testRequest.sliderHeader).to(beNil()); + expect(testRequest.sliderFooter).to(beNil()); + expect(testRequest.timeout).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSpeakSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSpeakSpec.m new file mode 100644 index 000000000..dd6b6a400 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSpeakSpec.m @@ -0,0 +1,45 @@ +// +// SDLSpeakSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSpeak.h" +#import "SDLTTSChunk.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSpeakSpec) + +SDLTTSChunk* chunk = [[SDLTTSChunk alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSpeak* testRequest = [[SDLSpeak alloc] init]; + + testRequest.ttsChunks = [@[chunk] mutableCopy]; + + expect(testRequest.ttsChunks).to(equal([@[chunk] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_ttsChunks:[@[chunk] mutableCopy]}, + NAMES_operation_name:NAMES_Speak}} mutableCopy]; + SDLSpeak* testRequest = [[SDLSpeak alloc] initWithDictionary:dict]; + + expect(testRequest.ttsChunks).to(equal([@[chunk] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLSpeak* testRequest = [[SDLSpeak alloc] init]; + + expect(testRequest.ttsChunks).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeButtonSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeButtonSpec.m new file mode 100644 index 000000000..d51ae33a6 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeButtonSpec.m @@ -0,0 +1,44 @@ +// +// SDLSubscribeButtonSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLButtonName.h" +#import "SDLNames.h" +#import "SDLSubscribeButton.h" + + +QuickSpecBegin(SDLSubscribeButtonSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSubscribeButton* testRequest = [[SDLSubscribeButton alloc] init]; + + testRequest.buttonName = [SDLButtonName PRESET_5]; + + expect(testRequest.buttonName).to(equal([SDLButtonName PRESET_5])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_buttonName:[SDLButtonName PRESET_5]}, + NAMES_operation_name:NAMES_SubscribeButton}} mutableCopy]; + SDLSubscribeButton* testRequest = [[SDLSubscribeButton alloc] initWithDictionary:dict]; + + expect(testRequest.buttonName).to(equal([SDLButtonName PRESET_5])); + }); + + it(@"Should return nil if not set", ^ { + SDLSubscribeButton* testRequest = [[SDLSubscribeButton alloc] init]; + + expect(testRequest.buttonName).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m new file mode 100644 index 000000000..c35d45db3 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m @@ -0,0 +1,157 @@ +// +// SDLSubscribeVehicleDataSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSubscribeVehicleData.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSubscribeVehicleDataSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSubscribeVehicleData* testRequest = [[SDLSubscribeVehicleData alloc] init]; + + testRequest.gps = @YES; + testRequest.speed = @NO; + testRequest.rpm = @YES; + testRequest.fuelLevel = @NO; + testRequest.fuelLevel_State = @YES; + testRequest.instantFuelConsumption = @NO; + testRequest.externalTemperature = @YES; + testRequest.prndl = @YES; + testRequest.tirePressure = @NO; + testRequest.odometer = @YES; + testRequest.beltStatus = @NO; + testRequest.bodyInformation = @YES; + testRequest.deviceStatus = @NO; + testRequest.driverBraking = @YES; + testRequest.wiperStatus = @NO; + testRequest.headLampStatus = @YES; + testRequest.engineTorque = @NO; + testRequest.accPedalPosition = @YES; + testRequest.steeringWheelAngle = @NO; + testRequest.eCallInfo = @YES; + testRequest.airbagStatus = @NO; + testRequest.emergencyEvent = @YES; + testRequest.clusterModeStatus = @NO; + testRequest.myKey = @YES; + + expect(testRequest.gps).to(equal(@YES)); + expect(testRequest.speed).to(equal(@NO)); + expect(testRequest.rpm).to(equal(@YES)); + expect(testRequest.fuelLevel).to(equal(@NO)); + expect(testRequest.fuelLevel_State).to(equal(@YES)); + expect(testRequest.instantFuelConsumption).to(equal(@NO)); + expect(testRequest.externalTemperature).to(equal(@YES)); + expect(testRequest.prndl).to(equal(@YES)); + expect(testRequest.tirePressure).to(equal(@NO)); + expect(testRequest.odometer).to(equal(@YES)); + expect(testRequest.beltStatus).to(equal(@NO)); + expect(testRequest.bodyInformation).to(equal(@YES)); + expect(testRequest.deviceStatus).to(equal(@NO)); + expect(testRequest.driverBraking).to(equal(@YES)); + expect(testRequest.wiperStatus).to(equal(@NO)); + expect(testRequest.headLampStatus).to(equal(@YES)); + expect(testRequest.engineTorque).to(equal(@NO)); + expect(testRequest.accPedalPosition).to(equal(@YES)); + expect(testRequest.steeringWheelAngle).to(equal(@NO)); + expect(testRequest.eCallInfo).to(equal(@YES)); + expect(testRequest.airbagStatus).to(equal(@NO)); + expect(testRequest.emergencyEvent).to(equal(@YES)); + expect(testRequest.clusterModeStatus).to(equal(@NO)); + expect(testRequest.myKey).to(equal(@YES)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_gps:@YES, + NAMES_speed:@NO, + NAMES_rpm:@YES, + NAMES_fuelLevel:@NO, + NAMES_fuelLevel_State:@YES, + NAMES_instantFuelConsumption:@NO, + NAMES_externalTemperature:@YES, + NAMES_prndl:@YES, + NAMES_tirePressure:@NO, + NAMES_odometer:@YES, + NAMES_beltStatus:@NO, + NAMES_bodyInformation:@YES, + NAMES_deviceStatus:@NO, + NAMES_driverBraking:@YES, + NAMES_wiperStatus:@NO, + NAMES_headLampStatus:@YES, + NAMES_engineTorque:@NO, + NAMES_accPedalPosition:@YES, + NAMES_steeringWheelAngle:@NO, + NAMES_eCallInfo:@YES, + NAMES_airbagStatus:@NO, + NAMES_emergencyEvent:@YES, + NAMES_clusterModeStatus:@NO, + NAMES_myKey:@YES}, + NAMES_operation_name:NAMES_SubscribeVehicleData}} mutableCopy]; + SDLSubscribeVehicleData* testRequest = [[SDLSubscribeVehicleData alloc] initWithDictionary:dict]; + + expect(testRequest.gps).to(equal(@YES)); + expect(testRequest.speed).to(equal(@NO)); + expect(testRequest.rpm).to(equal(@YES)); + expect(testRequest.fuelLevel).to(equal(@NO)); + expect(testRequest.fuelLevel_State).to(equal(@YES)); + expect(testRequest.instantFuelConsumption).to(equal(@NO)); + expect(testRequest.externalTemperature).to(equal(@YES)); + expect(testRequest.prndl).to(equal(@YES)); + expect(testRequest.tirePressure).to(equal(@NO)); + expect(testRequest.odometer).to(equal(@YES)); + expect(testRequest.beltStatus).to(equal(@NO)); + expect(testRequest.bodyInformation).to(equal(@YES)); + expect(testRequest.deviceStatus).to(equal(@NO)); + expect(testRequest.driverBraking).to(equal(@YES)); + expect(testRequest.wiperStatus).to(equal(@NO)); + expect(testRequest.headLampStatus).to(equal(@YES)); + expect(testRequest.engineTorque).to(equal(@NO)); + expect(testRequest.accPedalPosition).to(equal(@YES)); + expect(testRequest.steeringWheelAngle).to(equal(@NO)); + expect(testRequest.eCallInfo).to(equal(@YES)); + expect(testRequest.airbagStatus).to(equal(@NO)); + expect(testRequest.emergencyEvent).to(equal(@YES)); + expect(testRequest.clusterModeStatus).to(equal(@NO)); + expect(testRequest.myKey).to(equal(@YES)); + }); + + it(@"Should return nil if not set", ^ { + SDLSubscribeVehicleData* testRequest = [[SDLSubscribeVehicleData alloc] init]; + + expect(testRequest.gps).to(beNil()); + expect(testRequest.speed).to(beNil()); + expect(testRequest.rpm).to(beNil()); + expect(testRequest.fuelLevel).to(beNil()); + expect(testRequest.fuelLevel_State).to(beNil()); + expect(testRequest.instantFuelConsumption).to(beNil()); + expect(testRequest.externalTemperature).to(beNil()); + expect(testRequest.prndl).to(beNil()); + expect(testRequest.tirePressure).to(beNil()); + expect(testRequest.odometer).to(beNil()); + expect(testRequest.beltStatus).to(beNil()); + expect(testRequest.bodyInformation).to(beNil()); + expect(testRequest.deviceStatus).to(beNil()); + expect(testRequest.driverBraking).to(beNil()); + expect(testRequest.wiperStatus).to(beNil()); + expect(testRequest.headLampStatus).to(beNil()); + expect(testRequest.engineTorque).to(beNil()); + expect(testRequest.accPedalPosition).to(beNil()); + expect(testRequest.steeringWheelAngle).to(beNil()); + expect(testRequest.eCallInfo).to(beNil()); + expect(testRequest.airbagStatus).to(beNil()); + expect(testRequest.emergencyEvent).to(beNil()); + expect(testRequest.clusterModeStatus).to(beNil()); + expect(testRequest.myKey).to(beNil()); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSyncPDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSyncPDataSpec.m new file mode 100644 index 000000000..300583447 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSyncPDataSpec.m @@ -0,0 +1,16 @@ +// +// SDLSyncPDataSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSyncPData.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSyncPDataSpec) + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSystemRequestSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSystemRequestSpec.m new file mode 100644 index 000000000..ade3fb762 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSystemRequestSpec.m @@ -0,0 +1,48 @@ +// +// SDLSystemRequestSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSystemRequest.h" +#import "SDLRequestType.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSystemRequestSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSystemRequest* testRequest = [[SDLSystemRequest alloc] init]; + + testRequest.requestType = [SDLRequestType AUTH_REQUEST]; + testRequest.fileName = @"AnotherFile"; + + expect(testRequest.requestType).to(equal([SDLRequestType AUTH_REQUEST])); + expect(testRequest.fileName).to(equal(@"AnotherFile")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_requestType:[SDLRequestType AUTH_REQUEST], + NAMES_fileName:@"AnotherFile"}, + NAMES_operation_name:NAMES_SystemRequest}} mutableCopy]; + SDLSystemRequest* testRequest = [[SDLSystemRequest alloc] initWithDictionary:dict]; + + expect(testRequest.requestType).to(equal([SDLRequestType AUTH_REQUEST])); + expect(testRequest.fileName).to(equal(@"AnotherFile")); + }); + + it(@"Should return nil if not set", ^ { + SDLSystemRequest* testRequest = [[SDLSystemRequest alloc] init]; + + expect(testRequest.requestType).to(beNil()); + expect(testRequest.fileName).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnregisterAppInterfaceSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnregisterAppInterfaceSpec.m new file mode 100644 index 000000000..746c07d2b --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnregisterAppInterfaceSpec.m @@ -0,0 +1,16 @@ +// +// SDLUnregisterAppInterfaceSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLUnregisterAppInterface.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLUnregisterAppInterfaceSpec) + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeButtonSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeButtonSpec.m new file mode 100644 index 000000000..4c0bfc3f1 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeButtonSpec.m @@ -0,0 +1,44 @@ +// +// SDLUnsubscribeButtonSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLButtonName.h" +#import "SDLNames.h" +#import "SDLUnsubscribeButton.h" + + +QuickSpecBegin(SDLUnsubscribeButtonSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLUnsubscribeButton* testRequest = [[SDLUnsubscribeButton alloc] init]; + + testRequest.buttonName = [SDLButtonName PRESET_0]; + + expect(testRequest.buttonName).to(equal([SDLButtonName PRESET_0])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_buttonName:[SDLButtonName PRESET_0]}, + NAMES_operation_name:NAMES_UnsubscribeButton}} mutableCopy]; + SDLUnsubscribeButton* testRequest = [[SDLUnsubscribeButton alloc] initWithDictionary:dict]; + + expect(testRequest.buttonName).to(equal([SDLButtonName PRESET_0])); + }); + + it(@"Should return nil if not set", ^ { + SDLUnsubscribeButton* testRequest = [[SDLUnsubscribeButton alloc] init]; + + expect(testRequest.buttonName).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m new file mode 100644 index 000000000..1bb2cb125 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m @@ -0,0 +1,157 @@ +// +// SDLUnsubscribeVehicleDataSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLUnsubscribeVehicleData.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLUnsubscribeVehicleDataSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLUnsubscribeVehicleData* testRequest = [[SDLUnsubscribeVehicleData alloc] init]; + + testRequest.gps = @YES; + testRequest.speed = @YES; + testRequest.rpm = @YES; + testRequest.fuelLevel = @YES; + testRequest.fuelLevel_State = @YES; + testRequest.instantFuelConsumption = @YES; + testRequest.externalTemperature = @YES; + testRequest.prndl = @YES; + testRequest.tirePressure = @YES; + testRequest.odometer = @YES; + testRequest.beltStatus = @YES; + testRequest.bodyInformation = @YES; + testRequest.deviceStatus = @YES; + testRequest.driverBraking = @YES; + testRequest.wiperStatus = @YES; + testRequest.headLampStatus = @YES; + testRequest.engineTorque = @YES; + testRequest.accPedalPosition = @YES; + testRequest.steeringWheelAngle = @YES; + testRequest.eCallInfo = @YES; + testRequest.airbagStatus = @YES; + testRequest.emergencyEvent = @YES; + testRequest.clusterModeStatus = @YES; + testRequest.myKey = @YES; + + expect(testRequest.gps).to(equal(@YES)); + expect(testRequest.speed).to(equal(@YES)); + expect(testRequest.rpm).to(equal(@YES)); + expect(testRequest.fuelLevel).to(equal(@YES)); + expect(testRequest.fuelLevel_State).to(equal(@YES)); + expect(testRequest.instantFuelConsumption).to(equal(@YES)); + expect(testRequest.externalTemperature).to(equal(@YES)); + expect(testRequest.prndl).to(equal(@YES)); + expect(testRequest.tirePressure).to(equal(@YES)); + expect(testRequest.odometer).to(equal(@YES)); + expect(testRequest.beltStatus).to(equal(@YES)); + expect(testRequest.bodyInformation).to(equal(@YES)); + expect(testRequest.deviceStatus).to(equal(@YES)); + expect(testRequest.driverBraking).to(equal(@YES)); + expect(testRequest.wiperStatus).to(equal(@YES)); + expect(testRequest.headLampStatus).to(equal(@YES)); + expect(testRequest.engineTorque).to(equal(@YES)); + expect(testRequest.accPedalPosition).to(equal(@YES)); + expect(testRequest.steeringWheelAngle).to(equal(@YES)); + expect(testRequest.eCallInfo).to(equal(@YES)); + expect(testRequest.airbagStatus).to(equal(@YES)); + expect(testRequest.emergencyEvent).to(equal(@YES)); + expect(testRequest.clusterModeStatus).to(equal(@YES)); + expect(testRequest.myKey).to(equal(@YES)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_gps:@YES, + NAMES_speed:@YES, + NAMES_rpm:@YES, + NAMES_fuelLevel:@YES, + NAMES_fuelLevel_State:@YES, + NAMES_instantFuelConsumption:@YES, + NAMES_externalTemperature:@YES, + NAMES_prndl:@YES, + NAMES_tirePressure:@YES, + NAMES_odometer:@YES, + NAMES_beltStatus:@YES, + NAMES_bodyInformation:@YES, + NAMES_deviceStatus:@YES, + NAMES_driverBraking:@YES, + NAMES_wiperStatus:@YES, + NAMES_headLampStatus:@YES, + NAMES_engineTorque:@YES, + NAMES_accPedalPosition:@YES, + NAMES_steeringWheelAngle:@YES, + NAMES_eCallInfo:@YES, + NAMES_airbagStatus:@YES, + NAMES_emergencyEvent:@YES, + NAMES_clusterModeStatus:@YES, + NAMES_myKey:@YES}, + NAMES_operation_name:NAMES_UnsubscribeVehicleData}} mutableCopy]; + SDLUnsubscribeVehicleData* testRequest = [[SDLUnsubscribeVehicleData alloc] initWithDictionary:dict]; + + expect(testRequest.gps).to(equal(@YES)); + expect(testRequest.speed).to(equal(@YES)); + expect(testRequest.rpm).to(equal(@YES)); + expect(testRequest.fuelLevel).to(equal(@YES)); + expect(testRequest.fuelLevel_State).to(equal(@YES)); + expect(testRequest.instantFuelConsumption).to(equal(@YES)); + expect(testRequest.externalTemperature).to(equal(@YES)); + expect(testRequest.prndl).to(equal(@YES)); + expect(testRequest.tirePressure).to(equal(@YES)); + expect(testRequest.odometer).to(equal(@YES)); + expect(testRequest.beltStatus).to(equal(@YES)); + expect(testRequest.bodyInformation).to(equal(@YES)); + expect(testRequest.deviceStatus).to(equal(@YES)); + expect(testRequest.driverBraking).to(equal(@YES)); + expect(testRequest.wiperStatus).to(equal(@YES)); + expect(testRequest.headLampStatus).to(equal(@YES)); + expect(testRequest.engineTorque).to(equal(@YES)); + expect(testRequest.accPedalPosition).to(equal(@YES)); + expect(testRequest.steeringWheelAngle).to(equal(@YES)); + expect(testRequest.eCallInfo).to(equal(@YES)); + expect(testRequest.airbagStatus).to(equal(@YES)); + expect(testRequest.emergencyEvent).to(equal(@YES)); + expect(testRequest.clusterModeStatus).to(equal(@YES)); + expect(testRequest.myKey).to(equal(@YES)); + }); + + it(@"Should return nil if not set", ^ { + SDLUnsubscribeVehicleData* testRequest = [[SDLUnsubscribeVehicleData alloc] init]; + + expect(testRequest.gps).to(beNil()); + expect(testRequest.speed).to(beNil()); + expect(testRequest.rpm).to(beNil()); + expect(testRequest.fuelLevel).to(beNil()); + expect(testRequest.fuelLevel_State).to(beNil()); + expect(testRequest.instantFuelConsumption).to(beNil()); + expect(testRequest.externalTemperature).to(beNil()); + expect(testRequest.prndl).to(beNil()); + expect(testRequest.tirePressure).to(beNil()); + expect(testRequest.odometer).to(beNil()); + expect(testRequest.beltStatus).to(beNil()); + expect(testRequest.bodyInformation).to(beNil()); + expect(testRequest.deviceStatus).to(beNil()); + expect(testRequest.driverBraking).to(beNil()); + expect(testRequest.wiperStatus).to(beNil()); + expect(testRequest.headLampStatus).to(beNil()); + expect(testRequest.engineTorque).to(beNil()); + expect(testRequest.accPedalPosition).to(beNil()); + expect(testRequest.steeringWheelAngle).to(beNil()); + expect(testRequest.eCallInfo).to(beNil()); + expect(testRequest.airbagStatus).to(beNil()); + expect(testRequest.emergencyEvent).to(beNil()); + expect(testRequest.clusterModeStatus).to(beNil()); + expect(testRequest.myKey).to(beNil()); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUpdateTurnListSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUpdateTurnListSpec.m new file mode 100644 index 000000000..ae1d55823 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUpdateTurnListSpec.m @@ -0,0 +1,52 @@ +// +// SDLUpdateTurnListSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLUpdateTurnList.h" +#import "SDLTurn.h" +#import "SDLSoftButton.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLUpdateTurnListSpec) + +SDLTurn* turn = [[SDLTurn alloc] init]; +SDLSoftButton* button = [[SDLSoftButton alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLUpdateTurnList* testRequest = [[SDLUpdateTurnList alloc] init]; + + testRequest.turnList = [@[turn] mutableCopy]; + testRequest.softButtons = [@[button] mutableCopy]; + + expect(testRequest.turnList).to(equal([@[turn] mutableCopy])); + expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_turnList:[@[turn] mutableCopy], + NAMES_softButtons:[@[button] mutableCopy]}, + NAMES_operation_name:NAMES_UpdateTurnList}} mutableCopy]; + SDLUpdateTurnList* testRequest = [[SDLUpdateTurnList alloc] initWithDictionary:dict]; + + expect(testRequest.turnList).to(equal([@[turn] mutableCopy])); + expect(testRequest.softButtons).to(equal([@[button] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLUpdateTurnList* testRequest = [[SDLUpdateTurnList alloc] init]; + + expect(testRequest.turnList).to(beNil()); + expect(testRequest.softButtons).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddCommandResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddCommandResponseSpec.m new file mode 100644 index 000000000..ff1f36682 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddCommandResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLAddCommandResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAddCommandResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLAddCommandResponseSpec) + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddSubMenuResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddSubMenuResponseSpec.m new file mode 100644 index 000000000..a351d0ee2 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddSubMenuResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLAddSubMenuResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAddSubMenuResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLAddSubMenuResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertManeuverResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertManeuverResponseSpec.m new file mode 100644 index 000000000..5b4860134 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertManeuverResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLAlertManeuverResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAlertManeuverResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLAlertManeuverResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertResponseSpec.m new file mode 100644 index 000000000..e29e23ed3 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLAlertResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAlertResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLAlertResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLChangeRegistrationResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLChangeRegistrationResponseSpec.m new file mode 100644 index 000000000..c6e0b27d9 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLChangeRegistrationResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLChangeRegistrationResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLChangeRegistrationResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLChangeRegistrationResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLCreateInteractionChoiceSetResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLCreateInteractionChoiceSetResponseSpec.m new file mode 100644 index 000000000..3b3d27e90 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLCreateInteractionChoiceSetResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLCreateInteractionChoiceSetResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLCreateInteractionChoiceSetResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLCreateInteractionChoiceSetResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteCommandResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteCommandResponseSpec.m new file mode 100644 index 000000000..013702513 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteCommandResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLDeleteCommandResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDeleteCommandResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLDeleteCommandResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteFileResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteFileResponseSpec.m new file mode 100644 index 000000000..64e8522c9 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteFileResponseSpec.m @@ -0,0 +1,42 @@ +// +// SDLDeleteFileResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDeleteFileResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLDeleteFileResponseSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLDeleteFileResponse* testResponse = [[SDLDeleteFileResponse alloc] init]; + + testResponse.spaceAvailable = @0; + + expect(testResponse.spaceAvailable).to(equal(@0)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_response: + @{NAMES_parameters: + @{NAMES_spaceAvailable:@0}, + NAMES_operation_name:NAMES_DeleteFile}} mutableCopy]; + SDLDeleteFileResponse* testResponse = [[SDLDeleteFileResponse alloc] initWithDictionary:dict]; + + expect(testResponse.spaceAvailable).to(equal(@0)); + }); + + it(@"Should return nil if not set", ^ { + SDLDeleteFileResponse* testResponse = [[SDLDeleteFileResponse alloc] init]; + + expect(testResponse.spaceAvailable).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteInteractionChoiceSetResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteInteractionChoiceSetResponseSpec.m new file mode 100644 index 000000000..4f3f0c4c1 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteInteractionChoiceSetResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLDeleteInteractionChoiceSetResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDeleteInteractionChoiceSetResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLDeleteInteractionChoiceSetResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteSubMenuResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteSubMenuResponseSpec.m new file mode 100644 index 000000000..c17b91d1c --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteSubMenuResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLDeleteSubMenuResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDeleteSubMenuResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLDeleteSubMenuResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDiagnosticMessageResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDiagnosticMessageResponseSpec.m new file mode 100644 index 000000000..7507bbe5a --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDiagnosticMessageResponseSpec.m @@ -0,0 +1,42 @@ +// +// SDLDiagnosticMessageResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDiagnosticMessageResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLDiagnosticMessageResponseSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLDiagnosticMessageResponse* testResponse = [[SDLDiagnosticMessageResponse alloc] init]; + + testResponse.messageDataResult = [@[@3, @9, @27, @81] mutableCopy]; + + expect(testResponse.messageDataResult).to(equal([@[@3, @9, @27, @81] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_response: + @{NAMES_parameters: + @{NAMES_messageDataResult:[@[@3, @9, @27, @81] mutableCopy]}, + NAMES_operation_name:NAMES_DiagnosticMessage}} mutableCopy]; + SDLDiagnosticMessageResponse* testResponse = [[SDLDiagnosticMessageResponse alloc] initWithDictionary:dict]; + + expect(testResponse.messageDataResult).to(equal([@[@3, @9, @27, @81] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLDiagnosticMessageResponse* testResponse = [[SDLDiagnosticMessageResponse alloc] init]; + + expect(testResponse.messageDataResult).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDialNumberResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDialNumberResponseSpec.m new file mode 100644 index 000000000..2adf33aeb --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDialNumberResponseSpec.m @@ -0,0 +1,10 @@ +// +// SDLDialNumberResponseSpec.m +// SmartDeviceLink-iOS + +#import +#import + +QuickSpecBegin(SDLDialNumberResponseSpec) + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEncodedSyncPDataResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEncodedSyncPDataResponseSpec.m new file mode 100644 index 000000000..4324f0bb8 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEncodedSyncPDataResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLEncodedSyncPDataResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLEncodedSyncPDataResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLEncodedSyncPDataResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEndAudioPassThruResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEndAudioPassThruResponseSpec.m new file mode 100644 index 000000000..5fcc7d6d8 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEndAudioPassThruResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLEndAudioPassThruResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLEndAudioPassThruResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLEndAudioPassThruResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGenericResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGenericResponseSpec.m new file mode 100644 index 000000000..227aea92d --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGenericResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLGenericResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLGenericResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLGenericResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetDTCsResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetDTCsResponseSpec.m new file mode 100644 index 000000000..150f9bd73 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetDTCsResponseSpec.m @@ -0,0 +1,47 @@ +// +// SDLGetDTCsResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLGetDTCsResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLGetDTCsResponseSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLGetDTCsResponse* testResponse = [[SDLGetDTCsResponse alloc] init]; + + testResponse.ecuHeader = @404; + testResponse.dtc = [@[@"FFFF", @"FFFE", @"FFFD"] mutableCopy]; + + expect(testResponse.ecuHeader).to(equal(@404)); + expect(testResponse.dtc).to(equal([@[@"FFFF", @"FFFE", @"FFFD"] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_response: + @{NAMES_parameters: + @{NAMES_ecuHeader:@404, + NAMES_dtc:[@[@"FFFF", @"FFFE", @"FFFD"] mutableCopy]}, + NAMES_operation_name:NAMES_GetDTCs}} mutableCopy]; + SDLGetDTCsResponse* testResponse = [[SDLGetDTCsResponse alloc] initWithDictionary:dict]; + + expect(testResponse.ecuHeader).to(equal(@404)); + expect(testResponse.dtc).to(equal([@[@"FFFF", @"FFFE", @"FFFD"] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLGetDTCsResponse* testResponse = [[SDLGetDTCsResponse alloc] init]; + + expect(testResponse.ecuHeader).to(beNil()); + expect(testResponse.dtc).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m new file mode 100644 index 000000000..d70e8f12b --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m @@ -0,0 +1,175 @@ +// +// SDLGetVehicleDataResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SmartDeviceLink.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLGetVehicleDataResponseSpec) + +SDLGPSData* gps = [[SDLGPSData alloc] init]; +SDLTireStatus* tires = [[SDLTireStatus alloc] init]; +SDLBeltStatus* belt = [[SDLBeltStatus alloc] init]; +SDLBodyInformation* body = [[SDLBodyInformation alloc] init]; +SDLDeviceStatus* device = [[SDLDeviceStatus alloc] init]; +SDLHeadLampStatus* headLamp = [[SDLHeadLampStatus alloc] init]; +SDLECallInfo* eCall = [[SDLECallInfo alloc] init]; +SDLAirbagStatus* airbag = [[SDLAirbagStatus alloc] init]; +SDLEmergencyEvent* event = [[SDLEmergencyEvent alloc] init]; +SDLClusterModeStatus* clusterMode = [[SDLClusterModeStatus alloc] init]; +SDLMyKey* myKey = [[SDLMyKey alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLGetVehicleDataResponse* testResponse = [[SDLGetVehicleDataResponse alloc] init]; + + testResponse.gps = gps; + testResponse.speed = @100; + testResponse.rpm = @3; + testResponse.fuelLevel = @99.9999; + testResponse.fuelLevel_State = [SDLComponentVolumeStatus FAULT]; + testResponse.instantFuelConsumption = @40.7; + testResponse.externalTemperature = @0; + testResponse.vin = @"6574839201"; + testResponse.prndl = [SDLPRNDL PARK]; + testResponse.tirePressure = tires; + testResponse.odometer = @70000; + testResponse.beltStatus = belt; + testResponse.bodyInformation = body; + testResponse.deviceStatus = device; + testResponse.driverBraking = [SDLVehicleDataEventStatus NO_EVENT]; + testResponse.wiperStatus = [SDLWiperStatus AUTO_HIGH]; + testResponse.headLampStatus = headLamp; + testResponse.engineTorque = @630.4; + testResponse.accPedalPosition = @0; + testResponse.steeringWheelAngle = @-1500; + testResponse.eCallInfo = eCall; + testResponse.airbagStatus = airbag; + testResponse.emergencyEvent = event; + testResponse.clusterModeStatus = clusterMode; + testResponse.myKey = myKey; + + expect(testResponse.gps).to(equal(gps)); + expect(testResponse.speed).to(equal(@100)); + expect(testResponse.rpm).to(equal(@3)); + expect(testResponse.fuelLevel).to(equal(@99.9999)); + expect(testResponse.fuelLevel_State).to(equal([SDLComponentVolumeStatus FAULT])); + expect(testResponse.instantFuelConsumption).to(equal(@40.7)); + expect(testResponse.externalTemperature).to(equal(@0)); + expect(testResponse.vin).to(equal(@"6574839201")); + expect(testResponse.prndl).to(equal([SDLPRNDL PARK])); + expect(testResponse.tirePressure).to(equal(tires)); + expect(testResponse.odometer).to(equal(@70000)); + expect(testResponse.beltStatus).to(equal(belt)); + expect(testResponse.bodyInformation).to(equal(body)); + expect(testResponse.deviceStatus).to(equal(device)); + expect(testResponse.driverBraking).to(equal([SDLVehicleDataEventStatus NO_EVENT])); + expect(testResponse.wiperStatus).to(equal([SDLWiperStatus AUTO_HIGH])); + expect(testResponse.headLampStatus).to(equal(headLamp)); + expect(testResponse.engineTorque).to(equal(@630.4)); + expect(testResponse.accPedalPosition).to(equal(@0)); + expect(testResponse.steeringWheelAngle).to(equal(@-1500)); + expect(testResponse.eCallInfo).to(equal(eCall)); + expect(testResponse.airbagStatus).to(equal(airbag)); + expect(testResponse.emergencyEvent).to(equal(event)); + expect(testResponse.clusterModeStatus).to(equal(clusterMode)); + expect(testResponse.myKey).to(equal(myKey)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_notification: + @{NAMES_parameters: + @{NAMES_gps:gps, + NAMES_speed:@100, + NAMES_rpm:@3, + NAMES_fuelLevel:@99.9999, + NAMES_fuelLevel_State:[SDLComponentVolumeStatus FAULT], + NAMES_instantFuelConsumption:@40.7, + NAMES_externalTemperature:@0, + NAMES_vin:@"6574839201", + NAMES_prndl:[SDLPRNDL PARK], + NAMES_tirePressure:tires, + NAMES_odometer:@70000, + NAMES_beltStatus:belt, + NAMES_bodyInformation:body, + NAMES_deviceStatus:device, + NAMES_driverBraking:[SDLVehicleDataEventStatus NO_EVENT], + NAMES_wiperStatus:[SDLWiperStatus AUTO_HIGH], + NAMES_headLampStatus:headLamp, + NAMES_engineTorque:@630.4, + NAMES_accPedalPosition:@0, + NAMES_steeringWheelAngle:@-1500, + NAMES_eCallInfo:eCall, + NAMES_airbagStatus:airbag, + NAMES_emergencyEvent:event, + NAMES_clusterModeStatus:clusterMode, + NAMES_myKey:myKey}, + NAMES_operation_name:NAMES_GetVehicleData}} mutableCopy]; + SDLGetVehicleDataResponse* testResponse = [[SDLGetVehicleDataResponse alloc] initWithDictionary:dict]; + + expect(testResponse.gps).to(equal(gps)); + expect(testResponse.speed).to(equal(@100)); + expect(testResponse.rpm).to(equal(@3)); + expect(testResponse.fuelLevel).to(equal(@99.9999)); + expect(testResponse.fuelLevel_State).to(equal([SDLComponentVolumeStatus FAULT])); + expect(testResponse.instantFuelConsumption).to(equal(@40.7)); + expect(testResponse.externalTemperature).to(equal(@0)); + expect(testResponse.vin).to(equal(@"6574839201")); + expect(testResponse.prndl).to(equal([SDLPRNDL PARK])); + expect(testResponse.tirePressure).to(equal(tires)); + expect(testResponse.odometer).to(equal(@70000)); + expect(testResponse.beltStatus).to(equal(belt)); + expect(testResponse.bodyInformation).to(equal(body)); + expect(testResponse.deviceStatus).to(equal(device)); + expect(testResponse.driverBraking).to(equal([SDLVehicleDataEventStatus NO_EVENT])); + expect(testResponse.wiperStatus).to(equal([SDLWiperStatus AUTO_HIGH])); + expect(testResponse.headLampStatus).to(equal(headLamp)); + expect(testResponse.engineTorque).to(equal(@630.4)); + expect(testResponse.accPedalPosition).to(equal(@0)); + expect(testResponse.steeringWheelAngle).to(equal(@-1500)); + expect(testResponse.eCallInfo).to(equal(eCall)); + expect(testResponse.airbagStatus).to(equal(airbag)); + expect(testResponse.emergencyEvent).to(equal(event)); + expect(testResponse.clusterModeStatus).to(equal(clusterMode)); + expect(testResponse.myKey).to(equal(myKey)); + }); + + it(@"Should return nil if not set", ^ { + SDLGetVehicleDataResponse* testResponse = [[SDLGetVehicleDataResponse alloc] init]; + + expect(testResponse.gps).to(beNil()); + expect(testResponse.speed).to(beNil()); + expect(testResponse.rpm).to(beNil()); + expect(testResponse.fuelLevel).to(beNil()); + expect(testResponse.fuelLevel_State).to(beNil()); + expect(testResponse.instantFuelConsumption).to(beNil()); + expect(testResponse.externalTemperature).to(beNil()); + expect(testResponse.vin).to(beNil()); + expect(testResponse.prndl).to(beNil()); + expect(testResponse.tirePressure).to(beNil()); + expect(testResponse.odometer).to(beNil()); + expect(testResponse.beltStatus).to(beNil()); + expect(testResponse.bodyInformation).to(beNil()); + expect(testResponse.deviceStatus).to(beNil()); + expect(testResponse.driverBraking).to(beNil()); + expect(testResponse.wiperStatus).to(beNil()); + expect(testResponse.headLampStatus).to(beNil()); + expect(testResponse.engineTorque).to(beNil()); + expect(testResponse.accPedalPosition).to(beNil()); + expect(testResponse.steeringWheelAngle).to(beNil()); + expect(testResponse.eCallInfo).to(beNil()); + expect(testResponse.airbagStatus).to(beNil()); + expect(testResponse.emergencyEvent).to(beNil()); + expect(testResponse.clusterModeStatus).to(beNil()); + expect(testResponse.myKey).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLListFilesResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLListFilesResponseSpec.m new file mode 100644 index 000000000..824bc7517 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLListFilesResponseSpec.m @@ -0,0 +1,47 @@ +// +// SDLListFilesResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLListFilesResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLListFilesResponseSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLListFilesResponse* testResponse = [[SDLListFilesResponse alloc] init]; + + testResponse.filenames = [@[@"Music/music.mp3", @"Documents/document.txt", @"Downloads/format.exe"] mutableCopy]; + testResponse.spaceAvailable = @500000000; + + expect(testResponse.filenames).to(equal([@[@"Music/music.mp3", @"Documents/document.txt", @"Downloads/format.exe"] mutableCopy])); + expect(testResponse.spaceAvailable).to(equal(@500000000)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_response: + @{NAMES_parameters: + @{NAMES_filenames:[@[@"Music/music.mp3", @"Documents/document.txt", @"Downloads/format.exe"] mutableCopy], + NAMES_spaceAvailable:@500000000}, + NAMES_operation_name:NAMES_ListFiles}} mutableCopy]; + SDLListFilesResponse* testResponse = [[SDLListFilesResponse alloc] initWithDictionary:dict]; + + expect(testResponse.filenames).to(equal([@[@"Music/music.mp3", @"Documents/document.txt", @"Downloads/format.exe"] mutableCopy])); + expect(testResponse.spaceAvailable).to(equal(@500000000)); + }); + + it(@"Should return nil if not set", ^ { + SDLListFilesResponse* testResponse = [[SDLListFilesResponse alloc] init]; + + expect(testResponse.filenames).to(beNil()); + expect(testResponse.spaceAvailable).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformAudioPassThruResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformAudioPassThruResponseSpec.m new file mode 100644 index 000000000..eb661c3f2 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformAudioPassThruResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLPerformAudioPassThruResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLPerformAudioPassThruResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLPerformAudioPassThruResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformInteractionResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformInteractionResponseSpec.m new file mode 100644 index 000000000..b32b44cd6 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformInteractionResponseSpec.m @@ -0,0 +1,54 @@ +// +// SDLPerformInteractionResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLPerformInteractionResponse.h" +#import "SDLNames.h" +#import "SDLTriggerSource.h" + + +QuickSpecBegin(SDLPerformInteractionResponseSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLPerformInteractionResponse* testResponse = [[SDLPerformInteractionResponse alloc] init]; + + testResponse.choiceID = @25; + testResponse.manualTextEntry = @"entry"; + testResponse.triggerSource = [SDLTriggerSource KEYBOARD]; + + expect(testResponse.choiceID).to(equal(@25)); + expect(testResponse.manualTextEntry).to(equal(@"entry")); + expect(testResponse.triggerSource).to(equal([SDLTriggerSource KEYBOARD])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_response: + @{NAMES_parameters: + @{NAMES_choiceID:@25, + NAMES_manualTextEntry:@"entry", + NAMES_triggerSource:[SDLTriggerSource KEYBOARD]}, + NAMES_operation_name:NAMES_PerformInteraction}} mutableCopy]; + SDLPerformInteractionResponse* testResponse = [[SDLPerformInteractionResponse alloc] initWithDictionary:dict]; + + expect(testResponse.choiceID).to(equal(@25)); + expect(testResponse.manualTextEntry).to(equal(@"entry")); + expect(testResponse.triggerSource).to(equal([SDLTriggerSource KEYBOARD])); + }); + + it(@"Should return nil if not set", ^ { + SDLPerformInteractionResponse* testResponse = [[SDLPerformInteractionResponse alloc] init]; + + expect(testResponse.choiceID).to(beNil()); + expect(testResponse.manualTextEntry).to(beNil()); + expect(testResponse.triggerSource).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m new file mode 100644 index 000000000..565f97a79 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m @@ -0,0 +1,42 @@ +// +// SDLPutFileResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLPutFileResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLPutFileResponseSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLPutFileResponse* testResponse = [[SDLPutFileResponse alloc] init]; + + testResponse.spaceAvailable = @1248; + + expect(testResponse.spaceAvailable).to(equal(@1248)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_response: + @{NAMES_parameters: + @{NAMES_spaceAvailable:@1248}, + NAMES_operation_name:NAMES_PutFile}} mutableCopy]; + SDLPutFileResponse* testResponse = [[SDLPutFileResponse alloc] initWithDictionary:dict]; + + expect(testResponse.spaceAvailable).to(equal(@1248)); + }); + + it(@"Should return nil if not set", ^ { + SDLPutFileResponse* testResponse = [[SDLPutFileResponse alloc] init]; + + expect(testResponse.spaceAvailable).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLReadDIDResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLReadDIDResponseSpec.m new file mode 100644 index 000000000..0ae2c5b9d --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLReadDIDResponseSpec.m @@ -0,0 +1,45 @@ +// +// SDLReadDIDResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLReadDIDResponse.h" +#import "SDLDIDResult.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLReadDIDResponseSpec) + +SDLDIDResult* result = [[SDLDIDResult alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLReadDIDResponse* testResponse = [[SDLReadDIDResponse alloc] init]; + + testResponse.didResult = [@[result] mutableCopy]; + + expect(testResponse.didResult).to(equal([@[result] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_response: + @{NAMES_parameters: + @{NAMES_didResult:[@[result] mutableCopy]}, + NAMES_operation_name:NAMES_ReadDID}} mutableCopy]; + SDLReadDIDResponse* testResponse = [[SDLReadDIDResponse alloc] initWithDictionary:dict]; + + expect(testResponse.didResult).to(equal([@[result] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLReadDIDResponse* testResponse = [[SDLReadDIDResponse alloc] init]; + + expect(testResponse.didResult).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLRegisterAppInterfaceResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLRegisterAppInterfaceResponseSpec.m new file mode 100644 index 000000000..62eb9b152 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLRegisterAppInterfaceResponseSpec.m @@ -0,0 +1,133 @@ +// +// SDLRegisterAppInterfaceResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SmartDeviceLink.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLRegisterAppInterfaceResponseSpec) + +SDLSyncMsgVersion* version = [[SDLSyncMsgVersion alloc] init]; +SDLDisplayCapabilities* info = [[SDLDisplayCapabilities alloc] init]; +SDLButtonCapabilities* button = [[SDLButtonCapabilities alloc] init]; +SDLSoftButtonCapabilities* softButton = [[SDLSoftButtonCapabilities alloc] init]; +SDLPresetBankCapabilities* presetBank = [[SDLPresetBankCapabilities alloc] init]; +SDLAudioPassThruCapabilities* audioPassThru = [[SDLAudioPassThruCapabilities alloc] init]; +SDLVehicleType* vehicle = [[SDLVehicleType alloc] init]; +SDLHMICapabilities *hmiCapabilities = [[SDLHMICapabilities alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLRegisterAppInterfaceResponse* testResponse = [[SDLRegisterAppInterfaceResponse alloc] init]; + + testResponse.syncMsgVersion = version; + testResponse.language = [SDLLanguage ES_MX]; + testResponse.hmiDisplayLanguage = [SDLLanguage RU_RU]; + testResponse.displayCapabilities = info; + testResponse.buttonCapabilities = [@[button] mutableCopy]; + testResponse.softButtonCapabilities = [@[softButton] mutableCopy]; + testResponse.presetBankCapabilities = presetBank; + testResponse.hmiZoneCapabilities = [@[[SDLHMIZoneCapabilities BACK], [SDLHMIZoneCapabilities FRONT]] copy]; + testResponse.speechCapabilities = [@[[SDLSpeechCapabilities SAPI_PHONEMES], [SDLSpeechCapabilities SILENCE]] copy]; + testResponse.vrCapabilities = [@[[SDLVRCapabilities TEXT]] copy]; + testResponse.audioPassThruCapabilities = [@[audioPassThru] mutableCopy]; + testResponse.vehicleType = vehicle; + testResponse.prerecordedSpeech = [@[[SDLPrerecordedSpeech LISTEN_JINGLE], [SDLPrerecordedSpeech HELP_JINGLE]] copy]; + testResponse.supportedDiagModes = [@[@67, @99, @111] mutableCopy]; + testResponse.hmiCapabilities = hmiCapabilities; + testResponse.sdlVersion = @"sdlVersion"; + testResponse.systemSoftwareVersion = @"systemSoftwareVersion"; + + expect(testResponse.syncMsgVersion).to(equal(version)); + expect(testResponse.language).to(equal([SDLLanguage ES_MX])); + expect(testResponse.hmiDisplayLanguage).to(equal([SDLLanguage RU_RU])); + expect(testResponse.displayCapabilities).to(equal(info)); + expect(testResponse.buttonCapabilities).to(equal([@[button] mutableCopy])); + expect(testResponse.softButtonCapabilities).to(equal([@[softButton] mutableCopy])); + expect(testResponse.presetBankCapabilities).to(equal(presetBank)); + expect(testResponse.hmiZoneCapabilities).to(equal([@[[SDLHMIZoneCapabilities BACK], [SDLHMIZoneCapabilities FRONT]] copy])); + expect(testResponse.speechCapabilities).to(equal([@[[SDLSpeechCapabilities SAPI_PHONEMES], [SDLSpeechCapabilities SILENCE]] copy])); + expect(testResponse.vrCapabilities).to(equal([@[[SDLVRCapabilities TEXT]] copy])); + expect(testResponse.audioPassThruCapabilities).to(equal([@[audioPassThru] mutableCopy])); + expect(testResponse.vehicleType).to(equal(vehicle)); + expect(testResponse.prerecordedSpeech).to(equal([@[[SDLPrerecordedSpeech LISTEN_JINGLE], [SDLPrerecordedSpeech HELP_JINGLE]] copy])); + expect(testResponse.supportedDiagModes).to(equal([@[@67, @99, @111] mutableCopy])); + expect(testResponse.hmiCapabilities).to(equal(hmiCapabilities)); + expect(testResponse.sdlVersion).to(equal(@"sdlVersion")); + expect(testResponse.systemSoftwareVersion).to(equal(@"systemSoftwareVersion")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_syncMsgVersion:version, + NAMES_language:[SDLLanguage ES_MX], + NAMES_hmiDisplayLanguage:[SDLLanguage RU_RU], + NAMES_displayCapabilities:info, + NAMES_buttonCapabilities:[@[button] mutableCopy], + NAMES_softButtonCapabilities:[@[softButton] mutableCopy], + NAMES_presetBankCapabilities:presetBank, + NAMES_hmiZoneCapabilities:[@[[SDLHMIZoneCapabilities BACK], [SDLHMIZoneCapabilities FRONT]] copy], + NAMES_speechCapabilities:[@[[SDLSpeechCapabilities SAPI_PHONEMES], [SDLSpeechCapabilities SILENCE]] copy], + NAMES_vrCapabilities:[@[[SDLVRCapabilities TEXT]] copy], + NAMES_audioPassThruCapabilities:[@[audioPassThru] mutableCopy], + NAMES_vehicleType:vehicle, + NAMES_prerecordedSpeech:[@[[SDLPrerecordedSpeech LISTEN_JINGLE], [SDLPrerecordedSpeech HELP_JINGLE]] mutableCopy], + NAMES_supportedDiagModes:[@[@67, @99, @111] mutableCopy], + NAMES_hmiCapabilities: hmiCapabilities, + NAMES_sdlVersion: @"sdlVersion", + NAMES_systemSoftwareVersion: @"systemSoftwareVersion" + }, + NAMES_operation_name:NAMES_RegisterAppInterface}} mutableCopy]; + SDLRegisterAppInterfaceResponse* testResponse = [[SDLRegisterAppInterfaceResponse alloc] initWithDictionary:dict]; + + expect(testResponse.syncMsgVersion).to(equal(version)); + expect(testResponse.language).to(equal([SDLLanguage ES_MX])); + expect(testResponse.hmiDisplayLanguage).to(equal([SDLLanguage RU_RU])); + expect(testResponse.displayCapabilities).to(equal(info)); + expect(testResponse.buttonCapabilities).to(equal([@[button] mutableCopy])); + expect(testResponse.softButtonCapabilities).to(equal([@[softButton] mutableCopy])); + expect(testResponse.presetBankCapabilities).to(equal(presetBank)); + expect(testResponse.hmiZoneCapabilities).to(equal([@[[SDLHMIZoneCapabilities BACK], [SDLHMIZoneCapabilities FRONT]] copy])); + expect(testResponse.speechCapabilities).to(equal([@[[SDLSpeechCapabilities SAPI_PHONEMES], [SDLSpeechCapabilities SILENCE]] copy])); + expect(testResponse.vrCapabilities).to(equal([@[[SDLVRCapabilities TEXT]] copy])); + expect(testResponse.audioPassThruCapabilities).to(equal([@[audioPassThru] mutableCopy])); + expect(testResponse.vehicleType).to(equal(vehicle)); + expect(testResponse.prerecordedSpeech).to(equal([@[[SDLPrerecordedSpeech LISTEN_JINGLE], [SDLPrerecordedSpeech HELP_JINGLE]] copy])); + expect(testResponse.supportedDiagModes).to(equal([@[@67, @99, @111] mutableCopy])); + expect(testResponse.hmiCapabilities).to(equal(hmiCapabilities)); + expect(testResponse.sdlVersion).to(equal(@"sdlVersion")); + expect(testResponse.systemSoftwareVersion).to(equal(@"systemSoftwareVersion")); + }); + + it(@"Should return nil if not set", ^ { + SDLRegisterAppInterfaceResponse* testResponse = [[SDLRegisterAppInterfaceResponse alloc] init]; + + expect(testResponse.syncMsgVersion).to(beNil()); + expect(testResponse.language).to(beNil()); + expect(testResponse.hmiDisplayLanguage).to(beNil()); + expect(testResponse.displayCapabilities).to(beNil()); + expect(testResponse.buttonCapabilities).to(beNil()); + expect(testResponse.softButtonCapabilities).to(beNil()); + expect(testResponse.presetBankCapabilities).to(beNil()); + expect(testResponse.hmiZoneCapabilities).to(beNil()); + expect(testResponse.speechCapabilities).to(beNil()); + expect(testResponse.vrCapabilities).to(beNil()); + expect(testResponse.audioPassThruCapabilities).to(beNil()); + expect(testResponse.vehicleType).to(beNil()); + expect(testResponse.prerecordedSpeech).to(beNil()); + expect(testResponse.supportedDiagModes).to(beNil()); + expect(testResponse.hmiCapabilities).to(beNil()); + expect(testResponse.sdlVersion).to(beNil()); + expect(testResponse.systemSoftwareVersion).to(beNil()); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLResetGlobalPropertiesResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLResetGlobalPropertiesResponseSpec.m new file mode 100644 index 000000000..fb9b4a2ed --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLResetGlobalPropertiesResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLResetGlobalPropertiesResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLResetGlobalPropertiesResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLResetGlobalPropertiesResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLScrollableMessageResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLScrollableMessageResponseSpec.m new file mode 100644 index 000000000..5cebb0229 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLScrollableMessageResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLScrollableMessageResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLScrollableMessageResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLScrollableMessageResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSendLocationResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSendLocationResponseSpec.m new file mode 100644 index 000000000..83d1ee55a --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSendLocationResponseSpec.m @@ -0,0 +1,12 @@ +// +// SDLSendLocationResponseSpec.m +// SmartDeviceLink-iOS + +#import +#import + +QuickSpecBegin(SDLSendLocationResponseSpec) + + + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetAppIconResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetAppIconResponseSpec.m new file mode 100644 index 000000000..44593a080 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetAppIconResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLSetAppIconResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSetAppIconResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSetAppIconResponseSpec) + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetDisplayLayoutResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetDisplayLayoutResponseSpec.m new file mode 100644 index 000000000..3eeab76a1 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetDisplayLayoutResponseSpec.m @@ -0,0 +1,67 @@ +// +// SDLSetDisplayLayoutResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLButtonCapabilities.h" +#import "SDLDisplayCapabilities.h" +#import "SDLNames.h" +#import "SDLPresetBankCapabilities.h" +#import "SDLSetDisplayLayoutResponse.h" +#import "SDLSoftButtonCapabilities.h" + + +QuickSpecBegin(SDLSetDisplayLayoutResponseSpec) + +SDLDisplayCapabilities* info = [[SDLDisplayCapabilities alloc] init]; +SDLButtonCapabilities* button = [[SDLButtonCapabilities alloc] init]; +SDLSoftButtonCapabilities* softButton = [[SDLSoftButtonCapabilities alloc] init]; +SDLPresetBankCapabilities* presetBank = [[SDLPresetBankCapabilities alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSetDisplayLayoutResponse* testResponse = [[SDLSetDisplayLayoutResponse alloc] init]; + + testResponse.displayCapabilities = info; + testResponse.buttonCapabilities = [@[button] mutableCopy]; + testResponse.softButtonCapabilities = [@[softButton] mutableCopy]; + testResponse.presetBankCapabilities = presetBank; + + expect(testResponse.displayCapabilities).to(equal(info)); + expect(testResponse.buttonCapabilities).to(equal([@[button] mutableCopy])); + expect(testResponse.softButtonCapabilities).to(equal([@[softButton] mutableCopy])); + expect(testResponse.presetBankCapabilities).to(equal(presetBank)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_displayCapabilities:info, + NAMES_buttonCapabilities:[@[button] mutableCopy], + NAMES_softButtonCapabilities:[@[softButton] mutableCopy], + NAMES_presetBankCapabilities:presetBank}, + NAMES_operation_name:NAMES_SetDisplayLayout}} mutableCopy]; + SDLSetDisplayLayoutResponse* testResponse = [[SDLSetDisplayLayoutResponse alloc] initWithDictionary:dict]; + + expect(testResponse.displayCapabilities).to(equal(info)); + expect(testResponse.buttonCapabilities).to(equal([@[button] mutableCopy])); + expect(testResponse.softButtonCapabilities).to(equal([@[softButton] mutableCopy])); + expect(testResponse.presetBankCapabilities).to(equal(presetBank)); + }); + + it(@"Should return nil if not set", ^ { + SDLSetDisplayLayoutResponse* testResponse = [[SDLSetDisplayLayoutResponse alloc] init]; + + expect(testResponse.displayCapabilities).to(beNil()); + expect(testResponse.buttonCapabilities).to(beNil()); + expect(testResponse.softButtonCapabilities).to(beNil()); + expect(testResponse.presetBankCapabilities).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetGlobalPropertiesResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetGlobalPropertiesResponseSpec.m new file mode 100644 index 000000000..80a5f47ec --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetGlobalPropertiesResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLSetGlobalPropertiesResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSetGlobalPropertiesResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSetGlobalPropertiesResponseSpec) + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetMediaClockTimerResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetMediaClockTimerResponseSpec.m new file mode 100644 index 000000000..e840213d6 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetMediaClockTimerResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLSetMediaClockTimerResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSetMediaClockTimerResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSetMediaClockTimerResponseSpec) + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowConstantTBTResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowConstantTBTResponseSpec.m new file mode 100644 index 000000000..1bd2c57cd --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowConstantTBTResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLShowConstantTBTResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLShowConstantTBTResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLShowConstantTBTResponseSpec) + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowResponseSpec.m new file mode 100644 index 000000000..bbfa524c0 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLShowResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLShowResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLShowResponseSpec) + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSliderResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSliderResponseSpec.m new file mode 100644 index 000000000..6f92c1e48 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSliderResponseSpec.m @@ -0,0 +1,43 @@ +// +// SDLSliderResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSliderResponse.h" +#import "SDLDIDResult.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSliderResponseSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSliderResponse* testResponse = [[SDLSliderResponse alloc] init]; + + testResponse.sliderPosition = @13; + + expect(testResponse.sliderPosition).to(equal(@13)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_response: + @{NAMES_parameters: + @{NAMES_sliderPosition:@13}, + NAMES_operation_name:NAMES_Slider}} mutableCopy]; + SDLSliderResponse* testResponse = [[SDLSliderResponse alloc] initWithDictionary:dict]; + + expect(testResponse.sliderPosition).to(equal(@13)); + }); + + it(@"Should return nil if not set", ^ { + SDLSliderResponse* testResponse = [[SDLSliderResponse alloc] init]; + + expect(testResponse.sliderPosition).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSpeakResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSpeakResponseSpec.m new file mode 100644 index 000000000..688e8f34c --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSpeakResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLSpeakResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSpeakResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSpeakResponseSpec) + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeButtonResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeButtonResponseSpec.m new file mode 100644 index 000000000..5e78d95ed --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeButtonResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLSubscribeButtonResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSubscribeButtonResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSubscribeButtonResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeVehicleDataResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeVehicleDataResponseSpec.m new file mode 100644 index 000000000..d6c0dc6ac --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeVehicleDataResponseSpec.m @@ -0,0 +1,161 @@ +// +// SDLSubscribeVehicleDataResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLNames.h" +#import "SDLSubscribeVehicleDataResponse.h" +#import "SDLVehicleDataResult.h" + + +QuickSpecBegin(SDLSubscribeVehicleDataResponseSpec) + +SDLVehicleDataResult* vehicleDataResult = [[SDLVehicleDataResult alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSubscribeVehicleDataResponse* testResponse = [[SDLSubscribeVehicleDataResponse alloc] init]; + + testResponse.gps = vehicleDataResult; + testResponse.speed = vehicleDataResult; + testResponse.rpm = vehicleDataResult; + testResponse.fuelLevel = vehicleDataResult; + testResponse.fuelLevel_State = vehicleDataResult; + testResponse.instantFuelConsumption = vehicleDataResult; + testResponse.externalTemperature = vehicleDataResult; + testResponse.prndl = vehicleDataResult; + testResponse.tirePressure = vehicleDataResult; + testResponse.odometer = vehicleDataResult; + testResponse.beltStatus = vehicleDataResult; + testResponse.bodyInformation = vehicleDataResult; + testResponse.deviceStatus = vehicleDataResult; + testResponse.driverBraking = vehicleDataResult; + testResponse.wiperStatus = vehicleDataResult; + testResponse.headLampStatus = vehicleDataResult; + testResponse.engineTorque = vehicleDataResult; + testResponse.accPedalPosition = vehicleDataResult; + testResponse.steeringWheelAngle = vehicleDataResult; + testResponse.eCallInfo = vehicleDataResult; + testResponse.airbagStatus = vehicleDataResult; + testResponse.emergencyEvent = vehicleDataResult; + testResponse.clusterModes = vehicleDataResult; + testResponse.myKey = vehicleDataResult; + + expect(testResponse.gps).to(equal(vehicleDataResult)); + expect(testResponse.speed).to(equal(vehicleDataResult)); + expect(testResponse.rpm).to(equal(vehicleDataResult)); + expect(testResponse.fuelLevel).to(equal(vehicleDataResult)); + expect(testResponse.fuelLevel_State).to(equal(vehicleDataResult)); + expect(testResponse.instantFuelConsumption).to(equal(vehicleDataResult)); + expect(testResponse.externalTemperature).to(equal(vehicleDataResult)); + expect(testResponse.prndl).to(equal(vehicleDataResult)); + expect(testResponse.tirePressure).to(equal(vehicleDataResult)); + expect(testResponse.odometer).to(equal(vehicleDataResult)); + expect(testResponse.beltStatus).to(equal(vehicleDataResult)); + expect(testResponse.bodyInformation).to(equal(vehicleDataResult)); + expect(testResponse.deviceStatus).to(equal(vehicleDataResult)); + expect(testResponse.driverBraking).to(equal(vehicleDataResult)); + expect(testResponse.wiperStatus).to(equal(vehicleDataResult)); + expect(testResponse.headLampStatus).to(equal(vehicleDataResult)); + expect(testResponse.engineTorque).to(equal(vehicleDataResult)); + expect(testResponse.accPedalPosition).to(equal(vehicleDataResult)); + expect(testResponse.steeringWheelAngle).to(equal(vehicleDataResult)); + expect(testResponse.eCallInfo).to(equal(vehicleDataResult)); + expect(testResponse.airbagStatus).to(equal(vehicleDataResult)); + expect(testResponse.emergencyEvent).to(equal(vehicleDataResult)); + expect(testResponse.clusterModes).to(equal(vehicleDataResult)); + expect(testResponse.myKey).to(equal(vehicleDataResult)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_response: + @{NAMES_parameters: + @{NAMES_gps:vehicleDataResult, + NAMES_speed:vehicleDataResult, + NAMES_rpm:vehicleDataResult, + NAMES_fuelLevel:vehicleDataResult, + NAMES_fuelLevel_State:vehicleDataResult, + NAMES_instantFuelConsumption:vehicleDataResult, + NAMES_externalTemperature:vehicleDataResult, + NAMES_prndl:vehicleDataResult, + NAMES_tirePressure:vehicleDataResult, + NAMES_odometer:vehicleDataResult, + NAMES_beltStatus:vehicleDataResult, + NAMES_bodyInformation:vehicleDataResult, + NAMES_deviceStatus:vehicleDataResult, + NAMES_driverBraking:vehicleDataResult, + NAMES_wiperStatus:vehicleDataResult, + NAMES_headLampStatus:vehicleDataResult, + NAMES_engineTorque:vehicleDataResult, + NAMES_accPedalPosition:vehicleDataResult, + NAMES_steeringWheelAngle:vehicleDataResult, + NAMES_eCallInfo:vehicleDataResult, + NAMES_airbagStatus:vehicleDataResult, + NAMES_emergencyEvent:vehicleDataResult, + NAMES_clusterModes:vehicleDataResult, + NAMES_myKey:vehicleDataResult}, + NAMES_operation_name:NAMES_SubscribeVehicleData}} mutableCopy]; + SDLSubscribeVehicleDataResponse* testResponse = [[SDLSubscribeVehicleDataResponse alloc] initWithDictionary:dict]; + + expect(testResponse.gps).to(equal(vehicleDataResult)); + expect(testResponse.speed).to(equal(vehicleDataResult)); + expect(testResponse.rpm).to(equal(vehicleDataResult)); + expect(testResponse.fuelLevel).to(equal(vehicleDataResult)); + expect(testResponse.fuelLevel_State).to(equal(vehicleDataResult)); + expect(testResponse.instantFuelConsumption).to(equal(vehicleDataResult)); + expect(testResponse.externalTemperature).to(equal(vehicleDataResult)); + expect(testResponse.prndl).to(equal(vehicleDataResult)); + expect(testResponse.tirePressure).to(equal(vehicleDataResult)); + expect(testResponse.odometer).to(equal(vehicleDataResult)); + expect(testResponse.beltStatus).to(equal(vehicleDataResult)); + expect(testResponse.bodyInformation).to(equal(vehicleDataResult)); + expect(testResponse.deviceStatus).to(equal(vehicleDataResult)); + expect(testResponse.driverBraking).to(equal(vehicleDataResult)); + expect(testResponse.wiperStatus).to(equal(vehicleDataResult)); + expect(testResponse.headLampStatus).to(equal(vehicleDataResult)); + expect(testResponse.engineTorque).to(equal(vehicleDataResult)); + expect(testResponse.accPedalPosition).to(equal(vehicleDataResult)); + expect(testResponse.steeringWheelAngle).to(equal(vehicleDataResult)); + expect(testResponse.eCallInfo).to(equal(vehicleDataResult)); + expect(testResponse.airbagStatus).to(equal(vehicleDataResult)); + expect(testResponse.emergencyEvent).to(equal(vehicleDataResult)); + expect(testResponse.clusterModes).to(equal(vehicleDataResult)); + expect(testResponse.myKey).to(equal(vehicleDataResult)); + }); + + it(@"Should return nil if not set", ^ { + SDLSubscribeVehicleDataResponse* testResponse = [[SDLSubscribeVehicleDataResponse alloc] init]; + + expect(testResponse.gps).to(beNil()); + expect(testResponse.speed).to(beNil()); + expect(testResponse.rpm).to(beNil()); + expect(testResponse.fuelLevel).to(beNil()); + expect(testResponse.fuelLevel_State).to(beNil()); + expect(testResponse.instantFuelConsumption).to(beNil()); + expect(testResponse.externalTemperature).to(beNil()); + expect(testResponse.prndl).to(beNil()); + expect(testResponse.tirePressure).to(beNil()); + expect(testResponse.odometer).to(beNil()); + expect(testResponse.beltStatus).to(beNil()); + expect(testResponse.bodyInformation).to(beNil()); + expect(testResponse.deviceStatus).to(beNil()); + expect(testResponse.driverBraking).to(beNil()); + expect(testResponse.wiperStatus).to(beNil()); + expect(testResponse.headLampStatus).to(beNil()); + expect(testResponse.engineTorque).to(beNil()); + expect(testResponse.accPedalPosition).to(beNil()); + expect(testResponse.steeringWheelAngle).to(beNil()); + expect(testResponse.eCallInfo).to(beNil()); + expect(testResponse.airbagStatus).to(beNil()); + expect(testResponse.emergencyEvent).to(beNil()); + expect(testResponse.clusterModes).to(beNil()); + expect(testResponse.myKey).to(beNil()); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSyncPDataResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSyncPDataResponseSpec.m new file mode 100644 index 000000000..6a287f226 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSyncPDataResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLSyncPDataResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSyncPDataResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSyncPDataResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSystemRequestResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSystemRequestResponseSpec.m new file mode 100644 index 000000000..2571379c8 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSystemRequestResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLSystemRequestResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSystemRequestResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSystemRequestResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnregisterAppInterfaceResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnregisterAppInterfaceResponseSpec.m new file mode 100644 index 000000000..f10eb6048 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnregisterAppInterfaceResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLUnregisterAppInterfaceResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLUnregisterAppInterfaceResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLUnregisterAppInterfaceResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeButtonResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeButtonResponseSpec.m new file mode 100644 index 000000000..ca76ef4e7 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeButtonResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLUnsubscribeButtonResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLUnsubscribeButtonResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLUnsubscribeButtonResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m new file mode 100644 index 000000000..29cb4e08c --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m @@ -0,0 +1,161 @@ +// +// SDLUnsubscribeVehicleDataResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLUnsubscribeVehicleDataResponse.h" +#import "SDLNames.h" +#import "SDLVehicleDataResult.h" + + +QuickSpecBegin(SDLUnsubscribeVehicleDataResponseSpec) + +SDLVehicleDataResult* vehicleDataResult = [[SDLVehicleDataResult alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLUnsubscribeVehicleDataResponse* testResponse = [[SDLUnsubscribeVehicleDataResponse alloc] init]; + + testResponse.gps = vehicleDataResult; + testResponse.speed = vehicleDataResult; + testResponse.rpm = vehicleDataResult; + testResponse.fuelLevel = vehicleDataResult; + testResponse.fuelLevel_State = vehicleDataResult; + testResponse.instantFuelConsumption = vehicleDataResult; + testResponse.externalTemperature = vehicleDataResult; + testResponse.prndl = vehicleDataResult; + testResponse.tirePressure = vehicleDataResult; + testResponse.odometer = vehicleDataResult; + testResponse.beltStatus = vehicleDataResult; + testResponse.bodyInformation = vehicleDataResult; + testResponse.deviceStatus = vehicleDataResult; + testResponse.driverBraking = vehicleDataResult; + testResponse.wiperStatus = vehicleDataResult; + testResponse.headLampStatus = vehicleDataResult; + testResponse.engineTorque = vehicleDataResult; + testResponse.accPedalPosition = vehicleDataResult; + testResponse.steeringWheelAngle = vehicleDataResult; + testResponse.eCallInfo = vehicleDataResult; + testResponse.airbagStatus = vehicleDataResult; + testResponse.emergencyEvent = vehicleDataResult; + testResponse.clusterModes = vehicleDataResult; + testResponse.myKey = vehicleDataResult; + + expect(testResponse.gps).to(equal(vehicleDataResult)); + expect(testResponse.speed).to(equal(vehicleDataResult)); + expect(testResponse.rpm).to(equal(vehicleDataResult)); + expect(testResponse.fuelLevel).to(equal(vehicleDataResult)); + expect(testResponse.fuelLevel_State).to(equal(vehicleDataResult)); + expect(testResponse.instantFuelConsumption).to(equal(vehicleDataResult)); + expect(testResponse.externalTemperature).to(equal(vehicleDataResult)); + expect(testResponse.prndl).to(equal(vehicleDataResult)); + expect(testResponse.tirePressure).to(equal(vehicleDataResult)); + expect(testResponse.odometer).to(equal(vehicleDataResult)); + expect(testResponse.beltStatus).to(equal(vehicleDataResult)); + expect(testResponse.bodyInformation).to(equal(vehicleDataResult)); + expect(testResponse.deviceStatus).to(equal(vehicleDataResult)); + expect(testResponse.driverBraking).to(equal(vehicleDataResult)); + expect(testResponse.wiperStatus).to(equal(vehicleDataResult)); + expect(testResponse.headLampStatus).to(equal(vehicleDataResult)); + expect(testResponse.engineTorque).to(equal(vehicleDataResult)); + expect(testResponse.accPedalPosition).to(equal(vehicleDataResult)); + expect(testResponse.steeringWheelAngle).to(equal(vehicleDataResult)); + expect(testResponse.eCallInfo).to(equal(vehicleDataResult)); + expect(testResponse.airbagStatus).to(equal(vehicleDataResult)); + expect(testResponse.emergencyEvent).to(equal(vehicleDataResult)); + expect(testResponse.clusterModes).to(equal(vehicleDataResult)); + expect(testResponse.myKey).to(equal(vehicleDataResult)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_response: + @{NAMES_parameters: + @{NAMES_gps:vehicleDataResult, + NAMES_speed:vehicleDataResult, + NAMES_rpm:vehicleDataResult, + NAMES_fuelLevel:vehicleDataResult, + NAMES_fuelLevel_State:vehicleDataResult, + NAMES_instantFuelConsumption:vehicleDataResult, + NAMES_externalTemperature:vehicleDataResult, + NAMES_prndl:vehicleDataResult, + NAMES_tirePressure:vehicleDataResult, + NAMES_odometer:vehicleDataResult, + NAMES_beltStatus:vehicleDataResult, + NAMES_bodyInformation:vehicleDataResult, + NAMES_deviceStatus:vehicleDataResult, + NAMES_driverBraking:vehicleDataResult, + NAMES_wiperStatus:vehicleDataResult, + NAMES_headLampStatus:vehicleDataResult, + NAMES_engineTorque:vehicleDataResult, + NAMES_accPedalPosition:vehicleDataResult, + NAMES_steeringWheelAngle:vehicleDataResult, + NAMES_eCallInfo:vehicleDataResult, + NAMES_airbagStatus:vehicleDataResult, + NAMES_emergencyEvent:vehicleDataResult, + NAMES_clusterModes:vehicleDataResult, + NAMES_myKey:vehicleDataResult}, + NAMES_operation_name:NAMES_UnsubscribeVehicleData}} mutableCopy]; + SDLUnsubscribeVehicleDataResponse* testResponse = [[SDLUnsubscribeVehicleDataResponse alloc] initWithDictionary:dict]; + + expect(testResponse.gps).to(equal(vehicleDataResult)); + expect(testResponse.speed).to(equal(vehicleDataResult)); + expect(testResponse.rpm).to(equal(vehicleDataResult)); + expect(testResponse.fuelLevel).to(equal(vehicleDataResult)); + expect(testResponse.fuelLevel_State).to(equal(vehicleDataResult)); + expect(testResponse.instantFuelConsumption).to(equal(vehicleDataResult)); + expect(testResponse.externalTemperature).to(equal(vehicleDataResult)); + expect(testResponse.prndl).to(equal(vehicleDataResult)); + expect(testResponse.tirePressure).to(equal(vehicleDataResult)); + expect(testResponse.odometer).to(equal(vehicleDataResult)); + expect(testResponse.beltStatus).to(equal(vehicleDataResult)); + expect(testResponse.bodyInformation).to(equal(vehicleDataResult)); + expect(testResponse.deviceStatus).to(equal(vehicleDataResult)); + expect(testResponse.driverBraking).to(equal(vehicleDataResult)); + expect(testResponse.wiperStatus).to(equal(vehicleDataResult)); + expect(testResponse.headLampStatus).to(equal(vehicleDataResult)); + expect(testResponse.engineTorque).to(equal(vehicleDataResult)); + expect(testResponse.accPedalPosition).to(equal(vehicleDataResult)); + expect(testResponse.steeringWheelAngle).to(equal(vehicleDataResult)); + expect(testResponse.eCallInfo).to(equal(vehicleDataResult)); + expect(testResponse.airbagStatus).to(equal(vehicleDataResult)); + expect(testResponse.emergencyEvent).to(equal(vehicleDataResult)); + expect(testResponse.clusterModes).to(equal(vehicleDataResult)); + expect(testResponse.myKey).to(equal(vehicleDataResult)); + }); + + it(@"Should return nil if not set", ^ { + SDLUnsubscribeVehicleDataResponse* testResponse = [[SDLUnsubscribeVehicleDataResponse alloc] init]; + + expect(testResponse.gps).to(beNil()); + expect(testResponse.speed).to(beNil()); + expect(testResponse.rpm).to(beNil()); + expect(testResponse.fuelLevel).to(beNil()); + expect(testResponse.fuelLevel_State).to(beNil()); + expect(testResponse.instantFuelConsumption).to(beNil()); + expect(testResponse.externalTemperature).to(beNil()); + expect(testResponse.prndl).to(beNil()); + expect(testResponse.tirePressure).to(beNil()); + expect(testResponse.odometer).to(beNil()); + expect(testResponse.beltStatus).to(beNil()); + expect(testResponse.bodyInformation).to(beNil()); + expect(testResponse.deviceStatus).to(beNil()); + expect(testResponse.driverBraking).to(beNil()); + expect(testResponse.wiperStatus).to(beNil()); + expect(testResponse.headLampStatus).to(beNil()); + expect(testResponse.engineTorque).to(beNil()); + expect(testResponse.accPedalPosition).to(beNil()); + expect(testResponse.steeringWheelAngle).to(beNil()); + expect(testResponse.eCallInfo).to(beNil()); + expect(testResponse.airbagStatus).to(beNil()); + expect(testResponse.emergencyEvent).to(beNil()); + expect(testResponse.clusterModes).to(beNil()); + expect(testResponse.myKey).to(beNil()); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUpdateTurnListResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUpdateTurnListResponseSpec.m new file mode 100644 index 000000000..d455dea46 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUpdateTurnListResponseSpec.m @@ -0,0 +1,16 @@ +// +// SDLUpdateTurnListResponseSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLUpdateTurnListResponse.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLUpdateTurnListResponseSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAirbagStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAirbagStatusSpec.m new file mode 100644 index 000000000..ea88855c5 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAirbagStatusSpec.m @@ -0,0 +1,76 @@ +// +// SDLAirbagStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAirbagStatus.h" +#import "SDLNames.h" +#import "SDLVehicleDataEventStatus.h" + + +QuickSpecBegin(SDLAirbagStatusSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLAirbagStatus* testStruct = [[SDLAirbagStatus alloc] init]; + + testStruct.driverAirbagDeployed = [SDLVehicleDataEventStatus _YES]; + testStruct.driverSideAirbagDeployed = [SDLVehicleDataEventStatus NO_EVENT]; + testStruct.driverCurtainAirbagDeployed = [SDLVehicleDataEventStatus _NO]; + testStruct.passengerAirbagDeployed = [SDLVehicleDataEventStatus NOT_SUPPORTED]; + testStruct.passengerCurtainAirbagDeployed = [SDLVehicleDataEventStatus FAULT]; + testStruct.driverKneeAirbagDeployed = [SDLVehicleDataEventStatus _NO]; + testStruct.passengerSideAirbagDeployed = [SDLVehicleDataEventStatus _YES]; + testStruct.passengerKneeAirbagDeployed = [SDLVehicleDataEventStatus NO_EVENT]; + + expect(testStruct.driverAirbagDeployed).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.driverSideAirbagDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); + expect(testStruct.driverCurtainAirbagDeployed).to(equal([SDLVehicleDataEventStatus _NO])); + expect(testStruct.passengerAirbagDeployed).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); + expect(testStruct.passengerCurtainAirbagDeployed).to(equal([SDLVehicleDataEventStatus FAULT])); + expect(testStruct.driverKneeAirbagDeployed).to(equal([SDLVehicleDataEventStatus _NO])); + expect(testStruct.passengerSideAirbagDeployed).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.passengerKneeAirbagDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_driverAirbagDeployed:[SDLVehicleDataEventStatus _YES], + NAMES_driverSideAirbagDeployed:[SDLVehicleDataEventStatus NO_EVENT], + NAMES_driverCurtainAirbagDeployed:[SDLVehicleDataEventStatus _NO], + NAMES_passengerAirbagDeployed:[SDLVehicleDataEventStatus NOT_SUPPORTED], + NAMES_passengerCurtainAirbagDeployed:[SDLVehicleDataEventStatus FAULT], + NAMES_driverKneeAirbagDeployed:[SDLVehicleDataEventStatus _NO], + NAMES_passengerSideAirbagDeployed:[SDLVehicleDataEventStatus _YES], + NAMES_passengerKneeAirbagDeployed:[SDLVehicleDataEventStatus NO_EVENT]} mutableCopy]; + SDLAirbagStatus* testStruct = [[SDLAirbagStatus alloc] initWithDictionary:dict]; + + expect(testStruct.driverAirbagDeployed).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.driverSideAirbagDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); + expect(testStruct.driverCurtainAirbagDeployed).to(equal([SDLVehicleDataEventStatus _NO])); + expect(testStruct.passengerAirbagDeployed).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); + expect(testStruct.passengerCurtainAirbagDeployed).to(equal([SDLVehicleDataEventStatus FAULT])); + expect(testStruct.driverKneeAirbagDeployed).to(equal([SDLVehicleDataEventStatus _NO])); + expect(testStruct.passengerSideAirbagDeployed).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.passengerKneeAirbagDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); + }); + + it(@"Should return nil if not set", ^ { + SDLAirbagStatus* testStruct = [[SDLAirbagStatus alloc] init]; + + expect(testStruct.driverAirbagDeployed).to(beNil()); + expect(testStruct.driverSideAirbagDeployed).to(beNil()); + expect(testStruct.driverCurtainAirbagDeployed).to(beNil()); + expect(testStruct.passengerAirbagDeployed).to(beNil()); + expect(testStruct.passengerCurtainAirbagDeployed).to(beNil()); + expect(testStruct.driverKneeAirbagDeployed).to(beNil()); + expect(testStruct.passengerSideAirbagDeployed).to(beNil()); + expect(testStruct.passengerKneeAirbagDeployed).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAudioPassThruCapabilitiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAudioPassThruCapabilitiesSpec.m new file mode 100644 index 000000000..8d66fc8af --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLAudioPassThruCapabilitiesSpec.m @@ -0,0 +1,53 @@ +// +// SDLAudioPassThruCapabilitiesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAudioPassThruCapabilities.h" +#import "SDLAudioType.h" +#import "SDLBitsPerSample.h" +#import "SDLNames.h" +#import "SDLSamplingRate.h" + + +QuickSpecBegin(SDLAudioPassThruCapabilitiesSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLAudioPassThruCapabilities* testStruct = [[SDLAudioPassThruCapabilities alloc] init]; + + testStruct.samplingRate = [SDLSamplingRate _22KHZ]; + testStruct.bitsPerSample = [SDLBitsPerSample _8_BIT]; + testStruct.audioType = [SDLAudioType PCM]; + + expect(testStruct.samplingRate).to(equal([SDLSamplingRate _22KHZ])); + expect(testStruct.bitsPerSample).to(equal([SDLBitsPerSample _8_BIT])); + expect(testStruct.audioType).to(equal([SDLAudioType PCM])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_samplingRate:[SDLSamplingRate _22KHZ], + NAMES_bitsPerSample:[SDLBitsPerSample _8_BIT], + NAMES_audioType:[SDLAudioType PCM]} mutableCopy]; + SDLAudioPassThruCapabilities* testStruct = [[SDLAudioPassThruCapabilities alloc] initWithDictionary:dict]; + + expect(testStruct.samplingRate).to(equal([SDLSamplingRate _22KHZ])); + expect(testStruct.bitsPerSample).to(equal([SDLBitsPerSample _8_BIT])); + expect(testStruct.audioType).to(equal([SDLAudioType PCM])); + }); + + it(@"Should return nil if not set", ^ { + SDLAudioPassThruCapabilities* testStruct = [[SDLAudioPassThruCapabilities alloc] init]; + + expect(testStruct.samplingRate).to(beNil()); + expect(testStruct.bitsPerSample).to(beNil()); + expect(testStruct.audioType).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBeltStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBeltStatusSpec.m new file mode 100644 index 000000000..e0d8c4883 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBeltStatusSpec.m @@ -0,0 +1,111 @@ +// +// SDLBeltStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLBeltStatus.h" +#import "SDLNames.h" +#import "SDLVehicleDataEventStatus.h" + + +QuickSpecBegin(SDLBeltStatusSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLBeltStatus* testStruct = [[SDLBeltStatus alloc] init]; + + testStruct.driverBeltDeployed = [SDLVehicleDataEventStatus _YES]; + testStruct.passengerBeltDeployed = [SDLVehicleDataEventStatus NO_EVENT]; + testStruct.passengerBuckleBelted = [SDLVehicleDataEventStatus FAULT]; + testStruct.driverBuckleBelted = [SDLVehicleDataEventStatus _YES]; + testStruct.leftRow2BuckleBelted = [SDLVehicleDataEventStatus FAULT]; + testStruct.passengerChildDetected = [SDLVehicleDataEventStatus NOT_SUPPORTED]; + testStruct.rightRow2BuckleBelted = [SDLVehicleDataEventStatus _YES]; + testStruct.middleRow2BuckleBelted = [SDLVehicleDataEventStatus NO_EVENT]; + testStruct.middleRow3BuckleBelted = [SDLVehicleDataEventStatus NOT_SUPPORTED]; + testStruct.leftRow3BuckleBelted = [SDLVehicleDataEventStatus _YES]; + testStruct.rightRow3BuckleBelted = [SDLVehicleDataEventStatus _NO]; + testStruct.leftRearInflatableBelted = [SDLVehicleDataEventStatus NOT_SUPPORTED]; + testStruct.rightRearInflatableBelted = [SDLVehicleDataEventStatus FAULT]; + testStruct.middleRow1BeltDeployed = [SDLVehicleDataEventStatus _YES]; + testStruct.middleRow1BuckleBelted = [SDLVehicleDataEventStatus _NO]; + + expect(testStruct.driverBeltDeployed).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.passengerBeltDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); + expect(testStruct.passengerBuckleBelted).to(equal([SDLVehicleDataEventStatus FAULT])); + expect(testStruct.driverBuckleBelted).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.leftRow2BuckleBelted).to(equal([SDLVehicleDataEventStatus FAULT])); + expect(testStruct.passengerChildDetected).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); + expect(testStruct.rightRow2BuckleBelted).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.middleRow2BuckleBelted).to(equal([SDLVehicleDataEventStatus NO_EVENT])); + expect(testStruct.middleRow3BuckleBelted).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); + expect(testStruct.leftRow3BuckleBelted).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.rightRow3BuckleBelted).to(equal([SDLVehicleDataEventStatus _NO])); + expect(testStruct.leftRearInflatableBelted).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); + expect(testStruct.rightRearInflatableBelted).to(equal([SDLVehicleDataEventStatus FAULT])); + expect(testStruct.middleRow1BeltDeployed).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.middleRow1BuckleBelted).to(equal([SDLVehicleDataEventStatus _NO])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_driverBeltDeployed:[SDLVehicleDataEventStatus NO_EVENT], + NAMES_passengerBeltDeployed:[SDLVehicleDataEventStatus _YES], + NAMES_passengerBuckleBelted:[SDLVehicleDataEventStatus _NO], + NAMES_driverBuckleBelted:[SDLVehicleDataEventStatus FAULT], + NAMES_leftRow2BuckleBelted:[SDLVehicleDataEventStatus _YES], + NAMES_passengerChildDetected:[SDLVehicleDataEventStatus _NO], + NAMES_rightRow2BuckleBelted:[SDLVehicleDataEventStatus NOT_SUPPORTED], + NAMES_middleRow2BuckleBelted:[SDLVehicleDataEventStatus NO_EVENT], + NAMES_middleRow3BuckleBelted:[SDLVehicleDataEventStatus _YES], + NAMES_leftRow3BuckleBelted:[SDLVehicleDataEventStatus FAULT], + NAMES_rightRow3BuckleBelted:[SDLVehicleDataEventStatus _NO], + NAMES_leftRearInflatableBelted:[SDLVehicleDataEventStatus NOT_SUPPORTED], + NAMES_rightRearInflatableBelted:[SDLVehicleDataEventStatus FAULT], + NAMES_middleRow1BeltDeployed:[SDLVehicleDataEventStatus NO_EVENT], + NAMES_middleRow1BuckleBelted:[SDLVehicleDataEventStatus NOT_SUPPORTED]} mutableCopy]; + SDLBeltStatus* testStruct = [[SDLBeltStatus alloc] initWithDictionary:dict]; + + expect(testStruct.driverBeltDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); + expect(testStruct.passengerBeltDeployed).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.passengerBuckleBelted).to(equal([SDLVehicleDataEventStatus _NO])); + expect(testStruct.driverBuckleBelted).to(equal([SDLVehicleDataEventStatus FAULT])); + expect(testStruct.leftRow2BuckleBelted).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.passengerChildDetected).to(equal([SDLVehicleDataEventStatus _NO])); + expect(testStruct.rightRow2BuckleBelted).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); + expect(testStruct.middleRow2BuckleBelted).to(equal([SDLVehicleDataEventStatus NO_EVENT])); + expect(testStruct.middleRow3BuckleBelted).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.leftRow3BuckleBelted).to(equal([SDLVehicleDataEventStatus FAULT])); + expect(testStruct.rightRow3BuckleBelted).to(equal([SDLVehicleDataEventStatus _NO])); + expect(testStruct.leftRearInflatableBelted).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); + expect(testStruct.rightRearInflatableBelted).to(equal([SDLVehicleDataEventStatus FAULT])); + expect(testStruct.middleRow1BeltDeployed).to(equal([SDLVehicleDataEventStatus NO_EVENT])); + expect(testStruct.middleRow1BuckleBelted).to(equal([SDLVehicleDataEventStatus NOT_SUPPORTED])); + }); + + it(@"Should return nil if not set", ^ { + SDLBeltStatus* testStruct = [[SDLBeltStatus alloc] init]; + + expect(testStruct.driverBeltDeployed).to(beNil()); + expect(testStruct.passengerBeltDeployed).to(beNil()); + expect(testStruct.passengerBuckleBelted).to(beNil()); + expect(testStruct.driverBuckleBelted).to(beNil()); + expect(testStruct.leftRow2BuckleBelted).to(beNil()); + expect(testStruct.passengerChildDetected).to(beNil()); + expect(testStruct.rightRow2BuckleBelted).to(beNil()); + expect(testStruct.middleRow2BuckleBelted).to(beNil()); + expect(testStruct.middleRow3BuckleBelted).to(beNil()); + expect(testStruct.leftRow3BuckleBelted).to(beNil()); + expect(testStruct.rightRow3BuckleBelted).to(beNil()); + expect(testStruct.leftRearInflatableBelted).to(beNil()); + expect(testStruct.rightRearInflatableBelted).to(beNil()); + expect(testStruct.middleRow1BeltDeployed).to(beNil()); + expect(testStruct.middleRow1BuckleBelted).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBodyInformationSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBodyInformationSpec.m new file mode 100644 index 000000000..a13a7cc9c --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLBodyInformationSpec.m @@ -0,0 +1,71 @@ +// +// SDLBodyInformationSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLBodyInformation.h" +#import "SDLIgnitionStableStatus.h" +#import "SDLIgnitionStatus.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLBodyInformationSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLBodyInformation* testStruct = [[SDLBodyInformation alloc] init]; + + testStruct.parkBrakeActive = @YES; + testStruct.ignitionStableStatus = [SDLIgnitionStableStatus IGNITION_SWITCH_STABLE]; + testStruct.ignitionStatus = [SDLIgnitionStatus START]; + testStruct.driverDoorAjar = @NO; + testStruct.passengerDoorAjar = @NO; + testStruct.rearLeftDoorAjar = @NO; + testStruct.rearRightDoorAjar = @YES; + + expect(testStruct.parkBrakeActive).to(equal(@YES)); + expect(testStruct.ignitionStableStatus).to(equal([SDLIgnitionStableStatus IGNITION_SWITCH_STABLE])); + expect(testStruct.ignitionStatus).to(equal([SDLIgnitionStatus START])); + expect(testStruct.driverDoorAjar).to(equal(@NO)); + expect(testStruct.passengerDoorAjar).to(equal(@NO)); + expect(testStruct.rearLeftDoorAjar).to(equal(@NO)); + expect(testStruct.rearRightDoorAjar).to(equal(@YES)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_parkBrakeActive:@YES, + NAMES_ignitionStableStatus:[SDLIgnitionStableStatus IGNITION_SWITCH_NOT_STABLE], + NAMES_ignitionStatus:[SDLIgnitionStatus START], + NAMES_driverDoorAjar:@NO, + NAMES_passengerDoorAjar:@NO, + NAMES_rearLeftDoorAjar:@NO, + NAMES_rearRightDoorAjar:@YES} mutableCopy]; + SDLBodyInformation* testStruct = [[SDLBodyInformation alloc] initWithDictionary:dict]; + + expect(testStruct.parkBrakeActive).to(equal(@YES)); + expect(testStruct.ignitionStableStatus).to(equal([SDLIgnitionStableStatus IGNITION_SWITCH_NOT_STABLE])); + expect(testStruct.ignitionStatus).to(equal([SDLIgnitionStatus START])); + expect(testStruct.driverDoorAjar).to(equal(@NO)); + expect(testStruct.passengerDoorAjar).to(equal(@NO)); + expect(testStruct.rearLeftDoorAjar).to(equal(@NO)); + expect(testStruct.rearRightDoorAjar).to(equal(@YES)); + }); + + it(@"Should return nil if not set", ^ { + SDLBodyInformation* testStruct = [[SDLBodyInformation alloc] init]; + + expect(testStruct.parkBrakeActive).to(beNil()); + expect(testStruct.ignitionStableStatus).to(beNil()); + expect(testStruct.ignitionStatus).to(beNil()); + expect(testStruct.driverDoorAjar).to(beNil()); + expect(testStruct.passengerDoorAjar).to(beNil()); + expect(testStruct.rearLeftDoorAjar).to(beNil()); + expect(testStruct.rearRightDoorAjar).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLButtonCapabilitiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLButtonCapabilitiesSpec.m new file mode 100644 index 000000000..a5f753629 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLButtonCapabilitiesSpec.m @@ -0,0 +1,56 @@ +// +// SDLButtonCapabilitiesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLButtonCapabilities.h" +#import "SDLButtonName.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLButtonCapabilitiesSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLButtonCapabilities* testStruct = [[SDLButtonCapabilities alloc] init]; + + testStruct.name = [SDLButtonName TUNEUP]; + testStruct.shortPressAvailable = @YES; + testStruct.longPressAvailable = @YES; + testStruct.upDownAvailable = @NO; + + expect(testStruct.name).to(equal([SDLButtonName TUNEUP])); + expect(testStruct.shortPressAvailable).to(equal(@YES)); + expect(testStruct.longPressAvailable).to(equal(@YES)); + expect(testStruct.upDownAvailable).to(equal(@NO)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_name:[SDLButtonName CUSTOM_BUTTON], + NAMES_shortPressAvailable:@YES, + NAMES_longPressAvailable:@YES, + NAMES_upDownAvailable:@NO} mutableCopy]; + SDLButtonCapabilities* testStruct = [[SDLButtonCapabilities alloc] initWithDictionary:dict]; + + expect(testStruct.name).to(equal([SDLButtonName CUSTOM_BUTTON])); + expect(testStruct.shortPressAvailable).to(equal(@YES)); + expect(testStruct.longPressAvailable).to(equal(@YES)); + expect(testStruct.upDownAvailable).to(equal(@NO)); + }); + + it(@"Should return nil if not set", ^ { + SDLButtonCapabilities* testStruct = [[SDLButtonCapabilities alloc] init]; + + expect(testStruct.name).to(beNil()); + expect(testStruct.shortPressAvailable).to(beNil()); + expect(testStruct.longPressAvailable).to(beNil()); + expect(testStruct.upDownAvailable).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLChoiceSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLChoiceSpec.m new file mode 100644 index 000000000..63116976a --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLChoiceSpec.m @@ -0,0 +1,74 @@ +// +// SDLChoiceSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLChoice.h" +#import "SDLImage.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLChoiceSpec) + +__block SDLImage* image = [[SDLImage alloc] init]; +__block SDLImage* secondaryImage = [[SDLImage alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLChoice* testStruct = [[SDLChoice alloc] init]; + + testStruct.choiceID = @3; + testStruct.menuName = @"Hello"; + testStruct.vrCommands = [@[@"1", @"2"] mutableCopy]; + testStruct.image = image; + testStruct.secondaryText = @"Arbitrary"; + testStruct.tertiaryText = @"qwerty"; + testStruct.secondaryImage = secondaryImage; + + expect(testStruct.choiceID).to(equal(@3)); + expect(testStruct.menuName).to(equal(@"Hello")); + expect(testStruct.vrCommands).to(equal([@[@"1", @"2"] mutableCopy])); + expect(testStruct.image).to(equal(image)); + expect(testStruct.secondaryText).to(equal(@"Arbitrary")); + expect(testStruct.tertiaryText).to(equal(@"qwerty")); + expect(testStruct.secondaryImage).to(equal(secondaryImage)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_choiceID:@3, + NAMES_menuName:@"Hello", + NAMES_vrCommands:[@[@"1", @"2"] mutableCopy], + NAMES_image:image, + NAMES_secondaryText:@"Arbitrary", + NAMES_tertiaryText:@"qwerty", + NAMES_secondaryImage:secondaryImage} mutableCopy]; + SDLChoice* testStruct = [[SDLChoice alloc] initWithDictionary:dict]; + + expect(testStruct.choiceID).to(equal(@3)); + expect(testStruct.menuName).to(equal(@"Hello")); + expect(testStruct.vrCommands).to(equal([@[@"1", @"2"] mutableCopy])); + expect(testStruct.image).to(equal(image)); + expect(testStruct.secondaryText).to(equal(@"Arbitrary")); + expect(testStruct.tertiaryText).to(equal(@"qwerty")); + expect(testStruct.secondaryImage).to(equal(secondaryImage)); + }); + + it(@"Should return nil if not set", ^ { + SDLChoice* testStruct = [[SDLChoice alloc] init]; + + expect(testStruct.choiceID).to(beNil()); + expect(testStruct.menuName).to(beNil()); + expect(testStruct.vrCommands).to(beNil()); + expect(testStruct.image).to(beNil()); + expect(testStruct.secondaryText).to(beNil()); + expect(testStruct.tertiaryText).to(beNil()); + expect(testStruct.secondaryImage).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m new file mode 100644 index 000000000..8e74324cf --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m @@ -0,0 +1,57 @@ +// +// SDLClusterModeStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLCarModeStatus.h" +#import "SDLClusterModeStatus.h" +#import "SDLPowerModeQualificationStatus.h" +#import "SDLPowerModeStatus.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLClusterModeStatusSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLClusterModeStatus* testStruct = [[SDLClusterModeStatus alloc] init]; + + testStruct.powerModeActive = @YES; + testStruct.powerModeQualificationStatus = [SDLPowerModeQualificationStatus POWER_MODE_EVALUATION_IN_PROGRESS]; + testStruct.carModeStatus = [SDLCarModeStatus CRASH]; + testStruct.powerModeStatus = [SDLPowerModeStatus IGNITION_ON_2]; + + expect(testStruct.powerModeActive).to(equal(@YES)); + expect(testStruct.powerModeQualificationStatus).to(equal([SDLPowerModeQualificationStatus POWER_MODE_EVALUATION_IN_PROGRESS])); + expect(testStruct.carModeStatus).to(equal([SDLCarModeStatus CRASH])); + expect(testStruct.powerModeStatus).to(equal([SDLPowerModeStatus IGNITION_ON_2])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_powerModeActive:@NO, + NAMES_powerModeQualificationStatus:[SDLPowerModeQualificationStatus POWER_MODE_OK], + NAMES_carModeStatus:[SDLCarModeStatus CRASH], + NAMES_powerModeStatus:[SDLPowerModeStatus KEY_OUT]} mutableCopy]; + SDLClusterModeStatus* testStruct = [[SDLClusterModeStatus alloc] initWithDictionary:dict]; + + expect(testStruct.powerModeActive).to(equal(@NO)); + expect(testStruct.powerModeQualificationStatus).to(equal([SDLPowerModeQualificationStatus POWER_MODE_OK])); + expect(testStruct.carModeStatus).to(equal([SDLCarModeStatus CRASH])); + expect(testStruct.powerModeStatus).to(equal([SDLPowerModeStatus KEY_OUT])); + }); + + it(@"Should return nil if not set", ^ { + SDLClusterModeStatus* testStruct = [[SDLClusterModeStatus alloc] init]; + + expect(testStruct.powerModeActive).to(beNil()); + expect(testStruct.powerModeQualificationStatus).to(beNil()); + expect(testStruct.carModeStatus).to(beNil()); + expect(testStruct.powerModeStatus).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDIDResult.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDIDResult.m new file mode 100644 index 000000000..db626f959 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDIDResult.m @@ -0,0 +1,51 @@ +// +// SDLDIDResultSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDIDResult.h" +#import "SDLNames.h" +#import "SDLVehicleDataResultCode.h" + + +QuickSpecBegin(SDLDIDResultSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLDIDResult* testStruct = [[SDLDIDResult alloc] init]; + + testStruct.resultCode = [SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED]; + testStruct.didLocation = @300; + testStruct.data = @"gertwydhty4235tdhedt4tue"; + + expect(testStruct.resultCode).to(equal([SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED])); + expect(testStruct.didLocation).to(equal(@300)); + expect(testStruct.data).to(equal(@"gertwydhty4235tdhedt4tue")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_resultCode:[SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED], + NAMES_didLocation:@300, + NAMES_data:@"gertwydhty4235tdhedt4tue"} mutableCopy]; + SDLDIDResult* testStruct = [[SDLDIDResult alloc] initWithDictionary:dict]; + + expect(testStruct.resultCode).to(equal([SDLVehicleDataResultCode DATA_NOT_SUBSCRIBED])); + expect(testStruct.didLocation).to(equal(@300)); + expect(testStruct.data).to(equal(@"gertwydhty4235tdhedt4tue")); + }); + + it(@"Should return nil if not set", ^ { + SDLDIDResult* testStruct = [[SDLDIDResult alloc] init]; + + expect(testStruct.resultCode).to(beNil()); + expect(testStruct.didLocation).to(beNil()); + expect(testStruct.data).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceInfoSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceInfoSpec.m new file mode 100644 index 000000000..beb3b2d80 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceInfoSpec.m @@ -0,0 +1,64 @@ +// +// SDLDeviceInfoSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDeviceInfo.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLDeviceInfoSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLDeviceInfo* testStruct = [[SDLDeviceInfo alloc] init]; + + testStruct.hardware = @"GDFR34F"; + testStruct.firmwareRev = @"4.2a"; + testStruct.os = @"Robot"; + testStruct.osVersion = @"9.9"; + testStruct.carrier = @"ThatOneWirelessCompany"; + testStruct.maxNumberRFCOMMPorts = @20; + + expect(testStruct.hardware).to(equal(@"GDFR34F")); + expect(testStruct.firmwareRev).to(equal(@"4.2a")); + expect(testStruct.os).to(equal(@"Robot")); + expect(testStruct.osVersion).to(equal(@"9.9")); + expect(testStruct.carrier).to(equal(@"ThatOneWirelessCompany")); + expect(testStruct.maxNumberRFCOMMPorts).to(equal(@20)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_hardware:@"GDFR34F", + NAMES_firmwareRev:@"4.2a", + NAMES_os:@"Robot", + NAMES_osVersion:@"9.9", + NAMES_carrier:@"ThatOneWirelessCompany", + NAMES_maxNumberRFCOMMPorts:@20} mutableCopy]; + SDLDeviceInfo* testStruct = [[SDLDeviceInfo alloc] initWithDictionary:dict]; + + expect(testStruct.hardware).to(equal(@"GDFR34F")); + expect(testStruct.firmwareRev).to(equal(@"4.2a")); + expect(testStruct.os).to(equal(@"Robot")); + expect(testStruct.osVersion).to(equal(@"9.9")); + expect(testStruct.carrier).to(equal(@"ThatOneWirelessCompany")); + expect(testStruct.maxNumberRFCOMMPorts).to(equal(@20)); + }); + + it(@"Should return nil if not set", ^ { + SDLDeviceInfo* testStruct = [[SDLDeviceInfo alloc] init]; + + expect(testStruct.hardware).to(beNil()); + expect(testStruct.firmwareRev).to(beNil()); + expect(testStruct.os).to(beNil()); + expect(testStruct.osVersion).to(beNil()); + expect(testStruct.carrier).to(beNil()); + expect(testStruct.maxNumberRFCOMMPorts).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceStatusSpec.m new file mode 100644 index 000000000..1996e45a8 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDeviceStatusSpec.m @@ -0,0 +1,92 @@ +// +// SDLDeviceStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDeviceLevelStatus.h" +#import "SDLDeviceStatus.h" +#import "SDLNames.h" +#import "SDLPrimaryAudioSource.h" + + +QuickSpecBegin(SDLDeviceStatusSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLDeviceStatus* testStruct = [[SDLDeviceStatus alloc] init]; + + testStruct.voiceRecOn = @NO; + testStruct.btIconOn = @NO; + testStruct.callActive = @YES; + testStruct.phoneRoaming = @NO; + testStruct.textMsgAvailable = @YES; + testStruct.battLevelStatus = [SDLDeviceLevelStatus FOUR_LEVEL_BARS]; + testStruct.stereoAudioOutputMuted = @YES; + testStruct.monoAudioOutputMuted = @YES; + testStruct.signalLevelStatus = [SDLDeviceLevelStatus TWO_LEVEL_BARS]; + testStruct.primaryAudioSource = [SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST]; + testStruct.eCallEventActive = @NO; + + expect(testStruct.voiceRecOn).to(equal(@NO)); + expect(testStruct.btIconOn).to(equal(@NO)); + expect(testStruct.callActive).to(equal(@YES)); + expect(testStruct.phoneRoaming).to(equal(@NO)); + expect(testStruct.textMsgAvailable).to(equal(@YES)); + expect(testStruct.battLevelStatus).to(equal([SDLDeviceLevelStatus FOUR_LEVEL_BARS])); + expect(testStruct.stereoAudioOutputMuted).to(equal(@YES)); + expect(testStruct.monoAudioOutputMuted).to(equal(@YES)); + expect(testStruct.signalLevelStatus).to(equal([SDLDeviceLevelStatus TWO_LEVEL_BARS])); + expect(testStruct.primaryAudioSource).to(equal([SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST])); + expect(testStruct.eCallEventActive).to(equal(@NO)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_voiceRecOn:@NO, + NAMES_btIconOn:@NO, + NAMES_callActive:@YES, + NAMES_phoneRoaming:@NO, + NAMES_textMsgAvailable:@YES, + NAMES_battLevelStatus:[SDLDeviceLevelStatus FOUR_LEVEL_BARS], + NAMES_stereoAudioOutputMuted:@YES, + NAMES_monoAudioOutputMuted:@YES, + NAMES_signalLevelStatus:[SDLDeviceLevelStatus TWO_LEVEL_BARS], + NAMES_primaryAudioSource:[SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST], + NAMES_eCallEventActive:@NO} mutableCopy]; + SDLDeviceStatus* testStruct = [[SDLDeviceStatus alloc] initWithDictionary:dict]; + + expect(testStruct.voiceRecOn).to(equal(@NO)); + expect(testStruct.btIconOn).to(equal(@NO)); + expect(testStruct.callActive).to(equal(@YES)); + expect(testStruct.phoneRoaming).to(equal(@NO)); + expect(testStruct.textMsgAvailable).to(equal(@YES)); + expect(testStruct.battLevelStatus).to(equal([SDLDeviceLevelStatus FOUR_LEVEL_BARS])); + expect(testStruct.stereoAudioOutputMuted).to(equal(@YES)); + expect(testStruct.monoAudioOutputMuted).to(equal(@YES)); + expect(testStruct.signalLevelStatus).to(equal([SDLDeviceLevelStatus TWO_LEVEL_BARS])); + expect(testStruct.primaryAudioSource).to(equal([SDLPrimaryAudioSource BLUETOOTH_STEREO_BTST])); + expect(testStruct.eCallEventActive).to(equal(@NO)); + }); + + it(@"Should return nil if not set", ^ { + SDLDeviceStatus* testStruct = [[SDLDeviceStatus alloc] init]; + + expect(testStruct.voiceRecOn).to(beNil()); + expect(testStruct.btIconOn).to(beNil()); + expect(testStruct.callActive).to(beNil()); + expect(testStruct.phoneRoaming).to(beNil()); + expect(testStruct.textMsgAvailable).to(beNil()); + expect(testStruct.battLevelStatus).to(beNil()); + expect(testStruct.stereoAudioOutputMuted).to(beNil()); + expect(testStruct.monoAudioOutputMuted).to(beNil()); + expect(testStruct.signalLevelStatus).to(beNil()); + expect(testStruct.primaryAudioSource).to(beNil()); + expect(testStruct.eCallEventActive).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDisplayCapabilitiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDisplayCapabilitiesSpec.m new file mode 100644 index 000000000..02cac7f54 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDisplayCapabilitiesSpec.m @@ -0,0 +1,84 @@ +// +// SDLDisplayCapabilitiesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLDisplayCapabilities.h" +#import "SDLDisplayType.h" +#import "SDLImageField.h" +#import "SDLMediaClockFormat.h" +#import "SDLNames.h" +#import "SDLScreenParams.h" +#import "SDLTextField.h" + + +QuickSpecBegin(SDLDisplayCapabilitiesSpec) + +SDLScreenParams* screenParams = [[SDLScreenParams alloc] init]; +SDLTextField* textField = [[SDLTextField alloc] init]; +SDLImageField* imageField = [[SDLImageField alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLDisplayCapabilities* testStruct = [[SDLDisplayCapabilities alloc] init]; + + testStruct.displayType = [SDLDisplayType GEN2_6_DMA]; + testStruct.textFields = [@[textField] mutableCopy]; + testStruct.imageFields = [@[imageField] mutableCopy]; + testStruct.mediaClockFormats = [@[[SDLMediaClockFormat CLOCKTEXT1], [SDLMediaClockFormat CLOCK3], [SDLMediaClockFormat CLOCKTEXT3]] copy]; + testStruct.graphicSupported = @YES; + testStruct.templatesAvailable = [@[@"String", @"String", @"String"] mutableCopy]; + testStruct.screenParams = screenParams; + testStruct.numCustomPresetsAvailable = @43; + + expect(testStruct.displayType).to(equal([SDLDisplayType GEN2_6_DMA])); + expect(testStruct.textFields).to(equal([@[textField] mutableCopy])); + expect(testStruct.imageFields).to(equal([@[imageField] mutableCopy])); + expect(testStruct.mediaClockFormats).to(equal([@[[SDLMediaClockFormat CLOCKTEXT1], [SDLMediaClockFormat CLOCK3], [SDLMediaClockFormat CLOCKTEXT3]] copy])); + expect(testStruct.graphicSupported).to(equal(@YES)); + expect(testStruct.templatesAvailable).to(equal([@[@"String", @"String", @"String"] mutableCopy])); + expect(testStruct.screenParams).to(equal(screenParams)); + expect(testStruct.numCustomPresetsAvailable).to(equal(@43)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_displayType:[SDLDisplayType GEN2_6_DMA], + NAMES_textFields:[@[textField] mutableCopy], + NAMES_imageFields:[@[imageField] mutableCopy], + NAMES_mediaClockFormats:[@[[SDLMediaClockFormat CLOCKTEXT1], [SDLMediaClockFormat CLOCK3], [SDLMediaClockFormat CLOCKTEXT3]] copy], + NAMES_graphicSupported:@YES, + NAMES_templatesAvailable:[@[@"String", @"String", @"String"] mutableCopy], + NAMES_screenParams:screenParams, + NAMES_numCustomPresetsAvailable:@43} mutableCopy]; + SDLDisplayCapabilities* testStruct = [[SDLDisplayCapabilities alloc] initWithDictionary:dict]; + + expect(testStruct.displayType).to(equal([SDLDisplayType GEN2_6_DMA])); + expect(testStruct.textFields).to(equal([@[textField] mutableCopy])); + expect(testStruct.imageFields).to(equal([@[imageField] mutableCopy])); + expect(testStruct.mediaClockFormats).to(equal([@[[SDLMediaClockFormat CLOCKTEXT1], [SDLMediaClockFormat CLOCK3], [SDLMediaClockFormat CLOCKTEXT3]] copy])); + expect(testStruct.graphicSupported).to(equal(@YES)); + expect(testStruct.templatesAvailable).to(equal([@[@"String", @"String", @"String"] mutableCopy])); + expect(testStruct.screenParams).to(equal(screenParams)); + expect(testStruct.numCustomPresetsAvailable).to(equal(@43)); + }); + + it(@"Should return nil if not set", ^ { + SDLDisplayCapabilities* testStruct = [[SDLDisplayCapabilities alloc] init]; + + expect(testStruct.displayType).to(beNil()); + expect(testStruct.textFields).to(beNil()); + expect(testStruct.imageFields).to(beNil()); + expect(testStruct.mediaClockFormats).to(beNil()); + expect(testStruct.graphicSupported).to(beNil()); + expect(testStruct.templatesAvailable).to(beNil()); + expect(testStruct.screenParams).to(beNil()); + expect(testStruct.numCustomPresetsAvailable).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLECallInfoSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLECallInfoSpec.m new file mode 100644 index 000000000..28e226187 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLECallInfoSpec.m @@ -0,0 +1,52 @@ +// +// SDLECallInfoSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLVehicleDataNotificationStatus.h" +#import "SDLECallConfirmationStatus.h" +#import "SDLECallInfo.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLECallInfoSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLECallInfo* testStruct = [[SDLECallInfo alloc] init]; + + testStruct.eCallNotificationStatus = [SDLVehicleDataNotificationStatus NORMAL]; + testStruct.auxECallNotificationStatus = [SDLVehicleDataNotificationStatus ACTIVE]; + testStruct.eCallConfirmationStatus = [SDLECallConfirmationStatus CALL_IN_PROGRESS]; + + expect(testStruct.eCallNotificationStatus).to(equal([SDLVehicleDataNotificationStatus NORMAL])); + expect(testStruct.auxECallNotificationStatus).to(equal([SDLVehicleDataNotificationStatus ACTIVE])); + expect(testStruct.eCallConfirmationStatus).to(equal([SDLECallConfirmationStatus CALL_IN_PROGRESS])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_eCallNotificationStatus:[SDLVehicleDataNotificationStatus NORMAL], + NAMES_auxECallNotificationStatus:[SDLVehicleDataNotificationStatus ACTIVE], + NAMES_eCallConfirmationStatus:[SDLECallConfirmationStatus CALL_IN_PROGRESS]} mutableCopy]; + SDLECallInfo* testStruct = [[SDLECallInfo alloc] initWithDictionary:dict]; + + expect(testStruct.eCallNotificationStatus).to(equal([SDLVehicleDataNotificationStatus NORMAL])); + expect(testStruct.auxECallNotificationStatus).to(equal([SDLVehicleDataNotificationStatus ACTIVE])); + expect(testStruct.eCallConfirmationStatus).to(equal([SDLECallConfirmationStatus CALL_IN_PROGRESS])); + }); + + it(@"Should return nil if not set", ^ { + SDLECallInfo* testStruct = [[SDLECallInfo alloc] init]; + + expect(testStruct.eCallNotificationStatus).to(beNil()); + expect(testStruct.auxECallNotificationStatus).to(beNil()); + expect(testStruct.eCallConfirmationStatus).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLEmergencyEventSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLEmergencyEventSpec.m new file mode 100644 index 000000000..c67f45d45 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLEmergencyEventSpec.m @@ -0,0 +1,63 @@ +// +// SDLEmergencyEventSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLEmergencyEvent.h" +#import "SDLEmergencyEventType.h" +#import "SDLFuelCutoffStatus.h" +#import "SDLNames.h" +#import "SDLVehicleDataEventStatus.h" + + +QuickSpecBegin(SDLEmergencyEventSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLEmergencyEvent* testStruct = [[SDLEmergencyEvent alloc] init]; + + testStruct.emergencyEventType = [SDLEmergencyEventType FRONTAL]; + testStruct.fuelCutoffStatus = [SDLFuelCutoffStatus NORMAL_OPERATION]; + testStruct.rolloverEvent = [SDLVehicleDataEventStatus _YES]; + testStruct.maximumChangeVelocity = @33; + testStruct.multipleEvents = [SDLVehicleDataEventStatus _NO]; + + expect(testStruct.emergencyEventType).to(equal([SDLEmergencyEventType FRONTAL])); + expect(testStruct.fuelCutoffStatus).to(equal([SDLFuelCutoffStatus NORMAL_OPERATION])); + expect(testStruct.rolloverEvent).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.maximumChangeVelocity).to(equal(@33)); + expect(testStruct.multipleEvents).to(equal([SDLVehicleDataEventStatus _NO])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_emergencyEventType:[SDLEmergencyEventType FRONTAL], + NAMES_fuelCutoffStatus:[SDLFuelCutoffStatus NORMAL_OPERATION], + NAMES_rolloverEvent:[SDLVehicleDataEventStatus _YES], + NAMES_maximumChangeVelocity:@33, + NAMES_multipleEvents:[SDLVehicleDataEventStatus _NO]} mutableCopy]; + SDLEmergencyEvent* testStruct = [[SDLEmergencyEvent alloc] initWithDictionary:dict]; + + expect(testStruct.emergencyEventType).to(equal([SDLEmergencyEventType FRONTAL])); + expect(testStruct.fuelCutoffStatus).to(equal([SDLFuelCutoffStatus NORMAL_OPERATION])); + expect(testStruct.rolloverEvent).to(equal([SDLVehicleDataEventStatus _YES])); + expect(testStruct.maximumChangeVelocity).to(equal(@33)); + expect(testStruct.multipleEvents).to(equal([SDLVehicleDataEventStatus _NO])); + }); + + it(@"Should return nil if not set", ^ { + SDLEmergencyEvent* testStruct = [[SDLEmergencyEvent alloc] init]; + + expect(testStruct.emergencyEventType).to(beNil()); + expect(testStruct.fuelCutoffStatus).to(beNil()); + expect(testStruct.rolloverEvent).to(beNil()); + expect(testStruct.maximumChangeVelocity).to(beNil()); + expect(testStruct.multipleEvents).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLGPSDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLGPSDataSpec.m new file mode 100644 index 000000000..6d19dbf77 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLGPSDataSpec.m @@ -0,0 +1,127 @@ +// +// SDLGPSDataSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLCompassDirection.h" +#import "SDLDimension.h" +#import "SDLGPSData.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLGPSDataSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLGPSData* testStruct = [[SDLGPSData alloc] init]; + + testStruct.longitudeDegrees = @31.41592653589793; + testStruct.latitudeDegrees = @45; + testStruct.utcYear = @2015; + testStruct.utcMonth = @1; + testStruct.utcDay = @26; + testStruct.utcHours = @23; + testStruct.utcMinutes = @59; + testStruct.utcSeconds = @59; + testStruct.compassDirection = [SDLCompassDirection SOUTHEAST]; + testStruct.pdop = @3.4; + testStruct.hdop = @9.9; + testStruct.vdop = @0; + testStruct.actual = @NO; + testStruct.satellites = @12; + testStruct.dimension = [SDLDimension _3D]; + testStruct.altitude = @3000; + testStruct.heading = @96; + testStruct.speed = @64; + + expect(testStruct.longitudeDegrees).to(equal(@31.41592653589793)); + expect(testStruct.latitudeDegrees).to(equal(@45)); + expect(testStruct.utcYear).to(equal(@2015)); + expect(testStruct.utcMonth).to(equal(@1)); + expect(testStruct.utcDay).to(equal(@26)); + expect(testStruct.utcHours).to(equal(@23)); + expect(testStruct.utcMinutes).to(equal(@59)); + expect(testStruct.utcSeconds).to(equal(@59)); + expect(testStruct.compassDirection).to(equal([SDLCompassDirection SOUTHEAST])); + expect(testStruct.pdop).to(equal(@3.4)); + expect(testStruct.hdop).to(equal(@9.9)); + expect(testStruct.vdop).to(equal(@0)); + expect(testStruct.actual).to(equal(@NO)); + expect(testStruct.satellites).to(equal(@12)); + expect(testStruct.dimension).to(equal([SDLDimension _3D])); + expect(testStruct.altitude).to(equal(@3000)); + expect(testStruct.heading).to(equal(@96)); + expect(testStruct.speed).to(equal(@64)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_longitudeDegrees:@31.41592653589793, + NAMES_latitudeDegrees:@45, + NAMES_utcYear:@2015, + NAMES_utcMonth:@1, + NAMES_utcDay:@26, + NAMES_utcHours:@23, + NAMES_utcMinutes:@59, + NAMES_utcSeconds:@59, + NAMES_compassDirection:[SDLCompassDirection SOUTHEAST], + NAMES_pdop:@3.4, + NAMES_hdop:@9.9, + NAMES_vdop:@0, + NAMES_actual:@NO, + NAMES_satellites:@12, + NAMES_dimension:[SDLDimension _3D], + NAMES_altitude:@3000, + NAMES_heading:@96, + NAMES_speed:@64} mutableCopy]; + SDLGPSData* testStruct = [[SDLGPSData alloc] initWithDictionary:dict]; + + expect(testStruct.longitudeDegrees).to(equal(@31.41592653589793)); + expect(testStruct.latitudeDegrees).to(equal(@45)); + expect(testStruct.utcYear).to(equal(@2015)); + expect(testStruct.utcMonth).to(equal(@1)); + expect(testStruct.utcDay).to(equal(@26)); + expect(testStruct.utcHours).to(equal(@23)); + expect(testStruct.utcMinutes).to(equal(@59)); + expect(testStruct.utcSeconds).to(equal(@59)); + expect(testStruct.compassDirection).to(equal([SDLCompassDirection SOUTHEAST])); + expect(testStruct.pdop).to(equal(@3.4)); + expect(testStruct.hdop).to(equal(@9.9)); + expect(testStruct.vdop).to(equal(@0)); + expect(testStruct.actual).to(equal(@NO)); + expect(testStruct.satellites).to(equal(@12)); + expect(testStruct.dimension).to(equal([SDLDimension _3D])); + expect(testStruct.altitude).to(equal(@3000)); + expect(testStruct.heading).to(equal(@96)); + expect(testStruct.speed).to(equal(@64)); + }); + + it(@"Should return nil if not set", ^ { + SDLGPSData* testStruct = [[SDLGPSData alloc] init]; + + expect(testStruct.longitudeDegrees).to(beNil()); + expect(testStruct.latitudeDegrees).to(beNil()); + expect(testStruct.utcYear).to(beNil()); + expect(testStruct.utcMonth).to(beNil()); + expect(testStruct.utcDay).to(beNil()); + expect(testStruct.utcHours).to(beNil()); + expect(testStruct.utcMinutes).to(beNil()); + expect(testStruct.utcSeconds).to(beNil()); + expect(testStruct.compassDirection).to(beNil()); + expect(testStruct.pdop).to(beNil()); + expect(testStruct.hdop).to(beNil()); + expect(testStruct.vdop).to(beNil()); + expect(testStruct.actual).to(beNil()); + expect(testStruct.satellites).to(beNil()); + expect(testStruct.dimension).to(beNil()); + expect(testStruct.altitude).to(beNil()); + expect(testStruct.heading).to(beNil()); + expect(testStruct.speed).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m new file mode 100644 index 000000000..e9935bedf --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m @@ -0,0 +1,69 @@ +// +// SDLHMICapabilitiesSpec.m +// SmartDeviceLink-iOS +// + +#import +#import + +#import "SDLHMICapabilities.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLHMICapabilitiesSpec) + +describe(@"SDLHMICapabilities struct", ^{ + __block SDLHMICapabilities *testStruct = nil; + __block NSNumber *somePhoneCallState = @NO; + __block NSNumber *someNavigationState = @YES; + + context(@"When initialized with properties", ^{ + beforeEach(^{ + testStruct = [[SDLHMICapabilities alloc] init]; + testStruct.phoneCall = somePhoneCallState; + testStruct.navigation = someNavigationState; + }); + + it(@"should properly set phone call", ^{ + expect(testStruct.phoneCall).to(equal(somePhoneCallState)); + }); + + it(@"should properly set navigation", ^{ + expect(testStruct.navigation).to(equal(someNavigationState)); + }); + }); + + context(@"When initialized with a dictionary", ^{ + beforeEach(^{ + NSDictionary *structInitDict = @{ + NAMES_navigation: someNavigationState, + NAMES_phoneCall: somePhoneCallState + }; + testStruct = [[SDLHMICapabilities alloc] initWithDictionary:[structInitDict mutableCopy]]; + }); + + it(@"should properly set phone call", ^{ + expect(testStruct.phoneCall).to(equal(somePhoneCallState)); + }); + + it(@"should properly set navigation", ^{ + expect(testStruct.navigation).to(equal(someNavigationState)); + }); + }); + + context(@"When not initialized", ^{ + beforeEach(^{ + testStruct = nil; + }); + + it(@"phoneCall should be nil", ^{ + expect(testStruct.phoneCall).to(beNil()); + }); + + it(@"navigation should be nil", ^{ + expect(testStruct.navigation).to(beNil()); + }); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMIPermissionsSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMIPermissionsSpec.m new file mode 100644 index 000000000..63df146cb --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMIPermissionsSpec.m @@ -0,0 +1,45 @@ +// +// SDLHMIPermissionsSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLHMIPermissions.h" +#import "SDLHMILevel.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLHMIPermissionsSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLHMIPermissions* testStruct = [[SDLHMIPermissions alloc] init]; + + testStruct.allowed = [@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy]; + testStruct.userDisallowed = [@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy]; + + expect(testStruct.allowed).to(equal([@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy])); + expect(testStruct.userDisallowed).to(equal([@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_allowed:[@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy], + NAMES_userDisallowed:[@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy]} mutableCopy]; + SDLHMIPermissions* testStruct = [[SDLHMIPermissions alloc] initWithDictionary:dict]; + + expect(testStruct.allowed).to(equal([@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy])); + expect(testStruct.userDisallowed).to(equal([@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy])); + }); + + it(@"Should return nil if not set", ^ { + SDLHMIPermissions* testStruct = [[SDLHMIPermissions alloc] init]; + + expect(testStruct.allowed).to(beNil()); + expect(testStruct.userDisallowed).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHeadLampStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHeadLampStatusSpec.m new file mode 100644 index 000000000..b418b962b --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHeadLampStatusSpec.m @@ -0,0 +1,51 @@ +// +// SDLHeadLampStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLAmbientLightStatus.h" +#import "SDLHeadLampStatus.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLHeadLampStatusSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLHeadLampStatus* testStruct = [[SDLHeadLampStatus alloc] init]; + + testStruct.lowBeamsOn = @YES; + testStruct.highBeamsOn = @NO; + testStruct.ambientLightSensorStatus = [SDLAmbientLightStatus TWILIGHT_3]; + + expect(testStruct.lowBeamsOn).to(equal(@YES)); + expect(testStruct.highBeamsOn).to(equal(@NO)); + expect(testStruct.ambientLightSensorStatus).to(equal([SDLAmbientLightStatus TWILIGHT_3])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_lowBeamsOn:@YES, + NAMES_highBeamsOn:@NO, + NAMES_ambientLightSensorStatus:[SDLAmbientLightStatus TWILIGHT_3]} mutableCopy]; + SDLHeadLampStatus* testStruct = [[SDLHeadLampStatus alloc] initWithDictionary:dict]; + + expect(testStruct.lowBeamsOn).to(equal(@YES)); + expect(testStruct.highBeamsOn).to(equal(@NO)); + expect(testStruct.ambientLightSensorStatus).to(equal([SDLAmbientLightStatus TWILIGHT_3])); + }); + + it(@"Should return nil if not set", ^ { + SDLHeadLampStatus* testStruct = [[SDLHeadLampStatus alloc] init]; + + expect(testStruct.lowBeamsOn).to(beNil()); + expect(testStruct.highBeamsOn).to(beNil()); + expect(testStruct.ambientLightSensorStatus).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageFieldSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageFieldSpec.m new file mode 100644 index 000000000..2bcef11f1 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageFieldSpec.m @@ -0,0 +1,55 @@ +// +// SDLImageFieldSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLFileType.h" +#import "SDLImageField.h" +#import "SDLImageFieldName.h" +#import "SDLImageResolution.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLImageFieldSpec) + +SDLImageResolution* resolution = [[SDLImageResolution alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLImageField* testStruct = [[SDLImageField alloc] init]; + + testStruct.name = [SDLImageFieldName turnIcon]; + testStruct.imageTypeSupported = [@[[SDLFileType GRAPHIC_PNG], [SDLFileType GRAPHIC_JPEG]] copy]; + testStruct.imageResolution = resolution; + + expect(testStruct.name).to(equal([SDLImageFieldName turnIcon])); + expect(testStruct.imageTypeSupported).to(equal([@[[SDLFileType GRAPHIC_PNG], [SDLFileType GRAPHIC_JPEG]] copy])); + expect(testStruct.imageResolution).to(equal(resolution)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_name:[SDLImageFieldName turnIcon], + NAMES_imageTypeSupported:[@[[SDLFileType GRAPHIC_PNG], [SDLFileType GRAPHIC_JPEG]] copy], + NAMES_imageResolution:resolution} mutableCopy]; + SDLImageField* testStruct = [[SDLImageField alloc] initWithDictionary:dict]; + + expect(testStruct.name).to(equal([SDLImageFieldName turnIcon])); + expect(testStruct.imageTypeSupported).to(equal([@[[SDLFileType GRAPHIC_PNG], [SDLFileType GRAPHIC_JPEG]] copy])); + expect(testStruct.imageResolution).to(equal(resolution)); + }); + + it(@"Should return nil if not set", ^ { + SDLImageField* testStruct = [[SDLImageField alloc] init]; + + expect(testStruct.name).to(beNil()); + expect(testStruct.imageTypeSupported).to(beNil()); + expect(testStruct.imageResolution).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageSpec.m new file mode 100644 index 000000000..dba2d630e --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLImageSpec.m @@ -0,0 +1,46 @@ +// +// SDLImageSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLImage.h" +#import "SDLImageType.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLImageSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLImage* testStruct = [[SDLImage alloc] init]; + + testStruct.value = @"value"; + testStruct.imageType = [SDLImageType STATIC]; + + expect(testStruct.value).to(equal(@"value")); + expect(testStruct.imageType).to(equal([SDLImageType STATIC])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_value:@"value", + NAMES_imageType:[SDLImageType STATIC]} mutableCopy]; + SDLImage* testStruct = [[SDLImage alloc] initWithDictionary:dict]; + + expect(testStruct.value).to(equal(@"value")); + expect(testStruct.imageType).to(equal([SDLImageType STATIC])); + }); + + it(@"Should return nil if not set", ^ { + SDLImage* testStruct = [[SDLImage alloc] init]; + + expect(testStruct.value).to(beNil()); + expect(testStruct.imageType).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLKeyboardPropertiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLKeyboardPropertiesSpec.m new file mode 100644 index 000000000..3e6793b62 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLKeyboardPropertiesSpec.m @@ -0,0 +1,63 @@ +// +// SDLKeyboardPropertiesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLKeyboardLayout.h" +#import "SDLKeypressMode.h" +#import "SDLKeyboardProperties.h" +#import "SDLLanguage.h" +#import "SDLNames.h" + + +QuickSpecBegin(SDLKeyboardPropertiesSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLKeyboardProperties* testStruct = [[SDLKeyboardProperties alloc] init]; + + testStruct.language = [SDLLanguage DA_DK]; + testStruct.keyboardLayout = [SDLKeyboardLayout QWERTZ]; + testStruct.keypressMode = [SDLKeypressMode RESEND_CURRENT_ENTRY]; + testStruct.limitedCharacterList = [@[@"s", @"r", @"f", @"q"] mutableCopy]; + testStruct.autoCompleteText = @"Auto Carrot"; + + expect(testStruct.language).to(equal([SDLLanguage DA_DK])); + expect(testStruct.keyboardLayout).to(equal([SDLKeyboardLayout QWERTZ])); + expect(testStruct.keypressMode).to(equal([SDLKeypressMode RESEND_CURRENT_ENTRY])); + expect(testStruct.limitedCharacterList).to(equal([@[@"s", @"r", @"f", @"q"] mutableCopy])); + expect(testStruct.autoCompleteText).to(equal(@"Auto Carrot")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_language:[SDLLanguage DA_DK], + NAMES_keyboardLayout:[SDLKeyboardLayout QWERTZ], + NAMES_keypressMode:[SDLKeypressMode RESEND_CURRENT_ENTRY], + NAMES_limitedCharacterList:[@[@"s", @"r", @"f", @"q"] mutableCopy], + NAMES_autoCompleteText:@"Auto Carrot"} mutableCopy]; + SDLKeyboardProperties* testStruct = [[SDLKeyboardProperties alloc] initWithDictionary:dict]; + + expect(testStruct.language).to(equal([SDLLanguage DA_DK])); + expect(testStruct.keyboardLayout).to(equal([SDLKeyboardLayout QWERTZ])); + expect(testStruct.keypressMode).to(equal([SDLKeypressMode RESEND_CURRENT_ENTRY])); + expect(testStruct.limitedCharacterList).to(equal([@[@"s", @"r", @"f", @"q"] mutableCopy])); + expect(testStruct.autoCompleteText).to(equal(@"Auto Carrot")); + }); + + it(@"Should return nil if not set", ^ { + SDLKeyboardProperties* testStruct = [[SDLKeyboardProperties alloc] init]; + + expect(testStruct.language).to(beNil()); + expect(testStruct.keyboardLayout).to(beNil()); + expect(testStruct.keypressMode).to(beNil()); + expect(testStruct.limitedCharacterList).to(beNil()); + expect(testStruct.autoCompleteText).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMenuParamsSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMenuParamsSpec.m new file mode 100644 index 000000000..3d6bc6462 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMenuParamsSpec.m @@ -0,0 +1,49 @@ +// +// SDLMenuParamsSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLMenuParams.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLMenuParamsSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLMenuParams* testStruct = [[SDLMenuParams alloc] init]; + + testStruct.parentID = @504320489; + testStruct.position = @256; + testStruct.menuName = @"Menu"; + + expect(testStruct.parentID).to(equal(@504320489)); + expect(testStruct.position).to(equal(@256)); + expect(testStruct.menuName).to(equal(@"Menu")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_parentID:@504320489, + NAMES_position:@256, + NAMES_menuName:@"Menu"} mutableCopy]; + SDLMenuParams* testStruct = [[SDLMenuParams alloc] initWithDictionary:dict]; + + expect(testStruct.parentID).to(equal(@504320489)); + expect(testStruct.position).to(equal(@256)); + expect(testStruct.menuName).to(equal(@"Menu")); + }); + + it(@"Should return nil if not set", ^ { + SDLMenuParams* testStruct = [[SDLMenuParams alloc] init]; + + expect(testStruct.parentID).to(beNil()); + expect(testStruct.position).to(beNil()); + expect(testStruct.menuName).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMyKeySpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMyKeySpec.m new file mode 100644 index 000000000..c442e2cfc --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLMyKeySpec.m @@ -0,0 +1,41 @@ +// +// SDLMyKeySpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLMyKey.h" +#import "SDLNames.h" +#import "SDLVehicleDataStatus.h" + + +QuickSpecBegin(SDLMyKeySpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLMyKey* testStruct = [[SDLMyKey alloc] init]; + + testStruct.e911Override = [SDLVehicleDataStatus OFF]; + + expect(testStruct.e911Override).to(equal([SDLVehicleDataStatus OFF])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_e911Override:[SDLVehicleDataStatus ON]} mutableCopy]; + SDLMyKey* testStruct = [[SDLMyKey alloc] initWithDictionary:dict]; + + expect(testStruct.e911Override).to(equal([SDLVehicleDataStatus ON])); + }); + + it(@"Should return nil if not set", ^ { + SDLMyKey* testStruct = [[SDLMyKey alloc] init]; + + expect(testStruct.e911Override).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLParameterPermissionsSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLParameterPermissionsSpec.m new file mode 100644 index 000000000..08e375e9f --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLParameterPermissionsSpec.m @@ -0,0 +1,45 @@ +// +// SDLParameterPermissionsSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLParameterPermissions.h" +#import "SDLHMILevel.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLParameterPermissionsSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLParameterPermissions* testStruct = [[SDLParameterPermissions alloc] init]; + + testStruct.allowed = [@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy]; + testStruct.userDisallowed = [@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy]; + + expect(testStruct.allowed).to(equal([@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy])); + expect(testStruct.userDisallowed).to(equal([@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_allowed:[@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy], + NAMES_userDisallowed:[@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy]} mutableCopy]; + SDLParameterPermissions* testStruct = [[SDLParameterPermissions alloc] initWithDictionary:dict]; + + expect(testStruct.allowed).to(equal([@[[SDLHMILevel BACKGROUND], [SDLHMILevel FULL]] copy])); + expect(testStruct.userDisallowed).to(equal([@[[SDLHMILevel NONE], [SDLHMILevel LIMITED]] copy])); + }); + + it(@"Should return nil if not set", ^ { + SDLParameterPermissions* testStruct = [[SDLParameterPermissions alloc] init]; + + expect(testStruct.allowed).to(beNil()); + expect(testStruct.userDisallowed).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPermissionItemSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPermissionItemSpec.m new file mode 100644 index 000000000..0e5b367d1 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPermissionItemSpec.m @@ -0,0 +1,54 @@ +// +// SDLPermissionItemSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLHMIPermissions.h" +#import "SDLParameterPermissions.h" +#import "SDLPermissionItem.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLPermissionItemSpec) + +SDLHMIPermissions* hmiPermissions = [[SDLHMIPermissions alloc] init]; +SDLParameterPermissions* parameterPermissions = [[SDLParameterPermissions alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLPermissionItem* testStruct = [[SDLPermissionItem alloc] init]; + + testStruct.rpcName = @"RPCNameThing"; + testStruct.hmiPermissions = hmiPermissions; + testStruct.parameterPermissions = parameterPermissions; + + expect(testStruct.rpcName).to(equal(@"RPCNameThing")); + expect(testStruct.hmiPermissions).to(equal(hmiPermissions)); + expect(testStruct.parameterPermissions).to(equal(parameterPermissions)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_rpcName:@"RPCNameThing", + NAMES_hmiPermissions:hmiPermissions, + NAMES_parameterPermissions:parameterPermissions} mutableCopy]; + SDLPermissionItem* testStruct = [[SDLPermissionItem alloc] initWithDictionary:dict]; + + expect(testStruct.rpcName).to(equal(@"RPCNameThing")); + expect(testStruct.hmiPermissions).to(equal(hmiPermissions)); + expect(testStruct.parameterPermissions).to(equal(parameterPermissions)); + }); + + it(@"Should return nil if not set", ^ { + SDLPermissionItem* testStruct = [[SDLPermissionItem alloc] init]; + + expect(testStruct.rpcName).to(beNil()); + expect(testStruct.hmiPermissions).to(beNil()); + expect(testStruct.parameterPermissions).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPresetBankCapabilitiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPresetBankCapabilitiesSpec.m new file mode 100644 index 000000000..f473c60b6 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLPresetBankCapabilitiesSpec.m @@ -0,0 +1,39 @@ +// +// SDLPresetBankCapabilitiesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLPresetBankCapabilities.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLPresetBankCapabilitiesSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLPresetBankCapabilities* testStruct = [[SDLPresetBankCapabilities alloc] init]; + + testStruct.onScreenPresetsAvailable = @NO; + + expect(testStruct.onScreenPresetsAvailable).to(equal(@NO)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_onScreenPresetsAvailable:@YES} mutableCopy]; + SDLPresetBankCapabilities* testStruct = [[SDLPresetBankCapabilities alloc] initWithDictionary:dict]; + + expect(testStruct.onScreenPresetsAvailable).to(equal(@YES)); + }); + + it(@"Should return nil if not set", ^ { + SDLPresetBankCapabilities* testStruct = [[SDLPresetBankCapabilities alloc] init]; + + expect(testStruct.onScreenPresetsAvailable).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLScreenParamsSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLScreenParamsSpec.m new file mode 100644 index 000000000..0438b8a21 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLScreenParamsSpec.m @@ -0,0 +1,50 @@ +// +// SDLScreenParamsSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLImageResolution.h" +#import "SDLNames.h" +#import "SDLScreenParams.h" +#import "SDLTouchEventCapabilities.h" + + +QuickSpecBegin(SDLScreenParamsSpec) + +SDLImageResolution* resolution = [[SDLImageResolution alloc] init]; +SDLTouchEventCapabilities* capabilities = [[SDLTouchEventCapabilities alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLScreenParams* testStruct = [[SDLScreenParams alloc] init]; + + testStruct.resolution = resolution; + testStruct.touchEventAvailable = capabilities; + + expect(testStruct.resolution).to(equal(resolution)); + expect(testStruct.touchEventAvailable).to(equal(capabilities)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_resolution:resolution, + NAMES_touchEventAvailable:capabilities} mutableCopy]; + SDLScreenParams* testStruct = [[SDLScreenParams alloc] initWithDictionary:dict]; + + expect(testStruct.resolution).to(equal(resolution)); + expect(testStruct.touchEventAvailable).to(equal(capabilities)); + }); + + it(@"Should return nil if not set", ^ { + SDLScreenParams* testStruct = [[SDLScreenParams alloc] init]; + + expect(testStruct.resolution).to(beNil()); + expect(testStruct.touchEventAvailable).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSingleTireStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSingleTireStatusSpec.m new file mode 100644 index 000000000..6482a4f75 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSingleTireStatusSpec.m @@ -0,0 +1,40 @@ +// +// SDLSingleTireStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSingleTireStatus.h" +#import "SDLComponentVolumeStatus.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSingleTireStatusSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSingleTireStatus* testStruct = [[SDLSingleTireStatus alloc] init]; + + testStruct.status = [SDLComponentVolumeStatus NORMAL]; + + expect(testStruct.status).to(equal([SDLComponentVolumeStatus NORMAL])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_status:[SDLComponentVolumeStatus LOW]} mutableCopy]; + SDLSingleTireStatus* testStruct = [[SDLSingleTireStatus alloc] initWithDictionary:dict]; + + expect(testStruct.status).to(equal([SDLComponentVolumeStatus LOW])); + }); + + it(@"Should return nil if not set", ^ { + SDLSingleTireStatus* testStruct = [[SDLSingleTireStatus alloc] init]; + + expect(testStruct.status).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonCapabilitiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonCapabilitiesSpec.m new file mode 100644 index 000000000..0cb200414 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonCapabilitiesSpec.m @@ -0,0 +1,54 @@ +// +// SDLSoftButtonCapabilitiesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSoftButtonCapabilities.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSoftButtonCapabilitiesSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSoftButtonCapabilities* testStruct = [[SDLSoftButtonCapabilities alloc] init]; + + testStruct.shortPressAvailable = @NO; + testStruct.longPressAvailable = @YES; + testStruct.upDownAvailable = @NO; + testStruct.imageSupported = @NO; + + expect(testStruct.shortPressAvailable).to(equal(@NO)); + expect(testStruct.longPressAvailable).to(equal(@YES)); + expect(testStruct.upDownAvailable).to(equal(@NO)); + expect(testStruct.imageSupported).to(equal(@NO)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_shortPressAvailable:@NO, + NAMES_longPressAvailable:@YES, + NAMES_upDownAvailable:@NO, + NAMES_imageSupported:@NO} mutableCopy]; + SDLSoftButtonCapabilities* testStruct = [[SDLSoftButtonCapabilities alloc] initWithDictionary:dict]; + + expect(testStruct.shortPressAvailable).to(equal(@NO)); + expect(testStruct.longPressAvailable).to(equal(@YES)); + expect(testStruct.upDownAvailable).to(equal(@NO)); + expect(testStruct.imageSupported).to(equal(@NO)); + }); + + it(@"Should return nil if not set", ^ { + SDLSoftButtonCapabilities* testStruct = [[SDLSoftButtonCapabilities alloc] init]; + + expect(testStruct.shortPressAvailable).to(beNil()); + expect(testStruct.longPressAvailable).to(beNil()); + expect(testStruct.upDownAvailable).to(beNil()); + expect(testStruct.imageSupported).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonSpec.m new file mode 100644 index 000000000..c9e766a65 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSoftButtonSpec.m @@ -0,0 +1,70 @@ +// +// SDLSoftButtonSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLImage.h" +#import "SDLNames.h" +#import "SDLSoftButton.h" +#import "SDLSoftButtonType.h" +#import "SDLSystemAction.h" + + +QuickSpecBegin(SDLSoftButtonSpec) + +SDLImage* image = [[SDLImage alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSoftButton* testStruct = [[SDLSoftButton alloc] init]; + + testStruct.type = [SDLSoftButtonType IMAGE]; + testStruct.text = @"Button"; + testStruct.image = image; + testStruct.isHighlighted = @YES; + testStruct.softButtonID = @5423; + testStruct.systemAction = [SDLSystemAction KEEP_CONTEXT]; + + expect(testStruct.type).to(equal([SDLSoftButtonType IMAGE])); + expect(testStruct.text).to(equal(@"Button")); + expect(testStruct.image).to(equal(image)); + expect(testStruct.isHighlighted).to(equal(@YES)); + expect(testStruct.softButtonID).to(equal(@5423)); + expect(testStruct.systemAction).to(equal([SDLSystemAction KEEP_CONTEXT])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_type:[SDLSoftButtonType IMAGE], + NAMES_text:@"Button", + NAMES_image:image, + NAMES_isHighlighted:@YES, + NAMES_softButtonID:@5423, + NAMES_systemAction:[SDLSystemAction KEEP_CONTEXT]} mutableCopy]; + SDLSoftButton* testStruct = [[SDLSoftButton alloc] initWithDictionary:dict]; + + expect(testStruct.type).to(equal([SDLSoftButtonType IMAGE])); + expect(testStruct.text).to(equal(@"Button")); + expect(testStruct.image).to(equal(image)); + expect(testStruct.isHighlighted).to(equal(@YES)); + expect(testStruct.softButtonID).to(equal(@5423)); + expect(testStruct.systemAction).to(equal([SDLSystemAction KEEP_CONTEXT])); + }); + + it(@"Should return nil if not set", ^ { + SDLSoftButton* testStruct = [[SDLSoftButton alloc] init]; + + expect(testStruct.type).to(beNil()); + expect(testStruct.text).to(beNil()); + expect(testStruct.image).to(beNil()); + expect(testStruct.isHighlighted).to(beNil()); + expect(testStruct.softButtonID).to(beNil()); + expect(testStruct.systemAction).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLStartTimeSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLStartTimeSpec.m new file mode 100644 index 000000000..476fc6500 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLStartTimeSpec.m @@ -0,0 +1,49 @@ +// +// SDLStartTimeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLStartTime.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLStartTimeSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLStartTime* testStruct = [[SDLStartTime alloc] init]; + + testStruct.hours = @22; + testStruct.minutes = @39; + testStruct.seconds = @11; + + expect(testStruct.hours).to(equal(@22)); + expect(testStruct.minutes).to(equal(@39)); + expect(testStruct.seconds).to(equal(@11)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_hours:@22, + NAMES_minutes:@39, + NAMES_seconds:@11} mutableCopy]; + SDLStartTime* testStruct = [[SDLStartTime alloc] initWithDictionary:dict]; + + expect(testStruct.hours).to(equal(@22)); + expect(testStruct.minutes).to(equal(@39)); + expect(testStruct.seconds).to(equal(@11)); + }); + + it(@"Should return nil if not set", ^ { + SDLStartTime* testStruct = [[SDLStartTime alloc] init]; + + expect(testStruct.hours).to(beNil()); + expect(testStruct.minutes).to(beNil()); + expect(testStruct.seconds).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSyncMsgVersionSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSyncMsgVersionSpec.m new file mode 100644 index 000000000..56c74cd18 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLSyncMsgVersionSpec.m @@ -0,0 +1,44 @@ +// +// SDLSyncMsgVersionSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLSyncMsgVersion.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLSyncMsgVersionSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLSyncMsgVersion* testStruct = [[SDLSyncMsgVersion alloc] init]; + + testStruct.majorVersion = @4; + testStruct.minorVersion = @532; + + expect(testStruct.majorVersion).to(equal(@4)); + expect(testStruct.minorVersion).to(equal(@532)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_majorVersion:@4, + NAMES_minorVersion:@532} mutableCopy]; + SDLSyncMsgVersion* testStruct = [[SDLSyncMsgVersion alloc] initWithDictionary:dict]; + + expect(testStruct.majorVersion).to(equal(@4)); + expect(testStruct.minorVersion).to(equal(@532)); + }); + + it(@"Should return nil if not set", ^ { + SDLSyncMsgVersion* testStruct = [[SDLSyncMsgVersion alloc] init]; + + expect(testStruct.majorVersion).to(beNil()); + expect(testStruct.minorVersion).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTTSChunkSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTTSChunkSpec.m new file mode 100644 index 000000000..78ca915c9 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTTSChunkSpec.m @@ -0,0 +1,46 @@ +// +// SDLTTSChunkSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLNames.h" +#import "SDLSpeechCapabilities.h" +#import "SDLTTSChunk.h" + + +QuickSpecBegin(SDLTTSChunkSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLTTSChunk* testStruct = [[SDLTTSChunk alloc] init]; + + testStruct.text = @"TEXT"; + testStruct.type = [SDLSpeechCapabilities PRE_RECORDED]; + + expect(testStruct.text).to(equal(@"TEXT")); + expect(testStruct.type).to(equal([SDLSpeechCapabilities PRE_RECORDED])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_text:@"TEXT", + NAMES_type:[SDLSpeechCapabilities PRE_RECORDED]} mutableCopy]; + SDLTTSChunk* testStruct = [[SDLTTSChunk alloc] initWithDictionary:dict]; + + expect(testStruct.text).to(equal(@"TEXT")); + expect(testStruct.type).to(equal([SDLSpeechCapabilities PRE_RECORDED])); + }); + + it(@"Should return nil if not set", ^ { + SDLTTSChunk* testStruct = [[SDLTTSChunk alloc] init]; + + expect(testStruct.text).to(beNil()); + expect(testStruct.type).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTextFieldSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTextFieldSpec.m new file mode 100644 index 000000000..a07331a59 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTextFieldSpec.m @@ -0,0 +1,57 @@ +// +// SDLTextFieldSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLCharacterSet.h" +#import "SDLNames.h" +#import "SDLTextField.h" +#import "SDLTextFieldName.h" + + +QuickSpecBegin(SDLTextFieldSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLTextField* testStruct = [[SDLTextField alloc] init]; + + testStruct.name = [SDLTextFieldName tertiaryText]; + testStruct.characterSet = [SDLCharacterSet TYPE5SET]; + testStruct.width = @111; + testStruct.rows = @4; + + expect(testStruct.name).to(equal([SDLTextFieldName tertiaryText])); + expect(testStruct.characterSet).to(equal([SDLCharacterSet TYPE5SET])); + expect(testStruct.width).to(equal(@111)); + expect(testStruct.rows).to(equal(@4)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_name:[SDLTextFieldName tertiaryText], + NAMES_characterSet:[SDLCharacterSet TYPE5SET], + NAMES_width:@111, + NAMES_rows:@4} mutableCopy]; + SDLTextField* testStruct = [[SDLTextField alloc] initWithDictionary:dict]; + + expect(testStruct.name).to(equal([SDLTextFieldName tertiaryText])); + expect(testStruct.characterSet).to(equal([SDLCharacterSet TYPE5SET])); + expect(testStruct.width).to(equal(@111)); + expect(testStruct.rows).to(equal(@4)); + }); + + it(@"Should return nil if not set", ^ { + SDLTextField* testStruct = [[SDLTextField alloc] init]; + + expect(testStruct.name).to(beNil()); + expect(testStruct.characterSet).to(beNil()); + expect(testStruct.width).to(beNil()); + expect(testStruct.rows).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTireStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTireStatusSpec.m new file mode 100644 index 000000000..dcad4943d --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTireStatusSpec.m @@ -0,0 +1,78 @@ +// +// SDLTireStatusSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLTireStatus.h" +#import "SDLSingleTireStatus.h" +#import "SDLWarningLightStatus.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLTireStatusSpec) + +SDLSingleTireStatus* tire1 = [[SDLSingleTireStatus alloc] init]; +SDLSingleTireStatus* tire2 = [[SDLSingleTireStatus alloc] init]; +SDLSingleTireStatus* tire3 = [[SDLSingleTireStatus alloc] init]; +SDLSingleTireStatus* tire4 = [[SDLSingleTireStatus alloc] init]; +SDLSingleTireStatus* tire5 = [[SDLSingleTireStatus alloc] init]; +SDLSingleTireStatus* tire6 = [[SDLSingleTireStatus alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLTireStatus* testStruct = [[SDLTireStatus alloc] init]; + + testStruct.pressureTelltale = [SDLWarningLightStatus OFF]; + testStruct.leftFront = tire1; + testStruct.rightFront = tire2; + testStruct.leftRear = tire3; + testStruct.rightRear = tire4; + testStruct.innerLeftRear = tire5; + testStruct.innerRightRear = tire6; + + expect(testStruct.pressureTelltale).to(equal([SDLWarningLightStatus OFF])); + expect(testStruct.leftFront).to(equal(tire1)); + expect(testStruct.rightFront).to(equal(tire2)); + expect(testStruct.leftRear).to(equal(tire3)); + expect(testStruct.rightRear).to(equal(tire4)); + expect(testStruct.innerLeftRear).to(equal(tire5)); + expect(testStruct.innerRightRear).to(equal(tire6)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_pressureTelltale:[SDLWarningLightStatus OFF], + NAMES_leftFront:tire1, + NAMES_rightFront:tire2, + NAMES_leftRear:tire3, + NAMES_rightRear:tire4, + NAMES_innerLeftRear:tire5, + NAMES_innerRightRear:tire6} mutableCopy]; + SDLTireStatus* testStruct = [[SDLTireStatus alloc] initWithDictionary:dict]; + + expect(testStruct.pressureTelltale).to(equal([SDLWarningLightStatus OFF])); + expect(testStruct.leftFront).to(equal(tire1)); + expect(testStruct.rightFront).to(equal(tire2)); + expect(testStruct.leftRear).to(equal(tire3)); + expect(testStruct.rightRear).to(equal(tire4)); + expect(testStruct.innerLeftRear).to(equal(tire5)); + expect(testStruct.innerRightRear).to(equal(tire6)); + }); + + it(@"Should return nil if not set", ^ { + SDLTireStatus* testStruct = [[SDLTireStatus alloc] init]; + + expect(testStruct.pressureTelltale).to(beNil()); + expect(testStruct.leftFront).to(beNil()); + expect(testStruct.rightFront).to(beNil()); + expect(testStruct.leftRear).to(beNil()); + expect(testStruct.rightRear).to(beNil()); + expect(testStruct.innerLeftRear).to(beNil()); + expect(testStruct.innerRightRear).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchCoordSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchCoordSpec.m new file mode 100644 index 000000000..eedca3a9b --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchCoordSpec.m @@ -0,0 +1,44 @@ +// +// SDLTouchCoordSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLTouchCoord.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLTouchCoordSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLTouchCoord* testStruct = [[SDLTouchCoord alloc] init]; + + testStruct.x = @67; + testStruct.y = @362; + + expect(testStruct.x).to(equal(@67)); + expect(testStruct.y).to(equal(@362)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_x:@67, + NAMES_y:@362} mutableCopy]; + SDLTouchCoord* testStruct = [[SDLTouchCoord alloc] initWithDictionary:dict]; + + expect(testStruct.x).to(equal(@67)); + expect(testStruct.y).to(equal(@362)); + }); + + it(@"Should return nil if not set", ^ { + SDLTouchCoord* testStruct = [[SDLTouchCoord alloc] init]; + + expect(testStruct.x).to(beNil()); + expect(testStruct.y).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventCapabilitiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventCapabilitiesSpec.m new file mode 100644 index 000000000..a8b8c73e0 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventCapabilitiesSpec.m @@ -0,0 +1,49 @@ +// +// SDLTouchEventCapabilitiesSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLTouchEventCapabilities.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLTouchEventCapabilitiesSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLTouchEventCapabilities* testStruct = [[SDLTouchEventCapabilities alloc] init]; + + testStruct.pressAvailable = @YES; + testStruct.multiTouchAvailable = @NO; + testStruct.doublePressAvailable = @YES; + + expect(testStruct.pressAvailable).to(equal(@YES)); + expect(testStruct.multiTouchAvailable).to(equal(@NO)); + expect(testStruct.doublePressAvailable).to(equal(@YES)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_pressAvailable:@YES, + NAMES_multiTouchAvailable:@NO, + NAMES_doublePressAvailable:@NO} mutableCopy]; + SDLTouchEventCapabilities* testStruct = [[SDLTouchEventCapabilities alloc] initWithDictionary:dict]; + + expect(testStruct.pressAvailable).to(equal(@YES)); + expect(testStruct.multiTouchAvailable).to(equal(@NO)); + expect(testStruct.doublePressAvailable).to(equal(@NO)); + }); + + it(@"Should return nil if not set", ^ { + SDLTouchEventCapabilities* testStruct = [[SDLTouchEventCapabilities alloc] init]; + + expect(testStruct.pressAvailable).to(beNil()); + expect(testStruct.multiTouchAvailable).to(beNil()); + expect(testStruct.doublePressAvailable).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventSpec.m new file mode 100644 index 000000000..c95cfb525 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTouchEventSpec.m @@ -0,0 +1,52 @@ +// +// SDLTouchEventSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLTouchEvent.h" +#import "SDLTouchCoord.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLTouchEventSpec) + +SDLTouchCoord* coord = [[SDLTouchCoord alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLTouchEvent* testStruct = [[SDLTouchEvent alloc] init]; + + testStruct.touchEventId = @3; + testStruct.timeStamp = [@[@23, @52, @41345234] mutableCopy]; + testStruct.coord = [@[coord] mutableCopy]; + + expect(testStruct.touchEventId).to(equal(@3)); + expect(testStruct.timeStamp).to(equal([@[@23, @52, @41345234] mutableCopy])); + expect(testStruct.coord).to(equal([@[coord] mutableCopy])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_id:@3, + NAMES_ts:[@[@23, @52, @41345234] mutableCopy], + NAMES_c:[@[coord] mutableCopy]} mutableCopy]; + SDLTouchEvent* testStruct = [[SDLTouchEvent alloc] initWithDictionary:dict]; + + expect(testStruct.touchEventId).to(equal(@3)); + expect(testStruct.timeStamp).to(equal([@[@23, @52, @41345234] mutableCopy])); + expect(testStruct.coord).to(equal([@[coord] mutableCopy])); + }); + + it(@"Should return nil if not set", ^ { + SDLTouchEvent* testStruct = [[SDLTouchEvent alloc] init]; + + expect(testStruct.touchEventId).to(beNil()); + expect(testStruct.timeStamp).to(beNil()); + expect(testStruct.coord).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTurnSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTurnSpec.m new file mode 100644 index 000000000..07152ad92 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLTurnSpec.m @@ -0,0 +1,47 @@ +// +// SDLTurnSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLTurn.h" +#import "SDLNames.h" +#import "SDLImage.h" + +QuickSpecBegin(SDLTurnSpec) + +SDLImage* image = [[SDLImage alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLTurn* testStruct = [[SDLTurn alloc] init]; + + testStruct.navigationText = @"NAVTEXT"; + testStruct.turnIcon = image; + + expect(testStruct.navigationText).to(equal(@"NAVTEXT")); + expect(testStruct.turnIcon).to(equal(image)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_navigationText:@"NAVTEXT", + NAMES_turnIcon:image} mutableCopy]; + SDLTurn* testStruct = [[SDLTurn alloc] initWithDictionary:dict]; + + expect(testStruct.navigationText).to(equal(@"NAVTEXT")); + expect(testStruct.turnIcon).to(equal(image)); + }); + + it(@"Should return nil if not set", ^ { + SDLTurn* testStruct = [[SDLTurn alloc] init]; + + expect(testStruct.navigationText).to(beNil()); + expect(testStruct.turnIcon).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleDataResultSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleDataResultSpec.m new file mode 100644 index 000000000..ee3c4774a --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleDataResultSpec.m @@ -0,0 +1,46 @@ +// +// SDLVehicleDataResultSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLVehicleDataResult.h" +#import "SDLVehicleDataResultCode.h" +#import "SDLVehicleDataType.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLVehicleDataResultSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLVehicleDataResult* testStruct = [[SDLVehicleDataResult alloc] init]; + + testStruct.dataType = [SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS]; + testStruct.resultCode = [SDLVehicleDataResultCode DISALLOWED]; + + expect(testStruct.dataType).to(equal([SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS])); + expect(testStruct.resultCode).to(equal([SDLVehicleDataResultCode DISALLOWED])); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_dataType:[SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS], + NAMES_resultCode:[SDLVehicleDataResultCode DISALLOWED]} mutableCopy]; + SDLVehicleDataResult* testStruct = [[SDLVehicleDataResult alloc] initWithDictionary:dict]; + + expect(testStruct.dataType).to(equal([SDLVehicleDataType VEHICLEDATA_AIRBAGSTATUS])); + expect(testStruct.resultCode).to(equal([SDLVehicleDataResultCode DISALLOWED])); + }); + + it(@"Should return nil if not set", ^ { + SDLVehicleDataResult* testStruct = [[SDLVehicleDataResult alloc] init]; + + expect(testStruct.dataType).to(beNil()); + expect(testStruct.resultCode).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleTypeSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleTypeSpec.m new file mode 100644 index 000000000..9a282b72e --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVehicleTypeSpec.m @@ -0,0 +1,54 @@ +// +// SDLVehicleTypeSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLVehicleType.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLVehicleTypeSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLVehicleType* testStruct = [[SDLVehicleType alloc] init]; + + testStruct.make = @"Make"; + testStruct.model = @"Model"; + testStruct.modelYear = @"3.141*10^36"; + testStruct.trim = @"AE"; + + expect(testStruct.make).to(equal(@"Make")); + expect(testStruct.model).to(equal(@"Model")); + expect(testStruct.modelYear).to(equal(@"3.141*10^36")); + expect(testStruct.trim).to(equal(@"AE")); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_make:@"Make", + NAMES_model:@"Model", + NAMES_modelYear:@"3.141*10^36", + NAMES_trim:@"AE"} mutableCopy]; + SDLVehicleType* testStruct = [[SDLVehicleType alloc] initWithDictionary:dict]; + + expect(testStruct.make).to(equal(@"Make")); + expect(testStruct.model).to(equal(@"Model")); + expect(testStruct.modelYear).to(equal(@"3.141*10^36")); + expect(testStruct.trim).to(equal(@"AE")); + }); + + it(@"Should return nil if not set", ^ { + SDLVehicleType* testStruct = [[SDLVehicleType alloc] init]; + + expect(testStruct.make).to(beNil()); + expect(testStruct.model).to(beNil()); + expect(testStruct.modelYear).to(beNil()); + expect(testStruct.trim).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVrHelpItemSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVrHelpItemSpec.m new file mode 100644 index 000000000..e76be2558 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLVrHelpItemSpec.m @@ -0,0 +1,53 @@ +// +// SDLVrHelpItemSpec.m +// SmartDeviceLink + + +#import + +#import +#import + +#import "SDLImage.h" +#import "SDLNames.h" +#import "SDLVrHelpItem.h" + + +QuickSpecBegin(SDLVrHelpItemSpec) + +SDLImage* image = [[SDLImage alloc] init]; + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLVRHelpItem* testStruct = [[SDLVRHelpItem alloc] init]; + + testStruct.text = @"DON'T PANIC"; + testStruct.image = image; + testStruct.position = @42; + + expect(testStruct.text).to(equal(@"DON'T PANIC")); + expect(testStruct.image).to(equal(image)); + expect(testStruct.position).to(equal(@42)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_text:@"DON'T PANIC", + NAMES_image:image, + NAMES_position:@42} mutableCopy]; + SDLVRHelpItem* testStruct = [[SDLVRHelpItem alloc] initWithDictionary:dict]; + + expect(testStruct.text).to(equal(@"DON'T PANIC")); + expect(testStruct.image).to(equal(image)); + expect(testStruct.position).to(equal(@42)); + }); + + it(@"Should return nil if not set", ^ { + SDLVRHelpItem* testStruct = [[SDLVRHelpItem alloc] init]; + + expect(testStruct.text).to(beNil()); + expect(testStruct.image).to(beNil()); + expect(testStruct.position).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLEnumSpec.m b/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLEnumSpec.m new file mode 100644 index 000000000..e4d330a3c --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLEnumSpec.m @@ -0,0 +1,25 @@ +// +// SDLEnumSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import + +#import "SDLEnum.h" + +QuickSpecBegin(SDLEnumSpec) + +describe(@"Value Tests", ^ { + it(@"Should get value correctly when initialized", ^ { + SDLEnum* enumValue = [[SDLEnum alloc] initWithValue:@"Enum"]; + + expect(enumValue).toNot(beNil()); + + expect(enumValue.value).to(equal(@"Enum")); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCMessageSpec.m b/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCMessageSpec.m new file mode 100644 index 000000000..39a9ebc74 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCMessageSpec.m @@ -0,0 +1,115 @@ +// +// SDLRPCMessage.m +// SmartDeviceLink-iOS + + +#import + +#import +#import + +#import "SDLRPCMessage.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLRPCMessageSpec) + +describe(@"Readonly Property Tests", ^ { + it(@"Should get name correctly when initialized with name", ^ { + SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithName:@"Poorly Named"]; + + expect(testMessage.name).to(equal(@"Poorly Named")); + }); + + it(@"Should get correctly when initialized with dictionary", ^ { + SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithDictionary:[@{NAMES_notification: + @{NAMES_parameters: + @{@"name":@"George"}, + NAMES_operation_name:@"Poorly Named"}} mutableCopy]]; + + expect(testMessage.name).to(equal(@"Poorly Named")); + expect(testMessage.messageType).to(equal(NAMES_notification)); + }); +}); + +describe(@"Parameter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithName:@""]; + + [testMessage setParameters:@"ADogAPanicInAPagoda" value:@"adogaPAnIcinaPAgoDA"]; + + expect([testMessage getParameters:@"ADogAPanicInAPagoda"]).to(equal(@"adogaPAnIcinaPAgoDA")); + }); + + it(@"Should get correctly when initialized", ^ { + SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithDictionary:[@{NAMES_response: + @{NAMES_parameters: + @{@"age":@25}, + NAMES_operation_name:@"Nameless"}} mutableCopy]]; + + expect([testMessage getParameters:@"age"]).to(equal(@25)); + }); + + it(@"Should be nil if not set", ^ { + SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithName:@""]; + + expect([testMessage getParameters:@"ADogAPanicInAPagoda"]).to(beNil()); + }); +}); + +describe(@"FunctionName Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithName:@""]; + + [testMessage setFunctionName:@"Functioning"]; + + expect([testMessage getFunctionName]).to(equal(@"Functioning")); + }); + + it(@"Should get correctly when initialized", ^ { + SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithDictionary:[@{NAMES_request: + @{NAMES_parameters: + @{@"age":@25}, + NAMES_operation_name:@"DoNothing"}} mutableCopy]]; + + expect([testMessage getFunctionName]).to(equal(@"DoNothing")); + + testMessage = [[SDLRPCMessage alloc] initWithName:@"DoSomething"]; + + expect([testMessage getFunctionName]).to(equal(@"DoSomething")); + }); + + it(@"Should be nil if not set", ^ { + SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithDictionary:[@{NAMES_notification: + @{NAMES_parameters: + @{}}} mutableCopy]]; + expect([testMessage getFunctionName]).to(beNil()); + }); +}); + +describe(@"BulkDataTests", ^ { + it(@"Should set and get correctly", ^ { + SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithName:@""]; + + const char* testString = "ImportantData"; + testMessage.bulkData = [NSData dataWithBytes:testString length:strlen(testString)]; + + expect([NSString stringWithUTF8String:testMessage.bulkData.bytes]).to(equal(@"ImportantData")); + }); + + it(@"Should get correctly when initialized", ^ { + SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithDictionary:[@{NAMES_notification: + @{NAMES_parameters: + @{}}, + NAMES_bulkData:[NSData dataWithBytes:"ImageData" length:strlen("ImageData")]} mutableCopy]]; + + expect(testMessage.bulkData).to(equal([NSData dataWithBytes:"ImageData" length:strlen("ImageData")])); + }); + + it(@"Should be nil if not set", ^ { + SDLRPCMessage* testMessage = [[SDLRPCMessage alloc] initWithName:@""]; + + expect(testMessage.bulkData).to(beNil()); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCNotificationSpec.m b/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCNotificationSpec.m new file mode 100644 index 000000000..d6dab74d5 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCNotificationSpec.m @@ -0,0 +1,15 @@ +// +// SDLRPCNotificationSpec.m +// SmartDeviceLink-iOS + + +#import + +#import +#import + +#import "SDLRPCNotification.h" + +QuickSpecBegin(SDLRPCNotificationSpec) + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCRequestSpec.m b/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCRequestSpec.m new file mode 100644 index 000000000..1846e0700 --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCRequestSpec.m @@ -0,0 +1,25 @@ +// +// SDLRPCRequest.m +// SmartDeviceLink-iOS + + +#import + +#import +#import + +#import "SDLRPCRequest.h" + +QuickSpecBegin(SDLRPCRequestSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLRPCRequest* testRequest = [[SDLRPCRequest alloc] initWithName:@"A Legitimate Request"]; + + testRequest.correlationID = @14641; + + expect(testRequest.correlationID).to(equal(@14641)); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCResponseSpec.m new file mode 100644 index 000000000..0619dd3dc --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCResponseSpec.m @@ -0,0 +1,33 @@ +// +// SDLRPCResponse.m +// SmartDeviceLink-iOS + + +#import + +#import +#import + +#import "SDLResult.h" +#import "SDLRPCResponse.h" + + +QuickSpecBegin(SDLRPCResponseSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLRPCResponse* response = [[SDLRPCResponse alloc] initWithName:@"A Legitimate Response"]; + + response.correlationID = @14641; + response.success = @YES; + response.resultCode = [SDLResult IGNORED]; + response.info = @"It has been done"; + + expect(response.correlationID).to(equal(@14641)); + expect(response.success).to(equal(@YES)); + expect(response.resultCode).to(equal([SDLResult IGNORED])); + expect(response.info).to(equal(@"It has been done")); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCStructSpec.m b/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCStructSpec.m new file mode 100644 index 000000000..9352569ed --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCStructSpec.m @@ -0,0 +1,24 @@ +// +// SDLRPCStruct.m +// SmartDeviceLink-iOS + + +#import + +#import +#import + +#import "SDLRPCStruct.h" + +QuickSpecBegin(SDLRPCStructSpec) + +describe(@"SerializeAsDictionary Tests", ^ { + it(@"Should serialize correctly", ^ { + NSMutableDictionary* dict = [@{@"Key":@"Value", @"Answer":@42, @"Struct":[[SDLRPCStruct alloc] initWithDictionary:[@{@"Array":@[@1, @1, @1, @1]} mutableCopy]]} mutableCopy]; + SDLRPCStruct* testStruct = [[SDLRPCStruct alloc] initWithDictionary:dict]; + + expect([testStruct serializeAsDictionary:2]).to(equal([@{@"Key":@"Value", @"Answer":@42, @"Struct":@{@"Array":@[@1, @1, @1, @1]}} mutableCopy])); + }); +}); + +QuickSpecEnd \ No newline at end of file diff --git a/SmartDeviceLinkTests/SwiftSpec.swift b/SmartDeviceLinkTests/SwiftSpec.swift new file mode 100644 index 000000000..274da684d --- /dev/null +++ b/SmartDeviceLinkTests/SwiftSpec.swift @@ -0,0 +1,5 @@ +// +// SwiftSpec.swift +// SmartDeviceLink-iOS + +import Quick; diff --git a/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLRequestTaskSpec.m b/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLRequestTaskSpec.m new file mode 100644 index 000000000..d78ff0c7f --- /dev/null +++ b/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLRequestTaskSpec.m @@ -0,0 +1,140 @@ +#import +#import +#import + +#import "SDLURLRequestTask.h" + + +QuickSpecBegin(SDLURLRequestTaskSpec) + +describe(@"a url request task", ^{ + __block SDLURLRequestTask *testTask = nil; + + describe(@"when the server returns correct data", ^{ + NSData *testData = [@"someData" dataUsingEncoding:NSUTF8StringEncoding]; + + __block NSData *testReturnData = nil; + __block NSURLResponse *testReturnResponse = nil; + __block NSError *testReturnError = nil; + + beforeEach(^{ + [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { + return [request.URL.host isEqualToString:@"www.faketest.com"]; + } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { + return [[OHHTTPStubsResponse responseWithData:testData statusCode:200 headers:nil] requestTime:0.5 responseTime:0]; + }]; + + NSURLRequest *someURLRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.faketest.com"]]; + + testTask = [[SDLURLRequestTask alloc] initWithURLRequest:someURLRequest completionHandler:^void(NSData *data, NSURLResponse *response, NSError *error) { + testReturnData = data; + testReturnResponse = response; + testReturnError = error; + }]; + }); + + afterEach(^{ + testTask = nil; + [OHHTTPStubs removeAllStubs]; + }); + + it(@"should return data", ^{ + expect(testReturnData).toEventually(equal(testData)); + }); + + it(@"should return a response", ^{ + expect(testReturnResponse).toEventuallyNot(beNil()); + }); + + it(@"should not return an error", ^{ + expect(testReturnError).toEventually(beNil()); + }); + }); + + describe(@"when the connection fails because there is no internet", ^{ + NSError *someNetworkError = [NSError errorWithDomain:NSURLErrorDomain code:kCFURLErrorNotConnectedToInternet userInfo:nil]; + + __block NSData *testReturnData = nil; + __block NSURLResponse *testReturnResponse = nil; + __block NSError *testReturnError = nil; + + beforeEach(^{ + [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { + return [request.URL.host isEqualToString:@"www.faketest.com"]; + } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { + return [OHHTTPStubsResponse responseWithError:someNetworkError]; + }]; + + NSURLRequest *someURLRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.faketest.com"]]; + + testTask = [[SDLURLRequestTask alloc] initWithURLRequest:someURLRequest completionHandler:^void(NSData *data, NSURLResponse *response, NSError *error) { + testReturnData = data; + testReturnResponse = response; + testReturnError = error; + }]; + }); + + afterEach(^{ + testTask = nil; + [OHHTTPStubs removeAllStubs]; + }); + + it(@"should return nil data", ^{ + expect(testReturnData).toEventually(beNil()); + }); + + it(@"should return a nil response", ^{ + expect(testReturnResponse).toEventually(beNil()); + }); + + it(@"should return an error", ^{ + expect(@(testReturnError.code)).toEventually(equal(@(someNetworkError.code))); + }); + }); + + describe(@"when the connection fails because it was cancelled", ^{ + NSData *testData = [@"testData" dataUsingEncoding:NSUTF8StringEncoding]; + + __block NSData *testReturnData = nil; + __block NSURLResponse *testReturnResponse = nil; + __block NSError *testReturnError = nil; + + beforeEach(^{ + [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { + return [request.URL.host isEqualToString:@"www.faketest.com"]; + } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { + return [[OHHTTPStubsResponse responseWithData:testData statusCode:200 headers:nil] requestTime:0.25 responseTime:0.25]; + }]; + + NSURLRequest *someURLRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.faketest.com"]]; + + + testTask = [[SDLURLRequestTask alloc] initWithURLRequest:someURLRequest completionHandler:^void(NSData *data, NSURLResponse *response, NSError *error) { + testReturnData = data; + testReturnResponse = response; + testReturnError = error; + }]; + + [testTask cancel]; + }); + + afterEach(^{ + testTask = nil; + [OHHTTPStubs removeAllStubs]; + }); + + it(@"should return nil data", ^{ + expect(testReturnData).toEventually(beNil()); + }); + + it(@"should return a nil response", ^{ + expect(testReturnResponse).toEventually(beNil()); + }); + + it(@"should return an error", ^{ + expect(@(testReturnError.code)).toEventually(equal(@(kCFURLErrorCancelled))); + }); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLSessionSpec.m b/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLSessionSpec.m new file mode 100644 index 000000000..d15bcc049 --- /dev/null +++ b/SmartDeviceLinkTests/UtilitiesSpecs/HTTP Connection/SDLURLSessionSpec.m @@ -0,0 +1,191 @@ +#import +#import +#import + +#import "SDLURLSession.h" + +QuickSpecBegin(SDLURLSessionSpec) + +describe(@"the url session", ^{ + __block SDLURLSession *testSession = nil; + + describe(@"attempting to get good data", ^{ + context(@"uploading data", ^{ + NSData *testData = [@"testData" dataUsingEncoding:NSUTF8StringEncoding]; + NSArray *someJSONObject = @[@"one", @"two"]; + NSData *testJSONData = [NSJSONSerialization dataWithJSONObject:someJSONObject options:0 error:nil]; + + __block NSData *testReturnData = nil; + __block NSURLResponse *testReturnResponse = nil; + __block NSError *testReturnError = nil; + __block NSArray *testReturnJSONObject = nil; + + beforeEach(^{ + [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { + if ([request.URL.host isEqualToString:@"www.faketest.com"]) { + testReturnJSONObject = [NSJSONSerialization JSONObjectWithData:request.HTTPBody options:0 error:nil]; + return YES; + } + + return NO; + } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { + return [[OHHTTPStubsResponse responseWithData:testData statusCode:200 headers:nil] requestTime:0.5 responseTime:0]; + }]; + + testSession = [[SDLURLSession alloc] init]; + NSURLRequest *someURLRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.faketest.com"]]; + + [testSession uploadWithURLRequest:someURLRequest data:testJSONData completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { + testReturnData = data; + testReturnResponse = response; + testReturnError = error; + }]; + }); + + afterEach(^{ + testSession = nil; + [OHHTTPStubs removeAllStubs]; + }); + + it(@"should have the json object", ^{ + expect(testReturnJSONObject).toEventually(equal(someJSONObject)); + }); + + it(@"should not return any data", ^{ + expect(testReturnData).toEventually(equal(testData)); + }); + + it(@"should return a response", ^{ + expect(testReturnResponse).toEventuallyNot(beNil()); + }); + + it(@"should not return an error", ^{ + expect(testReturnError).toEventually(beNil()); + }); + }); + + context(@"downloading data", ^{ + NSData *testData = [@"someData" dataUsingEncoding:NSUTF8StringEncoding]; + + __block NSData *testReturnData = nil; + __block NSURLResponse *testReturnResponse = nil; + __block NSError *testReturnError = nil; + + beforeEach(^{ + [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { + return [request.URL.host isEqualToString:@"www.faketest.com"]; + } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { + return [[OHHTTPStubsResponse responseWithData:testData statusCode:200 headers:nil] requestTime:0.5 responseTime:0]; + }]; + + testSession = [[SDLURLSession alloc] init]; + [testSession dataFromURL:[NSURL URLWithString:@"http://www.faketest.com"] completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { + testReturnData = data; + testReturnResponse = response; + testReturnError = error; + }]; + }); + + afterEach(^{ + testSession = nil; + [OHHTTPStubs removeAllStubs]; + }); + + it(@"should not return any data", ^{ + expect(testReturnData).toEventually(equal(testData)); + }); + + it(@"should return a response", ^{ + expect(testReturnResponse).toEventuallyNot(beNil()); + }); + + it(@"should not return an error", ^{ + expect(testReturnError).toEventually(beNil()); + }); + }); + }); + + describe(@"when the connection fails because there is no internet", ^{ + NSError *someNetworkError = [NSError errorWithDomain:NSURLErrorDomain code:kCFURLErrorNotConnectedToInternet userInfo:nil]; + + __block NSData *testReturnData = nil; + __block NSURLResponse *testReturnResponse = nil; + __block NSError *testReturnError = nil; + + beforeEach(^{ + [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { + return [request.URL.host isEqualToString:@"www.faketest.com"]; + } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { + return [OHHTTPStubsResponse responseWithError:someNetworkError]; + }]; + + testSession = [[SDLURLSession alloc] init]; + [testSession dataFromURL:[NSURL URLWithString:@"http://www.faketest.com"] completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { + testReturnData = data; + testReturnResponse = response; + testReturnError = error; + }]; + }); + + afterEach(^{ + testSession = nil; + [OHHTTPStubs removeAllStubs]; + }); + + it(@"should return nil data", ^{ + expect(testReturnData).toEventually(beNil()); + }); + + it(@"should return a nil response", ^{ + expect(testReturnResponse).toEventually(beNil()); + }); + + it(@"should return an error", ^{ + expect(@(testReturnError.code)).toEventually(equal(@(someNetworkError.code))); + }); + }); + + describe(@"when the connection fails because it was cancelled", ^{ + NSData *testData = [@"testData" dataUsingEncoding:NSUTF8StringEncoding]; + + __block NSData *testReturnData = nil; + __block NSURLResponse *testReturnResponse = nil; + __block NSError *testReturnError = nil; + + beforeEach(^{ + [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { + return [request.URL.host isEqualToString:@"www.faketest.com"]; + } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { + return [[OHHTTPStubsResponse responseWithData:testData statusCode:200 headers:nil] requestTime:0.25 responseTime:0.25]; + }]; + + testSession = [[SDLURLSession alloc] init]; + [testSession dataFromURL:[NSURL URLWithString:@"http://www.faketest.com"] completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { + testReturnData = data; + testReturnResponse = response; + testReturnError = error; + }]; + + [testSession cancelAllTasks]; + }); + + afterEach(^{ + testSession = nil; + [OHHTTPStubs removeAllStubs]; + }); + + it(@"should return nil data", ^{ + expect(testReturnData).toEventually(beNil()); + }); + + it(@"should return a nil response", ^{ + expect(testReturnResponse).toEventually(beNil()); + }); + + it(@"should return an error", ^{ + expect(@(testReturnError.code)).toEventually(equal(@(kCFURLErrorCancelled))); + }); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLObjectWithPrioritySpec.m b/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLObjectWithPrioritySpec.m new file mode 100644 index 000000000..73ca3f7ea --- /dev/null +++ b/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLObjectWithPrioritySpec.m @@ -0,0 +1,54 @@ +// +// SDLObjectWithPrioritySpec.m +// SmartDeviceLink-iOS + +#import +#import +#import + +#import "SDLObjectWithPriority.h" + + +QuickSpecBegin(SDLObjectWithPrioritySpec) + +describe(@"a prioritized object", ^{ + __block SDLObjectWithPriority *testObject = nil; + + beforeEach(^{ + testObject = [[SDLObjectWithPriority alloc] init]; + }); + + describe(@"should initialize properly", ^{ + it(@"should not be nil", ^{ + expect(testObject).toNot(beNil()); + }); + + it(@"should store a nil object", ^{ + expect(testObject.object).to(beNil()); + }); + + it(@"should have a priority of 0", ^{ + expect(@(testObject.priority)).to(equal(@(NSIntegerMax))); + }); + }); + + describe(@"should store an object properly", ^{ + __block NSString *testString = nil; + + beforeEach(^{ + testString = @"TestString"; + testObject.object = testString; + testObject.priority = 100; + }); + + it(@"should store the string as it's object", ^{ + expect(testObject.object).to(equal(testString)); + }); + + it(@"should set the priority as specified", ^{ + expect(@(testObject.priority)).to(equal(@100)); + }); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLPrioritizedObjectCollectionSpec.m b/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLPrioritizedObjectCollectionSpec.m new file mode 100644 index 000000000..d417d6d1d --- /dev/null +++ b/SmartDeviceLinkTests/UtilitiesSpecs/Prioritized Objects/SDLPrioritizedObjectCollectionSpec.m @@ -0,0 +1,89 @@ +// +// SDLPrioritizedObjectCollectionSpec.m +// SmartDeviceLink-iOS + +#import +#import +#import + +#import "SDLPrioritizedObjectCollection.h" + + +QuickSpecBegin(SDLPrioritizedObjectCollectionSpec) + +describe(@"a prioritized object collection", ^{ + __block SDLPrioritizedObjectCollection *collection = nil; + beforeEach(^{ + collection = [[SDLPrioritizedObjectCollection alloc] init]; + }); + + it(@"should be empty when first created", ^{ + id returnObj = [collection nextObject]; + + expect(returnObj).to(beNil()); + }); + + it(@"should ignore adding nil objects", ^{ + id obj = nil; + [collection addObject:obj withPriority:0]; + + id returnObj = [collection nextObject]; + expect(returnObj).to(beNil()); + }); + + it(@"should ignore adding NSNull objects", ^{ + [collection addObject:[NSNull null] withPriority:0]; + + id returnObj = [collection nextObject]; + expect(returnObj).to(beNil()); + }); + + it(@"should be able to add and retrieve a single item", ^{ + NSString *string = @"testString"; + [collection addObject:string withPriority:0]; + + id returnObj = [collection nextObject]; + + expect(returnObj).to(equal(string)); + }); + + describe(@"should retrieve higher priority objects first", ^{ + __block id firstObjectOut = nil; + __block id secondObjectOut = nil; + __block id thirdObjectOut = nil; + + __block NSString *highPriorityString = nil; + __block NSString *mediumPriorityString = nil; + __block NSString *lowPriorityString = nil; + + beforeEach(^{ + highPriorityString = @"highPriority"; + mediumPriorityString = @"mediumPriority"; + lowPriorityString = @"lowPriority"; + + // Add them in "incorrect" order to make sure sorting works correctly. + // Lower numbers indicate higher priority + [collection addObject:mediumPriorityString withPriority:100]; + [collection addObject:lowPriorityString withPriority:200]; + [collection addObject:highPriorityString withPriority:0]; + + firstObjectOut = [collection nextObject]; + secondObjectOut = [collection nextObject]; + thirdObjectOut = [collection nextObject]; + }); + + it(@"should retrieve the highest priority first", ^{ + expect(firstObjectOut).to(equal(highPriorityString)); + }); + + it(@"should retrieve the medium priority second", ^{ + expect(secondObjectOut).to(equal(mediumPriorityString)); + }); + + it(@"should retrieve the lowest priority last", ^{ + expect(thirdObjectOut).to(equal(lowPriorityString)); + }); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/UtilitiesSpecs/SDLGlobalsSpec.m b/SmartDeviceLinkTests/UtilitiesSpecs/SDLGlobalsSpec.m new file mode 100644 index 000000000..8acaaadcf --- /dev/null +++ b/SmartDeviceLinkTests/UtilitiesSpecs/SDLGlobalsSpec.m @@ -0,0 +1,85 @@ +#import +#import + +#import "SDLGlobals.h" + +QuickSpecBegin(SDLGlobalsSpec) + +describe(@"The SDLGlobals class", ^{ + __block SDLGlobals *testGlobals = nil; + __block NSNumber *v1And2MTUSize = @1024; + __block NSNumber *v3And4MTUSize = @131084; + + beforeEach(^{ + testGlobals = [[SDLGlobals alloc] init]; + }); + + describe(@"when just initialized", ^{ + it(@"should properly set protocol version", ^{ + expect(@(testGlobals.protocolVersion)).to(equal(@1)); + }); + + it(@"should properly set max head unit version", ^{ + expect(@(testGlobals.maxHeadUnitVersion)).to(equal(@0)); + }); + + it(@"should throw an exception trying to get max MTU size", ^{ + expect(@(testGlobals.maxMTUSize)).to(equal(v1And2MTUSize)); + }); + }); + + describe(@"setting maxHeadUnitVersion should alter negotiated protocol version", ^{ + it(@"should use the max head unit version when lower than max proxy version", ^{ + NSUInteger someIntLowerThanMaxProxyVersion = 2; + testGlobals.maxHeadUnitVersion = someIntLowerThanMaxProxyVersion; + expect(@(testGlobals.protocolVersion)).to(equal(@(someIntLowerThanMaxProxyVersion))); + expect(@(testGlobals.maxHeadUnitVersion)).to(equal(@(someIntLowerThanMaxProxyVersion))); + }); + + it(@"should use the max proxy version when lower than max head unit version", ^{ + NSUInteger someIntHigherThanMaxProxyVersion = 1000; + testGlobals.maxHeadUnitVersion = someIntHigherThanMaxProxyVersion; + expect(@(testGlobals.protocolVersion)).to(beLessThan(@(someIntHigherThanMaxProxyVersion))); + expect(@(testGlobals.maxHeadUnitVersion)).to(equal(@(someIntHigherThanMaxProxyVersion))); + }); + }); + + describe(@"getting the max MTU version", ^{ + context(@"when protocol version is 1 - 2", ^{ + it(@"should return the correct value when protocol version is 1", ^{ + testGlobals.maxHeadUnitVersion = 1; + expect(@(testGlobals.maxMTUSize)).to(equal(v1And2MTUSize)); + }); + + it(@"should return the correct value when protocol version is 2", ^{ + testGlobals.maxHeadUnitVersion = 2; + expect(@(testGlobals.maxMTUSize)).to(equal(v1And2MTUSize)); + }); + }); + + context(@"when protocol version is 3 - 4", ^{ + it(@"should return the correct value when protocol version is 3", ^{ + testGlobals.maxHeadUnitVersion = 3; + expect(@(testGlobals.maxMTUSize)).to(equal(v3And4MTUSize)); + }); + + it(@"should return the correct value when protocol version is 4", ^{ + testGlobals.maxHeadUnitVersion = 4; + expect(@(testGlobals.maxMTUSize)).to(equal(v3And4MTUSize)); + }); + + describe(@"when the max proxy version is lower than max head unit version", ^{ + beforeEach(^{ + NSUInteger someIntHigherThanMaxProxyVersion = 1000; + testGlobals.maxHeadUnitVersion = someIntHigherThanMaxProxyVersion; + }); + + it(@"should return the v1 - 2 value", ^{ + expect(@(testGlobals.maxMTUSize)).to(equal(v1And2MTUSize)); + }); + }); + }); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/UtilitiesSpecs/SDLHexUtilitySpec.m b/SmartDeviceLinkTests/UtilitiesSpecs/SDLHexUtilitySpec.m new file mode 100644 index 000000000..f9a539103 --- /dev/null +++ b/SmartDeviceLinkTests/UtilitiesSpecs/SDLHexUtilitySpec.m @@ -0,0 +1,36 @@ +// +// SDLHexUtilitySpec.m +// SmartDeviceLink-iOS + +#import + +#import +#import + +#import "SDLHexUtility.h" + + +QuickSpecBegin(SDLHexUtilitySpec) + +describe(@"getting a hex string", ^{ + context(@"from a byte array", ^{ + it(@"correctly returns a hex string", ^{ + UInt8 byteArray[] = {0x00, 0x0F, 0xFF, 0x13}; + NSString *hexString = [SDLHexUtility getHexString:byteArray length:4]; + + expect(hexString).to(equal(@"000FFF13")); + }); + }); + + context(@"From a data object", ^{ + it(@"correctly returns a hex string", ^{ + UInt8 byteArray[] = {0x00, 0x0F, 0xFF, 0x13}; + NSData *byteData = [NSData dataWithBytes:byteArray length:4]; + NSString *hexString = [SDLHexUtility getHexString:byteData]; + + expect(hexString).to(equal(@"000FFF13")); + }); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLinkTests/UtilitiesSpecs/SDLJingleSpec.m b/SmartDeviceLinkTests/UtilitiesSpecs/SDLJingleSpec.m new file mode 100644 index 000000000..ed727abbb --- /dev/null +++ b/SmartDeviceLinkTests/UtilitiesSpecs/SDLJingleSpec.m @@ -0,0 +1,24 @@ +// +// SDLJingleSpec.m +// SmartDeviceLink-iOS + +#import +#import +#import + +#import "SDLJingle.h" + + +QuickSpecBegin(SDLJingleSpec) + +describe(@"retrieving jingle strings", ^{ + it(@"returns each jingle correctly", ^{ + expect([SDLJingle NEGATIVE_JINGLE]).to(equal(@"NEGATIVE_JINGLE")); + expect([SDLJingle POSITIVE_JINGLE]).to(equal(@"POSITIVE_JINGLE")); + expect([SDLJingle LISTEN_JINGLE]).to(equal(@"LISTEN_JINGLE")); + expect([SDLJingle INITIAL_JINGLE]).to(equal(@"INITIAL_JINGLE")); + expect([SDLJingle HELP_JINGLE]).to(equal(@"HELP_JINGLE")); + }); +}); + +QuickSpecEnd diff --git a/SmartDeviceLink_Example/Base.lproj/ConnectionIAPTableViewController.storyboard b/SmartDeviceLink_Example/Base.lproj/ConnectionIAPTableViewController.storyboard new file mode 100644 index 000000000..335364997 --- /dev/null +++ b/SmartDeviceLink_Example/Base.lproj/ConnectionIAPTableViewController.storyboard @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SmartDeviceLink_Example/Base.lproj/ConnectionTCPTableViewController.storyboard b/SmartDeviceLink_Example/Base.lproj/ConnectionTCPTableViewController.storyboard new file mode 100644 index 000000000..231cff68b --- /dev/null +++ b/SmartDeviceLink_Example/Base.lproj/ConnectionTCPTableViewController.storyboard @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SmartDeviceLink_Example/Base.lproj/LaunchScreen.xib b/SmartDeviceLink_Example/Base.lproj/LaunchScreen.xib new file mode 100644 index 000000000..833c7dfd7 --- /dev/null +++ b/SmartDeviceLink_Example/Base.lproj/LaunchScreen.xib @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SmartDeviceLink_Example/Base.lproj/Main.storyboard b/SmartDeviceLink_Example/Base.lproj/Main.storyboard new file mode 100644 index 000000000..e0fd6eec5 --- /dev/null +++ b/SmartDeviceLink_Example/Base.lproj/Main.storyboard @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SmartDeviceLink_Example/Classes/AppDelegate.h b/SmartDeviceLink_Example/Classes/AppDelegate.h new file mode 100644 index 000000000..b86efb1a6 --- /dev/null +++ b/SmartDeviceLink_Example/Classes/AppDelegate.h @@ -0,0 +1,13 @@ +// +// AppDelegate.h +// SmartDeviceLink-iOS + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git a/SmartDeviceLink_Example/Classes/AppDelegate.m b/SmartDeviceLink_Example/Classes/AppDelegate.m new file mode 100644 index 000000000..23e5c54be --- /dev/null +++ b/SmartDeviceLink_Example/Classes/AppDelegate.m @@ -0,0 +1,45 @@ +// +// AppDelegate.m +// SmartDeviceLink-iOS + +#import "AppDelegate.h" + +#import "ProxyManager.h" + + +@interface AppDelegate () + +@end + + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application { + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.h b/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.h new file mode 100644 index 000000000..a09f1fa77 --- /dev/null +++ b/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.h @@ -0,0 +1,12 @@ +// +// ConnectionAnimatedTransition.h +// SmartDeviceLink-iOS + +#import + +#import + + +@interface ConnectionAnimatedTransition : NSObject + +@end diff --git a/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.m b/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.m new file mode 100644 index 000000000..1a4d4d141 --- /dev/null +++ b/SmartDeviceLink_Example/Classes/ConnectionAnimatedTransition.m @@ -0,0 +1,43 @@ +// +// ConnectionAnimatedTransition.m +// SmartDeviceLink-iOS + +#import "ConnectionAnimatedTransition.h" + + +static CGFloat const ChildViewPadding = 16; +static CGFloat const DampingFactor = 0.8; +static CGFloat const InitialSpringVelocity = 0.6; + + +@implementation ConnectionAnimatedTransition + +- (NSTimeInterval)transitionDuration:(id)transitionContext { + return 0.4; +} + +- (void)animateTransition:(id)transitionContext { + UIViewController *fromViewController = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; + UIViewController *toViewController = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; + + BOOL goingRight = ([transitionContext initialFrameForViewController:toViewController].origin.x < [transitionContext finalFrameForViewController:toViewController].origin.x); + CGFloat travelDistance = [transitionContext containerView].bounds.size.width + ChildViewPadding; + CGAffineTransform travel = CGAffineTransformMakeTranslation((goingRight ? travelDistance : -travelDistance), 0); + + [[transitionContext containerView] addSubview:toViewController.view]; + toViewController.view.alpha = 0; + toViewController.view.transform = CGAffineTransformInvert(travel); + + [UIView animateWithDuration:[self transitionDuration:transitionContext] delay:0 usingSpringWithDamping:DampingFactor initialSpringVelocity:InitialSpringVelocity options:kNilOptions animations:^{ + fromViewController.view.transform = travel; + fromViewController.view.alpha = 0; + + toViewController.view.transform = [transitionContext targetTransform]; + toViewController.view.alpha = 1; + } completion:^(BOOL finished) { + fromViewController.view.transform = [transitionContext targetTransform]; + [transitionContext completeTransition:![transitionContext transitionWasCancelled]]; + }]; +} + +@end diff --git a/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.h b/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.h new file mode 100644 index 000000000..4e2d1ea32 --- /dev/null +++ b/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.h @@ -0,0 +1,9 @@ +// +// ConnectionContainerViewController.h +// SmartDeviceLink-iOS + +#import + +@interface ConnectionContainerViewController : UIViewController + +@end diff --git a/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.m b/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.m new file mode 100644 index 000000000..b3fe8abc0 --- /dev/null +++ b/SmartDeviceLink_Example/Classes/ConnectionContainerViewController.m @@ -0,0 +1,121 @@ +// +// ConnectionContainerViewController.m +// SmartDeviceLink-iOS + +#import "ConnectionContainerViewController.h" + +#import "ConnectionTCPTableViewController.h" +#import "ConnectionIAPTableViewController.h" +#import "ConnectionTransitionContext.h" +#import "ConnectionAnimatedTransition.h" + + + +@interface ConnectionContainerViewController () + +@property (weak, nonatomic) IBOutlet UISegmentedControl *connectionTypeSegmentedControl; +@property (strong, nonatomic) NSArray *viewControllers; +@property (strong, nonatomic) UIViewController *currentViewController; + +@property (strong, nonatomic) UIPanGestureRecognizer *panGestureRecognizer; + +@end + + + +@implementation ConnectionContainerViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + self.navigationController.navigationBar.translucent = NO; + + // Setup the child VCs + UIStoryboard *tcpControllerStoryboard = [UIStoryboard storyboardWithName:@"ConnectionTCPTableViewController" bundle:[NSBundle mainBundle]]; + UIStoryboard *iapControllerStoryboard = [UIStoryboard storyboardWithName:@"ConnectionIAPTableViewController" bundle:[NSBundle mainBundle]]; + ConnectionTCPTableViewController *tcpController = [tcpControllerStoryboard instantiateInitialViewController]; + ConnectionIAPTableViewController *iapController = [iapControllerStoryboard instantiateInitialViewController]; + self.viewControllers = @[tcpController, iapController]; + + // Setup the pan gesture + self.panGestureRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panGestureRecognizerDidFire:)]; + [self.view addGestureRecognizer:self.panGestureRecognizer]; + + // Setup initial view controller state + self.connectionTypeSegmentedControl.selectedSegmentIndex = 0; + [self loadInitialChildViewController]; +} + +- (void)loadInitialChildViewController { + // On the initial load, we just add the new child VC with no animation + UIViewController *initialViewController = self.viewControllers[0]; + [self addChildViewController:initialViewController]; + [self.view addSubview:initialViewController.view]; + [initialViewController didMoveToParentViewController:self]; + + self.currentViewController = initialViewController; +} + + +#pragma mark - IBActions + +- (IBAction)connectionTypeSegmentedControlSelectedIndexDidChange:(UISegmentedControl *)sender { + [self transitionToViewControllerForSelectedIndex:sender.selectedSegmentIndex]; +} + + +#pragma mark - Gestures + +- (void)panGestureRecognizerDidFire:(UIPanGestureRecognizer *)gesture { + BOOL goingRight = ([gesture velocityInView:gesture.view].x < 0.0f); + + NSUInteger currentSegmentIndex = self.connectionTypeSegmentedControl.selectedSegmentIndex; + if (goingRight && (currentSegmentIndex != self.viewControllers.count - 1)) { + // If we're swiping left (going right) and current segment is not all the way to the right + NSUInteger nextIndex = currentSegmentIndex + 1; + self.connectionTypeSegmentedControl.selectedSegmentIndex = nextIndex; + [self transitionToViewControllerForSelectedIndex:nextIndex]; + } else if (!goingRight && (currentSegmentIndex > 0)) { + // If we're swiping right (going left) and the current segment is not all the way to the left + NSUInteger nextIndex = currentSegmentIndex - 1; + self.connectionTypeSegmentedControl.selectedSegmentIndex = nextIndex; + [self transitionToViewControllerForSelectedIndex:nextIndex]; + } +} + + +#pragma mark - Private API + +- (void)transitionToViewControllerForSelectedIndex:(NSInteger)selectedIndex { + UIViewController *toViewController = self.viewControllers[selectedIndex]; + + if (toViewController == nil || toViewController == self.currentViewController) { + return; + } + + [self.currentViewController willMoveToParentViewController:nil]; + [self addChildViewController:toViewController]; + + id animator = [[ConnectionAnimatedTransition alloc] init]; + NSUInteger fromIndex = [self.viewControllers indexOfObject:self.currentViewController]; + + ConnectionTransitionContext *transitionContext = [[ConnectionTransitionContext alloc] initWithFromViewController:self.currentViewController toViewController:toViewController direction:((selectedIndex > fromIndex) ? ConnectionTransitionDirectionRight : ConnectionTransitionDirectionLeft) transitionComplete:^(BOOL didComplete) { + [self.currentViewController.view removeFromSuperview]; + [self.currentViewController removeFromParentViewController]; + [toViewController didMoveToParentViewController:self]; + + if ([animator respondsToSelector:@selector(animationEnded:)]) { + [animator animationEnded:didComplete]; + } + + self.connectionTypeSegmentedControl.userInteractionEnabled = YES; + self.currentViewController = toViewController; + }]; + transitionContext.animated = YES; + transitionContext.interactive = NO; + + self.connectionTypeSegmentedControl.userInteractionEnabled = NO; + [animator animateTransition:transitionContext]; +} + +@end diff --git a/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.h b/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.h new file mode 100644 index 000000000..5ebb3801c --- /dev/null +++ b/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.h @@ -0,0 +1,9 @@ +// +// ConnectionIAPTableViewController.h +// SmartDeviceLink-iOS + +#import + +@interface ConnectionIAPTableViewController : UITableViewController + +@end diff --git a/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.m b/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.m new file mode 100644 index 000000000..456f68cf2 --- /dev/null +++ b/SmartDeviceLink_Example/Classes/ConnectionIAPTableViewController.m @@ -0,0 +1,92 @@ +// +// ConnectionIAPTableViewController.m +// SmartDeviceLink-iOS + +#import "ConnectionIAPTableViewController.h" + +#import "ProxyManager.h" + + + +@interface ConnectionIAPTableViewController () + +@property (weak, nonatomic) IBOutlet UITableViewCell *connectTableViewCell; +@property (weak, nonatomic) IBOutlet UIButton *connectButton; + +@end + + + +@implementation ConnectionIAPTableViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + // Observe Proxy Manager state + [[ProxyManager sharedManager] addObserver:self forKeyPath:NSStringFromSelector(@selector(state)) options:(NSKeyValueObservingOptionInitial|NSKeyValueObservingOptionNew) context:nil]; + + // Tableview setup + self.tableView.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag; + + // Connect Button setup + self.connectButton.tintColor = [UIColor whiteColor]; +} + +- (void)dealloc { + @try { + [[ProxyManager sharedManager] removeObserver:self forKeyPath:NSStringFromSelector(@selector(state))]; + } @catch (NSException __unused *exception) {} +} + + +#pragma mark - IBActions + +- (IBAction)connectButtonWasPressed:(UIButton *)sender { + ProxyState state = [ProxyManager sharedManager].state; + switch (state) { + case ProxyStateStopped: { + [[ProxyManager sharedManager] startProxyWithTransportType:ProxyTransportTypeIAP]; + } break; + case ProxyStateSearchingForConnection: { + [[ProxyManager sharedManager] stopProxy]; + } break; + case ProxyStateConnected: { + [[ProxyManager sharedManager] stopProxy]; + } break; + default: break; + } +} + + +#pragma mark - KVO + +- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { + if ([keyPath isEqualToString:NSStringFromSelector(@selector(state))]) { + ProxyState newState = [change[NSKeyValueChangeNewKey] unsignedIntegerValue]; + [self proxyManagerDidChangeState:newState]; + } +} + + +#pragma mark - Private Methods + +- (void)proxyManagerDidChangeState:(ProxyState)newState { + switch (newState) { + case ProxyStateStopped: { + self.connectTableViewCell.backgroundColor = [UIColor redColor]; + self.connectButton.titleLabel.text = @"Connect"; + } break; + case ProxyStateSearchingForConnection: { + self.connectTableViewCell.backgroundColor = [UIColor blueColor]; + self.connectButton.titleLabel.text = @"Stop Searching"; + } break; + case ProxyStateConnected: { + self.connectTableViewCell.backgroundColor = [UIColor greenColor]; + self.connectButton.titleLabel.text = @"Disconnect"; + } break; + default: break; + } +} + + +@end diff --git a/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.h b/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.h new file mode 100644 index 000000000..8414dfcfc --- /dev/null +++ b/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.h @@ -0,0 +1,9 @@ +// +// ConnectionTCPTableViewController.h +// SmartDeviceLink-iOS + +#import + +@interface ConnectionTCPTableViewController : UITableViewController + +@end diff --git a/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.m b/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.m new file mode 100644 index 000000000..9cb0110c7 --- /dev/null +++ b/SmartDeviceLink_Example/Classes/ConnectionTCPTableViewController.m @@ -0,0 +1,123 @@ +// +// ConnectionTCPTableViewController.m +// SmartDeviceLink-iOS + +@import AVFoundation; + +#import "ConnectionTCPTableViewController.h" + +#import "Preferences.h" +#import "ProxyManager.h" +#import "SDLStreamingMediaManager.h" + +#import + +@interface ConnectionTCPTableViewController () + +@property (weak, nonatomic) IBOutlet UITextField *ipAddressTextField; +@property (weak, nonatomic) IBOutlet UITextField *portTextField; + +@property (weak, nonatomic) IBOutlet UITableViewCell *connectTableViewCell; +@property (weak, nonatomic) IBOutlet UIButton *connectButton; + +@end + + + +@implementation ConnectionTCPTableViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + // Observe Proxy Manager state + [[ProxyManager sharedManager] addObserver:self forKeyPath:NSStringFromSelector(@selector(state)) options:(NSKeyValueObservingOptionInitial|NSKeyValueObservingOptionNew) context:nil]; + + // Tableview setup + self.tableView.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag; + self.ipAddressTextField.text = [Preferences sharedPreferences].ipAddress; + self.portTextField.text = [Preferences sharedPreferences].port; + + // Connect Button setup + self.connectButton.tintColor = [UIColor whiteColor]; +} + +- (void)dealloc { + @try { + [[ProxyManager sharedManager] removeObserver:self forKeyPath:NSStringFromSelector(@selector(state))]; + } @catch (NSException __unused *exception) {} +} + +- (void)didReceiveMemoryWarning { + NSLog(@"***** MEMORY WARNING *****"); +} + + +#pragma mark - IBActions + +- (IBAction)connectButtonWasPressed:(UIButton *)sender { + [Preferences sharedPreferences].ipAddress = self.ipAddressTextField.text; + [Preferences sharedPreferences].port = self.portTextField.text; + + ProxyState state = [ProxyManager sharedManager].state; + switch (state) { + case ProxyStateStopped: { + [[ProxyManager sharedManager] startProxyWithTransportType:ProxyTransportTypeTCP]; + } break; + case ProxyStateSearchingForConnection: { + [[ProxyManager sharedManager] stopProxy]; + } break; + case ProxyStateConnected: { + [[ProxyManager sharedManager] stopProxy]; + } break; + default: break; + } +} + + +#pragma mark - Table view delegate + +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { + if (indexPath.section != 0) { + return; + } + + switch (indexPath.row) { + case 0: { + [self.ipAddressTextField becomeFirstResponder]; + } break; + case 1: { + [self.portTextField becomeFirstResponder]; + } break; + default: break; + } +} + + +#pragma mark - KVO + +- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { + if ([keyPath isEqualToString:NSStringFromSelector(@selector(state))]) { + ProxyState newState = [change[NSKeyValueChangeNewKey] unsignedIntegerValue]; + [self proxyManagerDidChangeState:newState]; + } +} + +- (void)proxyManagerDidChangeState:(ProxyState)newState { + switch (newState) { + case ProxyStateStopped: { + self.connectTableViewCell.backgroundColor = [UIColor redColor]; + self.connectButton.titleLabel.text = @"Connect"; + } break; + case ProxyStateSearchingForConnection: { + self.connectTableViewCell.backgroundColor = [UIColor blueColor]; + self.connectButton.titleLabel.text = @"Stop Searching"; + } break; + case ProxyStateConnected: { + self.connectTableViewCell.backgroundColor = [UIColor greenColor]; + self.connectButton.titleLabel.text = @"Disconnect"; + } break; + default: break; + } +} + +@end diff --git a/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.h b/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.h new file mode 100644 index 000000000..eda85adef --- /dev/null +++ b/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.h @@ -0,0 +1,25 @@ +// +// ConnectionTransitionContext.h +// SmartDeviceLink-iOS + +#import + +#import + + +typedef NS_ENUM(NSUInteger, ConnectionTransitionDirection) { + ConnectionTransitionDirectionLeft, + ConnectionTransitionDirectionRight +}; + +typedef void (^TransitionCompleteBlock)(BOOL didComplete); + + +@interface ConnectionTransitionContext : NSObject + +@property (assign, nonatomic, getter=isAnimated) BOOL animated; +@property (assign, nonatomic, getter=isInteractive) BOOL interactive; + +- (instancetype)initWithFromViewController:(UIViewController *)fromViewController toViewController:(UIViewController *)toViewController direction:(ConnectionTransitionDirection)direction transitionComplete:(TransitionCompleteBlock)completion; + +@end diff --git a/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.m b/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.m new file mode 100644 index 000000000..049d5ee40 --- /dev/null +++ b/SmartDeviceLink_Example/Classes/ConnectionTransitionContext.m @@ -0,0 +1,109 @@ +// +// ConnectionTransitionContext.m +// SmartDeviceLink-iOS + +#import "ConnectionTransitionContext.h" + + + +@interface ConnectionTransitionContext () + +@property (assign, nonatomic) UIModalTransitionStyle presentationStyle; + +@property (weak, nonatomic) UIView *containerView; +@property (strong, nonatomic) NSDictionary *viewControllers; + +@property (assign, nonatomic) CGRect disappearingFromRect; +@property (assign, nonatomic) CGRect disappearingToRect; +@property (assign, nonatomic) CGRect appearingFromRect; +@property (assign, nonatomic) CGRect appearingToRect; + +@property (copy, nonatomic) TransitionCompleteBlock block; + +@end + + + +@implementation ConnectionTransitionContext + +- (instancetype)initWithFromViewController:(UIViewController *)fromViewController toViewController:(UIViewController *)toViewController direction:(ConnectionTransitionDirection)direction transitionComplete:(TransitionCompleteBlock)completion { + NSAssert((fromViewController.isViewLoaded && fromViewController.view.superview), @"The fromViewController must reside in the container view when initializing the transition context"); + + self = [super init]; + if (!self) { + return nil; + } + + self.presentationStyle = UIModalPresentationCustom; + self.containerView = fromViewController.view.superview; + self.viewControllers = @{ + UITransitionContextFromViewControllerKey: fromViewController, + UITransitionContextToViewControllerKey: toViewController + }; + + CGFloat travelDistance = (direction == ConnectionTransitionDirectionRight) ? -self.containerView.bounds.size.width : self.containerView.bounds.size.width; + self.disappearingFromRect = self.appearingToRect = self.containerView.bounds; + self.disappearingToRect = CGRectOffset(self.containerView.bounds, travelDistance, 0); + self.appearingFromRect = CGRectOffset(self.containerView.bounds, -travelDistance, 0); + + self.block = completion; + + return self; +} + +#pragma mark - UIViewControllerContextTransitioning + +- (CGRect)initialFrameForViewController:(UIViewController *)vc { + if (vc == [self viewControllerForKey:UITransitionContextFromViewControllerKey]) { + return self.disappearingFromRect; + } else { + return self.appearingFromRect; + } +} + +- (CGRect)finalFrameForViewController:(UIViewController *)vc { + if (vc == [self viewControllerForKey:UITransitionContextFromViewControllerKey]) { + return self.disappearingToRect; + } else { + return self.appearingToRect; + } +} + +- (UIViewController *)viewControllerForKey:(NSString *)key { + return self.viewControllers[key]; +} + +- (void)completeTransition:(BOOL)didComplete { + if (self.block != NULL) { + self.block(didComplete); + } +} + +- (BOOL)transitionWasCancelled { + return NO; +} + +- (UIView *)viewForKey:(NSString *)key { + UIViewController *viewController = nil; + if ([key isEqualToString:UITransitionContextFromViewControllerKey]) { + viewController = [self viewControllerForKey:UITransitionContextFromViewControllerKey]; + } else { + viewController = [self viewControllerForKey:UITransitionContextToViewControllerKey]; + } + + return viewController.view; +} + +- (CGAffineTransform)targetTransform { + return CGAffineTransformIdentity; +} + + +#pragma mark Interactive Transition + +- (void)updateInteractiveTransition:(CGFloat)percentComplete {} +- (void)finishInteractiveTransition {} +- (void)cancelInteractiveTransition {} + + +@end diff --git a/SmartDeviceLink_Example/Classes/Preferences.h b/SmartDeviceLink_Example/Classes/Preferences.h new file mode 100644 index 000000000..5b628cf92 --- /dev/null +++ b/SmartDeviceLink_Example/Classes/Preferences.h @@ -0,0 +1,27 @@ +// +// Preferences.h +// SmartDeviceLink-iOS + +#import + +/** + * A fully thread safe way to set and access preferences stored on NSUserDefaults + * just read and write the property values, don't access them via iVar, you won't get + * very far...HA. I rhymed. Access them via the shared preferences object, or don't... + * the result will be the same. Like, exactly the same. Hopefully. + */ +@interface Preferences : NSObject + +/***** Computed Properties *****/ +// Connection +@property (strong, nonatomic) NSString *ipAddress; +@property (strong, nonatomic) NSString *port; + ++ (instancetype)sharedPreferences; + +/** + * Reset the properties in the defaults object to their default values, defined in the m file. + */ +- (void)resetPreferences; + +@end diff --git a/SmartDeviceLink_Example/Classes/Preferences.m b/SmartDeviceLink_Example/Classes/Preferences.m new file mode 100644 index 000000000..f103998da --- /dev/null +++ b/SmartDeviceLink_Example/Classes/Preferences.m @@ -0,0 +1,112 @@ +// +// Preferences.m +// SmartDeviceLink-iOS + +#import "Preferences.h" + + +NSString *const IPAddressPreferencesKey = @"SDLExampleAppIPAddress"; +NSString *const PortPreferencesKey = @"SDLExampleAppPort"; + +NSString *const DefaultIPAddressValue = @"192.168.1.1"; +NSString *const DefaultPortValue = @"12345"; + + + +@interface Preferences () + +@end + + + +@implementation Preferences + + +#pragma mark - Singleton / Initializers + ++ (instancetype)sharedPreferences { + static Preferences *sharedPreferences = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + sharedPreferences = [[Preferences alloc] init]; + }); + + return sharedPreferences; +} + +- (instancetype)init { + self = [super init]; + if (!self) { + return nil; + } + + if (self.ipAddress == nil || self.port == nil) { + [self resetPreferences]; + } + + return self; +} + + +#pragma mark - Public API + +- (void)resetPreferences { + self.ipAddress = DefaultIPAddressValue; + self.port = DefaultPortValue; +} + + +#pragma mark - Setters / Getters + +- (NSString *)ipAddress { + return [self stringForKey:IPAddressPreferencesKey]; +} + +- (void)setIpAddress:(NSString *)ipAddress { + [self setString:ipAddress forKey:IPAddressPreferencesKey]; +} + +- (NSString *)port { + return [self stringForKey:PortPreferencesKey]; +} + +- (void)setPort:(NSString *)port { + [self setString:port forKey:PortPreferencesKey]; +} + + +#pragma mark - Private User Defaults Helpers + +- (void)setString:(NSString *)aString forKey:(NSString *)aKey { + NSParameterAssert(aKey != nil); + + dispatch_async(self.class.preferencesQueue, ^{ + [[NSUserDefaults standardUserDefaults] setObject:aString forKey:aKey]; + }); +} + +- (NSString *)stringForKey:(NSString *)aKey { + NSParameterAssert(aKey != nil); + + __block NSString *retVal = nil; + dispatch_sync(self.class.preferencesQueue, ^{ + retVal = [[NSUserDefaults standardUserDefaults] stringForKey:aKey]; + }); + + return retVal; +} + + +#pragma mark - Class Queue + ++ (dispatch_queue_t)preferencesQueue { + static dispatch_queue_t preferencesQueue; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + preferencesQueue = dispatch_queue_create("com.sdl-example.preferences", DISPATCH_QUEUE_SERIAL); + }); + + return preferencesQueue; +} + +@end diff --git a/SmartDeviceLink_Example/Classes/ProxyManager.h b/SmartDeviceLink_Example/Classes/ProxyManager.h new file mode 100644 index 000000000..604ffdc82 --- /dev/null +++ b/SmartDeviceLink_Example/Classes/ProxyManager.h @@ -0,0 +1,34 @@ +// +// ProxyManager.h +// SmartDeviceLink-iOS + +#import + +@class SDLStreamingMediaManager; + + +typedef NS_ENUM(NSUInteger, ProxyTransportType) { + ProxyTransportTypeUnknown, + ProxyTransportTypeTCP, + ProxyTransportTypeIAP +}; + +typedef NS_ENUM(NSUInteger, ProxyState) { + ProxyStateStopped, + ProxyStateSearchingForConnection, + ProxyStateConnected +}; + + +@interface ProxyManager : NSObject + +@property (assign, nonatomic, readonly) ProxyState state; + ++ (instancetype)sharedManager; +- (void)startProxyWithTransportType:(ProxyTransportType)transportType; +- (void)resetProxyWithTransportType:(ProxyTransportType)transportType; +- (void)stopProxy; + +@property (strong, nonatomic, readonly) SDLStreamingMediaManager *mediaManager; + +@end diff --git a/SmartDeviceLink_Example/Classes/ProxyManager.m b/SmartDeviceLink_Example/Classes/ProxyManager.m new file mode 100644 index 000000000..355e91340 --- /dev/null +++ b/SmartDeviceLink_Example/Classes/ProxyManager.m @@ -0,0 +1,148 @@ +// +// ProxyManager.m +// SmartDeviceLink-iOS + +@import SmartDeviceLink; + +#import "ProxyManager.h" + +#import "Preferences.h" + + +NSString *const SDLAppName = @"SDL Test"; +NSString *const SDLAppId = @"9999"; + + +@interface ProxyManager () + +@property (strong, nonatomic) SDLProxy *proxy; +@property (assign, nonatomic, readwrite) ProxyState state; +@property (assign, nonatomic) BOOL isFirstHMIFull; +@property (assign, nonatomic) ProxyTransportType currentTransportType; +@end + + +@implementation ProxyManager + +#pragma mark - Initialization + ++ (instancetype)sharedManager { + static ProxyManager *sharedManager = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + sharedManager = [[ProxyManager alloc] init]; + }); + + return sharedManager; +} + +- (instancetype)init { + self = [super init]; + if (self == nil) { + return nil; + } + + _proxy = nil; + _state = ProxyStateStopped; + _isFirstHMIFull = NO; + _currentTransportType = ProxyTransportTypeUnknown; + + return self; +} + + +#pragma mark - Public Proxy Setup + +- (void)resetProxyWithTransportType:(ProxyTransportType)transportType { + [self stopProxy]; + [self startProxyWithTransportType:transportType]; +} + + +#pragma mark - Private Proxy Setup + +- (void)startProxyWithTransportType:(ProxyTransportType)transportType { + if (self.proxy != nil) { + return; + } + + self.currentTransportType = transportType; + self.isFirstHMIFull = YES; + self.state = ProxyStateSearchingForConnection; + + switch (transportType) { + case ProxyTransportTypeTCP: { + self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self tcpIPAddress:[Preferences sharedPreferences].ipAddress tcpPort:[Preferences sharedPreferences].port]; + } break; + case ProxyTransportTypeIAP: { + self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self]; + } break; + default: NSAssert(NO, @"Unknown transport setup: %@", @(transportType)); + } +} + +- (void)stopProxy { + self.state = ProxyStateStopped; + + if (self.proxy != nil) { + [self.proxy dispose]; + self.proxy = nil; + } +} + +- (void)showInitialData { + SDLShow *showRPC = [SDLRPCRequestFactory buildShowWithMainField1:@"SDL" mainField2:@"Test" alignment:[SDLTextAlignment CENTERED] correlationID:[self nextCorrelationID]]; + [self.proxy sendRPC:showRPC]; +} + + +#pragma mark - Private Proxy Helpers + +- (NSNumber *)nextCorrelationID { + static NSInteger _correlationID = 1; + return @(_correlationID++); +} + +- (UInt32)nextMessageNumber { + static UInt32 _messageNumber = 1; + return _messageNumber++; +} + + +#pragma mark - SDLProxyListner delegate methods + +- (void)onProxyOpened { + self.state = ProxyStateConnected; + + SDLRegisterAppInterface *registerRequest = [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:SDLAppName languageDesired:[SDLLanguage EN_US] appID:SDLAppId]; + registerRequest.appHMIType = [NSMutableArray arrayWithObjects:[SDLAppHMIType MEDIA], nil]; + [self.proxy sendRPC:registerRequest]; +} + +- (void)onProxyClosed { + [self resetProxyWithTransportType:self.currentTransportType]; +} + +- (void)onOnDriverDistraction:(SDLOnDriverDistraction *)notification { + +} + +- (void)onOnHMIStatus:(SDLOnHMIStatus *)notification { + if ((notification.hmiLevel == [SDLHMILevel FULL]) && self.isFirstHMIFull) { + [self showInitialData]; + self.isFirstHMIFull = NO; + } +} + +- (void)onReceivedLockScreenIcon:(UIImage *)icon { + UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Lock Screen Icon" message:nil delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; + UIImageView *imageView = [[UIImageView alloc] initWithImage:icon]; + if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1) { + [alert setValue:imageView forKey:@"accessoryView"]; + }else{ + [alert addSubview:imageView]; + } + [alert show]; +} + +@end diff --git a/SmartDeviceLink_Example/Classes/main.m b/SmartDeviceLink_Example/Classes/main.m new file mode 100644 index 000000000..4566abbdd --- /dev/null +++ b/SmartDeviceLink_Example/Classes/main.m @@ -0,0 +1,12 @@ +// +// main.m +// SmartDeviceLink-iOS + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/SmartDeviceLink_Example/Images.xcassets/AppIcon.appiconset/Contents.json b/SmartDeviceLink_Example/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..118c98f74 --- /dev/null +++ b/SmartDeviceLink_Example/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,38 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SmartDeviceLink_Example/Info.plist b/SmartDeviceLink_Example/Info.plist new file mode 100644 index 000000000..4754f95a8 --- /dev/null +++ b/SmartDeviceLink_Example/Info.plist @@ -0,0 +1,91 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIBackgroundModes + + external-accessory + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedExternalAccessoryProtocols + + com.smartdevicelink.prot29 + com.smartdevicelink.prot28 + com.smartdevicelink.prot27 + com.smartdevicelink.prot26 + com.smartdevicelink.prot25 + com.smartdevicelink.prot24 + com.smartdevicelink.prot23 + com.smartdevicelink.prot22 + com.smartdevicelink.prot21 + com.smartdevicelink.prot20 + com.smartdevicelink.prot19 + com.smartdevicelink.prot18 + com.smartdevicelink.prot17 + com.smartdevicelink.prot16 + com.smartdevicelink.prot15 + com.smartdevicelink.prot14 + com.smartdevicelink.prot13 + com.smartdevicelink.prot12 + com.smartdevicelink.prot11 + com.smartdevicelink.prot10 + com.smartdevicelink.prot9 + com.smartdevicelink.prot8 + com.smartdevicelink.prot7 + com.smartdevicelink.prot6 + com.smartdevicelink.prot5 + com.smartdevicelink.prot4 + com.smartdevicelink.prot3 + com.smartdevicelink.prot2 + com.smartdevicelink.prot1 + com.smartdevicelink.prot0 + com.ford.sync.prot0 + + NSAppTransportSecurity + + NSExceptionDomains + + ford.com + + + NSIncludesSubdomains + + + NSTemporaryExceptionAllowsInsecureHTTPLoads + + + + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + + -- cgit v1.2.1 From 21ac0903ca73f6ec7967dfa9985a5d17f04535b5 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Wed, 25 May 2016 08:54:05 -0400 Subject: Re-link the README and other de-linked files from the move --- SmartDeviceLink-iOS.xcodeproj/project.pbxproj | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/SmartDeviceLink-iOS.xcodeproj/project.pbxproj b/SmartDeviceLink-iOS.xcodeproj/project.pbxproj index 9e1212d82..33b828300 100644 --- a/SmartDeviceLink-iOS.xcodeproj/project.pbxproj +++ b/SmartDeviceLink-iOS.xcodeproj/project.pbxproj @@ -1106,11 +1106,14 @@ 5D1464331C99AC0900727339 /* OCMock.framework.dSYM */ = {isa = PBXFileReference; lastKnownFileType = wrapper.dsym; name = OCMock.framework.dSYM; path = Carthage/Build/iOS/OCMock.framework.dSYM; sourceTree = ""; }; 5D1464341C99AC0900727339 /* Quick.framework.dSYM */ = {isa = PBXFileReference; lastKnownFileType = wrapper.dsym; name = Quick.framework.dSYM; path = Carthage/Build/iOS/Quick.framework.dSYM; sourceTree = ""; }; 5D1464351C99AC0900727339 /* OCMock.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OCMock.framework; path = Carthage/Build/iOS/OCMock.framework; sourceTree = ""; }; - 5D3759BC1CE12E810088C60E /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = CHANGELOG.md; path = ../../CHANGELOG.md; sourceTree = ""; }; - 5D3759BD1CE12E810088C60E /* DEPENDENCIES.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = DEPENDENCIES.md; path = ../../DEPENDENCIES.md; sourceTree = ""; }; - 5D3759BE1CE12E810088C60E /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; name = LICENSE; path = ../../LICENSE; sourceTree = ""; }; - 5D3759BF1CE12E810088C60E /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../../README.md; sourceTree = ""; }; - 5D3759C01CE12E810088C60E /* SmartDeviceLink-iOS.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = "SmartDeviceLink-iOS.podspec"; path = "../../SmartDeviceLink-iOS.podspec"; sourceTree = ""; }; + 5D1665A01CF5D5DA00CC4CA1 /* .gitignore */ = {isa = PBXFileReference; lastKnownFileType = text; path = .gitignore; sourceTree = SOURCE_ROOT; }; + 5D1665A11CF5D5DA00CC4CA1 /* .travis.yml */ = {isa = PBXFileReference; lastKnownFileType = text; path = .travis.yml; sourceTree = SOURCE_ROOT; }; + 5D1665A21CF5D5DA00CC4CA1 /* Cartfile.private */ = {isa = PBXFileReference; lastKnownFileType = text; path = Cartfile.private; sourceTree = SOURCE_ROOT; }; + 5D1665A31CF5D5DA00CC4CA1 /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = SOURCE_ROOT; }; + 5D1665A41CF5D5DA00CC4CA1 /* DEPENDENCIES.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = DEPENDENCIES.md; sourceTree = SOURCE_ROOT; }; + 5D1665A51CF5D5DA00CC4CA1 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = SOURCE_ROOT; }; + 5D1665A61CF5D5DA00CC4CA1 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = SOURCE_ROOT; }; + 5D1665A71CF5D5DA00CC4CA1 /* SmartDeviceLink-iOS.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = "SmartDeviceLink-iOS.podspec"; sourceTree = SOURCE_ROOT; }; 5D4019AF1A76EC350006B0C2 /* SmartDeviceLink-Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SmartDeviceLink-Example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 5D4029D31A76F0340006B0C2 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = SmartDeviceLink_Example/Images.xcassets; sourceTree = SOURCE_ROOT; }; 5D4029D51A76F0410006B0C2 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = SmartDeviceLink_Example/Info.plist; sourceTree = SOURCE_ROOT; }; @@ -2860,11 +2863,14 @@ 5D5934EE1A85160900687FB9 /* Protocol */, 5D5934ED1A85160400687FB9 /* Proxy */, 5D61FA201A84237100846EE7 /* SmartDeviceLink.h */, - 5D3759BC1CE12E810088C60E /* CHANGELOG.md */, - 5D3759BD1CE12E810088C60E /* DEPENDENCIES.md */, - 5D3759BE1CE12E810088C60E /* LICENSE */, - 5D3759BF1CE12E810088C60E /* README.md */, - 5D3759C01CE12E810088C60E /* SmartDeviceLink-iOS.podspec */, + 5D1665A01CF5D5DA00CC4CA1 /* .gitignore */, + 5D1665A11CF5D5DA00CC4CA1 /* .travis.yml */, + 5D1665A21CF5D5DA00CC4CA1 /* Cartfile.private */, + 5D1665A31CF5D5DA00CC4CA1 /* CHANGELOG.md */, + 5D1665A41CF5D5DA00CC4CA1 /* DEPENDENCIES.md */, + 5D1665A51CF5D5DA00CC4CA1 /* LICENSE */, + 5D1665A61CF5D5DA00CC4CA1 /* README.md */, + 5D1665A71CF5D5DA00CC4CA1 /* SmartDeviceLink-iOS.podspec */, 5D61FA1E1A84237100846EE7 /* Supporting Files */, ); path = SmartDeviceLink; -- cgit v1.2.1 From 9cbbe05f226e41b19a265be9b1a74364bdf6de80 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Wed, 25 May 2016 16:43:51 -0400 Subject: Fix a few paths --- .travis.yml | 8 ++------ SmartDeviceLink-iOS.podspec | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 035c47175..78343bb17 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,17 +7,13 @@ notifications: before_install: - brew update - brew outdated xctool || brew upgrade xctool - - curl -OlL "https://github.com/Carthage/Carthage/releases/download/0.11/Carthage.pkg" - - sudo installer -pkg "Carthage.pkg" -target / - - rm "Carthage.pkg" + - brew outdated carthage || brew upgrade carthage before_script: - - cd SmartDeviceLink-iOS - carthage bootstrap --platform ios - - cd ../ script: - - xctool -project SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj -scheme SmartDeviceLink -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO RUN_CLANG_STATIC_ANALYZER=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES test + - xctool -project SmartDeviceLink-iOS.xcodeproj -scheme SmartDeviceLink -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO RUN_CLANG_STATIC_ANALYZER=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES test after_script: - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/SmartDeviceLink-iOS.podspec b/SmartDeviceLink-iOS.podspec index 7711ae8e8..b7ded1227 100644 --- a/SmartDeviceLink-iOS.podspec +++ b/SmartDeviceLink-iOS.podspec @@ -8,7 +8,7 @@ s.license = { :type => "New BSD", :file => "LICENSE" } s.author = { "SmartDeviceLink Team" => "joel@livio.io" } s.platform = :ios, "6.0" s.source = { :git => "https://github.com/smartdevicelink/sdl_ios.git", :tag => s.version.to_s } -s.source_files = "SmartDeviceLink-iOS/SmartDeviceLink/*.{h,m}" +s.source_files = "SmartDeviceLink/*.{h,m}" s.requires_arc = true end -- cgit v1.2.1 From 2d51834b394c29b78e8c1f10a86fd2e45c573846 Mon Sep 17 00:00:00 2001 From: "Muller, Alexander (A.)" Date: Fri, 27 May 2016 10:06:51 -0700 Subject: Removed unnecessary video encoder settings. --- .../SmartDeviceLink/SDLStreamingMediaManager.m | 52 ---------------------- 1 file changed, 52 deletions(-) diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m index 9b7f5a8ac..616667c5b 100644 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m +++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m @@ -236,33 +236,6 @@ void sdl_videoEncoderOutputCallback(void *outputCallbackRefCon, void *sourceFram return NO; } - // Set the bitrate of our video compression - int bitRate = 5000; - CFNumberRef bitRateNumRef = CFNumberCreate(NULL, kCFNumberSInt32Type, &bitRate); - if (bitRateNumRef == NULL) { - // TODO: Log & end session - if (*error != nil) { - *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationAllocationFailure userInfo:nil]; - } - - return NO; - } - - status = VTSessionSetProperty(self.compressionSession, kVTCompressionPropertyKey_AverageBitRate, bitRateNumRef); - - // Release our bitrate number - CFRelease(bitRateNumRef); - bitRateNumRef = NULL; - - if (status != noErr) { - // TODO: Log & End session - if (*error != nil) { - *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure userInfo:@{ @"OSStatus" : @(status) }]; - } - - return NO; - } - // Set the profile level of the video stream status = VTSessionSetProperty(self.compressionSession, kVTCompressionPropertyKey_ProfileLevel, kVTProfileLevel_H264_Baseline_AutoLevel); if (status != noErr) { @@ -283,31 +256,6 @@ void sdl_videoEncoderOutputCallback(void *outputCallbackRefCon, void *sourceFram return NO; } - // Set the key-frame interval - // TODO: This may be unnecessary, can the encoder do a better job than us? - int interval = 50; - CFNumberRef intervalNumRef = CFNumberCreate(NULL, kCFNumberSInt32Type, &interval); - if (intervalNumRef == NULL) { - if (*error != nil) { - *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationAllocationFailure userInfo:nil]; - } - - return NO; - } - - status = VTSessionSetProperty(self.compressionSession, kVTCompressionPropertyKey_MaxKeyFrameInterval, intervalNumRef); - - CFRelease(intervalNumRef); - intervalNumRef = NULL; - - if (status != noErr) { - if (*error != nil) { - *error = [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure userInfo:@{ @"OSStatus" : @(status) }]; - } - - return NO; - } - return YES; } -- cgit v1.2.1 From 399748158153b5cc00b7eb38d146c95f245490f4 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Tue, 31 May 2016 10:48:19 -0400 Subject: Update travis yaml file to support Xcode 7.3 * Update travis yaml to support automatic framework uploads * Fixes #412 --- .travis.yml | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 78343bb17..b73ac9129 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,37 @@ language: objective-c -osx_image: xcode7.1 +osx_image: xcode7.3 +xcode_project: SmartDeviceLink-iOS +xcode_scheme: SmartDeviceLink +xcode_sdk: iphonesimulator9.3 +env: + global: + - FRAMEWORK_NAME=SmartDeviceLink notifications: email: false before_install: - - brew update - - brew outdated xctool || brew upgrade xctool - - brew outdated carthage || brew upgrade carthage +- brew update +- brew outdated xctool || brew upgrade xctool +- brew outdated carthage || brew upgrade carthage before_script: - - carthage bootstrap --platform ios +- carthage bootstrap --platform ios script: - - xctool -project SmartDeviceLink-iOS.xcodeproj -scheme SmartDeviceLink -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO RUN_CLANG_STATIC_ANALYZER=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES test +- xctool -project SmartDeviceLink-iOS.xcodeproj -scheme SmartDeviceLink -sdk iphonesimulator + ONLY_ACTIVE_ARCH=NO RUN_CLANG_STATIC_ANALYZER=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES + GCC_GENERATE_TEST_COVERAGE_FILES=YES test after_script: - - bash <(curl -s https://codecov.io/bash) \ No newline at end of file +- bash <(curl -s https://codecov.io/bash) + +deploy: + provider: releases + api_key: + secure: p28zh58SsuOu7kD1/OhTklKsuAGD/DbSjBHDW7Tz1Yw+KDOm/RZZwdCmm9s3aroK7imtzSePj16v6Wxg4JT1JbVdNo2meEg/b6Ue0BcifEOx6dxKqeAtutQQdG3xqRIJxPZaK1nm6BSUZ5haaLMEKIFfiumQSaVwQVhs0chP0d4= + file: "$FRAMEWORK_NAME.framework.zip" + skip_cleanup: true + on: + repo: smartdevicelink/sdl_ios + tags: true -- cgit v1.2.1 From ab084a20b6f658dddd2b0ad3268fe663eda985b0 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Tue, 31 May 2016 14:35:21 -0400 Subject: Create .codecov.yml Fixes #414 --- codecov.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..83de15945 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,8 @@ +coverage: + ignore: + - Carthage/.* + - SmartDeviceLinkTests/.* + - SmartDeviceLinkExample/.* + status: + patch: false + project: false -- cgit v1.2.1 From 4e2ef1f90f53bdc2136d78b38529ed3782009aaf Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Tue, 31 May 2016 14:40:36 -0400 Subject: Fix a badge in the README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 360a7133b..c92095fa5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Version](https://img.shields.io/cocoapods/v/SmartDeviceLink-iOS.svg?style=flat)](https://cocoapods.org/pods/SmartDeviceLink-iOS) [![License](https://img.shields.io/cocoapods/l/SmartDeviceLink-iOS.svg?style=flat)](https://cocoapods.org/pods/SmartDeviceLink-iOS) [![Build Status](https://img.shields.io/travis/smartdevicelink/sdl_ios/master.svg?style=flat)](https://travis-ci.org/smartdevicelink/sdl_ios) - [![codecov.io](https://img.shields.io/codecov/c/github/codecov/smartdevicelink/sdl_ios/master.svg?style=flat)](http://codecov.io/github/smartdevicelink/sdl_ios?branch=master) + [![codecov](https://codecov.io/gh/smartdevicelink/sdl_ios/branch/master/graph/badge.svg)](https://codecov.io/gh/smartdevicelink/sdl_ios) [![Slack Status](http://sdlslack.herokuapp.com/badge.svg)](http://slack.smartdevicelink.org) -- cgit v1.2.1 From 411d26f4955bb3e7b18de36b587935e7c6ef6250 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Tue, 31 May 2016 14:51:09 -0400 Subject: Add carthage before_deploy generating of archive --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index b73ac9129..084841661 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,10 @@ script: after_script: - bash <(curl -s https://codecov.io/bash) +before_deploy: + - carthage build --no-skip-current --platform ios + - carthage archive $FRAMEWORK_NAME + deploy: provider: releases api_key: -- cgit v1.2.1 From bf4d29edea48214ace7ea9cf760a39a245565b42 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Wed, 1 Jun 2016 09:36:36 -0400 Subject: Fix test script --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 084841661..bea5ec78f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,9 +19,7 @@ before_script: - carthage bootstrap --platform ios script: -- xctool -project SmartDeviceLink-iOS.xcodeproj -scheme SmartDeviceLink -sdk iphonesimulator - ONLY_ACTIVE_ARCH=NO RUN_CLANG_STATIC_ANALYZER=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES - GCC_GENERATE_TEST_COVERAGE_FILES=YES test +- xctool -project SmartDeviceLink-iOS.xcodeproj -scheme SmartDeviceLink -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO RUN_CLANG_STATIC_ANALYZER=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES test after_script: - bash <(curl -s https://codecov.io/bash) -- cgit v1.2.1 From 0c4df5eaeb2da0a201a8ba81f2a83e5d08caf80e Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Wed, 1 Jun 2016 09:40:39 -0400 Subject: Fix mis-spaced README file causing header issues --- README.md | 394 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 197 insertions(+), 197 deletions(-) diff --git a/README.md b/README.md index 360a7133b..c1c0c8f58 100644 --- a/README.md +++ b/README.md @@ -1,217 +1,217 @@ -[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) - [![Version](https://img.shields.io/cocoapods/v/SmartDeviceLink-iOS.svg?style=flat)](https://cocoapods.org/pods/SmartDeviceLink-iOS) - [![License](https://img.shields.io/cocoapods/l/SmartDeviceLink-iOS.svg?style=flat)](https://cocoapods.org/pods/SmartDeviceLink-iOS) - [![Build Status](https://img.shields.io/travis/smartdevicelink/sdl_ios/master.svg?style=flat)](https://travis-ci.org/smartdevicelink/sdl_ios) - [![codecov.io](https://img.shields.io/codecov/c/github/codecov/smartdevicelink/sdl_ios/master.svg?style=flat)](http://codecov.io/github/smartdevicelink/sdl_ios?branch=master) - [![Slack Status](http://sdlslack.herokuapp.com/badge.svg)](http://slack.smartdevicelink.org) - + [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) +[![Version](https://img.shields.io/cocoapods/v/SmartDeviceLink-iOS.svg?style=flat)](https://cocoapods.org/pods/SmartDeviceLink-iOS) +[![License](https://img.shields.io/cocoapods/l/SmartDeviceLink-iOS.svg?style=flat)](https://cocoapods.org/pods/SmartDeviceLink-iOS) +[![Build Status](https://img.shields.io/travis/smartdevicelink/sdl_ios/master.svg?style=flat)](https://travis-ci.org/smartdevicelink/sdl_ios) +[![codecov.io](https://img.shields.io/codecov/c/github/codecov/smartdevicelink/sdl_ios/master.svg?style=flat)](http://codecov.io/github/smartdevicelink/sdl_ios?branch=master) +[![Slack Status](http://sdlslack.herokuapp.com/badge.svg)](http://slack.smartdevicelink.org) + # SmartDeviceLink (SDL) - - SmartDeviceLink (SDL) is a standard set of protocols and messages that connect applications on a smartphone to a vehicle head unit. This messaging enables a consumer to interact with their application using common in-vehicle interfaces such as a touch screen display, embedded voice recognition, steering wheel controls and various vehicle knobs and buttons. There are three main components that make up the SDL ecosystem. - - * The [Core](https://github.com/smartdevicelink/sdl_core) component is the software which Vehicle Manufacturers (OEMs) implement in their vehicle head units. Integrating this component into their head unit and HMI based on a set of guidelines and templates enables access to various smartphone applications. - * The optional [SDL Server](https://github.com/smartdevicelink/sdl_server) can be used by Vehicle OEMs to update application policies and gather usage information for connected applications. - * The [iOS](https://github.com/smartdevicelink/sdl_ios) and [Android](https://github.com/smartdevicelink/sdl_android) libraries are implemented by app developers into their applications to enable command and control via the connected head unit. - - SmartDeviceLink - + +SmartDeviceLink (SDL) is a standard set of protocols and messages that connect applications on a smartphone to a vehicle head unit. This messaging enables a consumer to interact with their application using common in-vehicle interfaces such as a touch screen display, embedded voice recognition, steering wheel controls and various vehicle knobs and buttons. There are three main components that make up the SDL ecosystem. + +* The [Core](https://github.com/smartdevicelink/sdl_core) component is the software which Vehicle Manufacturers (OEMs) implement in their vehicle head units. Integrating this component into their head unit and HMI based on a set of guidelines and templates enables access to various smartphone applications. +* The optional [SDL Server](https://github.com/smartdevicelink/sdl_server) can be used by Vehicle OEMs to update application policies and gather usage information for connected applications. +* The [iOS](https://github.com/smartdevicelink/sdl_ios) and [Android](https://github.com/smartdevicelink/sdl_android) libraries are implemented by app developers into their applications to enable command and control via the connected head unit. + +SmartDeviceLink + ## Mobile Proxy - - The mobile library component of SDL is meant to run on the end user’s smart-device from within SDL enabled apps. The library allows the apps to connect to SDL enabled head-units and hardware through bluetooth, USB, and TCP. Once the library establishes a connection between the smart device and head-unit through the preferred method of transport, the two components are able to communicate using the SDL defined protocol. The app integrating this library project is then able to expose its functionality to the head-unit through text, media, and other interactive elements. - + +The mobile library component of SDL is meant to run on the end user’s smart-device from within SDL enabled apps. The library allows the apps to connect to SDL enabled head-units and hardware through bluetooth, USB, and TCP. Once the library establishes a connection between the smart device and head-unit through the preferred method of transport, the two components are able to communicate using the SDL defined protocol. The app integrating this library project is then able to expose its functionality to the head-unit through text, media, and other interactive elements. + ## SDL iOS - - We're still working on creating documentation for each of these individual repositories, but in the meantime, you can find more information about SmartDeviceLink [on the SDL Core README](https://github.com/smartdevicelink/sdl_core/blob/master/README.md) and [on Genivi](http://projects.genivi.org/smartdevicelink/about). - - See the [changelog](https://github.com/smartdevicelink/sdl_ios/blob/master/CHANGELOG.md) for release notes. This project uses [Semantic Versioning](http://semver.org/). + +We're still working on creating documentation for each of these individual repositories, but in the meantime, you can find more information about SmartDeviceLink [on the SDL Core README](https://github.com/smartdevicelink/sdl_core/blob/master/README.md) and [on Genivi](http://projects.genivi.org/smartdevicelink/about). + +See the [changelog](https://github.com/smartdevicelink/sdl_ios/blob/master/CHANGELOG.md) for release notes. This project uses [Semantic Versioning](http://semver.org/). ### Installing ##### Cocoapods - - You can install this library using [Cocoapods](https://cocoapods.org/pods/SmartDeviceLink-iOS). You can get started with Cocoapods by [following their install guide](https://guides.cocoapods.org/using/getting-started.html#getting-started), and learn how to use Cocoapods to install dependencies [by following this guide](https://guides.cocoapods.org/using/using-cocoapods.html). - - In your podfile, you want to add `pod 'SmartDeviceLink-iOS', '4.1.2'`. Then run `pod install` inside your terminal. With Cocoapods, we support iOS 6+. + +You can install this library using [Cocoapods](https://cocoapods.org/pods/SmartDeviceLink-iOS). You can get started with Cocoapods by [following their install guide](https://guides.cocoapods.org/using/getting-started.html#getting-started), and learn how to use Cocoapods to install dependencies [by following this guide](https://guides.cocoapods.org/using/using-cocoapods.html). + +In your podfile, you want to add `pod 'SmartDeviceLink-iOS', '4.1.2'`. Then run `pod install` inside your terminal. With Cocoapods, we support iOS 6+. ##### Carthage - - SDL iOS supports Carthage! Install using Carthage by following [this guide](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application). Carthage supports iOS 8+. + +SDL iOS supports Carthage! Install using Carthage by following [this guide](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application). Carthage supports iOS 8+. ##### Dynamic Framework - - Tagged to our releases is a dynamic framework file that can be drag-and-dropped into the application. Dynamic frameworks are supported on iOS 8+. **WARNING: You cannot submit your app to the app store with the framework as is. You MUST strip the simulator part of the framework first. Use a script such as Carthage's to accomplish this**. + +Tagged to our releases is a dynamic framework file that can be drag-and-dropped into the application. Dynamic frameworks are supported on iOS 8+. **WARNING: You cannot submit your app to the app store with the framework as is. You MUST strip the simulator part of the framework first. Use a script such as Carthage's to accomplish this**. ### Reference Documentation - - You can find the latest reference documentation on [Cocoadocs](http://cocoadocs.org/docsets/SmartDeviceLink-iOS). Install this documentation to [Dash](http://kapeli.com/dash) or Xcode using [Docs for Xcode](https://documancer.com/xcode/). On the [docs page](http://cocoadocs.org/docsets/SmartDeviceLink-iOS), click the 'share' button in the upper right. + +You can find the latest reference documentation on [Cocoadocs](http://cocoadocs.org/docsets/SmartDeviceLink-iOS). Install this documentation to [Dash](http://kapeli.com/dash) or Xcode using [Docs for Xcode](https://documancer.com/xcode/). On the [docs page](http://cocoadocs.org/docsets/SmartDeviceLink-iOS), click the 'share' button in the upper right. ### Getting Help - - If you see a bug, feel free to post an issue on the appropriate repository. Please see the [contribution guidelines](https://github.com/smartdevicelink/sdl_ios/blob/master/CONTRIBUTING.md) before proceeding. If you need general assistance, or have other questions, you can [sign up](http://slack.smartdevicelink.org) for the [SDL Slack](https://smartdevicelink.slack.com) and chat with other developers and the maintainers of the project. + +If you see a bug, feel free to post an issue on the appropriate repository. Please see the [contribution guidelines](https://github.com/smartdevicelink/sdl_ios/blob/master/CONTRIBUTING.md) before proceeding. If you need general assistance, or have other questions, you can [sign up](http://slack.smartdevicelink.org) for the [SDL Slack](https://smartdevicelink.slack.com) and chat with other developers and the maintainers of the project. ### Running Tests - To run tests, you will need to bootstrap the Carthage testing libraries. To do so, first [install Carthage](https://github.com/Carthage/Carthage#installing-carthage). - - Then, from the root project directory, run: - ```bash - carthage bootstrap --platform ios - cd ../ - ``` - - At this point, you can run tests from Xcode, or, if you wish to run the tests exactly as they will be run on the CI server, [install xctool](https://github.com/facebook/xctool#installation) and run: - - ```bash - xctool test - ``` - - ### SDL iOS Getting Started - - #### Other Installation Requirements - You may want to build the [sdl_core project](https://github.com/smartdevicelink/sdl_core) to be able to see your application connecting if you don't have an iAP enabled head unit to test. - - #### Enabling Background Capabilities - iOS 5 introduced the capability for an iOS application to maintain a connection to an external accessory while the application is in the background. This capability must be explicitly enabled for your application. - - To enable the feature for your application, select your application's build target, go to Capabilities, enable Background Modes, and select the External accessory communication mode. - - ![Enable External Accessory Background Mode](http://i.imgur.com/zxn4lsb.png) - - #### SDL protocol strings - Your application must support a set of smartdevicelink protocol strings in order to be connected to smartdevicelink enabled head units. Go to your application's .plist, look at the source, and add the following code under the top level `dict`. Note: This is not required if you're only testing by connected to a wifi enabled head unit, but is required for USB and Bluetooth enabled head units. - - ```xml - UISupportedExternalAccessoryProtocols - - com.smartdevicelink.prot29 - com.smartdevicelink.prot28 - com.smartdevicelink.prot27 - com.smartdevicelink.prot26 - com.smartdevicelink.prot25 - com.smartdevicelink.prot24 - com.smartdevicelink.prot23 - com.smartdevicelink.prot22 - com.smartdevicelink.prot21 - com.smartdevicelink.prot20 - com.smartdevicelink.prot19 - com.smartdevicelink.prot18 - com.smartdevicelink.prot17 - com.smartdevicelink.prot16 - com.smartdevicelink.prot15 - com.smartdevicelink.prot14 - com.smartdevicelink.prot13 - com.smartdevicelink.prot12 - com.smartdevicelink.prot11 - com.smartdevicelink.prot10 - com.smartdevicelink.prot9 - com.smartdevicelink.prot8 - com.smartdevicelink.prot7 - com.smartdevicelink.prot6 - com.smartdevicelink.prot5 - com.smartdevicelink.prot4 - com.smartdevicelink.prot3 - com.smartdevicelink.prot2 - com.smartdevicelink.prot1 - com.smartdevicelink.prot0 - com.ford.sync.prot0 - - ``` - - #### Creating the SDLProxy - When creating a proxy, you will likely want a class to manage the Proxy and related functions for you. The example project located in this repository has a class called "ProxyManager" to serve this function. One important, somewhat odd note, is that when the proxy is created, it will immediately start. This means that you should only build the Proxy object when you are ready to search for connections. For production apps using iAP, this is early, since it ought to be ready for an iAP connection the entire time your app is available. However, when debugging using Wi-Fi, you may want to tie this to a button press, since the search can timeout. - - Another odd note is that if a connection disconnects for any reason, you will receive an `onProxyClosed` callback through the `SDLListener` delegate (see below), and you will have to completely discard and rebuild the proxy object. - - The example app's `startProxyWithTransportType` handles starting up the proxy when necessary. The proxy object should be stored as a property of it's parent class. - - ```objc - switch (transportType) { - case ProxyTransportTypeTCP: { - self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self tcpIPAddress:@"192.168.1.1" tcpPort:@"1234"]; - } break; - case ProxyTransportTypeIAP: { - self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self]; - } break; - default: NSAssert(NO, @"Unknown transport setup: %@", @(transportType)); - } - ``` - - #### SDLProxyListener - - Note in the following lines, that there is a call to pass a `listener` into the build method. - - ```objc - self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self tcpIPAddress:[Preferences sharedPreferences].ipAddress tcpPort:[Preferences sharedPreferences].port] - self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self]; - ``` - - This is an object that conforms to the `SDLProxyListener` protocol. This could be the object holding the reference to the proxy, as it is here. - - #### Implement onProxyOpened and other delegate methods - The `SDLProxyListener` protocol has four required methods: - - ```objc - - (void)onOnDriverDistraction:(SDLOnDriverDistraction*) notification; - - (void)onOnHMIStatus:(SDLOnHMIStatus*) notification; - - (void)onProxyClosed; - - (void)onProxyOpened; - ``` - - `onProxyOpened` is called when a connection is established between the head unit and your application. This is the place to set whatever state you need to, to know that your application is connected. It is also where you must send a register request with your app's information to the vehicle. The example app uses the following basic code: - - ```objc - self.state = ProxyStateConnected; - - SDLRegisterAppInterface *registerRequest = [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:SDLAppName languageDesired:[SDLLanguage EN_US] appID:SDLAppId]; - [self.proxy sendRPC:registerRequest]; - ``` - - When the proxy is closed, you will receive a call to `onProxyClosed`. This is where you will reset the state of the proxy, because remember, when a connection is closed, it is assumed that you will destroy the current proxy. The example app runs a method called `resetProxyWithTransportType:` that runs the following: - - ```objc - [self stopProxy]; - [self startProxyWithTransportType:transportType]; - ``` - - `stopProxy` does the following: - - ```objc - self.state = ProxyStateStopped; - - if (self.proxy != nil) { - [self.proxy dispose]; - self.proxy = nil; - } - ``` - - #### onOnHMIStatus - When your app receives `onOnHMIStatus` it has changed HMI states on the head unit. For example, your application can be put into `HMI_FULL` meaning that it has full access to the vehicle screen. For more info on HMI Levels, [see the Cocoadoc documentation on the enum](http://cocoadocs.org/docsets/SmartDeviceLink-iOS/4.1.2/Classes/SDLHMILevel.html). - - You will want to track your first HMI FULL, for instance with a boolean value. The example application has extremely basic tracking of this type in the `onOnHMIStatus` callback. - - ```objc - if ((notification.hmiLevel == [SDLHMILevel FULL]) && self.isFirstHMIFull) { - [self showInitialData]; - self.isFirstHMIFull = NO; - } - ``` - - #### WiFi vs. iAP - - As described in the section "Creating the SDLProxy", you need will have separate setup for either WiFi (debugging) and iAP (production) code. - - ```objc - switch (transportType) { - case ProxyTransportTypeTCP: { - self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self tcpIPAddress:@"192.168.1.1" tcpPort:@"1234"]; - } break; - case ProxyTransportTypeIAP: { - self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self]; - } break; - default: NSAssert(NO, @"Unknown transport setup: %@", @(transportType)); - } - ``` - - When creating for WiFi, you will want to know the IP address and port of the Core system you are testing with. With IAP connections, you will use the "build" method without setting an IP and Port, and IAP will automatically be activated. +To run tests, you will need to bootstrap the Carthage testing libraries. To do so, first [install Carthage](https://github.com/Carthage/Carthage#installing-carthage). + +Then, from the root project directory, run: +```bash +carthage bootstrap --platform ios +cd ../ +``` + +At this point, you can run tests from Xcode, or, if you wish to run the tests exactly as they will be run on the CI server, [install xctool](https://github.com/facebook/xctool#installation) and run: + +```bash +xctool test +``` + +### SDL iOS Getting Started + +#### Other Installation Requirements +You may want to build the [sdl_core project](https://github.com/smartdevicelink/sdl_core) to be able to see your application connecting if you don't have an iAP enabled head unit to test. + +#### Enabling Background Capabilities +iOS 5 introduced the capability for an iOS application to maintain a connection to an external accessory while the application is in the background. This capability must be explicitly enabled for your application. + +To enable the feature for your application, select your application's build target, go to Capabilities, enable Background Modes, and select the External accessory communication mode. + +![Enable External Accessory Background Mode](http://i.imgur.com/zxn4lsb.png) + +#### SDL protocol strings +Your application must support a set of smartdevicelink protocol strings in order to be connected to smartdevicelink enabled head units. Go to your application's .plist, look at the source, and add the following code under the top level `dict`. Note: This is not required if you're only testing by connected to a wifi enabled head unit, but is required for USB and Bluetooth enabled head units. + +```xml +UISupportedExternalAccessoryProtocols + +com.smartdevicelink.prot29 +com.smartdevicelink.prot28 +com.smartdevicelink.prot27 +com.smartdevicelink.prot26 +com.smartdevicelink.prot25 +com.smartdevicelink.prot24 +com.smartdevicelink.prot23 +com.smartdevicelink.prot22 +com.smartdevicelink.prot21 +com.smartdevicelink.prot20 +com.smartdevicelink.prot19 +com.smartdevicelink.prot18 +com.smartdevicelink.prot17 +com.smartdevicelink.prot16 +com.smartdevicelink.prot15 +com.smartdevicelink.prot14 +com.smartdevicelink.prot13 +com.smartdevicelink.prot12 +com.smartdevicelink.prot11 +com.smartdevicelink.prot10 +com.smartdevicelink.prot9 +com.smartdevicelink.prot8 +com.smartdevicelink.prot7 +com.smartdevicelink.prot6 +com.smartdevicelink.prot5 +com.smartdevicelink.prot4 +com.smartdevicelink.prot3 +com.smartdevicelink.prot2 +com.smartdevicelink.prot1 +com.smartdevicelink.prot0 +com.ford.sync.prot0 + +``` + +#### Creating the SDLProxy +When creating a proxy, you will likely want a class to manage the Proxy and related functions for you. The example project located in this repository has a class called "ProxyManager" to serve this function. One important, somewhat odd note, is that when the proxy is created, it will immediately start. This means that you should only build the Proxy object when you are ready to search for connections. For production apps using iAP, this is early, since it ought to be ready for an iAP connection the entire time your app is available. However, when debugging using Wi-Fi, you may want to tie this to a button press, since the search can timeout. + +Another odd note is that if a connection disconnects for any reason, you will receive an `onProxyClosed` callback through the `SDLListener` delegate (see below), and you will have to completely discard and rebuild the proxy object. + +The example app's `startProxyWithTransportType` handles starting up the proxy when necessary. The proxy object should be stored as a property of it's parent class. + +```objc +switch (transportType) { +case ProxyTransportTypeTCP: { +self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self tcpIPAddress:@"192.168.1.1" tcpPort:@"1234"]; +} break; +case ProxyTransportTypeIAP: { +self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self]; +} break; +default: NSAssert(NO, @"Unknown transport setup: %@", @(transportType)); +} +``` + +#### SDLProxyListener + +Note in the following lines, that there is a call to pass a `listener` into the build method. + +```objc +self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self tcpIPAddress:[Preferences sharedPreferences].ipAddress tcpPort:[Preferences sharedPreferences].port] +self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self]; +``` + +This is an object that conforms to the `SDLProxyListener` protocol. This could be the object holding the reference to the proxy, as it is here. + +#### Implement onProxyOpened and other delegate methods +The `SDLProxyListener` protocol has four required methods: + +```objc +- (void)onOnDriverDistraction:(SDLOnDriverDistraction*) notification; +- (void)onOnHMIStatus:(SDLOnHMIStatus*) notification; +- (void)onProxyClosed; +- (void)onProxyOpened; +``` + +`onProxyOpened` is called when a connection is established between the head unit and your application. This is the place to set whatever state you need to, to know that your application is connected. It is also where you must send a register request with your app's information to the vehicle. The example app uses the following basic code: + +```objc +self.state = ProxyStateConnected; + +SDLRegisterAppInterface *registerRequest = [SDLRPCRequestFactory buildRegisterAppInterfaceWithAppName:SDLAppName languageDesired:[SDLLanguage EN_US] appID:SDLAppId]; +[self.proxy sendRPC:registerRequest]; +``` + +When the proxy is closed, you will receive a call to `onProxyClosed`. This is where you will reset the state of the proxy, because remember, when a connection is closed, it is assumed that you will destroy the current proxy. The example app runs a method called `resetProxyWithTransportType:` that runs the following: + +```objc +[self stopProxy]; +[self startProxyWithTransportType:transportType]; +``` + +`stopProxy` does the following: + +```objc +self.state = ProxyStateStopped; + +if (self.proxy != nil) { +[self.proxy dispose]; +self.proxy = nil; +} +``` + +#### onOnHMIStatus +When your app receives `onOnHMIStatus` it has changed HMI states on the head unit. For example, your application can be put into `HMI_FULL` meaning that it has full access to the vehicle screen. For more info on HMI Levels, [see the Cocoadoc documentation on the enum](http://cocoadocs.org/docsets/SmartDeviceLink-iOS/4.1.2/Classes/SDLHMILevel.html). + +You will want to track your first HMI FULL, for instance with a boolean value. The example application has extremely basic tracking of this type in the `onOnHMIStatus` callback. + +```objc +if ((notification.hmiLevel == [SDLHMILevel FULL]) && self.isFirstHMIFull) { +[self showInitialData]; +self.isFirstHMIFull = NO; +} +``` + +#### WiFi vs. iAP + +As described in the section "Creating the SDLProxy", you need will have separate setup for either WiFi (debugging) and iAP (production) code. + +```objc +switch (transportType) { +case ProxyTransportTypeTCP: { +self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self tcpIPAddress:@"192.168.1.1" tcpPort:@"1234"]; +} break; +case ProxyTransportTypeIAP: { +self.proxy = [SDLProxyFactory buildSDLProxyWithListener:self]; +} break; +default: NSAssert(NO, @"Unknown transport setup: %@", @(transportType)); +} +``` + +When creating for WiFi, you will want to know the IP address and port of the Core system you are testing with. With IAP connections, you will use the "build" method without setting an IP and Port, and IAP will automatically be activated. -- cgit v1.2.1 From 88a2177a3f6eadf0ab8bfb055f5c9f121b46f204 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Wed, 1 Jun 2016 10:36:46 -0400 Subject: Update codecov yaml file comment and status settings --- codecov.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index 83de15945..53840b09a 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,8 +1,19 @@ coverage: + precision: 2 + round: down + ignore: - Carthage/.* - SmartDeviceLinkTests/.* - SmartDeviceLinkExample/.* status: - patch: false project: false + patch: + default: + enabled: yes + target: 80% + +comment: + layout: "header, diff, changes, suggestions" + branches: !hotfix* + behavior: default \ No newline at end of file -- cgit v1.2.1 From dcebff15a8c743a8ee652c1e5c91d2c59a6129cf Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Thu, 2 Jun 2016 13:40:32 -0400 Subject: Add Jazzy theme, scripts, initial documentation, and an updated gitignore --- .gitignore | 2 + docs/.exist | 0 docs/Classes.html | 5187 ++++++++++++++++++++ docs/Classes/SDLAbstractProtocol.html | 158 + docs/Classes/SDLAbstractTransport.html | 98 + docs/Classes/SDLAddCommand.html | 182 + docs/Classes/SDLAddCommandResponse.html | 48 + docs/Classes/SDLAddSubMenu.html | 145 + docs/Classes/SDLAddSubMenuResponse.html | 47 + docs/Classes/SDLAirbagStatus.html | 134 + docs/Classes/SDLAlert.html | 296 ++ docs/Classes/SDLAlertManeuver.html | 78 + docs/Classes/SDLAlertManeuverResponse.html | 47 + docs/Classes/SDLAlertResponse.html | 63 + docs/Classes/SDLAmbientLightStatus.html | 175 + docs/Classes/SDLAppHMIType.html | 302 ++ .../Classes/SDLAppInterfaceUnregisteredReason.html | 312 ++ docs/Classes/SDLAudioPassThruCapabilities.html | 147 + docs/Classes/SDLAudioStreamingState.html | 144 + docs/Classes/SDLAudioType.html | 94 + docs/Classes/SDLBeltStatus.html | 218 + docs/Classes/SDLBitsPerSample.html | 118 + docs/Classes/SDLBodyInformation.html | 194 + docs/Classes/SDLButtonCapabilities.html | 143 + docs/Classes/SDLButtonEventMode.html | 123 + docs/Classes/SDLButtonName.html | 474 ++ docs/Classes/SDLButtonPressMode.html | 118 + docs/Classes/SDLCarModeStatus.html | 123 + docs/Classes/SDLChangeRegistration.html | 184 + docs/Classes/SDLChangeRegistrationResponse.html | 48 + docs/Classes/SDLCharacterSet.html | 134 + docs/Classes/SDLChoice.html | 247 + docs/Classes/SDLClusterModeStatus.html | 86 + docs/Classes/SDLCompassDirection.html | 273 ++ docs/Classes/SDLComponentVolumeStatus.html | 223 + docs/Classes/SDLConsoleController.html | 74 + docs/Classes/SDLCreateInteractionChoiceSet.html | 114 + .../SDLCreateInteractionChoiceSetResponse.html | 49 + docs/Classes/SDLDIDResult.html | 74 + docs/Classes/SDLDebugTool.html | 170 + docs/Classes/SDLDeleteCommand.html | 91 + docs/Classes/SDLDeleteCommandResponse.html | 48 + docs/Classes/SDLDeleteFile.html | 84 + docs/Classes/SDLDeleteFileResponse.html | 64 + docs/Classes/SDLDeleteInteractionChoiceSet.html | 93 + .../SDLDeleteInteractionChoiceSetResponse.html | 48 + docs/Classes/SDLDeleteSubMenu.html | 88 + docs/Classes/SDLDeleteSubMenuResponse.html | 48 + docs/Classes/SDLDeviceInfo.html | 110 + docs/Classes/SDLDeviceLevelStatus.html | 223 + docs/Classes/SDLDeviceStatus.html | 395 ++ docs/Classes/SDLDiagnosticMessage.html | 111 + docs/Classes/SDLDiagnosticMessageResponse.html | 63 + docs/Classes/SDLDialNumber.html | 67 + docs/Classes/SDLDialNumberResponse.html | 48 + docs/Classes/SDLDimension.html | 145 + docs/Classes/SDLDisplayCapabilities.html | 254 + docs/Classes/SDLDisplayType.html | 246 + docs/Classes/SDLDriverDistractionState.html | 118 + docs/Classes/SDLECallConfirmationStatus.html | 181 + docs/Classes/SDLECallInfo.html | 74 + docs/Classes/SDLEmergencyEvent.html | 98 + docs/Classes/SDLEmergencyEventType.html | 181 + docs/Classes/SDLEncodedSyncPData.html | 50 + docs/Classes/SDLEncodedSyncPDataResponse.html | 38 + docs/Classes/SDLEndAudioPassThru.html | 68 + docs/Classes/SDLEndAudioPassThruResponse.html | 48 + docs/Classes/SDLEnum.html | 62 + docs/Classes/SDLFileType.html | 262 + docs/Classes/SDLFuelCutoffStatus.html | 146 + docs/Classes/SDLGPSData.html | 447 ++ docs/Classes/SDLGenericResponse.html | 48 + docs/Classes/SDLGetDTCs.html | 107 + docs/Classes/SDLGetDTCsResponse.html | 80 + docs/Classes/SDLGetVehicleData.html | 530 ++ docs/Classes/SDLGetVehicleDataResponse.html | 522 ++ docs/Classes/SDLGlobalProperty.html | 203 + docs/Classes/SDLHMICapabilities.html | 80 + docs/Classes/SDLHMILevel.html | 183 + docs/Classes/SDLHMIPermissions.html | 115 + docs/Classes/SDLHMIZoneCapabilities.html | 123 + docs/Classes/SDLHeadLampStatus.html | 114 + docs/Classes/SDLIAPTransport.html | 38 + docs/Classes/SDLIgnitionStableStatus.html | 139 + docs/Classes/SDLIgnitionStatus.html | 223 + docs/Classes/SDLImage.html | 103 + docs/Classes/SDLImageField.html | 74 + docs/Classes/SDLImageFieldName.html | 290 ++ docs/Classes/SDLImageResolution.html | 62 + docs/Classes/SDLImageType.html | 124 + docs/Classes/SDLInteractionMode.html | 152 + docs/Classes/SDLJingle.html | 74 + docs/Classes/SDLKeyboardEvent.html | 148 + docs/Classes/SDLKeyboardLayout.html | 109 + docs/Classes/SDLKeyboardProperties.html | 98 + docs/Classes/SDLKeypressMode.html | 111 + docs/Classes/SDLLanguage.html | 523 ++ docs/Classes/SDLLayoutMode.html | 143 + docs/Classes/SDLListFiles.html | 63 + docs/Classes/SDLListFilesResponse.html | 80 + docs/Classes/SDLLockScreenStatus.html | 95 + docs/Classes/SDLMaintenanceModeStatus.html | 171 + docs/Classes/SDLMediaClockFormat.html | 320 ++ docs/Classes/SDLMenuParams.html | 133 + docs/Classes/SDLMyKey.html | 50 + docs/Classes/SDLOnAppInterfaceUnregistered.html | 83 + docs/Classes/SDLOnAudioPassThru.html | 75 + docs/Classes/SDLOnButtonEvent.html | 157 + docs/Classes/SDLOnButtonPress.html | 183 + docs/Classes/SDLOnCommand.html | 103 + docs/Classes/SDLOnDriverDistraction.html | 91 + docs/Classes/SDLOnEncodedSyncPData.html | 74 + docs/Classes/SDLOnHMIStatus.html | 131 + docs/Classes/SDLOnHashChange.html | 50 + docs/Classes/SDLOnKeyboardInput.html | 62 + docs/Classes/SDLOnLanguageChange.html | 99 + docs/Classes/SDLOnLockScreenStatus.html | 150 + docs/Classes/SDLOnPermissionsChange.html | 88 + docs/Classes/SDLOnSyncPData.html | 62 + docs/Classes/SDLOnSystemRequest.html | 110 + docs/Classes/SDLOnTBTClientState.html | 50 + docs/Classes/SDLOnTouchEvent.html | 62 + docs/Classes/SDLOnVehicleData.html | 522 ++ docs/Classes/SDLPRNDL.html | 454 ++ docs/Classes/SDLParameterPermissions.html | 102 + docs/Classes/SDLPerformAudioPassThru.html | 256 + docs/Classes/SDLPerformAudioPassThruResponse.html | 61 + docs/Classes/SDLPerformInteraction.html | 251 + docs/Classes/SDLPerformInteractionResponse.html | 128 + docs/Classes/SDLPermissionItem.html | 74 + docs/Classes/SDLPermissionStatus.html | 171 + docs/Classes/SDLPowerModeQualificationStatus.html | 86 + docs/Classes/SDLPowerModeStatus.html | 146 + docs/Classes/SDLPredefinedLayout.html | 278 ++ docs/Classes/SDLPrerecordedSpeech.html | 98 + docs/Classes/SDLPresetBankCapabilities.html | 82 + docs/Classes/SDLPrimaryAudioSource.html | 246 + docs/Classes/SDLProtocol.html | 86 + docs/Classes/SDLProtocolHeader.html | 194 + docs/Classes/SDLProtocolMessage.html | 110 + docs/Classes/SDLProxy.html | 313 ++ docs/Classes/SDLProxyFactory.html | 38 + docs/Classes/SDLPutFile.html | 195 + docs/Classes/SDLPutFileResponse.html | 77 + docs/Classes/SDLRPCMessage.html | 158 + docs/Classes/SDLRPCNotification.html | 38 + docs/Classes/SDLRPCRequest.html | 26 + docs/Classes/SDLRPCRequestFactory.html | 734 +++ docs/Classes/SDLRPCResponse.html | 62 + docs/Classes/SDLRPCStruct.html | 62 + docs/Classes/SDLReadDID.html | 115 + docs/Classes/SDLReadDIDResponse.html | 64 + docs/Classes/SDLRegisterAppInterface.html | 418 ++ docs/Classes/SDLRegisterAppInterfaceResponse.html | 488 ++ docs/Classes/SDLRequestType.html | 278 ++ docs/Classes/SDLResetGlobalProperties.html | 93 + docs/Classes/SDLResetGlobalPropertiesResponse.html | 62 + docs/Classes/SDLResult.html | 711 +++ docs/Classes/SDLSamplingRate.html | 166 + docs/Classes/SDLScreenParams.html | 62 + docs/Classes/SDLScrollableMessage.html | 136 + docs/Classes/SDLScrollableMessageResponse.html | 62 + docs/Classes/SDLSendLocation.html | 185 + docs/Classes/SDLSendLocationResponse.html | 38 + docs/Classes/SDLSetAppIcon.html | 85 + docs/Classes/SDLSetAppIconResponse.html | 47 + docs/Classes/SDLSetDisplayLayout.html | 85 + docs/Classes/SDLSetDisplayLayoutResponse.html | 115 + docs/Classes/SDLSetGlobalProperties.html | 232 + docs/Classes/SDLSetGlobalPropertiesResponse.html | 62 + docs/Classes/SDLSetMediaClockTimer.html | 145 + docs/Classes/SDLSetMediaClockTimerResponse.html | 62 + docs/Classes/SDLShow.html | 445 ++ docs/Classes/SDLShowConstantTBT.html | 226 + docs/Classes/SDLShowConstantTBTResponse.html | 47 + docs/Classes/SDLShowResponse.html | 62 + docs/Classes/SDLSingleTireStatus.html | 80 + docs/Classes/SDLSiphonServer.html | 122 + docs/Classes/SDLSlider.html | 180 + docs/Classes/SDLSliderResponse.html | 81 + docs/Classes/SDLSoftButton.html | 110 + docs/Classes/SDLSoftButtonCapabilities.html | 151 + docs/Classes/SDLSoftButtonType.html | 146 + docs/Classes/SDLSpeak.html | 118 + docs/Classes/SDLSpeakResponse.html | 62 + docs/Classes/SDLSpeechCapabilities.html | 140 + docs/Classes/SDLStartTime.html | 126 + docs/Classes/SDLStreamingMediaManager.html | 206 + docs/Classes/SDLSubscribeButton.html | 127 + docs/Classes/SDLSubscribeButtonResponse.html | 62 + docs/Classes/SDLSubscribeVehicleData.html | 515 ++ docs/Classes/SDLSubscribeVehicleDataResponse.html | 504 ++ docs/Classes/SDLSyncMsgVersion.html | 103 + docs/Classes/SDLSyncPData.html | 38 + docs/Classes/SDLSyncPDataResponse.html | 38 + docs/Classes/SDLSystemAction.html | 128 + docs/Classes/SDLSystemContext.html | 194 + docs/Classes/SDLTBTState.html | 158 + docs/Classes/SDLTCPTransport.html | 50 + docs/Classes/SDLTTSChunk.html | 128 + docs/Classes/SDLTTSChunkFactory.html | 38 + docs/Classes/SDLTextAlignment.html | 142 + docs/Classes/SDLTextField.html | 200 + docs/Classes/SDLTextFieldName.html | 782 +++ docs/Classes/SDLTimerMode.html | 74 + docs/Classes/SDLTireStatus.html | 122 + docs/Classes/SDLTouchCoord.html | 62 + docs/Classes/SDLTouchEvent.html | 107 + docs/Classes/SDLTouchEventCapabilities.html | 74 + docs/Classes/SDLTouchType.html | 74 + docs/Classes/SDLTriggerSource.html | 148 + docs/Classes/SDLTurn.html | 62 + docs/Classes/SDLUnregisterAppInterface.html | 72 + .../Classes/SDLUnregisterAppInterfaceResponse.html | 62 + docs/Classes/SDLUnsubscribeButton.html | 91 + docs/Classes/SDLUnsubscribeButtonResponse.html | 62 + docs/Classes/SDLUnsubscribeVehicleData.html | 507 ++ .../Classes/SDLUnsubscribeVehicleDataResponse.html | 504 ++ docs/Classes/SDLUpdateMode.html | 192 + docs/Classes/SDLUpdateTurnList.html | 87 + docs/Classes/SDLUpdateTurnListResponse.html | 47 + docs/Classes/SDLVRCapabilities.html | 98 + docs/Classes/SDLVRHelpItem.html | 74 + docs/Classes/SDLVehicleDataActiveStatus.html | 160 + docs/Classes/SDLVehicleDataEventStatus.html | 182 + docs/Classes/SDLVehicleDataNotificationStatus.html | 149 + docs/Classes/SDLVehicleDataResult.html | 62 + docs/Classes/SDLVehicleDataResultCode.html | 242 + docs/Classes/SDLVehicleDataStatus.html | 136 + docs/Classes/SDLVehicleDataType.html | 562 +++ docs/Classes/SDLVehicleType.html | 153 + docs/Classes/SDLWarningLightStatus.html | 173 + docs/Classes/SDLWiperStatus.html | 356 ++ docs/Constants.html | 62 + docs/Enums.html | 118 + docs/Enums/SDLDebugOutput.html | 62 + docs/Enums/SDLDebugType.html | 86 + docs/Enums/SDLFrameData.html | 158 + docs/Enums/SDLFrameType.html | 62 + docs/Enums/SDLRPCMessageType.html | 50 + docs/Enums/SDLServiceType.html | 74 + docs/Enums/SDLStreamingAudioError.html | 26 + docs/Enums/SDLStreamingVideoError.html | 74 + docs/Protocols.html | 79 + docs/Protocols/SDLDebugToolConsole.html | 26 + docs/Protocols/SDLIAPSessionDelegate.html | 38 + docs/Protocols/SDLProtocolListener.html | 134 + docs/Protocols/SDLProxyListener.html | 758 +++ docs/Protocols/SDLTransportDelegate.html | 50 + docs/Type Definitions.html | 26 + docs/index.html | 506 ++ docs/undocumented.json | 1 + scripts/generate-documentation.sh | 4 + theme/assets/.exist | 0 theme/templates/doc.mustache | 16 + theme/templates/nav.mustache | 8 + theme/templates/parameter.mustache | 2 + theme/templates/task.mustache | 50 + theme/templates/task_link.mustache | 3 + theme/templates/task_links.mustache | 7 + theme/templates/tasks.mustache | 7 + 261 files changed, 43352 insertions(+) create mode 100644 docs/.exist create mode 100644 docs/Classes.html create mode 100644 docs/Classes/SDLAbstractProtocol.html create mode 100644 docs/Classes/SDLAbstractTransport.html create mode 100644 docs/Classes/SDLAddCommand.html create mode 100644 docs/Classes/SDLAddCommandResponse.html create mode 100644 docs/Classes/SDLAddSubMenu.html create mode 100644 docs/Classes/SDLAddSubMenuResponse.html create mode 100644 docs/Classes/SDLAirbagStatus.html create mode 100644 docs/Classes/SDLAlert.html create mode 100644 docs/Classes/SDLAlertManeuver.html create mode 100644 docs/Classes/SDLAlertManeuverResponse.html create mode 100644 docs/Classes/SDLAlertResponse.html create mode 100644 docs/Classes/SDLAmbientLightStatus.html create mode 100644 docs/Classes/SDLAppHMIType.html create mode 100644 docs/Classes/SDLAppInterfaceUnregisteredReason.html create mode 100644 docs/Classes/SDLAudioPassThruCapabilities.html create mode 100644 docs/Classes/SDLAudioStreamingState.html create mode 100644 docs/Classes/SDLAudioType.html create mode 100644 docs/Classes/SDLBeltStatus.html create mode 100644 docs/Classes/SDLBitsPerSample.html create mode 100644 docs/Classes/SDLBodyInformation.html create mode 100644 docs/Classes/SDLButtonCapabilities.html create mode 100644 docs/Classes/SDLButtonEventMode.html create mode 100644 docs/Classes/SDLButtonName.html create mode 100644 docs/Classes/SDLButtonPressMode.html create mode 100644 docs/Classes/SDLCarModeStatus.html create mode 100644 docs/Classes/SDLChangeRegistration.html create mode 100644 docs/Classes/SDLChangeRegistrationResponse.html create mode 100644 docs/Classes/SDLCharacterSet.html create mode 100644 docs/Classes/SDLChoice.html create mode 100644 docs/Classes/SDLClusterModeStatus.html create mode 100644 docs/Classes/SDLCompassDirection.html create mode 100644 docs/Classes/SDLComponentVolumeStatus.html create mode 100644 docs/Classes/SDLConsoleController.html create mode 100644 docs/Classes/SDLCreateInteractionChoiceSet.html create mode 100644 docs/Classes/SDLCreateInteractionChoiceSetResponse.html create mode 100644 docs/Classes/SDLDIDResult.html create mode 100644 docs/Classes/SDLDebugTool.html create mode 100644 docs/Classes/SDLDeleteCommand.html create mode 100644 docs/Classes/SDLDeleteCommandResponse.html create mode 100644 docs/Classes/SDLDeleteFile.html create mode 100644 docs/Classes/SDLDeleteFileResponse.html create mode 100644 docs/Classes/SDLDeleteInteractionChoiceSet.html create mode 100644 docs/Classes/SDLDeleteInteractionChoiceSetResponse.html create mode 100644 docs/Classes/SDLDeleteSubMenu.html create mode 100644 docs/Classes/SDLDeleteSubMenuResponse.html create mode 100644 docs/Classes/SDLDeviceInfo.html create mode 100644 docs/Classes/SDLDeviceLevelStatus.html create mode 100644 docs/Classes/SDLDeviceStatus.html create mode 100644 docs/Classes/SDLDiagnosticMessage.html create mode 100644 docs/Classes/SDLDiagnosticMessageResponse.html create mode 100644 docs/Classes/SDLDialNumber.html create mode 100644 docs/Classes/SDLDialNumberResponse.html create mode 100644 docs/Classes/SDLDimension.html create mode 100644 docs/Classes/SDLDisplayCapabilities.html create mode 100644 docs/Classes/SDLDisplayType.html create mode 100644 docs/Classes/SDLDriverDistractionState.html create mode 100644 docs/Classes/SDLECallConfirmationStatus.html create mode 100644 docs/Classes/SDLECallInfo.html create mode 100644 docs/Classes/SDLEmergencyEvent.html create mode 100644 docs/Classes/SDLEmergencyEventType.html create mode 100644 docs/Classes/SDLEncodedSyncPData.html create mode 100644 docs/Classes/SDLEncodedSyncPDataResponse.html create mode 100644 docs/Classes/SDLEndAudioPassThru.html create mode 100644 docs/Classes/SDLEndAudioPassThruResponse.html create mode 100644 docs/Classes/SDLEnum.html create mode 100644 docs/Classes/SDLFileType.html create mode 100644 docs/Classes/SDLFuelCutoffStatus.html create mode 100644 docs/Classes/SDLGPSData.html create mode 100644 docs/Classes/SDLGenericResponse.html create mode 100644 docs/Classes/SDLGetDTCs.html create mode 100644 docs/Classes/SDLGetDTCsResponse.html create mode 100644 docs/Classes/SDLGetVehicleData.html create mode 100644 docs/Classes/SDLGetVehicleDataResponse.html create mode 100644 docs/Classes/SDLGlobalProperty.html create mode 100644 docs/Classes/SDLHMICapabilities.html create mode 100644 docs/Classes/SDLHMILevel.html create mode 100644 docs/Classes/SDLHMIPermissions.html create mode 100644 docs/Classes/SDLHMIZoneCapabilities.html create mode 100644 docs/Classes/SDLHeadLampStatus.html create mode 100644 docs/Classes/SDLIAPTransport.html create mode 100644 docs/Classes/SDLIgnitionStableStatus.html create mode 100644 docs/Classes/SDLIgnitionStatus.html create mode 100644 docs/Classes/SDLImage.html create mode 100644 docs/Classes/SDLImageField.html create mode 100644 docs/Classes/SDLImageFieldName.html create mode 100644 docs/Classes/SDLImageResolution.html create mode 100644 docs/Classes/SDLImageType.html create mode 100644 docs/Classes/SDLInteractionMode.html create mode 100644 docs/Classes/SDLJingle.html create mode 100644 docs/Classes/SDLKeyboardEvent.html create mode 100644 docs/Classes/SDLKeyboardLayout.html create mode 100644 docs/Classes/SDLKeyboardProperties.html create mode 100644 docs/Classes/SDLKeypressMode.html create mode 100644 docs/Classes/SDLLanguage.html create mode 100644 docs/Classes/SDLLayoutMode.html create mode 100644 docs/Classes/SDLListFiles.html create mode 100644 docs/Classes/SDLListFilesResponse.html create mode 100644 docs/Classes/SDLLockScreenStatus.html create mode 100644 docs/Classes/SDLMaintenanceModeStatus.html create mode 100644 docs/Classes/SDLMediaClockFormat.html create mode 100644 docs/Classes/SDLMenuParams.html create mode 100644 docs/Classes/SDLMyKey.html create mode 100644 docs/Classes/SDLOnAppInterfaceUnregistered.html create mode 100644 docs/Classes/SDLOnAudioPassThru.html create mode 100644 docs/Classes/SDLOnButtonEvent.html create mode 100644 docs/Classes/SDLOnButtonPress.html create mode 100644 docs/Classes/SDLOnCommand.html create mode 100644 docs/Classes/SDLOnDriverDistraction.html create mode 100644 docs/Classes/SDLOnEncodedSyncPData.html create mode 100644 docs/Classes/SDLOnHMIStatus.html create mode 100644 docs/Classes/SDLOnHashChange.html create mode 100644 docs/Classes/SDLOnKeyboardInput.html create mode 100644 docs/Classes/SDLOnLanguageChange.html create mode 100644 docs/Classes/SDLOnLockScreenStatus.html create mode 100644 docs/Classes/SDLOnPermissionsChange.html create mode 100644 docs/Classes/SDLOnSyncPData.html create mode 100644 docs/Classes/SDLOnSystemRequest.html create mode 100644 docs/Classes/SDLOnTBTClientState.html create mode 100644 docs/Classes/SDLOnTouchEvent.html create mode 100644 docs/Classes/SDLOnVehicleData.html create mode 100644 docs/Classes/SDLPRNDL.html create mode 100644 docs/Classes/SDLParameterPermissions.html create mode 100644 docs/Classes/SDLPerformAudioPassThru.html create mode 100644 docs/Classes/SDLPerformAudioPassThruResponse.html create mode 100644 docs/Classes/SDLPerformInteraction.html create mode 100644 docs/Classes/SDLPerformInteractionResponse.html create mode 100644 docs/Classes/SDLPermissionItem.html create mode 100644 docs/Classes/SDLPermissionStatus.html create mode 100644 docs/Classes/SDLPowerModeQualificationStatus.html create mode 100644 docs/Classes/SDLPowerModeStatus.html create mode 100644 docs/Classes/SDLPredefinedLayout.html create mode 100644 docs/Classes/SDLPrerecordedSpeech.html create mode 100644 docs/Classes/SDLPresetBankCapabilities.html create mode 100644 docs/Classes/SDLPrimaryAudioSource.html create mode 100644 docs/Classes/SDLProtocol.html create mode 100644 docs/Classes/SDLProtocolHeader.html create mode 100644 docs/Classes/SDLProtocolMessage.html create mode 100644 docs/Classes/SDLProxy.html create mode 100644 docs/Classes/SDLProxyFactory.html create mode 100644 docs/Classes/SDLPutFile.html create mode 100644 docs/Classes/SDLPutFileResponse.html create mode 100644 docs/Classes/SDLRPCMessage.html create mode 100644 docs/Classes/SDLRPCNotification.html create mode 100644 docs/Classes/SDLRPCRequest.html create mode 100644 docs/Classes/SDLRPCRequestFactory.html create mode 100644 docs/Classes/SDLRPCResponse.html create mode 100644 docs/Classes/SDLRPCStruct.html create mode 100644 docs/Classes/SDLReadDID.html create mode 100644 docs/Classes/SDLReadDIDResponse.html create mode 100644 docs/Classes/SDLRegisterAppInterface.html create mode 100644 docs/Classes/SDLRegisterAppInterfaceResponse.html create mode 100644 docs/Classes/SDLRequestType.html create mode 100644 docs/Classes/SDLResetGlobalProperties.html create mode 100644 docs/Classes/SDLResetGlobalPropertiesResponse.html create mode 100644 docs/Classes/SDLResult.html create mode 100644 docs/Classes/SDLSamplingRate.html create mode 100644 docs/Classes/SDLScreenParams.html create mode 100644 docs/Classes/SDLScrollableMessage.html create mode 100644 docs/Classes/SDLScrollableMessageResponse.html create mode 100644 docs/Classes/SDLSendLocation.html create mode 100644 docs/Classes/SDLSendLocationResponse.html create mode 100644 docs/Classes/SDLSetAppIcon.html create mode 100644 docs/Classes/SDLSetAppIconResponse.html create mode 100644 docs/Classes/SDLSetDisplayLayout.html create mode 100644 docs/Classes/SDLSetDisplayLayoutResponse.html create mode 100644 docs/Classes/SDLSetGlobalProperties.html create mode 100644 docs/Classes/SDLSetGlobalPropertiesResponse.html create mode 100644 docs/Classes/SDLSetMediaClockTimer.html create mode 100644 docs/Classes/SDLSetMediaClockTimerResponse.html create mode 100644 docs/Classes/SDLShow.html create mode 100644 docs/Classes/SDLShowConstantTBT.html create mode 100644 docs/Classes/SDLShowConstantTBTResponse.html create mode 100644 docs/Classes/SDLShowResponse.html create mode 100644 docs/Classes/SDLSingleTireStatus.html create mode 100644 docs/Classes/SDLSiphonServer.html create mode 100644 docs/Classes/SDLSlider.html create mode 100644 docs/Classes/SDLSliderResponse.html create mode 100644 docs/Classes/SDLSoftButton.html create mode 100644 docs/Classes/SDLSoftButtonCapabilities.html create mode 100644 docs/Classes/SDLSoftButtonType.html create mode 100644 docs/Classes/SDLSpeak.html create mode 100644 docs/Classes/SDLSpeakResponse.html create mode 100644 docs/Classes/SDLSpeechCapabilities.html create mode 100644 docs/Classes/SDLStartTime.html create mode 100644 docs/Classes/SDLStreamingMediaManager.html create mode 100644 docs/Classes/SDLSubscribeButton.html create mode 100644 docs/Classes/SDLSubscribeButtonResponse.html create mode 100644 docs/Classes/SDLSubscribeVehicleData.html create mode 100644 docs/Classes/SDLSubscribeVehicleDataResponse.html create mode 100644 docs/Classes/SDLSyncMsgVersion.html create mode 100644 docs/Classes/SDLSyncPData.html create mode 100644 docs/Classes/SDLSyncPDataResponse.html create mode 100644 docs/Classes/SDLSystemAction.html create mode 100644 docs/Classes/SDLSystemContext.html create mode 100644 docs/Classes/SDLTBTState.html create mode 100644 docs/Classes/SDLTCPTransport.html create mode 100644 docs/Classes/SDLTTSChunk.html create mode 100644 docs/Classes/SDLTTSChunkFactory.html create mode 100644 docs/Classes/SDLTextAlignment.html create mode 100644 docs/Classes/SDLTextField.html create mode 100644 docs/Classes/SDLTextFieldName.html create mode 100644 docs/Classes/SDLTimerMode.html create mode 100644 docs/Classes/SDLTireStatus.html create mode 100644 docs/Classes/SDLTouchCoord.html create mode 100644 docs/Classes/SDLTouchEvent.html create mode 100644 docs/Classes/SDLTouchEventCapabilities.html create mode 100644 docs/Classes/SDLTouchType.html create mode 100644 docs/Classes/SDLTriggerSource.html create mode 100644 docs/Classes/SDLTurn.html create mode 100644 docs/Classes/SDLUnregisterAppInterface.html create mode 100644 docs/Classes/SDLUnregisterAppInterfaceResponse.html create mode 100644 docs/Classes/SDLUnsubscribeButton.html create mode 100644 docs/Classes/SDLUnsubscribeButtonResponse.html create mode 100644 docs/Classes/SDLUnsubscribeVehicleData.html create mode 100644 docs/Classes/SDLUnsubscribeVehicleDataResponse.html create mode 100644 docs/Classes/SDLUpdateMode.html create mode 100644 docs/Classes/SDLUpdateTurnList.html create mode 100644 docs/Classes/SDLUpdateTurnListResponse.html create mode 100644 docs/Classes/SDLVRCapabilities.html create mode 100644 docs/Classes/SDLVRHelpItem.html create mode 100644 docs/Classes/SDLVehicleDataActiveStatus.html create mode 100644 docs/Classes/SDLVehicleDataEventStatus.html create mode 100644 docs/Classes/SDLVehicleDataNotificationStatus.html create mode 100644 docs/Classes/SDLVehicleDataResult.html create mode 100644 docs/Classes/SDLVehicleDataResultCode.html create mode 100644 docs/Classes/SDLVehicleDataStatus.html create mode 100644 docs/Classes/SDLVehicleDataType.html create mode 100644 docs/Classes/SDLVehicleType.html create mode 100644 docs/Classes/SDLWarningLightStatus.html create mode 100644 docs/Classes/SDLWiperStatus.html create mode 100644 docs/Constants.html create mode 100644 docs/Enums.html create mode 100644 docs/Enums/SDLDebugOutput.html create mode 100644 docs/Enums/SDLDebugType.html create mode 100644 docs/Enums/SDLFrameData.html create mode 100644 docs/Enums/SDLFrameType.html create mode 100644 docs/Enums/SDLRPCMessageType.html create mode 100644 docs/Enums/SDLServiceType.html create mode 100644 docs/Enums/SDLStreamingAudioError.html create mode 100644 docs/Enums/SDLStreamingVideoError.html create mode 100644 docs/Protocols.html create mode 100644 docs/Protocols/SDLDebugToolConsole.html create mode 100644 docs/Protocols/SDLIAPSessionDelegate.html create mode 100644 docs/Protocols/SDLProtocolListener.html create mode 100644 docs/Protocols/SDLProxyListener.html create mode 100644 docs/Protocols/SDLTransportDelegate.html create mode 100644 docs/Type Definitions.html create mode 100644 docs/index.html create mode 100644 docs/undocumented.json create mode 100644 scripts/generate-documentation.sh create mode 100644 theme/assets/.exist create mode 100755 theme/templates/doc.mustache create mode 100755 theme/templates/nav.mustache create mode 100755 theme/templates/parameter.mustache create mode 100755 theme/templates/task.mustache create mode 100644 theme/templates/task_link.mustache create mode 100644 theme/templates/task_links.mustache create mode 100755 theme/templates/tasks.mustache diff --git a/.gitignore b/.gitignore index 3cd0bdeb9..58a919ead 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,5 @@ infer-out # This ignore here is prevent projects fetching sdl_ios as a submodule using # Carthage from resulting as `-dirty` in the `git status`. Carthage/Build + +docs/docsets/ diff --git a/docs/.exist b/docs/.exist new file mode 100644 index 000000000..e69de29bb diff --git a/docs/Classes.html b/docs/Classes.html new file mode 100644 index 000000000..92951f5d2 --- /dev/null +++ b/docs/Classes.html @@ -0,0 +1,5187 @@ +

    Classes Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The following classes are available globally.

    + + +
    +

    + SDLAbstractProtocol +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLAbstractTransport +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLAddCommand +

    + +

    This class will add a command to the application’s Command Menu SDLMenuParams

    + +

    A command will be added to the end of the list of elements in + the Command Menu under the following conditions: +

  • When a SDLCommand is added with no SDLMenuParams value provided
  • +
  • When a SDLMenuParams value is provided with a SDLMenuParam.position value + greater than or equal to the number of menu items currently defined in the + menu specified by the SDLMenuParam.parentID value
  • + +

    The set of choices which the application builds using SDLAddCommand can be a + mixture of: +

  • Choices having only VR synonym definitions, but no SDLMenuParams definitions +
  • +
  • Choices having only SDLMenuParams definitions, but no VR synonym definitions +
  • +
  • Choices having both SDLMenuParams and VR synonym definitions
  • + +

    HMILevel needs to be FULL, LIMITED or BACKGROUD

    + +

    @since SDL 1.0

    + +
    +

    See

    + SDLDeleteCommand SDLAddSubMenu SDLDeleteSubMenu + +
    + + See more + + +

    Objective-C

    +
    @interface SDLAddCommand : SDLRPCRequest
    + + +

    Swift

    +
    class SDLAddCommand : SDLRPCRequest
    + + + + +

    + SDLAddCommandResponse +

    + +

    SDLAddCommandResponse is sent, when SDLAddCommand has been called

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLAddCommandResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLAddCommandResponse : SDLRPCResponse
    + + + + +

    + SDLAddSubMenu +

    + +

    Add a SDLSubMenu to the Command Menu +

    + A SDLSubMenu can only be added to the Top Level Menu (i.e.a SDLSubMenu cannot be + added to a SDLSubMenu), and may only contain commands as children +

    +

    + HMILevel needs to be FULL, LIMITED or BACKGROUD +

    + +

    Since SmartDeviceLink 1.0
    + see SDLDeleteSubMenu SDLAddCommand SDLDeleteCommand

    + + See more + + +

    Objective-C

    +
    @interface SDLAddSubMenu : SDLRPCRequest
    + + +

    Swift

    +
    class SDLAddSubMenu : SDLRPCRequest
    + + + + +

    + SDLAddSubMenuResponse +

    + +

    SDLAddSubMenuResponse is sent, when SDLAddSubMenu has been called +Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLAddSubMenuResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLAddSubMenuResponse : SDLRPCResponse
    + + + + +

    + SDLAirbagStatus +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLAlert +

    + +

    Shows an alert which typically consists of text-to-speech message and text on the display. At least either alertText1, alertText2 or TTSChunks need to be provided.

    + +

      +
    • The displayed portion of the SDLAlert, if any, will persist until the + specified timeout has elapsed, or the SDLAlert is preempted
    • +
    • An SDLAlert will preempt (abort) any SmartDeviceLink Operation that is in-progress, + except an already-in-progress SDLAlert
    • +
    • An SDLAlert cannot be preempted by any SmartDeviceLink Operation
    • +
    • An SDLAlert can be preempted by a user action (button push)
    • +
    • An SDLAlert will fail if it is issued while another SDLAlert is in progress
    • +
    • Although each Alert parameter is optional, in fact each SDLAlert request + must supply at least one of the following parameters:
      +
        +
      • alertText1
      • +
      • alertText2
      • +
      • alertText3
      • +
      • ttsChunks
      • +
      +
    • +
    +
    + HMILevel needs to be FULL or LIMITED.
    + If the app has been granted function group Notification the SDLHMILevel can + also be BACKGROUND

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLAlert : SDLRPCRequest
    + + +

    Swift

    +
    class SDLAlert : SDLRPCRequest
    + + + + +

    + SDLAlertManeuver +

    + +

    @since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLAlertManeuver : SDLRPCRequest
    + + +

    Swift

    +
    class SDLAlertManeuver : SDLRPCRequest
    + + + + +

    + SDLAlertManeuverResponse +

    + +

    SDLAlertManeuverResponse is sent, when SDLAlertManeuver has been called. + * @since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLAlertManeuverResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLAlertManeuverResponse : SDLRPCResponse
    + + + + +

    + SDLAlertResponse +

    + +

    Sent after SDLAlert has been sent +@since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLAlertResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLAlertResponse : SDLRPCResponse
    + + + + +

    + SDLAmbientLightStatus +

    + +

    Reflects the status of the ambient light sensor +@since SDL 3.0

    + + See more + + +

    Objective-C

    +
    @interface SDLAmbientLightStatus : SDLEnum
    + + +

    Swift

    +
    class SDLAmbientLightStatus : SDLEnum
    + + + + +

    + SDLAppHMIType +

    + +

    Enumeration listing possible app hmi types.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLAppHMIType : SDLEnum
    + + +

    Swift

    +
    class SDLAppHMIType : SDLEnum
    + + + + +

    + SDLAppInterfaceUnregisteredReason +

    + +

    Indicates reason why app interface was unregistered. The application is being disconnected by SDL.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLAppInterfaceUnregisteredReason : SDLEnum
    + + +

    Swift

    +
    class SDLAppInterfaceUnregisteredReason : SDLEnum
    + + + + +

    + SDLAudioPassThruCapabilities +

    + +

    Describes different audio type configurations for SDLPerformAudioPassThru, e.g. {8kHz,8-bit,PCM} +

    Parameter List + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescriptionSmartDeviceLink Ver. Available
    samplingRateSDLSamplingRate * Describes the sampling rate for AudioPassThru + SmartDeviceLink 2.0
    bitsPerSampleSDLBitsPerSample * Describes the sample depth in bit for AudioPassThru + SmartDeviceLink 2.0
    audioTypeSDLAudioType * Describes the audiotype for AudioPassThru + SmartDeviceLink 2.0
    +Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLAudioPassThruCapabilities : SDLRPCStruct
    + + +

    Swift

    +
    class SDLAudioPassThruCapabilities : SDLRPCStruct
    + + + + +

    + SDLAudioStreamingState +

    + +

    Describes whether or not streaming audio is currently audible to the user. Though provided in every OnHMIStatus notification, this information is only relevant for applications that declare themselves as media apps in RegisterAppInterface

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLAudioStreamingState : SDLEnum
    + + +

    Swift

    +
    class SDLAudioStreamingState : SDLEnum
    + + + + +

    + SDLAudioType +

    + +

    Describes different audio type options for PerformAudioPassThru

    + + See more + + +

    Objective-C

    +
    @interface SDLAudioType : SDLEnum
    + + +

    Swift

    +
    class SDLAudioType : SDLEnum
    + + + + +

    + SDLBeltStatus +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLBitsPerSample +

    + +

    Describes different bit depth options for PerformAudioPassThru

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLBitsPerSample : SDLEnum
    + + +

    Swift

    +
    class SDLBitsPerSample : SDLEnum
    + + + + +

    + SDLBodyInformation +

    + +

    The body information including power modes.

    + + See more + + +

    Objective-C

    +
    @interface SDLBodyInformation : SDLRPCStruct
    + + +

    Swift

    +
    class SDLBodyInformation : SDLRPCStruct
    + + + + +

    + SDLButtonCapabilities +

    + +

    Provides information about the capabilities of a SDL HMI button.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLButtonCapabilities : SDLRPCStruct
    + + +

    Swift

    +
    class SDLButtonCapabilities : SDLRPCStruct
    + + + + +

    + SDLButtonEventMode +

    + +

    Indicates whether the button was depressed or released. A BUTTONUP event will always be preceded by a BUTTONDOWN event.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLButtonEventMode : SDLEnum
    + + +

    Swift

    +
    class SDLButtonEventMode : SDLEnum
    + + + + +

    + SDLButtonName +

    + +

    Defines logical buttons which, on a given SDL unit, would correspond to + either physical or soft (touchscreen) buttons. These logical buttons present + a standard functional abstraction which the developer can rely upon, + independent of the SDL unit. For example, the developer can rely upon the OK + button having the same meaning to the user across SDL platforms.

    + +

    The preset buttons (0-9) can typically be interpreted by the application as + corresponding to some user-configured choices, though the application is free + to interpret these button presses as it sees fit.

    + +

    The application can discover which buttons a given SDL unit implements by + interrogating the ButtonCapabilities parameter of the + RegisterAppInterface response.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLButtonName : SDLEnum
    + + +

    Swift

    +
    class SDLButtonName : SDLEnum
    + + + + +

    + SDLButtonPressMode +

    + +

    Indicates whether this is a LONG or SHORT button press

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLButtonPressMode : SDLEnum
    + + +

    Swift

    +
    class SDLButtonPressMode : SDLEnum
    + + + + +

    + SDLCarModeStatus +

    + +

    Describes the carmode the vehicle is in. + * Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLCarModeStatus : SDLEnum
    + + +

    Swift

    +
    class SDLCarModeStatus : SDLEnum
    + + + + +

    + SDLChangeRegistration +

    + +

    If the app recognizes during the app registration that the SDL HMI language (voice/TTS and/or display) does not match the app language, the app will be able (but does not need) to change this registration with changeRegistration prior to app being brought into focus.

    + +

    Any HMILevel allowed

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLChangeRegistration : SDLRPCRequest
    + + +

    Swift

    +
    class SDLChangeRegistration : SDLRPCRequest
    + + + + +

    + SDLChangeRegistrationResponse +

    + +

    SDLChangeRegistrationResponse is sent, when SDLChangeRegistration has been called

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLChangeRegistrationResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLChangeRegistrationResponse : SDLRPCResponse
    + + + + +

    + SDLCharacterSet +

    + +

    Character sets supported by SDL.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLCharacterSet : SDLEnum
    + + +

    Swift

    +
    class SDLCharacterSet : SDLEnum
    + + + + +

    + SDLChoice +

    + +

    A choice is an option which a user can select either via the menu or via voice recognition (VR) during an application initiated interaction. +

    Parameter List + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescriptionSmartDeviceLink Ver. Available
    choiceIDNSNumber * Application-scoped identifier that uniquely identifies this choice. +
    Min: 0 +
    Max: 65535 +
    SmartDeviceLink 1.0
    menuNameNSString * Text which appears in menu, representing this choice. +
    Min: 1 +
    Max: 100 +
    SmartDeviceLink 1.0
    vrCommandsNSMutableArray *An array of strings to be used as VR synonyms for this choice. If this array is provided, it must have at least one non-empty elementSmartDeviceLink 1.0
    imageSDLImage * Either a static hex icon value or a binary image file name identifier (sent by PutFile).SmartDeviceLink 2.0

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLChoice : SDLRPCStruct
    + + +

    Swift

    +
    class SDLChoice : SDLRPCStruct
    + + + + +

    + SDLClusterModeStatus +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLCompassDirection +

    + +

    The list of potential compass directions.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLCompassDirection : SDLEnum
    + + +

    Swift

    +
    class SDLCompassDirection : SDLEnum
    + + + + +

    + SDLComponentVolumeStatus +

    + +

    The volume status of a vehicle component.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLComponentVolumeStatus : SDLEnum
    + + +

    Swift

    +
    class SDLComponentVolumeStatus : SDLEnum
    + + + + +

    + SDLConsoleController +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLCreateInteractionChoiceSet +

    + +

    Creates a Choice Set which can be used in subsequent SDLPerformInteraction Operations.

    + +

    HMILevel needs to be FULL, LIMITED or BACKGROUND

    + +

    Before a perform interaction is sent you MUST wait for the success from the CreateInteractionChoiceSet RPC.

    + +

    If you do not wait the system may not recognize the first utterance from the user.

    + +

    @since SDL 1.0

    + +
    +

    See

    + SDLDeleteInteractionChoiceSet SDLPerformInteraction + +
    + + See more + + +

    Objective-C

    +
    @interface SDLCreateInteractionChoiceSet : SDLRPCRequest
    + + +

    Swift

    +
    class SDLCreateInteractionChoiceSet : SDLRPCRequest
    + + + + +

    + SDLCreateInteractionChoiceSetResponse +

    + +

    SDLCreateInteractionChoiceSetResponse is sent, when SDLCreateInteractionChoiceSet + has been called

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLCreateInteractionChoiceSetResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLCreateInteractionChoiceSetResponse : SDLRPCResponse
    + + + + +

    + SDLDIDResult +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLDebugTool +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLDeleteCommand +

    + +

    Removes a command from the Command Menu +

    + HMI Status Requirements:
    + HMILevel: FULL, LIMITED or BACKGROUND
    + AudioStreamingState: N/A
    + SystemContext: Should not be attempted when VRSESSION or MENU +

    + +

    Since SmartDeviceLink 1.0
    + see SDLAddCommand SDLAddSubMenu SDLDeleteSubMenu

    + + See more + + +

    Objective-C

    +
    @interface SDLDeleteCommand : SDLRPCRequest
    + + +

    Swift

    +
    class SDLDeleteCommand : SDLRPCRequest
    + + + + +

    + SDLDeleteCommandResponse +

    + +

    SDLDeleteCommandResponse is sent, when SDLDeleteCommand has been called

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDeleteCommandResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLDeleteCommandResponse : SDLRPCResponse
    + + + + +

    + SDLDeleteFile +

    + +

    Used to delete a file resident on the SDL module in the app’s local cache. + Not supported on first generation SDL vehicles +

    + +

    Since SmartDeviceLink 2.0
    + see SDLPutFile SDLListFiles

    + + See more + + +

    Objective-C

    +
    @interface SDLDeleteFile : SDLRPCRequest
    + + +

    Swift

    +
    class SDLDeleteFile : SDLRPCRequest
    + + + + +

    + SDLDeleteFileResponse +

    + +

    Delete File Response is sent, when DeleteFile has been called

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDeleteFileResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLDeleteFileResponse : SDLRPCResponse
    + + + + +

    + SDLDeleteInteractionChoiceSet +

    + +

    Deletes an existing Choice Set identified by the parameter + interactionChoiceSetID. If the specified interactionChoiceSetID is currently + in use by an active SDLPerformInteraction this call to + delete the Choice Set will fail returning an IN_USE resultCode +

    + Function Group: Base +

    + HMILevel needs to be FULL, LIMITED or BACKGROUD
    +

    + +

    Since SmartDeviceLink 1.0
    + see SDLCreateInteractionChoiceSet SDLPerformInteraction

    + + See more + + +

    Objective-C

    +
    @interface SDLDeleteInteractionChoiceSet : SDLRPCRequest
    + + +

    Swift

    +
    class SDLDeleteInteractionChoiceSet : SDLRPCRequest
    + + + + +

    + SDLDeleteInteractionChoiceSetResponse +

    + +

    SDLDeleteInteractionChoiceSetResponse is sent, when SDLDeleteInteractionChoiceSet has been called

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDeleteInteractionChoiceSetResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLDeleteInteractionChoiceSetResponse : SDLRPCResponse
    + + + + +

    + SDLDeleteSubMenu +

    + +

    Deletes a submenu from the Command Menu +

    + Notes: When an app deletes a submenu that has child commands, those + child commands are also deleted +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 1.0
    + see SDLAddCommand SDLAddSubMenu SDLDeleteCommand

    + + See more + + +

    Objective-C

    +
    @interface SDLDeleteSubMenu : SDLRPCRequest
    + + +

    Swift

    +
    class SDLDeleteSubMenu : SDLRPCRequest
    + + + + +

    + SDLDeleteSubMenuResponse +

    + +

    SDLDeleteSubMenuResponse is sent, when SDLDeleteSubMenu has been called

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDeleteSubMenuResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLDeleteSubMenuResponse : SDLRPCResponse
    + + + + +

    + SDLDeviceInfo +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLDeviceLevelStatus +

    + +

    Reflects the reported battery status of the connected device, if reported.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDeviceLevelStatus : SDLEnum
    + + +

    Swift

    +
    class SDLDeviceLevelStatus : SDLEnum
    + + + + +

    + SDLDeviceStatus +

    + +

    Describes the status related to a connected mobile device or SDL and if or how it is represented in the vehicle.

    + +

    Parameter List + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescriptionSmartDeviceLink Ver. Available
    voiceRecOnNSNumber * Voice recognition is on + SmartDeviceLink 2.0
    btIconOnNSNumber * Bluetooth connection established + SmartDeviceLink 2.0
    callActiveNSNumber * A call is being active + SmartDeviceLink 2.0
    phoneRoamingNSNumber * The phone is in roaming mode + SmartDeviceLink 2.0
    textMsgAvailableNSNumber * A textmessage is available + SmartDeviceLink 2.0
    battLevelStatusSDLDeviceLevelStatus * Battery level status + SmartDeviceLink 2.0
    stereoAudioOutputMutedNSNumber * Status of the stereo audio output channel + SmartDeviceLink 2.0
    monoAudioOutputMutedNSNumber * Status of the mono audio output channel + SmartDeviceLink 2.0
    signalLevelStatusSDLDeviceLevelStatus * Signal level status + SmartDeviceLink 2.0
    primaryAudioSourcePrimaryAudioSource * Reflects the current primary audio source of SDL (if selected). + SmartDeviceLink 2.0
    eCallEventActiveNSNumber * Reflects, if an eCall event is active + SmartDeviceLink 2.0
    + @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDeviceStatus : SDLRPCStruct
    + + +

    Swift

    +
    class SDLDeviceStatus : SDLRPCStruct
    + + + + +

    + SDLDiagnosticMessage +

    + +

    Non periodic vehicle diagnostic request

    + +

    @since SDL 3.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDiagnosticMessage : SDLRPCRequest
    + + +

    Swift

    +
    class SDLDiagnosticMessage : SDLRPCRequest
    + + + + +

    + SDLDiagnosticMessageResponse +

    + +

    SDLDiagnosticMessageResponse is sent, when SDLDiagnosticMessage has been called. + * SinceSmartDeviceLink 3.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDiagnosticMessageResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLDiagnosticMessageResponse : SDLRPCResponse
    + + + + +

    + SDLDialNumber +

    + +

    This RPC is used to tell the head unit to use bluetooth to dial a phone number using the phone.

    + +

    @since SDL 4.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDialNumber : SDLRPCRequest
    + + +

    Swift

    +
    class SDLDialNumber : SDLRPCRequest
    + + + + +

    + SDLDialNumberResponse +

    + +

    Indicates the result, success, or failure of the SDLDialNumber request.

    + +

    @since SDL 4.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDialNumberResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLDialNumberResponse : SDLRPCResponse
    + + + + +

    + SDLDimension +

    + +

    The supported dimensions of the GPS.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDimension : SDLEnum
    + + +

    Swift

    +
    class SDLDimension : SDLEnum
    + + + + +

    + SDLDisplayCapabilities +

    + +

    Contains information about the display for the SDL system to which the application is currently connected.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDisplayCapabilities : SDLRPCStruct
    + + +

    Swift

    +
    class SDLDisplayCapabilities : SDLRPCStruct
    + + + + +

    + SDLDisplayType +

    + +

    Identifies the various display types used by SDL.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDisplayType : SDLEnum
    + + +

    Swift

    +
    class SDLDisplayType : SDLEnum
    + + + + +

    + SDLDriverDistractionState +

    + +

    Enumeration that describes possible states of driver distraction.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLDriverDistractionState : SDLEnum
    + + +

    Swift

    +
    class SDLDriverDistractionState : SDLEnum
    + + + + +

    + SDLECallConfirmationStatus +

    + +

    Reflects the status of the eCall Notification. + *Since SmartDeviceLink 2.0 +

    + + See more + + +

    Objective-C

    +
    @interface SDLECallConfirmationStatus : SDLEnum
    + + +

    Swift

    +
    class SDLECallConfirmationStatus : SDLEnum
    + + + + +

    + SDLECallInfo +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLEmergencyEvent +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLEmergencyEventType +

    + +

    Reflects the emergency event status of the vehicle. + * Since: SmartDeviceLink 2.0 + *

    + + See more + + +

    Objective-C

    +
    @interface SDLEmergencyEventType : SDLEnum
    + + +

    Swift

    +
    class SDLEmergencyEventType : SDLEnum
    + + + + +

    + SDLEncodedSyncPData +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLEncodedSyncPDataResponse +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLEndAudioPassThru +

    + +

    When this request is invoked, the audio capture stops +

    +Function Group: AudioPassThru +

    +HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 2.0
    +see SDLPerformAudioPassThru

    + + See more + + +

    Objective-C

    +
    @interface SDLEndAudioPassThru : SDLRPCRequest
    + + +

    Swift

    +
    class SDLEndAudioPassThru : SDLRPCRequest
    + + + + +

    + SDLEndAudioPassThruResponse +

    + +

    SDLEndAudioPassThruResponse is sent, when SDLEndAudioPassThru has been called

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLEndAudioPassThruResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLEndAudioPassThruResponse : SDLRPCResponse
    + + + + +

    + SDLEnum +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLFileType +

    + +

    Enumeration listing possible file types.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLFileType : SDLEnum
    + + +

    Swift

    +
    class SDLFileType : SDLEnum
    + + + + +

    + SDLFuelCutoffStatus +

    + +

    Reflects the status of the Restraints Control Module fuel pump cutoff. + The fuel pump is cut off typically after the vehicle has had a collision.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLFuelCutoffStatus : SDLEnum
    + + +

    Swift

    +
    class SDLFuelCutoffStatus : SDLEnum
    + + + + +

    + SDLGPSData +

    + +

    Describes the GPS data. Not all data will be available on all carlines.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLGPSData : SDLRPCStruct
    + + +

    Swift

    +
    class SDLGPSData : SDLRPCStruct
    + + + + +

    + SDLGenericResponse +

    + +

    Generic Response is sent, when the name of a received msg cannot be +retrieved. Only used in case of an error. Currently, only resultCode +INVALID_DATA is used.

    + + See more + + +

    Objective-C

    +
    @interface SDLGenericResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLGenericResponse : SDLRPCResponse
    + + + + +

    + SDLGetDTCs +

    + +

    This RPC allows to request diagnostic module trouble codes from a certain +vehicle module +

    +Function Group: ProprietaryData +

    +HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + + See more + + +

    Objective-C

    +
    @interface SDLGetDTCs : SDLRPCRequest
    + + +

    Swift

    +
    class SDLGetDTCs : SDLRPCRequest
    + + + + +

    + SDLGetDTCsResponse +

    + +

    SDLGetDTCsResponse is sent, when SDLGetDTCs has been called

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLGetDTCsResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLGetDTCsResponse : SDLRPCResponse
    + + + + +

    + SDLGetVehicleData +

    + +

    Requests surrent values of specific published vehicle data items. +

    + Function Group: Location, VehicleInfo and DrivingChara +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 2.0
    + See SDLSubscribeVehicleData SDLUnsubscribeVehicleData

    + + See more + + +

    Objective-C

    +
    @interface SDLGetVehicleData : SDLRPCRequest
    + + +

    Swift

    +
    class SDLGetVehicleData : SDLRPCRequest
    + + + + +

    + SDLGetVehicleDataResponse +

    + +

    Get Vehicle Data Response is sent, when SDLGetVehicleData has been called

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLGetVehicleDataResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLGetVehicleDataResponse : SDLRPCResponse
    + + + + +

    + SDLGlobalProperty +

    + +

    Properties of a user-initiated VR interaction (i.e. interactions started by the user pressing the PTT button).

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLGlobalProperty : SDLEnum
    + + +

    Swift

    +
    class SDLGlobalProperty : SDLEnum
    + + + + +

    + SDLHMICapabilities +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLHMILevel +

    + +

    Specifies current level of the HMI. An HMI level indicates the degree of user interaction possible through the HMI (e.g. TTS only, display only, VR, etc.). The HMI level varies for an application based on the type of display (i.e. Nav or non-Nav) and the user directing focus to other applications (e.g. phone, other mobile applications, etc.)

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLHMILevel : SDLEnum
    + + +

    Swift

    +
    class SDLHMILevel : SDLEnum
    + + + + +

    + SDLHMIPermissions +

    + +

    Defining sets of HMI levels, which are permitted or prohibited for a given RPC.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLHMIPermissions : SDLRPCStruct
    + + +

    Swift

    +
    class SDLHMIPermissions : SDLRPCStruct
    + + + + +

    + SDLHMIZoneCapabilities +

    + +

    Specifies HMI Zones in the vehicle.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLHMIZoneCapabilities : SDLEnum
    + + +

    Swift

    +
    class SDLHMIZoneCapabilities : SDLEnum
    + + + + +

    + SDLHeadLampStatus +

    + +

    Status of the head lamps

    + + See more + + +

    Objective-C

    +
    @interface SDLHeadLampStatus : SDLRPCStruct
    + + +

    Swift

    +
    class SDLHeadLampStatus : SDLRPCStruct
    + + + + +

    + SDLIAPTransport +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLIgnitionStableStatus +

    + +

    Reflects the ignition switch stability.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLIgnitionStableStatus : SDLEnum
    + + +

    Swift

    +
    class SDLIgnitionStableStatus : SDLEnum
    + + + + +

    + SDLIgnitionStatus +

    + +

    Reflects the status of ignition..

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLIgnitionStatus : SDLEnum
    + + +

    Swift

    +
    class SDLIgnitionStatus : SDLEnum
    + + + + +

    + SDLImage +

    + +

    Specifies, which image shall be used, e.g. in SDLAlerts or on SDLSoftbuttons provided the display supports it.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLImage : SDLRPCStruct
    + + +

    Swift

    +
    class SDLImage : SDLRPCStruct
    + + + + +

    + SDLImageField +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLImageFieldName +

    + +

    The name that identifies the filed. + * + * + * @since SmartDeviceLink 3.0 + *

    + + See more + + +

    Objective-C

    +
    @interface SDLImageFieldName : SDLEnum
    + + +

    Swift

    +
    class SDLImageFieldName : SDLEnum
    + + + + +

    + SDLImageResolution +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLImageType +

    + +

    Contains information about the type of image.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLImageType : SDLEnum
    + + +

    Swift

    +
    class SDLImageType : SDLEnum
    + + + + +

    + SDLInteractionMode +

    + +

    For application-initiated interactions (SDLPerformInteraction), this specifies the mode by which the user is prompted and by which the user’s selection is indicated

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLInteractionMode : SDLEnum
    + + +

    Swift

    +
    class SDLInteractionMode : SDLEnum
    + + + + +

    + SDLJingle +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLKeyboardEvent +

    + +

    Enumeration listing possible keyboard events. + * + * @since SmartDeviceLink 3.0 + *

    + + See more + + +

    Objective-C

    +
    @interface SDLKeyboardEvent : SDLEnum
    + + +

    Swift

    +
    class SDLKeyboardEvent : SDLEnum
    + + + + +

    + SDLKeyboardLayout +

    + +

    Enumeration listing possible keyboard layouts + * + *Since SmartDeviceLink 3.0 + *

    + + See more + + +

    Objective-C

    +
    @interface SDLKeyboardLayout : SDLEnum
    + + +

    Swift

    +
    class SDLKeyboardLayout : SDLEnum
    + + + + +

    + SDLKeyboardProperties +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLKeypressMode +

    + +

    Enumeration listing possible keyboard events. + *

    + * Note: Depending on keypressMode value (from keyboardProperties structure of UI.SetGlobalProperties),
    HMI must send the onKeyboardInput notification with the following data:
    + SINGLE_KEYPRESS,QUEUE_KEYPRESSES,RESEND_CURRENT_ENTRY. + * @since SmartDeviceLink 3.0 + *

    + + See more + + +

    Objective-C

    +
    @interface SDLKeypressMode : SDLEnum
    + + +

    Swift

    +
    class SDLKeypressMode : SDLEnum
    + + + + +

    + SDLLanguage +

    + +

    Specifies the language to be used for TTS, VR, displayed messages/menus

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLLanguage : SDLEnum
    + + +

    Swift

    +
    class SDLLanguage : SDLEnum
    + + + + +

    + SDLLayoutMode +

    + +

    For touchscreen interactions, the mode of how the choices are presented.

    + +

    @since SDL 3.0

    + + See more + + +

    Objective-C

    +
    @interface SDLLayoutMode : SDLEnum
    + + +

    Swift

    +
    class SDLLayoutMode : SDLEnum
    + + + + +

    + SDLListFiles +

    + +

    Requests the current list of resident filenames for the registered app. Not + supported on First generation SDL vehicles +

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLListFiles : SDLRPCRequest
    + + +

    Swift

    +
    class SDLListFiles : SDLRPCRequest
    + + + + +

    + SDLListFilesResponse +

    + +

    SDLListFilesResponse is sent, when SDLListFiles has been called

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLListFilesResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLListFilesResponse : SDLRPCResponse
    + + + + +

    + SDLLockScreenStatus +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLMaintenanceModeStatus +

    + +

    The SDLMaintenanceModeStatus class.

    + + See more + + +

    Objective-C

    +
    @interface SDLMaintenanceModeStatus : SDLEnum
    + + +

    Swift

    +
    class SDLMaintenanceModeStatus : SDLEnum
    + + + + +

    + SDLMediaClockFormat +

    + +

    Indicates the format of the time displayed on the connected SDL unit.

    + +

    Format description follows the following nomenclature:
    + Sp = Space
    + | = or
    + c = character

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLMediaClockFormat : SDLEnum
    + + +

    Swift

    +
    class SDLMediaClockFormat : SDLEnum
    + + + + +

    + SDLMenuParams +

    + +

    Used when adding a sub menu to an application menu or existing sub menu.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLMenuParams : SDLRPCStruct
    + + +

    Swift

    +
    class SDLMenuParams : SDLRPCStruct
    + + + + +

    + SDLMyKey +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLOnAppInterfaceUnregistered +

    + +

    Notifies an application that its interface registration has been terminated. This means that all SDL resources associated with the application are discarded, including the Command Menu, Choice Sets, button subscriptions, etc.

    + +

    For more information about SDL resources related to an interface registration, see SDLRegisterAppInterface.

    + +

    @since SDL 1.0 + - see: SDLRegisterAppInterface

    + + See more + + +

    Objective-C

    +
    @interface SDLOnAppInterfaceUnregistered : SDLRPCNotification
    + + +

    Swift

    +
    class SDLOnAppInterfaceUnregistered : SDLRPCNotification
    + + + + +

    + SDLOnAudioPassThru +

    + +

    Binary data is in binary part of hybrid msg.

    + +

    HMI Status Requirements: +

      + HMILevel: +
        +
      • BACKGROUND, FULL, LIMITED
      • +
      + AudioStreamingState: +
        +
      • TBD
      • +
      + SystemContext: +
        +
      • TBD
      • +
      +

    + + See more + + +

    Objective-C

    +
    @interface SDLOnAudioPassThru : SDLRPCNotification
    + + +

    Swift

    +
    class SDLOnAudioPassThru : SDLRPCNotification
    + + + + +

    + SDLOnButtonEvent +

    + +

    Notifies application that user has depressed or released a button to which + the application has subscribed.

    + +

    Further information about button events + and button-presses can be found at SDLSubscribeButton. +

    +

    + +

    HMI Status Requirements: +

      + HMILevel: +
        +
      • The application will receive SDLOnButtonEvent notifications for all + subscribed buttons when HMILevel is FULL.
      • +
      • The application will receive SDLOnButtonEvent notifications for subscribed + media buttons when HMILevel is LIMITED.
      • +
      • Media buttons include SEEKLEFT, SEEKRIGHT, TUNEUP, TUNEDOWN, and + PRESET_0-PRESET_9.
      • +
      • The application will not receive SDLOnButtonEvent notification when HMILevel + is BACKGROUND.
      • +
      + AudioStreamingState: +
        +
      • Any
      • +
      + SystemContext: +
        +
      • MAIN, VR. In MENU, only PRESET buttons. In VR, pressing any subscribable + button will cancel VR.
      • +
      +
    +

    +
    +

    See

    + SDLSubscribeButton

    + +

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLOnButtonEvent : SDLRPCNotification
    + + +

    Swift

    +
    class SDLOnButtonEvent : SDLRPCNotification
    + + + + +

    + SDLOnButtonPress +

    + +

    Notifies application of button press events for buttons to which the + application is subscribed. SDL supports two button press events defined as + follows:

    + +

      +
    • SHORT - Occurs when a button is depressed, then released within two + seconds. The event is considered to occur immediately after the button is + released.
    • +
    • LONG - Occurs when a button is depressed and held for two seconds or + more. The event is considered to occur immediately after the two second + threshold has been crossed, before the button is released
    • +
    + HMI Status Requirements: +
      + HMILevel: +
        +
      • The application will receive OnButtonPress notifications for all + subscribed buttons when HMILevel is FULL.
      • +
      • The application will receive OnButtonPress notifications for subscribed + media buttons when HMILevel is LIMITED.
      • +
      • Media buttons include SEEKLEFT, SEEKRIGHT, TUNEUP, TUNEDOWN, and + PRESET_0-PRESET_9.
      • +
      • The application will not receive OnButtonPress notification when HMILevel + is BACKGROUND or NONE.
      • +
      + AudioStreamingState: +
        +
      • Any
      • +
      + SystemContext: +
        +
      • MAIN, VR. In MENU, only PRESET buttons. In VR, pressing any subscribable + button will cancel VR.
      • +
      +

    + +
    +

    See

    + SDLSubscribeButton + +
    + +
    +

    See

    + SDLUnsubscribeButton + +
    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLOnButtonPress : SDLRPCNotification
    + + +

    Swift

    +
    class SDLOnButtonPress : SDLRPCNotification
    + + + + +

    + SDLOnCommand +

    + +

    This is called when a command was selected via VR after pressing the PTT button, or selected from the menu after + pressing the MENU button.

    + +

    Note: The sequence of SDLOnHMIStatus and SDLOnCommand notifications for user-initiated interactions is indeterminate.

    + +

    @since SDL 1.0 + - see: SDLAddCommand SDLDeleteCommand SDLDeleteSubMenu

    + + See more + + +

    Objective-C

    +
    @interface SDLOnCommand : SDLRPCNotification
    + + +

    Swift

    +
    class SDLOnCommand : SDLRPCNotification
    + + + + +

    + SDLOnDriverDistraction +

    + +

    Notifies the application of the current driver distraction state (whether driver distraction rules are in effect, or + not).

    + +

    HMI Status Requirements:

    + +

      + HMILevel: +
      • Can be sent with FULL, LIMITED or BACKGROUND
      + AudioStreamingState: +
      • Any
      + SystemContext: +
      • Any
      +

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLOnDriverDistraction : SDLRPCNotification
    + + +

    Swift

    +
    class SDLOnDriverDistraction : SDLRPCNotification
    + + + + +

    + SDLOnEncodedSyncPData +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLOnHMIStatus +

    + +

    Notifies an application that HMI conditions have changed for the application. This indicates whether the application + can speak phrases, display text, perform interactions, receive button presses and events, stream audio, etc. This + notification will be sent to the application when there has been a change in any one or several of the indicated + states (SDLHMILevel, SDLAudioStreamingState or SDLSystemContext) for the application.

    + +

    All three values are, in principle, independent of each other (though there may be some relationships). A value for + one parameter should not be interpreted from the value of another parameter.

    + +

    There are no guarantees about the timeliness or latency of the SDLOnHMIStatus notification. Therefore, for example, + information such as SDLAudioStreamingState may not indicate that the audio stream became inaudible to the user + exactly when the SDLOnHMIStatus notification was received.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLOnHMIStatus : SDLRPCNotification
    + + +

    Swift

    +
    class SDLOnHMIStatus : SDLRPCNotification
    + + + + +

    + SDLOnHashChange +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLOnKeyboardInput +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLOnLanguageChange +

    + +

    Provides information to what language the SDL HMI language was changed

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLOnLanguageChange : SDLRPCNotification
    + + +

    Swift

    +
    class SDLOnLanguageChange : SDLRPCNotification
    + + + + +

    + SDLOnLockScreenStatus +

    + +
    To help prevent driver distraction, any SmartDeviceLink application is required to implement a lockscreen that must be enforced while the application is active on the system while the vehicle is in motion.
    +
    +This lockscreen must perform the following:
    +Limit all application control usability from the mobile device with a full-screen static image overlay or separate view.
    +For simplicity, the OnLockScreenStatus RPC will be provided via the onOnLockScreenNotification call back. The call back will include the LockScreenStatus enum which indicates if the lockscreen is required, optional or not required.
    +The call back also includes details regarding the current HMI_Status level, driver distraction status and user selection status of the application.
    +
    + + See more + + +

    Objective-C

    +
    @interface SDLOnLockScreenStatus : SDLRPCNotification
    + + +

    Swift

    +
    class SDLOnLockScreenStatus : SDLRPCNotification
    + + + + +

    + SDLOnPermissionsChange +

    + +

    Provides update to app of which sets of functions are available

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLOnPermissionsChange : SDLRPCNotification
    + + +

    Swift

    +
    class SDLOnPermissionsChange : SDLRPCNotification
    + + + + +

    + SDLOnSyncPData +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLOnSystemRequest +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLOnTBTClientState +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLOnTouchEvent +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLOnVehicleData +

    + +

    Request vehicle data.

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLOnVehicleData : SDLRPCNotification
    + + +

    Swift

    +
    class SDLOnVehicleData : SDLRPCNotification
    + + + + +

    + SDLPRNDL +

    + +

    The selected gear the car is in.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLPRNDL : SDLEnum
    + + +

    Swift

    +
    class SDLPRNDL : SDLEnum
    + + + + +

    + SDLParameterPermissions +

    + +

    Defining sets of parameters, which are permitted or prohibited for a given RPC.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLParameterPermissions : SDLRPCStruct
    + + +

    Swift

    +
    class SDLParameterPermissions : SDLRPCStruct
    + + + + +

    + SDLPerformAudioPassThru +

    + +

    This will open an audio pass thru session. By doing so the app can receive + audio data through the vehicle microphone +

    + Function Group: AudioPassThru +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 2.0

    + +

    See SDLEndAudioPassThru

    + + See more + + +

    Objective-C

    +
    @interface SDLPerformAudioPassThru : SDLRPCRequest
    + + +

    Swift

    +
    class SDLPerformAudioPassThru : SDLRPCRequest
    + + + + +

    + SDLPerformAudioPassThruResponse +

    + +

    Perform Audio Pass Thru Response is sent, when PerformAudioPassThru has been called

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLPerformAudioPassThruResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLPerformAudioPassThruResponse : SDLRPCResponse
    + + + + +

    + SDLPerformInteraction +

    + +

    Performs an application-initiated interaction in which the user can select a + {@linkplain Choice} from among the specified Choice Sets. For instance, an + application may use a PerformInteraction to ask a user to say the name of a + song to play. The user’s response is only valid if it appears in the + specified Choice Sets and is recognized by SDL +

    + Function Group: Base +

    + HMILevel needs to be FULL +

    + +

    Since SmartDeviceLink 1.0
    + See SDLCreateInteractionChoiceSet SDLDeleteInteractionChoiceSet

    + + See more + + +

    Objective-C

    +
    @interface SDLPerformInteraction : SDLRPCRequest
    + + +

    Swift

    +
    class SDLPerformInteraction : SDLRPCRequest
    + + + + +

    + SDLPerformInteractionResponse +

    + +

    PerformInteraction Response is sent, when SDLPerformInteraction has been called

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLPerformInteractionResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLPerformInteractionResponse : SDLRPCResponse
    + + + + +

    + SDLPermissionItem +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLPermissionStatus +

    + +

    Enumeration that describes possible permission states of a policy table entry.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLPermissionStatus : SDLEnum
    + + +

    Swift

    +
    class SDLPermissionStatus : SDLEnum
    + + + + +

    + SDLPowerModeQualificationStatus +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLPowerModeStatus +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLPredefinedLayout +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLPrerecordedSpeech +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLPresetBankCapabilities +

    + +

    Contains information about on-screen preset capabilities.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLPresetBankCapabilities : SDLRPCStruct
    + + +

    Swift

    +
    class SDLPresetBankCapabilities : SDLRPCStruct
    + + + + +

    + SDLPrimaryAudioSource +

    + +

    Reflects the current primary audio source of SDL (if selected).

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLPrimaryAudioSource : SDLEnum
    + + +

    Swift

    +
    class SDLPrimaryAudioSource : SDLEnum
    + + + + +

    + SDLProtocol +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLProtocolHeader +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLProtocolMessage +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLProxy +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLProxyFactory +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLPutFile +

    + +

    Used to push a binary data onto the SDL module from a mobile device, such as + icons and album art

    + +

    Since SmartDeviceLink 2.0 + - see: SDLDeleteFile + - see: SDLListFiles

    + + See more + + +

    Objective-C

    +
    @interface SDLPutFile : SDLRPCRequest
    + + +

    Swift

    +
    class SDLPutFile : SDLRPCRequest
    + + + + +

    + SDLPutFileResponse +

    + +

    Put File Response is sent, when SDLPutFile has been called

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLPutFileResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLPutFileResponse : SDLRPCResponse
    + + + + +

    + SDLRPCMessage +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLRPCNotification +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLRPCRequest +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLRPCRequestFactory +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLRPCResponse +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLRPCStruct +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLReadDID +

    + +

    Non periodic vehicle data read request. This is an RPC to get diagnostics + data from certain vehicle modules. DIDs of a certain module might differ from + vehicle type to vehicle type +

    + Function Group: ProprietaryData +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLReadDID : SDLRPCRequest
    + + +

    Swift

    +
    class SDLReadDID : SDLRPCRequest
    + + + + +

    + SDLReadDIDResponse +

    + +

    Read DID Response is sent, when ReadDID has been called

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLReadDIDResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLReadDIDResponse : SDLRPCResponse
    + + + + +

    + SDLRegisterAppInterface +

    + +

    Registers the application’s interface with SDL®, declaring properties of + the registration, including the messaging interface version, the app name, + etc. The mobile application must establish its interface registration with + SDL before any other interaction with SDL® can take place. The + registration lasts until it is terminated either by the application calling + the SDLUnregisterAppInterface method, or by SDL® + sending an SDLOnAppInterfaceUnregistered notification, or + by loss of the underlying transport connection, or closing of the underlying + message transmission protocol RPC session +

    + Until the application receives its first SDLOnHMIStatus + Notification, its HMI Status is assumed to be: + SDLHMILevel=NONE, + SDLAudioStreamingState + =NOT_AUDIBLE, + SDLSystemContext=MAIN +

    + All SDL® resources which the application creates or uses (e.g. Choice + Sets, Command Menu, etc.) are associated with the application’s interface + registration. Therefore, when the interface registration ends, the SDL® + resources associated with the application are disposed of. As a result, even + though the application itself may continue to run on its host platform (e.g. + mobile device) after the interface registration terminates, the application + will not be able to use the SDL® HMI without first establishing a new + interface registration and re-creating its required SDL® resources. That + is, SDL® resources created by (or on behalf of) an application do not + persist beyond the life-span of the interface registration +

    + Resources and settings whose lifespan is tied to the duration of an + application’s interface registration:
    +

      +
    • Choice Sets
    • +
    • Command Menus (built by successive calls to SDLAddCommand + )
    • +
    • Media clock timer display value
    • +
    • Media clock timer display value
    • +
    • Media clock timer display value
    • +
    +

    + The autoActivateID is used to grant an application the HMILevel and + AudioStreamingState it had when it last disconnected +

    + Notes: The autoActivateID parameter, and associated behavior, is + currently ignored by SDL® +

    + When first calling this method (i.e. first time within life cycle of mobile + app), an autoActivateID should not be included. After successfully + registering an interface, an autoActivateID is returned to the mobile + application for it to use in subsequent connections. If the connection + between SDL® and the mobile application is lost, such as the vehicle is + turned off while the application is running, the autoActivateID can then be + passed in another call to RegisterAppInterface to re-acquire + SDLHMILevel=FULL +

    + If the application intends to stream audio it is important to indicate so via + the isMediaApp parameter. When set to true, audio will reliably stream + without any configuration required by the user. When not set, audio may + stream, depending on what the user might have manually configured as a media + source on SDL® +

    + There is no time limit for how long the autoActivateID is valid (i.e. would + confer focus and opt-in) +

    + HMILevel is not defined before registering
    +

    + +

    @since SDL 1.0

    + +
    +

    See

    + SDLUnregisterAppInterface SDLOnAppInterfaceUnregistered + +
    + + See more + + +

    Objective-C

    +
    @interface SDLRegisterAppInterface : SDLRPCRequest
    + + +

    Swift

    +
    class SDLRegisterAppInterface : SDLRPCRequest
    + + + + +

    + SDLRegisterAppInterfaceResponse +

    + +

    @abstract Register AppInterface Response is sent, when SDLRegisterAppInterface has been called

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLRegisterAppInterfaceResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLRegisterAppInterfaceResponse : SDLRPCResponse
    + + + + +

    + SDLRequestType +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLResetGlobalProperties +

    + +

    Resets the passed global properties to their default values as defined by + SDL +

    + The HELPPROMPT global property default value is generated by SDL consists of + the first vrCommand of each Command Menu item defined at the moment PTT is + pressed
    + The TIMEOUTPROMPT global property default value is the same as the HELPPROMPT + global property default value +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 1.0 + See SetGlobalProperties

    + + See more + + +

    Objective-C

    +
    @interface SDLResetGlobalProperties : SDLRPCRequest
    + + +

    Swift

    +
    class SDLResetGlobalProperties : SDLRPCRequest
    + + + + +

    + SDLResetGlobalPropertiesResponse +

    + +

    Reset Global Properties Response is sent, when SDLResetGlobalProperties has been called

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLResetGlobalPropertiesResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLResetGlobalPropertiesResponse : SDLRPCResponse
    + + + + +

    + SDLResult +

    + +

    Defines the possible result codes returned by SDL to the application in a response to a requested operation

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLResult : SDLEnum
    + + +

    Swift

    +
    class SDLResult : SDLEnum
    + + + + +

    + SDLSamplingRate +

    + +

    Describes different sampling rates for PerformAudioPassThru

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSamplingRate : SDLEnum
    + + +

    Swift

    +
    class SDLSamplingRate : SDLEnum
    + + + + +

    + SDLScreenParams +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLScrollableMessage +

    + +

    Creates a full screen overlay containing a large block of formatted text that +can be scrolled with up to 8 SoftButtons defined +

    +Function Group: ScrollableMessage +

    +HMILevel needs to be FULL +

    + + See more + + +

    Objective-C

    +
    @interface SDLScrollableMessage : SDLRPCRequest
    + + +

    Swift

    +
    class SDLScrollableMessage : SDLRPCRequest
    + + + + +

    + SDLScrollableMessageResponse +

    + +

    Scrollable Message Response is sent, when SDLScrollableMessage has been called

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLScrollableMessageResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLScrollableMessageResponse : SDLRPCResponse
    + + + + +

    + SDLSendLocation +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLSendLocationResponse +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLSetAppIcon +

    + +

    Used to set existing local file on SDL as the app’s icon. Not supported on + first generation SDL modules. +

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSetAppIcon : SDLRPCRequest
    + + +

    Swift

    +
    class SDLSetAppIcon : SDLRPCRequest
    + + + + +

    + SDLSetAppIconResponse +

    + +

    SDLSetAppIconResponse is sent, when SDLSetAppIcon has been called. + * SinceSmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSetAppIconResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLSetAppIconResponse : SDLRPCResponse
    + + + + +

    + SDLSetDisplayLayout +

    + +

    Used to set an alternate display layout. If not sent, default screen for + given platform will be shown

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSetDisplayLayout : SDLRPCRequest
    + + +

    Swift

    +
    class SDLSetDisplayLayout : SDLRPCRequest
    + + + + +

    + SDLSetDisplayLayoutResponse +

    + +

    Set Display Layout Response is sent, when SetDisplayLayout has been called

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSetDisplayLayoutResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLSetDisplayLayoutResponse : SDLRPCResponse
    + + + + +

    + SDLSetGlobalProperties +

    + +

    Sets value(s) for the specified global property(ies) +

    + Function Group: Base

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 1.0 + See SDLResetGlobalProperties

    + + See more + + +

    Objective-C

    +
    @interface SDLSetGlobalProperties : SDLRPCRequest
    + + +

    Swift

    +
    class SDLSetGlobalProperties : SDLRPCRequest
    + + + + +

    + SDLSetGlobalPropertiesResponse +

    + +

    Set Global Properties Response is sent, when SDLSetGlobalProperties has been called

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSetGlobalPropertiesResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLSetGlobalPropertiesResponse : SDLRPCResponse
    + + + + +

    + SDLSetMediaClockTimer +

    + +

    Sets the media clock/timer value and the update method (e.g.count-up, + count-down, etc.) +

    + Function Group: Base

    + HMILevel needs to be FULL, LIMITIED or BACKGROUND +

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSetMediaClockTimer : SDLRPCRequest
    + + +

    Swift

    +
    class SDLSetMediaClockTimer : SDLRPCRequest
    + + + + +

    + SDLSetMediaClockTimerResponse +

    + +

    Set Media Clock Timer Response is sent, when SDLSetMediaClockTimer has been called

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSetMediaClockTimerResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLSetMediaClockTimerResponse : SDLRPCResponse
    + + + + +

    + SDLShow +

    + +

    Updates the application’s display text area, regardless of whether or not + this text area is visible to the user at the time of the request. The + application’s display text area remains unchanged until updated by subsequent + calls to Show +

    + The content of the application’s display text area is visible to the user + when the application + is FULL or LIMITED, and the + SDLSystemContext=MAIN and no + SDLAlert is in progress +

    + The Show operation cannot be used to create an animated scrolling screen. To + avoid distracting the driver, Show commands cannot be issued more than once + every 4 seconds. Requests made more frequently than this will be rejected +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 1.0 + See SDLAlert SDLSetMediaClockTimer

    + + See more + + +

    Objective-C

    +
    @interface SDLShow : SDLRPCRequest
    + + +

    Swift

    +
    class SDLShow : SDLRPCRequest
    + + + + +

    + SDLShowConstantTBT +

    + +

    This RPC is used to update the user with navigation information
    + * for the constantly shown screen (base screen),but also for the
    + * alert type screen. + *

    + * @since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + +

    Swift

    +
    class SDLShowConstantTBT : SDLRPCRequest
    + + + + +

    + SDLShowConstantTBTResponse +

    + +

    SDLShowConstantTBTResponse is sent, when SDLShowConstantTBT has been called. + * SinceSmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLShowConstantTBTResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLShowConstantTBTResponse : SDLRPCResponse
    + + + + +

    + SDLShowResponse +

    + +

    Show Response is sent, when Show has been called

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLShowResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLShowResponse : SDLRPCResponse
    + + + + +

    + SDLSingleTireStatus +

    + +

    Tire pressure status of a single tire.

    + +

    @since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSingleTireStatus : SDLRPCStruct
    + + +

    Swift

    +
    class SDLSingleTireStatus : SDLRPCStruct
    + + + + +

    + SDLSiphonServer +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLSlider +

    + +

    Creates a full screen or pop-up overlay (depending on platform) with a single user controlled slider

    + +

    HMILevel needs to be FULL

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSlider : SDLRPCRequest
    + + +

    Swift

    +
    class SDLSlider : SDLRPCRequest
    + + + + +

    + SDLSliderResponse +

    + +

    Slider Response is sent, when Slider has been called

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSliderResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLSliderResponse : SDLRPCResponse
    + + + + +

    + SDLSoftButton +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLSoftButtonCapabilities +

    + +

    Contains information about a SoftButton’s capabilities.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSoftButtonCapabilities : SDLRPCStruct
    + + +

    Swift

    +
    class SDLSoftButtonCapabilities : SDLRPCStruct
    + + + + +

    + SDLSoftButtonType +

    + +

    SoftButtonType (TEXT / IMAGE / BOTH)

    + + See more + + +

    Objective-C

    +
    @interface SDLSoftButtonType : SDLEnum
    + + +

    Swift

    +
    class SDLSoftButtonType : SDLEnum
    + + + + +

    + SDLSpeak +

    + +

    Speaks a phrase over the vehicle audio system using SDL’s TTS (text-to-speech) engine. The provided text to be spoken can be simply a text phrase, or it can consist of phoneme specifications to direct SDL’s TTS engine to speak a speech-sculpted phrase.

    + +

    Receipt of the Response indicates the completion of the Speak operation, regardless of how the Speak operation may have completed (i.e. successfully, interrupted, terminated, etc.).

    + +

    Requesting a new Speak operation while the application has another Speak operation already in progress (i.e. no corresponding Response for that in-progress Speak operation has been received yet) will terminate the in-progress Speak operation (causing its corresponding Response to be sent by SDL) and begin the requested Speak operation

    + +

    Requesting a new Speak operation while the application has an SDLAlert operation already in progress (i.e. no corresponding Response for that in-progress SDLAlert operation has been received yet) will result in the Speak operation request being rejected (indicated in the Response to the Request)

    + +

    Requesting a new SDLAlert operation while the application has a Speak operation already in progress (i.e. no corresponding Response for that in-progress Speak operation has been received yet) will terminate the in-progress Speak operation (causing its corresponding Response to be sent by SDL) and begin the requested SDLAlert operation

    + +

    Requesting a new Speak operation while the application has a SDLPerformInteraction operation already in progress (i.e. no corresponding Response for that in-progress SDLPerformInteraction operation has been received yet) will result in the Speak operation request being rejected (indicated in the Response to the Request)

    + +

    Requesting a SDLPerformInteraction operation while the application has a Speak operation already in progress (i.e. no corresponding Response for that in-progress Speak operation has been received yet) will terminate the in-progress Speak operation (causing its corresponding Response to be sent by SDL) and begin the requested SDLPerformInteraction operation

    + +

    HMI Status Requirements: +

  • HMILevel: FULL, Limited
  • +
  • AudioStreamingState: Any
  • +
  • SystemContext: MAIN, MENU, VR
  • + +

    Notes: +

  • When SDLAlert is issued with MENU in effect, SDLAlert is queued and played when MENU interaction is completed (i.e. SystemContext reverts to MAIN). When SDLAlert + is issued with VR in effect, SDLAlert is queued and played when VR interaction is completed (i.e. SystemContext reverts to MAIN)
  • +
  • When both SDLAlert and Speak are queued during MENU or VR, they are played back in the order in which they were queued, with all existing rules for collisions still in effect
  • + +

    Additional Notes: +

  • Total character limit depends on platform.
  • +
  • Chunks are limited to 500 characters; however you can have multiple TTS chunks.
  • +
  • On old systems there is a total character limit of 500 characters across all chunks. This could vary according to the VCA.
  • + +

    @since SmartDeviceLink 1.0 + - see: SDLAlert

    + + See more + + +

    Objective-C

    +
    @interface SDLSpeak : SDLRPCRequest
    + + +

    Swift

    +
    class SDLSpeak : SDLRPCRequest
    + + + + +

    + SDLSpeakResponse +

    + +

    Speak Response is sent, when Speak has been called

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSpeakResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLSpeakResponse : SDLRPCResponse
    + + + + +

    + SDLSpeechCapabilities +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLStartTime +

    + +

    Describes the hour, minute and second values used to set the media clock.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLStartTime : SDLRPCStruct
    + + +

    Swift

    +
    class SDLStartTime : SDLRPCStruct
    + + + + +

    + SDLStreamingMediaManager +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLSubscribeButton +

    + +

    Establishes a subscription to button notifications for HMI buttons. Buttons + are not necessarily physical buttons, but can also be soft buttons on a + touch screen, depending on the display in the vehicle. Once subscribed to a + particular button, an application will receive both + SDLOnButtonEvent and SDLOnButtonPress notifications + whenever that button is pressed. The application may also unsubscribe from + notifications for a button by invoking the SDLUnsubscribeButton + operation +

    + When a button is depressed, an SDLOnButtonEvent notification is + sent to the application with a ButtonEventMode of BUTTONDOWN. When that same + button is released, an SDLOnButtonEvent notification is sent to the + application with a ButtonEventMode of BUTTONUP +

    + When the duration of a button depression (that is, time between depression + and release) is less than two seconds, an SDLOnButtonPress + notification is sent to the application (at the moment the button is + released) with a ButtonPressMode of SHORT. When the duration is two or more + seconds, an SDLOnButtonPress notification is sent to the + application (at the moment the two seconds have elapsed) with a + ButtonPressMode of LONG +

    + The purpose of SDLOnButtonPress notifications is to allow for + programmatic detection of long button presses similar to those used to store + presets while listening to the radio, for example +

    + When a button is depressed and released, the sequence in which notifications + will be sent to the application is as follows: +

    + For short presses:
    +

      +
    • OnButtonEvent (ButtonEventMode = BUTTONDOWN)
    • +
    • OnButtonEvent (ButtonEventMode = BUTTONUP)
    • +
    • OnButtonPress (ButtonPressMode = SHORT)
    • +
    +

    + For long presses:
    +

      +
    • OnButtonEvent (ButtonEventMode = BUTTONDOWN)
    • +
    • OnButtonEvent (ButtonEventMode = BUTTONUP)
    • +
    • OnButtonPress (ButtonPressMode = LONG)
    • +
    +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 1.0
    + See SDLUnsubscribeButton

    + + See more + + +

    Objective-C

    +
    @interface SDLSubscribeButton : SDLRPCRequest
    + + +

    Swift

    +
    class SDLSubscribeButton : SDLRPCRequest
    + + + + +

    + SDLSubscribeButtonResponse +

    + +

    SubscribeButton Response is sent, when SDLSubscribeButton has been called

    + +

    Since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSubscribeButtonResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLSubscribeButtonResponse : SDLRPCResponse
    + + + + +

    + SDLSubscribeVehicleData +

    + +

    Subscribes for specific published vehicle data items. The data will be only + sent, if it has changed. The application will be notified by the + onVehicleData notification whenever new data is available. The update rate is + very much dependent on sensors, vehicle architecture and vehicle type. Be + also prepared for the situation that a signal is not available on a vehicle +

    + Function Group: Location, VehicleInfo and DrivingChara +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 2.0
    + See SDLUnsubscribeVehicleData SDLGetVehicleData

    + + See more + + +

    Objective-C

    +
    @interface SDLSubscribeVehicleData : SDLRPCRequest
    + + +

    Swift

    +
    class SDLSubscribeVehicleData : SDLRPCRequest
    + + + + +

    + SDLSubscribeVehicleDataResponse +

    + +

    Subscribe Vehicle Data Response is sent, when SDLSubscribeVehicleData has been called

    + +

    Since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSubscribeVehicleDataResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLSubscribeVehicleDataResponse : SDLRPCResponse
    + + + + +

    + SDLSyncMsgVersion +

    + +

    Specifies the version number of the SDL V4 interface. This is used by both the application and SDL to declare what interface version each is using.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSyncMsgVersion : SDLRPCStruct
    + + +

    Swift

    +
    class SDLSyncMsgVersion : SDLRPCStruct
    + + + + +

    + SDLSyncPData +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLSyncPDataResponse +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLSystemAction +

    + +

    Enumeration that describes system actions that can be triggered.

    + + See more + + +

    Objective-C

    +
    @interface SDLSystemAction : SDLEnum
    + + +

    Swift

    +
    class SDLSystemAction : SDLEnum
    + + + + +

    + SDLSystemContext +

    + +

    Indicates whether or not a user-initiated interaction is in progress, and if so, in what mode (i.e. MENU or VR).

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLSystemContext : SDLEnum
    + + +

    Swift

    +
    class SDLSystemContext : SDLEnum
    + + + + +

    + SDLTBTState +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLTCPTransport +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLTTSChunk +

    + +

    Specifies what is to be spoken. This can be simply a text phrase, which SDL will speak according to its own rules. It can also be phonemes from either the Microsoft SAPI phoneme set, or from the LHPLUS phoneme set. It can also be a pre-recorded sound in WAV format (either developer-defined, or provided by the SDL platform).

    + +

    In SDL, words, and therefore sentences, can be built up from phonemes and are used to explicitly provide the proper pronounciation to the TTS engine. For example, to have SDL pronounce the word read as red, rather than as when it is pronounced like reed, the developer would use phonemes to express this desired pronounciation.

    + +

    For more information about phonemes, see http://en.wikipedia.org/wiki/Phoneme.

    + +

    Parameter List + + + + + + + + + + + + + + + + + + + +
    NameTypeDescriptionSmartDeviceLink Ver. Available
    textStringText to be spoken, or a phoneme specification, or the name of a pre-recorded sound. The contents of this field are indicated by the type field.SmartDeviceLink 1.0
    typeSpeechCapabilitiesIndicates the type of information in the text field (e.g. phrase to be spoken, phoneme specification, name of pre-recorded sound). SmartDeviceLink 1.0

    + +

    @since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLTTSChunk : SDLRPCStruct
    + + +

    Swift

    +
    class SDLTTSChunk : SDLRPCStruct
    + + + + +

    + SDLTTSChunkFactory +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLTextAlignment +

    + +

    The list of possible alignments of text in a field. May only work on some display types.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLTextAlignment : SDLEnum
    + + +

    Swift

    +
    class SDLTextAlignment : SDLEnum
    + + + + +

    + SDLTextField +

    + +

    Struct defining the characteristics of a displayed field on the HMI.

    + +

    Parameter List + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescriptionSmartDeviceLink Ver. Available
    nameTextFieldNameEnumeration identifying the field. SDL 1.0
    characterSetCharacterSetThe character set that is supported in this field. SDL 1.0
    widthInt16The number of characters in one row of this field. +
      +
    • Minvalue=1
    • +
    • maxvalue=500
    • +
    +
    SDL 1.0
    rowsInt16The number of rows for this text field. +
      +
    • Minvalue=1
    • +
    • maxvalue=3
    • +
    +
    SDL 1.0

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLTextField : SDLRPCStruct
    + + +

    Swift

    +
    class SDLTextField : SDLRPCStruct
    + + + + +

    + SDLTextFieldName +

    + +

    Names of the text fields that can appear on a SDL display.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLTextFieldName : SDLEnum
    + + +

    Swift

    +
    class SDLTextFieldName : SDLEnum
    + + + + +

    + SDLTimerMode +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLTireStatus +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLTouchCoord +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLTouchEvent +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLTouchEventCapabilities +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLTouchType +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLTriggerSource +

    + +

    Indicates whether choice/command was selected via VR or via a menu selection (using SEEKRIGHT/SEEKLEFT, TUNEUP, TUNEDOWN, OK buttons)

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLTriggerSource : SDLEnum
    + + +

    Swift

    +
    class SDLTriggerSource : SDLEnum
    + + + + +

    + SDLTurn +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLUnregisterAppInterface +

    + +

    Terminates an application’s interface registration. This causes SDL® to + dispose of all resources associated with the application’s interface + registration (e.g. Command Menu items, Choice Sets, button subscriptions, + etc.) +

    + After the UnregisterAppInterface operation is performed, no other operations + can be performed until a new app interface registration is established by + calling {@linkplain RegisterAppInterface} +

    + HMILevel can be FULL, LIMITED, BACKGROUND or NONE +

    + +

    See SDLRegisterAppInterface SDLOnAppInterfaceUnregistered

    + + See more + + +

    Objective-C

    +
    @interface SDLUnregisterAppInterface : SDLRPCRequest
    + + +

    Swift

    +
    class SDLUnregisterAppInterface : SDLRPCRequest
    + + + + +

    + SDLUnregisterAppInterfaceResponse +

    + +

    Unregister AppInterface Response is sent, when SDLUnregisterAppInterface has been called

    + +

    @since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLUnregisterAppInterfaceResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLUnregisterAppInterfaceResponse : SDLRPCResponse
    + + + + +

    + SDLUnsubscribeButton +

    + +

    Deletes a subscription to button notifications for the specified button. For +more information about button subscriptions, see SDLSubscribeButton +

    +Application can unsubscribe from a button that is currently being pressed +(i.e. has not yet been released), but app will not get button event +

    +HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    @since SmartDeviceLink 1.0
    +See SDLSubscribeButton

    + + See more + + +

    Objective-C

    +
    @interface SDLUnsubscribeButton : SDLRPCRequest
    + + +

    Swift

    +
    class SDLUnsubscribeButton : SDLRPCRequest
    + + + + +

    + SDLUnsubscribeButtonResponse +

    + +

    Unsubscribe Button Response is sent, when SDLUnsubscribeButton has been called

    + +

    @since SmartDeviceLink 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLUnsubscribeButtonResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLUnsubscribeButtonResponse : SDLRPCResponse
    + + + + +

    + SDLUnsubscribeVehicleData +

    + +

    This function is used to unsubscribe the notifications from the + subscribeVehicleData function +

    + Function Group: Location, VehicleInfo and DrivingChara +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    @since SmartDeviceLink 2.0
    + See SDLSubscribeVehicleData SDLGetVehicleData

    + + See more + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleData : SDLRPCRequest
    + + +

    Swift

    +
    class SDLUnsubscribeVehicleData : SDLRPCRequest
    + + + + +

    + SDLUnsubscribeVehicleDataResponse +

    + +

    Unsubscribe Vehicle Data Response is sent, when UnsubscribeVehicleData has been called

    + +

    @since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleDataResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLUnsubscribeVehicleDataResponse : SDLRPCResponse
    + + + + +

    + SDLUpdateMode +

    + +

    Specifies what function should be performed on the media clock/counter

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLUpdateMode : SDLEnum
    + + +

    Swift

    +
    class SDLUpdateMode : SDLEnum
    + + + + +

    + SDLUpdateTurnList +

    + +

    Updates the list of next maneuvers, which can be requested by the user pressing the softbutton
    + * “Turns” on the Navigation base screen. Three softbuttons are predefined by the system: Up, Down, Close. + *

    + * @since SmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLUpdateTurnList : SDLRPCRequest
    + + +

    Swift

    +
    class SDLUpdateTurnList : SDLRPCRequest
    + + + + +

    + SDLUpdateTurnListResponse +

    + +

    SDLUpdateTurnListResponse is sent, when SDLUpdateTurnList has been called. + * SinceSmartDeviceLink 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLUpdateTurnListResponse : SDLRPCResponse
    + + +

    Swift

    +
    class SDLUpdateTurnListResponse : SDLRPCResponse
    + + + + +

    + SDLVRCapabilities +

    + +

    The VR capabilities of the connected SDL platform.

    + +

    @since SDL 1.0

    + + See more + + +

    Objective-C

    +
    @interface SDLVRCapabilities : SDLEnum
    + + +

    Swift

    +
    class SDLVRCapabilities : SDLEnum
    + + + + +

    + SDLVRHelpItem +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLVehicleDataActiveStatus +

    + +

    Vehicle Data Activity Status

    + + See more + + +

    Objective-C

    +
    @interface SDLVehicleDataActiveStatus : SDLEnum
    + + +

    Swift

    +
    class SDLVehicleDataActiveStatus : SDLEnum
    + + + + +

    + SDLVehicleDataEventStatus +

    + +

    Reflects the status of a vehicle data event; e.g. a seat belt event status.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLVehicleDataEventStatus : SDLEnum
    + + +

    Swift

    +
    class SDLVehicleDataEventStatus : SDLEnum
    + + + + +

    + SDLVehicleDataNotificationStatus +

    + +

    Reflects the status of a vehicle data notification.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLVehicleDataNotificationStatus : SDLEnum
    + + +

    Swift

    +
    class SDLVehicleDataNotificationStatus : SDLEnum
    + + + + +

    + SDLVehicleDataResult +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLVehicleDataResultCode +

    + +

    Vehicle Data Result Code

    + + See more + + +

    Objective-C

    +
    @interface SDLVehicleDataResultCode : SDLEnum
    + + +

    Swift

    +
    class SDLVehicleDataResultCode : SDLEnum
    + + + + +

    + SDLVehicleDataStatus +

    + +

    Reflects the status of a binary vehicle data item.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLVehicleDataStatus : SDLEnum
    + + +

    Swift

    +
    class SDLVehicleDataStatus : SDLEnum
    + + + + +

    + SDLVehicleDataType +

    + +

    Defines the vehicle data types that can be published and/or subscribed to using SDLSubscribeVehicleData

    + + See more + + +

    Objective-C

    +
    @interface SDLVehicleDataType : SDLEnum
    + + +

    Swift

    +
    class SDLVehicleDataType : SDLEnum
    + + + + +

    + SDLVehicleType +

    + +

    Describes the type of vehicle the mobile phone is connected with.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLVehicleType : SDLRPCStruct
    + + +

    Swift

    +
    class SDLVehicleType : SDLRPCStruct
    + + + + +

    + SDLWarningLightStatus +

    + +

    Reflects the status of a cluster instrument warning light.

    + +

    @since SDL 2.0

    + + See more + + +

    Objective-C

    +
    @interface SDLWarningLightStatus : SDLEnum
    + + +

    Swift

    +
    class SDLWarningLightStatus : SDLEnum
    + + + + +

    + SDLWiperStatus +

    + +

    Wiper Status

    + + See more + + +

    Objective-C

    +
    @interface SDLWiperStatus : SDLEnum
    + + +

    Swift

    +
    class SDLWiperStatus : SDLEnum
    + + + + +
    diff --git a/docs/Classes/SDLAbstractProtocol.html b/docs/Classes/SDLAbstractProtocol.html new file mode 100644 index 000000000..aeb75bbab --- /dev/null +++ b/docs/Classes/SDLAbstractProtocol.html @@ -0,0 +1,158 @@ +

    SDLAbstractProtocol Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + debugConsoleGroupName +

    + +

    Undocumented

    + + + + + + +

    + transport +

    + +

    Undocumented

    + + + + + + +

    + protocolDelegateTable +

    + +

    Undocumented

    + + + + + + +

    + -sendStartSessionWithType: +

    + +

    Undocumented

    + + + + + + +

    + -sendEndSessionWithType: +

    + +

    Undocumented

    + + + + + + +

    + -sendRPC: +

    + +

    Undocumented

    + + + + + + +

    + -sendRPCRequest: +

    + +

    Undocumented

    + + + + + + +

    + -sendHeartbeat +

    + +

    Undocumented

    + + + + + + +

    + -sendRawDataStream:withServiceType: +

    + +

    Undocumented

    + + + + + + +

    + -sendRawData:withServiceType: +

    + +

    Undocumented

    + + + + + + +

    + -handleBytesFromTransport: +

    + +

    Undocumented

    + + + + + + +

    + -dispose +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLAbstractTransport.html b/docs/Classes/SDLAbstractTransport.html new file mode 100644 index 000000000..9f02cb8a7 --- /dev/null +++ b/docs/Classes/SDLAbstractTransport.html @@ -0,0 +1,98 @@ +

    SDLAbstractTransport Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + delegate +

    + +

    Undocumented

    + + + + + + +

    + debugConsoleGroupName +

    + +

    Undocumented

    + + + + + + +

    + -connect +

    + +

    Undocumented

    + + + + + + +

    + -disconnect +

    + +

    Undocumented

    + + + + + + +

    + -sendData: +

    + +

    Undocumented

    + + + + + + +

    + -dispose +

    + +

    Undocumented

    + + + + + + +

    + -retryDelay +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLAddCommand.html b/docs/Classes/SDLAddCommand.html new file mode 100644 index 000000000..5249e094b --- /dev/null +++ b/docs/Classes/SDLAddCommand.html @@ -0,0 +1,182 @@ +

    SDLAddCommand Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    This class will add a command to the application’s Command Menu SDLMenuParams

    + +

    A command will be added to the end of the list of elements in + the Command Menu under the following conditions: +

  • When a SDLCommand is added with no SDLMenuParams value provided
  • +
  • When a SDLMenuParams value is provided with a SDLMenuParam.position value + greater than or equal to the number of menu items currently defined in the + menu specified by the SDLMenuParam.parentID value
  • + +

    The set of choices which the application builds using SDLAddCommand can be a + mixture of: +

  • Choices having only VR synonym definitions, but no SDLMenuParams definitions +
  • +
  • Choices having only SDLMenuParams definitions, but no VR synonym definitions +
  • +
  • Choices having both SDLMenuParams and VR synonym definitions
  • + +

    HMILevel needs to be FULL, LIMITED or BACKGROUD

    + +

    @since SDL 1.0

    + +
    +

    See

    + SDLDeleteCommand SDLAddSubMenu SDLDeleteSubMenu + +
    + + +
    +

    + -init +

    + +

    Constructs a new SDLAddCommand object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLAddCommand object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + cmdID +

    + +

    @abstract A Unique Command ID that identifies the command

    + +

    @discussion Is returned in an SDLOnCommand notification to identify the command selected by the user

    + +

    Required, Integer, 0 - 2,000,000,000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *cmdID;
    + + +

    Swift

    +
    var cmdID: NSNumber! { get set }
    + + + + +

    + menuParams +

    + +

    @abstract a SDLMenuParams pointer which will defined the command and how it is added to the Command Menu

    + +

    @discussion If provided, this will define the command and how it is added to the + Command Menu

    + +

    If null, commands will not be accessible through the HMI application menu

    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLMenuParams *menuParams;
    + + +

    Swift

    +
    var menuParams: SDLMenuParams! { get set }
    + + + + +

    + vrCommands +

    + +

    @abstract An array of strings to be used as VR synonyms for this command.

    + +

    @discussion If provided, defines one or more VR phrases the recognition of any of which triggers the SDLOnCommand notification with this cmdID

    + +

    If null, commands will not be accessible by voice commands (when the user hits push-to-talk)

    + +

    Optional, Array of Strings, Max String length 99 chars, Array size 1 - 100

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *vrCommands;
    + + +

    Swift

    +
    var vrCommands: NSMutableArray! { get set }
    + + + + +

    + cmdIcon +

    + +

    @abstract Image struct containing a static or dynamic icon

    + +

    @discussion If provided, defines the image to be be shown along with a command

    + +

    If omitted on supported displays, no (or the default if applicable) icon will be displayed

    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLImage *cmdIcon;
    + + +

    Swift

    +
    var cmdIcon: SDLImage! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLAddCommandResponse.html b/docs/Classes/SDLAddCommandResponse.html new file mode 100644 index 000000000..afc1aee79 --- /dev/null +++ b/docs/Classes/SDLAddCommandResponse.html @@ -0,0 +1,48 @@ +

    SDLAddCommandResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLAddCommandResponse is sent, when SDLAddCommand has been called

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAddCommandResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAddCommandResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLAddSubMenu.html b/docs/Classes/SDLAddSubMenu.html new file mode 100644 index 000000000..86fa765b4 --- /dev/null +++ b/docs/Classes/SDLAddSubMenu.html @@ -0,0 +1,145 @@ +

    SDLAddSubMenu Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Add a SDLSubMenu to the Command Menu +

    + A SDLSubMenu can only be added to the Top Level Menu (i.e.a SDLSubMenu cannot be + added to a SDLSubMenu), and may only contain commands as children +

    +

    + HMILevel needs to be FULL, LIMITED or BACKGROUD +

    + +

    Since SmartDeviceLink 1.0
    + see SDLDeleteSubMenu SDLAddCommand SDLDeleteCommand

    + + +
    +

    + -init +

    + +

    Constructs a new SDLAddSubMenu object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLAddSubMenu object indicated by the dictionary parameter +

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + menuID +

    + +

    @abstract a Menu ID that identifies a sub menu +@discussion This value is used in +SDLAddCommand to which SDLSubMenu is the parent of the command being added +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *menuID;
    + + +

    Swift

    +
    var menuID: NSNumber! { get set }
    + + + + +

    + position +

    + +

    @abstract a position of menu +@discussion An NSNumber pointer representing the position within the items + of the top level Command Menu. 0 will insert at the front, 1 + will insert after the first existing element, etc. Position of + any submenu will always be located before the return and exit + options +

    + Notes:
    +

      +
    • + Min Value: 0; Max Value: 1000
    • +
    • If position is greater or equal than the number of items + on top level, the sub menu will be appended by the end
    • +
    • If this parameter is omitted, the entry will be added at + the end of the list
    • +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *position;
    + + +

    Swift

    +
    var position: NSNumber! { get set }
    + + + + +

    + menuName +

    + +

    @abstract a menuName which is displayed representing this submenu item +@discussion NSString which will be displayed representing this submenu item

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *menuName;
    + + +

    Swift

    +
    var menuName: String! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLAddSubMenuResponse.html b/docs/Classes/SDLAddSubMenuResponse.html new file mode 100644 index 000000000..7abdfb9a0 --- /dev/null +++ b/docs/Classes/SDLAddSubMenuResponse.html @@ -0,0 +1,47 @@ +

    SDLAddSubMenuResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLAddSubMenuResponse is sent, when SDLAddSubMenu has been called +Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAddSubMenuResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAddSubMenuResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLAirbagStatus.html b/docs/Classes/SDLAirbagStatus.html new file mode 100644 index 000000000..63ab29bf3 --- /dev/null +++ b/docs/Classes/SDLAirbagStatus.html @@ -0,0 +1,134 @@ +

    SDLAirbagStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + driverAirbagDeployed +

    + +

    Undocumented

    + + + + + + +

    + driverSideAirbagDeployed +

    + +

    Undocumented

    + + + + + + +

    + driverCurtainAirbagDeployed +

    + +

    Undocumented

    + + + + + + +

    + passengerAirbagDeployed +

    + +

    Undocumented

    + + + + + + +

    + passengerCurtainAirbagDeployed +

    + +

    Undocumented

    + + + + + + +

    + driverKneeAirbagDeployed +

    + +

    Undocumented

    + + + + + + +

    + passengerSideAirbagDeployed +

    + +

    Undocumented

    + + + + + + +

    + passengerKneeAirbagDeployed +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLAlert.html b/docs/Classes/SDLAlert.html new file mode 100644 index 000000000..11f115004 --- /dev/null +++ b/docs/Classes/SDLAlert.html @@ -0,0 +1,296 @@ +

    SDLAlert Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Shows an alert which typically consists of text-to-speech message and text on the display. At least either alertText1, alertText2 or TTSChunks need to be provided.

    + +

      +
    • The displayed portion of the SDLAlert, if any, will persist until the + specified timeout has elapsed, or the SDLAlert is preempted
    • +
    • An SDLAlert will preempt (abort) any SmartDeviceLink Operation that is in-progress, + except an already-in-progress SDLAlert
    • +
    • An SDLAlert cannot be preempted by any SmartDeviceLink Operation
    • +
    • An SDLAlert can be preempted by a user action (button push)
    • +
    • An SDLAlert will fail if it is issued while another SDLAlert is in progress
    • +
    • Although each Alert parameter is optional, in fact each SDLAlert request + must supply at least one of the following parameters:
      +
        +
      • alertText1
      • +
      • alertText2
      • +
      • alertText3
      • +
      • ttsChunks
      • +
      +
    • +
    +
    + HMILevel needs to be FULL or LIMITED.
    + If the app has been granted function group Notification the SDLHMILevel can + also be BACKGROUND

    + +

    @since SDL 1.0

    + + +
    +

    + -init +

    + +

    Constructs a new SDLAlert object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLAlert object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + alertText1 +

    + +

    @abstract The String to be displayed in the first field of the display during the Alert

    + +

    @discussion Length is limited to what is indicated in SDLRegisterAppInterface response

    + +

    If omitted, top display line will be cleared

    + +

    Text is always centered

    + +

    Optional, Max length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *alertText1;
    + + +

    Swift

    +
    var alertText1: String! { get set }
    + + + + +

    + alertText2 +

    + +

    @abstract The String to be displayed in the second field of the display during the Alert

    + +

    @discussion Only permitted if HMI supports a second display line

    + +

    Length is limited to what is indicated in SDLRegisterAppInterface response

    + +

    If omitted, second display line will be cleared

    + +

    Text is always centered

    + +

    Optional, Max length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *alertText2;
    + + +

    Swift

    +
    var alertText2: String! { get set }
    + + + + +

    + alertText3 +

    + +

    @abstract the String to be displayed in the third field of the display during the Alert + @discussion Only permitted if HMI supports a third display line

    + +

    Length is limited to what is indicated in SDLRegisterAppInterface response

    + +

    If omitted, third display line will be cleared

    + +

    Text is always centered

    + +

    Optional, Max length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *alertText3;
    + + +

    Swift

    +
    var alertText3: String! { get set }
    + + + + +

    + ttsChunks +

    + +

    @abstract An array which, taken together, specify what is to be spoken to the user

    + +

    Optional, Array of SDLTTSChunk, Array length 1 - 100

    + +
    +

    See

    + SDLTTSChunk + +
    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *ttsChunks;
    + + +

    Swift

    +
    var ttsChunks: NSMutableArray! { get set }
    + + + + +

    + duration +

    + +

    @abstract The duration of the displayed portion of the alert, in milliseconds.

    + +

    @discussion After this amount of time has passed, the display fields alertText1 and alertText2 will revert to what was displayed in those fields before the alert began.

    + +

    Typical timeouts are 3 - 5 seconds

    + +

    If omitted, the timeout is set to 5 seconds

    + +

    Optional, Integer, 3000 - 10000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *duration;
    + + +

    Swift

    +
    var duration: NSNumber! { get set }
    + + + + +

    + playTone +

    + +

    @abstract Whether the alert tone should be played before the TTS (if any) is spoken.

    + +

    @discussion If ommitted, no tone is played

    + +

    Optional, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *playTone;
    + + +

    Swift

    +
    var playTone: NSNumber! { get set }
    + + + + +

    + progressIndicator +

    + +

    @abstract If supported on the given platform, the alert GUI will include some sort of animation indicating that loading of a feature is progressing. e.g. a spinning wheel or hourglass, etc.

    + +

    Optional, Boolean

    + +

    @since SmartDeviceLink 2.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *progressIndicator;
    + + +

    Swift

    +
    var progressIndicator: NSNumber! { get set }
    + + + + +

    + softButtons +

    + +

    @abstract App defined SoftButtons.

    + +

    @discussion If omitted on supported displays, the displayed alert shall not have any SoftButtons

    + +

    Optional, Array of SDLSoftButton, Array size 0 - 4

    + +
    +

    See

    + SDLSoftButton + +
    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *softButtons;
    + + +

    Swift

    +
    var softButtons: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLAlertManeuver.html b/docs/Classes/SDLAlertManeuver.html new file mode 100644 index 000000000..47553a693 --- /dev/null +++ b/docs/Classes/SDLAlertManeuver.html @@ -0,0 +1,78 @@ +

    SDLAlertManeuver Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    @since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAlertManeuver : SDLRPCRequest
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAlertManeuver : SDLRPCRequest
    + + + + + +

    + ttsChunks +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAlertManeuver : SDLRPCRequest
    + + + + + +

    + softButtons +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAlertManeuver : SDLRPCRequest
    + + + + + +
    diff --git a/docs/Classes/SDLAlertManeuverResponse.html b/docs/Classes/SDLAlertManeuverResponse.html new file mode 100644 index 000000000..548426337 --- /dev/null +++ b/docs/Classes/SDLAlertManeuverResponse.html @@ -0,0 +1,47 @@ +

    SDLAlertManeuverResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLAlertManeuverResponse is sent, when SDLAlertManeuver has been called. + * @since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAlertManeuverResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAlertManeuverResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLAlertResponse.html b/docs/Classes/SDLAlertResponse.html new file mode 100644 index 000000000..3ce8e2591 --- /dev/null +++ b/docs/Classes/SDLAlertResponse.html @@ -0,0 +1,63 @@ +

    SDLAlertResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Sent after SDLAlert has been sent +@since SDL 1.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAlertResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAlertResponse : SDLRPCResponse
    + + + + + +

    + tryAgainTime +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAlertResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLAmbientLightStatus.html b/docs/Classes/SDLAmbientLightStatus.html new file mode 100644 index 000000000..4743464f9 --- /dev/null +++ b/docs/Classes/SDLAmbientLightStatus.html @@ -0,0 +1,175 @@ +

    SDLAmbientLightStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reflects the status of the ambient light sensor +@since SDL 3.0

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAmbientLightStatus : SDLEnum
    + + + + + +

    + +values +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAmbientLightStatus : SDLEnum
    + + + + + +

    + +NIGHT +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAmbientLightStatus : SDLEnum
    + + + + + +

    + +TWILIGHT_1 +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAmbientLightStatus : SDLEnum
    + + + + + +

    + +TWILIGHT_2 +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAmbientLightStatus : SDLEnum
    + + + + + +

    + +TWILIGHT_3 +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAmbientLightStatus : SDLEnum
    + + + + + +

    + +TWILIGHT_4 +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAmbientLightStatus : SDLEnum
    + + + + + +

    + +DAY +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAmbientLightStatus : SDLEnum
    + + + + + +

    + +UNKNOWN +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAmbientLightStatus : SDLEnum
    + + + + + +

    + +INVALID +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAmbientLightStatus : SDLEnum
    + + + + + +
    diff --git a/docs/Classes/SDLAppHMIType.html b/docs/Classes/SDLAppHMIType.html new file mode 100644 index 000000000..36206fd86 --- /dev/null +++ b/docs/Classes/SDLAppHMIType.html @@ -0,0 +1,302 @@ +

    SDLAppHMIType Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Enumeration listing possible app hmi types.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to AppHMIType

    + + + +

    Objective-C

    +
    + (SDLAppHMIType *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLAppHMIType!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLAppHMIType

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLAppHMIType

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLAppHMIType

    + +
    + +

    + +DEFAULT +

    + +

    @abstract The App will have default rights.

    + + + +

    Objective-C

    +
    + (SDLAppHMIType *)DEFAULT;
    + + +

    Swift

    +
    class func DEFAULT() -> SDLAppHMIType!
    + + + +
    +

    Return Value

    +

    SDLAppHMIType with value DEFAULT

    + +
    + +

    + +COMMUNICATION +

    + +

    @abstract Communication type of App

    + + + +

    Objective-C

    +
    + (SDLAppHMIType *)COMMUNICATION;
    + + +

    Swift

    +
    class func COMMUNICATION() -> SDLAppHMIType!
    + + + +
    +

    Return Value

    +

    SDLAppHMIType with value COMMUNICATION

    + +
    + +

    + +MEDIA +

    + +

    @abstract App dealing with Media

    + + + +

    Objective-C

    +
    + (SDLAppHMIType *)MEDIA;
    + + +

    Swift

    +
    class func MEDIA() -> SDLAppHMIType!
    + + + +
    +

    Return Value

    +

    SDLAppHMIType with value MEDIA

    + +
    + +

    + +MESSAGING +

    + +

    @abstract Messaging App

    + + + +

    Objective-C

    +
    + (SDLAppHMIType *)MESSAGING;
    + + +

    Swift

    +
    class func MESSAGING() -> SDLAppHMIType!
    + + + +
    +

    Return Value

    +

    SDLAppHMIType with value MESSAGING

    + +
    + +

    + +NAVIGATION +

    + +

    @abstract Navigation App

    + + + +

    Objective-C

    +
    + (SDLAppHMIType *)NAVIGATION;
    + + +

    Swift

    +
    class func NAVIGATION() -> SDLAppHMIType!
    + + + +
    +

    Return Value

    +

    SDLAppHMIType with value NAVIGATION

    + +
    + +

    + +INFORMATION +

    + +

    @abstract Information App

    + + + +

    Objective-C

    +
    + (SDLAppHMIType *)INFORMATION;
    + + +

    Swift

    +
    class func INFORMATION() -> SDLAppHMIType!
    + + + +
    +

    Return Value

    +

    SDLAppHMIType with value INFORMATION

    + +
    + +

    + +SOCIAL +

    + +

    @abstract App dealing with social media

    + + + +

    Objective-C

    +
    + (SDLAppHMIType *)SOCIAL;
    + + +

    Swift

    +
    class func SOCIAL() -> SDLAppHMIType!
    + + + +
    +

    Return Value

    +

    SDLAppHMIType with value SOCIAL

    + +
    + +

    + +BACKGROUND_PROCESS +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLAppHMIType : SDLEnum
    + + + + + +

    + +TESTING +

    + +

    @abstract App only for Testing purposes

    + + + +

    Objective-C

    +
    + (SDLAppHMIType *)TESTING;
    + + +

    Swift

    +
    class func TESTING() -> SDLAppHMIType!
    + + + +
    +

    Return Value

    +

    SDLAppHMIType with value TESTING

    + +
    + +

    + +SYSTEM +

    + +

    @abstract System App

    + + + +

    Objective-C

    +
    + (SDLAppHMIType *)SYSTEM;
    + + +

    Swift

    +
    class func SYSTEM() -> SDLAppHMIType!
    + + + +
    +

    Return Value

    +

    SDLAppHMIType with value SYSTEM

    + +
    + +
    diff --git a/docs/Classes/SDLAppInterfaceUnregisteredReason.html b/docs/Classes/SDLAppInterfaceUnregisteredReason.html new file mode 100644 index 000000000..1dd12ea30 --- /dev/null +++ b/docs/Classes/SDLAppInterfaceUnregisteredReason.html @@ -0,0 +1,312 @@ +

    SDLAppInterfaceUnregisteredReason Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Indicates reason why app interface was unregistered. The application is being disconnected by SDL.

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLAppInterfaceUnregisteredReason

    + + + +

    Objective-C

    +
    + (SDLAppInterfaceUnregisteredReason *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLAppInterfaceUnregisteredReason!
    + + + +

    Parameters

    +
    +
    value
    +

    String value to retrieve the object for

    +
    +
    +
    +

    Return Value

    +

    SDLAppInterfaceUnregisteredReason

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLAppInterfaceUnregisteredReason

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that stores all possible SDLAppInterfaceUnregisteredReason

    + +
    + +

    + +IGNITION_OFF +

    + +

    @abstract Vehicle ignition turned off.

    + + + +

    Objective-C

    +
    + (SDLAppInterfaceUnregisteredReason *)IGNITION_OFF;
    + + +

    Swift

    +
    class func IGNITION_OFF() -> SDLAppInterfaceUnregisteredReason!
    + + + +
    +

    Return Value

    +

    SDLAppInterfaceUnregisteredReason with value IGNITION_OFF

    + +
    + +

    + +BLUETOOTH_OFF +

    + +

    @abstract Bluetooth was turned off, causing termination of a necessary Bluetooth connection.

    + + + +

    Objective-C

    +
    + (SDLAppInterfaceUnregisteredReason *)BLUETOOTH_OFF;
    + + +

    Swift

    +
    class func BLUETOOTH_OFF() -> SDLAppInterfaceUnregisteredReason!
    + + + +
    +

    Return Value

    +

    SDLAppInterfaceUnregisteredReason with value BLUETOOTH_OFF

    + +
    + +

    + +USB_DISCONNECTED +

    + +

    @abstract USB was disconnected, causing termination of a necessary iAP connection.

    + + + +

    Objective-C

    +
    + (SDLAppInterfaceUnregisteredReason *)USB_DISCONNECTED;
    + + +

    Swift

    +
    class func USB_DISCONNECTED() -> SDLAppInterfaceUnregisteredReason!
    + + + +
    +

    Return Value

    +

    SDLAppInterfaceUnregisteredReason with value USB_DISCONNECTED

    + +
    + +

    + +REQUEST_WHILE_IN_NONE_HMI_LEVEL +

    + +

    @abstract Application attempted SmartDeviceLink RPC request while HMILevel = NONE. App must have HMILevel other than NONE to issue RPC requests or get notifications or RPC responses.

    + + + +

    Objective-C

    +
    + (SDLAppInterfaceUnregisteredReason *)REQUEST_WHILE_IN_NONE_HMI_LEVEL;
    + + +

    Swift

    +
    class func REQUEST_WHILE_IN_NONE_HMI_LEVEL() -> SDLAppInterfaceUnregisteredReason!
    + + + +
    +

    Return Value

    +

    SDLAppInterfaceUnregisteredReason with value REQUEST_WHILE_IN_NONE_HMI_LEVEL

    + +
    + +

    + +TOO_MANY_REQUESTS +

    + +

    @abstract Either too many – or too many per unit of time – requests were made by the application.

    + + + +

    Objective-C

    +
    + (SDLAppInterfaceUnregisteredReason *)TOO_MANY_REQUESTS;
    + + +

    Swift

    +
    class func TOO_MANY_REQUESTS() -> SDLAppInterfaceUnregisteredReason!
    + + + +
    +

    Return Value

    +

    SDLAppInterfaceUnregisteredReason with value TOO_MANY_REQUESTS

    + +
    + +

    + +DRIVER_DISTRACTION_VIOLATION +

    + +

    @abstract The application has issued requests which cause driver distraction rules to be violated.

    + + + +

    Objective-C

    +
    + (SDLAppInterfaceUnregisteredReason *)DRIVER_DISTRACTION_VIOLATION;
    + + +

    Swift

    +
    class func DRIVER_DISTRACTION_VIOLATION() -> SDLAppInterfaceUnregisteredReason!
    + + + +
    +

    Return Value

    +

    SDLAppInterfaceUnregisteredReason with value DRIVER_DISTRACTION_VIOLATION

    + +
    + +

    + +LANGUAGE_CHANGE +

    + +

    @abstract The user performed a language change on the SDL platform, causing the application to need to be reregistered for the new language.

    + + + +

    Objective-C

    +
    + (SDLAppInterfaceUnregisteredReason *)LANGUAGE_CHANGE;
    + + +

    Swift

    +
    class func LANGUAGE_CHANGE() -> SDLAppInterfaceUnregisteredReason!
    + + + +
    +

    Return Value

    +

    SDLAppInterfaceUnregisteredReason with value LANGUAGE_CHANGE

    + +
    + +

    + +MASTER_RESET +

    + +

    @abstract The user performed a MASTER RESET on the SDL platform, causing removal of a necessary Bluetooth pairing.

    + + + +

    Objective-C

    +
    + (SDLAppInterfaceUnregisteredReason *)MASTER_RESET;
    + + +

    Swift

    +
    class func MASTER_RESET() -> SDLAppInterfaceUnregisteredReason!
    + + + +
    +

    Return Value

    +

    SDLAppInterfaceUnregisteredReason with value MASTER_RESET

    + +
    + +

    + +FACTORY_DEFAULTS +

    + +

    @abstract The user restored settings to FACTORY DEFAULTS on the SDL platform.

    + + + +

    Objective-C

    +
    + (SDLAppInterfaceUnregisteredReason *)FACTORY_DEFAULTS;
    + + +

    Swift

    +
    class func FACTORY_DEFAULTS() -> SDLAppInterfaceUnregisteredReason!
    + + + +
    +

    Return Value

    +

    SDLAppInterfaceUnregisteredReason with value FACTORY_DEFAULTS

    + +
    + +

    + +APP_UNAUTHORIZED +

    + +

    @abstract The app is not being authorized to be connected to SDL.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLAppInterfaceUnregisteredReason *)APP_UNAUTHORIZED;
    + + +

    Swift

    +
    class func APP_UNAUTHORIZED() -> SDLAppInterfaceUnregisteredReason!
    + + + +
    +

    Return Value

    +

    SDLAppInterfaceUnregisteredReason with value APP_UNAUTHORIZED

    + +
    + +
    diff --git a/docs/Classes/SDLAudioPassThruCapabilities.html b/docs/Classes/SDLAudioPassThruCapabilities.html new file mode 100644 index 000000000..f01faecef --- /dev/null +++ b/docs/Classes/SDLAudioPassThruCapabilities.html @@ -0,0 +1,147 @@ +

    SDLAudioPassThruCapabilities Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Describes different audio type configurations for SDLPerformAudioPassThru, e.g. {8kHz,8-bit,PCM} +

    Parameter List + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescriptionSmartDeviceLink Ver. Available
    samplingRateSDLSamplingRate * Describes the sampling rate for AudioPassThru + SmartDeviceLink 2.0
    bitsPerSampleSDLBitsPerSample * Describes the sample depth in bit for AudioPassThru + SmartDeviceLink 2.0
    audioTypeSDLAudioType * Describes the audiotype for AudioPassThru + SmartDeviceLink 2.0
    +Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLAudioPassThruCapabilities object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLAudioPassThruCapabilities object indicated by the Hashtable parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + samplingRate +

    + +

    @abstract The sampling rate for AudioPassThru

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLSamplingRate *samplingRate;
    + + +

    Swift

    +
    var samplingRate: SDLSamplingRate! { get set }
    + + + + +

    + bitsPerSample +

    + +

    @abstract The sample depth in bit for AudioPassThru

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLBitsPerSample *bitsPerSample;
    + + +

    Swift

    +
    var bitsPerSample: SDLBitsPerSample! { get set }
    + + + + +

    + audioType +

    + +

    @abstract The audiotype for AudioPassThru

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLAudioType *audioType;
    + + +

    Swift

    +
    var audioType: SDLAudioType! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLAudioStreamingState.html b/docs/Classes/SDLAudioStreamingState.html new file mode 100644 index 000000000..e1fbda2aa --- /dev/null +++ b/docs/Classes/SDLAudioStreamingState.html @@ -0,0 +1,144 @@ +

    SDLAudioStreamingState Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Describes whether or not streaming audio is currently audible to the user. Though provided in every OnHMIStatus notification, this information is only relevant for applications that declare themselves as media apps in RegisterAppInterface

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLAudioStreamingState

    + + + +

    Objective-C

    +
    + (SDLAudioStreamingState *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLAudioStreamingState!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLAudioStreamingState

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLAudioStreamingState

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLAudioStreamingState

    + +
    + +

    + +AUDIBLE +

    + +

    @abstract Currently streaming audio, if any, is audible to user.

    + + + +

    Objective-C

    +
    + (SDLAudioStreamingState *)AUDIBLE;
    + + +

    Swift

    +
    class func AUDIBLE() -> SDLAudioStreamingState!
    + + + +
    +

    Return Value

    +

    SDLAudioStreamingState with value of AUDIBLE

    + +
    + +

    + +ATTENUATED +

    + +

    @abstract Some kind of audio mixing is taking place. Currently streaming audio, if any, is audible to the user at a lowered volume.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLAudioStreamingState *)ATTENUATED;
    + + +

    Swift

    +
    class func ATTENUATED() -> SDLAudioStreamingState!
    + + + +
    +

    Return Value

    +

    SDLAudioStreamingState with value of ATTENUATED

    + +
    + +

    + +NOT_AUDIBLE +

    + +

    @abstract Currently streaming audio, if any, is not audible to user. made via VR session.

    + + + +

    Objective-C

    +
    + (SDLAudioStreamingState *)NOT_AUDIBLE;
    + + +

    Swift

    +
    class func NOT_AUDIBLE() -> SDLAudioStreamingState!
    + + + +
    +

    Return Value

    +

    SDLAudioStreamingState with value of NOT_AUDIBLE

    + +
    + +
    diff --git a/docs/Classes/SDLAudioType.html b/docs/Classes/SDLAudioType.html new file mode 100644 index 000000000..072c0f414 --- /dev/null +++ b/docs/Classes/SDLAudioType.html @@ -0,0 +1,94 @@ +

    SDLAudioType Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Describes different audio type options for PerformAudioPassThru

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLAudioType

    + + + +

    Objective-C

    +
    + (SDLAudioType *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLAudioType!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLAudioType

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLAudioType

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLAudioType

    + +
    + +

    + +PCM +

    + +

    @abstract PCM raw audio

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLAudioType *)PCM;
    + + +

    Swift

    +
    class func PCM() -> SDLAudioType!
    + + + +
    +

    Return Value

    +

    SDLAudioType with value of PCM

    + +
    + +
    diff --git a/docs/Classes/SDLBeltStatus.html b/docs/Classes/SDLBeltStatus.html new file mode 100644 index 000000000..0390249f4 --- /dev/null +++ b/docs/Classes/SDLBeltStatus.html @@ -0,0 +1,218 @@ +

    SDLBeltStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + driverBeltDeployed +

    + +

    Undocumented

    + + + + + + +

    + passengerBeltDeployed +

    + +

    Undocumented

    + + + + + + +

    + passengerBuckleBelted +

    + +

    Undocumented

    + + + + + + +

    + driverBuckleBelted +

    + +

    Undocumented

    + + + + + + +

    + leftRow2BuckleBelted +

    + +

    Undocumented

    + + + + + + +

    + passengerChildDetected +

    + +

    Undocumented

    + + + + + + +

    + rightRow2BuckleBelted +

    + +

    Undocumented

    + + + + + + +

    + middleRow2BuckleBelted +

    + +

    Undocumented

    + + + + + + +

    + middleRow3BuckleBelted +

    + +

    Undocumented

    + + + + + + +

    + leftRow3BuckleBelted +

    + +

    Undocumented

    + + + + + + +

    + rightRow3BuckleBelted +

    + +

    Undocumented

    + + + + + + +

    + leftRearInflatableBelted +

    + +

    Undocumented

    + + + + + + +

    + rightRearInflatableBelted +

    + +

    Undocumented

    + + + + + + +

    + middleRow1BeltDeployed +

    + +

    Undocumented

    + + + + + + +

    + middleRow1BuckleBelted +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLBitsPerSample.html b/docs/Classes/SDLBitsPerSample.html new file mode 100644 index 000000000..52da3ad34 --- /dev/null +++ b/docs/Classes/SDLBitsPerSample.html @@ -0,0 +1,118 @@ +

    SDLBitsPerSample Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Describes different bit depth options for PerformAudioPassThru

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLBitsPerSample

    + + + +

    Objective-C

    +
    + (SDLBitsPerSample *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLBitsPerSample!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLBitsPerSample

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLBitsPerSample

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLBitsPerSample

    + +
    + +

    + +_8_BIT +

    + +

    @abstract 8 bits per sample

    + + + +

    Objective-C

    +
    + (SDLBitsPerSample *)_8_BIT;
    + + +

    Swift

    +
    class func _8_BIT() -> SDLBitsPerSample!
    + + + +
    +

    Return Value

    +

    a SDLBitsPerSample with value of 8_BIT

    + +
    + +

    + +_16_BIT +

    + +

    @abstract 16 bits per sample

    + + + +

    Objective-C

    +
    + (SDLBitsPerSample *)_16_BIT;
    + + +

    Swift

    +
    class func _16_BIT() -> SDLBitsPerSample!
    + + + +
    +

    Return Value

    +

    a SDLBitsPerSample with value of 16_BIT

    + +
    + +
    diff --git a/docs/Classes/SDLBodyInformation.html b/docs/Classes/SDLBodyInformation.html new file mode 100644 index 000000000..a006f3a87 --- /dev/null +++ b/docs/Classes/SDLBodyInformation.html @@ -0,0 +1,194 @@ +

    SDLBodyInformation Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The body information including power modes.

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLBodyInformation object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLBodyInformation object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + parkBrakeActive +

    + +

    @abstract References signal PrkBrkActv_B_Actl.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *parkBrakeActive;
    + + +

    Swift

    +
    var parkBrakeActive: NSNumber! { get set }
    + + + + +

    + ignitionStableStatus +

    + +

    @abstract References signal Ignition_Switch_Stable. See IgnitionStableStatus.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic)
    +    SDLIgnitionStableStatus *ignitionStableStatus;
    + + +

    Swift

    +
    var ignitionStableStatus: SDLIgnitionStableStatus! { get set }
    + + + + +

    + ignitionStatus +

    + +

    @abstract References signal Ignition_status. See IgnitionStatus.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLIgnitionStatus *ignitionStatus;
    + + +

    Swift

    +
    var ignitionStatus: SDLIgnitionStatus! { get set }
    + + + + +

    + driverDoorAjar +

    + +

    @abstract References signal DrStatDrv_B_Actl.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *driverDoorAjar;
    + + +

    Swift

    +
    var driverDoorAjar: NSNumber! { get set }
    + + + + +

    + passengerDoorAjar +

    + +

    @abstract References signal DrStatPsngr_B_Actl.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *passengerDoorAjar;
    + + +

    Swift

    +
    var passengerDoorAjar: NSNumber! { get set }
    + + + + +

    + rearLeftDoorAjar +

    + +

    @abstract References signal DrStatRl_B_Actl.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *rearLeftDoorAjar;
    + + +

    Swift

    +
    var rearLeftDoorAjar: NSNumber! { get set }
    + + + + +

    + rearRightDoorAjar +

    + +

    @abstract References signal DrStatRr_B_Actl.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *rearRightDoorAjar;
    + + +

    Swift

    +
    var rearRightDoorAjar: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLButtonCapabilities.html b/docs/Classes/SDLButtonCapabilities.html new file mode 100644 index 000000000..3465ee30b --- /dev/null +++ b/docs/Classes/SDLButtonCapabilities.html @@ -0,0 +1,143 @@ +

    SDLButtonCapabilities Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Provides information about the capabilities of a SDL HMI button.

    + +

    @since SDL 1.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLButtonCapabilities object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLButtonCapabilities object indicated by the Hashtable parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + name +

    + +

    @abstract The name of the SDL HMI button.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLButtonName *name;
    + + +

    Swift

    +
    var name: SDLButtonName! { get set }
    + + + + +

    + shortPressAvailable +

    + +

    @abstract A NSNumber value indicates whether the button supports a SHORT press

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *shortPressAvailable;
    + + +

    Swift

    +
    var shortPressAvailable: NSNumber! { get set }
    + + + + +

    + longPressAvailable +

    + +

    @abstract A NSNumber value indicates whether the button supports a LONG press

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *longPressAvailable;
    + + +

    Swift

    +
    var longPressAvailable: NSNumber! { get set }
    + + + + +

    + upDownAvailable +

    + +

    @abstract A NSNumber value indicates whether the button supports button down and button up

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *upDownAvailable;
    + + +

    Swift

    +
    var upDownAvailable: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLButtonEventMode.html b/docs/Classes/SDLButtonEventMode.html new file mode 100644 index 000000000..24d25fbbd --- /dev/null +++ b/docs/Classes/SDLButtonEventMode.html @@ -0,0 +1,123 @@ +

    SDLButtonEventMode Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Indicates whether the button was depressed or released. A BUTTONUP event will always be preceded by a BUTTONDOWN event.

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLButtonEventMode +- parameter: value The value of the string to get an object for +- returns: SDLButtonEventMode (BUTTONUP / BUTTONDOWN)

    + + + +

    Objective-C

    +
    + (SDLButtonEventMode *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLButtonEventMode!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLButtonEventMode (BUTTONUP / BUTTONDOWN)

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLButtonEventMode +- returns: an array that store all possible SDLButtonEventMode

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLButtonEventMode

    + +
    + +

    + +BUTTONUP +

    + +

    @abstract The button was released +- returns: a SDLButtonEventMode with value of BUTTONUP

    + + + +

    Objective-C

    +
    + (SDLButtonEventMode *)BUTTONUP;
    + + +

    Swift

    +
    class func BUTTONUP() -> SDLButtonEventMode!
    + + + +
    +

    Return Value

    +

    a SDLButtonEventMode with value of BUTTONUP

    + +
    + +

    + +BUTTONDOWN +

    + +

    @abstract The button was depressed +- returns: a SDLButtonEventMode with value of BUTTONDOWN

    + + + +

    Objective-C

    +
    + (SDLButtonEventMode *)BUTTONDOWN;
    + + +

    Swift

    +
    class func BUTTONDOWN() -> SDLButtonEventMode!
    + + + +
    +

    Return Value

    +

    a SDLButtonEventMode with value of BUTTONDOWN

    + +
    + +
    diff --git a/docs/Classes/SDLButtonName.html b/docs/Classes/SDLButtonName.html new file mode 100644 index 000000000..b65b9a942 --- /dev/null +++ b/docs/Classes/SDLButtonName.html @@ -0,0 +1,474 @@ +

    SDLButtonName Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Defines logical buttons which, on a given SDL unit, would correspond to + either physical or soft (touchscreen) buttons. These logical buttons present + a standard functional abstraction which the developer can rely upon, + independent of the SDL unit. For example, the developer can rely upon the OK + button having the same meaning to the user across SDL platforms.

    + +

    The preset buttons (0-9) can typically be interpreted by the application as + corresponding to some user-configured choices, though the application is free + to interpret these button presses as it sees fit.

    + +

    The application can discover which buttons a given SDL unit implements by + interrogating the ButtonCapabilities parameter of the + RegisterAppInterface response.

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLButtonName

    + + + +

    Objective-C

    +
    + (SDLButtonName *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLButtonName!
    + + + +

    Parameters

    +
    +
    value
    +

    String value to retrieve the object for

    +
    +
    +
    +

    Return Value

    +

    SDLButtonName

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLButtonName

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLButtonName

    + +
    + +

    + +OK +

    + +

    @abstract Represents the button usually labeled OK. A typical use of this button is for the user to press it to make a selection.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)OK;
    + + +

    Swift

    +
    class func OK() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of OK

    + +
    + +

    + +SEEKLEFT +

    + +

    @abstract Represents the seek-left button. A typical use of this button is for the user to scroll to the left through menu choices one menu item per press.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)SEEKLEFT;
    + + +

    Swift

    +
    class func SEEKLEFT() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of SEEKLEFT

    + +
    + +

    + +SEEKRIGHT +

    + +

    @abstract Represents the seek-right button. A typical use of this button is for the user to scroll to the right through menu choices one menu item per press.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)SEEKRIGHT;
    + + +

    Swift

    +
    class func SEEKRIGHT() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of SEEKRIGHT

    + +
    + +

    + +TUNEUP +

    + +

    @abstract Represents a turn of the tuner knob in the clockwise direction one tick.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)TUNEUP;
    + + +

    Swift

    +
    class func TUNEUP() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of TUNEUP

    + +
    + +

    + +TUNEDOWN +

    + +

    @abstract Represents a turn of the tuner knob in the counter-clockwise direction one tick.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)TUNEDOWN;
    + + +

    Swift

    +
    class func TUNEDOWN() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of TUNEDOWN

    + +
    + +

    + +PRESET_0 +

    + +

    @abstract Represents the preset 0 button.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)PRESET_0;
    + + +

    Swift

    +
    class func PRESET_0() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of PRESET_0

    + +
    + +

    + +PRESET_1 +

    + +

    @abstract Represents the preset 1 button.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)PRESET_1;
    + + +

    Swift

    +
    class func PRESET_1() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of PRESET_1

    + +
    + +

    + +PRESET_2 +

    + +

    @abstract Represents the preset 2 button.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)PRESET_2;
    + + +

    Swift

    +
    class func PRESET_2() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of PRESET_2

    + +
    + +

    + +PRESET_3 +

    + +

    @abstract Represents the preset 3 button.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)PRESET_3;
    + + +

    Swift

    +
    class func PRESET_3() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of PRESET_3

    + +
    + +

    + +PRESET_4 +

    + +

    @abstract Represents the preset 4 button.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)PRESET_4;
    + + +

    Swift

    +
    class func PRESET_4() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of PRESET_4

    + +
    + +

    + +PRESET_5 +

    + +

    @abstract Represents the preset 5 button.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)PRESET_5;
    + + +

    Swift

    +
    class func PRESET_5() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of PRESET_5

    + +
    + +

    + +PRESET_6 +

    + +

    @abstract Represents the preset 6 button.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)PRESET_6;
    + + +

    Swift

    +
    class func PRESET_6() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of PRESET_6

    + +
    + +

    + +PRESET_7 +

    + +

    @abstract Represents the preset 7 button.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)PRESET_7;
    + + +

    Swift

    +
    class func PRESET_7() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of PRESET_7

    + +
    + +

    + +PRESET_8 +

    + +

    @abstract Represents the preset 8 button.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)PRESET_8;
    + + +

    Swift

    +
    class func PRESET_8() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of PRESET_8

    + +
    + +

    + +PRESET_9 +

    + +

    @abstract Represents the preset 9 button.

    + + + +

    Objective-C

    +
    + (SDLButtonName *)PRESET_9;
    + + +

    Swift

    +
    class func PRESET_9() -> SDLButtonName!
    + + + +
    +

    Return Value

    +

    a SDLButtonName with the value of PRESET_9

    + +
    + +

    + +CUSTOM_BUTTON +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLButtonName : SDLEnum
    + + + + + +

    + +SEARCH +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLButtonName : SDLEnum
    + + + + + +
    diff --git a/docs/Classes/SDLButtonPressMode.html b/docs/Classes/SDLButtonPressMode.html new file mode 100644 index 000000000..7de7fde7d --- /dev/null +++ b/docs/Classes/SDLButtonPressMode.html @@ -0,0 +1,118 @@ +

    SDLButtonPressMode Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Indicates whether this is a LONG or SHORT button press

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLButtonPressMode

    + + + +

    Objective-C

    +
    + (SDLButtonPressMode *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLButtonPressMode!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLButtonPressMode

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLButtonPressMode

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLButtonPressMode

    + +
    + +

    + +LONG +

    + +

    @abstract A button was released, after it was pressed for a long time. Actual timing is defined by the head unit and may vary.

    + + + +

    Objective-C

    +
    + (SDLButtonPressMode *)LONG;
    + + +

    Swift

    +
    class func LONG() -> SDLButtonPressMode!
    + + + +
    +

    Return Value

    +

    a SDLButtonPressMode with the value of LONG

    + +
    + +

    + +SHORT +

    + +

    @abstract A button was released, after it was pressed for a short time. Actual timing is defined by the head unit and may vary.

    + + + +

    Objective-C

    +
    + (SDLButtonPressMode *)SHORT;
    + + +

    Swift

    +
    class func SHORT() -> SDLButtonPressMode!
    + + + +
    +

    Return Value

    +

    a SDLButtonPressMode with the value of SHORT

    + +
    + +
    diff --git a/docs/Classes/SDLCarModeStatus.html b/docs/Classes/SDLCarModeStatus.html new file mode 100644 index 000000000..93f92df51 --- /dev/null +++ b/docs/Classes/SDLCarModeStatus.html @@ -0,0 +1,123 @@ +

    SDLCarModeStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Describes the carmode the vehicle is in. + * Since SmartDeviceLink 2.0

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLCarModeStatus : SDLEnum
    + + + + + +

    + +values +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLCarModeStatus : SDLEnum
    + + + + + +

    + +NORMAL +

    + +

    Provides carmode NORMAL to each module.

    + + + +

    Objective-C

    +
    + (SDLCarModeStatus *)NORMAL;
    + + +

    Swift

    +
    class func NORMAL() -> SDLCarModeStatus!
    + + + + +

    + +FACTORY +

    + +

    Provides carmode FACTORY to each module.

    + + + +

    Objective-C

    +
    + (SDLCarModeStatus *)FACTORY;
    + + +

    Swift

    +
    class func FACTORY() -> SDLCarModeStatus!
    + + + + +

    + +TRANSPORT +

    + +

    Provides carmode TRANSPORT to each module.

    + + + +

    Objective-C

    +
    + (SDLCarModeStatus *)TRANSPORT;
    + + +

    Swift

    +
    class func TRANSPORT() -> SDLCarModeStatus!
    + + + + +

    + +CRASH +

    + +

    Provides carmode CRASH to each module.

    + + + +

    Objective-C

    +
    + (SDLCarModeStatus *)CRASH;
    + + +

    Swift

    +
    class func CRASH() -> SDLCarModeStatus!
    + + + + +
    diff --git a/docs/Classes/SDLChangeRegistration.html b/docs/Classes/SDLChangeRegistration.html new file mode 100644 index 000000000..b27b3d833 --- /dev/null +++ b/docs/Classes/SDLChangeRegistration.html @@ -0,0 +1,184 @@ +

    SDLChangeRegistration Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    If the app recognizes during the app registration that the SDL HMI language (voice/TTS and/or display) does not match the app language, the app will be able (but does not need) to change this registration with changeRegistration prior to app being brought into focus.

    + +

    Any HMILevel allowed

    + +

    @since SDL 2.0

    + + +
    +

    + -init +

    + +

    Constructs a new SDLChangeRegistration object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLChangeRegistration object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + language +

    + +

    @abstract The language the app wants to change to

    + + + +

    Objective-C

    +
    @property (readwrite, strong, nonatomic) SDLLanguage *language;
    + + +

    Swift

    +
    var language: SDLLanguage! { get set }
    + + + + +

    + hmiDisplayLanguage +

    + +

    @abstract HMI display language

    + + + +

    Objective-C

    +
    @property (readwrite, strong, nonatomic) SDLLanguage *hmiDisplayLanguage;
    + + +

    Swift

    +
    var hmiDisplayLanguage: SDLLanguage! { get set }
    + + + + +

    + appName +

    + +

    Request a new app name registration

    + +

    Optional, Max string length 100 chars

    + + + +

    Objective-C

    +
    @property (readwrite, copy, nonatomic) NSString *appName;
    + + +

    Swift

    +
    var appName: String! { get set }
    + + + + +

    + ttsName +

    + +

    Request a new TTSName registration.

    + +

    Optional, Array of SDLTTSChunk, 1 - 100 elements

    + + + +

    Objective-C

    +
    @property (readwrite, copy, nonatomic) NSArray *ttsName;
    + + +

    Swift

    +
    var ttsName: [AnyObject]! { get set }
    + + + + +

    + ngnMediaScreenAppName +

    + +

    Request a new app short name registration

    + +

    Optional, Max string length 100 chars

    + + + +

    Objective-C

    +
    @property (readwrite, copy, nonatomic) NSString *ngnMediaScreenAppName;
    + + +

    Swift

    +
    var ngnMediaScreenAppName: String! { get set }
    + + + + +

    + vrSynonyms +

    + +

    Request a new VR synonyms registration

    + +

    Optional, Array of NSString, 1 - 100 elements, max string length 40 chars

    + + + +

    Objective-C

    +
    @property (readwrite, copy, nonatomic) NSArray *vrSynonyms;
    + + +

    Swift

    +
    var vrSynonyms: [AnyObject]! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLChangeRegistrationResponse.html b/docs/Classes/SDLChangeRegistrationResponse.html new file mode 100644 index 000000000..ea5933063 --- /dev/null +++ b/docs/Classes/SDLChangeRegistrationResponse.html @@ -0,0 +1,48 @@ +

    SDLChangeRegistrationResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLChangeRegistrationResponse is sent, when SDLChangeRegistration has been called

    + +

    @since SDL 2.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLChangeRegistrationResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLChangeRegistrationResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLCharacterSet.html b/docs/Classes/SDLCharacterSet.html new file mode 100644 index 000000000..98a4dae0d --- /dev/null +++ b/docs/Classes/SDLCharacterSet.html @@ -0,0 +1,134 @@ +

    SDLCharacterSet Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Character sets supported by SDL.

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLCharacterSet

    + + + +

    Objective-C

    +
    + (SDLCharacterSet *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLCharacterSet!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLCharacterSet

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLCharacterSet

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLCharacterSet

    + +
    + +

    + +TYPE2SET +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLCharacterSet : SDLEnum
    + + + + + +

    + +TYPE5SET +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLCharacterSet : SDLEnum
    + + + + + +

    + +CID1SET +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLCharacterSet : SDLEnum
    + + + + + +

    + +CID2SET +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLCharacterSet : SDLEnum
    + + + + + +
    diff --git a/docs/Classes/SDLChoice.html b/docs/Classes/SDLChoice.html new file mode 100644 index 000000000..357166e14 --- /dev/null +++ b/docs/Classes/SDLChoice.html @@ -0,0 +1,247 @@ +

    SDLChoice Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    A choice is an option which a user can select either via the menu or via voice recognition (VR) during an application initiated interaction. +

    Parameter List + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescriptionSmartDeviceLink Ver. Available
    choiceIDNSNumber * Application-scoped identifier that uniquely identifies this choice. +
    Min: 0 +
    Max: 65535 +
    SmartDeviceLink 1.0
    menuNameNSString * Text which appears in menu, representing this choice. +
    Min: 1 +
    Max: 100 +
    SmartDeviceLink 1.0
    vrCommandsNSMutableArray *An array of strings to be used as VR synonyms for this choice. If this array is provided, it must have at least one non-empty elementSmartDeviceLink 1.0
    imageSDLImage * Either a static hex icon value or a binary image file name identifier (sent by PutFile).SmartDeviceLink 2.0

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLChoice object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLChoice object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + choiceID +

    + +

    @abstract the application-scoped identifier that uniquely identifies this choice

    + +

    Required, Integer 0 - 65535

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *choiceID;
    + + +

    Swift

    +
    var choiceID: NSNumber! { get set }
    + + + + +

    + menuName +

    + +

    @abstract Text which appears in menu, representing this choice

    + +

    Required, Max string length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *menuName;
    + + +

    Swift

    +
    var menuName: String! { get set }
    + + + + +

    + vrCommands +

    + +

    @abstract VR synonyms for this choice

    + +

    Required, Array of Strings, Array length 1 - 100, Max String length 99 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *vrCommands;
    + + +

    Swift

    +
    var vrCommands: NSMutableArray! { get set }
    + + + + +

    + image +

    + +

    @abstract The image of the choice

    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLImage *image;
    + + +

    Swift

    +
    var image: SDLImage! { get set }
    + + + + +

    + secondaryText +

    + +

    @abstract Optional secondary text to display; e.g. address of POI in a search result entry

    + +

    Optional, Max String length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *secondaryText;
    + + +

    Swift

    +
    var secondaryText: String! { get set }
    + + + + +

    + tertiaryText +

    + +

    @abstract Optional tertiary text to display; e.g. distance to POI for a search result entry

    + +

    Optional, Max String length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *tertiaryText;
    + + +

    Swift

    +
    var tertiaryText: String! { get set }
    + + + + +

    + secondaryImage +

    + +

    @abstract Optional secondary image for choice

    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLImage *secondaryImage;
    + + +

    Swift

    +
    var secondaryImage: SDLImage! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLClusterModeStatus.html b/docs/Classes/SDLClusterModeStatus.html new file mode 100644 index 000000000..05a1a9316 --- /dev/null +++ b/docs/Classes/SDLClusterModeStatus.html @@ -0,0 +1,86 @@ +

    SDLClusterModeStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + powerModeActive +

    + +

    Undocumented

    + + + + + + +

    + powerModeQualificationStatus +

    + +

    Undocumented

    + + + + + + +

    + carModeStatus +

    + +

    Undocumented

    + + + + + + +

    + powerModeStatus +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLCompassDirection.html b/docs/Classes/SDLCompassDirection.html new file mode 100644 index 000000000..d2c3bea3d --- /dev/null +++ b/docs/Classes/SDLCompassDirection.html @@ -0,0 +1,273 @@ +

    SDLCompassDirection Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The list of potential compass directions.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLCompassDirection +- parameter: value The value of the string to get an object for +- returns: SDLCompassDirection

    + + + +

    Objective-C

    +
    + (SDLCompassDirection *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLCompassDirection!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLCompassDirection

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLCompassDirection +- returns: An array that store all possible SDLCompassDirection

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    An array that store all possible SDLCompassDirection

    + +
    + +

    + +NORTH +

    + +

    @abstract Direction North +- returns: A SDLCompassDirection with the value of NORTH

    + + + +

    Objective-C

    +
    + (SDLCompassDirection *)NORTH;
    + + +

    Swift

    +
    class func NORTH() -> SDLCompassDirection!
    + + + +
    +

    Return Value

    +

    A SDLCompassDirection with the value of NORTH

    + +
    + +

    + +NORTHWEST +

    + +

    @abstract Direction Northwest +- returns: A SDLCompassDirection with the value of NORTHWEST

    + + + +

    Objective-C

    +
    + (SDLCompassDirection *)NORTHWEST;
    + + +

    Swift

    +
    class func NORTHWEST() -> SDLCompassDirection!
    + + + +
    +

    Return Value

    +

    A SDLCompassDirection with the value of NORTHWEST

    + +
    + +

    + +WEST +

    + +

    @abstract Direction West +- returns: A SDLCompassDirection with the value of WEST

    + + + +

    Objective-C

    +
    + (SDLCompassDirection *)WEST;
    + + +

    Swift

    +
    class func WEST() -> SDLCompassDirection!
    + + + +
    +

    Return Value

    +

    A SDLCompassDirection with the value of WEST

    + +
    + +

    + +SOUTHWEST +

    + +

    @abstract Direction Southwest +- returns: A SDLCompassDirection with the value of SOUTHWEST

    + + + +

    Objective-C

    +
    + (SDLCompassDirection *)SOUTHWEST;
    + + +

    Swift

    +
    class func SOUTHWEST() -> SDLCompassDirection!
    + + + +
    +

    Return Value

    +

    A SDLCompassDirection with the value of SOUTHWEST

    + +
    + +

    + +SOUTH +

    + +

    @abstract Direction South +- returns: A SDLCompassDirection with the value of SOUTH

    + + + +

    Objective-C

    +
    + (SDLCompassDirection *)SOUTH;
    + + +

    Swift

    +
    class func SOUTH() -> SDLCompassDirection!
    + + + +
    +

    Return Value

    +

    A SDLCompassDirection with the value of SOUTH

    + +
    + +

    + +SOUTHEAST +

    + +

    @abstract Direction Southeast +- returns: A SDLCompassDirection with the value of SOUTHEAST

    + + + +

    Objective-C

    +
    + (SDLCompassDirection *)SOUTHEAST;
    + + +

    Swift

    +
    class func SOUTHEAST() -> SDLCompassDirection!
    + + + +
    +

    Return Value

    +

    A SDLCompassDirection with the value of SOUTHEAST

    + +
    + +

    + +EAST +

    + +

    @abstract Direction East +- returns: A SDLCompassDirection with the value of EAST

    + + + +

    Objective-C

    +
    + (SDLCompassDirection *)EAST;
    + + +

    Swift

    +
    class func EAST() -> SDLCompassDirection!
    + + + +
    +

    Return Value

    +

    A SDLCompassDirection with the value of EAST

    + +
    + +

    + +NORTHEAST +

    + +

    @abstract Direction Northeast +- returns: A SDLCompassDirection with the value of NORTHEAST

    + + + +

    Objective-C

    +
    + (SDLCompassDirection *)NORTHEAST;
    + + +

    Swift

    +
    class func NORTHEAST() -> SDLCompassDirection!
    + + + +
    +

    Return Value

    +

    A SDLCompassDirection with the value of NORTHEAST

    + +
    + +
    diff --git a/docs/Classes/SDLComponentVolumeStatus.html b/docs/Classes/SDLComponentVolumeStatus.html new file mode 100644 index 000000000..5b87f86dc --- /dev/null +++ b/docs/Classes/SDLComponentVolumeStatus.html @@ -0,0 +1,223 @@ +

    SDLComponentVolumeStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The volume status of a vehicle component.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLComponentVolumeStatus +- parameter: value The value of the string to get an object for +- returns: SDLComponentVolumeStatus

    + + + +

    Objective-C

    +
    + (SDLComponentVolumeStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLComponentVolumeStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLComponentVolumeStatus

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLComponentVolumeStatus +- returns: An array that store all possible SDLComponentVolumeStatus

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    An array that store all possible SDLComponentVolumeStatus

    + +
    + +

    + +UNKNOWN +

    + +

    @abstract Unknown SDLComponentVolumeStatus +- returns: a SDLComponentVolumeStatus with the value of UNKNOWN

    + + + +

    Objective-C

    +
    + (SDLComponentVolumeStatus *)UNKNOWN;
    + + +

    Swift

    +
    class func UNKNOWN() -> SDLComponentVolumeStatus!
    + + + +
    +

    Return Value

    +

    a SDLComponentVolumeStatus with the value of UNKNOWN

    + +
    + +

    + +NORMAL +

    + +

    @abstract Normal SDLComponentVolumeStatus +- returns: a SDLComponentVolumeStatus with the value of NORMAL

    + + + +

    Objective-C

    +
    + (SDLComponentVolumeStatus *)NORMAL;
    + + +

    Swift

    +
    class func NORMAL() -> SDLComponentVolumeStatus!
    + + + +
    +

    Return Value

    +

    a SDLComponentVolumeStatus with the value of NORMAL

    + +
    + +

    + +LOW +

    + +

    @abstract Low SDLComponentVolumeStatus +- returns: a SDLComponentVolumeStatus with the value of LOW

    + + + +

    Objective-C

    +
    + (SDLComponentVolumeStatus *)LOW;
    + + +

    Swift

    +
    class func LOW() -> SDLComponentVolumeStatus!
    + + + +
    +

    Return Value

    +

    a SDLComponentVolumeStatus with the value of LOW

    + +
    + +

    + +FAULT +

    + +

    @abstract Fault SDLComponentVolumeStatus +- returns: a SDLComponentVolumeStatus with the value of FAULT

    + + + +

    Objective-C

    +
    + (SDLComponentVolumeStatus *)FAULT;
    + + +

    Swift

    +
    class func FAULT() -> SDLComponentVolumeStatus!
    + + + +
    +

    Return Value

    +

    a SDLComponentVolumeStatus with the value of FAULT

    + +
    + +

    + +ALERT +

    + +

    @abstract Alert SDLComponentVolumeStatus +- returns: a SDLComponentVolumeStatus with the value of ALERT

    + + + +

    Objective-C

    +
    + (SDLComponentVolumeStatus *)ALERT;
    + + +

    Swift

    +
    class func ALERT() -> SDLComponentVolumeStatus!
    + + + +
    +

    Return Value

    +

    a SDLComponentVolumeStatus with the value of ALERT

    + +
    + +

    + +NOT_SUPPORTED +

    + +

    @abstract Not supported SDLComponentVolumeStatus +- returns: a SDLComponentVolumeStatus with the value of NOT_SUPPORTED

    + + + +

    Objective-C

    +
    + (SDLComponentVolumeStatus *)NOT_SUPPORTED;
    + + +

    Swift

    +
    class func NOT_SUPPORTED() -> SDLComponentVolumeStatus!
    + + + +
    +

    Return Value

    +

    a SDLComponentVolumeStatus with the value of NOT_SUPPORTED

    + +
    + +
    diff --git a/docs/Classes/SDLConsoleController.html b/docs/Classes/SDLConsoleController.html new file mode 100644 index 000000000..3d32f72bb --- /dev/null +++ b/docs/Classes/SDLConsoleController.html @@ -0,0 +1,74 @@ +

    SDLConsoleController Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + messageList +

    + +

    Undocumented

    + + + + + + +

    + atBottom +

    + +

    Undocumented

    + + + + + + +

    + dateFormatter +

    + +

    Undocumented

    + + + + + + +

    + messageList +

    + +

    Undocumented

    + + + + + + +

    + -initWithTableView: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLCreateInteractionChoiceSet.html b/docs/Classes/SDLCreateInteractionChoiceSet.html new file mode 100644 index 000000000..04051891b --- /dev/null +++ b/docs/Classes/SDLCreateInteractionChoiceSet.html @@ -0,0 +1,114 @@ +

    SDLCreateInteractionChoiceSet Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Creates a Choice Set which can be used in subsequent SDLPerformInteraction Operations.

    + +

    HMILevel needs to be FULL, LIMITED or BACKGROUND

    + +

    Before a perform interaction is sent you MUST wait for the success from the CreateInteractionChoiceSet RPC.

    + +

    If you do not wait the system may not recognize the first utterance from the user.

    + +

    @since SDL 1.0

    + +
    +

    See

    + SDLDeleteInteractionChoiceSet SDLPerformInteraction + +
    + + +
    +

    + -init +

    + +

    Constructs a new SDLCreateInteractionChoiceSet object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLCreateInteractionChoiceSet object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + interactionChoiceSetID +

    + +

    @abstract A unique ID that identifies the Choice Set

    + +

    Required, Integer, 0 - 2,000,000,000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *interactionChoiceSetID;
    + + +

    Swift

    +
    var interactionChoiceSetID: NSNumber! { get set }
    + + + + +

    + choiceSet +

    + +

    @abstract Array of choices, which the user can select by menu or voice recognition

    + +

    Required, SDLChoice, Array size 1 - 100

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *choiceSet;
    + + +

    Swift

    +
    var choiceSet: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLCreateInteractionChoiceSetResponse.html b/docs/Classes/SDLCreateInteractionChoiceSetResponse.html new file mode 100644 index 000000000..35fd75be4 --- /dev/null +++ b/docs/Classes/SDLCreateInteractionChoiceSetResponse.html @@ -0,0 +1,49 @@ +

    SDLCreateInteractionChoiceSetResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLCreateInteractionChoiceSetResponse is sent, when SDLCreateInteractionChoiceSet + has been called

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLCreateInteractionChoiceSetResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLCreateInteractionChoiceSetResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLDIDResult.html b/docs/Classes/SDLDIDResult.html new file mode 100644 index 000000000..4c3092e86 --- /dev/null +++ b/docs/Classes/SDLDIDResult.html @@ -0,0 +1,74 @@ +

    SDLDIDResult Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + resultCode +

    + +

    Undocumented

    + + + + + + +

    + didLocation +

    + +

    Undocumented

    + + + + + + +

    + data +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLDebugTool.html b/docs/Classes/SDLDebugTool.html new file mode 100644 index 000000000..570a4df11 --- /dev/null +++ b/docs/Classes/SDLDebugTool.html @@ -0,0 +1,170 @@ +

    SDLDebugTool Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +addConsole: +

    + +

    Undocumented

    + + + + + + +

    + +addConsole:toGroup: +

    + +

    Undocumented

    + + + + + + +

    + +removeConsole: +

    + +

    Undocumented

    + + + + + + +

    + +removeConsole:fromGroup: +

    + +

    Undocumented

    + + + + + + +

    + +logInfo: +

    + +

    Undocumented

    + + + + + + +

    + +logInfo:withType: +

    + +

    Undocumented

    + + + + + + +

    + +logInfo:withType:toOutput: +

    + +

    Undocumented

    + + + + + + +

    + +logInfo:andBinaryData:withType:toOutput: +

    + +

    Undocumented

    + + + + + + +

    + +logInfo:withType:toOutput:toGroup: +

    + +

    Undocumented

    + + + + + + +

    + +enableDebugToLogFile +

    + +

    Undocumented

    + + + + + + +

    + +disableDebugToLogFile +

    + +

    Undocumented

    + + + + + + +

    + +writeToLogFile: +

    + +

    Undocumented

    + + + + + + +

    + +stringForDebugType: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLDeleteCommand.html b/docs/Classes/SDLDeleteCommand.html new file mode 100644 index 000000000..4d6b394c0 --- /dev/null +++ b/docs/Classes/SDLDeleteCommand.html @@ -0,0 +1,91 @@ +

    SDLDeleteCommand Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Removes a command from the Command Menu +

    + HMI Status Requirements:
    + HMILevel: FULL, LIMITED or BACKGROUND
    + AudioStreamingState: N/A
    + SystemContext: Should not be attempted when VRSESSION or MENU +

    + +

    Since SmartDeviceLink 1.0
    + see SDLAddCommand SDLAddSubMenu SDLDeleteSubMenu

    + + +
    +

    + -init +

    + +

    Constructs a new SDLDeleteCommand object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLDeleteCommand object indicated by the NSMutableDictionary + parameter +

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + cmdID +

    + +

    @abstract the Command ID that identifies the Command to be deleted from Command Menu +@discussion an NSNumber value representing Command ID +

    + Notes: Min Value: 0; Max Value: 2000000000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *cmdID;
    + + +

    Swift

    +
    var cmdID: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLDeleteCommandResponse.html b/docs/Classes/SDLDeleteCommandResponse.html new file mode 100644 index 000000000..6ea53307c --- /dev/null +++ b/docs/Classes/SDLDeleteCommandResponse.html @@ -0,0 +1,48 @@ +

    SDLDeleteCommandResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLDeleteCommandResponse is sent, when SDLDeleteCommand has been called

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDeleteCommandResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDeleteCommandResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLDeleteFile.html b/docs/Classes/SDLDeleteFile.html new file mode 100644 index 000000000..4f7c37dfa --- /dev/null +++ b/docs/Classes/SDLDeleteFile.html @@ -0,0 +1,84 @@ +

    SDLDeleteFile Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Used to delete a file resident on the SDL module in the app’s local cache. + Not supported on first generation SDL vehicles +

    + +

    Since SmartDeviceLink 2.0
    + see SDLPutFile SDLListFiles

    + + +
    +

    + -init +

    + +

    Constructs a new SDLDeleteFile object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLDeleteFile object indicated by the dictionary parameter +

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + syncFileName +

    + +

    @abstract a file reference name +@discussion a String value representing a file reference name

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *syncFileName;
    + + +

    Swift

    +
    var syncFileName: String! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLDeleteFileResponse.html b/docs/Classes/SDLDeleteFileResponse.html new file mode 100644 index 000000000..eb7fcb6e3 --- /dev/null +++ b/docs/Classes/SDLDeleteFileResponse.html @@ -0,0 +1,64 @@ +

    SDLDeleteFileResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Delete File Response is sent, when DeleteFile has been called

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDeleteFileResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDeleteFileResponse : SDLRPCResponse
    + + + + + +

    + spaceAvailable +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDeleteFileResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLDeleteInteractionChoiceSet.html b/docs/Classes/SDLDeleteInteractionChoiceSet.html new file mode 100644 index 000000000..ef089f5f6 --- /dev/null +++ b/docs/Classes/SDLDeleteInteractionChoiceSet.html @@ -0,0 +1,93 @@ +

    SDLDeleteInteractionChoiceSet Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Deletes an existing Choice Set identified by the parameter + interactionChoiceSetID. If the specified interactionChoiceSetID is currently + in use by an active SDLPerformInteraction this call to + delete the Choice Set will fail returning an IN_USE resultCode +

    + Function Group: Base +

    + HMILevel needs to be FULL, LIMITED or BACKGROUD
    +

    + +

    Since SmartDeviceLink 1.0
    + see SDLCreateInteractionChoiceSet SDLPerformInteraction

    + + +
    +

    + -init +

    + +

    Constructs a new SDLDeleteInteractionChoiceSet object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLDeleteInteractionChoiceSet object indicated by the + NSMutableDictionary parameter +

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + interactionChoiceSetID +

    + +

    @abstract a unique ID that identifies the Choice Set +@discussion a unique ID that identifies the Choice Set +

    +Notes: Min Value: 0; Max Value: 2000000000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *interactionChoiceSetID;
    + + +

    Swift

    +
    var interactionChoiceSetID: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLDeleteInteractionChoiceSetResponse.html b/docs/Classes/SDLDeleteInteractionChoiceSetResponse.html new file mode 100644 index 000000000..14be1d432 --- /dev/null +++ b/docs/Classes/SDLDeleteInteractionChoiceSetResponse.html @@ -0,0 +1,48 @@ +

    SDLDeleteInteractionChoiceSetResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLDeleteInteractionChoiceSetResponse is sent, when SDLDeleteInteractionChoiceSet has been called

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDeleteInteractionChoiceSetResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDeleteInteractionChoiceSetResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLDeleteSubMenu.html b/docs/Classes/SDLDeleteSubMenu.html new file mode 100644 index 000000000..ead86fc3b --- /dev/null +++ b/docs/Classes/SDLDeleteSubMenu.html @@ -0,0 +1,88 @@ +

    SDLDeleteSubMenu Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Deletes a submenu from the Command Menu +

    + Notes: When an app deletes a submenu that has child commands, those + child commands are also deleted +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 1.0
    + see SDLAddCommand SDLAddSubMenu SDLDeleteCommand

    + + +
    +

    + -init +

    + +

    Constructs a new SDLDeleteSubMenu object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLDeleteSubMenu object indicated by the dictionary parameter

    +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + menuID +

    + +

    @abstract the MenuID that identifies the SDLSubMenu to be delete +@discussion Notes: Min Value: 0; Max Value: 2000000000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *menuID;
    + + +

    Swift

    +
    var menuID: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLDeleteSubMenuResponse.html b/docs/Classes/SDLDeleteSubMenuResponse.html new file mode 100644 index 000000000..50ec05376 --- /dev/null +++ b/docs/Classes/SDLDeleteSubMenuResponse.html @@ -0,0 +1,48 @@ +

    SDLDeleteSubMenuResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLDeleteSubMenuResponse is sent, when SDLDeleteSubMenu has been called

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDeleteSubMenuResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDeleteSubMenuResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLDeviceInfo.html b/docs/Classes/SDLDeviceInfo.html new file mode 100644 index 000000000..675dbed35 --- /dev/null +++ b/docs/Classes/SDLDeviceInfo.html @@ -0,0 +1,110 @@ +

    SDLDeviceInfo Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + hardware +

    + +

    Undocumented

    + + + + + + +

    + firmwareRev +

    + +

    Undocumented

    + + + + + + +

    + os +

    + +

    Undocumented

    + + + + + + +

    + osVersion +

    + +

    Undocumented

    + + + + + + +

    + carrier +

    + +

    Undocumented

    + + + + + + +

    + maxNumberRFCOMMPorts +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLDeviceLevelStatus.html b/docs/Classes/SDLDeviceLevelStatus.html new file mode 100644 index 000000000..7dd7393a6 --- /dev/null +++ b/docs/Classes/SDLDeviceLevelStatus.html @@ -0,0 +1,223 @@ +

    SDLDeviceLevelStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reflects the reported battery status of the connected device, if reported.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to DeviceLevelStatus +- parameter: value String +- returns: DeviceLevelStatus

    + + + +

    Objective-C

    +
    + (SDLDeviceLevelStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLDeviceLevelStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    String

    +
    +
    +
    +

    Return Value

    +

    DeviceLevelStatus

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLDeviceLevelStatus +- returns: an array that store all possible SDLDeviceLevelStatus

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLDeviceLevelStatus

    + +
    + +

    + +ZERO_LEVEL_BARS +

    + +

    @abstract Device battery level is zero bars +- returns: a SDLDeviceLevelStatus with value of ZERO_LEVEL_BARS

    + + + +

    Objective-C

    +
    + (SDLDeviceLevelStatus *)ZERO_LEVEL_BARS;
    + + +

    Swift

    +
    class func ZERO_LEVEL_BARS() -> SDLDeviceLevelStatus!
    + + + +
    +

    Return Value

    +

    a SDLDeviceLevelStatus with value of ZERO_LEVEL_BARS

    + +
    + +

    + +ONE_LEVEL_BARS +

    + +

    @abstract Device battery level is one bar +- returns: a SDLDeviceLevelStatus with value of ONE_LEVEL_BARS

    + + + +

    Objective-C

    +
    + (SDLDeviceLevelStatus *)ONE_LEVEL_BARS;
    + + +

    Swift

    +
    class func ONE_LEVEL_BARS() -> SDLDeviceLevelStatus!
    + + + +
    +

    Return Value

    +

    a SDLDeviceLevelStatus with value of ONE_LEVEL_BARS

    + +
    + +

    + +TWO_LEVEL_BARS +

    + +

    @abstract Device battery level is two bars +- returns: a SDLDeviceLevelStatus with value of TWO_LEVEL_BARS

    + + + +

    Objective-C

    +
    + (SDLDeviceLevelStatus *)TWO_LEVEL_BARS;
    + + +

    Swift

    +
    class func TWO_LEVEL_BARS() -> SDLDeviceLevelStatus!
    + + + +
    +

    Return Value

    +

    a SDLDeviceLevelStatus with value of TWO_LEVEL_BARS

    + +
    + +

    + +THREE_LEVEL_BARS +

    + +

    @abstract Device battery level is three bars +- returns: a SDLDeviceLevelStatus with value of THREE_LEVEL_BARS

    + + + +

    Objective-C

    +
    + (SDLDeviceLevelStatus *)THREE_LEVEL_BARS;
    + + +

    Swift

    +
    class func THREE_LEVEL_BARS() -> SDLDeviceLevelStatus!
    + + + +
    +

    Return Value

    +

    a SDLDeviceLevelStatus with value of THREE_LEVEL_BARS

    + +
    + +

    + +FOUR_LEVEL_BARS +

    + +

    @abstract Device battery level is four bars +- returns: a SDLDeviceLevelStatus with value of FOUR_LEVEL_BARS

    + + + +

    Objective-C

    +
    + (SDLDeviceLevelStatus *)FOUR_LEVEL_BARS;
    + + +

    Swift

    +
    class func FOUR_LEVEL_BARS() -> SDLDeviceLevelStatus!
    + + + +
    +

    Return Value

    +

    a SDLDeviceLevelStatus with value of FOUR_LEVEL_BARS

    + +
    + +

    + +NOT_PROVIDED +

    + +

    @abstract Device battery level is unknown +- returns: a SDLDeviceLevelStatus with value of NOT_PROVIDED

    + + + +

    Objective-C

    +
    + (SDLDeviceLevelStatus *)NOT_PROVIDED;
    + + +

    Swift

    +
    class func NOT_PROVIDED() -> SDLDeviceLevelStatus!
    + + + +
    +

    Return Value

    +

    a SDLDeviceLevelStatus with value of NOT_PROVIDED

    + +
    + +
    diff --git a/docs/Classes/SDLDeviceStatus.html b/docs/Classes/SDLDeviceStatus.html new file mode 100644 index 000000000..05eb75332 --- /dev/null +++ b/docs/Classes/SDLDeviceStatus.html @@ -0,0 +1,395 @@ +

    SDLDeviceStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Describes the status related to a connected mobile device or SDL and if or how it is represented in the vehicle.

    + +

    Parameter List + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescriptionSmartDeviceLink Ver. Available
    voiceRecOnNSNumber * Voice recognition is on + SmartDeviceLink 2.0
    btIconOnNSNumber * Bluetooth connection established + SmartDeviceLink 2.0
    callActiveNSNumber * A call is being active + SmartDeviceLink 2.0
    phoneRoamingNSNumber * The phone is in roaming mode + SmartDeviceLink 2.0
    textMsgAvailableNSNumber * A textmessage is available + SmartDeviceLink 2.0
    battLevelStatusSDLDeviceLevelStatus * Battery level status + SmartDeviceLink 2.0
    stereoAudioOutputMutedNSNumber * Status of the stereo audio output channel + SmartDeviceLink 2.0
    monoAudioOutputMutedNSNumber * Status of the mono audio output channel + SmartDeviceLink 2.0
    signalLevelStatusSDLDeviceLevelStatus * Signal level status + SmartDeviceLink 2.0
    primaryAudioSourcePrimaryAudioSource * Reflects the current primary audio source of SDL (if selected). + SmartDeviceLink 2.0
    eCallEventActiveNSNumber * Reflects, if an eCall event is active + SmartDeviceLink 2.0
    + @since SDL 2.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLDeviceStatus object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLDeviceStatus object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use to construct the object

    +
    +
    + +

    + voiceRecOn +

    + +

    @abstract Indicates whether the voice recognition is on or off

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *voiceRecOn;
    + + +

    Swift

    +
    var voiceRecOn: NSNumber! { get set }
    + + + + +

    + btIconOn +

    + +

    @abstract Indicates whether the bluetooth connection established

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *btIconOn;
    + + +

    Swift

    +
    var btIconOn: NSNumber! { get set }
    + + + + +

    + callActive +

    + +

    @abstract Indicates whether a call is being active

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *callActive;
    + + +

    Swift

    +
    var callActive: NSNumber! { get set }
    + + + + +

    + phoneRoaming +

    + +

    @abstract Indicates whether the phone is in roaming mode

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *phoneRoaming;
    + + +

    Swift

    +
    var phoneRoaming: NSNumber! { get set }
    + + + + +

    + textMsgAvailable +

    + +

    @abstract Indicates whether a textmessage is available

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *textMsgAvailable;
    + + +

    Swift

    +
    var textMsgAvailable: NSNumber! { get set }
    + + + + +

    + battLevelStatus +

    + +

    @abstract Battery level status

    + +
    +

    See

    + SDLDeviceLevelStatus + +
    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLDeviceLevelStatus *battLevelStatus;
    + + +

    Swift

    +
    var battLevelStatus: SDLDeviceLevelStatus! { get set }
    + + + + +

    + stereoAudioOutputMuted +

    + +

    @abstract The status of the stereo audio output channel

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *stereoAudioOutputMuted;
    + + +

    Swift

    +
    var stereoAudioOutputMuted: NSNumber! { get set }
    + + + + +

    + monoAudioOutputMuted +

    + +

    @abstract The status of the mono audio output channel

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *monoAudioOutputMuted;
    + + +

    Swift

    +
    var monoAudioOutputMuted: NSNumber! { get set }
    + + + + +

    + signalLevelStatus +

    + +

    @abstract Signal level status

    + +
    +

    See

    + SDLDeviceLevelStatus + +
    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLDeviceLevelStatus *signalLevelStatus;
    + + +

    Swift

    +
    var signalLevelStatus: SDLDeviceLevelStatus! { get set }
    + + + + +

    + primaryAudioSource +

    + +

    @abstract The current primary audio source of SDL (if selected).

    + +
    +

    See

    + SDLPrimaryAudioSource + +
    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLPrimaryAudioSource *primaryAudioSource;
    + + +

    Swift

    +
    var primaryAudioSource: SDLPrimaryAudioSource! { get set }
    + + + + +

    + eCallEventActive +

    + +

    @abstract Indicates if an emergency call is active

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *eCallEventActive;
    + + +

    Swift

    +
    var eCallEventActive: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLDiagnosticMessage.html b/docs/Classes/SDLDiagnosticMessage.html new file mode 100644 index 000000000..e447dd870 --- /dev/null +++ b/docs/Classes/SDLDiagnosticMessage.html @@ -0,0 +1,111 @@ +

    SDLDiagnosticMessage Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Non periodic vehicle diagnostic request

    + +

    @since SDL 3.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDiagnosticMessage : SDLRPCRequest
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDiagnosticMessage : SDLRPCRequest
    + + + + + +

    + targetID +

    + +

    Name of target ECU

    + +

    Required, Integer, 0 - 65535

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *targetID;
    + + +

    Swift

    +
    var targetID: NSNumber! { get set }
    + + + + +

    + messageLength +

    + +

    Length of message (in bytes)

    + +

    Required, Integer, 65535

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *messageLength;
    + + +

    Swift

    +
    var messageLength: NSNumber! { get set }
    + + + + +

    + messageData +

    + +

    Array of bytes comprising CAN message.

    + +

    Required, Array of NSNumber (Integers), Array size 1 - 65535, Integer Size 0 - 255

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *messageData;
    + + +

    Swift

    +
    var messageData: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLDiagnosticMessageResponse.html b/docs/Classes/SDLDiagnosticMessageResponse.html new file mode 100644 index 000000000..32521746a --- /dev/null +++ b/docs/Classes/SDLDiagnosticMessageResponse.html @@ -0,0 +1,63 @@ +

    SDLDiagnosticMessageResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLDiagnosticMessageResponse is sent, when SDLDiagnosticMessage has been called. + * SinceSmartDeviceLink 3.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDiagnosticMessageResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDiagnosticMessageResponse : SDLRPCResponse
    + + + + + +

    + messageDataResult +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDiagnosticMessageResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLDialNumber.html b/docs/Classes/SDLDialNumber.html new file mode 100644 index 000000000..65c9f7ea5 --- /dev/null +++ b/docs/Classes/SDLDialNumber.html @@ -0,0 +1,67 @@ +

    SDLDialNumber Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    This RPC is used to tell the head unit to use bluetooth to dial a phone number using the phone.

    + +

    @since SDL 4.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDialNumber : SDLRPCRequest
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDialNumber : SDLRPCRequest
    + + + + + +

    + number +

    + +

    Up to 40 character string representing the phone number. All characters stripped except for ‘0’-‘9’, ’*’, ’#’, ’,’, ’;’, and ’+’

    + + + +

    Objective-C

    +
    @property (readwrite, strong, nonatomic) NSString *number;
    + + +

    Swift

    +
    var number: String! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLDialNumberResponse.html b/docs/Classes/SDLDialNumberResponse.html new file mode 100644 index 000000000..1c2924043 --- /dev/null +++ b/docs/Classes/SDLDialNumberResponse.html @@ -0,0 +1,48 @@ +

    SDLDialNumberResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Indicates the result, success, or failure of the SDLDialNumber request.

    + +

    @since SDL 4.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDialNumberResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDialNumberResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLDimension.html b/docs/Classes/SDLDimension.html new file mode 100644 index 000000000..e59246866 --- /dev/null +++ b/docs/Classes/SDLDimension.html @@ -0,0 +1,145 @@ +

    SDLDimension Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The supported dimensions of the GPS.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLDimension

    + + + +

    Objective-C

    +
    + (SDLDimension *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLDimension!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLDimension

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLDimension

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    An array that store all possible SDLDimension

    + +
    + +

    + +NO_FIX +

    + +

    @abstract No GPS at all +- returns: the dimension with value of NO_FIX

    + + + +

    Objective-C

    +
    + (SDLDimension *)NO_FIX;
    + + +

    Swift

    +
    class func NO_FIX() -> SDLDimension!
    + + + +
    +

    Return Value

    +

    the dimension with value of NO_FIX

    + +
    + +

    + +_2D +

    + +

    @abstract Longitude and latitude of the GPS +- returns: the dimension with value of 2D

    + + + +

    Objective-C

    +
    + (SDLDimension *)_2D;
    + + +

    Swift

    +
    class func _2D() -> SDLDimension!
    + + + +
    +

    Return Value

    +

    the dimension with value of 2D

    + +
    + +

    + +_3D +

    + +

    @abstract Longitude and latitude and altitude of the GPS +- returns: the dimension with value of 3D

    + + + +

    Objective-C

    +
    + (SDLDimension *)_3D;
    + + +

    Swift

    +
    class func _3D() -> SDLDimension!
    + + + +
    +

    Return Value

    +

    the dimension with value of 3D

    + +
    + +
    diff --git a/docs/Classes/SDLDisplayCapabilities.html b/docs/Classes/SDLDisplayCapabilities.html new file mode 100644 index 000000000..5d1e885ed --- /dev/null +++ b/docs/Classes/SDLDisplayCapabilities.html @@ -0,0 +1,254 @@ +

    SDLDisplayCapabilities Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Contains information about the display for the SDL system to which the application is currently connected.

    + +

    @since SDL 1.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLDisplayCapabilities object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLDisplayCapabilities object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + displayType +

    + +

    @abstract The type of display

    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLDisplayType *displayType;
    + + +

    Swift

    +
    var displayType: SDLDisplayType! { get set }
    + + + + +

    + textFields +

    + +

    @abstract An array of SDLTextField structures, each of which describes a field in the HMI which the application can write to using operations such as SDLShow, SDLSetMediaClockTimer, etc.

    + +

    @discussion This array of SDLTextField structures identify all the text fields to which the application can write on the current display (identified by SDLDisplayType).

    + +
    +

    See

    + SDLTextField + +
    + +

    Required, Array of SDLTextField, 1 - 100 objects

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *textFields;
    + + +

    Swift

    +
    var textFields: NSMutableArray! { get set }
    + + + + +

    + imageFields +

    + +

    @abstract An array of SDLImageField elements

    + +

    @discussion A set of all fields that support images.

    + +
    +

    See

    + SDLImageField + +
    + +

    Optional, Array of SDLImageField, 1 - 100 objects

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *imageFields;
    + + +

    Swift

    +
    var imageFields: NSMutableArray! { get set }
    + + + + +

    + mediaClockFormats +

    + +

    @abstract An array of SDLMediaClockFormat elements, defining the valid string formats used in specifying the contents of the media clock field

    + +
    +

    See

    + SDLMediaClockFormat + +
    + +

    Required, Array of SDLMediaClockFormats, 0 - 100 objects

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *mediaClockFormats;
    + + +

    Swift

    +
    var mediaClockFormats: NSMutableArray! { get set }
    + + + + +

    + graphicSupported +

    + +

    @abstract The display’s persistent screen supports.

    + +

    @since SDL 2.0

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *graphicSupported;
    + + +

    Swift

    +
    var graphicSupported: NSNumber! { get set }
    + + + + +

    + templatesAvailable +

    + +

    @abstract Number of presets the screen supports

    + +

    @discussion The number of on-screen custom presets available (if any)

    + +

    Optional, Array of String, max string size 100, 0 - 100 objects

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *templatesAvailable;
    + + +

    Swift

    +
    var templatesAvailable: NSMutableArray! { get set }
    + + + + +

    + screenParams +

    + +

    @abstract A set of all parameters related to a prescribed screen area (e.g. for video / touch input)

    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLScreenParams *screenParams;
    + + +

    Swift

    +
    var screenParams: SDLScreenParams! { get set }
    + + + + +

    + numCustomPresetsAvailable +

    + +

    @abstract The number of on-screen custom presets available (if any); otherwise omitted

    + +

    Optional, Integer 1 - 100

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *numCustomPresetsAvailable;
    + + +

    Swift

    +
    var numCustomPresetsAvailable: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLDisplayType.html b/docs/Classes/SDLDisplayType.html new file mode 100644 index 000000000..4628a13fe --- /dev/null +++ b/docs/Classes/SDLDisplayType.html @@ -0,0 +1,246 @@ +

    SDLDisplayType Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Identifies the various display types used by SDL.

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLDisplayType

    + + + +

    Objective-C

    +
    + (SDLDisplayType *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLDisplayType!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLDisplayType

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLDisplayType

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLDisplayType

    + +
    + +

    + +CID +

    + +

    @abstract This display type provides a 2-line x 20 character dot matrix display.

    + + + +

    Objective-C

    +
    + (SDLDisplayType *)CID;
    + + +

    Swift

    +
    class func CID() -> SDLDisplayType!
    + + + +
    +

    Return Value

    +

    SDLDisplayType with value of CID

    + +
    + +

    + +TYPE2 +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDisplayType : SDLEnum
    + + + + + +

    + +TYPE5 +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDisplayType : SDLEnum
    + + + + + +

    + +NGN +

    + +

    @abstract This display type provides an 8 inch touchscreen display.

    + + + +

    Objective-C

    +
    + (SDLDisplayType *)NGN;
    + + +

    Swift

    +
    class func NGN() -> SDLDisplayType!
    + + + +
    +

    Return Value

    +

    SDLDisplayType with value of NGN

    + +
    + +

    + +GEN2_8_DMA +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDisplayType : SDLEnum
    + + + + + +

    + +GEN2_6_DMA +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDisplayType : SDLEnum
    + + + + + +

    + +MFD3 +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDisplayType : SDLEnum
    + + + + + +

    + +MFD4 +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDisplayType : SDLEnum
    + + + + + +

    + +MFD5 +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDisplayType : SDLEnum
    + + + + + +

    + +GEN3_8_INCH +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLDisplayType : SDLEnum
    + + + + + +
    diff --git a/docs/Classes/SDLDriverDistractionState.html b/docs/Classes/SDLDriverDistractionState.html new file mode 100644 index 000000000..af62eb0e9 --- /dev/null +++ b/docs/Classes/SDLDriverDistractionState.html @@ -0,0 +1,118 @@ +

    SDLDriverDistractionState Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Enumeration that describes possible states of driver distraction.

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLDisplayType

    + + + +

    Objective-C

    +
    + (SDLDriverDistractionState *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLDriverDistractionState!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLDisplayType

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLDriverDistractionState

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLDriverDistractionState

    + +
    + +

    + +DD_ON +

    + +

    @abstract Driver distraction rules are in effect.

    + + + +

    Objective-C

    +
    + (SDLDriverDistractionState *)DD_ON;
    + + +

    Swift

    +
    class func DD_ON() -> SDLDriverDistractionState!
    + + + +
    +

    Return Value

    +

    a SDLDriverDistractionState with value of DD_ON

    + +
    + +

    + +DD_OFF +

    + +

    @abstract Driver distraction rules are NOT in effect.

    + + + +

    Objective-C

    +
    + (SDLDriverDistractionState *)DD_OFF;
    + + +

    Swift

    +
    class func DD_OFF() -> SDLDriverDistractionState!
    + + + +
    +

    Return Value

    +

    a SDLDriverDistractionState with value of DD_OFF

    + +
    + +
    diff --git a/docs/Classes/SDLECallConfirmationStatus.html b/docs/Classes/SDLECallConfirmationStatus.html new file mode 100644 index 000000000..d7f669dc4 --- /dev/null +++ b/docs/Classes/SDLECallConfirmationStatus.html @@ -0,0 +1,181 @@ +

    SDLECallConfirmationStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reflects the status of the eCall Notification. + *Since SmartDeviceLink 2.0 +

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLECallConfirmationStatus : SDLEnum
    + + + + + +

    + +values +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLECallConfirmationStatus : SDLEnum
    + + + + + +

    + +NORMAL +

    + +

    No E-Call signal triggered.

    + + + +

    Objective-C

    +
    + (SDLECallConfirmationStatus *)NORMAL;
    + + +

    Swift

    +
    class func NORMAL() -> SDLECallConfirmationStatus!
    + + + + +

    + +CALL_IN_PROGRESS +

    + +

    An E-Call is being in progress.

    + + + +

    Objective-C

    +
    + (SDLECallConfirmationStatus *)CALL_IN_PROGRESS;
    + + +

    Swift

    +
    class func CALL_IN_PROGRESS() -> SDLECallConfirmationStatus!
    + + + + +

    + +CALL_CANCELLED +

    + +

    CALL_CANCELLED An E-Call was cancelled by the user.

    + + + +

    Objective-C

    +
    + (SDLECallConfirmationStatus *)CALL_CANCELLED;
    + + +

    Swift

    +
    class func CALL_CANCELLED() -> SDLECallConfirmationStatus!
    + + + + +

    + +CALL_COMPLETED +

    + +

    The E-Call sequence is completed.

    + + + +

    Objective-C

    +
    + (SDLECallConfirmationStatus *)CALL_COMPLETED;
    + + +

    Swift

    +
    class func CALL_COMPLETED() -> SDLECallConfirmationStatus!
    + + + + +

    + +CALL_UNSUCCESSFUL +

    + +

    An E-Call could not be connected.

    + + + +

    Objective-C

    +
    + (SDLECallConfirmationStatus *)CALL_UNSUCCESSFUL;
    + + +

    Swift

    +
    class func CALL_UNSUCCESSFUL() -> SDLECallConfirmationStatus!
    + + + + +

    + +ECALL_CONFIGURED_OFF +

    + +

    E-Call is not configured on this vehicle.

    + + + +

    Objective-C

    +
    + (SDLECallConfirmationStatus *)ECALL_CONFIGURED_OFF;
    + + +

    Swift

    +
    class func ECALL_CONFIGURED_OFF() -> SDLECallConfirmationStatus!
    + + + + +

    + +CALL_COMPLETE_DTMF_TIMEOUT +

    + +

    E-Call is considered to be complete without Emergency Operator contact.

    + + + +

    Objective-C

    +
    + (SDLECallConfirmationStatus *)CALL_COMPLETE_DTMF_TIMEOUT;
    + + +

    Swift

    +
    class func CALL_COMPLETE_DTMF_TIMEOUT() -> SDLECallConfirmationStatus!
    + + + + +
    diff --git a/docs/Classes/SDLECallInfo.html b/docs/Classes/SDLECallInfo.html new file mode 100644 index 000000000..1dccad6b8 --- /dev/null +++ b/docs/Classes/SDLECallInfo.html @@ -0,0 +1,74 @@ +

    SDLECallInfo Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + eCallNotificationStatus +

    + +

    Undocumented

    + + + + + + +

    + auxECallNotificationStatus +

    + +

    Undocumented

    + + + + + + +

    + eCallConfirmationStatus +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLEmergencyEvent.html b/docs/Classes/SDLEmergencyEvent.html new file mode 100644 index 000000000..a8333c6dc --- /dev/null +++ b/docs/Classes/SDLEmergencyEvent.html @@ -0,0 +1,98 @@ +

    SDLEmergencyEvent Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + emergencyEventType +

    + +

    Undocumented

    + + + + + + +

    + fuelCutoffStatus +

    + +

    Undocumented

    + + + + + + +

    + rolloverEvent +

    + +

    Undocumented

    + + + + + + +

    + maximumChangeVelocity +

    + +

    Undocumented

    + + + + + + +

    + multipleEvents +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLEmergencyEventType.html b/docs/Classes/SDLEmergencyEventType.html new file mode 100644 index 000000000..1ba96e375 --- /dev/null +++ b/docs/Classes/SDLEmergencyEventType.html @@ -0,0 +1,181 @@ +

    SDLEmergencyEventType Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reflects the emergency event status of the vehicle. + * Since: SmartDeviceLink 2.0 + *

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLEmergencyEventType : SDLEnum
    + + + + + +

    + +values +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLEmergencyEventType : SDLEnum
    + + + + + +

    + +NO_EVENT +

    + +

    No emergency event has happened.

    + + + +

    Objective-C

    +
    + (SDLEmergencyEventType *)NO_EVENT;
    + + +

    Swift

    +
    class func NO_EVENT() -> SDLEmergencyEventType!
    + + + + +

    + +FRONTAL +

    + +

    Frontal collision has happened.

    + + + +

    Objective-C

    +
    + (SDLEmergencyEventType *)FRONTAL;
    + + +

    Swift

    +
    class func FRONTAL() -> SDLEmergencyEventType!
    + + + + +

    + +SIDE +

    + +

    Side collision has happened.

    + + + +

    Objective-C

    +
    + (SDLEmergencyEventType *)SIDE;
    + + +

    Swift

    +
    class func SIDE() -> SDLEmergencyEventType!
    + + + + +

    + +REAR +

    + +

    Rear collision has happened.

    + + + +

    Objective-C

    +
    + (SDLEmergencyEventType *)REAR;
    + + +

    Swift

    +
    class func REAR() -> SDLEmergencyEventType!
    + + + + +

    + +ROLLOVER +

    + +

    A rollover event has happened.

    + + + +

    Objective-C

    +
    + (SDLEmergencyEventType *)ROLLOVER;
    + + +

    Swift

    +
    class func ROLLOVER() -> SDLEmergencyEventType!
    + + + + +

    + +NOT_SUPPORTED +

    + +

    The signal is not supported

    + + + +

    Objective-C

    +
    + (SDLEmergencyEventType *)NOT_SUPPORTED;
    + + +

    Swift

    +
    class func NOT_SUPPORTED() -> SDLEmergencyEventType!
    + + + + +

    + +FAULT +

    + +

    Emergency status cannot be determined

    + + + +

    Objective-C

    +
    + (SDLEmergencyEventType *)FAULT;
    + + +

    Swift

    +
    class func FAULT() -> SDLEmergencyEventType!
    + + + + +
    diff --git a/docs/Classes/SDLEncodedSyncPData.html b/docs/Classes/SDLEncodedSyncPData.html new file mode 100644 index 000000000..9204b8915 --- /dev/null +++ b/docs/Classes/SDLEncodedSyncPData.html @@ -0,0 +1,50 @@ +

    SDLEncodedSyncPData Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + data +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLEncodedSyncPDataResponse.html b/docs/Classes/SDLEncodedSyncPDataResponse.html new file mode 100644 index 000000000..f41bca280 --- /dev/null +++ b/docs/Classes/SDLEncodedSyncPDataResponse.html @@ -0,0 +1,38 @@ +

    SDLEncodedSyncPDataResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLEndAudioPassThru.html b/docs/Classes/SDLEndAudioPassThru.html new file mode 100644 index 000000000..3707c5e08 --- /dev/null +++ b/docs/Classes/SDLEndAudioPassThru.html @@ -0,0 +1,68 @@ +

    SDLEndAudioPassThru Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    When this request is invoked, the audio capture stops +

    +Function Group: AudioPassThru +

    +HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 2.0
    +see SDLPerformAudioPassThru

    + + +
    +

    + -init +

    + +

    Constructs a new SDLEndAudioPassThru object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLEndAudioPassThru object indicated by the NSMutableDictionary + parameter +

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLEndAudioPassThruResponse.html b/docs/Classes/SDLEndAudioPassThruResponse.html new file mode 100644 index 000000000..e2d6c3317 --- /dev/null +++ b/docs/Classes/SDLEndAudioPassThruResponse.html @@ -0,0 +1,48 @@ +

    SDLEndAudioPassThruResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLEndAudioPassThruResponse is sent, when SDLEndAudioPassThru has been called

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLEndAudioPassThruResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLEndAudioPassThruResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLEnum.html b/docs/Classes/SDLEnum.html new file mode 100644 index 000000000..d015033ab --- /dev/null +++ b/docs/Classes/SDLEnum.html @@ -0,0 +1,62 @@ +

    SDLEnum Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + value +

    + +

    Undocumented

    + + + + + + +

    + -initWithValue: +

    + +

    Undocumented

    + + + + + + +

    + -isEqualToEnum: +

    + +

    Undocumented

    + + + + + + +

    + value +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLFileType.html b/docs/Classes/SDLFileType.html new file mode 100644 index 000000000..54b3fb99e --- /dev/null +++ b/docs/Classes/SDLFileType.html @@ -0,0 +1,262 @@ +

    SDLFileType Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Enumeration listing possible file types.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLFileType

    + + + +

    Objective-C

    +
    + (SDLFileType *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLFileType!
    + + + +

    Parameters

    +
    +
    value
    +

    String value to retrieve the object for

    +
    +
    +
    +

    Return Value

    +

    SDLFileType

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLFileType

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLFileType

    + +
    + +

    + +GRAPHIC_BMP +

    + +

    @abstract file type: Bitmap (BMP)

    + + + +

    Objective-C

    +
    + (SDLFileType *)GRAPHIC_BMP;
    + + +

    Swift

    +
    class func GRAPHIC_BMP() -> SDLFileType!
    + + + +
    +

    Return Value

    +

    SDLFileType with value of GRAPHIC_BMP

    + +
    + +

    + +GRAPHIC_JPEG +

    + +

    @abstract file type: JPEG

    + + + +

    Objective-C

    +
    + (SDLFileType *)GRAPHIC_JPEG;
    + + +

    Swift

    +
    class func GRAPHIC_JPEG() -> SDLFileType!
    + + + +
    +

    Return Value

    +

    SDLFileType with value of GRAPHIC_JPEG

    + +
    + +

    + +GRAPHIC_PNG +

    + +

    @abstract file type: PNG

    + + + +

    Objective-C

    +
    + (SDLFileType *)GRAPHIC_PNG;
    + + +

    Swift

    +
    class func GRAPHIC_PNG() -> SDLFileType!
    + + + +
    +

    Return Value

    +

    SDLFileType with value of GRAPHIC_PNG

    + +
    + +

    + +AUDIO_WAVE +

    + +

    @abstract file type: WAVE (WAV)

    + + + +

    Objective-C

    +
    + (SDLFileType *)AUDIO_WAVE;
    + + +

    Swift

    +
    class func AUDIO_WAVE() -> SDLFileType!
    + + + +
    +

    Return Value

    +

    SDLFileType with value of AUDIO_WAVE

    + +
    + +

    + +AUDIO_MP3 +

    + +

    @abstract file type: MP3

    + + + +

    Objective-C

    +
    + (SDLFileType *)AUDIO_MP3;
    + + +

    Swift

    +
    class func AUDIO_MP3() -> SDLFileType!
    + + + +
    +

    Return Value

    +

    SDLFileType with value of AUDIO_MP3

    + +
    + +

    + +AUDIO_AAC +

    + +

    @abstract file type: AAC

    + + + +

    Objective-C

    +
    + (SDLFileType *)AUDIO_AAC;
    + + +

    Swift

    +
    class func AUDIO_AAC() -> SDLFileType!
    + + + +
    +

    Return Value

    +

    SDLFileType with value of AUDIO_AAC

    + +
    + +

    + +BINARY +

    + +

    @abstract file type: BINARY

    + + + +

    Objective-C

    +
    + (SDLFileType *)BINARY;
    + + +

    Swift

    +
    class func BINARY() -> SDLFileType!
    + + + +
    +

    Return Value

    +

    SDLFileType with value of BINARY

    + +
    + +

    + +JSON +

    + +

    @abstract file type: JSON

    + + + +

    Objective-C

    +
    + (SDLFileType *)JSON;
    + + +

    Swift

    +
    class func JSON() -> SDLFileType!
    + + + +
    +

    Return Value

    +

    SDLFileType with value of JSON

    + +
    + +
    diff --git a/docs/Classes/SDLFuelCutoffStatus.html b/docs/Classes/SDLFuelCutoffStatus.html new file mode 100644 index 000000000..27df2943f --- /dev/null +++ b/docs/Classes/SDLFuelCutoffStatus.html @@ -0,0 +1,146 @@ +

    SDLFuelCutoffStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reflects the status of the Restraints Control Module fuel pump cutoff. + The fuel pump is cut off typically after the vehicle has had a collision.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLFuelCutoffStatus

    + + + +

    Objective-C

    +
    + (SDLFuelCutoffStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLFuelCutoffStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    String value to retrieve the object for

    +
    +
    +
    +

    Return Value

    +

    SDLFuelCutoffStatus

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLFuelCutoffStatus

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that stores all possible SDLFuelCutoffStatus

    + +
    + +

    + +TERMINATE_FUEL +

    + +

    @abstract Fuel is cut off +- returns: the fuel cutoff status: TERMINATE_FUEL

    + + + +

    Objective-C

    +
    + (SDLFuelCutoffStatus *)TERMINATE_FUEL;
    + + +

    Swift

    +
    class func TERMINATE_FUEL() -> SDLFuelCutoffStatus!
    + + + +
    +

    Return Value

    +

    the fuel cutoff status: TERMINATE_FUEL

    + +
    + +

    + +NORMAL_OPERATION +

    + +

    @abstract Fuel is not cut off +- returns: the fuel cutoff status: NORMAL_OPERATION

    + + + +

    Objective-C

    +
    + (SDLFuelCutoffStatus *)NORMAL_OPERATION;
    + + +

    Swift

    +
    class func NORMAL_OPERATION() -> SDLFuelCutoffStatus!
    + + + +
    +

    Return Value

    +

    the fuel cutoff status: NORMAL_OPERATION

    + +
    + +

    + +FAULT +

    + +

    @abstract Status of the fuel pump cannot be determined +- returns: the fuel cutoff status: FAULT

    + + + +

    Objective-C

    +
    + (SDLFuelCutoffStatus *)FAULT;
    + + +

    Swift

    +
    class func FAULT() -> SDLFuelCutoffStatus!
    + + + +
    +

    Return Value

    +

    the fuel cutoff status: FAULT

    + +
    + +
    diff --git a/docs/Classes/SDLGPSData.html b/docs/Classes/SDLGPSData.html new file mode 100644 index 000000000..d59026132 --- /dev/null +++ b/docs/Classes/SDLGPSData.html @@ -0,0 +1,447 @@ +

    SDLGPSData Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Describes the GPS data. Not all data will be available on all carlines.

    + +

    @since SDL 2.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLGPSData object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLGPSData object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + longitudeDegrees +

    + +

    @abstract longitude degrees

    + +

    Required, Float, -180 - 180

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *longitudeDegrees;
    + + +

    Swift

    +
    var longitudeDegrees: NSNumber! { get set }
    + + + + +

    + latitudeDegrees +

    + +

    @abstract latitude degrees

    + +

    Required, Float, -90 - 90

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *latitudeDegrees;
    + + +

    Swift

    +
    var latitudeDegrees: NSNumber! { get set }
    + + + + +

    + utcYear +

    + +

    @abstract utc year

    + +

    Required, Integer, 2010 - 2100

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *utcYear;
    + + +

    Swift

    +
    var utcYear: NSNumber! { get set }
    + + + + +

    + utcMonth +

    + +

    @abstract utc month

    + +

    Required, Integer, 1 - 12

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *utcMonth;
    + + +

    Swift

    +
    var utcMonth: NSNumber! { get set }
    + + + + +

    + utcDay +

    + +

    @abstract utc day

    + +

    Required, Integer, 1 - 31

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *utcDay;
    + + +

    Swift

    +
    var utcDay: NSNumber! { get set }
    + + + + +

    + utcHours +

    + +

    @abstract utc hours

    + +

    Required, Integer, 0 - 23

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *utcHours;
    + + +

    Swift

    +
    var utcHours: NSNumber! { get set }
    + + + + +

    + utcMinutes +

    + +

    @abstract utc minutes

    + +

    Required, Integer, 0 - 59

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *utcMinutes;
    + + +

    Swift

    +
    var utcMinutes: NSNumber! { get set }
    + + + + +

    + utcSeconds +

    + +

    @abstract utc seconds

    + +

    Required, Integer, 0 - 59

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *utcSeconds;
    + + +

    Swift

    +
    var utcSeconds: NSNumber! { get set }
    + + + + +

    + compassDirection +

    + +

    Potential Compass Directions

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLCompassDirection *compassDirection;
    + + +

    Swift

    +
    var compassDirection: SDLCompassDirection! { get set }
    + + + + +

    + pdop +

    + +

    @abstract The 3D positional dilution of precision.

    + +

    @discussion If undefined or unavailable, then value shall be set to 0

    + +

    Required, Float, 0.0 - 10.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *pdop;
    + + +

    Swift

    +
    var pdop: NSNumber! { get set }
    + + + + +

    + hdop +

    + +

    @abstract The horizontal dilution of precision

    + +

    @discussion If undefined or unavailable, then value shall be set to 0

    + +

    Required, Float, 0.0 - 10.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *hdop;
    + + +

    Swift

    +
    var hdop: NSNumber! { get set }
    + + + + +

    + vdop +

    + +

    @abstract the vertical dilution of precision

    + +

    @discussion If undefined or unavailable, then value shall be set to 0

    + +

    Required, Float, 0.0 - 10.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *vdop;
    + + +

    Swift

    +
    var vdop: NSNumber! { get set }
    + + + + +

    + actual +

    + +

    @abstract What the coordinates are based on

    + +

    @discussion YES, if coordinates are based on satellites. NO, if based on dead reckoning.

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *actual;
    + + +

    Swift

    +
    var actual: NSNumber! { get set }
    + + + + +

    + satellites +

    + +

    @abstract The number of satellites in view

    + +

    Required, Integer, 0 - 31

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *satellites;
    + + +

    Swift

    +
    var satellites: NSNumber! { get set }
    + + + + +

    + dimension +

    + +

    The supported dimensions of the GPS

    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLDimension *dimension;
    + + +

    Swift

    +
    var dimension: SDLDimension! { get set }
    + + + + +

    + altitude +

    + +

    @abstract altitude in meters

    + +

    Required, Float, -10000.0 - 10000.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *altitude;
    + + +

    Swift

    +
    var altitude: NSNumber! { get set }
    + + + + +

    + heading +

    + +

    @abstract Heading based on the GPS data.

    + +

    @discussion North is 0, East is 90, etc. Resolution is 0.01

    + +

    Required, Float, 0.0 - 359.99

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *heading;
    + + +

    Swift

    +
    var heading: NSNumber! { get set }
    + + + + +

    + speed +

    + +

    @abstract speed in KPH

    + +

    Required, Float, 0.0 - 500.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *speed;
    + + +

    Swift

    +
    var speed: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLGenericResponse.html b/docs/Classes/SDLGenericResponse.html new file mode 100644 index 000000000..b101fa320 --- /dev/null +++ b/docs/Classes/SDLGenericResponse.html @@ -0,0 +1,48 @@ +

    SDLGenericResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Generic Response is sent, when the name of a received msg cannot be +retrieved. Only used in case of an error. Currently, only resultCode +INVALID_DATA is used.

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGenericResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGenericResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLGetDTCs.html b/docs/Classes/SDLGetDTCs.html new file mode 100644 index 000000000..891059114 --- /dev/null +++ b/docs/Classes/SDLGetDTCs.html @@ -0,0 +1,107 @@ +

    SDLGetDTCs Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    This RPC allows to request diagnostic module trouble codes from a certain +vehicle module +

    +Function Group: ProprietaryData +

    +HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + + +
    +

    + -init +

    + +

    Constructs a new SDLGetDTCs object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLGetDTCs object indicated by the dictionary parameter +

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + ecuName +

    + +

    @abstract a name of the module to receive the DTC form +@discussion an NSNumber value representing a name of the module to receive + the DTC form +

    + Notes: Minvalue:0; Maxvalue:65535

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *ecuName;
    + + +

    Swift

    +
    var ecuName: NSNumber! { get set }
    + + + + +

    + dtcMask +

    + +

    @abstract DTC Mask Byte to be sent in diagnostic request to module. NSNumber* dtcMask Minvalue:0; Maxvalue:255

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *dtcMask;
    + + +

    Swift

    +
    var dtcMask: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLGetDTCsResponse.html b/docs/Classes/SDLGetDTCsResponse.html new file mode 100644 index 000000000..ee702a0a2 --- /dev/null +++ b/docs/Classes/SDLGetDTCsResponse.html @@ -0,0 +1,80 @@ +

    SDLGetDTCsResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLGetDTCsResponse is sent, when SDLGetDTCs has been called

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetDTCsResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetDTCsResponse : SDLRPCResponse
    + + + + + +

    + ecuHeader +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetDTCsResponse : SDLRPCResponse
    + + + + + +

    + dtc +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetDTCsResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLGetVehicleData.html b/docs/Classes/SDLGetVehicleData.html new file mode 100644 index 000000000..dd4f8401b --- /dev/null +++ b/docs/Classes/SDLGetVehicleData.html @@ -0,0 +1,530 @@ +

    SDLGetVehicleData Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Requests surrent values of specific published vehicle data items. +

    + Function Group: Location, VehicleInfo and DrivingChara +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 2.0
    + See SDLSubscribeVehicleData SDLUnsubscribeVehicleData

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLGetVehicleData object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLGetVehicleData object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + gps +

    + +

    @abstract A boolean value. If true, requests Gps data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *gps;
    + + +

    Swift

    +
    var gps: NSNumber! { get set }
    + + + + +

    + speed +

    + +

    @abstract A boolean value. If true, requests speed data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *speed;
    + + +

    Swift

    +
    var speed: NSNumber! { get set }
    + + + + +

    + rpm +

    + +

    @abstract A boolean value. If true, requests rpm data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *rpm;
    + + +

    Swift

    +
    var rpm: NSNumber! { get set }
    + + + + +

    + fuelLevel +

    + +

    @abstract A boolean value. If true, requests FuelLevel data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *fuelLevel;
    + + +

    Swift

    +
    var fuelLevel: NSNumber! { get set }
    + + + + +

    + fuelLevel_State +

    + +

    @abstract A boolean value. If true, requests fuelLevel_State data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *fuelLevel_State;
    + + +

    Swift

    +
    var fuelLevel_State: NSNumber! { get set }
    + + + + +

    + instantFuelConsumption +

    + +

    @abstract A boolean value. If true, requests instantFuelConsumption data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *instantFuelConsumption;
    + + +

    Swift

    +
    var instantFuelConsumption: NSNumber! { get set }
    + + + + +

    + externalTemperature +

    + +

    @abstract A boolean value. If true, requests externalTemperature data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *externalTemperature;
    + + +

    Swift

    +
    var externalTemperature: NSNumber! { get set }
    + + + + +

    + vin +

    + +

    @abstract A boolean value. If true, requests Vehicle Identification Number

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *vin;
    + + +

    Swift

    +
    var vin: NSNumber! { get set }
    + + + + +

    + prndl +

    + +

    @abstract A boolean value. If true, requests Currently selected gear data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *prndl;
    + + +

    Swift

    +
    var prndl: NSNumber! { get set }
    + + + + +

    + tirePressure +

    + +

    @abstract A boolean value. If true, requests tire pressure status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *tirePressure;
    + + +

    Swift

    +
    var tirePressure: NSNumber! { get set }
    + + + + +

    + odometer +

    + +

    @abstract A boolean value. If true, requests odometer data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *odometer;
    + + +

    Swift

    +
    var odometer: NSNumber! { get set }
    + + + + +

    + beltStatus +

    + +

    @abstract A boolean value. If true, requests belt Status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *beltStatus;
    + + +

    Swift

    +
    var beltStatus: NSNumber! { get set }
    + + + + +

    + bodyInformation +

    + +

    @abstract A boolean value. If true, requests body Information data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *bodyInformation;
    + + +

    Swift

    +
    var bodyInformation: NSNumber! { get set }
    + + + + +

    + deviceStatus +

    + +

    @abstract A boolean value. If true, requests device Status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *deviceStatus;
    + + +

    Swift

    +
    var deviceStatus: NSNumber! { get set }
    + + + + +

    + driverBraking +

    + +

    @abstract A boolean value. If true, requests driver Braking data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *driverBraking;
    + + +

    Swift

    +
    var driverBraking: NSNumber! { get set }
    + + + + +

    + wiperStatus +

    + +

    @abstract A boolean value. If true, requests wiper Status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *wiperStatus;
    + + +

    Swift

    +
    var wiperStatus: NSNumber! { get set }
    + + + + +

    + headLampStatus +

    + +

    @abstract A boolean value. If true, requests Head Lamp Status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *headLampStatus;
    + + +

    Swift

    +
    var headLampStatus: NSNumber! { get set }
    + + + + +

    + engineTorque +

    + +

    @abstract A boolean value. If true, requests Engine Torque data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *engineTorque;
    + + +

    Swift

    +
    var engineTorque: NSNumber! { get set }
    + + + + +

    + accPedalPosition +

    + +

    @abstract A boolean value. If true, means the accPedalPosition data has been +subscribed.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *accPedalPosition;
    + + +

    Swift

    +
    var accPedalPosition: NSNumber! { get set }
    + + + + +

    + steeringWheelAngle +

    + +

    @abstract A boolean value. If true, means the steeringWheelAngle data has been +subscribed.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *steeringWheelAngle;
    + + +

    Swift

    +
    var steeringWheelAngle: NSNumber! { get set }
    + + + + +

    + eCallInfo +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetVehicleData : SDLRPCRequest
    + + + + + +

    + airbagStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetVehicleData : SDLRPCRequest
    + + + + + +

    + emergencyEvent +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetVehicleData : SDLRPCRequest
    + + + + + +

    + clusterModeStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetVehicleData : SDLRPCRequest
    + + + + + +

    + myKey +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetVehicleData : SDLRPCRequest
    + + + + + +
    diff --git a/docs/Classes/SDLGetVehicleDataResponse.html b/docs/Classes/SDLGetVehicleDataResponse.html new file mode 100644 index 000000000..07ec5048b --- /dev/null +++ b/docs/Classes/SDLGetVehicleDataResponse.html @@ -0,0 +1,522 @@ +

    SDLGetVehicleDataResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Get Vehicle Data Response is sent, when SDLGetVehicleData has been called

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLGetVehicleDataResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLGetVehicleDataResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + gps +

    + +

    @abstract A SDLGPSData* value. See GPSData.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLGPSData *gps;
    + + +

    Swift

    +
    var gps: SDLGPSData! { get set }
    + + + + +

    + speed +

    + +

    @abstract The vehicle speed in kilometers per hour.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *speed;
    + + +

    Swift

    +
    var speed: NSNumber! { get set }
    + + + + +

    + rpm +

    + +

    @abstract The number of revolutions per minute of the engine.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *rpm;
    + + +

    Swift

    +
    var rpm: NSNumber! { get set }
    + + + + +

    + fuelLevel +

    + +

    @abstract The fuel level in the tank (percentage)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *fuelLevel;
    + + +

    Swift

    +
    var fuelLevel: NSNumber! { get set }
    + + + + +

    + fuelLevel_State +

    + +

    @abstract A SDLComponentVolumeStatus* value. The fuel level state.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLComponentVolumeStatus *fuelLevel_State;
    + + +

    Swift

    +
    var fuelLevel_State: SDLComponentVolumeStatus! { get set }
    + + + + +

    + instantFuelConsumption +

    + +

    @abstract The instantaneous fuel consumption in microlitres.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *instantFuelConsumption;
    + + +

    Swift

    +
    var instantFuelConsumption: NSNumber! { get set }
    + + + + +

    + externalTemperature +

    + +

    @abstract The external temperature in degrees celsius.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *externalTemperature;
    + + +

    Swift

    +
    var externalTemperature: NSNumber! { get set }
    + + + + +

    + vin +

    + +

    @abstract The Vehicle Identification Number

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *vin;
    + + +

    Swift

    +
    var vin: String! { get set }
    + + + + +

    + prndl +

    + +

    @abstract See PRNDL.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLPRNDL *prndl;
    + + +

    Swift

    +
    var prndl: SDLPRNDL! { get set }
    + + + + +

    + tirePressure +

    + +

    @abstract A SDLTireStatus* value. See TireStatus.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLTireStatus *tirePressure;
    + + +

    Swift

    +
    var tirePressure: SDLTireStatus! { get set }
    + + + + +

    + odometer +

    + +

    @abstract Odometer reading in km.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *odometer;
    + + +

    Swift

    +
    var odometer: NSNumber! { get set }
    + + + + +

    + beltStatus +

    + +

    @abstract A SDLBeltStatus* value. The status of the seat belts.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLBeltStatus *beltStatus;
    + + +

    Swift

    +
    var beltStatus: SDLBeltStatus! { get set }
    + + + + +

    + bodyInformation +

    + +

    @abstract A SDLBodyInformation* value. The body information including power modes.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLBodyInformation *bodyInformation;
    + + +

    Swift

    +
    var bodyInformation: SDLBodyInformation! { get set }
    + + + + +

    + deviceStatus +

    + +

    @abstract A SDLDeviceStatus* value. The device status including signal and battery strength.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLDeviceStatus *deviceStatus;
    + + +

    Swift

    +
    var deviceStatus: SDLDeviceStatus! { get set }
    + + + + +

    + driverBraking +

    + +

    @abstract A SDLVehicleDataResult* value. The status of the brake pedal.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataEventStatus *driverBraking;
    + + +

    Swift

    +
    var driverBraking: SDLVehicleDataEventStatus! { get set }
    + + + + +

    + wiperStatus +

    + +

    @abstract A SDLWiperStatus* value. The status of the wipers.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLWiperStatus *wiperStatus;
    + + +

    Swift

    +
    var wiperStatus: SDLWiperStatus! { get set }
    + + + + +

    + headLampStatus +

    + +

    @abstract A SDLHeadLampStatus* value. Status of the head lamps.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLHeadLampStatus *headLampStatus;
    + + +

    Swift

    +
    var headLampStatus: SDLHeadLampStatus! { get set }
    + + + + +

    + engineTorque +

    + +

    @abstract Torque value for engine (in Nm) on non-diesel variants.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *engineTorque;
    + + +

    Swift

    +
    var engineTorque: NSNumber! { get set }
    + + + + +

    + accPedalPosition +

    + +

    @abstract Accelerator pedal position (percentage depressed)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *accPedalPosition;
    + + +

    Swift

    +
    var accPedalPosition: NSNumber! { get set }
    + + + + +

    + steeringWheelAngle +

    + +

    @abstract Current angle of the steering wheel (in deg)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *steeringWheelAngle;
    + + +

    Swift

    +
    var steeringWheelAngle: NSNumber! { get set }
    + + + + +

    + eCallInfo +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetVehicleDataResponse : SDLRPCResponse
    + + + + + +

    + airbagStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetVehicleDataResponse : SDLRPCResponse
    + + + + + +

    + emergencyEvent +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetVehicleDataResponse : SDLRPCResponse
    + + + + + +

    + clusterModeStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetVehicleDataResponse : SDLRPCResponse
    + + + + + +

    + myKey +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGetVehicleDataResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLGlobalProperty.html b/docs/Classes/SDLGlobalProperty.html new file mode 100644 index 000000000..242acebcc --- /dev/null +++ b/docs/Classes/SDLGlobalProperty.html @@ -0,0 +1,203 @@ +

    SDLGlobalProperty Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Properties of a user-initiated VR interaction (i.e. interactions started by the user pressing the PTT button).

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLGlobalProperty +- parameter: value The value of the string to get an object for +- returns: SDLGlobalProperty

    + + + +

    Objective-C

    +
    + (SDLGlobalProperty *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLGlobalProperty!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLGlobalProperty

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLGlobalProperty +- returns: An array that store all possible SDLGlobalProperty

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    An array that store all possible SDLGlobalProperty

    + +
    + +

    + +HELPPROMPT +

    + +

    @abstract The help prompt to be spoken if the user needs assistance during a user-initiated interaction. +- returns: A SDLGlobalProperty with value of HELPPROMPT

    + + + +

    Objective-C

    +
    + (SDLGlobalProperty *)HELPPROMPT;
    + + +

    Swift

    +
    class func HELPPROMPT() -> SDLGlobalProperty!
    + + + +
    +

    Return Value

    +

    A SDLGlobalProperty with value of HELPPROMPT

    + +
    + +

    + +TIMEOUTPROMPT +

    + +

    @abstract The prompt to be spoken if the user-initiated interaction times out waiting for the user’s verbal input. +- returns: A SDLGlobalProperty with value of TIMEOUTPROMPT

    + + + +

    Objective-C

    +
    + (SDLGlobalProperty *)TIMEOUTPROMPT;
    + + +

    Swift

    +
    class func TIMEOUTPROMPT() -> SDLGlobalProperty!
    + + + +
    +

    Return Value

    +

    A SDLGlobalProperty with value of TIMEOUTPROMPT

    + +
    + +

    + +VRHELPTITLE +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGlobalProperty : SDLEnum
    + + + + + +

    + +VRHELPITEMS +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGlobalProperty : SDLEnum
    + + + + + +

    + +MENUNAME +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGlobalProperty : SDLEnum
    + + + + + +

    + +MENUICON +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGlobalProperty : SDLEnum
    + + + + + +

    + +KEYBOARDPROPERTIES +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLGlobalProperty : SDLEnum
    + + + + + +
    diff --git a/docs/Classes/SDLHMICapabilities.html b/docs/Classes/SDLHMICapabilities.html new file mode 100644 index 000000000..7bc5ecbe3 --- /dev/null +++ b/docs/Classes/SDLHMICapabilities.html @@ -0,0 +1,80 @@ +

    SDLHMICapabilities Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + navigation +

    + +

    Availability of build in Nav. True: Available, False: Not Available

    + +

    Boolean value. Optional.

    + + + +

    Objective-C

    +
    @property (readwrite, copy, nonatomic) NSNumber *navigation;
    + + +

    Swift

    +
    @NSCopying var navigation: NSNumber! { get set }
    + + + + +

    + phoneCall +

    + +

    Availability of build in phone. True: Available, False: Not Available

    + +

    Boolean value. Optional.

    + + + +

    Objective-C

    +
    @property (readwrite, copy, nonatomic) NSNumber *phoneCall;
    + + +

    Swift

    +
    @NSCopying var phoneCall: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLHMILevel.html b/docs/Classes/SDLHMILevel.html new file mode 100644 index 000000000..87e527d59 --- /dev/null +++ b/docs/Classes/SDLHMILevel.html @@ -0,0 +1,183 @@ +

    SDLHMILevel Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Specifies current level of the HMI. An HMI level indicates the degree of user interaction possible through the HMI (e.g. TTS only, display only, VR, etc.). The HMI level varies for an application based on the type of display (i.e. Nav or non-Nav) and the user directing focus to other applications (e.g. phone, other mobile applications, etc.)

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    Return HMILevel status (FULL, LIMITED, BACKGROUND, NONE)

    + + + +

    Objective-C

    +
    + (SDLHMILevel *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLHMILevel!
    + + + +

    Parameters

    +
    +
    value
    +

    String value to retrieve the object for

    +
    +
    +
    +

    Return Value

    +

    Current HMI level

    + +
    + +

    + +values +

    + +

    Store all possible SDLHMILevel values

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array with all possible HMILevel values inside

    + +
    + +

    + +FULL +

    + +

    The application has full use of the SDL HMI. The app may output via TTS, display, or streaming audio and may gather input via VR, Menu, and button presses

    + + + +

    Objective-C

    +
    + (SDLHMILevel *)FULL;
    + + +

    Swift

    +
    class func FULL() -> SDLHMILevel!
    + + + +
    +

    Return Value

    +

    the HMILevel with value of FULL

    + +
    + +

    + +LIMITED +

    + +

    This HMI Level is only defined for a media application using an HMI with an 8 inch touchscreen (Nav) system. The application’s Show text is displayed and it receives button presses from media-oriented buttons (SEEKRIGHT, SEEKLEFT, TUNEUP, TUNEDOWN, PRESET_0-9)

    + + + +

    Objective-C

    +
    + (SDLHMILevel *)LIMITED;
    + + +

    Swift

    +
    class func LIMITED() -> SDLHMILevel!
    + + + +
    +

    Return Value

    +

    the HMILevel with value of LIMITED

    + +
    + +

    + +BACKGROUND +

    + +

    App cannot interact with user via TTS, VR, Display or Button Presses. App can perform the following operations:

    + +

    @discussion

      +
    • Operation : AddCommand
    • +
    • Operation : DeleteCommand
    • +
    • Operation : AddSubMenu
    • +
    • Operation : DeleteSubMenu
    • +
    • Operation : CreateInteractionChoiceSet
    • +
    • Operation : DeleteInteractionChoiceSet
    • +
    • Operation : SubscribeButton
    • +
    • Operation : UnsubscribeButton
    • +
    • Operation : Show
    • +
    • Operation : UnregisterAppInterface
    • +
    • Operation : ResetGlobalProperties
    • +
    • Operation : SetGlobalProperties
    • +

    + + + +

    Objective-C

    +
    + (SDLHMILevel *)BACKGROUND;
    + + +

    Swift

    +
    class func BACKGROUND() -> SDLHMILevel!
    + + + +
    +

    Return Value

    +

    the HMILevel with value of BACKGROUND

    + +
    + +

    + +NONE +

    + +

    Application has been discovered by SDL, but it cannot send any requests or receive any notifications

    + +

    @discussion An HMILevel of NONE can also mean that the user has exited the application by saying exit appname or selecting exit from the application’s menu. When this happens, the application still has an active interface registration with SDL and all SDL resources the application has created (e.g. Choice Sets, subscriptions, etc.) still exist. But while the HMILevel is NONE, the application cannot send any messages to SYNC, except UnregisterAppInterface

    + + + +

    Objective-C

    +
    + (SDLHMILevel *)NONE;
    + + +

    Swift

    +
    class func NONE() -> SDLHMILevel!
    + + + +
    +

    Return Value

    +

    the HMILevel with value of NONE

    + +
    + +
    diff --git a/docs/Classes/SDLHMIPermissions.html b/docs/Classes/SDLHMIPermissions.html new file mode 100644 index 000000000..6d841f7b2 --- /dev/null +++ b/docs/Classes/SDLHMIPermissions.html @@ -0,0 +1,115 @@ +

    SDLHMIPermissions Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Defining sets of HMI levels, which are permitted or prohibited for a given RPC.

    + +

    @since SDL 2.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLHMIPermissions object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLHMIPermissions object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + allowed +

    + +

    @abstract a set of all HMI levels that are permitted for this given RPC

    + +
    +

    See

    + SDLHMILevel + +
    + +

    Required, Array of SDLHMILevel, Array size 0 - 100

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *allowed;
    + + +

    Swift

    +
    var allowed: NSMutableArray! { get set }
    + + + + +

    + userDisallowed +

    + +

    @abstract a set of all HMI levels that are prohibited for this given RPC

    + +
    +

    See

    + SDLHMILevel + +
    + +

    Required, Array of SDLHMILevel, Array size 0 - 100

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *userDisallowed;
    + + +

    Swift

    +
    var userDisallowed: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLHMIZoneCapabilities.html b/docs/Classes/SDLHMIZoneCapabilities.html new file mode 100644 index 000000000..fb3699ad8 --- /dev/null +++ b/docs/Classes/SDLHMIZoneCapabilities.html @@ -0,0 +1,123 @@ +

    SDLHMIZoneCapabilities Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Specifies HMI Zones in the vehicle.

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract SDLHMIZoneCapabilities +- parameter: value The value of the string to get an object for +- returns: SDLHMIZoneCapabilities

    + + + +

    Objective-C

    +
    + (SDLHMIZoneCapabilities *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLHMIZoneCapabilities!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLHMIZoneCapabilities

    + +
    + +

    + +values +

    + +

    @abstract store all possible SDLHMIZoneCapabilities values +- returns: an array with all possible SDLHMIZoneCapabilities values inside

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array with all possible SDLHMIZoneCapabilities values inside

    + +
    + +

    + +FRONT +

    + +

    @abstract Indicates HMI available for front seat passengers. +- returns: a SDLHMIZoneCapabilities with value of FRONT

    + + + +

    Objective-C

    +
    + (SDLHMIZoneCapabilities *)FRONT;
    + + +

    Swift

    +
    class func FRONT() -> SDLHMIZoneCapabilities!
    + + + +
    +

    Return Value

    +

    a SDLHMIZoneCapabilities with value of FRONT

    + +
    + +

    + +BACK +

    + +

    @abstract Indicates HMI available for rear seat passengers. +- returns: a SDLHMIZoneCapabilities with value of BACK

    + + + +

    Objective-C

    +
    + (SDLHMIZoneCapabilities *)BACK;
    + + +

    Swift

    +
    class func BACK() -> SDLHMIZoneCapabilities!
    + + + +
    +

    Return Value

    +

    a SDLHMIZoneCapabilities with value of BACK

    + +
    + +
    diff --git a/docs/Classes/SDLHeadLampStatus.html b/docs/Classes/SDLHeadLampStatus.html new file mode 100644 index 000000000..49fc5208c --- /dev/null +++ b/docs/Classes/SDLHeadLampStatus.html @@ -0,0 +1,114 @@ +

    SDLHeadLampStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Status of the head lamps

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLHeadLampStatus object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLHeadLampStatus object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + lowBeamsOn +

    + +

    @abstract A boolean value. Status of the low beam lamps.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *lowBeamsOn;
    + + +

    Swift

    +
    var lowBeamsOn: NSNumber! { get set }
    + + + + +

    + highBeamsOn +

    + +

    @abstract A boolean value. Status of the high beam lamps.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *highBeamsOn;
    + + +

    Swift

    +
    var highBeamsOn: NSNumber! { get set }
    + + + + +

    + ambientLightSensorStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLHeadLampStatus : SDLRPCStruct
    + + + + + +
    diff --git a/docs/Classes/SDLIAPTransport.html b/docs/Classes/SDLIAPTransport.html new file mode 100644 index 000000000..2770de4c5 --- /dev/null +++ b/docs/Classes/SDLIAPTransport.html @@ -0,0 +1,38 @@ +

    SDLIAPTransport Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + controlSession +

    + +

    Undocumented

    + + + + + + +

    + session +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLIgnitionStableStatus.html b/docs/Classes/SDLIgnitionStableStatus.html new file mode 100644 index 000000000..d157c2d50 --- /dev/null +++ b/docs/Classes/SDLIgnitionStableStatus.html @@ -0,0 +1,139 @@ +

    SDLIgnitionStableStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reflects the ignition switch stability.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract return SDLIgnitionStableStatus +- parameter: value The value of the string to get an object for +- returns: SDLIgnitionStableStatus

    + + + +

    Objective-C

    +
    + (SDLIgnitionStableStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLIgnitionStableStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLIgnitionStableStatus

    + +
    + +

    + +values +

    + +

    @abstract store all possible SDLIgnitionStableStatus values +- returns: an array with all possible SDLIgnitionStableStatus values inside

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array with all possible SDLIgnitionStableStatus values inside

    + +
    + +

    + +IGNITION_SWITCH_NOT_STABLE +

    + +

    @abstract The current ignition switch status is considered not to be stable. +- returns: the Ignition Stable Status with value of IGNITION_SWITCH_NOT_STABLE

    + + + +

    Objective-C

    +
    + (SDLIgnitionStableStatus *)IGNITION_SWITCH_NOT_STABLE;
    + + +

    Swift

    +
    class func IGNITION_SWITCH_NOT_STABLE() -> SDLIgnitionStableStatus!
    + + + +
    +

    Return Value

    +

    the Ignition Stable Status with value of IGNITION_SWITCH_NOT_STABLE

    + +
    + +

    + +IGNITION_SWITCH_STABLE +

    + +

    @abstract The current ignition switch status is considered to be stable. +- returns: the Ignition Stable Status with value of IGNITION_SWITCH_STABLE

    + + + +

    Objective-C

    +
    + (SDLIgnitionStableStatus *)IGNITION_SWITCH_STABLE;
    + + +

    Swift

    +
    class func IGNITION_SWITCH_STABLE() -> SDLIgnitionStableStatus!
    + + + +
    +

    Return Value

    +

    the Ignition Stable Status with value of IGNITION_SWITCH_STABLE

    + +
    + +

    + +MISSING_FROM_TRANSMITTER +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLIgnitionStableStatus : SDLEnum
    + + + + + +
    diff --git a/docs/Classes/SDLIgnitionStatus.html b/docs/Classes/SDLIgnitionStatus.html new file mode 100644 index 000000000..ce6e58e8e --- /dev/null +++ b/docs/Classes/SDLIgnitionStatus.html @@ -0,0 +1,223 @@ +

    SDLIgnitionStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reflects the status of ignition..

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract return SDLIgnitionStatus +- parameter: value The value of the string to get an object for +- returns: SDLIgnitionStatus object

    + + + +

    Objective-C

    +
    + (SDLIgnitionStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLIgnitionStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLIgnitionStatus object

    + +
    + +

    + +values +

    + +

    @abstract store all possible SDLIgnitionStatus values +- returns: an array with all possible SDLIgnitionStatus values inside

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array with all possible SDLIgnitionStatus values inside

    + +
    + +

    + +UNKNOWN +

    + +

    @abstract Ignition status currently unknown +- returns: Ignition Status with value of UNKNOWN

    + + + +

    Objective-C

    +
    + (SDLIgnitionStatus *)UNKNOWN;
    + + +

    Swift

    +
    class func UNKNOWN() -> SDLIgnitionStatus!
    + + + +
    +

    Return Value

    +

    Ignition Status with value of UNKNOWN

    + +
    + +

    + +OFF +

    + +

    @abstract Ignition is off +- returns: Ignition Status with value of OFF

    + + + +

    Objective-C

    +
    + (SDLIgnitionStatus *)OFF;
    + + +

    Swift

    +
    class func OFF() -> SDLIgnitionStatus!
    + + + +
    +

    Return Value

    +

    Ignition Status with value of OFF

    + +
    + +

    + +ACCESSORY +

    + +

    @abstract Ignition is in mode accessory +- returns: Ignition Status with value of ACCESSORY

    + + + +

    Objective-C

    +
    + (SDLIgnitionStatus *)ACCESSORY;
    + + +

    Swift

    +
    class func ACCESSORY() -> SDLIgnitionStatus!
    + + + +
    +

    Return Value

    +

    Ignition Status with value of ACCESSORY

    + +
    + +

    + +RUN +

    + +

    @abstract Ignition is in mode run +- returns: Ignition Status with value of RUN

    + + + +

    Objective-C

    +
    + (SDLIgnitionStatus *)RUN;
    + + +

    Swift

    +
    class func RUN() -> SDLIgnitionStatus!
    + + + +
    +

    Return Value

    +

    Ignition Status with value of RUN

    + +
    + +

    + +START +

    + +

    @abstract Ignition is in mode start +- returns: Ignition Status with value of START

    + + + +

    Objective-C

    +
    + (SDLIgnitionStatus *)START;
    + + +

    Swift

    +
    class func START() -> SDLIgnitionStatus!
    + + + +
    +

    Return Value

    +

    Ignition Status with value of START

    + +
    + +

    + +INVALID +

    + +

    @abstract Signal is invalid +- returns: Ignition Status with value of INVALID

    + + + +

    Objective-C

    +
    + (SDLIgnitionStatus *)INVALID;
    + + +

    Swift

    +
    class func INVALID() -> SDLIgnitionStatus!
    + + + +
    +

    Return Value

    +

    Ignition Status with value of INVALID

    + +
    + +
    diff --git a/docs/Classes/SDLImage.html b/docs/Classes/SDLImage.html new file mode 100644 index 000000000..9883b8537 --- /dev/null +++ b/docs/Classes/SDLImage.html @@ -0,0 +1,103 @@ +

    SDLImage Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Specifies, which image shall be used, e.g. in SDLAlerts or on SDLSoftbuttons provided the display supports it.

    + +

    @since SDL 2.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLImage object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLImage object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + value +

    + +

    @abstract The static hex icon value or the binary image file name identifier (sent by SDLPutFile)

    + +

    Required, max length = 65535

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *value;
    + + +

    Swift

    +
    var value: String! { get set }
    + + + + +

    + imageType +

    + +

    @abstract Describes, whether it is a static or dynamic image

    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLImageType *imageType;
    + + +

    Swift

    +
    var imageType: SDLImageType! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLImageField.html b/docs/Classes/SDLImageField.html new file mode 100644 index 000000000..259d310fa --- /dev/null +++ b/docs/Classes/SDLImageField.html @@ -0,0 +1,74 @@ +

    SDLImageField Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + name +

    + +

    Undocumented

    + + + + + + +

    + imageTypeSupported +

    + +

    Undocumented

    + + + + + + +

    + imageResolution +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLImageFieldName.html b/docs/Classes/SDLImageFieldName.html new file mode 100644 index 000000000..eefff5f79 --- /dev/null +++ b/docs/Classes/SDLImageFieldName.html @@ -0,0 +1,290 @@ +

    SDLImageFieldName Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The name that identifies the filed. + * + * + * @since SmartDeviceLink 3.0 + *

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLImageFieldName : SDLEnum
    + + + + + +

    + +values +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLImageFieldName : SDLEnum
    + + + + + +

    + +softButtonImage +

    + +

    The image field for SoftButton + *

    + + + +

    Objective-C

    +
    + (SDLImageFieldName *)softButtonImage;
    + + +

    Swift

    +
    class func softButtonImage() -> SDLImageFieldName!
    + + + + +

    + +choiceImage +

    + +

    The first image field for Choice. + *

    + + + +

    Objective-C

    +
    + (SDLImageFieldName *)choiceImage;
    + + +

    Swift

    +
    class func choiceImage() -> SDLImageFieldName!
    + + + + +

    + +choiceSecondaryImage +

    + +

    The scondary image field for Choice. + *

    + + + +

    Objective-C

    +
    + (SDLImageFieldName *)choiceSecondaryImage;
    + + +

    Swift

    +
    class func choiceSecondaryImage() -> SDLImageFieldName!
    + + + + +

    + +vrHelpItem +

    + +

    The image field for vrHelpItem. + *

    + + + +

    Objective-C

    +
    + (SDLImageFieldName *)vrHelpItem;
    + + +

    Swift

    +
    class func vrHelpItem() -> SDLImageFieldName!
    + + + + +

    + +turnIcon +

    + +

    The image field for Turn. + *

    + + + +

    Objective-C

    +
    + (SDLImageFieldName *)turnIcon;
    + + +

    Swift

    +
    class func turnIcon() -> SDLImageFieldName!
    + + + + +

    + +menuIcon +

    + +

    The image field for the menu icon in SetGlobalProperties. + *

    + + + +

    Objective-C

    +
    + (SDLImageFieldName *)menuIcon;
    + + +

    Swift

    +
    class func menuIcon() -> SDLImageFieldName!
    + + + + +

    + +cmdIcon +

    + +

    The image filed for AddCommand. + *

    + + + +

    Objective-C

    +
    + (SDLImageFieldName *)cmdIcon;
    + + +

    Swift

    +
    class func cmdIcon() -> SDLImageFieldName!
    + + + + +

    + +appIcon +

    + +

    The iamage field for the app icon ( set by setAppIcon). + *

    + + + +

    Objective-C

    +
    + (SDLImageFieldName *)appIcon;
    + + +

    Swift

    +
    class func appIcon() -> SDLImageFieldName!
    + + + + +

    + +graphic +

    + +

    The image filed for Show. + *

    + + + +

    Objective-C

    +
    + (SDLImageFieldName *)graphic;
    + + +

    Swift

    +
    class func graphic() -> SDLImageFieldName!
    + + + + +

    + +showConstantTBTIcon +

    + +

    The primary image field for ShowConstant TBT. + *

    + + + +

    Objective-C

    +
    + (SDLImageFieldName *)showConstantTBTIcon;
    + + +

    Swift

    +
    class func showConstantTBTIcon() -> SDLImageFieldName!
    + + + + +

    + +showConstantTBTNextTurnIcon +

    + +

    The secondary image field for ShowConstant TBT. + *

    + + + +

    Objective-C

    +
    + (SDLImageFieldName *)showConstantTBTNextTurnIcon;
    + + +

    Swift

    +
    class func showConstantTBTNextTurnIcon() -> SDLImageFieldName!
    + + + + +

    + +locationImage +

    + +

    The optional image of a destination / location +@since SDL 4.0

    + + + +

    Objective-C

    +
    + (SDLImageFieldName *)locationImage;
    + + +

    Swift

    +
    class func locationImage() -> SDLImageFieldName!
    + + + + +
    diff --git a/docs/Classes/SDLImageResolution.html b/docs/Classes/SDLImageResolution.html new file mode 100644 index 000000000..09f77f90f --- /dev/null +++ b/docs/Classes/SDLImageResolution.html @@ -0,0 +1,62 @@ +

    SDLImageResolution Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + resolutionWidth +

    + +

    Undocumented

    + + + + + + +

    + resolutionHeight +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLImageType.html b/docs/Classes/SDLImageType.html new file mode 100644 index 000000000..2f97e7bab --- /dev/null +++ b/docs/Classes/SDLImageType.html @@ -0,0 +1,124 @@ +

    SDLImageType Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Contains information about the type of image.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract return SDLImageType (STATIC / DYNAMIC)

    + + + +

    Objective-C

    +
    + (SDLImageType *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLImageType!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    An SDLImageType

    + +
    + +

    + +values +

    + +

    @abstract store all possible SDLImageType values

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    An array with all possible SDLImageType values inside

    + +
    + +

    + +STATIC +

    + +

    @abstract Just the static hex icon value to be used

    + + + +

    Objective-C

    +
    + (SDLImageType *)STATIC;
    + + +

    Swift

    +
    class func STATIC() -> SDLImageType!
    + + + +
    +

    Return Value

    +

    The Image Type with value STATIC

    + +
    + +

    + +DYNAMIC +

    + +

    @abstract Binary image file to be used (identifier to be sent by SDLPutFile)

    + +
    +

    See

    +

    SDLPutFile

    + +
    + + + +

    Objective-C

    +
    + (SDLImageType *)DYNAMIC;
    + + +

    Swift

    +
    class func DYNAMIC() -> SDLImageType!
    + + + +
    +

    Return Value

    +

    The Image Type with value DYNAMIC

    + +
    + +
    diff --git a/docs/Classes/SDLInteractionMode.html b/docs/Classes/SDLInteractionMode.html new file mode 100644 index 000000000..b5ab5a29c --- /dev/null +++ b/docs/Classes/SDLInteractionMode.html @@ -0,0 +1,152 @@ +

    SDLInteractionMode Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    For application-initiated interactions (SDLPerformInteraction), this specifies the mode by which the user is prompted and by which the user’s selection is indicated

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract SDLInteractionMode +- parameter: value The value of the string to get an object for +- returns: SDLInteractionMode

    + + + +

    Objective-C

    +
    + (SDLInteractionMode *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLInteractionMode!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLInteractionMode

    + +
    + +

    + +values +

    + +

    @abstract store all possible SDLInteractionMode values +- returns: an array with all possible SDLInteractionMode values inside

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array with all possible SDLInteractionMode values inside

    + +
    + +

    + +MANUAL_ONLY +

    + +

    @abstract Interaction Mode : Manual Only + @discussion This mode causes the interaction to occur only on the display, meaning the choices are presented and selected only via the display. Selections are viewed with the SEEKRIGHT, SEEKLEFT, TUNEUP, TUNEDOWN buttons. User’s selection is indicated with the OK button

    + + + +

    Objective-C

    +
    + (SDLInteractionMode *)MANUAL_ONLY;
    + + +

    Swift

    +
    class func MANUAL_ONLY() -> SDLInteractionMode!
    + + + +
    +

    Return Value

    +

    Current Interaction Mode with value of MANUAL_ONLY

    + +
    + +

    + +VR_ONLY +

    + +

    @abstract Interaction Mode : VR Only + @discussion This mode causes the interaction to occur only through TTS and VR. The user is prompted via TTS to select a choice by saying one of the choice’s synonyms

    + + + +

    Objective-C

    +
    + (SDLInteractionMode *)VR_ONLY;
    + + +

    Swift

    +
    class func VR_ONLY() -> SDLInteractionMode!
    + + + +
    +

    Return Value

    +

    Current Interaction Mode with value of VR_ONLY

    + +
    + +

    + +BOTH +

    + +

    @abstract Interaction Mode : Manual & VR + @discussion This mode is a combination of MANUAL_ONLY and VR_ONLY, meaning the user is prompted both visually and audibly. The user can make a selection either using the mode described in MANUAL_ONLY or using the mode described in VR_ONLY.

    + +

    If the user views selections as described in MANUAL_ONLY mode, the interaction becomes strictly, and irreversibly, a MANUAL_ONLY interaction (i.e. the VR session is cancelled, although the interaction itself is still in progress). If the user interacts with the VR session in any way (e.g. speaks a phrase, even if it is not a recognized choice), the interaction becomes strictly, and irreversibly, a VR_ONLY interaction (i.e. the MANUAL_ONLY mode forms of interaction will no longer be honored)

    + +

    The TriggerSource parameter of the PerformInteraction response will indicate which interaction mode the user finally chose to attempt the selection (even if the interaction did not end with a selection being made)

    + + + +

    Objective-C

    +
    + (SDLInteractionMode *)BOTH;
    + + +

    Swift

    +
    class func BOTH() -> SDLInteractionMode!
    + + + +
    +

    Return Value

    +

    Current Interaction Mode with value of BOTH

    + +
    + +
    diff --git a/docs/Classes/SDLJingle.html b/docs/Classes/SDLJingle.html new file mode 100644 index 000000000..806b27b9f --- /dev/null +++ b/docs/Classes/SDLJingle.html @@ -0,0 +1,74 @@ +

    SDLJingle Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +NEGATIVE_JINGLE +

    + +

    Undocumented

    + + + + + + +

    + +POSITIVE_JINGLE +

    + +

    Undocumented

    + + + + + + +

    + +LISTEN_JINGLE +

    + +

    Undocumented

    + + + + + + +

    + +INITIAL_JINGLE +

    + +

    Undocumented

    + + + + + + +

    + +HELP_JINGLE +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLKeyboardEvent.html b/docs/Classes/SDLKeyboardEvent.html new file mode 100644 index 000000000..98ac8c708 --- /dev/null +++ b/docs/Classes/SDLKeyboardEvent.html @@ -0,0 +1,148 @@ +

    SDLKeyboardEvent Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Enumeration listing possible keyboard events. + * + * @since SmartDeviceLink 3.0 + *

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLKeyboardEvent : SDLEnum
    + + + + + +

    + +values +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLKeyboardEvent : SDLEnum
    + + + + + +

    + +KEYPRESS +

    + +

    The use has pressed the keyboard key (applies to both SINGLE_KEYPRESS and RESEND_CURRENT_ENTRY modes). + *

    + + + +

    Objective-C

    +
    + (SDLKeyboardEvent *)KEYPRESS;
    + + +

    Swift

    +
    class func KEYPRESS() -> SDLKeyboardEvent!
    + + + + +

    + +ENTRY_SUBMITTED +

    + +

    The User has finished entering text from the keyboard and submitted the entry. + *

    + + + +

    Objective-C

    +
    + (SDLKeyboardEvent *)ENTRY_SUBMITTED;
    + + +

    Swift

    +
    class func ENTRY_SUBMITTED() -> SDLKeyboardEvent!
    + + + + +

    + +ENTRY_CANCELLED +

    + +

    The User has pressed the HMI-defined Cancel button. + *

    + + + +

    Objective-C

    +
    + (SDLKeyboardEvent *)ENTRY_CANCELLED;
    + + +

    Swift

    +
    class func ENTRY_CANCELLED() -> SDLKeyboardEvent!
    + + + + +

    + +ENTRY_ABORTED +

    + +

    The User has not finished entering text and the keyboard is aborted with the event of higher priority. + *

    + + + +

    Objective-C

    +
    + (SDLKeyboardEvent *)ENTRY_ABORTED;
    + + +

    Swift

    +
    class func ENTRY_ABORTED() -> SDLKeyboardEvent!
    + + + + +

    + +ENTRY_VOICE +

    + +

    @since SDL 4.0

    + + + +

    Objective-C

    +
    + (SDLKeyboardEvent *)ENTRY_VOICE;
    + + +

    Swift

    +
    class func ENTRY_VOICE() -> SDLKeyboardEvent!
    + + + + +
    diff --git a/docs/Classes/SDLKeyboardLayout.html b/docs/Classes/SDLKeyboardLayout.html new file mode 100644 index 000000000..b3b3641a4 --- /dev/null +++ b/docs/Classes/SDLKeyboardLayout.html @@ -0,0 +1,109 @@ +

    SDLKeyboardLayout Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Enumeration listing possible keyboard layouts + * + *Since SmartDeviceLink 3.0 + *

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLKeyboardLayout : SDLEnum
    + + + + + +

    + +values +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLKeyboardLayout : SDLEnum
    + + + + + +

    + +QWERTY +

    + +

    QWERTY layout (the name comes from the first six keys
    appearing on the top left letter row of the keyboard and read from left to right) + *

    + + + +

    Objective-C

    +
    + (SDLKeyboardLayout *)QWERTY;
    + + +

    Swift

    +
    class func QWERTY() -> SDLKeyboardLayout!
    + + + + +

    + +QWERTZ +

    + +

    QWERTZ layout (the name comes from the first six keys
    appearing on the top left letter row of the keyboard and read from left to right) + *

    + + + +

    Objective-C

    +
    + (SDLKeyboardLayout *)QWERTZ;
    + + +

    Swift

    +
    class func QWERTZ() -> SDLKeyboardLayout!
    + + + + +

    + +AZERTY +

    + +

    AZERTY layout (the name comes from the first six keys
    appearing on the top left letter row of the keyboard and read from left to right) + *

    + + + +

    Objective-C

    +
    + (SDLKeyboardLayout *)AZERTY;
    + + +

    Swift

    +
    class func AZERTY() -> SDLKeyboardLayout!
    + + + + +
    diff --git a/docs/Classes/SDLKeyboardProperties.html b/docs/Classes/SDLKeyboardProperties.html new file mode 100644 index 000000000..c015a884f --- /dev/null +++ b/docs/Classes/SDLKeyboardProperties.html @@ -0,0 +1,98 @@ +

    SDLKeyboardProperties Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + language +

    + +

    Undocumented

    + + + + + + +

    + keyboardLayout +

    + +

    Undocumented

    + + + + + + +

    + keypressMode +

    + +

    Undocumented

    + + + + + + +

    + limitedCharacterList +

    + +

    Undocumented

    + + + + + + +

    + autoCompleteText +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLKeypressMode.html b/docs/Classes/SDLKeypressMode.html new file mode 100644 index 000000000..de7c88ab4 --- /dev/null +++ b/docs/Classes/SDLKeypressMode.html @@ -0,0 +1,111 @@ +

    SDLKeypressMode Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Enumeration listing possible keyboard events. + *

    + * Note: Depending on keypressMode value (from keyboardProperties structure of UI.SetGlobalProperties),
    HMI must send the onKeyboardInput notification with the following data:
    + SINGLE_KEYPRESS,QUEUE_KEYPRESSES,RESEND_CURRENT_ENTRY. + * @since SmartDeviceLink 3.0 + *

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLKeypressMode : SDLEnum
    + + + + + +

    + +values +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLKeypressMode : SDLEnum
    + + + + + +

    + +SINGLE_KEYPRESS +

    + +

    SINGLE_KEYPRESS:
    Each and every User`s keypress must be reported (new notification for every newly entered single symbol). + *

    + + + +

    Objective-C

    +
    + (SDLKeypressMode *)SINGLE_KEYPRESS;
    + + +

    Swift

    +
    class func SINGLE_KEYPRESS() -> SDLKeypressMode!
    + + + + +

    + +QUEUE_KEYPRESSES +

    + +

    QUEUE_KEYPRESSES:
    The whole entry is reported only after the User submits it (by ‘Search’ button click displayed on touchscreen keyboard) + *

    + + + +

    Objective-C

    +
    + (SDLKeypressMode *)QUEUE_KEYPRESSES;
    + + +

    Swift

    +
    class func QUEUE_KEYPRESSES() -> SDLKeypressMode!
    + + + + +

    + +RESEND_CURRENT_ENTRY +

    + +

    RESEND_CURRENT_ENTRY:
    The whole entry must be reported each and every time the User makes a new keypress
    (new notification with all previously entered symbols and a newly entered one appended). + *

    + + + +

    Objective-C

    +
    + (SDLKeypressMode *)RESEND_CURRENT_ENTRY;
    + + +

    Swift

    +
    class func RESEND_CURRENT_ENTRY() -> SDLKeypressMode!
    + + + + +
    diff --git a/docs/Classes/SDLLanguage.html b/docs/Classes/SDLLanguage.html new file mode 100644 index 000000000..248d61687 --- /dev/null +++ b/docs/Classes/SDLLanguage.html @@ -0,0 +1,523 @@ +

    SDLLanguage Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Specifies the language to be used for TTS, VR, displayed messages/menus

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Get a Langusge according to a String

    + + + +

    Objective-C

    +
    + (SDLLanguage *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLLanguage!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    The Language

    + +
    + +

    + +values +

    + +

    @abstract store all possible Language values

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array with all possible Language values inside

    + +
    + +

    + +EN_US +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLLanguage : SDLEnum
    + + + + + +

    + +ES_MX +

    + +

    @abstract Spanish - Mexico

    + + + +

    Objective-C

    +
    + (SDLLanguage *)ES_MX;
    + + +

    Swift

    +
    class func ES_MX() -> SDLLanguage!
    + + + + +

    + +FR_CA +

    + +

    @abstract French - Canada

    + + + +

    Objective-C

    +
    + (SDLLanguage *)FR_CA;
    + + +

    Swift

    +
    class func FR_CA() -> SDLLanguage!
    + + + + +

    + +DE_DE +

    + +

    @abstract German - Germany

    + + + +

    Objective-C

    +
    + (SDLLanguage *)DE_DE;
    + + +

    Swift

    +
    class func DE_DE() -> SDLLanguage!
    + + + + +

    + +ES_ES +

    + +

    @abstract Spanish - Spain

    + + + +

    Objective-C

    +
    + (SDLLanguage *)ES_ES;
    + + +

    Swift

    +
    class func ES_ES() -> SDLLanguage!
    + + + + +

    + +EN_GB +

    + +

    @abstract English - Great Britain

    + + + +

    Objective-C

    +
    + (SDLLanguage *)EN_GB;
    + + +

    Swift

    +
    class func EN_GB() -> SDLLanguage!
    + + + + +

    + +RU_RU +

    + +

    @abstract Russian - Russia

    + + + +

    Objective-C

    +
    + (SDLLanguage *)RU_RU;
    + + +

    Swift

    +
    class func RU_RU() -> SDLLanguage!
    + + + + +

    + +TR_TR +

    + +

    @abstract Turkish - Turkey

    + + + +

    Objective-C

    +
    + (SDLLanguage *)TR_TR;
    + + +

    Swift

    +
    class func TR_TR() -> SDLLanguage!
    + + + + +

    + +PL_PL +

    + +

    @abstract Polish - Poland

    + + + +

    Objective-C

    +
    + (SDLLanguage *)PL_PL;
    + + +

    Swift

    +
    class func PL_PL() -> SDLLanguage!
    + + + + +

    + +FR_FR +

    + +

    @abstract French - France

    + + + +

    Objective-C

    +
    + (SDLLanguage *)FR_FR;
    + + +

    Swift

    +
    class func FR_FR() -> SDLLanguage!
    + + + + +

    + +IT_IT +

    + +

    @abstract Italian - Italy

    + + + +

    Objective-C

    +
    + (SDLLanguage *)IT_IT;
    + + +

    Swift

    +
    class func IT_IT() -> SDLLanguage!
    + + + + +

    + +SV_SE +

    + +

    @abstract Swedish - Sweden

    + + + +

    Objective-C

    +
    + (SDLLanguage *)SV_SE;
    + + +

    Swift

    +
    class func SV_SE() -> SDLLanguage!
    + + + + +

    + +PT_PT +

    + +

    @abstract Portuguese - Portugal

    + + + +

    Objective-C

    +
    + (SDLLanguage *)PT_PT;
    + + +

    Swift

    +
    class func PT_PT() -> SDLLanguage!
    + + + + +

    + +NL_NL +

    + +

    @abstract Dutch (Standard) - Netherlands

    + + + +

    Objective-C

    +
    + (SDLLanguage *)NL_NL;
    + + +

    Swift

    +
    class func NL_NL() -> SDLLanguage!
    + + + + +

    + +EN_AU +

    + +

    @abstract English - Australia

    + + + +

    Objective-C

    +
    + (SDLLanguage *)EN_AU;
    + + +

    Swift

    +
    class func EN_AU() -> SDLLanguage!
    + + + + +

    + +ZH_CN +

    + +

    @abstract Mandarin - China

    + + + +

    Objective-C

    +
    + (SDLLanguage *)ZH_CN;
    + + +

    Swift

    +
    class func ZH_CN() -> SDLLanguage!
    + + + + +

    + +ZH_TW +

    + +

    @abstract Mandarin - Taiwan

    + + + +

    Objective-C

    +
    + (SDLLanguage *)ZH_TW;
    + + +

    Swift

    +
    class func ZH_TW() -> SDLLanguage!
    + + + + +

    + +JA_JP +

    + +

    @abstract Japanese - Japan

    + + + +

    Objective-C

    +
    + (SDLLanguage *)JA_JP;
    + + +

    Swift

    +
    class func JA_JP() -> SDLLanguage!
    + + + + +

    + +AR_SA +

    + +

    @abstract Arabic - Saudi Arabia

    + + + +

    Objective-C

    +
    + (SDLLanguage *)AR_SA;
    + + +

    Swift

    +
    class func AR_SA() -> SDLLanguage!
    + + + + +

    + +KO_KR +

    + +

    @abstract Korean - South Korea

    + + + +

    Objective-C

    +
    + (SDLLanguage *)KO_KR;
    + + +

    Swift

    +
    class func KO_KR() -> SDLLanguage!
    + + + + +

    + +PT_BR +

    + +

    @abstract Portuguese - Brazil

    + + + +

    Objective-C

    +
    + (SDLLanguage *)PT_BR;
    + + +

    Swift

    +
    class func PT_BR() -> SDLLanguage!
    + + + + +

    + +CS_CZ +

    + +

    @abstract Czech - Czech Republic

    + + + +

    Objective-C

    +
    + (SDLLanguage *)CS_CZ;
    + + +

    Swift

    +
    class func CS_CZ() -> SDLLanguage!
    + + + + +

    + +DA_DK +

    + +

    @abstract Danish - Denmark

    + + + +

    Objective-C

    +
    + (SDLLanguage *)DA_DK;
    + + +

    Swift

    +
    class func DA_DK() -> SDLLanguage!
    + + + + +

    + +NO_NO +

    + +

    @abstract Norwegian - Norway

    + + + +

    Objective-C

    +
    + (SDLLanguage *)NO_NO;
    + + +

    Swift

    +
    class func NO_NO() -> SDLLanguage!
    + + + + +
    diff --git a/docs/Classes/SDLLayoutMode.html b/docs/Classes/SDLLayoutMode.html new file mode 100644 index 000000000..eee8ccf9e --- /dev/null +++ b/docs/Classes/SDLLayoutMode.html @@ -0,0 +1,143 @@ +

    SDLLayoutMode Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    For touchscreen interactions, the mode of how the choices are presented.

    + +

    @since SDL 3.0

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLLayoutMode : SDLEnum
    + + + + + +

    + +values +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLLayoutMode : SDLEnum
    + + + + + +

    + +ICON_ONLY +

    + +

    This mode causes the interaction to display the previous set of choices as icons.

    + + + +

    Objective-C

    +
    + (SDLLayoutMode *)ICON_ONLY;
    + + +

    Swift

    +
    class func ICON_ONLY() -> SDLLayoutMode!
    + + + + +

    + +ICON_WITH_SEARCH +

    + +

    This mode causes the interaction to display the previous set of choices as icons along with a search field in the HMI.

    + + + +

    Objective-C

    +
    + (SDLLayoutMode *)ICON_WITH_SEARCH;
    + + +

    Swift

    +
    class func ICON_WITH_SEARCH() -> SDLLayoutMode!
    + + + + +

    + +LIST_ONLY +

    + +

    This mode causes the interaction to display the previous set of choices as a list.

    + + + +

    Objective-C

    +
    + (SDLLayoutMode *)LIST_ONLY;
    + + +

    Swift

    +
    class func LIST_ONLY() -> SDLLayoutMode!
    + + + + +

    + +LIST_WITH_SEARCH +

    + +

    This mode causes the interaction to display the previous set of choices as a list along with a search field in the HMI.

    + + + +

    Objective-C

    +
    + (SDLLayoutMode *)LIST_WITH_SEARCH;
    + + +

    Swift

    +
    class func LIST_WITH_SEARCH() -> SDLLayoutMode!
    + + + + +

    + +KEYBOARD +

    + +

    This mode causes the interaction to immediately display a keyboard entry through the HMI.

    + + + +

    Objective-C

    +
    + (SDLLayoutMode *)KEYBOARD;
    + + +

    Swift

    +
    class func KEYBOARD() -> SDLLayoutMode!
    + + + + +
    diff --git a/docs/Classes/SDLListFiles.html b/docs/Classes/SDLListFiles.html new file mode 100644 index 000000000..d013d6399 --- /dev/null +++ b/docs/Classes/SDLListFiles.html @@ -0,0 +1,63 @@ +

    SDLListFiles Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Requests the current list of resident filenames for the registered app. Not + supported on First generation SDL vehicles +

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    Constructs a new SDLListFiles object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLListFiles object indicated by the dictionary parameter +

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLListFilesResponse.html b/docs/Classes/SDLListFilesResponse.html new file mode 100644 index 000000000..a2d3040b9 --- /dev/null +++ b/docs/Classes/SDLListFilesResponse.html @@ -0,0 +1,80 @@ +

    SDLListFilesResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLListFilesResponse is sent, when SDLListFiles has been called

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLListFilesResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLListFilesResponse : SDLRPCResponse
    + + + + + +

    + filenames +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLListFilesResponse : SDLRPCResponse
    + + + + + +

    + spaceAvailable +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLListFilesResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLLockScreenStatus.html b/docs/Classes/SDLLockScreenStatus.html new file mode 100644 index 000000000..0ea77ba47 --- /dev/null +++ b/docs/Classes/SDLLockScreenStatus.html @@ -0,0 +1,95 @@ +

    SDLLockScreenStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + + + + +

    + +values +

    + +

    Undocumented

    + + + + + + +

    + +OFF +

    + +

    LockScreen is Not Required

    + + + +

    Objective-C

    +
    + (SDLLockScreenStatus *)OFF;
    + + +

    Swift

    +
    class func OFF() -> SDLLockScreenStatus!
    + + + + +

    + +OPTIONAL +

    + +

    LockScreen is Optional

    + + + +

    Objective-C

    +
    + (SDLLockScreenStatus *)OPTIONAL;
    + + +

    Swift

    +
    class func OPTIONAL() -> SDLLockScreenStatus!
    + + + + +

    + +REQUIRED +

    + +

    LockScreen is Not Required

    + + + +

    Objective-C

    +
    + (SDLLockScreenStatus *)REQUIRED;
    + + +

    Swift

    +
    class func REQUIRED() -> SDLLockScreenStatus!
    + + + + +
    diff --git a/docs/Classes/SDLMaintenanceModeStatus.html b/docs/Classes/SDLMaintenanceModeStatus.html new file mode 100644 index 000000000..c4bd375c5 --- /dev/null +++ b/docs/Classes/SDLMaintenanceModeStatus.html @@ -0,0 +1,171 @@ +

    SDLMaintenanceModeStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The SDLMaintenanceModeStatus class.

    + + +
    +

    + +valueOf: +

    + +

    @abstract Maintenance Mode Status +- parameter: value The value of the string to get an object for +- returns: SDLMaintenanceModeStatus

    + + + +

    Objective-C

    +
    + (SDLMaintenanceModeStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLMaintenanceModeStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLMaintenanceModeStatus

    + +
    + +

    + +values +

    + +

    @abstract declare an array that store all possible Maintenance Mode Status inside +- returns: the array

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    the array

    + +
    + +

    + +NORMAL +

    + +

    @abstract Maintenance Mode Status : Normal +- returns: the object with value of NORMAL

    + + + +

    Objective-C

    +
    + (SDLMaintenanceModeStatus *)NORMAL;
    + + +

    Swift

    +
    class func NORMAL() -> SDLMaintenanceModeStatus!
    + + + +
    +

    Return Value

    +

    the object with value of NORMAL

    + +
    + +

    + +NEAR +

    + +

    @abstract Maintenance Mode Status : Near +- returns: the object with value of NEAR

    + + + +

    Objective-C

    +
    + (SDLMaintenanceModeStatus *)NEAR;
    + + +

    Swift

    +
    class func NEAR() -> SDLMaintenanceModeStatus!
    + + + +
    +

    Return Value

    +

    the object with value of NEAR

    + +
    + +

    + +ACTIVE +

    + +

    @abstract Maintenance Mode Status : Active +- returns: the object with value of ACTIVE

    + + + +

    Objective-C

    +
    + (SDLMaintenanceModeStatus *)ACTIVE;
    + + +

    Swift

    +
    class func ACTIVE() -> SDLMaintenanceModeStatus!
    + + + +
    +

    Return Value

    +

    the object with value of ACTIVE

    + +
    + +

    + +FEATURE_NOT_PRESENT +

    + +

    @abstract Maintenance Mode Status : Feature not present +- returns: the object with value of FEATURE_NOT_PRESENT

    + + + +

    Objective-C

    +
    + (SDLMaintenanceModeStatus *)FEATURE_NOT_PRESENT;
    + + +

    Swift

    +
    class func FEATURE_NOT_PRESENT() -> SDLMaintenanceModeStatus!
    + + + +
    +

    Return Value

    +

    the object with value of FEATURE_NOT_PRESENT

    + +
    + +
    diff --git a/docs/Classes/SDLMediaClockFormat.html b/docs/Classes/SDLMediaClockFormat.html new file mode 100644 index 000000000..eff7282af --- /dev/null +++ b/docs/Classes/SDLMediaClockFormat.html @@ -0,0 +1,320 @@ +

    SDLMediaClockFormat Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Indicates the format of the time displayed on the connected SDL unit.

    + +

    Format description follows the following nomenclature:
    + Sp = Space
    + | = or
    + c = character

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract Media Clock Format

    + + + +

    Objective-C

    +
    + (SDLMediaClockFormat *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLMediaClockFormat!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLMediaClockFormat

    + +
    + +

    + +values +

    + +

    @abstract declare an array that store all possible Media clock formats inside

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    the array

    + +
    + +

    + +CLOCK1 +

    + +

    @abstract Media clock format: Clock1

    + +

    @discussion +

      +
    • maxHours = 19
    • +
    • maxMinutes = 59
    • +
    • maxSeconds = 59
    • +

    + +
      +
    • - returns: The SDLMediaClockFormat object with value CLOCK1
    • +
    + + + +

    Objective-C

    +
    + (SDLMediaClockFormat *)CLOCK1;
    + + +

    Swift

    +
    class func CLOCK1() -> SDLMediaClockFormat!
    + + + +
    +

    Return Value

    +

    The SDLMediaClockFormat object with value CLOCK1

    + +
    + +

    + +CLOCK2 +

    + +

    @abstract Media clock format: Clock2

    + +

    @discussion +

      +
    • maxHours = 59
    • +
    • maxMinutes = 59
    • +
    • maxSeconds = 59
    • +

    + + + +

    Objective-C

    +
    + (SDLMediaClockFormat *)CLOCK2;
    + + +

    Swift

    +
    class func CLOCK2() -> SDLMediaClockFormat!
    + + + +
    +

    Return Value

    +

    The SDLMediaClockFormat object with value CLOCK2

    + +
    + +

    + +CLOCK3 +

    + +

    @abstract Media clock format: Clock3

    + +

    @discussion +

      +
    • maxHours = 9
    • +
    • maxMinutes = 59
    • +
    • maxSeconds = 59
    • +

    + +

    @since SDL 2.0 + - returns: The SDLMediaClockFormat object with value CLOCK3

    + + + +

    Objective-C

    +
    + (SDLMediaClockFormat *)CLOCK3;
    + + +

    Swift

    +
    class func CLOCK3() -> SDLMediaClockFormat!
    + + + +
    +

    Return Value

    +

    The SDLMediaClockFormat object with value CLOCK3

    + +
    + +

    + +CLOCKTEXT1 +

    + +

    @abstract Media clock format: ClockText1

    + +

    @discussion +

      +
    • 5 characters possible
    • +
    • Format: 1|sp c :|sp c c
    • +
    • 1|sp : digit 1 or space
    • +
    • c : character out of following character set: sp|0-9|[letters, see + TypeII column in XLS.
    • +
    • :|sp : colon or space
    • +
    • used for Type II headunit
    • +

    + + + +

    Objective-C

    +
    + (SDLMediaClockFormat *)CLOCKTEXT1;
    + + +

    Swift

    +
    class func CLOCKTEXT1() -> SDLMediaClockFormat!
    + + + +
    +

    Return Value

    +

    The SDLMediaClockFormat object with value CLOCKTEXT1

    + +
    + +

    + +CLOCKTEXT2 +

    + +

    @abstract Media clock format: ClockText2

    + +

    @discussion +

      +
    • 5 characters possible
    • +
    • Format: 1|sp c :|sp c c
    • +
    • 1|sp : digit 1 or space
    • +
    • c : character out of following character set: sp|0-9|[letters, see + CID column in XLS.
    • +
    • :|sp : colon or space
    • +
    • used for CID headunit
    • +
    + difference between CLOCKTEXT1 and CLOCKTEXT2 is the supported character + set

    + + + +

    Objective-C

    +
    + (SDLMediaClockFormat *)CLOCKTEXT2;
    + + +

    Swift

    +
    class func CLOCKTEXT2() -> SDLMediaClockFormat!
    + + + +
    +

    Return Value

    +

    The SDLMediaClockFormat object with value CLOCKTEXT2

    + +
    + +

    + +CLOCKTEXT3 +

    + +

    @abstract Media clock format: ClockText3

    + +

    @discussion +

      +
    • 6 chars possible
    • +
    • Format: 1|sp c c :|sp c c
    • +
    • 1|sp : digit 1 or space
    • +
    • c : character out of following character set: sp|0-9|[letters, see + Type 5 column in XLS].
    • +
    • :|sp : colon or space
    • +
    • used for Type V headunit
    • +
    + difference between CLOCKTEXT1 and CLOCKTEXT2 is the supported character + set

    + + + +

    Objective-C

    +
    + (SDLMediaClockFormat *)CLOCKTEXT3;
    + + +

    Swift

    +
    class func CLOCKTEXT3() -> SDLMediaClockFormat!
    + + + +
    +

    Return Value

    +

    The SDLMediaClockFormat object with value CLOCKTEXT3

    + +
    + +

    + +CLOCKTEXT4 +

    + +

    @abstract Media clock format: ClockText4

    + +

    @discussion +

      +
    • 6 chars possible
    • +
    • Format: c :|sp c c : c c
    • +
    • :|sp : colon or space
    • +
    • c : character out of following character set: sp|0-9|[letters]
    • +
    • used for MFD3/4/5 headunits
    • +

    + +

    @since SDL 2.0 + - returns: The SDLMediaClockFormat object with value CLOCKTEXT4

    + + + +

    Objective-C

    +
    + (SDLMediaClockFormat *)CLOCKTEXT4;
    + + +

    Swift

    +
    class func CLOCKTEXT4() -> SDLMediaClockFormat!
    + + + +
    +

    Return Value

    +

    The SDLMediaClockFormat object with value CLOCKTEXT4

    + +
    + +
    diff --git a/docs/Classes/SDLMenuParams.html b/docs/Classes/SDLMenuParams.html new file mode 100644 index 000000000..871719bb7 --- /dev/null +++ b/docs/Classes/SDLMenuParams.html @@ -0,0 +1,133 @@ +

    SDLMenuParams Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Used when adding a sub menu to an application menu or existing sub menu.

    + +

    @since SDL 1.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLMenuParams object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLMenuParams object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + parentID +

    + +

    @abstract the unique ID of an existing submenu to which a command will be added + @discussion If this element is not provided, the command will be added to the top level of the Command Menu.

    + +

    Optional, Integer, 0 - 2,000,000,000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *parentID;
    + + +

    Swift

    +
    var parentID: NSNumber! { get set }
    + + + + +

    + position +

    + +

    @abstract The position within the items of the parent Command Menu + @discussion 0 will insert at the front, 1 will insert after the first existing element, etc.

    + +

    Position of any submenu will always be located before the return and exit options.

    + +
      +
    • If position is greater or equal than the number of items in the parent Command Menu, the sub menu will be appended to the end of that Command Menu.

    • +
    • If this element is omitted, the entry will be added at the end of the parent menu.

    • +
    + +

    Optional, Integer, 0 - 1000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *position;
    + + +

    Swift

    +
    var position: NSNumber! { get set }
    + + + + +

    + menuName +

    + +

    @abstract the menu name which appears in menu, representing this command

    + +

    Required, max length 500 characters

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *menuName;
    + + +

    Swift

    +
    var menuName: String! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLMyKey.html b/docs/Classes/SDLMyKey.html new file mode 100644 index 000000000..667b44472 --- /dev/null +++ b/docs/Classes/SDLMyKey.html @@ -0,0 +1,50 @@ +

    SDLMyKey Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + e911Override +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLOnAppInterfaceUnregistered.html b/docs/Classes/SDLOnAppInterfaceUnregistered.html new file mode 100644 index 000000000..4247e62d1 --- /dev/null +++ b/docs/Classes/SDLOnAppInterfaceUnregistered.html @@ -0,0 +1,83 @@ +

    SDLOnAppInterfaceUnregistered Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Notifies an application that its interface registration has been terminated. This means that all SDL resources associated with the application are discarded, including the Command Menu, Choice Sets, button subscriptions, etc.

    + +

    For more information about SDL resources related to an interface registration, see SDLRegisterAppInterface.

    + +

    @since SDL 1.0 + - see: SDLRegisterAppInterface

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLOnAppInterfaceUnregistered object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLOnAppInterfaceUnregistered object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + reason +

    + +

    @abstract The reason application’s interface was terminated

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLAppInterfaceUnregisteredReason *reason;
    + + +

    Swift

    +
    var reason: SDLAppInterfaceUnregisteredReason! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLOnAudioPassThru.html b/docs/Classes/SDLOnAudioPassThru.html new file mode 100644 index 000000000..1cb57059d --- /dev/null +++ b/docs/Classes/SDLOnAudioPassThru.html @@ -0,0 +1,75 @@ +

    SDLOnAudioPassThru Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Binary data is in binary part of hybrid msg.

    + +

    HMI Status Requirements: +

      + HMILevel: +
        +
      • BACKGROUND, FULL, LIMITED
      • +
      + AudioStreamingState: +
        +
      • TBD
      • +
      + SystemContext: +
        +
      • TBD
      • +
      +

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLOnAudioPassThru object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLOnAudioPassThru object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLOnButtonEvent.html b/docs/Classes/SDLOnButtonEvent.html new file mode 100644 index 000000000..18d965617 --- /dev/null +++ b/docs/Classes/SDLOnButtonEvent.html @@ -0,0 +1,157 @@ +

    SDLOnButtonEvent Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Notifies application that user has depressed or released a button to which + the application has subscribed.

    + +

    Further information about button events + and button-presses can be found at SDLSubscribeButton. +

    +

    + +

    HMI Status Requirements: +

      + HMILevel: +
        +
      • The application will receive SDLOnButtonEvent notifications for all + subscribed buttons when HMILevel is FULL.
      • +
      • The application will receive SDLOnButtonEvent notifications for subscribed + media buttons when HMILevel is LIMITED.
      • +
      • Media buttons include SEEKLEFT, SEEKRIGHT, TUNEUP, TUNEDOWN, and + PRESET_0-PRESET_9.
      • +
      • The application will not receive SDLOnButtonEvent notification when HMILevel + is BACKGROUND.
      • +
      + AudioStreamingState: +
        +
      • Any
      • +
      + SystemContext: +
        +
      • MAIN, VR. In MENU, only PRESET buttons. In VR, pressing any subscribable + button will cancel VR.
      • +
      +
    +

    +
    +

    See

    + SDLSubscribeButton

    + +

    + +

    @since SDL 1.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLOnButtonEvent object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a newly allocated SDLOnButtonEvent object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + buttonName +

    + +

    @abstract The name of the button

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLButtonName *buttonName;
    + + +

    Swift

    +
    var buttonName: SDLButtonName! { get set }
    + + + + +

    + buttonEventMode +

    + +

    @abstract Indicates whether this is an UP or DOWN event

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLButtonEventMode *buttonEventMode;
    + + +

    Swift

    +
    var buttonEventMode: SDLButtonEventMode! { get set }
    + + + + +

    + customButtonID +

    + +

    @abstract If ButtonName is CUSTOM_BUTTON, this references the integer ID passed by a custom button. (e.g. softButton ID)

    + +

    @since SDL 2.0

    + +

    Optional, Integer, 0 - 65536

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *customButtonID;
    + + +

    Swift

    +
    var customButtonID: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLOnButtonPress.html b/docs/Classes/SDLOnButtonPress.html new file mode 100644 index 000000000..32f59de31 --- /dev/null +++ b/docs/Classes/SDLOnButtonPress.html @@ -0,0 +1,183 @@ +

    SDLOnButtonPress Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Notifies application of button press events for buttons to which the + application is subscribed. SDL supports two button press events defined as + follows:

    + +

      +
    • SHORT - Occurs when a button is depressed, then released within two + seconds. The event is considered to occur immediately after the button is + released.
    • +
    • LONG - Occurs when a button is depressed and held for two seconds or + more. The event is considered to occur immediately after the two second + threshold has been crossed, before the button is released
    • +
    + HMI Status Requirements: +
      + HMILevel: +
        +
      • The application will receive OnButtonPress notifications for all + subscribed buttons when HMILevel is FULL.
      • +
      • The application will receive OnButtonPress notifications for subscribed + media buttons when HMILevel is LIMITED.
      • +
      • Media buttons include SEEKLEFT, SEEKRIGHT, TUNEUP, TUNEDOWN, and + PRESET_0-PRESET_9.
      • +
      • The application will not receive OnButtonPress notification when HMILevel + is BACKGROUND or NONE.
      • +
      + AudioStreamingState: +
        +
      • Any
      • +
      + SystemContext: +
        +
      • MAIN, VR. In MENU, only PRESET buttons. In VR, pressing any subscribable + button will cancel VR.
      • +
      +

    + +
    +

    See

    + SDLSubscribeButton + +
    + +
    +

    See

    + SDLUnsubscribeButton + +
    + +

    @since SDL 1.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLOnButtonPress object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLOnButtonPress object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + buttonName +

    + +

    @abstract the button’s name

    + +
    +

    See

    + SDLButtonName + +
    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLButtonName *buttonName;
    + + +

    Swift

    +
    var buttonName: SDLButtonName! { get set }
    + + + + +

    + buttonPressMode +

    + +

    @abstract Indicates whether this is a LONG or SHORT button press event

    + +
    +

    See

    + SDLButtonPressMode + +
    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLButtonPressMode *buttonPressMode;
    + + +

    Swift

    +
    var buttonPressMode: SDLButtonPressMode! { get set }
    + + + + +

    + customButtonID +

    + +

    @abstract If ButtonName is CUSTOM_BUTTON, this references the integer ID passed by a custom button. (e.g. softButton ID)

    + +

    @since SDL 2.0

    + +

    Optional, Integer 0 - 65536

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *customButtonID;
    + + +

    Swift

    +
    var customButtonID: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLOnCommand.html b/docs/Classes/SDLOnCommand.html new file mode 100644 index 000000000..c4c7b8700 --- /dev/null +++ b/docs/Classes/SDLOnCommand.html @@ -0,0 +1,103 @@ +

    SDLOnCommand Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    This is called when a command was selected via VR after pressing the PTT button, or selected from the menu after + pressing the MENU button.

    + +

    Note: The sequence of SDLOnHMIStatus and SDLOnCommand notifications for user-initiated interactions is indeterminate.

    + +

    @since SDL 1.0 + - see: SDLAddCommand SDLDeleteCommand SDLDeleteSubMenu

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLRPCNotification object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLRPCNotification object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + cmdID +

    + +

    @abstract The command ID of the command the user selected. This is the command ID value provided by the application in the SDLAddCommand operation that created the command.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *cmdID;
    + + +

    Swift

    +
    var cmdID: NSNumber! { get set }
    + + + + +

    + triggerSource +

    + +

    @abstract Indicates whether command was selected via voice or via a menu selection (using the OK button).

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLTriggerSource *triggerSource;
    + + +

    Swift

    +
    var triggerSource: SDLTriggerSource! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLOnDriverDistraction.html b/docs/Classes/SDLOnDriverDistraction.html new file mode 100644 index 000000000..f9915eed4 --- /dev/null +++ b/docs/Classes/SDLOnDriverDistraction.html @@ -0,0 +1,91 @@ +

    SDLOnDriverDistraction Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Notifies the application of the current driver distraction state (whether driver distraction rules are in effect, or + not).

    + +

    HMI Status Requirements:

    + +

      + HMILevel: +
      • Can be sent with FULL, LIMITED or BACKGROUND
      + AudioStreamingState: +
      • Any
      + SystemContext: +
      • Any
      +

    + +

    @since SDL 1.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLOnDriverDistraction object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLOnDriverDistraction object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + state +

    + +

    @abstract The driver distraction state (i.e. whether driver distraction rules are in effect, or not)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLDriverDistractionState *state;
    + + +

    Swift

    +
    var state: SDLDriverDistractionState! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLOnEncodedSyncPData.html b/docs/Classes/SDLOnEncodedSyncPData.html new file mode 100644 index 000000000..ad95241ec --- /dev/null +++ b/docs/Classes/SDLOnEncodedSyncPData.html @@ -0,0 +1,74 @@ +

    SDLOnEncodedSyncPData Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + data +

    + +

    Undocumented

    + + + + + + +

    + URL +

    + +

    Undocumented

    + + + + + + +

    + Timeout +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLOnHMIStatus.html b/docs/Classes/SDLOnHMIStatus.html new file mode 100644 index 000000000..3f83279cb --- /dev/null +++ b/docs/Classes/SDLOnHMIStatus.html @@ -0,0 +1,131 @@ +

    SDLOnHMIStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Notifies an application that HMI conditions have changed for the application. This indicates whether the application + can speak phrases, display text, perform interactions, receive button presses and events, stream audio, etc. This + notification will be sent to the application when there has been a change in any one or several of the indicated + states (SDLHMILevel, SDLAudioStreamingState or SDLSystemContext) for the application.

    + +

    All three values are, in principle, independent of each other (though there may be some relationships). A value for + one parameter should not be interpreted from the value of another parameter.

    + +

    There are no guarantees about the timeliness or latency of the SDLOnHMIStatus notification. Therefore, for example, + information such as SDLAudioStreamingState may not indicate that the audio stream became inaudible to the user + exactly when the SDLOnHMIStatus notification was received.

    + +

    @since SDL 1.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLOnHMIStatus object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLOnHMIStatus object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + hmiLevel +

    + +

    @abstract SDLHMILevel in effect for the application

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLHMILevel *hmiLevel;
    + + +

    Swift

    +
    var hmiLevel: SDLHMILevel! { get set }
    + + + + +

    + audioStreamingState +

    + +

    @abstract Current state of audio streaming for the application. When this parameter has a value of NOT_AUDIBLE, the application must stop streaming audio to SDL.

    + +

    Informs app whether any currently streaming audio is audible to user (AUDIBLE) or not (NOT_AUDIBLE). A value of NOT_AUDIBLE means that either the application’s audio will not be audible to the user, or that the application’s audio should not be audible to the user (i.e. some other application on the mobile device may be streaming audio and the application’s audio would be blended with that other audio).

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic)
    +    SDLAudioStreamingState *audioStreamingState;
    + + +

    Swift

    +
    var audioStreamingState: SDLAudioStreamingState! { get set }
    + + + + +

    + systemContext +

    + +

    @abstract the System Context +@discussion whether a user-initiated interaction is in-progress (VRSESSION or MENU), or not (MAIN)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLSystemContext *systemContext;
    + + +

    Swift

    +
    var systemContext: SDLSystemContext! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLOnHashChange.html b/docs/Classes/SDLOnHashChange.html new file mode 100644 index 000000000..081687e93 --- /dev/null +++ b/docs/Classes/SDLOnHashChange.html @@ -0,0 +1,50 @@ +

    SDLOnHashChange Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + hashID +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLOnKeyboardInput.html b/docs/Classes/SDLOnKeyboardInput.html new file mode 100644 index 000000000..6183c484d --- /dev/null +++ b/docs/Classes/SDLOnKeyboardInput.html @@ -0,0 +1,62 @@ +

    SDLOnKeyboardInput Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + event +

    + +

    Undocumented

    + + + + + + +

    + data +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLOnLanguageChange.html b/docs/Classes/SDLOnLanguageChange.html new file mode 100644 index 000000000..37dd8ea25 --- /dev/null +++ b/docs/Classes/SDLOnLanguageChange.html @@ -0,0 +1,99 @@ +

    SDLOnLanguageChange Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Provides information to what language the SDL HMI language was changed

    + +

    @since SDL 2.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLOnLanguageChange object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLOnLanguageChange object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + language +

    + +

    @abstract Current SDL voice engine (VR+TTS) language

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLLanguage *language;
    + + +

    Swift

    +
    var language: SDLLanguage! { get set }
    + + + + +

    + hmiDisplayLanguage +

    + +

    @abstract Current display language

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLLanguage *hmiDisplayLanguage;
    + + +

    Swift

    +
    var hmiDisplayLanguage: SDLLanguage! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLOnLockScreenStatus.html b/docs/Classes/SDLOnLockScreenStatus.html new file mode 100644 index 000000000..0fd7bd3d7 --- /dev/null +++ b/docs/Classes/SDLOnLockScreenStatus.html @@ -0,0 +1,150 @@ +

    SDLOnLockScreenStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +
    To help prevent driver distraction, any SmartDeviceLink application is required to implement a lockscreen that must be enforced while the application is active on the system while the vehicle is in motion.
    +
    +This lockscreen must perform the following:
    +Limit all application control usability from the mobile device with a full-screen static image overlay or separate view.
    +For simplicity, the OnLockScreenStatus RPC will be provided via the onOnLockScreenNotification call back. The call back will include the LockScreenStatus enum which indicates if the lockscreen is required, optional or not required.
    +The call back also includes details regarding the current HMI_Status level, driver distraction status and user selection status of the application.
    +
    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLOnLockScreenStatus : SDLRPCNotification
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLOnLockScreenStatus : SDLRPCNotification
    + + + + + +

    + driverDistractionStatus +

    + +

    Get the current driver distraction status(i.e. whether driver distraction rules are in effect, or not)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *driverDistractionStatus;
    + + +

    Swift

    +
    var driverDistractionStatus: NSNumber! { get set }
    + + + +
    +

    Return Value

    +

    String

    + +
    + +

    + userSelected +

    + +

    Get user selection status for the application (has the app been selected via hmi or voice command)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *userSelected;
    + + +

    Swift

    +
    var userSelected: NSNumber! { get set }
    + + + +
    +

    Return Value

    +

    Boolean the current user selection status

    + +
    + +

    + lockScreenStatus +

    + +

    Get the {@linkplain LockScreenStatus} enumeration, indicating if the lockscreen should be required, optional or off

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLLockScreenStatus *lockScreenStatus;
    + + +

    Swift

    +
    var lockScreenStatus: SDLLockScreenStatus! { get set }
    + + + +
    +

    Return Value

    +

    {@linkplain +LockScreenStatus}

    + +
    + +

    + hmiLevel +

    + +

    Get HMILevel in effect for the application

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLHMILevel *hmiLevel;
    + + +

    Swift

    +
    var hmiLevel: SDLHMILevel! { get set }
    + + + +
    +

    Return Value

    +

    {@linkplain +HMILevel} the current HMI Level in effect for the application

    + +
    + +
    diff --git a/docs/Classes/SDLOnPermissionsChange.html b/docs/Classes/SDLOnPermissionsChange.html new file mode 100644 index 000000000..39133945c --- /dev/null +++ b/docs/Classes/SDLOnPermissionsChange.html @@ -0,0 +1,88 @@ +

    SDLOnPermissionsChange Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Provides update to app of which sets of functions are available

    + +

    @since SDL 2.0

    + + +
    +

    + -init +

    + +

    Constructs a newly allocated SDLOnPermissionsChange object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a newly allocated SDLOnPermissionsChange object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + permissionItem +

    + +

    @abstract Describes change in permissions for a given set of RPCs

    + +

    Required, Array of SDLPermissionItem, Array size 0 - 500

    + +
    +

    See

    + SDLPermissionItem + +
    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *permissionItem;
    + + +

    Swift

    +
    var permissionItem: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLOnSyncPData.html b/docs/Classes/SDLOnSyncPData.html new file mode 100644 index 000000000..90c4d268d --- /dev/null +++ b/docs/Classes/SDLOnSyncPData.html @@ -0,0 +1,62 @@ +

    SDLOnSyncPData Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + URL +

    + +

    Undocumented

    + + + + + + +

    + Timeout +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLOnSystemRequest.html b/docs/Classes/SDLOnSystemRequest.html new file mode 100644 index 000000000..2496f930a --- /dev/null +++ b/docs/Classes/SDLOnSystemRequest.html @@ -0,0 +1,110 @@ +

    SDLOnSystemRequest Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + requestType +

    + +

    Undocumented

    + + + + + + +

    + url +

    + +

    Undocumented

    + + + + + + +

    + timeout +

    + +

    Undocumented

    + + + + + + +

    + fileType +

    + +

    Undocumented

    + + + + + + +

    + offset +

    + +

    Undocumented

    + + + + + + +

    + length +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLOnTBTClientState.html b/docs/Classes/SDLOnTBTClientState.html new file mode 100644 index 000000000..f6e25eb12 --- /dev/null +++ b/docs/Classes/SDLOnTBTClientState.html @@ -0,0 +1,50 @@ +

    SDLOnTBTClientState Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + state +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLOnTouchEvent.html b/docs/Classes/SDLOnTouchEvent.html new file mode 100644 index 000000000..d663ad6ea --- /dev/null +++ b/docs/Classes/SDLOnTouchEvent.html @@ -0,0 +1,62 @@ +

    SDLOnTouchEvent Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + type +

    + +

    Undocumented

    + + + + + + +

    + event +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLOnVehicleData.html b/docs/Classes/SDLOnVehicleData.html new file mode 100644 index 000000000..968512fe5 --- /dev/null +++ b/docs/Classes/SDLOnVehicleData.html @@ -0,0 +1,522 @@ +

    SDLOnVehicleData Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Request vehicle data.

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLOnVehicleData object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLOnVehicleData object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + gps +

    + +

    @abstract A SDLGPSData* value. See GPSData.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLGPSData *gps;
    + + +

    Swift

    +
    var gps: SDLGPSData! { get set }
    + + + + +

    + speed +

    + +

    @abstract The vehicle speed in kilometers per hour.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *speed;
    + + +

    Swift

    +
    var speed: NSNumber! { get set }
    + + + + +

    + rpm +

    + +

    @abstract The number of revolutions per minute of the engine.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *rpm;
    + + +

    Swift

    +
    var rpm: NSNumber! { get set }
    + + + + +

    + fuelLevel +

    + +

    @abstract The fuel level in the tank (percentage)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *fuelLevel;
    + + +

    Swift

    +
    var fuelLevel: NSNumber! { get set }
    + + + + +

    + fuelLevel_State +

    + +

    @abstract A SDLComponentVolumeStatus* value. The fuel level state.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLComponentVolumeStatus *fuelLevel_State;
    + + +

    Swift

    +
    var fuelLevel_State: SDLComponentVolumeStatus! { get set }
    + + + + +

    + instantFuelConsumption +

    + +

    @abstract The instantaneous fuel consumption in microlitres.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *instantFuelConsumption;
    + + +

    Swift

    +
    var instantFuelConsumption: NSNumber! { get set }
    + + + + +

    + externalTemperature +

    + +

    @abstract The external temperature in degrees celsius.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *externalTemperature;
    + + +

    Swift

    +
    var externalTemperature: NSNumber! { get set }
    + + + + +

    + vin +

    + +

    @abstract The Vehicle Identification Number

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *vin;
    + + +

    Swift

    +
    var vin: String! { get set }
    + + + + +

    + prndl +

    + +

    @abstract See PRNDL.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLPRNDL *prndl;
    + + +

    Swift

    +
    var prndl: SDLPRNDL! { get set }
    + + + + +

    + tirePressure +

    + +

    @abstract A SDLTireStatus* value. See TireStatus.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLTireStatus *tirePressure;
    + + +

    Swift

    +
    var tirePressure: SDLTireStatus! { get set }
    + + + + +

    + odometer +

    + +

    @abstract Odometer reading in km.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *odometer;
    + + +

    Swift

    +
    var odometer: NSNumber! { get set }
    + + + + +

    + beltStatus +

    + +

    @abstract A SDLBeltStatus* value. The status of the seat belts.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLBeltStatus *beltStatus;
    + + +

    Swift

    +
    var beltStatus: SDLBeltStatus! { get set }
    + + + + +

    + bodyInformation +

    + +

    @abstract A SDLBodyInformation* value. The body information including power modes.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLBodyInformation *bodyInformation;
    + + +

    Swift

    +
    var bodyInformation: SDLBodyInformation! { get set }
    + + + + +

    + deviceStatus +

    + +

    @abstract A SDLDeviceStatus* value. The device status including signal and battery strength.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLDeviceStatus *deviceStatus;
    + + +

    Swift

    +
    var deviceStatus: SDLDeviceStatus! { get set }
    + + + + +

    + driverBraking +

    + +

    @abstract A SDLVehicleDataResult* value. The status of the brake pedal.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataEventStatus *driverBraking;
    + + +

    Swift

    +
    var driverBraking: SDLVehicleDataEventStatus! { get set }
    + + + + +

    + wiperStatus +

    + +

    @abstract A SDLWiperStatus* value. The status of the wipers.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLWiperStatus *wiperStatus;
    + + +

    Swift

    +
    var wiperStatus: SDLWiperStatus! { get set }
    + + + + +

    + headLampStatus +

    + +

    @abstract A SDLHeadLampStatus* value. Status of the head lamps.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLHeadLampStatus *headLampStatus;
    + + +

    Swift

    +
    var headLampStatus: SDLHeadLampStatus! { get set }
    + + + + +

    + engineTorque +

    + +

    @abstract Torque value for engine (in Nm) on non-diesel variants.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *engineTorque;
    + + +

    Swift

    +
    var engineTorque: NSNumber! { get set }
    + + + + +

    + accPedalPosition +

    + +

    @abstract Accelerator pedal position (percentage depressed)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *accPedalPosition;
    + + +

    Swift

    +
    var accPedalPosition: NSNumber! { get set }
    + + + + +

    + steeringWheelAngle +

    + +

    @abstract Current angle of the steering wheel (in deg)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *steeringWheelAngle;
    + + +

    Swift

    +
    var steeringWheelAngle: NSNumber! { get set }
    + + + + +

    + eCallInfo +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLOnVehicleData : SDLRPCNotification
    + + + + + +

    + airbagStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLOnVehicleData : SDLRPCNotification
    + + + + + +

    + emergencyEvent +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLOnVehicleData : SDLRPCNotification
    + + + + + +

    + clusterModeStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLOnVehicleData : SDLRPCNotification
    + + + + + +

    + myKey +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLOnVehicleData : SDLRPCNotification
    + + + + + +
    diff --git a/docs/Classes/SDLPRNDL.html b/docs/Classes/SDLPRNDL.html new file mode 100644 index 000000000..2dded7a8a --- /dev/null +++ b/docs/Classes/SDLPRNDL.html @@ -0,0 +1,454 @@ +

    SDLPRNDL Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The selected gear the car is in.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract get SDLPRNDL according value string

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLPRNDL!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLPRNDL object

    + +
    + +

    + +values +

    + +

    @abstract declare an array to store all possible SDLPRNDL values

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    the array

    + +
    + +

    + +PARK +

    + +

    @abstract Park

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)PARK;
    + + +

    Swift

    +
    class func PARK() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: PARK

    + +
    + +

    + +REVERSE +

    + +

    @abstract Reverse gear

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)REVERSE;
    + + +

    Swift

    +
    class func REVERSE() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: REVERSE

    + +
    + +

    + +NEUTRAL +

    + +

    @abstract No gear

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)NEUTRAL;
    + + +

    Swift

    +
    class func NEUTRAL() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: NEUTRAL

    + +
    + +

    + +DRIVE +

    + +

    @abstract: Drive gear

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)DRIVE;
    + + +

    Swift

    +
    class func DRIVE() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: DRIVE

    + +
    + +

    + +SPORT +

    + +

    @abstract Drive Sport mode

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)SPORT;
    + + +

    Swift

    +
    class func SPORT() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: SPORT

    + +
    + +

    + +LOWGEAR +

    + +

    @abstract 1st gear hold

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)LOWGEAR;
    + + +

    Swift

    +
    class func LOWGEAR() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: LOWGEAR

    + +
    + +

    + +FIRST +

    + +

    @abstract First gear

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)FIRST;
    + + +

    Swift

    +
    class func FIRST() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: FIRST

    + +
    + +

    + +SECOND +

    + +

    @abstract Second gear

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)SECOND;
    + + +

    Swift

    +
    class func SECOND() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: SECOND

    + +
    + +

    + +THIRD +

    + +

    @abstract Third gear

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)THIRD;
    + + +

    Swift

    +
    class func THIRD() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: THIRD

    + +
    + +

    + +FOURTH +

    + +

    @abstract Fourth gear

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)FOURTH;
    + + +

    Swift

    +
    class func FOURTH() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: FOURTH

    + +
    + +

    + +FIFTH +

    + +

    @abstract Fifth gear

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)FIFTH;
    + + +

    Swift

    +
    class func FIFTH() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: FIFTH

    + +
    + +

    + +SIXTH +

    + +

    @abstract Sixth gear

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)SIXTH;
    + + +

    Swift

    +
    class func SIXTH() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: SIXTH

    + +
    + +

    + +SEVENTH +

    + +

    @abstract Seventh gear

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)SEVENTH;
    + + +

    Swift

    +
    class func SEVENTH() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: SEVENTH

    + +
    + +

    + +EIGHTH +

    + +

    @abstract Eighth gear

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)EIGHTH;
    + + +

    Swift

    +
    class func EIGHTH() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: EIGHTH

    + +
    + +

    + +UNKNOWN +

    + +

    @abstract Unknown

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)UNKNOWN;
    + + +

    Swift

    +
    class func UNKNOWN() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: UNKNOWN

    + +
    + +

    + +FAULT +

    + +

    @abstract Fault

    + + + +

    Objective-C

    +
    + (SDLPRNDL *)FAULT;
    + + +

    Swift

    +
    class func FAULT() -> SDLPRNDL!
    + + + +
    +

    Return Value

    +

    SDLPRNDL: FAULT

    + +
    + +
    diff --git a/docs/Classes/SDLParameterPermissions.html b/docs/Classes/SDLParameterPermissions.html new file mode 100644 index 000000000..226a5d202 --- /dev/null +++ b/docs/Classes/SDLParameterPermissions.html @@ -0,0 +1,102 @@ +

    SDLParameterPermissions Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Defining sets of parameters, which are permitted or prohibited for a given RPC.

    + +

    @since SDL 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a newly allocated SDLParameterPermissions object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a newly allocated SDLParameterPermissions object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + allowed +

    + +

    @abstract A set of all parameters that are permitted for this given RPC.

    + +

    Required, Array of String, max String length = 100, Array size 0 - 100

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *allowed;
    + + +

    Swift

    +
    var allowed: NSMutableArray! { get set }
    + + + + +

    + userDisallowed +

    + +

    @abstract A set of all parameters that are prohibited for this given RPC.

    + +

    Required, Array of String, max String length = 100, Array size 0 - 100

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *userDisallowed;
    + + +

    Swift

    +
    var userDisallowed: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLPerformAudioPassThru.html b/docs/Classes/SDLPerformAudioPassThru.html new file mode 100644 index 000000000..14693ddb7 --- /dev/null +++ b/docs/Classes/SDLPerformAudioPassThru.html @@ -0,0 +1,256 @@ +

    SDLPerformAudioPassThru Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    This will open an audio pass thru session. By doing so the app can receive + audio data through the vehicle microphone +

    + Function Group: AudioPassThru +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 2.0

    + +

    See SDLEndAudioPassThru

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLPerformAudioPassThru object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLPerformAudioPassThru object indicated by the NSMutableDictionary +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + initialPrompt +

    + +

    @abstract initial prompt which will be spoken before opening the audio pass +thru session by SDL +@discussion initialPrompt + a Vector value represents the initial prompt which + will be spoken before opening the audio pass thru session by + SDL +

    + Notes: +

      +
    • This is an array of text chunks of type TTSChunk
    • +
    • The array must have at least one item
    • +
    • If omitted, then no initial prompt is spoken
    • +
    • Array Minsize: 1
    • +
    • Array Maxsize: 100
    • +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *initialPrompt;
    + + +

    Swift

    +
    var initialPrompt: NSMutableArray! { get set }
    + + + + +

    + audioPassThruDisplayText1 +

    + +

    @abstract a line of text displayed during audio capture +@discussion audioPassThruDisplayText1 + a String value representing the line of text displayed during + audio capture +

    + Notes: Maxlength=500

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *audioPassThruDisplayText1;
    + + +

    Swift

    +
    var audioPassThruDisplayText1: String! { get set }
    + + + + +

    + audioPassThruDisplayText2 +

    + +

    @abstract A line of text displayed during audio capture +@discussion audioPassThruDisplayText2 + a String value representing the line of text displayed during + audio capture +

    + Notes: Maxlength=500

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *audioPassThruDisplayText2;
    + + +

    Swift

    +
    var audioPassThruDisplayText2: String! { get set }
    + + + + +

    + samplingRate +

    + +

    @abstract A samplingRate

    + +

    @discussion a SamplingRate value representing a 8 or 16 or 22 or 24 khz

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLSamplingRate *samplingRate;
    + + +

    Swift

    +
    var samplingRate: SDLSamplingRate! { get set }
    + + + + +

    + maxDuration +

    + +

    @abstract the maximum duration of audio recording in milliseconds

    + +

    @discussion maxDuration + an Integer value representing the maximum duration of audio + recording in millisecond +

    + Notes: Minvalue:1; Maxvalue:1000000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *maxDuration;
    + + +

    Swift

    +
    var maxDuration: NSNumber! { get set }
    + + + + +

    + bitsPerSample +

    + +

    @abstract the quality the audio is recorded - 8 bit or 16 bit

    + +

    @discussion a BitsPerSample value representing 8 bit or 16 bit

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLBitsPerSample *bitsPerSample;
    + + +

    Swift

    +
    var bitsPerSample: SDLBitsPerSample! { get set }
    + + + + +

    + audioType +

    + +

    @abstract an audioType

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLAudioType *audioType;
    + + +

    Swift

    +
    var audioType: SDLAudioType! { get set }
    + + + + +

    + muteAudio +

    + +

    @abstract a Boolean value representing if the current audio source should be +muted during the APT session

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *muteAudio;
    + + +

    Swift

    +
    var muteAudio: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLPerformAudioPassThruResponse.html b/docs/Classes/SDLPerformAudioPassThruResponse.html new file mode 100644 index 000000000..bd60b082b --- /dev/null +++ b/docs/Classes/SDLPerformAudioPassThruResponse.html @@ -0,0 +1,61 @@ +

    SDLPerformAudioPassThruResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Perform Audio Pass Thru Response is sent, when PerformAudioPassThru has been called

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLPerformAudioPassThruResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLPerformAudioPassThruResponse object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLPerformInteraction.html b/docs/Classes/SDLPerformInteraction.html new file mode 100644 index 000000000..4765b0984 --- /dev/null +++ b/docs/Classes/SDLPerformInteraction.html @@ -0,0 +1,251 @@ +

    SDLPerformInteraction Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Performs an application-initiated interaction in which the user can select a + {@linkplain Choice} from among the specified Choice Sets. For instance, an + application may use a PerformInteraction to ask a user to say the name of a + song to play. The user’s response is only valid if it appears in the + specified Choice Sets and is recognized by SDL +

    + Function Group: Base +

    + HMILevel needs to be FULL +

    + +

    Since SmartDeviceLink 1.0
    + See SDLCreateInteractionChoiceSet SDLDeleteInteractionChoiceSet

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLPerformInteraction object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLPerformInteraction object indicated by the NSMutableDictionary +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + initialText +

    + +

    @abstract The Text that Displayed when the interaction begins. This text may +be overlaid by the Listening prompt during the interaction. Text is +displayed on first line of multiline display, and is centered. If text +does not fit on line, it will be truncated

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *initialText;
    + + +

    Swift

    +
    var initialText: String! { get set }
    + + + + +

    + initialPrompt +

    + +

    @abstract An array of one or more TTSChunks that, taken together, specify +what is to be spoken to the user at the start of an interaction

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *initialPrompt;
    + + +

    Swift

    +
    var initialPrompt: NSMutableArray! { get set }
    + + + + +

    + interactionMode +

    + +

    @abstract The Indicates mode that indicate how user selects interaction +choice. User can choose either by voice (VR_ONLY), by visual selection +from the menu (MANUAL_ONLY), or by either mode (BOTH)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLInteractionMode *interactionMode;
    + + +

    Swift

    +
    var interactionMode: SDLInteractionMode! { get set }
    + + + + +

    + interactionChoiceSetIDList +

    + +

    @abstract A Vector value representing an Array of one or more Choice +Set IDs

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *interactionChoiceSetIDList;
    + + +

    Swift

    +
    var interactionChoiceSetIDList: NSMutableArray! { get set }
    + + + + +

    + helpPrompt +

    + +

    @abstract A Vector which taken together, specify the help phrase to +be spoken when the user says help during the VR session

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *helpPrompt;
    + + +

    Swift

    +
    var helpPrompt: NSMutableArray! { get set }
    + + + + +

    + timeoutPrompt +

    + +

    @abstract An array of TTSChunks which, taken together, specify the phrase to +be spoken when the listen times out during the VR session

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *timeoutPrompt;
    + + +

    Swift

    +
    var timeoutPrompt: NSMutableArray! { get set }
    + + + + +

    + timeout +

    + +

    @abstract An Integer value representing the amount of time, in milliseconds, +SDL will wait for the user to make a choice (VR or Menu)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *timeout;
    + + +

    Swift

    +
    var timeout: NSNumber! { get set }
    + + + + +

    + vrHelp +

    + +

    @abstract A Voice recognition Help, which is a suggested VR Help Items to +display on-screen during Perform Interaction +@since SmartDeviceLink 2.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *vrHelp;
    + + +

    Swift

    +
    var vrHelp: NSMutableArray! { get set }
    + + + + +

    + interactionLayout +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLPerformInteraction : SDLRPCRequest
    + + + + + +
    diff --git a/docs/Classes/SDLPerformInteractionResponse.html b/docs/Classes/SDLPerformInteractionResponse.html new file mode 100644 index 000000000..57fc52a79 --- /dev/null +++ b/docs/Classes/SDLPerformInteractionResponse.html @@ -0,0 +1,128 @@ +

    SDLPerformInteractionResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    PerformInteraction Response is sent, when SDLPerformInteraction has been called

    + +

    @since SDL 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLPerformInteractionResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLPerformInteractionResponse object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + choiceID +

    + +

    @abstract ID of the choice that was selected in response to PerformInteraction.

    + +

    @discussion Only is valid if general result is success:true.

    + +

    Optional, Integer, 0 - 2,000,000,000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *choiceID;
    + + +

    Swift

    +
    var choiceID: NSNumber! { get set }
    + + + + +

    + manualTextEntry +

    + +

    @abstract Manually entered text selection, e.g. through keyboard

    + +

    @discussion Can be returned in lieu of choiceID, depending on trigger source

    + +

    Optional, Max length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *manualTextEntry;
    + + +

    Swift

    +
    var manualTextEntry: String! { get set }
    + + + + +

    + triggerSource +

    + +

    @abstract A SDLTriggerSource object which will be shown in the HMI

    + +

    @discussion Only is valid if resultCode is SUCCESS.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLTriggerSource *triggerSource;
    + + +

    Swift

    +
    var triggerSource: SDLTriggerSource! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLPermissionItem.html b/docs/Classes/SDLPermissionItem.html new file mode 100644 index 000000000..74a0d316b --- /dev/null +++ b/docs/Classes/SDLPermissionItem.html @@ -0,0 +1,74 @@ +

    SDLPermissionItem Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + rpcName +

    + +

    Undocumented

    + + + + + + +

    + hmiPermissions +

    + +

    Undocumented

    + + + + + + +

    + parameterPermissions +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLPermissionStatus.html b/docs/Classes/SDLPermissionStatus.html new file mode 100644 index 000000000..4da609deb --- /dev/null +++ b/docs/Classes/SDLPermissionStatus.html @@ -0,0 +1,171 @@ +

    SDLPermissionStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Enumeration that describes possible permission states of a policy table entry.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract SDLPermissionStatus

    + + + +

    Objective-C

    +
    + (SDLPermissionStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLPermissionStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    a SDLPermissionStatus object

    + +
    + +

    + +values +

    + +

    @abstract declare an array to store all possible SDLPermissionStatus values +- returns: the array

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    the array

    + +
    + +

    + +ALLOWED +

    + +

    @abstract permission: allowed +- returns: permission status: ALLOWED

    + + + +

    Objective-C

    +
    + (SDLPermissionStatus *)ALLOWED;
    + + +

    Swift

    +
    class func ALLOWED() -> SDLPermissionStatus!
    + + + +
    +

    Return Value

    +

    permission status: ALLOWED

    + +
    + +

    + +DISALLOWED +

    + +

    @abstract permission: disallowed +- returns: permission status: DISALLOWED

    + + + +

    Objective-C

    +
    + (SDLPermissionStatus *)DISALLOWED;
    + + +

    Swift

    +
    class func DISALLOWED() -> SDLPermissionStatus!
    + + + +
    +

    Return Value

    +

    permission status: DISALLOWED

    + +
    + +

    + +USER_DISALLOWED +

    + +

    @abstract permission: user disallowed +- returns: permission status: USER_DISALLOWED

    + + + +

    Objective-C

    +
    + (SDLPermissionStatus *)USER_DISALLOWED;
    + + +

    Swift

    +
    class func USER_DISALLOWED() -> SDLPermissionStatus!
    + + + +
    +

    Return Value

    +

    permission status: USER_DISALLOWED

    + +
    + +

    + +USER_CONSENT_PENDING +

    + +

    @abstract permission: user consent pending +- returns: permission status: USER_CONSENT_PENDING

    + + + +

    Objective-C

    +
    + (SDLPermissionStatus *)USER_CONSENT_PENDING;
    + + +

    Swift

    +
    class func USER_CONSENT_PENDING() -> SDLPermissionStatus!
    + + + +
    +

    Return Value

    +

    permission status: USER_CONSENT_PENDING

    + +
    + +
    diff --git a/docs/Classes/SDLPowerModeQualificationStatus.html b/docs/Classes/SDLPowerModeQualificationStatus.html new file mode 100644 index 000000000..d05cd10bd --- /dev/null +++ b/docs/Classes/SDLPowerModeQualificationStatus.html @@ -0,0 +1,86 @@ +

    SDLPowerModeQualificationStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + + + + +

    + +values +

    + +

    Undocumented

    + + + + + + +

    + +POWER_MODE_UNDEFINED +

    + +

    Undocumented

    + + + + + + +

    + +POWER_MODE_EVALUATION_IN_PROGRESS +

    + +

    Undocumented

    + + + + + + +

    + +NOT_DEFINED +

    + +

    Undocumented

    + + + + + + +

    + +POWER_MODE_OK +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLPowerModeStatus.html b/docs/Classes/SDLPowerModeStatus.html new file mode 100644 index 000000000..40b008a47 --- /dev/null +++ b/docs/Classes/SDLPowerModeStatus.html @@ -0,0 +1,146 @@ +

    SDLPowerModeStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + + + + +

    + +values +

    + +

    Undocumented

    + + + + + + +

    + +KEY_OUT +

    + +

    Undocumented

    + + + + + + +

    + +KEY_RECENTLY_OUT +

    + +

    Undocumented

    + + + + + + +

    + +KEY_APPROVED_0 +

    + +

    Undocumented

    + + + + + + +

    + +POST_ACCESORY_0 +

    + +

    Undocumented

    + + + + + + +

    + +ACCESORY_1 +

    + +

    Undocumented

    + + + + + + +

    + +POST_IGNITION_1 +

    + +

    Undocumented

    + + + + + + +

    + +IGNITION_ON_2 +

    + +

    Undocumented

    + + + + + + +

    + +RUNNING_2 +

    + +

    Undocumented

    + + + + + + +

    + +CRANK_3 +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLPredefinedLayout.html b/docs/Classes/SDLPredefinedLayout.html new file mode 100644 index 000000000..10aef83c2 --- /dev/null +++ b/docs/Classes/SDLPredefinedLayout.html @@ -0,0 +1,278 @@ +

    SDLPredefinedLayout Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + + + + +

    + +values +

    + +

    Undocumented

    + + + + + + +

    + +DEFAULT +

    + +

    Undocumented

    + + + + + + +

    + +MEDIA +

    + +

    Undocumented

    + + + + + + +

    + +NON_MEDIA +

    + +

    Undocumented

    + + + + + + +

    + +ONSCREEN_PRESETS +

    + +

    Undocumented

    + + + + + + +

    + +NAV_FULLSCREEN_MAP +

    + +

    Undocumented

    + + + + + + +

    + +NAV_LIST +

    + +

    Undocumented

    + + + + + + +

    + +NAV_KEYBOARD +

    + +

    Undocumented

    + + + + + + +

    + +GRAPHIC_WITH_TEXT +

    + +

    Undocumented

    + + + + + + +

    + +TEXT_WITH_GRAPHIC +

    + +

    Undocumented

    + + + + + + +

    + +TILES_ONLY +

    + +

    Undocumented

    + + + + + + +

    + +TEXTBUTTONS_ONLY +

    + +

    Undocumented

    + + + + + + +

    + +GRAPHIC_WITH_TILES +

    + +

    Undocumented

    + + + + + + +

    + +TILES_WITH_GRAPHIC +

    + +

    Undocumented

    + + + + + + +

    + +GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS +

    + +

    Undocumented

    + + + + + + +

    + +TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC +

    + +

    Undocumented

    + + + + + + +

    + +GRAPHIC_WITH_TEXTBUTTONS +

    + +

    Undocumented

    + + + + + + +

    + +TEXTBUTTONS_WITH_GRAPHIC +

    + +

    Undocumented

    + + + + + + +

    + +LARGE_GRAPHIC_WITH_SOFTBUTTONS +

    + +

    Undocumented

    + + + + + + +

    + +DOUBLE_GRAPHIC_WITH_SOFTBUTTONS +

    + +

    Undocumented

    + + + + + + +

    + +LARGE_GRAPHIC_ONLY +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLPrerecordedSpeech.html b/docs/Classes/SDLPrerecordedSpeech.html new file mode 100644 index 000000000..4d9a85df5 --- /dev/null +++ b/docs/Classes/SDLPrerecordedSpeech.html @@ -0,0 +1,98 @@ +

    SDLPrerecordedSpeech Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + + + + +

    + +values +

    + +

    Undocumented

    + + + + + + +

    + +HELP_JINGLE +

    + +

    Undocumented

    + + + + + + +

    + +INITIAL_JINGLE +

    + +

    Undocumented

    + + + + + + +

    + +LISTEN_JINGLE +

    + +

    Undocumented

    + + + + + + +

    + +POSITIVE_JINGLE +

    + +

    Undocumented

    + + + + + + +

    + +NEGATIVE_JINGLE +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLPresetBankCapabilities.html b/docs/Classes/SDLPresetBankCapabilities.html new file mode 100644 index 000000000..f24a2a843 --- /dev/null +++ b/docs/Classes/SDLPresetBankCapabilities.html @@ -0,0 +1,82 @@ +

    SDLPresetBankCapabilities Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Contains information about on-screen preset capabilities.

    + +

    @since SDL 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a newly allocated SDLPresetBankCapabilities object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a newly allocated SDLPresetBankCapabilities object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + onScreenPresetsAvailable +

    + +

    @abstract If Onscreen custom presets are available.

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *onScreenPresetsAvailable;
    + + +

    Swift

    +
    var onScreenPresetsAvailable: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLPrimaryAudioSource.html b/docs/Classes/SDLPrimaryAudioSource.html new file mode 100644 index 000000000..0e20e4315 --- /dev/null +++ b/docs/Classes/SDLPrimaryAudioSource.html @@ -0,0 +1,246 @@ +

    SDLPrimaryAudioSource Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reflects the current primary audio source of SDL (if selected).

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract get SDLPrimaryAudioSource according value string

    + + + +

    Objective-C

    +
    + (SDLPrimaryAudioSource *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLPrimaryAudioSource!
    + + + +

    Parameters

    +
    +
    value
    +

    String value to retrieve the object enum for

    +
    +
    +
    +

    Return Value

    +

    SDLPrimaryAudioSource object

    + +
    + +

    + +values +

    + +

    @abstract declare an array to store all possible SDLPrimaryAudioSource values +- returns: the array

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    the array

    + +
    + +

    + +NO_SOURCE_SELECTED +

    + +

    @abstract Currently no source selected +- returns: the current primary audio source: NO_SOURCE_SELECTED

    + + + +

    Objective-C

    +
    + (SDLPrimaryAudioSource *)NO_SOURCE_SELECTED;
    + + +

    Swift

    +
    class func NO_SOURCE_SELECTED() -> SDLPrimaryAudioSource!
    + + + +
    +

    Return Value

    +

    the current primary audio source: NO_SOURCE_SELECTED

    + +
    + +

    + +USB +

    + +

    @abstract USB is current source +- returns: the current primary audio source: USB

    + + + +

    Objective-C

    +
    + (SDLPrimaryAudioSource *)USB;
    + + +

    Swift

    +
    class func USB() -> SDLPrimaryAudioSource!
    + + + +
    +

    Return Value

    +

    the current primary audio source: USB

    + +
    + +

    + +USB2 +

    + +

    @abstract USB2 is current source +- returns: the current primary audio source: USB2

    + + + +

    Objective-C

    +
    + (SDLPrimaryAudioSource *)USB2;
    + + +

    Swift

    +
    class func USB2() -> SDLPrimaryAudioSource!
    + + + +
    +

    Return Value

    +

    the current primary audio source: USB2

    + +
    + +

    + +BLUETOOTH_STEREO_BTST +

    + +

    @abstract Bluetooth Stereo is current source +- returns: the current primary audio source: BLUETOOTH_STEREO_BTST

    + + + +

    Objective-C

    +
    + (SDLPrimaryAudioSource *)BLUETOOTH_STEREO_BTST;
    + + +

    Swift

    +
    class func BLUETOOTH_STEREO_BTST() -> SDLPrimaryAudioSource!
    + + + +
    +

    Return Value

    +

    the current primary audio source: BLUETOOTH_STEREO_BTST

    + +
    + +

    + +LINE_IN +

    + +

    @abstract Line in is current source +- returns: the current primary audio source: LINE_IN

    + + + +

    Objective-C

    +
    + (SDLPrimaryAudioSource *)LINE_IN;
    + + +

    Swift

    +
    class func LINE_IN() -> SDLPrimaryAudioSource!
    + + + +
    +

    Return Value

    +

    the current primary audio source: LINE_IN

    + +
    + +

    + +IPOD +

    + +

    @abstract iPod is current source +- returns: the current primary audio source: IPOD

    + + + +

    Objective-C

    +
    + (SDLPrimaryAudioSource *)IPOD;
    + + +

    Swift

    +
    class func IPOD() -> SDLPrimaryAudioSource!
    + + + +
    +

    Return Value

    +

    the current primary audio source: IPOD

    + +
    + +

    + +MOBILE_APP +

    + +

    @abstract Mobile app is current source +- returns: the current primary audio source: MOBILE_APP

    + + + +

    Objective-C

    +
    + (SDLPrimaryAudioSource *)MOBILE_APP;
    + + +

    Swift

    +
    class func MOBILE_APP() -> SDLPrimaryAudioSource!
    + + + +
    +

    Return Value

    +

    the current primary audio source: MOBILE_APP

    + +
    + +
    diff --git a/docs/Classes/SDLProtocol.html b/docs/Classes/SDLProtocol.html new file mode 100644 index 000000000..57d6c92eb --- /dev/null +++ b/docs/Classes/SDLProtocol.html @@ -0,0 +1,86 @@ +

    SDLProtocol Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -sendStartSessionWithType: +

    + +

    Undocumented

    + + + + + + +

    + -sendEndSessionWithType: +

    + +

    Undocumented

    + + + + + + +

    + -sendRPC: +

    + +

    Undocumented

    + + + + + + +

    + -sendRPCRequest: +

    + +

    Undocumented

    + + + + + + +

    + -sendRawData:withServiceType: +

    + +

    Undocumented

    + + + + + + +

    + -handleBytesFromTransport: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLProtocolHeader.html b/docs/Classes/SDLProtocolHeader.html new file mode 100644 index 000000000..aac1fc2b1 --- /dev/null +++ b/docs/Classes/SDLProtocolHeader.html @@ -0,0 +1,194 @@ +

    SDLProtocolHeader Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + _version +

    + +

    Undocumented

    + + + + + + +

    + _size +

    + +

    Undocumented

    + + + + + + +

    + version +

    + +

    Undocumented

    + + + + + + +

    + size +

    + +

    Undocumented

    + + + + + + +

    + compressed +

    + +

    Undocumented

    + + + + + + +

    + frameType +

    + +

    Undocumented

    + + + + + + +

    + serviceType +

    + +

    Undocumented

    + + + + + + +

    + frameData +

    + +

    Undocumented

    + + + + + + +

    + sessionID +

    + +

    Undocumented

    + + + + + + +

    + bytesInPayload +

    + +

    Undocumented

    + + + + + + +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -data +

    + +

    Undocumented

    + + + + + + +

    + -parse: +

    + +

    Undocumented

    + + + + + + +

    + -description +

    + +

    Undocumented

    + + + + + + +

    + +headerForVersion: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLProtocolMessage.html b/docs/Classes/SDLProtocolMessage.html new file mode 100644 index 000000000..129946504 --- /dev/null +++ b/docs/Classes/SDLProtocolMessage.html @@ -0,0 +1,110 @@ +

    SDLProtocolMessage Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + header +

    + +

    Undocumented

    + + + + + + +

    + payload +

    + +

    Undocumented

    + + + + + + +

    + data +

    + +

    Undocumented

    + + + + + + +

    + +messageWithHeader:andPayload: +

    + +

    Undocumented

    + + + + + + +

    + -size +

    + +

    Undocumented

    + + + + + + +

    + -description +

    + +

    Undocumented

    + + + + + + +

    + -rpcDictionary +

    + +

    Undocumented

    + + + + + + +

    + +determineVersion: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLProxy.html b/docs/Classes/SDLProxy.html new file mode 100644 index 000000000..babc36247 --- /dev/null +++ b/docs/Classes/SDLProxy.html @@ -0,0 +1,313 @@ +

    SDLProxy Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + _version +

    + +

    Undocumented

    + + + + + + +

    + _bulkSessionID +

    + +

    Undocumented

    + + + + + + +

    + _isConnected +

    + +

    Undocumented

    + + + + + + +

    + _alreadyDestructed +

    + +

    Undocumented

    + + + + + + +

    + protocol +

    + +

    Undocumented

    + + + + + + +

    + transport +

    + +

    Undocumented

    + + + + + + +

    + proxyListeners +

    + +

    Undocumented

    + + + + + + +

    + startSessionTimer +

    + +

    Undocumented

    + + + + + + +

    + debugConsoleGroupName +

    + +

    Undocumented

    + + + + + + +

    + proxyVersion +

    + +

    Undocumented

    + + + + + + +

    + streamingMediaManager +

    + +

    Undocumented

    + + + + + + +

    + -initWithTransport:protocol:delegate: +

    + +

    Undocumented

    + + + + + + +

    + -dispose +

    + +

    Undocumented

    + + + + + + +

    + -addDelegate: +

    + +

    Undocumented

    + + + + + + +

    + -removeDelegate: +

    + +

    Undocumented

    + + + + + + +

    + -sendRPC: +

    + +

    Undocumented

    + + + + + + +

    + -sendRPCRequest: +

    + +

    Undocumented

    + + + + + + +

    + -handleRPCDictionary: +

    + +

    Undocumented

    + + + + + + +

    + -handleRpcMessage: +

    + +

    Undocumented

    + + + + + + +

    + -handleProtocolMessage: +

    + +

    Undocumented

    + + + + + + +

    + +enableSiphonDebug +

    + +

    Undocumented

    + + + + + + +

    + +disableSiphonDebug +

    + +

    Undocumented

    + + + + + + +

    + -putFileStream:withRequest: +

    + +

    Puts data into a file on the module +@abstract Performs a putFile for a given input stream, performed in chunks, for handling very large files. +- parameter: inputStream A stream containing the data to put to the module. +- parameter: putFileRPCRequest A SDLPutFile object containing the parameters for the put(s) +@discussion The proxy will read from the stream based on the max MTU size and send them in individual putFile requests. +This may result in multiple responses being received, one for each request. +Note: the length parameter of the putFileRPCRequest will be ignored. The proxy will substitute the number of bytes read from the stream.

    + + + +

    Objective-C

    +
    - (void)putFileStream:(NSInputStream *)inputStream
    +          withRequest:(SDLPutFile *)putFileRPCRequest;
    + + +

    Swift

    +
    func putFileStream(inputStream: NSInputStream!, withRequest putFileRPCRequest: SDLPutFile!)
    + + + +

    Parameters

    +
    +
    inputStream
    +

    A stream containing the data to put to the module.

    +
    +
    putFileRPCRequest
    +

    A SDLPutFile object containing the parameters for the put(s)

    +
    +
    + +
    diff --git a/docs/Classes/SDLProxyFactory.html b/docs/Classes/SDLProxyFactory.html new file mode 100644 index 000000000..b865f56de --- /dev/null +++ b/docs/Classes/SDLProxyFactory.html @@ -0,0 +1,38 @@ +

    SDLProxyFactory Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +buildSDLProxyWithListener: +

    + +

    Undocumented

    + + + + + + +

    + +buildSDLProxyWithListener:tcpIPAddress:tcpPort: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLPutFile.html b/docs/Classes/SDLPutFile.html new file mode 100644 index 000000000..b71d0e624 --- /dev/null +++ b/docs/Classes/SDLPutFile.html @@ -0,0 +1,195 @@ +

    SDLPutFile Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Used to push a binary data onto the SDL module from a mobile device, such as + icons and album art

    + +

    Since SmartDeviceLink 2.0 + - see: SDLDeleteFile + - see: SDLListFiles

    + + +
    +

    + -init +

    + +

    Constructs a new SDLPutFile object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLPutFile object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + syncFileName +

    + +

    A file reference name

    + +

    Required, maxlength 255 characters

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *syncFileName;
    + + +

    Swift

    +
    var syncFileName: String! { get set }
    + + + + +

    + fileType +

    + +

    A FileType value representing a selected file type

    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLFileType *fileType;
    + + +

    Swift

    +
    var fileType: SDLFileType! { get set }
    + + + + +

    + persistentFile +

    + +

    A value to indicates if the file is meant to persist between + sessions / ignition cycles. If set to TRUE, then the system will aim to + persist this file through session / cycles. While files with this + designation will have priority over others, they are subject to deletion + by the system at any time. In the event of automatic deletion by the + system, the app will receive a rejection and have to resend the file. If + omitted, the value will be set to false

    + +

    Boolean, Optional, default = NO

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *persistentFile;
    + + +

    Swift

    +
    var persistentFile: NSNumber! { get set }
    + + + + +

    + systemFile +

    + +

    Indicates if the file is meant to be passed through core to elsewhere on the system. If set to TRUE, then the system will instead pass the data thru as it arrives to a predetermined area outside of core.

    + +

    Boolean, Optional, default = NO

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *systemFile;
    + + +

    Swift

    +
    var systemFile: NSNumber! { get set }
    + + + + +

    + offset +

    + +

    Offset in bytes for resuming partial data chunks.

    + +

    Integer, Optional, 0 - 100,000,000,000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *offset;
    + + +

    Swift

    +
    var offset: NSNumber! { get set }
    + + + + +

    + length +

    + +

    Length in bytes for resuming partial data chunks. If offset is set to 0, then length is the total length of the file to be downloaded

    + +

    Integer, Optional, 0 - 100,000,000,000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *length;
    + + +

    Swift

    +
    var length: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLPutFileResponse.html b/docs/Classes/SDLPutFileResponse.html new file mode 100644 index 000000000..81b203da5 --- /dev/null +++ b/docs/Classes/SDLPutFileResponse.html @@ -0,0 +1,77 @@ +

    SDLPutFileResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Put File Response is sent, when SDLPutFile has been called

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLPutFileResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLPutFileResponse object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + spaceAvailable +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLPutFileResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLRPCMessage.html b/docs/Classes/SDLRPCMessage.html new file mode 100644 index 000000000..8cf10e854 --- /dev/null +++ b/docs/Classes/SDLRPCMessage.html @@ -0,0 +1,158 @@ +

    SDLRPCMessage Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + function +

    + +

    Undocumented

    + + + + + + +

    + parameters +

    + +

    Undocumented

    + + + + + + +

    + messageType +

    + +

    Undocumented

    + + + + + + +

    + -initWithName: +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + -getFunctionName +

    + +

    Undocumented

    + + + + + + +

    + -setFunctionName: +

    + +

    Undocumented

    + + + + + + +

    + -getParameters: +

    + +

    Undocumented

    + + + + + + +

    + -setParameters:value: +

    + +

    Undocumented

    + + + + + + +

    + bulkData +

    + +

    Undocumented

    + + + + + + +

    + name +

    + +

    Undocumented

    + + + + + + +

    + messageType +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLRPCNotification.html b/docs/Classes/SDLRPCNotification.html new file mode 100644 index 000000000..6be21f87a --- /dev/null +++ b/docs/Classes/SDLRPCNotification.html @@ -0,0 +1,38 @@ +

    SDLRPCNotification Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -initWithName: +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLRPCRequest.html b/docs/Classes/SDLRPCRequest.html new file mode 100644 index 000000000..fb091ce22 --- /dev/null +++ b/docs/Classes/SDLRPCRequest.html @@ -0,0 +1,26 @@ +

    SDLRPCRequest Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + correlationID +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLRPCRequestFactory.html b/docs/Classes/SDLRPCRequestFactory.html new file mode 100644 index 000000000..cd77ccd5c --- /dev/null +++ b/docs/Classes/SDLRPCRequestFactory.html @@ -0,0 +1,734 @@ +

    SDLRPCRequestFactory Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +buildAddCommandWithID:menuName:parentID:position:vrCommands:iconValue:iconType:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAddCommandWithID:menuName:vrCommands:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAddCommandWithID:vrCommands:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAddSubMenuWithID:menuName:position:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAddSubMenuWithID:menuName:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAlertWithTTS:alertText1:alertText2:alertText3:playTone:duration:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAlertWithTTS:alertText1:alertText2:playTone:duration:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAlertWithTTS:playTone:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAlertWithTTSChunks:alertText1:alertText2:alertText3:playTone:duration:softButtons:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAlertWithTTSChunks:playTone:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAlertWithAlertText1:alertText2:alertText3:duration:softButtons:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAlertWithAlertText1:alertText2:alertText3:duration:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAlertWithAlertText1:alertText2:duration:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildAlertManeuverwithTTSchunks:softButtons:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildChangeRegistrationWithLanguage:hmiDisplayLanguage:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildCreateInteractionChoiceSetWithID:choiceSet:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildDeleteCommandWithID:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildDeleteFileWithName:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildDialNumberWithNumber: +

    + +

    Undocumented

    + + + + + + +

    + +buildListFilesWithCorrelationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildDeleteInteractionChoiceSetWithID:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildDeleteSubMenuWithID:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildEndAudioPassThruWithCorrelationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildGetDTCsWithECUName:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildGetVehicleDataWithGPS:speed:rpm:fuelLevel:fuelLevelState:instantFuelConsumption:externalTemperature:vin:prndl:tirePressure:odometer:beltStatus:bodyInformation:deviceStatus:driverBraking:wiperStatus:headLampStatus:engineTorque:accPedalPosition:steeringWheelAngle:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildPerformAudioPassThruWithInitialPrompt:audioPassThruDisplayText1:audioPassThruDisplayText2:samplingRate:maxDuration:bitsPerSample:audioType:muteAudio:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildPerformInteractionWithInitialChunks:initialText:interactionChoiceSetIDList:helpChunks:timeoutChunks:interactionMode:timeout:vrHelp:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildPerformInteractionWithInitialPrompt:initialText:interactionChoiceSetIDList:helpPrompt:timeoutPrompt:interactionMode:timeout:vrHelp:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildPerformInteractionWithInitialPrompt:initialText:interactionChoiceSetID:vrHelp:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildPerformInteractionWithInitialPrompt:initialText:interactionChoiceSetIDList:helpPrompt:timeoutPrompt:interactionMode:timeout:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildPerformInteractionWithInitialPrompt:initialText:interactionChoiceSetID:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildPutFileWithFileName:fileType:persistentFile:correlationId: +

    + +

    Undocumented

    + + + + + + +

    + +buildPutFileWithFileName:fileType:persisistentFile:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildReadDIDWithECUName:didLocation:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildRegisterAppInterfaceWithAppName:ttsName:vrSynonyms:isMediaApp:languageDesired:hmiDisplayLanguageDesired:appID: +

    + +

    Undocumented

    + + + + + + +

    + +buildRegisterAppInterfaceWithAppName:isMediaApp:languageDesired:appID: +

    + +

    Undocumented

    + + + + + + +

    + +buildRegisterAppInterfaceWithAppName:languageDesired:appID: +

    + +

    Undocumented

    + + + + + + +

    + +buildResetGlobalPropertiesWithProperties:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSendLocationWithLongitude:latitude:locationName:locationDescription:address:phoneNumber:image: +

    + +

    Undocumented

    + + + + + + +

    + +buildScrollableMessage:timeout:softButtons:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSetAppIconWithFileName:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSetDisplayLayout:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSetGlobalPropertiesWithHelpText:timeoutText:vrHelpTitle:vrHelp:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSetGlobalPropertiesWithHelpText:timeoutText:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSetMediaClockTimerWithHours:minutes:seconds:updateMode:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSetMediaClockTimerWithUpdateMode:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildShowWithMainField1:mainField2:mainField3:mainField4:statusBar:mediaClock:mediaTrack:alignment:graphic:softButtons:customPresets:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildShowWithMainField1:mainField2:statusBar:mediaClock:mediaTrack:alignment:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildShowWithMainField1:mainField2:alignment:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSliderDynamicFooterWithNumTicks:position:sliderHeader:sliderFooter:timeout:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSliderStaticFooterWithNumTicks:position:sliderHeader:sliderFooter:timeout:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSpeakWithTTSChunks:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSpeakWithTTS:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSubscribeButtonWithName:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildSubscribeVehicleDataWithGPS:speed:rpm:fuelLevel:fuelLevelState:instantFuelConsumption:externalTemperature:prndl:tirePressure:odometer:beltStatus:bodyInformation:deviceStatus:driverBraking:wiperStatus:headLampStatus:engineTorque:accPedalPosition:steeringWheelAngle:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildShowConstantTBTWithString:navigationText2:eta:timeToDestination:totalDistance:turnIcon:nextTurnIcon:distanceToManeuver:distanceToManeuverScale:maneuverComplete:softButtons:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildUnregisterAppInterfaceWithCorrelationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildUnsubscribeButtonWithName:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildUnsubscribeVehicleDataWithGPS:speed:rpm:fuelLevel:fuelLevelState:instantFuelConsumption:externalTemperature:prndl:tirePressure:odometer:beltStatus:bodyInformation:deviceStatus:driverBraking:wiperStatus:headLampStatus:engineTorque:accPedalPosition:steeringWheelAngle:correlationID: +

    + +

    Undocumented

    + + + + + + +

    + +buildUpdateTurnListWithTurnList:softButtons:correlationID: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLRPCResponse.html b/docs/Classes/SDLRPCResponse.html new file mode 100644 index 000000000..125ef9dce --- /dev/null +++ b/docs/Classes/SDLRPCResponse.html @@ -0,0 +1,62 @@ +

    SDLRPCResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + correlationID +

    + +

    Undocumented

    + + + + + + +

    + success +

    + +

    Undocumented

    + + + + + + +

    + resultCode +

    + +

    Undocumented

    + + + + + + +

    + info +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLRPCStruct.html b/docs/Classes/SDLRPCStruct.html new file mode 100644 index 000000000..6e92a9c44 --- /dev/null +++ b/docs/Classes/SDLRPCStruct.html @@ -0,0 +1,62 @@ +

    SDLRPCStruct Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + store +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -serializeAsDictionary: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLReadDID.html b/docs/Classes/SDLReadDID.html new file mode 100644 index 000000000..23b9f3d5f --- /dev/null +++ b/docs/Classes/SDLReadDID.html @@ -0,0 +1,115 @@ +

    SDLReadDID Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Non periodic vehicle data read request. This is an RPC to get diagnostics + data from certain vehicle modules. DIDs of a certain module might differ from + vehicle type to vehicle type +

    + Function Group: ProprietaryData +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLReadDID object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLReadDID object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + ecuName +

    + +

    @abstract An ID of the vehicle module +
    Notes: Minvalue:0; Maxvalue:65535

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *ecuName;
    + + +

    Swift

    +
    var ecuName: NSNumber! { get set }
    + + + + +

    + didLocation +

    + +

    @abstract Raw data from vehicle data DID location(s) +
    a Vector value representing raw data from vehicle + data DID location(s) +

    + Notes: +

      +
    • Minvalue:0; Maxvalue:65535
    • +
    • ArrayMin:0; ArrayMax:1000
    • +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *didLocation;
    + + +

    Swift

    +
    var didLocation: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLReadDIDResponse.html b/docs/Classes/SDLReadDIDResponse.html new file mode 100644 index 000000000..860cee359 --- /dev/null +++ b/docs/Classes/SDLReadDIDResponse.html @@ -0,0 +1,64 @@ +

    SDLReadDIDResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Read DID Response is sent, when ReadDID has been called

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLReadDIDResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLReadDIDResponse : SDLRPCResponse
    + + + + + +

    + didResult +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLReadDIDResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLRegisterAppInterface.html b/docs/Classes/SDLRegisterAppInterface.html new file mode 100644 index 000000000..5225baa9e --- /dev/null +++ b/docs/Classes/SDLRegisterAppInterface.html @@ -0,0 +1,418 @@ +

    SDLRegisterAppInterface Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Registers the application’s interface with SDL®, declaring properties of + the registration, including the messaging interface version, the app name, + etc. The mobile application must establish its interface registration with + SDL before any other interaction with SDL® can take place. The + registration lasts until it is terminated either by the application calling + the SDLUnregisterAppInterface method, or by SDL® + sending an SDLOnAppInterfaceUnregistered notification, or + by loss of the underlying transport connection, or closing of the underlying + message transmission protocol RPC session +

    + Until the application receives its first SDLOnHMIStatus + Notification, its HMI Status is assumed to be: + SDLHMILevel=NONE, + SDLAudioStreamingState + =NOT_AUDIBLE, + SDLSystemContext=MAIN +

    + All SDL® resources which the application creates or uses (e.g. Choice + Sets, Command Menu, etc.) are associated with the application’s interface + registration. Therefore, when the interface registration ends, the SDL® + resources associated with the application are disposed of. As a result, even + though the application itself may continue to run on its host platform (e.g. + mobile device) after the interface registration terminates, the application + will not be able to use the SDL® HMI without first establishing a new + interface registration and re-creating its required SDL® resources. That + is, SDL® resources created by (or on behalf of) an application do not + persist beyond the life-span of the interface registration +

    + Resources and settings whose lifespan is tied to the duration of an + application’s interface registration:
    +

      +
    • Choice Sets
    • +
    • Command Menus (built by successive calls to SDLAddCommand + )
    • +
    • Media clock timer display value
    • +
    • Media clock timer display value
    • +
    • Media clock timer display value
    • +
    +

    + The autoActivateID is used to grant an application the HMILevel and + AudioStreamingState it had when it last disconnected +

    + Notes: The autoActivateID parameter, and associated behavior, is + currently ignored by SDL® +

    + When first calling this method (i.e. first time within life cycle of mobile + app), an autoActivateID should not be included. After successfully + registering an interface, an autoActivateID is returned to the mobile + application for it to use in subsequent connections. If the connection + between SDL® and the mobile application is lost, such as the vehicle is + turned off while the application is running, the autoActivateID can then be + passed in another call to RegisterAppInterface to re-acquire + SDLHMILevel=FULL +

    + If the application intends to stream audio it is important to indicate so via + the isMediaApp parameter. When set to true, audio will reliably stream + without any configuration required by the user. When not set, audio may + stream, depending on what the user might have manually configured as a media + source on SDL® +

    + There is no time limit for how long the autoActivateID is valid (i.e. would + confer focus and opt-in) +

    + HMILevel is not defined before registering
    +

    + +

    @since SDL 1.0

    + +
    +

    See

    + SDLUnregisterAppInterface SDLOnAppInterfaceUnregistered + +
    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLRegisterAppInterface object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLRegisterAppInterface object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + syncMsgVersion +

    + +

    @abstract The version of the SDL interface

    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLSyncMsgVersion *syncMsgVersion;
    + + +

    Swift

    +
    var syncMsgVersion: SDLSyncMsgVersion! { get set }
    + + + + +

    + appName +

    + +

    @abstract The Mobile Application’s Name, This name is displayed in the SDL Mobile Applications menu. It also serves as the unique identifier of the application for SmartDeviceLink

    + +

    @discussion +

  • Needs to be unique over all applications.
  • +
  • May not be empty.
  • +
  • May not start with a new line character.
  • +
  • May not interfere with any name or synonym of previously registered applications and any predefined blacklist of words (global commands).
  • +
  • Needs to be unique over all applications. Applications with the same name will be rejected.
  • + +

    Required, Max length 100 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *appName;
    + + +

    Swift

    +
    var appName: String! { get set }
    + + + + +

    + ttsName +

    + +

    @abstract TTS string for VR recognition of the mobile application name.

    + +

    @discussion Meant to overcome any failing on speech engine in properly pronouncing / understanding app name. +

  • Needs to be unique over all applications.
  • +
  • May not be empty.
  • +
  • May not start with a new line character.
  • + +

    Optional, Array of SDLTTSChunk, Array size 1 - 100

    + +

    @since SDL 2.0 + - see: SDLTTSChunk

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *ttsName;
    + + +

    Swift

    +
    var ttsName: NSMutableArray! { get set }
    + + + + +

    + ngnMediaScreenAppName +

    + +

    @abstract A String representing an abbreviated version of the mobile application’s name (if necessary) that will be displayed on the media screen

    + +

    @discussion If not provided, the appName is used instead (and will be truncated if too long)

    + +

    Optional, Max length 100 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *ngnMediaScreenAppName;
    + + +

    Swift

    +
    var ngnMediaScreenAppName: String! { get set }
    + + + + +

    + vrSynonyms +

    + +

    @abstract Defines a additional voice recognition commands

    + +

    @discussion May not interfere with any app name of previously registered applications and any predefined blacklist of words (global commands)

    + +

    Optional, Array of Strings, Array length 1 - 100, Max String length 40

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *vrSynonyms;
    + + +

    Swift

    +
    var vrSynonyms: NSMutableArray! { get set }
    + + + + +

    + isMediaApplication +

    + +

    @abstract Indicates if the application is a media or a non-media application.

    + +

    @discussion Only media applications will be able to stream audio to head units that is audible outside of the BT media source.

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *isMediaApplication;
    + + +

    Swift

    +
    var isMediaApplication: NSNumber! { get set }
    + + + + +

    + languageDesired +

    + +

    @abstract A Language enumeration indicating what language the application intends to use for user interaction (TTS and VR).

    + +

    @discussion If there is a mismatch with the head unit, the app will be able to change this registration with changeRegistration prior to app being brought into focus.

    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLLanguage *languageDesired;
    + + +

    Swift

    +
    var languageDesired: SDLLanguage! { get set }
    + + + + +

    + hmiDisplayLanguageDesired +

    + +

    @abstract An enumeration indicating what language the application intends to use for user interaction (Display).

    + +

    @discussion If there is a mismatch with the head unit, the app will be able to change this registration with changeRegistration prior to app being brought into focus.

    + +

    Required

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLLanguage *hmiDisplayLanguageDesired;
    + + +

    Swift

    +
    var hmiDisplayLanguageDesired: SDLLanguage! { get set }
    + + + + +

    + appHMIType +

    + +

    @abstract A list of all applicable app types stating which classifications to be given to the app.

    + +

    Optional, Array of SDLAppHMIType, Array size 1 - 100

    + +

    @since SDL 2.0 + - see: SDLAppHMIType

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *appHMIType;
    + + +

    Swift

    +
    var appHMIType: NSMutableArray! { get set }
    + + + + +

    + hashID +

    + +

    @abstract ID used to uniquely identify current state of all app data that can persist through connection cycles (e.g. ignition cycles).

    + +

    @discussion This registered data (commands, submenus, choice sets, etc.) can be reestablished without needing to explicitly reregister each piece. If omitted, then the previous state of an app’s commands, etc. will not be restored.

    + +

    When sending hashID, all RegisterAppInterface parameters should still be provided (e.g. ttsName, etc.).

    + +

    Optional, max length 100 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *hashID;
    + + +

    Swift

    +
    var hashID: String! { get set }
    + + + + +

    + deviceInfo +

    + +

    @abstract Information about the connecting device

    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLDeviceInfo *deviceInfo;
    + + +

    Swift

    +
    var deviceInfo: SDLDeviceInfo! { get set }
    + + + + +

    + appID +

    + +

    @abstract ID used to validate app with policy table entries

    + +

    Required, max length 100

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *appID;
    + + +

    Swift

    +
    var appID: String! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLRegisterAppInterfaceResponse.html b/docs/Classes/SDLRegisterAppInterfaceResponse.html new file mode 100644 index 000000000..e32b58160 --- /dev/null +++ b/docs/Classes/SDLRegisterAppInterfaceResponse.html @@ -0,0 +1,488 @@ +

    SDLRegisterAppInterfaceResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    @abstract Register AppInterface Response is sent, when SDLRegisterAppInterface has been called

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLRegisterAppInterfaceResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Constructs a new SDLRegisterAppInterfaceResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + syncMsgVersion +

    + +
    +

    See

    + SDLSyncMsgVersion + +
    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLSyncMsgVersion *syncMsgVersion;
    + + +

    Swift

    +
    var syncMsgVersion: SDLSyncMsgVersion! { get set }
    + + + + +

    + language +

    + +

    The currently active VR+TTS language on Sync.

    + +
    +

    See

    + SDLLanguage + +
    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLLanguage *language;
    + + +

    Swift

    +
    var language: SDLLanguage! { get set }
    + + + + +

    + hmiDisplayLanguage +

    + +

    The currently active display language on Sync

    + +
    +

    See

    + SDLLanguage +@since SmartDeviceLink 2.0 + +
    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLLanguage *hmiDisplayLanguage;
    + + +

    Swift

    +
    var hmiDisplayLanguage: SDLLanguage! { get set }
    + + + + +

    + displayCapabilities +

    + +
    +

    See

    + SDLDisplayCapabilities + +
    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic)
    +    SDLDisplayCapabilities *displayCapabilities;
    + + +

    Swift

    +
    var displayCapabilities: SDLDisplayCapabilities! { get set }
    + + + + +

    + buttonCapabilities +

    + +
    +

    See

    + SDLButtonCapabilities + +
    + +

    Optional, Array of length 1 - 100, of SDLButtonCapabilities

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *buttonCapabilities;
    + + +

    Swift

    +
    var buttonCapabilities: NSMutableArray! { get set }
    + + + + +

    + softButtonCapabilities +

    + +

    If returned, the platform supports on-screen SoftButtons

    + +
    +

    See

    + SDLSoftButtonCapabilities + +
    + +

    Optional, Array of length 1 - 100, of SDLSoftButtonCapabilities

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *softButtonCapabilities;
    + + +

    Swift

    +
    var softButtonCapabilities: NSMutableArray! { get set }
    + + + + +

    + presetBankCapabilities +

    + +

    If returned, the platform supports custom on-screen Presets

    + +
    +

    See

    + SDLPresetBankCapabilities + +
    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic)
    +    SDLPresetBankCapabilities *presetBankCapabilities;
    + + +

    Swift

    +
    var presetBankCapabilities: SDLPresetBankCapabilities! { get set }
    + + + + +

    + hmiZoneCapabilities +

    + +
    +

    See

    + SDLHMIZoneCapabilities + +
    + +

    Optional, Array of length 1 - 100, of SDLHMIZoneCapabilities

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *hmiZoneCapabilities;
    + + +

    Swift

    +
    var hmiZoneCapabilities: NSMutableArray! { get set }
    + + + + +

    + speechCapabilities +

    + +
    +

    See

    + SDLSpeechCapabilities + +
    + +

    Optional, Array of length 1 - 100, of SDLSpeechCapabilities

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *speechCapabilities;
    + + +

    Swift

    +
    var speechCapabilities: NSMutableArray! { get set }
    + + + + +

    + prerecordedSpeech +

    + +
    +

    See

    + SDLPrerecordedSpeech + +
    + +

    Optional, Array of length 1 - 100, of SDLPrerecordedSpeech

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *prerecordedSpeech;
    + + +

    Swift

    +
    var prerecordedSpeech: NSMutableArray! { get set }
    + + + + +

    + vrCapabilities +

    + +
    +

    See

    + SDLVRCapabilities + +
    + +

    Optional, Array of length 1 - 100, of SDLVRCapabilities

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *vrCapabilities;
    + + +

    Swift

    +
    var vrCapabilities: NSMutableArray! { get set }
    + + + + +

    + audioPassThruCapabilities +

    + +
    +

    See

    + SDLAudioPassThruCapabilities + +
    + +

    Optional, Array of length 1 - 100, of SDLAudioPassThruCapabilities

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *audioPassThruCapabilities;
    + + +

    Swift

    +
    var audioPassThruCapabilities: NSMutableArray! { get set }
    + + + + +

    + vehicleType +

    + +

    Specifies the vehicle’s type

    + +
    +

    See

    + SDLVehicleType + +
    + +

    Optional, Array of length 1 - 100, of SDLVehicleType

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleType *vehicleType;
    + + +

    Swift

    +
    var vehicleType: SDLVehicleType! { get set }
    + + + + +

    + supportedDiagModes +

    + +

    Specifies the white-list of supported diagnostic modes (0x00-0xFF) capable for DiagnosticMessage requests. If a mode outside this list is requested, it will be rejected.

    + +

    Optional, Array of length 1 - 100, Integer 0 - 255

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *supportedDiagModes;
    + + +

    Swift

    +
    var supportedDiagModes: NSMutableArray! { get set }
    + + + + +

    + hmiCapabilities +

    + +
    +

    See

    + SDLHMICapabilities + +
    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLHMICapabilities *hmiCapabilities;
    + + +

    Swift

    +
    var hmiCapabilities: SDLHMICapabilities! { get set }
    + + + + +

    + sdlVersion +

    + +

    The SmartDeviceLink version

    + +

    Optional, String max length 100

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *sdlVersion;
    + + +

    Swift

    +
    var sdlVersion: String! { get set }
    + + + + +

    + systemSoftwareVersion +

    + +

    The software version of the system that implements the SmartDeviceLink core

    + +

    Optional, String max length 100

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *systemSoftwareVersion;
    + + +

    Swift

    +
    var systemSoftwareVersion: String! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLRequestType.html b/docs/Classes/SDLRequestType.html new file mode 100644 index 000000000..6ad253be9 --- /dev/null +++ b/docs/Classes/SDLRequestType.html @@ -0,0 +1,278 @@ +

    SDLRequestType Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + + + + +

    + +values +

    + +

    Undocumented

    + + + + + + +

    + +HTTP +

    + +

    Undocumented

    + + + + + + +

    + +FILE_RESUME +

    + +

    Undocumented

    + + + + + + +

    + +AUTH_REQUEST +

    + +

    Undocumented

    + + + + + + +

    + +AUTH_CHALLENGE +

    + +

    Undocumented

    + + + + + + +

    + +AUTH_ACK +

    + +

    Undocumented

    + + + + + + +

    + +PROPRIETARY +

    + +

    Undocumented

    + + + + + + +

    + +QUERY_APPS +

    + +

    Undocumented

    + + + + + + +

    + +LAUNCH_APP +

    + +

    Undocumented

    + + + + + + +

    + +LOCK_SCREEN_ICON_URL +

    + +

    Undocumented

    + + + + + + +

    + +TRAFFIC_MESSAGE_CHANNEL +

    + +

    Undocumented

    + + + + + + +

    + +DRIVER_PROFILE +

    + +

    Undocumented

    + + + + + + +

    + +VOICE_SEARCH +

    + +

    Undocumented

    + + + + + + +

    + +NAVIGATION +

    + +

    Undocumented

    + + + + + + +

    + +PHONE +

    + +

    Undocumented

    + + + + + + +

    + +CLIMATE +

    + +

    Undocumented

    + + + + + + +

    + +SETTINGS +

    + +

    Undocumented

    + + + + + + +

    + +VEHICLE_DIAGNOSTICS +

    + +

    Undocumented

    + + + + + + +

    + +EMERGENCY +

    + +

    Undocumented

    + + + + + + +

    + +MEDIA +

    + +

    Undocumented

    + + + + + + +

    + +FOTA +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLResetGlobalProperties.html b/docs/Classes/SDLResetGlobalProperties.html new file mode 100644 index 000000000..dd62c7875 --- /dev/null +++ b/docs/Classes/SDLResetGlobalProperties.html @@ -0,0 +1,93 @@ +

    SDLResetGlobalProperties Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Resets the passed global properties to their default values as defined by + SDL +

    + The HELPPROMPT global property default value is generated by SDL consists of + the first vrCommand of each Command Menu item defined at the moment PTT is + pressed
    + The TIMEOUTPROMPT global property default value is the same as the HELPPROMPT + global property default value +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 1.0 + See SetGlobalProperties

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLResetGlobalProperties object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLResetGlobalProperties object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + properties +

    + +

    @abstract An array of one or more GlobalProperty enumeration elements +indicating which global properties to reset to their default value

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *properties;
    + + +

    Swift

    +
    var properties: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLResetGlobalPropertiesResponse.html b/docs/Classes/SDLResetGlobalPropertiesResponse.html new file mode 100644 index 000000000..9d5f8d961 --- /dev/null +++ b/docs/Classes/SDLResetGlobalPropertiesResponse.html @@ -0,0 +1,62 @@ +

    SDLResetGlobalPropertiesResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reset Global Properties Response is sent, when SDLResetGlobalProperties has been called

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLResetGlobalPropertiesResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLResetGlobalPropertiesResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLResult.html b/docs/Classes/SDLResult.html new file mode 100644 index 000000000..beb33e568 --- /dev/null +++ b/docs/Classes/SDLResult.html @@ -0,0 +1,711 @@ +

    SDLResult Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Defines the possible result codes returned by SDL to the application in a response to a requested operation

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract get SDLResult according value string +- parameter: value The value of the string to get an object for +- returns: SDLResult object

    + + + +

    Objective-C

    +
    + (SDLResult *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLResult!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLResult object

    + +
    + +

    + +values +

    + +

    @abstract declare an array to store all possible SDLResult values +- returns: the array

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    the array

    + +
    + +

    + +SUCCESS +

    + +

    @abstract The request succeeded

    + + + +

    Objective-C

    +
    + (SDLResult *)SUCCESS;
    + + +

    Swift

    +
    class func SUCCESS() -> SDLResult!
    + + + + +

    + +INVALID_DATA +

    + +

    @abstract Result code : Invalid Data

    + +

    @discussion The data sent is invalid. For example: +

  • Invalid Json syntax
  • +
  • Parameters out of bounds (number or enum range)
  • +
  • Mandatory parameters not provided
  • +
  • Parameter provided with wrong type
  • +
  • Invalid characters
  • +
  • Empty string
  • + + + +

    Objective-C

    +
    + (SDLResult *)INVALID_DATA;
    + + +

    Swift

    +
    class func INVALID_DATA() -> SDLResult!
    + + + + +

    + +CHAR_LIMIT_EXCEEDED +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLResult : SDLEnum
    + + + + + +

    + +UNSUPPORTED_REQUEST +

    + +

    @abstract The request is not supported by SDL

    + + + +

    Objective-C

    +
    + (SDLResult *)UNSUPPORTED_REQUEST;
    + + +

    Swift

    +
    class func UNSUPPORTED_REQUEST() -> SDLResult!
    + + + + +

    + +OUT_OF_MEMORY +

    + +

    @abstract The system could not process the request because the necessary memory couldn’t be allocated

    + + + +

    Objective-C

    +
    + (SDLResult *)OUT_OF_MEMORY;
    + + +

    Swift

    +
    class func OUT_OF_MEMORY() -> SDLResult!
    + + + + +

    + +TOO_MANY_PENDING_REQUESTS +

    + +

    @abstract There are too many requests pending (means that the response has not been delivered yet).

    + +

    @discussion There is a limit of 1000 pending requests at a time.

    + + + +

    Objective-C

    +
    + (SDLResult *)TOO_MANY_PENDING_REQUESTS;
    + + +

    Swift

    +
    class func TOO_MANY_PENDING_REQUESTS() -> SDLResult!
    + + + + +

    + +INVALID_ID +

    + +

    @abstract One of the provided IDs is not valid. +@discussion For example: +

  • CorrelationID
  • +
  • CommandID
  • +
  • MenuID
  • + + + +

    Objective-C

    +
    + (SDLResult *)INVALID_ID;
    + + +

    Swift

    +
    class func INVALID_ID() -> SDLResult!
    + + + + +

    + +DUPLICATE_NAME +

    + +

    @abstract The provided name or synonym is a duplicate of some already-defined name or synonym.

    + + + +

    Objective-C

    +
    + (SDLResult *)DUPLICATE_NAME;
    + + +

    Swift

    +
    class func DUPLICATE_NAME() -> SDLResult!
    + + + + +

    + +TOO_MANY_APPLICATIONS +

    + +

    There are already too many registered applications.

    + + + +

    Objective-C

    +
    + (SDLResult *)TOO_MANY_APPLICATIONS;
    + + +

    Swift

    +
    class func TOO_MANY_APPLICATIONS() -> SDLResult!
    + + + + +

    + +APPLICATION_REGISTERED_ALREADY +

    + +

    RegisterApplication has been called again, after a RegisterApplication was successful before.

    + + + +

    Objective-C

    +
    + (SDLResult *)APPLICATION_REGISTERED_ALREADY;
    + + +

    Swift

    +
    class func APPLICATION_REGISTERED_ALREADY() -> SDLResult!
    + + + + +

    + +UNSUPPORTED_VERSION +

    + +

    The Head Unit doesn’t support the protocol that is requested by the mobile application.

    + + + +

    Objective-C

    +
    + (SDLResult *)UNSUPPORTED_VERSION;
    + + +

    Swift

    +
    class func UNSUPPORTED_VERSION() -> SDLResult!
    + + + + +

    + +WRONG_LANGUAGE +

    + +

    The requested language is currently not supported. Might be because of a mismatch of the currently active language on the head unit and the requested language.

    + + + +

    Objective-C

    +
    + (SDLResult *)WRONG_LANGUAGE;
    + + +

    Swift

    +
    class func WRONG_LANGUAGE() -> SDLResult!
    + + + + +

    + +APPLICATION_NOT_REGISTERED +

    + +

    A command can not be executed because no application has been registered with RegisterApplication.

    + + + +

    Objective-C

    +
    + (SDLResult *)APPLICATION_NOT_REGISTERED;
    + + +

    Swift

    +
    class func APPLICATION_NOT_REGISTERED() -> SDLResult!
    + + + + +

    + +IN_USE +

    + +

    The data may not be changed, because it is currently in use. For example when trying to delete a command set that is currently involved in an interaction.

    + + + +

    Objective-C

    +
    + (SDLResult *)IN_USE;
    + + +

    Swift

    +
    class func IN_USE() -> SDLResult!
    + + + + +

    + +VEHICLE_DATA_NOT_ALLOWED +

    + +

    The user has turned off access to vehicle data, and it is globally unavailable to mobile applications.

    + + + +

    Objective-C

    +
    + (SDLResult *)VEHICLE_DATA_NOT_ALLOWED;
    + + +

    Swift

    +
    class func VEHICLE_DATA_NOT_ALLOWED() -> SDLResult!
    + + + + +

    + +VEHICLE_DATA_NOT_AVAILABLE +

    + +

    The requested vehicle data is not available on this vehicle or is not published.

    + + + +

    Objective-C

    +
    + (SDLResult *)VEHICLE_DATA_NOT_AVAILABLE;
    + + +

    Swift

    +
    class func VEHICLE_DATA_NOT_AVAILABLE() -> SDLResult!
    + + + + +

    + +REJECTED +

    + +

    The requested command was rejected, e.g. because mobile app is in background and cannot perform any HMI commands. Or an HMI command (e.g. Speak) is rejected because a higher priority HMI command (e.g. Alert) is playing.

    + + + +

    Objective-C

    +
    + (SDLResult *)REJECTED;
    + + +

    Swift

    +
    class func REJECTED() -> SDLResult!
    + + + + +

    + +ABORTED +

    + +

    A command was aborted, for example due to user interaction (e.g. user pressed button). Or an HMI command (e.g. Speak) is aborted because a higher priority HMI command (e.g. Alert) was requested.

    + + + +

    Objective-C

    +
    + (SDLResult *)ABORTED;
    + + +

    Swift

    +
    class func ABORTED() -> SDLResult!
    + + + + +

    + +IGNORED +

    + +

    A command was ignored, because the intended result is already in effect. For example, SetMediaClockTimer was used to pause the media clock although the clock is paused already.

    + + + +

    Objective-C

    +
    + (SDLResult *)IGNORED;
    + + +

    Swift

    +
    class func IGNORED() -> SDLResult!
    + + + + +

    + +UNSUPPORTED_RESOURCE +

    + +

    A button that was requested for subscription is not supported under the current system.

    + + + +

    Objective-C

    +
    + (SDLResult *)UNSUPPORTED_RESOURCE;
    + + +

    Swift

    +
    class func UNSUPPORTED_RESOURCE() -> SDLResult!
    + + + + +

    + +FILE_NOT_FOUND +

    + +

    A specified file could not be found on the head unit.

    + + + +

    Objective-C

    +
    + (SDLResult *)FILE_NOT_FOUND;
    + + +

    Swift

    +
    class func FILE_NOT_FOUND() -> SDLResult!
    + + + + +

    + +GENERIC_ERROR +

    + +

    Provided data is valid but something went wrong in the lower layers.

    + + + +

    Objective-C

    +
    + (SDLResult *)GENERIC_ERROR;
    + + +

    Swift

    +
    class func GENERIC_ERROR() -> SDLResult!
    + + + + +

    + +DISALLOWED +

    + +

    RPC is not authorized in local policy table.

    + + + +

    Objective-C

    +
    + (SDLResult *)DISALLOWED;
    + + +

    Swift

    +
    class func DISALLOWED() -> SDLResult!
    + + + + +

    + +USER_DISALLOWED +

    + +

    RPC is included in a functional group explicitly blocked by the user.

    + + + +

    Objective-C

    +
    + (SDLResult *)USER_DISALLOWED;
    + + +

    Swift

    +
    class func USER_DISALLOWED() -> SDLResult!
    + + + + +

    + +TIMED_OUT +

    + +

    Overlay reached the maximum timeout and closed.

    + + + +

    Objective-C

    +
    + (SDLResult *)TIMED_OUT;
    + + +

    Swift

    +
    class func TIMED_OUT() -> SDLResult!
    + + + + +

    + +CANCEL_ROUTE +

    + +

    User selected to Cancel Route.

    + + + +

    Objective-C

    +
    + (SDLResult *)CANCEL_ROUTE;
    + + +

    Swift

    +
    class func CANCEL_ROUTE() -> SDLResult!
    + + + + +

    + +TRUNCATED_DATA +

    + +

    The RPC (e.g. ReadDID) executed successfully but the data exceeded the platform maximum threshold and thus, only part of the data is available.

    + + + +

    Objective-C

    +
    + (SDLResult *)TRUNCATED_DATA;
    + + +

    Swift

    +
    class func TRUNCATED_DATA() -> SDLResult!
    + + + + +

    + +RETRY +

    + +

    The user interrupted the RPC (e.g. PerformAudioPassThru) and indicated to start over. Note, the app must issue the new RPC.

    + + + +

    Objective-C

    +
    + (SDLResult *)RETRY;
    + + +

    Swift

    +
    class func RETRY() -> SDLResult!
    + + + + +

    + +WARNINGS +

    + +

    The RPC (e.g. SubscribeVehicleData) executed successfully but one or more items have a warning or failure.

    + + + +

    Objective-C

    +
    + (SDLResult *)WARNINGS;
    + + +

    Swift

    +
    class func WARNINGS() -> SDLResult!
    + + + + +

    + +SAVED +

    + +

    The RPC (e.g. Slider) executed successfully and the user elected to save the current position / value.

    + + + +

    Objective-C

    +
    + (SDLResult *)SAVED;
    + + +

    Swift

    +
    class func SAVED() -> SDLResult!
    + + + + +

    + +INVALID_CERT +

    + +

    The certificate provided during authentication is invalid.

    + + + +

    Objective-C

    +
    + (SDLResult *)INVALID_CERT;
    + + +

    Swift

    +
    class func INVALID_CERT() -> SDLResult!
    + + + + +

    + +EXPIRED_CERT +

    + +

    The certificate provided during authentication is expired.

    + + + +

    Objective-C

    +
    + (SDLResult *)EXPIRED_CERT;
    + + +

    Swift

    +
    class func EXPIRED_CERT() -> SDLResult!
    + + + + +

    + +RESUME_FAILED +

    + +

    The provided hash ID does not match the hash of the current set of registered data or the core could not resume the previous data.

    + + + +

    Objective-C

    +
    + (SDLResult *)RESUME_FAILED;
    + + +

    Swift

    +
    class func RESUME_FAILED() -> SDLResult!
    + + + + +
    diff --git a/docs/Classes/SDLSamplingRate.html b/docs/Classes/SDLSamplingRate.html new file mode 100644 index 000000000..1767406f8 --- /dev/null +++ b/docs/Classes/SDLSamplingRate.html @@ -0,0 +1,166 @@ +

    SDLSamplingRate Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Describes different sampling rates for PerformAudioPassThru

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    @abstract get SDLSamplingRate according value string

    + + + +

    Objective-C

    +
    + (SDLSamplingRate *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLSamplingRate!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLSamplingRate object

    + +
    + +

    + +values +

    + +

    @abstract declare an array to store all possible SDLSamplingRate values

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    the array

    + +
    + +

    + +_8KHZ +

    + +

    @abstract Sampling rate of 8 kHz

    + + + +

    Objective-C

    +
    + (SDLSamplingRate *)_8KHZ;
    + + +

    Swift

    +
    class func _8KHZ() -> SDLSamplingRate!
    + + + +
    +

    Return Value

    +

    SamplingRate of 8KHZ

    + +
    + +

    + +_16KHZ +

    + +

    @abstract Sampling rate of 16 kHz

    + + + +

    Objective-C

    +
    + (SDLSamplingRate *)_16KHZ;
    + + +

    Swift

    +
    class func _16KHZ() -> SDLSamplingRate!
    + + + +
    +

    Return Value

    +

    SamplingRate of 16KHZ

    + +
    + +

    + +_22KHZ +

    + +

    @abstract Sampling rate of 22 kHz

    + + + +

    Objective-C

    +
    + (SDLSamplingRate *)_22KHZ;
    + + +

    Swift

    +
    class func _22KHZ() -> SDLSamplingRate!
    + + + +
    +

    Return Value

    +

    SamplingRate of 22KHZ

    + +
    + +

    + +_44KHZ +

    + +

    @abstract Sampling rate of 44 kHz

    + + + +

    Objective-C

    +
    + (SDLSamplingRate *)_44KHZ;
    + + +

    Swift

    +
    class func _44KHZ() -> SDLSamplingRate!
    + + + +
    +

    Return Value

    +

    SamplingRate of 44KHZ

    + +
    + +
    diff --git a/docs/Classes/SDLScreenParams.html b/docs/Classes/SDLScreenParams.html new file mode 100644 index 000000000..5c8ad4a0c --- /dev/null +++ b/docs/Classes/SDLScreenParams.html @@ -0,0 +1,62 @@ +

    SDLScreenParams Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + resolution +

    + +

    Undocumented

    + + + + + + +

    + touchEventAvailable +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLScrollableMessage.html b/docs/Classes/SDLScrollableMessage.html new file mode 100644 index 000000000..072a415c3 --- /dev/null +++ b/docs/Classes/SDLScrollableMessage.html @@ -0,0 +1,136 @@ +

    SDLScrollableMessage Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Creates a full screen overlay containing a large block of formatted text that +can be scrolled with up to 8 SoftButtons defined +

    +Function Group: ScrollableMessage +

    +HMILevel needs to be FULL +

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLScrollableMessage object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLScrollableMessage object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + scrollableMessageBody +

    + +

    @abstract A Body of text that can include newlines and tabs +@discussion A String value representing the Body of text that can include + newlines and tabs +

    + Notes: Maxlength=500

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *scrollableMessageBody;
    + + +

    Swift

    +
    var scrollableMessageBody: String! { get set }
    + + + + +

    + timeout +

    + +

    @abstract Gets/Sets an App defined timeout. Indicates how long of a timeout in milliseconds from the +last action +@discussion An Integer value representing an App defined timeout in milliseconds +

    + Notes:Minval=0; Maxval=65535;Default=30000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *timeout;
    + + +

    Swift

    +
    var timeout: NSNumber! { get set }
    + + + + +

    + softButtons +

    + +

    @abstract Gets/Sets App defined SoftButtons.If omitted on supported displays, only the +system defined Close SoftButton will be displayed +@discussion A Vector value representing App defined + SoftButtons +

    + Notes: Minsize=0, Maxsize=8

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *softButtons;
    + + +

    Swift

    +
    var softButtons: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLScrollableMessageResponse.html b/docs/Classes/SDLScrollableMessageResponse.html new file mode 100644 index 000000000..0b15a5b1d --- /dev/null +++ b/docs/Classes/SDLScrollableMessageResponse.html @@ -0,0 +1,62 @@ +

    SDLScrollableMessageResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Scrollable Message Response is sent, when SDLScrollableMessage has been called

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLScrollableMessageResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLScrollableMessageResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLSendLocation.html b/docs/Classes/SDLSendLocation.html new file mode 100644 index 000000000..80a19b960 --- /dev/null +++ b/docs/Classes/SDLSendLocation.html @@ -0,0 +1,185 @@ +

    SDLSendLocation Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + longitudeDegrees +

    + +

    The longitudinal coordinate of the location.

    + +

    Float, Required, -180.0 - 180.0

    + + + +

    Objective-C

    +
    @property (readwrite, copy, nonatomic) NSNumber *longitudeDegrees;
    + + +

    Swift

    +
    @NSCopying var longitudeDegrees: NSNumber! { get set }
    + + + + +

    + latitudeDegrees +

    + +

    The latitudinal coordinate of the location.

    + +

    Float, Required, -90.0 - 90.0

    + + + +

    Objective-C

    +
    @property (readwrite, copy, nonatomic) NSNumber *latitudeDegrees;
    + + +

    Swift

    +
    @NSCopying var latitudeDegrees: NSNumber! { get set }
    + + + + +

    + locationName +

    + +

    Name / title of intended location

    + +

    Optional, Maxlength = 500 char

    + + + +

    Objective-C

    +
    @property (readwrite, copy, nonatomic) NSString *locationName;
    + + +

    Swift

    +
    var locationName: String! { get set }
    + + + + +

    + locationDescription +

    + +

    Description of the intended location / establishment

    + +

    Optional, MaxLength = 500 char

    + + + +

    Objective-C

    +
    @property (readwrite, copy, nonatomic) NSString *locationDescription;
    + + +

    Swift

    +
    var locationDescription: String! { get set }
    + + + + +

    + addressLines +

    + +

    Array of lines for the location address

    + +

    Contains String, Optional, Max Array Length = 4, Max String Length = 500

    + + + +

    Objective-C

    +
    @property (readwrite, copy, nonatomic) NSArray *addressLines;
    + + +

    Swift

    +
    var addressLines: [AnyObject]! { get set }
    + + + + +

    + phoneNumber +

    + +

    Phone number of intended location / establishment

    + +

    Optional, Max Length = 500

    + + + +

    Objective-C

    +
    @property (readwrite, copy, nonatomic) NSString *phoneNumber;
    + + +

    Swift

    +
    var phoneNumber: String! { get set }
    + + + + +

    + locationImage +

    + +

    Image / icon of intended location

    + +

    Optional

    + + + +

    Objective-C

    +
    @property (readwrite, strong, nonatomic) SDLImage *locationImage;
    + + +

    Swift

    +
    var locationImage: SDLImage! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLSendLocationResponse.html b/docs/Classes/SDLSendLocationResponse.html new file mode 100644 index 000000000..b9d936626 --- /dev/null +++ b/docs/Classes/SDLSendLocationResponse.html @@ -0,0 +1,38 @@ +

    SDLSendLocationResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLSetAppIcon.html b/docs/Classes/SDLSetAppIcon.html new file mode 100644 index 000000000..7a11813a0 --- /dev/null +++ b/docs/Classes/SDLSetAppIcon.html @@ -0,0 +1,85 @@ +

    SDLSetAppIcon Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Used to set existing local file on SDL as the app’s icon. Not supported on + first generation SDL modules. +

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSetAppIcon object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSetAppIcon object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + syncFileName +

    + +

    @abstract A file reference name +@discussion A String value representing a file reference name +

    + Notes: Maxlength=500

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *syncFileName;
    + + +

    Swift

    +
    var syncFileName: String! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLSetAppIconResponse.html b/docs/Classes/SDLSetAppIconResponse.html new file mode 100644 index 000000000..629f06ee5 --- /dev/null +++ b/docs/Classes/SDLSetAppIconResponse.html @@ -0,0 +1,47 @@ +

    SDLSetAppIconResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLSetAppIconResponse is sent, when SDLSetAppIcon has been called. + * SinceSmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSetAppIconResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSetAppIconResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLSetDisplayLayout.html b/docs/Classes/SDLSetDisplayLayout.html new file mode 100644 index 000000000..013bede7a --- /dev/null +++ b/docs/Classes/SDLSetDisplayLayout.html @@ -0,0 +1,85 @@ +

    SDLSetDisplayLayout Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Used to set an alternate display layout. If not sent, default screen for + given platform will be shown

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSetDisplayLayout object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSetDisplayLayout object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + displayLayout +

    + +

    @abstract A display layout. Predefined or dynamically created screen layout. +Currently only predefined screen layouts are defined. Predefined layouts +include: ONSCREEN_PRESETS Custom screen containing app-defined onscreen +presets. Currently defined for GEN2

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *displayLayout;
    + + +

    Swift

    +
    var displayLayout: String! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLSetDisplayLayoutResponse.html b/docs/Classes/SDLSetDisplayLayoutResponse.html new file mode 100644 index 000000000..571e0030e --- /dev/null +++ b/docs/Classes/SDLSetDisplayLayoutResponse.html @@ -0,0 +1,115 @@ +

    SDLSetDisplayLayoutResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Set Display Layout Response is sent, when SetDisplayLayout has been called

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSetDisplayLayoutResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSetDisplayLayoutResponse : SDLRPCResponse
    + + + + + +

    + displayCapabilities +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSetDisplayLayoutResponse : SDLRPCResponse
    + + + + + +

    + buttonCapabilities +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSetDisplayLayoutResponse : SDLRPCResponse
    + + + + + +

    + softButtonCapabilities +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSetDisplayLayoutResponse : SDLRPCResponse
    + + + + + +

    + presetBankCapabilities +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSetDisplayLayoutResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLSetGlobalProperties.html b/docs/Classes/SDLSetGlobalProperties.html new file mode 100644 index 000000000..219c5ad4e --- /dev/null +++ b/docs/Classes/SDLSetGlobalProperties.html @@ -0,0 +1,232 @@ +

    SDLSetGlobalProperties Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Sets value(s) for the specified global property(ies) +

    + Function Group: Base

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 1.0 + See SDLResetGlobalProperties

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSetGlobalProperties object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSetGlobalProperties object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + helpPrompt +

    + +

    @abstract Sets a Vector for Help Prompt that Array of one or more +TTSChunk elements specifying the help prompt used in an interaction +started by PTT +@discussion helpPrompt + a Vector of one or more TTSChunk elements +

    + Notes: +

      +
    • Array must have at least one element
    • +
    • Only optional it timeoutPrompt has been specified
    • +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *helpPrompt;
    + + +

    Swift

    +
    var helpPrompt: NSMutableArray! { get set }
    + + + + +

    + timeoutPrompt +

    + +

    @abstract A Vector for Timeout Prompt representing Array of one or + more TTSChunk elements specifying the help prompt used in an interaction + started by PTT

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *timeoutPrompt;
    + + +

    Swift

    +
    var timeoutPrompt: NSMutableArray! { get set }
    + + + + +

    + vrHelpTitle +

    + +

    @abstract Sets a voice recognition Help Title

    + +

    @discussion A String value representing a voice recognition Help Title +

    + Notes:
    +

      +
    • If omitted on supported displays, the default SDL help + title will be used
    • +
    • If omitted and one or more vrHelp items are provided, the + request will be rejected.
    • +
    • String Maxlength = 500
    • +
    + @since SmartDeviceLink 2.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *vrHelpTitle;
    + + +

    Swift

    +
    var vrHelpTitle: String! { get set }
    + + + + +

    + vrHelp +

    + +

    @abstract Sets the items listed in the VR help screen used in an interaction + started by PTT

    + +

    @discussion A Vector value representing items listed in the VR help screen + used in an interaction started by PTT +

    + Notes:
    +

      +
    • If omitted on supported displays, the default SmartDeviceLink VR + help / What Can I Say? screen will be used
    • +
    • If the list of VR Help Items contains nonsequential + positions (e.g. [1,2,4]), the RPC will be rejected
    • +
    • If omitted and a vrHelpTitle is provided, the request + will be rejected
    • +
    • Array Minsize: = 1
    • +
    • Array Maxsize = 100
    • +
    + @since SmartDeviceLink 2.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *vrHelp;
    + + +

    Swift

    +
    var vrHelp: NSMutableArray! { get set }
    + + + + +

    + menuTitle +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSetGlobalProperties : SDLRPCRequest
    + + + + + +

    + menuIcon +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSetGlobalProperties : SDLRPCRequest
    + + + + + +

    + keyboardProperties +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSetGlobalProperties : SDLRPCRequest
    + + + + + +
    diff --git a/docs/Classes/SDLSetGlobalPropertiesResponse.html b/docs/Classes/SDLSetGlobalPropertiesResponse.html new file mode 100644 index 000000000..df7dfcad3 --- /dev/null +++ b/docs/Classes/SDLSetGlobalPropertiesResponse.html @@ -0,0 +1,62 @@ +

    SDLSetGlobalPropertiesResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Set Global Properties Response is sent, when SDLSetGlobalProperties has been called

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSetGlobalPropertiesResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSetGlobalPropertiesResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLSetMediaClockTimer.html b/docs/Classes/SDLSetMediaClockTimer.html new file mode 100644 index 000000000..c7227f3f2 --- /dev/null +++ b/docs/Classes/SDLSetMediaClockTimer.html @@ -0,0 +1,145 @@ +

    SDLSetMediaClockTimer Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Sets the media clock/timer value and the update method (e.g.count-up, + count-down, etc.) +

    + Function Group: Base

    + HMILevel needs to be FULL, LIMITIED or BACKGROUND +

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSetMediaClockTimer object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSetMediaClockTimer object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + startTime +

    + +

    @abstract A Start Time with specifying hour, minute, second values

    + +

    @discussion A startTime object with specifying hour, minute, second values +

    + Notes: +

      +
    • If updateMode is COUNTUP or COUNTDOWN, this parameter + must be provided
    • +
    • Will be ignored for PAUSE/RESUME and CLEAR
    • +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLStartTime *startTime;
    + + +

    Swift

    +
    var startTime: SDLStartTime! { get set }
    + + + + +

    + endTime +

    + +

    @abstract An END time of type SDLStartTime, specifying hour, minute, second values

    + +

    @discussion An SDLStartTime object with specifying hour, minute, second values

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLStartTime *endTime;
    + + +

    Swift

    +
    var endTime: SDLStartTime! { get set }
    + + + + +

    + updateMode +

    + +

    @abstract The media clock/timer update mode (COUNTUP/COUNTDOWN/PAUSE/RESUME)

    + +

    @discussion a Enumeration value (COUNTUP/COUNTDOWN/PAUSE/RESUME) +

    + Notes: +

      +
    • When updateMode is PAUSE, RESUME or CLEAR, the start time value + is ignored
    • +
    • When updateMode is RESUME, the timer resumes counting from + the timer’s value when it was paused
    • +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLUpdateMode *updateMode;
    + + +

    Swift

    +
    var updateMode: SDLUpdateMode! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLSetMediaClockTimerResponse.html b/docs/Classes/SDLSetMediaClockTimerResponse.html new file mode 100644 index 000000000..7a296f6f1 --- /dev/null +++ b/docs/Classes/SDLSetMediaClockTimerResponse.html @@ -0,0 +1,62 @@ +

    SDLSetMediaClockTimerResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Set Media Clock Timer Response is sent, when SDLSetMediaClockTimer has been called

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSetMediaClockTimerResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSetMediaClockTimerResponse object indicated by the NSMutableDictionary + parameter +

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLShow.html b/docs/Classes/SDLShow.html new file mode 100644 index 000000000..74386f2f8 --- /dev/null +++ b/docs/Classes/SDLShow.html @@ -0,0 +1,445 @@ +

    SDLShow Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Updates the application’s display text area, regardless of whether or not + this text area is visible to the user at the time of the request. The + application’s display text area remains unchanged until updated by subsequent + calls to Show +

    + The content of the application’s display text area is visible to the user + when the application + is FULL or LIMITED, and the + SDLSystemContext=MAIN and no + SDLAlert is in progress +

    + The Show operation cannot be used to create an animated scrolling screen. To + avoid distracting the driver, Show commands cannot be issued more than once + every 4 seconds. Requests made more frequently than this will be rejected +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 1.0 + See SDLAlert SDLSetMediaClockTimer

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLShow object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLShow object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + mainField1 +

    + +

    @abstract The text displayed in a single-line display, or in the upper display +line in a two-line display +@discussion The String value representing the text displayed in a + single-line display, or in the upper display line in a + two-line display +

    + Notes: +

      +
    • If this parameter is omitted, the text of mainField1 does + not change
    • +
    • If this parameter is an empty string, the field will be + cleared
    • +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *mainField1;
    + + +

    Swift

    +
    var mainField1: String! { get set }
    + + + + +

    + mainField2 +

    + +

    @abstract The text displayed on the second display line of a two-line display

    + +

    @discussion The String value representing the text displayed on the second + display line of a two-line display +

    + Notes: +

      +
    • If this parameter is omitted, the text of mainField2 does + not change
    • +
    • If this parameter is an empty string, the field will be + cleared
    • +
    • If provided and the display is a single-line display, the + parameter is ignored
    • +
    • Maxlength = 500
    • +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *mainField2;
    + + +

    Swift

    +
    var mainField2: String! { get set }
    + + + + +

    + mainField3 +

    + +

    @abstract The text displayed on the first display line of the second page

    + +

    @discussion The String value representing the text displayed on the first + display line of the second page +

    + Notes: +

      +
    • If this parameter is omitted, the text of mainField3 does + not change
    • +
    • If this parameter is an empty string, the field will be + cleared
    • +
    • If provided and the display is a single-line display, the + parameter is ignored
    • +
    • Maxlength = 500
    • +
    + @since SmartDeviceLink 2.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *mainField3;
    + + +

    Swift

    +
    var mainField3: String! { get set }
    + + + + +

    + mainField4 +

    + +

    @abstract The text displayed on the second display line of the second page

    + +

    @discussion The String value representing the text displayed on the second + display line of the second page +

    + Notes: +

      +
    • If this parameter is omitted, the text of mainField4 does + not change
    • +
    • If this parameter is an empty string, the field will be + cleared
    • +
    • If provided and the display is a single-line display, the + parameter is ignored
    • +
    • Maxlength = 500
    • +
    + @since SmartDeviceLink 2.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *mainField4;
    + + +

    Swift

    +
    var mainField4: String! { get set }
    + + + + +

    + alignment +

    + +

    @abstract The alignment that Specifies how mainField1 and mainField2 text + should be aligned on display

    + +

    @discussion An Enumeration value +

    + Notes: +

      +
    • Applies only to mainField1 and mainField2 provided on this + call, not to what is already showing in display
    • +
    • If this parameter is omitted, text in both mainField1 and + mainField2 will be centered
    • +
    • Has no effect with navigation display
    • +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLTextAlignment *alignment;
    + + +

    Swift

    +
    var alignment: SDLTextAlignment! { get set }
    + + + + +

    + statusBar +

    + +

    @abstract Text in the Status Bar

    + +

    @discussion A String representing the text you want to add in the Status + Bar +

    + Notes: The status bar only exists on navigation + displays
    +

      +
    • If this parameter is omitted, the status bar text will + remain unchanged
    • +
    • If this parameter is an empty string, the field will be + cleared
    • +
    • If provided and the display has no status bar, this + parameter is ignored
    • +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *statusBar;
    + + +

    Swift

    +
    var statusBar: String! { get set }
    + + + + +

    + mediaClock +

    + +

    @abstract This property is deprecated use SetMediaClockTimer instead. +

    The value for the MediaClock field using a format described in the + MediaClockFormat enumeration

    + +

    @discussion A String value for the MediaClock +

    + Notes:
    +

      +
    • Must be properly formatted as described in the + MediaClockFormat enumeration
    • +
    • If a value of five spaces is provided, this will clear + that field on the display (i.e. the media clock timer field + will not display anything)
    • +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *mediaClock;
    + + +

    Swift

    +
    var mediaClock: String! { get set }
    + + + + +

    + mediaTrack +

    + +

    @abstract The text in the track field

    + +

    @discussion A String value disaplayed in the track field +

    + Notes:
    +

      +
    • If parameter is omitted, the track field remains unchanged
    • +
    • If an empty string is provided, the field will be cleared
    • +
    • This field is only valid for media applications on navigation displays
    • +

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *mediaTrack;
    + + +

    Swift

    +
    var mediaTrack: String! { get set }
    + + + + +

    + graphic +

    + +

    @abstract An image to be shown on supported displays

    + +

    @discussion The value representing the image shown on supported displays +

    + Notes: If omitted on supported displays, the displayed + graphic shall not change
    + @since SmartDeviceLink 2.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLImage *graphic;
    + + +

    Swift

    +
    var graphic: SDLImage! { get set }
    + + + + +

    + secondaryGraphic +

    + +

    @abstract An image to be shown on supported displays

    + +

    @discussion The value representing the image shown on supported displays +

    + Notes: If omitted on supported displays, the displayed + graphic shall not change
    + @since SmartDeviceLink 2.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLImage *secondaryGraphic;
    + + +

    Swift

    +
    var secondaryGraphic: SDLImage! { get set }
    + + + + +

    + softButtons +

    + +

    @abstract The the Soft buttons defined by the App

    + +

    @discussion A Vector value represemting the Soft buttons defined by the + App +

    + Notes:
    +

      +
    • If omitted on supported displays, the currently displayed + SoftButton values will not change
    • +
    • Array Minsize: 0
    • +
    • Array Maxsize: 8
    • +

    + +

    @since SmartDeviceLink 2.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *softButtons;
    + + +

    Swift

    +
    var softButtons: NSMutableArray! { get set }
    + + + + +

    + customPresets +

    + +

    @abstract The Custom Presets defined by the App

    + +

    @discussion A Vector value representing the Custom Presets defined by the + App +

    +

      +
    • If omitted on supported displays, the presets will be shown as not defined
    • +
    • Array Minsize: 0
    • +
    • Array Maxsize: 6
    • +
    + @since SmartDeviceLink 2.0

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *customPresets;
    + + +

    Swift

    +
    var customPresets: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLShowConstantTBT.html b/docs/Classes/SDLShowConstantTBT.html new file mode 100644 index 000000000..c0c377c76 --- /dev/null +++ b/docs/Classes/SDLShowConstantTBT.html @@ -0,0 +1,226 @@ +

    SDLShowConstantTBT Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    This RPC is used to update the user with navigation information
    + * for the constantly shown screen (base screen),but also for the
    + * alert type screen. + *

    + * @since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +

    + navigationText1 +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +

    + navigationText2 +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +

    + eta +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +

    + timeToDestination +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +

    + totalDistance +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +

    + turnIcon +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +

    + nextTurnIcon +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +

    + distanceToManeuver +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +

    + distanceToManeuverScale +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +

    + maneuverComplete +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +

    + softButtons +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBT : SDLRPCRequest
    + + + + + +
    diff --git a/docs/Classes/SDLShowConstantTBTResponse.html b/docs/Classes/SDLShowConstantTBTResponse.html new file mode 100644 index 000000000..13273597c --- /dev/null +++ b/docs/Classes/SDLShowConstantTBTResponse.html @@ -0,0 +1,47 @@ +

    SDLShowConstantTBTResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLShowConstantTBTResponse is sent, when SDLShowConstantTBT has been called. + * SinceSmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBTResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLShowConstantTBTResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLShowResponse.html b/docs/Classes/SDLShowResponse.html new file mode 100644 index 000000000..e2772110e --- /dev/null +++ b/docs/Classes/SDLShowResponse.html @@ -0,0 +1,62 @@ +

    SDLShowResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Show Response is sent, when Show has been called

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLShowResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLShowResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLSingleTireStatus.html b/docs/Classes/SDLSingleTireStatus.html new file mode 100644 index 000000000..99cf94797 --- /dev/null +++ b/docs/Classes/SDLSingleTireStatus.html @@ -0,0 +1,80 @@ +

    SDLSingleTireStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Tire pressure status of a single tire.

    + +

    @since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a newly allocated SDLSingleTireStatus object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a newly allocated SDLSingleTireStatus object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + status +

    + +

    @abstract The volume status of a single tire

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLComponentVolumeStatus *status;
    + + +

    Swift

    +
    var status: SDLComponentVolumeStatus! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLSiphonServer.html b/docs/Classes/SDLSiphonServer.html new file mode 100644 index 000000000..e707fd7b0 --- /dev/null +++ b/docs/Classes/SDLSiphonServer.html @@ -0,0 +1,122 @@ +

    SDLSiphonServer Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +enableSiphonDebug +

    + +

    Undocumented

    + + + + + + +

    + +disableSiphonDebug +

    + +

    Undocumented

    + + + + + + +

    + +_siphonRawTransportDataFromApp:msgBytesLength: +

    + +

    Undocumented

    + + + + + + +

    + +_siphonRawTransportDataFromSDL:msgBytesLength: +

    + +

    Undocumented

    + + + + + + +

    + +_siphonNSLogData: +

    + +

    Undocumented

    + + + + + + +

    + +_siphonFormattedTraceData: +

    + +

    Undocumented

    + + + + + + +

    + +_siphonIsActive +

    + +

    Undocumented

    + + + + + + +

    + +init +

    + +

    Undocumented

    + + + + + + +

    + +dealloc +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLSlider.html b/docs/Classes/SDLSlider.html new file mode 100644 index 000000000..959ab9ef0 --- /dev/null +++ b/docs/Classes/SDLSlider.html @@ -0,0 +1,180 @@ +

    SDLSlider Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Creates a full screen or pop-up overlay (depending on platform) with a single user controlled slider

    + +

    HMILevel needs to be FULL

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSlider object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSlider object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + numTicks +

    + +

    @abstract Represents a number of selectable items on a horizontal axis

    + +

    Required, Integer, 2 - 26

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *numTicks;
    + + +

    Swift

    +
    var numTicks: NSNumber! { get set }
    + + + + +

    + position +

    + +

    @abstract An Initial position of slider control

    + +

    Required, Integer, 1 - 26

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *position;
    + + +

    Swift

    +
    var position: NSNumber! { get set }
    + + + + +

    + sliderHeader +

    + +

    @abstract A text header to display

    + +

    Rquired, Max length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *sliderHeader;
    + + +

    Swift

    +
    var sliderHeader: String! { get set }
    + + + + +

    + sliderFooter +

    + +

    @abstract A text footer to display

    + +

    @discussion For a static text footer, only one footer string shall be provided in the array.

    + +

    For a dynamic text footer, the number of footer text string in the array must match the numTicks value.

    + +

    For a dynamic text footer, text array string should correlate with potential slider position index.

    + +

    If omitted on supported displays, no footer text shall be displayed.

    + +

    Optional, Array of Strings, Array length 1 - 26, Max string length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *sliderFooter;
    + + +

    Swift

    +
    var sliderFooter: NSMutableArray! { get set }
    + + + + +

    + timeout +

    + +

    @abstract An App defined timeout

    + +

    @discussion Indicates how long of a timeout from the last action (i.e. sliding control resets timeout).

    + +

    If omitted, the value is set to 10000.

    + +

    Optional, Integer, 1000 - 65535

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *timeout;
    + + +

    Swift

    +
    var timeout: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLSliderResponse.html b/docs/Classes/SDLSliderResponse.html new file mode 100644 index 000000000..817e4207f --- /dev/null +++ b/docs/Classes/SDLSliderResponse.html @@ -0,0 +1,81 @@ +

    SDLSliderResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Slider Response is sent, when Slider has been called

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSliderResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSliderResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + sliderPosition +

    + +

    @abstract The selected position of the slider.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *sliderPosition;
    + + +

    Swift

    +
    var sliderPosition: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLSoftButton.html b/docs/Classes/SDLSoftButton.html new file mode 100644 index 000000000..1e9be218e --- /dev/null +++ b/docs/Classes/SDLSoftButton.html @@ -0,0 +1,110 @@ +

    SDLSoftButton Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + type +

    + +

    Undocumented

    + + + + + + +

    + text +

    + +

    Undocumented

    + + + + + + +

    + image +

    + +

    Undocumented

    + + + + + + +

    + isHighlighted +

    + +

    Undocumented

    + + + + + + +

    + softButtonID +

    + +

    Undocumented

    + + + + + + +

    + systemAction +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLSoftButtonCapabilities.html b/docs/Classes/SDLSoftButtonCapabilities.html new file mode 100644 index 000000000..e3aa92390 --- /dev/null +++ b/docs/Classes/SDLSoftButtonCapabilities.html @@ -0,0 +1,151 @@ +

    SDLSoftButtonCapabilities Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Contains information about a SoftButton’s capabilities.

    + +

    @since SDL 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a newly allocated SDLSoftButtonCapabilities object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a newly allocated SDLSoftButtonCapabilities object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + shortPressAvailable +

    + +

    @abstract The button supports a short press.

    + +

    @discussion Whenever the button is pressed short, onButtonPressed(SHORT) will be invoked.

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *shortPressAvailable;
    + + +

    Swift

    +
    var shortPressAvailable: NSNumber! { get set }
    + + + + +

    + longPressAvailable +

    + +

    @abstract The button supports a LONG press.

    + +

    @discussion Whenever the button is pressed long, onButtonPressed(LONG) will be invoked.

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *longPressAvailable;
    + + +

    Swift

    +
    var longPressAvailable: NSNumber! { get set }
    + + + + +

    + upDownAvailable +

    + +

    @abstract The button supports button down and button up.

    + +

    @discussion Whenever the button is pressed, onButtonEvent(DOWN) will be invoked. Whenever the button is released, onButtonEvent(UP) will be invoked.

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *upDownAvailable;
    + + +

    Swift

    +
    var upDownAvailable: NSNumber! { get set }
    + + + + +

    + imageSupported +

    + +

    @abstract The button supports referencing a static or dynamic image.

    + +

    Required, Boolean

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *imageSupported;
    + + +

    Swift

    +
    var imageSupported: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLSoftButtonType.html b/docs/Classes/SDLSoftButtonType.html new file mode 100644 index 000000000..4dfa359dc --- /dev/null +++ b/docs/Classes/SDLSoftButtonType.html @@ -0,0 +1,146 @@ +

    SDLSoftButtonType Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SoftButtonType (TEXT / IMAGE / BOTH)

    + + +
    +

    + +valueOf: +

    + +

    @abstract get SDLSoftButtonType according value string +- parameter: value NSString +- returns: SDLSoftButtonType object

    + + + +

    Objective-C

    +
    + (SDLSoftButtonType *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLSoftButtonType!
    + + + +

    Parameters

    +
    +
    value
    +

    NSString

    +
    +
    +
    +

    Return Value

    +

    SDLSoftButtonType object

    + +
    + +

    + +values +

    + +

    @abstract declare an array to store all possible SDLSoftButtonType values +- returns: the array

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    the array

    + +
    + +

    + +TEXT +

    + +

    @abstract Text kind Softbutton +- returns: SDLSoftButtonType object with string value TEXT

    + + + +

    Objective-C

    +
    + (SDLSoftButtonType *)TEXT;
    + + +

    Swift

    +
    class func TEXT() -> SDLSoftButtonType!
    + + + +
    +

    Return Value

    +

    SDLSoftButtonType object with string value TEXT

    + +
    + +

    + +IMAGE +

    + +

    @abstract Image kind Softbutton +- returns: SDLSoftButtonType object with string value IMAGE

    + + + +

    Objective-C

    +
    + (SDLSoftButtonType *)IMAGE;
    + + +

    Swift

    +
    class func IMAGE() -> SDLSoftButtonType!
    + + + +
    +

    Return Value

    +

    SDLSoftButtonType object with string value IMAGE

    + +
    + +

    + +BOTH +

    + +

    @abstract Both (Text & Image) kind Softbutton +- returns: SDLSoftButtonType object with string value BOTH

    + + + +

    Objective-C

    +
    + (SDLSoftButtonType *)BOTH;
    + + +

    Swift

    +
    class func BOTH() -> SDLSoftButtonType!
    + + + +
    +

    Return Value

    +

    SDLSoftButtonType object with string value BOTH

    + +
    + +
    diff --git a/docs/Classes/SDLSpeak.html b/docs/Classes/SDLSpeak.html new file mode 100644 index 000000000..6bbf78985 --- /dev/null +++ b/docs/Classes/SDLSpeak.html @@ -0,0 +1,118 @@ +

    SDLSpeak Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Speaks a phrase over the vehicle audio system using SDL’s TTS (text-to-speech) engine. The provided text to be spoken can be simply a text phrase, or it can consist of phoneme specifications to direct SDL’s TTS engine to speak a speech-sculpted phrase.

    + +

    Receipt of the Response indicates the completion of the Speak operation, regardless of how the Speak operation may have completed (i.e. successfully, interrupted, terminated, etc.).

    + +

    Requesting a new Speak operation while the application has another Speak operation already in progress (i.e. no corresponding Response for that in-progress Speak operation has been received yet) will terminate the in-progress Speak operation (causing its corresponding Response to be sent by SDL) and begin the requested Speak operation

    + +

    Requesting a new Speak operation while the application has an SDLAlert operation already in progress (i.e. no corresponding Response for that in-progress SDLAlert operation has been received yet) will result in the Speak operation request being rejected (indicated in the Response to the Request)

    + +

    Requesting a new SDLAlert operation while the application has a Speak operation already in progress (i.e. no corresponding Response for that in-progress Speak operation has been received yet) will terminate the in-progress Speak operation (causing its corresponding Response to be sent by SDL) and begin the requested SDLAlert operation

    + +

    Requesting a new Speak operation while the application has a SDLPerformInteraction operation already in progress (i.e. no corresponding Response for that in-progress SDLPerformInteraction operation has been received yet) will result in the Speak operation request being rejected (indicated in the Response to the Request)

    + +

    Requesting a SDLPerformInteraction operation while the application has a Speak operation already in progress (i.e. no corresponding Response for that in-progress Speak operation has been received yet) will terminate the in-progress Speak operation (causing its corresponding Response to be sent by SDL) and begin the requested SDLPerformInteraction operation

    + +

    HMI Status Requirements: +

  • HMILevel: FULL, Limited
  • +
  • AudioStreamingState: Any
  • +
  • SystemContext: MAIN, MENU, VR
  • + +

    Notes: +

  • When SDLAlert is issued with MENU in effect, SDLAlert is queued and played when MENU interaction is completed (i.e. SystemContext reverts to MAIN). When SDLAlert + is issued with VR in effect, SDLAlert is queued and played when VR interaction is completed (i.e. SystemContext reverts to MAIN)
  • +
  • When both SDLAlert and Speak are queued during MENU or VR, they are played back in the order in which they were queued, with all existing rules for collisions still in effect
  • + +

    Additional Notes: +

  • Total character limit depends on platform.
  • +
  • Chunks are limited to 500 characters; however you can have multiple TTS chunks.
  • +
  • On old systems there is a total character limit of 500 characters across all chunks. This could vary according to the VCA.
  • + +

    @since SmartDeviceLink 1.0 + - see: SDLAlert

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSpeak object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSpeak object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + ttsChunks +

    + +

    @abstract An array of TTSChunk structs which, taken together, specify the phrase to be spoken

    + +

    @discussion The total length of the phrase composed from the ttsChunks provided must be less than 500 characters or the request will be rejected

    + +

    Required, Array of SDLTTSChunk, Array size 1 - 100

    + +
    +

    See

    + SDLTTSChunk + +
    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *ttsChunks;
    + + +

    Swift

    +
    var ttsChunks: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLSpeakResponse.html b/docs/Classes/SDLSpeakResponse.html new file mode 100644 index 000000000..60d3861cb --- /dev/null +++ b/docs/Classes/SDLSpeakResponse.html @@ -0,0 +1,62 @@ +

    SDLSpeakResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Speak Response is sent, when Speak has been called

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSpeakResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSpeakResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLSpeechCapabilities.html b/docs/Classes/SDLSpeechCapabilities.html new file mode 100644 index 000000000..a16cd1893 --- /dev/null +++ b/docs/Classes/SDLSpeechCapabilities.html @@ -0,0 +1,140 @@ +

    SDLSpeechCapabilities Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +valueOf: +

    + +

    @abstract get SDLSpeechCapabilities according value string

    + + + +

    Objective-C

    +
    + (SDLSpeechCapabilities *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLSpeechCapabilities!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLSpeechCapabilities object

    + +
    + +

    + +values +

    + +

    @abstract declare an array to store all possible SDLSpeechCapabilities values

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    the array of all possible values

    + +
    + +

    + +TEXT +

    + +

    @abstract The SDL platform can speak text phrases.

    + + + +

    Objective-C

    +
    + (SDLSpeechCapabilities *)TEXT;
    + + +

    Swift

    +
    class func TEXT() -> SDLSpeechCapabilities!
    + + + +
    +

    Return Value

    +

    SDLSpeechCapabilities of value: TEXT

    + +
    + +

    + +SAPI_PHONEMES +

    + +

    Undocumented

    + + + + + + +

    + +LHPLUS_PHONEMES +

    + +

    Undocumented

    + + + + + + +

    + +PRE_RECORDED +

    + +

    Undocumented

    + + + + + + +

    + +SILENCE +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLStartTime.html b/docs/Classes/SDLStartTime.html new file mode 100644 index 000000000..93a25fc78 --- /dev/null +++ b/docs/Classes/SDLStartTime.html @@ -0,0 +1,126 @@ +

    SDLStartTime Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Describes the hour, minute and second values used to set the media clock.

    + +

    @since SDL 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a newly allocated SDLStartTime object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a newly allocated SDLStartTime object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + hours +

    + +

    @abstract The hour of the media clock

    + +

    @discussion Some display types only support a max value of 19. If out of range, it will be rejected.

    + +

    Required, Integer, 0 - 59

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *hours;
    + + +

    Swift

    +
    var hours: NSNumber! { get set }
    + + + + +

    + minutes +

    + +

    @abstract The minute of the media clock

    + +

    Required, Integer, 0 - 59

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *minutes;
    + + +

    Swift

    +
    var minutes: NSNumber! { get set }
    + + + + +

    + seconds +

    + +

    @abstract The second of the media clock

    + +

    Required, Integer, 0 - 59

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *seconds;
    + + +

    Swift

    +
    var seconds: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLStreamingMediaManager.html b/docs/Classes/SDLStreamingMediaManager.html new file mode 100644 index 000000000..a7c54b2d1 --- /dev/null +++ b/docs/Classes/SDLStreamingMediaManager.html @@ -0,0 +1,206 @@ +

    SDLStreamingMediaManager Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -initWithProtocol: +

    + +

    Undocumented

    + + + + + + +

    + -startVideoSessionWithStartBlock: +

    + +

    This method will attempt to start a streaming video session. It will set up iOS’s video encoder, and call out to the head unit asking if it will start a video session.

    + +
    +

    Warning

    +

    If this method is called on an 8.0 device, it will assert (in debug), or return a failure immediately to your block (in release).

    + +
    + + + +

    Objective-C

    +
    - (void)startVideoSessionWithStartBlock:
    +    (nonnull SDLStreamingStartBlock)startBlock;
    + + +

    Swift

    +
    func startVideoSessionWithStartBlock(startBlock: SDLStreamingStartBlock)
    + + + +

    Parameters

    +
    +
    startBlock
    +

    A block that will be called with the result of attempting to start a video session

    +
    +
    + +

    + -stopVideoSession +

    + +

    This method will stop a running video session if there is one running.

    + + + +

    Objective-C

    +
    - (void)stopVideoSession;
    + + +

    Swift

    +
    func stopVideoSession()
    + + + + +

    + -sendVideoData: +

    + +

    This method receives raw image data and will run iOS8+’s hardware video encoder to turn the data into a video stream, which will then be passed to the connected head unit.

    + + + +

    Objective-C

    +
    - (BOOL)sendVideoData:(nonnull CVImageBufferRef)imageBuffer;
    + + +

    Swift

    +
    func sendVideoData(imageBuffer: CVImageBuffer) -> Bool
    + + + +

    Parameters

    +
    +
    imageBuffer
    +

    A CVImageBufferRef to be encoded by Video Toolbox

    +
    +
    +
    +

    Return Value

    +

    Whether or not the data was successfully encoded and sent.

    + +
    + +

    + -startAudioStreamingWithStartBlock: +

    + +

    This method will attempt to start an audio session

    + + + +

    Objective-C

    +
    - (void)startAudioStreamingWithStartBlock:
    +    (nonnull SDLStreamingStartBlock)startBlock;
    + + +

    Swift

    +
    func startAudioStreamingWithStartBlock(startBlock: SDLStreamingStartBlock)
    + + + +

    Parameters

    +
    +
    startBlock
    +

    A block that will be called with the result of attempting to start an audio session

    +
    +
    + +

    + -stopAudioSession +

    + +

    This method will stop a running audio session if there is one running.

    + + + +

    Objective-C

    +
    - (void)stopAudioSession;
    + + +

    Swift

    +
    func stopAudioSession()
    + + + + +

    + -sendAudioData: +

    + +

    This method receives PCM audio data and will attempt to send that data across to the head unit for immediate playback

    + + + +

    Objective-C

    +
    - (BOOL)sendAudioData:(nonnull NSData *)pcmAudioData;
    + + +

    Swift

    +
    func sendAudioData(pcmAudioData: NSData) -> Bool
    + + + +

    Parameters

    +
    +
    pcmAudioData
    +

    The data in PCM audio format, to be played

    +
    +
    +
    +

    Return Value

    +

    Whether or not the data was successfully sent.

    + +
    + +

    + videoSessionConnected +

    + +

    Undocumented

    + + + + + + +

    + audioSessionConnected +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLSubscribeButton.html b/docs/Classes/SDLSubscribeButton.html new file mode 100644 index 000000000..d6dec9f67 --- /dev/null +++ b/docs/Classes/SDLSubscribeButton.html @@ -0,0 +1,127 @@ +

    SDLSubscribeButton Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Establishes a subscription to button notifications for HMI buttons. Buttons + are not necessarily physical buttons, but can also be soft buttons on a + touch screen, depending on the display in the vehicle. Once subscribed to a + particular button, an application will receive both + SDLOnButtonEvent and SDLOnButtonPress notifications + whenever that button is pressed. The application may also unsubscribe from + notifications for a button by invoking the SDLUnsubscribeButton + operation +

    + When a button is depressed, an SDLOnButtonEvent notification is + sent to the application with a ButtonEventMode of BUTTONDOWN. When that same + button is released, an SDLOnButtonEvent notification is sent to the + application with a ButtonEventMode of BUTTONUP +

    + When the duration of a button depression (that is, time between depression + and release) is less than two seconds, an SDLOnButtonPress + notification is sent to the application (at the moment the button is + released) with a ButtonPressMode of SHORT. When the duration is two or more + seconds, an SDLOnButtonPress notification is sent to the + application (at the moment the two seconds have elapsed) with a + ButtonPressMode of LONG +

    + The purpose of SDLOnButtonPress notifications is to allow for + programmatic detection of long button presses similar to those used to store + presets while listening to the radio, for example +

    + When a button is depressed and released, the sequence in which notifications + will be sent to the application is as follows: +

    + For short presses:
    +

      +
    • OnButtonEvent (ButtonEventMode = BUTTONDOWN)
    • +
    • OnButtonEvent (ButtonEventMode = BUTTONUP)
    • +
    • OnButtonPress (ButtonPressMode = SHORT)
    • +
    +

    + For long presses:
    +

      +
    • OnButtonEvent (ButtonEventMode = BUTTONDOWN)
    • +
    • OnButtonEvent (ButtonEventMode = BUTTONUP)
    • +
    • OnButtonPress (ButtonPressMode = LONG)
    • +
    +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 1.0
    + See SDLUnsubscribeButton

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSubscribeButton object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSubscribeButton object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + buttonName +

    + +

    @abstract The name of the button to subscribe to +@discussion An enum value, see SDLButtonName

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLButtonName *buttonName;
    + + +

    Swift

    +
    var buttonName: SDLButtonName! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLSubscribeButtonResponse.html b/docs/Classes/SDLSubscribeButtonResponse.html new file mode 100644 index 000000000..948aae44f --- /dev/null +++ b/docs/Classes/SDLSubscribeButtonResponse.html @@ -0,0 +1,62 @@ +

    SDLSubscribeButtonResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SubscribeButton Response is sent, when SDLSubscribeButton has been called

    + +

    Since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSubscribeButtonResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSubscribeButtonResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLSubscribeVehicleData.html b/docs/Classes/SDLSubscribeVehicleData.html new file mode 100644 index 000000000..7f018c0a8 --- /dev/null +++ b/docs/Classes/SDLSubscribeVehicleData.html @@ -0,0 +1,515 @@ +

    SDLSubscribeVehicleData Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Subscribes for specific published vehicle data items. The data will be only + sent, if it has changed. The application will be notified by the + onVehicleData notification whenever new data is available. The update rate is + very much dependent on sensors, vehicle architecture and vehicle type. Be + also prepared for the situation that a signal is not available on a vehicle +

    + Function Group: Location, VehicleInfo and DrivingChara +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    Since SmartDeviceLink 2.0
    + See SDLUnsubscribeVehicleData SDLGetVehicleData

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSubscribeVehicleData object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSubscribeVehicleData object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + gps +

    + +

    @abstract A boolean value. If true, subscribes Gps data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *gps;
    + + +

    Swift

    +
    var gps: NSNumber! { get set }
    + + + + +

    + speed +

    + +

    @abstract A boolean value. If true, subscribes speed data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *speed;
    + + +

    Swift

    +
    var speed: NSNumber! { get set }
    + + + + +

    + rpm +

    + +

    @abstract A boolean value. If true, subscribes rpm data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *rpm;
    + + +

    Swift

    +
    var rpm: NSNumber! { get set }
    + + + + +

    + fuelLevel +

    + +

    @abstract A boolean value. If true, subscribes FuelLevel data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *fuelLevel;
    + + +

    Swift

    +
    var fuelLevel: NSNumber! { get set }
    + + + + +

    + fuelLevel_State +

    + +

    @abstract A boolean value. If true, subscribes fuelLevel_State data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *fuelLevel_State;
    + + +

    Swift

    +
    var fuelLevel_State: NSNumber! { get set }
    + + + + +

    + instantFuelConsumption +

    + +

    @abstract A boolean value. If true, subscribes instantFuelConsumption data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *instantFuelConsumption;
    + + +

    Swift

    +
    var instantFuelConsumption: NSNumber! { get set }
    + + + + +

    + externalTemperature +

    + +

    @abstract A boolean value. If true, subscribes externalTemperature data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *externalTemperature;
    + + +

    Swift

    +
    var externalTemperature: NSNumber! { get set }
    + + + + +

    + prndl +

    + +

    @abstract A boolean value. If true, subscribes Currently selected gear data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *prndl;
    + + +

    Swift

    +
    var prndl: NSNumber! { get set }
    + + + + +

    + tirePressure +

    + +

    @abstract A boolean value. If true, subscribes tire pressure status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *tirePressure;
    + + +

    Swift

    +
    var tirePressure: NSNumber! { get set }
    + + + + +

    + odometer +

    + +

    @abstract A boolean value. If true, subscribes odometer data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *odometer;
    + + +

    Swift

    +
    var odometer: NSNumber! { get set }
    + + + + +

    + beltStatus +

    + +

    @abstract A boolean value. If true, subscribes belt Status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *beltStatus;
    + + +

    Swift

    +
    var beltStatus: NSNumber! { get set }
    + + + + +

    + bodyInformation +

    + +

    @abstract A boolean value. If true, subscribes body Information data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *bodyInformation;
    + + +

    Swift

    +
    var bodyInformation: NSNumber! { get set }
    + + + + +

    + deviceStatus +

    + +

    @abstract A boolean value. If true, subscribes device Status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *deviceStatus;
    + + +

    Swift

    +
    var deviceStatus: NSNumber! { get set }
    + + + + +

    + driverBraking +

    + +

    @abstract A boolean value. If true, subscribes driver Braking data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *driverBraking;
    + + +

    Swift

    +
    var driverBraking: NSNumber! { get set }
    + + + + +

    + wiperStatus +

    + +

    @abstract A boolean value. If true, subscribes wiper Status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *wiperStatus;
    + + +

    Swift

    +
    var wiperStatus: NSNumber! { get set }
    + + + + +

    + headLampStatus +

    + +

    @abstract A boolean value. If true, subscribes Head Lamp Status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *headLampStatus;
    + + +

    Swift

    +
    var headLampStatus: NSNumber! { get set }
    + + + + +

    + engineTorque +

    + +

    @abstract A boolean value. If true, subscribes Engine Torque data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *engineTorque;
    + + +

    Swift

    +
    var engineTorque: NSNumber! { get set }
    + + + + +

    + accPedalPosition +

    + +

    @abstract A boolean value. If true, means the accPedalPosition data has been +subscribed.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *accPedalPosition;
    + + +

    Swift

    +
    var accPedalPosition: NSNumber! { get set }
    + + + + +

    + steeringWheelAngle +

    + +

    @abstract A boolean value. If true, means the steeringWheelAngle data has been +subscribed.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *steeringWheelAngle;
    + + +

    Swift

    +
    var steeringWheelAngle: NSNumber! { get set }
    + + + + +

    + eCallInfo +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSubscribeVehicleData : SDLRPCRequest
    + + + + + +

    + airbagStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSubscribeVehicleData : SDLRPCRequest
    + + + + + +

    + emergencyEvent +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSubscribeVehicleData : SDLRPCRequest
    + + + + + +

    + clusterModeStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSubscribeVehicleData : SDLRPCRequest
    + + + + + +

    + myKey +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSubscribeVehicleData : SDLRPCRequest
    + + + + + +
    diff --git a/docs/Classes/SDLSubscribeVehicleDataResponse.html b/docs/Classes/SDLSubscribeVehicleDataResponse.html new file mode 100644 index 000000000..948967595 --- /dev/null +++ b/docs/Classes/SDLSubscribeVehicleDataResponse.html @@ -0,0 +1,504 @@ +

    SDLSubscribeVehicleDataResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Subscribe Vehicle Data Response is sent, when SDLSubscribeVehicleData has been called

    + +

    Since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLSubscribeVehicleDataResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLSubscribeVehicleDataResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + gps +

    + +

    @abstract A SDLVehicleDataResult* value. See GPSData.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *gps;
    + + +

    Swift

    +
    var gps: SDLVehicleDataResult! { get set }
    + + + + +

    + speed +

    + +

    @abstract A SDLVehicleDataResult* value. The vehicle speed in kilometers per hour.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *speed;
    + + +

    Swift

    +
    var speed: SDLVehicleDataResult! { get set }
    + + + + +

    + rpm +

    + +

    @abstract A SDLVehicleDataResult* value. The number of revolutions per minute of the engine.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *rpm;
    + + +

    Swift

    +
    var rpm: SDLVehicleDataResult! { get set }
    + + + + +

    + fuelLevel +

    + +

    @abstract A SDLVehicleDataResult* value. The fuel level in the tank (percentage)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *fuelLevel;
    + + +

    Swift

    +
    var fuelLevel: SDLVehicleDataResult! { get set }
    + + + + +

    + fuelLevel_State +

    + +

    @abstract A SDLVehicleDataResult* value. The fuel level state.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *fuelLevel_State;
    + + +

    Swift

    +
    var fuelLevel_State: SDLVehicleDataResult! { get set }
    + + + + +

    + instantFuelConsumption +

    + +

    @abstract A SDLVehicleDataResult* value. The instantaneous fuel consumption in microlitres.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic)
    +    SDLVehicleDataResult *instantFuelConsumption;
    + + +

    Swift

    +
    var instantFuelConsumption: SDLVehicleDataResult! { get set }
    + + + + +

    + externalTemperature +

    + +

    @abstract A SDLVehicleDataResult* value. The external temperature in degrees celsius.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *externalTemperature;
    + + +

    Swift

    +
    var externalTemperature: SDLVehicleDataResult! { get set }
    + + + + +

    + prndl +

    + +

    @abstract A SDLVehicleDataResult* value. See PRNDL.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *prndl;
    + + +

    Swift

    +
    var prndl: SDLVehicleDataResult! { get set }
    + + + + +

    + tirePressure +

    + +

    @abstract A SDLVehicleDataResult* value. See TireStatus.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *tirePressure;
    + + +

    Swift

    +
    var tirePressure: SDLVehicleDataResult! { get set }
    + + + + +

    + odometer +

    + +

    @abstract A SDLVehicleDataResult* value. Odometer in km.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *odometer;
    + + +

    Swift

    +
    var odometer: SDLVehicleDataResult! { get set }
    + + + + +

    + beltStatus +

    + +

    @abstract A SDLVehicleDataResult* value. The status of the seat belts.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *beltStatus;
    + + +

    Swift

    +
    var beltStatus: SDLVehicleDataResult! { get set }
    + + + + +

    + bodyInformation +

    + +

    @abstract A SDLVehicleDataResult* value. The body information including power modes.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *bodyInformation;
    + + +

    Swift

    +
    var bodyInformation: SDLVehicleDataResult! { get set }
    + + + + +

    + deviceStatus +

    + +

    @abstract A SDLVehicleDataResult* value. The device status including signal and battery strength.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *deviceStatus;
    + + +

    Swift

    +
    var deviceStatus: SDLVehicleDataResult! { get set }
    + + + + +

    + driverBraking +

    + +

    @abstract A SDLVehicleDataResult* value. The status of the brake pedal.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *driverBraking;
    + + +

    Swift

    +
    var driverBraking: SDLVehicleDataResult! { get set }
    + + + + +

    + wiperStatus +

    + +

    @abstract A SDLVehicleDataResult* value. The status of the wipers.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *wiperStatus;
    + + +

    Swift

    +
    var wiperStatus: SDLVehicleDataResult! { get set }
    + + + + +

    + headLampStatus +

    + +

    @abstract A SDLVehicleDataResult* value. Status of the head lamps.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *headLampStatus;
    + + +

    Swift

    +
    var headLampStatus: SDLVehicleDataResult! { get set }
    + + + + +

    + engineTorque +

    + +

    @abstract A SDLVehicleDataResult* value. Torque value for engine (in Nm) on non-diesel variants.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *engineTorque;
    + + +

    Swift

    +
    var engineTorque: SDLVehicleDataResult! { get set }
    + + + + +

    + accPedalPosition +

    + +

    @abstract A SDLVehicleDataResult* value. Accelerator pedal position (percentage depressed)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *accPedalPosition;
    + + +

    Swift

    +
    var accPedalPosition: SDLVehicleDataResult! { get set }
    + + + + +

    + steeringWheelAngle +

    + +

    @abstract A SDLVehicleDataResult* value. Current angle of the steering wheel (in deg)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *steeringWheelAngle;
    + + +

    Swift

    +
    var steeringWheelAngle: SDLVehicleDataResult! { get set }
    + + + + +

    + eCallInfo +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSubscribeVehicleDataResponse : SDLRPCResponse
    + + + + + +

    + airbagStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSubscribeVehicleDataResponse : SDLRPCResponse
    + + + + + +

    + emergencyEvent +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSubscribeVehicleDataResponse : SDLRPCResponse
    + + + + + +

    + clusterModes +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSubscribeVehicleDataResponse : SDLRPCResponse
    + + + + + +

    + myKey +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLSubscribeVehicleDataResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLSyncMsgVersion.html b/docs/Classes/SDLSyncMsgVersion.html new file mode 100644 index 000000000..c94c09685 --- /dev/null +++ b/docs/Classes/SDLSyncMsgVersion.html @@ -0,0 +1,103 @@ +

    SDLSyncMsgVersion Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Specifies the version number of the SDL V4 interface. This is used by both the application and SDL to declare what interface version each is using.

    + +

    @since SDL 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a newly allocated SDLSyncMsgVersion object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a newly allocated SDLSyncMsgVersion object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + majorVersion +

    + +

    @abstract The major version indicates versions that is not-compatible to previous versions

    + +

    Required, Integer, 1 - 10

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *majorVersion;
    + + +

    Swift

    +
    var majorVersion: NSNumber! { get set }
    + + + + +

    + minorVersion +

    + +

    @abstract The minor version indicates a change to a previous version that should still allow to be run on an older version (with limited functionality)

    + +

    Required, Integer, 0 - 1000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *minorVersion;
    + + +

    Swift

    +
    var minorVersion: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLSyncPData.html b/docs/Classes/SDLSyncPData.html new file mode 100644 index 000000000..76143cbcf --- /dev/null +++ b/docs/Classes/SDLSyncPData.html @@ -0,0 +1,38 @@ +

    SDLSyncPData Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLSyncPDataResponse.html b/docs/Classes/SDLSyncPDataResponse.html new file mode 100644 index 000000000..65454bb68 --- /dev/null +++ b/docs/Classes/SDLSyncPDataResponse.html @@ -0,0 +1,38 @@ +

    SDLSyncPDataResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLSystemAction.html b/docs/Classes/SDLSystemAction.html new file mode 100644 index 000000000..936f6a5a8 --- /dev/null +++ b/docs/Classes/SDLSystemAction.html @@ -0,0 +1,128 @@ +

    SDLSystemAction Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Enumeration that describes system actions that can be triggered.

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLSystemAction +- parameter: value String +- returns: SDLSystemAction

    + + + +

    Objective-C

    +
    + (SDLSystemAction *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLSystemAction!
    + + + +

    Parameters

    +
    +
    value
    +

    String

    +
    +
    +
    +

    Return Value

    +

    SDLSystemAction

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLSystemAction +- returns: an array that store all possible SDLSystemAction

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLSystemAction

    + +
    + +

    + +DEFAULT_ACTION +

    + +

    @abstract Default_Action

    + + + +

    Objective-C

    +
    + (SDLSystemAction *)DEFAULT_ACTION;
    + + +

    Swift

    +
    class func DEFAULT_ACTION() -> SDLSystemAction!
    + + + + +

    + +STEAL_FOCUS +

    + +

    @abstract Steal_Focus

    + + + +

    Objective-C

    +
    + (SDLSystemAction *)STEAL_FOCUS;
    + + +

    Swift

    +
    class func STEAL_FOCUS() -> SDLSystemAction!
    + + + + +

    + +KEEP_CONTEXT +

    + +

    @abstract Keep_Context

    + + + +

    Objective-C

    +
    + (SDLSystemAction *)KEEP_CONTEXT;
    + + +

    Swift

    +
    class func KEEP_CONTEXT() -> SDLSystemAction!
    + + + + +
    diff --git a/docs/Classes/SDLSystemContext.html b/docs/Classes/SDLSystemContext.html new file mode 100644 index 000000000..3e7c4f7df --- /dev/null +++ b/docs/Classes/SDLSystemContext.html @@ -0,0 +1,194 @@ +

    SDLSystemContext Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Indicates whether or not a user-initiated interaction is in progress, and if so, in what mode (i.e. MENU or VR).

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLSystemContext

    + + + +

    Objective-C

    +
    + (SDLSystemContext *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLSystemContext!
    + + + +

    Parameters

    +
    +
    value
    +

    String value to retrieve the object for

    +
    +
    +
    +

    Return Value

    +

    SDLSystemContext

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLSystemContext

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLSystemContext

    + +
    + +

    + +MAIN +

    + +

    @abstract No user interaction (user-initiated or app-initiated) is in progress.

    + + + +

    Objective-C

    +
    + (SDLSystemContext *)MAIN;
    + + +

    Swift

    +
    class func MAIN() -> SDLSystemContext!
    + + + +
    +

    Return Value

    +

    SDLSystemContext object of value MAIN

    + +
    + +

    + +VRSESSION +

    + +

    @abstract VR-oriented, user-initiated or app-initiated interaction is in-progress.

    + + + +

    Objective-C

    +
    + (SDLSystemContext *)VRSESSION;
    + + +

    Swift

    +
    class func VRSESSION() -> SDLSystemContext!
    + + + +
    +

    Return Value

    +

    SDLSystemContext object of value VRSESSION

    + +
    + +

    + +MENU +

    + +

    @abstract Menu-oriented, user-initiated or app-initiated interaction is in-progress.

    + + + +

    Objective-C

    +
    + (SDLSystemContext *)MENU;
    + + +

    Swift

    +
    class func MENU() -> SDLSystemContext!
    + + + +
    +

    Return Value

    +

    SDLSystemContext object of value MENU

    + +
    + +

    + +HMI_OBSCURED +

    + +

    @abstract The app’s display HMI is currently being obscured by either a system or other app’s overlay.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLSystemContext *)HMI_OBSCURED;
    + + +

    Swift

    +
    class func HMI_OBSCURED() -> SDLSystemContext!
    + + + +
    +

    Return Value

    +

    SDLSystemContext object of value HMI_OBSCURED

    + +
    + +

    + +ALERT +

    + +

    @abstract Broadcast only to whichever app has an alert currently being displayed.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLSystemContext *)ALERT;
    + + +

    Swift

    +
    class func ALERT() -> SDLSystemContext!
    + + + +
    +

    Return Value

    +

    SDLSystemContext object of value ALERT

    + +
    + +
    diff --git a/docs/Classes/SDLTBTState.html b/docs/Classes/SDLTBTState.html new file mode 100644 index 000000000..04476fbce --- /dev/null +++ b/docs/Classes/SDLTBTState.html @@ -0,0 +1,158 @@ +

    SDLTBTState Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + + + + +

    + +values +

    + +

    Undocumented

    + + + + + + +

    + +ROUTE_UPDATE_REQUEST +

    + +

    Undocumented

    + + + + + + +

    + +ROUTE_ACCEPTED +

    + +

    Undocumented

    + + + + + + +

    + +ROUTE_REFUSED +

    + +

    Undocumented

    + + + + + + +

    + +ROUTE_CANCELLED +

    + +

    Undocumented

    + + + + + + +

    + +ETA_REQUEST +

    + +

    Undocumented

    + + + + + + +

    + +NEXT_TURN_REQUEST +

    + +

    Undocumented

    + + + + + + +

    + +ROUTE_STATUS_REQUEST +

    + +

    Undocumented

    + + + + + + +

    + +ROUTE_SUMMARY_REQUEST +

    + +

    Undocumented

    + + + + + + +

    + +TRIP_STATUS_REQUEST +

    + +

    Undocumented

    + + + + + + +

    + +ROUTE_UPDATE_REQUEST_TIMEOUT +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLTCPTransport.html b/docs/Classes/SDLTCPTransport.html new file mode 100644 index 000000000..7601305a7 --- /dev/null +++ b/docs/Classes/SDLTCPTransport.html @@ -0,0 +1,50 @@ +

    SDLTCPTransport Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + socket +

    + +

    Undocumented

    + + + + + + +

    + hostName +

    + +

    Undocumented

    + + + + + + +

    + portNumber +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLTTSChunk.html b/docs/Classes/SDLTTSChunk.html new file mode 100644 index 000000000..b18f60659 --- /dev/null +++ b/docs/Classes/SDLTTSChunk.html @@ -0,0 +1,128 @@ +

    SDLTTSChunk Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Specifies what is to be spoken. This can be simply a text phrase, which SDL will speak according to its own rules. It can also be phonemes from either the Microsoft SAPI phoneme set, or from the LHPLUS phoneme set. It can also be a pre-recorded sound in WAV format (either developer-defined, or provided by the SDL platform).

    + +

    In SDL, words, and therefore sentences, can be built up from phonemes and are used to explicitly provide the proper pronounciation to the TTS engine. For example, to have SDL pronounce the word read as red, rather than as when it is pronounced like reed, the developer would use phonemes to express this desired pronounciation.

    + +

    For more information about phonemes, see http://en.wikipedia.org/wiki/Phoneme.

    + +

    Parameter List + + + + + + + + + + + + + + + + + + + +
    NameTypeDescriptionSmartDeviceLink Ver. Available
    textStringText to be spoken, or a phoneme specification, or the name of a pre-recorded sound. The contents of this field are indicated by the type field.SmartDeviceLink 1.0
    typeSpeechCapabilitiesIndicates the type of information in the text field (e.g. phrase to be spoken, phoneme specification, name of pre-recorded sound). SmartDeviceLink 1.0

    + +

    @since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a newly allocated SDLTTSChunk object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a newly allocated SDLTTSChunk object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + text +

    + +

    @abstract Text to be spoken, or a phoneme specification, or the name of a pre-recorded sound. The contents of this field are indicated by the type field.

    + +

    Required, Max length 500

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *text;
    + + +

    Swift

    +
    var text: String! { get set }
    + + + + +

    + type +

    + +

    @abstract The type of information in the text field (e.g. phrase to be spoken, phoneme specification, name of pre-recorded sound).

    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLSpeechCapabilities *type;
    + + +

    Swift

    +
    var type: SDLSpeechCapabilities! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLTTSChunkFactory.html b/docs/Classes/SDLTTSChunkFactory.html new file mode 100644 index 000000000..87db0d718 --- /dev/null +++ b/docs/Classes/SDLTTSChunkFactory.html @@ -0,0 +1,38 @@ +

    SDLTTSChunkFactory Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +buildTTSChunkForString:type: +

    + +

    Undocumented

    + + + + + + +

    + +buildTTSChunksFromSimple: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLTextAlignment.html b/docs/Classes/SDLTextAlignment.html new file mode 100644 index 000000000..229bed0ee --- /dev/null +++ b/docs/Classes/SDLTextAlignment.html @@ -0,0 +1,142 @@ +

    SDLTextAlignment Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The list of possible alignments of text in a field. May only work on some display types.

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLTextAlignment

    + + + +

    Objective-C

    +
    + (SDLTextAlignment *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLTextAlignment!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLTextAlignment

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLTextAlignment

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLTextAlignment

    + +
    + +

    + +LEFT_ALIGNED +

    + +

    @abstract Text aligned left.

    + + + +

    Objective-C

    +
    + (SDLTextAlignment *)LEFT_ALIGNED;
    + + +

    Swift

    +
    class func LEFT_ALIGNED() -> SDLTextAlignment!
    + + + +
    +

    Return Value

    +

    A SDLTextAlignment object with value of LEFT_ALIGNED

    + +
    + +

    + +RIGHT_ALIGNED +

    + +

    @abstract Text aligned right.

    + + + +

    Objective-C

    +
    + (SDLTextAlignment *)RIGHT_ALIGNED;
    + + +

    Swift

    +
    class func RIGHT_ALIGNED() -> SDLTextAlignment!
    + + + +
    +

    Return Value

    +

    A SDLTextAlignment object with value of RIGHT_ALIGNED

    + +
    + +

    + +CENTERED +

    + +

    @abstract Text aligned centered.

    + + + +

    Objective-C

    +
    + (SDLTextAlignment *)CENTERED;
    + + +

    Swift

    +
    class func CENTERED() -> SDLTextAlignment!
    + + + +
    +

    Return Value

    +

    A SDLTextAlignment object with value of CENTERED

    + +
    + +
    diff --git a/docs/Classes/SDLTextField.html b/docs/Classes/SDLTextField.html new file mode 100644 index 000000000..72deedee8 --- /dev/null +++ b/docs/Classes/SDLTextField.html @@ -0,0 +1,200 @@ +

    SDLTextField Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Struct defining the characteristics of a displayed field on the HMI.

    + +

    Parameter List + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescriptionSmartDeviceLink Ver. Available
    nameTextFieldNameEnumeration identifying the field. SDL 1.0
    characterSetCharacterSetThe character set that is supported in this field. SDL 1.0
    widthInt16The number of characters in one row of this field. +
      +
    • Minvalue=1
    • +
    • maxvalue=500
    • +
    +
    SDL 1.0
    rowsInt16The number of rows for this text field. +
      +
    • Minvalue=1
    • +
    • maxvalue=3
    • +
    +
    SDL 1.0

    + +

    @since SDL 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a newly allocated SDLTextField object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a newly allocated SDLTextField object indicated by the dictionary parameter

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use to construct the object

    +
    +
    + +

    + name +

    + +

    @abstract The enumeration identifying the field.

    + +
    +

    See

    + SDLTextFieldName + +
    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLTextFieldName *name;
    + + +

    Swift

    +
    var name: SDLTextFieldName! { get set }
    + + + + +

    + characterSet +

    + +

    @abstract The character set that is supported in this field.

    + +
    +

    See

    + SDLCharacterSet + +
    + +

    Required

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLCharacterSet *characterSet;
    + + +

    Swift

    +
    var characterSet: SDLCharacterSet! { get set }
    + + + + +

    + width +

    + +

    @abstract The number of characters in one row of this field.

    + +

    Required, Integer 1 - 500

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *width;
    + + +

    Swift

    +
    var width: NSNumber! { get set }
    + + + + +

    + rows +

    + +

    @abstract The number of rows for this text field.

    + +

    Required, Integer 1 - 8

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *rows;
    + + +

    Swift

    +
    var rows: NSNumber! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLTextFieldName.html b/docs/Classes/SDLTextFieldName.html new file mode 100644 index 000000000..40c573d09 --- /dev/null +++ b/docs/Classes/SDLTextFieldName.html @@ -0,0 +1,782 @@ +

    SDLTextFieldName Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Names of the text fields that can appear on a SDL display.

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLTextFieldName

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLTextFieldName!
    + + + +

    Parameters

    +
    +
    value
    +

    String value to retrieve the object for

    +
    +
    +
    +

    Return Value

    +

    SDLTextFieldName

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLTextFieldName

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLTextFieldName

    + +
    + +

    + +mainField1 +

    + +

    @abstract The first line of the first set of main fields of the persistent display. Applies to SDLShow.

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)mainField1;
    + + +

    Swift

    +
    class func mainField1() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of mainField1

    + +
    + +

    + +mainField2 +

    + +

    @abstract The second line of the first set of main fields of the persistent display. Applies to SDLShow.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)mainField2;
    + + +

    Swift

    +
    class func mainField2() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of mainField2

    + +
    + +

    + +mainField3 +

    + +

    @abstract The first line of the second set of main fields of the persistent display. Applies to SDLShow.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)mainField3;
    + + +

    Swift

    +
    class func mainField3() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of mainField3

    + +
    + +

    + +mainField4 +

    + +

    @abstract The second line of the second set of main fields of the persistent display. Applies to SDLShow.

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)mainField4;
    + + +

    Swift

    +
    class func mainField4() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of mainField4

    + +
    + +

    + +statusBar +

    + +

    @abstract The status bar on the NGN display. Applies to SDLShow.

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)statusBar;
    + + +

    Swift

    +
    class func statusBar() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of statusBar

    + +
    + +

    + +mediaClock +

    + +

    @abstract Text value for MediaClock field. Must be properly formatted according to MediaClockFormat. Applies to SDLShow.

    + +

    @discussion This field is commonly used to show elapsed or remaining time in an audio track or audio capture.

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)mediaClock;
    + + +

    Swift

    +
    class func mediaClock() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of mediaClock

    + +
    + +

    + +mediaTrack +

    + +

    @abstract The track field of NGN type ACMs. This field is only available for media applications on a NGN display. Applies to SDLShow.

    + +

    @discussion This field is commonly used to show the current track number

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)mediaTrack;
    + + +

    Swift

    +
    class func mediaTrack() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of mediaTrack

    + +
    + +

    + +alertText1 +

    + +

    @abstract The first line of the alert text field. Applies to SDLAlert.

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)alertText1;
    + + +

    Swift

    +
    class func alertText1() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of alertText1

    + +
    + +

    + +alertText2 +

    + +

    @abstract The second line of the alert text field. Applies to SDLAlert.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)alertText2;
    + + +

    Swift

    +
    class func alertText2() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of alertText2

    + +
    + +

    + +alertText3 +

    + +

    @abstract The third line of the alert text field. Applies to SDLAlert.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)alertText3;
    + + +

    Swift

    +
    class func alertText3() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of alertText3

    + +
    + +

    + +scrollableMessageBody +

    + +

    @abstract Long form body of text that can include newlines and tabs. Applies to SDLScrollableMessage.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)scrollableMessageBody;
    + + +

    Swift

    +
    class func scrollableMessageBody() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of scrollableMessageBody

    + +
    + +

    + +initialInteractionText +

    + +

    @abstract First line suggestion for a user response (in the case of VR enabled interaction).

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)initialInteractionText;
    + + +

    Swift

    +
    class func initialInteractionText() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of initialInteractionText

    + +
    + +

    + +navigationText1 +

    + +

    @abstract First line of navigation text.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)navigationText1;
    + + +

    Swift

    +
    class func navigationText1() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of navigationText1

    + +
    + +

    + +navigationText2 +

    + +

    @abstract Second line of navigation text.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)navigationText2;
    + + +

    Swift

    +
    class func navigationText2() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of navigationText2

    + +
    + +

    + +ETA +

    + +

    @abstract Estimated Time of Arrival time for navigation.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)ETA;
    + + +

    Swift

    +
    class func ETA() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of ETA

    + +
    + +

    + +totalDistance +

    + +

    @abstract Total distance to destination for navigation.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)totalDistance;
    + + +

    Swift

    +
    class func totalDistance() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of totalDistance

    + +
    + +

    + +audioPassThruDisplayText1 +

    + +

    @abstract First line of text for audio pass thru.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)audioPassThruDisplayText1;
    + + +

    Swift

    +
    class func audioPassThruDisplayText1() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of audioPassThruDisplayText1

    + +
    + +

    + +audioPassThruDisplayText2 +

    + +

    @abstract Second line of text for audio pass thru.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)audioPassThruDisplayText2;
    + + +

    Swift

    +
    class func audioPassThruDisplayText2() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of audioPassThruDisplayText2

    + +
    + +

    + +sliderHeader +

    + +

    @abstract Header text for slider.

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)sliderHeader;
    + + +

    Swift

    +
    class func sliderHeader() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of sliderHeader

    + +
    + +

    + +sliderFooter +

    + +

    @abstract Footer text for slider

    + +

    @since SDL 2.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)sliderFooter;
    + + +

    Swift

    +
    class func sliderFooter() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of sliderFooter

    + +
    + +

    + +menuName +

    + +

    Primary text for SDLChoice

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)menuName;
    + + +

    Swift

    +
    class func menuName() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of menuName

    + +
    + +

    + +secondaryText +

    + +

    Secondary text for SDLChoice

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)secondaryText;
    + + +

    Swift

    +
    class func secondaryText() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of secondaryText

    + +
    + +

    + +tertiaryText +

    + +

    Tertiary text for SDLChoice

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)tertiaryText;
    + + +

    Swift

    +
    class func tertiaryText() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of tertiaryText

    + +
    + +

    + +menuTitle +

    + +

    Optional text to label an app menu button (for certain touchscreen platforms)

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)menuTitle;
    + + +

    Swift

    +
    class func menuTitle() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of menuTitle

    + +
    + +

    + +locationName +

    + +

    Optional name / title of intended location for SDLSendLocation

    + +

    @since SDL 4.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)locationName;
    + + +

    Swift

    +
    class func locationName() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of locationName

    + +
    + +

    + +locationDescription +

    + +

    Optional description of intended location / establishment (if applicable) for SDLSendLocation

    + +

    @since SDL 4.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)locationDescription;
    + + +

    Swift

    +
    class func locationDescription() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of locationDescription

    + +
    + +

    + +addressLines +

    + +

    Optional location address (if applicable) for SDLSendLocation

    + +

    @since SDL 4.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)addressLines;
    + + +

    Swift

    +
    class func addressLines() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of addressLines

    + +
    + +

    + +phoneNumber +

    + +

    Optional hone number of intended location / establishment (if applicable) for SDLSendLocation

    + +

    @since SDL 4.0

    + + + +

    Objective-C

    +
    + (SDLTextFieldName *)phoneNumber;
    + + +

    Swift

    +
    class func phoneNumber() -> SDLTextFieldName!
    + + + +
    +

    Return Value

    +

    a SDLTextFieldName with value of phoneNumber

    + +
    + +
    diff --git a/docs/Classes/SDLTimerMode.html b/docs/Classes/SDLTimerMode.html new file mode 100644 index 000000000..8c5bf89c9 --- /dev/null +++ b/docs/Classes/SDLTimerMode.html @@ -0,0 +1,74 @@ +

    SDLTimerMode Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + + + + +

    + +values +

    + +

    Undocumented

    + + + + + + +

    + +UP +

    + +

    Undocumented

    + + + + + + +

    + +DOWN +

    + +

    Undocumented

    + + + + + + +

    + +NONE +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLTireStatus.html b/docs/Classes/SDLTireStatus.html new file mode 100644 index 000000000..82df7e4e7 --- /dev/null +++ b/docs/Classes/SDLTireStatus.html @@ -0,0 +1,122 @@ +

    SDLTireStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + pressureTelltale +

    + +

    Undocumented

    + + + + + + +

    + leftFront +

    + +

    Undocumented

    + + + + + + +

    + rightFront +

    + +

    Undocumented

    + + + + + + +

    + leftRear +

    + +

    Undocumented

    + + + + + + +

    + rightRear +

    + +

    Undocumented

    + + + + + + +

    + innerLeftRear +

    + +

    Undocumented

    + + + + + + +

    + innerRightRear +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLTouchCoord.html b/docs/Classes/SDLTouchCoord.html new file mode 100644 index 000000000..7ae767184 --- /dev/null +++ b/docs/Classes/SDLTouchCoord.html @@ -0,0 +1,62 @@ +

    SDLTouchCoord Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + x +

    + +

    Undocumented

    + + + + + + +

    + y +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLTouchEvent.html b/docs/Classes/SDLTouchEvent.html new file mode 100644 index 000000000..d04579b74 --- /dev/null +++ b/docs/Classes/SDLTouchEvent.html @@ -0,0 +1,107 @@ +

    SDLTouchEvent Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + touchEventId +

    + +

    A touch’s unique identifier. The application can track the current touch events by id. +If a touch event has type begin, the id should be added to the set of touches. +If a touch event has type end, the id should be removed from the set of touches.

    + +

    Mandatory, 0-9

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *touchEventId;
    + + +

    Swift

    +
    var touchEventId: NSNumber! { get set }
    + + + + +

    + timeStamp +

    + +

    The time that the touch was recorded. This number can the time since the beginning of the session or something else as long as the units are in milliseconds.

    + +

    The timestamp is used to determined the rate of change of position of a touch.

    + +

    The application also uses the time to verify whether two touches, with different ids, are part of a single action by the user.

    + +

    If there is only a single timestamp in this array, it is the same for every coordinate in the coordinates array.

    + +

    Mandatory, array size 1-1000, contains size 0-5000000000

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *timeStamp;
    + + +

    Swift

    +
    var timeStamp: NSMutableArray! { get set }
    + + + + +

    + coord +

    + +

    Mandatory, array size 1-1000, contains SDLTouchCoord

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *coord;
    + + +

    Swift

    +
    var coord: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLTouchEventCapabilities.html b/docs/Classes/SDLTouchEventCapabilities.html new file mode 100644 index 000000000..6a594b84f --- /dev/null +++ b/docs/Classes/SDLTouchEventCapabilities.html @@ -0,0 +1,74 @@ +

    SDLTouchEventCapabilities Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + pressAvailable +

    + +

    Undocumented

    + + + + + + +

    + multiTouchAvailable +

    + +

    Undocumented

    + + + + + + +

    + doublePressAvailable +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLTouchType.html b/docs/Classes/SDLTouchType.html new file mode 100644 index 000000000..e098e114b --- /dev/null +++ b/docs/Classes/SDLTouchType.html @@ -0,0 +1,74 @@ +

    SDLTouchType Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + +valueOf: +

    + +

    Undocumented

    + + + + + + +

    + +values +

    + +

    Undocumented

    + + + + + + +

    + +BEGIN +

    + +

    Undocumented

    + + + + + + +

    + +MOVE +

    + +

    Undocumented

    + + + + + + +

    + +END +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLTriggerSource.html b/docs/Classes/SDLTriggerSource.html new file mode 100644 index 000000000..5d27addd8 --- /dev/null +++ b/docs/Classes/SDLTriggerSource.html @@ -0,0 +1,148 @@ +

    SDLTriggerSource Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Indicates whether choice/command was selected via VR or via a menu selection (using SEEKRIGHT/SEEKLEFT, TUNEUP, TUNEDOWN, OK buttons)

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLTriggerSource +- parameter: value The value of the string to get an object for +- returns: SDLTriggerSource

    + + + +

    Objective-C

    +
    + (SDLTriggerSource *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLTriggerSource!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLTriggerSource

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLTriggerSource +- returns: an array that store all possible SDLTriggerSource

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLTriggerSource

    + +
    + +

    + +MENU +

    + +

    @abstract Selection made via menu +- returns: SDLTriggerSource with value of MENU

    + + + +

    Objective-C

    +
    + (SDLTriggerSource *)MENU;
    + + +

    Swift

    +
    class func MENU() -> SDLTriggerSource!
    + + + +
    +

    Return Value

    +

    SDLTriggerSource with value of MENU

    + +
    + +

    + +VR +

    + +

    @abstract Selection made via Voice session +- returns: SDLTriggerSource with value of VR

    + + + +

    Objective-C

    +
    + (SDLTriggerSource *)VR;
    + + +

    Swift

    +
    class func VR() -> SDLTriggerSource!
    + + + +
    +

    Return Value

    +

    SDLTriggerSource with value of VR

    + +
    + +

    + +KEYBOARD +

    + +

    @abstract Selection made via Keyboard +- returns: SDLTriggerSource with value of KEYBOARD

    + + + +

    Objective-C

    +
    + (SDLTriggerSource *)KEYBOARD;
    + + +

    Swift

    +
    class func KEYBOARD() -> SDLTriggerSource!
    + + + +
    +

    Return Value

    +

    SDLTriggerSource with value of KEYBOARD

    + +
    + +
    diff --git a/docs/Classes/SDLTurn.html b/docs/Classes/SDLTurn.html new file mode 100644 index 000000000..98c56b993 --- /dev/null +++ b/docs/Classes/SDLTurn.html @@ -0,0 +1,62 @@ +

    SDLTurn Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + navigationText +

    + +

    Undocumented

    + + + + + + +

    + turnIcon +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLUnregisterAppInterface.html b/docs/Classes/SDLUnregisterAppInterface.html new file mode 100644 index 000000000..3f76630cb --- /dev/null +++ b/docs/Classes/SDLUnregisterAppInterface.html @@ -0,0 +1,72 @@ +

    SDLUnregisterAppInterface Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Terminates an application’s interface registration. This causes SDL® to + dispose of all resources associated with the application’s interface + registration (e.g. Command Menu items, Choice Sets, button subscriptions, + etc.) +

    + After the UnregisterAppInterface operation is performed, no other operations + can be performed until a new app interface registration is established by + calling {@linkplain RegisterAppInterface} +

    + HMILevel can be FULL, LIMITED, BACKGROUND or NONE +

    + +

    See SDLRegisterAppInterface SDLOnAppInterfaceUnregistered

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLUnregisterAppInterface object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLUnregisterAppInterface object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLUnregisterAppInterfaceResponse.html b/docs/Classes/SDLUnregisterAppInterfaceResponse.html new file mode 100644 index 000000000..474328b0c --- /dev/null +++ b/docs/Classes/SDLUnregisterAppInterfaceResponse.html @@ -0,0 +1,62 @@ +

    SDLUnregisterAppInterfaceResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Unregister AppInterface Response is sent, when SDLUnregisterAppInterface has been called

    + +

    @since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLUnregisterAppInterfaceResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLUnregisterAppInterfaceResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLUnsubscribeButton.html b/docs/Classes/SDLUnsubscribeButton.html new file mode 100644 index 000000000..b8ee42394 --- /dev/null +++ b/docs/Classes/SDLUnsubscribeButton.html @@ -0,0 +1,91 @@ +

    SDLUnsubscribeButton Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Deletes a subscription to button notifications for the specified button. For +more information about button subscriptions, see SDLSubscribeButton +

    +Application can unsubscribe from a button that is currently being pressed +(i.e. has not yet been released), but app will not get button event +

    +HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    @since SmartDeviceLink 1.0
    +See SDLSubscribeButton

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLUnsubscribeButton object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLUnsubscribeButton object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + buttonName +

    + +

    @abstract A name of the button to unsubscribe from +@discussion An Enumeration value, see + SDLButtonName

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLButtonName *buttonName;
    + + +

    Swift

    +
    var buttonName: SDLButtonName! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLUnsubscribeButtonResponse.html b/docs/Classes/SDLUnsubscribeButtonResponse.html new file mode 100644 index 000000000..c3c77838e --- /dev/null +++ b/docs/Classes/SDLUnsubscribeButtonResponse.html @@ -0,0 +1,62 @@ +

    SDLUnsubscribeButtonResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Unsubscribe Button Response is sent, when SDLUnsubscribeButton has been called

    + +

    @since SmartDeviceLink 1.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLUnsubscribeButtonResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLUnsubscribeButtonResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +
    diff --git a/docs/Classes/SDLUnsubscribeVehicleData.html b/docs/Classes/SDLUnsubscribeVehicleData.html new file mode 100644 index 000000000..9f1fe056a --- /dev/null +++ b/docs/Classes/SDLUnsubscribeVehicleData.html @@ -0,0 +1,507 @@ +

    SDLUnsubscribeVehicleData Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    This function is used to unsubscribe the notifications from the + subscribeVehicleData function +

    + Function Group: Location, VehicleInfo and DrivingChara +

    + HMILevel needs to be FULL, LIMITED or BACKGROUND +

    + +

    @since SmartDeviceLink 2.0
    + See SDLSubscribeVehicleData SDLGetVehicleData

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLUnsubscribeVehicleData object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLUnsubscribeVehicleData object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + gps +

    + +

    @abstract A boolean value. If true, unsubscribes Gps data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *gps;
    + + +

    Swift

    +
    var gps: NSNumber! { get set }
    + + + + +

    + speed +

    + +

    @abstract A boolean value. If true, unsubscribes speed data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *speed;
    + + +

    Swift

    +
    var speed: NSNumber! { get set }
    + + + + +

    + rpm +

    + +

    @abstract A boolean value. If true, unsubscribe data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *rpm;
    + + +

    Swift

    +
    var rpm: NSNumber! { get set }
    + + + + +

    + fuelLevel +

    + +

    @abstract A boolean value. If true, unsubscribes FuelLevel data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *fuelLevel;
    + + +

    Swift

    +
    var fuelLevel: NSNumber! { get set }
    + + + + +

    + fuelLevel_State +

    + +

    @abstract A boolean value. If true, unsubscribes fuelLevel_State data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *fuelLevel_State;
    + + +

    Swift

    +
    var fuelLevel_State: NSNumber! { get set }
    + + + + +

    + instantFuelConsumption +

    + +

    @abstract A boolean value. If true, unsubscribes instantFuelConsumption data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *instantFuelConsumption;
    + + +

    Swift

    +
    var instantFuelConsumption: NSNumber! { get set }
    + + + + +

    + externalTemperature +

    + +

    @abstract A boolean value. If true, unsubscribes externalTemperature data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *externalTemperature;
    + + +

    Swift

    +
    var externalTemperature: NSNumber! { get set }
    + + + + +

    + prndl +

    + +

    @abstract A boolean value. If true, unsubscribes Currently selected gear data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *prndl;
    + + +

    Swift

    +
    var prndl: NSNumber! { get set }
    + + + + +

    + tirePressure +

    + +

    @abstract A boolean value. If true, unsubscribes tire pressure status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *tirePressure;
    + + +

    Swift

    +
    var tirePressure: NSNumber! { get set }
    + + + + +

    + odometer +

    + +

    @abstract A boolean value. If true, unsubscribes odometer data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *odometer;
    + + +

    Swift

    +
    var odometer: NSNumber! { get set }
    + + + + +

    + beltStatus +

    + +

    @abstract A boolean value. If true, unsubscribes belt Status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *beltStatus;
    + + +

    Swift

    +
    var beltStatus: NSNumber! { get set }
    + + + + +

    + bodyInformation +

    + +

    @abstract A boolean value. If true, unsubscribes body Information data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *bodyInformation;
    + + +

    Swift

    +
    var bodyInformation: NSNumber! { get set }
    + + + + +

    + deviceStatus +

    + +

    @abstract A boolean value. If true, unsubscribes device Status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *deviceStatus;
    + + +

    Swift

    +
    var deviceStatus: NSNumber! { get set }
    + + + + +

    + driverBraking +

    + +

    @abstract A boolean value. If true, unsubscribes driver Braking data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *driverBraking;
    + + +

    Swift

    +
    var driverBraking: NSNumber! { get set }
    + + + + +

    + wiperStatus +

    + +

    @abstract A boolean value. If true, unsubscribes wiper Status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *wiperStatus;
    + + +

    Swift

    +
    var wiperStatus: NSNumber! { get set }
    + + + + +

    + headLampStatus +

    + +

    @abstract A boolean value. If true, unsubscribes Head Lamp Status data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *headLampStatus;
    + + +

    Swift

    +
    var headLampStatus: NSNumber! { get set }
    + + + + +

    + engineTorque +

    + +

    @abstract A boolean value. If true, unsubscribes Engine Torque data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *engineTorque;
    + + +

    Swift

    +
    var engineTorque: NSNumber! { get set }
    + + + + +

    + accPedalPosition +

    + +

    @abstract A boolean value. If true, unsubscribes accPedalPosition data

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSNumber *accPedalPosition;
    + + +

    Swift

    +
    var accPedalPosition: NSNumber! { get set }
    + + + + +

    + steeringWheelAngle +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleData : SDLRPCRequest
    + + + + + +

    + eCallInfo +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleData : SDLRPCRequest
    + + + + + +

    + airbagStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleData : SDLRPCRequest
    + + + + + +

    + emergencyEvent +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleData : SDLRPCRequest
    + + + + + +

    + clusterModeStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleData : SDLRPCRequest
    + + + + + +

    + myKey +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleData : SDLRPCRequest
    + + + + + +
    diff --git a/docs/Classes/SDLUnsubscribeVehicleDataResponse.html b/docs/Classes/SDLUnsubscribeVehicleDataResponse.html new file mode 100644 index 000000000..584114acf --- /dev/null +++ b/docs/Classes/SDLUnsubscribeVehicleDataResponse.html @@ -0,0 +1,504 @@ +

    SDLUnsubscribeVehicleDataResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Unsubscribe Vehicle Data Response is sent, when UnsubscribeVehicleData has been called

    + +

    @since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a new SDLUnsubscribeVehicleDataResponse object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a new SDLUnsubscribeVehicleDataResponse object indicated by the NSMutableDictionary +parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + gps +

    + +

    @abstract A SDLVehicleDataResult* value. See GPSData.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *gps;
    + + +

    Swift

    +
    var gps: SDLVehicleDataResult! { get set }
    + + + + +

    + speed +

    + +

    @abstract A SDLVehicleDataResult* value. The vehicle speed in kilometers per hour.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *speed;
    + + +

    Swift

    +
    var speed: SDLVehicleDataResult! { get set }
    + + + + +

    + rpm +

    + +

    @abstract A SDLVehicleDataResult* value. The number of revolutions per minute of the engine.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *rpm;
    + + +

    Swift

    +
    var rpm: SDLVehicleDataResult! { get set }
    + + + + +

    + fuelLevel +

    + +

    @abstract A SDLVehicleDataResult* value. The fuel level in the tank (percentage)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *fuelLevel;
    + + +

    Swift

    +
    var fuelLevel: SDLVehicleDataResult! { get set }
    + + + + +

    + fuelLevel_State +

    + +

    @abstract A SDLVehicleDataResult* value. The fuel level state.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *fuelLevel_State;
    + + +

    Swift

    +
    var fuelLevel_State: SDLVehicleDataResult! { get set }
    + + + + +

    + instantFuelConsumption +

    + +

    @abstract A SDLVehicleDataResult* value. The instantaneous fuel consumption in microlitres.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic)
    +    SDLVehicleDataResult *instantFuelConsumption;
    + + +

    Swift

    +
    var instantFuelConsumption: SDLVehicleDataResult! { get set }
    + + + + +

    + externalTemperature +

    + +

    @abstract A SDLVehicleDataResult* value. The external temperature in degrees celsius.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *externalTemperature;
    + + +

    Swift

    +
    var externalTemperature: SDLVehicleDataResult! { get set }
    + + + + +

    + prndl +

    + +

    @abstract A SDLVehicleDataResult* value. See PRNDL.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *prndl;
    + + +

    Swift

    +
    var prndl: SDLVehicleDataResult! { get set }
    + + + + +

    + tirePressure +

    + +

    @abstract A SDLVehicleDataResult* value. See TireStatus.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *tirePressure;
    + + +

    Swift

    +
    var tirePressure: SDLVehicleDataResult! { get set }
    + + + + +

    + odometer +

    + +

    @abstract A SDLVehicleDataResult* value. Odometer in km.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *odometer;
    + + +

    Swift

    +
    var odometer: SDLVehicleDataResult! { get set }
    + + + + +

    + beltStatus +

    + +

    @abstract A SDLVehicleDataResult* value. The status of the seat belts.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *beltStatus;
    + + +

    Swift

    +
    var beltStatus: SDLVehicleDataResult! { get set }
    + + + + +

    + bodyInformation +

    + +

    @abstract A SDLVehicleDataResult* value. The body information including power modes.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *bodyInformation;
    + + +

    Swift

    +
    var bodyInformation: SDLVehicleDataResult! { get set }
    + + + + +

    + deviceStatus +

    + +

    @abstract A SDLVehicleDataResult* value. The device status including signal and battery strength.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *deviceStatus;
    + + +

    Swift

    +
    var deviceStatus: SDLVehicleDataResult! { get set }
    + + + + +

    + driverBraking +

    + +

    @abstract A SDLVehicleDataResult* value. The status of the brake pedal.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *driverBraking;
    + + +

    Swift

    +
    var driverBraking: SDLVehicleDataResult! { get set }
    + + + + +

    + wiperStatus +

    + +

    @abstract A SDLVehicleDataResult* value. The status of the wipers.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *wiperStatus;
    + + +

    Swift

    +
    var wiperStatus: SDLVehicleDataResult! { get set }
    + + + + +

    + headLampStatus +

    + +

    @abstract A SDLVehicleDataResult* value. Status of the head lamps.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *headLampStatus;
    + + +

    Swift

    +
    var headLampStatus: SDLVehicleDataResult! { get set }
    + + + + +

    + engineTorque +

    + +

    @abstract A SDLVehicleDataResult* value. Torque value for engine (in Nm) on non-diesel variants.

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *engineTorque;
    + + +

    Swift

    +
    var engineTorque: SDLVehicleDataResult! { get set }
    + + + + +

    + accPedalPosition +

    + +

    @abstract A SDLVehicleDataResult* value. Accelerator pedal position (percentage depressed)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *accPedalPosition;
    + + +

    Swift

    +
    var accPedalPosition: SDLVehicleDataResult! { get set }
    + + + + +

    + steeringWheelAngle +

    + +

    @abstract A SDLVehicleDataResult* value. Current angle of the steering wheel (in deg)

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) SDLVehicleDataResult *steeringWheelAngle;
    + + +

    Swift

    +
    var steeringWheelAngle: SDLVehicleDataResult! { get set }
    + + + + +

    + eCallInfo +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleDataResponse : SDLRPCResponse
    + + + + + +

    + airbagStatus +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleDataResponse : SDLRPCResponse
    + + + + + +

    + emergencyEvent +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleDataResponse : SDLRPCResponse
    + + + + + +

    + clusterModes +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleDataResponse : SDLRPCResponse
    + + + + + +

    + myKey +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUnsubscribeVehicleDataResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLUpdateMode.html b/docs/Classes/SDLUpdateMode.html new file mode 100644 index 000000000..f0713d2e0 --- /dev/null +++ b/docs/Classes/SDLUpdateMode.html @@ -0,0 +1,192 @@ +

    SDLUpdateMode Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Specifies what function should be performed on the media clock/counter

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLUpdateMode +- parameter: value The value of the string to get an object for +- returns: SDLUpdateMode

    + + + +

    Objective-C

    +
    + (SDLUpdateMode *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLUpdateMode!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLUpdateMode

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLUpdateMode +- returns: an array that store all possible SDLUpdateMode

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLUpdateMode

    + +
    + +

    + +COUNTUP +

    + +

    @abstract Starts the media clock timer counting upward, in increments of 1 second. +- returns: SDLUpdateMode with value of COUNTUP

    + + + +

    Objective-C

    +
    + (SDLUpdateMode *)COUNTUP;
    + + +

    Swift

    +
    class func COUNTUP() -> SDLUpdateMode!
    + + + +
    +

    Return Value

    +

    SDLUpdateMode with value of COUNTUP

    + +
    + +

    + +COUNTDOWN +

    + +

    @abstract Starts the media clock timer counting downward, in increments of 1 second. +- returns: SDLUpdateMode with value of COUNTDOWN

    + + + +

    Objective-C

    +
    + (SDLUpdateMode *)COUNTDOWN;
    + + +

    Swift

    +
    class func COUNTDOWN() -> SDLUpdateMode!
    + + + +
    +

    Return Value

    +

    SDLUpdateMode with value of COUNTDOWN

    + +
    + +

    + +PAUSE +

    + +

    @abstract Pauses the media clock timer. +- returns: SDLUpdateMode with value of PAUSE

    + + + +

    Objective-C

    +
    + (SDLUpdateMode *)PAUSE;
    + + +

    Swift

    +
    class func PAUSE() -> SDLUpdateMode!
    + + + +
    +

    Return Value

    +

    SDLUpdateMode with value of PAUSE

    + +
    + +

    + +RESUME +

    + +

    @abstract Resumes the media clock timer. The timer resumes counting in whatever mode was in effect before pausing (i.e. COUNTUP or COUNTDOWN). +- returns: SDLUpdateMode with value of RESUME

    + + + +

    Objective-C

    +
    + (SDLUpdateMode *)RESUME;
    + + +

    Swift

    +
    class func RESUME() -> SDLUpdateMode!
    + + + +
    +

    Return Value

    +

    SDLUpdateMode with value of RESUME

    + +
    + +

    + +CLEAR +

    + +

    @abstract Clear the media clock timer.

    + + + +

    Objective-C

    +
    + (SDLUpdateMode *)CLEAR;
    + + +

    Swift

    +
    class func CLEAR() -> SDLUpdateMode!
    + + + + +
    diff --git a/docs/Classes/SDLUpdateTurnList.html b/docs/Classes/SDLUpdateTurnList.html new file mode 100644 index 000000000..4da32f9d2 --- /dev/null +++ b/docs/Classes/SDLUpdateTurnList.html @@ -0,0 +1,87 @@ +

    SDLUpdateTurnList Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Updates the list of next maneuvers, which can be requested by the user pressing the softbutton
    + * “Turns” on the Navigation base screen. Three softbuttons are predefined by the system: Up, Down, Close. + *

    + * @since SmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUpdateTurnList : SDLRPCRequest
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUpdateTurnList : SDLRPCRequest
    + + + + + +

    + turnList +

    + +

    Optional, SDLTurn, 1 - 100 entries

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *turnList;
    + + +

    Swift

    +
    var turnList: NSMutableArray! { get set }
    + + + + +

    + softButtons +

    + +

    Required, SDLSoftButton, 0 - 1 Entries

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSMutableArray *softButtons;
    + + +

    Swift

    +
    var softButtons: NSMutableArray! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLUpdateTurnListResponse.html b/docs/Classes/SDLUpdateTurnListResponse.html new file mode 100644 index 000000000..927b30764 --- /dev/null +++ b/docs/Classes/SDLUpdateTurnListResponse.html @@ -0,0 +1,47 @@ +

    SDLUpdateTurnListResponse Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    SDLUpdateTurnListResponse is sent, when SDLUpdateTurnList has been called. + * SinceSmartDeviceLink 2.0

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUpdateTurnListResponse : SDLRPCResponse
    + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + +

    Objective-C

    +
    @interface SDLUpdateTurnListResponse : SDLRPCResponse
    + + + + + +
    diff --git a/docs/Classes/SDLVRCapabilities.html b/docs/Classes/SDLVRCapabilities.html new file mode 100644 index 000000000..22eb69aa5 --- /dev/null +++ b/docs/Classes/SDLVRCapabilities.html @@ -0,0 +1,98 @@ +

    SDLVRCapabilities Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The VR capabilities of the connected SDL platform.

    + +

    @since SDL 1.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLVRCapabilities +- parameter: value The value of the string to get an object for +- returns: SDLVRCapabilities

    + + + +

    Objective-C

    +
    + (SDLVRCapabilities *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLVRCapabilities!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLVRCapabilities

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLVRCapabilities +- returns: an array that store all possible SDLVRCapabilities

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLVRCapabilities

    + +
    + +

    + +TEXT +

    + +

    @abstract The SDL platform is capable of recognizing spoken text in the current language. +- returns: an SDLVRCapabilities instance pointer with value of TEXT

    + + + +

    Objective-C

    +
    + (SDLVRCapabilities *)TEXT;
    + + +

    Swift

    +
    class func TEXT() -> SDLVRCapabilities!
    + + + +
    +

    Return Value

    +

    an SDLVRCapabilities instance pointer with value of TEXT

    + +
    + +
    diff --git a/docs/Classes/SDLVRHelpItem.html b/docs/Classes/SDLVRHelpItem.html new file mode 100644 index 000000000..bbc5803b8 --- /dev/null +++ b/docs/Classes/SDLVRHelpItem.html @@ -0,0 +1,74 @@ +

    SDLVRHelpItem Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + text +

    + +

    Undocumented

    + + + + + + +

    + image +

    + +

    Undocumented

    + + + + + + +

    + position +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLVehicleDataActiveStatus.html b/docs/Classes/SDLVehicleDataActiveStatus.html new file mode 100644 index 000000000..cabd165e7 --- /dev/null +++ b/docs/Classes/SDLVehicleDataActiveStatus.html @@ -0,0 +1,160 @@ +

    SDLVehicleDataActiveStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Vehicle Data Activity Status

    + + +
    +

    + +valueOf: +

    + +

    @abstract Convert String to SDLVehicleDataActiveStatus +- parameter: value NSString +- returns: SDLVehicleDataActiveStatus

    + + + +

    Objective-C

    +
    + (SDLVehicleDataActiveStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLVehicleDataActiveStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    NSString

    +
    +
    +
    +

    Return Value

    +

    SDLVehicleDataActiveStatus

    + +
    + +

    + +values +

    + +

    @abstract return the array that store all possible SDLVehicleDataActiveStatus values

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + + +

    + +INACTIVE_NOT_CONFIRMED +

    + +

    @abstract SDLVehicleDataActiveStatus : Inactive not confirmed

    + + + +

    Objective-C

    +
    + (SDLVehicleDataActiveStatus *)INACTIVE_NOT_CONFIRMED;
    + + +

    Swift

    +
    class func INACTIVE_NOT_CONFIRMED() -> SDLVehicleDataActiveStatus!
    + + + + +

    + +INACTIVE_CONFIRMED +

    + +

    @abstract SDLVehicleDataActiveStatus : Inactive confirmed

    + + + +

    Objective-C

    +
    + (SDLVehicleDataActiveStatus *)INACTIVE_CONFIRMED;
    + + +

    Swift

    +
    class func INACTIVE_CONFIRMED() -> SDLVehicleDataActiveStatus!
    + + + + +

    + +ACTIVE_NOT_CONFIRMED +

    + +

    @abstract SDLVehicleDataActiveStatus : Active not confirmed

    + + + +

    Objective-C

    +
    + (SDLVehicleDataActiveStatus *)ACTIVE_NOT_CONFIRMED;
    + + +

    Swift

    +
    class func ACTIVE_NOT_CONFIRMED() -> SDLVehicleDataActiveStatus!
    + + + + +

    + +ACTIVE_CONFIRMED +

    + +

    @abstract SDLVehicleDataActiveStatus : Active confirmed

    + + + +

    Objective-C

    +
    + (SDLVehicleDataActiveStatus *)ACTIVE_CONFIRMED;
    + + +

    Swift

    +
    class func ACTIVE_CONFIRMED() -> SDLVehicleDataActiveStatus!
    + + + + +

    + +FAULT +

    + +

    @abstract SDLVehicleDataActiveStatus : Fault

    + + + +

    Objective-C

    +
    + (SDLVehicleDataActiveStatus *)FAULT;
    + + +

    Swift

    +
    class func FAULT() -> SDLVehicleDataActiveStatus!
    + + + + +
    diff --git a/docs/Classes/SDLVehicleDataEventStatus.html b/docs/Classes/SDLVehicleDataEventStatus.html new file mode 100644 index 000000000..f881d0a48 --- /dev/null +++ b/docs/Classes/SDLVehicleDataEventStatus.html @@ -0,0 +1,182 @@ +

    SDLVehicleDataEventStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reflects the status of a vehicle data event; e.g. a seat belt event status.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLVehicleDataEventStatus

    + + + +

    Objective-C

    +
    + (SDLVehicleDataEventStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLVehicleDataEventStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLVehicleDataEventStatus

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLVehicleDataEventStatus

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLVehicleDataEventStatus

    + +
    + +

    + +NO_EVENT +

    + + + + +

    Objective-C

    +
    + (SDLVehicleDataEventStatus *)NO_EVENT;
    + + +

    Swift

    +
    class func NO_EVENT() -> SDLVehicleDataEventStatus!
    + + + +
    +

    Return Value

    +

    The SDLVehicleDataEventStatus instance with value of NO_EVENT

    + +
    + +

    + +_NO +

    + + + + +

    Objective-C

    +
    + (SDLVehicleDataEventStatus *)_NO;
    + + +

    Swift

    +
    class func _NO() -> SDLVehicleDataEventStatus!
    + + + +
    +

    Return Value

    +

    The SDLVehicleDataEventStatus instance with value of NO

    + +
    + +

    + +_YES +

    + + + + +

    Objective-C

    +
    + (SDLVehicleDataEventStatus *)_YES;
    + + +

    Swift

    +
    class func _YES() -> SDLVehicleDataEventStatus!
    + + + +
    +

    Return Value

    +

    The SDLVehicleDataEventStatus instance with value of YES

    + +
    + +

    + +NOT_SUPPORTED +

    + +

    @abstract Vehicle data event is not supported

    + + + +

    Objective-C

    +
    + (SDLVehicleDataEventStatus *)NOT_SUPPORTED;
    + + +

    Swift

    +
    class func NOT_SUPPORTED() -> SDLVehicleDataEventStatus!
    + + + +
    +

    Return Value

    +

    the SDLVehicleDataEventStatus instance with value of NOT_SUPPORTED

    + +
    + +

    + +FAULT +

    + +

    @abstract The SDLVehicleDataEventStatus instance with value of FAULT

    + + + +

    Objective-C

    +
    + (SDLVehicleDataEventStatus *)FAULT;
    + + +

    Swift

    +
    class func FAULT() -> SDLVehicleDataEventStatus!
    + + + + +
    diff --git a/docs/Classes/SDLVehicleDataNotificationStatus.html b/docs/Classes/SDLVehicleDataNotificationStatus.html new file mode 100644 index 000000000..e74feed97 --- /dev/null +++ b/docs/Classes/SDLVehicleDataNotificationStatus.html @@ -0,0 +1,149 @@ +

    SDLVehicleDataNotificationStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reflects the status of a vehicle data notification.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLVehicleDataNotificationStatus +- parameter: value The value of the string to get an object for +- returns: SDLVehicleDataNotificationStatus

    + + + +

    Objective-C

    +
    + (SDLVehicleDataNotificationStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLVehicleDataNotificationStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLVehicleDataNotificationStatus

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLVehicleDataNotificationStatus +- returns: an array that store all possible SDLVehicleDataNotificationStatus

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLVehicleDataNotificationStatus

    + +
    + +

    + +NOT_SUPPORTED +

    + +

    @abstract SDLVehicleDataNotificationStatus: NOT_SUPPORTED

    + + + +

    Objective-C

    +
    + (SDLVehicleDataNotificationStatus *)NOT_SUPPORTED;
    + + +

    Swift

    +
    class func NOT_SUPPORTED() -> SDLVehicleDataNotificationStatus!
    + + + + +

    + +NORMAL +

    + +

    @abstract SDLVehicleDataNotificationStatus: NORMAL

    + + + +

    Objective-C

    +
    + (SDLVehicleDataNotificationStatus *)NORMAL;
    + + +

    Swift

    +
    class func NORMAL() -> SDLVehicleDataNotificationStatus!
    + + + + +

    + +ACTIVE +

    + +

    @abstract SDLVehicleDataNotificationStatus: ACTIVE

    + + + +

    Objective-C

    +
    + (SDLVehicleDataNotificationStatus *)ACTIVE;
    + + +

    Swift

    +
    class func ACTIVE() -> SDLVehicleDataNotificationStatus!
    + + + + +

    + +NOT_USED +

    + +

    @abstract SDLVehicleDataNotificationStatus: NOT_USED

    + + + +

    Objective-C

    +
    + (SDLVehicleDataNotificationStatus *)NOT_USED;
    + + +

    Swift

    +
    class func NOT_USED() -> SDLVehicleDataNotificationStatus!
    + + + + +
    diff --git a/docs/Classes/SDLVehicleDataResult.html b/docs/Classes/SDLVehicleDataResult.html new file mode 100644 index 000000000..4c0075d44 --- /dev/null +++ b/docs/Classes/SDLVehicleDataResult.html @@ -0,0 +1,62 @@ +

    SDLVehicleDataResult Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -init +

    + +

    Undocumented

    + + + + + + +

    + -initWithDictionary: +

    + +

    Undocumented

    + + + + + + +

    + dataType +

    + +

    Undocumented

    + + + + + + +

    + resultCode +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Classes/SDLVehicleDataResultCode.html b/docs/Classes/SDLVehicleDataResultCode.html new file mode 100644 index 000000000..1e7dac3f9 --- /dev/null +++ b/docs/Classes/SDLVehicleDataResultCode.html @@ -0,0 +1,242 @@ +

    SDLVehicleDataResultCode Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Vehicle Data Result Code

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLVehicleDataResultCode +- parameter: value String +- returns: SDLVehicleDataResultCode

    + + + +

    Objective-C

    +
    + (SDLVehicleDataResultCode *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLVehicleDataResultCode!
    + + + +

    Parameters

    +
    +
    value
    +

    String

    +
    +
    +
    +

    Return Value

    +

    SDLVehicleDataResultCode

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLVehicleDataResultCode +- returns: an array that store all possible SDLVehicleDataResultCode

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLVehicleDataResultCode

    + +
    + +

    + +SUCCESS +

    + +

    Individual vehicle data item / DTC / DID request or subscription successful

    + + + +

    Objective-C

    +
    + (SDLVehicleDataResultCode *)SUCCESS;
    + + +

    Swift

    +
    class func SUCCESS() -> SDLVehicleDataResultCode!
    + + + + +

    + +TRUNCATED_DATA +

    + +

    DTC / DID request successful, however, not all active DTCs or full contents of DID location available

    + + + +

    Objective-C

    +
    + (SDLVehicleDataResultCode *)TRUNCATED_DATA;
    + + +

    Swift

    +
    class func TRUNCATED_DATA() -> SDLVehicleDataResultCode!
    + + + + +

    + +DISALLOWED +

    + +

    This vehicle data item is not allowed for this app by SDL

    + + + +

    Objective-C

    +
    + (SDLVehicleDataResultCode *)DISALLOWED;
    + + +

    Swift

    +
    class func DISALLOWED() -> SDLVehicleDataResultCode!
    + + + + +

    + +USER_DISALLOWED +

    + +

    The user has not granted access to this type of vehicle data item at this time

    + + + +

    Objective-C

    +
    + (SDLVehicleDataResultCode *)USER_DISALLOWED;
    + + +

    Swift

    +
    class func USER_DISALLOWED() -> SDLVehicleDataResultCode!
    + + + + +

    + +INVALID_ID +

    + +

    The ECU ID referenced is not a valid ID on the bus / system

    + + + +

    Objective-C

    +
    + (SDLVehicleDataResultCode *)INVALID_ID;
    + + +

    Swift

    +
    class func INVALID_ID() -> SDLVehicleDataResultCode!
    + + + + +

    + +VEHICLE_DATA_NOT_AVAILABLE +

    + +

    The requested vehicle data item / DTC / DID is not currently available or responding on the bus / system

    + + + +

    Objective-C

    +
    + (SDLVehicleDataResultCode *)VEHICLE_DATA_NOT_AVAILABLE;
    + + +

    Swift

    +
    class func VEHICLE_DATA_NOT_AVAILABLE() -> SDLVehicleDataResultCode!
    + + + + +

    + +DATA_ALREADY_SUBSCRIBED +

    + +

    The vehicle data item is already subscribed

    + + + +

    Objective-C

    +
    + (SDLVehicleDataResultCode *)DATA_ALREADY_SUBSCRIBED;
    + + +

    Swift

    +
    class func DATA_ALREADY_SUBSCRIBED() -> SDLVehicleDataResultCode!
    + + + + +

    + +DATA_NOT_SUBSCRIBED +

    + +

    The vehicle data item cannot be unsubscribed because it is not currently subscribed

    + + + +

    Objective-C

    +
    + (SDLVehicleDataResultCode *)DATA_NOT_SUBSCRIBED;
    + + +

    Swift

    +
    class func DATA_NOT_SUBSCRIBED() -> SDLVehicleDataResultCode!
    + + + + +

    + +IGNORED +

    + +

    The request for this item is ignored because it is already in progress

    + + + +

    Objective-C

    +
    + (SDLVehicleDataResultCode *)IGNORED;
    + + +

    Swift

    +
    class func IGNORED() -> SDLVehicleDataResultCode!
    + + + + +
    diff --git a/docs/Classes/SDLVehicleDataStatus.html b/docs/Classes/SDLVehicleDataStatus.html new file mode 100644 index 000000000..3da570d80 --- /dev/null +++ b/docs/Classes/SDLVehicleDataStatus.html @@ -0,0 +1,136 @@ +

    SDLVehicleDataStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reflects the status of a binary vehicle data item.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLVehicleDataStatus +- parameter: value The value of the string to get an object for +- returns: SDLVehicleDataStatus

    + + + +

    Objective-C

    +
    + (SDLVehicleDataStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLVehicleDataStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLVehicleDataStatus

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLVehicleDataStatus +- returns: an array that store all possible SDLVehicleDataStatus

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLVehicleDataStatus

    + +
    + +

    + +NO_DATA_EXISTS +

    + +

    @abstract No data avaliable +- returns: SDLVehicleDataStatus: NO_DATA_EXISTS

    + + + +

    Objective-C

    +
    + (SDLVehicleDataStatus *)NO_DATA_EXISTS;
    + + +

    Swift

    +
    class func NO_DATA_EXISTS() -> SDLVehicleDataStatus!
    + + + +
    +

    Return Value

    +

    SDLVehicleDataStatus: NO_DATA_EXISTS

    + +
    + +

    + +OFF +

    + +

    @abstract return SDLVehicleDataStatus: OFF

    + + + +

    Objective-C

    +
    + (SDLVehicleDataStatus *)OFF;
    + + +

    Swift

    +
    class func OFF() -> SDLVehicleDataStatus!
    + + + + +

    + +ON +

    + +

    @abstract return SDLVehicleDataStatus: ON

    + + + +

    Objective-C

    +
    + (SDLVehicleDataStatus *)ON;
    + + +

    Swift

    +
    class func ON() -> SDLVehicleDataStatus!
    + + + + +
    diff --git a/docs/Classes/SDLVehicleDataType.html b/docs/Classes/SDLVehicleDataType.html new file mode 100644 index 000000000..b38b22b35 --- /dev/null +++ b/docs/Classes/SDLVehicleDataType.html @@ -0,0 +1,562 @@ +

    SDLVehicleDataType Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Defines the vehicle data types that can be published and/or subscribed to using SDLSubscribeVehicleData

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLVehicleDataType

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLVehicleDataType!
    + + + +

    Parameters

    +
    +
    value
    +

    String value to retrieve the object for

    +
    +
    +
    +

    Return Value

    +

    SDLVehicleDataType

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLVehicleDataType

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLVehicleDataType

    + +
    + +

    + +VEHICLEDATA_GPS +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_GPS

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_GPS;
    + + +

    Swift

    +
    class func VEHICLEDATA_GPS() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_SPEED +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_SPEED

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_SPEED;
    + + +

    Swift

    +
    class func VEHICLEDATA_SPEED() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_RPM +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_RPM

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_RPM;
    + + +

    Swift

    +
    class func VEHICLEDATA_RPM() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_FUELLEVEL +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_FUELLEVEL

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_FUELLEVEL;
    + + +

    Swift

    +
    class func VEHICLEDATA_FUELLEVEL() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_FUELLEVEL_STATE +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_FUELLEVEL_STATE

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_FUELLEVEL_STATE;
    + + +

    Swift

    +
    class func VEHICLEDATA_FUELLEVEL_STATE() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_FUELCONSUMPTION +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_FUELCONSUMPTION

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_FUELCONSUMPTION;
    + + +

    Swift

    +
    class func VEHICLEDATA_FUELCONSUMPTION() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_EXTERNTEMP +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_EXTERNTEMP

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_EXTERNTEMP;
    + + +

    Swift

    +
    class func VEHICLEDATA_EXTERNTEMP() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_VIN +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_VIN

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_VIN;
    + + +

    Swift

    +
    class func VEHICLEDATA_VIN() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_PRNDL +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_PRNDL

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_PRNDL;
    + + +

    Swift

    +
    class func VEHICLEDATA_PRNDL() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_TIREPRESSURE +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_TIREPRESSURE

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_TIREPRESSURE;
    + + +

    Swift

    +
    class func VEHICLEDATA_TIREPRESSURE() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_ODOMETER +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_ODOMETER

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_ODOMETER;
    + + +

    Swift

    +
    class func VEHICLEDATA_ODOMETER() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_BELTSTATUS +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_BELTSTATUS

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_BELTSTATUS;
    + + +

    Swift

    +
    class func VEHICLEDATA_BELTSTATUS() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_BODYINFO +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_BODYINFO

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_BODYINFO;
    + + +

    Swift

    +
    class func VEHICLEDATA_BODYINFO() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_DEVICESTATUS +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_DEVICESTATUS

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_DEVICESTATUS;
    + + +

    Swift

    +
    class func VEHICLEDATA_DEVICESTATUS() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_ECALLINFO +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_ECALLINFO

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_ECALLINFO;
    + + +

    Swift

    +
    class func VEHICLEDATA_ECALLINFO() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_AIRBAGSTATUS +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_AIRBAGSTATUS

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_AIRBAGSTATUS;
    + + +

    Swift

    +
    class func VEHICLEDATA_AIRBAGSTATUS() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_EMERGENCYEVENT +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_EMERGENCYEVENT

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_EMERGENCYEVENT;
    + + +

    Swift

    +
    class func VEHICLEDATA_EMERGENCYEVENT() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_CLUSTERMODESTATUS +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_CLUSTERMODESTATUS

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_CLUSTERMODESTATUS;
    + + +

    Swift

    +
    class func VEHICLEDATA_CLUSTERMODESTATUS() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_MYKEY +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_MYKEY

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_MYKEY;
    + + +

    Swift

    +
    class func VEHICLEDATA_MYKEY() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_BRAKING +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_BRAKING

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_BRAKING;
    + + +

    Swift

    +
    class func VEHICLEDATA_BRAKING() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_WIPERSTATUS +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_WIPERSTATUS

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_WIPERSTATUS;
    + + +

    Swift

    +
    class func VEHICLEDATA_WIPERSTATUS() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_HEADLAMPSTATUS +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_HEADLAMPSTATUS

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_HEADLAMPSTATUS;
    + + +

    Swift

    +
    class func VEHICLEDATA_HEADLAMPSTATUS() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_BATTVOLTAGE +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_BATTVOLTAGE

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_BATTVOLTAGE;
    + + +

    Swift

    +
    class func VEHICLEDATA_BATTVOLTAGE() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_ENGINETORQUE +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_ENGINETORQUE

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_ENGINETORQUE;
    + + +

    Swift

    +
    class func VEHICLEDATA_ENGINETORQUE() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_ACCPEDAL +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_ACCPEDAL

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_ACCPEDAL;
    + + +

    Swift

    +
    class func VEHICLEDATA_ACCPEDAL() -> SDLVehicleDataType!
    + + + + +

    + +VEHICLEDATA_STEERINGWHEEL +

    + +

    @abstract SDLVehicleDataType: VEHICLEDATA_STEERINGWHEEL

    + + + +

    Objective-C

    +
    + (SDLVehicleDataType *)VEHICLEDATA_STEERINGWHEEL;
    + + +

    Swift

    +
    class func VEHICLEDATA_STEERINGWHEEL() -> SDLVehicleDataType!
    + + + + +
    diff --git a/docs/Classes/SDLVehicleType.html b/docs/Classes/SDLVehicleType.html new file mode 100644 index 000000000..aee408d26 --- /dev/null +++ b/docs/Classes/SDLVehicleType.html @@ -0,0 +1,153 @@ +

    SDLVehicleType Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Describes the type of vehicle the mobile phone is connected with.

    + +

    @since SDL 2.0

    + + +
    +

    + -init +

    + +

    @abstract Constructs a newly allocated SDLVehicleType object

    + + + +

    Objective-C

    +
    - (instancetype)init;
    + + +

    Swift

    +
    init!()
    + + + + +

    + -initWithDictionary: +

    + +

    @abstract Constructs a newly allocated SDLVehicleType object indicated by the dictionary parameter +- parameter: dict The dictionary to use

    + + + +

    Objective-C

    +
    - (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
    + + +

    Swift

    +
    init!(dictionary dict: NSMutableDictionary!)
    + + + +

    Parameters

    +
    +
    dict
    +

    The dictionary to use

    +
    +
    + +

    + make +

    + +

    @abstract The make of the vehicle

    + +

    @discussion For example, Ford, Lincoln, etc.

    + +

    Optional, Max String length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *make;
    + + +

    Swift

    +
    var make: String! { get set }
    + + + + +

    + model +

    + +

    @abstract The model of the vehicle

    + +

    @discussion For example, Fiesta, Focus, etc.

    + +

    Optional, Max String length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *model;
    + + +

    Swift

    +
    var model: String! { get set }
    + + + + +

    + modelYear +

    + +

    @abstract The model year of the vehicle

    + +

    @discussion For example, 2013

    + +

    Optional, Max String length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *modelYear;
    + + +

    Swift

    +
    var modelYear: String! { get set }
    + + + + +

    + trim +

    + +

    @abstract The trim of the vehicle

    + +

    @discussion For example, SE, SEL

    + +

    Optional, Max String length 500 chars

    + + + +

    Objective-C

    +
    @property (readwrite, strong, atomic) NSString *trim;
    + + +

    Swift

    +
    var trim: String! { get set }
    + + + + +
    diff --git a/docs/Classes/SDLWarningLightStatus.html b/docs/Classes/SDLWarningLightStatus.html new file mode 100644 index 000000000..fd869c548 --- /dev/null +++ b/docs/Classes/SDLWarningLightStatus.html @@ -0,0 +1,173 @@ +

    SDLWarningLightStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Reflects the status of a cluster instrument warning light.

    + +

    @since SDL 2.0

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLWarningLightStatus +- parameter: value The value of the string to get an object for +- returns: SDLWarningLightStatus

    + + + +

    Objective-C

    +
    + (SDLWarningLightStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLWarningLightStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLWarningLightStatus

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLWarningLightStatus +- returns: an array that store all possible SDLWarningLightStatus

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    an array that store all possible SDLWarningLightStatus

    + +
    + +

    + +OFF +

    + +

    @abstract Warninglight Off +- returns: SDLWarningLightStatus instance with value of OFF

    + + + +

    Objective-C

    +
    + (SDLWarningLightStatus *)OFF;
    + + +

    Swift

    +
    class func OFF() -> SDLWarningLightStatus!
    + + + +
    +

    Return Value

    +

    SDLWarningLightStatus instance with value of OFF

    + +
    + +

    + +ON +

    + +

    @abstract Warninglight On +- returns: SDLWarningLightStatus instance with value of ON

    + + + +

    Objective-C

    +
    + (SDLWarningLightStatus *)ON;
    + + +

    Swift

    +
    class func ON() -> SDLWarningLightStatus!
    + + + +
    +

    Return Value

    +

    SDLWarningLightStatus instance with value of ON

    + +
    + +

    + +FLASH +

    + +

    @abstract Warninglight is flashing +- returns: SDLWarningLightStatus instance with value of FLASH

    + + + +

    Objective-C

    +
    + (SDLWarningLightStatus *)FLASH;
    + + +

    Swift

    +
    class func FLASH() -> SDLWarningLightStatus!
    + + + +
    +

    Return Value

    +

    SDLWarningLightStatus instance with value of FLASH

    + +
    + +

    + +NOT_USED +

    + +

    @abstract Not used +- returns: SDLWarningLightStatus instance with value of NOT_USED

    + + + +

    Objective-C

    +
    + (SDLWarningLightStatus *)NOT_USED;
    + + +

    Swift

    +
    class func NOT_USED() -> SDLWarningLightStatus!
    + + + +
    +

    Return Value

    +

    SDLWarningLightStatus instance with value of NOT_USED

    + +
    + +
    diff --git a/docs/Classes/SDLWiperStatus.html b/docs/Classes/SDLWiperStatus.html new file mode 100644 index 000000000..311169837 --- /dev/null +++ b/docs/Classes/SDLWiperStatus.html @@ -0,0 +1,356 @@ +

    SDLWiperStatus Class Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Wiper Status

    + + +
    +

    + +valueOf: +

    + +

    Convert String to SDLWiperStatus +- parameter: value The value of the string to get an object for +- returns: SDLWiperStatus

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)valueOf:(NSString *)value;
    + + +

    Swift

    +
    class func valueOf(value: String!) -> SDLWiperStatus!
    + + + +

    Parameters

    +
    +
    value
    +

    The value of the string to get an object for

    +
    +
    +
    +

    Return Value

    +

    SDLWiperStatus

    + +
    + +

    + +values +

    + +

    @abstract Store the enumeration of all possible SDLWiperStatus +- returns: An array that store all possible SDLWiperStatus

    + + + +

    Objective-C

    +
    + (NSArray *)values;
    + + +

    Swift

    +
    class func values() -> [AnyObject]!
    + + + +
    +

    Return Value

    +

    An array that store all possible SDLWiperStatus

    + +
    + +

    + +OFF +

    + +

    @abstract SDLWiperStatus: OFF

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)OFF;
    + + +

    Swift

    +
    class func OFF() -> SDLWiperStatus!
    + + + + +

    + +AUTO_OFF +

    + +

    @abstract SDLWiperStatus: AUTO_OFF

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)AUTO_OFF;
    + + +

    Swift

    +
    class func AUTO_OFF() -> SDLWiperStatus!
    + + + + +

    + +OFF_MOVING +

    + +

    @abstract SDLWiperStatus: OFF_MOVING

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)OFF_MOVING;
    + + +

    Swift

    +
    class func OFF_MOVING() -> SDLWiperStatus!
    + + + + +

    + +MAN_INT_OFF +

    + +

    @abstract SDLWiperStatus: MAN_INT_OFF

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)MAN_INT_OFF;
    + + +

    Swift

    +
    class func MAN_INT_OFF() -> SDLWiperStatus!
    + + + + +

    + +MAN_INT_ON +

    + +

    @abstract SDLWiperStatus: MAN_INT_ON

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)MAN_INT_ON;
    + + +

    Swift

    +
    class func MAN_INT_ON() -> SDLWiperStatus!
    + + + + +

    + +MAN_LOW +

    + +

    @abstract SDLWiperStatus: MAN_LOW

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)MAN_LOW;
    + + +

    Swift

    +
    class func MAN_LOW() -> SDLWiperStatus!
    + + + + +

    + +MAN_HIGH +

    + +

    @abstract SDLWiperStatus: MAN_HIGH

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)MAN_HIGH;
    + + +

    Swift

    +
    class func MAN_HIGH() -> SDLWiperStatus!
    + + + + +

    + +MAN_FLICK +

    + +

    @abstract SDLWiperStatus: MAN_FLICK

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)MAN_FLICK;
    + + +

    Swift

    +
    class func MAN_FLICK() -> SDLWiperStatus!
    + + + + +

    + +WASH +

    + +

    @abstract SDLWiperStatus: WASH

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)WASH;
    + + +

    Swift

    +
    class func WASH() -> SDLWiperStatus!
    + + + + +

    + +AUTO_LOW +

    + +

    @abstract SDLWiperStatus: AUTO_LOW

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)AUTO_LOW;
    + + +

    Swift

    +
    class func AUTO_LOW() -> SDLWiperStatus!
    + + + + +

    + +AUTO_HIGH +

    + +

    @abstract SDLWiperStatus: AUTO_HIGH

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)AUTO_HIGH;
    + + +

    Swift

    +
    class func AUTO_HIGH() -> SDLWiperStatus!
    + + + + +

    + +COURTESYWIPE +

    + +

    @abstract SDLWiperStatus: COURTESYWIPE

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)COURTESYWIPE;
    + + +

    Swift

    +
    class func COURTESYWIPE() -> SDLWiperStatus!
    + + + + +

    + +AUTO_ADJUST +

    + +

    @abstract SDLWiperStatus: AUTO_ADJUST

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)AUTO_ADJUST;
    + + +

    Swift

    +
    class func AUTO_ADJUST() -> SDLWiperStatus!
    + + + + +

    + +STALLED +

    + +

    @abstract SDLWiperStatus: STALLED

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)STALLED;
    + + +

    Swift

    +
    class func STALLED() -> SDLWiperStatus!
    + + + + +

    + +NO_DATA_EXISTS +

    + +

    @abstract SDLWiperStatus: NO_DATA_EXISTS

    + + + +

    Objective-C

    +
    + (SDLWiperStatus *)NO_DATA_EXISTS;
    + + +

    Swift

    +
    class func NO_DATA_EXISTS() -> SDLWiperStatus!
    + + + + +
    diff --git a/docs/Constants.html b/docs/Constants.html new file mode 100644 index 000000000..737f100cd --- /dev/null +++ b/docs/Constants.html @@ -0,0 +1,62 @@ +

    Constants Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The following constants are available globally.

    + + +
    +

    + SDLErrorDomainStreamingMediaVideo +

    + +

    Undocumented

    + + + + + + +

    + SDLErrorDomainStreamingMediaAudio +

    + +

    Undocumented

    + + + + + + +

    + SmartDeviceLinkVersionNumber +

    + +

    Undocumented

    + + + + + + +

    + SmartDeviceLinkVersionString +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Enums.html b/docs/Enums.html new file mode 100644 index 000000000..b6cc82a83 --- /dev/null +++ b/docs/Enums.html @@ -0,0 +1,118 @@ +

    Enums Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The following enums are available globally.

    + + +
    +

    + SDLDebugType +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLDebugOutput +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLFrameType +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLServiceType +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLFrameData +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLRPCMessageType +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLStreamingVideoError +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLStreamingAudioError +

    + +

    Undocumented

    + + See more + + + + + +
    diff --git a/docs/Enums/SDLDebugOutput.html b/docs/Enums/SDLDebugOutput.html new file mode 100644 index 000000000..317ee81f7 --- /dev/null +++ b/docs/Enums/SDLDebugOutput.html @@ -0,0 +1,62 @@ +

    SDLDebugOutput Enum Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + SDLDebugOutput_All +

    + +

    Undocumented

    + + + + + + +

    + SDLDebugOutput_DeviceConsole +

    + +

    Undocumented

    + + + + + + +

    + SDLDebugOutput_DebugToolConsole +

    + +

    Undocumented

    + + + + + + +

    + SDLDebugOutput_File +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Enums/SDLDebugType.html b/docs/Enums/SDLDebugType.html new file mode 100644 index 000000000..f7e036677 --- /dev/null +++ b/docs/Enums/SDLDebugType.html @@ -0,0 +1,86 @@ +

    SDLDebugType Enum Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + SDLDebugType_Debug +

    + +

    Undocumented

    + + + + + + +

    + SDLDebugType_Transport_iAP +

    + +

    Undocumented

    + + + + + + +

    + SDLDebugType_Transport_TCP +

    + +

    Undocumented

    + + + + + + +

    + SDLDebugType_Protocol +

    + +

    Undocumented

    + + + + + + +

    + SDLDebugType_RPC +

    + +

    Undocumented

    + + + + + + +

    + SDLDebugType_APP +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Enums/SDLFrameData.html b/docs/Enums/SDLFrameData.html new file mode 100644 index 000000000..533c92136 --- /dev/null +++ b/docs/Enums/SDLFrameData.html @@ -0,0 +1,158 @@ +

    SDLFrameData Enum Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + SDLFrameData_Heartbeat +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameData_StartSession +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameData_StartSessionACK +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameData_StartSessionNACK +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameData_EndSession +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameData_EndSessionACK +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameData_EndSessionNACK +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameData_ServiceDataACK +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameData_HeartbeatACK +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameData_SingleFrame +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameData_FirstFrame +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameData_ConsecutiveLastFrame +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Enums/SDLFrameType.html b/docs/Enums/SDLFrameType.html new file mode 100644 index 000000000..420f100dc --- /dev/null +++ b/docs/Enums/SDLFrameType.html @@ -0,0 +1,62 @@ +

    SDLFrameType Enum Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + SDLFrameType_Control +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameType_Single +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameType_First +

    + +

    Undocumented

    + + + + + + +

    + SDLFrameType_Consecutive +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Enums/SDLRPCMessageType.html b/docs/Enums/SDLRPCMessageType.html new file mode 100644 index 000000000..fa9f6db54 --- /dev/null +++ b/docs/Enums/SDLRPCMessageType.html @@ -0,0 +1,50 @@ +

    SDLRPCMessageType Enum Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + SDLRPCMessageTypeRequest +

    + +

    Undocumented

    + + + + + + +

    + SDLRPCMessageTypeResponse +

    + +

    Undocumented

    + + + + + + +

    + SDLRPCMessageTypeNotification +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Enums/SDLServiceType.html b/docs/Enums/SDLServiceType.html new file mode 100644 index 000000000..569a02619 --- /dev/null +++ b/docs/Enums/SDLServiceType.html @@ -0,0 +1,74 @@ +

    SDLServiceType Enum Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + SDLServiceType_Control +

    + +

    Undocumented

    + + + + + + +

    + SDLServiceType_RPC +

    + +

    Undocumented

    + + + + + + +

    + SDLServiceType_Audio +

    + +

    Undocumented

    + + + + + + +

    + SDLServiceType_Video +

    + +

    Undocumented

    + + + + + + +

    + SDLServiceType_BulkData +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Enums/SDLStreamingAudioError.html b/docs/Enums/SDLStreamingAudioError.html new file mode 100644 index 000000000..d42fdd695 --- /dev/null +++ b/docs/Enums/SDLStreamingAudioError.html @@ -0,0 +1,26 @@ +

    SDLStreamingAudioError Enum Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + SDLStreamingAudioErrorHeadUnitNACK +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Enums/SDLStreamingVideoError.html b/docs/Enums/SDLStreamingVideoError.html new file mode 100644 index 000000000..a335c74ec --- /dev/null +++ b/docs/Enums/SDLStreamingVideoError.html @@ -0,0 +1,74 @@ +

    SDLStreamingVideoError Enum Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + SDLStreamingVideoErrorHeadUnitNACK +

    + +

    Undocumented

    + + + + + + +

    + SDLSTreamingVideoErrorInvalidOperatingSystemVersion +

    + +

    Undocumented

    + + + + + + +

    + SDLStreamingVideoErrorConfigurationCompressionSessionCreationFailure +

    + +

    Undocumented

    + + + + + + +

    + SDLStreamingVideoErrorConfigurationAllocationFailure +

    + +

    Undocumented

    + + + + + + +

    + SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Protocols.html b/docs/Protocols.html new file mode 100644 index 000000000..1d3217e1d --- /dev/null +++ b/docs/Protocols.html @@ -0,0 +1,79 @@ +

    Protocols Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The following protocols are available globally.

    + + +
    +

    + SDLDebugToolConsole +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLIAPSessionDelegate +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLProtocolListener +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLProxyListener +

    + +

    Undocumented

    + + See more + + + + + +

    + SDLTransportDelegate +

    + +

    Undocumented

    + + See more + + + + + +
    diff --git a/docs/Protocols/SDLDebugToolConsole.html b/docs/Protocols/SDLDebugToolConsole.html new file mode 100644 index 000000000..68d41057f --- /dev/null +++ b/docs/Protocols/SDLDebugToolConsole.html @@ -0,0 +1,26 @@ +

    SDLDebugToolConsole Protocol Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -logInfo: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Protocols/SDLIAPSessionDelegate.html b/docs/Protocols/SDLIAPSessionDelegate.html new file mode 100644 index 000000000..7b59db0d2 --- /dev/null +++ b/docs/Protocols/SDLIAPSessionDelegate.html @@ -0,0 +1,38 @@ +

    SDLIAPSessionDelegate Protocol Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -onSessionInitializationCompleteForSession: +

    + +

    Undocumented

    + + + + + + +

    + -onSessionStreamsEnded: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Protocols/SDLProtocolListener.html b/docs/Protocols/SDLProtocolListener.html new file mode 100644 index 000000000..68eaa9be7 --- /dev/null +++ b/docs/Protocols/SDLProtocolListener.html @@ -0,0 +1,134 @@ +

    SDLProtocolListener Protocol Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -handleProtocolStartSessionACK:sessionID:version: +

    + +

    Undocumented

    + + + + + + +

    + -handleProtocolStartSessionNACK: +

    + +

    Undocumented

    + + + + + + +

    + -handleProtocolEndSessionACK: +

    + +

    Undocumented

    + + + + + + +

    + -handleProtocolEndSessionNACK: +

    + +

    Undocumented

    + + + + + + +

    + -handleHeartbeatForSession: +

    + +

    Undocumented

    + + + + + + +

    + -handleHeartbeatACK +

    + +

    Undocumented

    + + + + + + +

    + -onProtocolMessageReceived: +

    + +

    Undocumented

    + + + + + + +

    + -onProtocolOpened +

    + +

    Undocumented

    + + + + + + +

    + -onProtocolClosed +

    + +

    Undocumented

    + + + + + + +

    + -onError:exception: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Protocols/SDLProxyListener.html b/docs/Protocols/SDLProxyListener.html new file mode 100644 index 000000000..140b60285 --- /dev/null +++ b/docs/Protocols/SDLProxyListener.html @@ -0,0 +1,758 @@ +

    SDLProxyListener Protocol Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -onOnDriverDistraction: +

    + +

    Undocumented

    + + + + + + +

    + -onOnHMIStatus: +

    + +

    Undocumented

    + + + + + + +

    + -onProxyClosed +

    + +

    Undocumented

    + + + + + + +

    + -onProxyOpened +

    + +

    Undocumented

    + + + + + + +

    + -onAddCommandResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onAddSubMenuResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onAlertManeuverResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onAlertResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onChangeRegistrationResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onCreateInteractionChoiceSetResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onDeleteCommandResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onDeleteFileResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onDeleteInteractionChoiceSetResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onDeleteSubMenuResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onDiagnosticMessageResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onDialNumberResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onEncodedSyncPDataResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onEndAudioPassThruResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onError: +

    + +

    Undocumented

    + + + + + + +

    + -onGenericResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onGetDTCsResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onGetVehicleDataResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onListFilesResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onReceivedLockScreenIcon: +

    + +

    Undocumented

    + + + + + + +

    + -onOnAppInterfaceUnregistered: +

    + +

    Undocumented

    + + + + + + +

    + -onOnAudioPassThru: +

    + +

    Undocumented

    + + + + + + +

    + -onOnButtonEvent: +

    + +

    Undocumented

    + + + + + + +

    + -onOnButtonPress: +

    + +

    Undocumented

    + + + + + + +

    + -onOnCommand: +

    + +

    Undocumented

    + + + + + + +

    + -onOnEncodedSyncPData: +

    + +

    Undocumented

    + + + + + + +

    + -onOnHashChange: +

    + +

    Undocumented

    + + + + + + +

    + -onOnLanguageChange: +

    + +

    Undocumented

    + + + + + + +

    + -onOnLockScreenNotification: +

    + +

    Undocumented

    + + + + + + +

    + -onOnPermissionsChange: +

    + +

    Undocumented

    + + + + + + +

    + -onOnSyncPData: +

    + +

    Undocumented

    + + + + + + +

    + -onOnSystemRequest: +

    + +

    Undocumented

    + + + + + + +

    + -onOnTBTClientState: +

    + +

    Undocumented

    + + + + + + +

    + -onOnTouchEvent: +

    + +

    Undocumented

    + + + + + + +

    + -onOnVehicleData: +

    + +

    Undocumented

    + + + + + + +

    + -onPerformAudioPassThruResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onPerformInteractionResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onPutFileResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onReadDIDResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onRegisterAppInterfaceResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onResetGlobalPropertiesResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onScrollableMessageResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onSendLocationResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onSetAppIconResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onSetDisplayLayoutResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onSetGlobalPropertiesResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onSetMediaClockTimerResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onShowConstantTBTResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onShowResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onSliderResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onSpeakResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onSubscribeButtonResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onSubscribeVehicleDataResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onSyncPDataResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onUpdateTurnListResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onUnregisterAppInterfaceResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onUnsubscribeButtonResponse: +

    + +

    Undocumented

    + + + + + + +

    + -onUnsubscribeVehicleDataResponse: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Protocols/SDLTransportDelegate.html b/docs/Protocols/SDLTransportDelegate.html new file mode 100644 index 000000000..655a4b323 --- /dev/null +++ b/docs/Protocols/SDLTransportDelegate.html @@ -0,0 +1,50 @@ +

    SDLTransportDelegate Protocol Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    Undocumented

    + + +
    +

    + -onTransportConnected +

    + +

    Undocumented

    + + + + + + +

    + -onTransportDisconnected +

    + +

    Undocumented

    + + + + + + +

    + -onDataReceived: +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/Type Definitions.html b/docs/Type Definitions.html new file mode 100644 index 000000000..fb39d1f93 --- /dev/null +++ b/docs/Type Definitions.html @@ -0,0 +1,26 @@ +

    Type Definitions Reference

    + +

    Section Contents

    + + + +

    Overview

    + +

    The following type definitions are available globally.

    + + +
    +

    + SDLStreamingStartBlock +

    + +

    Undocumented

    + + + + + + +
    diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 000000000..593bbbf8a --- /dev/null +++ b/docs/index.html @@ -0,0 +1,506 @@ +- name: Classes + sub_nav: + - name: SDLAbstractProtocol + url: Classes/SDLAbstractProtocol.html + - name: SDLAbstractTransport + url: Classes/SDLAbstractTransport.html + - name: SDLAddCommand + url: Classes/SDLAddCommand.html + - name: SDLAddCommandResponse + url: Classes/SDLAddCommandResponse.html + - name: SDLAddSubMenu + url: Classes/SDLAddSubMenu.html + - name: SDLAddSubMenuResponse + url: Classes/SDLAddSubMenuResponse.html + - name: SDLAirbagStatus + url: Classes/SDLAirbagStatus.html + - name: SDLAlert + url: Classes/SDLAlert.html + - name: SDLAlertManeuver + url: Classes/SDLAlertManeuver.html + - name: SDLAlertManeuverResponse + url: Classes/SDLAlertManeuverResponse.html + - name: SDLAlertResponse + url: Classes/SDLAlertResponse.html + - name: SDLAmbientLightStatus + url: Classes/SDLAmbientLightStatus.html + - name: SDLAppHMIType + url: Classes/SDLAppHMIType.html + - name: SDLAppInterfaceUnregisteredReason + url: Classes/SDLAppInterfaceUnregisteredReason.html + - name: SDLAudioPassThruCapabilities + url: Classes/SDLAudioPassThruCapabilities.html + - name: SDLAudioStreamingState + url: Classes/SDLAudioStreamingState.html + - name: SDLAudioType + url: Classes/SDLAudioType.html + - name: SDLBeltStatus + url: Classes/SDLBeltStatus.html + - name: SDLBitsPerSample + url: Classes/SDLBitsPerSample.html + - name: SDLBodyInformation + url: Classes/SDLBodyInformation.html + - name: SDLButtonCapabilities + url: Classes/SDLButtonCapabilities.html + - name: SDLButtonEventMode + url: Classes/SDLButtonEventMode.html + - name: SDLButtonName + url: Classes/SDLButtonName.html + - name: SDLButtonPressMode + url: Classes/SDLButtonPressMode.html + - name: SDLCarModeStatus + url: Classes/SDLCarModeStatus.html + - name: SDLChangeRegistration + url: Classes/SDLChangeRegistration.html + - name: SDLChangeRegistrationResponse + url: Classes/SDLChangeRegistrationResponse.html + - name: SDLCharacterSet + url: Classes/SDLCharacterSet.html + - name: SDLChoice + url: Classes/SDLChoice.html + - name: SDLClusterModeStatus + url: Classes/SDLClusterModeStatus.html + - name: SDLCompassDirection + url: Classes/SDLCompassDirection.html + - name: SDLComponentVolumeStatus + url: Classes/SDLComponentVolumeStatus.html + - name: SDLConsoleController + url: Classes/SDLConsoleController.html + - name: SDLCreateInteractionChoiceSet + url: Classes/SDLCreateInteractionChoiceSet.html + - name: SDLCreateInteractionChoiceSetResponse + url: Classes/SDLCreateInteractionChoiceSetResponse.html + - name: SDLDIDResult + url: Classes/SDLDIDResult.html + - name: SDLDebugTool + url: Classes/SDLDebugTool.html + - name: SDLDeleteCommand + url: Classes/SDLDeleteCommand.html + - name: SDLDeleteCommandResponse + url: Classes/SDLDeleteCommandResponse.html + - name: SDLDeleteFile + url: Classes/SDLDeleteFile.html + - name: SDLDeleteFileResponse + url: Classes/SDLDeleteFileResponse.html + - name: SDLDeleteInteractionChoiceSet + url: Classes/SDLDeleteInteractionChoiceSet.html + - name: SDLDeleteInteractionChoiceSetResponse + url: Classes/SDLDeleteInteractionChoiceSetResponse.html + - name: SDLDeleteSubMenu + url: Classes/SDLDeleteSubMenu.html + - name: SDLDeleteSubMenuResponse + url: Classes/SDLDeleteSubMenuResponse.html + - name: SDLDeviceInfo + url: Classes/SDLDeviceInfo.html + - name: SDLDeviceLevelStatus + url: Classes/SDLDeviceLevelStatus.html + - name: SDLDeviceStatus + url: Classes/SDLDeviceStatus.html + - name: SDLDiagnosticMessage + url: Classes/SDLDiagnosticMessage.html + - name: SDLDiagnosticMessageResponse + url: Classes/SDLDiagnosticMessageResponse.html + - name: SDLDialNumber + url: Classes/SDLDialNumber.html + - name: SDLDialNumberResponse + url: Classes/SDLDialNumberResponse.html + - name: SDLDimension + url: Classes/SDLDimension.html + - name: SDLDisplayCapabilities + url: Classes/SDLDisplayCapabilities.html + - name: SDLDisplayType + url: Classes/SDLDisplayType.html + - name: SDLDriverDistractionState + url: Classes/SDLDriverDistractionState.html + - name: SDLECallConfirmationStatus + url: Classes/SDLECallConfirmationStatus.html + - name: SDLECallInfo + url: Classes/SDLECallInfo.html + - name: SDLEmergencyEvent + url: Classes/SDLEmergencyEvent.html + - name: SDLEmergencyEventType + url: Classes/SDLEmergencyEventType.html + - name: SDLEncodedSyncPData + url: Classes/SDLEncodedSyncPData.html + - name: SDLEncodedSyncPDataResponse + url: Classes/SDLEncodedSyncPDataResponse.html + - name: SDLEndAudioPassThru + url: Classes/SDLEndAudioPassThru.html + - name: SDLEndAudioPassThruResponse + url: Classes/SDLEndAudioPassThruResponse.html + - name: SDLEnum + url: Classes/SDLEnum.html + - name: SDLFileType + url: Classes/SDLFileType.html + - name: SDLFuelCutoffStatus + url: Classes/SDLFuelCutoffStatus.html + - name: SDLGPSData + url: Classes/SDLGPSData.html + - name: SDLGenericResponse + url: Classes/SDLGenericResponse.html + - name: SDLGetDTCs + url: Classes/SDLGetDTCs.html + - name: SDLGetDTCsResponse + url: Classes/SDLGetDTCsResponse.html + - name: SDLGetVehicleData + url: Classes/SDLGetVehicleData.html + - name: SDLGetVehicleDataResponse + url: Classes/SDLGetVehicleDataResponse.html + - name: SDLGlobalProperty + url: Classes/SDLGlobalProperty.html + - name: SDLHMICapabilities + url: Classes/SDLHMICapabilities.html + - name: SDLHMILevel + url: Classes/SDLHMILevel.html + - name: SDLHMIPermissions + url: Classes/SDLHMIPermissions.html + - name: SDLHMIZoneCapabilities + url: Classes/SDLHMIZoneCapabilities.html + - name: SDLHeadLampStatus + url: Classes/SDLHeadLampStatus.html + - name: SDLIAPTransport + url: Classes/SDLIAPTransport.html + - name: SDLIgnitionStableStatus + url: Classes/SDLIgnitionStableStatus.html + - name: SDLIgnitionStatus + url: Classes/SDLIgnitionStatus.html + - name: SDLImage + url: Classes/SDLImage.html + - name: SDLImageField + url: Classes/SDLImageField.html + - name: SDLImageFieldName + url: Classes/SDLImageFieldName.html + - name: SDLImageResolution + url: Classes/SDLImageResolution.html + - name: SDLImageType + url: Classes/SDLImageType.html + - name: SDLInteractionMode + url: Classes/SDLInteractionMode.html + - name: SDLJingle + url: Classes/SDLJingle.html + - name: SDLKeyboardEvent + url: Classes/SDLKeyboardEvent.html + - name: SDLKeyboardLayout + url: Classes/SDLKeyboardLayout.html + - name: SDLKeyboardProperties + url: Classes/SDLKeyboardProperties.html + - name: SDLKeypressMode + url: Classes/SDLKeypressMode.html + - name: SDLLanguage + url: Classes/SDLLanguage.html + - name: SDLLayoutMode + url: Classes/SDLLayoutMode.html + - name: SDLListFiles + url: Classes/SDLListFiles.html + - name: SDLListFilesResponse + url: Classes/SDLListFilesResponse.html + - name: SDLLockScreenStatus + url: Classes/SDLLockScreenStatus.html + - name: SDLMaintenanceModeStatus + url: Classes/SDLMaintenanceModeStatus.html + - name: SDLMediaClockFormat + url: Classes/SDLMediaClockFormat.html + - name: SDLMenuParams + url: Classes/SDLMenuParams.html + - name: SDLMyKey + url: Classes/SDLMyKey.html + - name: SDLOnAppInterfaceUnregistered + url: Classes/SDLOnAppInterfaceUnregistered.html + - name: SDLOnAudioPassThru + url: Classes/SDLOnAudioPassThru.html + - name: SDLOnButtonEvent + url: Classes/SDLOnButtonEvent.html + - name: SDLOnButtonPress + url: Classes/SDLOnButtonPress.html + - name: SDLOnCommand + url: Classes/SDLOnCommand.html + - name: SDLOnDriverDistraction + url: Classes/SDLOnDriverDistraction.html + - name: SDLOnEncodedSyncPData + url: Classes/SDLOnEncodedSyncPData.html + - name: SDLOnHMIStatus + url: Classes/SDLOnHMIStatus.html + - name: SDLOnHashChange + url: Classes/SDLOnHashChange.html + - name: SDLOnKeyboardInput + url: Classes/SDLOnKeyboardInput.html + - name: SDLOnLanguageChange + url: Classes/SDLOnLanguageChange.html + - name: SDLOnLockScreenStatus + url: Classes/SDLOnLockScreenStatus.html + - name: SDLOnPermissionsChange + url: Classes/SDLOnPermissionsChange.html + - name: SDLOnSyncPData + url: Classes/SDLOnSyncPData.html + - name: SDLOnSystemRequest + url: Classes/SDLOnSystemRequest.html + - name: SDLOnTBTClientState + url: Classes/SDLOnTBTClientState.html + - name: SDLOnTouchEvent + url: Classes/SDLOnTouchEvent.html + - name: SDLOnVehicleData + url: Classes/SDLOnVehicleData.html + - name: SDLPRNDL + url: Classes/SDLPRNDL.html + - name: SDLParameterPermissions + url: Classes/SDLParameterPermissions.html + - name: SDLPerformAudioPassThru + url: Classes/SDLPerformAudioPassThru.html + - name: SDLPerformAudioPassThruResponse + url: Classes/SDLPerformAudioPassThruResponse.html + - name: SDLPerformInteraction + url: Classes/SDLPerformInteraction.html + - name: SDLPerformInteractionResponse + url: Classes/SDLPerformInteractionResponse.html + - name: SDLPermissionItem + url: Classes/SDLPermissionItem.html + - name: SDLPermissionStatus + url: Classes/SDLPermissionStatus.html + - name: SDLPowerModeQualificationStatus + url: Classes/SDLPowerModeQualificationStatus.html + - name: SDLPowerModeStatus + url: Classes/SDLPowerModeStatus.html + - name: SDLPredefinedLayout + url: Classes/SDLPredefinedLayout.html + - name: SDLPrerecordedSpeech + url: Classes/SDLPrerecordedSpeech.html + - name: SDLPresetBankCapabilities + url: Classes/SDLPresetBankCapabilities.html + - name: SDLPrimaryAudioSource + url: Classes/SDLPrimaryAudioSource.html + - name: SDLProtocol + url: Classes/SDLProtocol.html + - name: SDLProtocolHeader + url: Classes/SDLProtocolHeader.html + - name: SDLProtocolMessage + url: Classes/SDLProtocolMessage.html + - name: SDLProxy + url: Classes/SDLProxy.html + - name: SDLProxyFactory + url: Classes/SDLProxyFactory.html + - name: SDLPutFile + url: Classes/SDLPutFile.html + - name: SDLPutFileResponse + url: Classes/SDLPutFileResponse.html + - name: SDLRPCMessage + url: Classes/SDLRPCMessage.html + - name: SDLRPCNotification + url: Classes/SDLRPCNotification.html + - name: SDLRPCRequest + url: Classes/SDLRPCRequest.html + - name: SDLRPCRequestFactory + url: Classes/SDLRPCRequestFactory.html + - name: SDLRPCResponse + url: Classes/SDLRPCResponse.html + - name: SDLRPCStruct + url: Classes/SDLRPCStruct.html + - name: SDLReadDID + url: Classes/SDLReadDID.html + - name: SDLReadDIDResponse + url: Classes/SDLReadDIDResponse.html + - name: SDLRegisterAppInterface + url: Classes/SDLRegisterAppInterface.html + - name: SDLRegisterAppInterfaceResponse + url: Classes/SDLRegisterAppInterfaceResponse.html + - name: SDLRequestType + url: Classes/SDLRequestType.html + - name: SDLResetGlobalProperties + url: Classes/SDLResetGlobalProperties.html + - name: SDLResetGlobalPropertiesResponse + url: Classes/SDLResetGlobalPropertiesResponse.html + - name: SDLResult + url: Classes/SDLResult.html + - name: SDLSamplingRate + url: Classes/SDLSamplingRate.html + - name: SDLScreenParams + url: Classes/SDLScreenParams.html + - name: SDLScrollableMessage + url: Classes/SDLScrollableMessage.html + - name: SDLScrollableMessageResponse + url: Classes/SDLScrollableMessageResponse.html + - name: SDLSendLocation + url: Classes/SDLSendLocation.html + - name: SDLSendLocationResponse + url: Classes/SDLSendLocationResponse.html + - name: SDLSetAppIcon + url: Classes/SDLSetAppIcon.html + - name: SDLSetAppIconResponse + url: Classes/SDLSetAppIconResponse.html + - name: SDLSetDisplayLayout + url: Classes/SDLSetDisplayLayout.html + - name: SDLSetDisplayLayoutResponse + url: Classes/SDLSetDisplayLayoutResponse.html + - name: SDLSetGlobalProperties + url: Classes/SDLSetGlobalProperties.html + - name: SDLSetGlobalPropertiesResponse + url: Classes/SDLSetGlobalPropertiesResponse.html + - name: SDLSetMediaClockTimer + url: Classes/SDLSetMediaClockTimer.html + - name: SDLSetMediaClockTimerResponse + url: Classes/SDLSetMediaClockTimerResponse.html + - name: SDLShow + url: Classes/SDLShow.html + - name: SDLShowConstantTBT + url: Classes/SDLShowConstantTBT.html + - name: SDLShowConstantTBTResponse + url: Classes/SDLShowConstantTBTResponse.html + - name: SDLShowResponse + url: Classes/SDLShowResponse.html + - name: SDLSingleTireStatus + url: Classes/SDLSingleTireStatus.html + - name: SDLSiphonServer + url: Classes/SDLSiphonServer.html + - name: SDLSlider + url: Classes/SDLSlider.html + - name: SDLSliderResponse + url: Classes/SDLSliderResponse.html + - name: SDLSoftButton + url: Classes/SDLSoftButton.html + - name: SDLSoftButtonCapabilities + url: Classes/SDLSoftButtonCapabilities.html + - name: SDLSoftButtonType + url: Classes/SDLSoftButtonType.html + - name: SDLSpeak + url: Classes/SDLSpeak.html + - name: SDLSpeakResponse + url: Classes/SDLSpeakResponse.html + - name: SDLSpeechCapabilities + url: Classes/SDLSpeechCapabilities.html + - name: SDLStartTime + url: Classes/SDLStartTime.html + - name: SDLStreamingMediaManager + url: Classes/SDLStreamingMediaManager.html + - name: SDLSubscribeButton + url: Classes/SDLSubscribeButton.html + - name: SDLSubscribeButtonResponse + url: Classes/SDLSubscribeButtonResponse.html + - name: SDLSubscribeVehicleData + url: Classes/SDLSubscribeVehicleData.html + - name: SDLSubscribeVehicleDataResponse + url: Classes/SDLSubscribeVehicleDataResponse.html + - name: SDLSyncMsgVersion + url: Classes/SDLSyncMsgVersion.html + - name: SDLSyncPData + url: Classes/SDLSyncPData.html + - name: SDLSyncPDataResponse + url: Classes/SDLSyncPDataResponse.html + - name: SDLSystemAction + url: Classes/SDLSystemAction.html + - name: SDLSystemContext + url: Classes/SDLSystemContext.html + - name: SDLTBTState + url: Classes/SDLTBTState.html + - name: SDLTCPTransport + url: Classes/SDLTCPTransport.html + - name: SDLTTSChunk + url: Classes/SDLTTSChunk.html + - name: SDLTTSChunkFactory + url: Classes/SDLTTSChunkFactory.html + - name: SDLTextAlignment + url: Classes/SDLTextAlignment.html + - name: SDLTextField + url: Classes/SDLTextField.html + - name: SDLTextFieldName + url: Classes/SDLTextFieldName.html + - name: SDLTimerMode + url: Classes/SDLTimerMode.html + - name: SDLTireStatus + url: Classes/SDLTireStatus.html + - name: SDLTouchCoord + url: Classes/SDLTouchCoord.html + - name: SDLTouchEvent + url: Classes/SDLTouchEvent.html + - name: SDLTouchEventCapabilities + url: Classes/SDLTouchEventCapabilities.html + - name: SDLTouchType + url: Classes/SDLTouchType.html + - name: SDLTriggerSource + url: Classes/SDLTriggerSource.html + - name: SDLTurn + url: Classes/SDLTurn.html + - name: SDLUnregisterAppInterface + url: Classes/SDLUnregisterAppInterface.html + - name: SDLUnregisterAppInterfaceResponse + url: Classes/SDLUnregisterAppInterfaceResponse.html + - name: SDLUnsubscribeButton + url: Classes/SDLUnsubscribeButton.html + - name: SDLUnsubscribeButtonResponse + url: Classes/SDLUnsubscribeButtonResponse.html + - name: SDLUnsubscribeVehicleData + url: Classes/SDLUnsubscribeVehicleData.html + - name: SDLUnsubscribeVehicleDataResponse + url: Classes/SDLUnsubscribeVehicleDataResponse.html + - name: SDLUpdateMode + url: Classes/SDLUpdateMode.html + - name: SDLUpdateTurnList + url: Classes/SDLUpdateTurnList.html + - name: SDLUpdateTurnListResponse + url: Classes/SDLUpdateTurnListResponse.html + - name: SDLVRCapabilities + url: Classes/SDLVRCapabilities.html + - name: SDLVRHelpItem + url: Classes/SDLVRHelpItem.html + - name: SDLVehicleDataActiveStatus + url: Classes/SDLVehicleDataActiveStatus.html + - name: SDLVehicleDataEventStatus + url: Classes/SDLVehicleDataEventStatus.html + - name: SDLVehicleDataNotificationStatus + url: Classes/SDLVehicleDataNotificationStatus.html + - name: SDLVehicleDataResult + url: Classes/SDLVehicleDataResult.html + - name: SDLVehicleDataResultCode + url: Classes/SDLVehicleDataResultCode.html + - name: SDLVehicleDataStatus + url: Classes/SDLVehicleDataStatus.html + - name: SDLVehicleDataType + url: Classes/SDLVehicleDataType.html + - name: SDLVehicleType + url: Classes/SDLVehicleType.html + - name: SDLWarningLightStatus + url: Classes/SDLWarningLightStatus.html + - name: SDLWiperStatus + url: Classes/SDLWiperStatus.html +- name: Constants + sub_nav: + - name: SDLErrorDomainStreamingMediaAudio + url: Constants.html#/c:@SDLErrorDomainStreamingMediaAudio + - name: SDLErrorDomainStreamingMediaVideo + url: Constants.html#/c:@SDLErrorDomainStreamingMediaVideo + - name: SmartDeviceLinkVersionNumber + url: Constants.html#/c:@SmartDeviceLinkVersionNumber + - name: SmartDeviceLinkVersionString + url: Constants.html#/c:@SmartDeviceLinkVersionString +- name: Enums + sub_nav: + - name: SDLDebugOutput + url: Enums/SDLDebugOutput.html + - name: SDLDebugType + url: Enums/SDLDebugType.html + - name: SDLFrameData + url: Enums/SDLFrameData.html + - name: SDLFrameType + url: Enums/SDLFrameType.html + - name: SDLRPCMessageType + url: Enums/SDLRPCMessageType.html + - name: SDLServiceType + url: Enums/SDLServiceType.html + - name: SDLStreamingAudioError + url: Enums/SDLStreamingAudioError.html + - name: SDLStreamingVideoError + url: Enums/SDLStreamingVideoError.html +- name: Protocols + sub_nav: + - name: SDLDebugToolConsole + url: Protocols/SDLDebugToolConsole.html + - name: SDLIAPSessionDelegate + url: Protocols/SDLIAPSessionDelegate.html + - name: SDLProtocolListener + url: Protocols/SDLProtocolListener.html + - name: SDLProxyListener + url: Protocols/SDLProxyListener.html + - name: SDLTransportDelegate + url: Protocols/SDLTransportDelegate.html +- name: Type Definitions + sub_nav: + - name: SDLStreamingStartBlock + url: Type Definitions.html#/c:SDLStreamingMediaManager.h@T@SDLStreamingStartBlock diff --git a/docs/undocumented.json b/docs/undocumented.json new file mode 100644 index 000000000..c1ac0ae2f --- /dev/null +++ b/docs/undocumented.json @@ -0,0 +1 @@ +{"warnings":[{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":12,"symbol":"SDLAbstractProtocol","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":14,"symbol":"debugConsoleGroupName","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":15,"symbol":"transport","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":16,"symbol":"protocolDelegateTable","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":19,"symbol":"-sendStartSessionWithType:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":20,"symbol":"-sendEndSessionWithType:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":21,"symbol":"-sendRPC:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":22,"symbol":"-sendRPCRequest:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":23,"symbol":"-sendHeartbeat","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":24,"symbol":"-sendRawDataStream:withServiceType:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":25,"symbol":"-sendRawData:withServiceType:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":28,"symbol":"-handleBytesFromTransport:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h","line":29,"symbol":"-dispose","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.h","line":7,"symbol":"SDLAbstractTransport","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.h","line":9,"symbol":"delegate","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.h","line":10,"symbol":"debugConsoleGroupName","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.h","line":12,"symbol":"-connect","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.h","line":13,"symbol":"-disconnect","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.h","line":14,"symbol":"-sendData:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.h","line":15,"symbol":"-dispose","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractTransport.h","line":16,"symbol":"-retryDelay","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommandResponse.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommandResponse.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenuResponse.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddSubMenuResponse.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h","line":9,"symbol":"SDLAirbagStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h","line":12,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h","line":13,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h","line":15,"symbol":"driverAirbagDeployed","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h","line":16,"symbol":"driverSideAirbagDeployed","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h","line":17,"symbol":"driverCurtainAirbagDeployed","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h","line":18,"symbol":"passengerAirbagDeployed","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h","line":19,"symbol":"passengerCurtainAirbagDeployed","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h","line":20,"symbol":"driverKneeAirbagDeployed","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h","line":21,"symbol":"passengerSideAirbagDeployed","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h","line":22,"symbol":"passengerKneeAirbagDeployed","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuver.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuver.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuver.h","line":16,"symbol":"ttsChunks","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuver.h","line":17,"symbol":"softButtons","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuverResponse.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertManeuverResponse.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertResponse.h","line":14,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertResponse.h","line":15,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAlertResponse.h","line":17,"symbol":"tryAgainTime","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h","line":14,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h","line":15,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h","line":17,"symbol":"+NIGHT","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h","line":18,"symbol":"+TWILIGHT_1","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h","line":19,"symbol":"+TWILIGHT_2","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h","line":20,"symbol":"+TWILIGHT_3","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h","line":21,"symbol":"+TWILIGHT_4","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h","line":22,"symbol":"+DAY","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h","line":23,"symbol":"+UNKNOWN","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAmbientLightStatus.h","line":24,"symbol":"+INVALID","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLAppHMIType.h","line":80,"symbol":"+BACKGROUND_PROCESS","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":9,"symbol":"SDLBeltStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":12,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":13,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":15,"symbol":"driverBeltDeployed","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":16,"symbol":"passengerBeltDeployed","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":17,"symbol":"passengerBuckleBelted","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":18,"symbol":"driverBuckleBelted","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":19,"symbol":"leftRow2BuckleBelted","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":20,"symbol":"passengerChildDetected","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":21,"symbol":"rightRow2BuckleBelted","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":22,"symbol":"middleRow2BuckleBelted","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":23,"symbol":"middleRow3BuckleBelted","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":24,"symbol":"leftRow3BuckleBelted","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":25,"symbol":"rightRow3BuckleBelted","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":26,"symbol":"leftRearInflatableBelted","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":27,"symbol":"rightRearInflatableBelted","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":28,"symbol":"middleRow1BeltDeployed","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h","line":29,"symbol":"middleRow1BuckleBelted","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonName.h","line":148,"symbol":"+CUSTOM_BUTTON","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonName.h","line":150,"symbol":"+SEARCH","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLCarModeStatus.h","line":13,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLCarModeStatus.h","line":15,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistrationResponse.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistrationResponse.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLCharacterSet.h","line":31,"symbol":"+TYPE2SET","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLCharacterSet.h","line":33,"symbol":"+TYPE5SET","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLCharacterSet.h","line":35,"symbol":"+CID1SET","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLCharacterSet.h","line":37,"symbol":"+CID2SET","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.h","line":11,"symbol":"SDLClusterModeStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.h","line":14,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.h","line":15,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.h","line":17,"symbol":"powerModeActive","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.h","line":18,"symbol":"powerModeQualificationStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.h","line":19,"symbol":"carModeStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.h","line":20,"symbol":"powerModeStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.h","line":10,"symbol":"SDLConsoleController","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.h","line":11,"symbol":"messageList","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.h","line":12,"symbol":"atBottom","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.h","line":13,"symbol":"dateFormatter","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.h","line":16,"symbol":"messageList","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.h","line":18,"symbol":"-initWithTableView:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.h","line":16,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLCreateInteractionChoiceSetResponse.h","line":17,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.h","line":9,"symbol":"SDLDIDResult","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.h","line":12,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.h","line":13,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.h","line":15,"symbol":"resultCode","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.h","line":16,"symbol":"didLocation","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.h","line":17,"symbol":"data","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":11,"symbol":"SDLDebugType","symbol_kind":"sourcekitten.source.lang.objc.decl.typedef","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":11,"symbol":"SDLDebugType","symbol_kind":"sourcekitten.source.lang.objc.decl.enum","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":12,"symbol":"SDLDebugType_Debug","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":13,"symbol":"SDLDebugType_Transport_iAP","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":14,"symbol":"SDLDebugType_Transport_TCP","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":15,"symbol":"SDLDebugType_Protocol","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":16,"symbol":"SDLDebugType_RPC","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":17,"symbol":"SDLDebugType_APP","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":20,"symbol":"SDLDebugOutput","symbol_kind":"sourcekitten.source.lang.objc.decl.typedef","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":20,"symbol":"SDLDebugOutput","symbol_kind":"sourcekitten.source.lang.objc.decl.enum","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":21,"symbol":"SDLDebugOutput_All","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":22,"symbol":"SDLDebugOutput_DeviceConsole","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":23,"symbol":"SDLDebugOutput_DebugToolConsole","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":24,"symbol":"SDLDebugOutput_File","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":28,"symbol":"SDLDebugTool","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":31,"symbol":"+addConsole:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":32,"symbol":"+addConsole:toGroup:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":33,"symbol":"+removeConsole:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":34,"symbol":"+removeConsole:fromGroup:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":35,"symbol":"+logInfo:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":36,"symbol":"+logInfo:withType:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":37,"symbol":"+logInfo:withType:toOutput:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":38,"symbol":"+logInfo:andBinaryData:withType:toOutput:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":39,"symbol":"+logInfo:withType:toOutput:toGroup:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":41,"symbol":"+enableDebugToLogFile","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":42,"symbol":"+disableDebugToLogFile","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":43,"symbol":"+writeToLogFile:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.h","line":45,"symbol":"+stringForDebugType:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugToolConsole.h","line":7,"symbol":"SDLDebugToolConsole","symbol_kind":"sourcekitten.source.lang.objc.decl.protocol","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugToolConsole.h","line":10,"symbol":"-logInfo:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommandResponse.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteCommandResponse.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFileResponse.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFileResponse.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteFileResponse.h","line":18,"symbol":"spaceAvailable","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteInteractionChoiceSetResponse.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenuResponse.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeleteSubMenuResponse.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h","line":7,"symbol":"SDLDeviceInfo","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h","line":10,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h","line":13,"symbol":"hardware","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h","line":14,"symbol":"firmwareRev","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h","line":15,"symbol":"os","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h","line":16,"symbol":"osVersion","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h","line":17,"symbol":"carrier","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceInfo.h","line":18,"symbol":"maxNumberRFCOMMPorts","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessage.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessage.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessageResponse.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessageResponse.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDiagnosticMessageResponse.h","line":16,"symbol":"messageDataResult","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumber.h","line":14,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumber.h","line":15,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumberResponse.h","line":14,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDialNumberResponse.h","line":15,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.h","line":38,"symbol":"+TYPE2","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.h","line":40,"symbol":"+TYPE5","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.h","line":49,"symbol":"+GEN2_8_DMA","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.h","line":51,"symbol":"+GEN2_6_DMA","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.h","line":53,"symbol":"+MFD3","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.h","line":55,"symbol":"+MFD4","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.h","line":57,"symbol":"+MFD5","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayType.h","line":59,"symbol":"+GEN3_8_INCH","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallConfirmationStatus.h","line":14,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallConfirmationStatus.h","line":15,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.h","line":10,"symbol":"SDLECallInfo","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.h","line":16,"symbol":"eCallNotificationStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.h","line":17,"symbol":"auxECallNotificationStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.h","line":18,"symbol":"eCallConfirmationStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h","line":11,"symbol":"SDLEmergencyEvent","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h","line":14,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h","line":15,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h","line":17,"symbol":"emergencyEventType","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h","line":18,"symbol":"fuelCutoffStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h","line":19,"symbol":"rolloverEvent","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h","line":20,"symbol":"maximumChangeVelocity","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h","line":21,"symbol":"multipleEvents","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEventType.h","line":15,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEventType.h","line":16,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPData.h","line":7,"symbol":"SDLEncodedSyncPData","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPData.h","line":10,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPData.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPData.h","line":13,"symbol":"data","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPDataResponse.h","line":7,"symbol":"SDLEncodedSyncPDataResponse","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPDataResponse.h","line":10,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEncodedSyncPDataResponse.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThruResponse.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEndAudioPassThruResponse.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.h","line":8,"symbol":"SDLEnum","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.h","line":9,"symbol":"value","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.h","line":12,"symbol":"-initWithValue:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.h","line":14,"symbol":"-isEqualToEnum:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLEnum.h","line":16,"symbol":"value","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGenericResponse.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGenericResponse.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCsResponse.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCsResponse.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCsResponse.h","line":18,"symbol":"ecuHeader","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetDTCsResponse.h","line":19,"symbol":"dtc","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.h","line":134,"symbol":"eCallInfo","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.h","line":135,"symbol":"airbagStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.h","line":136,"symbol":"emergencyEvent","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.h","line":137,"symbol":"clusterModeStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleData.h","line":138,"symbol":"myKey","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.h","line":144,"symbol":"eCallInfo","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.h","line":145,"symbol":"airbagStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.h","line":146,"symbol":"emergencyEvent","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.h","line":147,"symbol":"clusterModeStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.h","line":148,"symbol":"myKey","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.h","line":40,"symbol":"+VRHELPTITLE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.h","line":42,"symbol":"+VRHELPITEMS","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.h","line":44,"symbol":"+MENUNAME","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.h","line":46,"symbol":"+MENUICON","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLGlobalProperty.h","line":48,"symbol":"+KEYBOARDPROPERTIES","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMICapabilities.h","line":7,"symbol":"SDLHMICapabilities","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMICapabilities.h","line":9,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLHMICapabilities.h","line":10,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.h","line":32,"symbol":"ambientLightSensorStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSessionDelegate.h","line":8,"symbol":"SDLIAPSessionDelegate","symbol_kind":"sourcekitten.source.lang.objc.decl.protocol","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSessionDelegate.h","line":10,"symbol":"-onSessionInitializationCompleteForSession:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPSessionDelegate.h","line":11,"symbol":"-onSessionStreamsEnded:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPTransport.h","line":10,"symbol":"SDLIAPTransport","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPTransport.h","line":12,"symbol":"controlSession","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLIAPTransport.h","line":13,"symbol":"session","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLIgnitionStableStatus.h","line":40,"symbol":"+MISSING_FROM_TRANSMITTER","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.h","line":10,"symbol":"SDLImageField","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.h","line":16,"symbol":"name","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.h","line":17,"symbol":"imageTypeSupported","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.h","line":18,"symbol":"imageResolution","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageFieldName.h","line":16,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageFieldName.h","line":17,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.h","line":7,"symbol":"SDLImageResolution","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.h","line":10,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.h","line":13,"symbol":"resolutionWidth","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.h","line":14,"symbol":"resolutionHeight","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.h","line":7,"symbol":"SDLJingle","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.h","line":10,"symbol":"+NEGATIVE_JINGLE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.h","line":11,"symbol":"+POSITIVE_JINGLE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.h","line":12,"symbol":"+LISTEN_JINGLE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.h","line":13,"symbol":"+INITIAL_JINGLE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLJingle.h","line":14,"symbol":"+HELP_JINGLE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardEvent.h","line":15,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardEvent.h","line":16,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardLayout.h","line":15,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardLayout.h","line":16,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h","line":11,"symbol":"SDLKeyboardProperties","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h","line":14,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h","line":15,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h","line":17,"symbol":"language","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h","line":18,"symbol":"keyboardLayout","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h","line":19,"symbol":"keypressMode","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h","line":20,"symbol":"limitedCharacterList","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h","line":21,"symbol":"autoCompleteText","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeypressMode.h","line":17,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeypressMode.h","line":18,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLLanguage.h","line":33,"symbol":"+EN_US","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLLayoutMode.h","line":15,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLLayoutMode.h","line":16,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFilesResponse.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFilesResponse.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFilesResponse.h","line":18,"symbol":"filenames","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLListFilesResponse.h","line":19,"symbol":"spaceAvailable","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenStatus.h","line":9,"symbol":"SDLLockScreenStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenStatus.h","line":10,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenStatus.h","line":11,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.h","line":9,"symbol":"SDLMyKey","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.h","line":12,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.h","line":13,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.h","line":15,"symbol":"e911Override","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.h","line":7,"symbol":"SDLOnEncodedSyncPData","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.h","line":10,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.h","line":13,"symbol":"data","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.h","line":14,"symbol":"URL","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnEncodedSyncPData.h","line":15,"symbol":"Timeout","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHashChange.h","line":7,"symbol":"SDLOnHashChange","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHashChange.h","line":10,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHashChange.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHashChange.h","line":13,"symbol":"hashID","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.h","line":9,"symbol":"SDLOnKeyboardInput","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.h","line":12,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.h","line":13,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.h","line":15,"symbol":"event","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.h","line":16,"symbol":"data","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.h","line":22,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.h","line":23,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.h","line":7,"symbol":"SDLOnSyncPData","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.h","line":10,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.h","line":13,"symbol":"URL","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSyncPData.h","line":14,"symbol":"Timeout","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h","line":10,"symbol":"SDLOnSystemRequest","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h","line":16,"symbol":"requestType","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h","line":17,"symbol":"url","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h","line":18,"symbol":"timeout","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h","line":19,"symbol":"fileType","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h","line":20,"symbol":"offset","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h","line":21,"symbol":"length","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.h","line":9,"symbol":"SDLOnTBTClientState","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.h","line":12,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.h","line":13,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.h","line":15,"symbol":"state","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.h","line":9,"symbol":"SDLOnTouchEvent","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.h","line":12,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.h","line":13,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.h","line":15,"symbol":"type","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.h","line":16,"symbol":"event","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.h","line":143,"symbol":"eCallInfo","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.h","line":144,"symbol":"airbagStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.h","line":145,"symbol":"emergencyEvent","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.h","line":146,"symbol":"clusterModeStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.h","line":147,"symbol":"myKey","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.h","line":83,"symbol":"interactionLayout","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.h","line":10,"symbol":"SDLPermissionItem","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.h","line":16,"symbol":"rpcName","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.h","line":17,"symbol":"hmiPermissions","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.h","line":18,"symbol":"parameterPermissions","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.h","line":7,"symbol":"SDLPowerModeQualificationStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.h","line":10,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.h","line":11,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.h","line":13,"symbol":"+POWER_MODE_UNDEFINED","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.h","line":14,"symbol":"+POWER_MODE_EVALUATION_IN_PROGRESS","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.h","line":15,"symbol":"+NOT_DEFINED","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeQualificationStatus.h","line":16,"symbol":"+POWER_MODE_OK","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h","line":7,"symbol":"SDLPowerModeStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h","line":10,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h","line":11,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h","line":13,"symbol":"+KEY_OUT","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h","line":14,"symbol":"+KEY_RECENTLY_OUT","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h","line":15,"symbol":"+KEY_APPROVED_0","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h","line":16,"symbol":"+POST_ACCESORY_0","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h","line":17,"symbol":"+ACCESORY_1","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h","line":18,"symbol":"+POST_IGNITION_1","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h","line":19,"symbol":"+IGNITION_ON_2","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h","line":20,"symbol":"+RUNNING_2","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPowerModeStatus.h","line":21,"symbol":"+CRANK_3","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":7,"symbol":"SDLPredefinedLayout","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":10,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":11,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":13,"symbol":"+DEFAULT","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":14,"symbol":"+MEDIA","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":15,"symbol":"+NON_MEDIA","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":16,"symbol":"+ONSCREEN_PRESETS","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":17,"symbol":"+NAV_FULLSCREEN_MAP","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":18,"symbol":"+NAV_LIST","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":19,"symbol":"+NAV_KEYBOARD","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":20,"symbol":"+GRAPHIC_WITH_TEXT","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":21,"symbol":"+TEXT_WITH_GRAPHIC","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":22,"symbol":"+TILES_ONLY","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":23,"symbol":"+TEXTBUTTONS_ONLY","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":24,"symbol":"+GRAPHIC_WITH_TILES","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":25,"symbol":"+TILES_WITH_GRAPHIC","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":26,"symbol":"+GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":27,"symbol":"+TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":28,"symbol":"+GRAPHIC_WITH_TEXTBUTTONS","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":29,"symbol":"+TEXTBUTTONS_WITH_GRAPHIC","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":30,"symbol":"+LARGE_GRAPHIC_WITH_SOFTBUTTONS","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":31,"symbol":"+DOUBLE_GRAPHIC_WITH_SOFTBUTTONS","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPredefinedLayout.h","line":32,"symbol":"+LARGE_GRAPHIC_ONLY","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.h","line":7,"symbol":"SDLPrerecordedSpeech","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.h","line":10,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.h","line":11,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.h","line":13,"symbol":"+HELP_JINGLE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.h","line":14,"symbol":"+INITIAL_JINGLE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.h","line":15,"symbol":"+LISTEN_JINGLE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.h","line":16,"symbol":"+POSITIVE_JINGLE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPrerecordedSpeech.h","line":17,"symbol":"+NEGATIVE_JINGLE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h","line":9,"symbol":"SDLProtocol","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h","line":12,"symbol":"-sendStartSessionWithType:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h","line":13,"symbol":"-sendEndSessionWithType:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h","line":14,"symbol":"-sendRPC:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h","line":15,"symbol":"-sendRPCRequest:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h","line":16,"symbol":"-sendRawData:withServiceType:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h","line":19,"symbol":"-handleBytesFromTransport:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":7,"symbol":"SDLFrameType","symbol_kind":"sourcekitten.source.lang.objc.decl.typedef","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":7,"symbol":"SDLFrameType","symbol_kind":"sourcekitten.source.lang.objc.decl.enum","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":8,"symbol":"SDLFrameType_Control","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":9,"symbol":"SDLFrameType_Single","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":10,"symbol":"SDLFrameType_First","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":11,"symbol":"SDLFrameType_Consecutive","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":14,"symbol":"SDLServiceType","symbol_kind":"sourcekitten.source.lang.objc.decl.enum","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":15,"symbol":"SDLServiceType_Control","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":16,"symbol":"SDLServiceType_RPC","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":17,"symbol":"SDLServiceType_Audio","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":18,"symbol":"SDLServiceType_Video","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":19,"symbol":"SDLServiceType_BulkData","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":14,"symbol":"SDLServiceType","symbol_kind":"sourcekitten.source.lang.objc.decl.typedef","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":22,"symbol":"SDLFrameData","symbol_kind":"sourcekitten.source.lang.objc.decl.typedef","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":22,"symbol":"SDLFrameData","symbol_kind":"sourcekitten.source.lang.objc.decl.enum","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":23,"symbol":"SDLFrameData_Heartbeat","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":24,"symbol":"SDLFrameData_StartSession","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":25,"symbol":"SDLFrameData_StartSessionACK","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":26,"symbol":"SDLFrameData_StartSessionNACK","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":27,"symbol":"SDLFrameData_EndSession","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":28,"symbol":"SDLFrameData_EndSessionACK","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":29,"symbol":"SDLFrameData_EndSessionNACK","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":30,"symbol":"SDLFrameData_ServiceDataACK","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":31,"symbol":"SDLFrameData_HeartbeatACK","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":33,"symbol":"SDLFrameData_SingleFrame","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":35,"symbol":"SDLFrameData_FirstFrame","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":37,"symbol":"SDLFrameData_ConsecutiveLastFrame","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":41,"symbol":"SDLProtocolHeader","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":42,"symbol":"_version","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":43,"symbol":"_size","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":46,"symbol":"version","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":47,"symbol":"size","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":48,"symbol":"compressed","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":49,"symbol":"frameType","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":50,"symbol":"serviceType","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":51,"symbol":"frameData","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":52,"symbol":"sessionID","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":53,"symbol":"bytesInPayload","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":55,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":56,"symbol":"-data","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":57,"symbol":"-parse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":58,"symbol":"-description","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolHeader.h","line":59,"symbol":"+headerForVersion:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h","line":9,"symbol":"SDLProtocolListener","symbol_kind":"sourcekitten.source.lang.objc.decl.protocol","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h","line":12,"symbol":"-handleProtocolStartSessionACK:sessionID:version:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h","line":13,"symbol":"-handleProtocolStartSessionNACK:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h","line":14,"symbol":"-handleProtocolEndSessionACK:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h","line":15,"symbol":"-handleProtocolEndSessionNACK:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h","line":16,"symbol":"-handleHeartbeatForSession:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h","line":17,"symbol":"-handleHeartbeatACK","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h","line":18,"symbol":"-onProtocolMessageReceived:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h","line":19,"symbol":"-onProtocolOpened","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h","line":20,"symbol":"-onProtocolClosed","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolListener.h","line":21,"symbol":"-onError:exception:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h","line":8,"symbol":"SDLProtocolMessage","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h","line":10,"symbol":"header","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h","line":11,"symbol":"payload","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h","line":12,"symbol":"data","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h","line":14,"symbol":"+messageWithHeader:andPayload:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h","line":16,"symbol":"-size","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h","line":17,"symbol":"-description","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h","line":18,"symbol":"-rpcDictionary","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocolMessage.h","line":20,"symbol":"+determineVersion:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":17,"symbol":"SDLProxy","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":18,"symbol":"_version","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":19,"symbol":"_bulkSessionID","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":20,"symbol":"_isConnected","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":21,"symbol":"_alreadyDestructed","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":24,"symbol":"protocol","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":25,"symbol":"transport","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":26,"symbol":"proxyListeners","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":27,"symbol":"startSessionTimer","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":28,"symbol":"debugConsoleGroupName","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":29,"symbol":"proxyVersion","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":30,"symbol":"streamingMediaManager","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":32,"symbol":"-initWithTransport:protocol:delegate:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":35,"symbol":"-dispose","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":37,"symbol":"-addDelegate:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":38,"symbol":"-removeDelegate:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":40,"symbol":"-sendRPC:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":41,"symbol":"-sendRPCRequest:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":43,"symbol":"-handleRPCDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":44,"symbol":"-handleRpcMessage:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":46,"symbol":"-handleProtocolMessage:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":48,"symbol":"+enableSiphonDebug","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.h","line":49,"symbol":"+disableSiphonDebug","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyFactory.h","line":11,"symbol":"SDLProxyFactory","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyFactory.h","line":14,"symbol":"+buildSDLProxyWithListener:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyFactory.h","line":16,"symbol":"+buildSDLProxyWithListener:tcpIPAddress:tcpPort:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":67,"symbol":"SDLProxyListener","symbol_kind":"sourcekitten.source.lang.objc.decl.protocol","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":69,"symbol":"-onOnDriverDistraction:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":70,"symbol":"-onOnHMIStatus:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":71,"symbol":"-onProxyClosed","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":72,"symbol":"-onProxyOpened","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":76,"symbol":"-onAddCommandResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":77,"symbol":"-onAddSubMenuResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":78,"symbol":"-onAlertManeuverResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":79,"symbol":"-onAlertResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":80,"symbol":"-onChangeRegistrationResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":81,"symbol":"-onCreateInteractionChoiceSetResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":82,"symbol":"-onDeleteCommandResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":83,"symbol":"-onDeleteFileResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":84,"symbol":"-onDeleteInteractionChoiceSetResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":85,"symbol":"-onDeleteSubMenuResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":86,"symbol":"-onDiagnosticMessageResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":87,"symbol":"-onDialNumberResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":88,"symbol":"-onEncodedSyncPDataResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":89,"symbol":"-onEndAudioPassThruResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":90,"symbol":"-onError:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":91,"symbol":"-onGenericResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":92,"symbol":"-onGetDTCsResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":93,"symbol":"-onGetVehicleDataResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":94,"symbol":"-onListFilesResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":95,"symbol":"-onReceivedLockScreenIcon:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":96,"symbol":"-onOnAppInterfaceUnregistered:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":97,"symbol":"-onOnAudioPassThru:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":98,"symbol":"-onOnButtonEvent:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":99,"symbol":"-onOnButtonPress:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":100,"symbol":"-onOnCommand:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":101,"symbol":"-onOnEncodedSyncPData:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":102,"symbol":"-onOnHashChange:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":103,"symbol":"-onOnLanguageChange:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":104,"symbol":"-onOnLockScreenNotification:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":105,"symbol":"-onOnPermissionsChange:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":106,"symbol":"-onOnSyncPData:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":107,"symbol":"-onOnSystemRequest:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":108,"symbol":"-onOnTBTClientState:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":109,"symbol":"-onOnTouchEvent:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":110,"symbol":"-onOnVehicleData:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":111,"symbol":"-onPerformAudioPassThruResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":112,"symbol":"-onPerformInteractionResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":113,"symbol":"-onPutFileResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":114,"symbol":"-onReadDIDResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":115,"symbol":"-onRegisterAppInterfaceResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":116,"symbol":"-onResetGlobalPropertiesResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":117,"symbol":"-onScrollableMessageResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":118,"symbol":"-onSendLocationResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":119,"symbol":"-onSetAppIconResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":120,"symbol":"-onSetDisplayLayoutResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":121,"symbol":"-onSetGlobalPropertiesResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":122,"symbol":"-onSetMediaClockTimerResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":123,"symbol":"-onShowConstantTBTResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":124,"symbol":"-onShowResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":125,"symbol":"-onSliderResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":126,"symbol":"-onSpeakResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":127,"symbol":"-onSubscribeButtonResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":128,"symbol":"-onSubscribeVehicleDataResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":129,"symbol":"-onSyncPDataResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":130,"symbol":"-onUpdateTurnListResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":131,"symbol":"-onUnregisterAppInterfaceResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":132,"symbol":"-onUnsubscribeButtonResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h","line":133,"symbol":"-onUnsubscribeVehicleDataResponse:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFileResponse.h","line":23,"symbol":"spaceAvailable","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":8,"symbol":"SDLRPCMessage","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":9,"symbol":"function","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":10,"symbol":"parameters","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":11,"symbol":"messageType","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":14,"symbol":"-initWithName:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":15,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":16,"symbol":"-getFunctionName","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":17,"symbol":"-setFunctionName:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":18,"symbol":"-getParameters:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":19,"symbol":"-setParameters:value:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":21,"symbol":"bulkData","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":22,"symbol":"name","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessage.h","line":23,"symbol":"messageType","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessageType.h","line":6,"symbol":"SDLRPCMessageType","symbol_kind":"sourcekitten.source.lang.objc.decl.typedef","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessageType.h","line":6,"symbol":"SDLRPCMessageType","symbol_kind":"sourcekitten.source.lang.objc.decl.enum","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessageType.h","line":7,"symbol":"SDLRPCMessageTypeRequest","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessageType.h","line":8,"symbol":"SDLRPCMessageTypeResponse","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCMessageType.h","line":9,"symbol":"SDLRPCMessageTypeNotification","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCNotification.h","line":7,"symbol":"SDLRPCNotification","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCNotification.h","line":10,"symbol":"-initWithName:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCNotification.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequest.h","line":7,"symbol":"SDLRPCRequest","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequest.h","line":10,"symbol":"correlationID","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":57,"symbol":"SDLRPCRequestFactory","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":61,"symbol":"+buildAddCommandWithID:menuName:parentID:position:vrCommands:iconValue:iconType:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":63,"symbol":"+buildAddCommandWithID:menuName:vrCommands:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":65,"symbol":"+buildAddCommandWithID:vrCommands:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":70,"symbol":"+buildAddSubMenuWithID:menuName:position:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":72,"symbol":"+buildAddSubMenuWithID:menuName:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":77,"symbol":"+buildAlertWithTTS:alertText1:alertText2:alertText3:playTone:duration:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":79,"symbol":"+buildAlertWithTTS:alertText1:alertText2:playTone:duration:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":81,"symbol":"+buildAlertWithTTS:playTone:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":85,"symbol":"+buildAlertWithTTSChunks:alertText1:alertText2:alertText3:playTone:duration:softButtons:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":87,"symbol":"+buildAlertWithTTSChunks:playTone:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":90,"symbol":"+buildAlertWithAlertText1:alertText2:alertText3:duration:softButtons:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":92,"symbol":"+buildAlertWithAlertText1:alertText2:alertText3:duration:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":94,"symbol":"+buildAlertWithAlertText1:alertText2:duration:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":97,"symbol":"+buildAlertManeuverwithTTSchunks:softButtons:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":99,"symbol":"+buildChangeRegistrationWithLanguage:hmiDisplayLanguage:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":101,"symbol":"+buildCreateInteractionChoiceSetWithID:choiceSet:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":103,"symbol":"+buildDeleteCommandWithID:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":105,"symbol":"+buildDeleteFileWithName:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":107,"symbol":"+buildDialNumberWithNumber:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":109,"symbol":"+buildListFilesWithCorrelationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":111,"symbol":"+buildDeleteInteractionChoiceSetWithID:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":113,"symbol":"+buildDeleteSubMenuWithID:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":115,"symbol":"+buildEndAudioPassThruWithCorrelationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":117,"symbol":"+buildGetDTCsWithECUName:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":119,"symbol":"+buildGetVehicleDataWithGPS:speed:rpm:fuelLevel:fuelLevelState:instantFuelConsumption:externalTemperature:vin:prndl:tirePressure:odometer:beltStatus:bodyInformation:deviceStatus:driverBraking:wiperStatus:headLampStatus:engineTorque:accPedalPosition:steeringWheelAngle:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":121,"symbol":"+buildPerformAudioPassThruWithInitialPrompt:audioPassThruDisplayText1:audioPassThruDisplayText2:samplingRate:maxDuration:bitsPerSample:audioType:muteAudio:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":125,"symbol":"+buildPerformInteractionWithInitialChunks:initialText:interactionChoiceSetIDList:helpChunks:timeoutChunks:interactionMode:timeout:vrHelp:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":128,"symbol":"+buildPerformInteractionWithInitialPrompt:initialText:interactionChoiceSetIDList:helpPrompt:timeoutPrompt:interactionMode:timeout:vrHelp:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":130,"symbol":"+buildPerformInteractionWithInitialPrompt:initialText:interactionChoiceSetID:vrHelp:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":132,"symbol":"+buildPerformInteractionWithInitialPrompt:initialText:interactionChoiceSetIDList:helpPrompt:timeoutPrompt:interactionMode:timeout:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":134,"symbol":"+buildPerformInteractionWithInitialPrompt:initialText:interactionChoiceSetID:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":137,"symbol":"+buildPutFileWithFileName:fileType:persistentFile:correlationId:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":138,"symbol":"+buildPutFileWithFileName:fileType:persisistentFile:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":140,"symbol":"+buildReadDIDWithECUName:didLocation:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":143,"symbol":"+buildRegisterAppInterfaceWithAppName:ttsName:vrSynonyms:isMediaApp:languageDesired:hmiDisplayLanguageDesired:appID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":145,"symbol":"+buildRegisterAppInterfaceWithAppName:isMediaApp:languageDesired:appID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":147,"symbol":"+buildRegisterAppInterfaceWithAppName:languageDesired:appID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":150,"symbol":"+buildResetGlobalPropertiesWithProperties:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":152,"symbol":"+buildSendLocationWithLongitude:latitude:locationName:locationDescription:address:phoneNumber:image:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":154,"symbol":"+buildScrollableMessage:timeout:softButtons:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":156,"symbol":"+buildSetAppIconWithFileName:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":158,"symbol":"+buildSetDisplayLayout:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":162,"symbol":"+buildSetGlobalPropertiesWithHelpText:timeoutText:vrHelpTitle:vrHelp:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":164,"symbol":"+buildSetGlobalPropertiesWithHelpText:timeoutText:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":169,"symbol":"+buildSetMediaClockTimerWithHours:minutes:seconds:updateMode:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":171,"symbol":"+buildSetMediaClockTimerWithUpdateMode:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":176,"symbol":"+buildShowWithMainField1:mainField2:mainField3:mainField4:statusBar:mediaClock:mediaTrack:alignment:graphic:softButtons:customPresets:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":178,"symbol":"+buildShowWithMainField1:mainField2:statusBar:mediaClock:mediaTrack:alignment:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":180,"symbol":"+buildShowWithMainField1:mainField2:alignment:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":185,"symbol":"+buildSliderDynamicFooterWithNumTicks:position:sliderHeader:sliderFooter:timeout:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":187,"symbol":"+buildSliderStaticFooterWithNumTicks:position:sliderHeader:sliderFooter:timeout:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":191,"symbol":"+buildSpeakWithTTSChunks:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":194,"symbol":"+buildSpeakWithTTS:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":197,"symbol":"+buildSubscribeButtonWithName:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":199,"symbol":"+buildSubscribeVehicleDataWithGPS:speed:rpm:fuelLevel:fuelLevelState:instantFuelConsumption:externalTemperature:prndl:tirePressure:odometer:beltStatus:bodyInformation:deviceStatus:driverBraking:wiperStatus:headLampStatus:engineTorque:accPedalPosition:steeringWheelAngle:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":201,"symbol":"+buildShowConstantTBTWithString:navigationText2:eta:timeToDestination:totalDistance:turnIcon:nextTurnIcon:distanceToManeuver:distanceToManeuverScale:maneuverComplete:softButtons:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":203,"symbol":"+buildUnregisterAppInterfaceWithCorrelationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":205,"symbol":"+buildUnsubscribeButtonWithName:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":207,"symbol":"+buildUnsubscribeVehicleDataWithGPS:speed:rpm:fuelLevel:fuelLevelState:instantFuelConsumption:externalTemperature:prndl:tirePressure:odometer:beltStatus:bodyInformation:deviceStatus:driverBraking:wiperStatus:headLampStatus:engineTorque:accPedalPosition:steeringWheelAngle:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h","line":209,"symbol":"+buildUpdateTurnListWithTurnList:softButtons:correlationID:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.h","line":9,"symbol":"SDLRPCResponse","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.h","line":12,"symbol":"correlationID","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.h","line":13,"symbol":"success","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.h","line":14,"symbol":"resultCode","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.h","line":15,"symbol":"info","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.h","line":7,"symbol":"SDLRPCStruct","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.h","line":8,"symbol":"store","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.h","line":12,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.h","line":14,"symbol":"-serializeAsDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDIDResponse.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDIDResponse.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLReadDIDResponse.h","line":18,"symbol":"didResult","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":7,"symbol":"SDLRequestType","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":10,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":11,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":13,"symbol":"+HTTP","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":14,"symbol":"+FILE_RESUME","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":15,"symbol":"+AUTH_REQUEST","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":16,"symbol":"+AUTH_CHALLENGE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":17,"symbol":"+AUTH_ACK","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":18,"symbol":"+PROPRIETARY","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":19,"symbol":"+QUERY_APPS","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":20,"symbol":"+LAUNCH_APP","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":21,"symbol":"+LOCK_SCREEN_ICON_URL","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":22,"symbol":"+TRAFFIC_MESSAGE_CHANNEL","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":23,"symbol":"+DRIVER_PROFILE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":24,"symbol":"+VOICE_SEARCH","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":25,"symbol":"+NAVIGATION","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":26,"symbol":"+PHONE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":27,"symbol":"+CLIMATE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":28,"symbol":"+SETTINGS","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":29,"symbol":"+VEHICLE_DIAGNOSTICS","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":30,"symbol":"+EMERGENCY","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":31,"symbol":"+MEDIA","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLRequestType.h","line":32,"symbol":"+FOTA","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLResult.h","line":46,"symbol":"+CHAR_LIMIT_EXCEEDED","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.h","line":10,"symbol":"SDLScreenParams","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.h","line":16,"symbol":"resolution","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.h","line":17,"symbol":"touchEventAvailable","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.h","line":11,"symbol":"SDLSendLocation","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocationResponse.h","line":7,"symbol":"SDLSendLocationResponse","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocationResponse.h","line":9,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocationResponse.h","line":10,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIconResponse.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetAppIconResponse.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.h","line":22,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.h","line":24,"symbol":"displayCapabilities","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.h","line":25,"symbol":"buttonCapabilities","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.h","line":26,"symbol":"softButtonCapabilities","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.h","line":27,"symbol":"presetBankCapabilities","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.h","line":92,"symbol":"menuTitle","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.h","line":93,"symbol":"menuIcon","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.h","line":94,"symbol":"keyboardProperties","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":18,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":19,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":21,"symbol":"navigationText1","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":22,"symbol":"navigationText2","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":23,"symbol":"eta","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":24,"symbol":"timeToDestination","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":25,"symbol":"totalDistance","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":26,"symbol":"turnIcon","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":27,"symbol":"nextTurnIcon","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":28,"symbol":"distanceToManeuver","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":29,"symbol":"distanceToManeuverScale","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":30,"symbol":"maneuverComplete","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h","line":31,"symbol":"softButtons","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBTResponse.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBTResponse.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h","line":7,"symbol":"SDLSiphonServer","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h","line":10,"symbol":"+enableSiphonDebug","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h","line":11,"symbol":"+disableSiphonDebug","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h","line":12,"symbol":"+_siphonRawTransportDataFromApp:msgBytesLength:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h","line":13,"symbol":"+_siphonRawTransportDataFromSDL:msgBytesLength:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h","line":14,"symbol":"+_siphonNSLogData:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h","line":15,"symbol":"+_siphonFormattedTraceData:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h","line":16,"symbol":"+_siphonIsActive","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h","line":17,"symbol":"+init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSiphonServer.h","line":18,"symbol":"+dealloc","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h","line":11,"symbol":"SDLSoftButton","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h","line":14,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h","line":15,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h","line":17,"symbol":"type","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h","line":18,"symbol":"text","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h","line":19,"symbol":"image","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h","line":20,"symbol":"isHighlighted","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h","line":21,"symbol":"softButtonID","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h","line":22,"symbol":"systemAction","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.h","line":12,"symbol":"SDLSpeechCapabilities","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.h","line":38,"symbol":"+SAPI_PHONEMES","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.h","line":40,"symbol":"+LHPLUS_PHONEMES","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.h","line":42,"symbol":"+PRE_RECORDED","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSpeechCapabilities.h","line":44,"symbol":"+SILENCE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":19,"symbol":"SDLStreamingVideoError","symbol_kind":"sourcekitten.source.lang.objc.decl.typedef","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":19,"symbol":"SDLStreamingVideoError","symbol_kind":"sourcekitten.source.lang.objc.decl.enum","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":20,"symbol":"SDLStreamingVideoErrorHeadUnitNACK","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":21,"symbol":"SDLSTreamingVideoErrorInvalidOperatingSystemVersion","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":22,"symbol":"SDLStreamingVideoErrorConfigurationCompressionSessionCreationFailure","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":23,"symbol":"SDLStreamingVideoErrorConfigurationAllocationFailure","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":24,"symbol":"SDLStreamingVideoErrorConfigurationCompressionSessionSetPropertyFailure","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":27,"symbol":"SDLStreamingAudioError","symbol_kind":"sourcekitten.source.lang.objc.decl.typedef","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":27,"symbol":"SDLStreamingAudioError","symbol_kind":"sourcekitten.source.lang.objc.decl.enum","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":28,"symbol":"SDLStreamingAudioErrorHeadUnitNACK","symbol_kind":"sourcekitten.source.lang.objc.decl.enumcase","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":31,"symbol":"SDLErrorDomainStreamingMediaVideo","symbol_kind":"sourcekitten.source.lang.objc.decl.constant","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":32,"symbol":"SDLErrorDomainStreamingMediaAudio","symbol_kind":"sourcekitten.source.lang.objc.decl.constant","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":34,"symbol":"SDLStreamingStartBlock","symbol_kind":"sourcekitten.source.lang.objc.decl.typedef","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":37,"symbol":"SDLStreamingMediaManager","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":39,"symbol":"-initWithProtocol:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":85,"symbol":"videoSessionConnected","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.h","line":86,"symbol":"audioSessionConnected","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.h","line":133,"symbol":"eCallInfo","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.h","line":134,"symbol":"airbagStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.h","line":135,"symbol":"emergencyEvent","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.h","line":136,"symbol":"clusterModeStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleData.h","line":137,"symbol":"myKey","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h","line":124,"symbol":"eCallInfo","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h","line":125,"symbol":"airbagStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h","line":126,"symbol":"emergencyEvent","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h","line":127,"symbol":"clusterModes","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h","line":128,"symbol":"myKey","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.h","line":7,"symbol":"SDLSyncPData","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.h","line":10,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPData.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPDataResponse.h","line":7,"symbol":"SDLSyncPDataResponse","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPDataResponse.h","line":10,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLSyncPDataResponse.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":7,"symbol":"SDLTBTState","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":10,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":11,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":13,"symbol":"+ROUTE_UPDATE_REQUEST","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":14,"symbol":"+ROUTE_ACCEPTED","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":15,"symbol":"+ROUTE_REFUSED","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":16,"symbol":"+ROUTE_CANCELLED","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":17,"symbol":"+ETA_REQUEST","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":18,"symbol":"+NEXT_TURN_REQUEST","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":19,"symbol":"+ROUTE_STATUS_REQUEST","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":20,"symbol":"+ROUTE_SUMMARY_REQUEST","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":21,"symbol":"+TRIP_STATUS_REQUEST","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTBTState.h","line":22,"symbol":"+ROUTE_UPDATE_REQUEST_TIMEOUT","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTCPTransport.h","line":6,"symbol":"SDLTCPTransport","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTCPTransport.h","line":7,"symbol":"socket","symbol_kind":"sourcekitten.source.lang.objc.decl.ivar","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTCPTransport.h","line":10,"symbol":"hostName","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTCPTransport.h","line":11,"symbol":"portNumber","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunkFactory.h","line":10,"symbol":"SDLTTSChunkFactory","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunkFactory.h","line":13,"symbol":"+buildTTSChunkForString:type:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunkFactory.h","line":14,"symbol":"+buildTTSChunksFromSimple:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.h","line":7,"symbol":"SDLTimerMode","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.h","line":10,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.h","line":11,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.h","line":13,"symbol":"+UP","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.h","line":14,"symbol":"+DOWN","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTimerMode.h","line":15,"symbol":"+NONE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h","line":10,"symbol":"SDLTireStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h","line":16,"symbol":"pressureTelltale","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h","line":17,"symbol":"leftFront","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h","line":18,"symbol":"rightFront","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h","line":19,"symbol":"leftRear","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h","line":20,"symbol":"rightRear","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h","line":21,"symbol":"innerLeftRear","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h","line":22,"symbol":"innerRightRear","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.h","line":7,"symbol":"SDLTouchCoord","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.h","line":10,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.h","line":13,"symbol":"x","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchCoord.h","line":14,"symbol":"y","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEvent.h","line":7,"symbol":"SDLTouchEvent","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEvent.h","line":10,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEvent.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.h","line":7,"symbol":"SDLTouchEventCapabilities","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.h","line":10,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.h","line":11,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.h","line":13,"symbol":"pressAvailable","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.h","line":14,"symbol":"multiTouchAvailable","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchEventCapabilities.h","line":15,"symbol":"doublePressAvailable","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.h","line":7,"symbol":"SDLTouchType","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.h","line":10,"symbol":"+valueOf:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.h","line":11,"symbol":"+values","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.h","line":13,"symbol":"+BEGIN","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.h","line":14,"symbol":"+MOVE","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTouchType.h","line":15,"symbol":"+END","symbol_kind":"sourcekitten.source.lang.objc.decl.method.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTransportDelegate.h","line":4,"symbol":"SDLTransportDelegate","symbol_kind":"sourcekitten.source.lang.objc.decl.protocol","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTransportDelegate.h","line":6,"symbol":"-onTransportConnected","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTransportDelegate.h","line":7,"symbol":"-onTransportDisconnected","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTransportDelegate.h","line":8,"symbol":"-onDataReceived:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.h","line":9,"symbol":"SDLTurn","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.h","line":12,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.h","line":13,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.h","line":15,"symbol":"navigationText","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.h","line":16,"symbol":"turnIcon","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.h","line":123,"symbol":"steeringWheelAngle","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.h","line":124,"symbol":"eCallInfo","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.h","line":125,"symbol":"airbagStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.h","line":126,"symbol":"emergencyEvent","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.h","line":127,"symbol":"clusterModeStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleData.h","line":128,"symbol":"myKey","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h","line":123,"symbol":"eCallInfo","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h","line":124,"symbol":"airbagStatus","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h","line":125,"symbol":"emergencyEvent","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h","line":126,"symbol":"clusterModes","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h","line":127,"symbol":"myKey","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnList.h","line":15,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnList.h","line":16,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnListResponse.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLUpdateTurnListResponse.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLVRHelpItem.h","line":9,"symbol":"SDLVRHelpItem","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLVRHelpItem.h","line":12,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLVRHelpItem.h","line":13,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLVRHelpItem.h","line":15,"symbol":"text","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLVRHelpItem.h","line":16,"symbol":"image","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLVRHelpItem.h","line":17,"symbol":"position","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.h","line":10,"symbol":"SDLVehicleDataResult","symbol_kind":"sourcekitten.source.lang.objc.decl.class","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.h","line":13,"symbol":"-init","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.h","line":14,"symbol":"-initWithDictionary:","symbol_kind":"sourcekitten.source.lang.objc.decl.method.instance","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.h","line":16,"symbol":"dataType","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.h","line":17,"symbol":"resultCode","symbol_kind":"sourcekitten.source.lang.objc.decl.property","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SmartDeviceLink.h","line":7,"symbol":"SmartDeviceLinkVersionNumber","symbol_kind":"sourcekitten.source.lang.objc.decl.constant","warning":"undocumented"},{"file":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS/SmartDeviceLink/SmartDeviceLink.h","line":10,"symbol":"SmartDeviceLinkVersionString","symbol_kind":"sourcekitten.source.lang.objc.decl.constant","warning":"undocumented"}],"source_directory":"/Users/joel/Projects/SDL/SmartDeviceLink-iOS"} \ No newline at end of file diff --git a/scripts/generate-documentation.sh b/scripts/generate-documentation.sh new file mode 100644 index 000000000..61f8d116b --- /dev/null +++ b/scripts/generate-documentation.sh @@ -0,0 +1,4 @@ +if hash jazzy 2>/dev/null; then +cd ../ +jazzy --objc --framework-root SmartDeviceLink --sdk iphonesimulator --umbrella-header SmartDeviceLink/SmartDeviceLink.h --theme theme --output docs +fi \ No newline at end of file diff --git a/theme/assets/.exist b/theme/assets/.exist new file mode 100644 index 000000000..e69de29bb diff --git a/theme/templates/doc.mustache b/theme/templates/doc.mustache new file mode 100755 index 000000000..6317beb02 --- /dev/null +++ b/theme/templates/doc.mustache @@ -0,0 +1,16 @@ +{{#hide_name}} +{{> nav}} +{{/hide_name}} +{{^hide_name}} +

    {{name}} {{kind}} Reference

    + +

    Section Contents

    + +{{> task_links}} + +

    Overview

    + +{{{overview}}} + +{{> tasks}} +{{/hide_name}} diff --git a/theme/templates/nav.mustache b/theme/templates/nav.mustache new file mode 100755 index 000000000..fe7d8cdf2 --- /dev/null +++ b/theme/templates/nav.mustache @@ -0,0 +1,8 @@ +{{#structure}} +- name: {{section}} + sub_nav: +{{#children}} + - name: {{name}} + url: {{path_to_root}}{{url}} +{{/children}} +{{/structure}} diff --git a/theme/templates/parameter.mustache b/theme/templates/parameter.mustache new file mode 100755 index 000000000..aca965950 --- /dev/null +++ b/theme/templates/parameter.mustache @@ -0,0 +1,2 @@ +
    {{name}}
    +
    {{{discussion}}}
    diff --git a/theme/templates/task.mustache b/theme/templates/task.mustache new file mode 100755 index 000000000..815a9e22a --- /dev/null +++ b/theme/templates/task.mustache @@ -0,0 +1,50 @@ +{{#items}} +

    + {{name}} + {{#default_impl_abstract}} + Default implementation + {{/default_impl_abstract}} + {{#from_protocol_extension}} + Extension method + {{/from_protocol_extension}} +

    + +{{#abstract}} +{{{abstract}}} +{{#url}} +See more +{{/url}} +{{/abstract}} + +{{#default_impl_abstract}} +

    Default Implementation

    +{{{default_impl_abstract}}} +{{/default_impl_abstract}} + +{{#declaration}} +

    {{language}}

    +{{{declaration}}} + +{{#other_language_declaration}} +

    Swift

    +{{{other_language_declaration}}} +{{/other_language_declaration}} +{{/declaration}} + + +{{#parameters.count}} +

    Parameters

    +
    + {{#parameters}} + {{> parameter}} + {{/parameters}} +
    +{{/parameters.count}} +{{#return}} +
    +

    Return Value

    + {{{return}}} +
    +{{/return}} + +{{/items}} diff --git a/theme/templates/task_link.mustache b/theme/templates/task_link.mustache new file mode 100644 index 000000000..2d91f145d --- /dev/null +++ b/theme/templates/task_link.mustache @@ -0,0 +1,3 @@ +{{#items}} +
  • {{name}}
  • +{{/items}} diff --git a/theme/templates/task_links.mustache b/theme/templates/task_links.mustache new file mode 100644 index 000000000..1ae88f4db --- /dev/null +++ b/theme/templates/task_links.mustache @@ -0,0 +1,7 @@ +{{#tasks.count}} +
      + {{#tasks}} + {{> task_link}} + {{/tasks}} +
    +{{/tasks.count}} diff --git a/theme/templates/tasks.mustache b/theme/templates/tasks.mustache new file mode 100755 index 000000000..f97bb437f --- /dev/null +++ b/theme/templates/tasks.mustache @@ -0,0 +1,7 @@ +{{#tasks.count}} +
    + {{#tasks}} + {{> task}} + {{/tasks}} +
    +{{/tasks.count}} -- cgit v1.2.1 From 03eed33fe928c614dc66f21ec32c91a53fa926a8 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Fri, 3 Jun 2016 13:54:58 -0400 Subject: Update gen documentation script --- scripts/generate-documentation.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/generate-documentation.sh b/scripts/generate-documentation.sh index 61f8d116b..1dcdeb292 100644 --- a/scripts/generate-documentation.sh +++ b/scripts/generate-documentation.sh @@ -1,3 +1,7 @@ +#!/bin/bash +set -o nounset +set -o errexit + if hash jazzy 2>/dev/null; then cd ../ jazzy --objc --framework-root SmartDeviceLink --sdk iphonesimulator --umbrella-header SmartDeviceLink/SmartDeviceLink.h --theme theme --output docs -- cgit v1.2.1 From 86ced0f294685041650ddc49417dc51432c63041 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Fri, 3 Jun 2016 14:35:30 -0400 Subject: Add clean switch to generate-documentation.sh --- scripts/generate-documentation.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-documentation.sh b/scripts/generate-documentation.sh index 1dcdeb292..f4795e7dd 100644 --- a/scripts/generate-documentation.sh +++ b/scripts/generate-documentation.sh @@ -4,5 +4,5 @@ set -o errexit if hash jazzy 2>/dev/null; then cd ../ -jazzy --objc --framework-root SmartDeviceLink --sdk iphonesimulator --umbrella-header SmartDeviceLink/SmartDeviceLink.h --theme theme --output docs +jazzy --clean --objc --framework-root SmartDeviceLink --sdk iphonesimulator --umbrella-header SmartDeviceLink/SmartDeviceLink.h --theme theme --output docs fi \ No newline at end of file -- cgit v1.2.1 From 6c331d5eecc7c5993ce724b98eda92a2e8560173 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Fri, 3 Jun 2016 15:54:46 -0400 Subject: Update for v4.1.3 --- CHANGELOG.md | 13 +++++++++++++ README.md | 4 ++-- SmartDeviceLink-iOS.podspec | 2 +- SmartDeviceLink/Info.plist | 2 +- SmartDeviceLink/SDLProxy.m | 2 +- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b87b298e2..303a38057 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +# 4.1.3 Release Notes +### Enhancements +* Fix unit tests attempting to be built against Xcode 7.1 instead of Xcode 7.3. (#413) +* Auto-upload Carthage archives on tag Travis builds. (#413) +* Move codecov.io settings to the repository in codecov.yml (#415) +* Add a Jazzy documentation generation script, add theme, and generate documentation for the SDL Developer Portal. (#417) + +### Bugfixes +* Improve video streaming by altering video encoding settings. (#410) + +### Other +* Shift project and code files into the root directory, removing the SmartDeviceLink-iOS directory. (#404) + # 4.1.2 Release Notes ### Bugfixes * Enable additional static analyzer rules for Xcode 7.3, fix an associated nullability issue. diff --git a/README.md b/README.md index 5cc55ab96..ae9bf1a94 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ See the [changelog](https://github.com/smartdevicelink/sdl_ios/blob/master/CHANG You can install this library using [Cocoapods](https://cocoapods.org/pods/SmartDeviceLink-iOS). You can get started with Cocoapods by [following their install guide](https://guides.cocoapods.org/using/getting-started.html#getting-started), and learn how to use Cocoapods to install dependencies [by following this guide](https://guides.cocoapods.org/using/using-cocoapods.html). -In your podfile, you want to add `pod 'SmartDeviceLink-iOS', '4.1.2'`. Then run `pod install` inside your terminal. With Cocoapods, we support iOS 6+. +In your podfile, you want to add `pod 'SmartDeviceLink-iOS', '~> 4.1'`. Then run `pod install` inside your terminal. With Cocoapods, we support iOS 6+. ##### Carthage @@ -187,7 +187,7 @@ self.proxy = nil; ``` #### onOnHMIStatus -When your app receives `onOnHMIStatus` it has changed HMI states on the head unit. For example, your application can be put into `HMI_FULL` meaning that it has full access to the vehicle screen. For more info on HMI Levels, [see the Cocoadoc documentation on the enum](http://cocoadocs.org/docsets/SmartDeviceLink-iOS/4.1.2/Classes/SDLHMILevel.html). +When your app receives `onOnHMIStatus` it has changed HMI states on the head unit. For example, your application can be put into `HMI_FULL` meaning that it has full access to the vehicle screen. For more info on HMI Levels, [see the Cocoadoc documentation on the enum](http://cocoadocs.org/docsets/SmartDeviceLink-iOS/4.1.3/Classes/SDLHMILevel.html). You will want to track your first HMI FULL, for instance with a boolean value. The example application has extremely basic tracking of this type in the `onOnHMIStatus` callback. diff --git a/SmartDeviceLink-iOS.podspec b/SmartDeviceLink-iOS.podspec index b7ded1227..452744484 100644 --- a/SmartDeviceLink-iOS.podspec +++ b/SmartDeviceLink-iOS.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "SmartDeviceLink-iOS" -s.version = "4.1.2" +s.version = "4.1.3" s.summary = "Connect your app with cars!" s.homepage = "https://github.com/smartdevicelink/SmartDeviceLink-iOS" s.license = { :type => "New BSD", :file => "LICENSE" } diff --git a/SmartDeviceLink/Info.plist b/SmartDeviceLink/Info.plist index 438715f90..a19ea3e84 100644 --- a/SmartDeviceLink/Info.plist +++ b/SmartDeviceLink/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 4.1.2 + 4.1.3 CFBundleSignature ???? CFBundleVersion diff --git a/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink/SDLProxy.m index 73b8399e3..2929ebc1d 100644 --- a/SmartDeviceLink/SDLProxy.m +++ b/SmartDeviceLink/SDLProxy.m @@ -45,7 +45,7 @@ typedef void (^URLSessionTaskCompletionHandler)(NSData *data, NSURLResponse *response, NSError *error); typedef void (^URLSessionDownloadTaskCompletionHandler)(NSURL *location, NSURLResponse *response, NSError *error); -NSString *const SDLProxyVersion = @"4.1.2"; +NSString *const SDLProxyVersion = @"4.1.3"; const float startSessionTime = 10.0; const float notifyProxyClosedDelay = 0.1; const int POLICIES_CORRELATION_ID = 65535; -- cgit v1.2.1 From a7100178590aea983e106392a2f7e5a8ae616cc5 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Fri, 3 Jun 2016 16:07:50 -0400 Subject: Basically just a bump to re-run tests --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ae9bf1a94..51d009d2c 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ See the [changelog](https://github.com/smartdevicelink/sdl_ios/blob/master/CHANG You can install this library using [Cocoapods](https://cocoapods.org/pods/SmartDeviceLink-iOS). You can get started with Cocoapods by [following their install guide](https://guides.cocoapods.org/using/getting-started.html#getting-started), and learn how to use Cocoapods to install dependencies [by following this guide](https://guides.cocoapods.org/using/using-cocoapods.html). -In your podfile, you want to add `pod 'SmartDeviceLink-iOS', '~> 4.1'`. Then run `pod install` inside your terminal. With Cocoapods, we support iOS 6+. +In your podfile, you want to add `pod 'SmartDeviceLink-iOS', '~> 4.1'`. Then run `pod install` inside your terminal. With Cocoapods, we support iOS 6.0+. ##### Carthage -- cgit v1.2.1 From a62b47af56362b625144c7080ecb668873e03818 Mon Sep 17 00:00:00 2001 From: Steve Peak Date: Mon, 6 Jun 2016 10:23:02 -0400 Subject: Fix branch issue for codecov comments --- codecov.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/codecov.yml b/codecov.yml index 53840b09a..cf793aca8 100644 --- a/codecov.yml +++ b/codecov.yml @@ -15,5 +15,6 @@ coverage: comment: layout: "header, diff, changes, suggestions" - branches: !hotfix* - behavior: default \ No newline at end of file + branches: + - "!hotfix*" + behavior: default -- cgit v1.2.1 From ee336e4213b787e2488c1a8d0038b923e2c279c2 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Tue, 7 Jun 2016 10:13:36 -0400 Subject: Fix another codecov.yml issue --- codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index cf793aca8..dbf6a6562 100644 --- a/codecov.yml +++ b/codecov.yml @@ -14,7 +14,7 @@ coverage: target: 80% comment: - layout: "header, diff, changes, suggestions" + layout: "header, diff, changes, uncovered" branches: - "!hotfix*" behavior: default -- cgit v1.2.1 From 5a338b8d9dc63f2ee166b3b29a82fbba58daaac5 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Tue, 7 Jun 2016 11:46:46 -0400 Subject: Fix `.xctool-args` path to project --- .xctool-args | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.xctool-args b/.xctool-args index 5366f26a8..27942e3b9 100644 --- a/.xctool-args +++ b/.xctool-args @@ -1,5 +1,5 @@ [ - "-project", "SmartDeviceLink-iOS/SmartDeviceLink-iOS.xcodeproj", + "-project", "SmartDeviceLink-iOS.xcodeproj", "-scheme", "SmartDeviceLink", "-sdk", "iphonesimulator", "ONLY_ACTIVE_ARCH=NO", -- cgit v1.2.1 From c474adbc5ad4c8a3cbc7ef9440d667ed0ee92fc7 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Wed, 8 Jun 2016 11:35:12 -0400 Subject: Add documentation coverage badge to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 51d009d2c..9e8926db5 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![License](https://img.shields.io/cocoapods/l/SmartDeviceLink-iOS.svg?style=flat)](https://cocoapods.org/pods/SmartDeviceLink-iOS) [![Build Status](https://img.shields.io/travis/smartdevicelink/sdl_ios/master.svg?style=flat)](https://travis-ci.org/smartdevicelink/sdl_ios) [![codecov](https://codecov.io/gh/smartdevicelink/sdl_ios/branch/master/graph/badge.svg)](https://codecov.io/gh/smartdevicelink/sdl_ios) +[![Documentation](https://img.shields.io/cocoapods/metrics/doc-percent/SmartDeviceLink-iOS.svg)](http://cocoadocs.org/docsets/SmartDeviceLink-iOS/) [![Slack Status](http://sdlslack.herokuapp.com/badge.svg)](http://slack.smartdevicelink.org) -- cgit v1.2.1 From 666e451604af0ae87134a7596f8131e60a70604c Mon Sep 17 00:00:00 2001 From: Corey Maylone Date: Thu, 9 Jun 2016 09:37:02 -0400 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9e8926db5..916dd1430 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Build Status](https://img.shields.io/travis/smartdevicelink/sdl_ios/master.svg?style=flat)](https://travis-ci.org/smartdevicelink/sdl_ios) [![codecov](https://codecov.io/gh/smartdevicelink/sdl_ios/branch/master/graph/badge.svg)](https://codecov.io/gh/smartdevicelink/sdl_ios) [![Documentation](https://img.shields.io/cocoapods/metrics/doc-percent/SmartDeviceLink-iOS.svg)](http://cocoadocs.org/docsets/SmartDeviceLink-iOS/) -[![Slack Status](http://sdlslack.herokuapp.com/badge.svg)](http://slack.smartdevicelink.org) +[![Slack Status](http://sdlslack.herokuapp.com/badge.svg)](http://slack.smartdevicelink.com) # SmartDeviceLink (SDL) -- cgit v1.2.1 From 675153c34cb667467c86310cd0e8ce67d3561ded Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Fri, 10 Jun 2016 22:54:17 -0400 Subject: Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 916dd1430..8e9989c41 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ -[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) + [![Version](https://img.shields.io/cocoapods/v/SmartDeviceLink-iOS.svg?style=flat)](https://cocoapods.org/pods/SmartDeviceLink-iOS) [![License](https://img.shields.io/cocoapods/l/SmartDeviceLink-iOS.svg?style=flat)](https://cocoapods.org/pods/SmartDeviceLink-iOS) [![Build Status](https://img.shields.io/travis/smartdevicelink/sdl_ios/master.svg?style=flat)](https://travis-ci.org/smartdevicelink/sdl_ios) [![codecov](https://codecov.io/gh/smartdevicelink/sdl_ios/branch/master/graph/badge.svg)](https://codecov.io/gh/smartdevicelink/sdl_ios) [![Documentation](https://img.shields.io/cocoapods/metrics/doc-percent/SmartDeviceLink-iOS.svg)](http://cocoadocs.org/docsets/SmartDeviceLink-iOS/) +[![CocoaPods Downloads](https://img.shields.io/cocoapods/dt/SmartDeviceLink-iOS.svg?maxAge=172800)](https://cocoapods.org/pods/SmartDeviceLink-iOS) +[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Slack Status](http://sdlslack.herokuapp.com/badge.svg)](http://slack.smartdevicelink.com) -- cgit v1.2.1 From 3bf1faaf7a4f14fbf592b9acff34fdf46f9c43ae Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Wed, 6 Jul 2016 11:14:27 -0400 Subject: Fix not handling the TCP disconnect case Fixes #385 --- SmartDeviceLink/SDLTCPTransport.m | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/SmartDeviceLink/SDLTCPTransport.m b/SmartDeviceLink/SDLTCPTransport.m index 81fc9c555..460b3648c 100644 --- a/SmartDeviceLink/SDLTCPTransport.m +++ b/SmartDeviceLink/SDLTCPTransport.m @@ -45,7 +45,7 @@ static void TCPCallback(CFSocketRef socket, CFSocketCallBackType type, CFDataRef - (void)connect { - [SDLDebugTool logInfo:@"Init" withType:SDLDebugType_Transport_TCP]; + [SDLDebugTool logInfo:@"TCP Transport attempt connect" withType:SDLDebugType_Transport_TCP]; int sock_fd = call_socket([self.hostName UTF8String], [self.portNumber UTF8String]); if (sock_fd < 0) { @@ -88,6 +88,8 @@ static void TCPCallback(CFSocketRef socket, CFSocketCallBackType type, CFDataRef } - (void)destructObjects { + [SDLDebugTool logInfo:@"SDLTCPTransport invalidate and dispose"]; + if (!_alreadyDestructed) { _alreadyDestructed = YES; if (socket != nil) { @@ -151,15 +153,19 @@ int call_socket(const char *hostname, const char *port) { static void TCPCallback(CFSocketRef socket, CFSocketCallBackType type, CFDataRef address, const void *data, void *info) { if (kCFSocketConnectCallBack == type) { SDLTCPTransport *transport = (__bridge SDLTCPTransport *)info; - SInt32 errorNumber = 0; - if (data) { - SInt32 *errorNumberPtr = (SInt32 *)data; - errorNumber = *errorNumberPtr; - } [transport.delegate onTransportConnected]; } else if (kCFSocketDataCallBack == type) { SDLTCPTransport *transport = (__bridge SDLTCPTransport *)info; - + + // Check if Core disconnected from us + if (CFDataGetLength((CFDataRef)data) <= 0) { + [SDLDebugTool logInfo:@"TCPCallback Got a data packet with length 0, the connection was terminated on the other side"]; + [transport.delegate onTransportDisconnected]; + + return; + } + + // Handle the data we received NSMutableString *byteStr = [NSMutableString stringWithCapacity:((int)CFDataGetLength((CFDataRef)data) * 2)]; for (int i = 0; i < (int)CFDataGetLength((CFDataRef)data); i++) { [byteStr appendFormat:@"%02X", ((Byte *)(UInt8 *)CFDataGetBytePtr((CFDataRef)data))[i]]; -- cgit v1.2.1 From 6a9b93efcf87610256fe972ed7a6581596709f20 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Wed, 6 Jul 2016 14:55:25 -0400 Subject: Update for v4.1.4 --- CHANGELOG.md | 7 +++++++ Cartfile.resolved | 6 +++--- README.md | 2 +- SmartDeviceLink-iOS.podspec | 2 +- SmartDeviceLink/Info.plist | 2 +- SmartDeviceLink/SDLProxy.m | 2 +- 6 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 303a38057..aae67c3cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 4.1.4 Release Notes +### Bug Fixes +* Fixed exception causing app to crash when SDL Core disconnects in TCP debug mode. Warning: The app may enter an undefined connection state as there is currently no retry strategy in TCP debug mode. + +### Other +* Update test frameworks + # 4.1.3 Release Notes ### Enhancements * Fix unit tests attempting to be built against Xcode 7.1 instead of Xcode 7.3. (#413) diff --git a/Cartfile.resolved b/Cartfile.resolved index b4e50e149..c5031d700 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,4 +1,4 @@ -github "Quick/Nimble" "v4.0.1" -github "AliSoftware/OHHTTPStubs" "5.0.0" +github "Quick/Nimble" "v4.1.0" +github "AliSoftware/OHHTTPStubs" "5.1.0" github "Quick/Quick" "v0.9.2" -github "erikdoe/ocmock" "v3.3" +github "erikdoe/ocmock" "v3.3.1" diff --git a/README.md b/README.md index 8e9989c41..89ae74821 100644 --- a/README.md +++ b/README.md @@ -190,7 +190,7 @@ self.proxy = nil; ``` #### onOnHMIStatus -When your app receives `onOnHMIStatus` it has changed HMI states on the head unit. For example, your application can be put into `HMI_FULL` meaning that it has full access to the vehicle screen. For more info on HMI Levels, [see the Cocoadoc documentation on the enum](http://cocoadocs.org/docsets/SmartDeviceLink-iOS/4.1.3/Classes/SDLHMILevel.html). +When your app receives `onOnHMIStatus` it has changed HMI states on the head unit. For example, your application can be put into `HMI_FULL` meaning that it has full access to the vehicle screen. For more info on HMI Levels, [see the Cocoadoc documentation on the enum](http://cocoadocs.org/docsets/SmartDeviceLink-iOS/4.1.4/Classes/SDLHMILevel.html). You will want to track your first HMI FULL, for instance with a boolean value. The example application has extremely basic tracking of this type in the `onOnHMIStatus` callback. diff --git a/SmartDeviceLink-iOS.podspec b/SmartDeviceLink-iOS.podspec index 452744484..54166011e 100644 --- a/SmartDeviceLink-iOS.podspec +++ b/SmartDeviceLink-iOS.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "SmartDeviceLink-iOS" -s.version = "4.1.3" +s.version = "4.1.4" s.summary = "Connect your app with cars!" s.homepage = "https://github.com/smartdevicelink/SmartDeviceLink-iOS" s.license = { :type => "New BSD", :file => "LICENSE" } diff --git a/SmartDeviceLink/Info.plist b/SmartDeviceLink/Info.plist index a19ea3e84..f315b0aca 100644 --- a/SmartDeviceLink/Info.plist +++ b/SmartDeviceLink/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 4.1.3 + 4.1.4 CFBundleSignature ???? CFBundleVersion diff --git a/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink/SDLProxy.m index 2929ebc1d..f14985819 100644 --- a/SmartDeviceLink/SDLProxy.m +++ b/SmartDeviceLink/SDLProxy.m @@ -45,7 +45,7 @@ typedef void (^URLSessionTaskCompletionHandler)(NSData *data, NSURLResponse *response, NSError *error); typedef void (^URLSessionDownloadTaskCompletionHandler)(NSURL *location, NSURLResponse *response, NSError *error); -NSString *const SDLProxyVersion = @"4.1.3"; +NSString *const SDLProxyVersion = @"4.1.4"; const float startSessionTime = 10.0; const float notifyProxyClosedDelay = 0.1; const int POLICIES_CORRELATION_ID = 65535; -- cgit v1.2.1 From 1182d68a78df3aa0c2c2238b240c3c9ef91835d9 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Thu, 14 Jul 2016 10:44:25 -0400 Subject: Add link to smartdevicelink.com to README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 89ae74821..6bd712d5f 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ # SmartDeviceLink (SDL) -SmartDeviceLink (SDL) is a standard set of protocols and messages that connect applications on a smartphone to a vehicle head unit. This messaging enables a consumer to interact with their application using common in-vehicle interfaces such as a touch screen display, embedded voice recognition, steering wheel controls and various vehicle knobs and buttons. There are three main components that make up the SDL ecosystem. +[SmartDeviceLink (SDL)](https://www.smartdevicelink.com) is a standard set of protocols and messages that connect applications on a smartphone to a vehicle head unit. This messaging enables a consumer to interact with their application using common in-vehicle interfaces such as a touch screen display, embedded voice recognition, steering wheel controls and various vehicle knobs and buttons. There are three main components that make up the SDL ecosystem. * The [Core](https://github.com/smartdevicelink/sdl_core) component is the software which Vehicle Manufacturers (OEMs) implement in their vehicle head units. Integrating this component into their head unit and HMI based on a set of guidelines and templates enables access to various smartphone applications. * The optional [SDL Server](https://github.com/smartdevicelink/sdl_server) can be used by Vehicle OEMs to update application policies and gather usage information for connected applications. -- cgit v1.2.1 From 11b0b078aa1ffc1696da0be7036c6bbb7ea4d08b Mon Sep 17 00:00:00 2001 From: Jason Emerick Date: Mon, 25 Jul 2016 16:03:15 -0400 Subject: add id attribute to section headers for linking --- theme/templates/task.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/templates/task.mustache b/theme/templates/task.mustache index 815a9e22a..b96dbe230 100755 --- a/theme/templates/task.mustache +++ b/theme/templates/task.mustache @@ -1,5 +1,5 @@ {{#items}} -

    +

    {{name}} {{#default_impl_abstract}} Default implementation -- cgit v1.2.1