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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/dialer.h b/noncore/apps/opie-console/dialer.h
index 09cc5ca..4011880 100644
--- a/noncore/apps/opie-console/dialer.h
+++ b/noncore/apps/opie-console/dialer.h
@@ -1,51 +1,52 @@
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" 6#include "profile.h"
7 7
8class QLabel; 8class QLabel;
9class QProgressBar; 9class QProgressBar;
10 10
11class Dialer : public QDialog 11class Dialer : public QDialog
12{ 12{
13 Q_OBJECT 13 Q_OBJECT
14 public: 14 public:
15 Dialer(const Profile& profile, QWidget *parent = NULL, const char *name = NULL); 15 Dialer(const Profile& profile, int fd, QWidget *parent = NULL, const char *name = NULL);
16 ~Dialer(); 16 ~Dialer();
17 17
18 public slots: 18 public slots:
19 void slotCancel(); 19 void slotCancel();
20 void slotAutostart(); 20 void slotAutostart();
21 21
22 private: 22 private:
23 void switchState(int newstate); 23 void switchState(int newstate);
24 void reset(); 24 void reset();
25 void dial(const QString& number); 25 void dial(const QString& number);
26 void trydial(const QString& number); 26 void trydial(const QString& number);
27 27
28 void send(const QString& msg); 28 void send(const QString& msg);
29 QString receive(); 29 QString receive();
30 30
31 enum States 31 enum States
32 { 32 {
33 state_cancel, 33 state_cancel,
34 state_preinit, 34 state_preinit,
35 state_init, 35 state_init,
36 state_options, 36 state_options,
37 state_dialtone, 37 state_dialtone,
38 state_dialing, 38 state_dialing,
39 state_online 39 state_online
40 }; 40 };
41 41
42 QLabel *status; 42 QLabel *status;
43 QProgressBar *progress; 43 QProgressBar *progress;
44 QPushButton *cancel; 44 QPushButton *cancel;
45 int state; 45 int state;
46 int usercancel; 46 int usercancel;
47 const Profile& m_profile; 47 const Profile& m_profile;
48 int m_fd;
48}; 49};
49 50
50#endif 51#endif
51 52