forked from lucretius/SilentDragonLite
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.
37 lines
736 B
37 lines
736 B
// Copyright 2019-2023 The Hush developers
|
|
// Released under the GPLv3
|
|
#include "SietchDataStore.h"
|
|
|
|
SietchDataStore* SietchDataStore::getInstance()
|
|
{
|
|
if(!SietchDataStore::instanced)
|
|
{
|
|
SietchDataStore::instanced = true;
|
|
SietchDataStore::instance = new SietchDataStore();
|
|
}
|
|
|
|
return SietchDataStore::instance;
|
|
}
|
|
|
|
void SietchDataStore::clear()
|
|
{
|
|
this->data.clear();
|
|
}
|
|
|
|
void SietchDataStore::setData(QString key, QString value)
|
|
{
|
|
this->data[key] = value;
|
|
}
|
|
|
|
QString SietchDataStore::getData(QString key)
|
|
{
|
|
return this->data[key];
|
|
}
|
|
|
|
QString SietchDataStore::dump()
|
|
{
|
|
return "";
|
|
}
|
|
|
|
SietchDataStore* SietchDataStore::instance = nullptr;
|
|
bool SietchDataStore::instanced = false;
|
|
|