19 #ifndef EXAMPLEPLUGIN_H
20 #define EXAMPLEPLUGIN_H
22 #include <abstractsource.h>
38 void subscribeToPropertyChanges(VehicleProperty::Property
property);
39 void unsubscribeToPropertyChanges(VehicleProperty::Property property);
40 PropertyList supported();
42 int supportedOperations();
46 void randomizeProperties();
48 PropertyInfo getPropertyInfo(
const VehicleProperty::Property & property)
50 if(propertyInfoMap.find(property) != propertyInfoMap.end())
51 return propertyInfoMap[property];
53 return PropertyInfo::invalid();
58 void addPropertySupport(VehicleProperty::Property property, Zone::Type
zone);
60 std::map<VehicleProperty::Property, PropertyInfo> propertyInfoMap;
61 std::map<Zone::Type, Airbag::Status> airbagStatus;
62 std::map<Zone::Type, bool> acStatus;
63 PropertyList mRequests;
64 PropertyList mSupported;
68 VehicleProperty::VehicleSpeedType vel;
69 VehicleProperty::EngineSpeedType es;
70 VehicleProperty::AccelerationXType ac;
71 VehicleProperty::SteeringWheelAngleType swa;
72 VehicleProperty::TransmissionShiftPositionType tsp;
73 VehicleProperty::TransmissionGearPositionType tgp;
74 VehicleProperty::ThrottlePositionType tp;
75 VehicleProperty::EngineCoolantTemperatureType ec;
76 VehicleProperty::MachineGunTurretStatusType mgt;
79 #endif // EXAMPLEPLUGIN_H