QServiceContext Class ReferenceThe QServiceContext class provides context information to services. More... #include <QServiceContext> Inherits QObject. 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().
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.
Access functions:
QString | clientName () const |
void | setClientName ( const QString & name ) |
Constrcuts a service context with the given parent.
Destroys the service context object.
Returns the client data associated to key.
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.
Deletes all client data associated to the service context.
See also clientData() and setClientData().
Attaches arbitrary data value to the context object. The value can be retrieved via key.
See also clientData() and resetClientData().
© 2008-2010 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy