QtIviCoreModule Class

The QtIviCoreModule class holds enums which are used by multiple classes of QtIviCore. More...

Header: #include <QtIviCoreModule>
qmake: QT += ivicore
Inherits: QObject

Public Types

flags ModelCapabilities
enum ModelCapability { NoExtras, SupportsGetSize, SupportsFiltering, SupportsSorting, SupportsAndConjunction, …, SupportsRemove }

Static Public Members

void registerQmlTypes(const QString &uri, int majorVersion = 1, int minorVersion = 0)
void registerTypes()

Detailed Description

Member Type Documentation

enum QtIviCoreModule::ModelCapability
flags QtIviCoreModule::ModelCapabilities

ConstantValueDescription
QtIviCoreModule::NoExtras0x0The backend does only support the minimum feature set and is stateful.
QtIviCoreModule::SupportsGetSize0x1The backend can return the final number of items for a specific request. This makes it possible to support the QIviSearchAndBrowseModel::DataChanged loading type.
QtIviCoreModule::SupportsFiltering0x2The backend supports filtering of the content. QIviSearchAndBrowseModelInterface::availableContentTypes() and QIviSearchAndBrowseModelInterface::supportedIdentifiers() will be used as input for the Qt IVI Query Language.
QtIviCoreModule::SupportsSorting0x4The backend supports sorting of the content. QIviSearchAndBrowseModelInterface::availableContentTypes() and QIviSearchAndBrowseModelInterface::supportedIdentifiers() will be used as input for the Qt IVI Query Language.
QtIviCoreModule::SupportsAndConjunction0x8The backend supports handling multiple filters at the same time and these filters can be combined by using the AND conjunction.
QtIviCoreModule::SupportsOrConjunction0x10The backend supports handling multiple filters at the same time and these filters can be combined by using the OR conjunction.
QtIviCoreModule::SupportsStatelessNavigation0x20The backend is stateless and supports handling multiple instances of a QIviSearchAndBrowseModel requesting different data at the same time. E.g. One request for artists, sorted by name and another request for tracks. The backend has to consider that both request come from models which are currently visible at the same time.
QtIviCoreModule::SupportsInsert0x40The backend supports inserting new items at a given position.
QtIviCoreModule::SupportsMove0x80The backend supports moving items within the model.
QtIviCoreModule::SupportsRemove0x100The backend supports removing items from the model.

The ModelCapabilities type is a typedef for QFlags<ModelCapability>. It stores an OR combination of ModelCapability values.

See also QIviSearchAndBrowseModelInterface::registerContentType and QIviSearchAndBrowseModelInterface::registerContentType.

Member Function Documentation

[static] void QtIviCoreModule::registerQmlTypes(const QString &uri, int majorVersion = 1, int minorVersion = 0)

Registers this class as a QML singleton API to make all enums available to QML.

The arguments uri, majorVersion and minorVersion are forwarded to qmlRegisterSingletonType()

[static] void QtIviCoreModule::registerTypes()

Registers all enums in this class in the Qt MetaType system

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