summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2019-07-22 01:00:42 -0500
committerSilarn <jrim@rimpo.org>2019-07-22 01:00:42 -0500
commitdcd6d624672019727d7effd17aac86f72bff438b (patch)
tree1e8d3856f657d898c5992631599cf272d785f973 /src/settings.h
parent179a73857125ee604f42b0d5c2d765183c86d2c7 (diff)
parente73c309f08eff98f0dbd2590f594a83b67431eac (diff)
Merge branch 'Develop'
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h31
1 files changed, 19 insertions, 12 deletions
diff --git a/src/settings.h b/src/settings.h
index ed49a1bc..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
@@ -306,6 +316,7 @@ public:
* @return the wrapped QSettings object
*/
QSettings &directInterface() { return m_Settings; }
+ const QSettings &directInterface() const { return m_Settings; }
/**
* @brief retrieve a setting for one of the installed plugins
@@ -480,7 +491,6 @@ private:
void update();
private:
- QPushButton *m_nexusConnect;
QCheckBox *m_offlineBox;
QCheckBox *m_proxyBox;
QListWidget *m_knownServersList;
@@ -537,9 +547,6 @@ private:
private slots:
void resetDialogs();
- void processApiKey(const QString &);
- void clearApiKey(QPushButton *nexusButton);
- void checkApiKey(QPushButton *nexusButton);
signals: