summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/SettingsObjectWrapper.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-23 17:49:12 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-27 12:36:20 -0700
commitf175890632d5845d57066b0669c347b4c0992ff9 (patch)
treeefe856eb90e077c64f990b5ec5681c95eed7c866 /core/subsurface-qt/SettingsObjectWrapper.h
parente0f1817fdc3b0024c5e97cfa0db048384aae6d78 (diff)
downloadsubsurface-f175890632d5845d57066b0669c347b4c0992ff9.tar.gz
core: activate qPrefFacebook
remove Facebook from SettingsObjectWrapper and reference qPrefFacebook update files using SettingsObjectWrapper/Facebook to use qPrefFacebook this activated qPrefFacebook 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.h31
1 files changed, 2 insertions, 29 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.h b/core/subsurface-qt/SettingsObjectWrapper.h
index 9cb707044..cd30cb1ac 100644
--- a/core/subsurface-qt/SettingsObjectWrapper.h
+++ b/core/subsurface-qt/SettingsObjectWrapper.h
@@ -204,33 +204,6 @@ private:
const QString group = QStringLiteral("TecDetails");
};
-/* Control the state of the Facebook preferences */
-class FacebookSettings : public QObject {
- Q_OBJECT
- Q_PROPERTY(QString accessToken READ accessToken WRITE setAccessToken NOTIFY accessTokenChanged)
- Q_PROPERTY(QString userId READ userId WRITE setUserId NOTIFY userIdChanged)
- Q_PROPERTY(QString albumId READ albumId WRITE setAlbumId NOTIFY albumIdChanged)
-
-public:
- FacebookSettings(QObject *parent);
- QString accessToken() const;
- QString userId() const;
- QString albumId() const;
-
-public slots:
- void setAccessToken (const QString& value);
- void setUserId(const QString& value);
- void setAlbumId(const QString& value);
-
-signals:
- void accessTokenChanged(const QString& value);
- void userIdChanged(const QString& value);
- void albumIdChanged(const QString& value);
-private:
- QString group;
- QString subgroup;
-};
-
/* Control the state of the Geocoding preferences */
class GeocodingPreferences : public QObject {
Q_OBJECT
@@ -573,7 +546,7 @@ class SettingsObjectWrapper : public QObject {
Q_PROPERTY(TechnicalDetailsSettings* techical_details MEMBER techDetails CONSTANT)
Q_PROPERTY(PartialPressureGasSettings* pp_gas MEMBER pp_gas CONSTANT)
- Q_PROPERTY(FacebookSettings* facebook MEMBER facebook CONSTANT)
+ Q_PROPERTY(qPrefFacebook* facebook MEMBER facebook CONSTANT)
Q_PROPERTY(GeocodingPreferences* geocoding MEMBER geocoding CONSTANT)
Q_PROPERTY(ProxySettings* proxy MEMBER proxy CONSTANT)
Q_PROPERTY(qPrefCloudStorage* cloud_storage MEMBER cloud_storage CONSTANT)
@@ -593,7 +566,7 @@ public:
TechnicalDetailsSettings *techDetails;
PartialPressureGasSettings *pp_gas;
- FacebookSettings *facebook;
+ qPrefFacebook *facebook;
GeocodingPreferences *geocoding;
ProxySettings *proxy;
qPrefCloudStorage *cloud_storage;