2018-08-05 13:59:28 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include "qPrefLocationService.h"
|
|
|
|
#include "qPrefPrivate.h"
|
|
|
|
|
|
|
|
static const QString group = QStringLiteral("LocationService");
|
|
|
|
|
|
|
|
qPrefLocationService *qPrefLocationService::instance()
|
|
|
|
{
|
|
|
|
static qPrefLocationService *self = new qPrefLocationService;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
void qPrefLocationService::loadSync(bool doSync)
|
|
|
|
{
|
|
|
|
disk_distance_threshold(doSync);
|
|
|
|
disk_time_threshold(doSync);
|
|
|
|
}
|
|
|
|
|
2018-09-07 16:06:00 +00:00
|
|
|
HANDLE_PREFERENCE_INT(LocationService, "distance_threshold", distance_threshold);
|
2018-08-05 13:59:28 +00:00
|
|
|
|
2018-09-07 16:06:00 +00:00
|
|
|
HANDLE_PREFERENCE_INT(LocationService, "time_threshold", time_threshold);
|