mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Use nested namespaces (C++17 feature)
This commit is contained in:
@@ -15,42 +15,36 @@
|
||||
#include <QObject>
|
||||
#include <QTimer>
|
||||
|
||||
namespace BlackCore
|
||||
namespace BlackCore::Afv::Model
|
||||
{
|
||||
namespace Afv
|
||||
//! Map reader
|
||||
class BLACKCORE_EXPORT CAfvMapReader : public QObject
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
//! Map reader
|
||||
class BLACKCORE_EXPORT CAfvMapReader : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
//! Map reader properties
|
||||
//! @{
|
||||
Q_PROPERTY(CSampleAtcStationModel *atcStationModel READ getAtcStationModel CONSTANT)
|
||||
//! @}
|
||||
//! Map reader properties
|
||||
//! @{
|
||||
Q_PROPERTY(CSampleAtcStationModel *atcStationModel READ getAtcStationModel CONSTANT)
|
||||
//! @}
|
||||
|
||||
public:
|
||||
//! Ctor
|
||||
CAfvMapReader(QObject *parent = nullptr);
|
||||
public:
|
||||
//! Ctor
|
||||
CAfvMapReader(QObject *parent = nullptr);
|
||||
|
||||
//! Own callsign
|
||||
Q_INVOKABLE void setOwnCallsign(const QString &callsign) { m_callsign = callsign; }
|
||||
//! Own callsign
|
||||
Q_INVOKABLE void setOwnCallsign(const QString &callsign) { m_callsign = callsign; }
|
||||
|
||||
//! Update ATC stations in model
|
||||
void updateFromMap();
|
||||
//! Update ATC stations in model
|
||||
void updateFromMap();
|
||||
|
||||
//! ATC model
|
||||
CSampleAtcStationModel *getAtcStationModel() { return m_model; }
|
||||
//! ATC model
|
||||
CSampleAtcStationModel *getAtcStationModel() { return m_model; }
|
||||
|
||||
private:
|
||||
CSampleAtcStationModel *m_model = nullptr;
|
||||
QTimer *m_timer = nullptr;
|
||||
QString m_callsign;
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
private:
|
||||
CSampleAtcStationModel *m_model = nullptr;
|
||||
QTimer *m_timer = nullptr;
|
||||
QString m_callsign;
|
||||
};
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user