refactored setProperty: made it async with callback
[profile/ivi/automotive-message-broker.git] / plugins / obd2plugin / obd2source.cpp
index 81b42c3..5807fbc 100644 (file)
@@ -715,7 +715,17 @@ void OBD2Source::getPropertyAsync(AsyncPropertyReply *reply)
        g_async_queue_push(singleShotQueue,requ);
 }
 
-void OBD2Source::setProperty(VehicleProperty::Property , AbstractPropertyType * )
+AsyncPropertyReply *OBD2Source::setProperty(AsyncSetPropertyRequest request )
 {
+       AsyncPropertyReply* reply = new AsyncPropertyReply (request);
+       reply->success = false;
+       try
+       {
+               reply->completed(reply);
+       }
+       catch (...)
+       {
 
+       }
+       return reply;
 }