Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QtopiaServiceRequest class allows applications to request services from other applications. More...
#include <QtopiaServiceRequest>
The QtopiaServiceRequest class allows applications to request services from other applications.
A QtopiaServiceRequest encapsulates a Qt Extended service name and the message to be sent to that service. It is similar to QtopiaIpcEnvelope, but uses service names rather than direct channel names. The following example sends the editTime() request to the Time service:
QtopiaServiceRequest req("Time", "editTime()"); req.send();
Parameter data may be written to the request prior to sending it with send(). The following example requests that the WebAccess service open a specific URL:
QtopiaServiceRequest req("WebAccess", "openURL(QString)");
req << "http://www.example.com/";
req.send();
Applications that implement services can use QtopiaAbstractService to process incoming service messages. See also {Services} for more information on implementing and configuring services.
See also Services, QtopiaService, and QtopiaAbstractService.
Construct a null service request. setService() and setMessage() must be called before send(), but the service may be written prior to the calls.
Construct a service request that will send message to a service when send() is called. The service may be written prior to the calls.
Copy constructor. Any data previously written to the orig service will be in the copy.
Destructs the service request. Unlike QtopiaIpcEnvelope, the request is not automatically sent.
Adds the variant var to the list of arguments, so that the variant's value is serialized in send() rather than the variant itself.
Returns the complete list of arguments for this service request.
See also setArguments().
Returns true if either the service() or message() is not set.
See also service() and message().
Returns the message of the request.
See also setMessage().
Sends the request. Returns false if there was no application that could service the request.
Returns the service to which this request will be sent.
See also setService().
Sets the complete list of arguments for this service request.
See also arguments().
Sets the message to be sent to the service.
See also message().
Sets the service to which the request will be sent.
See also service().
Adds var to the list of arguments for this service request.
This is an overloaded member function, provided for convenience.
Adds var to the list of arguments for this service request.
Assignment operator. Any data previously written to the orig service will be in the copy.
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |