summaryrefslogtreecommitdiff
path: root/logqso.h
diff options
context:
space:
mode:
authorIain R. Learmonth <irl@debian.org>2015-10-18 18:51:00 +0100
committerIain R. Learmonth <irl@debian.org>2015-10-18 18:51:00 +0100
commitd63dd8d081a6fcd0715cd13f26df59fb831769d2 (patch)
treeb9c1f6245147a310aac3762630bad389bbb57335 /logqso.h
parentc720a3d55c5ec832c29cb7ce50b6fb4b70c55b11 (diff)
Imported Upstream version 1.5.0upstream/1.5.0
Diffstat (limited to 'logqso.h')
-rw-r--r--logqso.h113
1 files changed, 60 insertions, 53 deletions
diff --git a/logqso.h b/logqso.h
index 06b2edfc..fb1609a2 100644
--- a/logqso.h
+++ b/logqso.h
@@ -1,53 +1,60 @@
-#ifndef LogQSO_H
-#define LogQSO_H
-
-#ifdef QT5
-#include <QtWidgets>
-#else
-#include <QtGui>
-#endif
-
-namespace Ui {
-class LogQSO;
-}
-
-class LogQSO : public QDialog
-{
- Q_OBJECT
-
-public:
- explicit LogQSO(QWidget *parent = 0);
- ~LogQSO();
- void initLogQSO(QString hisCall, QString hisGrid, QString mode,
- QString rptSent, QString rptRcvd, QDateTime dateTime,
- double dialFreq, QString myCall, QString myGrid,
- bool noSuffix, bool toRTTY, bool dBtoComments);
-
- double m_dialFreq;
-
- bool m_saveTxPower;
- bool m_saveComments;
-
- QString m_myCall;
- QString m_myGrid;
- QString m_txPower;
- QString m_comments;
-
- QDateTime m_dateTime;
-
-public slots:
- void accept();
- void reject();
-
-signals:
- void acceptQSO(bool accepted);
-
-private slots:
- void on_cbTxPower_toggled(bool checked);
- void on_cbComments_toggled(bool checked);
-
-private:
- Ui::LogQSO *ui;
-};
-
-#endif // LogQSO_H
+// -*- Mode: C++ -*-
+#ifndef LogQSO_H
+#define LogQSO_H
+
+#ifdef QT5
+#include <QtWidgets>
+#else
+#include <QtGui>
+#endif
+
+#include <QScopedPointer>
+
+#include "Radio.hpp"
+
+namespace Ui {
+ class LogQSO;
+}
+
+class QSettings;
+
+class LogQSO : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit LogQSO(QString const& programTitle, QSettings *, QWidget *parent = 0);
+ ~LogQSO();
+ void initLogQSO(QString hisCall, QString hisGrid, QString mode,
+ QString rptSent, QString rptRcvd, QDateTime dateTime,
+ Radio::Frequency dialFreq, QString myCall, QString myGrid,
+ bool noSuffix, bool toRTTY, bool dBtoComments);
+
+public slots:
+ void accept();
+
+signals:
+ void acceptQSO (QDateTime const&, QString const& call, QString const& grid
+ , Radio::Frequency dial_freq, QString const& mode
+ , QString const& rpt_sent, QString const& rpt_received
+ , QString const& tx_power, QString const& comments
+ , QString const& name);
+
+protected:
+ void hideEvent (QHideEvent *);
+
+private:
+ void loadSettings ();
+ void storeSettings () const;
+
+ QScopedPointer<Ui::LogQSO> ui;
+ QSettings * m_settings;
+ QString m_txPower;
+ QString m_comments;
+ Radio::Frequency m_dialFreq;
+ QString m_myCall;
+ QString m_myGrid;
+ QDateTime m_dateTime;
+};
+
+#endif // LogQSO_H