aboutsummaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/SettingsObjectWrapper.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-03 20:25:02 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-09 08:45:02 -0700
commite33545afd04dc059c0df4bc47b5aacec3487c60d (patch)
treecce643642383ef23fa51abad21f9b4b9a72dbda0 /core/subsurface-qt/SettingsObjectWrapper.h
parente673a3558eaff6ebc617e6e97e5c81cd819e7985 (diff)
downloadsubsurface-e33545afd04dc059c0df4bc47b5aacec3487c60d.tar.gz
core: activate qPrefUpdateManager
remove UpdateManager from SettingsObjectWrapper and reference qPrefUpdateManager update files using SettingsObjectWrapper/UpdateManager to use qPrefUpdateManager this activated qPrefUpdateManager and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/subsurface-qt/SettingsObjectWrapper.h')
-rw-r--r--core/subsurface-qt/SettingsObjectWrapper.h29
1 files changed, 2 insertions, 27 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.h b/core/subsurface-qt/SettingsObjectWrapper.h
index 54add731d..a648658f1 100644
--- a/core/subsurface-qt/SettingsObjectWrapper.h
+++ b/core/subsurface-qt/SettingsObjectWrapper.h
@@ -13,31 +13,6 @@
* and QWidget frontends. This class will be huge, since
* I need tons of properties, one for each option. */
-class UpdateManagerSettings : public QObject {
- Q_OBJECT
- Q_PROPERTY(bool dont_check_for_updates READ dontCheckForUpdates WRITE setDontCheckForUpdates NOTIFY dontCheckForUpdatesChanged)
- Q_PROPERTY(QString last_version_used READ lastVersionUsed WRITE setLastVersionUsed NOTIFY lastVersionUsedChanged)
- Q_PROPERTY(QDate next_check READ nextCheck WRITE nextCheckChanged)
-public:
- UpdateManagerSettings(QObject *parent);
- bool dontCheckForUpdates() const;
- bool dontCheckExists() const;
- QString lastVersionUsed() const;
- QDate nextCheck() const;
-
-public slots:
- void setDontCheckForUpdates(bool value);
- void setLastVersionUsed(const QString& value);
- void setNextCheck(const QDate& date);
-
-signals:
- void dontCheckForUpdatesChanged(bool value);
- void lastVersionUsedChanged(const QString& value);
- void nextCheckChanged(const QDate& date);
-private:
- const QString group = QStringLiteral("UpdateManager");
-};
-
/* Control the state of the Partial Pressure Graphs preferences */
class PartialPressureGasSettings : public QObject {
Q_OBJECT
@@ -366,7 +341,7 @@ class SettingsObjectWrapper : public QObject {
Q_PROPERTY(qPrefAnimations* animation MEMBER animation_settings CONSTANT)
Q_PROPERTY(LocationServiceSettingsObjectWrapper* Location MEMBER location_settings CONSTANT)
- Q_PROPERTY(UpdateManagerSettings* update MEMBER update_manager_settings CONSTANT)
+ Q_PROPERTY(qPrefUpdateManager* update MEMBER update_manager_settings CONSTANT)
Q_PROPERTY(qPrefDiveComputer* dive_computer MEMBER dive_computer_settings CONSTANT)
public:
static SettingsObjectWrapper *instance();
@@ -384,7 +359,7 @@ public:
LanguageSettingsObjectWrapper *language_settings;
qPrefAnimations *animation_settings;
LocationServiceSettingsObjectWrapper *location_settings;
- UpdateManagerSettings *update_manager_settings;
+ qPrefUpdateManager *update_manager_settings;
qPrefDiveComputer *dive_computer_settings;
void sync();