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:
Mathew Sutcliffe
2013-10-05 18:12:16 +01:00
parent 01af31d4da
commit e607121cc4
26 changed files with 235 additions and 200 deletions

View File

@@ -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);