Files
lcd-image-converter/classes/status/statusdata.cpp
2013-01-18 17:43:37 +06:00

30 lines
1.0 KiB
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);
emit this->changed();
}
//-----------------------------------------------------------------------------
void StatusData::removeData(const StatusData::StatusType key)
{
this->mData.remove(key);
emit this->changed();
}
//-----------------------------------------------------------------------------