Diffstat (limited to 'noncore/settings/networksettings/ppp/modeminfo.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/modeminfo.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/ppp/modeminfo.h b/noncore/settings/networksettings/ppp/modeminfo.h index 7aa2cc0..dfcc841 100644 --- a/noncore/settings/networksettings/ppp/modeminfo.h +++ b/noncore/settings/networksettings/ppp/modeminfo.h | |||
@@ -28,47 +28,50 @@ | |||
28 | #ifndef _MODEMINFO_H_ | 28 | #ifndef _MODEMINFO_H_ |
29 | #define _MODEMINFO_H_ | 29 | #define _MODEMINFO_H_ |
30 | 30 | ||
31 | #include <qdialog.h> | 31 | #include <qdialog.h> |
32 | #include <qlineedit.h> | 32 | #include <qlineedit.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 | #include <qtimer.h> | 36 | #include <qtimer.h> |
37 | //#include <kprogress.h> | 37 | //#include <kprogress.h> |
38 | #include <qprogressbar.h> | 38 | #include <qprogressbar.h> |
39 | 39 | ||
40 | class Modem; | ||
41 | |||
40 | const int NUM_OF_ATI = 8; | 42 | const int NUM_OF_ATI = 8; |
41 | 43 | ||
42 | 44 | ||
43 | class ModemTransfer : public QDialog { | 45 | class ModemTransfer : public QDialog { |
44 | Q_OBJECT | 46 | Q_OBJECT |
45 | public: | 47 | public: |
46 | ModemTransfer(QWidget *parent=0, const char *name=0); | 48 | ModemTransfer(Modem*, QWidget *parent=0, const char *name=0); |
47 | 49 | ||
48 | public slots: | 50 | public slots: |
49 | void init(); | 51 | void init(); |
50 | void readtty(); | 52 | void readtty(); |
51 | void do_script(); | 53 | void do_script(); |
52 | void time_out_slot(); | 54 | void time_out_slot(); |
53 | void cancelbutton(); | 55 | void cancelbutton(); |
54 | void readChar(unsigned char); | 56 | void readChar(unsigned char); |
55 | 57 | ||
56 | private: | 58 | private: |
57 | void ati_done(); | 59 | void ati_done(); |
58 | 60 | ||
59 | protected: | 61 | protected: |
60 | void closeEvent(QCloseEvent *e); | 62 | void closeEvent(QCloseEvent *e); |
61 | 63 | ||
62 | private: | 64 | private: |
65 | Modem *_modem; | ||
63 | int step; | 66 | int step; |
64 | QString readbuffer; | 67 | QString readbuffer; |
65 | 68 | ||
66 | QPushButton *cancel; | 69 | QPushButton *cancel; |
67 | QProgressBar *progressBar; | 70 | QProgressBar *progressBar; |
68 | QLabel *statusBar; | 71 | QLabel *statusBar; |
69 | 72 | ||
70 | QTimer *timeout_timer; | 73 | QTimer *timeout_timer; |
71 | QTimer *scripttimer; | 74 | QTimer *scripttimer; |
72 | QString ati_query_strings[NUM_OF_ATI]; | 75 | QString ati_query_strings[NUM_OF_ATI]; |
73 | }; | 76 | }; |
74 | 77 | ||