Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > f89abdeb016114b348a5c554d8214329 > files > 9810

kdelibs-apidocs-3.5.4-30.el5.centos.x86_64.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>kresources: KRES::Resource Class Reference (kresources)</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=".">kresources</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.4.7 -->
<div class="nav">
<a class="el" href="namespaceKRES.html">KRES</a>::<a class="el" href="classKRES_1_1Resource.html">Resource</a></div>
<h1>KRES::Resource Class Reference</h1><!-- doxytag: class="KRES::Resource" --><!-- doxytag: inherits="QObject" --><code>#include &lt;<a class="el" href="resource_8h-source.html">resource.h</a>&gt;</code>
<p>
<p>Inheritance diagram for KRES::Resource:
<p><center><img src="classKRES_1_1Resource.png" usemap="#KRES::Resource_map" border="0" alt=""></center>
<map name="KRES::Resource_map">
<area doxygen="qt.tag:" href="qobject.html" alt="QObject" shape="rect" coords="0,0,104,24">
</map>
<a href="classKRES_1_1Resource-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
This class provides a resource which is managed in a general way. 
<p>
A <a class="el" href="classKRES_1_1Resource.html">Resource</a> represents the concept of an object with the following attributes:<p>
<ul>
<li>Applications operate on sets of one or more <a class="el" href="classKRES_1_1Resource.html">Resource</a> objects.</li><li>Creation and deletetion of <a class="el" href="classKRES_1_1Resource.html">Resource</a> objects is done in a general way, independent of concrete functionality of the <a class="el" href="classKRES_1_1Resource.html">Resource</a>.</li><li>The end user has control over creation, deletion and configuration of <a class="el" href="classKRES_1_1Resource.html">Resource</a> object.</li><li>Properties, behaviour and configuration of different <a class="el" href="classKRES_1_1Resource.html">Resource</a> objects can widely differ.</li><li>Resources can be active or inactive.</li><li>There is one special <a class="el" href="classKRES_1_1Resource.html">Resource</a> which is the standard <a class="el" href="classKRES_1_1Resource.html">Resource</a>. This can for example be used as default destination for newly created object managed by a certain <a class="el" href="classKRES_1_1Resource.html">Resource</a> family.</li><li>Activation of Resources can be covered by a two step process of being opened and then loaded. Deactivation corresponds to saving and closing.</li><li>Different application ususally share the same set of Resources.</li></ul>
<p>
The <a class="el" href="classKRES_1_1Resource.html">Resource</a> base class provides the management functionality. Classes inheriting from <a class="el" href="classKRES_1_1Resource.html">Resource</a> automatically appear in the general kresources kcontrol module.<p>
Concrete functionality of Resources is specified per family by a subclass of <a class="el" href="classKRES_1_1Resource.html">Resource</a>. This classes in turn have subclasses which implement the different flavours of the functionality represented by the family.<p>
A subclass should reimplement at least the constructor and the writeConfig method.<p>
An example for a <a class="el" href="classKRES_1_1Resource.html">Resource</a> subclass hierarchy would be the "calendar" family. The ResourceCalendar subclass would specify an API for accessing calendar data. Subclasses of ResourceCalendar would implement this API for local files, remote files, specific calendar servers etc. 
<p>

<p>
Definition at line <a class="el" href="resource_8h-source.html#l00255">255</a> of file <a class="el" href="resource_8h-source.html">resource.h</a>.<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dd9e0a4a4f0afed9b9bd91536e98da02"></a><!-- doxytag: member="KRES::Resource::List" ref="dd9e0a4a4f0afed9b9bd91536e98da02" args="" -->
typedef <a class="elRef" doxygen="qt.tag:" href="qvaluelist.html">QValueList</a>&lt; <a class="el" href="classKRES_1_1Resource.html">Resource</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#dd9e0a4a4f0afed9b9bd91536e98da02">List</a></td></tr>

