mirror of
https://github.com/QRouland/UTPass.git
synced 2025-01-10 09:28:47 +00:00
22 lines
427 B
C++
22 lines
427 B
C++
#ifndef PASS_H
|
|
#define PASS_H
|
|
|
|
#include <QObject>
|
|
|
|
class Pass: public QObject {
|
|
Q_OBJECT
|
|
QString gpgHome;
|
|
|
|
public:
|
|
Pass();
|
|
~Pass() override = default;
|
|
|
|
Q_INVOKABLE void speak();
|
|
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);
|
|
};
|
|
|
|
#endif
|