summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefLocationService.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/settings/qPrefLocationService.cpp')
-rw-r--r--core/settings/qPrefLocationService.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/settings/qPrefLocationService.cpp b/core/settings/qPrefLocationService.cpp
new file mode 100644
index 000000000..84ebcc321
--- /dev/null
+++ b/core/settings/qPrefLocationService.cpp
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: GPL-2.0
+#include "qPrefLocationService.h"
+#include "qPref.h"
+#include "qPrefPrivate.h"
+
+static const QString group = QStringLiteral("LocationService");
+
+qPrefLocationService::qPrefLocationService(QObject *parent) : QObject(parent)
+{
+}
+qPrefLocationService *qPrefLocationService::instance()
+{
+ static qPrefLocationService *self = new qPrefLocationService;
+ return self;
+}
+
+void qPrefLocationService::loadSync(bool doSync)
+{
+ disk_distance_threshold(doSync);
+ disk_time_threshold(doSync);
+}
+
+HANDLE_PREFERENCE_INT(LocationService, "/distance_threshold", distance_threshold);
+
+HANDLE_PREFERENCE_INT(LocationService, "/time_threshold", time_threshold);