7d4ea79376
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
25 lines
524 B
C++
25 lines
524 B
C++
#pragma once
|
|
|
|
#include <QNetworkProxy>
|
|
|
|
namespace chatterino {
|
|
|
|
class Env;
|
|
|
|
/** This class manipulates the global network configuration (e.g. proxies). */
|
|
class NetworkConfigurationProvider
|
|
{
|
|
public:
|
|
/** This class should never be instantiated. */
|
|
NetworkConfigurationProvider() = delete;
|
|
|
|
/**
|
|
* Applies the configuration requested from the environment variables.
|
|
*
|
|
* Currently a proxy is applied if configured.
|
|
*/
|
|
static void applyFromEnv(const Env &env);
|
|
};
|
|
|
|
} // namespace chatterino
|