You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
582 B
C
31 lines
582 B
C
1 year ago
|
#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
|