diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
| commit | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch) | |
| tree | fbfdfe6bcb0a8a114be2480dac53d88c977e4869 /logbook/AD1CCty.hpp | |
| parent | 4320ce238aae1fe87fc9f379cdd816e9317885fa (diff) | |
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'logbook/AD1CCty.hpp')
| -rwxr-xr-x | logbook/AD1CCty.hpp | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/logbook/AD1CCty.hpp b/logbook/AD1CCty.hpp index 0908bb56..982ff7ce 100755 --- a/logbook/AD1CCty.hpp +++ b/logbook/AD1CCty.hpp @@ -1,60 +1,60 @@ -#ifndef AD1C_CTY_HPP_
-#define AD1C_CTY_HPP_
-
-#include <QObject>
-#include <QDebug>
-#include "pimpl_h.hpp"
-
-class QString;
-class Configuration;
-
-//
-// AD1CCty - Fast access database of Jim Reisert, AD1C's, cty.dat
-// entity and entity override information file.
-//
-class AD1CCty final
- : public QObject
-{
- Q_OBJECT
-
-public:
- //
- // Continent enumeration
- //
- enum class Continent {UN, AF, AN, AS, EU, NA, OC, SA};
- static Continent continent (QString const& continent_id);
- static char const * continent (Continent);
- Q_ENUM (Continent)
-
- struct Record
- {
- explicit Record ();
-
- Continent continent;
- int CQ_zone;
- int ITU_zone;
- QString entity_name;
- bool WAE_only;
- float latitude;
- float longtitude;
- int UTC_offset;
- QString primary_prefix;
- };
-
- explicit AD1CCty (Configuration const *);
- void reload(Configuration const * configuration);
- ~AD1CCty ();
- Record lookup (QString const& call) const;
- QString version () const;
- Q_SIGNAL void cty_loaded (QString const& version) const;
-
-private:
- class impl;
- pimpl<impl> m_;
-};
-
-#if !defined (QT_NO_DEBUG_STREAM)
-QDebug operator << (QDebug, AD1CCty::Record const&);
-#endif
-
-#endif
+#ifndef AD1C_CTY_HPP_ +#define AD1C_CTY_HPP_ + +#include <QObject> +#include <QDebug> +#include "pimpl_h.hpp" + +class QString; +class Configuration; + +// +// AD1CCty - Fast access database of Jim Reisert, AD1C's, cty.dat +// entity and entity override information file. +// +class AD1CCty final + : public QObject +{ + Q_OBJECT + +public: + // + // Continent enumeration + // + enum class Continent {UN, AF, AN, AS, EU, NA, OC, SA}; + static Continent continent (QString const& continent_id); + static char const * continent (Continent); + Q_ENUM (Continent) + + struct Record + { + explicit Record (); + + Continent continent; + int CQ_zone; + int ITU_zone; + QString entity_name; + bool WAE_only; + float latitude; + float longtitude; + int UTC_offset; + QString primary_prefix; + }; + + explicit AD1CCty (Configuration const *); + void reload(Configuration const * configuration); + ~AD1CCty (); + Record lookup (QString const& call) const; + QString version () const; + Q_SIGNAL void cty_loaded (QString const& version) const; + +private: + class impl; + pimpl<impl> m_; +}; + +#if !defined (QT_NO_DEBUG_STREAM) +QDebug operator << (QDebug, AD1CCty::Record const&); +#endif + +#endif |
