summaryrefslogtreecommitdiff
path: root/logbook/logbook.h
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
committerChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
commitf647d78463c1250ce9c99af664615fafccf5e959 (patch)
tree5b00428cef68aef1c9d407e2d4535687422419b6 /logbook/logbook.h
parent0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff)
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'logbook/logbook.h')
-rw-r--r--[-rwxr-xr-x]logbook/logbook.h132
1 files changed, 66 insertions, 66 deletions
diff --git a/logbook/logbook.h b/logbook/logbook.h
index 145f5807..b48ee463 100755..100644
--- a/logbook/logbook.h
+++ b/logbook/logbook.h
@@ -1,66 +1,66 @@
-// -*- Mode: C++ -*-
-/*
- * From an ADIF file and cty.dat, get a call's DXCC entity and its worked before status
- */
-
-#ifndef LOG_BOOK_H_
-#define LOG_BOOK_H_
-
-#include <QObject>
-#include <QString>
-#include <QScopedPointer>
-
-#include "WorkedBefore.hpp"
-
-class Configuration;
-class QByteArray;
-class QDateTime;
-class CabrilloLog;
-class Multiplier;
-class FoxLog;
-
-class LogBook final
- : public QObject
-{
- Q_OBJECT
-
-public:
- LogBook (Configuration const *);
- ~LogBook ();
- QString const& path () const {return worked_before_.path ();}
- bool add (QString const& call
- , QString const& grid
- , QString const& band
- , QString const& mode
- , QByteArray const& ADIF_record);
- AD1CCty const * countries () const {return worked_before_.countries ();}
- void rescan ();
- void match (QString const& call, QString const& mode, QString const& grid,
- AD1CCty::Record const&, bool& callB4, bool& countryB4,
- bool &gridB4, bool &continentB4, bool& CQZoneB4, bool& ITUZoneB4,
- QString const& currentBand = QString {}) const;
- QByteArray QSOToADIF (QString const& hisCall, QString const& hisGrid, QString const& mode,
- QString const& rptSent, QString const& rptRcvd, QDateTime const& dateTimeOn,
- QDateTime const& dateTimeOff, QString const& band, QString const& comments,
- QString const& name, QString const& strDialFreq, QString const& myCall,
- QString const& m_myGrid, QString const& m_txPower, QString const& operator_call,
- QString const& xSent, QString const& xRcvd, QString const& propmode,
- QString const& satellite, QString const& satmode, QString const& freqRx);
-
- QString const cty_version() const;
-
- Q_SIGNAL void finished_loading (int worked_before_record_count, QString const cty_version, QString const& error) const;
-
- CabrilloLog * contest_log ();
- Multiplier const * multiplier () const;
- FoxLog * fox_log ();
-
-private:
- Configuration const * config_;
- WorkedBefore worked_before_;
- QScopedPointer<CabrilloLog> contest_log_;
- QScopedPointer<Multiplier> mutable multiplier_;
- QScopedPointer<FoxLog> fox_log_;
-};
-
-#endif
+// -*- Mode: C++ -*-
+/*
+ * From an ADIF file and cty.dat, get a call's DXCC entity and its worked before status
+ */
+
+#ifndef LOG_BOOK_H_
+#define LOG_BOOK_H_
+
+#include <QObject>
+#include <QString>
+#include <QScopedPointer>
+
+#include "WorkedBefore.hpp"
+
+class Configuration;
+class QByteArray;
+class QDateTime;
+class CabrilloLog;
+class Multiplier;
+class FoxLog;
+
+class LogBook final
+ : public QObject
+{
+ Q_OBJECT
+
+public:
+ LogBook (Configuration const *);
+ ~LogBook ();
+ QString const& path () const {return worked_before_.path ();}
+ bool add (QString const& call
+ , QString const& grid
+ , QString const& band
+ , QString const& mode
+ , QByteArray const& ADIF_record);
+ AD1CCty const * countries () const {return worked_before_.countries ();}
+ void rescan ();
+ void match (QString const& call, QString const& mode, QString const& grid,
+ AD1CCty::Record const&, bool& callB4, bool& countryB4,
+ bool &gridB4, bool &continentB4, bool& CQZoneB4, bool& ITUZoneB4,
+ QString const& currentBand = QString {}) const;
+ QByteArray QSOToADIF (QString const& hisCall, QString const& hisGrid, QString const& mode,
+ QString const& rptSent, QString const& rptRcvd, QDateTime const& dateTimeOn,
+ QDateTime const& dateTimeOff, QString const& band, QString const& comments,
+ QString const& name, QString const& strDialFreq, QString const& myCall,
+ QString const& m_myGrid, QString const& m_txPower, QString const& operator_call,
+ QString const& xSent, QString const& xRcvd, QString const& propmode,
+ QString const& satellite, QString const& satmode, QString const& freqRx);
+
+ QString const cty_version() const;
+
+ Q_SIGNAL void finished_loading (int worked_before_record_count, QString const cty_version, QString const& error) const;
+
+ CabrilloLog * contest_log ();
+ Multiplier const * multiplier () const;
+ FoxLog * fox_log ();
+
+private:
+ Configuration const * config_;
+ WorkedBefore worked_before_;
+ QScopedPointer<CabrilloLog> contest_log_;
+ QScopedPointer<Multiplier> mutable multiplier_;
+ QScopedPointer<FoxLog> fox_log_;
+};
+
+#endif