2013-07-31 07:29:42 -04:00
|
|
|
/*
|
|
|
|
* From an ADIF file and cty.dat, get a call's DXCC entity and its worked before status
|
|
|
|
* VK3ACF July 2013
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LOGBOOK_H
|
|
|
|
#define LOGBOOK_H
|
|
|
|
|
|
|
|
|
2013-08-08 19:51:53 -04:00
|
|
|
#include <QString>
|
2013-08-08 23:17:04 -04:00
|
|
|
#include <QFont>
|
2013-07-31 07:29:42 -04:00
|
|
|
|
|
|
|
#include "countrydat.h"
|
|
|
|
#include "countriesworked.h"
|
|
|
|
#include "adif.h"
|
|
|
|
|
|
|
|
class LogBook
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void init();
|
|
|
|
void match(/*in*/ const QString call,
|
|
|
|
/*out*/ QString &countryName,
|
|
|
|
bool &callWorkedBefore,
|
|
|
|
bool &countryWorkedBefore);
|
2013-09-06 01:00:28 -04:00
|
|
|
void addAsWorked(const QString call, const QString band, const QString mode, const QString date);
|
2013-07-31 07:29:42 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
CountryDat _countries;
|
|
|
|
CountriesWorked _worked;
|
|
|
|
ADIF _log;
|
|
|
|
|
|
|
|
void _setAlreadyWorkedFromLog();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LOGBOOK_H
|
2013-08-08 23:17:04 -04:00
|
|
|
|