diff options
| author | Christoph Berg <myon@debian.org> | 2026-04-07 19:02:45 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-04-07 19:02:45 +0200 |
| commit | f647d78463c1250ce9c99af664615fafccf5e959 (patch) | |
| tree | 5b00428cef68aef1c9d407e2d4535687422419b6 /models/CabrilloLog.hpp | |
| parent | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff) | |
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'models/CabrilloLog.hpp')
| -rw-r--r--[-rwxr-xr-x] | models/CabrilloLog.hpp | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/models/CabrilloLog.hpp b/models/CabrilloLog.hpp index 8adce082..68b76fc2 100755..100644 --- a/models/CabrilloLog.hpp +++ b/models/CabrilloLog.hpp @@ -1,49 +1,49 @@ -#ifndef CABRILLO_LOG_HPP_
-#define CABRILLO_LOG_HPP_
-
-#include <QObject>
-#include <QSet>
-#include <QPair>
-#include <QString>
-#include "Radio.hpp"
-#include "pimpl_h.hpp"
-
-class Configuration;
-class QDateTime;
-class QSqlTableModel;
-class QTextStream;
-class AD1CCty;
-
-class CabrilloLog final
- : public QObject
-{
- Q_OBJECT
-
-public:
- using Frequency = Radio::Frequency;
- using worked_item = QPair<QString, QString>;
- using worked_set = QSet<worked_item>;
-
- explicit CabrilloLog (Configuration const *, QObject * parent = nullptr);
- ~CabrilloLog ();
-
- // returns false if insert fails
- bool add_QSO (Frequency, QString const& mode, QDateTime const&, QString const& call
- , QString const& report_sent, QString const& report_received);
- bool dupe (Frequency, QString const& call) const;
- int n_qso();
-
- QSqlTableModel * model ();
- void reset ();
- void export_qsos (QTextStream&) const;
- worked_set unique_DXCC_entities (AD1CCty const *) const;
-
- Q_SIGNAL void data_changed () const;
- Q_SIGNAL void qso_count_changed (int) const;
-
-private:
- class impl;
- pimpl<impl> m_;
-};
-
-#endif
+#ifndef CABRILLO_LOG_HPP_ +#define CABRILLO_LOG_HPP_ + +#include <QObject> +#include <QSet> +#include <QPair> +#include <QString> +#include "Radio.hpp" +#include "pimpl_h.hpp" + +class Configuration; +class QDateTime; +class QSqlTableModel; +class QTextStream; +class AD1CCty; + +class CabrilloLog final + : public QObject +{ + Q_OBJECT + +public: + using Frequency = Radio::Frequency; + using worked_item = QPair<QString, QString>; + using worked_set = QSet<worked_item>; + + explicit CabrilloLog (Configuration const *, QObject * parent = nullptr); + ~CabrilloLog (); + + // returns false if insert fails + bool add_QSO (Frequency, QString const& mode, QDateTime const&, QString const& call + , QString const& report_sent, QString const& report_received); + bool dupe (Frequency, QString const& call) const; + int n_qso(); + + QSqlTableModel * model (); + void reset (); + void export_qsos (QTextStream&) const; + worked_set unique_DXCC_entities (AD1CCty const *) const; + + Q_SIGNAL void data_changed () const; + Q_SIGNAL void qso_count_changed (int) const; + +private: + class impl; + pimpl<impl> m_; +}; + +#endif |
