X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fapps%2FPswGen%2FGUI%2Fgui.h;h=e672201a1652c2e149d10dd12815a37aecb1b82f;hb=HEAD;hp=e9607e4ee8a142e2d4259c5a2cfe5d604f21d8a0;hpb=473db85d79d6d89b7b8fe617346efa3e94c66cd9;p=evaf
diff --git a/src/apps/PswGen/GUI/gui.h b/src/apps/PswGen/GUI/gui.h
index e9607e4..e672201 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-2019 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:
@@ -70,16 +76,23 @@ private slots:
private: // Members
+ static int const DefaultPasswordLength;
+
/// Flag indicating that the module is ready
bool mReady;
/// 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;