Sophie

Sophie

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

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>kparts: KParts::Plugin Class Reference (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 id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>KParts</b>      </li>
      <li class="navelem"><a class="el" href="classKParts_1_1Plugin.html">Plugin</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</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>  </div>
  <div class="headertitle">
<div class="title">KParts::Plugin Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KParts::Plugin" --><!-- doxytag: inherits="QObject,KXMLGUIClient" -->
<p>A plugin is the way to add actions to an existing KParts application, or to a <a class="el" href="classKParts_1_1Part.html" title="Base class for parts.">Part</a>.  
 <a href="classKParts_1_1Plugin.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="plugin_8h_source.html">plugin.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for KParts::Plugin:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classKParts_1_1Plugin.png" usemap="#KParts::Plugin_map" alt=""/>
  <map id="KParts::Plugin_map" name="KParts::Plugin_map">
<area href="qobject.html" alt="QObject" shape="rect" coords="0,0,99,24"/>
<area doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html" alt="KXMLGUIClient" shape="rect" coords="109,0,208,24"/>
</map>
 </div></div>

<p><a href="classKParts_1_1Plugin-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structKParts_1_1Plugin_1_1PluginInfo.html">PluginInfo</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Struct holding information about a plugin.  <a href="structKParts_1_1Plugin_1_1PluginInfo.html#details">More...</a><br/></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="classKParts_1_1Plugin.html#a4dc79e27044aa5ce3d8cea9e831cbc2e">Plugin</a> (<a class="elRef" href="qobject.html">QObject</a> *<a class="elRef" href="qobject.html#parent">parent</a>=0, const char *<a class="elRef" href="qobject.html#name">name</a>=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKParts_1_1Plugin.html#aee4cc1864a2afa84a9ad935153f3fe39">~Plugin</a> ()</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="classKParts_1_1Plugin.html#a0b7c64589ea427f05a991255a7fd34eb">xmlFile</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="classKParts_1_1Plugin.html#af22550dde9846b136499c4e99e0e4277">localXMLFile</a> () 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 void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKParts_1_1Plugin.html#af6d4fcccfb7a098939daf3ef0c224532">loadPlugins</a> (<a class="elRef" href="qobject.html">QObject</a> *<a class="elRef" href="qobject.html#parent">parent</a>, const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *<a class="elRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a4fd5c48394a44cfe1ca4091bb2bb7523">instance</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKParts_1_1Plugin.html#aac1de85c8225b72fc74cc20022339355">loadPlugins</a> (<a class="elRef" href="qobject.html">QObject</a> *<a class="elRef" href="qobject.html#parent">parent</a>, const <a class="elRef" href="qvaluelist.html">QValueList</a>&lt; <a class="el" href="structKParts_1_1Plugin_1_1PluginInfo.html">PluginInfo</a> &gt; &amp;pluginInfos)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKParts_1_1Plugin.html#aa2e8562174c314eb2de2ed894a9ccae1">loadPlugins</a> (<a class="elRef" href="qobject.html">QObject</a> *<a class="elRef" href="qobject.html#parent">parent</a>, const <a class="elRef" href="qvaluelist.html">QValueList</a>&lt; <a class="el" href="structKParts_1_1Plugin_1_1PluginInfo.html">PluginInfo</a> &gt; &amp;pluginInfos, const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *<a class="elRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a4fd5c48394a44cfe1ca4091bb2bb7523">instance</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKParts_1_1Plugin.html#aadd4fb00bb9e0b5a8c5c02112d526da4">loadPlugins</a> (<a class="elRef" href="qobject.html">QObject</a> *<a class="elRef" href="qobject.html#parent">parent</a>, <a class="elRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html">KXMLGUIClient</a> *parentGUIClient, <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *<a class="elRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a4fd5c48394a44cfe1ca4091bb2bb7523">instance</a>, bool enableNewPluginsByDefault=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qptrlist.html">QPtrList</a>&lt; <a class="el" href="classKParts_1_1Plugin.html">Plugin</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKParts_1_1Plugin.html#a4960554af256d2c546701c0790739a71">pluginObjects</a> (<a class="elRef" href="qobject.html">QObject</a> *<a class="elRef" href="qobject.html#parent">parent</a>)</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="ac4662a8ef893dc59a8dd00a674bd2a90"></a><!-- doxytag: member="KParts::Plugin::setInstance" ref="ac4662a8ef893dc59a8dd00a674bd2a90" args="(KInstance *instance)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>setInstance</b> (<a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *<a class="elRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a4fd5c48394a44cfe1ca4091bb2bb7523">instance</a>)</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 <a class="elRef" href="qvaluelist.html">QValueList</a><br class="typebreak"/>
&lt; <a class="el" href="structKParts_1_1Plugin_1_1PluginInfo.html">Plugin::PluginInfo</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKParts_1_1Plugin.html#ab32fdab641761d207c7648e291d17a03">pluginInfos</a> (const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *<a class="elRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a4fd5c48394a44cfe1ca4091bb2bb7523">instance</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3229a559764a4e0396ac30ac445f2d88"></a><!-- doxytag: member="KParts::Plugin::loadPlugin" ref="a3229a559764a4e0396ac30ac445f2d88" args="(QObject *parent, const char *libname)" -->
static <a class="el" href="classKParts_1_1Plugin.html">Plugin</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>loadPlugin</b> (<a class="elRef" href="qobject.html">QObject</a> *<a class="elRef" href="qobject.html#parent">parent</a>, const char *libname)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A plugin is the way to add actions to an existing KParts application, or to a <a class="el" href="classKParts_1_1Part.html" title="Base class for parts.">Part</a>. </p>
<p>The XML of those plugins looks exactly like of the shell or parts, with one small difference: The document tag should have an additional attribute, named "library", and contain the name of the library implementing the plugin.</p>
<p>If you want this plugin to be used by a part, you need to install the rc file under the directory "data" (KDEDIR/share/apps usually)+"/instancename/kpartplugins/" where instancename is the name of the part's instance.</p>
<p>You should also install a "plugin info" .desktop file with the same name. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structKParts_1_1Plugin_1_1PluginInfo.html" title="Struct holding information about a plugin.">PluginInfo</a> </dd></dl>

<p>Definition at line <a class="el" href="plugin_8h_source.html#l00049">49</a> of file <a class="el" href="plugin_8h_source.html">plugin.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4dc79e27044aa5ce3d8cea9e831cbc2e"></a><!-- doxytag: member="KParts::Plugin::Plugin" ref="a4dc79e27044aa5ce3d8cea9e831cbc2e" args="(QObject *parent=0, const char *name=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Plugin::Plugin </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qobject.html">QObject</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a new KParts plugin. </p>

<p>Definition at line <a class="el" href="plugin_8cpp_source.html#l00052">52</a> of file <a class="el" href="plugin_8cpp_source.html">plugin.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aee4cc1864a2afa84a9ad935153f3fe39"></a><!-- doxytag: member="KParts::Plugin::~Plugin" ref="aee4cc1864a2afa84a9ad935153f3fe39" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Plugin::~Plugin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>

<p>Definition at line <a class="el" href="plugin_8cpp_source.html#l00059">59</a> of file <a class="el" href="plugin_8cpp_source.html">plugin.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="af6d4fcccfb7a098939daf3ef0c224532"></a><!-- doxytag: member="KParts::Plugin::loadPlugins" ref="af6d4fcccfb7a098939daf3ef0c224532" args="(QObject *parent, const KInstance *instance)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Plugin::loadPlugins </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qobject.html">QObject</a> *&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *&#160;</td>
          <td class="paramname"><em>instance</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Load the plugin libraries from the directories appropriate to <code>instance</code> and make the <a class="el" 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> objects children of <code>parent</code>. </p>
<p>It is recommended to use the last loadPlugins method instead, to support enabling and disabling of plugins. </p>

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

</div>
</div>
<a class="anchor" id="aac1de85c8225b72fc74cc20022339355"></a><!-- doxytag: member="KParts::Plugin::loadPlugins" ref="aac1de85c8225b72fc74cc20022339355" args="(QObject *parent, const QValueList&lt; PluginInfo &gt; &amp;pluginInfos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Plugin::loadPlugins </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qobject.html">QObject</a> *&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qvaluelist.html">QValueList</a>&lt; <a class="el" href="structKParts_1_1Plugin_1_1PluginInfo.html">PluginInfo</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>pluginInfos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Load the plugin libraries specified by the list <code>docs</code> and make the <a class="el" 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> objects children of <code>parent</code> . </p>
<p>It is recommended to use the last loadPlugins method instead, to support enabling and disabling of plugins. </p>

<p>Definition at line <a class="el" href="plugin_8cpp_source.html#l00170">170</a> of file <a class="el" href="plugin_8cpp_source.html">plugin.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa2e8562174c314eb2de2ed894a9ccae1"></a><!-- doxytag: member="KParts::Plugin::loadPlugins" ref="aa2e8562174c314eb2de2ed894a9ccae1" args="(QObject *parent, const QValueList&lt; PluginInfo &gt; &amp;pluginInfos, const KInstance *instance)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Plugin::loadPlugins </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qobject.html">QObject</a> *&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qvaluelist.html">QValueList</a>&lt; <a class="el" href="structKParts_1_1Plugin_1_1PluginInfo.html">PluginInfo</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>pluginInfos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *&#160;</td>
          <td class="paramname"><em>instance</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Load the plugin libraries specified by the list <code>pluginInfos</code>, make the <a class="el" 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> objects children of <code>parent</code>, and use the given <code>instance</code>. </p>
<p>It is recommended to use the last loadPlugins method instead, to support enabling and disabling of plugins. </p>

<p>Definition at line <a class="el" href="plugin_8cpp_source.html#l00146">146</a> of file <a class="el" href="plugin_8cpp_source.html">plugin.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aadd4fb00bb9e0b5a8c5c02112d526da4"></a><!-- doxytag: member="KParts::Plugin::loadPlugins" ref="aadd4fb00bb9e0b5a8c5c02112d526da4" args="(QObject *parent, KXMLGUIClient *parentGUIClient, KInstance *instance, bool enableNewPluginsByDefault=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Plugin::loadPlugins </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qobject.html">QObject</a> *&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html">KXMLGUIClient</a> *&#160;</td>
          <td class="paramname"><em>parentGUIClient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *&#160;</td>
          <td class="paramname"><em>instance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enableNewPluginsByDefault</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Load the plugin libraries for the given <code>instance</code>, make the <a class="el" 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> objects children of <code>parent</code>, and insert the plugin as a child GUI client of <code>parentGUIClient</code>. </p>
<p>This method uses the <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKConfig.html">KConfig</a> object of the given instance, to find out which plugins are enabled and which are disabled. What happens by default (i.e. for new plugins that are not in that config file) is controlled by <code>enableNewPluginsByDefault</code>. It can be overridden by the plugin if it sets the X-KDE-PluginInfo-EnabledByDefault key in the .desktop file (with the same name as the .rc file)</p>
<p>If a disabled plugin is already loaded it will be removed from the GUI factory and deleted.</p>
<p>This method is automatically called by <a class="el" href="classKParts_1_1Plugin.html" title="A plugin is the way to add actions to an existing KParts application, or to a Part.">KParts::Plugin</a> and by <a class="el" href="classKParts_1_1MainWindow.html" title="A KPart-aware main window, whose user interface is described in XML.">KParts::MainWindow</a>.</p>
<p>If you call this method in an already constructed GUI (like when the user has changed which plugins are enabled) you need to add the new plugins to the <a class="elRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIFactory.html">KXMLGUIFactory</a>: </p>
<div class="fragment"><pre class="fragment"> <span class="keywordflow">if</span>( <a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a2c7a5e2f7d02eec609d9f53df364628e">factory</a>() )
 {
   <a class="codeRef" href="qptrlist.html">QPtrList&lt;KParts::Plugin&gt;</a> plugins = <a class="code" href="classKParts_1_1Plugin.html#a4960554af256d2c546701c0790739a71" title="Returns a list of plugin objects loaded for parent.">KParts::Plugin::pluginObjects</a>( <span class="keyword">this</span> );
   <a class="codeRef" href="qptrlistiterator.html">QPtrListIterator&lt;KParts::Plugin&gt;</a> it( plugins );
   <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.">KParts::Plugin</a> * plugin;
   <span class="keywordflow">while</span>( ( plugin = it.current() ) != 0 )
   {
     ++it;
     <a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a2c7a5e2f7d02eec609d9f53df364628e">factory</a>()-&gt;<a class="codeRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIFactory.html#a85a1dcbcd7e888cb24abd0d4ce794d67">addClient</a>(  plugin );
   }
 }
</pre></div> 
<p>Definition at line <a class="el" href="plugin_8cpp_source.html#l00227">227</a> of file <a class="el" href="plugin_8cpp_source.html">plugin.cpp</a>.</p>

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

<p>Reimplemented for internal reasons. </p>

<p>Reimplemented from <a class="elRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#a8a5eb82f1e0843e5e31d7fe4a58f5168">KXMLGUIClient</a>.</p>

<p>Definition at line <a class="el" href="plugin_8cpp_source.html#l00076">76</a> of file <a class="el" href="plugin_8cpp_source.html">plugin.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab32fdab641761d207c7648e291d17a03"></a><!-- doxytag: member="KParts::Plugin::pluginInfos" ref="ab32fdab641761d207c7648e291d17a03" args="(const KInstance *instance)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qvaluelist.html">QValueList</a>&lt; <a class="el" href="structKParts_1_1Plugin_1_1PluginInfo.html">Plugin::PluginInfo</a> &gt; Plugin::pluginInfos </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKInstance.html">KInstance</a> *&#160;</td>
          <td class="paramname"><em>instance</em></td><td>)</td>
          <td><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Look for plugins in the <code>instance's</code> "data" directory (+"/kpartplugins") </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A list of <a class="elRef" href="qdomdocument.html">QDomDocument</a> s, containing the parsed xml documents returned by plugins. </dd></dl>

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

</div>
</div>
<a class="anchor" id="a4960554af256d2c546701c0790739a71"></a><!-- doxytag: member="KParts::Plugin::pluginObjects" ref="a4960554af256d2c546701c0790739a71" args="(QObject *parent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qptrlist.html">QPtrList</a>&lt; <a class="el" href="classKParts_1_1Plugin.html">KParts::Plugin</a> &gt; Plugin::pluginObjects </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qobject.html">QObject</a> *&#160;</td>
          <td class="paramname"><em>parent</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a list of plugin objects loaded for <code>parent</code>. </p>
<p>This functions basically calls the queryList method of <a class="elRef" href="qobject.html">QObject</a> to retrieve the list of child objects inheriting <a class="el" href="classKParts_1_1Plugin.html" title="A plugin is the way to add actions to an existing KParts application, or to a Part.">KParts::Plugin</a> . </p>

<p>Definition at line <a class="el" href="plugin_8cpp_source.html#l00185">185</a> of file <a class="el" href="plugin_8cpp_source.html">plugin.cpp</a>.</p>

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

<p>Reimplemented for internal reasons. </p>

<p>Reimplemented from <a class="elRef" doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html#af69761470953d4cd2122108d0440e21b">KXMLGUIClient</a>.</p>

<p>Definition at line <a class="el" href="plugin_8cpp_source.html#l00064">64</a> of file <a class="el" href="plugin_8cpp_source.html">plugin.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="plugin_8h_source.html">plugin.h</a></li>
<li><a class="el" href="plugin_8cpp_source.html">plugin.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>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>&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>