2019-03-13 18:38:12 +00:00
|
|
|
#ifndef PASS_H
|
|
|
|
#define PASS_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class Pass: public QObject {
|
|
|
|
Q_OBJECT
|
2019-03-15 16:53:40 +00:00
|
|
|
QString gpgHome;
|
2019-03-13 18:38:12 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
Pass();
|
|
|
|
~Pass() override = default;
|
|
|
|
|
2019-03-16 15:18:05 +00:00
|
|
|
Q_INVOKABLE void speak();
|
2019-03-15 16:53:40 +00:00
|
|
|
Q_INVOKABLE QString decrypt(QByteArray plainText);
|
|
|
|
Q_INVOKABLE QString decrypt_file(QString path);
|
|
|
|
Q_INVOKABLE QByteArray encrypt(QString str);
|
|
|
|
Q_INVOKABLE bool encrypt_file(QString str, QString path);
|
2019-03-13 18:38:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|