author | josef <josef> | 2002-10-13 14:13:07 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-13 14:13:07 (UTC) |
commit | f45beb0cf615324c01d09560139174e95eb72e34 (patch) (unidiff) | |
tree | b45119071a49bc60c56d0465648f743d61f374ef /noncore/apps/opie-console/dialer.h | |
parent | 68c37a3412ef4609ba0209318ef2b06f7dd1aaf1 (diff) | |
download | opie-f45beb0cf615324c01d09560139174e95eb72e34.zip opie-f45beb0cf615324c01d09560139174e95eb72e34.tar.gz opie-f45beb0cf615324c01d09560139174e95eb72e34.tar.bz2 |
- first stub for modem dialer widget
- this is not yet used in opie-console; to do so, the modem-specific profile
part (AT commands [atconfigdialog.cpp] and dial options [dialdialog.cpp])
should be used
Diffstat (limited to 'noncore/apps/opie-console/dialer.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/dialer.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/dialer.h b/noncore/apps/opie-console/dialer.h new file mode 100644 index 0000000..f07f110 --- a/dev/null +++ b/noncore/apps/opie-console/dialer.h | |||
@@ -0,0 +1,42 @@ | |||
1 | #ifndef DIALER_H | ||
2 | #define DIALER_H | ||
3 | |||
4 | #include <qdialog.h> | ||
5 | |||
6 | class QLabel; | ||
7 | class QProgressBar; | ||
8 | |||
9 | class Dialer : public QDialog | ||
10 | { | ||
11 | Q_OBJECT | ||
12 | public: | ||
13 | Dialer(const QString& number, QWidget *parent = NULL, const char *name = NULL); | ||
14 | ~Dialer(); | ||
15 | |||
16 | public slots: | ||
17 | void slotCancel(); | ||
18 | |||
19 | private: | ||
20 | void switchState(int newstate); | ||
21 | void reset(); | ||
22 | void dial(const QString& number); | ||
23 | |||
24 | void send(const QString& msg); | ||
25 | QString receive(); | ||
26 | |||
27 | enum States | ||
28 | { | ||
29 | state_init, | ||
30 | state_options, | ||
31 | state_dialing, | ||
32 | state_online | ||
33 | }; | ||
34 | |||
35 | QLabel *status; | ||
36 | QProgressBar *progress; | ||
37 | QPushButton *cancel; | ||
38 | int state; | ||
39 | }; | ||
40 | |||
41 | #endif | ||
42 | |||