summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefFacebook.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-14 10:30:07 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-15 16:11:39 -0700
commit9b8a6fa8552647c1c1e7b78000e93a1bbc508365 (patch)
tree4196fe4371cab7e02c5168256e2d6ce380aadbce /core/settings/qPrefFacebook.h
parent0825f644e0b98190d68e0b63c4204fa8282e84b4 (diff)
downloadsubsurface-9b8a6fa8552647c1c1e7b78000e93a1bbc508365.tar.gz
core: make methods in qPref* static
Make methods static to allow fast and esay access use qPrefXYZ::foo() instead of qPrefXYZ::instance()->foo() Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/settings/qPrefFacebook.h')
-rw-r--r--core/settings/qPrefFacebook.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/settings/qPrefFacebook.h b/core/settings/qPrefFacebook.h
index 60c037583..0493b8ca9 100644
--- a/core/settings/qPrefFacebook.h
+++ b/core/settings/qPrefFacebook.h
@@ -17,9 +17,9 @@ public:
static qPrefFacebook *instance();
// Load/Sync local settings (disk) and struct preference
- void loadSync(bool doSync);
- void load() {loadSync(false); }
- void sync() {loadSync(true); }
+ static void loadSync(bool doSync);
+ static void load() {loadSync(false); }
+ static void sync() {loadSync(true); }
public:
static QString access_token() { return prefs.facebook.access_token; }
@@ -27,9 +27,9 @@ public:
static QString user_id() { return prefs.facebook.user_id; }
public slots:
- void set_access_token(const QString& value);
- void set_album_id(const QString& value);
- void set_user_id(const QString& value);
+ static void set_access_token(const QString& value);
+ static void set_album_id(const QString& value);
+ static void set_user_id(const QString& value);
signals:
void access_token_changed(const QString& value);
@@ -37,9 +37,9 @@ signals:
void user_id_changed(const QString& value);
private:
- void disk_access_token(bool doSync);
- void disk_album_id(bool doSync);
- void disk_user_id(bool doSync);
+ static void disk_access_token(bool doSync);
+ static void disk_album_id(bool doSync);
+ static void disk_user_id(bool doSync);
};
#endif