summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2018-08-20 18:34:31 -0500
committerSilarn <jrim@rimpo.org>2019-02-18 21:26:44 -0600
commit9fe2f6126dc7b9396d188b57ccb097f0035f57b7 (patch)
treedfb6038767f55238506122682b644ac86415050b /src/settings.h
parentbd9cc6254c8ded2f726e2b001a4ecf61ac0e5a1d (diff)
Initial Nexus API changes:
- Switch to SSO with WebSocket - Update endpoints (all but version checking)
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/settings.h b/src/settings.h
index 0286d4db..49e5a5b6 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -25,6 +25,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include <QList>
#include <QMap>
#include <QObject>
+#include <QPushButton>
#include <QSet>
#include <QSettings>
#include <QString>
@@ -188,7 +189,7 @@ public:
* @param password (out) received the password for nexus
* @return true if automatic login is active, false otherwise
**/
- bool getNexusLogin(QString &username, QString &password) const;
+ bool getNexusApiKey(QString &apiKey) const;
/**
* @brief retrieve the login information for steam
@@ -249,7 +250,7 @@ public:
* @param username username
* @param password password
*/
- void setNexusLogin(QString username, QString password);
+ void setNexusApiKey(QString apiKey);
/**
* @brief set the steam login information
@@ -475,13 +476,10 @@ private:
{
public:
NexusTab(Settings *m_parent, SettingsDialog &m_dialog);
-
void update();
private:
- QCheckBox *m_loginCheckBox;
- QLineEdit *m_usernameEdit;
- QLineEdit *m_passwordEdit;
+ QPushButton *m_nexusConnect;
QCheckBox *m_offlineBox;
QCheckBox *m_proxyBox;
QListWidget *m_knownServersList;
@@ -537,6 +535,8 @@ private:
private slots:
void resetDialogs();
+ void processApiKey(const QString &);
+ void checkApiKey(QPushButton *nexusButton);
signals: