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

39 lines
695 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
2025-01-14 08:15:03 +01:00
Q_INVOKABLE void initialize(QObject *window);
Q_INVOKABLE void show(QUrl url);
Q_INVOKABLE bool deleteGPGKey(QString id);
Q_INVOKABLE bool importGPGKey(QUrl url);
Q_INVOKABLE QVariant getAllGPGKeys();
2019-09-20 21:29:39 +02:00
};
#endif