Sophie

Sophie

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

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>kdesu: KDEsuClient Class Reference (kdesu)</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=".">kdesu</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>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">KDEsuClient Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KDEsuClient" -->
<p>A client class to access kdesud, the KDE su daemon.  
 <a href="classKDEsuClient.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="client_8h_source.html">client.h</a>&gt;</code></p>

<p><a href="classKDEsuClient-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#a39b45df20445b05999aadc0a5c871aa0">exec</a> (const <a class="elRef" href="qcstring.html">QCString</a> &amp;command, const <a class="elRef" href="qcstring.html">QCString</a> &amp;user, const <a class="elRef" href="qcstring.html">QCString</a> &amp;options=0, const <a class="elRef" href="qvaluelist.html">QCStringList</a> &amp;env=<a class="elRef" href="qvaluelist.html">QCStringList</a>())</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#a5e31f04c0d55e8443e8b84a000d80157">exitCode</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#ada2adfec59793ea18407fff7a6201539">setPass</a> (const char *pass, int timeout)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#aa97b96c67b221c903f022cb3eb0eb418">setHost</a> (const <a class="elRef" href="qcstring.html">QCString</a> &amp;host)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#af91944f71b56032458788665292eee0a">setPriority</a> (int priority)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#aeac5b99410cf688b315306267b20304f">setScheduler</a> (int scheduler)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#aeda7bd0c1cefbe2c73f6a0d9927efc4b">delCommand</a> (const <a class="elRef" href="qcstring.html">QCString</a> &amp;command, const <a class="elRef" href="qcstring.html">QCString</a> &amp;user)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#a551e52c618a02f83398806d49620285c">setVar</a> (const <a class="elRef" href="qcstring.html">QCString</a> &amp;key, const <a class="elRef" href="qcstring.html">QCString</a> &amp;value, int timeout=0, const <a class="elRef" href="qcstring.html">QCString</a> &amp;group=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qcstring.html">QCString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#a6b5f0a2d816ef2eb7374844530151588">getVar</a> (const <a class="elRef" href="qcstring.html">QCString</a> &amp;key)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qvaluelist.html">QValueList</a>&lt; <a class="elRef" href="qcstring.html">QCString</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#a1bf5ac0862ab8ee763dd965a5f43e05e">getKeys</a> (const <a class="elRef" href="qcstring.html">QCString</a> &amp;group)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#af9fca8b02513034614ceeaa14f0558f6">findGroup</a> (const <a class="elRef" href="qcstring.html">QCString</a> &amp;group)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#a73cf9ec8927b71457060101380e183cb">delVar</a> (const <a class="elRef" href="qcstring.html">QCString</a> &amp;key)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#a676249b21eff0f6d2983ad62600df145">delVars</a> (const <a class="elRef" href="qcstring.html">QCString</a> &amp;special_key)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#a438835e71461eed2c84b9c9f77cd7f48">delGroup</a> (const <a class="elRef" href="qcstring.html">QCString</a> &amp;group)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#a4b50366806799127128fffe53e6be355">ping</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#a76b70aeeb50905312295b09689e50b31">stopServer</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#ae88ee8613c67bb6df92f099eef6ab131">startServer</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKDEsuClient.html#a17fa75a7678917ead4bf7b8c1c1d7933">isServerSGID</a> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A client class to access kdesud, the KDE su daemon. </p>
<p>Kdesud can assist in password caching in two ways:</p>
<ul>
<li>For high security passwords, like for su and ssh, it executes the password requesting command for you. It feeds the password to the command, without ever returning it to you, the user. The daemon should be installed setgid nogroup, in order to be able to act as an inaccessible, trusted 3rd party. See exec, setPass, delCommand.</li>
</ul>
<ul>
<li>For lower security passwords, like web and ftp passwords, it can act as a persistent storage for string variables. These variables are returned to the user, and the daemon doesn't need to be setgid nogroup for this. See setVar, delVar, delGroup. </li>
</ul>

