X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fauthenticator.h;h=ebea4c94eafaddfe64e78e1dbc49bb061b4b665e;hp=55930d9a547f40125104d5b02f2de0e25766dd29;hb=c194ed5fb3d15e14b9364f9796d3521910dc72fe;hpb=cfbd4daee17dbb3c4052d938bf33edd08711d728 diff --git a/src/core/authenticator.h b/src/core/authenticator.h index 55930d9a..ebea4c94 100644 --- a/src/core/authenticator.h +++ b/src/core/authenticator.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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