author | josef <josef> | 2002-10-13 15:11:18 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-13 15:11:18 (UTC) |
commit | 5db679753dac04095a2fa4b03297785ed4ba4030 (patch) (side-by-side diff) | |
tree | f54ffa84bbe6fdbd15b227a0b04667714ce9106c /noncore/apps/opie-console/dialer.h | |
parent | f45beb0cf615324c01d09560139174e95eb72e34 (diff) | |
download | opie-5db679753dac04095a2fa4b03297785ed4ba4030.zip opie-5db679753dac04095a2fa4b03297785ed4ba4030.tar.gz opie-5db679753dac04095a2fa4b03297785ed4ba4030.tar.bz2 |
- implement better state machine, with explanation
- command order as used in kppp's connect.cpp
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 @@ -12,31 +12,38 @@ class Dialer : public QDialog public: Dialer(const QString& number, QWidget *parent = NULL, const char *name = NULL); ~Dialer(); public slots: void slotCancel(); + void slotAutostart(); private: void switchState(int newstate); void reset(); void dial(const QString& number); + void trydial(const QString& number); void send(const QString& msg); QString receive(); enum States { + state_cancel, + state_preinit, state_init, state_options, + state_dialtone, state_dialing, state_online }; QLabel *status; QProgressBar *progress; QPushButton *cancel; int state; + int usercancel; + QString m_number; }; #endif |