From c0fd43259ab0e269dd0918231c162d19d2dea593 Mon Sep 17 00:00:00 2001 From: Christian Linke Date: Thu, 20 Jun 2013 16:21:48 +0200 Subject: * some adoptins in the routinginterface Signed-off-by: Christian Linke --- .../include/CAmDbusMessageHandler.h | 12 ++++- PluginRoutingInterfaceDbus/include/CAmDbusSend.h | 3 ++ .../include/IAmRoutingReceiverShadow.h | 8 ++++ .../include/RoutingReceiver.xml | 54 ++++++++++++++++++++-- .../include/RoutingSender.xml | 32 +++++-------- .../include/configRoutingDbus.h | 2 +- 6 files changed, 83 insertions(+), 28 deletions(-) (limited to 'PluginRoutingInterfaceDbus/include') diff --git a/PluginRoutingInterfaceDbus/include/CAmDbusMessageHandler.h b/PluginRoutingInterfaceDbus/include/CAmDbusMessageHandler.h index 62ad421..71b3078 100644 --- a/PluginRoutingInterfaceDbus/include/CAmDbusMessageHandler.h +++ b/PluginRoutingInterfaceDbus/include/CAmDbusMessageHandler.h @@ -79,6 +79,8 @@ public: dbus_uint16_t getUInt(DBusMessageIter& iter, bool next); dbus_int16_t getInt(); dbus_int16_t getInt(DBusMessageIter& iter, bool next); + dbus_int32_t getInt32(); + dbus_int32_t getInt32(DBusMessageIter& iter, bool next); dbus_bool_t getBool(); dbus_bool_t getBool(DBusMessageIter& iter, bool next); char getByte(); @@ -87,14 +89,22 @@ public: double getDouble(DBusMessageIter& iter, bool next); char* getString(); char* getString(DBusMessageIter& iter, bool next); - am::am_Availability_s getAvailability(); + am_Availability_s getAvailability(); std::vector getEarlyData(); am_Domain_s getDomainData(); am_Source_s getSourceData(); am_Sink_s getSinkData(); am_Gateway_s getGatewayData(); am_Crossfader_s getCrossfaderData(); + am_SoundProperty_s getSoundProperty(); am_MainSoundProperty_s getMainSoundProperty(); + std::vector getListconnectionFormats(); + std::vector getListBool(); + std::vector getListSoundProperties(); + std::vector getListMainSoundProperties(); + am_NotificationPayload_s getNotificationPayload(); + + /** * the overloaded append function appends different datatypes to the dbusmessage diff --git a/PluginRoutingInterfaceDbus/include/CAmDbusSend.h b/PluginRoutingInterfaceDbus/include/CAmDbusSend.h index 3f8f0a5..b95c227 100644 --- a/PluginRoutingInterfaceDbus/include/CAmDbusSend.h +++ b/PluginRoutingInterfaceDbus/include/CAmDbusSend.h @@ -37,15 +37,18 @@ public: void append(std::string string); void append(uint16_t integer); void append(int16_t integer); + void append(int integer); void append(std::vector listSoundProperties); void append(am_SoundProperty_s soundProperty); am_Error_e send(); + am_Error_e sendAsync(); private: DBusMessage* mpDbusMessage; DBusConnection* mpDbusConnection; DBusMessageIter mDbusMessageIter; DBusError mDBusError; + dbus_uint32_t mSerial; }; } diff --git a/PluginRoutingInterfaceDbus/include/IAmRoutingReceiverShadow.h b/PluginRoutingInterfaceDbus/include/IAmRoutingReceiverShadow.h index 642ab6f..bc0cb5e 100644 --- a/PluginRoutingInterfaceDbus/include/IAmRoutingReceiverShadow.h +++ b/PluginRoutingInterfaceDbus/include/IAmRoutingReceiverShadow.h @@ -74,6 +74,14 @@ public: void sendChangedData(DBusConnection *conn, DBusMessage *msg); void confirmRoutingReady(DBusConnection *conn, DBusMessage *msg); void confirmRoutingRundown(DBusConnection *conn, DBusMessage *msg); + void updateGateway(DBusConnection *conn, DBusMessage *msg); + void updateSink(DBusConnection *conn, DBusMessage *msg); + void updateSource(DBusConnection *conn, DBusMessage *msg); + void ackSetVolumes(DBusConnection *conn, DBusMessage *msg); + void ackSinkNotificationConfiguration(DBusConnection *conn, DBusMessage *msg); + void ackSourceNotificationConfiguration(DBusConnection *conn, DBusMessage *msg); + void hookSinkNotificationDataChange(DBusConnection *conn, DBusMessage *msg); + void hookSourceNotificationDataChange(DBusConnection *conn, DBusMessage *msg); /** * sets the pointer to the CommandReceiveInterface and registers Callback diff --git a/PluginRoutingInterfaceDbus/include/RoutingReceiver.xml b/PluginRoutingInterfaceDbus/include/RoutingReceiver.xml index 5fb390a..f8799c6 100644 --- a/PluginRoutingInterfaceDbus/include/RoutingReceiver.xml +++ b/PluginRoutingInterfaceDbus/include/RoutingReceiver.xml @@ -66,19 +66,21 @@ - + - + + + - + @@ -92,7 +94,7 @@ - + @@ -106,7 +108,7 @@ - + @@ -166,6 +168,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PluginRoutingInterfaceDbus/include/RoutingSender.xml b/PluginRoutingInterfaceDbus/include/RoutingSender.xml index d6fb2ea..adfc5ad 100644 --- a/PluginRoutingInterfaceDbus/include/RoutingSender.xml +++ b/PluginRoutingInterfaceDbus/include/RoutingSender.xml @@ -14,72 +14,62 @@ - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - + diff --git a/PluginRoutingInterfaceDbus/include/configRoutingDbus.h b/PluginRoutingInterfaceDbus/include/configRoutingDbus.h index 2420184..aa95328 100644 --- a/PluginRoutingInterfaceDbus/include/configRoutingDbus.h +++ b/PluginRoutingInterfaceDbus/include/configRoutingDbus.h @@ -1,6 +1,6 @@ #ifndef _ROUTINGDBUS_CONFIG_H #define _ROUTINGDBUS_CONFIG_H -#define ROUTING_DBUS_INTROSPECTION_FILE "/home/christian/workspace/AudioManager/bin/RoutingReceiver.xml" +#define ROUTING_DBUS_INTROSPECTION_FILE "/home/genius/workspace/workspace/AudioManager/bin/RoutingReceiver.xml" #endif /* _ROUTINGDBUS_CONFIG_H */ -- cgit v1.2.1