database playback functionality working
authorKevron Rees <tripzero.kev@gmail.com>
Fri, 15 Mar 2013 16:42:57 +0000 (09:42 -0700)
committerKevron Rees <tripzero.kev@gmail.com>
Fri, 15 Mar 2013 16:42:57 +0000 (09:42 -0700)
configsink [deleted file]
configsource [deleted file]
plugins/database/databasesink.cpp
plugins/dbus/amb-qt/ambqt.h

diff --git a/configsink b/configsink
deleted file mode 100644 (file)
index 2f4d5fe..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-{
-       "sources" : [ {"name":"ExampleSource","path":"/usr/lib/automotive-message-broker/examplesourceplugin.so" }],
-       "sinks": [ {"name":"WebSocketSink","path":"/usr/lib/automotive-message-broker/websocketsinkplugin.so"} ]
-}
-
diff --git a/configsource b/configsource
deleted file mode 100644 (file)
index 8638d46..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-{
-       "sources" : [ {"name":"WebSocketSource","ip":"127.0.0.1","port":"23000","path":"/usr/lib/automotive-message-broker/websocketsourceplugin.so" }],
-       "sinks": [ {"name":"ExampleSink","path":"/usr/lib/automotive-message-broker/examplesinkplugin.so"} ]
-}
-
index 5c44f54..a0aedbf 100644 (file)
@@ -443,10 +443,18 @@ AsyncPropertyReply *DatabaseSink::setProperty(AsyncSetPropertyRequest request)
                if(request.value->value<bool>())
                {
                        startPlayback();
+
+                       BasicPropertyType<bool> temp(true);
+
+                       routingEngine->updateProperty(DatabasePlaybackProperty,&temp,uuid());
                }
                else
                {
                        /// TODO: stop playback
+
+                       BasicPropertyType<bool> temp(true);
+
+                       routingEngine->updateProperty(DatabasePlaybackProperty,&temp,uuid());
                }
 
                reply->success = true;
index c406d73..d004197 100644 (file)
@@ -41,6 +41,8 @@ class AmbProperty: public QObject
 
                QVariant value = mDBusInterface->property(propertyName().toAscii().data());
 
+               qDebug()<<"property "<<propertyName()<<" value: "<<value<<" isvalid? "<<(QVariant::Invalid == value);
+
                return value;
        }
 
@@ -55,8 +57,8 @@ class AmbProperty: public QObject
        }
 
 Q_SIGNALS:
-       void propertyChanged(QVariant, double);
-       void valueChanged(QVariant);
+       void propertyChanged(QVariant val, double time);
+       void valueChanged(QVariant val);
 
 public Q_SLOTS:
        void propertyChangedSlot(QDBusVariant val, double ts);