libsecret_p.h 766 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef QTKEYCHAIN_LIBSECRET_P_H
  2. #define QTKEYCHAIN_LIBSECRET_P_H
  3. #include <QLibrary>
  4. #include "keychain_p.h"
  5. class LibSecretKeyring : public QLibrary {
  6. public:
  7. static bool isAvailable();
  8. static bool findPassword(const QString& user,
  9. const QString& server,
  10. QKeychain::JobPrivate* self);
  11. static bool writePassword(const QString& display_name,
  12. const QString& user,
  13. const QString& server,
  14. const QKeychain::JobPrivate::Mode type,
  15. const QByteArray& password,
  16. QKeychain::JobPrivate* self);
  17. static bool deletePassword(const QString &key, const QString &service,
  18. QKeychain::JobPrivate* self);
  19. private:
  20. LibSecretKeyring();
  21. static LibSecretKeyring &instance();
  22. };
  23. #endif