📄 applnk.html
字号:
<h3 class=fn>bool <a name="ensureLinkExists"></a>AppLnk::ensureLinkExists () const<tt> [protected]</tt></h3>Attempts to ensure that the link file for this AppLnk exists,including creating any required directories. Returns TRUE ifsuccessful; otherwise returns FALSE.<p> You should not need to use this function.<h3 class=fn>QString <a name="exec"></a>AppLnk::exec () const<tt> [virtual]</tt></h3><p> Returns the Exec property. This is the name of the executableprogram associated with the AppLnk.<p> <p>See also <a href="#setExec">setExec</a>().<h3 class=fn>void <a name="execute"></a>AppLnk::execute ( const QStringList & args ) const</h3>Executes the application associated with this AppLnk, with<em>args</em> as arguments.<p> <p>See also <a href="#exec">exec</a>().<h3 class=fn>void <a name="execute-2"></a>AppLnk::execute () const</h3>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.<p> Executes the application associated with this AppLnk.<p> <p>See also <a href="#exec">exec</a>().<h3 class=fn>QString <a name="file"></a>AppLnk::file () const</h3>Returns the file associated with the AppLnk.<p> <p>See also <a href="#exec">exec</a>() and <a href="#name">name</a>().<h3 class=fn>bool <a name="fileKnown"></a>AppLnk::fileKnown () const</h3><p> Returns TRUE is the file associated with AppLnk is alreadyknown. If FALSE, calling <a href="#file">file</a>() will generate a file name.<h3 class=fn>QString <a name="icon"></a>AppLnk::icon () const</h3><p> Returns the Icon property.<p> <p>See also <a href="#setIcon">setIcon</a>().<h3 class=fn>int <a name="id"></a>AppLnk::id () const</h3><p> Returns the id of the AppLnk. If the AppLnk is not in an <a href="applnkset.html">AppLnkSet</a>,this value is 0, otherwise it is a value that is unique for theduration of the current process.<p> <p>See also <a href="applnkset.html#find">AppLnkSet::find</a>().<h3 class=fn>void <a name="invoke"></a>AppLnk::invoke ( const QStringList & args ) const<tt> [virtual protected]</tt></h3>Invokes the application associated with this AppLnk, with<em>args</em> as arguments. Rotation is not taken into account bythis function, so you should not call it directly.<p> <p>See also <a href="#execute">execute</a>().<h3 class=fn>bool <a name="isDocLnk"></a>AppLnk::isDocLnk () const</h3>Returns TRUE if the AppLnk is a <a href="doclnk.html">DocLnk</a>.<p> First availability: Qtopia 1.6<h3 class=fn>bool <a name="isValid"></a>AppLnk::isValid () const</h3><p> Returns TRUE if this AppLnk is valid; otherwise returns FALSE.<h3 class=fn>QString <a name="linkFile"></a>AppLnk::linkFile () const</h3>Returns the desktop file corresponding to this AppLnk.<p> <p>See also <a href="#file">file</a>(), <a href="#exec">exec</a>() and <a href="#name">name</a>().<h3 class=fn>bool <a name="linkFileKnown"></a>AppLnk::linkFileKnown () const</h3><p> Returns TRUE is the link file associated with AppLnk is alreadyknown. If FALSE, calling <a href="#linkFile">linkFile</a>() will generate a file name.<h3 class=fn>QStringList <a name="mimeTypeIcons"></a>AppLnk::mimeTypeIcons () const</h3><p> Returns the MimeTypeIcons property of the AppLnk.<h3 class=fn>QStringList <a name="mimeTypes"></a>AppLnk::mimeTypes () const</h3><p> Returns the MimeTypes property. This is the list of MIME typesthat the application can view or edit.<h3 class=fn>QString <a name="name"></a>AppLnk::name () const</h3><p> Returns the Name property. This is the user-visible name for thedocument or application, not the filename.<p> See <a href="#files-and-links">Files and Links</a>.<p> <p>See also <a href="#setName">setName</a>().<h3 class=fn><a href="applnk.html">AppLnk</a> & <a name="operator-eq"></a>AppLnk::operator= ( const <a href="applnk.html">AppLnk</a> & copy )</h3>Returns an AppLnk that is a deep copy of <em>copy</em>.<p> First availability: Qtopia 1.6<h3 class=fn>const QPixmap & <a name="pixmap"></a>AppLnk::pixmap () const</h3>Returns a small pixmap associated with the application.<p> <p>See also <a href="#bigPixmap">bigPixmap</a>() and <a href="#setIcon">setIcon</a>().<h3 class=fn>QString <a name="property"></a>AppLnk::property ( const QString & key ) const</h3>Returns the property named <em>key</em>.<p> <p>See also <a href="#setProperty">setProperty</a>().<h3 class=fn>void <a name="removeFiles"></a>AppLnk::removeFiles ()</h3>Deletes both the <a href="#linkFile">linkFile</a>() and the <a href="#file">file</a>() associated with this AppLnk.<p> <p>See also <a href="#removeLinkFile">removeLinkFile</a>().<h3 class=fn>void <a name="removeLinkFile"></a>AppLnk::removeLinkFile ()</h3>Deletes the <a href="#linkFile">linkFile</a>(), leaving any <a href="#file">file</a>() untouched.<p> <p>See also <a href="#removeFiles">removeFiles</a>().<h3 class=fn>QString <a name="rotation"></a>AppLnk::rotation () const</h3><p> Returns the Rotation property. The value is 0, 90, 180 or 270degrees.<h3 class=fn>void <a name="setBigIconSize"></a>AppLnk::setBigIconSize ( int big )<tt> [static]</tt></h3>Sets the size used for large icons to <em>big</em> pixels.Only affects AppLnk objects created after the call.<p> <p>See also <a href="#bigIconSize">bigIconSize</a>() and <a href="#setIcon">setIcon</a>().<h3 class=fn>void <a name="setCategories"></a>AppLnk::setCategories ( const QArray<int> & c )</h3>Sets the <a href="categories.html">Categories</a> property to <em>c</em>.<p> See the CategoryWidget for more details.<p> <p>See also <a href="#categories">categories</a>().<h3 class=fn>void <a name="setComment"></a>AppLnk::setComment ( const QString & comment )</h3>Sets the Comment property to <em>comment</em>.<p> This text is displayed in the 'Details Dialog', for example if theuser uses the 'press-and-hold' gesture.<p> <p>See also <a href="#comment">comment</a>().<h3 class=fn>void <a name="setExec"></a>AppLnk::setExec ( const QString & exec )</h3>Sets the Exec property to <em>exec</em>.<p> <p>See also <a href="#exec">exec</a>() and <a href="#name">name</a>().<h3 class=fn>void <a name="setFile"></a>AppLnk::setFile ( const QString & filename )</h3>Sets the File property to <em>filename</em>.<p> <p>See also <a href="#file">file</a>() and <a href="#name">name</a>().<h3 class=fn>void <a name="setIcon"></a>AppLnk::setIcon ( const QString & iconname )</h3>Sets the Icon property to <em>iconname</em>. This is the filename fromwhich the <a href="#pixmap">pixmap</a>() and <a href="#bigPixmap">bigPixmap</a>() are obtained.<p> <p>See also <a href="#icon">icon</a>(), <a href="#setSmallIconSize">setSmallIconSize</a>() and <a href="#setBigIconSize">setBigIconSize</a>().<h3 class=fn>void <a name="setLinkFile"></a>AppLnk::setLinkFile ( const QString & filename )</h3>Sets the LinkFile property to <em>filename</em>.<p> <p>See also <a href="#linkFile">linkFile</a>().<h3 class=fn>bool <a name="setLocation"></a>AppLnk::setLocation ( const QString & docPath )</h3>This function sets the location for an AppLnk to <em>docPath</em>.<p> First availability: Qtopia 1.6<h3 class=fn>void <a name="setName"></a>AppLnk::setName ( const QString & docname )</h3>Sets the Name property to <em>docname</em>.<p> <p>See also <a href="#name">name</a>().<h3 class=fn>void <a name="setProperty"></a>AppLnk::setProperty ( const QString & key, const QString & value )</h3>Sets the property named <em>key</em> to <em>value</em>.<p> <p>See also <a href="#property">property</a>().<h3 class=fn>void <a name="setSmallIconSize"></a>AppLnk::setSmallIconSize ( int small )<tt> [static]</tt></h3>Sets the size used for small icons to <em>small</em> pixels.Only affects AppLnk objects created after the call.<p> <p>See also <a href="#smallIconSize">smallIconSize</a>() and <a href="#setIcon">setIcon</a>().<h3 class=fn>void <a name="setType"></a>AppLnk::setType ( const QString & type )</h3>Sets the Type property to <em>type</em>.<p> For applications, games and settings the type should be <tt>Application</tt>; for documents the type should be the document's MIMEtype.<p> <p>See also <a href="#type">type</a>().<h3 class=fn>int <a name="smallIconSize"></a>AppLnk::smallIconSize ()<tt> [static]</tt></h3>Returns the size used for small icons.<p> <p>See also <a href="#setSmallIconSize">setSmallIconSize</a>() and <a href="#setIcon">setIcon</a>().<h3 class=fn>QString <a name="type"></a>AppLnk::type () const</h3>Returns the type of the AppLnk. For applications, games andsettings the type is <tt>Application</tt>; for documents the type is thedocument's MIME type.<h3 class=fn>bool <a name="writeLink"></a>AppLnk::writeLink () const</h3>Commits the AppLnk to disk. Returns TRUE if the operation succeeded;otherwise returns FALSE.<p> In addition, the "linkChanged(QString)" message is sent to the"QPE/System" <a href="qcop.html">QCop</a> channel.<!-- 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 + -