Ref T731, moved AFV station model and client to BlackCore::Afv

* the QML map can also be used in dialog
* ATC station list also can be used in BlackCore
This commit is contained in:
Klaus Basan
2019-09-21 23:33:15 +02:00
committed by Mat Sutcliffe
parent 66b02e61c5
commit 992d624c18
16 changed files with 413 additions and 350 deletions

View File

@@ -0,0 +1,49 @@
/* Copyright (C) 2019
* swift Project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
* or distributed except according to the terms contained in the LICENSE file.
*/
#ifndef BLACKCORE_AFV_AFVMAPREADER_H
#define BLACKCORE_AFV_AFVMAPREADER_H
#include "atcstationmodel.h"
#include "blackcore/blackcoreexport.h"
#include <QObject>
#include <QTimer>
namespace BlackCore
{
namespace Afv
{
namespace Model
{
//! Map reader
class BLACKCORE_EXPORT CAfvMapReader : public QObject
{
Q_OBJECT
Q_PROPERTY(CSampleAtcStationModel *atcStationModel READ getAtcStationModel CONSTANT)
public:
//! Ctor
CAfvMapReader(QObject *parent = nullptr);
Q_INVOKABLE void setOwnCallsign(const QString &callsign) { m_callsign = callsign; }
void updateFromMap();
CSampleAtcStationModel *getAtcStationModel() { return m_model; }
private:
CSampleAtcStationModel *m_model = nullptr;
QTimer *m_timer = nullptr;
QString m_callsign;
};
} // ns
} // ns
} // ns
#endif // guard