<?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" xml:lang="en"> <head> <title>KWallet.Wallet</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link rel="stylesheet" type="text/css" href="../common/doxygen.css" /> <link rel="stylesheet" media="screen" type="text/css" title="KDE Colors" href="../common/kde.css" /> </head> <body> <div id="container"> <div id="header"> <div id="header_top"> <div> <div> <img alt ="" src="../common/top-kde.jpg"/> KDE 4.4 PyKDE API Reference </div> </div> </div> <div id="header_bottom"> <div id="location"> <ul> <li>KDE's Python API</li> </ul> </div> <div id="menu"> <ul> <li><a href="../modules.html">Overview</a></li> <li><a href="http://techbase.kde.org/Development/Languages/Python">PyKDE Home</a></li> <li><a href="http://kde.org/family/">Sitemap</a></li> <li><a href="http://kde.org/contact/">Contact Us</a></li> </ul> </div> </div> </div> <div id="body_wrapper"> <div id="body"> <div id="right"> <div class="content"> <div id="main"> <div class="clearer"> </div> <h1>Wallet Class Reference</h1> <code>from PyKDE4.kdeui import *</code> <p> Inherits: <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qobject.html">QObject</a><br /> Namespace: KWallet.Wallet<br /> <h2>Detailed Description</h2> <p>KDE Wallet </p> <p> This class implements a generic system-wide Wallet for KDE. This is the ONLY public interface. </p> <p> <dl class="author" compact><dt><b>Author:</b></dt><dd> George Staikos <staikos@kde.org> </dd></dl> KDE Wallet Class </p> <table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><br><h2>Enumerations</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#EntryType">EntryType</a> </td><td class="memItemRight" valign="bottom">{ Unknown, Password, Stream, Map, Unused }</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#OpenType">OpenType</a> </td><td class="memItemRight" valign="bottom">{ Synchronous, Asynchronous, Path, OpenTypeUnused }</td></tr> <tr><td colspan="2"><br><h2>Signals</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#folderListUpdated">folderListUpdated</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#folderRemoved">folderRemoved</a> (, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> folder)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#folderUpdated">folderUpdated</a> (, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> folder)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#walletClosed">walletClosed</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#walletOpened">walletOpened</a> (, bool success)</td></tr> <tr><td colspan="2"><br><h2>Methods</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#Wallet">__init__</a> (self, int handle, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> name)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#FormDataFolder">FormDataFolder</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#LocalWallet">LocalWallet</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#NetworkWallet">NetworkWallet</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#PasswordFolder">PasswordFolder</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#changePassword">changePassword</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> name, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/wid.html">WId</a> w)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#closeWallet">closeWallet</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> name, bool force)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#createFolder">createFolder</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> f)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#currentFolder">currentFolder</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#deleteWallet">deleteWallet</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> name)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#disconnectApplication">disconnectApplication</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> wallet, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> app)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstringlist.html">QStringList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#entryList">entryList</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="../kdeui/KWallet.Wallet.html#EntryType">KWallet.Wallet.EntryType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#entryType">entryType</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#folderDoesNotExist">folderDoesNotExist</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> wallet, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> folder)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstringlist.html">QStringList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#folderList">folderList</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#folderListUpdated">folderListUpdated</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#folderRemoved">folderRemoved</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> folder)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#folderUpdated">folderUpdated</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> folder)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#hasEntry">hasEntry</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#hasFolder">hasFolder</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> f)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#isEnabled">isEnabled</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#isOpen">isOpen</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> name)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#isOpen">isOpen</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#keyDoesNotExist">keyDoesNotExist</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> wallet, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> folder, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#lockWallet">lockWallet</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="../kdeui/KWallet.Wallet.html">KWallet.Wallet</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#openWallet">openWallet</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> name, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/wid.html">WId</a> w, <a href="../kdeui/KWallet.Wallet.html#OpenType">KWallet.Wallet.OpenType</a> ot=KWallet.Wallet.Synchronous)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qbytearray.html">QByteArray</a> value </td><td class="memItemRight" valign="bottom"><a class="el" href="#readEntry">readEntry</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int, QMap<QString,QByteArray> value </td><td class="memItemRight" valign="bottom"><a class="el" href="#readEntryList">readEntryList</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int, QMap<QString,QString> value </td><td class="memItemRight" valign="bottom"><a class="el" href="#readMap">readMap</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> value </td><td class="memItemRight" valign="bottom"><a class="el" href="#readPassword">readPassword</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int, QMap<QString,QString> value </td><td class="memItemRight" valign="bottom"><a class="el" href="#readPasswordList">readPasswordList</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#removeEntry">removeEntry</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#removeFolder">removeFolder</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> f)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#renameEntry">renameEntry</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> oldName, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> newName)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#requestChangePassword">requestChangePassword</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/wid.html">WId</a> w)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#setFolder">setFolder</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> f)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#sync">sync</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstringlist.html">QStringList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#users">users</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> wallet)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#walletClosed">walletClosed</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstringlist.html">QStringList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#walletList">walletList</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#walletName">walletName</a> (self)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#walletOpened">walletOpened</a> (self, bool success)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#writeEntry">writeEntry</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qbytearray.html">QByteArray</a> value, <a href="../kdeui/KWallet.Wallet.html#EntryType">KWallet.Wallet.EntryType</a> entryType)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#writeEntry">writeEntry</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qbytearray.html">QByteArray</a> value)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#writeMap">writeMap</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key, QMap<QString,QString> value)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#writePassword">writePassword</a> (self, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> key, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> value)</td></tr> </table> <hr><h2>Method Documentation</h2><a class="anchor" name="Wallet"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">__init__</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>handle</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>name</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Construct a KWallet object. <dl class="internal" compact><dt><b>Internal:</b></dt><dd> </dd></dl> </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>handle</em> </td><td> The handle for the wallet. <tr><td></td><td valign="top"><em>name</em> </td><td> The name of the wallet. </td></tr> </table></dl> <p> </p></div></div><a class="anchor" name="FormDataFolder"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> FormDataFolder</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>The standardized name of the form data folder. It is automatically created when a wallet is created, but the user may still delete it so you should check for its existence and recreate it if necessary and desired. </p></div></div><a class="anchor" name="LocalWallet"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> LocalWallet</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>The name of the wallet used to store local passwords. </p></div></div><a class="anchor" name="NetworkWallet"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> NetworkWallet</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>The name of the wallet used to store network passwords. </p></div></div><a class="anchor" name="PasswordFolder"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> PasswordFolder</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>The standardized name of the password folder. It is automatically created when a wallet is created, but the user may still delete it so you should check for its existence and recreate it if necessary and desired. </p></div></div><a class="anchor" name="changePassword"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"> changePassword</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>name</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/wid.html">WId</a> </td> <td class="paramname"><em>w</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Request to the wallet service to change the password of the wallet <b>name.</b> </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>name</em> </td><td> The the wallet to change the password of. <tr><td></td><td valign="top"><em>w</em> </td><td> The window id to associate any dialogs with. You can pass 0 if you don't have a window the password dialog should associate with. </td></tr> </table></dl> <p> </p></div></div><a class="anchor" name="closeWallet"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int closeWallet</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>name</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>force</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Close the wallet <b>name.</b> The wallet will only be closed if it is open but not in use (rare), or if it is forced closed. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>name</em> </td><td> The name of the wallet to close. <tr><td></td><td valign="top"><em>force</em> </td><td> Set true to force the wallet closed even if it is in use by others. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. </dd></dl> </p></div></div><a class="anchor" name="createFolder"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">bool createFolder</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>f</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Created the folder <b>f.</b> </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>f</em> </td><td> the name of the folder to create </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns true if the folder was successfully created. </dd></dl> </p></div></div><a class="anchor" name="currentFolder"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> currentFolder</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>Determine the current working folder in the wallet. If the folder name is empty, it is working in the global folder, which is valid but discouraged. <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns the current working folder. </dd></dl> </p></div></div><a class="anchor" name="deleteWallet"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int deleteWallet</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>name</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Delete the wallet <b>name.</b> The wallet will be forced closed first. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>name</em> </td><td> The name of the wallet to delete. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. </dd></dl> </p></div></div><a class="anchor" name="disconnectApplication"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">bool disconnectApplication</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>wallet</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>app</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Disconnect the application <b>app</b> from <b>wallet.</b> </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>wallet</em> </td><td> The name of the wallet to disconnect. <tr><td></td><td valign="top"><em>app</em> </td><td> The name of the application to disconnect. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns true on success, false on error. </dd></dl> </p></div></div><a class="anchor" name="entryList"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstringlist.html">QStringList</a> entryList</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>Return the list of keys of all entries in this folder. <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns an empty list if the wallet is not open, or if the folder is empty. </dd></dl> </p></div></div><a class="anchor" name="entryType"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"><a href="../kdeui/KWallet.Wallet.html#EntryType">KWallet.Wallet.EntryType</a> entryType</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Determine the type of the entry <b>key</b> in this folder. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>key</em> </td><td> The key to look up. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns an enumerated type representing the type of the entry. </dd></dl> </p></div></div><a class="anchor" name="folderDoesNotExist"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">bool folderDoesNotExist</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>wallet</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>folder</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Determine if a folder does not exist in a wallet. This does not require decryption of the wallet. This is a handy optimization to avoid prompting the user if your data is certainly not in the wallet. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>wallet</em> </td><td> The wallet to look in. <tr><td></td><td valign="top"><em>folder</em> </td><td> The folder to look up. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns true if the folder does NOT exist in the wallet, or the wallet does not exist. </dd></dl> </p></div></div><a class="anchor" name="folderList"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstringlist.html">QStringList</a> folderList</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>Obtain the list of all folders contained in the wallet. <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns an empty list if the wallet is not open. </dd></dl> </p></div></div><a class="anchor" name="folderListUpdated"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"> folderListUpdated</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>Emitted when the folder list is changed in this wallet. </p><dl compact><dt><b>Signal syntax:</b></dt><dd><code>QObject.connect(source, SIGNAL("folderListUpdated()"), target_slot)</code></dd></dl></div></div><a class="anchor" name="folderRemoved"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"> folderRemoved</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>folder</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Emitted when a folder in this wallet is removed. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>folder</em> </td><td> The folder that was removed. </td></tr> </table></dl> <p> </p><dl compact><dt><b>Signal syntax:</b></dt><dd><code>QObject.connect(source, SIGNAL("folderRemoved(const QString&)"), target_slot)</code></dd></dl></div></div><a class="anchor" name="folderUpdated"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"> folderUpdated</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>folder</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Emitted when a folder in this wallet is updated. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>folder</em> </td><td> The folder that was updated. </td></tr> </table></dl> <p> </p><dl compact><dt><b>Signal syntax:</b></dt><dd><code>QObject.connect(source, SIGNAL("folderUpdated(const QString&)"), target_slot)</code></dd></dl></div></div><a class="anchor" name="hasEntry"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">bool hasEntry</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Determine if the current folder has they entry <b>key.</b> </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>key</em> </td><td> The key to search for. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns true if the folder contains <b>key.</b> </dd></dl> </p></div></div><a class="anchor" name="hasFolder"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">bool hasFolder</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>f</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Determine if the folder <b>f</b> exists in the wallet. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>f</em> </td><td> the name of the folder to check for </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns true if the folder exists in the wallet. </dd></dl> </p></div></div><a class="anchor" name="isEnabled"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">bool isEnabled</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>Determine if the KDE wallet is enabled. Normally you do not need to use this because openWallet() will just fail. <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns true if the wallet enabled, else false. </dd></dl> </p></div></div><a class="anchor" name="isOpen"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">bool isOpen</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>name</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Determine if the current wallet is open, and is a valid wallet handle. <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns true if the wallet handle is valid and open. </dd></dl> </p></div></div><a class="anchor" name="isOpen"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">bool isOpen</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>Determine if the current wallet is open, and is a valid wallet handle. <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns true if the wallet handle is valid and open. </dd></dl> </p></div></div><a class="anchor" name="keyDoesNotExist"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">bool keyDoesNotExist</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>wallet</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>folder</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Determine if an entry in a folder does not exist in a wallet. This does not require decryption of the wallet. This is a handy optimization to avoid prompting the user if your data is certainly not in the wallet. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>wallet</em> </td><td> The wallet to look in. <tr><td></td><td valign="top"><em>folder</em> </td><td> The folder to look in. <tr><td></td><td valign="top"><em>key</em> </td><td> The key to look up. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns true if the key does NOT exist in the wallet, or the folder or wallet does not exist. </dd></dl> </p></div></div><a class="anchor" name="lockWallet"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int lockWallet</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>This closes and locks the current wallet. It will disconnect all applications using the wallet. <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. </dd></dl> </p></div></div><a class="anchor" name="openWallet"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"><a href="../kdeui/KWallet.Wallet.html">KWallet.Wallet</a> openWallet</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>name</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/wid.html">WId</a> </td> <td class="paramname"><em>w</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="../kdeui/KWallet.Wallet.html#OpenType">KWallet.Wallet.OpenType</a> </td> <td class="paramname"><em>ot=KWallet.Wallet.Synchronous</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Open the wallet <b>name.</b> The user will be prompted to allow your application to open the wallet, and may be prompted for a password. You are responsible for deleting this object when you are done with it. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>name</em> </td><td> The name of the wallet to open. <tr><td></td><td valign="top"><em>ot</em> </td><td> If Asynchronous, the call will return immediately with a non-null pointer to an invalid wallet. You must immediately connect the walletOpened() signal to a slot so that you will know when it is opened, or when it fails. <tr><td></td><td valign="top"><em>w</em> </td><td> The window id to associate any dialogs with. You can pass 0 if you don't have a window the password dialog should associate with. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns a pointer to the wallet if successful, or a null pointer on error or if rejected. </dd></dl> </p></div></div><a class="anchor" name="readEntry"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qbytearray.html">QByteArray</a> value readEntry</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Read the entry <b>key</b> from the current folder. The entry format is unknown except that it is either a QByteArray or a QDataStream, which effectively means that it is anything. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>key</em> </td><td> The key of the entry to read. <tr><td></td><td valign="top"><em>value</em> </td><td> A buffer to fill with the value. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. </dd></dl> </p></div></div><a class="anchor" name="readEntryList"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int, QMap<QString,QByteArray> value readEntryList</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Read the entries matching <b>key</b> from the current folder. The entry format is unknown except that it is either a QByteArray or a QDataStream, which effectively means that it is anything. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>key</em> </td><td> The key of the entry to read. Wildcards are supported. <tr><td></td><td valign="top"><em>value</em> </td><td> A buffer to fill with the value. The key in the map is the entry key. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. </dd></dl> </p></div></div><a class="anchor" name="readMap"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int, QMap<QString,QString> value readMap</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Read the map entry <b>key</b> from the current folder. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>key</em> </td><td> The key of the entry to read. <tr><td></td><td valign="top"><em>value</em> </td><td> A map buffer to fill with the value. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. Will return an error if the key was not originally written as a map. </dd></dl> </p></div></div><a class="anchor" name="readPassword"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int, <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> value readPassword</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Read the password entry <b>key</b> from the current folder. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>key</em> </td><td> The key of the entry to read. <tr><td></td><td valign="top"><em>value</em> </td><td> A password buffer to fill with the value. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. Will return an error if the key was not originally written as a password. </dd></dl> </p></div></div><a class="anchor" name="readPasswordList"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int, QMap<QString,QString> value readPasswordList</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Read the password entry <b>key</b> from the current folder. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>key</em> </td><td> The key of the entry to read. Wildcards are supported. <tr><td></td><td valign="top"><em>value</em> </td><td> A buffer to fill with the value. The key in the map is the entry key. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. Will return an error if the key was not originally written as a password. </dd></dl> </p></div></div><a class="anchor" name="removeEntry"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int removeEntry</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Remove the entry <b>key</b> from the current folder. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>key</em> </td><td> The key to remove. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. </dd></dl> </p></div></div><a class="anchor" name="removeFolder"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">bool removeFolder</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>f</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Remove the folder <b>f</b> and all its entries from the wallet. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>f</em> </td><td> the name of the folder to remove </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns true if the folder was successfully removed. </dd></dl> </p></div></div><a class="anchor" name="renameEntry"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int renameEntry</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>oldName</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>newName</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Rename the entry <b>oldName</b> to <b>newName.</b> </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>oldName</em> </td><td> The original key of the entry. <tr><td></td><td valign="top"><em>newName</em> </td><td> The new key of the entry. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. </dd></dl> </p></div></div><a class="anchor" name="requestChangePassword"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"> requestChangePassword</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/wid.html">WId</a> </td> <td class="paramname"><em>w</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Request to the wallet service to change the password of the current wallet. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>w</em> </td><td> The window id to associate any dialogs with. You can pass 0 if you don't have a window the password dialog should associate with. </td></tr> </table></dl> <p> </p></div></div><a class="anchor" name="setFolder"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">bool setFolder</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>f</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Set the current working folder to <b>f.</b> The folder must exist, or this call will fail. Create a folder with createFolder(). </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>f</em> </td><td> the name of the folder to make the working folder </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns true if the folder was successfully set. </dd></dl> </p></div></div><a class="anchor" name="sync"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int sync</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>This syncs the wallet file on disk with what is in memory. You don't normally need to use this. It happens automatically on close. <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. </dd></dl> </p></div></div><a class="anchor" name="users"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstringlist.html">QStringList</a> users</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>wallet</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>List the applications that are using the wallet <b>wallet.</b> </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>wallet</em> </td><td> The wallet to query. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns a list of all DCOP application IDs using the wallet. </dd></dl> </p></div></div><a class="anchor" name="walletClosed"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"> walletClosed</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>Emitted when this wallet is closed. </p><dl compact><dt><b>Signal syntax:</b></dt><dd><code>QObject.connect(source, SIGNAL("walletClosed()"), target_slot)</code></dd></dl></div></div><a class="anchor" name="walletList"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstringlist.html">QStringList</a> walletList</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>List all the wallets available. <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns a list of the names of all wallets that are open. </dd></dl> </p></div></div><a class="anchor" name="walletName"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> walletName</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>self</em> )</td> <td width="100%"> </td> </tr> </table> </div> <div class="memdoc"><p>The name of the current wallet. </p></div></div><a class="anchor" name="walletOpened"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname"> walletOpened</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>success</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Emitted when a wallet is opened in asynchronous mode. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>success</em> </td><td> True if the wallet was opened successfully. </td></tr> </table></dl> <p> </p><dl compact><dt><b>Signal syntax:</b></dt><dd><code>QObject.connect(source, SIGNAL("walletOpened(bool)"), target_slot)</code></dd></dl></div></div><a class="anchor" name="writeEntry"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int writeEntry</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qbytearray.html">QByteArray</a> </td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="../kdeui/KWallet.Wallet.html#EntryType">KWallet.Wallet.EntryType</a> </td> <td class="paramname"><em>entryType</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Write <b>key</b> = <b>value</b> as a binary entry to the current folder. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>key</em> </td><td> The key of the new entry. <tr><td></td><td valign="top"><em>value</em> </td><td> The value of the entry. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. </dd></dl> </p></div></div><a class="anchor" name="writeEntry"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int writeEntry</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qbytearray.html">QByteArray</a> </td> <td class="paramname"><em>value</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Write <b>key</b> = <b>value</b> as a binary entry to the current folder. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>key</em> </td><td> The key of the new entry. <tr><td></td><td valign="top"><em>value</em> </td><td> The value of the entry. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. </dd></dl> </p></div></div><a class="anchor" name="writeMap"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int writeMap</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype">QMap<QString,QString> </td> <td class="paramname"><em>value</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Write <b>key</b> = <b>value</b> as a map to the current folder. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>key</em> </td><td> The key of the new entry. <tr><td></td><td valign="top"><em>value</em> </td><td> The value of the map. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. </dd></dl> </p></div></div><a class="anchor" name="writePassword"></a> <div class="memitem"> <div class="memproto"> <table class="memname"><tr> <td class="memname">int writePassword</td> <td>(</td> <td class="paramtype"> <em>self</em>, </td> <td class="paramname"></td> </tr><tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>key</em>, </td> </tr> <tr> <td class="memname"></td> <td></td> <td class="paramtype"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> </td> <td class="paramname"><em>value</em></td> </tr> <tr> <td></td> <td>)</td> <td></td> <td></td> <td width="100%"> </td> </tr></table> </div> <div class="memdoc"><p>Write <b>key</b> = <b>value</b> as a password to the current folder. </p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign="top"><em>key</em> </td><td> The key of the new entry. <tr><td></td><td valign="top"><em>value</em> </td><td> The value of the password. </td></tr> </table></dl> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> Returns 0 on success, non-zero on error. </dd></dl> </p></div></div><hr><h2>Enumeration Documentation</h2><a class="anchor" name="EntryType"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr><td class="memname">EntryType</td> </tr> </table> </div> <div class="memdoc"><dl compact><dt><b>Enumerator: </b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>Unknown</em> = 0</td><td><tr><td valign="top"><em>Password</em> </td><td><tr><td valign="top"><em>Stream</em> </td><td><tr><td valign="top"><em>Map</em> </td><td><tr><td valign="top"><em>Unused</em> = 0xffff</td><td></table> </dl> </div></div><p><a class="anchor" name="OpenType"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr><td class="memname">OpenType</td> </tr> </table> </div> <div class="memdoc"><dl compact><dt><b>Enumerator: </b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>Synchronous</em> = 0</td><td><tr><td valign="top"><em>Asynchronous</em> </td><td><tr><td valign="top"><em>Path</em> </td><td><tr><td valign="top"><em>OpenTypeUnused</em> = 0xff</td><td></table> </dl> </div></div><p> </div> </div> </div> <div id="left"> <div class="menu_box"> <div class="nav_list"> <ul> <li><a href="../allclasses.html">Full Index</a></li> </ul> </div> <a name="cp-menu" /><div class="menutitle"><div> <h2 id="cp-menu-project">Modules</h2> </div></div> <div class="nav_list"> <ul><li><a href="../akonadi/index.html">akonadi</a></li> <li><a href="../dnssd/index.html">dnssd</a></li> <li><a href="../kdecore/index.html">kdecore</a></li> <li><a href="../kdeui/index.html">kdeui</a></li> <li><a href="../khtml/index.html">khtml</a></li> <li><a href="../kio/index.html">kio</a></li> <li><a href="../knewstuff/index.html">knewstuff</a></li> <li><a href="../kparts/index.html">kparts</a></li> <li><a href="../kutils/index.html">kutils</a></li> <li><a href="../nepomuk/index.html">nepomuk</a></li> <li><a href="../phonon/index.html">phonon</a></li> <li><a href="../plasma/index.html">plasma</a></li> <li><a href="../polkitqt/index.html">polkitqt</a></li> <li><a href="../solid/index.html">solid</a></li> <li><a href="../soprano/index.html">soprano</a></li> </ul></div></div> </div> </div> <div class="clearer"/> </div> <div id="end_body"></div> </div> <div id="footer"><div id="footer_text"> This documentation is maintained by <a href="mailto:simon@simonzone.com">Simon Edwards</a>.<br /> KDE<sup>®</sup> and <a href="../images/kde_gear_black.png">the K Desktop Environment<sup>®</sup> logo</a> are registered trademarks of <a href="http://ev.kde.org/" 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> </body> </html>