mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-09 02:26:06 -05:00
db51726da2
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.
33 lines
662 B
C++
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
|