Diffstat (limited to 'noncore/settings/usermanager/userdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/usermanager/userdialog.h | 55 |
1 files changed, 55 insertions, 0 deletions
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 <qdialog.h> +#include <qlineedit.h> +#include <qcombobox.h> +#include <qlistview.h> +#include <qtabwidget.h> +#include <qpushbutton.h> + +#include <qpe/resource.h> + +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 |