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-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-08-14 07:56:20 +00:00
|
|
|
if (!doSync)
|
|
|
|
uiLanguage(NULL);
|
|
|
|
|
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-08-01 19:41:42 +00:00
|
|
|
qPrefDivePlanner::instance()->loadSync(doSync);
|
2018-07-27 19:55:49 +00:00
|
|
|
// qPrefFaceook does not use disk.
|
2018-08-12 19:58:25 +00:00
|
|
|
qPrefGeneral::instance()->loadSync(doSync);
|
2018-08-10 15:45:34 +00:00
|
|
|
qPrefGeocoding::instance()->loadSync(doSync);
|
2018-08-08 14:34:17 +00:00
|
|
|
qPrefLanguage::instance()->loadSync(doSync);
|
2018-08-06 15:36:29 +00:00
|
|
|
qPrefLocationService::instance()->loadSync(doSync);
|
2018-08-11 17:55:41 +00:00
|
|
|
qPrefPartialPressureGas::instance()->loadSync(doSync);
|
2018-07-27 19:55:49 +00:00
|
|
|
qPrefProxy::instance()->loadSync(doSync);
|
2018-08-05 08:57:24 +00:00
|
|
|
qPrefTechnicalDetails::instance()->loadSync(doSync);
|
2018-07-31 16:40:59 +00:00
|
|
|
qPrefUnits::instance()->loadSync(doSync);
|
2018-08-03 18:25:02 +00:00
|
|
|
qPrefUpdateManager::instance()->loadSync(doSync);
|
2018-06-16 14:03:31 +00:00
|
|
|
}
|