exportProperty<SteeringWheelPositionProperty>(iface->re, connection);
exportProperty<MirrorSettingProperty>(iface->re, connection);
- iface->supportedChanged(iface->re->supported());
+ iface->registerCustomTypes();
}
static void
DebugOut()<<"supported Properties: "<<supportedProperties.size()<<endl;
if(!connection)
{
- DebugOut(DebugOut::Warning)<<"supportedChanged called before we have a dbus connection"<<endl;
return;
}
+ registerCustomTypes();
+}
+
+void DBusInterfaceManager::registerCustomTypes()
+{
PropertyList list = VehicleProperty::customProperties();
PropertyList implemented = AbstractDBusInterface::implementedProperties();
reply->success = true;
reply->completed(reply);
}
+ else if(reply->property == VehicleProperty::TransmissionGearPosition)
+ {
+ VehicleProperty::TransmissionGearPositionType temp(transmissionShiftPostion);
+ reply->value = &temp;
+ reply->success = true;
+ reply->completed(reply);
+ }
else if(reply->property == VehicleProperty::SteeringWheelAngle)
{
VehicleProperty::SteeringWheelAngleType temp(steeringWheelAngle);