Forwardport:
[kdenetwork.git] / kppp / loginterm.h
blob663d083525f3fb97f38eb79162727242c28cde4d
1 #ifndef _LOGINTERM_H_
2 #define _LOGINTERM_H_
4 #include <qdialog.h>
5 #include <qtextedit.h>
6 #include <qapplication.h>
7 #include <qtimer.h>
8 //Added by qt3to4:
9 #include <QKeyEvent>
11 class LoginMultiLineEdit : public QTextEdit {
13 Q_OBJECT
15 public:
17 LoginMultiLineEdit(QWidget *parent);
18 ~LoginMultiLineEdit();
20 void keyPressEvent(QKeyEvent *k);
21 void insertChar(unsigned char c);
22 void myreturn();
23 void mynewline();
25 public slots:
26 void readChar(unsigned char);
30 class LoginTerm : public QDialog {
31 Q_OBJECT
32 public:
33 LoginTerm(QWidget *parent, const char *name);
35 bool pressedContinue();
37 public slots:
38 void cancelbutton();
39 void continuebutton();
41 private:
42 LoginMultiLineEdit *text_window;
43 QPushButton *cancel_b;
44 QPushButton *continue_b;
46 bool cont;
49 #endif