blob: ed2171b1f08052f181abeeda8468bfba5e65944d (
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
55
56
57
58
59
|
// SDLSoftButtonCapabilities.m
//
#import "SDLSoftButtonCapabilities.h"
#import "SDLNames.h"
@implementation SDLSoftButtonCapabilities
- (void)setShortPressAvailable:(NSNumber<SDLBool> *)shortPressAvailable {
if (shortPressAvailable != nil) {
[store setObject:shortPressAvailable forKey:SDLNameShortPressAvailable];
} else {
[store removeObjectForKey:SDLNameShortPressAvailable];
}
}
- (NSNumber<SDLBool> *)shortPressAvailable {
return [store objectForKey:SDLNameShortPressAvailable];
}
- (void)setLongPressAvailable:(NSNumber<SDLBool> *)longPressAvailable {
if (longPressAvailable != nil) {
[store setObject:longPressAvailable forKey:SDLNameLongPressAvailable];
} else {
[store removeObjectForKey:SDLNameLongPressAvailable];
}
}
- (NSNumber<SDLBool> *)longPressAvailable {
return [store objectForKey:SDLNameLongPressAvailable];
}
- (void)setUpDownAvailable:(NSNumber<SDLBool> *)upDownAvailable {
if (upDownAvailable != nil) {
[store setObject:upDownAvailable forKey:SDLNameUpDownAvailable];
} else {
[store removeObjectForKey:SDLNameUpDownAvailable];
}
}
- (NSNumber<SDLBool> *)upDownAvailable {
return [store objectForKey:SDLNameUpDownAvailable];
}
- (void)setImageSupported:(NSNumber<SDLBool> *)imageSupported {
if (imageSupported != nil) {
[store setObject:imageSupported forKey:SDLNameImageSupported];
} else {
[store removeObjectForKey:SDLNameImageSupported];
}
}
- (NSNumber<SDLBool> *)imageSupported {
return [store objectForKey:SDLNameImageSupported];
}
@end
|