[dbus] add overload 'value' for custom dbus property types
authorKevron Rees <tripzero.kev@gmail.com>
Wed, 15 Apr 2015 22:42:21 +0000 (15:42 -0700)
committerKevron Rees <tripzero.kev@gmail.com>
Wed, 15 Apr 2015 22:42:21 +0000 (15:42 -0700)
README.md
docs/ambd.in.md
plugins/dbus/custompropertyinterface.cpp
plugins/dbus/custompropertyinterface.h

index 9acbb84..625aeb0 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # Automotive Message Broker Daemon {#ambd}
 
-Version 0.14.802
+Version 0.15
 
 ## Introduction
 
@@ -11,7 +11,7 @@ Automotive Message Broker is built using CMake and requires libltdl (libtool), l
 
 ## Git
 About the Git Tree:
-master is expected to be unstable and may not even compile.  If you want something more stable, checkout one of the
+'master' is expected to be unstable and may not even compile.  If you want something more stable, checkout one of the
 release branches (ie, 0.9.0, 0.10, etc)
 
 ## Building
@@ -60,7 +60,7 @@ You will also need to edit your config to enable the Qt-based mainloop:
 
 ~~~~~~~~~~~~~{.json}
 {
-       "mainloop" : "/usr/lib/x86_64-linux-gnu/automotive-message-broker/qtmainloopplugin.so",
+       "mainloop" : "/PLUGIN_INSTALL_PATH/qtmainloopplugin.so",
        "plugins" : "/etc/ambd/plugins.d"
 }
 ~~~~~~~~~~~~~
index 020454c..326a50d 100644 (file)
@@ -1,6 +1,6 @@
 # Automotive Message Broker Daemon {#ambd}
 
-Version @PROJECT_VERSION@
+Version @PROJECT_SERIES@
 
 ## Introduction
 
@@ -11,7 +11,7 @@ Automotive Message Broker is built using CMake and requires libltdl (libtool), l
 
 ## Git
 About the Git Tree:
-master is expected to be unstable and may not even compile.  If you want something more stable, checkout one of the
+'master' is expected to be unstable and may not even compile.  If you want something more stable, checkout one of the
 release branches (ie, 0.9.0, 0.10, etc)
 
 ## Building
@@ -60,7 +60,7 @@ You will also need to edit your config to enable the Qt-based mainloop:
 
 ~~~~~~~~~~~~~{.json}
 {
-       "mainloop" : "@PLUGIN_INSTALL_PATH@/qtmainloopplugin.so",
+       "mainloop" : "/PLUGIN_INSTALL_PATH/qtmainloopplugin.so",
        "plugins" : "@PLUGIN_SEGMENT_INSTALL_PATH@"
 }
 ~~~~~~~~~~~~~
index 3c93db3..00626f3 100644 (file)
@@ -17,14 +17,14 @@ CustomPropertyInterface::CustomPropertyInterface(VehicleProperty::Property prop,
                        throw std::runtime_error("Cannot create custom property: " + prop);
                }
 
-               GVariant* var = temp->toVariant();
-               std::string signature = g_variant_get_type_string(var);
-               g_variant_unref(var);
-
-               propertyDBusMap.push_back( new VariantType(re, prop, prop, VariantType::ReadWrite));
+               propertyDBusMap.push_back(new VariantType(re, prop, prop, VariantType::ReadWrite));
+               propertyDBusMap.push_back(new VariantType(re, prop, "Value", VariantType::ReadWrite));
 
                delete temp;
        }
+}
 
+CustomPropertyInterface::~CustomPropertyInterface()
+{
 
 }
index 39eb383..8c0f8d5 100644 (file)
@@ -7,6 +7,7 @@ class CustomPropertyInterface: public DBusSink
 {
 public:
        CustomPropertyInterface(VehicleProperty::Property, AbstractRoutingEngine* re, GDBusConnection* connection);
+       virtual ~CustomPropertyInterface();
 };