f597e0062a7b3a2f5ab1445c279b7b5a57e2fcb2
[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 /** @interface ParkingBrake : VehiclePropertyType **/
10 class ParkingBrakeProperty: public DBusSink
11 {
12 public:
13         ParkingBrakeProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
14                 :DBusSink("ParkingBrake", re, connection, map<string, string>())
15         {
16                 wantPropertyVariant(VehicleProperty::ParkingBrakeStatusW3C, "Status", AbstractProperty::Read);
17         }
18 };
19
20 /** @interface HazardLight : VehiclePropertyType **/
21 class HazardLightProperty: public DBusSink
22 {
23 public:
24         HazardLightProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
25                 :DBusSink("HazardLight", re, connection, map<string, string>())
26         {
27                 wantPropertyVariant(VehicleProperty::HazardLightStatus, "HazardLight", AbstractProperty::ReadWrite);
28         }
29 };
30
31 class LaneDepartureStatus: public DBusSink
32 {
33 public:
34         LaneDepartureStatus(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
35                 :DBusSink("LaneDepartureDetection", re, connection, map<string, string>())
36         {
37                 wantPropertyVariant(VehicleProperty::LaneDepartureStatus, "Status", AbstractProperty::Read);
38         }
39 };
40
41 class AlarmStatus: public DBusSink
42 {
43 public:
44         AlarmStatus(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
45                 :DBusSink("Alarm", re, connection, map<string, string>())
46         {
47                 wantPropertyVariant(VehicleProperty::AlarmStatus, "Status", AbstractProperty::ReadWrite);
48         }
49 };
50
51 #endif