servicerequest.html
来自「qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人」· HTML 代码 · 共 159 行
HTML
159 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia1/services.cpp:66 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>ServiceRequest 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>ServiceRequest Class Reference</h1><p>The ServiceRequest class allows applications to request services fromother applications.<a href="#details">More...</a><p><tt>#include <<a href="services-h.html">services.h</a>></tt><p><a href="servicerequest-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#ServiceRequest"><b>ServiceRequest</b></a> ()</div></li><li><div class=fn><a href="#ServiceRequest-2"><b>ServiceRequest</b></a> ( const QString & service, const QCString & message )</div></li><li><div class=fn><a href="#ServiceRequest-3"><b>ServiceRequest</b></a> ( const ServiceRequest & orig )</div></li><li><div class=fn><a href="#~ServiceRequest"><b>~ServiceRequest</b></a> ()</div></li><li><div class=fn>bool <a href="#send"><b>send</b></a> () const</div></li><li><div class=fn>bool <a href="#isNull"><b>isNull</b></a> () const</div></li><li><div class=fn>void <a href="#setService"><b>setService</b></a> ( const QString & service )</div></li><li><div class=fn>QString <b>service</b> () const</div></li><li><div class=fn>QStrList <a href="#channels"><b>channels</b></a> ( bool automatics = TRUE ) const</div></li><li><div class=fn>QCString <a href="#channel"><b>channel</b></a> ( const QString & appname = QString::null, bool automatics = TRUE ) const</div></li><li><div class=fn>QStringList <a href="#apps"><b>apps</b></a> ( bool automatics = TRUE ) const</div></li><li><div class=fn>QString <a href="#app"><b>app</b></a> ( const QString & appname = QString::null, bool automatics = TRUE ) const</div></li><li><div class=fn>void <a href="#setMessage"><b>setMessage</b></a> ( const QCString & message )</div></li><li><div class=fn>QCString <a href="#message"><b>message</b></a> () const</div></li><li><div class=fn>const QByteArray <a href="#data"><b>data</b></a> () const</div></li><li><div class=fn>ServiceRequest & <a href="#operator-eq"><b>operator=</b></a> ( const ServiceRequest & orig )</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2><p> The ServiceRequest class allows applications to request services fromother applications.<p> <p> A ServiceRequest encapsulates a <a href="service.html">Service</a> and the message to be sent tothat service. It is similar to a <a href="qcopenvelope.html">QCopEnvelope</a>, but uses service namesrather than direct application names.<p> Since ServiceRequest inherits QDataStream, you can write data to therequest before sending it with <a href="#send">send</a>().<p> First availability: Qtopia 1.6<p> <p>See also <a href="service.html">Service</a> and <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="ServiceRequest"></a>ServiceRequest::ServiceRequest ()</h3>Construct a null service request. You will need to call<a href="#setService">setService</a>() and <a href="#setMessage">setMessage</a>() before <a href="#send">send</a>(), but youmay write to the service beforehand.<h3 class=fn><a name="ServiceRequest-2"></a>ServiceRequest::ServiceRequest ( const QString & service, const QCString & message )</h3>Construct a service request that will send <em>message</em> toa <em>service</em> when you call <a href="#send">send</a>(). Youmay write to the service beforehand.<h3 class=fn><a name="ServiceRequest-3"></a>ServiceRequest::ServiceRequest ( const <a href="servicerequest.html">ServiceRequest</a> & orig )</h3>Copy constructor. Any data previously written to the <em>orig</em>service will be in the copy.<h3 class=fn><a name="~ServiceRequest"></a>ServiceRequest::~ServiceRequest ()</h3>Destructs the service request. Unlike <a href="qcopenvelope.html">QCopEnvelope</a>, therequest is NOT automatically sent.<h3 class=fn>QString <a name="app"></a>ServiceRequest::app ( const QString & appname = QString::null, bool automatics = TRUE ) const</h3>See <a href="service.html#app">Service::app</a>(..., <em>appname</em>, <em>automatics</em>).<h3 class=fn>QStringList <a name="apps"></a>ServiceRequest::apps ( bool automatics = TRUE ) const</h3>See <a href="service.html#apps">Service::apps</a>(..., <em>automatics</em>).<h3 class=fn>QCString <a name="channel"></a>ServiceRequest::channel ( const QString & appname = QString::null, bool automatics = TRUE ) const</h3>See <a href="service.html#channel">Service::channel</a>(..., <em>appname</em>, <em>automatics</em>).<h3 class=fn>QStrList <a name="channels"></a>ServiceRequest::channels ( bool automatics = TRUE ) const</h3>See <a href="service.html#channels">Service::channels</a>(<em>automatics</em>).<h3 class=fn>const QByteArray <a name="data"></a>ServiceRequest::data () const</h3>Returns the current stored data. Before you modify the returned value,you must call QArray::detach().<h3 class=fn>bool <a name="isNull"></a>ServiceRequest::isNull () const</h3>Returns TRUE if either the service or message is not set.<h3 class=fn>QCString <a name="message"></a>ServiceRequest::message () const</h3><p> Returns the message of the request.<p> <p>See also <a href="#setMessage">setMessage</a>().<h3 class=fn><a href="servicerequest.html">ServiceRequest</a> & <a name="operator-eq"></a>ServiceRequest::operator= ( const <a href="servicerequest.html">ServiceRequest</a> & orig )</h3>Assignment operator.Any data previously written to the <em>orig</em>service will be in the copy.<h3 class=fn>bool <a name="send"></a>ServiceRequest::send () const</h3>Sends the request. Returns FALSE if the request was null.<h3 class=fn>void <a name="setMessage"></a>ServiceRequest::setMessage ( const QCString & message )</h3>Sets the <em>message</em> to be sent to the service.<h3 class=fn>void <a name="setService"></a>ServiceRequest::setService ( const QString & service )</h3>Sets the <em>service</em> to which the request will be sent.<!-- 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 + =
减小字号Ctrl + -
显示快捷键?