KDEUI
kwallet_mac.cpp
Go to the documentation of this file.
114 isKDEChain = ( n == LocalWallet() || n == NetworkWallet() || n.contains( "wallet", Qt::CaseInsensitive ) );
139 // RJVB: Mac OS X's Keychain supports multiple keychains, but they can only be accesses by full path, not
140 // found by name. That makes it cumbersome to map to multiple wallets when using only the wallet name.
141 // However, it would be perfectly possible to create OS X Keychains called Wallet::LocalWallet() and
229 kWarning() << "Wallet::disconnectApplication unimplemented, '" << app << "' from '" << wallet << "'";
342 QDBusReply<QStringList> r = walletLauncher->getInterface().entryList(d->handle, d->folder, appid());
411 // is stored as the ServiceItemAttr (which shows up as the "Where" field in the Keychain Utility).
458 kDebug() << "Wallet::readEntry '" << key << "' from wallet " << d->name << ", error=" << ((err)? -1 : 0);
474 QDBusReply<QVariantMap> r = walletLauncher->getInterface().readEntryList(d->handle, d->folder, key, appid());
503 QDBusReply<int> r = walletLauncher->getInterface().renameEntry(d->handle, d->folder, oldName, newName, appid());
576 kDebug() << "Wallet::readPassword '" << key << "' from wallet " << d->name << ", error=" << ret;
613 kDebug() << "wrote entry '" << key << "' of type=" << (int) entryType << "to wallet " << d->name << ", error=" << ret;
642 kDebug() << "wallet '" << d->name << "'" << ((ret)? " has" : " does not have") << " entry '" << key << "'";
662 QDBusReply<int> r = walletLauncher->getInterface().entryType(d->handle, d->folder, key, appid());
669 // RJVB: a priori, entries are always 'password' on OS X, but since we also do use them for storing
670 // maps, it may be best to return Wallet::Unknown to leave some uncertainty and not mislead our caller.
787 kWarning() << "Wallet::slotCollectionStatusChanged unimplemented '" << d->name << "' status=" << status;
virtual bool hasEntry(const QString &key)
Determine if the current folder has they entry key.
Definition: kwallet.cpp:1413
virtual void requestChangePassword(WId w)
Request to the wallet service to change the password of the current wallet.
Definition: kwallet.cpp:680
virtual const QString & walletName() const
The name of the current wallet.
Definition: kwallet.cpp:661
virtual bool setFolder(const QString &f)
Set the current working folder to f.
Definition: kwallet.cpp:882
static OSStatus Destroy(SecKeychainRef *keychain)
Definition: qosxkeychain.cpp:700
Definition: kwallet.h:80
virtual int renameEntry(const QString &oldName, const QString &newName)
Rename the entry oldName to newName.
Definition: kwallet.cpp:1111
virtual EntryType entryType(const QString &key)
Determine the type of the entry key in this folder.
Definition: kwallet.cpp:1471
void folderListUpdated()
Emitted when the folder list is changed in this wallet.
virtual void virtual_hook(int id, void *data)
Definition: kwallet.cpp:1658
Definition: qosxkeychain.h:98
Definition: kwallet.h:80
static const QString PasswordFolder()
The standardized name of the password folder.
Definition: kwallet.cpp:138
int size() const
bool isEmpty() const
Definition: qosxkeychain.h:98
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:1146
bool isValid() const
virtual int removeEntry(const QString &key)
Remove the entry key from the current folder.
Definition: kwallet.cpp:1439
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:1277
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
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:1388
void walletOpened(bool success)
Emitted when a wallet is opened in asynchronous mode.
Definition: kwallet.h:80
virtual bool hasFolder(const QString &f)
Determine if the folder f exists in the wallet.
Definition: kwallet.cpp:820
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:917
QString fromUtf8(const char *str, int size)
static OSStatus Lock(const SecKeychainRef keychain)
Definition: qosxkeychain.cpp:310
static bool IsOpen(const SecKeychainRef keychain)
Definition: qosxkeychain.cpp:261
Type value() const
virtual int readPassword(const QString &key, QString &value)
Read the password entry key from the current folder.
Definition: kwallet.cpp:1236
virtual QStringList entryList()
Return the list of keys of all entries in this folder.
Definition: kwallet.cpp:777
int readEntryList(const QString &key, QMap< QString, QByteArray > &value)
Read the entries matching key from the current folder.
Definition: kwallet.cpp:1078
Definition: qosxkeychain.h:90
bool isEmpty() const
const char * constData() const
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:560
Definition: qosxkeychain.h:98
static OSStatus KeychainList(QStringList &theList)
Definition: qosxkeychain.cpp:232
virtual int readEntry(const QString &key, QByteArray &value)
Read the entry key from the current folder.
Definition: kwallet.cpp:1034
bool contains(QChar ch, Qt::CaseSensitivity cs) const
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
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
Definition: qosxkeychain.h:98
QString programName() const
static QStringList users(const QString &wallet)
List the applications that are using the wallet wallet.
Definition: kwallet.cpp:583
QByteArray fromBase64(const QByteArray &base64)
int readMapList(const QString &key, QMap< QString, QMap< QString, QString > > &value)
Read the map entry key from the current folder.
Definition: kwallet.cpp:1198
virtual int sync()
This syncs the wallet file on disk with what is in memory.
Definition: kwallet.cpp:605
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:727
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:1632
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)
iterator insert(const Key &key, const T &value)
QByteArray toBase64() const
virtual const QString & currentFolder() const
Determine the current working folder in the wallet.
Definition: kwallet.cpp:968
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:1308
virtual bool isOpen() const
Determine if the current wallet is open, and is a valid wallet handle.
Definition: kwallet.cpp:666
static bool folderDoesNotExist(const QString &wallet, const QString &folder)
Determine if a folder does not exist in a wallet.
Definition: kwallet.cpp:1603
virtual int writeMap(const QString &key, const QMap< QString, QString > &value)
Write key = value as a map to the current folder.
Definition: kwallet.cpp:1358
Definition: kwallet.h:80
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.