1 #ifndef DRIVINGSAFETY_H_
2 #define DRIVINGSAFETY_H_
4 #include "dbusplugin.h"
5 #include "abstractdbusinterface.h"
6 #include "abstractroutingengine.h"
12 :
DBusSink(
"AntilockBrakingSystem", re, connection, map<string, string>())
15 wantPropertyVariant(VehicleProperty::AntilockBrakingSystem,
"AntilockBrakingSystem", VariantType::Read);
16 wantPropertyVariant(VehicleProperty::AntilockBrakingSystem,
"Engaged", VariantType::Read);
17 wantPropertyVariant(VehicleProperty::AntilockBrakingSystemEnabled,
"Enabled", VariantType::Read);
25 :
DBusSink(
"TractionControlSystem", re, connection, map<string, string>())
28 wantPropertyVariant(VehicleProperty::TractionControlSystem,
"TractionControlSystem", VariantType::Read);
29 wantPropertyVariant(VehicleProperty::TractionControlSystemEnabled,
"Enabled", VariantType::Read);
30 wantPropertyVariant(VehicleProperty::TractionControlSystem,
"Engaged", VariantType::Read);
39 :
DBusSink(
"VehicleTopSpeedLimit", re, connection, map<string, string>())
42 wantPropertyVariant(VehicleProperty::VehicleTopSpeedLimit,
"VehicleTopSpeedLimit", VariantType::Read);
43 wantPropertyVariant(VehicleProperty::VehicleTopSpeedLimit,
"Speed", VariantType::Read);
51 :
DBusSink(
"AirbagStatus", re, connection, map<string, string>())
55 wantPropertyVariant(VehicleProperty::AirbagActivated,
"AirbagActivated", VariantType::Read);
56 wantPropertyVariant(VehicleProperty::AirbagDeployed,
"AirbagDeployed", VariantType::Read);
65 :
DBusSink(
"DoorStatus", re, connection, map<string, string>())
70 wantPropertyVariant(VehicleProperty::DoorLockStatus,
"DoorLockStatus", VariantType::Read);
73 wantPropertyVariant(VehicleProperty::ChildLockStatus,
"ChildLockStatus", VariantType::Read);
81 :
DBusSink(
"Door", re, connection, map<string, string>())
86 wantPropertyVariant(VehicleProperty::DoorLockStatus,
"Lock", VariantType::ReadWrite);
89 wantPropertyVariant(VehicleProperty::ChildLockStatus,
"ChildLock", VariantType::Read);
98 :
DBusSink(
"SeatBelt", re, connection, map<string, string>())
100 wantPropertyVariant(VehicleProperty::SeatBeltStatus,
"Status", VariantType::Read);
109 :
DBusSink(
"OccupantStatus", re, connection, map<string, string>())
119 :
DBusSink(
"ObstacleDistance", re, connection, map<string, string>())
121 wantPropertyVariant(VehicleProperty::ObstacleDistance,
"ObstacleDistance", VariantType::Read);
129 :
DBusSink(
"ElectronicStabilityControl", re, connection, map<string, string>())
131 wantPropertyVariant(VehicleProperty::ElectronicStabilityControlEnabled,
"Enabled", VariantType::Read);
132 wantPropertyVariant(VehicleProperty::ElectronicStabilityControlEngaged,
"Engaged", VariantType::Read);
140 :
DBusSink(
"ChildSafetyLock", re, connection, map<string, string>())
142 wantPropertyVariant(VehicleProperty::ChildLockStatus,
"Lock", VariantType::ReadWrite);
150 :
DBusSink(
"Seat", re, connection, map<string, string>())
152 wantPropertyVariant(VehicleProperty::OccupantStatusW3C,
"Occupant", VariantType::ReadWrite);
153 wantPropertyVariant(VehicleProperty::SeatBeltStatus,
"SeatBelt", VariantType::ReadWrite);
154 wantPropertyVariant(VehicleProperty::OccupantName,
"OccupantName", VariantType::ReadWrite);
155 wantPropertyVariant(VehicleProperty::OccupantIdentificationType,
"IdentificationType", VariantType::ReadWrite);