summaryrefslogtreecommitdiffstats
path: root/mainwindow.h
diff options
context:
space:
mode:
authorMartin Talarczyk <talarczyk.martin@fh-swf.de>2015-10-02 15:25:38 +0200
committerMartin Talarczyk <talarczyk.martin@fh-swf.de>2015-10-02 15:26:10 +0200
commit3cf5ccd124ed3aeb578058a024af0939ca28d378 (patch)
treeda22e5322461d5482ee6f3a682946205a48561cc /mainwindow.h
parent0351429493f5ea55c38b35f93d7ae79856d74914 (diff)
downloadsrc-3cf5ccd124ed3aeb578058a024af0939ca28d378.tar.gz
src-3cf5ccd124ed3aeb578058a024af0939ca28d378.zip
Verfolständige Komentare
Diffstat (limited to 'mainwindow.h')
-rw-r--r--mainwindow.h59
1 files changed, 49 insertions, 10 deletions
diff --git a/mainwindow.h b/mainwindow.h
index da1318c..3bc897e 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -17,38 +17,77 @@
namespace Ui {
class MainWindow;
}
-
+/**
+ * @brief Eine Klasse die sich um die GUI kümmert.
+ */
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
+ /**
+ * @brief Ist der Konstrucktor der eine Objekt der Klasse erzeugt.
+ * @param parent ist der Zeiger auf das Elter Fenster.
+ */
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
+ /**
+ * @brief Entschlüsselt die Datei.
+ * öfnet PublicKeyImportDialog
+ * und Speichert Entschlüsselt Datei ap.
+ */
void on_pushButtonDecrypt_clicked();
-
+ /**
+ * @brief Verschlüsselt eine Datei.
+ * öffnet DateiDialog für Verschlüsselte Datei.
+ * Speichert Entschlüsselte Datei ab.
+ */
void on_pushButtonEncrypt_clicked();
-
+ /**
+ * @brief Öfnete ein Datei.
+ * öffnet DateiDialog für eine Klartext Datei.
+ * Schreibt Dateipfart in lineEditFilePath(ChangeEvent).
+ */
void on_pushButtonOpenFile_clicked();
-
+ /**
+ * @brief Beendet die Anwendung.
+ */
void on_actionClose_triggered();
-
+ /**
+ * @brief Erzeugt ein neus Schlüsselpaar.
+ * Schlüssel werden nur im Progamm gespeichert.
+ */
void on_actionCreateKeypair_triggered();
-
+ /**
+ * @brief Improtier ein Schlüsselpaar aus einer Datei.
+ */
void on_actionImport_triggered();
-
+ /**
+ * @brief Exportirt das im Programm vorhanden Schlüsselpaar.
+ */
void on_actionExportMyKeypair_triggered();
-
+ /**
+ * @brief Exportirt den im Programm vorhandenen Öffentlichenschlüssel.
+ */
void on_actionExportMyPublicKey_triggered();
-
+ /**
+ * @brief Setzt den text in aus der Datei in textEditPreview.
+ * Datei wir nur angezeigt wen sie auf .txt oder .log ändert.
+ * @param text der Text der in lineEditFilePath enthalten ist.
+ */
void on_lineEditFilePath_textChanged(const QString &text);
private:
+ /**
+ * @brief Zeit in Sekunden die Nachrichten in der Statusbar angezeigt wird.
+ */
static const int messageTimeout = 20000;
-
+ /**
+ * @brief Ist
+ */
HybridCrypt hybridcrypt;
Ui::MainWindow *ui;