refactored setProperty: made it async with callback
[profile/ivi/automotive-message-broker.git] / plugins / dbus / dbusplugin.h
index 2803eb1..103cfaa 100644 (file)
@@ -43,10 +43,14 @@ protected:
                propertyDBusMap[property] = new BasicProperty<T>(routingEngine, property, propertyName, signature, access, this);
        }
 
                propertyDBusMap[property] = new BasicProperty<T>(routingEngine, property, propertyName, signature, access, this);
        }
 
-       virtual void setProperty(VehicleProperty::Property name, AbstractPropertyType* value)
+       /*virtual void setProperty(VehicleProperty::Property name, AbstractPropertyType* value)
        {
        {
-               routingEngine->setProperty(name, value);
-       }
+               AsyncSetPropertyRequest request;
+               request.property = name;
+               request.value = value;
+               request.completed = [](AsyncPropertyReply* reply) { delete reply; };
+               routingEngine->setProperty(request);
+       }*/
 
        PropertyDBusMap propertyDBusMap;
 private:
 
        PropertyDBusMap propertyDBusMap;
 private: