Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 5290

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">

<head>
  <title>kio/kio: KMimeType Class Reference (kio/kio)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../../.."><img id="nav_header_logo" alt="Home" align="left" src="../../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../../..">API Reference</a>
 / <a href="../../html/index.html">kio</a> / <a href=".">kio</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-static-methods">Static Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#pro-static-attribs">Static Protected Attributes</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">KMimeType Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KMimeType" --><!-- doxytag: inherits="KServiceType" -->
<p>Represent a mime type, like "text/plain", and the data that is associated with it.  
 <a href="classKMimeType.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="kmimetype_8h_source.html">kmimetype.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for KMimeType:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classKMimeType.png" usemap="#KMimeType_map" alt=""/>
  <map id="KMimeType_map" name="KMimeType_map">
<area href="classKServiceType.html" title="A service type is the generic notion for a mimetype, a type of service instead of a type of file..." alt="KServiceType" shape="rect" coords="150,0,290,24"/>
<area href="classKDEDesktopMimeType.html" title="Mime type for desktop files." alt="KDEDesktopMimeType" shape="rect" coords="0,112,140,136"/>
<area href="classKExecMimeType.html" title="The mime type for executable files." alt="KExecMimeType" shape="rect" coords="150,112,290,136"/>
<area href="classKFolderType.html" title="Folder mime type." alt="KFolderType" shape="rect" coords="300,112,440,136"/>
</map>
 </div></div>

