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 @@ +#ifndef DIALER_H +#define DIALER_H + +#include <qdialog.h> + +class QLabel; +class QProgressBar; + +class Dialer : public QDialog +{ + Q_OBJECT + public: + Dialer(const QString& number, QWidget *parent = NULL, const char *name = NULL); + ~Dialer(); + + public slots: + void slotCancel(); + + private: + void switchState(int newstate); + void reset(); + void dial(const QString& number); + + void send(const QString& msg); + QString receive(); + + enum States + { + state_init, + state_options, + state_dialing, + state_online + }; + + QLabel *status; + QProgressBar *progress; + QPushButton *cancel; + int state; +}; + +#endif + |