2020-05-08 02:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QSettings>
|
|
|
|
|
|
|
|
class NvApp
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NvApp() {}
|
|
|
|
explicit NvApp(QSettings& settings);
|
|
|
|
|
|
|
|
bool operator==(const NvApp& other) const
|
|
|
|
{
|
2020-08-02 04:06:01 +00:00
|
|
|
return id == other.id &&
|
|
|
|
name == other.name &&
|
|
|
|
hdrSupported == other.hdrSupported &&
|
|
|
|
isAppCollectorGame == other.isAppCollectorGame &&
|
2020-11-24 03:38:22 +00:00
|
|
|
hidden == other.hidden &&
|
|
|
|
directLaunch == other.directLaunch;
|
2020-08-02 04:06:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool operator!=(const NvApp& other) const
|
|
|
|
{
|
|
|
|
return !operator==(other);
|
2020-05-08 02:54:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool isInitialized()
|
|
|
|
{
|
|
|
|
return id != 0 && !name.isEmpty();
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
serialize(QSettings& settings) const;
|
|
|
|
|
|
|
|
int id = 0;
|
|
|
|
QString name;
|
|
|
|
bool hdrSupported = false;
|
|
|
|
bool isAppCollectorGame = false;
|
2020-08-02 04:06:01 +00:00
|
|
|
bool hidden = false;
|
2020-11-24 03:38:22 +00:00
|
|
|
bool directLaunch = false;
|
2020-05-08 02:54:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(NvApp)
|