mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 11:45:40 +08:00
refs #248 added an instance of CDBusServer as member of XBus::CPlugin
This commit is contained in:
@@ -12,4 +12,10 @@ namespace XBus
|
||||
{
|
||||
}
|
||||
|
||||
void CPlugin::startServer(const QString &address)
|
||||
{
|
||||
Q_ASSERT(! m_server);
|
||||
m_server = new BlackCore::CDBusServer(address, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -10,7 +10,12 @@
|
||||
|
||||
//! \namespace XBus
|
||||
|
||||
#include <QObject>
|
||||
#define NOMINMAX
|
||||
|
||||
#pragma push_macro("interface")
|
||||
#undef interface
|
||||
#include "blackcore/dbus_server.h"
|
||||
#pragma pop_macro("interface")
|
||||
|
||||
namespace XBus
|
||||
{
|
||||
@@ -25,6 +30,9 @@ namespace XBus
|
||||
CPlugin();
|
||||
|
||||
private:
|
||||
BlackCore::CDBusServer *m_server = nullptr;
|
||||
|
||||
void startServer(const QString &address);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ QT += core gui widgets dbus network
|
||||
TEMPLATE = lib
|
||||
|
||||
CONFIG += shared
|
||||
CONFIG += blackmisc
|
||||
CONFIG += blackmisc blackcore
|
||||
|
||||
LIBS += -lXPLM
|
||||
|
||||
@@ -17,6 +17,7 @@ SOURCES += *.cpp
|
||||
HEADERS += *.h
|
||||
|
||||
#win32:!win32-g++*: PRE_TARGETDEPS += ../../../../lib/blackmisc.lib
|
||||
#win32:!win32-g++*: PRE_TARGETDEPS += ../../../../lib/blackcore.lib
|
||||
|
||||
|
||||
# Required by X-Plane SDK
|
||||
|
||||
Reference in New Issue
Block a user