X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fauthenticator.h;h=e0d4370d27cb59f65ab9f02575f1bb77cca18365;hp=8029631f402dc56befa7ddf20cfb418fe8c81e78;hb=d6f3eedebc7f9619b04dffc5f48faa792950fdcd;hpb=931e5280abc6738f94ac052af2a7e31e82487cf1 diff --git a/src/core/authenticator.h b/src/core/authenticator.h index 8029631f..e0d4370d 100644 --- a/src/core/authenticator.h +++ b/src/core/authenticator.h @@ -26,23 +26,23 @@ #include "types.h" class Authenticator : public QObject { - - Q_OBJECT - + + Q_OBJECT + public: Authenticator(QObject *parent = 0); virtual ~Authenticator() {}; enum State { - IsReady, // ready to go - NeedsSetup, // need basic setup (ask the user for input) - NotAvailable // remove the authenticator backend from the list of avaliable authenticators. + IsReady, // ready to go + NeedsSetup, // need basic setup (ask the user for input) + NotAvailable // remove the authenticator backend from the list of avaliable authenticators. }; public slots: - // General - + // General + //! Check if the authenticator type is available. /** An authenticator subclass should return true if it can be successfully used, i.e. if all * prerequisites are in place. @@ -53,7 +53,7 @@ public slots: //! Returns the display name of the authenticator backend /** \return A string that can be used by the client to name the authenticator backend */ virtual QString displayName() const = 0; - + //! Returns a description of this authenticator backend /** \return A string that can be displayed by the client to describe the authenticator */ virtual QString description() const = 0; @@ -84,9 +84,9 @@ public slots: * \return A valid UserId if the password matches the username; 0 else */ virtual UserId validateUser(const QString &user, const QString &password) = 0; - + private: - + }; - -#endif \ No newline at end of file + +#endif