summaryrefslogtreecommitdiffstats
path: root/decryptdatadialog.h
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-10-02 16:32:23 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-10-02 16:33:15 +0200
commitd3b1f25bd533d392bb6d6cc8c733dcf737942280 (patch)
tree46b7eb8bb714ab67967691a1f2a37201913ec61e /decryptdatadialog.h
parent335b8a78cab1d6f58df2478ae2134795a27f50de (diff)
downloadsrc-d3b1f25bd533d392bb6d6cc8c733dcf737942280.tar.gz
src-d3b1f25bd533d392bb6d6cc8c733dcf737942280.zip
Füge DecryptWizard für bessere Nutzerführung ein
Diffstat (limited to 'decryptdatadialog.h')
-rw-r--r--decryptdatadialog.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/decryptdatadialog.h b/decryptdatadialog.h
new file mode 100644
index 0000000..8faf514
--- /dev/null
+++ b/decryptdatadialog.h
@@ -0,0 +1,68 @@
+#ifndef DECRYPTDATADIALOG_H
+#define DECRYPTDATADIALOG_H
+
+#include <QDialog>
+#include <QDir>
+#include <QFileDialog>
+#include <QMessageBox>
+#include <QString>
+
+namespace Ui {
+class DecryptDataDialog;
+}
+
+/**
+ * @brief Ein Wizard, der durch das Entschlüsseln führt.
+ */
+class DecryptDataDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ /**
+ * @brief Erzeugt ein neuen DecryptDataDialog, mit dem angegeben Elternfenster.
+ * @param parent Das Elternfenster, welches überschattet wird.
+ */
+ explicit DecryptDataDialog(QWidget *parent = 0);
+ ~DecryptDataDialog();
+
+ /**
+ * @brief Gibt den Pfad der zu speichernden Datei an.
+ * @return Der Dateipfad.
+ */
+ QString getOutFileName() const;
+
+ /**
+ * @brief Gibt den Pfad der zu entschlüsselnden Datei an.
+ * @return Der Dateipfad.
+ */
+ QString getCipherFilename() const;
+
+public slots:
+ /**
+ * @brief Fängt Fehler nach dem Okay ab.
+ */
+ virtual void accept();
+
+private slots:
+ /**
+ * @brief Öffnet einen Dateidialog
+ * für die verschlüsselte Datei.
+ * Schreibt Dateipfad in lineEditFilePath(ChangeEvent).
+ */
+ void on_pushButtonOpenFile_clicked();
+
+private:
+ /**
+ * @brief Liefert Zugriff auf die UI.
+ */
+ Ui::DecryptDataDialog *ui;
+
+ /**
+ * @brief Der Pfad, der zu speichernden Datei.
+ */
+ QString m_outFile;
+
+};
+
+#endif // DECRYPTDATADIALOG_H