Hush lite wallet
https://faq.hush.is/sdl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
702 B
33 lines
702 B
// Copyright 2019-2024 The Hush developers
|
|
// Released under the GPLv3
|
|
#ifndef SIETCHDATASTORE_H
|
|
#define SIETCHDATASTORE_H
|
|
|
|
using json = nlohmann::json;
|
|
|
|
class SietchDataStore
|
|
{
|
|
private:
|
|
static bool instanced;
|
|
static SietchDataStore* instance;
|
|
std::map<QString, QString> data;
|
|
SietchDataStore()
|
|
{
|
|
|
|
}
|
|
|
|
public:
|
|
static SietchDataStore* getInstance();
|
|
void clear();
|
|
void setData(QString key, QString value);
|
|
QString getData(QString key);
|
|
QString dump();
|
|
|
|
~SietchDataStore()
|
|
{
|
|
SietchDataStore::instanced = false;
|
|
SietchDataStore::instance = nullptr;
|
|
}
|
|
};
|
|
|
|
#endif
|
|
|