eVaf
gui.h
Go to the documentation of this file.
1 
20 #ifndef __PSWGEN_GUI_GUI_H
21 #define __PSWGEN_GUI_GUI_H
22 
23 #include "version.h"
24 
25 #include <Plugins/iPlugin>
26 
27 #include <QObject>
28 #include <QString>
29 
30 class QLineEdit;
31 class QSpinBox;
32 class QPushButton;
33 class QCheckBox;
34 
35 namespace eVaf {
36 namespace PswGen {
37  struct iGenerator;
38  struct iStorage;
39 namespace GUI {
40 
46 class Module : public Plugins::iPlugin
47 {
48  Q_OBJECT
49  Q_INTERFACES(eVaf::Plugins::iPlugin)
50  Q_PLUGIN_METADATA(IID VER_MODULE_NAME_STR)
51 
52 public:
53 
54  Module();
55 
56  virtual ~Module();
57 
58  virtual bool init(const QString & args);
59 
60  virtual void done();
61 
62  virtual bool isReady() const { return mReady; }
63 
64 
65 private slots:
66 
68  void textChanged(QString const &);
69 
71  void generateClicked();
72 
74  void copyClicked();
75 
76 
77 private: // Members
78 
79  static int const DefaultPasswordLength;
80 
82  bool mReady;
83 
85  eVaf::PswGen::iGenerator * mGenerator;
86 
88  eVaf::PswGen::iStorage * mStorage;
89 
91  QLineEdit * wMasterPassword;
92  QLineEdit * wName;
93  QLineEdit * wSuffix;
94  QSpinBox * wLength;
95  QCheckBox * wAlNum;
96  QLineEdit * wPassword;
97  QPushButton * wGenerate;
98  QPushButton * wCopy;
99 
100 };
101 
102 } // namespace eVaf::PswGen::GUI
103 } // namespace eVaf::PswGen
104 } // namespace eVaf
105 
106 #endif // gui.h
Version information for eVaf modules.
Graphical User Interface for the PswGen application.
Definition: gui.h:46
#define VER_MODULE_NAME_STR
Module/library name (shall end with \0)
Definition: version.h:38
Global eVaf namespace.
Definition: engine.h:37
Password generator interface.
Definition: igenerator.h:34
Common interface for all the eVaf modules.
Definition: iplugin.h:38
Password storage interface.
Definition: istorage.h:117