summaryrefslogtreecommitdiff
path: root/models/FoxLog.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'models/FoxLog.hpp')
-rw-r--r--models/FoxLog.hpp32
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