2020-05-08 02:54:36 +00:00
|
|
|
#include "nvapp.h"
|
|
|
|
|
|
|
|
#define SER_APPNAME "name"
|
|
|
|
#define SER_APPID "id"
|
|
|
|
#define SER_APPHDR "hdr"
|
|
|
|
#define SER_APPCOLLECTOR "appcollector"
|
2020-08-02 04:06:01 +00:00
|
|
|
#define SER_HIDDEN "hidden"
|
2020-11-24 03:38:22 +00:00
|
|
|
#define SER_DIRECTLAUNCH "directlaunch"
|
2020-05-08 02:54:36 +00:00
|
|
|
|
|
|
|
NvApp::NvApp(QSettings& settings)
|
|
|
|
{
|
|
|
|
name = settings.value(SER_APPNAME).toString();
|
|
|
|
id = settings.value(SER_APPID).toInt();
|
|
|
|
hdrSupported = settings.value(SER_APPHDR).toBool();
|
|
|
|
isAppCollectorGame = settings.value(SER_APPCOLLECTOR).toBool();
|
2020-08-02 04:06:01 +00:00
|
|
|
hidden = settings.value(SER_HIDDEN).toBool();
|
2020-11-24 03:38:22 +00:00
|
|
|
directLaunch = settings.value(SER_DIRECTLAUNCH).toBool();
|
2020-05-08 02:54:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void NvApp::serialize(QSettings& settings) const
|
|
|
|
{
|
|
|
|
settings.setValue(SER_APPNAME, name);
|
|
|
|
settings.setValue(SER_APPID, id);
|
|
|
|
settings.setValue(SER_APPHDR, hdrSupported);
|
|
|
|
settings.setValue(SER_APPCOLLECTOR, isAppCollectorGame);
|
2020-08-02 04:06:01 +00:00
|
|
|
settings.setValue(SER_HIDDEN, hidden);
|
2020-11-24 03:38:22 +00:00
|
|
|
settings.setValue(SER_DIRECTLAUNCH, directLaunch);
|
2020-05-08 02:54:36 +00:00
|
|
|
}
|