diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
| commit | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch) | |
| tree | fbfdfe6bcb0a8a114be2480dac53d88c977e4869 /models/CabrilloLog.hpp | |
| parent | 4320ce238aae1fe87fc9f379cdd816e9317885fa (diff) | |
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'models/CabrilloLog.hpp')
| -rwxr-xr-x | models/CabrilloLog.hpp | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/models/CabrilloLog.hpp b/models/CabrilloLog.hpp index b675e883..bf80c7fb 100755 --- a/models/CabrilloLog.hpp +++ b/models/CabrilloLog.hpp @@ -1,48 +1,48 @@ -#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 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 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 |
