<HTML> <HEAD> <TITLE>class KDEDesktopMimeType</TITLE> <META NAME="Generator" CONTENT="KDOC "> </HEAD> <BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff"> <TABLE WIDTH="100%" BORDER="0"> <TR> <TD> <TABLE BORDER="0"> <TR><TD valign="top" align="left" cellspacing="10"> <h1>class KDEDesktopMimeType</h1> </TD> <TD valign="top" align="right" colspan="1">Mimetype for a .desktop file Handles mount/umount icon, and user-defined properties. <small><A HREF="#longdesc">More...</A></small></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH>Definition</TH><TD><code>#include <<A HREF="kmimetype_h.html">kmimetype.h</A>></code></TD></TR> <TR><TH>Inherits</TH><TD><A HREF="KMimeType.html">KMimeType</A> <small>[public ]</small></TD></TR> <TR><TH><A HREF="full-list-KDEDesktopMimeType.html">List of all Methods</A></TH></TR> </TABLE> </TD> <TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR> <TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR> <TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR> <TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR> <TR><TD><small><A HREF="index.html">Index</A></small></TD></TR> </TABLE></TD></TR></TABLE> <h4>Public Types</h4><ul><LI>enum <A HREF="#ref1">ServiceType</A> { ST_MOUNT, ST_UNMOUNT, ST_USER_DEFINED } </LI> <LI>struct <A HREF="KDEDesktopMimeType__Service.html">Service</A> </LI> </ul><h4>Public Methods</h4><ul><LI> <b><A HREF="#ref3">KDEDesktopMimeType</A></b> ( <A HREF="../kdecore/KDesktopFile.html">KDesktopFile</A> *config) </LI> <LI> <b><A HREF="#ref4">KDEDesktopMimeType</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qdatastream.html">QDataStream</A>& _str, int offset ) </LI> <LI>virtual <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <b><A HREF="#ref5">icon</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _url, bool _is_local ) const </LI> <LI>virtual <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <b><A HREF="#ref6">icon</A></b> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, bool _is_local ) const </LI> <LI>virtual <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qpixmap.html">QPixmap</A> <b><A HREF="#ref7">pixmap</A></b> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, int _group, int _force_size = 0, int _state = 0, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> * _path = 0L ) const </LI> <LI>virtual <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <b><A HREF="#ref8">comment</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _url, bool _is_local ) const </LI> <LI>virtual <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <b><A HREF="#ref9">comment</A></b> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, bool _is_local ) const </LI> </ul><h4>Public Static Methods</h4><ul><LI>static <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qvaluelist.html">QValueList</A><Service> <b><A HREF="#ref10">builtinServices</A></b> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url ) </LI> <LI>static <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qvaluelist.html">QValueList</A><Service> <b><A HREF="#ref11">userDefinedServices</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& path, bool bLocalFiles ) </LI> <LI>static <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qvaluelist.html">QValueList</A><Service> <b><A HREF="#ref12">userDefinedServices</A></b> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url ) </LI> <LI>static void <b><A HREF="#ref13">executeService</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _path, <A HREF="KDEDesktopMimeType__Service.html">KDEDesktopMimeType::Service</A>& _service ) </LI> <LI>static void <b><A HREF="#ref14">executeService</A></b> ( const <A HREF="../kdecore/KURL__List.html">KURL::List</A>& urls, <A HREF="KDEDesktopMimeType__Service.html">KDEDesktopMimeType::Service</A>& service ) </LI> <LI>static pid_t <b><A HREF="#ref15">run</A></b> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, bool _is_local ) </LI> </ul><h4>Protected Methods</h4><ul><LI>virtual <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qpixmap.html">QPixmap</A> <b><A HREF="#ref16">pixmap</A></b> (int a, int b, int c, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> *d) const </LI> </ul><h4>Protected Static Methods</h4><ul><LI>static pid_t <b><A HREF="#ref17">runFSDevice</A></b> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, const <A HREF="../kdecore/KSimpleConfig.html">KSimpleConfig</A> &cfg ) </LI> <LI>static pid_t <b><A HREF="#ref18">runApplication</A></b> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & _serviceFile ) </LI> <LI>static pid_t <b><A HREF="#ref19">runLink</A></b> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, const <A HREF="../kdecore/KSimpleConfig.html">KSimpleConfig</A> &cfg ) </LI> <LI>static pid_t <b><A HREF="#ref20">runMimeType</A></b> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, const <A HREF="../kdecore/KSimpleConfig.html">KSimpleConfig</A> &cfg ) </LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> </p> <A NAME="ServiceType"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td>enum <strong>ServiceType</strong> { ST_MOUNT, ST_UNMOUNT, ST_USER_DEFINED } </td><td align="right"><h3><strong>ServiceType</strong></h3></td></tr></table><p></p><A NAME="KDEDesktopMimeType__Service.html"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>Service</strong> <small>(struct)</small></td><td align="right"><h3><strong>Service</strong></h3></td></tr></table><p></p><p> Structure representing a service, in the list of services returned by builtinServices and userDefinedServices </p> <A NAME="KDEDesktopMimeType"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>KDEDesktopMimeType</strong> ( <A HREF="../kdecore/KDesktopFile.html">KDesktopFile</A> *config) <br></td><td align="right"><h3><strong>KDEDesktopMimeType</strong></h3></td></tr></table><p></p><A NAME="KDEDesktopMimeType"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>KDEDesktopMimeType</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qdatastream.html">QDataStream</A>& _str, int offset ) <br></td><td align="right"><h3><strong>KDEDesktopMimeType</strong></h3></td></tr></table><p></p><A NAME="icon"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <strong>icon</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _url, bool _is_local ) <br></td><td align="right"><h3><strong>icon</strong></h3></td></tr></table><p> <small>[const virtual]</small></p><p>Reimplemented from <A HREF="KMimeType.html#icon">KMimeType</A>.</p> <A NAME="icon"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <strong>icon</strong> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, bool _is_local ) <br></td><td align="right"><h3><strong>icon</strong></h3></td></tr></table><p> <small>[const virtual]</small></p><p>Reimplemented from <A HREF="KMimeType.html#icon">KMimeType</A>.</p> <A NAME="pixmap"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qpixmap.html">QPixmap</A> <strong>pixmap</strong> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, int _group, int _force_size = 0, int _state = 0, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> * _path = 0L ) <br></td><td align="right"><h3><strong>pixmap</strong></h3></td></tr></table><p> <small>[const virtual]</small></p><p>Reimplemented from <A HREF="KMimeType.html#pixmap">KMimeType</A>.</p> <A NAME="comment"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <strong>comment</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _url, bool _is_local ) <br></td><td align="right"><h3><strong>comment</strong></h3></td></tr></table><p> <small>[const virtual]</small></p><p>Reimplemented from <A HREF="KMimeType.html#comment">KMimeType</A>.</p> <A NAME="comment"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <strong>comment</strong> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, bool _is_local ) <br></td><td align="right"><h3><strong>comment</strong></h3></td></tr></table><p> <small>[const virtual]</small></p><p>Reimplemented from <A HREF="KMimeType.html#comment">KMimeType</A>.</p> <A NAME="builtinServices"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qvaluelist.html">QValueList</A><Service> <strong>builtinServices</strong> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url ) <br></td><td align="right"><h3><strong>builtinServices</strong></h3></td></tr></table><p> <small>[static]</small></p><p> </p> <p><b>Returns</b>: a list of services for the given .desktop file that are handled by kio itself. Namely mount/unmount for FSDevice files. </p> <A NAME="userDefinedServices"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qvaluelist.html">QValueList</A><Service> <strong>userDefinedServices</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& path, bool bLocalFiles ) <br></td><td align="right"><h3><strong>userDefinedServices</strong></h3></td></tr></table><p> <small>[static]</small></p><p> </p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>path</i></TD><TD align="left" valign="top">the path to the desktop file describing the services </TD></TR> <TR><TD align="left" valign="top"><i>bLocalFiles</i></TD><TD align="left" valign="top">true if those services are to be applied to local files only (if false, services that don't have %u or %U in the Exec line won't be taken into account). </TD></TR> </TABLE></P> <p><b>Returns</b>: a list of services defined by the user as possible actions on the given .desktop file. </p> <A NAME="userDefinedServices"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qvaluelist.html">QValueList</A><Service> <strong>userDefinedServices</strong> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url ) <br></td><td align="right"><h3><strong>userDefinedServices</strong></h3></td></tr></table><p> <small>[static]</small></p><A NAME="executeService"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>executeService</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _path, <A HREF="KDEDesktopMimeType__Service.html">KDEDesktopMimeType::Service</A>& _service ) <br></td><td align="right"><h3><strong>executeService</strong></h3></td></tr></table><p> <small>[static]</small></p><p> </p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>_path</i></TD><TD align="left" valign="top">is the path of the desktop entry. </TD></TR> </TABLE></P> <A NAME="executeService"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>executeService</strong> ( const <A HREF="../kdecore/KURL__List.html">KURL::List</A>& urls, <A HREF="KDEDesktopMimeType__Service.html">KDEDesktopMimeType::Service</A>& service ) <br></td><td align="right"><h3><strong>executeService</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Execute <code>service</code> on the list of <code>urls</code> </p> <A NAME="run"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td> pid_t <strong>run</strong> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, bool _is_local ) <br></td><td align="right"><h3><strong>run</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Invokes the default action for the desktop entry. If the desktop entry is not local, then only false is returned. Otherwise we would create a security problem. Only types Link and Mimetype could be followed. </p> <p></p> <p></p> <p><b>Returns</b>: true on success and false on failure. </p> <p><b>See also</b>: <A HREF="KRun.html#runURL">runURL</A></p> <A NAME="pixmap"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qpixmap.html">QPixmap</A> <strong>pixmap</strong> (int a, int b, int c, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> *d) <br></td><td align="right"><h3><strong>pixmap</strong></h3></td></tr></table><p> <small>[protected const virtual]</small></p><p>Reimplemented from <A HREF="KMimeType.html#pixmap">KMimeType</A>.</p> <A NAME="runFSDevice"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td> pid_t <strong>runFSDevice</strong> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, const <A HREF="../kdecore/KSimpleConfig.html">KSimpleConfig</A> &cfg ) <br></td><td align="right"><h3><strong>runFSDevice</strong></h3></td></tr></table><p> <small>[protected static]</small></p><A NAME="runApplication"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td> pid_t <strong>runApplication</strong> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & _serviceFile ) <br></td><td align="right"><h3><strong>runApplication</strong></h3></td></tr></table><p> <small>[protected static]</small></p><A NAME="runLink"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td> pid_t <strong>runLink</strong> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, const <A HREF="../kdecore/KSimpleConfig.html">KSimpleConfig</A> &cfg ) <br></td><td align="right"><h3><strong>runLink</strong></h3></td></tr></table><p> <small>[protected static]</small></p><A NAME="runMimeType"></A><A NAME="ref20"></A><table width="100%"><tr bgcolor="#eeeeee"><td> pid_t <strong>runMimeType</strong> ( const <A HREF="../kdecore/KURL.html">KURL</A>& _url, const <A HREF="../kdecore/KSimpleConfig.html">KSimpleConfig</A> &cfg ) <br></td><td align="right"><h3><strong>runMimeType</strong></h3></td></tr></table><p> <small>[protected static]</small></p><HR> <table> <tr><td><small>Generated by: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:14 2002, using kdoc 2.0a53.</small></td></tr> </table> </BODY> </HTML>