diff options
Diffstat (limited to 'logbook/countrydat.h')
| -rw-r--r-- | logbook/countrydat.h | 27 |
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 |
