GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
SettingsNetwork.h
1 
29 #pragma once
30 
31 #include <QtNetwork>
32 
33 #include "ui/GpgFrontendUI.h"
34 
35 class Ui_NetworkSettings;
36 
37 namespace GpgFrontend::UI {
38 class NetworkTab : public QWidget {
39  Q_OBJECT
40 
41  public:
47  explicit NetworkTab(QWidget* parent = nullptr);
48 
53  void SetSettings();
54 
59  void ApplySettings();
60 
61  private slots:
62 
67  void slot_test_proxy_connection_result();
68 
69  private:
70  std::shared_ptr<Ui_NetworkSettings> ui_;
71  QNetworkProxy::ProxyType proxy_type_ = QNetworkProxy::HttpProxy;
72 
77  void apply_proxy_settings();
78 
84  void switch_ui_enabled(bool enabled);
85 
91  void switch_ui_proxy_type(const QString& type_text);
92 };
93 } // namespace GpgFrontend::UI
Definition: SettingsNetwork.h:38
void switch_ui_proxy_type(const QString &type_text)
Definition: SettingsNetwork.cpp:256
NetworkTab(QWidget *parent=nullptr)
Construct a new Network Tab object.
Definition: SettingsNetwork.cpp:36
void SetSettings()
Set the Settings object.
Definition: SettingsNetwork.cpp:103
void switch_ui_enabled(bool enabled)
Definition: SettingsNetwork.cpp:246
Definition: FileReadTask.cpp:31