1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Bring back KWallet password backend test

This commit is contained in:
David Rosca 2015-10-09 11:35:57 +02:00
parent 2b05641430
commit 0f6720a32c
3 changed files with 12 additions and 10 deletions

View File

@ -20,6 +20,12 @@
#include <QDateTime> #include <QDateTime>
#if QT_VERSION >= 0x050000
#include <KF5/KWallet/KWallet>
#else
#include <KDE/KWallet/Wallet>
#endif
static PasswordEntry decodeEntry(const QByteArray &data) static PasswordEntry decodeEntry(const QByteArray &data)
{ {
QDataStream stream(data); QDataStream stream(data);

View File

@ -20,15 +20,13 @@
#include <QVector> #include <QVector>
#if QT_VERSION >= 0x050000
#include <KF5/KWallet/KWallet>
#else
#include <KDE/KWallet/Wallet>
#endif
#include "passwordbackends/passwordbackend.h" #include "passwordbackends/passwordbackend.h"
#include "passwordmanager.h" #include "passwordmanager.h"
namespace KWallet {
class Wallet;
}
class KWalletPasswordBackend : public PasswordBackend class KWalletPasswordBackend : public PasswordBackend
{ {
public: public:

View File

@ -11,11 +11,9 @@ QMAKE_LFLAGS+=$${QMAKE_LFLAGS_RPATH}$$PWD/../../bin
# KWallet plugin # KWallet plugin
exists($$PWD/../../bin/plugins/libKWalletPasswords.so) { exists($$PWD/../../bin/plugins/libKWalletPasswords.so) {
isEqual(QT_MAJOR_VERSION, 4) | qtHaveModule(KWallet) {
LIBS += $$PWD/../../bin/plugins/libKWalletPasswords.so LIBS += $$PWD/../../bin/plugins/libKWalletPasswords.so
DEFINES += HAVE_KDE_PASSWORDS_PLUGIN DEFINES += HAVE_KDE_PASSWORDS_PLUGIN
} }
}
# GnomeKeyring plugin # GnomeKeyring plugin
exists($$PWD/../../bin/plugins/libGnomeKeyringPasswords.so) { exists($$PWD/../../bin/plugins/libGnomeKeyringPasswords.so) {