⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qcop.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/doc/qcop.doc:1 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Qtopia QCop Messages</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>Qtopia QCop Messages</h1><p> <p> Contents<!-- toc --><ul><li><a href="#1"> Introduction</a><li><a href="#2"> The System-wide Channels and Messages.</a><ul><li><a href="#2-1"> QPE/System</a><li><a href="#2-2"> QPE/TaskBar</a><li><a href="#2-3"> QPE/Card</a><li><a href="#2-4"> QPE/Network</a><li><a href="#2-5"> Qt/Tray</a></ul><li><a href="#3"> The Application Channel</a></ul><!-- endtoc --><p> <h2> Introduction</h2><a name="1"></a><p> QCop messages allow applications to communicate with each other.These messages are sent using <a href="qcopenvelope.html">QCopEnvelope</a>, and received by connectingto a QCopChannel.<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> The variable names shown in this documentation are purely forinformation purposes. A message shown as <em>messageName(Type1 varname1, Type2 varname2, Type2 varname3)</em> would be used in programcode as:<p> <pre>   <a href="qcopenvelope.html">QCopEnvelope</a> e(channelname, "messageName(Type1,Type2,Type2)");   e &lt;&lt; parameter1 &lt;&lt; parameter2 &lt;&lt; parameter3;</pre> <p> Hint: The QCop message system uses the event-processing loop. So if you create a QCop message it will not be send until the next qApp::processEvents.<p> <h2> The System-wide Channels and Messages.</h2><a name="2"></a><p> <h3> QPE/System</h3><a name="2-1"></a><p> <ul><li> busy() -- Causes a wait indicator to be shown to the user.<li> notBusy() -- Cancels the wait indicator.<li> linkChanged(QString) -- Sent whenever a link is changed. It is sentby <a href="filemanager.html#saveFile">FileManager::saveFile</a>() and others, and received by the Launcher.<li> applyStyle() -- Sent when user changes style. It is received by<a href="qpeapplication.html">QPEApplication</a> and the application will redraw accordingly.<li> quit() -- Terminates the Qtopia environment.<li> shutdown() -- Terminates the system.<li> restart() -- Restarts the Qtopia environment.<li> execute(QString) -- Executes or raises the given application.<li> execute(QString,QString) -- Executes or raises the givenapplication, passing an argument. Note that you should considerusing the <b>QPE/Application/<em>appname</em></b> channels describedbelow.<li> setMouseProto(QString) -- Changes $QWS_MOUSE_PROTO dynamically.<li> setKeyboard(QString) -- Changes $QWS_KEYBOARD dynamically.<li> addAlarm(QDateTime,QCString,QCString,int) -- Internal. See<a href="alarmserver.html#addAlarm">AlarmServer::addAlarm</a>()<li> deleteAlarm(QDateTime,QCString,QCString,int) -- Internal. See<a href="alarmserver.html#deleteAlarm">AlarmServer::deleteAlarm</a>()<li> setDefaultRotation(int) -- Internal.<li> grabKeyboard(QString) -- Internal.<li> timeChange(QString) -- Internal.<li> clockChange(bool) -- Internal.<li> setScreenSaverInterval(int) -- Internal.<li> language(QString) -- Internal.<li> resetPowerTimeout(int) - Internal.</ul><p> <h3> QPE/TaskBar</h3><a name="2-2"></a><p> <ul><li> message(QString) -- Internal. See <a href="global.html#statusMessage">Global::statusMessage</a>()<li> showInputMethod() -- Internal.<li> hideInputMethod() -- Internal.<li> reloadInputMethods() -- Internal.<li> reloadApplets() -- Internal.</ul><p> <h3> QPE/Card</h3><a name="2-3"></a><p> <ul><li> mtabChanged() -- Sent when <tt>/etc/mtab</tt> may have changed.<li> stabChanged() -- Sent when <tt>/var/run/stab</tt>,<tt>/var/state/pcmcia/stab</tt>, or <tt>/var/lib/pcmcia/stab</tt> may havechanged.</ul><p> <h3> QPE/Network</h3><a name="2-4"></a><p> <ul><li> up() -- Sent when a network connection is running.<li> down() -- Sent when a running network connection is closed.<li> failed() -- Sent when a network connection failed to start.<li> available(QStringList) -- Sent whenever the available network connectionsmay have changed, or in a response to an announceChoices() message.<li> announceChoices() -- Forces the network monitor to send a list ofavailable connections.</ul><p> <h3> Qt/Tray</h3><a name="2-5"></a><p> This channel allows Qt applications (not just Qtopia applications) toshow system-tray status in a cross-platform manner, but it is notcurrently supported. See <a href="taskbarappletinterface.html">TaskbarAppletInterface</a> for a more powerfulalternative for system tray applications.<ul><li> popup(int,QPoint) - Sent<li> doubleClicked(int,QPoint)<li> clicked(int,QPoint)<li> remove(int)<li> setIcon(int,QPixmap)<li> setToolTip(int,QString)</ul><p> <h2> The Application Channel</h2><a name="3"></a><p> Each application listens on a channel called<b>QPE/Application/<em>appname</em></b>, where <b><em>appname</em></b> isthe executable name (the application identifier). Standard messages onthis channel are:<p> <b>QPE/Application/<em>appname</em></b><p> <ul><li> setDocument(QString) -- Internal. Causes the setDocument(constQString&) slot of <a href="docwidget.html">the main document   widget</a> to be called.<li> nextView() -- Applications connected to hardware buttons willreceive this message if they are already visible.<li> raise() -- Internal. Causes the the main document widget and thecurrent modal widget to be raised.<li> quit() -- Internal. Terminates the application.<li> quitIfInvisible() -- Internal. Terminates the application if it isnot shown.</ul><p> The <b>QPE/Application/<em>appname</em></b> channel has a specialproperty: when messages are sent to these channels via <a href="qcopenvelope.html">QCopEnvelope</a>,the message is delivered even if the application is not yet running(the application is run and the message is then sent).<p> <!-- eof --><p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright &copy; 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 + -