]>
vaikene.ee Git - evaf/blob - src/apps/PswGen/CLI/cli.h
2 * @file PswGen/CLI/cli.h
3 * @brief Command line interface 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_CLI_CLI_H
21 # define __PSWGEN_CLI_CLI_H
25 #include <Plugins/iPlugin>
38 * Command line interface for the PswGen application.
40 * This module adds command line interface to the PswGen application.
45 * Command line interface for the PswGen application.
47 class Module
: public Plugins::iPlugin
50 Q_INTERFACES(eVaf::Plugins::iPlugin
)
51 Q_PLUGIN_METADATA(IID VER_MODULE_NAME_STR
)
59 virtual bool init(QString
const & args
);
63 virtual bool isReady() const { return mReady
; }
65 virtual bool event(QEvent
*);
70 static int const DefaultPasswordLength
;
72 /// Flag indicating that the module is ready
75 /// The iGenerator interface
76 eVaf::PswGen::iGenerator
* mGenerator
;
78 /// The iStorage interface (can be null)
79 eVaf::PswGen::iStorage
* mStorage
;
87 QString
readPassword();
89 void generatePassword();
93 } // namespace eVaf::PswGen::CLI
94 } // namespace eVaf::PswGen