Sophie

Sophie

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

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: kservice.h Source File (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 class="header">
  <div class="headertitle">
<div class="title">kservice.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* This file is part of the KDE project</span>
<a name="l00002"></a>00002 <span class="comment">   Copyright (C) 1998, 1999 Torben Weis &lt;weis@kde.org&gt;</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment">   This library is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment">   modify it under the terms of the GNU Library General Public</span>
<a name="l00006"></a>00006 <span class="comment">   License as published by the Free Software Foundation; either</span>
<a name="l00007"></a>00007 <span class="comment">   version 2 of the License, or (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment"></span>
<a name="l00009"></a>00009 <span class="comment">   This library is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">   but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00012"></a>00012 <span class="comment">   Library General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">   You should have received a copy of the GNU Library General Public License</span>
<a name="l00015"></a>00015 <span class="comment">   along with this library; see the file COPYING.LIB.  If not, write to</span>
<a name="l00016"></a>00016 <span class="comment">   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
<a name="l00017"></a>00017 <span class="comment">   Boston, MA 02110-1301, USA.</span>
<a name="l00018"></a>00018 <span class="comment">*/</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef __kservices_h__</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define __kservices_h__</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;qstringlist.h&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;qmap.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;qvariant.h&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;kicontheme.h&gt;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;ksycocaentry.h&quot;</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="keyword">class </span><a class="codeRef" href="qdatastream.html">QDataStream</a>;
<a name="l00031"></a>00031 <span class="keyword">class </span>KDesktopFile;
<a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>;
<a name="l00033"></a>00033 <span class="keyword">class </span>KBuildSycoca;
<a name="l00034"></a>00034 <span class="keyword">class </span><a class="codeRef" href="qwidget.html">QWidget</a>;
<a name="l00035"></a>00035 
<a name="l00048"></a><a class="code" href="classKService.html">00048</a> <span class="keyword">class </span>KIO_EXPORT <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a> : <span class="keyword">public</span> KSycocaEntry
<a name="l00049"></a>00049 {
<a name="l00050"></a>00050   K_SYCOCATYPE( KST_KService, KSycocaEntry )
<a name="l00051"></a>00051 
<a name="l00052"></a>00052   <span class="keyword">friend</span> <span class="keyword">class </span>KBuildSycoca;
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="keyword">public</span>:
<a name="l00055"></a>00055   <span class="keyword">typedef</span> KSharedPtr&lt;KService&gt; Ptr;
<a name="l00056"></a>00056   <span class="keyword">typedef</span> <a class="codeRef" href="qvaluelist.html">QValueList&lt;Ptr&gt;</a> <a class="codeRef" href="qvaluelist.html">List</a>;
<a name="l00057"></a>00057 <span class="keyword">public</span>:
<a name="l00064"></a>00064   <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp; _name, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;_exec, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;_icon);
<a name="l00065"></a>00065 
<a name="l00071"></a>00071   <span class="keyword">explicit</span> <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp; _fullpath );
<a name="l00072"></a>00072 
<a name="l00077"></a>00077   <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>( KDesktopFile *config ); <span class="comment">// KDE-4.0: make explicit</span>
<a name="l00078"></a>00078 
<a name="l00084"></a>00084   <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>( <a class="codeRef" href="qdatastream.html">QDataStream</a>&amp; _str, <span class="keywordtype">int</span> offset );
<a name="l00085"></a>00085 
<a name="l00086"></a>00086   <span class="keyword">virtual</span> ~<a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>();
<a name="l00087"></a>00087 
<a name="l00092"></a><a class="code" href="classKService.html#a505ad4cbc782d8c84807aeb11ebef524">00092</a>   <span class="keyword">virtual</span> <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKService.html#a505ad4cbc782d8c84807aeb11ebef524" title="Returns the type of the service.">type</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_strType; }
<a name="l00098"></a><a class="code" href="classKService.html#a206dd1927ae8f591074630c370cc39ee">00098</a>   <span class="keyword">virtual</span> <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKService.html#a206dd1927ae8f591074630c370cc39ee" title="Returns the name of the service.">name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_strName; }
<a name="l00104"></a><a class="code" href="classKService.html#a4a0471572826ed8239b85505506b4c7c">00104</a>   <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKService.html#a4a0471572826ed8239b85505506b4c7c" title="Returns the executable.">exec</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_strExec; }
<a name="l00111"></a><a class="code" href="classKService.html#a9303af3fb47133be225ac78c6c360a19">00111</a>   <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKService.html#a9303af3fb47133be225ac78c6c360a19" title="Returns the name of the service&#39;s library.">library</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_strLibrary; }
<a name="l00118"></a><a class="code" href="classKService.html#a369f43e5174e6594137b5806befa1721">00118</a>   <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKService.html#a369f43e5174e6594137b5806befa1721" title="Returns the name of the init function to call (KControl modules).">init</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_strInit; }
<a name="l00119"></a>00119 
<a name="l00125"></a><a class="code" href="classKService.html#a96986870204859dc90f9dbb1d432bc15">00125</a>   <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKService.html#a96986870204859dc90f9dbb1d432bc15" title="Returns the name of the icon.">icon</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_strIcon; }
<a name="l00132"></a>00132   <a class="codeRef" href="qpixmap.html">QPixmap</a> pixmap( KIcon::Group _group, <span class="keywordtype">int</span> _force_size = 0, <span class="keywordtype">int</span> _state = 0,
<a name="l00133"></a>00133                   <a class="codeRef" href="qstring.html">QString</a> * _path = 0L ) <span class="keyword">const</span>;
<a name="l00138"></a><a class="code" href="classKService.html#abf2c177682346064525deb776da4f25a">00138</a>   <span class="keywordtype">bool</span> <a class="code" href="classKService.html#abf2c177682346064525deb776da4f25a" title="Checks whethe the service should be run in a terminal.">terminal</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_bTerminal; }
<a name="l00147"></a><a class="code" href="classKService.html#a4c5b41b17fcce96710b6fe2b94ad9e86">00147</a>   <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKService.html#a4c5b41b17fcce96710b6fe2b94ad9e86" title="Returns any options associated with the terminal the service runs in, if it requires a terminal...">terminalOptions</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_strTerminalOptions; }
<a name="l00153"></a>00153   <span class="keywordtype">bool</span> substituteUid() <span class="keyword">const</span>;
<a name="l00161"></a>00161   <a class="codeRef" href="qstring.html">QString</a> username() <span class="keyword">const</span>;
<a name="l00162"></a>00162 
<a name="l00174"></a><a class="code" href="classKService.html#a1dd162ea11b51511a37d202202aa96f1">00174</a>   <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKService.html#a1dd162ea11b51511a37d202202aa96f1" title="Returns the path to the location where the service desktop entry is stored.">desktopEntryPath</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> entryPath(); }
<a name="l00175"></a>00175 
<a name="l00182"></a><a class="code" href="classKService.html#a46068cdfad6f69c7e24992291cc879d0">00182</a>   <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKService.html#a46068cdfad6f69c7e24992291cc879d0" title="Returns the filename of the service desktop entry without any extension.">desktopEntryName</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_strDesktopEntryName; }
<a name="l00183"></a>00183 
<a name="l00190"></a>00190   <a class="codeRef" href="qstring.html">QString</a> menuId() <span class="keyword">const</span>;
<a name="l00191"></a>00191 
<a name="l00199"></a>00199   <a class="codeRef" href="qstring.html">QString</a> storageId() <span class="keyword">const</span>;
<a name="l00200"></a>00200 
<a name="l00213"></a><a class="code" href="classKService.html#a49cfeaf0ab4bc79ddd8431cff9bdfb54">00213</a>   <span class="keyword">enum</span> <a class="code" href="classKService.html#a49cfeaf0ab4bc79ddd8431cff9bdfb54" title="Describes the DCOP type of the service.">DCOPServiceType_t</a> { DCOP_None = 0, DCOP_Unique, DCOP_Multi, DCOP_Wait };
<a name="l00214"></a>00214 
<a name="l00219"></a><a class="code" href="classKService.html#a51f8f4f8bfb3a9e5d0a255149f6f1816">00219</a>   <a class="code" href="classKService.html#a49cfeaf0ab4bc79ddd8431cff9bdfb54" title="Describes the DCOP type of the service.">DCOPServiceType_t</a> <a class="code" href="classKService.html#a51f8f4f8bfb3a9e5d0a255149f6f1816" title="Returns the DCOPServiceType supported by this service.">DCOPServiceType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_DCOPServiceType; }
<a name="l00220"></a>00220 
<a name="l00226"></a><a class="code" href="classKService.html#a7377fcd95d57c81a01e2f270da6aec1d">00226</a>   <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKService.html#a7377fcd95d57c81a01e2f270da6aec1d" title="Returns the working directory to run the program in.">path</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_strPath; }
<a name="l00227"></a>00227 
<a name="l00233"></a><a class="code" href="classKService.html#a48940c24aff77894d6968b648b6576ff">00233</a>   <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKService.html#a48940c24aff77894d6968b648b6576ff" title="Returns the descriptive comment for the service, if there is one.">comment</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_strComment; }
<a name="l00234"></a>00234 
<a name="l00241"></a><a class="code" href="classKService.html#a47dbda7e8dccadfdfee9fcc30971a11a">00241</a>   <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKService.html#a47dbda7e8dccadfdfee9fcc30971a11a" title="Returns the generic name for the service, if there is one (e.g.">genericName</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_strGenName; }
<a name="l00242"></a>00242 
<a name="l00251"></a>00251   <a class="codeRef" href="qstring.html">QString</a> untranslatedGenericName() <span class="keyword">const</span>;
<a name="l00252"></a>00252 
<a name="l00257"></a><a class="code" href="classKService.html#af770ba5a418ed2b0c8dfa5d014536e7c">00257</a>   <a class="codeRef" href="qstringlist.html">QStringList</a> <a class="code" href="classKService.html#af770ba5a418ed2b0c8dfa5d014536e7c" title="Returns a list of descriptive keywords the service, if there are any.">keywords</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_lstKeywords; }
<a name="l00258"></a>00258 
<a name="l00264"></a>00264   <a class="codeRef" href="qstringlist.html">QStringList</a> categories() <span class="keyword">const</span>;
<a name="l00265"></a>00265 
<a name="l00270"></a><a class="code" href="classKService.html#ab3b88547fc09b49e5afb0d3dcc02115c">00270</a>   <a class="codeRef" href="qstringlist.html">QStringList</a> <a class="code" href="classKService.html#ab3b88547fc09b49e5afb0d3dcc02115c" title="Returns the service types that this service supports.">serviceTypes</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_lstServiceTypes; }
<a name="l00271"></a>00271 
<a name="l00280"></a>00280   <span class="keywordtype">bool</span> hasServiceType( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; _service ) <span class="keyword">const</span>;
<a name="l00281"></a>00281 
<a name="l00292"></a><a class="code" href="classKService.html#a9742aaf6682d554d7fd1f8e8551fe1c0">00292</a>   <span class="keywordtype">bool</span> <a class="code" href="classKService.html#a9742aaf6682d554d7fd1f8e8551fe1c0" title="Set to true if it is allowed to use this service as the default (main) action for the files it suppor...">allowAsDefault</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_bAllowAsDefault; }
<a name="l00293"></a>00293 
<a name="l00300"></a>00300   <span class="keywordtype">bool</span> allowMultipleFiles() <span class="keyword">const</span>;
<a name="l00301"></a>00301 
<a name="l00308"></a><a class="code" href="classKService.html#a7d27ce369e125362a3f80a333fe37969">00308</a>   <span class="keywordtype">int</span> <a class="code" href="classKService.html#a7d27ce369e125362a3f80a333fe37969" title="What preference to associate with this service initially (before the user has had any chance to defin...">initialPreference</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_initialPreference; }
<a name="l00309"></a>00309 
<a name="l00318"></a>00318   <span class="keywordtype">int</span> initialPreferenceForMimeType( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; mimeType ) <span class="keyword">const</span>;
<a name="l00319"></a>00319 
<a name="l00323"></a>00323   <span class="keywordtype">void</span> setInitialPreference( <span class="keywordtype">int</span> i ) { m_initialPreference = i; }
<a name="l00324"></a>00324 
<a name="l00329"></a>00329   <span class="keywordtype">bool</span> noDisplay() <span class="keyword">const</span>;
<a name="l00330"></a>00330 
<a name="l00337"></a>00337   <a class="codeRef" href="qstring.html">QString</a> parentApp() <span class="keyword">const</span>;
<a name="l00338"></a>00338 
<a name="l00351"></a>00351   <span class="keyword">virtual</span> <a class="codeRef" href="qvariant.html">QVariant</a> property( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; _name ) <span class="keyword">const</span>;
<a name="l00352"></a>00352 
<a name="l00362"></a>00362   <a class="codeRef" href="qvariant.html">QVariant</a> property( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; _name, QVariant::Type t ) <span class="keyword">const</span>;
<a name="l00363"></a>00363 
<a name="l00369"></a>00369   <span class="keyword">virtual</span> <a class="codeRef" href="qstringlist.html">QStringList</a> propertyNames() <span class="keyword">const</span>;
<a name="l00370"></a>00370 
<a name="l00375"></a><a class="code" href="classKService.html#a6a414d83c6fde6520e64d89bd844681b">00375</a>   <span class="keywordtype">bool</span> <a class="code" href="classKService.html#a6a414d83c6fde6520e64d89bd844681b" title="Checks whether the service is valid.">isValid</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_bValid; }
<a name="l00376"></a>00376 
<a name="l00383"></a>00383   <a class="codeRef" href="qstring.html">QString</a> locateLocal();
<a name="l00384"></a>00384 
<a name="l00389"></a>00389   <span class="keyword">virtual</span> <span class="keywordtype">void</span> load( <a class="codeRef" href="qdatastream.html">QDataStream</a>&amp; );
<a name="l00394"></a>00394   <span class="keyword">virtual</span> <span class="keywordtype">void</span> save( <a class="codeRef" href="qdatastream.html">QDataStream</a>&amp; );
<a name="l00399"></a>00399   <span class="keywordtype">void</span> setMenuId(<span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;menuId);
<a name="l00404"></a>00404   <span class="keywordtype">void</span> setTerminal(<span class="keywordtype">bool</span> b) { m_bTerminal = b; }
<a name="l00409"></a>00409   <span class="keywordtype">void</span> setTerminalOptions(<span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;options) { m_strTerminalOptions = options; }
<a name="l00410"></a>00410 
<a name="l00420"></a>00420   <span class="keyword">static</span> Ptr serviceByName( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; _name );
<a name="l00421"></a>00421 
<a name="l00431"></a>00431   <span class="keyword">static</span> Ptr serviceByDesktopPath( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; _path );
<a name="l00432"></a>00432 
<a name="l00447"></a>00447   <span class="keyword">static</span> Ptr serviceByDesktopName( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; _name );
<a name="l00448"></a>00448 
<a name="l00458"></a>00458   <span class="keyword">static</span> Ptr serviceByMenuId( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; _menuId );
<a name="l00459"></a>00459 
<a name="l00470"></a>00470   <span class="keyword">static</span> Ptr serviceByStorageId( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; _storageId );
<a name="l00471"></a>00471 
<a name="l00481"></a>00481   <span class="keyword">static</span> List allServices();
<a name="l00482"></a>00482 
<a name="l00489"></a>00489   <span class="keyword">static</span> List allInitServices();
<a name="l00490"></a>00490 
<a name="l00506"></a>00506   <span class="keyword">static</span> <a class="codeRef" href="qstring.html">QString</a> newServicePath(<span class="keywordtype">bool</span> showInMenu, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;suggestedName,
<a name="l00507"></a>00507                                 <a class="codeRef" href="qstring.html">QString</a> *menuId = 0,
<a name="l00508"></a>00508                                 <span class="keyword">const</span> <a class="codeRef" href="qstringlist.html">QStringList</a> *reservedMenuIds = 0);
<a name="l00509"></a>00509 
<a name="l00510"></a>00510 
<a name="l00516"></a>00516   <span class="keyword">static</span> <span class="keywordtype">void</span> rebuildKSycoca(<a class="codeRef" href="qwidget.html">QWidget</a> *parent);
<a name="l00517"></a>00517 
<a name="l00518"></a>00518 <span class="keyword">protected</span>:
<a name="l00519"></a>00519 
<a name="l00520"></a>00520   <span class="keywordtype">void</span> init(KDesktopFile *config);
<a name="l00521"></a>00521 
<a name="l00522"></a>00522   <a class="codeRef" href="qstringlist.html">QStringList</a> &amp;accessServiceTypes() { <span class="keywordflow">return</span> m_lstServiceTypes; }
<a name="l00523"></a>00523 
<a name="l00524"></a>00524 
<a name="l00525"></a>00525 <span class="keyword">private</span>:
<a name="l00526"></a>00526   <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>( <span class="keyword">const</span> <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>&amp; ); <span class="comment">// forbidden</span>
<a name="l00527"></a>00527   <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>&amp;);
<a name="l00528"></a>00528 
<a name="l00529"></a>00529   <a class="codeRef" href="qstring.html">QString</a> m_strType;
<a name="l00530"></a>00530   <a class="codeRef" href="qstring.html">QString</a> m_strName;
<a name="l00531"></a>00531   <a class="codeRef" href="qstring.html">QString</a> m_strExec;
<a name="l00532"></a>00532   <a class="codeRef" href="qstring.html">QString</a> m_strIcon;
<a name="l00533"></a>00533   <a class="codeRef" href="qstring.html">QString</a> m_strTerminalOptions;
<a name="l00534"></a>00534   <a class="codeRef" href="qstring.html">QString</a> m_strPath;
<a name="l00535"></a>00535   <a class="codeRef" href="qstring.html">QString</a> m_strComment;
<a name="l00536"></a>00536   <a class="codeRef" href="qstring.html">QString</a> m_strLibrary;
<a name="l00537"></a>00537   <a class="codeRef" href="qstringlist.html">QStringList</a> m_lstServiceTypes;
<a name="l00538"></a>00538   <span class="keywordtype">bool</span> m_bAllowAsDefault;
<a name="l00539"></a>00539   <span class="keywordtype">int</span> m_initialPreference;
<a name="l00540"></a>00540   <span class="keywordtype">bool</span> m_bTerminal;
<a name="l00541"></a>00541   <span class="comment">//bool m_bSuid;</span>
<a name="l00542"></a>00542   <span class="comment">//QString m_strUsername;</span>
<a name="l00543"></a>00543   <a class="codeRef" href="qstring.html">QString</a> m_strDesktopEntryName;
<a name="l00544"></a>00544   <span class="comment">//QString m_docPath;</span>
<a name="l00545"></a>00545   <span class="comment">//bool m_bHideFromPanel;</span>
<a name="l00546"></a>00546   DCOPServiceType_t m_DCOPServiceType;
<a name="l00547"></a>00547   <a class="codeRef" href="qmap.html">QMap&lt;QString,QVariant&gt;</a> m_mapProps;
<a name="l00548"></a>00548   <span class="keywordtype">bool</span> m_bValid;
<a name="l00549"></a>00549   <a class="codeRef" href="qstringlist.html">QStringList</a> m_lstKeywords;
<a name="l00550"></a>00550   <a class="codeRef" href="qstring.html">QString</a> m_strInit;
<a name="l00551"></a>00551   <a class="codeRef" href="qstring.html">QString</a> m_strGenName;
<a name="l00552"></a>00552 <span class="keyword">protected</span>:
<a name="l00553"></a>00553   <span class="keyword">virtual</span> <span class="keywordtype">void</span> virtual_hook( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">void</span>* data );
<a name="l00554"></a>00554 <span class="keyword">private</span>:
<a name="l00555"></a>00555   <span class="keyword">class </span>KServicePrivate;
<a name="l00556"></a>00556   KServicePrivate* d;
<a name="l00557"></a>00557 };
<a name="l00558"></a>00558 <span class="preprocessor">#endif</span>
</pre></div></div>
</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>