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/FoxLog.hpp | |
| parent | b4aebf2d137b892f53503b13785ecae900062ff7 (diff) | |
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'models/FoxLog.hpp')
| -rw-r--r-- | models/FoxLog.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/models/FoxLog.hpp b/models/FoxLog.hpp new file mode 100644 index 00000000..caa8e358 --- /dev/null +++ b/models/FoxLog.hpp @@ -0,0 +1,32 @@ +#ifndef FOX_LOG_HPP_ +#define FOX_LOG_HPP_ + +#include <boost/core/noncopyable.hpp> +#include "pimpl_h.hpp" + +class QDateTime; +class QString; +class QSqlTableModel; + +class FoxLog final + : private boost::noncopyable +{ +public: + explicit FoxLog (); + ~FoxLog (); + + // returns false if insert fails, dupe call+band + bool add_QSO (QDateTime const&, QString const& call, QString const& grid + , QString const& report_sent, QString const& report_received + , QString const& band); + bool dupe (QString const& call, QString const& band) const; + + QSqlTableModel * model (); + void reset (); + +private: + class impl; + pimpl<impl> m_; +}; + +#endif |
