summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/include/RoutingReceiver.h
diff options
context:
space:
mode:
Diffstat (limited to 'AudioManagerDaemon/include/RoutingReceiver.h')
-rw-r--r--AudioManagerDaemon/include/RoutingReceiver.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/AudioManagerDaemon/include/RoutingReceiver.h b/AudioManagerDaemon/include/RoutingReceiver.h
index 01933d5..f3ba2fe 100644
--- a/AudioManagerDaemon/include/RoutingReceiver.h
+++ b/AudioManagerDaemon/include/RoutingReceiver.h
@@ -25,7 +25,12 @@
#ifndef ROUTINGRECEIVER_H_
#define ROUTINGRECEIVER_H_
-#include "routing/RoutingReceiveInterface.h"
+#include <routing/RoutingReceiveInterface.h>
+#include <SocketHandler.h>
+#include <config.h>
+#ifdef WITH_DBUS_WRAPPER
+#include <dbus/DBusWrapper.h>
+#endif
#include "DatabaseHandler.h"
#include "RoutingSender.h"
#include "ControlSender.h"
@@ -37,7 +42,9 @@ namespace am {
*/
class RoutingReceiver : public RoutingReceiveInterface {
public:
- RoutingReceiver(DatabaseHandler *iDatabaseHandler, RoutingSender *iRoutingSender, ControlSender *iControlSender);
+ RoutingReceiver(DatabaseHandler *iDatabaseHandler, RoutingSender *iRoutingSender, ControlSender *iControlSender, SocketHandler *iSocketHandler);
+ RoutingReceiver(DatabaseHandler *iDatabaseHandler, RoutingSender *iRoutingSender, ControlSender *iControlSender, DBusWrapper *iDBusWrapper);
+ RoutingReceiver(DatabaseHandler *iDatabaseHandler, RoutingSender *iRoutingSender, ControlSender *iControlSender,SocketHandler *iSocketHandler,DBusWrapper *iDBusWrapper);
virtual ~RoutingReceiver();
void ackConnect(const am_Handle_s handle, const am_connectionID_t connectionID, const am_Error_e error) ;
void ackDisconnect(const am_Handle_s handle, const am_connectionID_t connectionID, const am_Error_e error) ;
@@ -62,8 +69,8 @@ public:
am_Error_e deregisterSource(const am_sourceID_t sourceID) ;
am_Error_e registerCrossfader(const am_Crossfader_s& crossfaderData, am_crossfaderID_t& crossfaderID) ;
am_Error_e deregisterCrossfader(const am_crossfaderID_t crossfaderID) ;
- am_Error_e peekSinkClassID(const std::string& name, am_sourceClass_t& sourceClassID) ;
- am_Error_e peekSourceClassID(const std::string& name, am_sinkClass_t& sinkClassID) ;
+ am_Error_e peekSinkClassID(const std::string name, const am_sinkClass_t& sinkClassID) ;
+ am_Error_e peekSourceClassID(const std::string name, const am_sourceClass_t& sourceClassID) ;
void hookInterruptStatusChange(const am_sourceID_t sourceID, const am_InterruptState_e interruptState) ;
void hookDomainRegistrationComplete(const am_domainID_t domainID) ;
void hookSinkAvailablityStatusChange(const am_sinkID_t sinkID, const am_Availability_s& availability) ;
@@ -71,11 +78,15 @@ public:
void hookDomainStateChange(const am_domainID_t domainID, const am_DomainState_e domainState) ;
void hookTimingInformationChanged(const am_connectionID_t connectionID, const am_timeSync_t delay) ;
am_Error_e sendChangedData(const std::vector<am_EarlyData_s>& earlyData) ;
- am_Error_e getDBusConnectionWrapper(DBusWrapper* dbusConnectionWrapper) const ;
+ am_Error_e getDBusConnectionWrapper(DBusWrapper*& dbusConnectionWrapper) const ;
+ am_Error_e getSocketHandler(SocketHandler*& socketHandler) const;
+
private:
DatabaseHandler *mDatabaseHandler; //!< pointer to the databaseHandler
RoutingSender *mRoutingSender; //!< pointer to the routingSender
ControlSender *mControlSender; //!< pointer to the controlSender
+ DBusWrapper *mDBusWrapper; //!< pointer to dbuswrapper
+ SocketHandler *mSocketHandler; //!< pointer to sockethandler
};