38 #include <QStringList> 42 #include "klogdefinitions.h" 50 class Adif :
public QObject {
55 Adif(
const QString &_parentName);
58 QList<AdifMode> getModeList()
const;
60 bool isValidContinent(
const QString &_s);
61 QStringList getContinents();
62 bool isValidFreq(
const QString &_b);
63 bool isValidPower(
const double _b);
64 bool isValidK_Index(
const int _b);
65 bool isValidCQz(
const int _b);
66 bool isValidITUz(
const int _b);
67 bool isValidDXCC(
const int _b);
68 bool isValidAge(
const double _b);
69 bool isValidDistance(
const double _b);
70 bool isValidAnt_EL(
const double _b);
71 bool isValidAnt_AZ(
const double _b);
72 bool isValidA_Index(
const double _b);
73 bool isValidIOTA_islandID(
const int _b);
74 bool isValidNRBursts(
const int _b);
75 bool isValidPings(
const int _b);
76 bool isValidSFI(
const int _b);
77 bool isValidSTX(
const int _b);
78 bool isValidSRX(
const int _b);
79 bool isValidFISTS(
const int _b);
80 bool isValidUKSMG(
const int _b);
81 bool isValidTenTen(
const int _b);
82 bool isValidLogId(
const int _b);
84 bool isValidAntPath(
const QString &_s);
85 bool isValidMode (
const QString &_s)
const;
86 bool isValidSubMode (
const QString &_s)
const;
87 QString getModeFromSubmode(
const QString &_submode)
const;
88 bool isValidQSO_COMPLETE(
const QString &_s);
89 QString getQSO_COMPLETEFromDB(
const QString &_s);
90 int setQSO_COMPLETEToDB(
const QString &_s);
92 bool isValidPOTA(
const QString &_s);
93 bool isValidWWFF_Ref(
const QString &_s);
94 bool isValidQSLRCVD(
const QString &_s,
bool _importing=
true);
95 bool isValidQSLSENT(
const QString &_s);
97 void setLogLevel(DebugLogLevel _l);
98 QString getADIFField(
const QString &_fieldName,
const QString &_data);
99 QString getADIFBoolFromBool(
const bool _b);
102 QStringList getQSOUploadStatus (
bool _fullName =
false);
103 QStringList getQSLSentStatus (
bool _fullName =
false);
104 QStringList getQSLRecStatus (
bool _fullName =
false);
106 QString getADIFDateStringFromLoTWDateTime(
const QString &_lotwdatetime);
109 void debugLog (QString _func, QString _msg, DebugLogLevel _level);
112 void logEvent(
const QString &_func,
const QString &_msg, DebugLogLevel _level);
113 void InitializeHash();
115 void setContinents();
116 void setSponsorsList();
119 bool isValidCall(
const QString &_c);
122 DebugLogLevel logLevel;
123 QHash<QString, QString> ADIFHash;
124 QStringList notZeroFields;
125 QList<AdifMode> modeList;
126 QStringList ARRL_sects, continents, sponsorsList;
Definition: klogdefinitions.h:106