eVaf
igenerator.h
Go to the documentation of this file.
1 
20 #ifndef __PSWGEN_GENERATOR_IGENERATOR_H
21 # define __PSWGEN_GENERATOR_IGENERATOR_H
22 
23 #include <QObject>
24 #include <QString>
25 
26 namespace eVaf {
27 namespace PswGen {
28 
34 struct iGenerator
35 {
36 
40  enum {
41  ALPHANUMERIC = 0x01
42  };
43 
61  virtual QString generatePassword(QString const & name, QString const & masterPassword, int length, uint flags = 0) const = 0;
62 
70  virtual int maxLength() const = 0;
71 
72 };
73 
74 } // namespace eVaf::PswGen
75 } // namespace eVaf
76 
77 Q_DECLARE_INTERFACE(eVaf::PswGen::iGenerator, "eVaf.PswGen.iGenerator/1.0")
78 
79 #endif // igenerator.h
Generated password contains only alphanumeric characters.
Definition: igenerator.h:41
virtual QString generatePassword(QString const &name, QString const &masterPassword, int length, uint flags=0) const =0
Generates a strong password.
Global eVaf namespace.
Definition: engine.h:37
Password generator interface.
Definition: igenerator.h:34
virtual int maxLength() const =0
Returns the maximum length of generated passwords.