<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#efeb6b0fbc8eb273c20bcf605dd45f9d">Resource</a> (const KConfig *config)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#4490316cd77f4662a37efc09280c24f8">~Resource</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#0cb8c67ea7eb9140ed031b31d3036c74">writeConfig</a> (KConfig *config)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#40c33c9b06c4618f96bc7de58c42e96f">open</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#5460d0a21808753ee1435fdd4025cb6b">close</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#7062df32c98860e75deea8705a40d1ef">isOpen</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#3b0e1bf7343d2d5478b70fd1d1dfdbc3">identifier</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#3ab0fabf7b1a95fdb5ecf05d3b43c6e7">type</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#a5ee2e1269e56198aa69dfd22a2a6bab">setReadOnly</a> (bool value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#4f7cf901b2a56aa0f0b0f5427cd4345d">readOnly</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#a0c8c87ff5b99dda1336055a89ef8b54">setResourceName</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;<a class="elRef" doxygen="qt.tag:" href="qobject.html#name">name</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#15fcad13dd5d3a2e5246bb0badedd457">resourceName</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#d8e098921fa917793a521dfaea0cf3ce">setActive</a> (bool active)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#ebca0b6540d039ec8124f16e0bc888fe">isActive</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#be8d7430e8df3a1befaeb22e73aaa724">dump</a> () const </td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#c525d54a65c98f1c6828f7bfebaa4461">doOpen</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#32c51122eeca72ecdce1ad9897bd2e5f">doClose</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="097562bd001cf654220ba7c375f48732"></a><!-- doxytag: member="KRES::Resource::setIdentifier" ref="097562bd001cf654220ba7c375f48732" args="(const QString &amp;identifier)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setIdentifier</b> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;identifier)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="33bd1ada31e17c9cb39399d17fca8e63"></a><!-- doxytag: member="KRES::Resource::setType" ref="33bd1ada31e17c9cb39399d17fca8e63" args="(const QString &amp;type)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setType</b> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;type)</td></tr>

<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="328c093d609680cca505905c6d49901a"></a><!-- doxytag: member="KRES::Resource::Factory" ref="328c093d609680cca505905c6d49901a" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#328c093d609680cca505905c6d49901a">Factory</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cb9dc953d201e3c2d9c5da9d54b44b23"></a><!-- doxytag: member="KRES::Resource::ManagerImpl" ref="cb9dc953d201e3c2d9c5da9d54b44b23" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#cb9dc953d201e3c2d9c5da9d54b44b23">ManagerImpl</a></td></tr>

