]>
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
23 #include <Plugins/iPlugin>
36 * Command line interface for the PswGen application.
38 * This module adds command line interface to the PswGen application.
43 * Command line interface for the PswGen application.
45 class Module
: public Plugins::iPlugin
48 Q_INTERFACES(eVaf::Plugins::iPlugin
)
56 virtual bool init(QString
const & args
);
60 virtual bool isReady() const { return mReady
; }
62 virtual bool event(QEvent
*);
67 static int const DefaultPasswordLength
;
69 /// Flag indicating that the module is ready
72 /// The iGenerator interface
73 eVaf::PswGen::iGenerator
* mGenerator
;
75 /// The iStorage interface (can be null)
76 eVaf::PswGen::iStorage
* mStorage
;
84 QString
readPassword();
86 void generatePassword();
90 } // namespace eVaf::PswGen::CLI
91 } // namespace eVaf::PswGen