added parking and environment properties
[profile/ivi/automotive-message-broker.git] / plugins / dbus / parking.h
1 #ifndef _PARKING_H_
2 #define _PARKING_H_
3
4
5 #include "dbusplugin.h"
6 #include "abstractdbusinterface.h"
7 #include "abstractroutingengine.h"
8
9 class SecurityAlertProperty: public DBusSink
10 {
11 public:
12         SecurityAlertProperty(AbstractRoutingEngine* re, GDBusConnection* connection)
13                 :DBusSink("org.automotive.securityAlert","/org/automotive/parking/securityAlert", re, connection, map<string, string>())
14         {
15                 wantProperty<bool>(VehicleProperty::SecurityAlertStatus,"SecurityAlert", "b", AbstractProperty::Read);
16
17                 supportedChanged(re->supported());
18         }
19 };
20
21
22 class ParkingBrakeProperty: public DBusSink
23 {
24 public:
25         ParkingBrakeProperty(AbstractRoutingEngine* re, GDBusConnection* connection)
26                 :DBusSink("org.automotive.parkingBrake","/org/automotive/parking/parkingBrake", re, connection, map<string, string>())
27         {
28                 wantProperty<bool>(VehicleProperty::ParkingBrakeStatus,"ParkingBrake", "b", AbstractProperty::Read);
29
30                 supportedChanged(re->supported());
31         }
32 };
33
34 class ParkingLightProperty: public DBusSink
35 {
36 public:
37         ParkingLightProperty(AbstractRoutingEngine* re, GDBusConnection* connection)
38                 :DBusSink("org.automotive.parkingLight","/org/automotive/parking/parkingLight", re, connection, map<string, string>())
39         {
40                 wantProperty<bool>(VehicleProperty::ParkingLightStatus,"ParkingLight", "b", AbstractProperty::Read);
41
42                 supportedChanged(re->supported());
43         }
44 };
45
46
47 class HazardLightProperty: public DBusSink
48 {
49 public:
50         HazardLightProperty(AbstractRoutingEngine* re, GDBusConnection* connection)
51                 :DBusSink("org.automotive.parkingLight","/org/automotive/parking/parkingLight", re, connection, map<string, string>())
52         {
53                 wantProperty<bool>(VehicleProperty::HazardLightStatus,"HazardLight", "b", AbstractProperty::Read);
54
55                 supportedChanged(re->supported());
56         }
57 };
58
59 #endif