mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-16 08:17:58 +00:00
30 lines
470 B
C++
30 lines
470 B
C++
#pragma once
|
|
|
|
#include <QSettings>
|
|
|
|
class NvApp
|
|
{
|
|
public:
|
|
NvApp() {}
|
|
explicit NvApp(QSettings& settings);
|
|
|
|
bool operator==(const NvApp& other) const
|
|
{
|
|
return id == other.id;
|
|
}
|
|
|
|
bool isInitialized()
|
|
{
|
|
return id != 0 && !name.isEmpty();
|
|
}
|
|
|
|
void
|
|
serialize(QSettings& settings) const;
|
|
|
|
int id = 0;
|
|
QString name;
|
|
bool hdrSupported = false;
|
|
bool isAppCollectorGame = false;
|
|
};
|
|
|
|
Q_DECLARE_METATYPE(NvApp)
|