2018-06-16 14:03:31 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include "qPref.h"
|
2018-07-25 17:49:48 +00:00
|
|
|
#include "qPrefPrivate.h"
|
2018-07-07 20:59:26 +00:00
|
|
|
#include "ssrf-version.h"
|
2018-06-16 14:03:31 +00:00
|
|
|
|
2018-07-25 17:49:48 +00:00
|
|
|
qPref::qPref(QObject *parent) : QObject(parent)
|
2018-06-16 08:08:34 +00:00
|
|
|
{
|
|
|
|
}
|
2018-06-16 14:03:31 +00:00
|
|
|
qPref *qPref::instance()
|
|
|
|
{
|
2018-07-25 17:49:48 +00:00
|
|
|
static qPref *self = new qPref;
|
2018-06-16 08:08:34 +00:00
|
|
|
return self;
|
2018-06-16 14:03:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void qPref::loadSync(bool doSync)
|
|
|
|
{
|
2018-07-22 14:14:16 +00:00
|
|
|
qPrefAnimations::instance()->loadSync(doSync);
|
2018-07-14 14:52:25 +00:00
|
|
|
qPrefCloudStorage::instance()->loadSync(doSync);
|
2018-07-04 19:45:48 +00:00
|
|
|
qPrefDisplay::instance()->loadSync(doSync);
|
2018-07-22 14:19:22 +00:00
|
|
|
qPrefDiveComputer::instance()->loadSync(doSync);
|
2018-07-27 19:55:49 +00:00
|
|
|
// qPrefFaceook does not use disk.
|
|
|
|
qPrefProxy::instance()->loadSync(doSync);
|
2018-07-31 16:40:59 +00:00
|
|
|
qPrefUnits::instance()->loadSync(doSync);
|
2018-06-16 14:03:31 +00:00
|
|
|
}
|
2018-07-07 20:59:26 +00:00
|
|
|
|
|
|
|
const QString qPref::canonical_version() const
|
|
|
|
{
|
|
|
|
return QString(CANONICAL_VERSION_STRING);
|
|
|
|
}
|
|
|
|
|
|
|
|
const QString qPref::mobile_version() const
|
|
|
|
{
|
|
|
|
return QString(MOBILE_VERSION_STRING);
|
|
|
|
}
|