]>
vaikene.ee Git - evaf/blob - src/apps/PswGen/GUI/gui.h
f4abd248b0399d02480c454b5dc1422f5d1222fb
2 * @file PswGen/GUI/gui.h
3 * @brief GUI for the PswGen application
6 * Copyright (c) 2011-2012 Enar Vaikene
8 * This file is part of the eVaf C++ cross-platform application development framework.
10 * This file can be used under the terms of the GNU General Public License
11 * version 3.0 as published by the Free Software Foundation and appearing in
12 * the file LICENSE included in the packaging of this file. Please review the
13 * the following information to ensure the GNU General Public License version
14 * 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
16 * Alternatively, this file may be used in accordance with the Commercial License
17 * Agreement provided with the Software.
20 #ifndef __PSWGEN_GUI_GUI_H
21 #define __PSWGEN_GUI_GUI_H
25 #include <Plugins/iPlugin>
42 * Graphical User Interface for the PswGen application.
44 * This module adds a GUI window to the pswGen application using the SdiWindow module.
46 class Module
: public Plugins::iPlugin
49 Q_INTERFACES(eVaf::Plugins::iPlugin
)
50 Q_PLUGIN_METADATA(IID VER_MODULE_NAME_STR
)
58 virtual bool init(const QString
& args
);
62 virtual bool isReady() const { return mReady
; }
67 /// Master password or name changed
68 void textChanged(QString
const &);
70 /// 'Generate' button clicked
71 void generateClicked();
73 /// 'Copy' button clicked
79 static int const DefaultPasswordLength
;
81 /// Flag indicating that the module is ready
84 /// The iGenerator interface
85 eVaf::PswGen::iGenerator
* mGenerator
;
87 /// The iStorage interface (can be null)
88 eVaf::PswGen::iStorage
* mStorage
;
90 /// Widgets on the screen
91 QLineEdit
* wMasterPassword
;
96 QLineEdit
* wPassword
;
97 QPushButton
* wGenerate
;
102 } // namespace eVaf::PswGen::GUI
103 } // namespace eVaf::PswGen