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; + }; }