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