From 71c7318176a6bb54cc267158f293a1d5833e6d09 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 13 Jan 2014 03:05:12 +0100 Subject: [PATCH] IsMuted method --- src/blackcore/context_voice_interface.cpp | 8 ++++++++ src/blackcore/context_voice_interface.h | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/src/blackcore/context_voice_interface.cpp b/src/blackcore/context_voice_interface.cpp index 0fbc86840..edac3e96b 100644 --- a/src/blackcore/context_voice_interface.cpp +++ b/src/blackcore/context_voice_interface.cpp @@ -110,6 +110,14 @@ namespace BlackCore this->m_dBusInterface->callDBus(QLatin1Literal("setVolumes"), com1, com2); } + /* + * Muted? + */ + bool IContextVoice::isMuted() const + { + return this->m_dBusInterface->callDBusRet(QLatin1Literal("isMuted")); + } + /* * Logging */ diff --git a/src/blackcore/context_voice_interface.h b/src/blackcore/context_voice_interface.h index 9c6e0cdb4..b5e3c81bc 100644 --- a/src/blackcore/context_voice_interface.h +++ b/src/blackcore/context_voice_interface.h @@ -163,6 +163,12 @@ namespace BlackCore */ virtual void setVolumes(const BlackMisc::Aviation::CComSystem &com1, const BlackMisc::Aviation::CComSystem &com2); + /*! + * \brief Is muted? + * \return + */ + virtual bool isMuted() const; + }; }