SettingsNetwork.h
#ifndef GPGFRONTEND_SETTINGSNETWORK_H
#define GPGFRONTEND_SETTINGSNETWORK_H
#include "ui/GpgFrontendUI.h"
class Ui_NetworkSettings;
namespace GpgFrontend::UI {
class NetworkTab : public QWidget {
Q_OBJECT
public:
explicit NetworkTab(QWidget* parent = nullptr);
void SetSettings();
void ApplySettings();
private slots:
void slot_test_proxy_connection_result();
private:
std::shared_ptr<Ui_NetworkSettings> ui_;
QNetworkProxy::ProxyType proxy_type_ = QNetworkProxy::HttpProxy;
void apply_proxy_settings();
void switch_ui_enabled(bool enabled);
void switch_ui_proxy_type(const QString& type_text);
};
} // namespace GpgFrontend::UI
#endif // GPGFRONTEND_SETTINGSNETWORK_H
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::UI::NetworkTab
Definition: SettingsNetwork.h:37
GpgFrontend::SingletonFunctionObject< GlobalSettingStation >::GetInstance
static GlobalSettingStation & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
GpgFrontend::UI::NetworkTab::switch_ui_proxy_type
void switch_ui_proxy_type(const QString &type_text)
Definition: SettingsNetwork.cpp:317
GpgFrontend::GlobalSettingStation::GetUISettings
libconfig::Setting & GetUISettings() noexcept
Definition: GlobalSettingStation.h:63
GpgFrontend::UI::NetworkTab::SetSettings
void SetSettings()
Set the Settings object.
Definition: SettingsNetwork.cpp:72
GpgFrontend::UI::NetworkTab::NetworkTab
NetworkTab(QWidget *parent=nullptr)
Construct a new Network Tab object.
Definition: SettingsNetwork.cpp:35
GpgFrontend::UI::NetworkTab::switch_ui_enabled
void switch_ui_enabled(bool enabled)
Definition: SettingsNetwork.cpp:307
GpgFrontend::UI::ProxyConnectionTestThread
Definition: ProxyConnectionTestThread.h:42
ProxyConnectionTestThread
Definition: ProxyConnectionTestThread.h:30