10 List::List(QObject *parent) : QObject(parent) {
14 QVariantList List::webStatus()
const {
16 QHashIterator<QString, Item *> iterator(m_items);
17 while (iterator.hasNext()) {
33 return m_items.contains(
id);
38 return m_items.value(
id, NULL);
QVariantMap webStatus() const
Returns webStatus of the item.
Item * item(const QString &id) const
Returns pointer to an item with given id or NULL if the item does not exist.
One data item in the example.
bool contains(const QString &id) const
Returns true if item with the given id exists.
const QString & id() const
Returns id of the item.
void statusChanged(const Item *)
Signal is invoked when some item status changed.
void insert(Item *)
Insert one item to the list.