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

scriptedit.h

Go to the documentation of this file.
00001 
00002 /*
00003  *            kPPP: A front end for pppd for the KDE project
00004  *
00005  * $Id: scriptedit.h,v 1.2 2003/08/09 17:14:56 kergoth Exp $
00006  * 
00007  *             Copyright (C) 1997 Bernd Johannes Wuebben 
00008  *                    wuebben@math.cornell.edu
00009  *
00010  * based on EzPPP:
00011  * Copyright (C) 1997  Jay Painter
00012  *
00013  * This library is free software; you can redistribute it and/or
00014  * modify it under the terms of the GNU Library General Public
00015  * License as published by the Free Software Foundation; either
00016  * version 2 of the License, or (at your option) any later version.
00017  *
00018  * This library is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  * Library General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU Library General Public
00024  * License along with this program; if not, write to the Free
00025  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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 

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