quest-wizard/qw_globalmetadata.h

31 lines
582 B
C
Raw Normal View History

2023-02-09 08:41:24 -05:00
#ifndef GLOBALMETADATA_H
#define GLOBALMETADATA_H
#include <QVariant>
/* QWGlobalMetadata
* Provides config options and metadata for all application classes. */
class QJsonObject;
class QString;
class QWGlobalMetadata final
{
private:
static QJsonObject config;
public:
explicit QWGlobalMetadata() = delete;
~QWGlobalMetadata() = delete;
static void load();
static void save();
////////////////////////
static QVariant valueBy(QString &&key);
static void setValue(QString &&key, const QVariant &val) noexcept;
};
#endif // GLOBALMETADATA_H