summaryrefslogtreecommitdiff
path: root/logbook/logbook.h
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2019-06-02 22:17:11 +0200
committerChristoph Berg <myon@debian.org>2019-06-02 22:17:11 +0200
commit851b658298afb9bafeda98ffbfa2ade612c656be (patch)
tree826d54e9dac4ce15fdd1b6af3360eeba7993a7d2 /logbook/logbook.h
parentb7238399ea4f1ca51d8f7b8f9220af3da0913edf (diff)
New upstream version 2.1.0~rc6+repackupstream/2.1.0_rc6+repack
Diffstat (limited to 'logbook/logbook.h')
-rw-r--r--logbook/logbook.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/logbook/logbook.h b/logbook/logbook.h
index 1850aa01..c87009e4 100644
--- a/logbook/logbook.h
+++ b/logbook/logbook.h
@@ -8,12 +8,16 @@
#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
@@ -22,13 +26,14 @@ class LogBook final
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 ();}
+ 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,
@@ -43,9 +48,16 @@ public:
Q_SIGNAL void finished_loading (int worked_before_record_count, 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