2014-04-03 15:29:13 -04:00
|
|
|
// -*- Mode: C++ -*-
|
2018-12-06 00:41:16 -05:00
|
|
|
#ifndef LogQSO_H_
|
|
|
|
#define LogQSO_H_
|
2013-08-10 11:29:55 -04:00
|
|
|
|
2018-10-24 19:00:19 -04:00
|
|
|
#include <QDialog>
|
2013-08-10 11:29:55 -04:00
|
|
|
|
2018-02-04 17:42:35 -05:00
|
|
|
#include <QString>
|
2013-08-10 11:29:55 -04:00
|
|
|
#include <QScopedPointer>
|
2018-02-04 17:42:35 -05:00
|
|
|
#include <QDateTime>
|
2013-08-10 11:29:55 -04:00
|
|
|
|
2015-04-15 12:40:49 -04:00
|
|
|
#include "Radio.hpp"
|
|
|
|
|
2013-08-10 11:29:55 -04:00
|
|
|
namespace Ui {
|
|
|
|
class LogQSO;
|
|
|
|
}
|
|
|
|
|
|
|
|
class QSettings;
|
2017-09-16 16:27:20 -04:00
|
|
|
class Configuration;
|
2018-02-04 17:42:35 -05:00
|
|
|
class QByteArray;
|
2018-11-22 20:18:39 -05:00
|
|
|
class CabrilloLog;
|
2013-08-10 11:29:55 -04:00
|
|
|
|
|
|
|
class LogQSO : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-09-16 16:27:20 -04:00
|
|
|
explicit LogQSO(QString const& programTitle, QSettings *, Configuration const *, QWidget *parent = 0);
|
2013-08-10 11:29:55 -04:00
|
|
|
~LogQSO();
|
2017-07-09 16:45:53 -04:00
|
|
|
void initLogQSO(QString const& hisCall, QString const& hisGrid, QString mode,
|
|
|
|
QString const& rptSent, QString const& rptRcvd, QDateTime const& dateTimeOn,
|
2018-10-31 18:35:59 -04:00
|
|
|
QDateTime const& dateTimeOff, Radio::Frequency dialFreq,
|
2018-11-22 20:18:39 -05:00
|
|
|
bool noSuffix, QString xSent, QString xRcvd, CabrilloLog *);
|
2013-08-10 11:29:55 -04:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void accept();
|
|
|
|
|
|
|
|
signals:
|
2016-12-30 10:45:31 -05:00
|
|
|
void acceptQSO (QDateTime const& QSO_date_off, QString const& call, QString const& grid
|
2015-04-15 12:40:49 -04:00
|
|
|
, Radio::Frequency dial_freq, QString const& mode
|
|
|
|
, QString const& rpt_sent, QString const& rpt_received
|
|
|
|
, QString const& tx_power, QString const& comments
|
2018-02-04 17:42:35 -05:00
|
|
|
, QString const& name, QDateTime const& QSO_date_on, QString const& operator_call
|
2018-12-02 10:09:37 -05:00
|
|
|
, QString const& my_call, QString const& my_grid
|
|
|
|
, QString const& exchange_sent, QString const& exchange_rcvd
|
|
|
|
, QByteArray const& ADIF);
|
2013-08-10 11:29:55 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void hideEvent (QHideEvent *);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void loadSettings ();
|
|
|
|
void storeSettings () const;
|
|
|
|
|
|
|
|
QScopedPointer<Ui::LogQSO> ui;
|
|
|
|
QSettings * m_settings;
|
2017-09-16 16:27:20 -04:00
|
|
|
Configuration const * m_config;
|
2013-08-10 11:29:55 -04:00
|
|
|
QString m_txPower;
|
|
|
|
QString m_comments;
|
2015-04-15 12:40:49 -04:00
|
|
|
Radio::Frequency m_dialFreq;
|
2013-08-10 11:29:55 -04:00
|
|
|
QString m_myCall;
|
|
|
|
QString m_myGrid;
|
2018-11-22 20:18:39 -05:00
|
|
|
CabrilloLog * m_cabrilloLog;
|
2013-08-10 11:29:55 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LogQSO_H
|