]> vaikene.ee Git - evaf/blobdiff - src/apps/PswGen/GUI/gui.h
Implementing 'suffix' and alpha-numeric options in the PswGen GUI and CLI.
[evaf] / src / apps / PswGen / GUI / gui.h
index 359034289e53f39e5f2e3a7bf62d6fc8ab1c37a2..246b556ac6c37a038920ef8e5052ce6f70e00c1b 100644 (file)
@@ -3,7 +3,7 @@
  * @brief GUI for the PswGen application
  * @author Enar Vaikene
  *
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2012 Enar Vaikene
  *
  * This file is part of the eVaf C++ cross-platform application development framework.
  *
 class QLineEdit;
 class QSpinBox;
 class QPushButton;
+class QCheckBox;
 
 namespace eVaf {
 namespace PswGen {
-    class iGenerator;
-    class iStorage;
+    struct iGenerator;
+    struct iStorage;
 namespace GUI {
 
 /**
@@ -43,6 +44,7 @@ namespace GUI {
 class Module : public Plugins::iPlugin
 {
     Q_OBJECT
+    Q_INTERFACES(eVaf::Plugins::iPlugin)
 
 public:
 
@@ -83,9 +85,11 @@ private: // Members
     eVaf::PswGen::iStorage * mStorage;
 
     /// Widgets on the screen
-    QLineEdit * wName;
     QLineEdit * wMasterPassword;
+    QLineEdit * wName;
+    QLineEdit * wSuffix;
     QSpinBox * wLength;
+    QCheckBox * wAlNum;
     QLineEdit * wPassword;
     QPushButton * wGenerate;
     QPushButton * wCopy;