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.
89 lines
2.5 KiB
89 lines
2.5 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_CLASSIC_H
|
||
|
#define KGREET_CLASSIC_H
|
||
|
|
||
|
#include "kgreeterplugin.h"
|
||
|
|
||
14 years ago
|
#include <tqobject.h>
|
||
15 years ago
|
|
||
|
class KLineEdit;
|
||
|
class KPasswordEdit;
|
||
|
class KSimpleConfig;
|
||
14 years ago
|
class TQGridLayout;
|
||
|
class TQLabel;
|
||
15 years ago
|
|
||
14 years ago
|
class KClassicGreeter : public TQObject, public KGreeterPlugin {
|
||
15 years ago
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
KClassicGreeter( KGreeterPluginHandler *handler,
|
||
|
KdmThemer *themer,
|
||
14 years ago
|
TQWidget *parent, TQWidget *predecessor,
|
||
|
const TQString &fixedEntitiy,
|
||
15 years ago
|
Function func, Context ctx );
|
||
|
~KClassicGreeter();
|
||
14 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();
|
||
|
void slotActivity();
|
||
|
|
||
|
private:
|
||
|
void setActive( bool enable );
|
||
|
void setActive2( bool enable );
|
||
|
void returnData();
|
||
|
|
||
14 years ago
|
TQLabel *loginLabel, *passwdLabel, *passwd1Label, *passwd2Label;
|
||
15 years ago
|
KLineEdit *loginEdit;
|
||
|
KPasswordEdit *passwdEdit, *passwd1Edit, *passwd2Edit;
|
||
|
KSimpleConfig *stsFile;
|
||
14 years ago
|
TQString fixedUser, curUser;
|
||
15 years ago
|
Function func;
|
||
|
Context ctx;
|
||
|
int exp, pExp, has;
|
||
|
bool running, authTok;
|
||
|
};
|
||
|
|
||
|
#endif /* KGREET_CLASSIC_H */
|