Diffstat (limited to 'noncore/apps/opie-console/dialer.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/dialer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/dialer.h b/noncore/apps/opie-console/dialer.h index f07f110..20fb3c3 100644 --- a/noncore/apps/opie-console/dialer.h +++ b/noncore/apps/opie-console/dialer.h | |||
@@ -6,37 +6,44 @@ | |||
6 | class QLabel; | 6 | class QLabel; |
7 | class QProgressBar; | 7 | class QProgressBar; |
8 | 8 | ||
9 | class Dialer : public QDialog | 9 | class Dialer : public QDialog |
10 | { | 10 | { |
11 | Q_OBJECT | 11 | Q_OBJECT |
12 | public: | 12 | public: |
13 | Dialer(const QString& number, QWidget *parent = NULL, const char *name = NULL); | 13 | Dialer(const QString& number, QWidget *parent = NULL, const char *name = NULL); |
14 | ~Dialer(); | 14 | ~Dialer(); |
15 | 15 | ||
16 | public slots: | 16 | public slots: |
17 | void slotCancel(); | 17 | void slotCancel(); |
18 | void slotAutostart(); | ||
18 | 19 | ||
19 | private: | 20 | private: |
20 | void switchState(int newstate); | 21 | void switchState(int newstate); |
21 | void reset(); | 22 | void reset(); |
22 | void dial(const QString& number); | 23 | void dial(const QString& number); |
24 | void trydial(const QString& number); | ||
23 | 25 | ||
24 | void send(const QString& msg); | 26 | void send(const QString& msg); |
25 | QString receive(); | 27 | QString receive(); |
26 | 28 | ||
27 | enum States | 29 | enum States |
28 | { | 30 | { |
31 | state_cancel, | ||
32 | state_preinit, | ||
29 | state_init, | 33 | state_init, |
30 | state_options, | 34 | state_options, |
35 | state_dialtone, | ||
31 | state_dialing, | 36 | state_dialing, |
32 | state_online | 37 | state_online |
33 | }; | 38 | }; |
34 | 39 | ||
35 | QLabel *status; | 40 | QLabel *status; |
36 | QProgressBar *progress; | 41 | QProgressBar *progress; |
37 | QPushButton *cancel; | 42 | QPushButton *cancel; |
38 | int state; | 43 | int state; |
44 | int usercancel; | ||
45 | QString m_number; | ||
39 | }; | 46 | }; |
40 | 47 | ||
41 | #endif | 48 | #endif |
42 | 49 | ||