summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLButtonCapabilities.h
blob: d84da609a0ec9c86843f894560371a5c938802cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//  SDLButtonCapabilities.h
//

#import "SDLRPCMessage.h"

@class SDLButtonName;


/**
 * Provides information about the capabilities of a SDL HMI button.
 * 
 * @since SDL 1.0
 */
@interface SDLButtonCapabilities : SDLRPCStruct {
}

/**
 * Constructs a newly allocated SDLButtonCapabilities object
 */
- (instancetype)init;

/**
 * Constructs a newly allocated SDLButtonCapabilities object indicated by the Hashtable parameter
 * @param dict The dictionary to use
 */
- (instancetype)initWithDictionary:(NSMutableDictionary *)dict;

/**
 * @abstract The name of the SDL HMI button.
 */
@property (strong) SDLButtonName *name;

/**
 * @abstract A NSNumber value indicates whether the button supports a SHORT press
 *
 * Required, Boolean
 */
@property (strong) NSNumber *shortPressAvailable;

/**
 * @abstract A NSNumber value indicates whether the button supports a LONG press
 *
 * Required, Boolean
 */
@property (strong) NSNumber *longPressAvailable;

/**
 * @abstract A NSNumber value indicates whether the button supports "button down" and "button up"
 *
 * Required, Boolean
 */
@property (strong) NSNumber *upDownAvailable;

@end