summaryrefslogtreecommitdiff
path: root/logbook/countrydat.h
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
committerhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
commit37f727ac0746fd85504aa46c1f023c09b3eff33a (patch)
treec8a7ce04545040a8f161ba279528730bd9a3e6ab /logbook/countrydat.h
parentd63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff)
New upstream version 1.8.0+repackupstream/1.8.0+repack
Diffstat (limited to 'logbook/countrydat.h')
-rw-r--r--logbook/countrydat.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/logbook/countrydat.h b/logbook/countrydat.h
index cd550cf1..d0430892 100644
--- a/logbook/countrydat.h
+++ b/logbook/countrydat.h
@@ -16,20 +16,21 @@
class CountryDat
{
- public:
- void init(const QString filename);
- void load();
- QString find(const QString prefix); // return country name or ""
- QStringList getCountryNames() { return _countryNames; };
+public:
+ void init(const QString filename);
+ void load();
+ QString find(QString prefix) const; // return country name or ""
+ QStringList getCountryNames() const { return _countryNames; };
- private:
- QString _extractName(const QString line);
- void _removeBrackets(QString &line, const QString a, const QString b);
- QStringList _extractPrefix(QString &line, bool &more);
-
- QString _filename;
- QStringList _countryNames;
- QHash<QString, QString> _data;
+private:
+ QString _extractName(const QString line) const;
+ void _removeBrackets(QString &line, const QString a, const QString b) const;
+ QStringList _extractPrefix(QString &line, bool &more) const;
+ QString fixup (QString country, QString const& call) const;
+
+ QString _filename;
+ QStringList _countryNames;
+ QHash<QString, QString> _data;
};
#endif