34 lines
967 B
C++
34 lines
967 B
C++
#include <KF5/KWallet/KWallet>
|
|
|
|
extern "C" KWallet::Wallet* openWallet(const QString &name, WId w, KWallet::Wallet::OpenType ot = KWallet::Wallet::Synchronous) {
|
|
return KWallet::Wallet::openWallet(name, w, ot);
|
|
}
|
|
|
|
extern "C" void deleteWallet(KWallet::Wallet* w) {
|
|
w->deleteLater();
|
|
}
|
|
|
|
extern "C" const char* networkWallet() {
|
|
return KWallet::Wallet::NetworkWallet().toStdString().c_str();
|
|
}
|
|
|
|
extern "C" int readPassword(KWallet::Wallet* w, const QString &key, QString &value) {
|
|
return w->readPassword(key, value);
|
|
}
|
|
|
|
extern "C" int writePassword(KWallet::Wallet* w, const QString &key, const QString &value) {
|
|
return w->writePassword(key, value);
|
|
}
|
|
|
|
extern "C" bool hasFolder(KWallet::Wallet* w, const QString &f) {
|
|
return w->hasFolder(f);
|
|
}
|
|
|
|
extern "C" bool createFolder(KWallet::Wallet* w, const QString &f) {
|
|
return w->createFolder(f);
|
|
}
|
|
|
|
extern "C" bool setFolder(KWallet::Wallet* w, const QString &f) {
|
|
return w->setFolder(f);
|
|
}
|