KDEUI
kwallet_mac.cpp
Go to the documentation of this file.
94 OSStatus result = SecKeychainFindGenericPassword( NULL, serviceName.size(), serviceName.constData(), accountName.size(), accountName.constData(), NULL, NULL, &itemRef );
338 QDBusReply<QStringList> r = walletLauncher->getInterface().entryList(d->handle, d->folder, appid());
434 if ( isError( SecKeychainFindGenericPassword( NULL, serviceName.size(), serviceName.constData(), accountName.size(), accountName.constData(), &passwordSize, &passwordData, NULL ), &errMsg ) ) {
455 QDBusReply<QVariantMap> r = walletLauncher->getInterface().readEntryList(d->handle, d->folder, key, appid());
480 QDBusReply<int> r = walletLauncher->getInterface().renameEntry(d->handle, d->folder, oldName, newName, appid());
551 static OSStatus writeEntryImplementation( const QString& walletName, const QString& key, const QByteArray& value ) {
555 OSStatus err = SecKeychainAddGenericPassword( NULL, serviceName.size(), serviceName.constData(), accountName.size(), accountName.constData(), value.size(), value.constData(), NULL );
599 return !isError( SecKeychainFindGenericPassword( NULL, serviceName.size(), serviceName.constData(), accountName.size(), accountName.constData(), NULL, NULL, NULL ), 0 );
615 QDBusReply<int> r = walletLauncher->getInterface().entryType(d->handle, d->folder, key, appid());
virtual bool hasEntry(const QString &key)
Determine if the current folder has they entry key.
Definition: kwallet.cpp:1410
virtual void requestChangePassword(WId w)
Request to the wallet service to change the password of the current wallet.
Definition: kwallet.cpp:677
virtual const QString & walletName() const
The name of the current wallet.
Definition: kwallet.cpp:658
virtual bool setFolder(const QString &f)
Set the current working folder to f.
Definition: kwallet.cpp:879
Definition: kwallet.h:80
virtual int renameEntry(const QString &oldName, const QString &newName)
Rename the entry oldName to newName.
Definition: kwallet.cpp:1108
virtual EntryType entryType(const QString &key)
Determine the type of the entry key in this folder.
Definition: kwallet.cpp:1468
void folderListUpdated()
Emitted when the folder list is changed in this wallet.
#define T
virtual void virtual_hook(int id, void *data)
Definition: kwallet.cpp:1655
static const QString PasswordFolder()
The standardized name of the password folder.
Definition: kwallet.cpp:138
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
virtual int readMap(const QString &key, QMap< QString, QString > &value)
Read the map entry key from the current folder.
Definition: kwallet.cpp:1143
virtual int removeEntry(const QString &key)
Remove the entry key from the current folder.
Definition: kwallet.cpp:1436
const KAboutData * aboutData() const
int readPasswordList(const QString &key, QMap< QString, QString > &value)
Read the password entry key from the current folder.
Definition: kwallet.cpp:1274
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void ref()
static Wallet * openWallet(const QString &name, WId w, OpenType ot=Synchronous)
Open the wallet name.
Definition: kwallet.cpp:452
virtual int writePassword(const QString &key, const QString &value)
Write key = value as a password to the current folder.
Definition: kwallet.cpp:1385
void walletOpened(bool success)
Emitted when a wallet is opened in asynchronous mode.
virtual bool hasFolder(const QString &f)
Determine if the folder f exists in the wallet.
Definition: kwallet.cpp:817
void folderUpdated(const QString &folder)
Emitted when a folder in this wallet is updated.
virtual bool removeFolder(const QString &f)
Remove the folder f and all its entries from the wallet.
Definition: kwallet.cpp:914
virtual int readPassword(const QString &key, QString &value)
Read the password entry key from the current folder.
Definition: kwallet.cpp:1233
virtual QStringList entryList()
Return the list of keys of all entries in this folder.
Definition: kwallet.cpp:774
int readEntryList(const QString &key, QMap< QString, QByteArray > &value)
Read the entries matching key from the current folder.
Definition: kwallet.cpp:1075
QString componentName() const
static const QString FormDataFolder()
The standardized name of the form data folder.
Definition: kwallet.cpp:142
static bool disconnectApplication(const QString &wallet, const QString &app)
Disconnect the application app from wallet.
Definition: kwallet.cpp:557
virtual int readEntry(const QString &key, QByteArray &value)
Read the entry key from the current folder.
Definition: kwallet.cpp:1031
static void changePassword(const QString &name, WId w)
Request to the wallet service to change the password of the wallet name.
Definition: kwallet.cpp:328
QString programName() const
static OSStatus writeEntryImplementation(const QString &walletName, const QString &key, const QByteArray &value)
Definition: kwallet_mac.cpp:551
static QStringList users(const QString &wallet)
List the applications that are using the wallet wallet.
Definition: kwallet.cpp:580
int readMapList(const QString &key, QMap< QString, QMap< QString, QString > > &value)
Read the map entry key from the current folder.
Definition: kwallet.cpp:1195
virtual int sync()
This syncs the wallet file on disk with what is in memory.
Definition: kwallet.cpp:602
static int closeWallet(const QString &name, bool force)
Close the wallet name.
Definition: kwallet.cpp:403
virtual QStringList folderList()
Obtain the list of all folders contained in the wallet.
Definition: kwallet.cpp:724
bool isValid() const
const KComponentData & mainComponent()
static bool keyDoesNotExist(const QString &wallet, const QString &folder, const QString &key)
Determine if an entry in a folder does not exist in a wallet.
Definition: kwallet.cpp:1629
static const QString NetworkWallet()
The name of the wallet used to store network passwords.
Definition: kwallet.cpp:127
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual const QString & currentFolder() const
Determine the current working folder in the wallet.
Definition: kwallet.cpp:965
static const QString LocalWallet()
The name of the wallet used to store local passwords.
Definition: kwallet.cpp:109
virtual int writeEntry(const QString &key, const QByteArray &value, EntryType entryType)
Write key = value as a binary entry to the current folder.
Definition: kwallet.cpp:1305
virtual bool isOpen() const
Determine if the current wallet is open, and is a valid wallet handle.
Definition: kwallet.cpp:663
static bool folderDoesNotExist(const QString &wallet, const QString &folder)
Determine if a folder does not exist in a wallet.
Definition: kwallet.cpp:1600
static OSStatus removeEntryImplementation(const QString &walletName, const QString &key)
Definition: kwallet_mac.cpp:89
virtual int writeMap(const QString &key, const QMap< QString, QString > &value)
Write key = value as a map to the current folder.
Definition: kwallet.cpp:1355
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.