summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/dialer.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/dialer.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/dialer.h42
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
6class QLabel;
7class QProgressBar;
8
9class 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