Diffstat (limited to 'noncore/settings/networksettings/ppp/modeminfo.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/modeminfo.h | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/ppp/modeminfo.h b/noncore/settings/networksettings/ppp/modeminfo.h new file mode 100644 index 0000000..7aa2cc0 --- a/dev/null +++ b/noncore/settings/networksettings/ppp/modeminfo.h | |||
@@ -0,0 +1,89 @@ | |||
1 | /* | ||
2 | * | ||
3 | * kPPP: A front end for pppd for the KDE project | ||
4 | * | ||
5 | * $Id$ | ||
6 | * | ||
7 | * Copyright (C) 1997 Bernd Johannes Wuebben | ||
8 | * wuebben@math.cornell.edu | ||
9 | * | ||
10 | * | ||
11 | * This library is free software; you can redistribute it and/or | ||
12 | * modify it under the terms of the GNU Library General Public | ||
13 | * License as published by the Free Software Foundation; either | ||
14 | * version 2 of the License, or (at your option) any later version. | ||
15 | * | ||
16 | * This library is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
19 | * Library General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU Library General Public | ||
22 | * License along with this program; if not, write to the Free | ||
23 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
24 | * | ||
25 | */ | ||
26 | |||
27 | |||
28 | #ifndef _MODEMINFO_H_ | ||
29 | #define _MODEMINFO_H_ | ||
30 | |||
31 | #include <qdialog.h> | ||
32 | #include <qlineedit.h> | ||
33 | #include <qpushbutton.h> | ||
34 | #include <qlabel.h> | ||
35 | #include <qevent.h> | ||
36 | #include <qtimer.h> | ||
37 | //#include <kprogress.h> | ||
38 | #include <qprogressbar.h> | ||
39 | |||
40 | const int NUM_OF_ATI = 8; | ||
41 | |||
42 | |||
43 | class ModemTransfer : public QDialog { | ||
44 | Q_OBJECT | ||
45 | public: | ||
46 | ModemTransfer(QWidget *parent=0, const char *name=0); | ||
47 | |||
48 | public slots: | ||
49 | void init(); | ||
50 | void readtty(); | ||
51 | void do_script(); | ||
52 | void time_out_slot(); | ||
53 | void cancelbutton(); | ||
54 | void readChar(unsigned char); | ||
55 | |||
56 | private: | ||
57 | void ati_done(); | ||
58 | |||
59 | protected: | ||
60 | void closeEvent(QCloseEvent *e); | ||
61 | |||
62 | private: | ||
63 | int step; | ||
64 | QString readbuffer; | ||
65 | |||
66 | QPushButton *cancel; | ||
67 | QProgressBar *progressBar; | ||
68 | QLabel *statusBar; | ||
69 | |||
70 | QTimer *timeout_timer; | ||
71 | QTimer *scripttimer; | ||
72 | QString ati_query_strings[NUM_OF_ATI]; | ||
73 | }; | ||
74 | |||
75 | |||
76 | class ModemInfo : public QDialog { | ||
77 | Q_OBJECT | ||
78 | public: | ||
79 | ModemInfo(QWidget *parent=0, const char *name=0); | ||
80 | |||
81 | public: | ||
82 | void setAtiString(int num, QString s); | ||
83 | |||
84 | private: | ||
85 | QLabel *ati_label[NUM_OF_ATI]; | ||
86 | QLineEdit *ati_label_result[NUM_OF_ATI]; | ||
87 | }; | ||
88 | |||
89 | #endif | ||