diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-16 12:37:12 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-16 12:57:29 +0200 |
| commit | 5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch) | |
| tree | 4d09343cfe757239895a0dd9b399242d2a07d7c2 /logbook/AD1CCty.hpp | |
| parent | 23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff) | |
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'logbook/AD1CCty.hpp')
| -rwxr-xr-x | logbook/AD1CCty.hpp | 122 |
1 files changed, 62 insertions, 60 deletions
diff --git a/logbook/AD1CCty.hpp b/logbook/AD1CCty.hpp index 982ff7ce..4d9f78bd 100755 --- a/logbook/AD1CCty.hpp +++ b/logbook/AD1CCty.hpp @@ -1,60 +1,62 @@ -#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;
+
+ QString findState (QString const& grid) const; //NJ0A
+
+private:
+ class impl;
+ pimpl<impl> m_;
+};
+
+#if !defined (QT_NO_DEBUG_STREAM)
+QDebug operator << (QDebug, AD1CCty::Record const&);
+#endif
+
+#endif
|
