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_WINBIND_H
27 #define KGREET_WINBIND_H
29 #include "kgreeterplugin.h"
32 #include <QtCore/QTimer>
40 class KWinbindGreeter
: public QObject
, public KGreeterPlugin
{
44 KWinbindGreeter( KGreeterPluginHandler
*handler
,
46 const QString
&fixedEntitiy
,
47 Function func
, Context ctx
);
49 virtual void loadUsers( const QStringList
&users
);
50 virtual void presetEntity( const QString
&entity
, int field
);
51 virtual QString
getEntity() const;
52 virtual void setUser( const QString
&user
);
53 virtual void setEnabled( bool on
);
54 virtual bool textMessage( const char *message
, bool error
);
55 virtual void textPrompt( const char *prompt
, bool echo
, bool nonBlocking
);
56 virtual bool binaryPrompt( const char *prompt
, bool nonBlocking
);
58 virtual void suspend();
59 virtual void resume();
62 virtual void succeeded();
63 virtual void failed();
64 virtual void revive();
68 void slotLoginLostFocus();
69 void slotChangedDomain( const QString
&dom
);
71 void slotStartDomainList();
72 void slotEndDomainList();
75 void setActive( bool enable
);
76 void setActive2( bool enable
);
79 QLabel
*domainLabel
, *loginLabel
, *passwdLabel
, *passwd1Label
, *passwd2Label
;
80 KComboBox
*domainCombo
;
82 KLineEdit
*passwdEdit
, *passwd1Edit
, *passwd2Edit
;
83 KSimpleConfig
*stsFile
;
84 QString fixedDomain
, fixedUser
, curUser
;
86 KProcess
* m_domainLister
;
91 bool running
, authTok
;
94 #endif /* KGREET_WINBIND_H */