author | tille <tille> | 2003-05-23 19:43:46 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-23 19:43:46 (UTC) |
commit | 9b6b21112f38181f49b07e973bfe00c0d83a6900 (patch) (unidiff) | |
tree | c2fa45a93ac5c26fe98558f28bb0a166b14ad065 /noncore/settings/networksettings/ppp/pwentry.h | |
parent | 34b9974063032242e5de65fa56d4c2cb5e1ce565 (diff) | |
download | opie-9b6b21112f38181f49b07e973bfe00c0d83a6900.zip opie-9b6b21112f38181f49b07e973bfe00c0d83a6900.tar.gz opie-9b6b21112f38181f49b07e973bfe00c0d83a6900.tar.bz2 |
configure dialog basicly working
more kppp stuff... ;)
Diffstat (limited to 'noncore/settings/networksettings/ppp/pwentry.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/pwentry.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/ppp/pwentry.h b/noncore/settings/networksettings/ppp/pwentry.h new file mode 100644 index 0000000..4a5e554 --- a/dev/null +++ b/noncore/settings/networksettings/ppp/pwentry.h | |||
@@ -0,0 +1,72 @@ | |||
1 | /* | ||
2 | * | ||
3 | * kPPP: A pppd front end for the KDE project | ||
4 | * | ||
5 | * $Id$ | ||
6 | * | ||
7 | * Copyright (C) 1997 Bernd Johannes Wuebben | ||
8 | * wuebben@math.cornell.edu | ||
9 | * | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or | ||
12 | * modify it under the terms of the GNU Library General Public | ||
13 | * License as published by the Free Software Foundation; either | ||
14 | * version 2 of the License, or (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
19 | * Library General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU Library General Public | ||
22 | * License along with this program; if not, write to the Free | ||
23 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
24 | */ | ||
25 | |||
26 | |||
27 | #ifndef PWENTRY_H | ||
28 | #define PWENTRY_H | ||
29 | |||
30 | #include <qwidget.h> | ||
31 | #include <qlineedit.h> | ||
32 | #include <qlabel.h> | ||
33 | #include <qgroupbox.h> | ||
34 | |||
35 | class PWEntry : public QWidget { | ||
36 | |||
37 | Q_OBJECT | ||
38 | |||
39 | public: | ||
40 | |||
41 | PWEntry( QWidget *parent=0, const char *name=0 ); | ||
42 | bool Consumed(); | ||
43 | void setConsumed(); | ||
44 | QString text(); | ||
45 | void setPrompt(const QString &); | ||
46 | |||
47 | public slots: | ||
48 | |||
49 | void setEchoModeNormal(); | ||
50 | void setEchoModePassword(); | ||
51 | void hide(); | ||
52 | void show(); | ||
53 | |||
54 | signals: | ||
55 | |||
56 | void returnPressed(); | ||
57 | |||
58 | protected: | ||
59 | |||
60 | void resizeEvent(QResizeEvent* qre); | ||
61 | void focusInEvent( QFocusEvent *); | ||
62 | |||
63 | private: | ||
64 | |||
65 | QGroupBox *frame; | ||
66 | QLineEdit *pw; | ||
67 | QLabel *pl; | ||
68 | bool isconsumed; | ||
69 | |||
70 | }; | ||
71 | |||
72 | #endif | ||