mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refs #403 use own sessionDBusServer method
This patch fixes a dependency between BlackCore and BlackMisc. BlackMisc is the base library and cannot dependend on anything else.
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
*/
|
||||
|
||||
#include "setnetwork.h"
|
||||
#include "blackcore/dbus_server.h"
|
||||
#include "blackmisc/blackmiscfreefunctions.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include "blackmisc/settingutilities.h"
|
||||
@@ -26,7 +25,7 @@ namespace BlackMisc
|
||||
*/
|
||||
CSettingsNetwork::CSettingsNetwork() :
|
||||
m_bookingServiceUrl("http://vatbook.euroutepro.com/xml2.php"),
|
||||
m_dbusServerAddress(BlackCore::CDBusServer::sessionDBusServer())
|
||||
m_dbusServerAddress(sessionDBusServer())
|
||||
{
|
||||
// settings
|
||||
}
|
||||
|
||||
@@ -64,6 +64,13 @@ namespace BlackMisc
|
||||
return value;
|
||||
}
|
||||
|
||||
//! Denotes a session DBus server
|
||||
static const QString &sessionDBusServer()
|
||||
{
|
||||
static QString session("session");
|
||||
return session;
|
||||
}
|
||||
|
||||
//! Value object, traffic network server objects
|
||||
BlackMisc::Network::CServerList getTrafficNetworkServers() const { return m_trafficNetworkServers; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user