summaryrefslogtreecommitdiff
path: root/lib/vehicleproperty.h
diff options
context:
space:
mode:
authorKevron Rees <tripzero.kev@gmail.com>2014-01-10 15:54:04 -0800
committerKevron Rees <tripzero.kev@gmail.com>2014-01-10 15:54:04 -0800
commit18ece88b1af638ddf93773b8e051bddf077a8f52 (patch)
tree389f02bd6b9225b47b3eb6db2884bc63fc6cb707 /lib/vehicleproperty.h
parent8bc2411cf92d3d315ffcdb40b790a24a425894a1 (diff)
downloadautomotive-message-broker-18ece88b1af638ddf93773b8e051bddf077a8f52.tar.gz
added personalization settings
Diffstat (limited to 'lib/vehicleproperty.h')
-rw-r--r--lib/vehicleproperty.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/lib/vehicleproperty.h b/lib/vehicleproperty.h
index 559488dd..a51b92a6 100644
--- a/lib/vehicleproperty.h
+++ b/lib/vehicleproperty.h
@@ -144,6 +144,11 @@ enum Type
SUV,
Truck
};
+enum SoundMode {
+ Normal = 0,
+ Quiet = 1,
+ Sportive = 2
+};
}
namespace Security {
@@ -233,6 +238,16 @@ enum Mode
};
}
+namespace Measurement
+{
+enum Type
+{
+ Metric = 0,
+ ImperialUS = 1,
+ ImperialUK = 2
+};
+}
+
#include <boost/preprocessor/comma.hpp>
#define PROPERTYTYPE(property, propertyType, baseClass, valueType) \
@@ -741,6 +756,48 @@ public:
static const Property DrivingMode;
PROPERTYTYPEBASIC(DrivingMode, Driving::Mode)
+ static const Property KeyId;
+ PROPERTYTYPE(KeyId, KeyIdType, StringPropertyType, std::string)
+
+ static const Property Language;
+ PROPERTYTYPE(Language, LanguageType, StringPropertyType, std::string)
+
+ static const Property MeasurementSystem;
+ PROPERTYTYPEBASIC(MeasurementSystem, Measurement::Type)
+
+ static const Property MirrorSettingPan;
+ static const Property MirrorSettingTilt;
+
+ PROPERTYTYPEBASIC(MirrorSettingPan, uint16_t)
+ PROPERTYTYPEBASIC(MirrorSettingTilt, uint16_t)
+
+ static const Property SteeringWheelPositionSlide;
+ static const Property SteeringWheelPositionTilt;
+
+ PROPERTYTYPEBASIC(SteeringWheelPositionSlide, uint16_t)
+ PROPERTYTYPEBASIC(SteeringWheelPositionTilt, uint16_t)
+
+ static const Property SeatPositionRecline;
+ static const Property SeatPositionSlide;
+ static const Property SeatPositionCushionHeight;
+ static const Property SeatPositionHeadrest;
+ static const Property SeatPositionBackCushion;
+ static const Property SeatPositionSideCushion;
+
+ PROPERTYTYPEBASIC(SeatPositionRecline, uint16_t)
+ PROPERTYTYPEBASIC(SeatPositionSlide, uint16_t)
+ PROPERTYTYPEBASIC(SeatPositionCushionHeight, uint16_t)
+ PROPERTYTYPEBASIC(SeatPositionHeadrest, uint16_t)
+ PROPERTYTYPEBASIC(SeatPositionBackCushion, uint16_t)
+ PROPERTYTYPEBASIC(SeatPositionSideCushion, uint16_t)
+
+ static const Property DashboardIllumination;
+ PROPERTYTYPEBASIC(DashboardIllumination, uint16_t)
+
+ static const Property GeneratedVehicleSoundMode;
+ PROPERTYTYPEBASIC(GeneratedVehicleSoundMode, Vehicle::SoundMode)
+
+
/** END PROPERTIES **/
@@ -802,3 +859,4 @@ typedef std::list<VehicleProperty::Property> PropertyList;
typedef std::set<VehicleProperty::Property> PropertySet;
#endif // VEHICLEPROPERTY_H
+