]>
vaikene.ee Git - evaf/blob - src/apps/PswGen/GUI/gui.h
359034289e53f39e5f2e3a7bf62d6fc8ab1c37a2
2 * @file PswGen/GUI/gui.h
3 * @brief GUI for the PswGen application
6 * Copyright (c) 2011 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
23 #include <Plugins/iPlugin>
39 * Graphical User Interface for the PswGen application.
41 * This module adds a GUI window to the pswGen application using the SdiWindow module.
43 class Module
: public Plugins::iPlugin
53 virtual bool init(const QString
& args
);
57 virtual bool isReady() const { return mReady
; }
62 /// Master password or name changed
63 void textChanged(QString
const &);
65 /// 'Generate' button clicked
66 void generateClicked();
68 /// 'Copy' button clicked
74 static int const DefaultPasswordLength
;
76 /// Flag indicating that the module is ready
79 /// The iGenerator interface
80 eVaf::PswGen::iGenerator
* mGenerator
;
82 /// The iStorage interface (can be null)
83 eVaf::PswGen::iStorage
* mStorage
;
85 /// Widgets on the screen
87 QLineEdit
* wMasterPassword
;
89 QLineEdit
* wPassword
;
90 QPushButton
* wGenerate
;
95 } // namespace eVaf::PswGen::GUI
96 } // namespace eVaf::PswGen