QServiceContext Class ReferenceThe QServiceContext class provides context information to services. More... #include <QServiceContext> Inherits: QObject. This class was introduced in Qt Mobility 1.0. Public Types
Properties
Public Functions
Additional Inherited Members
Detailed DescriptionThe QServiceContext class provides context information to services. A service context is created by clients and passed on to the service. It enables the opportunity to pass additional context information and errors between services, clients and the service framework. Clients must implement this abstract class to receive context information. See also QServiceManager. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QServiceContext::DisplayContext | 0 | The service provides user visible display text such as an error message. |
QServiceContext::ScriptContext | 1 | The service provides a script which may be executed by the client. |
QServiceContext::UserDefined | 100 | The first context type that can be used for service specific context information. |
This property holds the id of the client using the service.
By default, this value is empty but you can change this by calling setClientId().
This property was introduced in Qt Mobility 1.0.
Access functions:
QString | clientId () const |
void | setClientId ( const QString & id ) |
This property holds the name of the client using the service.
By default, this value is empty but you can change this by calling setClientName(). This string is translated and can be shown to the user.
This property was introduced in Qt Mobility 1.0.
Access functions:
QString | clientName () const |
void | setClientName ( const QString & name ) |
Constructs a service context with the given parent.
Destroys the service context object.
Returns the client data associated to key.
This function was introduced in Qt Mobility 1.1.
See also setClientData() and resetClientData().
Services may call this function to notify the service client about service related context information of the given type. The contextual information is stored in data.
This function was introduced in Qt Mobility 1.0.
Deletes all client data associated to the service context.
This function was introduced in Qt Mobility 1.1.
See also clientData() and setClientData().
Attaches arbitrary data value to the context object. The value can be retrieved via key.
This function was introduced in Qt Mobility 1.1.
See also clientData() and resetClientData().
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.2 | |
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