Sophie

Sophie

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

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>kdeui: KPasswordDialog Class Reference (kdeui)</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=".">kdeui</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-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-slots">Protected Slots</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">KPasswordDialog Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KPasswordDialog" --><!-- doxytag: inherits="KDialogBase" -->
<p>A password input dialog.  
 <a href="classKPasswordDialog.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="kpassdlg_8h_source.html">kpassdlg.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for KPasswordDialog:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classKPasswordDialog.png" usemap="#KPasswordDialog_map" alt=""/>
  <map id="KPasswordDialog_map" name="KPasswordDialog_map">
<area href="classKDialogBase.html" title="A dialog base class with standard buttons and predefined layouts." alt="KDialogBase" shape="rect" coords="0,112,111,136"/>
<area href="classKDialog.html" title="Dialog with extended non-modal support and methods for KDE standard compliance." alt="KDialog" shape="rect" coords="0,56,111,80"/>
<area href="qdialog.html" alt="QDialog" shape="rect" coords="0,0,111,24"/>
</map>
 </div></div>

<p><a href="classKPasswordDialog-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">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a92262d68241ee8e9865b3d6095791058">Types</a> { <a class="el" href="classKPasswordDialog.html#a92262d68241ee8e9865b3d6095791058ae2db98fbf60525379a2743641e89bdd4">Password</a>, 
<a class="el" href="classKPasswordDialog.html#a92262d68241ee8e9865b3d6095791058a54bd229aee22c3a6ff23504a8fe8199e">NewPassword</a>
 }</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="classKPasswordDialog.html#a4d99168287116d31f4fb0549c49e9840">KPasswordDialog</a> (<a class="el" href="classKPasswordDialog.html#a92262d68241ee8e9865b3d6095791058">Types</a> type, bool enableKeep, int extraBttn, <a class="elRef" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a06c72f3f4a7d89280a7cc6ddc1a2021e">KPasswordDialog</a> (int type, <a class="elRef" href="qstring.html">QString</a> prompt, bool enableKeep=false, int extraBttn=0) KDE_DEPRECATED</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a261f8306a5cb834e94bbfa9c02a88ce3">KPasswordDialog</a> (<a class="el" href="classKPasswordDialog.html#a92262d68241ee8e9865b3d6095791058">Types</a> type, bool enableKeep, int extraBttn, const <a class="elRef" href="qstring.html">QString</a> &amp;iconName, <a class="elRef" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#aef169c1083783fc246e0b1f10c890b64">~KPasswordDialog</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a213c3db32aac05b7651fcb59e36d2512">setPrompt</a> (<a class="elRef" href="qstring.html">QString</a> prompt)</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="classKPasswordDialog.html#a40a9cd8e1396f332f6476abde72e4678">prompt</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a83a0891d46db2aecec9e67c49a5dd615">addLine</a> (<a class="elRef" href="qstring.html">QString</a> key, <a class="elRef" href="qstring.html">QString</a> value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#ad7f3b9561e791230e062ca110f74af2a">setAllowEmptyPasswords</a> (bool allowed)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a3074d412622da8e396ba381a669fc17e">allowEmptyPasswords</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a7c14022316be468909796233ce1dde45">setMinimumPasswordLength</a> (int minLength)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#ac1cf429a725baa70df6b996be6b21169">minimumPasswordLength</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a5970c8d5ff8323c94cb9e154e6978cb7">setMaximumPasswordLength</a> (int maxLength)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a360eed0c414eb2643c28f42ebc0cdadd">maximumPasswordLength</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#ace35e8c5eed5e1422dbd296105962646">setReasonablePasswordLength</a> (int reasonableLength)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a097f8b5231e6f38f79938a63eb05b871">reasonablePasswordLength</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a52e409629d6a79060631b6778f3f0b57">setPasswordStrengthWarningLevel</a> (int warningLevel)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#ad9a23b5fc3fbab6b061de6656c504f2b">passwordStrengthWarningLevel</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#abd93bc02280102b61158e6c98b474060">password</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a412a26623fbc975bb030fd0dbc9e0a5a">clearPassword</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a455992718d784107371c339cdb9d5043">keep</a> () const </td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#a8044edffcf795813c51ed3cb9fd037ea">getPassword</a> (<a class="elRef" href="qcstring.html">QCString</a> &amp;password, <a class="elRef" href="qstring.html">QString</a> prompt, int *keep=0L)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#aff221b54eeb3c25235a64ef14086f9c3">getNewPassword</a> (<a class="elRef" href="qcstring.html">QCString</a> &amp;password, <a class="elRef" href="qstring.html">QString</a> prompt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#acee77a954e5f8df4d7101e3fc22ca46a">disableCoreDumps</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-slots"></a>
Protected Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#ab15809cb141b04a31a5079aa0090ef25">slotOk</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPasswordDialog.html#af47ed85ba51f769e3e7047b2d0f2153b">slotCancel</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac2ebc5f0947951dd490115e51acdf148"></a><!-- doxytag: member="KPasswordDialog::slotKeep" ref="ac2ebc5f0947951dd490115e51acdf148" args="(bool)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>slotKeep</b> (bool)</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="classKPasswordDialog.html#a6cb4ad9ba915907df64070cae3f1afc3">checkPassword</a> (const char *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1ba56d61a72d45674cf73ebb4841c7f0"></a><!-- doxytag: member="KPasswordDialog::virtual_hook" ref="a1ba56d61a72d45674cf73ebb4841c7f0" args="(int id, void *data)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>virtual_hook</b> (int id, void *data)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A password input dialog. </p>
<p>This dialog asks the user to enter a password. The functions you're probably interested in are the static methods, <a class="el" href="classKPasswordDialog.html#a8044edffcf795813c51ed3cb9fd037ea" title="Pops up the dialog, asks the user for a password, and returns it.">getPassword()</a> and <a class="el" href="classKPasswordDialog.html#aff221b54eeb3c25235a64ef14086f9c3" title="Pops up the dialog, asks the user for a password and returns it.">getNewPassword()</a>.</p>
<p><b>Usage example</b><br/>
</p>
<div class="fragment"><pre class="fragment"> <a class="codeRef" href="qcstring.html">QCString</a> <a class="code" href="classKPasswordDialog.html#abd93bc02280102b61158e6c98b474060" title="Returns the password entered.">password</a>;
 <span class="keywordtype">int</span> result = <a class="code" href="classKPasswordDialog.html#a8044edffcf795813c51ed3cb9fd037ea" title="Pops up the dialog, asks the user for a password, and returns it.">KPasswordDialog::getPassword</a>(password, i18n(<span class="stringliteral">&quot;Prompt message&quot;</span>));
 <span class="keywordflow">if</span> (result == KPasswordDialog::Accepted)
     use(password);
</pre></div><div class="image">
<img src="kpassworddialog.png" alt="kpassworddialog.png"/>
<div class="caption">
KDE Password Dialog</div></div>
<p> <b>Security notes:</b><br/>
</p>
<p>Keeping passwords in memory can be a potential security hole. You should handle this situation with care.</p>
<ul>
<li>You may want to use disableCoreDump() to disable core dumps. Core dumps are dangerous because they are an image of the process memory, and thus include any passwords that were in memory.</li>
</ul>
<ul>
<li>You should delete passwords as soon as they are not needed anymore. The functions <a class="el" href="classKPasswordDialog.html#a8044edffcf795813c51ed3cb9fd037ea" title="Pops up the dialog, asks the user for a password, and returns it.">getPassword()</a> and <a class="el" href="classKPasswordDialog.html#aff221b54eeb3c25235a64ef14086f9c3" title="Pops up the dialog, asks the user for a password and returns it.">getNewPassword()</a> return the password as a <a class="elRef" href="qcstring.html">QCString</a>. I believe this is safer than a <a class="elRef" href="qstring.html">QString</a>. A <a class="elRef" href="qstring.html">QString</a> stores its characters internally as 16-bit wide values, so conversions are needed, both for creating the <a class="elRef" href="qstring.html">QString</a> and by using it. The temporary memory used for these conversion is probably not erased. This could lead to stray passwords in memory, even if you think you erased all of them.</li>
</ul>
<dl class="author"><dt><b>Author:</b></dt><dd>Geert Jansen &lt;<a href="mailto:jansen@kde.org">jansen@kde.org</a>&gt; </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8h_source.html#l00166">166</a> of file <a class="el" href="kpassdlg_8h_source.html">kpassdlg.h</a>.</p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a92262d68241ee8e9865b3d6095791058"></a><!-- doxytag: member="KPasswordDialog::Types" ref="a92262d68241ee8e9865b3d6095791058" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPasswordDialog.html#a92262d68241ee8e9865b3d6095791058">KPasswordDialog::Types</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This enum distinguishes the two operation modes of this dialog: </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a92262d68241ee8e9865b3d6095791058ae2db98fbf60525379a2743641e89bdd4"></a><!-- doxytag: member="Password" ref="a92262d68241ee8e9865b3d6095791058ae2db98fbf60525379a2743641e89bdd4" args="" -->Password</em>&nbsp;</td><td>
<p>The user is asked to enter a password. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a92262d68241ee8e9865b3d6095791058a54bd229aee22c3a6ff23504a8fe8199e"></a><!-- doxytag: member="NewPassword" ref="a92262d68241ee8e9865b3d6095791058a54bd229aee22c3a6ff23504a8fe8199e" args="" -->NewPassword</em>&nbsp;</td><td>
<p>The user is asked to enter a password and to confirm it a second time. </p>
<p>This is usually used when the user changes his password. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="kpassdlg_8h_source.html#l00175">175</a> of file <a class="el" href="kpassdlg_8h_source.html">kpassdlg.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4d99168287116d31f4fb0549c49e9840"></a><!-- doxytag: member="KPasswordDialog::KPasswordDialog" ref="a4d99168287116d31f4fb0549c49e9840" args="(Types type, bool enableKeep, int extraBttn, QWidget *parent=0, const char *name=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KPasswordDialog::KPasswordDialog </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKPasswordDialog.html#a92262d68241ee8e9865b3d6095791058">Types</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enableKeep</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>extraBttn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a password dialog. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">type,:</td><td>if NewPassword is given here, the dialog contains two input fields, so that the user must confirm his password and possible typos are detected immediately. </td></tr>
    <tr><td class="paramname">enableKeep,:</td><td>if true, a check box is shown in the dialog which allows the user to keep his password input for later. </td></tr>
    <tr><td class="paramname">extraBttn,:</td><td>allows to show additional buttons, <a class="el" href="classKDialogBase.html" title="A dialog base class with standard buttons and predefined layouts.">KDialogBase</a>. </td></tr>
    <tr><td class="paramname">parent</td><td>Passed to lower level constructor. </td></tr>
    <tr><td class="paramname">name</td><td>Passed to lower level constructor</td></tr>
  </table>
  </dd>
</dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.0 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00303">303</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a06c72f3f4a7d89280a7cc6ddc1a2021e"></a><!-- doxytag: member="KPasswordDialog::KPasswordDialog" ref="a06c72f3f4a7d89280a7cc6ddc1a2021e" args="(int type, QString prompt, bool enableKeep=false, int extraBttn=0) KDE_DEPRECATED" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KPasswordDialog::KPasswordDialog </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qstring.html">QString</a>&#160;</td>
          <td class="paramname"><em>prompt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enableKeep</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>extraBttn</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000062">Deprecated:</a></b></dt><dd>Variant of the previous constructor without the possibility to specify a parent.</dd></dl>
<p>Will be removed in <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/namespaceKDE.html">KDE</a> 4.0 </p>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00324">324</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a261f8306a5cb834e94bbfa9c02a88ce3"></a><!-- doxytag: member="KPasswordDialog::KPasswordDialog" ref="a261f8306a5cb834e94bbfa9c02a88ce3" args="(Types type, bool enableKeep, int extraBttn, const QString &amp;iconName, QWidget *parent=0, const char *name=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KPasswordDialog::KPasswordDialog </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKPasswordDialog.html#a92262d68241ee8e9865b3d6095791058">Types</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enableKeep</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>extraBttn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>iconName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a password dialog. </p>
<p>Essentially the same as above but allows the icon in the password dialog to be set via <code>iconName</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>if NewPassword is given here, the dialog contains two input fields, so that the user must confirm his password and possible typos are detected immediately </td></tr>
    <tr><td class="paramname">enableKeep,:</td><td>if true, a check box is shown in the dialog which allows the user to keep his password input for later. </td></tr>
    <tr><td class="paramname">extraBttn,:</td><td>allows to show additional buttons. </td></tr>
    <tr><td class="paramname">iconName</td><td>the name of the icon to be shown in the dialog. If empty, a default icon is used </td></tr>
    <tr><td class="paramname">parent</td><td>Passed to lower level constructor. </td></tr>
    <tr><td class="paramname">name</td><td>Passed to lower level constructor </td></tr>
  </table>
  </dd>
</dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.3 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00312">312</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

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

<p>Destructs the password dialog. </p>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00457">457</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a83a0891d46db2aecec9e67c49a5dd615"></a><!-- doxytag: member="KPasswordDialog::addLine" ref="a83a0891d46db2aecec9e67c49a5dd615" args="(QString key, QString value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPasswordDialog::addLine </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qstring.html">QString</a>&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qstring.html">QString</a>&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a line of information to the dialog. </p>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00484">484</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

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

<p>Allow empty passwords? </p>
<dl class="since"><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00666">666</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6cb4ad9ba915907df64070cae3f1afc3"></a><!-- doxytag: member="KPasswordDialog::checkPassword" ref="a6cb4ad9ba915907df64070cae3f1afc3" args="(const char *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool KPasswordDialog::checkPassword </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Virtual function that can be overridden to provide password checking in derived classes. </p>
<p>It should return <code>true</code> if the password is valid, <code>false</code> otherwise. </p>

<p>Definition at line <a class="el" href="kpassdlg_8h_source.html#l00391">391</a> of file <a class="el" href="kpassdlg_8h_source.html">kpassdlg.h</a>.</p>

</div>
</div>
<a class="anchor" id="a412a26623fbc975bb030fd0dbc9e0a5a"></a><!-- doxytag: member="KPasswordDialog::clearPassword" ref="a412a26623fbc975bb030fd0dbc9e0a5a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPasswordDialog::clearPassword </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clears the password input field. </p>
<p>You might want to use this after the user failed to enter the correct password. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>3.3 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00463">463</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acee77a954e5f8df4d7101e3fc22ca46a"></a><!-- doxytag: member="KPasswordDialog::disableCoreDumps" ref="acee77a954e5f8df4d7101e3fc22ca46a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPasswordDialog::disableCoreDumps </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Static helper function that disables core dumps. </p>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00584">584</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aff221b54eeb3c25235a64ef14086f9c3"></a><!-- doxytag: member="KPasswordDialog::getNewPassword" ref="aff221b54eeb3c25235a64ef14086f9c3" args="(QCString &amp;password, QString prompt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KPasswordDialog::getNewPassword </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>password</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qstring.html">QString</a>&#160;</td>
          <td class="paramname"><em>prompt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pops up the dialog, asks the user for a password and returns it. </p>
<p>The user has to enter the password twice to make sure it was entered correctly.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">password</td><td>The password is returned in this reference parameter. </td></tr>
    <tr><td class="paramname">prompt</td><td>A prompt for the password. This can be a few lines of information. The text is word broken to fit nicely in the dialog. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Result code: Accepted or Rejected. </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00572">572</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8044edffcf795813c51ed3cb9fd037ea"></a><!-- doxytag: member="KPasswordDialog::getPassword" ref="a8044edffcf795813c51ed3cb9fd037ea" args="(QCString &amp;password, QString prompt, int *keep=0L)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KPasswordDialog::getPassword </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>password</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qstring.html">QString</a>&#160;</td>
          <td class="paramname"><em>prompt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>keep</em> = <code>0L</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pops up the dialog, asks the user for a password, and returns it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">password</td><td>The password is returned in this reference parameter. </td></tr>
    <tr><td class="paramname">prompt</td><td>A prompt for the password. This can be a few lines of information. The text is word broken to fit nicely in the dialog. </td></tr>
    <tr><td class="paramname">keep</td><td>Enable/disable a checkbox controlling password keeping. If you pass a null pointer, or a pointer to the value 0, the checkbox is not shown. If you pass a pointer to a nonzero value, the checkbox is shown and the result is stored in *keep. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Result code: Accepted or Rejected. </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00555">555</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a455992718d784107371c339cdb9d5043"></a><!-- doxytag: member="KPasswordDialog::keep" ref="a455992718d784107371c339cdb9d5043" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPasswordDialog::keep </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if the user wants to keep the password. </p>

<p>Definition at line <a class="el" href="kpassdlg_8h_source.html#l00346">346</a> of file <a class="el" href="kpassdlg_8h_source.html">kpassdlg.h</a>.</p>

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

<p>Maximum acceptable password length. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00691">691</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

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

<p>Minimum acceptable password length. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00675">675</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="abd93bc02280102b61158e6c98b474060"></a><!-- doxytag: member="KPasswordDialog::password" ref="abd93bc02280102b61158e6c98b474060" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* KPasswordDialog::password </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the password entered. </p>
<p>The memory is freed in the destructor, so you should make a copy. </p>

<p>Definition at line <a class="el" href="kpassdlg_8h_source.html#l00334">334</a> of file <a class="el" href="kpassdlg_8h_source.html">kpassdlg.h</a>.</p>

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

<p>Password strength level below which a warning is given. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00717">717</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

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

<p>Returns the password prompt. </p>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00476">476</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

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

<p>Password length that is expected to be reasonably safe. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00706">706</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad7f3b9561e791230e062ca110f74af2a"></a><!-- doxytag: member="KPasswordDialog::setAllowEmptyPasswords" ref="ad7f3b9561e791230e062ca110f74af2a" args="(bool allowed)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPasswordDialog::setAllowEmptyPasswords </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>allowed</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Allow empty passwords? - Default: false. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00660">660</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5970c8d5ff8323c94cb9e154e6978cb7"></a><!-- doxytag: member="KPasswordDialog::setMaximumPasswordLength" ref="a5970c8d5ff8323c94cb9e154e6978cb7" args="(int maxLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPasswordDialog::setMaximumPasswordLength </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>maxLength</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Maximum acceptable password length. </p>
<p>Limited to 199. Default: No limit, i.e. -1</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">maxLength,:</td><td>The new maximum password length. </td></tr>
  </table>
  </dd>
</dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00679">679</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7c14022316be468909796233ce1dde45"></a><!-- doxytag: member="KPasswordDialog::setMinimumPasswordLength" ref="a7c14022316be468909796233ce1dde45" args="(int minLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPasswordDialog::setMinimumPasswordLength </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>minLength</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Minimum acceptable password length. </p>
<p>Default: If empty passwords are forbidden, 1; Otherwise, 0.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">minLength,:</td><td>The new minimum password length </td></tr>
  </table>
  </dd>
</dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00670">670</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a52e409629d6a79060631b6778f3f0b57"></a><!-- doxytag: member="KPasswordDialog::setPasswordStrengthWarningLevel" ref="a52e409629d6a79060631b6778f3f0b57" args="(int warningLevel)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPasswordDialog::setPasswordStrengthWarningLevel </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>warningLevel</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the password strength level below which a warning is given Value is in the range 0 to 99. </p>
<p>Empty passwords score 0; non-empty passwords score up to 100, depending on their length and whether they contain numbers, mixed case letters and punctuation.</p>
<p>Default: 1 - warn if the password has no discernable strength whatsoever </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">warningLevel,:</td><td>The level below which a warning should be given. </td></tr>
  </table>
  </dd>
</dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00711">711</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a213c3db32aac05b7651fcb59e36d2512"></a><!-- doxytag: member="KPasswordDialog::setPrompt" ref="a213c3db32aac05b7651fcb59e36d2512" args="(QString prompt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPasswordDialog::setPrompt </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qstring.html">QString</a>&#160;</td>
          <td class="paramname"><em>prompt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the password prompt. </p>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00469">469</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ace35e8c5eed5e1422dbd296105962646"></a><!-- doxytag: member="KPasswordDialog::setReasonablePasswordLength" ref="ace35e8c5eed5e1422dbd296105962646" args="(int reasonableLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPasswordDialog::setReasonablePasswordLength </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>reasonableLength</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Password length that is expected to be reasonably safe. </p>
<p>Default: 8 - the standard UNIX password length</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">reasonableLength,:</td><td>The new reasonable password length. </td></tr>
  </table>
  </dd>
</dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00697">697</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af47ed85ba51f769e3e7047b2d0f2153b"></a><!-- doxytag: member="KPasswordDialog::slotCancel" ref="af47ed85ba51f769e3e7047b2d0f2153b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPasswordDialog::slotCancel </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Activated when the Cancel button has been clicked. </p>
<p>The <a class="elRef" href="qdialog.html#reject">QDialog::reject()</a> is activated in regular mode and QDialog::done( Cancel ) when in message box mode. </p>

<p>Reimplemented from <a class="el" href="classKDialogBase.html#a04f3929a0ae8623776b321b9fc7c4e4a">KDialogBase</a>.</p>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00542">542</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab15809cb141b04a31a5079aa0090ef25"></a><!-- doxytag: member="KPasswordDialog::slotOk" ref="ab15809cb141b04a31a5079aa0090ef25" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPasswordDialog::slotOk </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Activated when the Ok button has been clicked. </p>
<p>The <a class="elRef" href="qdialog.html#accept">QDialog::accept()</a> is activated. </p>

<p>Reimplemented from <a class="el" href="classKDialogBase.html#af80eae380222739149fe7b08de7bf520">KDialogBase</a>.</p>

<p>Definition at line <a class="el" href="kpassdlg_8cpp_source.html#l00511">511</a> of file <a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kpassdlg_8h_source.html">kpassdlg.h</a></li>
<li><a class="el" href="kpassdlg_8cpp_source.html">kpassdlg.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>kdeui</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><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="classKAboutApplication.html">kaboutapplication</option>,  <option value="classKAboutContainer.html">kaboutcontainer</option>,  <option value="classKAboutContainerBase.html">kaboutcontainerbase</option>,  <option value="classKAboutContributor.html">kaboutcontributor</option>,  <option value="classKAboutDialog.html">kaboutdialog</option>,  <option value="classKAboutKDE.html">kaboutkde</option>,  <option value="classKAboutWidget.html">kaboutwidget</option>,  <option value="classKAccelGen_1_1Deref.html">kaccelgen::deref</option>,  <option value="classKAccelGen_1_1Deref__Key.html">kaccelgen::deref__key</option>,  <option value="classKAction.html">kaction</option>,  <option value="classKActionCollection.html">kactioncollection</option>,  <option value="classKActionMenu.html">kactionmenu</option>,  <option value="classKActionSelector.html">kactionselector</option>,  <option value="classKActiveLabel.html">kactivelabel</option>,  <option value="classKAnimWidget.html">kanimwidget</option>,  <option value="classKArrowButton.html">karrowbutton</option>,  <option value="classKAuthIcon.html">kauthicon</option>,  <option value="classKBugReport.html">kbugreport</option>,  <option value="classKButtonBox.html">kbuttonbox</option>,  <option value="classKCharSelect.html">kcharselect</option>,  <option value="classKCharSelectTable.html">kcharselecttable</option>,  <option value="classKCModule.html">kcmodule</option>,  <option value="classKColor.html">kcolor</option>,  <option value="classKColorButton.html">kcolorbutton</option>,  <option value="classKColorCells.html">kcolorcells</option>,  <option value="classKColorCombo.html">kcolorcombo</option>,  <option value="classKColorDialog.html">kcolordialog</option>,  <option value="classKColorDrag.html">kcolordrag</option>,  <option value="classKColorPatch.html">kcolorpatch</option>,  <option value="classKComboBox.html">kcombobox</option>,  <option value="classKCommand.html">kcommand</option>,  <option value="classKCommandHistory.html">kcommandhistory</option>,  <option value="classKCompletionBox.html">kcompletionbox</option>,  <option value="classKConfigDialog.html">kconfigdialog</option>,  <option value="classKContextMenuManager.html">kcontextmenumanager</option>,  <option value="classKCursor.html">kcursor</option>,  <option value="classKCursorPrivate.html">kcursorprivate</option>,  <option value="classKCursorPrivateAutoHideEventFilter.html">kcursorprivateautohideeventfilter</option>,  <option value="classKDateInternalMonthPicker.html">kdateinternalmonthpicker</option>,  <option value="classKDateInternalWeekSelector.html">kdateinternalweekselector</option>,  <option value="classKDateInternalYearSelector.html">kdateinternalyearselector</option>,  <option value="classKDatePicker.html">kdatepicker</option>,  <option value="classKDateTable.html">kdatetable</option>,  <option value="classKDateTimeWidget.html">kdatetimewidget</option>,  <option value="classKDateValidator.html">kdatevalidator</option>,  <option value="classKDateWidget.html">kdatewidget</option>,  <option value="classKDCOPActionProxy.html">kdcopactionproxy</option>,  <option value="classKDEPrivate_1_1ToolBarHandler.html">kdeprivate::toolbarhandler</option>,  <option value="classKDialog.html">kdialog</option>,  <option value="classKDialogBase.html">kdialogbase</option>,  <option value="classKDialogBaseButton.html">kdialogbasebutton</option>,  <option value="classKDialogBaseTile.html">kdialogbasetile</option>,  <option value="classKDictSpellingHighlighter.html">kdictspellinghighlighter</option>,  <option value="classKDockButton__Private.html">kdockbutton__private</option>,  <option value="classKDockMainWindow.html">kdockmainwindow</option>,  <option value="classKDockManager.html">kdockmanager</option>,  <option value="classKDockSplitter.html">kdocksplitter</option>,  <option value="classKDockTabGroup.html">kdocktabgroup</option>,  <option value="classKDockWidget.html">kdockwidget</option>,  <option value="classKDockWidgetAbstractHeader.html">kdockwidgetabstractheader</option>,  <option value="classKDockWidgetAbstractHeaderDrag.html">kdockwidgetabstractheaderdrag</option>,  <option value="classKDockWidgetHeader.html">kdockwidgetheader</option>,  <option value="classKDockWidgetHeaderDrag.html">kdockwidgetheaderdrag</option>,  <option value="classKDockWidgetPrivate.html">kdockwidgetprivate</option>,  <option value="classKDockWindow.html">kdockwindow</option>,  <option value="classKDoubleNumInput.html">kdoublenuminput</option>,  <option value="classKDoubleSpinBox.html">kdoublespinbox</option>,  <option value="classKDoubleValidator.html">kdoublevalidator</option>,  <option value="classKDualColorButton.html">kdualcolorbutton</option>,  <option value="classKEdit.html">kedit</option>,  <option value="classKEditListBox.html">keditlistbox</option>,  <option value="classKEditListBox_1_1CustomEditor.html">keditlistbox::customeditor</option>,  <option value="classKEditToolbar.html">kedittoolbar</option>,  <option value="classKEditToolbarWidget.html">kedittoolbarwidget</option>,  <option value="classKFloatValidator.html">kfloatvalidator</option>,  <option value="classKFontChooser.html">kfontchooser</option>,  <option value="classKFontCombo.html">kfontcombo</option>,  <option value="classKFontDialog.html">kfontdialog</option>,  <option value="classKFontRequester.html">kfontrequester</option>,  <option value="classKGradientSelector.html">kgradientselector</option>,  <option value="classKGuiItem.html">kguiitem</option>,  <option value="classKHelpMenu.html">khelpmenu</option>,  <option value="classKHistoryCombo.html">khistorycombo</option>,  <option value="classKHSSelector.html">khsselector</option>,  <option value="classKIconView.html">kiconview</option>,  <option value="classKIconViewItem.html">kiconviewitem</option>,  <option value="classKIconViewSearchLine.html">kiconviewsearchline</option>,  <option value="classKImageTrackLabel.html">kimagetracklabel</option>,  <option value="classKInputDialog.html">kinputdialog</option>,  <option value="classKIntNumInput.html">kintnuminput</option>,  <option value="classKIntSpinBox.html">kintspinbox</option>,  <option value="classKIntValidator.html">kintvalidator</option>,  <option value="classKJanusWidget.html">kjanuswidget</option>,  <option value="classKKeyButton.html">kkeybutton</option>,  <option value="classKKeyChooser.html">kkeychooser</option>,  <option value="classKKeyDialog.html">kkeydialog</option>,  <option value="classKLanguageButton.html">klanguagebutton</option>,  <option value="classKLed.html">kled</option>,  <option value="classKLineEdit.html">klineedit</option>,  <option value="classKLineEditDlg.html">klineeditdlg</option>,  <option value="classKListAction.html">klistaction</option>,  <option value="classKListBox.html">klistbox</option>,  <option value="classKListView.html">klistview</option>,  <option value="classKListViewItem.html">klistviewitem</option>,  <option value="classKListViewLineEdit.html">klistviewlineedit</option>,  <option value="classKListViewSearchLine.html">klistviewsearchline</option>,  <option value="classKListViewSearchLineWidget.html">klistviewsearchlinewidget</option>,  <option value="classKMacroCommand.html">kmacrocommand</option>,  <option value="classKMainWindow.html">kmainwindow</option>,  <option value="classKMainWindowInterface.html">kmainwindowinterface</option>,  <option value="classKMenuBar.html">kmenubar</option>,  <option value="classKMessageBox.html">kmessagebox</option>,  <option value="classKMimeTypeValidator.html">kmimetypevalidator</option>,  <option value="classKNamedCommand.html">knamedcommand</option>,  <option value="classKNumInput.html">knuminput</option>,  <option value="classKPaletteTable.html">kpalettetable</option>,  <option value="classKPanelApplet.html">kpanelapplet</option>,  <option value="classKPanelAppMenu.html">kpanelappmenu</option>,  <option value="classKPanelExtension.html">kpanelextension</option>,  <option value="classKPanelMenu.html">kpanelmenu</option>,  <option value="classKPassivePopup.html">kpassivepopup</option>,  <option value="classKPasswordDialog.html">kpassworddialog</option>,  <option value="classKPasswordEdit.html">kpasswordedit</option>,  <option value="classKPasteTextAction.html">kpastetextaction</option>,  <option value="classKPixmapIO.html">kpixmapio</option>,  <option value="classKPixmapRegionSelectorDialog.html">kpixmapregionselectordialog</option>,  <option value="classKPixmapRegionSelectorWidget.html">kpixmapregionselectorwidget</option>,  <option value="classKPopupFrame.html">kpopupframe</option>,  <option value="classKPopupMenu.html">kpopupmenu</option>,  <option value="classKPopupTitle.html">kpopuptitle</option>,  <option value="classKProgress.html">kprogress</option>,  <option value="classKProgressDialog.html">kprogressdialog</option>,  <option value="classKPushButton.html">kpushbutton</option>,  <option value="classKRadioAction.html">kradioaction</option>,  <option value="classKRecentFilesAction.html">krecentfilesaction</option>,  <option value="classKRestrictedLine.html">krestrictedline</option>,  <option value="classKRootPermsIcon.html">krootpermsicon</option>,  <option value="classKRootPixmap.html">krootpixmap</option>,  <option value="classKRuler.html">kruler</option>,  <option value="classKScrollView.html">kscrollview</option>,  <option value="classKSelectAction.html">kselectaction</option>,  <option value="classKSelector.html">kselector</option>,  <option value="classKSeparator.html">kseparator</option>,  <option value="classKShortcutDialog.html">kshortcutdialog</option>,  <option value="classKSpell.html">kspell</option>,  <option value="classKSpellConfig.html">kspellconfig</option>,  <option value="classKSplashScreen.html">ksplashscreen</option>,  <option value="classKSqueezedTextLabel.html">ksqueezedtextlabel</option>,  <option value="classKStatusBar.html">kstatusbar</option>,  <option value="classKStatusBarLabel.html">kstatusbarlabel</option>,  <option value="classKStdGuiItem.html">kstdguiitem</option>,  <option value="classKStringListValidator.html">kstringlistvalidator</option>,  <option value="classKSwitchLanguageDialog.html">kswitchlanguagedialog</option>,  <option value="classKSyntaxHighlighter.html">ksyntaxhighlighter</option>,  <option value="classKSystemTray.html">ksystemtray</option>,  <option value="classKTabBar.html">ktabbar</option>,  <option value="classKTabCtl.html">ktabctl</option>,  <option value="classKTabWidget.html">ktabwidget</option>,  <option value="classKTextBrowser.html">ktextbrowser</option>,  <option value="classKTextEdit.html">ktextedit</option>,  <option value="classKTimeWidget.html">ktimewidget</option>,  <option value="classKTimezoneWidget.html">ktimezonewidget</option>,  <option value="classKTipDatabase.html">ktipdatabase</option>,  <option value="classKTipDialog.html">ktipdialog</option>,  <option value="classKToggleAction.html">ktoggleaction</option>,  <option value="classKToggleFullScreenAction.html">ktogglefullscreenaction</option>,  <option value="classKToggleToolBarAction.html">ktoggletoolbaraction</option>,  <option value="classKToolBar.html">ktoolbar</option>,  <option value="classKToolBarButton.html">ktoolbarbutton</option>,  <option value="classKToolBarButtonList.html">ktoolbarbuttonlist</option>,  <option value="classKToolBarLabelAction.html">ktoolbarlabelaction</option>,  <option value="classKToolBarPopupAction.html">ktoolbarpopupaction</option>,  <option value="classKToolBarRadioGroup.html">ktoolbarradiogroup</option>,  <option value="classKURLLabel.html">kurllabel</option>,  <option value="classKValueSelector.html">kvalueselector</option>,  <option value="classKWidgetAction.html">kwidgetaction</option>,  <option value="classKWindowInfo.html">kwindowinfo</option>,  <option value="classKWizard.html">kwizard</option>,  <option value="classKWordWrap.html">kwordwrap</option>,  <option value="classKWritePermsIcon.html">kwritepermsicon</option>,  <option value="classKXMLGUIBuilder.html">kxmlguibuilder</option>,  <option value="classKXMLGUIClient.html">kxmlguiclient</option>,  <option value="classKXMLGUIFactory.html">kxmlguifactory</option>,  <option value="classKXYSelector.html">kxyselector</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>