Bring back KWallet password backend test

remotes/origin/falkon
David Rosca 11 years ago
parent 2b05641430
commit 0f6720a32c
  1. 6
      src/plugins/KWalletPasswords/kwalletpasswordbackend.cpp
  2. 10
      src/plugins/KWalletPasswords/kwalletpasswordbackend.h
  3. 6
      tests/autotests/autotests.pro

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

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

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

Loading…
Cancel
Save