* @brief Interface for password generator modules
* @author Enar Vaikene
*
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
#ifndef __PSWGEN_GENERATOR_IGENERATOR_H
# define __PSWGEN_GENERATOR_IGENERATOR_H
-#include "lib.h"
-
#include <QObject>
#include <QString>
*
* This interface is used to generate strong passwords.
*/
-class PSWGEN_GENERATOR_EXPORT iGenerator : public QObject
+struct iGenerator
{
- Q_OBJECT
-
-public:
-
- /// Interface constructor
- iGenerator() : QObject() {}
-
- /// Empty virtual destructor
- virtual ~iGenerator() {}
/**
* Flags for the password generator.
ALPHANUMERIC = 0x01 ///< Generated password contains only alphanumeric characters
};
+ /**
+ * Empty virtual destructor
+ */
+ virtual ~iGenerator() {}
+
/**
* Generates a strong password
* @param name Name of the password
} // namespace eVaf::PswGen
} // namespace eVaf
+Q_DECLARE_INTERFACE(eVaf::PswGen::iGenerator, "eVaf.PswGen.iGenerator/1.0")
+
#endif // igenerator.h