19 #ifndef _PROPERTIES_H_H_H_
20 #define _PROPERTIES_H_H_H_
22 #include "dbusplugin.h"
23 #include "abstractdbusinterface.h"
24 #include "abstractroutingengine.h"
31 :
DBusSink(
"VehicleSpeed", re, connection, map<string, string>())
33 wantPropertyVariant(VehicleProperty::VehicleSpeed,
"Speed", VariantType::Read);
42 :
DBusSink(
"EngineSpeed", re, connection, map<string, string>())
53 :
DBusSink(
"VehiclePowerMode", re, connection, map<string, string>())
55 wantPropertyVariant(VehicleProperty::VehiclePowerMode,
"VehiclePowerMode",VariantType::Read);
64 :
DBusSink(
"TripMeter", re, connection, map<string, string>())
66 wantPropertyVariant(VehicleProperty::TripMeters,
"TripMeters", VariantType::ReadWrite);
75 :
DBusSink(
"Acceleration", re, connection, map<string, string>())
77 wantPropertyVariant(VehicleProperty::AccelerationX,
"X", VariantType::Read);
78 wantPropertyVariant(VehicleProperty::AccelerationY,
"Y", VariantType::Read);
88 :
DBusSink(
"Transmission", re, connection, map<string, string>())
91 wantPropertyVariant(VehicleProperty::TransmissionGearPosition,
"GearPosition", VariantType::Read);
92 wantPropertyVariant(VehicleProperty::TransmissionGearPosition,
"Gear", VariantType::Read);
93 wantPropertyVariant(VehicleProperty::TransmissionModeW3C,
"Mode", VariantType::Read);
94 wantPropertyVariant(VehicleProperty::TransmissionGearType,
"Type", VariantType::Read);
103 :
DBusSink(
"CruiseControlStatus", re, connection, map<string, string>())
105 wantPropertyVariant(VehicleProperty::CruiseControlSpeed,
"Speed", VariantType::Read);
106 wantPropertyVariant(VehicleProperty::CruiseControlActive,
"Status", VariantType::Read);
115 :
DBusSink(
"BrakeOperation", re, connection, map<string, string>())
126 :
DBusSink(
"LightStatus", re, connection, map<string, string>())
128 wantPropertyVariant(VehicleProperty::LightHead,
"Head", VariantType::ReadWrite);
129 wantPropertyVariant(VehicleProperty::LightRightTurn,
"RightTurn", VariantType::ReadWrite);
130 wantPropertyVariant(VehicleProperty::LightLeftTurn,
"LeftTurn", VariantType::ReadWrite);
131 wantPropertyVariant(VehicleProperty::LightBrake,
"Brake", VariantType::ReadWrite);
132 wantPropertyVariant(VehicleProperty::LightFog,
"Fog", VariantType::ReadWrite);
133 wantPropertyVariant(VehicleProperty::LightHazard,
"Hazard", VariantType::ReadWrite);
134 wantPropertyVariant(VehicleProperty::LightParking,
"Parking", VariantType::ReadWrite);
135 wantPropertyVariant(VehicleProperty::LightHighBeam,
"HighBeam", VariantType::ReadWrite);
136 wantPropertyVariant(VehicleProperty::LightAutomatic,
"AutomaticHeadlights", VariantType::ReadWrite);
137 wantPropertyVariant(VehicleProperty::LightDynamicHighBeam,
"DynamicHighBeam", VariantType::ReadWrite);
145 :
DBusSink(
"InteriorLightStatus", re, connection, map<string, string>())
147 wantPropertyVariant(VehicleProperty::InteriorLightStatus,
"Status", VariantType::ReadWrite);
156 :
DBusSink(
"Horn", re, connection, map<string, string>())
158 wantPropertyVariant(VehicleProperty::Horn,
"Status", VariantType::Read);
167 :
DBusSink(
"Fuel", re, connection, map<string, string>())
169 wantPropertyVariant(VehicleProperty::FuelLevel,
"Level", VariantType::Read);
170 wantPropertyVariant(VehicleProperty::FuelRange,
"Range", VariantType::Read);
171 wantPropertyVariant(VehicleProperty::FuelConsumption,
"InstantConsumption", VariantType::Read);
172 wantPropertyVariant(VehicleProperty::FuelEconomy,
"InstantEconomy", VariantType::Read);
173 wantPropertyVariant(VehicleProperty::FuelAverageEconomy,
"AverageEconomy", VariantType::ReadWrite);
174 wantPropertyVariant(VehicleProperty::FuelAverageConsumption,
"AverageConsumption", VariantType::ReadWrite);
175 wantPropertyVariant(VehicleProperty::FuelConsumptionSinceRestart,
"FuelConsumedSinceRestart", VariantType::ReadWrite);
176 wantPropertyVariant(VehicleProperty::FuelTimeSinceRestart,
"TimeSinceRestart", VariantType::ReadWrite);
185 :
DBusSink(
"EngineOil", re, connection, map<string, string>())
187 wantPropertyVariant(VehicleProperty::EngineOilRemaining,
"Level", VariantType::Read);
188 wantPropertyVariant(VehicleProperty::EngineOilTemperature,
"Temperature", VariantType::Read);
191 wantPropertyVariant(VehicleProperty::EngineOilLifeRemaining,
"LifeRemaining", VariantType::Read);
200 :
DBusSink(
"Location", re, connection, map<string, string>())
202 wantPropertyVariant(VehicleProperty::Latitude,
"Latitude", VariantType::Read);
203 wantPropertyVariant(VehicleProperty::Longitude,
"Longitude", VariantType::Read);
204 wantPropertyVariant(VehicleProperty::Altitude,
"Altitude", VariantType::Read);
205 wantPropertyVariant(VehicleProperty::Direction,
"Direction", VariantType::Read);
214 :
DBusSink(
"SteeringWheel", re, connection, map<string, string>())
224 :
DBusSink(
"ThrottlePosition", re, connection, map<string, string>())
226 wantPropertyVariant(VehicleProperty::ThrottlePosition,
"Value", VariantType::Read);
234 :
DBusSink(
"NightMode", re, connection, map<string, string>())
236 wantPropertyVariant(VehicleProperty::NightMode,
"NightMode", VariantType::Read);
237 wantPropertyVariant(VehicleProperty::NightMode,
"Mode", VariantType::Read);
245 :
DBusSink(
"DrivingMode", re, connection, map<string, string>())
247 wantPropertyVariant(VehicleProperty::DrivingMode,
"DrivingMode", VariantType::Read);
248 wantPropertyVariant(VehicleProperty::DrivingModeW3C,
"Mode", VariantType::Read);
256 :
DBusSink(
"PowertrainTorque", re, connection, map<string, string>())
258 wantPropertyVariant(VehicleProperty::PowertrainTorque,
"Value", VariantType::Read);
266 :
DBusSink(
"AcceleratorPedalPosition", re, connection, map<string, string>())
268 wantPropertyVariant(VehicleProperty::AcceleratorPedalPosition,
"Value", VariantType::Read);
276 :
DBusSink(
"Chime", re, connection, map<string, string>())
278 wantPropertyVariant(VehicleProperty::Chime,
"Status", VariantType::Read);
286 :
DBusSink(
"WheelTick", re, connection, map<string, string>())
288 wantPropertyVariant(VehicleProperty::WheelTick,
"Value", VariantType::Read);
296 :
DBusSink(
"IgnitionTime", re, connection, map<string, string>())
298 wantPropertyVariant(VehicleProperty::IgnitionTimeOn,
"IgnitionTimeOn", VariantType::Read);
299 wantPropertyVariant(VehicleProperty::IgnitionTimeOff,
"IgnitionTimeOff", VariantType::Read);
307 :
DBusSink(
"YawRate", re, connection, map<string, string>())
309 wantPropertyVariant(VehicleProperty::YawRate,
"Value", VariantType::Read);
317 :
DBusSink(
"ButtonEvent", re, connection, map<string, string>())
319 wantPropertyVariant(VehicleProperty::YawRate,
"Value", VariantType::Read);