swift
Loading...
Searching...
No Matches
afvmapreader.h
1// SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
4#ifndef SWIFT_CORE_AFV_AFVMAPREADER_H
5#define SWIFT_CORE_AFV_AFVMAPREADER_H
6
7#include <QObject>
8#include <QTimer>
9
10#include "core/afv/model/atcstationmodel.h"
12
13namespace swift::core::afv::model
14{
17 {
19
24
25 public:
27 CAfvMapReader(QObject *parent = nullptr);
28
30 Q_INVOKABLE void setOwnCallsign(const QString &callsign) { m_callsign = callsign; }
31
33 void updateFromMap();
34
37
38 private:
39 CSampleAtcStationModel *m_model = nullptr;
40 QTimer *m_timer = nullptr;
41 QString m_callsign;
42 };
43} // namespace swift::core::afv::model
44
45#endif // SWIFT_CORE_AFV_AFVMAPREADER_H
Q_INVOKABLE void setOwnCallsign(const QString &callsign)
Own callsign.
CAfvMapReader(QObject *parent=nullptr)
Ctor.
CSampleAtcStationModel * getAtcStationModel()
ATC model.
CSampleAtcStationModel * atcStationModel
Map reader properties.
QObject(QObject *parent)
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
QObject * parent() const const
#define SWIFT_CORE_EXPORT
Export a class or function from the library.