Huggle
proxy.hpp
1 //This program is free software: you can redistribute it and/or modify
2 //it under the terms of the GNU General Public License as published by
3 //the Free Software Foundation, either version 3 of the License, or
4 //(at your option) any later version.
5 
6 //This program is distributed in the hope that it will be useful,
7 //but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 //GNU General Public License for more details.
10 
11 #ifndef PROXY_H
12 #define PROXY_H
13 
14 #include <huggle_core/definitions.hpp>
15 
16 #include "hw.hpp"
17 
18 namespace Ui
19 {
20  class Proxy;
21 }
22 
23 namespace Huggle
24 {
25  //! Proxy
26  class Proxy : public HW
27  {
28  Q_OBJECT
29  public:
30  static void SetProxy(int type, QString host, unsigned int port, QString name, QString pass);
31 
32  explicit Proxy(QWidget *parent = nullptr);
33  ~Proxy();
34 
35  private slots:
36  void on_buttonBox_accepted();
37  void on_buttonBox_rejected();
38  void on_comboBox_currentIndexChanged(int index);
39 
40  private:
41  Ui::Proxy *ui;
42  };
43 }
44 
45 #endif // PROXY_H
Proxy.
Definition: proxy.hpp:26