projects
/
profile
/
ivi
/
automotive-message-broker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactored setProperty: made it async with callback
[profile/ivi/automotive-message-broker.git]
/
plugins
/
dbus
/
dbusplugin.h
diff --git
a/plugins/dbus/dbusplugin.h
b/plugins/dbus/dbusplugin.h
index
2803eb1
..
103cfaa
100644
(file)
--- a/
plugins/dbus/dbusplugin.h
+++ b/
plugins/dbus/dbusplugin.h
@@
-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: