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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
#ifndef _PARKING_H_
#define _PARKING_H_
#include "dbusplugin.h"
#include "abstractdbusinterface.h"
#include "abstractroutingengine.h"
/** @interface SecurityAlert : VehiclePropertyType **/
class SecurityAlertProperty: public DBusSink
{
public:
SecurityAlertProperty(AbstractRoutingEngine* re, GDBusConnection* connection)
:DBusSink("org.automotive.SecurityAlert","/org/automotive/parking/SecurityAlert", re, connection, map<string, string>())
{
/** @attributeName SecurityAlert
* @type boolean
* @access readonly
* @attributeComment \brief MUST return
**/
wantProperty<Security::Status>(VehicleProperty::SecurityAlertStatus,"SecurityAlert", "i", AbstractProperty::Read);
supportedChanged(re->supported());
}
};
/** @interface ParkingBrake : VehiclePropertyType **/
class ParkingBrakeProperty: public DBusSink
{
public:
ParkingBrakeProperty(AbstractRoutingEngine* re, GDBusConnection* connection)
:DBusSink("org.automotive.ParkingBrake","/org/automotive/parking/ParkingBrake", re, connection, map<string, string>())
{
/** @attributeName ParkingBrake
* @type boolean
* @access readonly
**/
wantProperty<bool>(VehicleProperty::ParkingBrakeStatus,"ParkingBrake", "b", AbstractProperty::Read);
supportedChanged(re->supported());
}
};
/** @interface ParkingLight : VehiclePropertyType **/
class ParkingLightProperty: public DBusSink
{
public:
ParkingLightProperty(AbstractRoutingEngine* re, GDBusConnection* connection)
:DBusSink("org.automotive.ParkingLight","/org/automotive/parking/ParkingLight", re, connection, map<string, string>())
{
/** @attributeName ParkingLight
* @type boolean
* @access readonly
**/
wantProperty<bool>(VehicleProperty::ParkingLightStatus,"ParkingLight", "b", AbstractProperty::Read);
supportedChanged(re->supported());
}
};
/** @interface HazardLight : VehiclePropertyType **/
class HazardLightProperty: public DBusSink
{
public:
HazardLightProperty(AbstractRoutingEngine* re, GDBusConnection* connection)
:DBusSink("org.automotive.HazardLight","/org/automotive/parking/HazardLight", re, connection, map<string, string>())
{
/** @attributeName HazardLight
* @type boolean
* @access readonly
**/
wantProperty<bool>(VehicleProperty::HazardLightStatus,"HazardLight", "b", AbstractProperty::Read);
supportedChanged(re->supported());
}
};
#endif
|