summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefLocationService.cpp
blob: 84ebcc32120511ed9f8b716c3fd02941ad21a2db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);