refs #198 , made DBus address static, so it can be used elsewhere in the settings

This commit is contained in:
Klaus Basan
2014-04-01 12:13:48 +02:00
parent 2a0514fff9
commit 6327c3a1cb
2 changed files with 16 additions and 2 deletions

View File

@@ -102,6 +102,20 @@ namespace BlackCore
return defaultConnection;
}
//! \brief Denotes a session DBus server
static const QString &sessionDBusServer()
{
static QString session("session");
return session;
}
//! \brief Denotes a session DBus server
static const QString &systemDBusServer()
{
static QString system("system");
return system;
}
private slots:
//! \brief Called when a new DBus client has connected