Sophie

Sophie

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

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>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.7.4 -->
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>KRES</b>      </li>
      <li class="navelem"><a class="el" href="classKRES_1_1Resource.html">Resource</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">KRES::Resource Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KRES::Resource" --><!-- doxytag: inherits="QObject" -->
<p>This class provides a resource which is managed in a general way.  
 <a href="classKRES_1_1Resource.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="resource_8h_source.html">resource.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for KRES::Resource:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classKRES_1_1Resource.png" usemap="#KRES::Resource_map" alt=""/>
  <map id="KRES::Resource_map" name="KRES::Resource_map">
<area href="qobject.html" alt="QObject" shape="rect" coords="0,0,104,24"/>
</map>
 </div></div>

<p><a href="classKRES_1_1Resource-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="add9e0a4a4f0afed9b9bd91536e98da02"></a><!-- doxytag: member="KRES::Resource::List" ref="add9e0a4a4f0afed9b9bd91536e98da02" args="" -->
typedef <a class="elRef" href="qvaluelist.html">QValueList</a>&lt; <a class="el" href="classKRES_1_1Resource.html">Resource</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>List</b></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#ab51c4fd72cc1170f7811b76f1ea56a65">Resource</a> (const KConfig *config)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#a0e5ec475e2601bdb33644468e86f6f10">~Resource</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#a1dd01b89702931d060d87332001e77d4">writeConfig</a> (KConfig *config)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#a0bace10c217883eea74fbd584ce5097b">open</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#abd1bb168eccdd27ea4aecbb86836bc62">close</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#a4dfd930f90d81362c8e2a64ad2481b39">isOpen</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#ae17cf4470b97c121651c4fa5a75a0b83">identifier</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#ab6a1040675eb77a2b86592d122a17a90">type</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#a021163f496e0d69936118a7960edb02a">setReadOnly</a> (bool value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#a2a35a353d26abefad3ecb113ee5c5de4">readOnly</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#a54ecadca62801e08b9881af3593a05b2">setResourceName</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;<a class="elRef" href="qobject.html#name">name</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="classKRES_1_1Resource.html#a52ebe0cdda9c7968b99b25f85446ef89">resourceName</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#adbbb6904d693a1e82470c00af000ed1f">setActive</a> (bool active)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#a879c67fdfc7b040a96925bb24400cb19">isActive</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#a6b66cd10ba2b00886d0b191622be9c38">dump</a> () const </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">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#ac525d54a65c98f1c6828f7bfebaa4461">doOpen</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRES_1_1Resource.html#a32c51122eeca72ecdce1ad9897bd2e5f">doClose</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abebb9edb9158d481d5d6a8d9e8fb8ea2"></a><!-- doxytag: member="KRES::Resource::setIdentifier" ref="abebb9edb9158d481d5d6a8d9e8fb8ea2" args="(const QString &amp;identifier)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setIdentifier</b> (const <a class="elRef" href="qstring.html">QString</a> &amp;identifier)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5fd37bff36721435a837754372ab68f3"></a><!-- doxytag: member="KRES::Resource::setType" ref="a5fd37bff36721435a837754372ab68f3" args="(const QString &amp;type)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setType</b> (const <a class="elRef" href="qstring.html">QString</a> &amp;type)</td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a328c093d609680cca505905c6d49901a"></a><!-- doxytag: member="KRES::Resource::Factory" ref="a328c093d609680cca505905c6d49901a" args="" -->
class&#160;</td><td class="memItemRight" valign="bottom"><b>Factory</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acb9dc953d201e3c2d9c5da9d54b44b23"></a><!-- doxytag: member="KRES::Resource::ManagerImpl" ref="acb9dc953d201e3c2d9c5da9d54b44b23" args="" -->
class&#160;</td><td class="memItemRight" valign="bottom"><b>ManagerImpl</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class provides a resource which is managed in a general way. </p>
<p>A <a class="el" href="classKRES_1_1Resource.html" title="This class provides a resource which is managed in a general way.">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" title="This class provides a resource which is managed in a general way.">Resource</a> objects.</li>
<li>Creation and deletetion of <a class="el" href="classKRES_1_1Resource.html" title="This class provides a resource which is managed in a general way.">Resource</a> objects is done in a general way, independent of concrete functionality of the <a class="el" href="classKRES_1_1Resource.html" title="This class provides a resource which is managed in a general way.">Resource</a>.</li>
<li>The end user has control over creation, deletion and configuration of <a class="el" href="classKRES_1_1Resource.html" title="This class provides a resource which is managed in a general way.">Resource</a> object.</li>
<li>Properties, behaviour and configuration of different <a class="el" href="classKRES_1_1Resource.html" title="This class provides a resource which is managed in a general way.">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" title="This class provides a resource which is managed in a general way.">Resource</a> which is the standard <a class="el" href="classKRES_1_1Resource.html" title="This class provides a resource which is managed in a general way.">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" title="This class provides a resource which is managed in a general way.">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" title="This class provides a resource which is managed in a general way.">Resource</a> base class provides the management functionality. Classes inheriting from <a class="el" href="classKRES_1_1Resource.html" title="This class provides a resource which is managed in a general way.">Resource</a> automatically appear in the general kresources kcontrol module.</p>
<p>Concrete functionality of Resources is specified per family by a subclass of <a class="el" href="classKRES_1_1Resource.html" title="This class provides a resource which is managed in a general way.">Resource</a>. This classes in turn have subclasses which implement the different flavours of the functionality represented by the family.</p>
<p>A subclass should reimplement at least the constructor and the writeConfig method.</p>
<p>An example for a <a class="el" href="classKRES_1_1Resource.html" title="This class provides a resource which is managed in a general way.">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>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab51c4fd72cc1170f7811b76f1ea56a65"></a><!-- doxytag: member="KRES::Resource::Resource" ref="ab51c4fd72cc1170f7811b76f1ea56a65" args="(const KConfig *config)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Resource::Resource </td>
          <td>(</td>
          <td class="paramtype">const KConfig *&#160;</td>
          <td class="paramname"><em>config</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor. </p>
<p>Construct resource from config. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>Configuration to read persistence information from. If config is 0, create object using default settings. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00047">47</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0e5ec475e2601bdb33644468e86f6f10"></a><!-- doxytag: member="KRES::Resource::~Resource" ref="a0e5ec475e2601bdb33644468e86f6f10" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Resource::~Resource </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="resource_8cpp_source.html#l00068">68</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="abd1bb168eccdd27ea4aecbb86836bc62"></a><!-- doxytag: member="KRES::Resource::close" ref="abd1bb168eccdd27ea4aecbb86836bc62" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Resource::close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></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#a32c51122eeca72ecdce1ad9897bd2e5f" title="Close this resource.">doClose()</a>. </p>
<p>This method may block while another thread is concurrently closing or opening the resource. </p>

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00099">99</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a32c51122eeca72ecdce1ad9897bd2e5f"></a><!-- doxytag: member="KRES::Resource::doClose" ref="a32c51122eeca72ecdce1ad9897bd2e5f" 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>)</td>
          <td><code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Close this resource. </p>
