2011-02-17 14:47:54 +01:00
|
|
|
#ifndef DEFAULT_KEYCHAIN_H
|
|
|
|
#define DEFAULT_KEYCHAIN_H
|
|
|
|
|
|
|
|
#include "keychain.h"
|
|
|
|
|
|
|
|
class DefaultKeychain : public Keychain {
|
|
|
|
public:
|
2011-02-18 21:14:01 +01:00
|
|
|
virtual ~DefaultKeychain() {}
|
|
|
|
virtual bool isAvailable() { return true; }
|
2011-02-17 14:47:54 +01:00
|
|
|
|
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-17 14:47:54 +01:00
|
|
|
|
2011-02-18 21:14:01 +01:00
|
|
|
virtual const QString& implementationName() const { return kImplementationName; }
|
2011-02-17 14:47:54 +01:00
|
|
|
|
2011-02-18 21:14:01 +01:00
|
|
|
static const QString kImplementationName;
|
2011-02-17 14:47:54 +01:00
|
|
|
private:
|
2011-02-19 19:24:01 +01:00
|
|
|
QString password_;
|
2011-02-17 14:47:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|