mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
Updating IContext to our current style and making it less reliant on macros.
Updating code that uses IContext to a more conformant pattern of usage.
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
#include "atclistmgr.h"
|
||||
#include "network.h"
|
||||
|
||||
BlackCore::CAtcListManager::CAtcListManager()
|
||||
BlackCore::CAtcListManager::CAtcListManager(BlackMisc::IContext &ctx)
|
||||
{
|
||||
INetwork *net = BlackMisc::IContext::getInstance().singleton<INetwork>();
|
||||
INetwork *net = &ctx.getObject<INetwork>();
|
||||
|
||||
connect(net, &INetwork::atcPositionUpdate, this, &CAtcListManager::update, Qt::QueuedConnection);
|
||||
connect(net, &INetwork::atcDisconnected, this, &CAtcListManager::remove, Qt::QueuedConnection);
|
||||
|
||||
Reference in New Issue
Block a user