QIviSearchAndBrowseModelItem Class

The QIviSearchAndBrowseModelItem is the base class of a row in the QIviSearchAndBrowseModel model. More...

Header: #include <QIviSearchAndBrowseModelItem>
qmake: QT += ivicore
Instantiated By: SearchAndBrowseModelItem
Inherited By:

QIviPlayableItem and QIviTunerStation

Properties

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

Public Functions

QIviSearchAndBrowseModelItem()
QIviSearchAndBrowseModelItem(const QIviSearchAndBrowseModelItem &)
virtual ~QIviSearchAndBrowseModelItem()
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 QIviSearchAndBrowseModelItem &other)
QIviSearchAndBrowseModelItem &operator=(const QIviSearchAndBrowseModelItem &)
bool operator==(const QIviSearchAndBrowseModelItem &other)

Detailed Description

The QIviSearchAndBrowseModelItem is the base class of a row in the QIviSearchAndBrowseModel model.

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

QIviSearchAndBrowseModelItem::QIviSearchAndBrowseModelItem()

Default constructs an instance of QIviSearchAndBrowseModelItem.

QIviSearchAndBrowseModelItem::QIviSearchAndBrowseModelItem(const QIviSearchAndBrowseModelItem &)

Copy constructor.

[virtual] QIviSearchAndBrowseModelItem::~QIviSearchAndBrowseModelItem()

Destroys the instance of QIviSearchAndBrowseModelItem. The destructor is virtual.

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

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

See also operator==().

QIviSearchAndBrowseModelItem &QIviSearchAndBrowseModelItem::operator=(const QIviSearchAndBrowseModelItem &)

Copy-assignment operator.

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

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

See also operator!=().

© 2018 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.