4 * Created on: Oct 24, 2011
8 #include "CommandReceiver.h"
10 CommandReceiver::CommandReceiver(DatabaseHandler* iDatabaseHandler, DBusWrapper* iDBusWrapper)
11 : mDatabaseHandler(iDatabaseHandler), mDBusWrapper(iDBusWrapper)
15 CommandReceiver::~CommandReceiver()
19 am_Error_e CommandReceiver::connect(const am_sourceID_t sourceID, const am_sinkID_t sinkID, am_mainConnectionID_t & mainConnectionID)
27 am_Error_e CommandReceiver::disconnect(const am_mainConnectionID_t mainConnectionID)
33 am_Error_e CommandReceiver::setVolume(const am_sinkID_t sinkID, const am_mainVolume_t volume)
39 am_Error_e CommandReceiver::volumeStep(const am_sinkID_t sinkID, const int16_t volumeStep)
45 am_Error_e CommandReceiver::setSinkMuteState(const am_sinkID_t sinkID, const am_MuteState_e muteState)
51 am_Error_e CommandReceiver::setMainSinkSoundProperty(const am_MainSoundProperty_s & soundProperty, const am_sinkID_t sinkID)
57 am_Error_e CommandReceiver::setMainSourceSoundProperty(const am_MainSoundProperty_s & soundProperty, const am_sourceID_t sourceID)
63 am_Error_e CommandReceiver::setSystemProperty(const am_SystemProperty_s & property)
69 am_Error_e CommandReceiver::getListMainConnections(std::vector<am_MainConnectionType_s> & listConnections) const
71 return mDatabaseHandler->getListVisibleMainConnections(listConnections);
77 am_Error_e CommandReceiver::getListMainSinks(std::vector<am_SinkType_s>& listMainSinks) const
79 return mDatabaseHandler->getListMainSinks(listMainSinks);
84 am_Error_e CommandReceiver::getListMainSources(std::vector<am_SourceType_s>& listMainSources) const
86 return mDatabaseHandler->getListMainSources(listMainSources);
91 am_Error_e CommandReceiver::getListMainSinkSoundProperties(const am_sinkID_t sinkID, std::vector<am_MainSoundProperty_s> & listSoundProperties) const
93 return mDatabaseHandler->getListMainSinkSoundProperties(sinkID,listSoundProperties);
98 am_Error_e CommandReceiver::getListMainSourceSoundProperties(const am_sourceID_t sourceID, std::vector<am_MainSoundProperty_s> & listSourceProperties) const
100 return mDatabaseHandler->getListMainSourceSoundProperties(sourceID,listSourceProperties);
105 am_Error_e CommandReceiver::getListSourceClasses(std::vector<am_SourceClass_s> & listSourceClasses) const
107 return mDatabaseHandler->getListSourceClasses(listSourceClasses);
112 am_Error_e CommandReceiver::getListSinkClasses(std::vector<am_SinkClass_s> & listSinkClasses) const
114 return mDatabaseHandler->getListSinkClasses(listSinkClasses);
119 am_Error_e CommandReceiver::getListSystemProperties(std::vector<am_SystemProperty_s> & listSystemProperties) const
121 return mDatabaseHandler->getListSystemProperties(listSystemProperties);
126 am_Error_e CommandReceiver::getTimingInformation(const am_mainConnectionID_t mainConnectionID, am_timeSync_t & delay) const
128 return mDatabaseHandler->getTimingInformation(mainConnectionID,delay);
133 am_Error_e CommandReceiver::getDBusConnectionWrapper(DBusWrapper*& dbusConnectionWrapper) const
135 dbusConnectionWrapper=mDBusWrapper;