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

pwentry.h

Go to the documentation of this file.
00001 /*
00002  *
00003  *            kPPP: A pppd front end for the KDE project
00004  *
00005  * $Id: pwentry.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  *
00011  * This program is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Library General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2 of the License, or (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  * Library General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Library General Public
00022  * License along with this program; if not, write to the Free
00023  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00024  */
00025 
00026 
00027 #ifndef PWENTRY_H
00028 #define PWENTRY_H
00029  
00030 #include <qwidget.h>
00031 #include <qlineedit.h>
00032 #include <qlabel.h>
00033 #include <qgroupbox.h>
00034 
00035 class PWEntry : public QWidget {
00036 
00037         Q_OBJECT
00038 
00039 public:
00040 
00041    PWEntry( QWidget *parent=0,  const char *name=0 );   
00042    bool Consumed();
00043    void setConsumed();
00044    QString text();
00045    void setPrompt(const QString &);
00046 
00047 public slots:
00048 
00049     void setEchoModeNormal();
00050     void setEchoModePassword();
00051     void hide();
00052     void show();
00053 
00054 signals:
00055 
00056     void returnPressed();
00057 
00058 protected:
00059 
00060     void resizeEvent(QResizeEvent* qre);
00061     void focusInEvent( QFocusEvent *);
00062 
00063 private:
00064 
00065     QGroupBox *frame;
00066     QLineEdit *pw;
00067     QLabel *pl;
00068     bool isconsumed;
00069 
00070 };
00071  
00072 #endif

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