refs #912, icon and identifier for PTT hotkey as static functions

This commit is contained in:
Klaus Basan
2017-03-18 20:40:51 +01:00
committed by Mathew Sutcliffe
parent 422e6626c8
commit 08f6f3f81c
3 changed files with 35 additions and 11 deletions

View File

@@ -65,18 +65,16 @@ namespace BlackCore
public:
//! Interface name
static const QString &InterfaceName()
{
static QString s(BLACKCORE_CONTEXTAUDIO_INTERFACENAME);
return s;
}
static const QString &InterfaceName();
//! Object path
static const QString &ObjectPath()
{
static QString s(BLACKCORE_CONTEXTAUDIO_OBJECTPATH);
return s;
}
static const QString &ObjectPath();
//! Hotkey identifier for PTT (push to talk)
static const QString &pttHotkeyAction();
//! Hotkey icon for PTT (push to talk)
static const QPixmap &pttHotkeyIcon();
//! \copydoc CContext::getPathAndContextId()
virtual QString getPathAndContextId() const { return this->buildPathAndContextId(ObjectPath()); }