| 
									
										
										
										
											2017-04-27 20:24:53 +02:00
										 |  |  | // SPDX-License-Identifier: GPL-2.0
 | 
					
						
							| 
									
										
										
										
											2015-05-10 12:44:35 -03:00
										 |  |  | #ifndef DIVESITEHELPERS_H
 | 
					
						
							|  |  |  | #define DIVESITEHELPERS_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "units.h"
 | 
					
						
							|  |  |  | #include <QThread>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-05-16 00:27:08 +03:00
										 |  |  | class ReverseGeoLookupThread : public QThread { | 
					
						
							| 
									
										
										
										
											2015-05-10 12:44:35 -03:00
										 |  |  | Q_OBJECT | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2015-05-16 00:27:08 +03:00
										 |  |  | 	static ReverseGeoLookupThread *instance(); | 
					
						
							| 
									
										
										
										
											2015-07-01 12:36:21 -07:00
										 |  |  | 	void lookup(struct dive_site *ds); | 
					
						
							| 
									
										
										
										
											2015-05-10 12:44:35 -03:00
										 |  |  | 	void run() Q_DECL_OVERRIDE; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							| 
									
										
										
										
											2015-05-16 00:27:08 +03:00
										 |  |  | 	ReverseGeoLookupThread(QObject *parent = 0); | 
					
						
							| 
									
										
										
										
											2015-05-10 12:44:35 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // DIVESITEHELPERS_H
 |