From 9fe2f6126dc7b9396d188b57ccb097f0035f57b7 Mon Sep 17 00:00:00 2001 From: Silarn Date: Mon, 20 Aug 2018 18:34:31 -0500 Subject: Initial Nexus API changes: - Switch to SSO with WebSocket - Update endpoints (all but version checking) --- src/settings.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/settings.h') 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 . #include #include #include +#include #include #include #include @@ -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: -- cgit v1.3.1