X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fauthenticator.h;h=ebea4c94eafaddfe64e78e1dbc49bb061b4b665e;hp=df5d198cfed1491c53704729372ab3757db9d0b3;hb=c194ed5fb3d15e14b9364f9796d3521910dc72fe;hpb=68878dc8366f2f4a0afe132847aad9a51a80cdbf;ds=sidebyside diff --git a/src/core/authenticator.h b/src/core/authenticator.h index df5d198c..ebea4c94 100644 --- a/src/core/authenticator.h +++ b/src/core/authenticator.h @@ -21,6 +21,7 @@ #pragma once #include +#include #include #include #include @@ -81,13 +82,17 @@ public slots: * \param settings Hostname, port, username, password, ... * \return True if and only if the authenticator provider was initialized successfully. */ - virtual bool setup(const QVariantMap &settings = QVariantMap()) = 0; + virtual bool setup(const QVariantMap &settings = QVariantMap(), + const QProcessEnvironment &environment = {}, + bool loadFromEnvironment = false) = 0; //! Initialize the authenticator provider /** \param settings Hostname, port, username, password, ... * \return the State the authenticator backend is now in (see authenticator::State) */ - virtual State init(const QVariantMap &settings = QVariantMap()) = 0; + virtual State init(const QVariantMap &settings = QVariantMap(), + const QProcessEnvironment &environment = {}, + bool loadFromEnvironment = false) = 0; //! Validate a username with a given password. /** \param user The username to validate