diff options
Diffstat (limited to 'AudioManagerDaemon/DBusCommandInterface.cpp')
-rw-r--r-- | AudioManagerDaemon/DBusCommandInterface.cpp | 55 |
1 files changed, 19 insertions, 36 deletions
diff --git a/AudioManagerDaemon/DBusCommandInterface.cpp b/AudioManagerDaemon/DBusCommandInterface.cpp index 3773536..607acf6 100644 --- a/AudioManagerDaemon/DBusCommandInterface.cpp +++ b/AudioManagerDaemon/DBusCommandInterface.cpp @@ -25,10 +25,10 @@ #include "DBusCommandInterface.h" -DBusCommandInterface::DBusCommandInterface() { +CommandInterface::CommandInterface() { } -void DBusCommandInterface::startupInterface() { +void CommandInterface::startupInterface() { DLT_LOG(AudioManager,DLT_LOG_INFO, DLT_STRING("Startup of DBUS Command interface")); // new DBusCommand(this); @@ -48,38 +48,24 @@ void DBusCommandInterface::startupInterface() { // } -int DBusCommandInterface::connect(int Source_ID, int Sink_ID) { - if (m_core->UserConnect(Source_ID, Sink_ID) == GEN_OK) { - return 1; - } - return -1; +int CommandInterface::connect(int Source_ID, int Sink_ID) { + } -int DBusCommandInterface::disconnect(int Source_ID, int Sink_ID) { - DLT_LOG(AudioManager,DLT_LOG_ERROR, DLT_STRING("Disconnect")); - genRoute_t ReturnRoute; - if (int value=m_core->returnDatabaseHandler()->returnMainconnectionIDforSinkSourceID(Sink_ID,Source_ID)>0) { - return m_core->UserDisconnect(value); - } else { - return -1; - } +int CommandInterface::disconnect(int Source_ID, int Sink_ID) { + } -int DBusCommandInterface::interruptRequest(const std::string &SourceName, - const std::string &SinkName) { - source_t sourceID = m_core->returnSourceIDfromName(SourceName); - sink_t sinkID = m_core->returnSinkIDfromName(SinkName); - genInt_t intID = -1; - m_core->interruptRequest(sourceID, sinkID, &intID); - return intID; +int CommandInterface::interruptRequest(const std::string &SourceName, + } -int DBusCommandInterface::interruptResume(int InterruptID) { +int CommandInterface::interruptResume(int InterruptID) { // emit signal_interruptResume(InterruptID); return 1; } -void DBusCommandInterface::registerAudioManagerCore(AudioManagerCore* core) { +void CommandInterface::registerAudioManagerCore(AudioManagerCore* core) { m_core = core; // QObject::connect((const QObject*) m_core, // SIGNAL(signal_connectionChanged()), (const QObject*) this, @@ -92,31 +78,28 @@ void DBusCommandInterface::registerAudioManagerCore(AudioManagerCore* core) { // SLOT(slot_numberOfSourcesChanged())); } -void DBusCommandInterface::slot_connectionChanged() { +void CommandInterface::slot_connectionChanged() { // emit signal_connectionChanged(); } -void DBusCommandInterface::slot_numberOfSinksChanged() { +void CommandInterface::slot_numberOfSinksChanged() { // emit signal_numberOfSinksChanged(); } -void DBusCommandInterface::slot_numberOfSourcesChanged() { +void CommandInterface::slot_numberOfSourcesChanged() { // emit signal_numberOfSourcesChanged(); } -int DBusCommandInterface::setVolume(int SinkID, int Volume) { - if (m_core->UserSetVolume(SinkID, Volume) == GEN_OK) { - return 1; - } - return -1; +int CommandInterface::setVolume(int SinkID, int Volume) { + } -std::list<SourceType> DBusCommandInterface::getListSources() { - return m_core->getListSources(); +std::list<SourceType> CommandInterface::getListSources() { + } -std::list<SinkType> DBusCommandInterface::getListSinks() { +std::list<SinkType> CommandInterface::getListSinks() { return m_core->getListSinks(); } -std::list<ConnectionType> DBusCommandInterface::getListConnections() { +std::list<ConnectionType> CommandInterface::getListConnections() { return m_core->getListConnections(); } |