diff options
Diffstat (limited to 'plugins/dbus/parking.h')
-rw-r--r-- | plugins/dbus/parking.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/plugins/dbus/parking.h b/plugins/dbus/parking.h new file mode 100644 index 00000000..1e86c742 --- /dev/null +++ b/plugins/dbus/parking.h @@ -0,0 +1,51 @@ +#ifndef _PARKING_H_ +#define _PARKING_H_ + + +#include "dbusplugin.h" +#include "abstractdbusinterface.h" +#include "abstractroutingengine.h" + +/** @interface ParkingBrake : VehiclePropertyType **/ +class ParkingBrakeProperty: public DBusSink +{ +public: + ParkingBrakeProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection) + :DBusSink("ParkingBrake", re, connection, map<string, string>()) + { + wantPropertyVariant(VehicleProperty::ParkingBrakeStatusW3C, "Status", VariantType::Read); + } +}; + +/** @interface HazardLight : VehiclePropertyType **/ +class HazardLightProperty: public DBusSink +{ +public: + HazardLightProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection) + :DBusSink("HazardLight", re, connection, map<string, string>()) + { + wantPropertyVariant(VehicleProperty::HazardLightStatus, "HazardLight", VariantType::ReadWrite); + } +}; + +class LaneDepartureStatus: public DBusSink +{ +public: + LaneDepartureStatus(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection) + :DBusSink("LaneDepartureDetection", re, connection, map<string, string>()) + { + wantPropertyVariant(VehicleProperty::LaneDepartureStatus, "Status", VariantType::Read); + } +}; + +class AlarmStatus: public DBusSink +{ +public: + AlarmStatus(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection) + :DBusSink("Alarm", re, connection, map<string, string>()) + { + wantPropertyVariant(VehicleProperty::AlarmStatus, "Status", VariantType::ReadWrite); + } +}; + +#endif |