added todo
authorKevron Rees <kevron_m_rees@linux.intel.com>
Wed, 20 Mar 2013 17:47:43 +0000 (10:47 -0700)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Wed, 20 Mar 2013 17:47:43 +0000 (10:47 -0700)
ambd/core.cpp
plugins/demosink/demosinkplugin.cpp

index 0f07abd..bb7ee7b 100644 (file)
@@ -233,6 +233,12 @@ AsyncPropertyReply * Core::setProperty(AsyncSetPropertyRequest request)
 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;
index 9f7f6b3..13675ba 100644 (file)
@@ -115,5 +115,6 @@ void DemoSink::propertyChanged(VehicleProperty::Property property, AbstractPrope
 
 void DemoSink::supportedChanged(PropertyList list)
 {
-
+       routingEngine->subscribeToProperty(VehicleProperty::ButtonEvent, this);
+       routingEngine->subscribeToProperty(VehicleProperty::TurnSignal, this);
 }