X-Git-Url: https://vaikene.ee/gitweb/highlight.css?a=blobdiff_plain;f=src%2Fapps%2FPswGen%2FGUI%2Fgui.h;h=f4abd248b0399d02480c454b5dc1422f5d1222fb;hb=a81a943bee20df3c7eb34bafb3e3fe878facfe4e;hp=6f04019a849c0bc8e4c87946a120e21f91c6d5ee;hpb=3352f7acc232104985807b9f470cb12bcb2b47c2;p=evaf diff --git a/src/apps/PswGen/GUI/gui.h b/src/apps/PswGen/GUI/gui.h index 6f04019..f4abd24 100644 --- a/src/apps/PswGen/GUI/gui.h +++ b/src/apps/PswGen/GUI/gui.h @@ -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. * @@ -20,6 +20,8 @@ #ifndef __PSWGEN_GUI_GUI_H #define __PSWGEN_GUI_GUI_H +#include "version.h" + #include #include @@ -28,10 +30,12 @@ class QLineEdit; class QSpinBox; class QPushButton; +class QCheckBox; namespace eVaf { namespace PswGen { - class iGenerator; + struct iGenerator; + struct iStorage; namespace GUI { /** @@ -42,6 +46,8 @@ namespace GUI { class Module : public Plugins::iPlugin { Q_OBJECT + Q_INTERFACES(eVaf::Plugins::iPlugin) + Q_PLUGIN_METADATA(IID VER_MODULE_NAME_STR) public: @@ -78,10 +84,15 @@ private: // Members /// The iGenerator interface eVaf::PswGen::iGenerator * mGenerator; + /// The iStorage interface (can be null) + 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;