QIviStandardItem Class

The QIviStandardItem is the base class of a row in the QIviPagingModel model and derived models. More...

Header: #include <QIviStandardItem>
qmake: QT += ivicore
Instantiated By: StandardItem
Inherited By:

QIviPlayableItem and QIviTunerStation

Properties

  • data : QVariantMap
  • id : QString
  • name : const QString
  • type : const QString

Public Functions

virtual QVariantMap data() const
virtual QString id() const
virtual QString name() const
virtual void setData(const QVariantMap &data)
virtual void setId(const QString &id)
virtual QString type() const
bool operator!=(const QIviStandardItem &other)
bool operator==(const QIviStandardItem &other)

Detailed Description

Property Documentation

data : QVariantMap

A generic data field which can hold any data.

This can be moved for storing additional data which is not part of the base class. E.g. the "composer" of an audio track.

Access functions:

virtual QVariantMap data() const
virtual void setData(const QVariantMap &data)

id : QString

A unique identifier, which can be used to identify this item.

This is mainly used by the backend to implement filtering or browsing.

Access functions:

virtual QString id() const
virtual void setId(const QString &id)

name : const QString

The name of the item. E.g. The name of a contact in a addressbook, or the artist-name in a list of artists.

Access functions:

virtual QString name() const

type : const QString

The type of the item. E.g. "artist", "track", "contact".

Access functions:

virtual QString type() const

Member Function Documentation

bool QIviStandardItem::operator!=(const QIviStandardItem &other)

Returns true if this item is not equal to other; otherwise returns false.

See also operator==().

bool QIviStandardItem::operator==(const QIviStandardItem &other)

Returns true if this item is equal to other; otherwise returns false.

See also operator!=().

© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.