void Core::subscribeToProperty(VehicleProperty::Property property, AbstractSink* self)
{
DebugOut(1)<<"Subscribing to: "<<property<<endl;
+
+ /** TODO: Change behavior of subscribe to subscribe even if no sources provide a
+ * given property. When subscribers come online with support, core should tell
+ * the sources what properties have already been subscribed to.
+ */
+
if(!ListPlusPlus<VehicleProperty::Property>(&mMasterPropertyList).contains((property)))
{
DebugOut(1)<<__FUNCTION__<<"(): property not supported: "<<property<<endl;
void DemoSink::supportedChanged(PropertyList list)
{
-
+ routingEngine->subscribeToProperty(VehicleProperty::ButtonEvent, this);
+ routingEngine->subscribeToProperty(VehicleProperty::TurnSignal, this);
}