Diffstat (limited to 'noncore/settings/networksettings/ppp/kpppwidget.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/kpppwidget.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/noncore/settings/networksettings/ppp/kpppwidget.h b/noncore/settings/networksettings/ppp/kpppwidget.h index d7e74af..b958862 100644 --- a/noncore/settings/networksettings/ppp/kpppwidget.h +++ b/noncore/settings/networksettings/ppp/kpppwidget.h | |||
@@ -25,31 +25,32 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | #ifndef __KPPPWIDGET_H__ | 27 | #ifndef __KPPPWIDGET_H__ |
28 | #define __KPPPWIDGET_H__ | 28 | #define __KPPPWIDGET_H__ |
29 | 29 | ||
30 | #include <qstring.h> | 30 | #include <qstring.h> |
31 | 31 | ||
32 | #include "conwindow.h" | 32 | #include "conwindow.h" |
33 | #include "accounts.h" | 33 | #include "accounts.h" |
34 | #include "connect.h" | 34 | #include "connect.h" |
35 | 35 | ||
36 | class QPushButton; | 36 | class QPushButton; |
37 | 37 | class Interface; | |
38 | class PPPData; | ||
38 | 39 | ||
39 | class KPPPWidget : public QDialog { | 40 | class KPPPWidget : public QDialog { |
40 | Q_OBJECT | 41 | Q_OBJECT |
41 | public: | 42 | public: |
42 | 43 | ||
43 | KPPPWidget( QWidget *parent=0, const char *name=0, bool modal = false, WFlags fl = 0 ); | 44 | KPPPWidget(PPPData*, Interface*, QWidget *parent=0, const char *name=0, bool modal = false, WFlags fl = 0 ); |
44 | ~KPPPWidget(); | 45 | ~KPPPWidget(); |
45 | 46 | ||
46 | void setPW_Edit(const QString &); | 47 | void setPW_Edit(const QString &); |
47 | 48 | ||
48 | 49 | ||
49 | private slots: | 50 | private slots: |
50 | void newdefaultaccount(int); | 51 | void newdefaultaccount(int); |
51 | void beginConnect(); | 52 | void beginConnect(); |
52 | void quitbutton(); | 53 | void quitbutton(); |
53 | void usernameChanged(const QString &); | 54 | void usernameChanged(const QString &); |
54 | void passwordChanged(const QString &); | 55 | void passwordChanged(const QString &); |
55 | void enterPressedInID(); | 56 | void enterPressedInID(); |
@@ -61,41 +62,41 @@ private slots: | |||
61 | public slots: | 62 | public slots: |
62 | void disconnect(); | 63 | void disconnect(); |
63 | void log_window_toggled(bool on); | 64 | void log_window_toggled(bool on); |
64 | 65 | ||
65 | signals: | 66 | signals: |
66 | void begin_connect(); | 67 | void begin_connect(); |
67 | void cmdl_start(); | 68 | void cmdl_start(); |
68 | 69 | ||
69 | public: | 70 | public: |
70 | QCheckBox *log; | 71 | QCheckBox *log; |
71 | bool connected; | 72 | bool connected; |
72 | QString con_speed; | 73 | QString con_speed; |
73 | // ConnectWidget *con; | 74 | ConnectWidget *con; |
74 | // ConWindow *con_win; | 75 | ConWindow *con_win; |
75 | // PPPStatsDlg *statdlg; | 76 | // PPPStatsDlg *statdlg; |
76 | // AccountingBase *acct; | 77 | // AccountingBase *acct; |
77 | QPushButton *quit_b; | 78 | QPushButton *quit_b; |
78 | //PPPStats *stats; | 79 | //PPPStats *stats; |
79 | 80 | ||
80 | private: | 81 | private: |
81 | // void prepareSetupDialog(); | 82 | // void prepareSetupDialog(); |
82 | void interruptConnection(); | 83 | void interruptConnection(); |
83 | void sigChld(); | 84 | void sigChld(); |
84 | void sigPPPDDied(); | 85 | void sigPPPDDied(); |
85 | QString encodeWord(const QString &s); | 86 | QString encodeWord(const QString &s); |
86 | void showNews (); | 87 | void showNews (); |
87 | 88 | ||
88 | QString ruleset_load_errmsg; | 89 | QString ruleset_load_errmsg; |
89 | 90 | PPPData *_pppdata; | |
90 | QPushButton *setup_b; | 91 | QPushButton *setup_b; |
91 | QFrame *fline; | 92 | QFrame *fline; |
92 | QFrame *fline1; | 93 | QFrame *fline1; |
93 | QPushButton *connect_b; | 94 | QPushButton *connect_b; |
94 | QComboBox *connectto_c; | 95 | QComboBox *connectto_c; |
95 | QLabel *ID_Label; | 96 | QLabel *ID_Label; |
96 | QLabel *PW_Label; | 97 | QLabel *PW_Label; |
97 | QLineEdit *ID_Edit; | 98 | QLineEdit *ID_Edit; |
98 | QLineEdit *PW_Edit; | 99 | QLineEdit *PW_Edit; |
99 | QLabel *label1; | 100 | QLabel *label1; |
100 | QLabel *label2; | 101 | QLabel *label2; |
101 | QLabel *label3; | 102 | QLabel *label3; |