diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
| commit | e0737c56c1e384e05064a0c6e1ac46979371041b (patch) | |
| tree | a0123d694a2d36c43dabdf0a3907392fce11d457 /logbook/WorkedBefore.hpp | |
| parent | b4aebf2d137b892f53503b13785ecae900062ff7 (diff) | |
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'logbook/WorkedBefore.hpp')
| -rw-r--r-- | logbook/WorkedBefore.hpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/logbook/WorkedBefore.hpp b/logbook/WorkedBefore.hpp new file mode 100644 index 00000000..90a31813 --- /dev/null +++ b/logbook/WorkedBefore.hpp @@ -0,0 +1,46 @@ +#ifndef WORKWED_BEFORE_HPP_ +#define WORKWED_BEFORE_HPP_ + +#include <QObject> +#include "AD1CCty.hpp" +#include "pimpl_h.hpp" + +class CountryDat; +class QString; +class QByteArray; + +class WorkedBefore final + : public QObject +{ + Q_OBJECT + +public: + using Continent = AD1CCty::Continent; + + explicit WorkedBefore (); + ~WorkedBefore (); + + Q_SLOT void reload (); + Q_SLOT bool add (QString const& call + , QString const& grid + , QString const& band + , QString const& mode + , QByteArray const& ADIF_record); + + QString const& path () const; + AD1CCty const& countries () const; + bool country_worked (QString const& call, QString const& mode, QString const& band) const; + bool grid_worked (QString const& grid, QString const& mode, QString const& band) const; + bool call_worked (QString const& call, QString const& mode, QString const& band) const; + bool continent_worked (Continent continent, QString const& mode, QString const& band) const; + bool CQ_zone_worked (int CQ_zone, QString const& mode, QString const& band) const; + bool ITU_zone_worked (int ITU_zone, QString const& mode, QString const& band) const; + + Q_SIGNAL void finished_loading (int worked_before_record_count, QString const& error) const; + +private: + class impl; + pimpl<impl> m_; +}; + +#endif |
