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