JS8Call-Improved master
Loading...
Searching...
No Matches
CountriesWorked.h
1/*
2 * maintains a list of country names that have been worked
3 * VK3ACF July 2013
4 */
5
6#ifndef __COUNTRIESWORKDED_H
7#define __COUNTRIESWORKDED_H
8
9#include <QHash>
10#include <QList>
11#include <QString>
12#include <QStringList>
13
15 public:
16 void init(const QStringList countryNames);
17 void setAsWorked(const QString countryName);
18 bool getHasWorked(const QString countryName) const;
19 qsizetype getWorkedCount() const;
20 qsizetype getSize() const;
21
22 private:
23 QHash<QString, bool> _data;
24};
25
26#endif
Definition CountriesWorked.h:14
qsizetype getWorkedCount() const
Get the count of countries that have been worked.
Definition CountriesWorked.cpp:40
void setAsWorked(const QString countryName)
Mark a country as worked.
Definition CountriesWorked.cpp:19
bool getHasWorked(const QString countryName) const
Check if a country has been worked.
Definition CountriesWorked.cpp:29
qsizetype getSize() const
Get the total number of countries being tracked.
Definition CountriesWorked.cpp:52