2013-07-31 07:29:42 -04:00
|
|
|
/*
|
|
|
|
* maintains a list of country names that have been worked
|
|
|
|
* VK3ACF July 2013
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __COUNTRIESWORKDED_H
|
|
|
|
#define __COUNTRIESWORKDED_H
|
|
|
|
|
2013-08-08 19:51:53 -04:00
|
|
|
#include <QList>
|
|
|
|
#include <QString>
|
|
|
|
#include <QStringList>
|
|
|
|
#include <QHash>
|
2013-07-31 07:29:42 -04:00
|
|
|
|
|
|
|
|
|
|
|
class CountriesWorked
|
|
|
|
{
|
2017-08-29 22:27:57 -04:00
|
|
|
public:
|
|
|
|
void init(const QStringList countryNames);
|
|
|
|
void setAsWorked(const QString countryName);
|
|
|
|
bool getHasWorked(const QString countryName) const;
|
|
|
|
int getWorkedCount() const;
|
|
|
|
int getSize() const;
|
2013-07-31 07:29:42 -04:00
|
|
|
|
2017-08-29 22:27:57 -04:00
|
|
|
private:
|
|
|
|
QHash<QString, bool> _data;
|
2013-07-31 07:29:42 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|