</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="efeb6b0fbc8eb273c20bcf605dd45f9d"></a><!-- doxytag: member="KRES::Resource::Resource" ref="efeb6b0fbc8eb273c20bcf605dd45f9d" args="(const KConfig *config)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KRES::Resource::Resource           </td>
          <td>(</td>
          <td class="paramtype">const KConfig *&nbsp;</td>
          <td class="paramname"> <em>config</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor. 
<p>
Construct resource from config. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>config</em>&nbsp;</td><td>Configuration to read persistence information from. If config is 0, create object using default settings. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="4490316cd77f4662a37efc09280c24f8"></a><!-- doxytag: member="KRES::Resource::~Resource" ref="4490316cd77f4662a37efc09280c24f8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual KRES::Resource::~Resource           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructor. 
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="5460d0a21808753ee1435fdd4025cb6b"></a><!-- doxytag: member="KRES::Resource::close" ref="5460d0a21808753ee1435fdd4025cb6b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KRES::Resource::close           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decrease the open count of this object, and if the count reaches zero, close this resource by calling <a class="el" href="classKRES_1_1Resource.html#32c51122eeca72ecdce1ad9897bd2e5f">doClose()</a>. 
<p>
This method may block while another thread is concurrently closing or opening the resource. 
</div>
</div><p>
<a class="anchor" name="32c51122eeca72ecdce1ad9897bd2e5f"></a><!-- doxytag: member="KRES::Resource::doClose" ref="32c51122eeca72ecdce1ad9897bd2e5f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KRES::Resource::doClose           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Close this resource. 
<p>
Pre-condition: resource is open. Post-condition: resource is closed. 
<p>
Definition at line <a class="el" href="resource_8h-source.html#l00374">374</a> of file <a class="el" href="resource_8h-source.html">resource.h</a>.
</div>
</div><p>
<a class="anchor" name="c525d54a65c98f1c6828f7bfebaa4461"></a><!-- doxytag: member="KRES::Resource::doOpen" ref="c525d54a65c98f1c6828f7bfebaa4461" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool KRES::Resource::doOpen           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Open this resource. 
<p>
When called, the resource must be in a closed state.<p>
Returns true if the resource was opened successfully; returns false if the resource was not opened successfully.<p>
The result of this call can be accessed later by <a class="el" href="classKRES_1_1Resource.html#7062df32c98860e75deea8705a40d1ef">isOpen()</a> 
<p>
Definition at line <a class="el" href="resource_8h-source.html#l00368">368</a> of file <a class="el" href="resource_8h-source.html">resource.h</a>.
</div>
</div><p>
<a class="anchor" name="be8d7430e8df3a1befaeb22e73aaa724"></a><!-- doxytag: member="KRES::Resource::dump" ref="be8d7430e8df3a1befaeb22e73aaa724" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KRES::Resource::dump           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Print resource information as debug output. 
<p>

</div>
</div><p>
<a class="anchor" name="3b0e1bf7343d2d5478b70fd1d1dfdbc3"></a><!-- doxytag: member="KRES::Resource::identifier" ref="3b0e1bf7343d2d5478b70fd1d1dfdbc3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KRES::Resource::identifier           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a unique identifier. 
<p>
The identifier is unique for this resource. It is created when the resource is first created, and it is retained in the resource family configuration file for this resource. <dl compact><dt><b>Returns:</b></dt><dd>This resource's identifier </dd></dl>

</div>
</div><p>
<a class="anchor" name="ebca0b6540d039ec8124f16e0bc888fe"></a><!-- doxytag: member="KRES::Resource::isActive" ref="ebca0b6540d039ec8124f16e0bc888fe" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KRES::Resource::isActive           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return true, if the resource is active. 
<p>

</div>
</div><p>
<a class="anchor" name="7062df32c98860e75deea8705a40d1ef"></a><!-- doxytag: member="KRES::Resource::isOpen" ref="7062df32c98860e75deea8705a40d1ef" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KRES::Resource::isOpen           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns whether the resource is open or not. 
<p>

</div>
</div><p>
<a class="anchor" name="40c33c9b06c4618f96bc7de58c42e96f"></a><!-- doxytag: member="KRES::Resource::open" ref="40c33c9b06c4618f96bc7de58c42e96f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KRES::Resource::open           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Open this resource, if it not already open. 
<p>
Increase the open count of this object, and open the resource by calling <a class="el" href="classKRES_1_1Resource.html#c525d54a65c98f1c6828f7bfebaa4461">doOpen()</a>. This method may block while another thread is concurrently opening or closing the resource.<p>
Returns true if the resource was already opened or if it was opened successfully; returns false if the resource was not opened successfully. 
</div>
</div><p>
<a class="anchor" name="4f7cf901b2a56aa0f0b0f5427cd4345d"></a><!-- doxytag: member="KRES::Resource::readOnly" ref="4f7cf901b2a56aa0f0b0f5427cd4345d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool KRES::Resource::readOnly           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns, if the resource is read-only. 
<p>

</div>
</div><p>
<a class="anchor" name="15fcad13dd5d3a2e5246bb0badedd457"></a><!-- doxytag: member="KRES::Resource::resourceName" ref="15fcad13dd5d3a2e5246bb0badedd457" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KRES::Resource::resourceName           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the name of resource. 
<p>

</div>
</div><p>
<a class="anchor" name="d8e098921fa917793a521dfaea0cf3ce"></a><!-- doxytag: member="KRES::Resource::setActive" ref="d8e098921fa917793a521dfaea0cf3ce" args="(bool active)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KRES::Resource::setActive           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>active</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets, if the resource is active. 
<p>

</div>
</div><p>
<a class="anchor" name="a5ee2e1269e56198aa69dfd22a2a6bab"></a><!-- doxytag: member="KRES::Resource::setReadOnly" ref="a5ee2e1269e56198aa69dfd22a2a6bab" args="(bool value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KRES::Resource::setReadOnly           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>value</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Mark the resource as read-only. 
<p>
You can override this method, but also remember to call <a class="el" href="classKRES_1_1Resource.html#a5ee2e1269e56198aa69dfd22a2a6bab">Resource::setReadOnly()</a>. 
</div>
</div><p>
<a class="anchor" name="a0c8c87ff5b99dda1336055a89ef8b54"></a><!-- doxytag: member="KRES::Resource::setResourceName" ref="a0c8c87ff5b99dda1336055a89ef8b54" args="(const QString &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KRES::Resource::setResourceName           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the name of resource. 
<p>
You can override this method, but also remember to call <a class="el" href="classKRES_1_1Resource.html#a0c8c87ff5b99dda1336055a89ef8b54">Resource::setResourceName()</a>. 
</div>
</div><p>
<a class="anchor" name="3ab0fabf7b1a95fdb5ecf05d3b43c6e7"></a><!-- doxytag: member="KRES::Resource::type" ref="3ab0fabf7b1a95fdb5ecf05d3b43c6e7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KRES::Resource::type           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the type of this resource. 
<p>

</div>
</div><p>
<a class="anchor" name="0cb8c67ea7eb9140ed031b31d3036c74"></a><!-- doxytag: member="KRES::Resource::writeConfig" ref="0cb8c67ea7eb9140ed031b31d3036c74" args="(KConfig *config)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KRES::Resource::writeConfig           </td>
          <td>(</td>
          <td class="paramtype">KConfig *&nbsp;</td>
          <td class="paramname"> <em>config</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Write configuration information for this resource to a configuration file. 
<p>
If you override this method, remember to call <a class="el" href="classKRES_1_1Resource.html#0cb8c67ea7eb9140ed031b31d3036c74">Resource::writeConfig</a> or Terrible Things(TM) will happen. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>config</em>&nbsp;</td><td>Configuration to write persistence information to. </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="resource_8h-source.html">resource.h</a></ul>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kresources</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="classKCMKResources.html">kcmkresources</option>,  <option value="classKRES_1_1ConfigDialog.html">kres::configdialog</option>,  <option value="classKRES_1_1ConfigPage.html">kres::configpage</option>,  <option value="classKRES_1_1ConfigWidget.html">kres::configwidget</option>,  <option value="classKRES_1_1Factory.html">kres::factory</option>,  <option value="classKRES_1_1Manager.html">kres::manager</option>,  <option value="classKRES_1_1Manager_1_1ActiveIterator.html">kres::manager::activeiterator</option>,  <option value="classKRES_1_1Manager_1_1Iterator.html">kres::manager::iterator</option>,  <option value="classKRES_1_1ManagerIface.html">kres::manageriface</option>,  <option value="classKRES_1_1ManagerIface__stub.html">kres::manageriface__stub</option>,  <option value="classKRES_1_1ManagerImpl.html">kres::managerimpl</option>,  <option value="classKRES_1_1ManagerNotifier.html">kres::managernotifier</option>,  <option value="classKRES_1_1ManagerObserver.html">kres::managerobserver</option>,  <option value="classKRES_1_1PluginFactory.html">kres::pluginfactory</option>,  <option value="classKRES_1_1PluginFactoryBase.html">kres::pluginfactorybase</option>,  <option value="classKRES_1_1Resource.html">kres::resource</option>,  <option value="classKRES_1_1ResourcePageInfo.html">kres::resourcepageinfo</option>,  <option value="classKRES_1_1SelectDialog.html">kres::selectdialog</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&#116;&#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>