GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
SettingsNetwork.h
1 
29 #ifndef GPGFRONTEND_SETTINGSNETWORK_H
30 #define GPGFRONTEND_SETTINGSNETWORK_H
31 
32 #include "ui/GpgFrontendUI.h"
33 
34 class Ui_NetworkSettings;
35 
36 namespace GpgFrontend::UI {
37 class NetworkTab : public QWidget {
38  Q_OBJECT
39 
40  public:
46  explicit NetworkTab(QWidget* parent = nullptr);
47 
52  void SetSettings();
53 
58  void ApplySettings();
59 
60  private slots:
61 
66  void slot_test_proxy_connection_result();
67 
68  private:
69  std::shared_ptr<Ui_NetworkSettings> ui_;
70  QNetworkProxy::ProxyType proxy_type_ = QNetworkProxy::HttpProxy;
71 
76  void apply_proxy_settings();
77 
83  void switch_ui_enabled(bool enabled);
84 
90  void switch_ui_proxy_type(const QString& type_text);
91 };
92 } // namespace GpgFrontend::UI
93 
94 #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