<p><a href="classKMimeType-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7d3dec70482784d3ef5ee28d5a8f8942"></a><!-- doxytag: member="KMimeType::Ptr" ref="a7d3dec70482784d3ef5ee28d5a8f8942" args="" -->
typedef KSharedPtr&lt; <a class="el" href="classKMimeType.html">KMimeType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac37f03815c437a5ad849ce589e56e9e2"></a><!-- doxytag: member="KMimeType::List" ref="ac37f03815c437a5ad849ce589e56e9e2" args="" -->
typedef <a class="elRef" href="qvaluelist.html">QValueList</a>&lt; Ptr &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>List</b></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#afb260618356cd68a40f81b4f97560aed">KMimeType</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_fullpath, const <a class="elRef" href="qstring.html">QString</a> &amp;_type, const <a class="elRef" href="qstring.html">QString</a> &amp;_icon, const <a class="elRef" href="qstring.html">QString</a> &amp;_comment, const <a class="elRef" href="qstringlist.html">QStringList</a> &amp;_patterns)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#af027de2eb79040fc0ee67f27d03d763d">KMimeType</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_fullpath)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a56dc7f5e3efe85d4f5b363bb580d58f6">KMimeType</a> (KDesktopFile *config)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a072362feef6572a5b8c227efa81e3e64"></a><!-- doxytag: member="KMimeType::KMimeType" ref="a072362feef6572a5b8c227efa81e3e64" args="(QDataStream &amp;_str, int offset)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>KMimeType</b> (<a class="elRef" href="qdatastream.html">QDataStream</a> &amp;_str, int offset)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a231913c8665be28b6194ed5704de20f6">icon</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;, bool) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#acbe9afca3547b3f337f2a9e567367256">icon</a> (const KURL &amp;, bool) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" href="qpixmap.html">QPixmap</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a2bfe7c2131960aff1511da030d1ebf68">pixmap</a> (KIcon::Group group, int force_size=0, int state=0, <a class="elRef" href="qstring.html">QString</a> *path=0L) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" href="qpixmap.html">QPixmap</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a753294a47fd61ccae36dac16f656364f">pixmap</a> (const KURL &amp;_url, KIcon::Group _group, int _force_size=0, int _state=0, <a class="elRef" href="qstring.html">QString</a> *_path=0L) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#adaba131b79d39768a12c95ed84e9cf09">comment</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a095ded5b86a08b5a8ef9584e82c438e0">comment</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;, bool) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#acc99875b6ca849880143de3f4ea6d4fa">comment</a> (const KURL &amp;, bool) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="elRef" href="qstringlist.html">QStringList</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#acfbdda39518455e64d13473b3c65af86">patterns</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#abe539216a0c961c91cbc125a09b7da0d">load</a> (<a class="elRef" href="qdatastream.html">QDataStream</a> &amp;qs)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a6e306ada96a57bb00f5b675977f8d6ec">save</a> (<a class="elRef" href="qdatastream.html">QDataStream</a> &amp;qs)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" href="qvariant.html">QVariant</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a974162f18678f1c8c7c0fe482e057f99">property</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_name) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" href="qstringlist.html">QStringList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#aea1ecfe20c07ea0480e2769966825e46">propertyNames</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#ac2d8e43a2ef749f5ba5de7cff507cac6">parentMimeType</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a0ca33f89a8381dd331c23cda15294da1">is</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;mimeTypeName) const </td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qpixmap.html">QPixmap</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a32b6c4bd05def696907e491cfb2bf801">pixmapForURL</a> (const KURL &amp;_url, mode_t _mode=0, KIcon::Group _group=KIcon::Desktop, int _force_size=0, int _state=0, <a class="elRef" href="qstring.html">QString</a> *_path=0L)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a542518f1e2d2d45873987a4845885541">iconForURL</a> (const KURL &amp;_url, mode_t _mode=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a2ddd2f40999c2298c07510f8c54fa7e3">favIconForURL</a> (const KURL &amp;url)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a1fd115a75a84e762e31d8424eee683c0">mimeType</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a19c6563574d22a7395c4686c06e1dec9">findByURL</a> (const KURL &amp;_url, mode_t _mode=0, bool _is_local_file=false, bool _fast_mode=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab18d736c95b245fd560062d5a6abbe6c"></a><!-- doxytag: member="KMimeType::findByURL" ref="ab18d736c95b245fd560062d5a6abbe6c" args="(const KURL &amp;_url, mode_t _mode, bool _is_local_file, bool _fast_mode, bool *accurate)" -->
static Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>findByURL</b> (const KURL &amp;_url, mode_t _mode, bool _is_local_file, bool _fast_mode, bool *accurate)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a08a491a75215e970bccc869a2b408c82">findByPath</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;path, mode_t mode=0, bool fast_mode=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a059de448aa15a1c6e0b84985e727934d">findByContent</a> (const <a class="elRef" href="qbytearray.html">QByteArray</a> &amp;data, int *accuracy=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a6f7b66e69ab05e54c47d81e6912018e2">findByFileContent</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;fileName, int *accuracy=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Format&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#ada1fb6ca72ab5fc6ba7e1540ba0c341a">findFormatByFileContent</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;fileName)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qvaluelist.html">List</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a98133da8deac359e0c9c6bdf31760e74">allMimeTypes</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#ac2d9d6aa76e062cd701da677846e76e4">defaultMimeType</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static KMimeType::Ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#aae74a13ef3a3e19933b3b21e30da57b6">defaultMimeTypePtr</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae23b20d34a220b9f6fff46249a3b0387"></a><!-- doxytag: member="KMimeType::diagnoseFileName" ref="ae23b20d34a220b9f6fff46249a3b0387" args="(const QString &amp;file, QString &amp;pattern)" -->
static KMimeType::Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>diagnoseFileName</b> (const <a class="elRef" href="qstring.html">QString</a> &amp;file, <a class="elRef" href="qstring.html">QString</a> &amp;pattern)</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0af64b688544ab46075ae21c549f33c1"></a><!-- doxytag: member="KMimeType::loadInternal" ref="a0af64b688544ab46075ae21c549f33c1" args="(QDataStream &amp;)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>loadInternal</b> (<a class="elRef" href="qdatastream.html">QDataStream</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aecfa07e89fe223320c66b5220fad11ad"></a><!-- doxytag: member="KMimeType::init" ref="aecfa07e89fe223320c66b5220fad11ad" args="(KDesktopFile *)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> (KDesktopFile *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acbbf920b332617447e3d1346491e2b89"></a><!-- doxytag: member="KMimeType::patternsAccuracy" ref="acbbf920b332617447e3d1346491e2b89" args="() const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>patternsAccuracy</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8b437c50b3a56f9bbacf18ac3659268"></a><!-- doxytag: member="KMimeType::virtual_hook" ref="ad8b437c50b3a56f9bbacf18ac3659268" args="(int id, void *data)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>virtual_hook</b> (int id, void *data)</td></tr>
<tr><td colspan="2"><h2><a name="pro-static-methods"></a>
Static Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a9630ae3a8f78ce64da5ced50b8b108a2">errorMissingMimeType</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_type)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#ab7875fb77b0352db61cd04aa657dc68c">buildDefaultType</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a38b8880329316b4f478637bd4f27735e">checkEssentialMimeTypes</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5060a0f8019d5985e7be7365efa4293"></a><!-- doxytag: member="KMimeType::m_lstPatterns" ref="ad5060a0f8019d5985e7be7365efa4293" args="" -->
<a class="elRef" href="qstringlist.html">QStringList</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_lstPatterns</b></td></tr>
<tr><td colspan="2"><h2><a name="pro-static-attribs"></a>
Static Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMimeType.html#a079d3e22969e5a25b2e9103cc0c69e80">s_bChecked</a> = false</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af2a1bd0139ec82b6f801bb84779088a9"></a><!-- doxytag: member="KMimeType::s_pDefaultType" ref="af2a1bd0139ec82b6f801bb84779088a9" args="" -->
static Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>s_pDefaultType</b> = 0L</td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a364d14d9b0d01db03b65ac04bfcb03da"></a><!-- doxytag: member="KMimeType::KServiceTypeFactory" ref="a364d14d9b0d01db03b65ac04bfcb03da" args="" -->
class&#160;</td><td class="memItemRight" valign="bottom"><b>KServiceTypeFactory</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Represent a mime type, like "text/plain", and the data that is associated with it. </p>
<p>The starting point you need is often the static methods.</p>
<p><a class="el" href="classKMimeType.html" title="Represent a mime type, like &quot;text/plain&quot;, and the data that is associated with it.">KMimeType</a> inherits <a class="el" href="classKServiceType.html" title="A service type is the generic notion for a mimetype, a type of service instead of a type of file...">KServiceType</a> because "text/plain" can be used to find services (apps and components) "which can open text/plain".</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKServiceType.html" title="A service type is the generic notion for a mimetype, a type of service instead of a type of file...">KServiceType</a> </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8h_source.html#l00047">47</a> of file <a class="el" href="kmimetype_8h_source.html">kmimetype.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="afb260618356cd68a40f81b4f97560aed"></a><!-- doxytag: member="KMimeType::KMimeType" ref="afb260618356cd68a40f81b4f97560aed" args="(const QString &amp;_fullpath, const QString &amp;_type, const QString &amp;_icon, const QString &amp;_comment, const QStringList &amp;_patterns)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMimeType::KMimeType </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_fullpath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_icon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_comment</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstringlist.html">QStringList</a> &amp;&#160;</td>
          <td class="paramname"><em>_patterns</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor. </p>
<p>You may pass in arguments to create a mimetype with specific properties.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_fullpath</td><td>the path to the configuration file (.desktop) </td></tr>
    <tr><td class="paramname">_type</td><td>the mime type itself </td></tr>
    <tr><td class="paramname">_icon</td><td>the name of the icon that represens the mime type </td></tr>
    <tr><td class="paramname">_comment</td><td>a comment describing the mime type </td></tr>
    <tr><td class="paramname">_patterns</td><td>a list of file globs that describes the names (or extensions) of the files with this mime type </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00355">355</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af027de2eb79040fc0ee67f27d03d763d"></a><!-- doxytag: member="KMimeType::KMimeType" ref="af027de2eb79040fc0ee67f27d03d763d" args="(const QString &amp;_fullpath)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMimeType::KMimeType </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_fullpath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a mimetype and take all information from a config file. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_fullpath</td><td>the path to the configuration file (.desktop) </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00362">362</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a56dc7f5e3efe85d4f5b363bb580d58f6"></a><!-- doxytag: member="KMimeType::KMimeType" ref="a56dc7f5e3efe85d4f5b363bb580d58f6" args="(KDesktopFile *config)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMimeType::KMimeType </td>
          <td>(</td>
          <td class="paramtype">KDesktopFile *&#160;</td>
          <td class="paramname"><em>config</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a mimetype and take all information from a desktop file. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>the desktop configuration file that describes the mime type </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00371">371</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a98133da8deac359e0c9c6bdf31760e74"></a><!-- doxytag: member="KMimeType::allMimeTypes" ref="a98133da8deac359e0c9c6bdf31760e74" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qvaluelist.html">KMimeType::List</a> KMimeType::allMimeTypes </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get all the mimetypes. </p>
<p>Useful for showing the list of available mimetypes. More memory consuming than the ones above, don't use unless really necessary. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the list of all existing KMimeTypes </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00160">160</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab7875fb77b0352db61cd04aa657dc68c"></a><!-- doxytag: member="KMimeType::buildDefaultType" ref="ab7875fb77b0352db61cd04aa657dc68c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KMimeType::buildDefaultType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This function makes sure that the default mime type exists. </p>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00068">68</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a38b8880329316b4f478637bd4f27735e"></a><!-- doxytag: member="KMimeType::checkEssentialMimeTypes" ref="a38b8880329316b4f478637bd4f27735e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KMimeType::checkEssentialMimeTypes </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This function makes sure that vital mime types are installed. </p>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00097">97</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="adaba131b79d39768a12c95ed84e9cf09"></a><!-- doxytag: member="KMimeType::comment" ref="adaba131b79d39768a12c95ed84e9cf09" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KMimeType::comment </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the descriptive comment associated with the MIME type. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the descriptive comment associated with the MIME type </dd></dl>

<p>Reimplemented from <a class="el" href="classKServiceType.html#a27401d68aaf4adb24b54f2d60b3b32ae">KServiceType</a>.</p>

<p>Definition at line <a class="el" href="kmimetype_8h_source.html#l00202">202</a> of file <a class="el" href="kmimetype_8h_source.html">kmimetype.h</a>.</p>

</div>
</div>
<a class="anchor" id="a095ded5b86a08b5a8ef9584e82c438e0"></a><!-- doxytag: member="KMimeType::comment" ref="a095ded5b86a08b5a8ef9584e82c438e0" args="(const QString &amp;, bool) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="elRef" href="qstring.html">QString</a> KMimeType::comment </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the descriptive comment associated with the MIME type. </p>
<p>The arguments are unused, but provided so that <a class="el" href="classKMimeType.html" title="Represent a mime type, like &quot;text/plain&quot;, and the data that is associated with it.">KMimeType</a> derived classes can use them.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The descriptive comment associated with the MIME type, if any. </dd></dl>

<p>Reimplemented in <a class="el" href="classKFolderType.html#a560141364117842fdf9ac2fad8c8a10b">KFolderType</a>, and <a class="el" href="classKDEDesktopMimeType.html#aad2fdb81798ef1c0944418b3766ffd01">KDEDesktopMimeType</a>.</p>

<p>Definition at line <a class="el" href="kmimetype_8h_source.html#l00211">211</a> of file <a class="el" href="kmimetype_8h_source.html">kmimetype.h</a>.</p>

</div>
</div>
<a class="anchor" id="acc99875b6ca849880143de3f4ea6d4fa"></a><!-- doxytag: member="KMimeType::comment" ref="acc99875b6ca849880143de3f4ea6d4fa" args="(const KURL &amp;, bool) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="elRef" href="qstring.html">QString</a> KMimeType::comment </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the descriptive comment associated with the MIME type. </p>
<p>The arguments are unused, but provided so that <a class="el" href="classKMimeType.html" title="Represent a mime type, like &quot;text/plain&quot;, and the data that is associated with it.">KMimeType</a> derived classes can use them.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The descriptive comment associated with the MIME type, if any. </dd></dl>

<p>Reimplemented in <a class="el" href="classKFolderType.html#a2e0e6b88af11549bd8843f7e5340bc38">KFolderType</a>, and <a class="el" href="classKDEDesktopMimeType.html#a65f31d2c322682f1e7fdb7be4e6bee00">KDEDesktopMimeType</a>.</p>

<p>Definition at line <a class="el" href="kmimetype_8h_source.html#l00220">220</a> of file <a class="el" href="kmimetype_8h_source.html">kmimetype.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac2d9d6aa76e062cd701da677846e76e4"></a><!-- doxytag: member="KMimeType::defaultMimeType" ref="ac2d9d6aa76e062cd701da677846e76e4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="elRef" href="qstring.html">QString</a> &amp; KMimeType::defaultMimeType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the name of the default mimetype. </p>
<p>Always application/octet-stream, but this method exists for performance purposes. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the name of the default mime type, always "application/octet-stream" </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l01154">1154</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aae74a13ef3a3e19933b3b21e30da57b6"></a><!-- doxytag: member="KMimeType::defaultMimeTypePtr" ref="aae74a13ef3a3e19933b3b21e30da57b6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMimeType::Ptr KMimeType::defaultMimeTypePtr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the default mimetype. </p>
<p>Always application/octet-stream. This can be used to check the result of mimeType(name). </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the "application/octet-stream" mimetype pointer. </dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.2 </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00089">89</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9630ae3a8f78ce64da5ced50b8b108a2"></a><!-- doxytag: member="KMimeType::errorMissingMimeType" ref="a9630ae3a8f78ce64da5ced50b8b108a2" args="(const QString &amp;_type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KMimeType::errorMissingMimeType </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_type</em></td><td>)</td>
          <td><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal a missing mime type. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_type</td><td>the missinf mime type </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00134">134</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2ddd2f40999c2298c07510f8c54fa7e3"></a><!-- doxytag: member="KMimeType::favIconForURL" ref="a2ddd2f40999c2298c07510f8c54fa7e3" args="(const KURL &amp;url)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KMimeType::favIconForURL </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>url</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the "favicon" (see <a href="http://www.favicon.com">http://www.favicon.com</a>) for the given <code>url</code>, if available. </p>
<p>Does NOT attempt to download the favicon, it only returns one that is already available.</p>
<p>If unavailable, returns QString::null. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">url</td><td>the URL of the favicon </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the name of the favicon, or QString::null </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00528">528</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a059de448aa15a1c6e0b84985e727934d"></a><!-- doxytag: member="KMimeType::findByContent" ref="a059de448aa15a1c6e0b84985e727934d" args="(const QByteArray &amp;data, int *accuracy=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMimeType::Ptr KMimeType::findByContent </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qbytearray.html">QByteArray</a> &amp;&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>accuracy</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tries to find out the MIME type of a data chunk by looking for certain magic numbers and characteristic strings in it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>the data to examine </td></tr>
    <tr><td class="paramname">accuracy</td><td>If not a null pointer, *accuracy is set to the accuracy of the match (which is in the range 0..100) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a pointer to the <a class="el" href="classKMimeType.html" title="Represent a mime type, like &quot;text/plain&quot;, and the data that is associated with it.">KMimeType</a>. application/octet-stream's <a class="el" href="classKMimeType.html" title="Represent a mime type, like &quot;text/plain&quot;, and the data that is associated with it.">KMimeType</a> of the type can not be found this way. </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00311">311</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6f7b66e69ab05e54c47d81e6912018e2"></a><!-- doxytag: member="KMimeType::findByFileContent" ref="a6f7b66e69ab05e54c47d81e6912018e2" args="(const QString &amp;fileName, int *accuracy=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMimeType::Ptr KMimeType::findByFileContent </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>accuracy</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tries to find out the MIME type of a file by looking for certain magic numbers and characteristic strings in it. </p>
<p>This function is similar to the previous one. Note that the file name is not used for determining the file type, it is just used for loading the file's contents.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fileName</td><td>the path to the file </td></tr>
    <tr><td class="paramname">accuracy</td><td>If not a null pointer, *accuracy is set to the accuracy of the match (which is in the range 0..100) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a pointer to the <a class="el" href="classKMimeType.html" title="Represent a mime type, like &quot;text/plain&quot;, and the data that is associated with it.">KMimeType</a>. application/octet-stream's <a class="el" href="classKMimeType.html" title="Represent a mime type, like &quot;text/plain&quot;, and the data that is associated with it.">KMimeType</a> of the type can not be found this way. </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00319">319</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a08a491a75215e970bccc869a2b408c82"></a><!-- doxytag: member="KMimeType::findByPath" ref="a08a491a75215e970bccc869a2b408c82" args="(const QString &amp;path, mode_t mode=0, bool fast_mode=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMimeType::Ptr KMimeType::findByPath </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">mode_t&#160;</td>
          <td class="paramname"><em>mode</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>fast_mode</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Finds a <a class="el" href="classKMimeType.html" title="Represent a mime type, like &quot;text/plain&quot;, and the data that is associated with it.">KMimeType</a> with the given <code>_url</code>. </p>
<p>This function looks at mode_t first. If that does not help it looks at the extension. This is fine for FTP, FILE, TAR and friends, but is not for HTTP ( cgi scripts! ). You should use <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> instead, but this function returns immediately while <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> is async. If no extension matches, then the file will be examined if the URL a local file or "application/octet-stream" is returned otherwise.</p>
<p>Equivalent to </p>
<div class="fragment"><pre class="fragment"> KURL u;
 u.setPath(path);
 <span class="keywordflow">return</span> <a class="code" href="classKMimeType.html#a19c6563574d22a7395c4686c06e1dec9" title="Finds a KMimeType with the given _url.">findByURL</a>( u, mode, <span class="keyword">true</span>, fast_mode );
</pre></div><dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>the path to the file </td></tr>
    <tr><td class="paramname">mode</td><td>the mode of the file (used, for example, to identify executables) </td></tr>
    <tr><td class="paramname">fast_mode</td><td>If set to true no disk access is allowed to find out the mimetype. The result may be suboptimal, but it is <em>fast</em>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pointer to the matching mimetype. 0L is never returned. </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00304">304</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a19c6563574d22a7395c4686c06e1dec9"></a><!-- doxytag: member="KMimeType::findByURL" ref="a19c6563574d22a7395c4686c06e1dec9" args="(const KURL &amp;_url, mode_t _mode=0, bool _is_local_file=false, bool _fast_mode=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMimeType::Ptr KMimeType::findByURL </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">mode_t&#160;</td>
          <td class="paramname"><em>_mode</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>_is_local_file</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>_fast_mode</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Finds a <a class="el" href="classKMimeType.html" title="Represent a mime type, like &quot;text/plain&quot;, and the data that is associated with it.">KMimeType</a> with the given <code>_url</code>. </p>
<p>This function looks at mode_t first. If that does not help it looks at the extension. This is fine for FTP, FILE, TAR and friends, but is not for HTTP ( cgi scripts! ). You should use <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> instead, but this function returns immediately while <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> is async. If no extension matches, then the file will be examined if the URL a local file or "application/octet-stream" is returned otherwise.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>Is the right most URL with a filesystem protocol. It is up to you to find out about that if you have a nested URL. For example "http://localhost/mist.gz#gzip:/decompress" would have to pass the "http://..." URL part, while "file:/tmp/x.tar#tar:/src/test.gz#gzip:/decompress" would have to pass the "tar:/..." part of the URL, since gzip is a filter protocol and not a filesystem protocol. </td></tr>
    <tr><td class="paramname">_mode</td><td>the mode of the file (used, for example, to identify executables) </td></tr>
    <tr><td class="paramname">_is_local_file</td><td>true if the file is local </td></tr>
    <tr><td class="paramname">_fast_mode</td><td>If set to true no disk access is allowed to find out the mimetype. The result may be suboptimal, but it is <em>fast</em>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pointer to the matching mimetype. 0L is never returned. <em>Very</em> <em>Important:</em> Don't store the result in a KMimeType* ! </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00165">165</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ada1fb6ca72ab5fc6ba7e1540ba0c341a"></a><!-- doxytag: member="KMimeType::findFormatByFileContent" ref="ada1fb6ca72ab5fc6ba7e1540ba0c341a" args="(const QString &amp;fileName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMimeType::Format KMimeType::findFormatByFileContent </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether a file has an internal format that is human readable, or that would be human readable after decompression. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>3.2 </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00330">330</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acbe9afca3547b3f337f2a9e567367256"></a><!-- doxytag: member="KMimeType::icon" ref="acbe9afca3547b3f337f2a9e567367256" args="(const KURL &amp;, bool) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="elRef" href="qstring.html">QString</a> KMimeType::icon </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the filename of the icon associated with the mimetype. </p>
<p>The arguments are unused, but provided so that KMimeType-derived classes can use them (e.g. <a class="el" href="classKFolderType.html" title="Folder mime type.">KFolderType</a> uses the URL to return one out of 2 icons)</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The path to the icon associated with this MIME type. </dd></dl>

<p>Reimplemented in <a class="el" href="classKFolderType.html#a992aafa7c353e43c621229d88af9f752">KFolderType</a>, and <a class="el" href="classKDEDesktopMimeType.html#a41568763c0828f2789583ae1d0439ee7">KDEDesktopMimeType</a>.</p>

<p>Definition at line <a class="el" href="kmimetype_8h_source.html#l00110">110</a> of file <a class="el" href="kmimetype_8h_source.html">kmimetype.h</a>.</p>

</div>
</div>
<a class="anchor" id="a231913c8665be28b6194ed5704de20f6"></a><!-- doxytag: member="KMimeType::icon" ref="a231913c8665be28b6194ed5704de20f6" args="(const QString &amp;, bool) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="elRef" href="qstring.html">QString</a> KMimeType::icon </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the filename of the icon associated with the mimetype. </p>
<p>The arguments are unused, but provided so that KMimeType-derived classes can use them (e.g. <a class="el" href="classKFolderType.html" title="Folder mime type.">KFolderType</a> uses the URL to return one out of 2 icons)</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The path to the icon associated with this MIME type. </dd></dl>

<p>Reimplemented in <a class="el" href="classKFolderType.html#a03053e8b6faa722fcb2c53af3d2d7052">KFolderType</a>, and <a class="el" href="classKDEDesktopMimeType.html#a67a1fafec71d9ce4a6a8f21af185bf5b">KDEDesktopMimeType</a>.</p>

<p>Definition at line <a class="el" href="kmimetype_8h_source.html#l00100">100</a> of file <a class="el" href="kmimetype_8h_source.html">kmimetype.h</a>.</p>

</div>
</div>
<a class="anchor" id="a542518f1e2d2d45873987a4845885541"></a><!-- doxytag: member="KMimeType::iconForURL" ref="a542518f1e2d2d45873987a4845885541" args="(const KURL &amp;_url, mode_t _mode=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KMimeType::iconForURL </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">mode_t&#160;</td>
          <td class="paramname"><em>_mode</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The same functionality as <a class="el" href="classKMimeType.html#a32b6c4bd05def696907e491cfb2bf801" title="Convenience method to find the pixmap for a URL.">pixmapForURL()</a>, but this method returns the name of the icon to load. </p>
<p>You'll have to use KIconLoader to load the pixmap for it. The advantage of this method is that you can store the result, and then use it later on for any kind of size. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>URL for the file </td></tr>
    <tr><td class="paramname">_mode</td><td>the mode of the file. The mode may modify the icon with overlays that show special properties of the icon. Use 0 for default </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the name of the icon. The name of a default icon if there is no icon for the mime type </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00503">503</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0ca33f89a8381dd331c23cda15294da1"></a><!-- doxytag: member="KMimeType::is" ref="a0ca33f89a8381dd331c23cda15294da1" args="(const QString &amp;mimeTypeName) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KMimeType::is </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>mimeTypeName</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Do not use <a class="el" href="classKServiceType.html#a95395b854090c5814ff8456980a1a24d" title="Returns the name of this service type.">name()</a>=="somename" anymore, to check for a given mimetype. </p>
<p>For mimetype inheritance to work, use is("somename") instead. Warning, do not use <a class="el" href="classKServiceType.html#af04a5f3a394cb571e6af0b9358208d59" title="Checks whether this service type is or inherits from servTypeName.">inherits()</a>, that's the servicetype inheritance concept! </p>
<dl class="since"><dt><b>Since:</b></dt><dd>3.2 </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00559">559</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="abe539216a0c961c91cbc125a09b7da0d"></a><!-- doxytag: member="KMimeType::load" ref="abe539216a0c961c91cbc125a09b7da0d" args="(QDataStream &amp;qs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KMimeType::load </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qdatastream.html">QDataStream</a> &amp;&#160;</td>
          <td class="paramname"><em>qs</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Load the mimetype from a stream. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">qs</td><td>the stream to load from </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="classKServiceType.html">KServiceType</a>.</p>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00413">413</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1fd115a75a84e762e31d8424eee683c0"></a><!-- doxytag: member="KMimeType::mimeType" ref="a1fd115a75a84e762e31d8424eee683c0" args="(const QString &amp;_name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMimeType::Ptr KMimeType::mimeType </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_name</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieve a pointer to the mime type <code>_name</code> or a pointer to the default mime type "application/octet-stream". </p>
<p>0L is <em>never</em> returned.</p>
<p><em>Very</em> <em>important:</em> Don't store the result in a KMimeType* !</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_name</td><td>the name of the mime type </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the pointer to the <a class="el" href="classKMimeType.html" title="Represent a mime type, like &quot;text/plain&quot;, and the data that is associated with it.">KMimeType</a> with the given <code>_name</code>, or a pointer to the application/octet-stream <a class="el" href="classKMimeType.html" title="Represent a mime type, like &quot;text/plain&quot;, and the data that is associated with it.">KMimeType</a> if not found </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKServiceType.html#acdcbdb4e036d2b49432db9c71591860c" title="Returns a pointer to the servicetype &#39;_name&#39; or 0L if the service type is unknown.">KServiceType::serviceType</a> </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00141">141</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac2d8e43a2ef749f5ba5de7cff507cac6"></a><!-- doxytag: member="KMimeType::parentMimeType" ref="ac2d8e43a2ef749f5ba5de7cff507cac6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KMimeType::parentMimeType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>If this mimetype inherits from ("is also") another mimetype, return the name of the parent. </p>
<p>For instance a text/x-log is a special kind of text/plain, so the definition of text/x-log can say "X-KDE-IsAlso=text/plain". Or an smb-workgroup is a special kind of inode/directory, etc. This mechanism can also be used to rename mimetypes and preserve compat.</p>
<p>Note that this notion doesn't map to the servicetype inheritance mechanism, since an application that handles the specific type doesn't necessarily handle the base type. The opposite is true though.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the parent mime type, or QString::null if not set </dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.2 </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00553">553</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acfbdda39518455e64d13473b3c65af86"></a><!-- doxytag: member="KMimeType::patterns" ref="acfbdda39518455e64d13473b3c65af86" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="elRef" href="qstringlist.html">QStringList</a>&amp; KMimeType::patterns </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieve the list of patterns associated with the MIME Type. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a list of file globs that describe the file names (or, usually, the extensions) of files with this mime type </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8h_source.html#l00227">227</a> of file <a class="el" href="kmimetype_8h_source.html">kmimetype.h</a>.</p>

</div>
</div>
<a class="anchor" id="a753294a47fd61ccae36dac16f656364f"></a><!-- doxytag: member="KMimeType::pixmap" ref="a753294a47fd61ccae36dac16f656364f" args="(const KURL &amp;_url, KIcon::Group _group, int _force_size=0, int _state=0, QString *_path=0L) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qpixmap.html">QPixmap</a> KMimeType::pixmap </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">KIcon::Group&#160;</td>
          <td class="paramname"><em>_group</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_force_size</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_state</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qstring.html">QString</a> *&#160;</td>
          <td class="paramname"><em>_path</em> = <code>0L</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find the pixmap for a given file of this mimetype. </p>
<p>Convenience method that uses <a class="el" href="classKMimeType.html#a231913c8665be28b6194ed5704de20f6" title="Return the filename of the icon associated with the mimetype.">icon()</a>, but also locates and load the pixmap.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>URL for the file. </td></tr>
    <tr><td class="paramname">_group</td><td>The icon group where the icon is going to be used. </td></tr>
    <tr><td class="paramname">_force_size</td><td>Override globallly configured icon size. Use 0 for the default size </td></tr>
    <tr><td class="paramname">_state</td><td>The icon state, one of: KIcon::DefaultState, KIcon::ActiveState or KIcon::DisabledState. </td></tr>
    <tr><td class="paramname">_path</td><td>Output parameter to get the full path. Seldom needed. Ignored if 0 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the pixmap of the URL, can be a default icon if not found </dd></dl>

<p>Reimplemented in <a class="el" href="classKDEDesktopMimeType.html#a1ee5ebbcedb8c242b0959f1f127ad8ae">KDEDesktopMimeType</a>.</p>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00469">469</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2bfe7c2131960aff1511da030d1ebf68"></a><!-- doxytag: member="KMimeType::pixmap" ref="a2bfe7c2131960aff1511da030d1ebf68" args="(KIcon::Group group, int force_size=0, int state=0, QString *path=0L) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qpixmap.html">QPixmap</a> KMimeType::pixmap </td>
          <td>(</td>
          <td class="paramtype">KIcon::Group&#160;</td>
          <td class="paramname"><em>group</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>force_size</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>state</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qstring.html">QString</a> *&#160;</td>
          <td class="paramname"><em>path</em> = <code>0L</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Use this function only if you don't have a special URL for which you search a pixmap. </p>
<p>This function is useful to find out, which icon is usually chosen for a certain mime type. Since no URL is passed, it is impossible to obey icon hints in desktop entries for example. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">group</td><td>The icon group where the icon is going to be used. </td></tr>
    <tr><td class="paramname">force_size</td><td>Override globallly configured icon size. Use 0 for the default size </td></tr>
    <tr><td class="paramname">state</td><td>The icon state, one of: <code>KIcon::DefaultState</code>, <code>KIcon::ActiveState</code> or <code>KIcon::DisabledState</code>. </td></tr>
    <tr><td class="paramname">path</td><td>Output parameter to get the full path. Seldom needed. Ignored if 0 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the pixmap of the mime type, can be a default icon if not found </dd></dl>

<p>Reimplemented in <a class="el" href="classKDEDesktopMimeType.html#acbe6a99d2196ec02f5960680320da560">KDEDesktopMimeType</a>.</p>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00453">453</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a32b6c4bd05def696907e491cfb2bf801"></a><!-- doxytag: member="KMimeType::pixmapForURL" ref="a32b6c4bd05def696907e491cfb2bf801" args="(const KURL &amp;_url, mode_t _mode=0, KIcon::Group _group=KIcon::Desktop, int _force_size=0, int _state=0, QString *_path=0L)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qpixmap.html">QPixmap</a> KMimeType::pixmapForURL </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">mode_t&#160;</td>
          <td class="paramname"><em>_mode</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">KIcon::Group&#160;</td>
          <td class="paramname"><em>_group</em> = <code>KIcon::Desktop</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_force_size</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_state</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qstring.html">QString</a> *&#160;</td>
          <td class="paramname"><em>_path</em> = <code>0L</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convenience method to find the pixmap for a URL. </p>
<p>Call this one when you don't know the mimetype.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>URL for the file. </td></tr>
    <tr><td class="paramname">_mode</td><td>the mode of the file. The mode may modify the icon with overlays that show special properties of the icon. Use 0 for default </td></tr>
    <tr><td class="paramname">_group</td><td>The icon group where the icon is going to be used. </td></tr>
    <tr><td class="paramname">_force_size</td><td>Override globally configured icon size. Use 0 for the default size </td></tr>
    <tr><td class="paramname">_state</td><td>The icon state, one of: KIcon::DefaultState, KIcon::ActiveState or KIcon::DisabledState. </td></tr>
    <tr><td class="paramname">_path</td><td>Output parameter to get the full path. Seldom needed. Ignored if 0 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the pixmap of the URL, can be a default icon if not found </dd></dl>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00485">485</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a974162f18678f1c8c7c0fe482e057f99"></a><!-- doxytag: member="KMimeType::property" ref="a974162f18678f1c8c7c0fe482e057f99" args="(const QString &amp;_name) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qvariant.html">QVariant</a> KMimeType::property </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_name</em></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the property with the given <code>_name</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_name</td><td>the name of the property </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the value of the property </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKMimeType.html#aea1ecfe20c07ea0480e2769966825e46" title="Retrieves a list of all properties associated with this KMimeType.">propertyNames()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classKServiceType.html#a1e408eaa300f2e69fab73278260dff44">KServiceType</a>.</p>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00433">433</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aea1ecfe20c07ea0480e2769966825e46"></a><!-- doxytag: member="KMimeType::propertyNames" ref="aea1ecfe20c07ea0480e2769966825e46" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstringlist.html">QStringList</a> KMimeType::propertyNames </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieves a list of all properties associated with this <a class="el" href="classKMimeType.html" title="Represent a mime type, like &quot;text/plain&quot;, and the data that is associated with it.">KMimeType</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a list of all property names </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKMimeType.html#a974162f18678f1c8c7c0fe482e057f99" title="Returns the property with the given _name.">property()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classKServiceType.html#a4279b028b6f9fb45bb43721a899d4655">KServiceType</a>.</p>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00441">441</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6e306ada96a57bb00f5b675977f8d6ec"></a><!-- doxytag: member="KMimeType::save" ref="a6e306ada96a57bb00f5b675977f8d6ec" args="(QDataStream &amp;qs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KMimeType::save </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qdatastream.html">QDataStream</a> &amp;&#160;</td>
          <td class="paramname"><em>qs</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Save the mimetype to a stream. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">qs</td><td>the stream to save to </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="classKServiceType.html">KServiceType</a>.</p>

<p>Definition at line <a class="el" href="kmimetype_8cpp_source.html#l00425">425</a> of file <a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a079d3e22969e5a25b2e9103cc0c69e80"></a><!-- doxytag: member="KMimeType::s_bChecked" ref="a079d3e22969e5a25b2e9103cc0c69e80" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classKMimeType.html#a079d3e22969e5a25b2e9103cc0c69e80">KMimeType::s_bChecked</a> = false<code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>true if check for vital mime types has been done. </p>

<p>Definition at line <a class="el" href="kmimetype_8h_source.html#l00459">459</a> of file <a class="el" href="kmimetype_8h_source.html">kmimetype.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kmimetype_8h_source.html">kmimetype.h</a></li>
<li><a class="el" href="kmimetype_8cpp_source.html">kmimetype.cpp</a></li>
</ul>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kio/kio</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="modules.html">Modules</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKACL.html">kacl</option>,  <option value="classKAr.html">kar</option>,  <option value="classKArchive.html">karchive</option>,  <option value="classKArchiveDirectory.html">karchivedirectory</option>,  <option value="classKArchiveEntry.html">karchiveentry</option>,  <option value="classKArchiveFile.html">karchivefile</option>,  <option value="classKAutoMount.html">kautomount</option>,  <option value="classKAutoUnmount.html">kautounmount</option>,  <option value="classKDataTool.html">kdatatool</option>,  <option value="classKDataToolAction.html">kdatatoolaction</option>,  <option value="classKDataToolInfo.html">kdatatoolinfo</option>,  <option value="classKDCOPServiceStarter.html">kdcopservicestarter</option>,  <option value="classKDEDesktopMimeType.html">kdedesktopmimetype</option>,  <option value="classKDirLister.html">kdirlister</option>,  <option value="classKDirNotify.html">kdirnotify</option>,  <option value="classKDirWatch.html">kdirwatch</option>,  <option value="classKEMailSettings.html">kemailsettings</option>,  <option value="classKExecMimeType.html">kexecmimetype</option>,  <option value="classKFileFilter.html">kfilefilter</option>,  <option value="classKFileItem.html">kfileitem</option>,  <option value="classKFileMetaInfo.html">kfilemetainfo</option>,  <option value="classKFileMetaInfoGroup.html">kfilemetainfogroup</option>,  <option value="classKFileMetaInfoItem.html">kfilemetainfoitem</option>,  <option value="classKFileMimeTypeInfo.html">kfilemimetypeinfo</option>,  <option value="classKFileMimeTypeInfo_1_1GroupInfo.html">kfilemimetypeinfo::groupinfo</option>,  <option value="classKFileMimeTypeInfo_1_1ItemInfo.html">kfilemimetypeinfo::iteminfo</option>,  <option value="classKFilePlugin.html">kfileplugin</option>,  <option value="classKFileShare.html">kfileshare</option>,  <option value="classKFilterBase.html">kfilterbase</option>,  <option value="classKFilterDev.html">kfilterdev</option>,  <option value="classKFolderType.html">kfoldertype</option>,  <option value="classKImageIO.html">kimageio</option>,  <option value="classKIO_1_1AuthInfo.html">kio::authinfo</option>,  <option value="classKIO_1_1ChmodJob.html">kio::chmodjob</option>,  <option value="classKIO_1_1Connection.html">kio::connection</option>,  <option value="classKIO_1_1CopyJob.html">kio::copyjob</option>,  <option value="classKIO_1_1DataProtocol.html">kio::dataprotocol</option>,  <option value="classKIO_1_1DataSlave.html">kio::dataslave</option>,  <option value="classKIO_1_1DavJob.html">kio::davjob</option>,  <option value="classKIO_1_1DeleteJob.html">kio::deletejob</option>,  <option value="classKIO_1_1FileCopyJob.html">kio::filecopyjob</option>,  <option value="classKIO_1_1ForwardingSlaveBase.html">kio::forwardingslavebase</option>,  <option value="classKIO_1_1Job.html">kio::job</option>,  <option value="classKIO_1_1ListJob.html">kio::listjob</option>,  <option value="classKIO_1_1MetaData.html">kio::metadata</option>,  <option value="classKIO_1_1MetaInfoJob.html">kio::metainfojob</option>,  <option value="classKIO_1_1MimetypeJob.html">kio::mimetypejob</option>,  <option value="classKIO_1_1MkdirJob.html">kio::mkdirjob</option>,  <option value="classKIO_1_1MultiGetJob.html">kio::multigetjob</option>,  <option value="classKIO_1_1NetAccess.html">kio::netaccess</option>,  <option value="classKIO_1_1NetRC.html">kio::netrc</option>,  <option value="classKIO_1_1PasswordDialog.html">kio::passworddialog</option>,  <option value="classKIO_1_1PreviewJob.html">kio::previewjob</option>,  <option value="classKIO_1_1ProgressBase.html">kio::progressbase</option>,  <option value="classKIO_1_1RenameDlg.html">kio::renamedlg</option>,  <option value="classKIO_1_1Scheduler.html">kio::scheduler</option>,  <option value="classKIO_1_1SimpleJob.html">kio::simplejob</option>,  <option value="classKIO_1_1Slave.html">kio::slave</option>,  <option value="classKIO_1_1SlaveBase.html">kio::slavebase</option>,  <option value="classKIO_1_1SlaveConfig.html">kio::slaveconfig</option>,  <option value="classKIO_1_1SlaveInterface.html">kio::slaveinterface</option>,  <option value="classKIO_1_1StatJob.html">kio::statjob</option>,  <option value="classKIO_1_1StatusbarProgress.html">kio::statusbarprogress</option>,  <option value="classKIO_1_1StoredTransferJob.html">kio::storedtransferjob</option>,  <option value="classKIO_1_1TCPSlaveBase.html">kio::tcpslavebase</option>,  <option value="classKIO_1_1TransferJob.html">kio::transferjob</option>,  <option value="classKLimitedIODevice.html">klimitediodevice</option>,  <option value="classKMimeMagic.html">kmimemagic</option>,  <option value="classKMimeMagicResult.html">kmimemagicresult</option>,  <option value="classKMimeType.html">kmimetype</option>,  <option value="classKMimeTypeChooser.html">kmimetypechooser</option>,  <option value="classKMimeTypeChooserDialog.html">kmimetypechooserdialog</option>,  <option value="classKMimeTypeResolver.html">kmimetyperesolver</option>,  <option value="classKNFSShare.html">knfsshare</option>,  <option value="classKOCRDialog.html">kocrdialog</option>,  <option value="classKOCRDialogFactory.html">kocrdialogfactory</option>,  <option value="classKOpenWithHandler.html">kopenwithhandler</option>,  <option value="classKProtocolInfo.html">kprotocolinfo</option>,  <option value="classKProtocolManager.html">kprotocolmanager</option>,  <option value="classKRemoteEncoding.html">kremoteencoding</option>,  <option value="classKRun.html">krun</option>,  <option value="classKSambaShare.html">ksambashare</option>,  <option value="classKScanDialog.html">kscandialog</option>,  <option value="classKScanDialogFactory.html">kscandialogfactory</option>,  <option value="classKService.html">kservice</option>,  <option value="classKServiceGroup.html">kservicegroup</option>,  <option value="classKServiceOffer.html">kserviceoffer</option>,  <option value="classKServiceType.html">kservicetype</option>,  <option value="classKServiceTypeProfile.html">kservicetypeprofile</option>,  <option value="classKShellCompletion.html">kshellcompletion</option>,  <option value="classKShred.html">kshred</option>,  <option value="classKSimpleFileFilter.html">ksimplefilefilter</option>,  <option value="classKTar.html">ktar</option>,  <option value="classKTrader.html">ktrader</option>,  <option value="classKURIFilter.html">kurifilter</option>,  <option value="classKURIFilterData.html">kurifilterdata</option>,  <option value="classKURIFilterPlugin.html">kurifilterplugin</option>,  <option value="classKURIFilterPluginList.html">kurifilterpluginlist</option>,  <option value="classKURLCompletion.html">kurlcompletion</option>,  <option value="classKURLPixmapProvider.html">kurlpixmapprovider</option>,  <option value="classKZip.html">kzip</option>,  <option value="classObserver.html">observer</option>,  <option value="classRenameDlgPlugin.html">renamedlgplugin</option>,  <option value="classThumbCreator.html">thumbcreator</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../../arts/html/index.html">arts</a></li><li><a href="../../../dcop/html/index.html">dcop</a></li><li><a href="../../../dnssd/html/index.html">dnssd</a></li><li><a href="../../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../../kabc/html/index.html">kabc</a></li><li><a href="../../../kate/html/index.html">kate</a></li><li><a href="../../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../../kdecore/html/index.html">kdecore</a></li><li><a href="../../../kded/html/index.html">kded</a></li><li><a href="../../../kdefx/html/index.html">kdefx</a></li><li><a href="../../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../../kdesu/html/index.html">kdesu</a></li><li><a href="../../../kdeui/html/index.html">kdeui</a></li><li><a href="../../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../../khtml/html/index.html">khtml</a></li><li><a href="../../../kimgio/html/index.html">kimgio</a></li><li><a href="../../../kinit/html/index.html">kinit</a></li><li><a href="../../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../../kioslave/http/html/index.html">http</a></li><li><a href="../../../kjs/html/index.html">kjs</a></li><li><a href="../../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../../kparts/html/index.html">kparts</a></li><li><a href="../../../kresources/html/index.html">kresources</a></li><li><a href="../../../kspell2/html/index.html">kspell2</a></li><li><a href="../../../kunittest/html/index.html">kunittest</a></li><li><a href="../../../kutils/html/index.html">kutils</a></li><li><a href="../../../kwallet/html/index.html">kwallet</a></li><li><a href="../../../libkmid/html/index.html">libkmid</a></li><li><a href="../../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>