diff options
author | Johannes Schanda <schanda@itestra.de> | 2013-08-08 15:34:07 +0200 |
---|---|---|
committer | Johannes Schanda <schanda@itestra.de> | 2013-08-08 15:34:07 +0200 |
commit | 793615cee2fb824835b1ee7e6d80bfc89108ea92 (patch) | |
tree | 895dc52f1959a993d5a3b42f873f5846b3fa3766 | |
parent | 3fbd89e074ce114d01e5668201c14bf1ffc0594d (diff) | |
download | genivi-common-api-dbus-runtime-793615cee2fb824835b1ee7e6d80bfc89108ea92.tar.gz |
Fix bug in observable readonly attribute instantiation
-rw-r--r-- | src/CommonAPI/DBus/DBusAttribute.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/CommonAPI/DBus/DBusAttribute.h b/src/CommonAPI/DBus/DBusAttribute.h index 4844b87..76647eb 100644 --- a/src/CommonAPI/DBus/DBusAttribute.h +++ b/src/CommonAPI/DBus/DBusAttribute.h @@ -25,9 +25,10 @@ class DBusReadonlyAttribute: public _AttributeType { typedef typename _AttributeType::ValueType ValueType; typedef typename _AttributeType::AttributeAsyncCallback AttributeAsyncCallback; - DBusReadonlyAttribute(_DBusProxyType& dbusProxy, const char* getMethodName): + DBusReadonlyAttribute(_DBusProxyType& dbusProxy, const char* setMethodSignature, const char* getMethodName): dbusProxy_(dbusProxy), - getMethodName_(getMethodName) { + getMethodName_(getMethodName), + setMethodSignature_(setMethodSignature) { assert(getMethodName); } @@ -44,6 +45,7 @@ class DBusReadonlyAttribute: public _AttributeType { protected: _DBusProxyType& dbusProxy_; const char* getMethodName_; + const char* setMethodSignature_; }; @@ -54,7 +56,7 @@ class DBusAttribute: public DBusReadonlyAttribute<_AttributeType> { typedef typename _AttributeType::AttributeAsyncCallback AttributeAsyncCallback; DBusAttribute(_DBusProxyType& dbusProxy, const char* setMethodName, const char* setMethodSignature, const char* getMethodName): - DBusReadonlyAttribute<_AttributeType>(dbusProxy, getMethodName), + DBusReadonlyAttribute<_AttributeType>(dbusProxy, setMethodSignature, getMethodName), setMethodName_(setMethodName), setMethodSignature_(setMethodSignature) { assert(setMethodName); |