diff options
| author | Silarn <jrim@rimpo.org> | 2019-01-27 03:43:18 -0600 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2019-02-18 21:27:32 -0600 |
| commit | 7de78b6697b60ac20add32b5b9140b04da973be8 (patch) | |
| tree | 44664f89b93a416cafe39fa5c114ba50cdf81431 /src/settingsdialog.h | |
| parent | 9fe2f6126dc7b9396d188b57ccb097f0035f57b7 (diff) | |
Several Nexus API-related changes
* Added 30-second ping so Nexus doesn't close our connection
* Set an overall 5 minute timeout before we give up listening for auth
* Fixed some old signal and slot connections
* Added a button to revoke the current API authorization
* Updated bulk endorsement function with new API changes
Diffstat (limited to 'src/settingsdialog.h')
| -rw-r--r-- | src/settingsdialog.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/settingsdialog.h b/src/settingsdialog.h index 90b60c91..d0f6a36c 100644 --- a/src/settingsdialog.h +++ b/src/settingsdialog.h @@ -26,6 +26,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QDialog> #include <QWebSocket> #include <QListWidgetItem> +#include <QTimer> class PluginContainer; @@ -63,6 +64,7 @@ signals: void resetDialogs(); void processApiKey(const QString &); void closeApiConnection(QPushButton *); + void revokeApiKey(QPushButton *); private: @@ -90,7 +92,7 @@ public: private slots: - void on_loginCheckBox_toggled(bool checked); + //void on_loginCheckBox_toggled(bool checked); void on_categoriesBtn_clicked(); @@ -114,6 +116,8 @@ private slots: void on_clearCacheButton_clicked(); + void on_revokeNexusAuthButton_clicked(); + void on_browseBaseDirBtn_clicked(); void on_browseOverwriteDirBtn_clicked(); @@ -152,6 +156,8 @@ private slots: void dispatchLogin(); + void loginPing(); + void receiveApiKey(const QString &apiKey); void completeApiConnection(); @@ -170,6 +176,8 @@ private: QString m_ExecutableBlacklist; QWebSocket *m_nexusLogin; + QTimer m_loginTimer; + int m_totalPings = 0; }; |
