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
34class Ui_NetworkSettings;
35
36namespace GpgFrontend::UI {
37class 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
Definition: SettingsNetwork.h:37
void switch_ui_proxy_type(const QString &type_text)
Definition: SettingsNetwork.cpp:317
NetworkTab(QWidget *parent=nullptr)
Construct a new Network Tab object.
Definition: SettingsNetwork.cpp:35
void SetSettings()
Set the Settings object.
Definition: SettingsNetwork.cpp:72
void switch_ui_enabled(bool enabled)
Definition: SettingsNetwork.cpp:307
Definition: VerifyDetailsDialog.cpp:33