WSJT-X/models/FoxLog.hpp
Bill Somerville db51726da2 Move Fox log reset action to Fox log window context menu and allow deletes of QSOs
Move to OnRowChange edit strategy for log tables so that deletes from
view can be implemented cleanly.

Improve layout of log view tables by resizing to contents.
2018-11-25 22:19:41 +00:00

33 lines
662 B
C++

#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