summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-08-17 05:06:26 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-11-03 11:39:08 -0500
commit4c5e3da2334a1d0c474148be8881b46d6ca6d3fa (patch)
tree188be5f54644cc5e432f957fe5bf406d372e5e80 /src/settings.h
parentee53312652af10fbddb5d1d16db6212bca2b9665 (diff)
moved nexus api stuff to GlobalSettings
pass a pointer to Settings around for things that can be called without settings, when creating the first instance added dummy plugin list, mod list and iorganizer to initialize plugins without an instance moved PluginContainer into the core filter, had nothing to do with the plugins list NexusInterface is now created manually instead of being a static singleton because it needs to know if the settings are available
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/settings.h b/src/settings.h
index a9501b9d..f71949d2 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -498,24 +498,6 @@ class NexusSettings
public:
NexusSettings(Settings& parent, QSettings& settings);
- // if the key exists from the credentials store, puts it in `apiKey` and
- // returns true; otherwise, returns false and leaves `apiKey` untouched
- //
- bool apiKey(QString& apiKey) const;
-
- // sets the api key in the credentials store, removes it if empty; returns
- // false on errors
- //
- bool setApiKey(const QString& apiKey);
-
- // removes the api key from the credentials store; returns false on errors
- //
- bool clearApiKey();
-
- // returns whether an API key is currently stored
- //
- bool hasApiKey() const;
-
// returns whether endorsement integration is enabled
//
bool endorsementIntegration() const;
@@ -844,6 +826,24 @@ public:
static bool hideTutorialQuestion();
static void setHideTutorialQuestion(bool b);
+ // if the key exists from the credentials store, puts it in `apiKey` and
+ // returns true; otherwise, returns false and leaves `apiKey` untouched
+ //
+ static bool nexusApiKey(QString& apiKey);
+
+ // sets the api key in the credentials store, removes it if empty; returns
+ // false on errors
+ //
+ static bool setNexusApiKey(const QString& apiKey);
+
+ // removes the api key from the credentials store; returns false on errors
+ //
+ static bool clearNexusApiKey();
+
+ // returns whether an API key is currently stored
+ //
+ static bool hasNexusApiKey();
+
// resets anything that the user can disable
static void resetDialogs();