refs #485, Restricted<T>

This commit is contained in:
Klaus Basan
2016-03-13 19:37:26 +00:00
committed by Mathew Sutcliffe
parent 18a907086d
commit c36028ca9c
8 changed files with 47 additions and 20 deletions

View File

@@ -28,6 +28,7 @@
#include "blackmisc/logcategorylist.h"
#include "blackmisc/countrylist.h"
#include "blackmisc/project.h"
#include "blackmisc/restricted.h"
#include <QObject>
namespace BlackCore
@@ -48,12 +49,14 @@ namespace BlackCore
public QObject
{
Q_OBJECT
friend class CApplication;
public:
//! Log categories
static const BlackMisc::CLogCategoryList &getLogCategories();
//! Constructor, only allowed from BlackCore::CApplication
CWebDataServices(CWebReaderFlags::WebReader readerFlags, CWebReaderFlags:: DbReaderHint hint, BlackMisc::Restricted<CApplication>, QObject *parent = nullptr);
//! Shutdown
void gracefulShutdown();
@@ -261,10 +264,6 @@ namespace BlackCore
//! First read (allows to immediately read in background)
void readInBackground(BlackMisc::Network::CEntityFlags::Entity entities = BlackMisc::Network::CEntityFlags::AllEntities, int delayMs = 0);
protected:
//! Constructor
CWebDataServices(CWebReaderFlags::WebReader readerFlags, CWebReaderFlags:: DbReaderHint hint, QObject *parent = nullptr);
private slots:
//! ATC bookings received
void ps_receivedBookings(const BlackMisc::Aviation::CAtcStationList &bookedStations);