root/trunk/qt4-gui/src/settings/network.h

Revision 6091, 2.8 kB (checked in by flynd, 9 months ago)

Updated variable and function names to conform better to code standard. Also some minor coding style and indentation adjustments.

Line 
1/*
2 * This file is part of Licq, an instant messaging client for UNIX.
3 * Copyright (C) 2007 Licq developers
4 *
5 * Licq is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * Licq is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with Licq; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 */
19
20#ifndef SETTINGS_NETWORK_H
21#define SETTINGS_NETWORK_H
22
23#include <config.h>
24
25#include <QObject>
26
27class QCheckBox;
28class QComboBox;
29class QGridLayout;
30class QGroupBox;
31class QLabel;
32class QLineEdit;
33class QSpinBox;
34class QVBoxLayout;
35class QWidget;
36
37namespace LicqQtGui
38{
39class SettingsDlg;
40
41namespace Settings
42{
43class Network : public QObject
44{
45  Q_OBJECT
46
47public:
48  Network(SettingsDlg* parent);
49
50  void load();
51  void apply();
52
53private slots:
54  void useProxyToggled(bool useProxy);
55  void useFirewallToggled(bool useFirewall);
56  void usePortRangeToggled(bool usePortRange);
57
58private:
59  /**
60   * Setup the network page.
61   *
62   * @return a widget with the network settings
63   */
64  QWidget* createPageNetwork(QWidget* parent);
65
66  /**
67   * Setup the ICQ configuration page.
68   *
69   * @return a widget with the icq network settings
70   */
71  QWidget* createPageIcq(QWidget* parent);
72
73  // Widgets for network settings
74  QVBoxLayout* myPageNetworkLayout;
75  QGroupBox* myFirewallBox;
76  QGroupBox* myProxyBox;
77  QGridLayout* myFirewallLayout;
78  QGridLayout* myProxyLayout;
79  QCheckBox* myFirewallCheck;
80  QCheckBox* myTcpEnabledCheck;
81  QLabel* myPortsInLabel;
82  QLabel* myPortsIn2Label;
83  QSpinBox* myPortLowSpin;
84  QSpinBox* myPortHighSpin;
85  QLabel* myProxyTypeLabel;
86  QLabel* myProxyHostLabel;
87  QLabel* myProxyPortLabel;
88  QLabel* myProxyLoginLabel;
89  QLabel* myProxyPasswdLabel;
90  QCheckBox* myProxyEnabledCheck;
91  QCheckBox* myProxyAuthEnabledCheck;
92  QCheckBox* myReconnectAfterUinClashCheck;
93  QComboBox* myProxyTypeCombo;
94  QLineEdit* myProxyHostEdit;
95  QLineEdit* myProxyLoginEdit;
96  QLineEdit* myProxyPasswdEdit;
97  QSpinBox* myProxyPortSpin;
98
99  // Widgets for icq network settings
100  QVBoxLayout* myPageIcqLayout;
101  QGroupBox* myIcqServerBox;
102  QGroupBox* myIcqConnectionBox;
103  QGridLayout* myIcqServerLayout;
104  QVBoxLayout* myIcqConnectionLayout;
105  QLabel* myIcqServerLabel;
106  QLabel* myIcqServerPortLabel;
107  QLineEdit* myIcqServerEdit;
108  QSpinBox* myIcqServerPortSpin;
109};
110
111} // namespace Settings
112} // namespace LicqQtGui
113
114#endif
Note: See TracBrowser for help on using the browser.