<p>Pre-condition: resource is open. Post-condition: resource is closed. </p>

<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>.</p>

</div>
</div>
<a class="anchor" id="ac525d54a65c98f1c6828f7bfebaa4461"></a><!-- doxytag: member="KRES::Resource::doOpen" ref="ac525d54a65c98f1c6828f7bfebaa4461" 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>)</td>
          <td><code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Open this resource. </p>
<p>When called, the resource must be in a closed state.</p>
<p>Returns true if the resource was opened successfully; returns false if the resource was not opened successfully.</p>
<p>The result of this call can be accessed later by <a class="el" href="classKRES_1_1Resource.html#a4dfd930f90d81362c8e2a64ad2481b39" title="Returns whether the resource is open or not.">isOpen()</a> </p>

<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>.</p>

</div>
</div>
<a class="anchor" id="a6b66cd10ba2b00886d0b191622be9c38"></a><!-- doxytag: member="KRES::Resource::dump" ref="a6b66cd10ba2b00886d0b191622be9c38" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Resource::dump </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00173">173</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

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

<p>Returns a unique identifier. </p>
<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. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>This resource's identifier </dd></dl>

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00128">128</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a879c67fdfc7b040a96925bb24400cb19"></a><!-- doxytag: member="KRES::Resource::isActive" ref="a879c67fdfc7b040a96925bb24400cb19" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Resource::isActive </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00168">168</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4dfd930f90d81362c8e2a64ad2481b39"></a><!-- doxytag: member="KRES::Resource::isOpen" ref="a4dfd930f90d81362c8e2a64ad2481b39" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Resource::isOpen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00118">118</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0bace10c217883eea74fbd584ce5097b"></a><!-- doxytag: member="KRES::Resource::open" ref="a0bace10c217883eea74fbd584ce5097b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Resource::open </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Open this resource, if it not already open. </p>
<p>Increase the open count of this object, and open the resource by calling <a class="el" href="classKRES_1_1Resource.html#ac525d54a65c98f1c6828f7bfebaa4461" title="Open this resource.">doOpen()</a>. This method may block while another thread is concurrently opening or closing the resource.</p>
<p>Returns true if the resource was already opened or if it was opened successfully; returns false if the resource was not opened successfully. </p>

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00085">85</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2a35a353d26abefad3ecb113ee5c5de4"></a><!-- doxytag: member="KRES::Resource::readOnly" ref="a2a35a353d26abefad3ecb113ee5c5de4" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Resource::readOnly </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00148">148</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

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

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

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00158">158</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="adbbb6904d693a1e82470c00af000ed1f"></a><!-- doxytag: member="KRES::Resource::setActive" ref="adbbb6904d693a1e82470c00af000ed1f" args="(bool active)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Resource::setActive </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>active</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00163">163</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a021163f496e0d69936118a7960edb02a"></a><!-- doxytag: member="KRES::Resource::setReadOnly" ref="a021163f496e0d69936118a7960edb02a" args="(bool value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Resource::setReadOnly </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Mark the resource as read-only. </p>
<p>You can override this method, but also remember to call <a class="el" href="classKRES_1_1Resource.html#a021163f496e0d69936118a7960edb02a" title="Mark the resource as read-only.">Resource::setReadOnly()</a>. </p>

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00143">143</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a54ecadca62801e08b9881af3593a05b2"></a><!-- doxytag: member="KRES::Resource::setResourceName" ref="a54ecadca62801e08b9881af3593a05b2" args="(const QString &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Resource::setResourceName </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the name of resource. </p>
<p>You can override this method, but also remember to call <a class="el" href="classKRES_1_1Resource.html#a54ecadca62801e08b9881af3593a05b2" title="Set the name of resource.">Resource::setResourceName()</a>. </p>

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00153">153</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

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

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

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00138">138</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1dd01b89702931d060d87332001e77d4"></a><!-- doxytag: member="KRES::Resource::writeConfig" ref="a1dd01b89702931d060d87332001e77d4" args="(KConfig *config)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Resource::writeConfig </td>
          <td>(</td>
          <td class="paramtype">KConfig *&#160;</td>
          <td class="paramname"><em>config</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Write configuration information for this resource to a configuration file. </p>
<p>If you override this method, remember to call <a class="el" href="classKRES_1_1Resource.html#a1dd01b89702931d060d87332001e77d4" title="Write configuration information for this resource to a configuration file.">Resource::writeConfig</a> or Terrible Things(TM) will happen. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>Configuration to write persistence information to. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="resource_8cpp_source.html#l00074">74</a> of file <a class="el" href="resource_8cpp_source.html">resource.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="resource_8h_source.html">resource.h</a></li>
<li><a class="el" href="resource_8cpp_source.html">resource.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>kresources</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</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="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="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_1ManagerObserver.html">kres::managerobserver</option>,  <option value="classKRES_1_1Resource.html">kres::resource</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&#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>