From 8854c1688dfc388e3621b7494f6338008173b20c Mon Sep 17 00:00:00 2001 From: umopapisdn Date: Tue, 24 Sep 2002 21:21:55 +0000 Subject: New Application OPIE-UserManager added. --- (limited to 'noncore/settings/usermanager/userdialog.h') diff --git a/noncore/settings/usermanager/userdialog.h b/noncore/settings/usermanager/userdialog.h new file mode 100644 index 0000000..b44de9e --- a/dev/null +++ b/noncore/settings/usermanager/userdialog.h @@ -0,0 +1,55 @@ +/*************************************************************************** + * * + * 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. * + * * + ***************************************************************************/ +#ifndef USERDIALOG_H +#define USERDIALOG_H + +#include +#include +#include +#include +#include +#include + +#include + +class UserDialog : public QDialog +{ + Q_OBJECT +private: + QTabWidget *myTabWidget; + QPushButton *picturePushButton; + QLineEdit *loginLineEdit; + QLineEdit *uidLineEdit; + QLineEdit *gecosLineEdit; + QLineEdit *passwordLineEdit; + QComboBox *shellComboBox; + QComboBox *groupComboBox; + QListView *groupsListView; + + QStringList groupMembers; + QString pictureLocation; + int groupID; + int userID; + + void setupTab1(void); + void setupTab2(void); + void accept(void); + +private slots: + void clickedPicture(void); + +public: + UserDialog( QWidget* parent = 0, const char* name = 0, bool modal=true, WFlags fl = 0 ); + ~UserDialog(); + static bool addUser(int uid, int gid); + static bool editUser(const char *username); + static bool delUser(const char *username); +}; + +#endif -- cgit v0.9.0.2