JS8Call-Improved master
Loading...
Searching...
No Matches
LogBook.h
1/*
2 * From an ADIF file and cty.dat, get a call's DXCC entity and its worked before
3 * status VK3ACF July 2013
4 */
5
6#ifndef LOGBOOK_H
7#define LOGBOOK_H
8
9#include "ADIF.h"
10#include "CountriesWorked.h"
11#include "CountryDat.h"
12#include "n3fjp.h"
13
14#include <QFont>
15#include <QString>
16
17class QDir;
18
19class LogBook {
20 public:
21 void init();
22 bool hasWorkedBefore(const QString &call, const QString &band);
23 void match(/*in*/ const QString call,
24 /*out*/ QString &countryName, bool &callWorkedBefore,
25 bool &countryWorkedBefore) const;
26 bool findCallDetails(/*in*/
27 const QString call,
28 /*out*/
29 QString &grid, QString &date, QString &name,
30 QString &comment) const;
31 void addAsWorked(const QString call, const QString band, const QString mode,
32 const QString submode, const QString grid,
33 const QString date, const QString name,
34 const QString comment);
35
36 private:
37 CountryDat _countries;
38 CountriesWorked _worked;
39 ADIF _log;
40
41 void _setAlreadyWorkedFromLog();
42};
43
44#endif // LOGBOOK_H
Definition ADIF.h:18
Definition CountriesWorked.h:14
Definition CountryDat.h:14
Definition LogBook.h:19
bool hasWorkedBefore(const QString &call, const QString &band)
Check if a call has been worked before on a specific band.
Definition LogBook.cpp:65
void addAsWorked(const QString call, const QString band, const QString mode, const QString submode, const QString grid, const QString date, const QString name, const QString comment)
Add a new QSO to the logbook and mark the country as worked.
Definition LogBook.cpp:146
void match(const QString call, QString &countryName, bool &callWorkedBefore, bool &countryWorkedBefore) const
Match a callsign to its country and check if it has been worked before.
Definition LogBook.cpp:79
bool findCallDetails(const QString call, QString &grid, QString &date, QString &name, QString &comment) const
Find details associated with a callsign in the logbook.
Definition LogBook.cpp:107
void init()
Initialize the logbook by loading country data and existing log entries.
Definition LogBook.cpp:22