00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _SCRIPTEDIT_H_
00029 #define _SCRIPTEDIT_H_
00030
00031 #include <qwidget.h>
00032
00033 class QComboBox;
00034 class QLineEdit;
00035
00036 class ScriptEdit : public QWidget {
00037 Q_OBJECT
00038 public:
00039 ScriptEdit( QWidget *parent=0, const char *name=0 );
00040 ~ScriptEdit() {}
00041
00042 QString text();
00043 void setText(const QString &);
00044 int type();
00045
00046 virtual void setEnabled(bool);
00047
00048 signals:
00049 void returnPressed();
00050
00051 private slots:
00052 void setType(int);
00053 void seReturnPressed();
00054
00055 private:
00056 QComboBox *st;
00057 QLineEdit *se;
00058
00059 public:
00060 enum setypes { Expect = 0,
00061 Send = 1,
00062 Pause = 2,
00063 Hangup = 3,
00064 Answer = 4,
00065 Timeout = 5,
00066 Password = 6,
00067 ID = 7,
00068 Prompt = 8,
00069 PWPrompt = 9,
00070 LoopStart = 10,
00071 LoopEnd = 11,
00072 Scan = 12,
00073 Save = 13,
00074 SendNoEcho = 14
00075 };
00076 };
00077
00078 #endif
00079