summaryrefslogtreecommitdiff
path: root/logbook/countriesworked.h
diff options
context:
space:
mode:
Diffstat (limited to 'logbook/countriesworked.h')
-rw-r--r--logbook/countriesworked.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/logbook/countriesworked.h b/logbook/countriesworked.h
new file mode 100644
index 00000000..34fcc0c0
--- /dev/null
+++ b/logbook/countriesworked.h
@@ -0,0 +1,29 @@
+/*
+ * maintains a list of country names that have been worked
+ * VK3ACF July 2013
+ */
+
+#ifndef __COUNTRIESWORKDED_H
+#define __COUNTRIESWORKDED_H
+
+#include <QList>
+#include <QString>
+#include <QStringList>
+#include <QHash>
+
+
+class CountriesWorked
+{
+ public:
+ void init(const QStringList countryNames);
+ void setAsWorked(const QString countryName);
+ bool getHasWorked(const QString countryName);
+ int getWorkedCount();
+ int getSize();
+
+ private:
+ QHash<QString, bool> _data;
+};
+
+#endif
+