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

📄 global.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia/global.cpp:157 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Global 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>Global Class Reference</h1><p>The Global class provides application-wide global functions.<a href="#details">More...</a><p><tt>#include &lt;<a href="global-h.html">global.h</a>&gt;</tt><p><a href="global-members.html">List of all member functions.</a><h2>Static Public Members</h2><ul><li><div class=fn>QUuid <a href="#generateUuid"><b>generateUuid</b></a> ()</div></li><li><div class=fn>QString <a href="#homeDirPath"><b>homeDirPath</b></a> ()</div></li><li><div class=fn>bool <a href="#renameFile"><b>renameFile</b></a> ( QString&nbsp;from, QString&nbsp;to )</div></li><li><div class=fn>QString <a href="#tempName"><b>tempName</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;fname )</div></li><li><div class=fn>QString <a href="#applicationFileName"><b>applicationFileName</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;appname, const&nbsp;QString&nbsp;&amp;&nbsp;filename )</div></li><li><div class=fn>void <a href="#findDocuments"><b>findDocuments</b></a> ( DocLnkSet&nbsp;*&nbsp;folder, const&nbsp;QString&nbsp;&amp;&nbsp;mimefilter = QString::null )</div></li><li><div class=fn>bool <a href="#isDocumentFileName"><b>isDocumentFileName</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;file )</div></li><li><div class=fn>bool <a href="#isAppLnkFileName"><b>isAppLnkFileName</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;file )</div></li><li><div class=fn>void <a href="#statusMessage"><b>statusMessage</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;message )</div></li><li><div class=fn>QString <a href="#shellQuote"><b>shellQuote</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;s )</div></li><li><div class=fn>QString <a href="#stringQuote"><b>stringQuote</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;s )</div></li><li><div class=fn>QByteArray <a href="#encodeBase64"><b>encodeBase64</b></a> ( const&nbsp;QByteArray&nbsp;&amp;&nbsp;origData )</div></li><li><div class=fn>QByteArray <a href="#decodeBase64"><b>decodeBase64</b></a> ( const&nbsp;QByteArray&nbsp;&amp;&nbsp;encoded )</div></li><li><div class=fn>bool <a href="#weekStartsOnMonday"><b>weekStartsOnMonday</b></a> ()</div></li><li><div class=fn>void <a href="#setWeekStartsMonday"><b>setWeekStartsMonday</b></a> ( bool&nbsp;v )</div></li><li><div class=fn>bool <a href="#mousePreferred"><b>mousePreferred</b></a> ()</div></li><li><div class=fn>bool <a href="#hasKey"><b>hasKey</b></a> ( int&nbsp;key )</div></li><li><div class=fn>const QDawg &amp; <a href="#fixedDawg"><b>fixedDawg</b></a> ()</div></li><li><div class=fn>const QDawg &amp; <a href="#addedDawg"><b>addedDawg</b></a> ()</div></li><li><div class=fn>const QDawg &amp; <a href="#dawg"><b>dawg</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;name )</div></li><li><div class=fn>void <a href="#addWords"><b>addWords</b></a> ( const&nbsp;QStringList&nbsp;&amp;&nbsp;wordlist )</div></li><li><div class=fn>void <a href="#addWords-2"><b>addWords</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;dictname, const&nbsp;QStringList&nbsp;&amp;&nbsp;wordlist )</div></li><li><div class=fn>void <a href="#removeWords"><b>removeWords</b></a> ( const&nbsp;QStringList&nbsp;&amp;&nbsp;wordlist )</div></li><li><div class=fn>void <a href="#removeWords-2"><b>removeWords</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;dictname, const&nbsp;QStringList&nbsp;&amp;&nbsp;wordlist )</div></li><li><div class=fn>QString <a href="#version"><b>version</b></a> ()</div></li><li><div class=fn>QString <a href="#architecture"><b>architecture</b></a> ()</div></li><li><div class=fn>QString <a href="#deviceId"><b>deviceId</b></a> ()</div></li><li><div class=fn>QString <a href="#ownerName"><b>ownerName</b></a> ()</div></li><li><div class=fn>void <a href="#execute"><b>execute</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;c, const&nbsp;QString&nbsp;&amp;&nbsp;document = QString::null )</div></li><li><div class=fn>void <a href="#hideInputMethod"><b>hideInputMethod</b></a> ()</div></li><li><div class=fn>void <a href="#showInputMethod"><b>showInputMethod</b></a> ()</div></li><li><div class=fn>void <a href="#writeHWClock"><b>writeHWClock</b></a> ()</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The Global class provides application-wide global functions.<p> The Global functions are grouped as follows:<!-- toc --><ul><li><a href="#1"> User Interface</a><li><a href="#1-1"> Document related</a><li><a href="#1-2"> Filesystem related</a><li><a href="#1-3"> Word list related</a><li><a href="#1-4"> Quoting</a><li><a href="#1-5"> Hardware</a></ul><!-- endtoc --><p> <h3> User Interface</h3><a name="1"></a><p> The <a href="#statusMessage">statusMessage</a>() function provides short-duration messages to theuser. The <a href="#showInputMethod">showInputMethod</a>() function shows the current input method,and <a href="#hideInputMethod">hideInputMethod</a>() hides the input method.<p> <h3> Document related</h3><a name="1-1"></a><p> The <a href="#findDocuments">findDocuments</a>() function creates a set of <a href="doclnk.html">DocLnk</a> objects in a particular folder.<p> <h3> Filesystem related</h3><a name="1-2"></a><p> Global provides an <a href="#applicationFileName">applicationFileName</a>() function that returns thefull path of an application-specific file.<p> The <a href="#execute">execute</a>() function runs an application.<p> <h3> Word list related</h3><a name="1-3"></a><p> A list of words relevant to the current locale is maintained by thesystem. The list is held in a <a href="qdawg.html">DAWG</a>(implemented by the <a href="qdawg.html">QDawg</a> class). This list is used, for example, bythe pickboard input method.<p> The global QDawg is returned by <a href="#fixedDawg">fixedDawg</a>(); this cannot be updated.An updatable copy of the global QDawg is returned by <a href="#addedDawg">addedDawg</a>().Applications may have their own word lists stored in <a href="qdawg.html">QDawg</a>swhich are returned by <a href="#dawg">dawg</a>(). Use <a href="#addWords">addWords</a>() to add words to theupdateable copy of the global QDawg or to named application<a href="qdawg.html">QDawg</a>s.<p> <h3> Quoting</h3><a name="1-4"></a><p> The <a href="#shellQuote">shellQuote</a>() function quotes a string suitable for passing to ashell. The <a href="#stringQuote">stringQuote</a>() function backslash escapes '&#92;' and '"'characters.<p> <h3> Hardware</h3><a name="1-5"></a><p> The <a href="#writeHWClock">writeHWClock</a>() function sets the hardware clock to the systemclock's date and time.<p> <p>See also <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn>void <a name="addWords"></a>Global::addWords ( const&nbsp;QStringList&nbsp;&amp;&nbsp;wordlist )<tt> [static]</tt></h3>Adds <em>wordlist</em> to the <a href="#addedDawg">addedDawg</a>(). Words that are already thereare not added. Words that are in the 'deleted' dictionary areremoved from there.<p> Note that the addition of words persists between program executions(they are saved in the dictionary files), so you should confirm thewords with the user before adding them.<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="addWords-2"></a>Global::addWords ( const&nbsp;QString&nbsp;&amp;&nbsp;dictname, const&nbsp;QStringList&nbsp;&amp;&nbsp;wordlist )<tt> [static]</tt></h3>Adds <em>wordlist</em> to the <a href="#dawg">dawg</a>() named <em>dictname</em>.<p> Note that the addition of words persists between program executions(they are saved in the dictionary files), so you should confirm thewords with the user before adding them.<p> This is a slow operation. Call it once with a large list rather thanmultiple times with a small list.<h3 class=fn>const&nbsp;<a href="qdawg.html">QDawg</a>&nbsp;&amp; <a name="addedDawg"></a>Global::addedDawg ()<tt> [static]</tt></h3>Returns the changeable <a href="qdawg.html">QDawg</a> that contains generalwords for the current locale.<p> <p>See also <a href="#fixedDawg">fixedDawg</a>().<h3 class=fn>QString <a name="applicationFileName"></a>Global::applicationFileName ( const&nbsp;QString&nbsp;&amp;&nbsp;appname, const&nbsp;QString&nbsp;&amp;&nbsp;filename )<tt> [static]</tt></h3>Returns the full path for the application called <em>appname</em>, with thegiven <em>filename</em>. Returns QString::null if there was a problem creatingthe directory tree for <em>appname</em>.If <em>filename</em> contains "/", it is the caller's responsibility toensure that those directories exist.<h3 class=fn>QString <a name="architecture"></a>Global::architecture ()<tt> [static]</tt></h3>Returns the device architecture string. This is a sequenceof identifiers separated by "/", from most general to mostspecific (eg. "IBM/PC").<p> First availability: Qtopia 1.6<h3 class=fn>const&nbsp;<a href="qdawg.html">QDawg</a>&nbsp;&amp; <a name="dawg"></a>Global::dawg ( const&nbsp;QString&nbsp;&amp;&nbsp;name )<tt> [static]</tt></h3>Returns the <a href="qdawg.html">QDawg</a> with the given <em>name</em>.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -