<?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>kparts: plugin.cpp Source File (kparts)</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=".">kparts</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">plugin.cpp</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) 1999 Simon Hausmann <hausmann@kde.org></span> <a name="l00003"></a>00003 <span class="comment"> (C) 1999 David Faure <faure@kde.org></span> <a name="l00004"></a>00004 <span class="comment"></span> <a name="l00005"></a>00005 <span class="comment"> This library is free software; you can redistribute it and/or</span> <a name="l00006"></a>00006 <span class="comment"> modify it under the terms of the GNU Library General Public</span> <a name="l00007"></a>00007 <span class="comment"> License as published by the Free Software Foundation; either</span> <a name="l00008"></a>00008 <span class="comment"> version 2 of the License, or (at your option) any later version.</span> <a name="l00009"></a>00009 <span class="comment"></span> <a name="l00010"></a>00010 <span class="comment"> This library is distributed in the hope that it will be useful,</span> <a name="l00011"></a>00011 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00012"></a>00012 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00013"></a>00013 <span class="comment"> Library General Public License for more details.</span> <a name="l00014"></a>00014 <span class="comment"></span> <a name="l00015"></a>00015 <span class="comment"> You should have received a copy of the GNU Library General Public License</span> <a name="l00016"></a>00016 <span class="comment"> along with this library; see the file COPYING.LIB. If not, write to</span> <a name="l00017"></a>00017 <span class="comment"> the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span> <a name="l00018"></a>00018 <span class="comment"> Boston, MA 02110-1301, USA.</span> <a name="l00019"></a>00019 <span class="comment">*/</span> <a name="l00020"></a>00020 <a name="l00021"></a>00021 <span class="preprocessor">#include <config.h></span> <a name="l00022"></a>00022 <span class="preprocessor">#include <kparts/plugin.h></span> <a name="l00023"></a>00023 <span class="preprocessor">#include <kparts/part.h></span> <a name="l00024"></a>00024 <span class="preprocessor">#include <kparts/componentfactory.h></span> <a name="l00025"></a>00025 <a name="l00026"></a>00026 <span class="preprocessor">#include <assert.h></span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="preprocessor">#include <qfile.h></span> <a name="l00029"></a>00029 <span class="preprocessor">#include <qobjectlist.h></span> <a name="l00030"></a>00030 <span class="preprocessor">#include <qfileinfo.h></span> <a name="l00031"></a>00031 <a name="l00032"></a>00032 <span class="preprocessor">#include <klibloader.h></span> <a name="l00033"></a>00033 <span class="preprocessor">#include <kinstance.h></span> <a name="l00034"></a>00034 <span class="preprocessor">#include <kstandarddirs.h></span> <a name="l00035"></a>00035 <span class="preprocessor">#include <kdebug.h></span> <a name="l00036"></a>00036 <span class="preprocessor">#include <kxmlguifactory.h></span> <a name="l00037"></a>00037 <span class="preprocessor">#include <<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/klocale_8h.html">klocale.h</a>></span> <a name="l00038"></a>00038 <span class="preprocessor">#include <kconfig.h></span> <a name="l00039"></a>00039 <span class="preprocessor">#include <ksimpleconfig.h></span> <a name="l00040"></a>00040 <a name="l00041"></a>00041 <span class="keyword">using namespace </span>KParts; <a name="l00042"></a>00042 <a name="l00043"></a>00043 <span class="keyword">class </span>Plugin::PluginPrivate <a name="l00044"></a>00044 { <a name="l00045"></a>00045 <span class="keyword">public</span>: <a name="l00046"></a>00046 PluginPrivate() : m_parentInstance( 0 ) {} <a name="l00047"></a>00047 <a name="l00048"></a>00048 <span class="keyword">const</span> <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *m_parentInstance; <a name="l00049"></a>00049 <a class="codeRef" href="qstring.html">QString</a> m_library; <span class="comment">// filename of the library</span> <a name="l00050"></a>00050 }; <a name="l00051"></a>00051 <a name="l00052"></a><a class="code" href="classKParts_1_1Plugin.html#a4dc79e27044aa5ce3d8cea9e831cbc2e">00052</a> <a class="code" href="classKParts_1_1Plugin.html#a4dc79e27044aa5ce3d8cea9e831cbc2e" title="Construct a new KParts plugin.">Plugin::Plugin</a>( <a class="codeRef" href="qobject.html">QObject</a>* parent, <span class="keyword">const</span> <span class="keywordtype">char</span>* name ) <a name="l00053"></a>00053 : <a class="codeRef" href="qobject.html">QObject</a>( parent, name ) <a name="l00054"></a>00054 { <a name="l00055"></a>00055 <span class="comment">//kdDebug() << className() << endl;</span> <a name="l00056"></a>00056 d = <span class="keyword">new</span> PluginPrivate(); <a name="l00057"></a>00057 } <a name="l00058"></a>00058 <a name="l00059"></a><a class="code" href="classKParts_1_1Plugin.html#aee4cc1864a2afa84a9ad935153f3fe39">00059</a> <a class="code" href="classKParts_1_1Plugin.html#aee4cc1864a2afa84a9ad935153f3fe39" title="Destructor.">Plugin::~Plugin</a>() <a name="l00060"></a>00060 { <a name="l00061"></a>00061 <span class="keyword">delete</span> d; <a name="l00062"></a>00062 } <a name="l00063"></a>00063 <a name="l00064"></a><a class="code" href="classKParts_1_1Plugin.html#a0b7c64589ea427f05a991255a7fd34eb">00064</a> <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKParts_1_1Plugin.html#a0b7c64589ea427f05a991255a7fd34eb" title="Reimplemented for internal reasons.">Plugin::xmlFile</a>()<span class="keyword"> const</span> <a name="l00065"></a>00065 <span class="keyword"></span>{ <a name="l00066"></a>00066 <a class="codeRef" href="qstring.html">QString</a> path = <a class="code" href="classKParts_1_1Plugin.html#a0b7c64589ea427f05a991255a7fd34eb" title="Reimplemented for internal reasons.">KXMLGUIClient::xmlFile</a>(); <a name="l00067"></a>00067 <a name="l00068"></a>00068 <span class="keywordflow">if</span> ( !d->m_parentInstance || ( path.<a class="codeRef" href="qstring.html#length">length</a>() > 0 && path[ 0 ] == <span class="charliteral">'/'</span> ) ) <a name="l00069"></a>00069 <span class="keywordflow">return</span> path; <a name="l00070"></a>00070 <a name="l00071"></a>00071 <a class="codeRef" href="qstring.html">QString</a> absPath = <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/group__locates.html#ga89fd87f617b688014a7b361ed36dcdf8">locate</a>( <span class="stringliteral">"data"</span>, <a class="codeRef" href="qstring.html#fromLatin1">QString::fromLatin1</a>( d->m_parentInstance->instanceName() ) + <span class="charliteral">'/'</span> + path ); <a name="l00072"></a>00072 assert( !absPath.<a class="codeRef" href="qstring.html#isEmpty">isEmpty</a>() ); <a name="l00073"></a>00073 <span class="keywordflow">return</span> absPath; <a name="l00074"></a>00074 } <a name="l00075"></a>00075 <a name="l00076"></a><a class="code" href="classKParts_1_1Plugin.html#af22550dde9846b136499c4e99e0e4277">00076</a> <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKParts_1_1Plugin.html#af22550dde9846b136499c4e99e0e4277" title="Reimplemented for internal reasons.">Plugin::localXMLFile</a>()<span class="keyword"> const</span> <a name="l00077"></a>00077 <span class="keyword"></span>{ <a name="l00078"></a>00078 <a class="codeRef" href="qstring.html">QString</a> path = <a class="code" href="classKParts_1_1Plugin.html#a0b7c64589ea427f05a991255a7fd34eb" title="Reimplemented for internal reasons.">KXMLGUIClient::xmlFile</a>(); <a name="l00079"></a>00079 <a name="l00080"></a>00080 <span class="keywordflow">if</span> ( !d->m_parentInstance || ( path.<a class="codeRef" href="qstring.html#length">length</a>() > 0 && path[ 0 ] == <span class="charliteral">'/'</span> ) ) <a name="l00081"></a>00081 <span class="keywordflow">return</span> path; <a name="l00082"></a>00082 <a name="l00083"></a>00083 <a class="codeRef" href="qstring.html">QString</a> absPath = <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/group__locates.html#gaa61f4722cb5eb55a0661b5aec0bbb3fe">locateLocal</a>( <span class="stringliteral">"data"</span>, <a class="codeRef" href="qstring.html#fromLatin1">QString::fromLatin1</a>( d->m_parentInstance->instanceName() ) + <span class="charliteral">'/'</span> + path ); <a name="l00084"></a>00084 assert( !absPath.<a class="codeRef" href="qstring.html#isEmpty">isEmpty</a>() ); <a name="l00085"></a>00085 <span class="keywordflow">return</span> absPath; <a name="l00086"></a>00086 } <a name="l00087"></a>00087 <a name="l00088"></a>00088 <span class="comment">//static</span> <a name="l00089"></a><a class="code" href="classKParts_1_1Plugin.html#ab32fdab641761d207c7648e291d17a03">00089</a> <a class="codeRef" href="qvaluelist.html">QValueList<Plugin::PluginInfo></a> <a class="code" href="classKParts_1_1Plugin.html#ab32fdab641761d207c7648e291d17a03" title="Look for plugins in the instance's "data" directory (+"/kpartplugins")">Plugin::pluginInfos</a>( <span class="keyword">const</span> <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> * instance ) <a name="l00090"></a>00090 { <a name="l00091"></a>00091 <span class="keywordflow">if</span> ( !instance ) <a name="l00092"></a>00092 <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/group__kdebug.html#gaccea93cfede4acb090a88609fb3a2563">kdError</a>(1000) << <span class="stringliteral">"No instance ???"</span> << <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a">endl</a>; <a name="l00093"></a>00093 <a name="l00094"></a>00094 <a class="codeRef" href="qvaluelist.html">QValueList<PluginInfo></a> plugins; <a name="l00095"></a>00095 <a name="l00096"></a>00096 <span class="comment">// KDE4: change * into *.rc and remove test for .desktop from the for loop below.</span> <a name="l00097"></a>00097 <span class="keyword">const</span> <a class="codeRef" href="qstringlist.html">QStringList</a> pluginDocs = instance-><a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html#a721bf6eba6b89df5581abfb233edefe6">dirs</a>()-><a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKStandardDirs.html#ae6310facab4e97b2aceb5cf37080c3c0">findAllResources</a>( <a name="l00098"></a>00098 <span class="stringliteral">"data"</span>, instance-><a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html#a6f97644ef0333d52e9a281aaa78d00ca">instanceName</a>()+<span class="stringliteral">"/kpartplugins/*"</span>, <span class="keyword">true</span>, false ); <a name="l00099"></a>00099 <a name="l00100"></a>00100 <a class="codeRef" href="qmap.html">QMap<QString,QStringList></a> sortedPlugins; <a name="l00101"></a>00101 <a name="l00102"></a>00102 QStringList::ConstIterator pIt = pluginDocs.begin(); <a name="l00103"></a>00103 QStringList::ConstIterator pEnd = pluginDocs.end(); <a name="l00104"></a>00104 <span class="keywordflow">for</span> (; pIt != pEnd; ++pIt ) <a name="l00105"></a>00105 { <a name="l00106"></a>00106 <a class="codeRef" href="qfileinfo.html">QFileInfo</a> fInfo( *pIt ); <a name="l00107"></a>00107 <span class="keywordflow">if</span> ( fInfo.<a class="codeRef" href="qfileinfo.html#extension">extension</a>() == <a class="codeRef" href="qstring.html#fromLatin1">QString::fromLatin1</a>( <span class="stringliteral">"desktop"</span> ) ) <a name="l00108"></a>00108 <span class="keywordflow">continue</span>; <a name="l00109"></a>00109 <a name="l00110"></a>00110 <a class="codeRef" href="qmap.html">QMap<QString,QStringList>::Iterator</a> mapIt = sortedPlugins.<a class="codeRef" href="qmap.html#find">find</a>( fInfo.<a class="codeRef" href="qfileinfo.html#fileName">fileName</a>() ); <a name="l00111"></a>00111 <span class="keywordflow">if</span> ( mapIt == sortedPlugins.<a class="codeRef" href="qmap.html#end">end</a>() ) <a name="l00112"></a>00112 mapIt = sortedPlugins.<a class="codeRef" href="qmap.html#insert">insert</a>( fInfo.<a class="codeRef" href="qfileinfo.html#fileName">fileName</a>(), <a class="codeRef" href="qstringlist.html">QStringList</a>() ); <a name="l00113"></a>00113 <a name="l00114"></a>00114 mapIt.data().append( *pIt ); <a name="l00115"></a>00115 } <a name="l00116"></a>00116 <a name="l00117"></a>00117 <a class="codeRef" href="qmap.html">QMap<QString,QStringList>::ConstIterator</a> mapIt = sortedPlugins.<a class="codeRef" href="qmap.html#begin">begin</a>(); <a name="l00118"></a>00118 <a class="codeRef" href="qmap.html">QMap<QString,QStringList>::ConstIterator</a> mapEnd = sortedPlugins.<a class="codeRef" href="qmap.html#end">end</a>(); <a name="l00119"></a>00119 <span class="keywordflow">for</span> (; mapIt != mapEnd; ++mapIt ) <a name="l00120"></a>00120 { <a name="l00121"></a>00121 <a class="code" href="structKParts_1_1Plugin_1_1PluginInfo.html" title="Struct holding information about a plugin.">PluginInfo</a> info; <a name="l00122"></a>00122 <a class="codeRef" href="qstring.html">QString</a> doc; <a name="l00123"></a>00123 info.<a class="code" href="structKParts_1_1Plugin_1_1PluginInfo.html#a1351095a0ec3842ccf3c49cfd4c97478" title="full path of most recent filename matching the relative filename">m_absXMLFileName</a> = <a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a371a95c23d7acd19ea615836e49eadfa">KXMLGUIClient::findMostRecentXMLFile</a>( mapIt.data(), doc ); <a name="l00124"></a>00124 <span class="keywordflow">if</span> ( info.<a class="code" href="structKParts_1_1Plugin_1_1PluginInfo.html#a1351095a0ec3842ccf3c49cfd4c97478" title="full path of most recent filename matching the relative filename">m_absXMLFileName</a>.<a class="codeRef" href="qstring.html#isEmpty">isEmpty</a>() ) <a name="l00125"></a>00125 <span class="keywordflow">continue</span>; <a name="l00126"></a>00126 <a name="l00127"></a>00127 <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/group__kdebug.html#gafbb9aa4a84d6c0563d46550454b9714b">kdDebug</a>( 1000 ) << <span class="stringliteral">"found KParts Plugin : "</span> << info.<a class="code" href="structKParts_1_1Plugin_1_1PluginInfo.html#a1351095a0ec3842ccf3c49cfd4c97478" title="full path of most recent filename matching the relative filename">m_absXMLFileName</a> << <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a">endl</a>; <a name="l00128"></a>00128 info.<a class="code" href="structKParts_1_1Plugin_1_1PluginInfo.html#a02f9a1972d5e87b2d168fa7c5683649b" title="relative filename, i.e. kpartplugins/name">m_relXMLFileName</a> = <span class="stringliteral">"kpartplugins/"</span>; <a name="l00129"></a>00129 info.<a class="code" href="structKParts_1_1Plugin_1_1PluginInfo.html#a02f9a1972d5e87b2d168fa7c5683649b" title="relative filename, i.e. kpartplugins/name">m_relXMLFileName</a> += mapIt.key(); <a name="l00130"></a>00130 <a name="l00131"></a>00131 info.m_document.<a class="codeRef" href="qdomdocument.html#setContent">setContent</a>( doc ); <a name="l00132"></a>00132 <span class="keywordflow">if</span> ( info.m_document.<a class="codeRef" href="qdomdocument.html#documentElement">documentElement</a>().isNull() ) <a name="l00133"></a>00133 <span class="keywordflow">continue</span>; <a name="l00134"></a>00134 <a name="l00135"></a>00135 plugins.<a class="codeRef" href="qvaluelist.html#append">append</a>( info ); <a name="l00136"></a>00136 } <a name="l00137"></a>00137 <a name="l00138"></a>00138 <span class="keywordflow">return</span> plugins; <a name="l00139"></a>00139 } <a name="l00140"></a>00140 <a name="l00141"></a><a class="code" href="classKParts_1_1Plugin.html#af6d4fcccfb7a098939daf3ef0c224532">00141</a> <span class="keywordtype">void</span> <a class="code" href="classKParts_1_1Plugin.html#af6d4fcccfb7a098939daf3ef0c224532" title="Load the plugin libraries from the directories appropriate to instance and make the Plugin objects ch...">Plugin::loadPlugins</a>( <a class="codeRef" href="qobject.html">QObject</a> *parent, <span class="keyword">const</span> <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *instance ) <a name="l00142"></a>00142 { <a name="l00143"></a>00143 <a class="code" href="classKParts_1_1Plugin.html#af6d4fcccfb7a098939daf3ef0c224532" title="Load the plugin libraries from the directories appropriate to instance and make the Plugin objects ch...">loadPlugins</a>( parent, <a class="code" href="classKParts_1_1Plugin.html#ab32fdab641761d207c7648e291d17a03" title="Look for plugins in the instance's "data" directory (+"/kpartplugins")">pluginInfos</a>( instance ), instance ); <a name="l00144"></a>00144 } <a name="l00145"></a>00145 <a name="l00146"></a><a class="code" href="classKParts_1_1Plugin.html#aa2e8562174c314eb2de2ed894a9ccae1">00146</a> <span class="keywordtype">void</span> <a class="code" href="classKParts_1_1Plugin.html#af6d4fcccfb7a098939daf3ef0c224532" title="Load the plugin libraries from the directories appropriate to instance and make the Plugin objects ch...">Plugin::loadPlugins</a>( <a class="codeRef" href="qobject.html">QObject</a> *parent, <span class="keyword">const</span> <a class="codeRef" href="qvaluelist.html">QValueList<PluginInfo></a> &pluginInfos, <span class="keyword">const</span> <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *instance ) <a name="l00147"></a>00147 { <a name="l00148"></a>00148 <a class="codeRef" href="qvaluelist.html">QValueList<PluginInfo>::ConstIterator</a> pIt = pluginInfos.<a class="codeRef" href="qvaluelist.html#begin">begin</a>(); <a name="l00149"></a>00149 <a class="codeRef" href="qvaluelist.html">QValueList<PluginInfo>::ConstIterator</a> pEnd = pluginInfos.<a class="codeRef" href="qvaluelist.html#end">end</a>(); <a name="l00150"></a>00150 <span class="keywordflow">for</span> (; pIt != pEnd; ++pIt ) <a name="l00151"></a>00151 { <a name="l00152"></a>00152 <a class="codeRef" href="qstring.html">QString</a> library = (*pIt).m_document.documentElement().attribute( <span class="stringliteral">"library"</span> ); <a name="l00153"></a>00153 <a name="l00154"></a>00154 <span class="keywordflow">if</span> ( library.<a class="codeRef" href="qstring.html#isEmpty">isEmpty</a>() || hasPlugin( parent, library ) ) <a name="l00155"></a>00155 <span class="keywordflow">continue</span>; <a name="l00156"></a>00156 <a name="l00157"></a>00157 <a class="code" href="classKParts_1_1Plugin.html" title="A plugin is the way to add actions to an existing KParts application, or to a Part.">Plugin</a> *plugin = loadPlugin( parent, <a class="codeRef" href="qfile.html#encodeName">QFile::encodeName</a>(library) ); <a name="l00158"></a>00158 <a name="l00159"></a>00159 <span class="keywordflow">if</span> ( plugin ) <a name="l00160"></a>00160 { <a name="l00161"></a>00161 plugin->d->m_parentInstance = <a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a4fd5c48394a44cfe1ca4091bb2bb7523">instance</a>; <a name="l00162"></a>00162 plugin-><a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a6de555afb77fb964db93d306a5122368">setXMLFile</a>( (*pIt).m_relXMLFileName, <span class="keyword">false</span>, <span class="keyword">false</span> ); <a name="l00163"></a>00163 plugin-><a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a17566d518fa7c2b45f81b85fb8c4fc97">setDOMDocument</a>( (*pIt).m_document ); <a name="l00164"></a>00164 <a name="l00165"></a>00165 } <a name="l00166"></a>00166 } <a name="l00167"></a>00167 <a name="l00168"></a>00168 } <a name="l00169"></a>00169 <a name="l00170"></a><a class="code" href="classKParts_1_1Plugin.html#aac1de85c8225b72fc74cc20022339355">00170</a> <span class="keywordtype">void</span> <a class="code" href="classKParts_1_1Plugin.html#af6d4fcccfb7a098939daf3ef0c224532" title="Load the plugin libraries from the directories appropriate to instance and make the Plugin objects ch...">Plugin::loadPlugins</a>( <a class="codeRef" href="qobject.html">QObject</a> *parent, <span class="keyword">const</span> <a class="codeRef" href="qvaluelist.html">QValueList<PluginInfo></a> &pluginInfos ) <a name="l00171"></a>00171 { <a name="l00172"></a>00172 <a class="code" href="classKParts_1_1Plugin.html#af6d4fcccfb7a098939daf3ef0c224532" title="Load the plugin libraries from the directories appropriate to instance and make the Plugin objects ch...">loadPlugins</a>(parent, pluginInfos, 0); <a name="l00173"></a>00173 } <a name="l00174"></a>00174 <a name="l00175"></a>00175 <span class="comment">// static</span> <a name="l00176"></a>00176 <a class="code" href="classKParts_1_1Plugin.html" title="A plugin is the way to add actions to an existing KParts application, or to a Part.">Plugin</a>* Plugin::loadPlugin( <a class="codeRef" href="qobject.html">QObject</a> * parent, <span class="keyword">const</span> <span class="keywordtype">char</span>* libname ) <a name="l00177"></a>00177 { <a name="l00178"></a>00178 <a class="code" href="classKParts_1_1Plugin.html" title="A plugin is the way to add actions to an existing KParts application, or to a Part.">Plugin</a>* plugin = ComponentFactory::createInstanceFromLibrary<Plugin>( libname, <a class="codeRef" href="qobject.html#parent">parent</a>, libname ); <a name="l00179"></a>00179 <span class="keywordflow">if</span> ( !plugin ) <a name="l00180"></a>00180 <span class="keywordflow">return</span> 0L; <a name="l00181"></a>00181 plugin->d->m_library = libname; <a name="l00182"></a>00182 <span class="keywordflow">return</span> plugin; <a name="l00183"></a>00183 } <a name="l00184"></a>00184 <a name="l00185"></a><a class="code" href="classKParts_1_1Plugin.html#a4960554af256d2c546701c0790739a71">00185</a> <a class="codeRef" href="qptrlist.html">QPtrList<KParts::Plugin></a> <a class="code" href="classKParts_1_1Plugin.html#a4960554af256d2c546701c0790739a71" title="Returns a list of plugin objects loaded for parent.">Plugin::pluginObjects</a>( <a class="codeRef" href="qobject.html">QObject</a> *parent ) <a name="l00186"></a>00186 { <a name="l00187"></a>00187 <a class="codeRef" href="qptrlist.html">QPtrList<KParts::Plugin></a> objects; <a name="l00188"></a>00188 <a name="l00189"></a>00189 <span class="keywordflow">if</span> (!parent ) <a name="l00190"></a>00190 <span class="keywordflow">return</span> objects; <a name="l00191"></a>00191 <a name="l00192"></a>00192 <a class="codeRef" href="qobjectlist.html">QObjectList</a> *plugins = parent-><a class="codeRef" href="qobject.html#queryList">queryList</a>( <span class="stringliteral">"KParts::Plugin"</span>, 0, <span class="keyword">false</span>, <span class="keyword">false</span> ); <a name="l00193"></a>00193 <a name="l00194"></a>00194 QObjectListIt it( *plugins ); <a name="l00195"></a>00195 <span class="keywordflow">for</span> ( ; it.current() ; ++it ) <a name="l00196"></a>00196 { <a name="l00197"></a>00197 objects.<a class="codeRef" href="qptrlist.html#append">append</a>( static_cast<Plugin *>( it.current() ) ); <a name="l00198"></a>00198 } <a name="l00199"></a>00199 <a name="l00200"></a>00200 <span class="keyword">delete</span> plugins; <a name="l00201"></a>00201 <a name="l00202"></a>00202 <span class="keywordflow">return</span> objects; <a name="l00203"></a>00203 } <a name="l00204"></a>00204 <a name="l00205"></a>00205 <span class="keywordtype">bool</span> Plugin::hasPlugin( <a class="codeRef" href="qobject.html">QObject</a>* parent, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& library ) <a name="l00206"></a>00206 { <a name="l00207"></a>00207 <a class="codeRef" href="qobjectlist.html">QObjectList</a> *plugins = parent-><a class="codeRef" href="qobject.html#queryList">queryList</a>( <span class="stringliteral">"KParts::Plugin"</span>, 0, <span class="keyword">false</span>, <span class="keyword">false</span> ); <a name="l00208"></a>00208 QObjectListIt it( *plugins ); <a name="l00209"></a>00209 <span class="keywordflow">for</span> ( ; it.current() ; ++it ) <a name="l00210"></a>00210 { <a name="l00211"></a>00211 <span class="keywordflow">if</span> ( static_cast<Plugin *>( it.current() )->d->m_library == library ) <a name="l00212"></a>00212 { <a name="l00213"></a>00213 <span class="keyword">delete</span> plugins; <a name="l00214"></a>00214 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00215"></a>00215 } <a name="l00216"></a>00216 } <a name="l00217"></a>00217 <span class="keyword">delete</span> plugins; <a name="l00218"></a>00218 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00219"></a>00219 } <a name="l00220"></a>00220 <a name="l00221"></a>00221 <span class="keywordtype">void</span> Plugin::setInstance( <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *instance ) <a name="l00222"></a>00222 { <a name="l00223"></a>00223 <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKGlobal.html#a8c3e5ecff78f674b94eadfe0eae067e1">KGlobal::locale</a>()-><a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKLocale.html#af14d084c90a004164fa037458377740e">insertCatalogue</a>( instance-><a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html#a6f97644ef0333d52e9a281aaa78d00ca">instanceName</a>() ); <a name="l00224"></a>00224 <a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#ae7715a5da8f904f17d807638dc3a9758">KXMLGUIClient::setInstance</a>( instance ); <a name="l00225"></a>00225 } <a name="l00226"></a>00226 <a name="l00227"></a><a class="code" href="classKParts_1_1Plugin.html#aadd4fb00bb9e0b5a8c5c02112d526da4">00227</a> <span class="keywordtype">void</span> <a class="code" href="classKParts_1_1Plugin.html#af6d4fcccfb7a098939daf3ef0c224532" title="Load the plugin libraries from the directories appropriate to instance and make the Plugin objects ch...">Plugin::loadPlugins</a>( <a class="codeRef" href="qobject.html">QObject</a> *parent, <a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html">KXMLGUIClient</a>* parentGUIClient, <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a>* instance, <span class="keywordtype">bool</span> enableNewPluginsByDefault ) <a name="l00228"></a>00228 { <a name="l00229"></a>00229 <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKConfigGroup.html">KConfigGroup</a> cfgGroup( instance-><a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html#a45c9e6b3a643cf421c274581910f89bf">config</a>(), <span class="stringliteral">"KParts Plugins"</span> ); <a name="l00230"></a>00230 <a class="codeRef" href="qvaluelist.html">QValueList<PluginInfo></a> plugins = <a class="code" href="classKParts_1_1Plugin.html#ab32fdab641761d207c7648e291d17a03" title="Look for plugins in the instance's "data" directory (+"/kpartplugins")">pluginInfos</a>( instance ); <a name="l00231"></a>00231 <a class="codeRef" href="qvaluelist.html">QValueList<PluginInfo>::ConstIterator</a> pIt = plugins.<a class="codeRef" href="qvaluelist.html#begin">begin</a>(); <a name="l00232"></a>00232 <a class="codeRef" href="qvaluelist.html">QValueList<PluginInfo>::ConstIterator</a> pEnd = plugins.<a class="codeRef" href="qvaluelist.html#end">end</a>(); <a name="l00233"></a>00233 <span class="keywordflow">for</span> (; pIt != pEnd; ++pIt ) <a name="l00234"></a>00234 { <a name="l00235"></a>00235 <a class="codeRef" href="qdomelement.html">QDomElement</a> docElem = (*pIt).m_document.documentElement(); <a name="l00236"></a>00236 <a class="codeRef" href="qstring.html">QString</a> library = docElem.<a class="codeRef" href="qdomelement.html#attribute">attribute</a>( <span class="stringliteral">"library"</span> ); <a name="l00237"></a>00237 <a name="l00238"></a>00238 <span class="keywordflow">if</span> ( library.<a class="codeRef" href="qstring.html#isEmpty">isEmpty</a>() ) <a name="l00239"></a>00239 <span class="keywordflow">continue</span>; <a name="l00240"></a>00240 <a name="l00241"></a>00241 <span class="comment">// Check configuration</span> <a name="l00242"></a>00242 <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> <a class="codeRef" href="qobject.html#name">name</a> = docElem.<a class="codeRef" href="qdomelement.html#attribute">attribute</a>( <span class="stringliteral">"name"</span> ); <a name="l00243"></a>00243 <a name="l00244"></a>00244 <span class="keywordtype">bool</span> pluginEnabled = enableNewPluginsByDefault; <a name="l00245"></a>00245 <span class="keywordflow">if</span> ( cfgGroup.hasKey( name + <span class="stringliteral">"Enabled"</span> ) ) <a name="l00246"></a>00246 { <a name="l00247"></a>00247 pluginEnabled = cfgGroup.readBoolEntry( name + <span class="stringliteral">"Enabled"</span> ); <a name="l00248"></a>00248 } <a name="l00249"></a>00249 <span class="keywordflow">else</span> <a name="l00250"></a>00250 { <span class="comment">// no user-setting, load plugin default setting</span> <a name="l00251"></a>00251 <a class="codeRef" href="qstring.html">QString</a> relPath = <a class="codeRef" href="qstring.html">QString</a>( instance-><a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html#a6f97644ef0333d52e9a281aaa78d00ca">instanceName</a>() ) + <span class="stringliteral">"/"</span> + (*pIt).m_relXMLFileName; <a name="l00252"></a>00252 relPath.<a class="codeRef" href="qstring.html#truncate">truncate</a>( relPath.<a class="codeRef" href="qstring.html#findRev">findRev</a>( <span class="charliteral">'.'</span> ) ); <span class="comment">// remove extension</span> <a name="l00253"></a>00253 relPath += <span class="stringliteral">".desktop"</span>; <a name="l00254"></a>00254 <span class="comment">//kdDebug(1000) << "looking for " << relPath << endl;</span> <a name="l00255"></a>00255 <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> desktopfile = instance-><a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html#a721bf6eba6b89df5581abfb233edefe6">dirs</a>()-><a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKStandardDirs.html#adae97fe8f8a994938704cfa6b483c70a">findResource</a>( <span class="stringliteral">"data"</span>, relPath ); <a name="l00256"></a>00256 <span class="keywordflow">if</span>( !desktopfile.<a class="codeRef" href="qstring.html#isEmpty">isEmpty</a>() ) <a name="l00257"></a>00257 { <a name="l00258"></a>00258 <span class="comment">//kdDebug(1000) << "loadPlugins found desktop file for " << name << ": " << desktopfile << endl;</span> <a name="l00259"></a>00259 <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKSimpleConfig.html">KSimpleConfig</a> desktop( desktopfile, <span class="keyword">true</span> ); <a name="l00260"></a>00260 desktop.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKConfigBase.html#af695856245e12db6d7383a19d9b5eb11">setDesktopGroup</a>(); <a name="l00261"></a>00261 pluginEnabled = desktop.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKConfigBase.html#a515c85fb1b7b3ddab4c6612cdb67bf74">readBoolEntry</a>( <a name="l00262"></a>00262 <span class="stringliteral">"X-KDE-PluginInfo-EnabledByDefault"</span>, enableNewPluginsByDefault ); <a name="l00263"></a>00263 } <a name="l00264"></a>00264 <span class="keywordflow">else</span> <a name="l00265"></a>00265 { <a name="l00266"></a>00266 <span class="comment">//kdDebug(1000) << "loadPlugins no desktop file found in " << relPath << endl;</span> <a name="l00267"></a>00267 } <a name="l00268"></a>00268 } <a name="l00269"></a>00269 <a name="l00270"></a>00270 <span class="comment">// search through already present plugins</span> <a name="l00271"></a>00271 <a class="codeRef" href="qobjectlist.html">QObjectList</a> *pluginList = parent-><a class="codeRef" href="qobject.html#queryList">queryList</a>( <span class="stringliteral">"KParts::Plugin"</span>, 0, <span class="keyword">false</span>, <span class="keyword">false</span> ); <a name="l00272"></a>00272 QObjectListIt it( *pluginList ); <a name="l00273"></a>00273 <span class="keywordtype">bool</span> pluginFound = <span class="keyword">false</span>; <a name="l00274"></a>00274 <span class="keywordflow">for</span> ( ; it.current() ; ++it ) <a name="l00275"></a>00275 { <a name="l00276"></a>00276 <a class="code" href="classKParts_1_1Plugin.html" title="A plugin is the way to add actions to an existing KParts application, or to a Part.">Plugin</a> * plugin = <span class="keyword">static_cast<</span><a class="code" href="classKParts_1_1Plugin.html" title="A plugin is the way to add actions to an existing KParts application, or to a Part.">Plugin</a> *<span class="keyword">></span>( it.current() ); <a name="l00277"></a>00277 <span class="keywordflow">if</span>( plugin->d->m_library == library ) <a name="l00278"></a>00278 { <a name="l00279"></a>00279 <span class="comment">// delete and unload disabled plugins</span> <a name="l00280"></a>00280 <span class="keywordflow">if</span>( !pluginEnabled ) <a name="l00281"></a>00281 { <a name="l00282"></a>00282 <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/group__kdebug.html#gafbb9aa4a84d6c0563d46550454b9714b">kdDebug</a>( 1000 ) << <span class="stringliteral">"remove plugin "</span> << name << <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a">endl</a>; <a name="l00283"></a>00283 <a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIFactory.html">KXMLGUIFactory</a> * <a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a2c7a5e2f7d02eec609d9f53df364628e">factory</a> = plugin-><a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a2c7a5e2f7d02eec609d9f53df364628e">factory</a>(); <a name="l00284"></a>00284 <span class="keywordflow">if</span>( factory ) <a name="l00285"></a>00285 factory-><a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIFactory.html#a6992736def9d31a10e73a05346826171">removeClient</a>( plugin ); <a name="l00286"></a>00286 <span class="keyword">delete</span> plugin; <a name="l00287"></a>00287 } <a name="l00288"></a>00288 <a name="l00289"></a>00289 pluginFound = <span class="keyword">true</span>; <a name="l00290"></a>00290 <span class="keywordflow">break</span>; <a name="l00291"></a>00291 } <a name="l00292"></a>00292 } <a name="l00293"></a>00293 <span class="keyword">delete</span> pluginList; <a name="l00294"></a>00294 <a name="l00295"></a>00295 <span class="comment">// if the plugin is already loaded or if it's disabled in the</span> <a name="l00296"></a>00296 <span class="comment">// configuration do nothing</span> <a name="l00297"></a>00297 <span class="keywordflow">if</span>( pluginFound || !pluginEnabled ) <a name="l00298"></a>00298 <span class="keywordflow">continue</span>; <a name="l00299"></a>00299 <a name="l00300"></a>00300 <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/group__kdebug.html#gafbb9aa4a84d6c0563d46550454b9714b">kdDebug</a>( 1000 ) << <span class="stringliteral">"load plugin "</span> << name << <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a">endl</a>; <a name="l00301"></a>00301 <a class="code" href="classKParts_1_1Plugin.html" title="A plugin is the way to add actions to an existing KParts application, or to a Part.">Plugin</a> *plugin = loadPlugin( parent, <a class="codeRef" href="qfile.html#encodeName">QFile::encodeName</a>(library) ); <a name="l00302"></a>00302 <a name="l00303"></a>00303 <span class="keywordflow">if</span> ( plugin ) <a name="l00304"></a>00304 { <a name="l00305"></a>00305 plugin->d->m_parentInstance = <a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a4fd5c48394a44cfe1ca4091bb2bb7523">instance</a>; <a name="l00306"></a>00306 plugin-><a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a6de555afb77fb964db93d306a5122368">setXMLFile</a>( (*pIt).m_relXMLFileName, <span class="keyword">false</span>, <span class="keyword">false</span> ); <a name="l00307"></a>00307 plugin-><a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a17566d518fa7c2b45f81b85fb8c4fc97">setDOMDocument</a>( (*pIt).m_document ); <a name="l00308"></a>00308 parentGUIClient-><a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#ad5dead4d8da7a6aa7d6bdf258aa43168">insertChildClient</a>( plugin ); <a name="l00309"></a>00309 } <a name="l00310"></a>00310 } <a name="l00311"></a>00311 } <a name="l00312"></a>00312 <a name="l00313"></a>00313 <span class="comment">// vim:sw=4:et:sts=4</span> <a name="l00314"></a>00314 <a name="l00315"></a>00315 <span class="preprocessor">#include "plugin.moc"</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>kparts</h2> <div class="nav_list"> <ul><li><a href="index.html">Main Page</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></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="classKParts_1_1BrowserExtension.html">kparts::browserextension</option>, <option value="classKParts_1_1BrowserHostExtension.html">kparts::browserhostextension</option>, <option value="classKParts_1_1BrowserInterface.html">kparts::browserinterface</option>, <option value="classKParts_1_1BrowserRun.html">kparts::browserrun</option>, <option value="classKParts_1_1DockMainWindow.html">kparts::dockmainwindow</option>, <option value="classKParts_1_1Event.html">kparts::event</option>, <option value="classKParts_1_1Factory.html">kparts::factory</option>, <option value="classKParts_1_1GenericFactory.html">kparts::genericfactory</option>, <option value="classKParts_1_1GUIActivateEvent.html">kparts::guiactivateevent</option>, <option value="classKParts_1_1HistoryProvider.html">kparts::historyprovider</option>, <option value="classKParts_1_1LiveConnectExtension.html">kparts::liveconnectextension</option>, <option value="classKParts_1_1MainWindow.html">kparts::mainwindow</option>, <option value="classKParts_1_1OpenURLEvent.html">kparts::openurlevent</option>, <option value="classKParts_1_1Part.html">kparts::part</option>, <option value="classKParts_1_1PartActivateEvent.html">kparts::partactivateevent</option>, <option value="classKParts_1_1PartBase.html">kparts::partbase</option>, <option value="classKParts_1_1PartManager.html">kparts::partmanager</option>, <option value="classKParts_1_1PartSelectEvent.html">kparts::partselectevent</option>, <option value="classKParts_1_1Plugin.html">kparts::plugin</option>, <option value="classKParts_1_1ReadOnlyPart.html">kparts::readonlypart</option>, <option value="classKParts_1_1ReadWritePart.html">kparts::readwritepart</option>, <option value="classKParts_1_1StatusBarExtension.html">kparts::statusbarextension</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> <a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li> <a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li> <a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li> <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> <a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li> <a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li> <a href="../../kio/kfile/html/index.html">kfile</a></li><li> <a href="../../kio/kio/html/index.html">kio</a></li><li> <a href="../../kio/kioexec/html/index.html">kioexec</a></li><li> <a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li> <a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li> <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> <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="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:winter@kde.org">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>