📄 global.html
字号:
This is an application-specific word list.<p> <em>name</em> should not contain "/". If <em>name</em> startswith "_", it is a read-only system word list.<h3 class=fn>QByteArray <a name="decodeBase64"></a>Global::decodeBase64 ( const QByteArray & encoded )<tt> [static]</tt></h3>Decodes base64 encoded <em>encoded</em> and returns a QByteArray containingthe decoded data.<p> First availability: Qtopia 1.6<h3 class=fn>QString <a name="deviceId"></a>Global::deviceId ()<tt> [static]</tt></h3>Returns a unique ID for this device. The value can change, iffor example, the device is reset.<p> First availability: Qtopia 1.6<h3 class=fn>QByteArray <a name="encodeBase64"></a>Global::encodeBase64 ( const QByteArray & origData )<tt> [static]</tt></h3>Encodes <em>origData</em> using base64 mapping and returns a QString containing theencoded form.<p> First availability: Qtopia 1.6<h3 class=fn>void <a name="execute"></a>Global::execute ( const QString & c, const QString & document = QString::null )<tt> [static]</tt></h3>Executes the application identfied by <em>c</em>, passing <em>document</em> if it isn't null.<p> Note that a better approach might be to send a QCop message to theapplication's QPE/Application/<em>appname</em> channel.<h3 class=fn>void <a name="findDocuments"></a>Global::findDocuments ( <a href="doclnkset.html">DocLnkSet</a> * folder, const QString & mimefilter = QString::null )<tt> [static]</tt></h3>Finds all documents in the system's document directories whichmatch the filter <em>mimefilter</em>, and appends the resulting <a href="doclnk.html">DocLnk</a> objects to <em>folder</em>.<h3 class=fn>const <a href="qdawg.html">QDawg</a> & <a name="fixedDawg"></a>Global::fixedDawg ()<tt> [static]</tt></h3>Returns the unchangeable <a href="qdawg.html">QDawg</a> that contains generalwords for the current locale.<p> <p>See also <a href="#addedDawg">addedDawg</a>().<h3 class=fn><a href="quuid.html">QUuid</a> <a name="generateUuid"></a>Global::generateUuid ()<tt> [static]</tt></h3>Returns a Uuid with system-wide uniqueness.<p> First availability: Qtopia 1.6<h3 class=fn>bool <a name="hasKey"></a>Global::hasKey ( int key )<tt> [static]</tt></h3>Returns TRUE if <em>key</em> is available on the device. The buttonsmay be either fixed function buttons, such as Key_Menu, or usermappable buttons, such as Key_F1.<p> First availability: Qtopia 2.0<p> <p>See also <a href="contextbar.html">ContextBar</a> and <a href="devicebuttonmanager.html">DeviceButtonManager</a>.<h3 class=fn>void <a name="hideInputMethod"></a>Global::hideInputMethod ()<tt> [static]</tt></h3>Explicitly hide the current input method.<p> The current input method is still indicated in the taskbar, but nolonger takes up screen space, and can no longer be interacted with.<p> <p>See also <a href="#showInputMethod">showInputMethod</a>().<h3 class=fn>QString <a name="homeDirPath"></a>Global::homeDirPath ()<tt> [static]</tt></h3>Returns the name of the directory to be used as the currentusers home directory.<p> First availability: Qtopia 1.6<h3 class=fn>bool <a name="isAppLnkFileName"></a>Global::isAppLnkFileName ( const QString & file )<tt> [static]</tt></h3>Returns TRUE if <em>file</em> is the filename of an application.<p> First availability: Qtopia 1.6<h3 class=fn>bool <a name="isDocumentFileName"></a>Global::isDocumentFileName ( const QString & file )<tt> [static]</tt></h3>Returns TRUE if <em>file</em> is the filename of a document.<p> First availability: Qtopia 1.6<h3 class=fn>bool <a name="mousePreferred"></a>Global::mousePreferred ()<tt> [static]</tt></h3>Returns TRUE if the application can expect the user tobe able to easily produce mouse events.<p> Returns FALSE if the user <em>cannot</em> produce mouse events,or chooses not to (eg. does not plug in a mouse).<p> Applications may use this to tune interactions.<p> First availability: Qtopia 2.0<h3 class=fn>QString <a name="ownerName"></a>Global::ownerName ()<tt> [static]</tt></h3>Returns the name of the owner of the device.<p> First availability: Qtopia 1.6<h3 class=fn>void <a name="removeWords"></a>Global::removeWords ( const QStringList & wordlist )<tt> [static]</tt></h3>Removes <em>wordlist</em> from the <a href="#addedDawg">addedDawg</a>(). If the words are inthe fixed dictionary, they are added to the "deleted" dictionary.<p> This is a slow operation. Call it once with a large list rather thanmultiple times with a small list.<h3 class=fn>void <a name="removeWords-2"></a>Global::removeWords ( const QString & dictname, const QStringList & wordlist )<tt> [static]</tt></h3>Removes <em>wordlist</em> from the <a href="#dawg">dawg</a>() named <em>dictname</em>.<p> This is a slow operation. Call it once with a large list rather thanmultiple times with a small list.<h3 class=fn>bool <a name="renameFile"></a>Global::renameFile ( QString from, QString to )<tt> [static]</tt></h3>Renames the file <em>from</em> to <em>to</em>.Returns TRUE if the operation is successful.<p> First availability: Qtopia 1.6<h3 class=fn>void <a name="setWeekStartsMonday"></a>Global::setWeekStartsMonday ( bool v )<tt> [static]</tt></h3>Sets the day the user regards their week starting on.If <em>v</em> is TRUE, then the week begins on Monday.If <em>v</em> is FALSE, then the week begins on Sunday.<p> First availability: Qtopia 1.6<h3 class=fn>QString <a name="shellQuote"></a>Global::shellQuote ( const QString & s )<tt> [static]</tt></h3>Returns the string <em>s</em> with the characters '\', '"', and '$' quotedby a preceeding '\', and enclosed by double-quotes (").<p> <p>See also <a href="#stringQuote">stringQuote</a>().<h3 class=fn>void <a name="showInputMethod"></a>Global::showInputMethod ()<tt> [static]</tt></h3>Explicitly show the current input method.<p> Input methods are indicated in the taskbar by a small icon. If theinput method is activated (shown) then it takes up some proportionof the bottom of the screen, to allow the user to interact (inputcharacters) with it.<p> <p>See also <a href="#hideInputMethod">hideInputMethod</a>().<h3 class=fn>void <a name="statusMessage"></a>Global::statusMessage ( const QString & message )<tt> [static]</tt></h3>Displays a status <em>message</em> to the user. This usually appearsin the taskbar for a short amount of time, then disappears.<h3 class=fn>QString <a name="stringQuote"></a>Global::stringQuote ( const QString & s )<tt> [static]</tt></h3>Returns the string <em>s</em> with the characters '\' and '"' quoted by apreceeding '\'.<p> <p>See also <a href="#shellQuote">shellQuote</a>().<h3 class=fn>QString <a name="tempName"></a>Global::tempName ( const QString & fname )<tt> [static]</tt></h3>Returns a filename suitable for use as a temporary file using <em>fname</em>as a base.<p> First availability: Qtopia 1.6<h3 class=fn>QString <a name="version"></a>Global::version ()<tt> [static]</tt></h3>Returns the Qtopia version string. This is of the form:<i>major</i>.<i>minor</i>.<i>patchlevel</i> (eg. "1.2.3"),possibly followed by a space and special information(eg. "1.2.3 beta4").<p> First availability: Qtopia 1.6<h3 class=fn>bool <a name="weekStartsOnMonday"></a>Global::weekStartsOnMonday ()<tt> [static]</tt></h3>Returns TRUE if the user regards their week as starting on Monday.Returns FALSE if the user regards their week as starting on Sunday.<p> First availability: Qtopia 1.6<h3 class=fn>void <a name="writeHWClock"></a>Global::writeHWClock ()<tt> [static]</tt></h3>Writes the system clock to the hardware clock.<!-- 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 + -