QtInterfaceFrameworkModule Class

The QtInterfaceFrameworkModule class holds enums which are used by multiple classes of QtInterfaceFramework and provides convenience functions to register types to QML. More...

Header: #include <QtInterfaceFrameworkModule>
qmake: QT += interfaceframework
In QML: QtInterfaceFramework
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 QtInterfaceFrameworkModule::ModelCapability
flags QtInterfaceFrameworkModule::ModelCapabilities

ConstantValueDescription
QtInterfaceFrameworkModule::NoExtras0x0The backend does only support the minimum feature set and is stateful.
QtInterfaceFrameworkModule::SupportsGetSize0x1The backend can return the final number of items for a specific request. This makes it possible to support the QIfFilterAndBrowseModel::DataChanged loading type.
QtInterfaceFrameworkModule::SupportsFiltering0x2The backend supports filtering of the content. QIfFilterAndBrowseModelInterface::availableContentTypesChanged() and QIfFilterAndBrowseModelInterface::queryIdentifiersChanged() will be used as input for the Qt Interface Framework Query Language.
QtInterfaceFrameworkModule::SupportsSorting0x4The backend supports sorting of the content. QIfFilterAndBrowseModelInterface::availableContentTypesChanged() and QIfFilterAndBrowseModelInterface::queryIdentifiersChanged() will be used as input for the Qt Interface Framework Query Language.
QtInterfaceFrameworkModule::SupportsAndConjunction0x8The backend supports handling multiple filters at the same time and these filters can be combined by using the AND conjunction.
QtInterfaceFrameworkModule::SupportsOrConjunction0x10The backend supports handling multiple filters at the same time and these filters can be combined by using the OR conjunction.
QtInterfaceFrameworkModule::SupportsStatelessNavigation0x20The backend is stateless and supports handling multiple instances of a QIfFilterAndBrowseModel 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.
QtInterfaceFrameworkModule::SupportsInsert0x40The backend supports inserting new items at a given position.
QtInterfaceFrameworkModule::SupportsMove0x80The backend supports moving items within the model.
QtInterfaceFrameworkModule::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.

Member Function Documentation

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

Registers the QtInterfaceFramework classes to the QML System in the library imported from uri having the version number composed from majorVersion and minorVersion.

[static] void QtInterfaceFrameworkModule::registerTypes()

Registers all enums in this class in the Qt MetaType system

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