![]() |
Home · All Classes · All Functions · | ![]() |
The QServiceContext class provides context information to services. More...
#include <QServiceContext>
Inherits QObject.
The 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.
This enum describes the type of context information.
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:
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:
Constrcuts a service context with the given parent.
Destroys the service context object.
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.
Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.1 |