update// reformated datastore and changed storage chatmodel to store with datastore
This commit is contained in:
@@ -15,17 +15,7 @@ class SietchDataStore
|
||||
}
|
||||
|
||||
public:
|
||||
static SietchDataStore* getInstance()
|
||||
{
|
||||
if(!SietchDataStore::instanced)
|
||||
{
|
||||
SietchDataStore::instanced = true;
|
||||
SietchDataStore::instance = new SietchDataStore();
|
||||
}
|
||||
|
||||
return SietchDataStore::instance;
|
||||
}
|
||||
|
||||
static SietchDataStore* getInstance();
|
||||
void clear();
|
||||
void setData(QString key, QString value);
|
||||
QString getData(QString key);
|
||||
@@ -38,27 +28,4 @@ class SietchDataStore
|
||||
}
|
||||
};
|
||||
|
||||
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;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user