From 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Thu, 9 Jan 2025 22:12:06 +0100 Subject: New upstream version 2.7.0~rc8+repack --- models/CabrilloLog.hpp | 96 +++++++++++++++++++++++++------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) (limited to 'models/CabrilloLog.hpp') 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 -#include -#include -#include -#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; - using worked_set = QSet; - - 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 m_; -}; - -#endif +#ifndef CABRILLO_LOG_HPP_ +#define CABRILLO_LOG_HPP_ + +#include +#include +#include +#include +#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; + using worked_set = QSet; + + 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 m_; +}; + +#endif -- cgit v1.2.3