QServiceInterfaceDescriptor Class ReferenceThe QServiceInterfaceDescriptor class identifies a service implementation. More... #include <QServiceInterfaceDescriptor> Public Types
Public Functions
Related Non-Members
Detailed DescriptionThe QServiceInterfaceDescriptor class identifies a service implementation. A service can implement multiple interfaces and each interface can have multiple implementations. The QServiceInterfaceDescriptor class enscapsulates this information, as illustrated by the diagram below. The major version tag indicates the interface version and the minor version tag identifies the implementation version. Subsequent versions of the same interface must be binary compatible to previous versions of the same interface. In the above example service A and B implement the interface com.nokia.qt.x. In fact Service A provides two different implementations for the very same interface. This is indicated by the changed minor version number. Although Service B is using the same interface it's implementation actually utilizes the second version of the interface com.nokia.qt.x. Binary compatibility guarantees that clients who know version 1 can utilize version 2. If an existing interface has to be changed in a non-compatible way a new interface (name) is required. NamespacesA QServiceInterfaceDescriptor (the quadruble of service name, interface name, interface version and implementation version) uniquely identifies a service implementation on a device. Interface names follow the java namespace convention. The namespace com.nokia.qt.* is reserved for future Qt development. See also QServiceFilter and QServiceManager. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QServiceInterfaceDescriptor::Capabilities | 0 | The capabilities property is a QStringList and describes the capabilities that a service client would require to use the service if capability checks are enforced. |
QServiceInterfaceDescriptor::Location | 1 | This property points to the location where the plug-in providing this service is stored. If the service is plug-in based the location is the name and/or path of the plugin. |
QServiceInterfaceDescriptor::ServiceDescription | 2 | This property provides a general description for the service. |
QServiceInterfaceDescriptor::InterfaceDescription | 3 | This property provides a description for the interface implementation. |
Creates a new QServiceInterfaceDescriptor.
Creates a copy of QServiceInterfaceDescriptor contained in other.
Destroys the QServiceInterfaceDescriptor object.
Returns the value for the custom property key; otherwise returns a null string.
Returns a list of names of the custom properties.
Returns true if this implementation is provided for all users on the system.
See also QServiceManager::Scope.
Returns the name of the interface that is implemented.
Returns true if this descriptor is valid; otherwise returns false.
Returns the version of the interface.
Subsequent versions of an interface are binary compatible to previous versions of the same interface. If an interface is broken it must use a new interface name.
Returns the version of the implementation.
Returns the value for the property key; otherwise returns an invalid QVariant.
Returns the name of service that provides this implementation.
Compares a QServiceInterfaceDescriptor to other. Returns true if they are not equal and false otherwise.
Copies the content of the QServiceInterfaceDescriptor object contained in other into this one.
Compares a QServiceInterfaceDescriptor to other. Returns true if they are equal and false otherwise.
Writes service interface descriptor dc to the stream out and returns a reference to the stream.
Reads a service interface descriptor into dc from the stream in and returns a reference to the stream.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtmobility-1.0-tp | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com