mirror of
https://github.com/riuson/lcd-image-converter.git
synced 2026-03-06 16:17:00 +01:00
28 lines
981 B
C++
28 lines
981 B
C++
#include "statusdata.h"
|
|
//-----------------------------------------------------------------------------
|
|
StatusData::StatusData(QObject *parent) :
|
|
QObject(parent)
|
|
{
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
const QList<StatusData::StatusType> StatusData::keys() const
|
|
{
|
|
return this->mData.keys();
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
const QVariant StatusData::data(const StatusType key) const
|
|
{
|
|
return this->mData.value(key, QString());
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
void StatusData::setData(const StatusType key, const QVariant &value)
|
|
{
|
|
this->mData.insert(key, value);
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
void StatusData::removeData(const StatusData::StatusType key)
|
|
{
|
|
this->mData.remove(key);
|
|
}
|
|
//-----------------------------------------------------------------------------
|