automotive-message-broker  0.14.803
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
AbstractDBusInterface Class Reference
Inheritance diagram for AbstractDBusInterface:
DBusSink AccelerationProperty AcceleratorPedalPosition AirbagStatusProperty AlarmStatus AntilockBrakingSystemProperty AtmosphericPressure BatteryStatusProperty BrakeMaintenance BrakeOperation ButtonEvent ChildSafetyLock Chime ClimateControlProperty ConvertibleRoof CruiseControlProperty CustomPropertyInterface DefrostProperty Diagnostics DoorProperty DoorsProperty DoorStatusProperty DriveMode DrivingMode ElectronicStabilityControl EngineCoolant EngineOilProperty EngineSpeedProperty ExteriorBrightnessProperty FluidProperty FuelInfoProperty FuelProperty HazardLightProperty HornProperty IgnitionTime InteriorLightStatusProperty LaneDepartureStatus LightStatusProperty LocationProperty MalfunctionIndicator MirrorProperty NightMode ObstacleDistanceProperty OccupantStatusProperty OdometerProperty ParkingBrakeProperty PowertrainTorque RainSensor SeatAdjustment SeatBeltStatusProperty SeatProperty SideWindowStatusProperty SizeProperty SteeringWheel SteeringWheelPositionProperty Sunroof Temperature ThrottlePosition TireProperty TractionControlSystemProperty TransmissionClutch TransmissionOil TransmissionProperty TripMeterProperty UncategorizedPropertyInterface VehicleId VehiclePowerModeProperty VehicleSound VehicleSpeedProperty VehicleTopSpeedLimitProperty VehicleTypeProperty WasherFluid WheelInformationProperty WheelTick WindowStatusProperty WindshieldWiperStatus YawRate

Public Member Functions

 AbstractDBusInterface (std::string interfaceName, std::string objectName, GDBusConnection *connection)
 
void setDBusConnection (GDBusConnection *connection)
 
void registerObject ()
 
void unregisterObject ()
 
void addProperty (VariantType *property)
 
virtual void updateValue (VariantType *property)
 
std::string interfaceName ()
 
void setInterfaceName (const std::string &ifaceName)
 
bool implementsProperty (std::string property)
 
bool hasPropertyDBus (std::string attributeName)
 hasPropertyDBus
 
std::string objectPath ()
 
bool isSupported ()
 
double time ()
 
VariantTypeproperty (std::string propertyName)
 
void setObjectPath (std::string op)
 
std::string objectName ()
 
Zone::Type zone ()
 
std::string source ()
 
std::unordered_map
< std::string, VariantType * > 
getProperties ()
 
bool isRegistered ()
 

Static Public Member Functions

static PropertyList implementedProperties ()
 
static std::list
< AbstractDBusInterface * > 
getObjectsForProperty (std::string property)
 
static list
< AbstractDBusInterface * > 
interfaces ()
 
static std::vector< string > supportedInterfaces ()
 

Public Attributes

AbstractRoutingEnginere
 

Protected Member Functions

void startRegistration ()
 
virtual void setProperty (std::string propertyName, GVariant *value, std::function< void(bool, AsyncPropertyReply::Error)> callback)
 
virtual GVariant * getProperty (std::string propertyName)
 
void setTimeout (int timeout)
 

Static Protected Member Functions

static GVariant * getProperty (GDBusConnection *connection, const gchar *sender, const gchar *objectPath, const gchar *interfaceName, const gchar *propertyName, GError **error, gpointer userData)
 
static gboolean setProperty (GDBusConnection *connection, const gchar *sender, const gchar *objectPath, const gchar *interfaceName, const gchar *propertyName, GVariant *value, GError **error, gpointer userData, std::function< void(bool, AsyncPropertyReply::Error)> callback)
 
static void handleMyMethodCall (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data)
 

Protected Attributes

std::unordered_map
< std::string, VariantType * > 
properties
 
Zone::Type zoneFilter
 
PropertyDBusMap propertyDBusMap
 
bool supported
 
double mTime
 
std::string mSourceFilter
 

Member Function Documentation

bool AbstractDBusInterface::hasPropertyDBus ( std::string  attributeName)
inline

hasPropertyDBus

Parameters
attributeName,nameof DBus property
Returns
true if attributeName is supported by this interface

The documentation for this class was generated from the following file: