├── docs ├── .exist └── undocumented.json ├── generator ├── __init__.py ├── test │ └── __init__.py ├── transformers │ └── __init__.py ├── requirements.txt ├── templates │ ├── structs │ │ ├── template.h.jinja2 │ │ └── template.m.jinja2 │ ├── functions │ │ └── template.h.jinja2 │ ├── SDLRPCFunctionNames.m.jinja2 │ ├── enums │ │ ├── template.m.jinja2 │ │ └── template.h.jinja2 │ ├── SDLRPCParameterNames.m.jinja2 │ └── SDLRPCParameterNames.h.jinja2 └── paths.ini ├── theme ├── assets │ └── .exist └── templates │ ├── parameter.mustache │ ├── task_link.mustache │ ├── task_links.mustache │ ├── tasks.mustache │ ├── nav.mustache │ └── doc.mustache ├── .gitattributes ├── .github └── ISSUE_TEMPLATE │ └── config.yml ├── SmartDeviceLinkTests ├── Assets │ ├── testFileJSON.json │ ├── testAudio.mp3 │ ├── testImageBMP.bmp │ ├── testImageJPG.jpg │ ├── testImagePNG.png │ ├── testImageJPEG.jpeg │ ├── testImageTIFF.tiff │ └── TestLockScreenAppIcon.png ├── SwiftSpec.swift ├── ReferenceImages_64 │ └── SDLLockScreenViewControllerSnapshotTests │ │ ├── testOnlyAppIcon@2x.png │ │ ├── testOnlyAppIcon@3x.png │ │ ├── testOnlyVehicleIcon@2x.png │ │ ├── testOnlyVehicleIcon@3x.png │ │ ├── testAppAndVehicleIcons@2x.png │ │ ├── testAppAndVehicleIcons@3x.png │ │ ├── testNoAppNoVehicleIcons@2x.png │ │ ├── testNoAppNoVehicleIcons@3x.png │ │ ├── testLightBackgroundNoAppNoVehicleIcons@2x.png │ │ └── testLightBackgroundNoAppNoVehicleIcons@3x.png ├── RPCSpecs │ ├── ResponseSpecs │ │ ├── SDLDialNumberResponseSpec.m │ │ ├── SDLSendLocationResponseSpec.m │ │ ├── SDLCreateWindowResponseSpec.m │ │ ├── SDLDeleteWindowResponseSpec.m │ │ ├── SDLSubscribeWaypointsResponseSpec.m │ │ ├── SDLUnsubscribeWaypointsResponseSpec.m │ │ ├── SDLShowResponseSpec.m │ │ ├── SDLSpeakResponseSpec.m │ │ ├── SDLGenericResponseSpec.m │ │ ├── SDLSyncPDataResponseSpec.m │ │ ├── SDLAddCommandResponseSpec.m │ │ ├── SDLAddSubMenuResponseSpec.m │ │ ├── SDLSetAppIconResponseSpec.m │ │ ├── SDLAlertManeuverResponseSpec.m │ │ ├── SDLButtonPressResponseSpec.m │ │ ├── SDLDeleteCommandResponseSpec.m │ │ ├── SDLDeleteSubMenuResponseSpec.m │ │ ├── SDLSystemRequestResponseSpec.m │ │ ├── SDLUpdateTurnListResponseSpec.m │ │ ├── SDLEncodedSyncPDataResponseSpec.m │ │ ├── SDLEndAudioPassThruResponseSpec.m │ │ ├── SDLShowConstantTBTResponseSpec.m │ │ ├── SDLSubscribeButtonResponseSpec.m │ │ ├── SDLScrollableMessageResponseSpec.m │ │ ├── SDLUnsubscribeButtonResponseSpec.m │ │ ├── SDLChangeRegistrationResponseSpec.m │ │ ├── SDLSetMediaClockTimerResponseSpec.m │ │ ├── SDLSetGlobalPropertiesResponseSpec.m │ │ ├── SDLPerformAudioPassThruResponseSpec.m │ │ ├── SDLResetGlobalPropertiesResponseSpec.m │ │ ├── SDLUnregisterAppInterfaceResponseSpec.m │ │ ├── SDLCreateInteractionChoiceSetResponseSpec.m │ │ ├── SDLDeleteInteractionChoiceSetResponseSpec.m │ │ ├── SDLShowAppMenuResponseSpec.m │ │ ├── SDLSendHapticDataResponseSpec.m │ │ └── SDLReleaseInteriorVehicleDataModuleResponseSpec.m │ ├── RequestSpecs │ │ ├── SDLSubscribeWaypointsSpec.m │ │ ├── SDLUnsubscribeWaypointsSpec.m │ │ ├── SDLListFilesSpec.m │ │ ├── SDLSyncPDataSpec.m │ │ ├── SDLEndAudioPassThruSpec.m │ │ └── SDLUnregisterAppInterfaceSpec.m │ ├── SuperclassSpecs │ │ └── SDLRPCNotificationSpec.m │ ├── NotificationSpecs │ │ └── SDLOnAudioPassThruSpec.m │ └── EnumSpecs │ │ ├── SDLMenuLayoutSpec.m │ │ ├── SDLAudioTypeSpec.m │ │ ├── SDLVideoStreamingStateSpec.m │ │ ├── SDLWindowTypeSpec.m │ │ ├── SDLVrCapabilitiesSpec.m │ │ ├── SDLWaypointTypeSpec.m │ │ ├── SDLAppCapabilityTypeSpec.m │ │ ├── SDLPredefinedWindowsSpec.m │ │ ├── SDLImageTypeSpec.m │ │ ├── SDLLightStatusSpec.m │ │ ├── SDLBitsPerSampleSpec.m │ │ ├── SDLButtonPressModeSpec.m │ │ ├── SDLDistanceUnitSpec.m │ │ ├── SDLMassageZoneSpec.m │ │ ├── SDLRadioBandSpec.m │ │ ├── SDLDimensionSpec.m │ │ ├── SDLTimerModeSpec.m │ │ ├── SDLButtonEventModeSpec.m │ │ ├── SDLHMIZoneCapabilitiesSpec.m │ │ ├── SDLTemperatureUnitSpec.m │ │ ├── SDLDeliveryModeSpec.m │ │ ├── SDLCapacityUnitSpec.m │ │ ├── SDLDirectionSpec.m │ │ ├── SDLDisplayModeSpec.m │ │ ├── SDLDriverDistractionStateSpec.m │ │ ├── SDLMassageModeSpec.m │ │ └── SDLModuleTypeSpec.m ├── DevAPISpecs │ ├── SDLFakeViewControllerPresenter.h │ └── SDLFakeStreamingManagerDataSource.h ├── TestHapticRectViewController.h ├── TestUtilities │ ├── SDLSpecUtilities.h │ └── TestMultipleRequestsConnectionManager.h ├── TestResponse.h ├── ProtocolSpecs │ └── MessageSpecs │ │ └── SDLV2ProtocolMessageSpec.m ├── LoggingSpecs │ └── TestLogTarget.h ├── TestStreamingMediaDelegate.h ├── TestMultipleFilesConnectionManager.h └── TestConnectionRequestObject.m ├── Cartfile.private ├── Cartfile.resolved ├── Example Apps ├── Shared │ ├── Images.xcassets │ │ ├── Contents.json │ │ ├── AppIcon.appiconset │ │ │ ├── Icon-60@2x.png │ │ │ ├── Icon-60@3x.png │ │ │ ├── Icon-60@2x-1.png │ │ │ ├── Icon-Small@2x.png │ │ │ ├── Icon-Small@3x.png │ │ │ ├── iTunesArtwork.png │ │ │ └── Icon-Small-40@2x.png │ │ ├── car.imageset │ │ │ ├── iconmonstr-car-1-240.png │ │ │ └── Contents.json │ │ ├── phone.imageset │ │ │ ├── iconmonstr-phone-4-240.png │ │ │ └── Contents.json │ │ ├── alert.imageset │ │ │ ├── iconmonstr-warning-7-240.png │ │ │ └── Contents.json │ │ ├── sdl_logo_green.imageset │ │ │ ├── sdl_logo_green.png │ │ │ ├── sdl_logo_green@2x.png │ │ │ ├── sdl_logo_green@3x.png │ │ │ └── Contents.json │ │ ├── choice_set.imageset │ │ │ ├── iconmonstr-menu-1-240.png │ │ │ └── Contents.json │ │ ├── remote_control.imageset │ │ │ ├── remote_control_icon.png │ │ │ └── Contents.json │ │ ├── toggle_off.imageset │ │ │ ├── iconmonstr-battery-3-240.png │ │ │ └── Contents.json │ │ ├── toggle_on.imageset │ │ │ ├── iconmonstr-battery-7-240.png │ │ │ └── Contents.json │ │ ├── microphone.imageset │ │ │ ├── iconmonstr-microphone-4-240.png │ │ │ └── Contents.json │ │ ├── speak.imageset │ │ │ ├── iconmonstr-speech-bubble-3-240.png │ │ │ └── Contents.json │ │ └── dot.radiowaves.right.imageset │ │ │ ├── dot.radiowaves.right@2x.png │ │ │ └── Contents.json │ └── dot.radiowaves.right@2x.png ├── Example Swift │ ├── SmartDeviceLink-Example-Swift-Bridging-Header.h │ └── ProxyManagerDelegate.swift └── Example ObjC │ ├── ConnectionIAPTableViewController.h │ ├── AppDelegate.h │ ├── ConnectionTCPTableViewController.h │ ├── main.m │ ├── ConnectionTabBarController.h │ ├── TextValidator.h │ ├── RPCPermissionsManager.h │ └── AudioManager.h ├── SmartDeviceLink ├── Assets │ ├── SDLAssets.xcassets │ │ ├── Contents.json │ │ ├── sdl_logo_black.imageset │ │ │ ├── sdl_logo_black.png │ │ │ ├── sdl_logo_black@2x.png │ │ │ ├── sdl_logo_black@3x.png │ │ │ └── Contents.json │ │ ├── lock_arrow_up_black.imageset │ │ │ ├── lock_arrow_up_black.png │ │ │ ├── lock_arrow_up_black@2x.png │ │ │ ├── lock_arrow_up_black@3x.png │ │ │ └── Contents.json │ │ ├── lock_arrow_down_black.imageset │ │ │ ├── lock_arrow_down_black.png │ │ │ ├── lock_arrow_down_black@2x.png │ │ │ ├── lock_arrow_down_black@3x.png │ │ │ └── Contents.json │ │ ├── lock_arrow_left_black.imageset │ │ │ ├── lock_arrow_left_black.png │ │ │ ├── lock_arrow_left_black@2x.png │ │ │ ├── lock_arrow_left_black@3x.png │ │ │ └── Contents.json │ │ └── lock_arrow_right_black.imageset │ │ │ ├── lock_arrow_right_black.png │ │ │ ├── lock_arrow_right_black@2x.png │ │ │ ├── lock_arrow_right_black@3x.png │ │ │ └── Contents.json │ ├── zh-Hans.lproj │ │ └── SDLLockScreen.strings │ ├── ja.lproj │ │ └── SDLLockScreen.strings │ ├── en.lproj │ │ └── SDLLockScreen.strings │ ├── de.lproj │ │ └── SDLLockScreen.strings │ ├── es.lproj │ │ └── SDLLockScreen.strings │ └── fr.lproj │ │ └── SDLLockScreen.strings ├── public │ ├── SDLAudioType.m │ ├── SDLVrCapabilities.m │ ├── SDLImageType.m │ ├── SDLDistanceUnit.m │ ├── SDLMassageZone.m │ ├── SDLWayPointType.m │ ├── SDLWindowType.m │ ├── SDLBitsPerSample.m │ ├── SDLButtonPressMode.m │ ├── SDLSupportedSeat.m │ ├── SDLRadioBand.m │ ├── SDLDimension.m │ ├── SDLTimerMode.m │ ├── SDLButtonEventMode.m │ ├── SDLDisplayMode.m │ ├── SDLTemperatureUnit.m │ ├── SDLProtocolConstants.m │ ├── SDLHMIZoneCapabilities.m │ ├── SDLMassageMode.m │ ├── SDLDeliveryMode.m │ ├── SDLDriverDistractionState.m │ ├── SDLSoftButtonType.m │ ├── SDLTriggerSource.m │ ├── SDLButtonPressResponse.h │ ├── SDLHMILevel.m │ ├── SDLTouchType.m │ ├── SDLTextAlignment.m │ ├── SDLShowResponse.h │ ├── SDLSpeakResponse.h │ ├── SDLSystemAction.m │ ├── SDLDefrostZone.m │ ├── SDLSubscribeWayPointsResponse.h │ ├── SDLSendLocationResponse.h │ ├── SDLUnsubscribeWayPointsResponse.h │ ├── SDLVehicleDataStatus.m │ ├── SDLDirection.m │ ├── SDLInteractionMode.m │ ├── SDLSyncPDataResponse.h │ ├── SDLAddSubMenuResponse.h │ ├── SDLSamplingRate.m │ ├── SDLSeatMemoryActionType.m │ ├── SDLSetAppIconResponse.h │ ├── SDLUnsubscribeWayPoints.h │ ├── SDLAddCommandResponse.h │ ├── SDLCreateWindowResponse.h │ ├── SDLUpdateTurnListResponse.h │ ├── SDLKeypressMode.m │ ├── SDLMenuLayout.m │ ├── SDLRadioState.m │ ├── SDLSystemRequestResponse.h │ ├── SDLAudioType.h │ ├── SDLDeleteSubMenuResponse.h │ ├── SDLFuelCutoffStatus.m │ ├── SDLAlertManeuverResponse.h │ ├── SDLDeleteCommandResponse.h │ ├── SDLDialNumberResponse.h │ ├── SDLRPCNotification.h │ ├── SDLShowConstantTBTResponse.h │ ├── SDLSubscribeButtonResponse.h │ ├── SDLCarModeStatus.m │ ├── SDLChangeRegistrationResponse.h │ ├── SDLUnsubscribeButtonResponse.h │ ├── SDLAudioStreamingState.m │ ├── SDLEndAudioPassThruResponse.h │ ├── SDLSetMediaClockTimerResponse.h │ ├── SDLEncodedSyncPDataResponse.h │ ├── SDLKeyboardLayout.m │ ├── SDLScrollableMessageResponse.h │ ├── SDLSetGlobalPropertiesResponse.h │ ├── SDLUnregisterAppInterfaceResponse.h │ ├── SDLVentilationMode.m │ ├── SDLPerformAudioPassThruResponse.h │ ├── SDLResetGlobalPropertiesResponse.h │ ├── SDLMediaServiceManifest.m │ ├── SDLUpdateMode.m │ ├── SDLOnAudioPassThru.h │ ├── SDLWarningLightStatus.m │ ├── SDLCreateInteractionChoiceSetResponse.h │ ├── SDLGenericResponse.h │ ├── SDLSubscribeWayPoints.h │ ├── SDLSyncPData.h │ ├── SDLIgnitionStableStatus.m │ ├── SDLVideoStreamingState.m │ ├── SDLDistanceUnit.h │ ├── SDLLayoutMode.m │ ├── SDLListFiles.h │ ├── SDLMediaServiceManifest.h │ ├── SDLPermissionStatus.m │ ├── SDLSystemContext.m │ ├── SDLWayPointType.h │ ├── SDLAppServiceType.m │ ├── SDLLightStatus.m │ ├── SDLModuleType.m │ ├── SDLTurnSignal.m │ ├── SDLMediaType.m │ ├── SDLAudioStreamingIndicator.m │ ├── SDLSendHapticDataResponse.h │ ├── SDLDeleteInteractionChoiceSetResponse.h │ ├── SDLEnum.m │ ├── SDLShowAppMenuResponse.h │ ├── SDLMaintenanceModeStatus.m │ ├── SDLRPCRequest.h │ ├── SDLSliderResponse.h │ ├── SDLVrCapabilities.h │ ├── SDLDeleteWindowResponse.h │ ├── SDLHybridAppPreference.m │ ├── SDLBitsPerSample.h │ ├── SDLSetCloudAppPropertiesResponse.h │ ├── SDLUnpublishAppServiceResponse.h │ ├── SDLCloseApplicationResponse.h │ ├── SDLMassageCushion.m │ ├── SDLMyKey.h │ ├── SDLRPCMessageType.m │ ├── SDLIgnitionStatus.m │ ├── SDLAlertResponse.h │ ├── SDLOnTBTClientState.h │ ├── SDLPrerecordedSpeech.m │ ├── SDLTimerMode.h │ ├── SDLVideoStreamingCodec.m │ ├── SDLFileType.m │ ├── SDLMassageZone.h │ ├── SDLDirection.h │ ├── SDLReadDIDResponse.h │ ├── SDLDeleteFileResponse.h │ ├── SDLOnSyncPData.h │ ├── SDLVehicleDataEventStatus.m │ ├── SDLVideoStreamingProtocol.m │ ├── SDLOnInteriorVehicleData.h │ ├── SDLReleaseInteriorVehicleDataModuleResponse.h │ ├── SDLSetInteriorVehicleDataResponse.h │ ├── SDLDiagnosticMessageResponse.h │ ├── SDLEndAudioPassThru.h │ ├── SDLFuelType.m │ ├── SDLVehicleDataNotificationStatus.m │ ├── SDLSeatLocation.h │ ├── SDLCancelInteractionResponse.h │ ├── SDLGetWayPointsResponse.h │ ├── SDLPresetBankCapabilities.h │ ├── SDLTemperatureUnit.h │ ├── SDLButtonEventMode.h │ ├── SDLMassageMode.h │ ├── SDLDimension.h │ ├── SDLSoftButtonType.h │ ├── SDLAlertAudioData.m │ ├── SDLRadioBand.h │ ├── SDLDisplayMode.h │ ├── SDLPowerModeQualificationStatus.m │ ├── SDLEnum.h │ ├── SDLHMIZoneCapabilities.h │ ├── SDLImageType.h │ ├── SDLSpeechCapabilities.m │ ├── SDLWindowType.h │ ├── SDLButtonPressResponse.m │ ├── SDLDeviceLevelStatus.m │ ├── SDLPutFileResponse.h │ ├── SDLComponentVolumeStatus.m │ ├── SDLListFiles.m │ ├── SDLCreateWindowResponse.m │ ├── SDLLogTargetFile.h │ ├── SDLScrollableMessageResponse.m │ ├── SDLShowResponse.m │ ├── SDLTouchCoord.h │ ├── SDLOnWayPointChange.h │ ├── SDLSpeakResponse.m │ ├── SDLVehicleDataStatus.h │ ├── SDLCloseApplication.h │ ├── SDLDriverDistractionState.h │ ├── SDLMediaClockFormat.m │ ├── SDLAddCommandResponse.m │ ├── SDLAddSubMenuResponse.m │ ├── SDLOnKeyboardInput.h │ ├── SDLTextAlignment.h │ ├── SDLGenericResponse.m │ ├── SDLOnAudioPassThru.m │ ├── SDLSystemAction.h │ ├── SDLTPMS.m │ ├── SDLDeliveryMode.h │ ├── SDLEmergencyEventType.m │ ├── SDLEndAudioPassThru.m │ ├── SDLKeyboardEvent.m │ └── SDLSetAppIconResponse.m └── private │ ├── EAAccessory+SDLProtocols.h │ ├── EAAccessoryManager+SDLProtocols.h │ ├── SDLHexUtility.h │ ├── SDLV1ProtocolHeader.h │ ├── SDLMenuManagerPrivateConstants.h │ ├── NSMutableArray+Safe.h │ ├── SDLMenuManagerPrivateConstants.m │ ├── NSBundle+SDLBundle.h │ ├── SDLLogFileModuleMap.h │ ├── SDLMacros.h │ ├── NSArray+Extensions.h │ ├── SDLRAWH264Packetizer.h │ ├── SDLIAPTransport.h │ ├── SDLIAPConstants.h │ ├── SDLV1ProtocolMessage.h │ ├── NSMutableArray+Safe.m │ ├── SDLAsynchronousOperation.h │ ├── SDLMacros.m │ ├── SDLTextField+ScreenManagerExtensions.h │ ├── SDLV2ProtocolMessage.h │ ├── SDLVideoEncoderDelegate.h │ ├── SDLImageField+ScreenManagerExtensions.h │ ├── SDLV2ProtocolHeader.h │ ├── SDLControlFramePayloadType.h │ ├── SDLTransportType.h │ ├── SDLIAPDataSessionDelegate.h │ ├── EAAccessory+SDLProtocols.m │ ├── SDLIAPConstants.m │ ├── SDLLockScreenConstants.h │ ├── SDLObjectWithPriority.h │ ├── SDLEncryptionManagerConstants.m │ ├── SDLIAPControlSessionDelegate.h │ └── SDLTransportDelegate.h ├── SmartDeviceLink-iOS.xcodeproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── .gitmodules ├── scripts └── generate-documentation.sh └── codecov.yml /docs/.exist: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generator/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /theme/assets/.exist: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generator/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | CHANGELOG.md merge=union -------------------------------------------------------------------------------- /generator/transformers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | -------------------------------------------------------------------------------- /generator/requirements.txt: -------------------------------------------------------------------------------- 1 | xmlschema 2 | Jinja2 3 | coverage 4 | pathlib2 5 | flake8 -------------------------------------------------------------------------------- /theme/templates/parameter.mustache: -------------------------------------------------------------------------------- 1 |
{{name}}
2 |
{{{discussion}}}
3 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/Assets/testFileJSON.json: -------------------------------------------------------------------------------- 1 | { 2 | "test": "hello", 3 | "test2": 2 4 | } -------------------------------------------------------------------------------- /Cartfile.private: -------------------------------------------------------------------------------- 1 | github "Quick/Quick" ~> 5.0 2 | github "Quick/Nimble" ~> 10.0 3 | github "erikdoe/ocmock" ~> 3.7 4 | -------------------------------------------------------------------------------- /theme/templates/task_link.mustache: -------------------------------------------------------------------------------- 1 | {{#items}} 2 |
  • {{name}}
  • 3 | {{/items}} 4 | -------------------------------------------------------------------------------- /Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "Quick/Nimble" "v10.0.0" 2 | github "Quick/Quick" "v5.0.1" 3 | github "erikdoe/ocmock" "v3.9.1" 4 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /docs/undocumented.json: -------------------------------------------------------------------------------- 1 | { 2 | "warnings": [ 3 | 4 | ], 5 | "source_directory": "/Users/frankelias/Desktop/sdl-main/sdl_ios" 6 | } -------------------------------------------------------------------------------- /SmartDeviceLinkTests/Assets/testAudio.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/Assets/testAudio.mp3 -------------------------------------------------------------------------------- /SmartDeviceLinkTests/Assets/testImageBMP.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/Assets/testImageBMP.bmp -------------------------------------------------------------------------------- /SmartDeviceLinkTests/Assets/testImageJPG.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/Assets/testImageJPG.jpg -------------------------------------------------------------------------------- /SmartDeviceLinkTests/Assets/testImagePNG.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/Assets/testImagePNG.png -------------------------------------------------------------------------------- /generator/templates/structs/template.h.jinja2: -------------------------------------------------------------------------------- 1 | {#- This template creates RPC struct .h files -#} 2 | {% extends "base_struct_function.h.jinja2" %} -------------------------------------------------------------------------------- /Example Apps/Shared/dot.radiowaves.right@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/dot.radiowaves.right@2x.png -------------------------------------------------------------------------------- /SmartDeviceLinkTests/Assets/testImageJPEG.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/Assets/testImageJPEG.jpeg -------------------------------------------------------------------------------- /SmartDeviceLinkTests/Assets/testImageTIFF.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/Assets/testImageTIFF.tiff -------------------------------------------------------------------------------- /theme/templates/task_links.mustache: -------------------------------------------------------------------------------- 1 | {{#tasks.count}} 2 | 7 | {{/tasks.count}} 8 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLAudioType.m: -------------------------------------------------------------------------------- 1 | // SDLAudioType.m 2 | // 3 | 4 | #import "SDLAudioType.h" 5 | 6 | SDLAudioType const SDLAudioTypePCM = @"PCM"; 7 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/Assets/TestLockScreenAppIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/Assets/TestLockScreenAppIcon.png -------------------------------------------------------------------------------- /generator/templates/functions/template.h.jinja2: -------------------------------------------------------------------------------- 1 | {#- This template creates RPC requests, responses, and notification .h files -#} 2 | {% extends "base_struct_function.h.jinja2" %} -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/zh-Hans.lproj/SDLLockScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "Locked for your safety"; ObjectID = "2GC-iG-Bjq"; */ 3 | "2GC-iG-Bjq.text" = "出于您的安全而锁屏"; 4 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLVrCapabilities.m: -------------------------------------------------------------------------------- 1 | // SDLVRCapabilities.m 2 | // 3 | 4 | 5 | #import "SDLVrCapabilities.h" 6 | 7 | SDLVRCapabilities const SDLVRCapabilitiesText = @"TEXT"; 8 | -------------------------------------------------------------------------------- /theme/templates/tasks.mustache: -------------------------------------------------------------------------------- 1 | {{#tasks.count}} 2 |
    3 | {{#tasks}} 4 | {{> task}} 5 | {{/tasks}} 6 |
    7 | {{/tasks.count}} 8 | -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/ja.lproj/SDLLockScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "Locked for your safety"; ObjectID = "2GC-iG-Bjq"; */ 3 | "2GC-iG-Bjq.text" = "安全上の理由からロックされています"; 4 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/en.lproj/SDLLockScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "Locked for your safety"; ObjectID = "2GC-iG-Bjq"; */ 3 | "2GC-iG-Bjq.text" = "Locked for your safety"; 4 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/AppIcon.appiconset/Icon-60@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/AppIcon.appiconset/Icon-60@2x-1.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/AppIcon.appiconset/iTunesArtwork.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/AppIcon.appiconset/iTunesArtwork.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/de.lproj/SDLLockScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "Locked for your safety"; ObjectID = "2GC-iG-Bjq"; */ 3 | "2GC-iG-Bjq.text" = "Für Ihre Sicherheit gesperrt"; 4 | -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/es.lproj/SDLLockScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "Locked for your safety"; ObjectID = "2GC-iG-Bjq"; */ 3 | "2GC-iG-Bjq.text" = "Bloqueado para su seguridad"; 4 | -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/fr.lproj/SDLLockScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "Locked for your safety"; ObjectID = "2GC-iG-Bjq"; */ 3 | "2GC-iG-Bjq.text" = "Verrouillé pour votre sécurité"; 4 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/car.imageset/iconmonstr-car-1-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/car.imageset/iconmonstr-car-1-240.png -------------------------------------------------------------------------------- /theme/templates/nav.mustache: -------------------------------------------------------------------------------- 1 | {{#structure}} 2 | - name: {{section}} 3 | sub_nav: 4 | {{#children}} 5 | - name: {{name}} 6 | url: {{path_to_root}}{{url}} 7 | {{/children}} 8 | {{/structure}} 9 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/phone.imageset/iconmonstr-phone-4-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/phone.imageset/iconmonstr-phone-4-240.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/alert.imageset/iconmonstr-warning-7-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/alert.imageset/iconmonstr-warning-7-240.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/sdl_logo_green.imageset/sdl_logo_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/sdl_logo_green.imageset/sdl_logo_green.png -------------------------------------------------------------------------------- /Example Apps/Example Swift/SmartDeviceLink-Example-Swift-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | #import "AppConstants.h" 6 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/choice_set.imageset/iconmonstr-menu-1-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/choice_set.imageset/iconmonstr-menu-1-240.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/sdl_logo_green.imageset/sdl_logo_green@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/sdl_logo_green.imageset/sdl_logo_green@2x.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/sdl_logo_green.imageset/sdl_logo_green@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/sdl_logo_green.imageset/sdl_logo_green@3x.png -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLImageType.m: -------------------------------------------------------------------------------- 1 | // SDLImageType.m 2 | // 3 | 4 | 5 | #import "SDLImageType.h" 6 | 7 | SDLImageType const SDLImageTypeStatic = @"STATIC"; 8 | SDLImageType const SDLImageTypeDynamic = @"DYNAMIC"; 9 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/remote_control.imageset/remote_control_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/remote_control.imageset/remote_control_icon.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/toggle_off.imageset/iconmonstr-battery-3-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/toggle_off.imageset/iconmonstr-battery-3-240.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/toggle_on.imageset/iconmonstr-battery-7-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/toggle_on.imageset/iconmonstr-battery-7-240.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/sdl_logo_black.imageset/sdl_logo_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/sdl_logo_black.imageset/sdl_logo_black.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/microphone.imageset/iconmonstr-microphone-4-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/microphone.imageset/iconmonstr-microphone-4-240.png -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/speak.imageset/iconmonstr-speech-bubble-3-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/speak.imageset/iconmonstr-speech-bubble-3-240.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/sdl_logo_black.imageset/sdl_logo_black@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/sdl_logo_black.imageset/sdl_logo_black@2x.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/sdl_logo_black.imageset/sdl_logo_black@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/sdl_logo_black.imageset/sdl_logo_black@3x.png -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDistanceUnit.m: -------------------------------------------------------------------------------- 1 | // SDLDistanceUnit.m 2 | // 3 | 4 | #import "SDLDistanceUnit.h" 5 | 6 | SDLDistanceUnit const SDLDistanceUnitMiles = @"MILES"; 7 | SDLDistanceUnit const SDLDistanceUnitKilometers = @"KILOMETERS"; 8 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLMassageZone.m: -------------------------------------------------------------------------------- 1 | // SDLMassageZone.m 2 | // 3 | 4 | #import "SDLMassageZone.h" 5 | 6 | SDLMassageZone const SDLMassageZoneLumbar = @"LUMBAR"; 7 | SDLMassageZone const SDLMassageZoneSeatCushion = @"SEAT_CUSHION"; 8 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLWayPointType.m: -------------------------------------------------------------------------------- 1 | // SDLWayPointType.m 2 | // 3 | 4 | #import "SDLWayPointType.h" 5 | 6 | SDLWayPointType const SDLWayPointTypeAll = @"ALL"; 7 | SDLWayPointType const SDLWayPointTypeDestination = @"DESTINATION"; 8 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLWindowType.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLWindowType.m 3 | // SmartDeviceLink 4 | 5 | #import "SDLWindowType.h" 6 | 7 | SDLWindowType const SDLWindowTypeMain = @"MAIN"; 8 | SDLWindowType const SDLWindowTypeWidget = @"WIDGET"; 9 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/dot.radiowaves.right.imageset/dot.radiowaves.right@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/Example Apps/Shared/Images.xcassets/dot.radiowaves.right.imageset/dot.radiowaves.right@2x.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_up_black.imageset/lock_arrow_up_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_up_black.imageset/lock_arrow_up_black.png -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLBitsPerSample.m: -------------------------------------------------------------------------------- 1 | // SDLBitsPerSample.m 2 | // 3 | 4 | 5 | #import "SDLBitsPerSample.h" 6 | 7 | SDLBitsPerSample const SDLBitsPerSample8Bit = @"8_BIT"; 8 | SDLBitsPerSample const SDLBitsPerSample16Bit = @"16_BIT"; 9 | -------------------------------------------------------------------------------- /generator/templates/structs/template.m.jinja2: -------------------------------------------------------------------------------- 1 | {#- This template creates RPC struct .m files -#} 2 | {% extends "base_struct_function.m.jinja2" %} 3 | {% block imports %} 4 | {{super()}} 5 | {%- endblock %} 6 | {% set parameters_store = 'store' %} -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_up_black.imageset/lock_arrow_up_black@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_up_black.imageset/lock_arrow_up_black@2x.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_up_black.imageset/lock_arrow_up_black@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_up_black.imageset/lock_arrow_up_black@3x.png -------------------------------------------------------------------------------- /SmartDeviceLinkTests/SwiftSpec.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SwiftSpec.swift 3 | // SmartDeviceLinkTests 4 | // 5 | // Created by Joel Fischer on 4/19/22. 6 | // Copyright © 2022 smartdevicelink. All rights reserved. 7 | // 8 | 9 | import Quick 10 | -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_down_black.imageset/lock_arrow_down_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_down_black.imageset/lock_arrow_down_black.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_left_black.imageset/lock_arrow_left_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_left_black.imageset/lock_arrow_left_black.png -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLButtonPressMode.m: -------------------------------------------------------------------------------- 1 | // SDLButtonPressMode.m 2 | // 3 | 4 | 5 | #import "SDLButtonPressMode.h" 6 | 7 | SDLButtonPressMode const SDLButtonPressModeLong = @"LONG"; 8 | SDLButtonPressMode const SDLButtonPressModeShort = @"SHORT"; 9 | -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_down_black.imageset/lock_arrow_down_black@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_down_black.imageset/lock_arrow_down_black@2x.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_down_black.imageset/lock_arrow_down_black@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_down_black.imageset/lock_arrow_down_black@3x.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_left_black.imageset/lock_arrow_left_black@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_left_black.imageset/lock_arrow_left_black@2x.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_left_black.imageset/lock_arrow_left_black@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_left_black.imageset/lock_arrow_left_black@3x.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_right_black.imageset/lock_arrow_right_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_right_black.imageset/lock_arrow_right_black.png -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSupportedSeat.m: -------------------------------------------------------------------------------- 1 | // SDLSupportedSeat.m 2 | // 3 | 4 | #import "SDLSupportedSeat.h" 5 | 6 | SDLSupportedSeat const SDLSupportedSeatDriver = @"DRIVER"; 7 | SDLSupportedSeat const SDLSupportedSeatFrontPassenger = @"FRONT_PASSENGER"; 8 | -------------------------------------------------------------------------------- /SmartDeviceLink-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_right_black.imageset/lock_arrow_right_black@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_right_black.imageset/lock_arrow_right_black@2x.png -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_right_black.imageset/lock_arrow_right_black@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_right_black.imageset/lock_arrow_right_black@3x.png -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLRadioBand.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLRadioBand.m 3 | // 4 | 5 | #import "SDLRadioBand.h" 6 | 7 | SDLRadioBand const SDLRadioBandAM = @"AM"; 8 | SDLRadioBand const SDLRadioBandFM = @"FM"; 9 | SDLRadioBand const SDLRadioBandXM = @"XM"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testOnlyAppIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testOnlyAppIcon@2x.png -------------------------------------------------------------------------------- /SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testOnlyAppIcon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testOnlyAppIcon@3x.png -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "bson_c_lib"] 2 | path = bson_c_lib 3 | url = https://github.com/smartdevicelink/bson_c_lib.git 4 | [submodule "generator/rpc_spec"] 5 | path = generator/rpc_spec 6 | url = https://github.com/smartdevicelink/rpc_spec.git 7 | branch = master 8 | -------------------------------------------------------------------------------- /Example Apps/Example ObjC/ConnectionIAPTableViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ConnectionIAPTableViewController.h 3 | // SmartDeviceLink-iOS 4 | 5 | #import 6 | 7 | @interface ConnectionIAPTableViewController : UITableViewController 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDimension.m: -------------------------------------------------------------------------------- 1 | // SDLDimension.m 2 | // 3 | 4 | 5 | #import "SDLDimension.h" 6 | 7 | SDLDimension const SDLDimensionNoFix = @"NO_FIX"; 8 | SDLDimension const SDLDimension2D = @"2D"; 9 | SDLDimension const SDLDimension3D = @"3D"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLTimerMode.m: -------------------------------------------------------------------------------- 1 | // SDLTimerMode.m 2 | // 3 | 4 | 5 | #import "SDLTimerMode.h" 6 | 7 | SDLTimerMode const SDLTimerModeUp = @"UP"; 8 | SDLTimerMode const SDLTimerModeDown = @"DOWN"; 9 | SDLTimerMode const SDLTimerModeNone = @"NONE"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testOnlyVehicleIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testOnlyVehicleIcon@2x.png -------------------------------------------------------------------------------- /SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testOnlyVehicleIcon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testOnlyVehicleIcon@3x.png -------------------------------------------------------------------------------- /generator/paths.ini: -------------------------------------------------------------------------------- 1 | ENUM_CLASS = SDLEnum 2 | STRUCT_CLASS = SDLRPCStruct 3 | REQUEST_CLASS = SDLRPCRequest 4 | RESPONSE_CLASS = SDLRPCResponse 5 | NOTIFICATION_CLASS = SDLRPCNotification 6 | FUNCTION_NAMES = SDLRPCFunctionNames 7 | PARAMETER_NAMES = SDLRPCParameterNames -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLButtonEventMode.m: -------------------------------------------------------------------------------- 1 | // SDLButtonEventMode.m 2 | // 3 | 4 | 5 | #import "SDLButtonEventMode.h" 6 | 7 | SDLButtonEventMode const SDLButtonEventModeButtonUp = @"BUTTONUP"; 8 | SDLButtonEventMode const SDLButtonEventModeButtonDown = @"BUTTONDOWN"; 9 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDisplayMode.m: -------------------------------------------------------------------------------- 1 | // SDLDisplayMode.m 2 | // 3 | 4 | #import "SDLDisplayMode.h" 5 | 6 | SDLDisplayMode const SDLDisplayModeDay = @"DAY"; 7 | SDLDisplayMode const SDLDisplayModeNight = @"NIGHT"; 8 | SDLDisplayMode const SDLDisplayModeAuto = @"AUTO"; 9 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLTemperatureUnit.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLTemperatureUnit.m 3 | // 4 | 5 | #import "SDLTemperatureUnit.h" 6 | 7 | SDLTemperatureUnit const SDLTemperatureUnitCelsius = @"CELSIUS"; 8 | SDLTemperatureUnit const SDLTemperatureUnitFahrenheit = @"FAHRENHEIT"; 9 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLProtocolConstants.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLProtocolConstants.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 5/1/18. 6 | // Copyright © 2018 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLProtocolConstants.h" 10 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testAppAndVehicleIcons@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testAppAndVehicleIcons@2x.png -------------------------------------------------------------------------------- /SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testAppAndVehicleIcons@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testAppAndVehicleIcons@3x.png -------------------------------------------------------------------------------- /SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testNoAppNoVehicleIcons@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testNoAppNoVehicleIcons@2x.png -------------------------------------------------------------------------------- /SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testNoAppNoVehicleIcons@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testNoAppNoVehicleIcons@3x.png -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLHMIZoneCapabilities.m: -------------------------------------------------------------------------------- 1 | // SDLHMIZoneCapabilities.m 2 | // 3 | 4 | 5 | #import "SDLHMIZoneCapabilities.h" 6 | 7 | SDLHMIZoneCapabilities const SDLHMIZoneCapabilitiesFront = @"FRONT"; 8 | SDLHMIZoneCapabilities const SDLHMIZoneCapabilitiesBack = @"BACK"; 9 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLMassageMode.m: -------------------------------------------------------------------------------- 1 | // SDLMassageMode.m 2 | // 3 | 4 | #import "SDLMassageMode.h" 5 | 6 | SDLMassageMode const SDLMassageModeOff = @"OFF"; 7 | SDLMassageMode const SDLMassageModeLow = @"LOW"; 8 | SDLMassageMode const SDLMassageModeHigh = @"HIGH"; 9 | 10 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDialNumberResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDialNumberResponseSpec.m 3 | // SmartDeviceLink-iOS 4 | 5 | #import 6 | #import 7 | 8 | QuickSpecBegin(SDLDialNumberResponseSpec) 9 | 10 | QuickSpecEnd 11 | -------------------------------------------------------------------------------- /generator/templates/SDLRPCFunctionNames.m.jinja2: -------------------------------------------------------------------------------- 1 | {% include 'copyright.jinja2' %} 2 | // SDLRPCFunctionNames.m 3 | 4 | #import "SDLRPCFunctionNames.h" 5 | {% for param in params %} 6 | SDLRPCFunctionName const SDLRPCFunctionName{{ param.name }} = @"{{ param.origin }}"; 7 | {%- endfor %} 8 | -------------------------------------------------------------------------------- /Example Apps/Example ObjC/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // SmartDeviceLink-iOS 4 | 5 | #import 6 | 7 | @interface AppDelegate : UIResponder 8 | 9 | @property (strong, nonatomic) UIWindow *window; 10 | 11 | 12 | @end 13 | 14 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDeliveryMode.m: -------------------------------------------------------------------------------- 1 | // SDLDeliveryMode.h 2 | // 3 | 4 | #import "SDLDeliveryMode.h" 5 | 6 | SDLDeliveryMode const SDLDeliveryModePrompt = @"PROMPT"; 7 | SDLDeliveryMode const SDLDeliveryModeDestination = @"DESTINATION"; 8 | SDLDeliveryMode const SDLDeliveryModeQueue = @"QUEUE"; 9 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDriverDistractionState.m: -------------------------------------------------------------------------------- 1 | // SDLDriverDistractionState.m 2 | // 3 | 4 | 5 | #import "SDLDriverDistractionState.h" 6 | 7 | SDLDriverDistractionState const SDLDriverDistractionStateOn = @"DD_ON"; 8 | SDLDriverDistractionState const SDLDriverDistractionStateOff = @"DD_OFF"; 9 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSendLocationResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSendLocationResponseSpec.m 3 | // SmartDeviceLink-iOS 4 | 5 | #import 6 | #import 7 | 8 | QuickSpecBegin(SDLSendLocationResponseSpec) 9 | 10 | 11 | 12 | QuickSpecEnd 13 | -------------------------------------------------------------------------------- /scripts/generate-documentation.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -o nounset 3 | set -o errexit 4 | 5 | if hash jazzy 2>/dev/null; then 6 | cd ../ 7 | jazzy --clean --objc --framework-root SmartDeviceLink --sdk iphonesimulator --umbrella-header SmartDeviceLink/public/SmartDeviceLink.h --theme theme --output docs 8 | fi -------------------------------------------------------------------------------- /SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testLightBackgroundNoAppNoVehicleIcons@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testLightBackgroundNoAppNoVehicleIcons@2x.png -------------------------------------------------------------------------------- /SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testLightBackgroundNoAppNoVehicleIcons@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartdevicelink/sdl_ios/HEAD/SmartDeviceLinkTests/ReferenceImages_64/SDLLockScreenViewControllerSnapshotTests/testLightBackgroundNoAppNoVehicleIcons@3x.png -------------------------------------------------------------------------------- /theme/templates/doc.mustache: -------------------------------------------------------------------------------- 1 | {{#hide_name}} 2 | {{> nav}} 3 | {{/hide_name}} 4 | {{^hide_name}} 5 |

    {{name}} {{kind}} Reference

    6 | 7 |

    Section Contents

    8 | 9 | {{> task_links}} 10 | 11 |

    Overview

    12 | 13 | {{{overview}}} 14 | 15 | {{> tasks}} 16 | {{/hide_name}} 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSoftButtonType.m: -------------------------------------------------------------------------------- 1 | // SDLSoftButtonType.m 2 | // 3 | 4 | 5 | #import "SDLSoftButtonType.h" 6 | 7 | SDLSoftButtonType const SDLSoftButtonTypeText = @"TEXT"; 8 | SDLSoftButtonType const SDLSoftButtonTypeImage = @"IMAGE"; 9 | SDLSoftButtonType const SDLSoftButtonTypeBoth = @"BOTH"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLTriggerSource.m: -------------------------------------------------------------------------------- 1 | // SDLTriggerSource.m 2 | // 3 | 4 | 5 | #import "SDLTriggerSource.h" 6 | 7 | SDLTriggerSource const SDLTriggerSourceMenu = @"MENU"; 8 | SDLTriggerSource const SDLTriggerSourceVoiceRecognition = @"VR"; 9 | SDLTriggerSource const SDLTriggerSourceKeyboard = @"KEYBOARD"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLButtonPressResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLButtonPressResponse.h 3 | // 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SDLButtonPress 11 | */ 12 | @interface SDLButtonPressResponse : SDLRPCResponse 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLHMILevel.m: -------------------------------------------------------------------------------- 1 | // SDLHMILevel.m 2 | // 3 | 4 | 5 | #import "SDLHMILevel.h" 6 | 7 | SDLHMILevel const SDLHMILevelFull = @"FULL"; 8 | SDLHMILevel const SDLHMILevelLimited = @"LIMITED"; 9 | SDLHMILevel const SDLHMILevelBackground = @"BACKGROUND"; 10 | SDLHMILevel const SDLHMILevelNone = @"NONE"; 11 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLTouchType.m: -------------------------------------------------------------------------------- 1 | // SDLTouchType.m 2 | // 3 | 4 | 5 | #import "SDLTouchType.h" 6 | 7 | SDLTouchType const SDLTouchTypeBegin = @"BEGIN"; 8 | SDLTouchType const SDLTouchTypeMove = @"MOVE"; 9 | SDLTouchType const SDLTouchTypeEnd = @"END"; 10 | SDLTouchType const SDLTouchTypeCancel = @"CANCEL"; 11 | -------------------------------------------------------------------------------- /Example Apps/Example ObjC/ConnectionTCPTableViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ConnectionTCPTableViewController.h 3 | // SmartDeviceLink-iOS 4 | 5 | #import 6 | 7 | @interface ConnectionTCPTableViewController : UITableViewController 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLTextAlignment.m: -------------------------------------------------------------------------------- 1 | // SDLTextAlignment.m 2 | // 3 | 4 | 5 | #import "SDLTextAlignment.h" 6 | 7 | SDLTextAlignment const SDLTextAlignmentLeft = @"LEFT_ALIGNED"; 8 | SDLTextAlignment const SDLTextAlignmentRight = @"RIGHT_ALIGNED"; 9 | SDLTextAlignment const SDLTextAlignmentCenter = @"CENTERED"; 10 | -------------------------------------------------------------------------------- /Example Apps/Example ObjC/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SmartDeviceLink-iOS 4 | 5 | #import 6 | #import "AppDelegate.h" 7 | 8 | int main(int argc, char * argv[]) { 9 | @autoreleasepool { 10 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLShowResponse.h: -------------------------------------------------------------------------------- 1 | // SDLShowResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SDLShow 11 | 12 | Since SmartDeviceLink 1.0 13 | */ 14 | @interface SDLShowResponse : SDLRPCResponse 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLCreateWindowResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLCreateWindowResponseSpec.m 3 | // SmartDeviceLinkTests 4 | 5 | #import 6 | #import 7 | 8 | #import "SDLCreateWindowResponse.h" 9 | 10 | QuickSpecBegin(SDLCreateWindowResponseSpec) 11 | 12 | QuickSpecEnd 13 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteWindowResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDeleteWindowResponseSpec.m 3 | // SmartDeviceLinkTests 4 | 5 | #import 6 | #import 7 | 8 | #import "SDLDeleteWindowResponse.h" 9 | 10 | QuickSpecBegin(SDLDeleteWindowResponseSpec) 11 | 12 | QuickSpecEnd 13 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSpeakResponse.h: -------------------------------------------------------------------------------- 1 | // SDLSpeakResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SDLSpeak 11 | 12 | Since SmartDeviceLink 1.0 13 | */ 14 | @interface SDLSpeakResponse : SDLRPCResponse 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSystemAction.m: -------------------------------------------------------------------------------- 1 | // SDLSystemAction.m 2 | // 3 | 4 | 5 | #import "SDLSystemAction.h" 6 | 7 | SDLSystemAction const SDLSystemActionDefaultAction = @"DEFAULT_ACTION"; 8 | SDLSystemAction const SDLSystemActionStealFocus = @"STEAL_FOCUS"; 9 | SDLSystemAction const SDLSystemActionKeepContext = @"KEEP_CONTEXT"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDefrostZone.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDefrostZone.m 3 | // 4 | 5 | #import "SDLDefrostZone.h" 6 | 7 | SDLDefrostZone const SDLDefrostZoneFront = @"FRONT"; 8 | SDLDefrostZone const SDLDefrostZoneRear = @"REAR"; 9 | SDLDefrostZone const SDLDefrostZoneAll = @"ALL"; 10 | SDLDefrostZone const SDLDefrostZoneNone = @"NONE"; 11 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSubscribeWayPointsResponse.h: -------------------------------------------------------------------------------- 1 | // SDLSubscribeWaypointsResponse.h 2 | // 3 | 4 | #import "SDLRPCResponse.h" 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | /** 9 | Response to SubscribeWayPoints 10 | */ 11 | @interface SDLSubscribeWayPointsResponse : SDLRPCResponse 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeWaypointsSpec.m: -------------------------------------------------------------------------------- 1 | // SDLSubscribeWaypointsSpec.m 2 | // 3 | 4 | #import 5 | 6 | #import 7 | #import 8 | 9 | #import "SDLSubscribeWaypoints.h" 10 | 11 | QuickSpecBegin(SDLSubscribeWaypointsSpec) 12 | 13 | QuickSpecEnd 14 | -------------------------------------------------------------------------------- /SmartDeviceLink-iOS.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/EAAccessory+SDLProtocols.h: -------------------------------------------------------------------------------- 1 | // 2 | // EAAccessory+SyncProtocols.h 3 | // 4 | 5 | #import 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface EAAccessory (SDLProtocols) 10 | 11 | - (BOOL)supportsProtocol:(NSString *)protocol; 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSendLocationResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSendLocationResponse.h 3 | // SmartDeviceLink-iOS 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SDLSendLocation 11 | */ 12 | @interface SDLSendLocationResponse : SDLRPCResponse 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLUnsubscribeWayPointsResponse.h: -------------------------------------------------------------------------------- 1 | // SDLUnsubscribeWaypointsResponse.h 2 | // 3 | 4 | #import "SDLRPCResponse.h" 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | /** 9 | Response to UnsubscribeWayPoints 10 | */ 11 | @interface SDLUnsubscribeWayPointsResponse : SDLRPCResponse 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLVehicleDataStatus.m: -------------------------------------------------------------------------------- 1 | // SDLVehicleDataStatus.m 2 | // 3 | 4 | 5 | #import "SDLVehicleDataStatus.h" 6 | 7 | SDLVehicleDataStatus const SDLVehicleDataStatusNoDataExists = @"NO_DATA_EXISTS"; 8 | SDLVehicleDataStatus const SDLVehicleDataStatusOff = @"OFF"; 9 | SDLVehicleDataStatus const SDLVehicleDataStatusOn = @"ON"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeWaypointsSpec.m: -------------------------------------------------------------------------------- 1 | // SDLUnsubscribeWaypointsSpec.m 2 | // 3 | 4 | #import 5 | 6 | #import 7 | #import 8 | 9 | #import "SDLUnsubscribeWaypoints.h" 10 | 11 | QuickSpecBegin(SDLUnsubscribeWaypointsSpec) 12 | 13 | QuickSpecEnd 14 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDirection.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDirection.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 2/22/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLDirection.h" 10 | 11 | SDLDirection const SDLDirectionLeft = @"LEFT"; 12 | SDLDirection const SDLDirectionRight = @"RIGHT"; 13 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLInteractionMode.m: -------------------------------------------------------------------------------- 1 | // SDLInteractionMode.m 2 | // 3 | 4 | 5 | #import "SDLInteractionMode.h" 6 | 7 | SDLInteractionMode const SDLInteractionModeManualOnly = @"MANUAL_ONLY"; 8 | SDLInteractionMode const SDLInteractionModeVoiceRecognitionOnly = @"VR_ONLY"; 9 | SDLInteractionMode const SDLInteractionModeBoth = @"BOTH"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSyncPDataResponse.h: -------------------------------------------------------------------------------- 1 | // SDLSyncPDataResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SyncPData 11 | 12 | DEPRECATED 13 | */ 14 | __deprecated 15 | @interface SDLSyncPDataResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLAddSubMenuResponse.h: -------------------------------------------------------------------------------- 1 | // SDLAddSubMenuResponse.h 2 | 3 | 4 | #import "SDLRPCResponse.h" 5 | 6 | /** 7 | Response to `SDLAddSubMenu` 8 | 9 | Since SmartDeviceLink 1.0 10 | */ 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface SDLAddSubMenuResponse : SDLRPCResponse 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSamplingRate.m: -------------------------------------------------------------------------------- 1 | // SDLSamplingRate.m 2 | // 3 | 4 | 5 | #import "SDLSamplingRate.h" 6 | 7 | SDLSamplingRate const SDLSamplingRate8KHZ = @"8KHZ"; 8 | SDLSamplingRate const SDLSamplingRate16KHZ = @"16KHZ"; 9 | SDLSamplingRate const SDLSamplingRate22KHZ = @"22KHZ"; 10 | SDLSamplingRate const SDLSamplingRate44KHZ = @"44KHZ"; 11 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSeatMemoryActionType.m: -------------------------------------------------------------------------------- 1 | // SDLSeatMemoryActionType.m 2 | // 3 | 4 | #import "SDLSeatMemoryActionType.h" 5 | 6 | SDLSeatMemoryActionType const SDLSeatMemoryActionTypeSave = @"SAVE"; 7 | SDLSeatMemoryActionType const SDLSeatMemoryActionTypeRestore = @"RESTORE"; 8 | SDLSeatMemoryActionType const SDLSeatMemoryActionTypeNone = @"NONE"; 9 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSetAppIconResponse.h: -------------------------------------------------------------------------------- 1 | // SDLSetAppIconResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SDLSetAppIcon 11 | 12 | Since SmartDeviceLink 2.0 13 | */ 14 | @interface SDLSetAppIconResponse : SDLRPCResponse 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLUnsubscribeWayPoints.h: -------------------------------------------------------------------------------- 1 | // SDLUnsubscribeWaypoints.h 2 | // 3 | 4 | #import "SDLRPCRequest.h" 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | /** 9 | Request to unsubscribe from navigation WayPoints and Destination 10 | */ 11 | @interface SDLUnsubscribeWayPoints : SDLRPCRequest 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLAddCommandResponse.h: -------------------------------------------------------------------------------- 1 | // SDLAddCommandResponse.h 2 | 3 | 4 | #import "SDLRPCResponse.h" 5 | 6 | 7 | /** 8 | Response to `SDLAddCommand` 9 | 10 | Since SmartDeviceLink 1.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLAddCommandResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLCreateWindowResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLCreateWindowResponse.h 3 | // SmartDeviceLink 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /// Response to SDLCreateWindow 10 | /// 11 | /// @since RPC 6.0 12 | @interface SDLCreateWindowResponse : SDLRPCResponse 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLUpdateTurnListResponse.h: -------------------------------------------------------------------------------- 1 | // SDLUpdateTurnListResponse.h 2 | // 3 | 4 | #import "SDLRPCResponse.h" 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | /** 9 | Response to UpdateTurnList 10 | 11 | Since SmartDeviceLink 2.0 12 | */ 13 | @interface SDLUpdateTurnListResponse : SDLRPCResponse 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/SuperclassSpecs/SDLRPCNotificationSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLRPCNotificationSpec.m 3 | // SmartDeviceLink-iOS 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLRPCNotification.h" 12 | 13 | QuickSpecBegin(SDLRPCNotificationSpec) 14 | 15 | QuickSpecEnd -------------------------------------------------------------------------------- /generator/templates/enums/template.m.jinja2: -------------------------------------------------------------------------------- 1 | {% include 'copyright.jinja2' %} 2 | 3 | #import "{{name}}.h" 4 | {%- block body %} 5 | {% if add_typedef %} 6 | typedef SDLEnum {{name}} NS_TYPED_ENUM; 7 | {% endif -%} 8 | {%- for param in params %} 9 | {{ name }} const {{ name }}{{param.name}} = @"{{param.origin}}"; 10 | {%- endfor -%} 11 | {% endblock -%} 12 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLKeypressMode.m: -------------------------------------------------------------------------------- 1 | // SDLKeypressMode.m 2 | // 3 | 4 | 5 | #import "SDLKeypressMode.h" 6 | 7 | SDLKeypressMode const SDLKeypressModeSingleKeypress = @"SINGLE_KEYPRESS"; 8 | SDLKeypressMode const SDLKeypressModeQueueKeypresses = @"QUEUE_KEYPRESSES"; 9 | SDLKeypressMode const SDLKeypressModeResendCurrentEntry = @"RESEND_CURRENT_ENTRY"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLMenuLayout.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLMenuLayout.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 7/12/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLMenuLayout.h" 10 | 11 | SDLMenuLayout const SDLMenuLayoutList = @"LIST"; 12 | SDLMenuLayout const SDLMenuLayoutTiles = @"TILES"; 13 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLRadioState.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLRadioState.m 3 | // 4 | 5 | #import "SDLRadioState.h" 6 | 7 | SDLRadioState const SDLRadioStateAcquiring = @"ACQUIRING"; 8 | SDLRadioState const SDLRadioStateAcquired = @"ACQUIRED"; 9 | SDLRadioState const SDLRadioStateMulticast = @"MULTICAST"; 10 | SDLRadioState const SDLRadioStateNotFound = @"NOT_FOUND"; 11 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSystemRequestResponse.h: -------------------------------------------------------------------------------- 1 | // SDLSystemRequestResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SystemRequest 11 | 12 | Since SmartDeviceLink 3.0 13 | */ 14 | @interface SDLSystemRequestResponse : SDLRPCResponse 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLAudioType.h: -------------------------------------------------------------------------------- 1 | // SDLAudioType.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | Describes different audio type options for PerformAudioPassThru 9 | */ 10 | typedef SDLEnum SDLAudioType NS_TYPED_ENUM; 11 | 12 | /** 13 | * PCM raw audio 14 | * 15 | * @since SDL 2.0 16 | */ 17 | extern SDLAudioType const SDLAudioTypePCM; 18 | 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDeleteSubMenuResponse.h: -------------------------------------------------------------------------------- 1 | // SDLDeleteSubMenuResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | Response to SDLDeleteSubMenu 9 | 10 | Since SmartDeviceLink 1.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLDeleteSubMenuResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLFuelCutoffStatus.m: -------------------------------------------------------------------------------- 1 | // SDLFuelCutoffStatus.m 2 | // 3 | 4 | 5 | #import "SDLFuelCutoffStatus.h" 6 | 7 | SDLFuelCutoffStatus const SDLFuelCutoffStatusTerminateFuel = @"TERMINATE_FUEL"; 8 | SDLFuelCutoffStatus const SDLFuelCutoffStatusNormalOperation = @"NORMAL_OPERATION"; 9 | SDLFuelCutoffStatus const SDLFuelCutoffStatusFault = @"FAULT"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLListFilesSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLListFilesSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLListFiles.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLListFilesSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSyncPDataSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSyncPDataSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLSyncPData.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLSyncPDataSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeWaypointsResponseSpec.m: -------------------------------------------------------------------------------- 1 | // SDLSubscribeWaypointsResponseSpec.m 2 | // 3 | 4 | #import 5 | 6 | #import 7 | #import 8 | 9 | #import "SDLSubscribeWaypointsResponse.h" 10 | 11 | QuickSpecBegin(SDLSubscribeWaypointsResponseSpec) 12 | 13 | QuickSpecEnd 14 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLAlertManeuverResponse.h: -------------------------------------------------------------------------------- 1 | // SDLAlertManeuverResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | Response to SDLAlertManeuver 9 | 10 | @since SmartDeviceLink 1.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLAlertManeuverResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDeleteCommandResponse.h: -------------------------------------------------------------------------------- 1 | // SDLDeleteCommandResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | Response to SDLDeleteCommand 9 | 10 | Since SmartDeviceLink 1.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLDeleteCommandResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDialNumberResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDialNumberResponse.h 3 | // SmartDeviceLink-iOS 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | The response to SDLDialNumber 9 | 10 | @since SDL 4.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLDialNumberResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLRPCNotification.h: -------------------------------------------------------------------------------- 1 | // SDLRPCNotification.h 2 | // 3 | 4 | 5 | #import "SDLRPCMessage.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | An RPC sent from the head unit to the app about some data change, such as a button was pressed 11 | */ 12 | @interface SDLRPCNotification : SDLRPCMessage 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLShowConstantTBTResponse.h: -------------------------------------------------------------------------------- 1 | // SDLShowConstantTBTResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SDLShowConstantTBT 11 | 12 | Since SmartDeviceLink 2.0 13 | */ 14 | @interface SDLShowConstantTBTResponse : SDLRPCResponse 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSubscribeButtonResponse.h: -------------------------------------------------------------------------------- 1 | // SDLSubscribeButtonResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SDLSubscribeButton 11 | 12 | Since SmartDeviceLink 1.0 13 | */ 14 | @interface SDLSubscribeButtonResponse : SDLRPCResponse 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLCarModeStatus.m: -------------------------------------------------------------------------------- 1 | // SDLCarModeStatus.m 2 | // 3 | 4 | 5 | #import "SDLCarModeStatus.h" 6 | 7 | SDLCarModeStatus const SDLCarModeStatusNormal = @"NORMAL"; 8 | SDLCarModeStatus const SDLCarModeStatusFactory = @"FACTORY"; 9 | SDLCarModeStatus const SDLCarModeStatusTransport = @"TRANSPORT"; 10 | SDLCarModeStatus const SDLCarModeStatusCrash = @"CRASH"; 11 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLChangeRegistrationResponse.h: -------------------------------------------------------------------------------- 1 | // SDLChangeRegistrationResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | Response to SDLChangeRegistrations 9 | 10 | @since SDL 2.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLChangeRegistrationResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLUnsubscribeButtonResponse.h: -------------------------------------------------------------------------------- 1 | // SDLUnsubscribeButtonResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to UnsubscribeButton 11 | 12 | Since SmartDeviceLink 1.0 13 | */ 14 | @interface SDLUnsubscribeButtonResponse : SDLRPCResponse 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeWaypointsResponseSpec.m: -------------------------------------------------------------------------------- 1 | // SDLUnsubscribeWaypointsResponseSpec.m 2 | // 3 | 4 | #import 5 | 6 | #import 7 | #import 8 | 9 | #import "SDLUnsubscribeWaypointsResponse.h" 10 | 11 | QuickSpecBegin(SDLUnsubscribeWaypointsResponseSpec) 12 | 13 | QuickSpecEnd 14 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLAudioStreamingState.m: -------------------------------------------------------------------------------- 1 | // SDLAudioStreamingState.m 2 | // 3 | 4 | 5 | #import "SDLAudioStreamingState.h" 6 | 7 | SDLAudioStreamingState const SDLAudioStreamingStateAudible = @"AUDIBLE"; 8 | SDLAudioStreamingState const SDLAudioStreamingStateAttenuated = @"ATTENUATED"; 9 | SDLAudioStreamingState const SDLAudioStreamingStateNotAudible = @"NOT_AUDIBLE"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLEndAudioPassThruResponse.h: -------------------------------------------------------------------------------- 1 | // SDLEndAudioPassThruResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | Response to SDLEndAudioPassThru 9 | 10 | Since SmartDeviceLink 2.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLEndAudioPassThruResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSetMediaClockTimerResponse.h: -------------------------------------------------------------------------------- 1 | // SDLSetMediaClockTimerResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SDLSetMediaClockTimer 11 | 12 | Since SmartDeviceLink 1.0 13 | */ 14 | @interface SDLSetMediaClockTimerResponse : SDLRPCResponse 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLShowResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLShowResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLShowResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/EAAccessoryManager+SDLProtocols.h: -------------------------------------------------------------------------------- 1 | // 2 | // EAAccessoryManager+SyncProtocols.h 3 | // 4 | 5 | #import 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface EAAccessoryManager (SDLProtocols) 10 | 11 | + (nullable EAAccessory *)findAccessoryForProtocol:(NSString *)protocol; 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLEncodedSyncPDataResponse.h: -------------------------------------------------------------------------------- 1 | // SDLEncodedSyncPDataResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | The response to SDLEncodedSyncPData 11 | 12 | **DEPRECATED** 13 | */ 14 | __deprecated 15 | @interface SDLEncodedSyncPDataResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLKeyboardLayout.m: -------------------------------------------------------------------------------- 1 | // SDLKeyboardLayout.m 2 | // 3 | 4 | 5 | #import "SDLKeyboardLayout.h" 6 | 7 | SDLKeyboardLayout const SDLKeyboardLayoutQWERTY = @"QWERTY"; 8 | SDLKeyboardLayout const SDLKeyboardLayoutQWERTZ = @"QWERTZ"; 9 | SDLKeyboardLayout const SDLKeyboardLayoutAZERTY = @"AZERTY"; 10 | SDLKeyboardLayout const SDLKeyboardLayoutNumeric = @"NUMERIC"; 11 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLScrollableMessageResponse.h: -------------------------------------------------------------------------------- 1 | // SDLScrollableMessageResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | Response to SDLScrollableMessage 9 | 10 | Since SmartDeviceLink 2.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLScrollableMessageResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSetGlobalPropertiesResponse.h: -------------------------------------------------------------------------------- 1 | // SDLSetGlobalPropertiesResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SDLSetGlobalProperties 11 | 12 | Since SmartDeviceLink 1.0 13 | */ 14 | @interface SDLSetGlobalPropertiesResponse : SDLRPCResponse 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSpeakResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSpeakResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLSpeakResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLSpeakResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLUnregisterAppInterfaceResponse.h: -------------------------------------------------------------------------------- 1 | // SDLUnregisterAppInterfaceResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to UnregisterAppInterface 11 | 12 | SmartDeviceLink 1.0 13 | */ 14 | @interface SDLUnregisterAppInterfaceResponse : SDLRPCResponse 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLVentilationMode.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLVentilationMode.m 3 | // 4 | 5 | #import "SDLVentilationMode.h" 6 | 7 | 8 | SDLVentilationMode const SDLVentilationModeUpper = @"UPPER"; 9 | SDLVentilationMode const SDLVentilationModeLower = @"LOWER"; 10 | SDLVentilationMode const SDLVentilationModeBoth = @"BOTH"; 11 | SDLVentilationMode const SDLVentilationModeNone = @"NONE"; 12 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGenericResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLGenericResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLGenericResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLGenericResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLHexUtility.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLHexUtility.h 3 | // SmartDeviceLink 4 | // 5 | 6 | #import 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface SDLHexUtility : NSObject 11 | 12 | + (NSString *)getHexString:(UInt8 *)bytes length:(NSUInteger)length; 13 | + (NSString *)getHexString:(NSData *)data; 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLPerformAudioPassThruResponse.h: -------------------------------------------------------------------------------- 1 | // SDLPerformAudioPassThruResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | Response to SDLPerformAudioPassThru 9 | 10 | Since SmartDeviceLink 2.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLPerformAudioPassThruResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLResetGlobalPropertiesResponse.h: -------------------------------------------------------------------------------- 1 | // SDLResetGlobalPropertiesResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | Response to ResetGlobalProperties 9 | 10 | Since SmartDeviceLink 1.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLResetGlobalPropertiesResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEndAudioPassThruSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLEndAudioPassThruSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLEndAudioPassThru.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLEndAudioPassThruSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /generator/templates/SDLRPCParameterNames.m.jinja2: -------------------------------------------------------------------------------- 1 | {% include 'copyright.jinja2' %} 2 | // SDLRPCParameterNames.h 3 | 4 | #import "NSMutableDictionary+Store.h" 5 | #import "SDLRPCParameterNames.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | {% for param in params %} 9 | SDLRPCParameterName const SDLRPCParameterName{{ param.name }} = @"{{ param.origin }}"; 10 | {%- endfor %} 11 | 12 | NS_ASSUME_NONNULL_END -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLV1ProtocolHeader.h: -------------------------------------------------------------------------------- 1 | // SDLSmartDeviceLinkV1ProtocolHeader.h 2 | // 3 | 4 | 5 | #import "SDLProtocolHeader.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface SDLV1ProtocolHeader : SDLProtocolHeader 10 | 11 | - (instancetype)init; 12 | - (NSData *)data; 13 | - (void)parse:(NSData *)data; 14 | - (NSString *)description; 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLMediaServiceManifest.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLMediaServiceManifest.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 2/11/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLMediaServiceManifest.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @implementation SDLMediaServiceManifest 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLUpdateMode.m: -------------------------------------------------------------------------------- 1 | // SDLUpdateMode.m 2 | // 3 | 4 | 5 | #import "SDLUpdateMode.h" 6 | 7 | SDLUpdateMode const SDLUpdateModeCountUp = @"COUNTUP"; 8 | SDLUpdateMode const SDLUpdateModeCountDown = @"COUNTDOWN"; 9 | SDLUpdateMode const SDLUpdateModePause = @"PAUSE"; 10 | SDLUpdateMode const SDLUpdateModeResume = @"RESUME"; 11 | SDLUpdateMode const SDLUpdateModeClear = @"CLEAR"; 12 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSyncPDataResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSyncPDataResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLSyncPDataResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLSyncPDataResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLMenuManagerPrivateConstants.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLMenuManagerPrivateConstants.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 1/27/21. 6 | // Copyright © 2021 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | extern UInt32 const ParentIdNotFound; 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddCommandResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLAddCommandResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLAddCommandResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLAddCommandResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAddSubMenuResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLAddSubMenuResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLAddSubMenuResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLAddSubMenuResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetAppIconResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSetAppIconResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLSetAppIconResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLSetAppIconResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/NSMutableArray+Safe.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableArray+NSMutableArray_Safe.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 9/12/18. 6 | // Copyright © 2018 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSMutableArray (Safe) 12 | 13 | - (void)sdl_safeAddObject:(ObjectType)object; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLOnAudioPassThru.h: -------------------------------------------------------------------------------- 1 | // SDLOnAudioPassThru.h 2 | // 3 | 4 | 5 | #import "SDLRPCNotification.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | * Binary data is in binary part of hybrid msg. 11 | * 12 | * HMILevel must be: 13 | * 14 | * * BACKGROUND, FULL, LIMITED 15 | */ 16 | @interface SDLOnAudioPassThru : SDLRPCNotification 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLWarningLightStatus.m: -------------------------------------------------------------------------------- 1 | // SDLWarningLightStatus.m 2 | // 3 | 4 | 5 | #import "SDLWarningLightStatus.h" 6 | 7 | SDLWarningLightStatus const SDLWarningLightStatusOff = @"OFF"; 8 | SDLWarningLightStatus const SDLWarningLightStatusOn = @"ON"; 9 | SDLWarningLightStatus const SDLWarningLightStatusFlash = @"FLASH"; 10 | SDLWarningLightStatus const SDLWarningLightStatusNotUsed = @"NOT_USED"; 11 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLAlertManeuverResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLAlertManeuverResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLAlertManeuverResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLAlertManeuverResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLButtonPressResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLButtonPressResponseSpec.m 3 | // SmartDeviceLink-iOS 4 | // 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLButtonPressResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLButtonPressResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteCommandResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDeleteCommandResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLDeleteCommandResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLDeleteCommandResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteSubMenuResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDeleteSubMenuResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLDeleteSubMenuResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLDeleteSubMenuResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSystemRequestResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSystemRequestResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLSystemRequestResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLSystemRequestResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLMenuManagerPrivateConstants.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLMenuManagerPrivateConstants.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 1/27/21. 6 | // Copyright © 2021 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLMenuManagerPrivateConstants.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | UInt32 const ParentIdNotFound = UINT32_MAX; 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnregisterAppInterfaceSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLUnregisterAppInterfaceSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLUnregisterAppInterface.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLUnregisterAppInterfaceSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUpdateTurnListResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLUpdateTurnListResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLUpdateTurnListResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLUpdateTurnListResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEncodedSyncPDataResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLEncodedSyncPDataResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLEncodedSyncPDataResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLEncodedSyncPDataResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLEndAudioPassThruResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLEndAudioPassThruResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLEndAudioPassThruResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLEndAudioPassThruResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowConstantTBTResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLShowConstantTBTResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLShowConstantTBTResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLShowConstantTBTResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSubscribeButtonResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSubscribeButtonResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLSubscribeButtonResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLSubscribeButtonResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /generator/templates/SDLRPCParameterNames.h.jinja2: -------------------------------------------------------------------------------- 1 | {% include 'copyright.jinja2' %} 2 | // SDLRPCParameterNames.h 3 | 4 | #import 5 | #import "SDLMacros.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | typedef NSString* SDLRPCParameterName NS_TYPED_ENUM; 10 | {% for param in params %} 11 | extern SDLRPCParameterName const SDLRPCParameterName{{ param.name }}; 12 | {%- endfor %} 13 | 14 | NS_ASSUME_NONNULL_END -------------------------------------------------------------------------------- /SmartDeviceLink/private/NSBundle+SDLBundle.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSBundle+SDLBundle.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Joel Fischer on 8/31/16. 6 | // Copyright © 2016 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface NSBundle (SDLBundle) 14 | 15 | + (nullable NSBundle *)sdlBundle; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLLogFileModuleMap.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLLogFileModuleMap.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Joel Fischer on 3/2/17. 6 | // Copyright © 2017 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class SDLLogFileModule; 12 | 13 | @interface SDLLogFileModuleMap : NSObject 14 | 15 | + (NSSet *)sdlModuleMap; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnAudioPassThruSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLOnAudioPassThruSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLOnAudioPassThru.h" 12 | #import "SDLRPCParameterNames.h" 13 | #import "SDLRPCFunctionNames.h" 14 | 15 | QuickSpecBegin(SDLOnAudioPassThruSpec) 16 | 17 | QuickSpecEnd 18 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLScrollableMessageResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLScrollableMessageResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLScrollableMessageResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLScrollableMessageResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeButtonResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLUnsubscribeButtonResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLUnsubscribeButtonResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLUnsubscribeButtonResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /Example Apps/Example ObjC/ConnectionTabBarController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ConnectionTabBarController.h 3 | // SmartDeviceLink-Example-ObjC 4 | // 5 | // Created by Joel Fischer on 9/23/21. 6 | // Copyright © 2021 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface ConnectionTabBarController : UITabBarController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Example Apps/Example Swift/ProxyManagerDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Protocol+ProxyManagerDelegate.swift 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 4/12/18. 6 | // Copyright © 2018 smartdevicelink. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | protocol ProxyManagerDelegate: AnyObject { 12 | var proxyState: ProxyState { get } 13 | 14 | func didChangeProxyState(_ newState: ProxyState) 15 | } 16 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLCreateInteractionChoiceSetResponse.h: -------------------------------------------------------------------------------- 1 | // SDLCreateInteractionChoiceSetResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | Response to SDLCreateInteractionChoiceSet has been called 9 | 10 | Since SmartDeviceLink 1.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLCreateInteractionChoiceSetResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLGenericResponse.h: -------------------------------------------------------------------------------- 1 | // SDLGenericResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | Generic Response is sent when the name of a received request is unknown. It is only used in case of an error. It will have an INVALID_DATA result code. 9 | */ 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface SDLGenericResponse : SDLRPCResponse 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSubscribeWayPoints.h: -------------------------------------------------------------------------------- 1 | // SDLSubscribeWaypoints.h 2 | // 3 | 4 | #import "SDLRPCRequest.h" 5 | 6 | /** 7 | * A SDLSubscribeWaypoints can be sent to subscribe 8 | * for any changes in waypoints/destinations 9 | * 10 | * @see SDLUnsubscribeWaypoints 11 | * 12 | */ 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | @interface SDLSubscribeWayPoints : SDLRPCRequest 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSyncPData.h: -------------------------------------------------------------------------------- 1 | // SDLSyncPData.h 2 | // 3 | 4 | 5 | #import "SDLRPCRequest.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | * Allows binary data in the form of SyncP packets to be sent to the SYNC module. Binary data is in binary part of hybrid msg. 11 | * 12 | * *** DEPRECATED *** 13 | */ 14 | __deprecated 15 | @interface SDLSyncPData : SDLRPCRequest 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLChangeRegistrationResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLChangeRegistrationResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLChangeRegistrationResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLChangeRegistrationResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetMediaClockTimerResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSetMediaClockTimerResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLSetMediaClockTimerResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLSetMediaClockTimerResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | precision: 2 3 | round: down 4 | 5 | ignore: 6 | - Carthage/.* 7 | - SmartDeviceLinkTests/.* 8 | - Example Apps/.* 9 | - bson_c_lib/.* 10 | status: 11 | project: false 12 | patch: 13 | default: 14 | enabled: yes 15 | target: 80% 16 | 17 | comment: 18 | layout: "header, diff, changes, uncovered" 19 | branches: 20 | - "!hotfix*" 21 | behavior: default 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLMacros.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLMacros.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 2/8/21. 6 | // Copyright © 2021 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | extern NSUInteger const NSUIntBitCell; 14 | extern NSUInteger NSUIntRotateCell(NSUInteger val, NSUInteger howMuch); 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLIgnitionStableStatus.m: -------------------------------------------------------------------------------- 1 | // SDLIgnitionStableStatus.m 2 | // 3 | 4 | 5 | #import "SDLIgnitionStableStatus.h" 6 | 7 | SDLIgnitionStableStatus const SDLIgnitionStableStatusNotStable = @"IGNITION_SWITCH_NOT_STABLE"; 8 | SDLIgnitionStableStatus const SDLIgnitionStableStatusStable = @"IGNITION_SWITCH_STABLE"; 9 | SDLIgnitionStableStatus const SDLIgnitionStableStatusMissingFromTransmitter = @"MISSING_FROM_TRANSMITTER"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLVideoStreamingState.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLVideoStreamingState.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 6/19/18. 6 | // Copyright © 2018 Livio. All rights reserved. 7 | // 8 | 9 | #import "SDLVideoStreamingState.h" 10 | 11 | SDLVideoStreamingState const SDLVideoStreamingStateStreamable = @"STREAMABLE"; 12 | SDLVideoStreamingState const SDLVideoStreamingStateNotStreamable = @"NOT_STREAMABLE"; 13 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSetGlobalPropertiesResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSetGlobalPropertiesResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLSetGlobalPropertiesResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLSetGlobalPropertiesResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDistanceUnit.h: -------------------------------------------------------------------------------- 1 | // SDLDistanceUnit.h 2 | // 3 | 4 | #import "SDLEnum.h" 5 | 6 | /** 7 | * Wiper Status 8 | */ 9 | typedef SDLEnum SDLDistanceUnit NS_TYPED_ENUM; 10 | 11 | /** 12 | * @abstract SDLDistanceUnit: *MILES* 13 | */ 14 | extern SDLDistanceUnit const SDLDistanceUnitMiles; 15 | 16 | /** 17 | * @abstract SDLDistanceUnit: *KILOMETERS* 18 | */ 19 | extern SDLDistanceUnit const SDLDistanceUnitKilometers; 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLLayoutMode.m: -------------------------------------------------------------------------------- 1 | // SDLLayoutMode.m 2 | // 3 | 4 | 5 | #import "SDLLayoutMode.h" 6 | 7 | SDLLayoutMode const SDLLayoutModeIconOnly = @"ICON_ONLY"; 8 | SDLLayoutMode const SDLLayoutModeIconWithSearch = @"ICON_WITH_SEARCH"; 9 | SDLLayoutMode const SDLLayoutModeListOnly = @"LIST_ONLY"; 10 | SDLLayoutMode const SDLLayoutModeListWithSearch = @"LIST_WITH_SEARCH"; 11 | SDLLayoutMode const SDLLayoutModeKeyboard = @"KEYBOARD"; 12 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPerformAudioPassThruResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLPerformAudioPassThruResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLPerformAudioPassThruResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLPerformAudioPassThruResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLResetGlobalPropertiesResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLResetGlobalPropertiesResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLResetGlobalPropertiesResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLResetGlobalPropertiesResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/NSArray+Extensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+Extensions.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Frank Elias on 2/18/21. 6 | // Copyright © 2021 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SDLMacros.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface NSArray (Extensions) 15 | 16 | -(NSUInteger)dynamicHash; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLRAWH264Packetizer.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLRAWH264Packetizer 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Sho Amano on 4/11/17. 6 | // Copyright © 2017 Xevo Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "SDLH264Packetizer.h" 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLRAWH264Packetizer : NSObject 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLListFiles.h: -------------------------------------------------------------------------------- 1 | // SDLListFiles.h 2 | // 3 | 4 | 5 | #import "SDLRPCRequest.h" 6 | 7 | /** 8 | * Requests the current list of resident filenames for the registered app. Not 9 | * supported on First generation SDL vehicles 10 | *

    11 | * 12 | * Since SmartDeviceLink 2.0 13 | */ 14 | 15 | NS_ASSUME_NONNULL_BEGIN 16 | 17 | @interface SDLListFiles : SDLRPCRequest 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnregisterAppInterfaceResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLUnregisterAppInterfaceResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLUnregisterAppInterfaceResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLUnregisterAppInterfaceResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /Example Apps/Example ObjC/TextValidator.h: -------------------------------------------------------------------------------- 1 | // 2 | // TextValidator.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 7/20/18. 6 | // Copyright © 2018 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface TextValidator : NSObject 14 | 15 | + (NSString *)validateText:(NSString *)text length:(UInt8)length; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLIAPTransport.h: -------------------------------------------------------------------------------- 1 | // SDLIAPTransport.h 2 | // 3 | 4 | #import 5 | 6 | #import "SDLTransportType.h" 7 | 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface SDLIAPTransport : NSObject 12 | 13 | /** 14 | * The subscribed listener. 15 | */ 16 | @property (nullable, weak, nonatomic) id delegate; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLMediaServiceManifest.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLMediaServiceManifest.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 2/11/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLRPCRequest.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /** 14 | * A media service manifest. 15 | */ 16 | @interface SDLMediaServiceManifest : SDLRPCStruct 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLPermissionStatus.m: -------------------------------------------------------------------------------- 1 | // SDLPermissionStatus.m 2 | // 3 | 4 | 5 | #import "SDLPermissionStatus.h" 6 | 7 | SDLPermissionStatus const SDLPermissionStatusAllowed = @"ALLOWED"; 8 | SDLPermissionStatus const SDLPermissionStatusDisallowed = @"DISALLOWED"; 9 | SDLPermissionStatus const SDLPermissionStatusUserDisallowed = @"USER_DISALLOWED"; 10 | SDLPermissionStatus const SDLPermissionStatusUserConsentPending = @"USER_CONSENT_PENDING"; 11 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSystemContext.m: -------------------------------------------------------------------------------- 1 | // SDLSystemContext.m 2 | // 3 | 4 | 5 | #import "SDLSystemContext.h" 6 | 7 | SDLSystemContext const SDLSystemContextMain = @"MAIN"; 8 | SDLSystemContext const SDLSystemContextVoiceRecognitionSession = @"VRSESSION"; 9 | SDLSystemContext const SDLSystemContextMenu = @"MENU"; 10 | SDLSystemContext const SDLSystemContextHMIObscured = @"HMI_OBSCURED"; 11 | SDLSystemContext const SDLSystemContextAlert = @"ALERT"; 12 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLWayPointType.h: -------------------------------------------------------------------------------- 1 | // SDLWaypointType.h 2 | // 3 | 4 | #import "SDLEnum.h" 5 | 6 | /** 7 | The type of a navigation waypoint. Used in GetWayPoints. 8 | */ 9 | typedef SDLEnum SDLWayPointType NS_TYPED_ENUM; 10 | 11 | /** 12 | All other waypoint types 13 | */ 14 | extern SDLWayPointType const SDLWayPointTypeAll; 15 | 16 | /** 17 | The destination waypoint 18 | */ 19 | extern SDLWayPointType const SDLWayPointTypeDestination; 20 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMenuLayoutSpec.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import "SDLMenuLayout.h" 5 | 6 | QuickSpecBegin(SDLMenuLayoutSpec) 7 | 8 | describe(@"Individual Enum Value Tests", ^{ 9 | it(@"Should match internal values", ^{ 10 | expect(SDLMenuLayoutList).to(equal(@"LIST")); 11 | expect(SDLMenuLayoutTiles).to(equal(@"TILES")); 12 | }); 13 | }); 14 | 15 | QuickSpecEnd 16 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLAppServiceType.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLAppServiceType.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 1/25/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLAppServiceType.h" 10 | 11 | SDLAppServiceType const SDLAppServiceTypeMedia = @"MEDIA"; 12 | SDLAppServiceType const SDLAppServiceTypeWeather = @"WEATHER"; 13 | SDLAppServiceType const SDLAppServiceTypeNavigation = @"NAVIGATION"; 14 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLLightStatus.m: -------------------------------------------------------------------------------- 1 | // SDLLightStatus.m 2 | // 3 | 4 | #import "SDLLightStatus.h" 5 | 6 | SDLLightStatus const SDLLightStatusOn = @"ON"; 7 | SDLLightStatus const SDLLightStatusOFF = @"OFF"; 8 | SDLLightStatus const SDLLightStatusRampUp = @"RAMP_UP"; 9 | SDLLightStatus const SDLLightStatusRampDown = @"RAMP_DOWN"; 10 | SDLLightStatus const SDLLightStatusUnknown = @"UNKNOWN"; 11 | SDLLightStatus const SDLLightStatusInvalid = @"INVALID"; 12 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLModuleType.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLModuleType.m 3 | // 4 | 5 | #import "SDLModuleType.h" 6 | 7 | SDLModuleType const SDLModuleTypeClimate = @"CLIMATE"; 8 | SDLModuleType const SDLModuleTypeRadio = @"RADIO"; 9 | SDLModuleType const SDLModuleTypeSeat = @"SEAT"; 10 | SDLModuleType const SDLModuleTypeAudio = @"AUDIO"; 11 | SDLModuleType const SDLModuleTypeLight = @"LIGHT"; 12 | SDLModuleType const SDLModuleTypeHMISettings = @"HMI_SETTINGS"; 13 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLTurnSignal.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLTurnSignal.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 7/19/18. 6 | // Copyright © 2018 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLTurnSignal.h" 10 | 11 | SDLTurnSignal const SDLTurnSignalOff = @"OFF"; 12 | SDLTurnSignal const SDLTurnSignalLeft = @"LEFT"; 13 | SDLTurnSignal const SDLTurnSignalRight = @"RIGHT"; 14 | SDLTurnSignal const SDLTurnSignalBoth = @"BOTH"; 15 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/DevAPISpecs/SDLFakeViewControllerPresenter.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLFakeViewControllerPresenter.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Joel Fischer on 7/18/16. 6 | // Copyright © 2016 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "SDLViewControllerPresentable.h" 12 | 13 | @interface SDLFakeViewControllerPresenter : NSObject 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLMediaType.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLMediaType.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 2/8/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLMediaType.h" 10 | 11 | SDLMediaType const SDLMediaTypeMusic = @"MUSIC"; 12 | SDLMediaType const SDLMediaTypePodcast = @"PODCAST"; 13 | SDLMediaType const SDLMediaTypeAudiobook = @"AUDIOBOOK"; 14 | SDLMediaType const SDLMediaTypeOther = @"OTHER"; 15 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLCreateInteractionChoiceSetResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLCreateInteractionChoiceSetResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLCreateInteractionChoiceSetResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLCreateInteractionChoiceSetResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLDeleteInteractionChoiceSetResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDeleteInteractionChoiceSetResponseSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLDeleteInteractionChoiceSetResponse.h" 12 | #import "SDLRPCParameterNames.h" 13 | 14 | QuickSpecBegin(SDLDeleteInteractionChoiceSetResponseSpec) 15 | 16 | QuickSpecEnd 17 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/car.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "iconmonstr-car-1-240.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLIAPConstants.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLIAPConstants.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 4/17/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | extern NSString *const ControlProtocolString; 12 | extern NSString *const IndexedProtocolStringPrefix; 13 | extern NSString *const LegacyProtocolString; 14 | extern NSString *const MultiSessionProtocolString; 15 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLV1ProtocolMessage.h: -------------------------------------------------------------------------------- 1 | // SDLV1ProtocolMessage.h 2 | // 3 | 4 | #import "SDLProtocolMessage.h" 5 | 6 | @class SDLProtocolHeader; 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface SDLV1ProtocolMessage : SDLProtocolMessage 11 | 12 | - (instancetype)initWithHeader:(SDLProtocolHeader *)header andPayload:(nullable NSData *)payload; 13 | - (nullable NSDictionary *)rpcDictionary; 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLAudioStreamingIndicator.m: -------------------------------------------------------------------------------- 1 | // SDLAudioStreamingIndicator.m 2 | // 3 | 4 | #import "SDLAudioStreamingIndicator.h" 5 | 6 | SDLAudioStreamingIndicator const SDLAudioStreamingIndicatorPlayPause = @"PLAY_PAUSE"; 7 | SDLAudioStreamingIndicator const SDLAudioStreamingIndicatorPlay = @"PLAY"; 8 | SDLAudioStreamingIndicator const SDLAudioStreamingIndicatorPause = @"PAUSE"; 9 | SDLAudioStreamingIndicator const SDLAudioStreamingIndicatorStop = @"STOP"; 10 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSendHapticDataResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSendHapticDataResponse.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Nicole on 8/4/17. 6 | // Copyright © 2017 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLRPCResponse.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /** 14 | Response to SDLSendHapticData 15 | */ 16 | @interface SDLSendHapticDataResponse : SDLRPCResponse 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/alert.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "iconmonstr-warning-7-240.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/phone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "iconmonstr-phone-4-240.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDeleteInteractionChoiceSetResponse.h: -------------------------------------------------------------------------------- 1 | // SDLDeleteInteractionChoiceSetResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | SDLDeleteInteractionChoiceSetResponse is sent, when SDLDeleteInteractionChoiceSet has been called 9 | 10 | Since SmartDeviceLink 1.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLDeleteInteractionChoiceSetResponse : SDLRPCResponse 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLEnum.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLEnum.m 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Muller, Alexander (A.) on 3/13/17. 6 | // Copyright © 2017 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLEnum.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @implementation NSString (SDLEnum) 14 | 15 | - (BOOL)isEqualToEnum:(SDLEnum)enumObj { 16 | return [self isEqualToString:enumObj]; 17 | } 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLShowAppMenuResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLOpenMenuResponse.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Justin Gluck on 7/12/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLRPCResponse.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /** 14 | * Response to the request to show the app menu. 15 | */ 16 | @interface SDLShowAppMenuResponse : SDLRPCResponse 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/choice_set.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "iconmonstr-menu-1-240.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/remote_control.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "remote_control_icon.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/speak.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "iconmonstr-speech-bubble-3-240.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/toggle_off.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "iconmonstr-battery-3-240.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/toggle_on.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "iconmonstr-battery-7-240.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/NSMutableArray+Safe.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableArray+NSMutableArray_Safe.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 9/12/18. 6 | // Copyright © 2018 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "NSMutableArray+Safe.h" 10 | 11 | @implementation NSMutableArray (Safe) 12 | 13 | - (void)sdl_safeAddObject:(id)object { 14 | if (object == nil) { return; } 15 | 16 | [self addObject:object]; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLMaintenanceModeStatus.m: -------------------------------------------------------------------------------- 1 | // SDLMaintenanceModeStatus.m 2 | // 3 | 4 | 5 | #import "SDLMaintenanceModeStatus.h" 6 | 7 | SDLMaintenanceModeStatus const SDLMaintenanceModeStatusNormal = @"NORMAL"; 8 | SDLMaintenanceModeStatus const SDLMaintenanceModeStatusNear = @"NEAR"; 9 | SDLMaintenanceModeStatus const SDLMaintenanceModeStatusActive = @"ACTIVE"; 10 | SDLMaintenanceModeStatus const SDLMaintenanceModeStatusFeatureNotPresent = @"FEATURE_NOT_PRESENT"; 11 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLRPCRequest.h: -------------------------------------------------------------------------------- 1 | // SDLRPCRequest.h 2 | // 3 | 4 | 5 | #import "SDLRPCMessage.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /// Superclass of RPC requests 10 | @interface SDLRPCRequest : SDLRPCMessage 11 | 12 | /** 13 | * A unique id assigned to message sent to Core. The Correlation ID is used to map a request to its response. 14 | */ 15 | @property (strong, nonatomic) NSNumber *correlationID; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSliderResponse.h: -------------------------------------------------------------------------------- 1 | // SDLSliderResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SDLSlider 11 | 12 | Since SmartDeviceLink 2.0 13 | */ 14 | @interface SDLSliderResponse : SDLRPCResponse 15 | 16 | /** 17 | The selected position of the slider. 18 | */ 19 | @property (strong, nonatomic, nullable) NSNumber *sliderPosition; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLVrCapabilities.h: -------------------------------------------------------------------------------- 1 | // SDLVRCapabilities.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | * The VR capabilities of the connected SDL platform. Used in RegisterAppInterfaceResponse. 9 | * 10 | * @since SDL 1.0 11 | */ 12 | typedef SDLEnum SDLVRCapabilities NS_TYPED_ENUM; 13 | 14 | /** 15 | * The SDL platform is capable of recognizing spoken text in the current language. 16 | */ 17 | extern SDLVRCapabilities const SDLVRCapabilitiesText; 18 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/microphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "iconmonstr-microphone-4-240.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLAsynchronousOperation.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLAsychronousOperation.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Joel Fischer on 8/25/16. 6 | // Copyright © 2016 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SDLAsynchronousOperation : NSOperation 12 | 13 | @property (copy, nonatomic, readonly, nullable) NSError *error; 14 | 15 | - (void)start; 16 | - (void)finishOperation; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLMacros.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLMacros.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 2/8/21. 6 | // Copyright © 2021 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLMacros.h" 10 | 11 | NSUInteger const NSUIntBitCell = (CHAR_BIT * sizeof(NSUInteger)); 12 | NSUInteger NSUIntRotateCell(NSUInteger val, NSUInteger howMuch) { 13 | return ((((NSUInteger)val) << howMuch) | (((NSUInteger)val) >> (NSUIntBitCell - howMuch))); 14 | } 15 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDeleteWindowResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDeleteWindowResponse.h 3 | // SmartDeviceLink 4 | // 5 | // Created by cssoeutest1 on 11.07.19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLRPCResponse.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// Response to DeleteWindow 14 | /// 15 | /// @since RPC 6.0 16 | @interface SDLDeleteWindowResponse : SDLRPCResponse 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | 22 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/dot.radiowaves.right.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "filename" : "dot.radiowaves.right@2x.png", 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLTextField+ScreenManagerExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLTextField+ScreenManagerExtensions.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 5/20/20. 6 | // Copyright © 2020 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLTextField.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface SDLTextField (ScreenManagerExtensions) 14 | 15 | + (NSArray *)allTextFields; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLV2ProtocolMessage.h: -------------------------------------------------------------------------------- 1 | // SDLSmartDeviceLinkV2ProtocolMessage.h 2 | // 3 | 4 | 5 | #import "SDLProtocolMessage.h" 6 | 7 | @class SDLProtocolHeader; 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface SDLV2ProtocolMessage : SDLProtocolMessage 12 | 13 | - (instancetype)initWithHeader:(SDLProtocolHeader *)header andPayload:(nullable NSData *)payload; 14 | - (nullable NSDictionary *)rpcDictionary; 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLVideoEncoderDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLVideoEncoderDelegate.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Joel Fischer on 8/1/17. 6 | // Copyright © 2017 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class SDLH264VideoEncoder; 12 | 13 | @protocol SDLVideoEncoderDelegate 14 | 15 | - (void)videoEncoder:(SDLH264VideoEncoder *)encoder hasEncodedFrame:(NSData*)encodedVideo; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLHybridAppPreference.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLHybridAppPreference.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 2/26/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLHybridAppPreference.h" 10 | 11 | SDLHybridAppPreference const SDLHybridAppPreferenceMobile = @"MOBILE"; 12 | SDLHybridAppPreference const SDLHybridAppPreferenceCloud = @"CLOUD"; 13 | SDLHybridAppPreference const SDLHybridAppPreferenceBoth = @"BOTH"; 14 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLImageField+ScreenManagerExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLImageField+ScreenManagerExtensions.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 5/20/20. 6 | // Copyright © 2020 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLImageField.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface SDLImageField (ScreenManagerExtensions) 14 | 15 | + (NSArray *)allImageFields; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLBitsPerSample.h: -------------------------------------------------------------------------------- 1 | // SDLBitsPerSample.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | * Describes different bit depth options for PerformAudioPassThru 9 | * 10 | * @since SDL 2.0 11 | */ 12 | typedef SDLEnum SDLBitsPerSample NS_TYPED_ENUM; 13 | 14 | /** 15 | * 8 bits per sample 16 | */ 17 | extern SDLBitsPerSample const SDLBitsPerSample8Bit; 18 | 19 | /** 20 | * 16 bits per sample 21 | */ 22 | extern SDLBitsPerSample const SDLBitsPerSample16Bit; 23 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSetCloudAppPropertiesResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSetCloudAppPropertiesResponse.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 2/26/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLRPCResponse.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /** 14 | * The response to SetCloudAppProperties 15 | */ 16 | @interface SDLSetCloudAppPropertiesResponse : SDLRPCResponse 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLUnpublishAppServiceResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLUnpublishAppServiceResponse.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Bretty White on 7/15/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLRPCResponse.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /** 14 | * The response to UnpublishAppService 15 | */ 16 | @interface SDLUnpublishAppServiceResponse : SDLRPCResponse 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLCloseApplicationResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLCloseApplicationResponse.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 7/9/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLRPCResponse.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /** 14 | * Response to the request to close this app on the module. 15 | */ 16 | @interface SDLCloseApplicationResponse : SDLRPCResponse 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLMassageCushion.m: -------------------------------------------------------------------------------- 1 | // SDLMassageCushion.m 2 | // 3 | 4 | #import "SDLMassageCushion.h" 5 | 6 | SDLMassageCushion const SDLMassageCushionTopLumbar = @"TOP_LUMBAR"; 7 | SDLMassageCushion const SDLMassageCushionMiddleLumbar = @"MIDDLE_LUMBAR"; 8 | SDLMassageCushion const SDLMassageCushionBottomLumbar = @"BOTTOM_LUMBAR"; 9 | SDLMassageCushion const SDLMassageCushionBackBolsters = @"BACK_BOLSTERS"; 10 | SDLMassageCushion const SDLMassageCushionSeatBolsters = @"SEAT_BOLSTERS"; 11 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLMyKey.h: -------------------------------------------------------------------------------- 1 | // SDLMyKey.h 2 | // 3 | 4 | #import "SDLRPCMessage.h" 5 | #import "SDLVehicleDataStatus.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Vehicle Data struct 11 | */ 12 | @interface SDLMyKey : SDLRPCStruct 13 | 14 | /** 15 | Indicates whether e911 override is on. References signal "MyKey_e911Override_St". See VehicleDataStatus. 16 | */ 17 | @property (strong, nonatomic) SDLVehicleDataStatus e911Override; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLRPCMessageType.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLRPCMessageType.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 6/12/20. 6 | // Copyright © 2020 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLRPCMessageType.h" 10 | 11 | SDLRPCMessageTypeName const SDLRPCMessageTypeNameRequest = @"request"; 12 | SDLRPCMessageTypeName const SDLRPCMessageTypeNameResponse = @"response"; 13 | SDLRPCMessageTypeName const SDLRPCMessageTypeNameNotification = @"notification"; 14 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLV2ProtocolHeader.h: -------------------------------------------------------------------------------- 1 | // SDLSmartDeviceLinkV2ProtocolHeader.h 2 | // 3 | 4 | 5 | #import "SDLProtocolHeader.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface SDLV2ProtocolHeader : SDLProtocolHeader 10 | 11 | @property (assign, nonatomic) UInt32 messageID; 12 | 13 | - (instancetype)init; 14 | - (instancetype)initWithVersion:(UInt8)version; 15 | - (NSData *)data; 16 | - (void)parse:(NSData *)data; 17 | - (NSString *)description; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLIgnitionStatus.m: -------------------------------------------------------------------------------- 1 | // SDLIgnitionStatus.m 2 | // 3 | 4 | 5 | #import "SDLIgnitionStatus.h" 6 | 7 | SDLIgnitionStatus const SDLIgnitionStatusUnknown = @"UNKNOWN"; 8 | SDLIgnitionStatus const SDLIgnitionStatusOff = @"OFF"; 9 | SDLIgnitionStatus const SDLIgnitionStatusAccessory = @"ACCESSORY"; 10 | SDLIgnitionStatus const SDLIgnitionStatusRun = @"RUN"; 11 | SDLIgnitionStatus const SDLIgnitionStatusStart = @"START"; 12 | SDLIgnitionStatus const SDLIgnitionStatusInvalid = @"INVALID"; 13 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAudioTypeSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLAudioTypeSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLAudioType.h" 12 | 13 | QuickSpecBegin(SDLAudioTypeSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLAudioTypePCM).to(equal(@"PCM")); 18 | }); 19 | }); 20 | 21 | QuickSpecEnd 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLControlFramePayloadType.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLControlFramePayload.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Joel Fischer on 7/20/17. 6 | // Copyright © 2017 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @protocol SDLControlFramePayloadType 14 | 15 | - (nullable NSData *)data; 16 | - (instancetype)initWithData:(nullable NSData *)data;; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/TestHapticRectViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // TestHapticRectViewController.h 3 | // SmartDeviceLinkTests 4 | // 5 | // Created by Nicole on 9/1/20. 6 | // Copyright © 2020 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// Test view controller for testing the SDLFocusableItemLocator's preferredFocusEnvironments 14 | @interface TestHapticRectViewController : UIViewController 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLTransportType.h: -------------------------------------------------------------------------------- 1 | // SDLTransportType.h 2 | 3 | #import 4 | 5 | #import "SDLTransportDelegate.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @protocol SDLTransportType 10 | 11 | @property (nullable, weak, nonatomic) id delegate; 12 | 13 | - (void)connect; 14 | - (void)disconnectWithCompletionHandler:(void (^)(void))disconnectCompletionHandler; 15 | - (void)sendData:(NSData *)dataToSend; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLAlertResponse.h: -------------------------------------------------------------------------------- 1 | // SDLAlertResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | Response to SDLAlert 9 | 10 | @since SDL 1.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLAlertResponse : SDLRPCResponse 16 | 17 | /// Amount of time (in seconds) that an app must wait before resending an alert. 18 | /// 19 | /// @since RPC 2.0 20 | @property (nullable, strong, nonatomic) NSNumber *tryAgainTime; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLOnTBTClientState.h: -------------------------------------------------------------------------------- 1 | // SDLOnTBTClientState.h 2 | // 3 | 4 | #import "SDLRPCNotification.h" 5 | 6 | #import "SDLTBTState.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | /** 11 | Provides applications with notifications specific to the current TBT client status on the module 12 | */ 13 | @interface SDLOnTBTClientState : SDLRPCNotification 14 | 15 | /** 16 | Current State of TBT client 17 | */ 18 | @property (strong, nonatomic) SDLTBTState state; 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLPrerecordedSpeech.m: -------------------------------------------------------------------------------- 1 | // SDLPrerecordedSpeech.m 2 | // 3 | 4 | 5 | #import "SDLPrerecordedSpeech.h" 6 | 7 | SDLPrerecordedSpeech const SDLPrerecordedSpeechHelp = @"HELP_JINGLE"; 8 | SDLPrerecordedSpeech const SDLPrerecordedSpeechInitial = @"INITIAL_JINGLE"; 9 | SDLPrerecordedSpeech const SDLPrerecordedSpeechListen = @"LISTEN_JINGLE"; 10 | SDLPrerecordedSpeech const SDLPrerecordedSpeechPositive = @"POSITIVE_JINGLE"; 11 | SDLPrerecordedSpeech const SDLPrerecordedSpeechNegative = @"NEGATIVE_JINGLE"; 12 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLShowAppMenuResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLShowAppMenuResponseSpec.m 3 | // SmartDeviceLinkTests 4 | // 5 | // Created by Justin Gluck on 7/17/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | #import "SDLShowResponse.h" 15 | #import "SDLRPCParameterNames.h" 16 | 17 | QuickSpecBegin(SDLShowAppMenuResponseSpec) 18 | 19 | QuickSpecEnd 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLTimerMode.h: -------------------------------------------------------------------------------- 1 | // SDLTimerMode.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | The direction of a timer. Used in nothing. 9 | */ 10 | typedef SDLEnum SDLTimerMode NS_TYPED_ENUM; 11 | 12 | /** 13 | The timer should count up. 14 | */ 15 | extern SDLTimerMode const SDLTimerModeUp; 16 | 17 | /** 18 | The timer should count down. 19 | */ 20 | extern SDLTimerMode const SDLTimerModeDown; 21 | 22 | /** 23 | The timer should not count. 24 | */ 25 | extern SDLTimerMode const SDLTimerModeNone; 26 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLVideoStreamingCodec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLVideoStreamingCodec.m 3 | // SmartDeviceLink-iOS 4 | // 5 | 6 | 7 | #import "SDLVideoStreamingCodec.h" 8 | 9 | SDLVideoStreamingCodec const SDLVideoStreamingCodecH264 = @"H264"; 10 | SDLVideoStreamingCodec const SDLVideoStreamingCodecH265 = @"H265"; 11 | SDLVideoStreamingCodec const SDLVideoStreamingCodecTheora = @"THEORA"; 12 | SDLVideoStreamingCodec const SDLVideoStreamingCodecVP8 = @"VP8"; 13 | SDLVideoStreamingCodec const SDLVideoStreamingCodecVP9 = @"VP9"; 14 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVideoStreamingStateSpec.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import "SDLVideoStreamingState.h" 5 | 6 | QuickSpecBegin(SDLVideoStreamingStateSpec) 7 | 8 | describe(@"Individual Enum Value Tests", ^ { 9 | it(@"Should match internal values", ^ { 10 | expect(SDLVideoStreamingStateStreamable).to(equal(@"STREAMABLE")); 11 | expect(SDLVideoStreamingStateNotStreamable).to(equal(@"NOT_STREAMABLE")); 12 | }); 13 | }); 14 | 15 | QuickSpecEnd 16 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWindowTypeSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLWindowTypeSpec.m 3 | // SmartDeviceLinkTests 4 | 5 | #import 6 | #import 7 | #import "SDLWindowType.h" 8 | 9 | QuickSpecBegin(SDLWindowTypeSpec) 10 | 11 | describe(@"Individual Enum Value Tests", ^ { 12 | it(@"Should match internal values", ^ { 13 | expect(SDLWindowTypeMain).to(equal(@"MAIN")); 14 | expect(SDLWindowTypeWidget).to(equal(@"WIDGET")); 15 | }); 16 | }); 17 | 18 | QuickSpecEnd 19 | 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLFileType.m: -------------------------------------------------------------------------------- 1 | // SDLFileType.m 2 | // 3 | 4 | 5 | #import "SDLFileType.h" 6 | 7 | SDLFileType const SDLFileTypeBMP = @"GRAPHIC_BMP"; 8 | SDLFileType const SDLFileTypeJPEG = @"GRAPHIC_JPEG"; 9 | SDLFileType const SDLFileTypePNG = @"GRAPHIC_PNG"; 10 | SDLFileType const SDLFileTypeWAV = @"AUDIO_WAVE"; 11 | SDLFileType const SDLFileTypeMP3 = @"AUDIO_MP3"; 12 | SDLFileType const SDLFileTypeAAC = @"AUDIO_AAC"; 13 | SDLFileType const SDLFileTypeBinary = @"BINARY"; 14 | SDLFileType const SDLFileTypeJSON = @"JSON"; 15 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLVrCapabilitiesSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLVrCapabilitiesSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLVrCapabilities.h" 12 | 13 | QuickSpecBegin(SDLVrCapabilitiesSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLVRCapabilitiesText).to(equal(@"TEXT")); 18 | }); 19 | }); 20 | 21 | QuickSpecEnd 22 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLSendHapticDataResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSendHapticDataResponseSpec.m 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Nicole on 8/4/17. 6 | // Copyright © 2017 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | #import "SDLRPCParameterNames.h" 15 | #import "SDLSendHapticDataResponse.h" 16 | 17 | QuickSpecBegin(SDLSendHapticDataResponseSpec) 18 | 19 | QuickSpecEnd 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLMassageZone.h: -------------------------------------------------------------------------------- 1 | // SDLMassageZone.h 2 | // 3 | 4 | #import "SDLEnum.h" 5 | 6 | /** 7 | * List possible zones of a multi-contour massage seat. 8 | */ 9 | typedef SDLEnum SDLMassageZone NS_TYPED_ENUM; 10 | 11 | /** 12 | * @abstract The back of a multi-contour massage seat. or SEAT_BACK 13 | */ 14 | extern SDLMassageZone const SDLMassageZoneLumbar; 15 | 16 | /** 17 | * @abstract The bottom a multi-contour massage seat. or SEAT_BOTTOM 18 | */ 19 | extern SDLMassageZone const SDLMassageZoneSeatCushion; 20 | 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDirection.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDirection.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 2/22/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLEnum.h" 10 | 11 | /** 12 | * A navigation direction. 13 | */ 14 | typedef SDLEnum SDLDirection NS_TYPED_ENUM; 15 | 16 | /** 17 | * Direction left 18 | */ 19 | extern SDLDirection const SDLDirectionLeft; 20 | 21 | /** 22 | * Direction right 23 | */ 24 | extern SDLDirection const SDLDirectionRight; 25 | 26 | 27 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLReadDIDResponse.h: -------------------------------------------------------------------------------- 1 | // SDLReadDIDResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | @class SDLDIDResult; 8 | 9 | /** 10 | A response to ReadDID 11 | 12 | Since SmartDeviceLink 2.0 13 | */ 14 | 15 | NS_ASSUME_NONNULL_BEGIN 16 | 17 | @interface SDLReadDIDResponse : SDLRPCResponse 18 | 19 | /** 20 | Array of requested DID results (with data if available). 21 | */ 22 | @property (nullable, strong, nonatomic) NSArray *didResult; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLIAPDataSessionDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLIAPDataSessionDelegate.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Nicole on 5/13/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @protocol SDLIAPDataSessionDelegate 14 | 15 | - (void)dataSessionDidEnd; 16 | - (void)dataSessionDidReceiveData:(NSData *)data; 17 | - (void)dataSessionDidConnect; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | 23 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDeleteFileResponse.h: -------------------------------------------------------------------------------- 1 | // SDLDeleteFileResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | /** 11 | Response to SDLDeleteFile 12 | 13 | Since SmartDeviceLink 2.0 14 | */ 15 | @interface SDLDeleteFileResponse : SDLRPCResponse 16 | 17 | /** 18 | The remaining available space for your application to store data on the remote system. 19 | */ 20 | @property (nullable, strong, nonatomic) NSNumber *spaceAvailable; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLOnSyncPData.h: -------------------------------------------------------------------------------- 1 | // SDLOnSyncPData.h 2 | // 3 | 4 | 5 | #import "SDLRPCNotification.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | DEPRECATED 11 | */ 12 | __deprecated 13 | @interface SDLOnSyncPData : SDLRPCNotification 14 | 15 | /// The url 16 | /// 17 | /// Optional 18 | @property (nullable, strong, nonatomic) NSString *URL; 19 | 20 | /// How long until a timeout 21 | /// 22 | /// Optional 23 | @property (nullable, strong, nonatomic) NSNumber *Timeout; 24 | 25 | @end 26 | 27 | NS_ASSUME_NONNULL_END 28 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLVehicleDataEventStatus.m: -------------------------------------------------------------------------------- 1 | // SDLVehicleDataEventStatus.m 2 | // 3 | 4 | 5 | #import "SDLVehicleDataEventStatus.h" 6 | 7 | SDLVehicleDataEventStatus const SDLVehicleDataEventStatusNoEvent = @"NO_EVENT"; 8 | SDLVehicleDataEventStatus const SDLVehicleDataEventStatusNo = @"NO"; 9 | SDLVehicleDataEventStatus const SDLVehicleDataEventStatusYes = @"YES"; 10 | SDLVehicleDataEventStatus const SDLVehicleDataEventStatusNotSupported = @"NOT_SUPPORTED"; 11 | SDLVehicleDataEventStatus const SDLVehicleDataEventStatusFault = @"FAULT"; 12 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLVideoStreamingProtocol.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLVideoStreamingProtocol.m 3 | // SmartDeviceLink-iOS 4 | 5 | #import "SDLVideoStreamingProtocol.h" 6 | 7 | SDLVideoStreamingProtocol const SDLVideoStreamingProtocolRAW = @"RAW"; 8 | SDLVideoStreamingProtocol const SDLVideoStreamingProtocolRTP = @"RTP"; 9 | SDLVideoStreamingProtocol const SDLVideoStreamingProtocolRTSP = @"RTSP"; 10 | SDLVideoStreamingProtocol const SDLVideoStreamingProtocolRTMP = @"RTMP"; 11 | SDLVideoStreamingProtocol const SDLVideoStreamingProtocolWebM = @"WEBM"; 12 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/TestUtilities/SDLSpecUtilities.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSpecUtilities.h 3 | // SmartDeviceLinkTests 4 | // 5 | // Created by Joel Fischer on 2/8/18. 6 | // Copyright © 2018 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "NSNumber+NumberType.h" 12 | 13 | @class SDLAddCommandResponse; 14 | @class TestResponse; 15 | 16 | @interface SDLSpecUtilities : NSObject 17 | 18 | + (TestResponse *)addCommandRPCResponseWithCorrelationId:(NSNumber *)correlationId; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/EAAccessory+SDLProtocols.m: -------------------------------------------------------------------------------- 1 | // 2 | // EAAccessory+SyncProtocols.m 3 | // 4 | 5 | #import "EAAccessory+SDLProtocols.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @implementation EAAccessory (SDLProtocols) 10 | 11 | - (BOOL)supportsProtocol:(NSString *)protocol { 12 | for (NSString *supportedProtocol in self.protocolStrings) { 13 | if ([supportedProtocol isEqualToString:protocol]) { 14 | return YES; 15 | } 16 | } 17 | 18 | return NO; 19 | } 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLOnInteriorVehicleData.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLOnInteriorVehicleData.h 3 | // 4 | 5 | #import "SDLRPCNotification.h" 6 | @class SDLModuleData; 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | /** 11 | Notifications when subscribed vehicle data changes. 12 | 13 | See: SDLSubscribeVehicleData 14 | */ 15 | @interface SDLOnInteriorVehicleData : SDLRPCNotification 16 | 17 | /** 18 | The subscribed module data that changed 19 | */ 20 | @property (strong, nonatomic) SDLModuleData *moduleData; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLReleaseInteriorVehicleDataModuleResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLReleaseInteriorVehicleDataModuleResponse.h 3 | // SmartDeviceLink 4 | // 5 | // Created by standa1 on 7/25/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLRPCResponse.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// Response to ReleaseInteriorVehicleDataModule 14 | /// 15 | /// @since RPC 6.0 16 | @interface SDLReleaseInteriorVehicleDataModuleResponse : SDLRPCResponse 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSetInteriorVehicleDataResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSetInteriorVehicleDataResponse.h 3 | // 4 | 5 | #import "SDLRPCResponse.h" 6 | @class SDLModuleData; 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | /** 11 | Response to SDLSetInteriorVehicleData 12 | */ 13 | @interface SDLSetInteriorVehicleDataResponse : SDLRPCResponse 14 | 15 | /** 16 | The new module data for the requested module 17 | 18 | Optional 19 | */ 20 | @property (nullable, strong, nonatomic) SDLModuleData *moduleData; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLIAPConstants.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLIAPConstants.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 4/17/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLIAPConstants.h" 10 | 11 | NSString *const ControlProtocolString = @"com.smartdevicelink.prot0"; 12 | NSString *const IndexedProtocolStringPrefix = @"com.smartdevicelink.prot"; 13 | NSString *const LegacyProtocolString = @"com.ford.sync.prot0"; 14 | NSString *const MultiSessionProtocolString = @"com.smartdevicelink.multisession"; 15 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDiagnosticMessageResponse.h: -------------------------------------------------------------------------------- 1 | // SDLDiagnosticMessageResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | Response to SDLDiagnosticMessage 11 | 12 | Since SmartDeviceLink 3.0 13 | */ 14 | @interface SDLDiagnosticMessageResponse : SDLRPCResponse 15 | 16 | /** 17 | Array of bytes comprising CAN message result. 18 | 19 | Optional 20 | */ 21 | @property (nullable, strong, nonatomic) NSArray *messageDataResult; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLEndAudioPassThru.h: -------------------------------------------------------------------------------- 1 | // SDLEndAudioPassThru.h 2 | // 3 | 4 | 5 | #import "SDLRPCRequest.h" 6 | 7 | /** 8 | * When this request is invoked, the audio capture stops 9 | *

    10 | * Function Group: AudioPassThru 11 | *

    12 | * HMILevel needs to be FULL, LIMITED or BACKGROUND 13 | *

    14 | * Since SmartDeviceLink 2.0
    15 | * see SDLPerformAudioPassThru 16 | */ 17 | 18 | NS_ASSUME_NONNULL_BEGIN 19 | 20 | @interface SDLEndAudioPassThru : SDLRPCRequest 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLFuelType.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLFuelType.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 6/20/18. 6 | // Copyright © 2018 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLFuelType.h" 10 | 11 | SDLFuelType const SDLFuelTypeGasoline = @"GASOLINE"; 12 | SDLFuelType const SDLFuelTypeDiesel = @"DIESEL"; 13 | SDLFuelType const SDLFuelTypeCNG = @"CNG"; 14 | SDLFuelType const SDLFuelTypeLPG = @"LPG"; 15 | SDLFuelType const SDLFuelTypeHydrogen = @"HYDROGEN"; 16 | SDLFuelType const SDLFuelTypeBattery = @"BATTERY"; 17 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLVehicleDataNotificationStatus.m: -------------------------------------------------------------------------------- 1 | // SDLVehicleDataNotificationStatus.m 2 | // 3 | 4 | 5 | #import "SDLVehicleDataNotificationStatus.h" 6 | 7 | SDLVehicleDataNotificationStatus const SDLVehicleDataNotificationStatusNotSupported = @"NOT_SUPPORTED"; 8 | SDLVehicleDataNotificationStatus const SDLVehicleDataNotificationStatusNormal = @"NORMAL"; 9 | SDLVehicleDataNotificationStatus const SDLVehicleDataNotificationStatusActive = @"ACTIVE"; 10 | SDLVehicleDataNotificationStatus const SDLVehicleDataNotificationStatusNotUsed = @"NOT_USED"; 11 | -------------------------------------------------------------------------------- /Example Apps/Shared/Images.xcassets/sdl_logo_green.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "sdl_logo_green.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "sdl_logo_green@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "sdl_logo_green@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSeatLocation.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLSeatLocation.h 3 | // SmartDeviceLink 4 | // 5 | // Created by standa1 on 7/11/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLRPCMessage.h" 10 | #import "SDLGrid.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | /** 15 | * Describes the location of a seat 16 | */ 17 | @interface SDLSeatLocation : SDLRPCStruct 18 | 19 | /** 20 | * Optional 21 | */ 22 | @property (strong, nonatomic, nullable) SDLGrid *grid; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWaypointTypeSpec.m: -------------------------------------------------------------------------------- 1 | // SDLWayPointTypeSpec.m 2 | // 3 | 4 | #import 5 | 6 | #import 7 | #import 8 | 9 | #import "SDLWayPointType.h" 10 | 11 | QuickSpecBegin(SDLWayPointTypeSpec) 12 | 13 | describe(@"Individual Enum Value Tests", ^ { 14 | it(@"Should match internal values", ^ { 15 | expect(SDLWayPointTypeAll).to(equal(@"ALL")); 16 | expect(SDLWayPointTypeDestination).to(equal(@"DESTINATION")); 17 | }); 18 | }); 19 | 20 | QuickSpecEnd 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLCancelInteractionResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLCancelInteractionResponse.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 7/12/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLRPCResponse.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /** 14 | Response to the request to dismiss a modal view. If no applicable request can be dismissed, the `resultCode` will be `IGNORED`. 15 | */ 16 | @interface SDLCancelInteractionResponse : SDLRPCResponse 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLGetWayPointsResponse.h: -------------------------------------------------------------------------------- 1 | // SDLGetWaypointsResponse.h 2 | // 3 | 4 | #import "SDLRPCResponse.h" 5 | 6 | @class SDLLocationDetails; 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | /** 11 | Response to SDLGetWayPoints 12 | */ 13 | @interface SDLGetWayPointsResponse : SDLRPCResponse 14 | 15 | /** 16 | Provides additional human readable info regarding the result. 17 | 18 | Optional, Array size 1 - 10 19 | */ 20 | @property (nullable, strong, nonatomic) NSArray *waypoints; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/DevAPISpecs/SDLFakeStreamingManagerDataSource.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLFakeStreamingManagerDataSource.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Joel Fischer on 9/5/17. 6 | // Copyright © 2017 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "SDLStreamingMediaManagerDataSource.h" 12 | 13 | @interface SDLFakeStreamingManagerDataSource : NSObject 14 | 15 | @property (strong, nonatomic, readonly) SDLVideoStreamingFormat *extraFormat; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLAppCapabilityTypeSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLAppCapabilityTypeSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | #import 8 | #import 9 | 10 | #import "SDLAppCapabilityType.h" 11 | 12 | 13 | QuickSpecBegin(SDLAppCapabilityTypeSpec) 14 | 15 | describe(@"individual enum value tests", ^{ 16 | it(@"should match internal values", ^{ 17 | expect(SDLAppCapabilityTypeVideoStreaming).to(equal(@"VIDEO_STREAMING")); 18 | }); 19 | }); 20 | 21 | QuickSpecEnd 22 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/TestResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // TestResponse.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Nicole on 8/17/17. 6 | // Copyright © 2017 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SDLPutFileResponse.h" 11 | 12 | @interface TestResponse : NSObject 13 | 14 | @property (strong, nonatomic) SDLRPCResponse *testResponse; 15 | @property (strong, nonatomic) NSError *testError; 16 | 17 | - (instancetype)initWithResponse:(SDLRPCResponse *)testResponse error:(NSError *)testError; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/sdl_logo_black.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "sdl_logo_black.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "sdl_logo_black@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "sdl_logo_black@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLPresetBankCapabilities.h: -------------------------------------------------------------------------------- 1 | // SDLPresetBankCapabilities.h 2 | // 3 | 4 | 5 | #import "SDLRPCMessage.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | * Contains information about on-screen preset capabilities. 11 | * 12 | * @since SDL 2.0 13 | */ 14 | @interface SDLPresetBankCapabilities : SDLRPCStruct 15 | 16 | /** 17 | * If Onscreen custom presets are available. 18 | * 19 | * Required, Boolean 20 | */ 21 | @property (strong, nonatomic) NSNumber *onScreenPresetsAvailable; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLTemperatureUnit.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLTemperatureUnit.h 3 | // 4 | 5 | 6 | #import "SDLEnum.h" 7 | 8 | /** 9 | The unit of temperature to display. Used in Temperature. 10 | */ 11 | typedef SDLEnum SDLTemperatureUnit NS_TYPED_ENUM; 12 | 13 | /** 14 | Reflects the current HMI setting for temperature unit in Celsius 15 | */ 16 | extern SDLTemperatureUnit const SDLTemperatureUnitCelsius; 17 | 18 | /** 19 | Reflects the current HMI setting for temperature unit in Fahrenheit 20 | */ 21 | extern SDLTemperatureUnit const SDLTemperatureUnitFahrenheit; 22 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLV2ProtocolMessageSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLV2ProtocolMessageSpec.m 3 | // SmartDeviceLink-iOS 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | #import 11 | 12 | #import "SDLV2ProtocolMessage.h" 13 | #import "SDLV2ProtocolHeader.h" 14 | #import "SDLRPCPayload.h" 15 | #import "SDLRPCParameterNames.h" 16 | 17 | QuickSpecBegin(SDLV2ProtocolMessageSpec) 18 | 19 | describe(@"RPCDictionary Tests", ^ { 20 | 21 | }); 22 | 23 | QuickSpecEnd 24 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLPredefinedWindowsSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLPredefinedWindowsSpec.m 3 | // SmartDeviceLinkTests 4 | 5 | #import 6 | #import 7 | #import "SDLPredefinedWindows.h" 8 | 9 | QuickSpecBegin(SDLPredefinedWindowsSpec) 10 | 11 | describe(@"Individual Enum Value Tests", ^ { 12 | it(@"Should match internal values", ^ { 13 | expect(@(SDLPredefinedWindowsDefaultWindow)).to(equal(0)); 14 | expect(@(SDLPredefinedWindowsPrimaryWidget)).to(equal(1)); 15 | }); 16 | }); 17 | 18 | QuickSpecEnd 19 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLImageTypeSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLImageTypeSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLImageType.h" 12 | 13 | QuickSpecBegin(SDLImageTypeSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLImageTypeStatic).to(equal(@"STATIC")); 18 | expect(SDLImageTypeDynamic).to(equal(@"DYNAMIC")); 19 | }); 20 | }); 21 | 22 | QuickSpecEnd 23 | -------------------------------------------------------------------------------- /generator/templates/enums/template.h.jinja2: -------------------------------------------------------------------------------- 1 | {#- String based enum -#} 2 | {% include 'copyright.jinja2' %} 3 | {% block imports -%} 4 | {%- for import in imports %} 5 | #import "{{import}}.h" 6 | {%- endfor %} 7 | {%- endblock -%} 8 | {%- block body %} 9 | {% include 'description.jinja2' %} 10 | typedef SDLEnum {{ name }} NS_TYPED_ENUM{{ending}}; 11 | {%- for param in params %} 12 | {%- include 'description_param.jinja2' %} 13 | extern {{ name }} const {{ name }}{{param.name}}{{ " __deprecated" if param.deprecated and param.deprecated }}; 14 | {% endfor -%} 15 | {% endblock -%} 16 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLButtonEventMode.h: -------------------------------------------------------------------------------- 1 | // SDLButtonEventMode.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | * Indicates whether the button was depressed or released. A BUTTONUP event will always be preceded by a BUTTONDOWN event. 9 | * 10 | * @since SDL 1.0 11 | */ 12 | typedef SDLEnum SDLButtonEventMode NS_TYPED_ENUM; 13 | 14 | /** 15 | * The button was released 16 | */ 17 | extern SDLButtonEventMode const SDLButtonEventModeButtonUp; 18 | 19 | /** 20 | * The button was depressed 21 | */ 22 | extern SDLButtonEventMode const SDLButtonEventModeButtonDown; 23 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLMassageMode.h: -------------------------------------------------------------------------------- 1 | // SDLMassageMode.h 2 | // 3 | 4 | #import "SDLEnum.h" 5 | 6 | /** 7 | * The List possible modes of a massage zone. 8 | */ 9 | typedef SDLEnum SDLMassageMode NS_TYPED_ENUM; 10 | 11 | /** 12 | * @abstract Massage Mode Status : OFF 13 | */ 14 | extern SDLMassageMode const SDLMassageModeOff; 15 | 16 | /** 17 | * @abstract Massage Mode Status : LOW 18 | */ 19 | extern SDLMassageMode const SDLMassageModeLow; 20 | 21 | /** 22 | * @abstract Massage Mode Status : HIGH 23 | */ 24 | extern SDLMassageMode const SDLMassageModeHigh; 25 | 26 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLLightStatusSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLLightStatusSpec.m 3 | // SmartDeviceLinkTests 4 | // 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLLightStatus.h" 12 | 13 | QuickSpecBegin(SDLLightStatusSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLLightStatusOn).to(equal(@"ON")); 18 | expect(SDLLightStatusOFF).to(equal(@"OFF")); 19 | 20 | }); 21 | }); 22 | 23 | QuickSpecEnd 24 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDimension.h: -------------------------------------------------------------------------------- 1 | // SDLDimension.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | * The supported dimensions of the GPS. Used in GPSData 9 | * 10 | * @since SDL 2.0 11 | */ 12 | typedef SDLEnum SDLDimension NS_TYPED_ENUM; 13 | 14 | /** 15 | * No GPS at all 16 | */ 17 | extern SDLDimension const SDLDimensionNoFix; 18 | 19 | /** 20 | * Longitude and latitude of the GPS 21 | */ 22 | extern SDLDimension const SDLDimension2D; 23 | 24 | /** 25 | * Longitude and latitude and altitude of the GPS 26 | */ 27 | extern SDLDimension const SDLDimension3D; 28 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSoftButtonType.h: -------------------------------------------------------------------------------- 1 | // SDLSoftButtonType.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | SoftButtonType (TEXT / IMAGE / BOTH). Used by SoftButton. 9 | */ 10 | typedef SDLEnum SDLSoftButtonType NS_TYPED_ENUM; 11 | 12 | /** 13 | Text kind Softbutton 14 | */ 15 | extern SDLSoftButtonType const SDLSoftButtonTypeText; 16 | 17 | /** 18 | Image kind Softbutton 19 | */ 20 | extern SDLSoftButtonType const SDLSoftButtonTypeImage; 21 | 22 | /** 23 | Both (Text & Image) kind Softbutton 24 | */ 25 | extern SDLSoftButtonType const SDLSoftButtonTypeBoth; 26 | -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_up_black.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "lock_arrow_up_black.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "lock_arrow_up_black@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "lock_arrow_up_black@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLAlertAudioData.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLAlertAudioData.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 11/9/20. 6 | // Copyright © 2020 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLAlertAudioData.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @implementation SDLAlertAudioData 14 | 15 | #pragma mark - NSCopying 16 | 17 | - (id)copyWithZone:(nullable NSZone *)zone { 18 | SDLAlertAudioData *new = [super copyWithZone:zone]; 19 | new->_playTone = _playTone; 20 | return new; 21 | } 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLRadioBand.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLRadioBand.h 3 | // 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | Radio bands, such as AM and FM, used in RadioControlData 9 | */ 10 | typedef SDLEnum SDLRadioBand NS_TYPED_ENUM; 11 | 12 | /** 13 | * Represents AM radio band 14 | */ 15 | extern SDLRadioBand const SDLRadioBandAM NS_SWIFT_NAME(am); 16 | 17 | /** 18 | * Represents FM radio band 19 | */ 20 | extern SDLRadioBand const SDLRadioBandFM NS_SWIFT_NAME(fm); 21 | 22 | /** 23 | * Represents XM radio band 24 | */ 25 | extern SDLRadioBand const SDLRadioBandXM NS_SWIFT_NAME(xm); 26 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/LoggingSpecs/TestLogTarget.h: -------------------------------------------------------------------------------- 1 | // 2 | // TestLogTarget.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Joel Fischer on 3/7/17. 6 | // Copyright © 2017 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "SDLLogTarget.h" 12 | 13 | @class SDLLogModel; 14 | 15 | 16 | @interface TestLogTarget : NSObject 17 | 18 | @property (strong, nonatomic, readonly) NSArray *loggedMessages; 19 | @property (strong, nonatomic, readonly) NSArray *formattedLogMessages; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLBitsPerSampleSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLBitsPerSampleSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLBitsPerSample.h" 12 | 13 | QuickSpecBegin(SDLBitsPerSampleSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLBitsPerSample8Bit).to(equal(@"8_BIT")); 18 | expect(SDLBitsPerSample16Bit).to(equal(@"16_BIT")); 19 | }); 20 | }); 21 | 22 | QuickSpecEnd 23 | -------------------------------------------------------------------------------- /Example Apps/Example ObjC/RPCPermissionsManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // RPCPermissionsManager.h 3 | // SmartDeviceLink-Example-ObjC 4 | // 5 | // Created by Nicole on 5/11/18. 6 | // Copyright © 2018 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SmartDeviceLink.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface RPCPermissionsManager : NSObject 15 | 16 | + (void)setupPermissionsCallbacksWithManager:(SDLManager *)manager; 17 | + (BOOL)isDialNumberRPCAllowedWithManager:(SDLManager *)manager; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_down_black.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "lock_arrow_down_black.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "lock_arrow_down_black@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "lock_arrow_down_black@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_left_black.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "lock_arrow_left_black.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "lock_arrow_left_black@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "lock_arrow_left_black@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLLockScreenConstants.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLLockScreenConstants.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Nicole on 9/4/20. 6 | // Copyright © 2020 smartdevicelink. All rights reserved. 7 | // 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | /// Describes the status of the lock screen 12 | typedef NS_ENUM(NSUInteger, SDLLockScreenStatus) { 13 | SDLLockScreenStatusOff, // LockScreen is not required 14 | SDLLockScreenStatusOptional, // LockScreen is optional 15 | SDLLockScreenStatusRequired // LockScreen is required 16 | }; 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDisplayMode.h: -------------------------------------------------------------------------------- 1 | // SDLDisplayMode.h 2 | // 3 | 4 | #import "SDLEnum.h" 5 | 6 | /** 7 | * Identifies the various display types used by SDL. 8 | * 9 | * @since SDL 1.0 10 | */ 11 | typedef SDLEnum SDLDisplayMode NS_TYPED_ENUM; 12 | 13 | /** 14 | * @abstract Display Mode : DAY 15 | */ 16 | extern SDLDisplayMode const SDLDisplayModeDay; 17 | 18 | /** 19 | * @abstract Display Mode : NIGHT. 20 | */ 21 | extern SDLDisplayMode const SDLDisplayModeNight; 22 | 23 | /** 24 | * @abstract Display Mode : AUTO. 25 | */ 26 | extern SDLDisplayMode const SDLDisplayModeAuto; 27 | -------------------------------------------------------------------------------- /Example Apps/Example ObjC/AudioManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // AudioManager.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 4/23/18. 6 | // Copyright © 2018 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class SDLManager; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface AudioManager : NSObject 16 | 17 | - (instancetype)init NS_UNAVAILABLE; 18 | - (instancetype)initWithManager:(SDLManager *)manager; 19 | - (void)stopManager; 20 | 21 | - (void)startRecording; 22 | - (void)stopRecording; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /SmartDeviceLink/Assets/SDLAssets.xcassets/lock_arrow_right_black.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "lock_arrow_right_black.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "lock_arrow_right_black@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "lock_arrow_right_black@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLPowerModeQualificationStatus.m: -------------------------------------------------------------------------------- 1 | // SDLPowerModeQualificationStatus.m 2 | // 3 | 4 | 5 | #import "SDLPowerModeQualificationStatus.h" 6 | 7 | SDLPowerModeQualificationStatus const SDLPowerModeQualificationStatusUndefined = @"POWER_MODE_UNDEFINED"; 8 | SDLPowerModeQualificationStatus const SDLPowerModeQualificationStatusEvaluationInProgress = @"POWER_MODE_EVALUATION_IN_PROGRESS"; 9 | SDLPowerModeQualificationStatus const SDLPowerModeQualificationStatusNotDefined = @"NOT_DEFINED"; 10 | SDLPowerModeQualificationStatus const SDLPowerModeQualificationStatusOk = @"POWER_MODE_OK"; 11 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonPressModeSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLButtonPressModeSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLButtonPressMode.h" 12 | 13 | QuickSpecBegin(SDLButtonPressModeSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLButtonPressModeLong).to(equal(@"LONG")); 18 | expect(SDLButtonPressModeShort).to(equal(@"SHORT")); 19 | }); 20 | }); 21 | 22 | QuickSpecEnd 23 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDistanceUnitSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDistanceUnitSpec.m 3 | // SmartDeviceLinkTests 4 | // 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLDistanceUnit.h" 12 | 13 | QuickSpecBegin(SDLDistanceUnitSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLDistanceUnitMiles).to(equal(@"MILES")); 18 | expect(SDLDistanceUnitKilometers).to(equal(@"KILOMETERS")); 19 | }); 20 | }); 21 | 22 | QuickSpecEnd 23 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMassageZoneSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLMassageZoneSpec.m 3 | // SmartDeviceLinkTests 4 | // 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLMassageZone.h" 12 | 13 | QuickSpecBegin(SDLMassageZoneSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLMassageZoneLumbar).to(equal(@"LUMBAR")); 18 | expect(SDLMassageZoneSeatCushion).to(equal(@"SEAT_CUSHION")); 19 | }); 20 | }); 21 | 22 | QuickSpecEnd 23 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLEnum.h: -------------------------------------------------------------------------------- 1 | // SDLEnum.h 2 | // 3 | 4 | 5 | #import 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /// NSString SDLEnum typedef 10 | typedef NSString* SDLEnum NS_TYPED_ENUM; 11 | 12 | /// Extensions to NSString specifically for SDL string enums 13 | @interface NSString (SDLEnum) 14 | 15 | /** 16 | * Returns whether or not two enums are equal. 17 | * 18 | * @param enumObj A SDLEnum object 19 | * @return YES if the two enums are equal. NO if not. 20 | */ 21 | - (BOOL)isEqualToEnum:(SDLEnum)enumObj; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLHMIZoneCapabilities.h: -------------------------------------------------------------------------------- 1 | // SDLHmiZoneCapabilities.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | * Specifies HMI Zones in the vehicle. Used in RegisterAppInterfaceResponse 9 | * 10 | * @since SDL 1.0 11 | */ 12 | typedef SDLEnum SDLHMIZoneCapabilities NS_TYPED_ENUM; 13 | 14 | /** 15 | * Indicates HMI available for front seat passengers. 16 | */ 17 | extern SDLHMIZoneCapabilities const SDLHMIZoneCapabilitiesFront; 18 | 19 | /** 20 | * Indicates HMI available for rear seat passengers. 21 | */ 22 | extern SDLHMIZoneCapabilities const SDLHMIZoneCapabilitiesBack; 23 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLImageType.h: -------------------------------------------------------------------------------- 1 | // SDLImageType.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | Contains information about the type of image. Used in Image. 9 | 10 | @since SDL 2.0 11 | */ 12 | typedef SDLEnum SDLImageType NS_TYPED_ENUM; 13 | 14 | /** 15 | Activate an icon that shipped with the IVI system by passing a hex value. 16 | */ 17 | extern SDLImageType const SDLImageTypeStatic; 18 | 19 | /** 20 | An icon referencing an image uploaded by the app (identifier to be sent by SDLPutFile) 21 | 22 | @see SDLPutFile 23 | */ 24 | extern SDLImageType const SDLImageTypeDynamic; 25 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSpeechCapabilities.m: -------------------------------------------------------------------------------- 1 | // SDLSpeechCapabilities.m 2 | // 3 | 4 | 5 | #import "SDLSpeechCapabilities.h" 6 | 7 | SDLSpeechCapabilities const SDLSpeechCapabilitiesText = @"TEXT"; 8 | SDLSpeechCapabilities const SDLSpeechCapabilitiesSAPIPhonemes = @"SAPI_PHONEMES"; 9 | SDLSpeechCapabilities const SDLSpeechCapabilitiesLHPlusPhonemes = @"LHPLUS_PHONEMES"; 10 | SDLSpeechCapabilities const SDLSpeechCapabilitiesPrerecorded = @"PRE_RECORDED"; 11 | SDLSpeechCapabilities const SDLSpeechCapabilitiesSilence = @"SILENCE"; 12 | SDLSpeechCapabilities const SDLSpeechCapabilitiesFile = @"FILE"; 13 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLWindowType.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLWindowType.h 3 | // SmartDeviceLink 4 | 5 | #import "SDLEnum.h" 6 | /** 7 | The type of the window to be created. Main window or widget. 8 | 9 | @since SDL 6.0 10 | */ 11 | typedef SDLEnum SDLWindowType NS_TYPED_ENUM; 12 | 13 | /** 14 | This window type describes the main window on a display. 15 | */ 16 | extern SDLWindowType const SDLWindowTypeMain; 17 | 18 | /** 19 | A widget is a small window that the app can create to provide information and soft buttons for quick app control. 20 | */ 21 | extern SDLWindowType const SDLWindowTypeWidget; 22 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLRadioBandSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLRadioBandSpec.m 3 | // SmartDeviceLink-iOS 4 | 5 | #import 6 | 7 | #import 8 | #import 9 | 10 | #import "SDLRadioBand.h" 11 | 12 | QuickSpecBegin(SDLRadioBandSpec) 13 | 14 | describe(@"Individual Enum Value Tests", ^ { 15 | it(@"Should match internal values", ^ { 16 | expect(SDLRadioBandAM).to(equal(@"AM")); 17 | expect(SDLRadioBandFM).to(equal(@"FM")); 18 | expect(SDLRadioBandXM).to(equal(@"XM")); 19 | }); 20 | }); 21 | 22 | QuickSpecEnd 23 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLReleaseInteriorVehicleDataModuleResponseSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLReleaseInteriorVehicleDataModuleResponseSpec.m 3 | // SmartDeviceLinkTests 4 | // 5 | // Created by standa1 on 7/29/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | #import 9 | 10 | #import 11 | #import 12 | 13 | #import "SDLReleaseInteriorVehicleDataModuleResponse.h" 14 | #import "SDLRPCParameterNames.h" 15 | 16 | QuickSpecBegin(SDLReleaseInteriorVehicleDataModuleResponseSpec) 17 | 18 | QuickSpecEnd 19 | 20 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/TestStreamingMediaDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // TestStreamingMediaDelegate.h 3 | // SmartDeviceLinkTests 4 | // 5 | // Created by Leonid Lokhmatov on 8/24/20. 6 | // Copyright © 2018 Luxoft. All rights reserved 7 | // 8 | 9 | #import 10 | #import "SDLStreamingVideoDelegate.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface TestStreamingMediaDelegate : NSObject 15 | @property (nonatomic, readonly) NSArray *recordedSizes; 16 | @property (nonatomic, assign) BOOL isStopped; 17 | - (void)reset; 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/TestUtilities/TestMultipleRequestsConnectionManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // TestMultipleRequestsConnectionManager.h 3 | // SmartDeviceLinkTests 4 | // 5 | // Created by Joel Fischer on 2/8/18. 6 | // Copyright © 2018 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "TestConnectionManager.h" 12 | 13 | @interface TestMultipleRequestsConnectionManager : TestConnectionManager 14 | 15 | /** 16 | * A response and error to pass into the last request's block 17 | */ 18 | @property (copy, nonatomic) NSMutableDictionary *responses; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLObjectWithPriority.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLObjectWithPriority.h 3 | // SmartDeviceLink 4 | // 5 | 6 | #import 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface SDLObjectWithPriority : NSObject 11 | 12 | @property (nullable, strong, nonatomic) id object; 13 | @property (assign, nonatomic) NSInteger priority; 14 | 15 | - (instancetype)initWithObject:(nullable id)object priority:(NSInteger)priority NS_DESIGNATED_INITIALIZER; 16 | 17 | + (instancetype)objectWithObject:(nullable id)object priority:(NSInteger)priority; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLButtonPressResponse.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLButtonPressResponse.m 3 | // 4 | 5 | #import "SDLButtonPressResponse.h" 6 | #import "SDLRPCParameterNames.h" 7 | #import "SDLRPCFunctionNames.h" 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @implementation SDLButtonPressResponse 12 | 13 | #pragma clang diagnostic push 14 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 15 | - (instancetype)init { 16 | if (self = [super initWithName:SDLRPCFunctionNameButtonPress]) { 17 | } 18 | return self; 19 | } 20 | #pragma clang diagnostic pop 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDeviceLevelStatus.m: -------------------------------------------------------------------------------- 1 | // SDLDeviceLevelStatus.m 2 | // 3 | 4 | 5 | #import "SDLDeviceLevelStatus.h" 6 | 7 | SDLDeviceLevelStatus const SDLDeviceLevelStatusZeroBars = @"ZERO_LEVEL_BARS"; 8 | SDLDeviceLevelStatus const SDLDeviceLevelStatusOneBar = @"ONE_LEVEL_BARS"; 9 | SDLDeviceLevelStatus const SDLDeviceLevelStatusTwoBars = @"TWO_LEVEL_BARS"; 10 | SDLDeviceLevelStatus const SDLDeviceLevelStatusThreeBars = @"THREE_LEVEL_BARS"; 11 | SDLDeviceLevelStatus const SDLDeviceLevelStatusFourBars = @"FOUR_LEVEL_BARS"; 12 | SDLDeviceLevelStatus const SDLDeviceLevelStatusNotProvided = @"NOT_PROVIDED"; 13 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLPutFileResponse.h: -------------------------------------------------------------------------------- 1 | // SDLPutFileResponse.h 2 | // 3 | 4 | 5 | #import "SDLRPCResponse.h" 6 | 7 | /** 8 | Response to SDLPutFile 9 | 10 | Since SmartDeviceLink 2.0 11 | */ 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface SDLPutFileResponse : SDLRPCResponse 16 | 17 | /** 18 | * Provides the total local space available in SDL Core for the registered app. If the transfer has systemFile enabled, then the value will be set to 0 automatically. 19 | */ 20 | @property (nullable, strong, nonatomic) NSNumber *spaceAvailable; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDimensionSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDimensionSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLDimension.h" 12 | 13 | QuickSpecBegin(SDLDimensionSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLDimensionNoFix).to(equal(@"NO_FIX")); 18 | expect(SDLDimension2D).to(equal(@"2D")); 19 | expect(SDLDimension3D).to(equal(@"3D")); 20 | }); 21 | }); 22 | 23 | QuickSpecEnd 24 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTimerModeSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLTimerModeSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLTimerMode.h" 12 | 13 | QuickSpecBegin(SDLTimerModeSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLTimerModeUp).to(equal(@"UP")); 18 | expect(SDLTimerModeDown).to(equal(@"DOWN")); 19 | expect(SDLTimerModeNone).to(equal(@"NONE")); 20 | }); 21 | }); 22 | 23 | QuickSpecEnd 24 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLComponentVolumeStatus.m: -------------------------------------------------------------------------------- 1 | // SDLComponentVolumeStatus.m 2 | // 3 | 4 | 5 | #import "SDLComponentVolumeStatus.h" 6 | 7 | SDLComponentVolumeStatus const SDLComponentVolumeStatusUnknown = @"UNKNOWN"; 8 | SDLComponentVolumeStatus const SDLComponentVolumeStatusNormal = @"NORMAL"; 9 | SDLComponentVolumeStatus const SDLComponentVolumeStatusLow = @"LOW"; 10 | SDLComponentVolumeStatus const SDLComponentVolumeStatusFault = @"FAULT"; 11 | SDLComponentVolumeStatus const SDLComponentVolumeStatusAlert = @"ALERT"; 12 | SDLComponentVolumeStatus const SDLComponentVolumeStatusNotSupported = @"NOT_SUPPORTED"; 13 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLListFiles.m: -------------------------------------------------------------------------------- 1 | // SDLListFiles.m 2 | // 3 | 4 | 5 | #import "SDLListFiles.h" 6 | 7 | #import "NSMutableDictionary+Store.h" 8 | #import "SDLRPCParameterNames.h" 9 | #import "SDLRPCFunctionNames.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @implementation SDLListFiles 14 | 15 | #pragma clang diagnostic push 16 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 17 | - (instancetype)init { 18 | if (self = [super initWithName:SDLRPCFunctionNameListFiles]) { 19 | } 20 | return self; 21 | } 22 | #pragma clang diagnostic pop 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLButtonEventModeSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLButtonEventModeSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLButtonEventMode.h" 12 | 13 | QuickSpecBegin(SDLButtonEventModeSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLButtonEventModeButtonUp).to(equal(@"BUTTONUP")); 18 | expect(SDLButtonEventModeButtonDown).to(equal(@"BUTTONDOWN")); 19 | }); 20 | }); 21 | 22 | QuickSpecEnd 23 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLEncryptionManagerConstants.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLEncryptionManagerConstants.m 3 | // SmartDeviceLink 4 | // 5 | // Created by standa1 on 6/28/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLEncryptionManagerConstants.h" 10 | 11 | SDLEncryptionLifecycleManagerState *const SDLEncryptionLifecycleManagerStateStopped = @"EncryptionStopped"; 12 | SDLEncryptionLifecycleManagerState *const SDLEncryptionLifecycleManagerStateStarting = @"EncryptionStarting"; 13 | SDLEncryptionLifecycleManagerState *const SDLEncryptionLifecycleManagerStateReady = @"EncryptionReady"; 14 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLIAPControlSessionDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLIAPControlSessionDelegate.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Nicole on 5/13/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class SDLIAPControlSession; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @protocol SDLIAPControlSessionDelegate 16 | 17 | - (void)controlSessionDidEnd; 18 | - (void)controlSession:(SDLIAPControlSession *)controlSession didReceiveProtocolString:(NSString *)protocolString; 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | 24 | -------------------------------------------------------------------------------- /SmartDeviceLink/private/SDLTransportDelegate.h: -------------------------------------------------------------------------------- 1 | // SDLTransportDelegate.h 2 | // 3 | 4 | NS_ASSUME_NONNULL_BEGIN 5 | 6 | @protocol SDLTransportDelegate 7 | 8 | /** 9 | * The transport connected to Core 10 | */ 11 | - (void)onTransportConnected; 12 | 13 | /** 14 | * The transport disconnected from Core 15 | */ 16 | - (void)onTransportDisconnected; 17 | 18 | /** 19 | * Data received from Core 20 | * 21 | * @param receivedData The data received from Core 22 | */ 23 | - (void)onDataReceived:(NSData *)receivedData; 24 | - (void)onError:(NSError *)error; 25 | 26 | @end 27 | 28 | NS_ASSUME_NONNULL_END 29 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLCreateWindowResponse.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLCreateWindowResponse.m 3 | // SmartDeviceLink 4 | 5 | #import "SDLCreateWindowResponse.h" 6 | 7 | #import "NSMutableDictionary+Store.h" 8 | #import "SDLRPCParameterNames.h" 9 | #import "SDLRPCFunctionNames.h" 10 | 11 | @implementation SDLCreateWindowResponse 12 | 13 | 14 | #pragma clang diagnostic push 15 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 16 | - (instancetype)init { 17 | if (self = [super initWithName:SDLRPCFunctionNameCreateWindow]) { 18 | } 19 | return self; 20 | } 21 | #pragma clang diagnostic pop 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLLogTargetFile.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLLogTargetFile.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Joel Fischer on 2/28/17. 6 | // Copyright © 2017 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "SDLLogTarget.h" 12 | 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | /** 17 | The File log will log to a text file on the iPhone in Documents/smartdevicelink/log/#appName##datetime##.log. It will log up to 3 logs which will rollover. 18 | */ 19 | @interface SDLLogTargetFile : NSObject 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLScrollableMessageResponse.m: -------------------------------------------------------------------------------- 1 | // SDLScrollableMessageResponse.m 2 | // 3 | 4 | 5 | #import "SDLScrollableMessageResponse.h" 6 | 7 | #import "NSMutableDictionary+Store.h" 8 | #import "SDLRPCParameterNames.h" 9 | #import "SDLRPCFunctionNames.h" 10 | 11 | @implementation SDLScrollableMessageResponse 12 | 13 | #pragma clang diagnostic push 14 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 15 | - (instancetype)init { 16 | if (self = [super initWithName:SDLRPCFunctionNameScrollableMessage]) { 17 | } 18 | return self; 19 | } 20 | #pragma clang diagnostic pop 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLShowResponse.m: -------------------------------------------------------------------------------- 1 | // SDLShowResponse.m 2 | // 3 | 4 | 5 | #import "SDLShowResponse.h" 6 | 7 | #import "NSMutableDictionary+Store.h" 8 | #import "SDLRPCParameterNames.h" 9 | #import "SDLRPCFunctionNames.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @implementation SDLShowResponse 14 | 15 | #pragma clang diagnostic push 16 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 17 | - (instancetype)init { 18 | if (self = [super initWithName:SDLRPCFunctionNameShow]) { 19 | } 20 | return self; 21 | } 22 | #pragma clang diagnostic pop 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLTouchCoord.h: -------------------------------------------------------------------------------- 1 | // SDLTouchCoord.h 2 | // 3 | 4 | 5 | #import "SDLRPCMessage.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /** 10 | The coordinate of a touch, used in a touch event 11 | */ 12 | @interface SDLTouchCoord : SDLRPCStruct 13 | 14 | /** 15 | The x value of the touch coordinate 16 | 17 | Required, float 0 - 10000 18 | */ 19 | @property (strong, nonatomic) NSNumber *x; 20 | 21 | /** 22 | The y value of the touch coordinate 23 | 24 | Required, float 0 - 10000 25 | */ 26 | @property (strong, nonatomic) NSNumber *y; 27 | 28 | @end 29 | 30 | NS_ASSUME_NONNULL_END 31 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLHMIZoneCapabilitiesSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLHMIZoneCapabilitiesSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLHMIZoneCapabilities.h" 12 | 13 | QuickSpecBegin(SDLHMIZoneCapabilitiesSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLHMIZoneCapabilitiesFront).to(equal(@"FRONT")); 18 | expect(SDLHMIZoneCapabilitiesBack).to(equal(@"BACK")); 19 | }); 20 | }); 21 | 22 | QuickSpecEnd 23 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLTemperatureUnitSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLTemperatureUnitSpec.m 3 | // SmartDeviceLink-iOS 4 | // 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLTemperatureUnit.h" 12 | 13 | QuickSpecBegin(SDLTemperatureUnitSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLTemperatureUnitCelsius).to(equal(@"CELSIUS")); 18 | expect(SDLTemperatureUnitFahrenheit).to(equal(@"FAHRENHEIT")); 19 | }); 20 | }); 21 | 22 | QuickSpecEnd 23 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLOnWayPointChange.h: -------------------------------------------------------------------------------- 1 | // SDLOnWayPointChange.h 2 | // 3 | 4 | #import "SDLRPCNotification.h" 5 | 6 | @class SDLLocationDetails; 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | /** 11 | Notification which provides the entire LocationDetails when there is a change to any waypoints or destination. 12 | */ 13 | @interface SDLOnWayPointChange : SDLRPCNotification 14 | 15 | /** 16 | Location address for display purposes only 17 | 18 | Required, Array of Strings, Array size 1 - 10 19 | */ 20 | @property (copy, nonatomic) NSArray *waypoints; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSpeakResponse.m: -------------------------------------------------------------------------------- 1 | // SDLSpeakResponse.m 2 | // 3 | 4 | 5 | #import "SDLSpeakResponse.h" 6 | 7 | #import "NSMutableDictionary+Store.h" 8 | #import "SDLRPCParameterNames.h" 9 | #import "SDLRPCFunctionNames.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @implementation SDLSpeakResponse 14 | 15 | #pragma clang diagnostic push 16 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 17 | - (instancetype)init { 18 | if (self = [super initWithName:SDLRPCFunctionNameSpeak]) { 19 | } 20 | return self; 21 | } 22 | #pragma clang diagnostic pop 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLVehicleDataStatus.h: -------------------------------------------------------------------------------- 1 | // SDLVehicleDataStatus.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | * Reflects the status of a binary vehicle data item. Used in MyKey. 9 | * 10 | * @since SDL 2.0 11 | */ 12 | typedef SDLEnum SDLVehicleDataStatus NS_TYPED_ENUM; 13 | 14 | /** 15 | No data available 16 | */ 17 | extern SDLVehicleDataStatus const SDLVehicleDataStatusNoDataExists; 18 | 19 | /** 20 | The status is Off 21 | */ 22 | extern SDLVehicleDataStatus const SDLVehicleDataStatusOff; 23 | 24 | /** 25 | The status is On 26 | */ 27 | extern SDLVehicleDataStatus const SDLVehicleDataStatusOn; 28 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDeliveryModeSpec.m: -------------------------------------------------------------------------------- 1 | // SDLDeliverModeSpec.m 2 | // 3 | 4 | #import 5 | 6 | #import 7 | #import 8 | 9 | #import "SDLDeliveryMode.h" 10 | 11 | QuickSpecBegin(SDLDeliveryModeSpec) 12 | 13 | describe(@"Individual Enum Value Tests", ^ { 14 | it(@"Should match internal values", ^ { 15 | expect(SDLDeliveryModePrompt).to(equal(@"PROMPT")); 16 | expect(SDLDeliveryModeDestination).to(equal(@"DESTINATION")); 17 | expect(SDLDeliveryModeQueue).to(equal(@"QUEUE")); 18 | }); 19 | }); 20 | 21 | QuickSpecEnd 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLCloseApplication.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDLCloseApplication.h 3 | // SmartDeviceLink 4 | // 5 | // Created by Nicole on 7/9/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLRPCRequest.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /** 14 | * Used by an app to set itself to a `HMILevel` of `NONE`. The app will close but will still be registered. If the app is a navigation app it will no longer be used as the preferred mobile-navigation application by the module. 15 | */ 16 | @interface SDLCloseApplication : SDLRPCRequest 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDriverDistractionState.h: -------------------------------------------------------------------------------- 1 | // SDLDriverDistractionState.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | * Enumeration that describes possible states of driver distraction. Used in OnDriverDistraction. 9 | * 10 | * @since SDL 1.0 11 | */ 12 | typedef SDLEnum SDLDriverDistractionState NS_TYPED_ENUM; 13 | 14 | /** 15 | * Driver distraction rules are in effect. 16 | */ 17 | extern SDLDriverDistractionState const SDLDriverDistractionStateOn; 18 | 19 | /** 20 | * Driver distraction rules are NOT in effect. 21 | */ 22 | extern SDLDriverDistractionState const SDLDriverDistractionStateOff; 23 | 24 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLCapacityUnitSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLCapacityUnitSpec.m 3 | // SmartDeviceLinkTests 4 | // 5 | 6 | #import 7 | #import 8 | 9 | #import "SDLCapacityUnit.h" 10 | 11 | QuickSpecBegin(SDLCapacityUnitSpec) 12 | 13 | describe(@"Individual Enum Value Tests", ^ { 14 | it(@"Should match internal values", ^ { 15 | expect(SDLCapacityUnitKilograms).to(equal(@"KILOGRAMS")); 16 | expect(SDLCapacityUnitKilowatthours).to(equal(@"KILOWATTHOURS")); 17 | expect(SDLCapacityUnitLiters).to(equal(@"LITERS")); 18 | }); 19 | }); 20 | 21 | QuickSpecEnd 22 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLMediaClockFormat.m: -------------------------------------------------------------------------------- 1 | // SDLMediaClockFormat.m 2 | // 3 | 4 | 5 | #import "SDLMediaClockFormat.h" 6 | 7 | SDLMediaClockFormat const SDLMediaClockFormatClock1 = @"CLOCK1"; 8 | SDLMediaClockFormat const SDLMediaClockFormatClock2 = @"CLOCK2"; 9 | SDLMediaClockFormat const SDLMediaClockFormatClock3 = @"CLOCK3"; 10 | SDLMediaClockFormat const SDLMediaClockFormatClockText1 = @"CLOCKTEXT1"; 11 | SDLMediaClockFormat const SDLMediaClockFormatClockText2 = @"CLOCKTEXT2"; 12 | SDLMediaClockFormat const SDLMediaClockFormatClockText3 = @"CLOCKTEXT3"; 13 | SDLMediaClockFormat const SDLMediaClockFormatClockText4 = @"CLOCKTEXT4"; 14 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDirectionSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDirectionSpec.m 3 | // SmartDeviceLinkTests 4 | // 5 | // Created by Nicole on 2/22/19. 6 | // Copyright © 2019 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | #import "SDLDirection.h" 13 | 14 | QuickSpecBegin(SDLDirectionSpec) 15 | 16 | describe(@"Individual Enum Value Tests", ^ { 17 | it(@"Should match internal values", ^ { 18 | expect(SDLDirectionLeft).to(equal(@"LEFT")); 19 | expect(SDLDirectionRight).to(equal(@"RIGHT")); 20 | }); 21 | }); 22 | 23 | QuickSpecEnd 24 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDisplayModeSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDisplayModeSpec.m 3 | // SmartDeviceLinkTests 4 | // 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLDisplayMode.h" 12 | 13 | QuickSpecBegin(SDLDisplayModeSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLDisplayModeDay).to(equal(@"DAY")); 18 | expect(SDLDisplayModeNight).to(equal(@"NIGHT")); 19 | expect(SDLDisplayModeAuto).to(equal(@"AUTO")); 20 | }); 21 | }); 22 | 23 | QuickSpecEnd 24 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDriverDistractionStateSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLDriverDistractionStateSpec.m 3 | // SmartDeviceLink 4 | 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLDriverDistractionState.h" 12 | 13 | QuickSpecBegin(SDLDriverDistractionStateSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLDriverDistractionStateOff).to(equal(@"DD_OFF")); 18 | expect(SDLDriverDistractionStateOn).to(equal(@"DD_ON")); 19 | }); 20 | }); 21 | 22 | QuickSpecEnd 23 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMassageModeSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLMassageModeSpec.m 3 | // SmartDeviceLinkTests 4 | // 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLMassageMode.h" 12 | 13 | QuickSpecBegin(SDLMassageModeSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLMassageModeOff).to(equal(@"OFF")); 18 | expect(SDLMassageModeLow).to(equal(@"LOW")); 19 | expect(SDLMassageModeHigh).to(equal(@"HIGH")); 20 | }); 21 | }); 22 | 23 | QuickSpecEnd 24 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/TestMultipleFilesConnectionManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // TestMultipleFilesConnectionManager.h 3 | // SmartDeviceLink-iOS 4 | // 5 | // Created by Nicole on 8/16/17. 6 | // Copyright © 2017 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "TestConnectionManager.h" 10 | #import "SDLPutFileResponse.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface TestMultipleFilesConnectionManager : TestConnectionManager 15 | 16 | /** 17 | * A response and error to pass into the last request's block 18 | */ 19 | @property (copy, nonatomic) NSMutableDictionary *responses; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLAddCommandResponse.m: -------------------------------------------------------------------------------- 1 | // SDLAddCommandResponse.m 2 | 3 | #import "SDLAddCommandResponse.h" 4 | 5 | #import "NSMutableDictionary+Store.h" 6 | #import "SDLRPCParameterNames.h" 7 | #import "SDLRPCFunctionNames.h" 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @implementation SDLAddCommandResponse 12 | 13 | #pragma clang diagnostic push 14 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 15 | - (instancetype)init { 16 | if (self = [super initWithName:SDLRPCFunctionNameAddCommand]) { 17 | } 18 | return self; 19 | } 20 | #pragma clang diagnostic pop 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLAddSubMenuResponse.m: -------------------------------------------------------------------------------- 1 | // SDLAddSubMenuResponse.m 2 | 3 | #import "SDLAddSubMenuResponse.h" 4 | 5 | #import "NSMutableDictionary+Store.h" 6 | #import "SDLRPCParameterNames.h" 7 | #import "SDLRPCFunctionNames.h" 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @implementation SDLAddSubMenuResponse 12 | 13 | #pragma clang diagnostic push 14 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 15 | - (instancetype)init { 16 | if (self = [super initWithName:SDLRPCFunctionNameAddSubMenu]) { 17 | } 18 | return self; 19 | } 20 | #pragma clang diagnostic pop 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLOnKeyboardInput.h: -------------------------------------------------------------------------------- 1 | // SDLOnKeyboardInput.h 2 | // 3 | 4 | #import "SDLRPCNotification.h" 5 | 6 | #import "SDLKeyboardEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | /** 11 | Sent when a keyboard presented by a PerformInteraction has a keyboard input. 12 | */ 13 | @interface SDLOnKeyboardInput : SDLRPCNotification 14 | 15 | /** 16 | The type of keyboard input 17 | */ 18 | @property (strong, nonatomic) SDLKeyboardEvent event; 19 | 20 | /** 21 | The current keyboard string input from the user 22 | */ 23 | @property (nullable, strong, nonatomic) NSString *data; 24 | 25 | @end 26 | 27 | NS_ASSUME_NONNULL_END 28 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLTextAlignment.h: -------------------------------------------------------------------------------- 1 | // SDLTextAlignment.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | * The list of possible alignments of text in a field. May only work on some display types. used in Show. 9 | * 10 | * @since SDL 1.0 11 | */ 12 | typedef SDLEnum SDLTextAlignment NS_TYPED_ENUM; 13 | 14 | /** 15 | * Text aligned left. 16 | */ 17 | extern SDLTextAlignment const SDLTextAlignmentLeft; 18 | 19 | /** 20 | * Text aligned right. 21 | */ 22 | extern SDLTextAlignment const SDLTextAlignmentRight; 23 | 24 | /** 25 | * Text aligned centered. 26 | */ 27 | extern SDLTextAlignment const SDLTextAlignmentCenter; 28 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLModuleTypeSpec.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLModuleTypeSpec.m 3 | // SmartDeviceLinkTests 4 | // 5 | 6 | #import 7 | 8 | #import 9 | #import 10 | 11 | #import "SDLModuleType.h" 12 | 13 | QuickSpecBegin(SDLModuleTypeSpec) 14 | 15 | describe(@"Individual Enum Value Tests", ^ { 16 | it(@"Should match internal values", ^ { 17 | expect(SDLModuleTypeRadio).to(equal(@"RADIO")); 18 | expect(SDLModuleTypeClimate).to(equal(@"CLIMATE")); 19 | expect(SDLModuleTypeSeat).to(equal(@"SEAT")); 20 | }); 21 | }); 22 | 23 | QuickSpecEnd 24 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLGenericResponse.m: -------------------------------------------------------------------------------- 1 | // SDLGenericResponse.m 2 | // 3 | 4 | 5 | #import "SDLGenericResponse.h" 6 | 7 | #import "NSMutableDictionary+Store.h" 8 | #import "SDLRPCParameterNames.h" 9 | #import "SDLRPCFunctionNames.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @implementation SDLGenericResponse 14 | 15 | #pragma clang diagnostic push 16 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 17 | - (instancetype)init { 18 | if (self = [super initWithName:SDLRPCFunctionNameGenericResponse]) { 19 | } 20 | return self; 21 | } 22 | #pragma clang diagnostic pop 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLOnAudioPassThru.m: -------------------------------------------------------------------------------- 1 | // SDLOnAudioPassThru.m 2 | // 3 | 4 | 5 | #import "SDLOnAudioPassThru.h" 6 | 7 | #import "NSMutableDictionary+Store.h" 8 | #import "SDLRPCParameterNames.h" 9 | #import "SDLRPCFunctionNames.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @implementation SDLOnAudioPassThru 14 | 15 | #pragma clang diagnostic push 16 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 17 | - (instancetype)init { 18 | if (self = [super initWithName:SDLRPCFunctionNameOnAudioPassThru]) { 19 | } 20 | return self; 21 | } 22 | #pragma clang diagnostic pop 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSystemAction.h: -------------------------------------------------------------------------------- 1 | // SDLSystemAction.h 2 | // 3 | 4 | 5 | #import "SDLEnum.h" 6 | 7 | /** 8 | * Enumeration that describes system actions that can be triggered. Used in SoftButton. 9 | */ 10 | typedef SDLEnum SDLSystemAction NS_TYPED_ENUM; 11 | 12 | /** 13 | A default soft button action 14 | */ 15 | extern SDLSystemAction const SDLSystemActionDefaultAction; 16 | 17 | /** 18 | An action causing your app to steal HMI focus 19 | */ 20 | extern SDLSystemAction const SDLSystemActionStealFocus; 21 | 22 | /** 23 | An action causing you to keep context 24 | */ 25 | extern SDLSystemAction const SDLSystemActionKeepContext; 26 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLTPMS.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDLTPMS.m 3 | // SmartDeviceLink 4 | // 5 | // Created by Joel Fischer on 7/2/18. 6 | // Copyright © 2018 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "SDLTPMS.h" 10 | 11 | SDLTPMS const SDLTPMSUnknown = @"UNKNOWN"; 12 | SDLTPMS const SDLTPMSSystemFault = @"SYSTEM_FAULT"; 13 | SDLTPMS const SDLTPMSSensorFault = @"SENSOR_FAULT"; 14 | SDLTPMS const SDLTPMSLow = @"LOW"; 15 | SDLTPMS const SDLTPMSSystemActive = @"SYSTEM_ACTIVE"; 16 | SDLTPMS const SDLTPMSTrain = @"TRAIN"; 17 | SDLTPMS const SDLTPMSTrainingComplete = @"TRAINING_COMPLETE"; 18 | SDLTPMS const SDLTPMSNotTrained = @"NOT_TRAINED"; 19 | -------------------------------------------------------------------------------- /SmartDeviceLinkTests/TestConnectionRequestObject.m: -------------------------------------------------------------------------------- 1 | // 2 | // TestConnectionRequestObject.m 3 | // SmartDeviceLinkTests 4 | // 5 | // Created by Joel Fischer on 11/13/20. 6 | // Copyright © 2020 smartdevicelink. All rights reserved. 7 | // 8 | 9 | #import "TestConnectionRequestObject.h" 10 | 11 | @implementation TestConnectionRequestObject 12 | 13 | - (instancetype)initWithMessage:(__kindof SDLRPCMessage *)message responseHandler:(SDLResponseHandler)handler { 14 | self = [super init]; 15 | if (!self) { return nil; } 16 | 17 | _message = message; 18 | _responseHandler = handler; 19 | 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLDeliveryMode.h: -------------------------------------------------------------------------------- 1 | // SDLDeliveryMode.h 2 | // 3 | 4 | #import "SDLEnum.h" 5 | 6 | /** 7 | * Specifies the mode in which the sendLocation request is sent. Used in SendLocation. 8 | */ 9 | typedef SDLEnum SDLDeliveryMode NS_TYPED_ENUM; 10 | 11 | /** 12 | * User is prompted on HMI 13 | */ 14 | extern SDLDeliveryMode const SDLDeliveryModePrompt; 15 | 16 | /** 17 | * Set the location as destination without prompting the user 18 | */ 19 | extern SDLDeliveryMode const SDLDeliveryModeDestination; 20 | 21 | /** 22 | * Adds the current location to navigation queue 23 | */ 24 | extern SDLDeliveryMode const SDLDeliveryModeQueue; 25 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLEmergencyEventType.m: -------------------------------------------------------------------------------- 1 | // SDLEmergencyEventType.m 2 | // 3 | 4 | 5 | #import "SDLEmergencyEventType.h" 6 | 7 | SDLEmergencyEventType const SDLEmergencyEventTypeNoEvent = @"NO_EVENT"; 8 | SDLEmergencyEventType const SDLEmergencyEventTypeFrontal = @"FRONTAL"; 9 | SDLEmergencyEventType const SDLEmergencyEventTypeSide = @"SIDE"; 10 | SDLEmergencyEventType const SDLEmergencyEventTypeRear = @"REAR"; 11 | SDLEmergencyEventType const SDLEmergencyEventTypeRollover = @"ROLLOVER"; 12 | SDLEmergencyEventType const SDLEmergencyEventTypeNotSupported = @"NOT_SUPPORTED"; 13 | SDLEmergencyEventType const SDLEmergencyEventTypeFault = @"FAULT"; 14 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLEndAudioPassThru.m: -------------------------------------------------------------------------------- 1 | // SDLEndAudioPassThru.m 2 | // 3 | 4 | 5 | #import "SDLEndAudioPassThru.h" 6 | 7 | #import "NSMutableDictionary+Store.h" 8 | #import "SDLRPCParameterNames.h" 9 | #import "SDLRPCFunctionNames.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @implementation SDLEndAudioPassThru 14 | 15 | #pragma clang diagnostic push 16 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 17 | - (instancetype)init { 18 | if (self = [super initWithName:SDLRPCFunctionNameEndAudioPassThru]) { 19 | } 20 | return self; 21 | } 22 | #pragma clang diagnostic pop 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLKeyboardEvent.m: -------------------------------------------------------------------------------- 1 | // SDLKeyboardEvent.m 2 | // 3 | 4 | 5 | #import "SDLKeyboardEvent.h" 6 | 7 | SDLKeyboardEvent const SDLKeyboardEventKeypress = @"KEYPRESS"; 8 | SDLKeyboardEvent const SDLKeyboardEventSubmitted = @"ENTRY_SUBMITTED"; 9 | SDLKeyboardEvent const SDLKeyboardEventCancelled = @"ENTRY_CANCELLED"; 10 | SDLKeyboardEvent const SDLKeyboardEventAborted = @"ENTRY_ABORTED"; 11 | SDLKeyboardEvent const SDLKeyboardEventVoice = @"ENTRY_VOICE"; 12 | SDLKeyboardEvent const SDLKeyboardEventInputKeyMaskEnabled = @"INPUT_KEY_MASK_ENABLED"; 13 | SDLKeyboardEvent const SDLKeyboardEventInputKeyMaskDisabled = @"INPUT_KEY_MASK_DISABLED"; 14 | -------------------------------------------------------------------------------- /SmartDeviceLink/public/SDLSetAppIconResponse.m: -------------------------------------------------------------------------------- 1 | // SDLSetAppIconResponse.m 2 | // 3 | 4 | 5 | #import "SDLSetAppIconResponse.h" 6 | 7 | #import "NSMutableDictionary+Store.h" 8 | #import "SDLRPCParameterNames.h" 9 | #import "SDLRPCFunctionNames.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @implementation SDLSetAppIconResponse 14 | 15 | #pragma clang diagnostic push 16 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 17 | - (instancetype)init { 18 | if (self = [super initWithName:SDLRPCFunctionNameSetAppIcon]) { 19 | } 20 | return self; 21 | } 22 | #pragma clang diagnostic pop 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | --------------------------------------------------------------------------------