3 Conversation widget for kdm greeter
5 Copyright (C) 1997, 1998 Steffen Hansen <hansen@kde.org>
6 Copyright (C) 2000-2003 Oswald Buddenhagen <ossi@kde.org>
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 #ifndef KGREET_CLASSIC_H
27 #define KGREET_CLASSIC_H
29 #include "kgreeterplugin.h"
37 class KClassicGreeter
: public QObject
, public KGreeterPlugin
{
41 KClassicGreeter( KGreeterPluginHandler
*handler
,
43 const QString
&fixedEntitiy
,
44 Function func
, Context ctx
);
46 virtual void loadUsers( const QStringList
&users
);
47 virtual void presetEntity( const QString
&entity
, int field
);
48 virtual QString
getEntity() const;
49 virtual void setUser( const QString
&user
);
50 virtual void setEnabled( bool on
);
51 virtual bool textMessage( const char *message
, bool error
);
52 virtual void textPrompt( const char *prompt
, bool echo
, bool nonBlocking
);
53 virtual bool binaryPrompt( const char *prompt
, bool nonBlocking
);
55 virtual void suspend();
56 virtual void resume();
59 virtual void succeeded();
60 virtual void failed();
61 virtual void revive();
65 void slotLoginLostFocus();
69 void setActive( bool enable
);
70 void setActive2( bool enable
);
73 QLabel
*loginLabel
, *passwdLabel
, *passwd1Label
, *passwd2Label
;
75 KLineEdit
*passwdEdit
, *passwd1Edit
, *passwd2Edit
;
76 KSimpleConfig
*stsFile
;
77 QString fixedUser
, curUser
;
81 bool running
, authTok
;
84 #endif /* KGREET_CLASSIC_H */