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

25 lines
567 B
C
Raw Normal View History

#ifndef GNOME_KEYCHAIN_H
#define GNOME_KEYCHAIN_H
#include "keychain.h"
extern "C" {
#include <gnome-keyring.h>
}
class GnomeKeychain : public Keychain {
public:
2011-02-18 21:14:01 +01:00
virtual ~GnomeKeychain() {}
virtual bool isAvailable();
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 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
static const GnomeKeyringPasswordSchema kOurSchema;
};
#endif