summaryrefslogtreecommitdiff
path: root/models/FoxLog.hpp
blob: caa8e358f62bc8dd41fb19cd11722d917b97b7a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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