mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +08:00
- Fixed: toAscii() and fromAscii() Methods are deprecated
- Fixed: Namespace conflict with IContext in blackd.cpp - Fixed: Missing include of QMessageBox, QMenu - Fixed: QBool was removed in Qt5 - Fixed: Missing include QDataStream in basestreamstringifier.h
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
//! file, You can obtain one at http://mozilla.org/MPL/2.0/
|
||||
|
||||
#include <QtGui>
|
||||
#include <QMessageBox>
|
||||
#include <QMenu>
|
||||
|
||||
#include "blackmisc/context.h"
|
||||
#include "blackmisc/debug.h"
|
||||
@@ -15,7 +17,6 @@
|
||||
#include "blackd.h"
|
||||
#include "ui_blackd.h"
|
||||
|
||||
using namespace BlackMisc;
|
||||
using namespace FSD;
|
||||
|
||||
|
||||
@@ -43,7 +44,7 @@ BlackD::BlackD(QWidget *parent) :
|
||||
|
||||
createComServer();
|
||||
|
||||
m_fsd_client = new CFSDClient(IContext::getInstance());
|
||||
m_fsd_client = new CFSDClient(BlackMisc::IContext::getInstance());
|
||||
|
||||
bAppDebug << "BlackDaemon running...";
|
||||
}
|
||||
@@ -129,8 +130,8 @@ void BlackD::createLogging()
|
||||
|
||||
void BlackD::createComServer()
|
||||
{
|
||||
CMessageFactory::getInstance().registerMessages();
|
||||
m_comserver = new CComServer(IContext::getInstance(), this);
|
||||
BlackMisc::CMessageFactory::getInstance().registerMessages();
|
||||
m_comserver = new BlackMisc::CComServer(BlackMisc::IContext::getInstance(), this);
|
||||
|
||||
registerMessageFunction(this, &BlackD::onMSG_CONNECT_TO_VATSIM);
|
||||
|
||||
@@ -149,8 +150,8 @@ void BlackD::onData(QString &messageID, QByteArray &message)
|
||||
Q_ASSERT(test);
|
||||
*test << stream;
|
||||
|
||||
CMessageDispatcher::getInstance().append(test);
|
||||
CMessageDispatcher::getInstance().dispatch();
|
||||
BlackMisc::CMessageDispatcher::getInstance().append(test);
|
||||
BlackMisc::CMessageDispatcher::getInstance().dispatch();
|
||||
}
|
||||
|
||||
void BlackD::onMSG_CONNECT_TO_VATSIM(const BlackMisc::MSG_CONNECT_TO_VATSIM *connect)
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "blackd.h"
|
||||
#include <QApplication>
|
||||
#include <QMessageBox>
|
||||
#include <QtGui>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
Reference in New Issue
Block a user