| 
									
										
										
										
											2014-04-03 19:29:13 +00:00
										 |  |  | // -*- Mode: C++ -*-
 | 
					
						
							| 
									
										
										
										
											2013-08-10 15:29:55 +00:00
										 |  |  | #ifndef LogQSO_H
 | 
					
						
							|  |  |  | #define LogQSO_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifdef QT5
 | 
					
						
							|  |  |  | #include <QtWidgets>
 | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  | #include <QtGui>
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-04 22:42:35 +00:00
										 |  |  | #include <QString>
 | 
					
						
							| 
									
										
										
										
											2013-08-10 15:29:55 +00:00
										 |  |  | #include <QScopedPointer>
 | 
					
						
							| 
									
										
										
										
											2018-02-04 22:42:35 +00:00
										 |  |  | #include <QDateTime>
 | 
					
						
							| 
									
										
										
										
											2013-08-10 15:29:55 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-04-15 16:40:49 +00:00
										 |  |  | #include "Radio.hpp"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-10 15:29:55 +00:00
										 |  |  | namespace Ui { | 
					
						
							|  |  |  |   class LogQSO; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class QSettings; | 
					
						
							| 
									
										
										
										
											2017-09-16 20:27:20 +00:00
										 |  |  | class Configuration; | 
					
						
							| 
									
										
										
										
											2018-02-04 22:42:35 +00:00
										 |  |  | class QByteArray; | 
					
						
							| 
									
										
										
										
											2013-08-10 15:29:55 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | class LogQSO : public QDialog | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   Q_OBJECT | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2017-09-16 20:27:20 +00:00
										 |  |  |   explicit LogQSO(QString const& programTitle, QSettings *, Configuration const *, QWidget *parent = 0); | 
					
						
							| 
									
										
										
										
											2013-08-10 15:29:55 +00:00
										 |  |  |   ~LogQSO(); | 
					
						
							| 
									
										
										
										
											2017-07-09 20:45:53 +00:00
										 |  |  |   void initLogQSO(QString const& hisCall, QString const& hisGrid, QString mode, | 
					
						
							|  |  |  |                   QString const& rptSent, QString const& rptRcvd, QDateTime const& dateTimeOn, | 
					
						
							|  |  |  |                   QDateTime const& dateTimeOff, | 
					
						
							|  |  |  |                   Radio::Frequency dialFreq, QString const& myCall, QString const& myGrid, | 
					
						
							| 
									
										
										
										
											2017-12-07 17:09:03 +00:00
										 |  |  |                   bool noSuffix, bool toRTTY, bool dBtoComments, bool bFox, QString const& opCall); | 
					
						
							| 
									
										
										
										
											2013-08-10 15:29:55 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | public slots: | 
					
						
							|  |  |  |   void accept(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | signals: | 
					
						
							| 
									
										
										
										
											2016-12-30 15:45:31 +00:00
										 |  |  |   void acceptQSO (QDateTime const& QSO_date_off, QString const& call, QString const& grid | 
					
						
							| 
									
										
										
										
											2015-04-15 16:40:49 +00: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 22:42:35 +00:00
										 |  |  |                   , QString const& name, QDateTime const& QSO_date_on,  QString const& operator_call | 
					
						
							|  |  |  |                   , QString const& my_call, QString const& my_grid, QByteArray const& ADIF); | 
					
						
							| 
									
										
										
										
											2013-08-10 15:29:55 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | protected: | 
					
						
							|  |  |  |   void hideEvent (QHideEvent *); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  |   void loadSettings (); | 
					
						
							|  |  |  |   void storeSettings () const; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   QScopedPointer<Ui::LogQSO> ui; | 
					
						
							|  |  |  |   QSettings * m_settings; | 
					
						
							| 
									
										
										
										
											2017-09-16 20:27:20 +00:00
										 |  |  |   Configuration const * m_config; | 
					
						
							| 
									
										
										
										
											2013-08-10 15:29:55 +00:00
										 |  |  |   QString m_txPower; | 
					
						
							|  |  |  |   QString m_comments; | 
					
						
							| 
									
										
										
										
											2015-04-15 16:40:49 +00:00
										 |  |  |   Radio::Frequency m_dialFreq; | 
					
						
							| 
									
										
										
										
											2013-08-10 15:29:55 +00:00
										 |  |  |   QString m_myCall; | 
					
						
							|  |  |  |   QString m_myGrid; | 
					
						
							| 
									
										
										
										
											2016-12-30 15:45:31 +00:00
										 |  |  |   QDateTime m_dateTimeOn; | 
					
						
							|  |  |  |   QDateTime m_dateTimeOff; | 
					
						
							| 
									
										
										
										
											2013-08-10 15:29:55 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // LogQSO_H
 |