Clementine-audio-player-Mac.../3rdparty/keychain/kwallet_keychain.h

32 lines
711 B
C
Raw Normal View History

#ifndef KWALLET_KEYCHAIN_H
#define KWALLET_KEYCHAIN_H
#include "keychain.h"
#include "kwallet.h"
class KWalletKeychain : public Keychain {
public:
2011-02-18 21:14:01 +01:00
KWalletKeychain();
virtual ~KWalletKeychain();
2011-02-18 21:14:01 +01:00
virtual const QString getPassword(const QString& account);
virtual bool setPassword(const QString& account, const QString& password);
2011-02-18 21:14:01 +01:00
virtual bool isAvailable();
2011-02-18 21:14:01 +01:00
virtual const QString& implementationName() const { return kImplementationName; }
2011-02-18 21:14:01 +01:00
static const QString kImplementationName;
private:
2011-02-18 21:14:01 +01:00
org::kde::KWallet kwallet_;
QString wallet_name_;
int handle_;
2011-02-18 21:14:01 +01:00
static const QString kKWalletServiceName;
static const QString kKWalletPath;
static const QString kKWalletFolder;
};
#endif