ServiceList QML Type

The ServiceList element holds a list of Service elements. More...

Import Statement: import

Properties

Detailed Description

The ServiceList element is part of the Qt ServiceFramework API and provides a list of Service elements at the interface ServiceList::interfaceName with minimum version match ServiceList::minVersion properties. This list can be used to select the desired service and instantiate a service object for access via the QMetaObject.

This element is a simplified reflection of the QServiceFilter class that provides a list of simplified QServiceInterfaceDescriptors. Similarly, if the ServiceList::serviceName and ServiceList::versionMatch are not provided they will respectively default to an empty string with a minimum verison match.

See also Service.

Property Documentation

interfaceName : QString

This property holds the interface name of the services that corresponds to setting QServiceFilter::setInterface().


majorVersion : int

This property holds the major version number of the service filter that corresponds to QServiceFilter::majorVersion().


minorVersion : int

This property holds the minor version number of the service filter that corresponds to QServiceFilter::minorVersion().


monitorServiceRegistrations : int

This property controls the behaviour of the list when new services are registered or deregistered. Setting this property to true means the list will be automatically updated when a service is added or removed. Caution, your service object will be deleted if the service is unregistered, even if the service is still running.


serviceName : QString

This property holds the interface name of the services that corresponds to setting QServiceFilter::setService().


services : QQmlListProperty

This property holds the list of Service elements that match the Service::interfaceName and minimum Service::versionNumber properties.


versionMatch : enumeration

This property holds the version match rule of the service filter that corresponds to QServiceFilter::versionMatchRule(). Within QML the values ServiceList.Exact and ServiceList.Minimum correspond to QServiceFilter::ExactVersionMatch and QServiceFilter::MinimumVersionMatch respectively.