QtIviCoreModule Class
The QtIviCoreModule class holds enums which are used by multiple classes of QtIviCore and provides convenience functions to register types to QML. More...
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() |
Member Type Documentation
enum QtIviCoreModule::ModelCapability
flags QtIviCoreModule::ModelCapabilities
Constant | Value | Description |
---|---|---|
QtIviCoreModule::NoExtras | 0x0 | The backend does only support the minimum feature set and is stateful. |
QtIviCoreModule::SupportsGetSize | 0x1 | The backend can return the final number of items for a specific request. This makes it possible to support the QIviSearchAndBrowseModel::DataChanged loading type. |
QtIviCoreModule::SupportsFiltering | 0x2 | The backend supports filtering of the content. QIviSearchAndBrowseModelInterface::availableContentTypesChanged() and QIviSearchAndBrowseModelInterface::queryIdentifiersChanged() will be used as input for the Qt IVI Query Language. |
QtIviCoreModule::SupportsSorting | 0x4 | The backend supports sorting of the content. QIviSearchAndBrowseModelInterface::availableContentTypesChanged() and QIviSearchAndBrowseModelInterface::queryIdentifiersChanged() will be used as input for the Qt IVI Query Language. |
QtIviCoreModule::SupportsAndConjunction | 0x8 | The backend supports handling multiple filters at the same time and these filters can be combined by using the AND conjunction. |
QtIviCoreModule::SupportsOrConjunction | 0x10 | The backend supports handling multiple filters at the same time and these filters can be combined by using the OR conjunction. |
QtIviCoreModule::SupportsStatelessNavigation | 0x20 | The 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::SupportsInsert | 0x40 | The backend supports inserting new items at a given position. |
QtIviCoreModule::SupportsMove | 0x80 | The backend supports moving items within the model. |
QtIviCoreModule::SupportsRemove | 0x100 | The backend supports removing items from the model. |
The ModelCapabilities type is a typedef for QFlags<ModelCapability>. It stores an OR combination of ModelCapability values.
Member Function Documentation
[static]
void QtIviCoreModule::registerQmlTypes(const QString &uri, int majorVersion = 1, int minorVersion = 0)
Registers the QtIviCore classes to the QML System in the library imported from uri having the version number composed from majorVersion and minorVersion.
[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.