JS8Call-Improved master
Loading...
Searching...
No Matches
CountriesWorked.h
Go to the documentation of this file.
1
5
6#ifndef __COUNTRIESWORKDED_H
7#define __COUNTRIESWORKDED_H
8
9#include <QHash>
10#include <QList>
11#include <QString>
12#include <QStringList>
13
24 public:
29 void init(const QStringList countryNames);
30
35 void setAsWorked(const QString countryName);
36
42 bool getHasWorked(const QString countryName) const;
43
47 qsizetype getWorkedCount() const;
48
52 qsizetype getSize() const;
53
54 private:
55 QHash<QString, bool> _data;
56};
57
58#endif
Simple boolean set indicating which country names have been worked.
Definition CountriesWorked.h:23
qsizetype getWorkedCount() const
Count how many countries have been marked as worked.
Definition CountriesWorked.cpp:40
void init(const QStringList countryNames)
Initialize the set with a list of known country names.
Definition CountriesWorked.cpp:9
void setAsWorked(const QString countryName)
Mark a country as worked.
Definition CountriesWorked.cpp:19
bool getHasWorked(const QString countryName) const
Query whether a country has been worked.
Definition CountriesWorked.cpp:29
qsizetype getSize() const
Get the total number of tracked country names.
Definition CountriesWorked.cpp:52