Use nested namespaces (C++17 feature)

This commit is contained in:
Mat Sutcliffe
2021-09-15 21:44:54 +01:00
parent 3f2e5b0b69
commit 57d32da826
1345 changed files with 146075 additions and 150376 deletions

View File

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