mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Location service: Add GPS location infrastructure for Subsurface-mobile
This doesn't do a thing - just adds the empty class and sets up the Cmake file so it finds the required Qt components for Subsurface-mobile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									111a153295
								
							
						
					
					
						commit
						136b87e7c0
					
				
					 3 changed files with 28 additions and 2 deletions
				
			
		|  | @ -202,6 +202,8 @@ endif() | |||
| if(SUBSURFACE_MOBILE) | ||||
| 	set(QT_QUICK_PKG Quick) | ||||
| 	set(QT_QUICK_LIB Qt5::Quick) | ||||
| 	set(QT_LOCATION_PKG Location) | ||||
| 	set(QT_LOCATION_LIB Qt5::Positioning) | ||||
| endif() | ||||
| if(ANDROID) | ||||
| 	set(ANDROID_PKG AndroidExtras) | ||||
|  | @ -211,8 +213,8 @@ if(BTSUPPORT) | |||
| 	set(BLUETOOTH_PKG Bluetooth) | ||||
| 	set(BLUETOOTH_LIB Qt5::Bluetooth) | ||||
| endif() | ||||
| find_package(Qt5 REQUIRED COMPONENTS Core Concurrent Widgets Network ${WEBKIT_PKG} ${PRINTING_PKG} Svg Test LinguistTools ${QT_QUICK_PKG} ${ANDROID_PKG} ${BLUETOOTH_PKG}) | ||||
| set(QT_LIBRARIES Qt5::Core Qt5::Concurrent Qt5::Widgets Qt5::Network ${WEBKIT_LIB} ${PRINTING_LIB} Qt5::Svg ${QT_QUICK_LIB} ${ANDROID_LIB} ${BLUETOOTH_LIB}) | ||||
| find_package(Qt5 REQUIRED COMPONENTS Core Concurrent Widgets Network ${WEBKIT_PKG} ${PRINTING_PKG} Svg Test LinguistTools ${QT_QUICK_PKG} ${ANDROID_PKG} Bluetooth ${QT_LOCATION_PKG}) | ||||
| set(QT_LIBRARIES Qt5::Core Qt5::Concurrent Qt5::Widgets Qt5::Network ${WEBKIT_LIB} ${PRINTING_LIB} Qt5::Svg ${QT_QUICK_LIB} ${ANDROID_LIB} Qt5::Bluetooth ${QT_LOCATION_LIB}) | ||||
| set(QT_TEST_LIBRARIES ${QT_LIBRARIES} Qt5::Test) | ||||
| 
 | ||||
| if (BTSUPPORT AND "${Qt5Core_VERSION_STRING}" STRLESS "5.4.0") | ||||
|  | @ -349,6 +351,7 @@ if(SUBSURFACE_MOBILE) | |||
| 		qt-models/divelistmodel.cpp | ||||
| 		subsurface-mobile-main.cpp | ||||
| 		subsurface-mobile-helper.cpp | ||||
| 		gpslocation.cpp | ||||
| 	) | ||||
| 	add_definitions(-DSUBSURFACE_MOBILE) | ||||
| 	qt5_add_resources(MOBILE_RESOURCES qt-mobile/qml/mobile-resources.qrc) | ||||
|  |  | |||
							
								
								
									
										7
									
								
								gpslocation.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								gpslocation.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| #include "gpslocation.h" | ||||
| 
 | ||||
| GpsLocation::GpsLocation() | ||||
| { | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
							
								
								
									
										16
									
								
								gpslocation.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								gpslocation.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| #ifndef GPSLOCATION_H | ||||
| #define GPSLOCATION_H | ||||
| 
 | ||||
| #include <QGeoCoordinate> | ||||
| 
 | ||||
| class GpsLocation | ||||
| { | ||||
| public: | ||||
| 	GpsLocation(); | ||||
| 
 | ||||
| signals: | ||||
| 
 | ||||
| public slots: | ||||
| }; | ||||
| 
 | ||||
| #endif // GPSLOCATION_H
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue