Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QtopiaChannel class provides communication capabilities between clients. More...
#include <QtopiaChannel>
Inherits QObject.
The QtopiaChannel class provides communication capabilities between clients.
QtopiaChannel provides a many-to-many (broadcast) inter-process communication protocol. The messages transferred are identified by channel, message and message signature. A channel is identified by a name, and anyone who wants to can listen to it, restricted by an active security framework, if any. The QtopiaChannel protocol allows clients to communicate both within the same address space and between different processes.
There are currently two implementations for QtopiaChannel, one layered over the Qt QCop mechanism, and another one for DBus. QCop mechanism is currently only available on Qt for Embedded Linux.
Typically, QtopiaChannel is either used to send messages to a channel using the provided static functions, or to listen to the traffic on a channel by deriving from the class to take advantage of the provided functionality for receiving messages.
QtopiaChannel provides a couple of static functions which are usable without an object: The send() function, which sends the given message and data on the specified channel, and the isRegistered() function which queries the server for the existence of the given channel.
In addition, the QtopiaChannel class provides the channel() function which returns the name of the object's channel, and the received() signal which is emitted with the given message and data when a QtopiaChannel receives a message from its channel.
See also QtopiaAbstractService.
Constructs a QtopiaChannel with the given parent, and starts to listen on channel name.
See also isRegistered() and channel().
Destroys this QtopiaChannel instance.
Returns the name of the channel this object is listening on.
Flushes all pending messages destined from this channel, causing them to be sent immediately. Returns true if the flush succeeded; otherwise returns false.
Returns true if the channel is registered. In the QCop implementation, this function requires a round-trip to the QWS server, which may impact system performance.
This signal is emitted with the given message and data whenever the channel receives a message on the channel being listened on.
See also send().
Sends a message msg with no parameters on channel. Returns true if able to send the message; otherwise returns false.
See also received().
This is an overloaded member function, provided for convenience.
Sends a message msg on channel channel with the parameter data given by data. Returns true if able to send the message; otherwise returns false.
See also received().
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |