automotive-message-broker  0.14.803
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
vehicleinfo.h
1 #ifndef _VEHICLEINFO_H_
2 #define _VEHICLEINFO_H_
3 
4 
5 #include "dbusplugin.h"
6 #include "abstractdbusinterface.h"
7 #include "abstractroutingengine.h"
8 
10 class VehicleId: public DBusSink
11 {
12 public:
13  VehicleId(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
14  :DBusSink("VehicleId", re, connection, map<string, string>())
15  {
16  wantPropertyVariant(VehicleProperty::WMI, "WMI", VariantType::Read);
17  wantPropertyVariant(VehicleProperty::VIN, "VIN", VariantType::Read);
18  }
19 };
20 
22 class SizeProperty: public DBusSink
23 {
24 public:
25  SizeProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
26  :DBusSink("Size", re, connection, map<string, string>())
27  {
33  wantPropertyVariant(VehicleProperty::VehicleWidth, "Width", VariantType::Read);
34 
40  wantPropertyVariant(VehicleProperty::VehicleHeight, "Height", VariantType::Read);
41 
47  wantPropertyVariant(VehicleProperty::VehicleLength, "Length", VariantType::Read);
48 
49 
50  }
51 };
52 
55 {
56 public:
57  FuelInfoProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
58  :DBusSink("FuelInfo", re, connection, map<string, string>())
59  {
60  wantPropertyVariant(VehicleProperty::FuelType, "Type", VariantType::Read);
61  wantPropertyVariant(VehicleProperty::FuelPositionSide, "RefuelPosition", VariantType::Read);
62  }
63 };
64 
67 {
68 public:
69  VehicleTypeProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
70  :DBusSink("VehicleType", re, connection, map<string, string>())
71  {
72  wantPropertyVariant(VehicleProperty::VehicleType, "Type", VariantType::Read);
73  }
74 };
75 
77 class DoorsProperty: public DBusSink
78 {
79 public:
80  DoorsProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
81  :DBusSink("Doors", re, connection, map<string, string>())
82  {
83  wantPropertyVariant(VehicleProperty::DoorsPerRow, "DoorsPerRow", VariantType::Read);
84  }
85 };
86 
89 {
90 public:
91  WheelInformationProperty(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection)
92  :DBusSink("WheelInformation", re, connection, map<string, string>())
93  {
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);
98  }
99 };
100 
101 #endif