summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-04 20:58:30 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-06-04 20:58:30 -0400
commit2db29cffda538c6a9be24dff705e1d032bd42008 (patch)
tree82240665b18d4652507fedb1b1c541251f90996f /src/settings.h
parent933f460ee61a89ff71038c478de92d6c3760cc9a (diff)
renamed "revoke nexus authorization" to "disconnect from nexus" because "revoking" is ambiguous
reworked manual key dialog to look more like MO1 moved all the UI stuff from callbacks in Settings back to SettingsDialog in a central updateNexusButtons(), which also enables/disables buttons as needed
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/settings.h b/src/settings.h
index 04a0646e..bccd1e81 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -188,6 +188,24 @@ public:
bool getNexusApiKey(QString &apiKey) const;
/**
+ * @brief set the nexus login information
+ *
+ * @param username username
+ * @param password password
+ */
+ bool setNexusApiKey(const QString& apiKey);
+
+ /**
+ * @brief clears the nexus login information
+ */
+ bool clearNexusApiKey();
+
+ /**
+ * @brief returns whether an API key is currently stored
+ */
+ bool hasNexusApiKey() const;
+
+ /**
* @brief retrieve the login information for steam
*
* @param username (out) receives the user name for nexus
@@ -241,14 +259,6 @@ public:
QString executablesBlacklist() const;
/**
- * @brief set the nexus login information
- *
- * @param username username
- * @param password password
- */
- void setNexusApiKey(QString apiKey);
-
- /**
* @brief set the steam login information
*
* @param username username
@@ -481,7 +491,6 @@ private:
void update();
private:
- QPushButton *m_nexusConnect;
QCheckBox *m_offlineBox;
QCheckBox *m_proxyBox;
QListWidget *m_knownServersList;
@@ -538,9 +547,6 @@ private:
private slots:
void resetDialogs();
- void processApiKey(const QString &);
- void clearApiKey(QPushButton *nexusButton);
- void checkApiKey(QPushButton *nexusButton);
signals: