From 616925ebbb8e916119f8dbee0c1f0cb97b14a68b Mon Sep 17 00:00:00 2001
From: isanae <14251494+isanae@users.noreply.github.com>
Date: Fri, 14 Jun 2019 01:38:07 -0400
Subject: moved api user account classes to their own files api label in status
bar: - now shows when not logged in - changed some of the colour thresholds
to correspond to real throttling numbers make sure the api key is also
cleared from the access manager when clearing from the settings removed
unused bool m_ValidateAttempted in NXMAccessManager update the window title
and status bar api label with correct values on startup, which fixes
incorrect values when "restarting" MO after changing nexus settings
---
src/nxmaccessmanager.h | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
(limited to 'src/nxmaccessmanager.h')
diff --git a/src/nxmaccessmanager.h b/src/nxmaccessmanager.h
index 1d23faf9..1bdeae40 100644
--- a/src/nxmaccessmanager.h
+++ b/src/nxmaccessmanager.h
@@ -20,6 +20,7 @@ along with Mod Organizer. If not, see .
#ifndef NXMACCESSMANAGER_H
#define NXMACCESSMANAGER_H
+#include "apiuseraccount.h"
#include
#include
#include
@@ -28,8 +29,6 @@ along with Mod Organizer. If not, see .
namespace MOBase { class IPluginGame; }
-class APIUserAccount;
-
/**
* @brief access manager extended to handle nxm links
**/
@@ -56,6 +55,7 @@ public:
QString userAgent(const QString &subModule = QString()) const;
QString apiKey() const;
+ void clearApiKey();
void startValidationCheck();
@@ -94,7 +94,6 @@ protected:
QIODevice *device);
private:
-
QTimer m_ValidateTimeout;
QNetworkReply *m_ValidateReply;
QProgressDialog *m_ProgressDialog { nullptr };
@@ -103,7 +102,6 @@ private:
QString m_ApiKey;
- bool m_ValidateAttempted;
enum {
VALIDATE_NOT_CHECKED,
VALIDATE_CHECKING,
@@ -112,7 +110,6 @@ private:
VALIDATE_REFUSED,
VALIDATE_VALID
} m_ValidateState = VALIDATE_NOT_CHECKED;
-
};
#endif // NXMACCESSMANAGER_H
--
cgit v1.3.1