Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

dialer.h

Go to the documentation of this file.
00001 #ifndef DIALER_H
00002 #define DIALER_H
00003 
00004 #include <qdialog.h>
00005 
00006 #include "profile.h"
00007 
00008 class QLabel;
00009 class QProgressBar;
00010 
00011 class Dialer : public QDialog
00012 {
00013         Q_OBJECT
00014         public:
00015                 Dialer(const Profile& profile, int fd, QWidget *parent = NULL, const char *name = NULL);
00016                 ~Dialer();
00017                 void setHangupOnly();
00018 
00019         public slots:
00020                 void slotCancel();
00021                 void slotAutostart();
00022 
00023         private:
00024                 void switchState(int newstate);
00025                 void reset();
00026                 void dial(const QString& number);
00027                 void trydial(const QString& number);
00028 
00029                 void send(const QString& msg);
00030                 QString receive();
00031 
00032                 enum States
00033                 {
00034                         state_cancel,
00035                         state_preinit,
00036                         state_init,
00037                         state_options,
00038                         state_dialtone,
00039                         state_dialing,
00040                         state_online
00041                 };
00042 
00043                 QLabel *status;
00044                 QProgressBar *progress;
00045                 QPushButton *cancel;
00046                 int state;
00047                 int usercancel;
00048                 int m_fd;
00049                 const Profile& m_profile;
00050                 int cleanshutdown;
00051 };
00052 
00053 #endif
00054 

Generated on Sat Nov 5 16:16:49 2005 for OPIE by  doxygen 1.4.2