Diffstat (limited to 'noncore/settings/networksettings/ppp/connect.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/connect.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/noncore/settings/networksettings/ppp/connect.h b/noncore/settings/networksettings/ppp/connect.h index 3127236..e7ae5e0 100644 --- a/noncore/settings/networksettings/ppp/connect.h +++ b/noncore/settings/networksettings/ppp/connect.h | |||
@@ -27,35 +27,35 @@ | |||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #ifndef _CONNECT_H_ | 29 | #ifndef _CONNECT_H_ |
30 | #define _CONNECT_H_ | 30 | #define _CONNECT_H_ |
31 | 31 | ||
32 | #include <qtimer.h> | 32 | #include <qtimer.h> |
33 | #include <qpushbutton.h> | 33 | #include <qpushbutton.h> |
34 | #include <qlabel.h> | 34 | #include <qlabel.h> |
35 | #include <qevent.h> | 35 | #include <qevent.h> |
36 | 36 | ||
37 | #include "kpppconfig.h" | 37 | #include "kpppconfig.h" |
38 | #include "pwentry.h" | 38 | #include "pwentry.h" |
39 | //#include "docking.h" | 39 | |
40 | //#include "loginterm.h" | ||
41 | 40 | ||
42 | #define MAXLOOPNEST (MAX_SCRIPT_ENTRIES/2) | 41 | #define MAXLOOPNEST (MAX_SCRIPT_ENTRIES/2) |
43 | 42 | ||
44 | class PPPStats; | 43 | class InterfacePPP; |
44 | class PPPData; | ||
45 | 45 | ||
46 | class ConnectWidget : public QWidget { | 46 | class ConnectWidget : public QWidget { |
47 | Q_OBJECT | 47 | Q_OBJECT |
48 | public: | 48 | public: |
49 | ConnectWidget(QWidget *parent, const char *name); | 49 | ConnectWidget(InterfacePPP*, QWidget *parent, const char *name); |
50 | ~ConnectWidget(); | 50 | ~ConnectWidget(); |
51 | 51 | ||
52 | public: | 52 | public: |
53 | void set_con_speed_string(); | 53 | void set_con_speed_string(); |
54 | void setMsg(const QString &); | 54 | void setMsg(const QString &); |
55 | void pppdDied(); | 55 | void pppdDied(); |
56 | 56 | ||
57 | protected: | 57 | protected: |
58 | void timerEvent(QTimerEvent *); | 58 | void timerEvent(QTimerEvent *); |
59 | void closeEvent( QCloseEvent *e ); | 59 | void closeEvent( QCloseEvent *e ); |
60 | 60 | ||
61 | private slots: | 61 | private slots: |
@@ -127,26 +127,26 @@ private: | |||
127 | QTimer *pausetimer; | 127 | QTimer *pausetimer; |
128 | QTimer *if_timer; | 128 | QTimer *if_timer; |
129 | QTimer *if_timeout_timer; | 129 | QTimer *if_timeout_timer; |
130 | 130 | ||
131 | QLabel *messg; | 131 | QLabel *messg; |
132 | QPushButton *cancel; | 132 | QPushButton *cancel; |
133 | 133 | ||
134 | bool firstrunID; | 134 | bool firstrunID; |
135 | bool firstrunPW; | 135 | bool firstrunPW; |
136 | 136 | ||
137 | unsigned int dialnumber; // the current number to dial | 137 | unsigned int dialnumber; // the current number to dial |
138 | 138 | ||
139 | // PPPStats *stats; | 139 | InterfacePPP *_ifaceppp; |
140 | }; | 140 | }; |
141 | 141 | ||
142 | 142 | ||
143 | // non-member function to kill&wait on the pppd child process | 143 | // non-member function to kill&wait on the pppd child process |
144 | extern void killppp(); | 144 | extern void killppp(PPPData*); |
145 | void adddns(); | 145 | void adddns(InterfacePPP*); |
146 | void addpeerdns(); | 146 | void addpeerdns(InterfacePPP*); |
147 | void removedns(); | 147 | void removedns(InterfacePPP*); |
148 | void add_domain(const QString & newdomain); | 148 | void add_domain(const QString & newdomain, InterfacePPP*); |
149 | void auto_hostname(); | 149 | void auto_hostname(InterfacePPP*); |
150 | 150 | ||
151 | #endif | 151 | #endif |
152 | 152 | ||