30 #include <tqstringlist.h>
32 #include <dcopobject.h>
59 Wallet(
int handle,
const TQString& name);
67 enum EntryType { Unknown=0, Password, Stream, Map, Unused=0xffff };
79 static TQStringList walletList();
86 static bool isEnabled();
93 static bool isOpen(
const TQString& name);
104 static int closeWallet(
const TQString& name,
bool force);
112 static int deleteWallet(
const TQString& name);
120 static bool disconnectApplication(
const TQString& wallet,
const TQCString& app);
122 enum OpenType { Synchronous=0, Asynchronous, Path, OpenTypeUnused=0xff };
140 static Wallet* openWallet(
const TQString& name, WId w = 0, OpenType ot = Synchronous);
148 static TQStringList users(
const TQString& wallet);
153 static const TQString LocalWallet();
158 static const TQString NetworkWallet();
166 static const TQString PasswordFolder();
174 static const TQString FormDataFolder();
182 static void changePassword(
const TQString& name, WId w = 0);
197 virtual int lockWallet();
202 virtual const TQString& walletName()
const;
209 virtual bool isOpen()
const;
216 virtual void requestChangePassword(WId w = 0);
222 virtual TQStringList folderList();
229 virtual bool hasFolder(
const TQString& f);
238 virtual bool setFolder(
const TQString& f);
245 virtual bool removeFolder(
const TQString& f);
252 virtual bool createFolder(
const TQString& f);
260 virtual const TQString& currentFolder()
const;
267 virtual TQStringList entryList();
275 virtual int renameEntry(
const TQString& oldName,
const TQString& newName);
286 virtual int readEntry(
const TQString& key, TQByteArray& value);
296 virtual int readMap(
const TQString& key, TQMap<TQString,TQString>& value);
306 virtual int readPassword(
const TQString& key, TQString& value);
320 int readEntryList(
const TQString& key, TQMap<TQString, TQByteArray>& value);
333 int readMapList(
const TQString& key, TQMap<TQString, TQMap<TQString, TQString> >& value);
346 int readPasswordList(
const TQString& key, TQMap<TQString, TQString>& value);
358 virtual int writeEntry(
const TQString& key,
const TQByteArray& value, EntryType entryType);
367 virtual int writeEntry(
const TQString& key,
const TQByteArray& value);
375 virtual int writeMap(
const TQString& key,
const TQMap<TQString,TQString>& value);
383 virtual int writePassword(
const TQString& key,
const TQString& value);
390 virtual bool hasEntry(
const TQString& key);
397 virtual int removeEntry(
const TQString& key);
405 virtual EntryType entryType(
const TQString& key);
417 static bool folderDoesNotExist(
const TQString& wallet,
const TQString& folder);
430 static bool keyDoesNotExist(
const TQString& wallet,
const TQString& folder,
431 const TQString& key);
468 ASYNC slotWalletClosed(
int handle);
474 ASYNC slotFolderUpdated(
const TQString& wallet,
const TQString& folder);
480 ASYNC slotFolderListUpdated(
const TQString& wallet);
486 ASYNC slotApplicationDisconnected(
const TQString& wallet,
const TQCString& application);
492 ASYNC walletOpenResult(
int rc);
499 void slotAppUnregistered(
const TQCString&);
513 virtual void virtual_hook(
int id,
void *data);
void walletClosed()
Emitted when this wallet is closed.
void folderListUpdated()
Emitted when the folder list is changed in this wallet.
Wallet(const Wallet &)
Copy a TDEWallet object.
void folderUpdated(const TQString &folder)
Emitted when a folder in this wallet is updated.
void folderRemoved(const TQString &folder)
Emitted when a folder in this wallet is removed.
void walletOpened(bool success)
Emitted when a wallet is opened in asynchronous mode.
Namespace collecting all the Wallet-related classes.