diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:16 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:16 +0200 |
| commit | 2d1068e60bce7ae1fff11623454900e8cee956b1 (patch) | |
| tree | acebe276e30466ef0ab91bc3da5e379bec0d7dc5 /logbook/AD1CCty.hpp | |
| parent | 43bebfbad6e7ba026bd3d55720c7d9e12a7ef8ef (diff) | |
New upstream version 2.6.0~rc3+repackupstream/2.6.0_rc3+repack
Diffstat (limited to 'logbook/AD1CCty.hpp')
| -rwxr-xr-x | logbook/AD1CCty.hpp | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/logbook/AD1CCty.hpp b/logbook/AD1CCty.hpp index 4a485afa..9bc7529a 100755 --- a/logbook/AD1CCty.hpp +++ b/logbook/AD1CCty.hpp @@ -1,57 +1,57 @@ -#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 *); - ~AD1CCty (); - Record lookup (QString const& call) 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 *);
+ ~AD1CCty ();
+ Record lookup (QString const& call) const;
+
+private:
+ class impl;
+ pimpl<impl> m_;
+};
+
+#if !defined (QT_NO_DEBUG_STREAM)
+QDebug operator << (QDebug, AD1CCty::Record const&);
+#endif
+
+#endif
|
