4 * Created on: Oct 24, 2011
8 #ifndef ROUTINGRECEIVER_H_
9 #define ROUTINGRECEIVER_H_
11 #include "routing/RoutingReceiveInterface.h"
15 class RoutingReceiver : public RoutingReceiveInterface {
18 virtual ~RoutingReceiver();
19 void ackConnect(const am_Handle_s handle, const am_connectionID_t connectionID, const am_Error_e error) ;
20 void ackDisconnect(const am_Handle_s handle, const am_connectionID_t connectionID, const am_Error_e error) ;
21 void ackSetSinkVolumeChange(const am_Handle_s handle, const am_volume_t volume, const am_Error_e error) ;
22 void ackSetSourceVolumeChange(const am_Handle_s handle, const am_volume_t volume, const am_Error_e error) ;
23 void ackSetSourceState(const am_Handle_s handle, const am_Error_e error) ;
24 void ackSetSinkSoundProperty(const am_Handle_s handle, const am_Error_e error) ;
25 void ackSetSourceSoundProperty(const am_Handle_s handle, const am_Error_e error) ;
26 void ackCrossFading(const am_Handle_s handle, const am_HotSink_e hotSink, const am_Error_e error) ;
27 void ackSourceVolumeTick(const am_Handle_s handle, const am_sourceID_t sourceID, const am_volume_t volume) ;
28 void ackSinkVolumeTick(const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume) ;
29 am_Error_e peekDomain(const std::string& name, am_domainID_t& domainID) ;
30 am_Error_e registerDomain(const am_Domain_s& domainData, am_domainID_t& domainID) ;
31 am_Error_e deregisterDomain(const am_domainID_t domainID) ;
32 am_Error_e registerGateway(const am_Gateway_s& gatewayData, am_gatewayID_t& gatewayID) ;
33 am_Error_e deregisterGateway(const am_gatewayID_t gatewayID) ;
34 am_Error_e peekSink(const std::string& name, am_sinkID_t& sinkID) ;
35 am_Error_e registerSink(const am_Sink_s& sinkData, am_sinkID_t& sinkID) ;
36 am_Error_e deregisterSink(const am_sinkID_t sinkID) ;
37 am_Error_e peekSource(const std::string& name, am_sourceID_t& sourceID) ;
38 am_Error_e registerSource(const am_Source_s& sourceData, am_sourceID_t& sourceID) ;
39 am_Error_e deregisterSource(const am_sourceID_t sourceID) ;
40 am_Error_e registerCrossfader(const am_Crossfader_s& crossfaderData, am_crossfaderID_t& crossfaderID) ;
41 am_Error_e deregisterCrossfader(const am_crossfaderID_t crossfaderID) ;
42 void hookInterruptStatusChange(const am_sourceID_t sourceID, const am_InterruptState_e interruptState) ;
43 void hookDomainRegistrationComplete(const am_domainID_t domainID) ;
44 void hookSinkAvailablityStatusChange(const am_sinkID_t sinkID, const am_Availability_s& availability) ;
45 void hookSourceAvailablityStatusChange(const am_sourceID_t sourceID, const am_Availability_s& availability) ;
46 void hookDomainStateChange(const am_domainID_t domainID, const am_DomainState_e domainState) ;
47 void hookTimingInformationChanged(const am_connectionID_t connectionID, const am_timeSync_t delay) ;
48 am_Error_e sendChangedData(const std::vector<am_EarlyData_s>& earlyData) ;
49 am_Error_e getDBusConnectionWrapper(DBusWrapper* dbusConnectionWrapper) const ;
50 am_Error_e registerDbusNode(const std::string& nodeName) ;
53 #endif /* ROUTINGRECEIVER_H_ */