| 
									
										
										
										
											2018-10-25 00:00:19 +01:00
										 |  |  | #ifndef WORKWED_BEFORE_HPP_
 | 
					
						
							|  |  |  | #define WORKWED_BEFORE_HPP_
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-30 16:26:46 +00:00
										 |  |  | #include <QObject>
 | 
					
						
							| 
									
										
										
										
											2018-10-26 03:24:36 +01:00
										 |  |  | #include "AD1CCty.hpp"
 | 
					
						
							| 
									
										
										
										
											2018-10-25 00:00:19 +01:00
										 |  |  | #include "pimpl_h.hpp"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class CountryDat; | 
					
						
							|  |  |  | class QString; | 
					
						
							|  |  |  | class QByteArray; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class WorkedBefore final | 
					
						
							| 
									
										
										
										
											2018-11-30 16:26:46 +00:00
										 |  |  |   : public QObject | 
					
						
							| 
									
										
										
										
											2018-10-25 00:00:19 +01:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2018-11-30 16:26:46 +00:00
										 |  |  |   Q_OBJECT | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-25 00:00:19 +01:00
										 |  |  | public: | 
					
						
							| 
									
										
										
										
											2018-10-26 03:24:36 +01:00
										 |  |  |   using Continent = AD1CCty::Continent; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-25 00:00:19 +01:00
										 |  |  |   explicit WorkedBefore (); | 
					
						
							|  |  |  |   ~WorkedBefore (); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-30 16:26:46 +00:00
										 |  |  |   Q_SLOT void reload (); | 
					
						
							|  |  |  |   Q_SLOT bool add (QString const& call | 
					
						
							|  |  |  |                    , QString const& grid | 
					
						
							|  |  |  |                    , QString const& band | 
					
						
							|  |  |  |                    , QString const& mode | 
					
						
							|  |  |  |                    , QByteArray const& ADIF_record); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-25 00:00:19 +01:00
										 |  |  |   QString const& path () const; | 
					
						
							| 
									
										
										
										
											2018-10-26 03:24:36 +01:00
										 |  |  |   AD1CCty const& countries () const; | 
					
						
							| 
									
										
										
										
											2018-10-25 00:00:19 +01:00
										 |  |  |   bool country_worked (QString const& call, QString const& mode, QString const& band) const; | 
					
						
							|  |  |  |   bool grid_worked (QString const& grid, QString const& mode, QString const& band) const; | 
					
						
							|  |  |  |   bool call_worked (QString const& call, QString const& mode, QString const& band) const; | 
					
						
							| 
									
										
										
										
											2018-10-26 03:24:36 +01:00
										 |  |  |   bool continent_worked (Continent continent, QString const& mode, QString const& band) const; | 
					
						
							|  |  |  |   bool CQ_zone_worked (int CQ_zone, QString const& mode, QString const& band) const; | 
					
						
							|  |  |  |   bool ITU_zone_worked (int ITU_zone, QString const& mode, QString const& band) const; | 
					
						
							| 
									
										
										
										
											2018-10-25 00:00:19 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-30 16:26:46 +00:00
										 |  |  |   Q_SIGNAL void finished_loading (int worked_before_record_count, QString const& error) const; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-25 00:00:19 +01:00
										 |  |  | private: | 
					
						
							|  |  |  |   class impl; | 
					
						
							|  |  |  |   pimpl<impl> m_; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 |