Source: /app/hbasic/hbasic/packages/hbasic_radmin/user_editor.h
|
|
|
|
#ifndef USERCOMP_H
#define USERCOMP_H
#include "qlistview.h"
#include
#define MODE_CREATE 0
#define MODE_UPDATE 1
#define CHANGETYPE_DELUSER 0
#define CHANGETYPE_ADDUSER 1
class QString;
class QWidget;
class QPushButton;
class QLineEdit;
class dlgNewUser : public QDialog
{
Q_OBJECT
public:
dlgNewUser( QWidget *parent, char *host, QListView *lv_parent, QListViewItem *lv_item );
QLineEdit *le_user;
QLineEdit *le_user_id;
QLineEdit *le_group_id;
QLineEdit *le_real_name;
QLineEdit *le_home_dir;
QLineEdit *le_init_shell;
QLineEdit *le_login;
QLineEdit *le_min;
QLineEdit *le_max;
QLineEdit *le_warn;
QLineEdit *le_inact;
QLineEdit *le_expire;
private:
short change_mode;
short limits_changed;
char remote_host[100];
QListView *my_lv_parent;
QPushButton *btn_ok;
QPushButton *btn_cancel;
QListViewItem *edit_lv_item;
void getUserLimits( void );
void resizeEvent( QResizeEvent *evt );
private slots:
void slotOk( void );
void slotCancel( void );
void slotLimitChanged( const QString &newtext );
};
/*---------------------------------------------------------------------------- */
class dlgNewGroup : public QDialog
{
Q_OBJECT
public:
dlgNewGroup( QWidget *parent, QString *host, QListView *lv_parent, QListViewItem *text );
QLineEdit *le_group;
QLineEdit *le_group_id;
QLineEdit *le_guser;
private:
short change_mode;
QString *remote_host;
QListView *my_lv_parent;
QListViewItem *edit_lv_item;
QString old_guser;
QPushButton *btn_ok;
QPushButton *btn_cancel;
short nameNotFound( char *findname, QString intext );
void compareUserlist( short type, QString text1, QString text2 );
void resizeEvent( QResizeEvent *evt );
private slots:
void slotOk( void );
void slotCancel( void );
};
/*---------------------------------------------------------------------------- */
class CUserComp : public QWidget
{
Q_OBJECT
public:
CUserComp( QWidget *parent );
private:
QListView *lv_user;
QPushButton *btn_add;
QPushButton *btn_del;
QString *remote_host;
char *user_desc;
void resizeEvent( QResizeEvent *evt );
void createUserList( void );
private slots:
void slotAddUser();
void slotDeleteUser();
void slotDblClicked( QListViewItem *lv_item );
public slots:
void host_connect( QString *remote_host );
};
/*---------------------------------------------------------------------------- */
class CGroupComp : public QWidget
{
Q_OBJECT
public:
CGroupComp( QWidget *parent );
private:
QListView *lv_group;
QPushButton *btn_add;
QPushButton *btn_del;
QString *remote_host;
char *group_desc;
void resizeEvent( QResizeEvent *evt );
void createGroupList( void );
private slots:
void slotAddGroup();
void slotDeleteGroup();
void slotDblClicked( QListViewItem *lv_item );
public slots:
void host_connect( QString *remote_host );
};
/*---------------------------------------------------------------------------- */
#endif
Generated by: root on linux on Sun Jul 13 18:06:35 2003, using kdoc 2.0a54. |