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