mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-05 00:41:19 -05:00
0d6f6612d7
Now uses factored out helpers in qt_db_helpers.hpp .
33 lines
670 B
C++
33 lines
670 B
C++
#ifndef FOX_LOG_HPP_
|
|
#define FOX_LOG_HPP_
|
|
|
|
#include <boost/core/noncopyable.hpp>
|
|
#include "pimpl_h.hpp"
|
|
|
|
class QDateTime;
|
|
class QString;
|
|
class QAbstractItemModel;
|
|
|
|
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_received, QString const& report_sent
|
|
, QString const& band);
|
|
bool dupe (QString const& call, QString const& band) const;
|
|
|
|
QAbstractItemModel * model ();
|
|
void reset ();
|
|
|
|
private:
|
|
class impl;
|
|
pimpl<impl> m_;
|
|
};
|
|
|
|
#endif
|