diff options
Diffstat (limited to 'logbook/countriesworked.h')
| -rw-r--r-- | logbook/countriesworked.h | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/logbook/countriesworked.h b/logbook/countriesworked.h index fedfa752..ac8aaea6 100644 --- a/logbook/countriesworked.h +++ b/logbook/countriesworked.h @@ -1,29 +1,24 @@ -/* - * maintains a list of country names that have been worked - * VK3ACF July 2013 - */ +#ifndef COUNTRIES_WORKDED_H_ +#define COUNTRIES_WORKDED_H_ -#ifndef __COUNTRIESWORKDED_H -#define __COUNTRIESWORKDED_H - -#include <QList> #include <QString> -#include <QStringList> -#include <QHash> +#include "pimpl_h.hpp" + +class QStringList; -class CountriesWorked +class CountriesWorked final { public: - void init(const QStringList countryNames); - void setAsWorked(const QString countryName); - bool getHasWorked(const QString countryName) const; - int getWorkedCount() const; - int getSize() const; + explicit CountriesWorked (QStringList const& countryNames); + ~CountriesWorked (); + + void add (QString const& country, QString const& band); + bool contains (QString const& country, QString const& band = QString {}) const; private: - QHash<QString, bool> _data; + class impl; + pimpl<impl> m_; }; #endif - |
