Move serialization and deserialization into NvApp class

This commit is contained in:
Cameron Gutman
2020-05-07 19:54:36 -07:00
parent 350c7d7081
commit dc3c565ec0
5 changed files with 58 additions and 38 deletions
+1 -21
View File
@@ -1,6 +1,7 @@
#pragma once
#include "identitymanager.h"
#include "nvapp.h"
#include <Limelight.h>
@@ -8,27 +9,6 @@
#include <QNetworkAccessManager>
#include <QNetworkReply>
class NvApp
{
public:
bool operator==(const NvApp& other) const
{
return id == other.id;
}
bool isInitialized()
{
return id != 0 && !name.isEmpty();
}
int id;
QString name;
bool hdrSupported;
bool isAppCollectorGame;
};
Q_DECLARE_METATYPE(NvApp)
class NvDisplayMode
{
public: