25#include <QtCore/QStringList>
26#include <QtCore/QObject>
27#include <QtGui/qwindowdefs.h>
46#define KSS_ATTR_ENTRYFOLDER "kwallet.folderName"
47#define KSS_ATTR_WALLETTYPE "kwallet.type"
72 Wallet(
int handle,
const QString& name);
92 static QStringList walletList();
99 static bool isEnabled();
106 static bool isOpen(
const QString& name);
117 static int closeWallet(
const QString& name,
bool force);
125 static int deleteWallet(
const QString& name);
133 static bool disconnectApplication(
const QString& wallet,
const QString& app);
155 static Wallet* openWallet(
const QString& name, WId w, OpenType ot = Synchronous);
163 static QStringList users(
const QString& wallet);
168 static const QString LocalWallet();
173 static const QString NetworkWallet();
181 static const QString PasswordFolder();
189 static const QString FormDataFolder();
199 static void changePassword(
const QString& name, WId w);
214 virtual int lockWallet();
219 virtual const QString& walletName()
const;
226 virtual bool isOpen()
const;
235 virtual void requestChangePassword(WId w);
241 virtual QStringList folderList();
248 virtual bool hasFolder(
const QString& f);
257 virtual bool setFolder(
const QString& f);
264 virtual bool removeFolder(
const QString& f);
271 virtual bool createFolder(
const QString& f);
279 virtual const QString& currentFolder()
const;
286 virtual QStringList entryList();
294 virtual int renameEntry(
const QString& oldName,
const QString& newName);
305 virtual int readEntry(
const QString& key, QByteArray& value);
325 virtual int readPassword(
const QString& key, QString& value);
374 virtual int writeEntry(
const QString& key,
const QByteArray& value, EntryType entryType);
383 virtual int writeEntry(
const QString& key,
const QByteArray& value);
399 virtual int writePassword(
const QString& key,
const QString& value);
406 virtual bool hasEntry(
const QString& key);
413 virtual int removeEntry(
const QString& key);
421 virtual EntryType entryType(
const QString& key);
433 static bool folderDoesNotExist(
const QString& wallet,
const QString& folder);
446 static bool keyDoesNotExist(
const QString& wallet,
const QString& folder,
454 static bool isUsingKSecretsService();
490 void slotWalletClosed(
int handle);
496 void slotFolderUpdated(
const QString& wallet,
const QString& folder);
502 void slotFolderListUpdated(
const QString& wallet);
508 void slotApplicationDisconnected(
const QString& wallet,
const QString& application);
516 void walletAsyncOpened(
int tId,
int handle);
522 void emitWalletAsyncOpenError();
528 void emitWalletOpened();
534 void slotCollectionStatusChanged(
int );
539 void slotCollectionDeleted();
543 WalletPrivate*
const d;
544 Q_PRIVATE_SLOT(d,
void walletServiceUnregistered())
550 virtual
void virtual_hook(
int id,
void *data);
void folderUpdated(const QString &folder)
Emitted when a folder in this wallet is updated.
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 KWallet object.
void folderRemoved(const QString &folder)
Emitted when a folder in this wallet is removed.
void walletOpened(bool success)
Emitted when a wallet is opened in asynchronous mode.
KAutostart::StartPhase readEntry(const KConfigGroup &group, const char *key, const KAutostart::StartPhase &aDefault)