mirror of
https://github.com/riuson/lcd-image-converter.git
synced 2026-03-15 12:37:02 +01:00
30 lines
899 B
C++
30 lines
899 B
C++
#include "statusdata.h"
|
|
//-----------------------------------------------------------------------------
|
|
StatusData::StatusData(QObject *parent) :
|
|
QObject(parent)
|
|
{
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
const QList<StatusData::StatusType> StatusData::keys() const
|
|
{
|
|
return this->mData.keys();
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
const QString StatusData::data(const StatusType key) const
|
|
{
|
|
return this->mData.value(key, QString());
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
void StatusData::setData(const StatusType key, const QString &value)
|
|
{
|
|
if (value.isEmpty())
|
|
{
|
|
this->mData.remove(key);
|
|
}
|
|
else
|
|
{
|
|
this->mData.insert(key, value);
|
|
}
|
|
}
|
|
//-----------------------------------------------------------------------------
|