2018-10-24 19:00:19 -04:00
|
|
|
#ifndef WORKWED_BEFORE_HPP_
|
|
|
|
#define WORKWED_BEFORE_HPP_
|
|
|
|
|
2018-11-30 11:26:46 -05:00
|
|
|
#include <QObject>
|
2018-10-25 22:24:36 -04:00
|
|
|
#include "AD1CCty.hpp"
|
2018-10-24 19:00:19 -04:00
|
|
|
#include "pimpl_h.hpp"
|
|
|
|
|
|
|
|
class CountryDat;
|
|
|
|
class QString;
|
|
|
|
class QByteArray;
|
|
|
|
|
|
|
|
class WorkedBefore final
|
2018-11-30 11:26:46 -05:00
|
|
|
: public QObject
|
2018-10-24 19:00:19 -04:00
|
|
|
{
|
2018-11-30 11:26:46 -05:00
|
|
|
Q_OBJECT
|
|
|
|
|
2018-10-24 19:00:19 -04:00
|
|
|
public:
|
2018-10-25 22:24:36 -04:00
|
|
|
using Continent = AD1CCty::Continent;
|
|
|
|
|
2018-10-24 19:00:19 -04:00
|
|
|
explicit WorkedBefore ();
|
|
|
|
~WorkedBefore ();
|
|
|
|
|
2018-11-30 11:26:46 -05:00
|
|
|
Q_SLOT void reload ();
|
|
|
|
Q_SLOT bool add (QString const& call
|
|
|
|
, QString const& grid
|
|
|
|
, QString const& band
|
|
|
|
, QString const& mode
|
|
|
|
, QByteArray const& ADIF_record);
|
|
|
|
|
2018-10-24 19:00:19 -04:00
|
|
|
QString const& path () const;
|
2018-10-25 22:24:36 -04:00
|
|
|
AD1CCty const& countries () const;
|
2018-10-24 19:00:19 -04:00
|
|
|
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;
|
2018-10-25 22:24:36 -04:00
|
|
|
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;
|
2018-10-24 19:00:19 -04:00
|
|
|
|
2018-11-30 11:26:46 -05:00
|
|
|
Q_SIGNAL void finished_loading (int worked_before_record_count, QString const& error) const;
|
|
|
|
|
2018-10-24 19:00:19 -04:00
|
|
|
private:
|
|
|
|
class impl;
|
|
|
|
pimpl<impl> m_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|