aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/FileEncryptionDialog.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/ui/FileEncryptionDialog.h (renamed from include/ui/FileEncryptionDialog.h)153
1 files changed, 76 insertions, 77 deletions
diff --git a/include/ui/FileEncryptionDialog.h b/src/ui/FileEncryptionDialog.h
index da1d48e4..a3e56564 100755
--- a/include/ui/FileEncryptionDialog.h
+++ b/src/ui/FileEncryptionDialog.h
@@ -25,10 +25,12 @@
#ifndef __FILEENCRYPTIONDIALOG_H__
#define __FILEENCRYPTIONDIALOG_H__
+#include "VerifyDetailsDialog.h"
#include "gpg/GpgContext.h"
+#include "ui/GpgFrontendUI.h"
#include "ui/widgets/KeyList.h"
-#include "VerifyDetailsDialog.h"
+namespace GpgFrontend::UI {
/**
* @brief
@@ -36,81 +38,78 @@
* @class FileEncryptionDialog fileencryptiondialog.h "fileencryptiondialog.h"
*/
class FileEncryptionDialog : public QDialog {
-Q_OBJECT
-
-public:
-
- enum DialogAction {
- Encrypt,
- Decrypt,
- Sign,
- Verify
- };
-
- /**
- * @brief
- *
- * @fn FileEncryptionDialog
- * @param ctx
- * @param keyList
- * @param parent
- */
- FileEncryptionDialog(GpgFrontend::GpgContext *ctx, QStringList keyList, DialogAction action, QWidget *parent = nullptr);
-
-public slots:
-
- /**
- * @details
- *
- * @fn selectInputFile
- */
- void slotSelectInputFile();
-
- /**
- * @brief
- *
- * @fn selectOutputFile
- */
- void slotSelectOutputFile();
-
- /**
- * @brief
- *
- * @fn selectSignFile
- */
- void slotSelectSignFile();
-
- /**
- * @brief
- *
- * @fn executeAction
- */
- void slotExecuteAction();
-
- /**
- * @brief
- *
- * @fn hideKeyList
- */
- void slotHideKeyList();
-
- /**
- * @brief
- *
- * @fn showKeyList
- */
- void slotShowKeyList();
-
-private:
- QLineEdit *outputFileEdit;
- QLineEdit *inputFileEdit;
- QLineEdit *signFileEdit;
- DialogAction mAction;
- QLabel *statusLabel;
-protected:
- GpgFrontend::GpgContext *mCtx;
- KeyList *mKeyList;
-
+ Q_OBJECT
+
+ public:
+ enum DialogAction { Encrypt, Decrypt, Sign, Verify };
+
+ /**
+ * @brief
+ *
+ * @fn FileEncryptionDialog
+ * @param ctx
+ * @param keyList
+ * @param parent
+ */
+ FileEncryptionDialog(KeyIdArgsListPtr keyList,
+ DialogAction action,
+ QWidget* parent = nullptr);
+
+ public slots:
+
+ /**
+ * @details
+ *
+ * @fn selectInputFile
+ */
+ void slotSelectInputFile();
+
+ /**
+ * @brief
+ *
+ * @fn selectOutputFile
+ */
+ void slotSelectOutputFile();
+
+ /**
+ * @brief
+ *
+ * @fn selectSignFile
+ */
+ void slotSelectSignFile();
+
+ /**
+ * @brief
+ *
+ * @fn executeAction
+ */
+ void slotExecuteAction();
+
+ /**
+ * @brief
+ *
+ * @fn hideKeyList
+ */
+ void slotHideKeyList();
+
+ /**
+ * @brief
+ *
+ * @fn showKeyList
+ */
+ void slotShowKeyList();
+
+ private:
+ QLineEdit* outputFileEdit;
+ QLineEdit* inputFileEdit;
+ QLineEdit* signFileEdit;
+ DialogAction mAction;
+ QLabel* statusLabel;
+
+ protected:
+ KeyList* mKeyList;
};
-#endif // __FILEENCRYPTIONDIALOG_H__
+} // namespace GpgFrontend::UI
+
+#endif // __FILEENCRYPTIONDIALOG_H__