Files
chatterino2/src/providers/NetworkConfigurationProvider.hpp
2025-12-16 10:06:15 +00:00

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