Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/documentation' into develop
- Loading branch information
Showing
481 changed files
with
7,349 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// ISDLProxy.h | ||
// | ||
// Copyright (c) 2014 Ford Motor Company. All rights reserved. | ||
|
||
|
||
|
||
#import "SDLProtocol.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 10 additions & 12 deletions
22
SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,43 @@ | ||
// SDLAbstractProtocol.m | ||
// | ||
// Copyright (c) 2014 Ford Motor Company. All rights reserved. | ||
|
||
#import "SDLAbstractProtocol.h" | ||
|
||
@implementation SDLAbstractProtocol | ||
- (id)init { | ||
if (self = [super init]) { | ||
if (self = [super init]) { | ||
_debugConsoleGroupName = @"default"; | ||
} | ||
return self; | ||
} | ||
return self; | ||
} | ||
|
||
- (void)sendStartSessionWithType:(SDLServiceType)serviceType { | ||
[self doesNotRecognizeSelector:_cmd]; | ||
[self doesNotRecognizeSelector:_cmd]; | ||
} | ||
|
||
- (void)sendEndSessionWithType:(SDLServiceType)serviceType sessionID:(Byte)sessionID { | ||
[self doesNotRecognizeSelector:_cmd]; | ||
[self doesNotRecognizeSelector:_cmd]; | ||
} | ||
|
||
- (void)sendRPCRequest:(SDLRPCRequest *)rpcRequest { | ||
[self doesNotRecognizeSelector:_cmd]; | ||
} | ||
|
||
- (void)handleBytesFromTransport:(NSData *)receivedData { | ||
[self doesNotRecognizeSelector:_cmd]; | ||
[self doesNotRecognizeSelector:_cmd]; | ||
} | ||
|
||
|
||
#pragma - SDLTransportListener Implementation | ||
- (void)onTransportConnected { | ||
[self.protocolDelegate onProtocolOpened]; | ||
[self.protocolDelegate onProtocolOpened]; | ||
} | ||
|
||
- (void)onTransportDisconnected { | ||
[self.protocolDelegate onProtocolClosed]; | ||
[self.protocolDelegate onProtocolClosed]; | ||
} | ||
|
||
- (void)onDataReceived:(NSData *)receivedData { | ||
[self handleBytesFromTransport:receivedData]; | ||
[self handleBytesFromTransport:receivedData]; | ||
} | ||
|
||
@end | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
// SDLAbstractTransport.h | ||
// | ||
// Copyright (c) 2014 Ford Motor Company. All rights reserved. | ||
|
||
@import Foundation; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,82 @@ | ||
// SDLAddCommand.h | ||
// | ||
// Copyright (c) 2014 Ford Motor Company. All rights reserved. | ||
|
||
|
||
#import "SDLRPCRequest.h" | ||
|
||
#import "SDLMenuParams.h" | ||
#import "SDLImage.h" | ||
|
||
|
||
/** | ||
* | ||
* This class will add a command to the application's Command Menu SDLMenuParams<br> | ||
* <b>Note:</b> A command will be added to the end of the list of elements in | ||
* the Command Menu under the following conditions: | ||
* <li>When a SDLCommand is added with no SDLMenuParams value provided</li> | ||
* <li>When a SDLMenuParams value is provided with a SDLMenuParam.position value | ||
* greater than or equal to the number of menu items currently defined in the | ||
* menu specified by the SDLMenuParam.parentID value</li> | ||
* <br/> | ||
* The set of choices which the application builds using SDLAddCommand can be a | ||
* mixture of: | ||
* <li>Choices having only VR synonym definitions, but no SDLMenuParams definitions | ||
* </li> | ||
* <li>Choices having only SDLMenuParams definitions, but no VR synonym definitions | ||
* </li> | ||
* <li>Choices having both SDLMenuParams and VR synonym definitions</li> | ||
* | ||
* <b>HMILevel needs to be FULL, LIMITED or BACKGROUD</b> | ||
* </p> | ||
* Since <b>SDL 1.0</b><br> | ||
* see SDLDeleteCommand SDLAddSubMenu SDLDeleteSubMenu | ||
*/ | ||
@interface SDLAddCommand : SDLRPCRequest {} | ||
|
||
/** | ||
* Constructs a new SDLAddCommand object | ||
*/ | ||
-(id) init; | ||
/** | ||
* | ||
* Constructs a new SDLAddCommand object indicated by the NSMutableDictionary | ||
* parameter | ||
* | ||
* | ||
* @param dict The NSMutableDictionary to use | ||
*/ | ||
-(id) initWithDictionary:(NSMutableDictionary*) dict; | ||
|
||
/** | ||
* @abstract an Unique Command ID that identifies the command | ||
* @discussion Is returned in an <i>SDLOnCommand</i> notification to identify the command | ||
* selected by the user | ||
* <p> | ||
* <b>Notes:</b> Min Value: 0; Max Value: 2000000000 | ||
*/ | ||
@property(strong) NSNumber* cmdID; | ||
/** | ||
* @abstract a <I>SDLMenuParams</I> pointer which will defined the command and how | ||
* it is added to the Command Menu | ||
* @discussion If provided, this will define the command and how it is added to the | ||
* Command Menu<br/> | ||
* If null, commands will not be accessible through the HMI application menu | ||
*/ | ||
@property(strong) SDLMenuParams* menuParams; | ||
/** | ||
* @abstract Voice Recognition Commands | ||
* @discussion If provided, defines one or more VR phrases the recognition of any of | ||
* which triggers the <i>SDLOnCommand</i> notification with this | ||
* cmdID<br/> | ||
* If null, commands will not be accessible by voice commands (when the user | ||
* hits push-to-talk) | ||
*/ | ||
@property(strong) NSMutableArray* vrCommands; | ||
/** | ||
* @abstract an Image obj representing the Image obj shown along with a command | ||
* @discussion If provided, defines the image to be be shown along with a command | ||
* Notes: If omitted on supported displays, no (or the | ||
* default if applicable) icon will be displayed | ||
*/ | ||
@property(strong) SDLImage* cmdIcon; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// SDLAddCommand.m | ||
// | ||
// Copyright (c) 2014 Ford Motor Company. All rights reserved. | ||
|
||
|
||
#import "SDLAddCommand.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,65 @@ | ||
// SDLAddSubMenu.h | ||
// | ||
// Copyright (c) 2014 Ford Motor Company. All rights reserved. | ||
|
||
|
||
#import "SDLRPCRequest.h" | ||
|
||
/** | ||
* Add a SDLSubMenu to the Command Menu | ||
* <p> | ||
* A SDLSubMenu can only be added to the Top Level Menu (i.e.a SDLSubMenu cannot be | ||
* added to a SDLSubMenu), and may only contain commands as children | ||
* <p> | ||
* <p> | ||
* <b>HMILevel needs to be FULL, LIMITED or BACKGROUD</b> | ||
* </p> | ||
* | ||
* Since <b>SmartDeviceLink 1.0</b><br> | ||
* see SDLDeleteSubMenu SDLAddCommand SDLDeleteCommand | ||
*/ | ||
@interface SDLAddSubMenu : SDLRPCRequest {} | ||
|
||
/** | ||
* Constructs a new SDLAddSubMenu object | ||
*/ | ||
-(id) init; | ||
/** | ||
* Constructs a new SDLAddSubMenu object indicated by the NSMutableDictionary parameter | ||
* <p> | ||
* | ||
* @param dict The NSMutableDictionary to use | ||
*/ | ||
-(id) initWithDictionary:(NSMutableDictionary*) dict; | ||
|
||
/** | ||
* @abstract a Menu ID that identifies a sub menu | ||
* @discussion This value is used in | ||
* <i>SDLAddCommand</i> to which SDLSubMenu is the parent of the command being added | ||
* <p> | ||
*/ | ||
@property(strong) NSNumber* menuID; | ||
/** | ||
* @abstract a position of menu | ||
* @discussion An NSNumber pointer representing the position within the items | ||
* of the top level Command Menu. 0 will insert at the front, 1 | ||
* will insert after the first existing element, etc. Position of | ||
* any submenu will always be located before the return and exit | ||
* options | ||
* <p> | ||
* <b>Notes: </b><br/> | ||
* <ul> | ||
* <li> | ||
* Min Value: 0; Max Value: 1000</li> | ||
* <li>If position is greater or equal than the number of items | ||
* on top level, the sub menu will be appended by the end</li> | ||
* <li>If this parameter is omitted, the entry will be added at | ||
* the end of the list</li> | ||
* </ul> | ||
*/ | ||
@property(strong) NSNumber* position; | ||
/** | ||
* @abstract a menuName which is displayed representing this submenu item | ||
* @discussion NSString which will be displayed representing this submenu item | ||
*/ | ||
@property(strong) NSString* menuName; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
// SDLAddSubMenu.m | ||
// | ||
// Copyright (c) 2014 Ford Motor Company. All rights reserved. | ||
|
||
#import "SDLAddSubMenu.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.