#ifndef PASS_H #define PASS_H #include #include #include class Pass : public QObject { Q_OBJECT Q_PROPERTY(QString password_store READ password_store) private: QString m_password_store; signals: void decrypted(QString text); void decryptCanceled(); void decryptFailed(); public: Pass(); ~Pass() override = default; QString password_store() const { return m_password_store; } 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