Add logging for adding a PC and offline/online state transitions

This commit is contained in:
Cameron Gutman
2018-08-30 23:15:06 -04:00
parent 9470615c63
commit 8a8b624f47
3 changed files with 32 additions and 17 deletions
+9 -3
View File
@@ -80,6 +80,12 @@ private:
class NvHTTP
{
public:
enum NvLogLevel {
NONE,
ERROR,
VERBOSE
};
explicit NvHTTP(QString address);
static
@@ -87,7 +93,7 @@ public:
getCurrentGame(QString serverInfo);
QString
getServerInfo();
getServerInfo(NvLogLevel logLevel);
static
void
@@ -108,7 +114,7 @@ public:
QString command,
QString arguments,
bool enableTimeout,
bool suppressLogging = false);
NvLogLevel logLevel = NvLogLevel::VERBOSE);
static
QVector<int>
@@ -145,7 +151,7 @@ private:
QString command,
QString arguments,
bool enableTimeout,
bool suppressLogging = false);
NvLogLevel logLevel);
QString m_Address;
QNetworkAccessManager m_Nam;