JS8Call-Improved master
Loading...
Searching...
No Matches
LogBook.h
Go to the documentation of this file.
1
9
10#ifndef LOGBOOK_H
11#define LOGBOOK_H
12
13#include "ADIF.h"
14#include "CountriesWorked.h"
15#include "CountryDat.h"
16#include "n3fjp.h"
17
18#include <QFont>
19#include <QString>
20
21class QDir;
22
27class LogBook {
28 public:
32 void init();
33
40 bool hasWorkedBefore(const QString &call, const QString &band);
41
49 void match(/*in*/ const QString call,
50 /*out*/ QString &countryName, bool &callWorkedBefore,
51 bool &countryWorkedBefore) const;
52
62 bool findCallDetails(/*in*/
63 const QString call,
64 /*out*/
65 QString &grid, QString &date, QString &name,
66 QString &comment) const;
67
71 void addAsWorked(const QString call, const QString band, const QString mode,
72 const QString submode, const QString grid,
73 const QString date, const QString name,
74 const QString comment);
75
76 private:
77 CountryDat _countries;
78 CountriesWorked _worked;
79 ADIF _log;
80
84 void _setAlreadyWorkedFromLog();
85};
86
87#endif // LOGBOOK_H
ADIF (Amateur Data Interchange Format) log file reader and writer.
Track which DXCC entities (countries) have been worked.
Parse cty.dat and map callsign prefixes to country names.
Parser and in-memory store for ADIF QSO records.
Definition ADIF.h:41
Simple boolean set indicating which country names have been worked.
Definition CountriesWorked.h:23
Reader and lookup helper for CTY prefix files.
Definition CountryDat.h:25
Integrates ADIF, CTY and worked-state utilities for logbook queries.
Definition LogBook.h:27
bool hasWorkedBefore(const QString &call, const QString &band)
Check whether a call on a specific band has been worked before.
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)
Mark the given call as worked and add it to the ADIF/log store.
Definition LogBook.cpp:146
void match(const QString call, QString &countryName, bool &callWorkedBefore, bool &countryWorkedBefore) const
Resolve callsign to a country and determine worked-before flags.
Definition LogBook.cpp:79
bool findCallDetails(const QString call, QString &grid, QString &date, QString &name, QString &comment) const
Find detailed call information (grid, date, name, comment).
Definition LogBook.cpp:107
void init()
Initialize internal helpers and data.
Definition LogBook.cpp:22
Mapping from ADIF field names to N3FJP field identifiers.