diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
| commit | e0737c56c1e384e05064a0c6e1ac46979371041b (patch) | |
| tree | a0123d694a2d36c43dabdf0a3907392fce11d457 /models/CabrilloLog.hpp | |
| parent | b4aebf2d137b892f53503b13785ecae900062ff7 (diff) | |
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'models/CabrilloLog.hpp')
| -rw-r--r-- | models/CabrilloLog.hpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/models/CabrilloLog.hpp b/models/CabrilloLog.hpp new file mode 100644 index 00000000..43b9e8f9 --- /dev/null +++ b/models/CabrilloLog.hpp @@ -0,0 +1,37 @@ +#ifndef CABRILLO_LOG_HPP_ +#define CABRILLO_LOG_HPP_ + +#include <boost/core/noncopyable.hpp> +#include "Radio.hpp" +#include "pimpl_h.hpp" + +class Configuration; +class QDateTime; +class QString; +class QSqlTableModel; +class QTextStream; + +class CabrilloLog final + : private boost::noncopyable +{ +public: + using Frequency = Radio::Frequency; + + explicit CabrilloLog (Configuration const *); + ~CabrilloLog (); + + // returns false if insert fails + bool add_QSO (Frequency, QDateTime const&, QString const& call + , QString const& report_sent, QString const& report_received); + bool dupe (Frequency, QString const& call) const; + + QSqlTableModel * model (); + void reset (); + void export_qsos (QTextStream&) const; + +private: + class impl; + pimpl<impl> m_; +}; + +#endif |
