📄 qcopenvelope.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia/qcopenvelope_qws.cpp:43 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>QCopEnvelope Class</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200" align="left" valign="top"><a href="index.html"><img height="27" width="472" src="dochead.png" border="0"></a><br><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qtopia</font> <a href="index.html">Home</a> - <a href="qtopiaclasses.html">Classes</a> - <a href="qtopiaannotated.html">Annotated</a> - <a href="qtopiafunctions.html">Functions</a> - <a href="qtindex.html">Qt Embedded</a></td><td align="right" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="137"> <tr> <td><a href="http://www.trolltech.com/company/about/trolls.html"><img height="100" width="100" src="face.png" border="0"></a></td> <td><img height="100" width="100" src="qtlogo.png" align="top" border="0"></td> </tr> </table></td></tr></table><h1 align=center>QCopEnvelope Class Reference</h1><p>The QCopEnvelope class encapsulates and sends QCop messagesover QCopChannels.<a href="#details">More...</a><p><tt>#include <<a href="qcopenvelope_qws-h.html">qcopenvelope_qws.h</a>></tt><p><a href="qcopenvelope-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#QCopEnvelope"><b>QCopEnvelope</b></a> ( const QCString & channel, const QCString & message )</div></li><li><div class=fn><a href="#~QCopEnvelope"><b>~QCopEnvelope</b></a> ()</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The QCopEnvelope class encapsulates and sends QCop messagesover QCopChannels.<p> QCop messages allow applications to communicate with each other.These messages are sent using QCopEnvelope, and received by connectingto a QCopChannel.<p> To send a message, use the following protocol:<p> <pre> QCopEnvelope e(channelname, messagename); e << parameter1 << parameter2 << ...; </pre> <p> For messages without parameters, simply use:<p> <pre> QCopEnvelope e(channelname, messagename); </pre> <p> (Do not try to simplify this further as it may confuse somecompilers.)<p> The <tt>channelname</tt> of channels within Qtopia all start with "QPE/".The <tt>messagename</tt> is a function identifier followed by a list of typesin parentheses. There is no whitespace in the message name.<p> To receive a message, you will generally just use your application'spredefined QPE/Application/<em>appname</em> channel(see <a href="qpeapplication.html#appMessage">QPEApplication::appMessage</a>()), but you can make another channeland connect it to a slot like this:<p> <pre> myChannel = new QCopChannel( "QPE/FooBar", this ); connect( myChannel, SIGNAL(received(const QCString&,const QByteArray&)), this, SLOT(fooBarMessage(const QCString&,const QByteArray&)) ); </pre> <p> See also, the <a href="qcop.html">list of Qtopia messages</a>.<p> <p>See also <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="QCopEnvelope"></a>QCopEnvelope::QCopEnvelope ( const QCString & channel, const QCString & message )</h3>Constructs a QCopEnvelope that will write <em>message</em> to <em>channel</em>.If <em>message</em> has parameters, you must then use operator<<() toadd these parameters to the envelope.<h3 class=fn><a name="~QCopEnvelope"></a>QCopEnvelope::~QCopEnvelope ()</h3>Writes the message and then destroys the QCopEnvelope.<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright © 1995-2004<a href="http://www.trolltech.com/">Trolltech</a>, all rights reserved.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright © 2001-2004 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align="right"><div align="right">Qtopia version 2.0.0</div></table></div></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -