**/
Dictionary getHistory(double beginTime, double endTime);
}
+
enum Zone {
None = 0,
Front = 1,
Rear = 1 << 4,
Center = 1 << 5
}
+
[NoInterfaceObject]
interface Manager {
/**
* \brief returns supported properties
**/
- sequence<DOMString> list();
+ sequence<DOMString> List();
/**
* \brief find the DBus object path which matches "objectName" and "zone".
* \arg DOMString property is the requested property to be retrieved.
* \arg Zone zone is the zone which the object
* \returns string representing the DBus Object path
**/
- DOMString findObjectForZone(DOMString objectName, Zone zone);
+ DOMString FindObjectForZone(DOMString objectName, Zone zone);
/**
* \brief find the DBus object path matching the given "objectName"
* \arg DOMString objectName to find
* \returns list of object paths that provide the given object Name.
**/
- sequence<DOMString> findObject(DOMString objectName)
+ sequence<DOMString> FindObject(DOMString objectName)
/**
* \brief get a list of zones for a given objectName.
* \arg DOMString objectName object name.
* \returns list of zones for the given objectName (@see Zone)
**/
- sequence<unsigned short> zonesForObjectName(DOMString objectName)
+ sequence<unsigned short> ZonesForObjectName(DOMString objectName)
};
[NoInterfaceObject]
readonly attribute object ObstacleDistance;
};
+[NoInterfaceObject]
+interface NightMode : VehiclePropertyType {
+
+ /*!
+ * \brief MUST return whether or not the system is in NightMode or not. True = Night time, False = Day time
+ **/
+ readonly attribute boolean NightMode;
+};
+
+[NoInterfaceObject]
+interface DrivingMode : VehiclePropertyType {
+
+ /*!
+ * \brief MUST return whether or not the system is in DrivingMode or not. 1 = Driving, 0 = Not Driving
+ **/
+ readonly attribute unsigned short DrivingMode;
+};
+
};
const VehicleProperty::Property VehicleProperty::SunroofTilt = "SunroofTilt";
const VehicleProperty::Property VehicleProperty::ConvertibleRoof = "ConvertibleRoof";
const VehicleProperty::Property VehicleProperty::NightMode = "NightMode";
-
+const VehicleProperty::Property VehicleProperty::DrivingMode = "DrivingMode";
std::list<VehicleProperty::Property> VehicleProperty::mCapabilities;
std::list<VehicleProperty::Property> VehicleProperty::mCustomProperties;
REGISTERPROPERTY(SunroofTilt,0);
REGISTERPROPERTY(ConvertibleRoof,false);
REGISTERPROPERTY(NightMode,false);
+ REGISTERPROPERTY(DrivingMode,Driving::None);
}
};
}
+namespace Driving
+{
+enum Mode
+{
+ None = 0,
+ Driving
+};
+}
+
#include <boost/preprocessor/comma.hpp>
#define PROPERTYTYPE(property, propertyType, baseClass, valueType) \
static const Property NightMode;
PROPERTYTYPEBASIC(NightMode, bool)
+ static const Property DrivingMode;
+ PROPERTYTYPEBASIC(DrivingMode, Driving::Mode)
+
/** END PROPERTIES **/