<p>Definition at line <a class="el" href="client_8h_source.html#l00050">50</a> of file <a class="el" href="client_8h_source.html">client.h</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aeda7bd0c1cefbe2c73f6a0d9927efc4b"></a><!-- doxytag: member="KDEsuClient::delCommand" ref="aeda7bd0c1cefbe2c73f6a0d9927efc4b" args="(const QCString &amp;command, const QCString &amp;user)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::delCommand </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>user</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Remove a password for a user/command. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>The command. </td></tr>
    <tr><td class="paramname">user</td><td>The user. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>zero on success, -1 on an error </dd></dl>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00268">268</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a438835e71461eed2c84b9c9f77cd7f48"></a><!-- doxytag: member="KDEsuClient::delGroup" ref="a438835e71461eed2c84b9c9f77cd7f48" args="(const QCString &amp;group)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::delGroup </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>group</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Delete all persistent variables in a group. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">group</td><td>the group name. See setVar. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00353">353</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a73cf9ec8927b71457060101380e183cb"></a><!-- doxytag: member="KDEsuClient::delVar" ref="a73cf9ec8927b71457060101380e183cb" args="(const QCString &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::delVar </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Delete a persistent variable. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>The name of the variable. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>zero on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00345">345</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a676249b21eff0f6d2983ad62600df145"></a><!-- doxytag: member="KDEsuClient::delVars" ref="a676249b21eff0f6d2983ad62600df145" args="(const QCString &amp;special_key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::delVars </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>special_key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Delete all persistent variables with the given key. </p>
<p>A specicalized variant of delVar(QCString) that removes all subsets of the cached varaibles given by <code>key</code>. In order for all cached variables related to this key to be deleted properly, the value given to the <code>group</code> argument when the setVar function was called, must be a subset of the argument given here and the key</p>
<dl class="note"><dt><b>Note:</b></dt><dd>Simply supplying the group key here WILL not necessarily work. If you only have a group key, then use delGroup instead.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">special_key</td><td>the name of the variable. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>zero on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00361">361</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a39b45df20445b05999aadc0a5c871aa0"></a><!-- doxytag: member="KDEsuClient::exec" ref="a39b45df20445b05999aadc0a5c871aa0" args="(const QCString &amp;command, const QCString &amp;user, const QCString &amp;options=0, const QCStringList &amp;env=QCStringList())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::exec </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>user</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>options</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qvaluelist.html">QCStringList</a> &amp;&#160;</td>
          <td class="paramname"><em>env</em> = <code><a class="elRef" href="qvaluelist.html">QCStringList</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Lets kdesud execute a command. </p>
<p>If the daemon does not have a password for this command, this will fail and you need to call <a class="el" href="classKDEsuClient.html#ada2adfec59793ea18407fff7a6201539" title="Set root&#39;s password, lasts one session.">setPass()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>The command to execute. </td></tr>
    <tr><td class="paramname">user</td><td>The user to run the command as. </td></tr>
    <tr><td class="paramname">options</td><td>Extra options. </td></tr>
    <tr><td class="paramname">env</td><td>Extra environment variables. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Zero on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00224">224</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5e31f04c0d55e8443e8b84a000d80157"></a><!-- doxytag: member="KDEsuClient::exitCode" ref="a5e31f04c0d55e8443e8b84a000d80157" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::exitCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Wait for the last command to exit and return the exit code. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Exit code of last command, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00374">374</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af9fca8b02513034614ceeaa14f0558f6"></a><!-- doxytag: member="KDEsuClient::findGroup" ref="af9fca8b02513034614ceeaa14f0558f6" args="(const QCString &amp;group)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KDEsuClient::findGroup </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>group</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if the specified group exists is cached. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">group</td><td>the group key </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the group is found </dd></dl>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00335">335</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1bf5ac0862ab8ee763dd965a5f43e05e"></a><!-- doxytag: member="KDEsuClient::getKeys" ref="a1bf5ac0862ab8ee763dd965a5f43e05e" args="(const QCString &amp;group)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qvaluelist.html">QValueList</a>&lt; <a class="elRef" href="qcstring.html">QCString</a> &gt; KDEsuClient::getKeys </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>group</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets all the keys that are membes of the given group. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">group</td><td>the group name of the variables. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a list of the keys in the group. </dd></dl>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00302">302</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6b5f0a2d816ef2eb7374844530151588"></a><!-- doxytag: member="KDEsuClient::getVar" ref="a6b5f0a2d816ef2eb7374844530151588" args="(const QCString &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qcstring.html">QCString</a> KDEsuClient::getVar </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a persistent variable. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>The name of the variable. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Its value. </dd></dl>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00292">292</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

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

<p>Returns true if the server is safe (installed setgid), false otherwise. </p>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00401">401</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4b50366806799127128fffe53e6be355"></a><!-- doxytag: member="KDEsuClient::ping" ref="a4b50366806799127128fffe53e6be355" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::ping </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ping kdesud. </p>
<p>This can be used for diagnostics. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Zero on success, -1 on failure </dd></dl>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00369">369</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa97b96c67b221c903f022cb3eb0eb418"></a><!-- doxytag: member="KDEsuClient::setHost" ref="aa97b96c67b221c903f022cb3eb0eb418" args="(const QCString &amp;host)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::setHost </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>host</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the target host (optional). </p>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00246">246</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ada2adfec59793ea18407fff7a6201539"></a><!-- doxytag: member="KDEsuClient::setPass" ref="ada2adfec59793ea18407fff7a6201539" args="(const char *pass, int timeout)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::setPass </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pass</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>timeout</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set root's password, lasts one session. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pass</td><td>Root's password. </td></tr>
    <tr><td class="paramname">timeout</td><td>The time that a password will live. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Zero on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00214">214</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af91944f71b56032458788665292eee0a"></a><!-- doxytag: member="KDEsuClient::setPriority" ref="af91944f71b56032458788665292eee0a" args="(int priority)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::setPriority </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the desired priority (optional), see <a class="el" href="classStubProcess.html" title="Chat with kdesu_stub.">StubProcess</a>. </p>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00254">254</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aeac5b99410cf688b315306267b20304f"></a><!-- doxytag: member="KDEsuClient::setScheduler" ref="aeac5b99410cf688b315306267b20304f" args="(int scheduler)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::setScheduler </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>scheduler</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the desired scheduler (optional), see <a class="el" href="classStubProcess.html" title="Chat with kdesu_stub.">StubProcess</a>. </p>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00261">261</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a551e52c618a02f83398806d49620285c"></a><!-- doxytag: member="KDEsuClient::setVar" ref="a551e52c618a02f83398806d49620285c" args="(const QCString &amp;key, const QCString &amp;value, int timeout=0, const QCString &amp;group=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::setVar </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>group</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set a persistent variable. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>The name of the variable. </td></tr>
    <tr><td class="paramname">value</td><td>Its value. </td></tr>
    <tr><td class="paramname">timeout</td><td>The timeout in seconds for this key. Zero means no timeout. </td></tr>
    <tr><td class="paramname">group</td><td>Make the key part of a group. See delGroup. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>zero on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00277">277</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae88ee8613c67bb6df92f099eef6ab131"></a><!-- doxytag: member="KDEsuClient::startServer" ref="ae88ee8613c67bb6df92f099eef6ab131" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::startServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Try to start up kdesud. </p>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00417">417</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a76b70aeeb50905312295b09689e50b31"></a><!-- doxytag: member="KDEsuClient::stopServer" ref="a76b70aeeb50905312295b09689e50b31" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KDEsuClient::stopServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Stop the daemon. </p>

<p>Definition at line <a class="el" href="client_8cpp_source.html#l00383">383</a> of file <a class="el" href="client_8cpp_source.html">client.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="client_8h_source.html">client.h</a></li>
<li><a class="el" href="client_8cpp_source.html">client.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>kdesu</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><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKCookie.html">kcookie</option>,  <option value="classKDEsuClient.html">kdesuclient</option>,  <option value="classPTY.html">pty</option>,  <option value="classPtyProcess.html">ptyprocess</option>,  <option value="classSshProcess.html">sshprocess</option>,  <option value="classStubProcess.html">stubprocess</option>,  <option value="classSuProcess.html">suprocess</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>