Diffstat (limited to 'noncore/settings/networksettings/ppp/kpppwidget.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/kpppwidget.h | 157 |
1 files changed, 157 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/ppp/kpppwidget.h b/noncore/settings/networksettings/ppp/kpppwidget.h new file mode 100644 index 0000000..266d829 --- a/dev/null +++ b/noncore/settings/networksettings/ppp/kpppwidget.h | |||
@@ -0,0 +1,157 @@ | |||
1 | /* | ||
2 | * | ||
3 | * kPPP: A pppd front end for the KDE project | ||
4 | * | ||
5 | * $Id$ | ||
6 | * | ||
7 | * Copyright (C) 1997 Bernd Johannes Wuebben | ||
8 | * wuebben@math.cornell.edu | ||
9 | * | ||
10 | * Copyright (C) 1998-2002 Harri Porten <porten@kde.org> | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU Library General Public | ||
14 | * License as published by the Free Software Foundation; either | ||
15 | * version 2 of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This program is distributed in the hope that it will be useful, | ||
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
20 | * Library General Public License for more details. | ||
21 | * | ||
22 | * You should have received a copy of the GNU Library General Public | ||
23 | * License along with this program; if not, write to the Free | ||
24 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
25 | */ | ||
26 | |||
27 | #ifndef __KPPPWIDGET_H__ | ||
28 | #define __KPPPWIDGET_H__ | ||
29 | |||
30 | #include <qstring.h> | ||
31 | |||
32 | //#include "accounting.h" | ||
33 | #include "conwindow.h" | ||
34 | #include "accounts.h" | ||
35 | #include "connect.h" | ||
36 | #include "debug.h" | ||
37 | //#include "pppstatdlg.h" | ||
38 | |||
39 | //class GraphSetup; | ||
40 | //class AboutWidget; | ||
41 | //class PPPStats; | ||
42 | class QDialog; | ||
43 | class QPushButton; | ||
44 | |||
45 | /* class SignalEvent : public QEvent { */ | ||
46 | /* public: */ | ||
47 | /* SignalEvent(int s) : QEvent(User), sig(s) { } */ | ||
48 | /* int sigType() const { return sig; } */ | ||
49 | /* private: */ | ||
50 | /* int sig; */ | ||
51 | /* }; */ | ||
52 | |||
53 | |||
54 | class KPPPWidget : public QDialog { | ||
55 | Q_OBJECT | ||
56 | public: | ||
57 | |||
58 | KPPPWidget( QWidget *parent=0, const char *name=0, bool modal = false, WFlags fl = 0 ); | ||
59 | ~KPPPWidget(); | ||
60 | |||
61 | void setPW_Edit(const QString &); | ||
62 | // virtual bool eventFilter(QObject *, QEvent *); | ||
63 | |||
64 | void setQuitOnDisconnect (bool b); | ||
65 | // bool quitOnDisconnect () {return m_bQuitOnDisconnect;}; | ||
66 | |||
67 | private slots: | ||
68 | void newdefaultaccount(int); | ||
69 | // void expandbutton(); | ||
70 | void beginConnect(); | ||
71 | void quitbutton(); | ||
72 | // void helpbutton(); | ||
73 | // void setup(); | ||
74 | // void rulesetLoadError(); | ||
75 | void usernameChanged(const QString &); | ||
76 | void passwordChanged(const QString &); | ||
77 | void enterPressedInID(); | ||
78 | void enterPressedInPW(); | ||
79 | void saveMyself(); | ||
80 | void shutDown(); | ||
81 | |||
82 | /* protected slots: */ | ||
83 | /* virtual void accept(); */ | ||
84 | /* virtual void reject(); */ | ||
85 | |||
86 | public slots: | ||
87 | // void resetaccounts(); | ||
88 | /* void resetCosts(const QString &); */ | ||
89 | /* void resetVolume(const QString &); */ | ||
90 | void disconnect(); | ||
91 | void log_window_toggled(bool on); | ||
92 | /* void startAccounting(); */ | ||
93 | /* void stopAccounting(); */ | ||
94 | /* void showStats(); */ | ||
95 | |||
96 | signals: | ||
97 | void begin_connect(); | ||
98 | void cmdl_start(); | ||
99 | |||
100 | public: | ||
101 | QCheckBox *log; | ||
102 | bool connected; | ||
103 | DebugWidget *debugwindow; | ||
104 | QString con_speed; | ||
105 | // ConnectWidget *con; | ||
106 | // ConWindow *con_win; | ||
107 | // PPPStatsDlg *statdlg; | ||
108 | // AccountingBase *acct; | ||
109 | QPushButton *quit_b; | ||
110 | //PPPStats *stats; | ||
111 | |||
112 | private: | ||
113 | // void prepareSetupDialog(); | ||
114 | void interruptConnection(); | ||
115 | void sigChld(); | ||
116 | void sigPPPDDied(); | ||
117 | QString encodeWord(const QString &s); | ||
118 | void showNews (); | ||
119 | |||
120 | QString ruleset_load_errmsg; | ||
121 | |||
122 | // QPushButton *help_b; | ||
123 | QPushButton *setup_b; | ||
124 | QFrame *fline; | ||
125 | QFrame *fline1; | ||
126 | QPushButton *connect_b; | ||
127 | QComboBox *connectto_c; | ||
128 | QLabel *ID_Label; | ||
129 | QLabel *PW_Label; | ||
130 | QLineEdit *ID_Edit; | ||
131 | QLineEdit *PW_Edit; | ||
132 | QLabel *label1; | ||
133 | QLabel *label2; | ||
134 | QLabel *label3; | ||
135 | QLabel *label4; | ||
136 | QLabel *label5; | ||
137 | QLabel *label6; | ||
138 | QLabel *radio_label; | ||
139 | |||
140 | |||
141 | // QTabWidget *tabWindow; | ||
142 | // AccountWidget *accounts; | ||
143 | // GeneralWidget *general; | ||
144 | // ModemWidget *modem1; | ||
145 | // ModemWidget2 *modem2; | ||
146 | // GraphSetup *graph; | ||
147 | // AboutWidget *about; | ||
148 | |||
149 | |||
150 | /* QString m_strCmdlAccount; */ | ||
151 | /* bool m_bQuitOnDisconnect; */ | ||
152 | /* bool m_bCmdlAccount; */ | ||
153 | }; | ||
154 | |||
155 | |||
156 | #endif | ||
157 | |||