| 
									
										
										
										
											2013-07-31 11:29:42 +00:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * maintains a list of country names that have been worked | 
					
						
							|  |  |  |  * VK3ACF July 2013 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __COUNTRIESWORKDED_H
 | 
					
						
							|  |  |  | #define __COUNTRIESWORKDED_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-08 23:51:53 +00:00
										 |  |  | #include <QList>
 | 
					
						
							|  |  |  | #include <QString>
 | 
					
						
							|  |  |  | #include <QStringList>
 | 
					
						
							|  |  |  | #include <QHash>
 | 
					
						
							| 
									
										
										
										
											2013-07-31 11:29:42 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class CountriesWorked | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	public: | 
					
						
							|  |  |  |         void init(const QStringList countryNames); | 
					
						
							|  |  |  |         void setAsWorked(const QString countryName); | 
					
						
							|  |  |  |         bool getHasWorked(const QString countryName); | 
					
						
							|  |  |  | 		int getWorkedCount(); | 
					
						
							|  |  |  | 		int getSize(); | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 	private: | 
					
						
							|  |  |  | 		QHash<QString, bool> _data; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 |