mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Location service: move into subsurface-core
While this is primarily something targeted at a mobile device, with many of the 2 in 1 devices it is possible that the user might be running the desktop version of Subsurface on a mobile device. As a first step to make it possible to collect GPS fixes on such a device we need to make the infrastructure to do so available in the desktop application as well. This still needs to be hooked up in the desktop UI. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0b804e5b21
commit
456cc3955a
6 changed files with 5 additions and 8 deletions
|
@ -208,8 +208,6 @@ endif()
|
||||||
if(SUBSURFACE_MOBILE)
|
if(SUBSURFACE_MOBILE)
|
||||||
set(QT_QUICK_PKG Quick)
|
set(QT_QUICK_PKG Quick)
|
||||||
set(QT_QUICK_LIB Qt5::Quick)
|
set(QT_QUICK_LIB Qt5::Quick)
|
||||||
set(QT_LOCATION_PKG Location)
|
|
||||||
set(QT_LOCATION_LIB Qt5::Positioning)
|
|
||||||
add_definitions(-DSUBSURFACE_MOBILE)
|
add_definitions(-DSUBSURFACE_MOBILE)
|
||||||
endif()
|
endif()
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
|
@ -220,8 +218,8 @@ if(BTSUPPORT)
|
||||||
set(BLUETOOTH_PKG Bluetooth)
|
set(BLUETOOTH_PKG Bluetooth)
|
||||||
set(BLUETOOTH_LIB Qt5::Bluetooth)
|
set(BLUETOOTH_LIB Qt5::Bluetooth)
|
||||||
endif()
|
endif()
|
||||||
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})
|
find_package(Qt5 REQUIRED COMPONENTS Core Concurrent Widgets Network ${WEBKIT_PKG} ${PRINTING_PKG} Svg Test LinguistTools ${QT_QUICK_PKG} ${ANDROID_PKG} Bluetooth Location)
|
||||||
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_LIBRARIES Qt5::Core Qt5::Concurrent Qt5::Widgets Qt5::Network ${WEBKIT_LIB} ${PRINTING_LIB} Qt5::Svg ${QT_QUICK_LIB} ${ANDROID_LIB} Qt5::Bluetooth Qt5::Positioning)
|
||||||
set(QT_TEST_LIBRARIES ${QT_LIBRARIES} Qt5::Test)
|
set(QT_TEST_LIBRARIES ${QT_LIBRARIES} Qt5::Test)
|
||||||
|
|
||||||
if (BTSUPPORT AND "${Qt5Core_VERSION_STRING}" STRLESS "5.4.0")
|
if (BTSUPPORT AND "${Qt5Core_VERSION_STRING}" STRLESS "5.4.0")
|
||||||
|
@ -359,7 +357,6 @@ if(SUBSURFACE_MOBILE)
|
||||||
set(MOBILE_SRC
|
set(MOBILE_SRC
|
||||||
qt-mobile/qmlmanager.cpp
|
qt-mobile/qmlmanager.cpp
|
||||||
qt-mobile/qmlprofile.cpp
|
qt-mobile/qmlprofile.cpp
|
||||||
qt-mobile/gpslocation.cpp
|
|
||||||
qt-models/divelistmodel.cpp
|
qt-models/divelistmodel.cpp
|
||||||
subsurface-mobile-main.cpp
|
subsurface-mobile-main.cpp
|
||||||
subsurface-mobile-helper.cpp
|
subsurface-mobile-helper.cpp
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
#include "qt-mobile/gpslocation.h"
|
#include "gpslocation.h"
|
||||||
|
|
||||||
void qmlUiShowMessage(const char *errorString);
|
void qmlUiShowMessage(const char *errorString);
|
||||||
|
|
||||||
|
|
|
@ -80,6 +80,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
|
||||||
pluginmanager.cpp
|
pluginmanager.cpp
|
||||||
imagedownloader.cpp
|
imagedownloader.cpp
|
||||||
isocialnetworkintegration.cpp
|
isocialnetworkintegration.cpp
|
||||||
|
gpslocation.cpp
|
||||||
${SERIAL_FTDI}
|
${SERIAL_FTDI}
|
||||||
${PLATFORM_SRC}
|
${PLATFORM_SRC}
|
||||||
${BT_CORE_SRC_FILES}
|
${BT_CORE_SRC_FILES}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "qt-mobile/gpslocation.h"
|
#include "gpslocation.h"
|
||||||
#include "pref.h"
|
#include "pref.h"
|
||||||
#include "dive.h"
|
#include "dive.h"
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
|
@ -18,7 +18,6 @@
|
||||||
#include "qt-mobile/qmlmanager.h"
|
#include "qt-mobile/qmlmanager.h"
|
||||||
#include "qt-models/divelistmodel.h"
|
#include "qt-models/divelistmodel.h"
|
||||||
#include "qt-mobile/qmlprofile.h"
|
#include "qt-mobile/qmlprofile.h"
|
||||||
#include "qt-mobile/gpslocation.h"
|
|
||||||
|
|
||||||
QObject *qqWindowObject = NULL;
|
QObject *qqWindowObject = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue