File: FoxLog.hpp

package info (click to toggle)
wsjtx 2.6.1%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 69,664 kB
  • sloc: cpp: 86,977; f90: 42,417; python: 27,241; ansic: 12,510; fortran: 2,382; makefile: 197; sh: 134
file content (35 lines) | stat: -rwxr-xr-x 799 bytes parent folder | download
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
33
34
35
#ifndef FOX_LOG_HPP_
#define FOX_LOG_HPP_

#include <boost/core/noncopyable.hpp>
#include "pimpl_h.hpp"

class QDateTime;
class QString;
class QSqlTableModel;
class QTextStream;
class Configuration;

class FoxLog final
  : private boost::noncopyable
{
public:
  explicit FoxLog (Configuration const *);
  ~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 ();
  void export_qsos (QTextStream&) const;

private:
  class impl;
  pimpl<impl> m_;
};

#endif