+++ /dev/null
-[Containments][1]
-ActionPluginsSource=Global
-activity=nobdy2
-activityId=
-desktop=-1
-formfactor=0
-immutability=1
-lastDesktop=-1
-lastScreen=0
-location=0
-orientation=2
-plugin=newspaper
-screen=0
-wallpaperplugin=color
-wallpaperpluginmode=
-
-[Containments][1][Wallpaper][color]
-backgroundMode=0
-color1=255,255,255
-color2=0,0,0
-
-[Project]
-Manager=KDevCMakeManager
-Name=nobdy2
-VersionControl=kdevgit
+++ /dev/null
-[Buildset]
-BuildItems=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x00)
-
-[CMake]
-BuildDirs[$e]=$HOME/src/automotive-message-broker/build
-CMakeDir=/usr/share/cmake-2.8/Modules
-Current CMake Binary=file:///usr/bin/cmake
-CurrentBuildDir=file:///home/tripzero/src/automotive-message-broker/build
-CurrentBuildType=Release
-CurrentInstallDir=file:///usr/local
-Extra Arguments=
-ProjectRootRelative=./
-
-[MakeBuilder]
-Number Of Jobs=1
-
-[Project]
-VersionControlSupport=kdevgit
+++ /dev/null
-[Project]
-Manager=KDevCMakeManager
-Name=automotive-message-broker
-VersionControl=kdevgit
{
routingEngine->subscribeToProperty(VehicleProperty::AccelerationX, this);
accelerationX = new BasicProperty<int>("X", "i", AbstractProperty::Read, this);
+ propertyDBusMap[VehicleProperty::AccelerationX] = accelerationX;
supported = true;
}
}
{
routingEngine->subscribeToProperty(VehicleProperty::AccelerationY, this);
accelerationY = new BasicProperty<int>("Y", "i", AbstractProperty::Read, this);
+ propertyDBusMap[VehicleProperty::AccelerationY] = accelerationY;
supported = true;
}
}
{
routingEngine->subscribeToProperty(VehicleProperty::AccelerationZ, this);
accelerationZ = new BasicProperty<int>("Z", "i", AbstractProperty::Read, this);
+ propertyDBusMap[VehicleProperty::AccelerationZ] = accelerationZ;
supported = true;
}
}
}
}
-void AccelerationPropertyInterface::propertyChanged(VehicleProperty::Property property, boost::any value, string)
+/*void AccelerationPropertyInterface::propertyChanged(VehicleProperty::Property property, boost::any value, string)
{
if(property == VehicleProperty::AccelerationX)
accelerationZ->setValue(boost::any_cast<int>(value));
}
}
-}
+}*/
AccelerationPropertyInterface(AbstractRoutingEngine* re, GDBusConnection* connection);
virtual void supportedChanged(PropertyList supportedProperties);
- virtual void propertyChanged(VehicleProperty::Property property, boost::any value, std::string uuid);
+ //virtual void propertyChanged(VehicleProperty::Property property, boost::any value, std::string uuid);
private:
void DBusSink::propertyChanged(VehicleProperty::Property property, boost::any value, string uuid)
{
- AbstractProperty* prop = propertyDBusMap[property];
+ if(!propertyDBusMap.count(property))
+ return;
+ AbstractProperty* prop = propertyDBusMap[property];
prop->setValue(value);
}