Diffstat (limited to 'noncore/apps/opie-console/dialer.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/dialer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/dialer.h b/noncore/apps/opie-console/dialer.h index 20fb3c3..8c83bb6 100644 --- a/noncore/apps/opie-console/dialer.h +++ b/noncore/apps/opie-console/dialer.h | |||
@@ -1,25 +1,27 @@ | |||
1 | #ifndef DIALER_H | 1 | #ifndef DIALER_H |
2 | #define DIALER_H | 2 | #define DIALER_H |
3 | 3 | ||
4 | #include <qdialog.h> | 4 | #include <qdialog.h> |
5 | 5 | ||
6 | #include "profile.h" | ||
7 | |||
6 | class QLabel; | 8 | class QLabel; |
7 | class QProgressBar; | 9 | class QProgressBar; |
8 | 10 | ||
9 | class Dialer : public QDialog | 11 | class Dialer : public QDialog |
10 | { | 12 | { |
11 | Q_OBJECT | 13 | Q_OBJECT |
12 | public: | 14 | public: |
13 | Dialer(const QString& number, QWidget *parent = NULL, const char *name = NULL); | 15 | Dialer(const Profile& profile, QWidget *parent = NULL, const char *name = NULL); |
14 | ~Dialer(); | 16 | ~Dialer(); |
15 | 17 | ||
16 | public slots: | 18 | public slots: |
17 | void slotCancel(); | 19 | void slotCancel(); |
18 | void slotAutostart(); | 20 | void slotAutostart(); |
19 | 21 | ||
20 | private: | 22 | private: |
21 | void switchState(int newstate); | 23 | void switchState(int newstate); |
22 | void reset(); | 24 | void reset(); |
23 | void dial(const QString& number); | 25 | void dial(const QString& number); |
24 | void trydial(const QString& number); | 26 | void trydial(const QString& number); |
25 | 27 | ||
@@ -33,17 +35,17 @@ class Dialer : public QDialog | |||
33 | state_init, | 35 | state_init, |
34 | state_options, | 36 | state_options, |
35 | state_dialtone, | 37 | state_dialtone, |
36 | state_dialing, | 38 | state_dialing, |
37 | state_online | 39 | state_online |
38 | }; | 40 | }; |
39 | 41 | ||
40 | QLabel *status; | 42 | QLabel *status; |
41 | QProgressBar *progress; | 43 | QProgressBar *progress; |
42 | QPushButton *cancel; | 44 | QPushButton *cancel; |
43 | int state; | 45 | int state; |
44 | int usercancel; | 46 | int usercancel; |
45 | QString m_number; | 47 | Profile m_profile; |
46 | }; | 48 | }; |
47 | 49 | ||
48 | #endif | 50 | #endif |
49 | 51 | ||