1 // Copyright 2005-2019 The Mumble Developers. All rights reserved. 2 // Use of this source code is governed by a BSD-style license 3 // that can be found in the LICENSE file at the root of the 4 // Mumble source tree or at <https://www.mumble.info/LICENSE>. 5 6 #ifndef MUMBLE_MUMBLE_NETWORKCONFIG_H_ 7 #define MUMBLE_MUMBLE_NETWORKCONFIG_H_ 8 9 class QNetworkReply; 10 class QNetworkRequest; 11 class QUrl; 12 13 #include "ConfigDialog.h" 14 #include "ui_NetworkConfig.h" 15 16 class NetworkConfig : public ConfigWidget, Ui::NetworkConfig { 17 private: 18 Q_OBJECT 19 Q_DISABLE_COPY(NetworkConfig) 20 public: 21 NetworkConfig(Settings &st); 22 virtual QString title() const Q_DECL_OVERRIDE; 23 virtual QIcon icon() const Q_DECL_OVERRIDE; 24 static void SetupProxy(); 25 static bool TcpModeEnabled(); 26 public slots: 27 void accept() const Q_DECL_OVERRIDE; 28 void save() const Q_DECL_OVERRIDE; 29 void load(const Settings &r) Q_DECL_OVERRIDE; 30 31 void on_qcbType_currentIndexChanged(int v); 32 }; 33 34 namespace Network { 35 void prepareRequest(QNetworkRequest &); 36 QNetworkReply *get(const QUrl &); 37 } 38 39 #endif 40