mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
mobile: remove locationService interfaces
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7bf90fd208
commit
5bc99194da
3 changed files with 1 additions and 28 deletions
|
@ -39,7 +39,6 @@ Kirigami.ApplicationWindow {
|
||||||
pageStack.globalToolBar.maximumHeight: Kirigami.Units.gridUnit * 2
|
pageStack.globalToolBar.maximumHeight: Kirigami.Units.gridUnit * 2
|
||||||
|
|
||||||
property alias notificationText: manager.notificationText
|
property alias notificationText: manager.notificationText
|
||||||
property alias locationServiceEnabled: manager.locationServiceEnabled
|
|
||||||
property alias pluggedInDeviceName: manager.pluggedInDeviceName
|
property alias pluggedInDeviceName: manager.pluggedInDeviceName
|
||||||
property alias defaultCylinderIndex: settingsWindow.defaultCylinderIndex
|
property alias defaultCylinderIndex: settingsWindow.defaultCylinderIndex
|
||||||
property bool filterToggle: false
|
property bool filterToggle: false
|
||||||
|
|
|
@ -201,7 +201,7 @@ static bool unsavedChanges()
|
||||||
return unsaved_changes() || !Command::isClean();
|
return unsaved_changes() || !Command::isClean();
|
||||||
}
|
}
|
||||||
|
|
||||||
QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
QMLManager::QMLManager() :
|
||||||
m_verboseEnabled(false),
|
m_verboseEnabled(false),
|
||||||
m_diveListProcessing(false),
|
m_diveListProcessing(false),
|
||||||
m_initialized(false),
|
m_initialized(false),
|
||||||
|
@ -1639,20 +1639,6 @@ void QMLManager::appendTextToLog(const QString &newText)
|
||||||
qDebug() << QString::number(timer.elapsed() / 1000.0,'f', 3) + ": " + newText;
|
qDebug() << QString::number(timer.elapsed() / 1000.0,'f', 3) + ": " + newText;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QMLManager::setLocationServiceEnabled(bool locationServiceEnabled)
|
|
||||||
{
|
|
||||||
m_locationServiceEnabled = locationServiceEnabled;
|
|
||||||
GpsLocation::instance()->serviceEnable(m_locationServiceEnabled);
|
|
||||||
emit locationServiceEnabledChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
void QMLManager::setLocationServiceAvailable(bool locationServiceAvailable)
|
|
||||||
{
|
|
||||||
appendTextToLog(QStringLiteral("location service is ") + (locationServiceAvailable ? QStringLiteral("available") : QStringLiteral("not available")));
|
|
||||||
m_locationServiceAvailable = locationServiceAvailable;
|
|
||||||
emit locationServiceAvailableChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
void QMLManager::setVerboseEnabled(bool verboseMode)
|
void QMLManager::setVerboseEnabled(bool verboseMode)
|
||||||
{
|
{
|
||||||
m_verboseEnabled = verboseMode;
|
m_verboseEnabled = verboseMode;
|
||||||
|
|
|
@ -27,8 +27,6 @@ struct DiveSiteChange; // An obscure implementation artifact - remove in due cou
|
||||||
|
|
||||||
class QMLManager : public QObject {
|
class QMLManager : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PROPERTY(bool locationServiceEnabled MEMBER m_locationServiceEnabled WRITE setLocationServiceEnabled NOTIFY locationServiceEnabledChanged)
|
|
||||||
Q_PROPERTY(bool locationServiceAvailable MEMBER m_locationServiceAvailable WRITE setLocationServiceAvailable NOTIFY locationServiceAvailableChanged)
|
|
||||||
Q_PROPERTY(bool loadFromCloud MEMBER m_loadFromCloud WRITE setLoadFromCloud NOTIFY loadFromCloudChanged)
|
Q_PROPERTY(bool loadFromCloud MEMBER m_loadFromCloud WRITE setLoadFromCloud NOTIFY loadFromCloudChanged)
|
||||||
Q_PROPERTY(QString startPageText MEMBER m_startPageText WRITE setStartPageText NOTIFY startPageTextChanged)
|
Q_PROPERTY(QString startPageText MEMBER m_startPageText WRITE setStartPageText NOTIFY startPageTextChanged)
|
||||||
Q_PROPERTY(bool verboseEnabled MEMBER m_verboseEnabled WRITE setVerboseEnabled NOTIFY verboseEnabledChanged)
|
Q_PROPERTY(bool verboseEnabled MEMBER m_verboseEnabled WRITE setVerboseEnabled NOTIFY verboseEnabledChanged)
|
||||||
|
@ -125,12 +123,6 @@ public:
|
||||||
Q_INVOKABLE void registerError(QString error);
|
Q_INVOKABLE void registerError(QString error);
|
||||||
QString consumeError();
|
QString consumeError();
|
||||||
|
|
||||||
bool locationServiceEnabled() const;
|
|
||||||
void setLocationServiceEnabled(bool locationServiceEnable);
|
|
||||||
|
|
||||||
bool locationServiceAvailable() const;
|
|
||||||
void setLocationServiceAvailable(bool locationServiceAvailable);
|
|
||||||
|
|
||||||
bool verboseEnabled() const;
|
bool verboseEnabled() const;
|
||||||
void setVerboseEnabled(bool verboseMode);
|
void setVerboseEnabled(bool verboseMode);
|
||||||
|
|
||||||
|
@ -240,8 +232,6 @@ private:
|
||||||
DiveSiteSortedModel locationModel;
|
DiveSiteSortedModel locationModel;
|
||||||
QString m_startPageText;
|
QString m_startPageText;
|
||||||
QString m_lastError;
|
QString m_lastError;
|
||||||
bool m_locationServiceEnabled;
|
|
||||||
bool m_locationServiceAvailable;
|
|
||||||
bool m_verboseEnabled;
|
bool m_verboseEnabled;
|
||||||
bool m_diveListProcessing;
|
bool m_diveListProcessing;
|
||||||
bool m_initialized;
|
bool m_initialized;
|
||||||
|
@ -284,8 +274,6 @@ private:
|
||||||
qPrefCloudStorage::cloud_status m_oldStatus;
|
qPrefCloudStorage::cloud_status m_oldStatus;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void locationServiceEnabledChanged();
|
|
||||||
void locationServiceAvailableChanged();
|
|
||||||
void verboseEnabledChanged();
|
void verboseEnabledChanged();
|
||||||
void diveListProcessingChanged();
|
void diveListProcessingChanged();
|
||||||
void initializedChanged();
|
void initializedChanged();
|
||||||
|
|
Loading…
Reference in a new issue