You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
2.9 KiB
102 lines
2.9 KiB
15 years ago
|
/*
|
||
|
|
||
13 years ago
|
Conversation widget for tdm greeter
|
||
15 years ago
|
|
||
|
Copyright (C) 1997, 1998 Steffen Hansen <hansen@kde.org>
|
||
|
Copyright (C) 2000-2003 Oswald Buddenhagen <ossi@kde.org>
|
||
|
|
||
|
|
||
|
This program is free software; you can redistribute it and/or modify
|
||
|
it under the terms of the GNU General Public License as published by
|
||
|
the Free Software Foundation; either version 2 of the License, or
|
||
|
(at your option) any later version.
|
||
|
|
||
|
This program is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
GNU General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License
|
||
|
along with this program; if not, write to the Free Software
|
||
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
|
||
|
*/
|
||
|
|
||
|
|
||
|
#ifndef KGREET_WINBIND_H
|
||
|
#define KGREET_WINBIND_H
|
||
|
|
||
|
#include "kgreeterplugin.h"
|
||
|
|
||
15 years ago
|
#include <tqobject.h>
|
||
|
#include <tqtimer.h>
|
||
15 years ago
|
|
||
|
class KComboBox;
|
||
|
class KLineEdit;
|
||
|
class KPasswordEdit;
|
||
|
class KSimpleConfig;
|
||
14 years ago
|
class TQGridLayout;
|
||
|
class TQLabel;
|
||
15 years ago
|
class KdmThemer;
|
||
|
class KProcIO;
|
||
|
|
||
15 years ago
|
class KWinbindGreeter : public TQObject, public KGreeterPlugin {
|
||
15 years ago
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
KWinbindGreeter( KGreeterPluginHandler *handler,
|
||
|
KdmThemer *themer,
|
||
15 years ago
|
TQWidget *parent, TQWidget *predecessor,
|
||
|
const TQString &fixedEntitiy,
|
||
15 years ago
|
Function func, Context ctx );
|
||
|
~KWinbindGreeter();
|
||
15 years ago
|
virtual void loadUsers( const TQStringList &users );
|
||
|
virtual void presetEntity( const TQString &entity, int field );
|
||
|
virtual TQString getEntity() const;
|
||
|
virtual void setUser( const TQString &user );
|
||
13 years ago
|
virtual void setPassword( const TQString &pass );
|
||
15 years ago
|
virtual void setEnabled( bool on );
|
||
|
virtual bool textMessage( const char *message, bool error );
|
||
|
virtual void textPrompt( const char *prompt, bool echo, bool nonBlocking );
|
||
|
virtual bool binaryPrompt( const char *prompt, bool nonBlocking );
|
||
|
virtual void start();
|
||
|
virtual void suspend();
|
||
|
virtual void resume();
|
||
|
virtual void next();
|
||
|
virtual void abort();
|
||
|
virtual void succeeded();
|
||
|
virtual void failed();
|
||
|
virtual void revive();
|
||
|
virtual void clear();
|
||
|
|
||
|
public slots:
|
||
|
void slotLoginLostFocus();
|
||
15 years ago
|
void slotChangedDomain( const TQString &dom );
|
||
15 years ago
|
void slotActivity();
|
||
|
void slotStartDomainList();
|
||
|
void slotReadDomainList();
|
||
|
void slotEndDomainList();
|
||
|
|
||
|
private:
|
||
|
void setActive( bool enable );
|
||
|
void setActive2( bool enable );
|
||
|
void returnData();
|
||
|
|
||
15 years ago
|
TQLabel *domainLabel, *loginLabel, *passwdLabel, *passwd1Label, *passwd2Label;
|
||
15 years ago
|
KComboBox *domainCombo;
|
||
|
KLineEdit *loginEdit;
|
||
|
KPasswordEdit *passwdEdit, *passwd1Edit, *passwd2Edit;
|
||
|
KSimpleConfig *stsFile;
|
||
15 years ago
|
TQString fixedDomain, fixedUser, curUser;
|
||
|
TQStringList allUsers, mDomainListing;
|
||
15 years ago
|
KProcIO* m_domainLister;
|
||
15 years ago
|
TQTimer mDomainListTimer;
|
||
15 years ago
|
|
||
|
Function func;
|
||
|
Context ctx;
|
||
|
int exp, pExp, has;
|
||
|
bool running, authTok;
|
||
|
};
|
||
|
|
||
|
#endif /* KGREET_WINBIND_H */
|