1 #ifndef _VEHICLEINFO_H_
2 #define _VEHICLEINFO_H_
5 #include "dbusplugin.h"
6 #include "abstractdbusinterface.h"
7 #include "abstractroutingengine.h"
9 /** @interface VehicleId : VehiclePropertyType **/
10 class VehicleId: public DBusSink
13 VehicleId(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
14 :DBusSink("VehicleId", re, connection, map<string, string>())
16 wantPropertyVariant(VehicleProperty::WMI, "WMI", VariantType::Read);
17 wantPropertyVariant(VehicleProperty::VIN, "VIN", VariantType::Read);
21 /** @interface Size : VehiclePropertyType **/
22 class SizeProperty: public DBusSink
25 SizeProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
26 :DBusSink("Size", re, connection, map<string, string>())
28 /** @attributeName Width
31 * @attributeComment \brief MUST return width of vehicle in mm
33 wantPropertyVariant(VehicleProperty::VehicleWidth, "Width", VariantType::Read);
35 /** @attributeName Height
38 * @attributeComment \brief MUST return height of vehicle in mm
40 wantPropertyVariant(VehicleProperty::VehicleHeight, "Height", VariantType::Read);
42 /** @attributeName Length
45 * @attributeComment \brief MUST return length of vehicle in mm
47 wantPropertyVariant(VehicleProperty::VehicleLength, "Length", VariantType::Read);
53 /** @interface FuelInfo : VehiclePropertyType **/
54 class FuelInfoProperty: public DBusSink
57 FuelInfoProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
58 :DBusSink("FuelInfo", re, connection, map<string, string>())
60 wantPropertyVariant(VehicleProperty::FuelType, "Type", VariantType::Read);
61 wantPropertyVariant(VehicleProperty::FuelPositionSide, "RefuelPosition", VariantType::Read);
65 /** @interface VehicleType : VehiclePropertyType **/
66 class VehicleTypeProperty: public DBusSink
69 VehicleTypeProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
70 :DBusSink("VehicleType", re, connection, map<string, string>())
72 wantPropertyVariant(VehicleProperty::VehicleType, "Type", VariantType::Read);
76 /** @interface Doors : VehiclePropertyType **/
77 class DoorsProperty: public DBusSink
80 DoorsProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
81 :DBusSink("Doors", re, connection, map<string, string>())
83 wantPropertyVariant(VehicleProperty::DoorsPerRow, "DoorsPerRow", VariantType::Read);
87 /** @interface WheelInformation : VehiclePropertyType **/
88 class WheelInformationProperty: public DBusSink
91 WheelInformationProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
92 :DBusSink("WheelInformation", re, connection, map<string, string>())
94 wantPropertyVariant(VehicleProperty::FrontWheelRadius, "FrontWheelRadius", VariantType::Read);
95 wantPropertyVariant(VehicleProperty::RearWheelRadius, "RearWheelRadius", VariantType::Read);
96 wantPropertyVariant(VehicleProperty::WheelTrack, "WheelTrack", VariantType::Read);
97 wantPropertyVariant(VehicleProperty::AntilockBrakingSystem, "AntilockBrakingSystem", VariantType::Read);