| Home · All Classes · Annotated · Functions |
The QCopEnvelope class encapsulates and sends QCop messages over QCopChannels. More...
#include <QCopEnvelope>
Inherits QDataStream.
The QCopEnvelope class encapsulates and sends QCop messages over QCopChannels.
QCop messages allow applications to communicate with each other by sending messages using QCopEnvelope and receivng messages by connecting to a QCopChannel.
To send a message, use the following protocol:
QCopEnvelope e(channelname, messagename);
e << parameter1 << parameter2 << ...;
For messages without parameters, simply use:
QCopEnvelope e(channelname, messagename);
where:
Note: Do not try to simplify this further as it may confuse some compilers.
To receive a message either:
myChannel = new QCopChannel( "QPE/FooBar", this );
connect( myChannel, SIGNAL(received(const QString&,const QByteArray&)),
this, SLOT(fooBarMessage(const QString&,const QByteArray&)) );
See also: QCop Messages and Services.
Constructs a QCopEnvelope to write message to channel. If message has parameters then use operator<<() to add the parameters to the envelope.
Writes the message and then destroys the QCopEnvelope.
| Copyright © 2006 Trolltech | Trademarks | Qtopia 4.1.7 |