1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-01-26 00:26:40 +00:00

39 lines
707 B
C
Raw Normal View History

2019-09-20 21:29:39 +02:00
#ifndef PASS_H
#define PASS_H
#include <QObject>
#include <QUrl>
#include <QVariant>
class Pass : public QObject
{
Q_OBJECT
2025-01-10 13:48:38 +01:00
Q_PROPERTY(QString password_store READ password_store)
private:
2019-09-20 21:29:39 +02:00
QString m_password_store;
signals:
void decrypted(QString text);
void decryptCanceled();
void decryptFailed();
public:
Pass();
~Pass() override = default;
2025-01-10 15:28:42 +01:00
QString password_store() const
{
return m_password_store;
}
2025-01-10 13:48:38 +01:00
2019-09-20 21:29:39 +02:00
Q_INVOKABLE void init(QObject *window);
Q_INVOKABLE void decrypt(QUrl url);
Q_INVOKABLE bool gpgDeleteKeyId(QString id);
Q_INVOKABLE bool gpgImportKeyFromFile(QUrl url);
Q_INVOKABLE QVariant gpgGetAllKeysModel();
};
#endif