mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-04 16:31:17 -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.
38 lines
775 B
C++
38 lines
775 B
C++
#ifndef CABRILLO_LOG_HPP_
|
|
#define CABRILLO_LOG_HPP_
|
|
|
|
#include <boost/core/noncopyable.hpp>
|
|
#include "Radio.hpp"
|
|
#include "pimpl_h.hpp"
|
|
|
|
class Configuration;
|
|
class QDateTime;
|
|
class QString;
|
|
class QSqlTableModel;
|
|
class QTextStream;
|
|
|
|
class CabrilloLog final
|
|
: private boost::noncopyable
|
|
{
|
|
public:
|
|
using Frequency = Radio::Frequency;
|
|
|
|
explicit CabrilloLog (Configuration const *);
|
|
~CabrilloLog ();
|
|
|
|
// returns false if insert fails
|
|
bool add_QSO (Frequency, QDateTime const&, QString const& call
|
|
, QString const& report_sent, QString const& report_received);
|
|
bool dupe (Frequency, QString const& call) const;
|
|
|
|
QSqlTableModel * model ();
|
|
void reset ();
|
|
void export_qsos (QTextStream&) const;
|
|
|
|
private:
|
|
class impl;
|
|
pimpl<impl> m_;
|
|
};
|
|
|
|
#endif
|