diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-03-25 10:15:50 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-03-25 10:33:32 +0100 |
| commit | a1e3d36dca9c6abf235c7ddf47ab9185c4b748d5 (patch) | |
| tree | 859befb5df101432b7388e1562f90a01c6d8e238 /src/tabasymmetric.h | |
| download | IT-Sicherheit-a1e3d36dca9c6abf235c7ddf47ab9185c4b748d5.tar.gz IT-Sicherheit-a1e3d36dca9c6abf235c7ddf47ab9185c4b748d5.zip | |
First commit of IT-Sicherheit
Diffstat (limited to 'src/tabasymmetric.h')
| -rw-r--r-- | src/tabasymmetric.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/src/tabasymmetric.h b/src/tabasymmetric.h new file mode 100644 index 0000000..29632c7 --- /dev/null +++ b/src/tabasymmetric.h @@ -0,0 +1,82 @@ +#ifndef TABASYMMETRIC_H +#define TABASYMMETRIC_H + +#include <QWidget> + +#include "cipherssingleton.h" + +namespace Ui { +class TabAsymmetric; +} + + +/** +* \class TabAsymmetric +* \brief TabWidget for the TabWidgetSelectAlgorithm, Asymmetric Ciphers. +* +* This Widget contains all Settings necessary for Asymmetric Ciphers and is used as a Tab in the TabWidgetSelectAlgorithm-Class. +* \author Uwe Gogolin [Gogolin.Uwe@FH-SWF.de] +* \version 0.2 +* \date 13.05s.2013 +*/ +class TabAsymmetric : public QWidget +{ + Q_OBJECT + +public: //Methods + /** + * \brief Class Constructor. + * + * Class Constructor. Initializes Graphical Elements of the Widget. + * \param QWidget* parent The QWidget the used instance of this class is subordinated to. + */ + TabAsymmetric(QWidget *parent = 0); + + + /** + * \brief Class Destructor. + * + * Class Destructor. Deletes the ui-Object containing the graphical Elements. + */ + ~TabAsymmetric(); + + +signals: + /** + * \brief SIGNAL to inform other Classes when a Cipher gets selected. + * + * This Signal is used to inform other Classes when a Cipher gets selected. + * \param int cipher The Integer referencing the selected Cipher according to the Class CiphersSingleton. + */ + void cipherChanged(int cipher); + + + /** + * \brief SIGNAL to inform other Classes when the Keylength is changed. + * + * This Signal is used to inform other Classes when the Keylength is changed. + * \param int keyLength The new Keylength. + * \param bool symmetric True if Length for Symmetric Cipher, false if for asymmetric Cipher. + */ + void keyLengthChanged(int keyLength, bool symmetric); + + +private slots: + /** + * \brief SLOT to pass on the new Keylength. + * + * Called when a new Keylength is selected. Passes the value on in connection with a bool + * set to true, signifying that it is for a symmetric Cipher. + * \param int value The new Keylength. + */ + void on_spinBoxKeylength_valueChanged(int value); + + +private: //Attributes + /** + * \brief Pointer to GUI-Object. + */ + Ui::TabAsymmetric *ui; +}; + +#endif // TABASYMMETRIC_H |
