mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Removed IContext
Network and voice samples work using them and have to allocate their own vatlib objects now. refs #221
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "client.h"
|
||||
#include "blackmisc/context.h"
|
||||
#include "blackcore/network_vatlib.h"
|
||||
#include <iostream>
|
||||
#include <QStringList>
|
||||
|
||||
Client::Client(BlackMisc::IContext &ctx)
|
||||
: m_net(&ctx.getObject<BlackCore::INetwork>())
|
||||
Client::Client(QObject *parent)
|
||||
: QObject(parent), m_net(new BlackCore::CNetworkVatlib(this))
|
||||
{
|
||||
using namespace BlackCore;
|
||||
connect(m_net, &INetwork::atcPositionUpdate, this, &Client::atcPositionUpdate);
|
||||
|
||||
Reference in New Issue
Block a user