WSJT-X/models/FoxLog.hpp
Bill Somerville 947b429723 Start implememntation of database based Fox log model and a new Fox log window widget
This change incorporates a reorganization of the GUI code with
widgets, validators, models, and item delegates being moved to
sub-directories.

Relax  the   requirements  of   the  ForeignKeyDelegate   and  related
CandidateKeyFilter classes to  allow them to work  with constant model
pointers for both referenced and referencing models.
2018-11-07 17:49:45 +00:00

31 lines
591 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);
QAbstractItemModel * model ();
private:
class impl;
pimpl<impl> m_;
};
#endif