author | umopapisdn <umopapisdn> | 2002-09-24 21:21:55 (UTC) |
---|---|---|
committer | umopapisdn <umopapisdn> | 2002-09-24 21:21:55 (UTC) |
commit | 8854c1688dfc388e3621b7494f6338008173b20c (patch) (side-by-side diff) | |
tree | 3e6db427b24423b847d7e594f2fc9c865e0cc2ec /noncore/settings/usermanager/userdialog.h | |
parent | 93be75ceab687091f76a459eb34bfd4859986116 (diff) | |
download | opie-8854c1688dfc388e3621b7494f6338008173b20c.zip opie-8854c1688dfc388e3621b7494f6338008173b20c.tar.gz opie-8854c1688dfc388e3621b7494f6338008173b20c.tar.bz2 |
New Application OPIE-UserManager added.
Diffstat (limited to 'noncore/settings/usermanager/userdialog.h') (more/less context) (show 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 |