WSJT-X/models/CabrilloLog.hpp

38 lines
783 B
C++
Raw Normal View History

2018-11-11 21:11:58 -05:00
#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 QAbstractItemModel;
class QTextStream;
class CabrilloLog final
: private boost::noncopyable
{
public:
using Frequency = Radio::Frequency;
explicit CabrilloLog (Configuration const *);
~CabrilloLog ();
// returns false if insert fails
void add_QSO (Frequency, QDateTime const&, QString const& call
, QString const& report_sent, QString const& report_received);
bool dupe (Frequency, QString const& call) const;
QAbstractItemModel * model ();
void reset ();
void export_qsos (QTextStream&) const;
private:
class impl;
pimpl<impl> m_;
};
#endif