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 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | #ifndef USERDIALOG_H | ||
10 | #define USERDIALOG_H | ||
11 | |||
12 | #include <qdialog.h> | ||
13 | #include <qlineedit.h> | ||
14 | #include <qcombobox.h> | ||
15 | #include <qlistview.h> | ||
16 | #include <qtabwidget.h> | ||
17 | #include <qpushbutton.h> | ||
18 | |||
19 | #include <qpe/resource.h> | ||
20 | |||
21 | class UserDialog : public QDialog | ||
22 | { | ||
23 | Q_OBJECT | ||
24 | private: | ||
25 | QTabWidget *myTabWidget; | ||
26 | QPushButton *picturePushButton; | ||
27 | QLineEdit *loginLineEdit; | ||
28 | QLineEdit *uidLineEdit; | ||
29 | QLineEdit *gecosLineEdit; | ||
30 | QLineEdit *passwordLineEdit; | ||
31 | QComboBox *shellComboBox; | ||
32 | QComboBox *groupComboBox; | ||
33 | QListView *groupsListView; | ||
34 | |||
35 | QStringList groupMembers; | ||
36 | QString pictureLocation; | ||
37 | int groupID; | ||
38 | int userID; | ||
39 | |||
40 | void setupTab1(void); | ||
41 | void setupTab2(void); | ||
42 | void accept(void); | ||
43 | |||
44 | private slots: | ||
45 | void clickedPicture(void); | ||
46 | |||
47 | public: | ||
48 | UserDialog( QWidget* parent = 0, const char* name = 0, bool modal=true, WFlags fl = 0 ); | ||
49 | ~UserDialog(); | ||
50 | static bool addUser(int uid, int gid); | ||
51 | static bool editUser(const char *username); | ||
52 | static bool delUser(const char *username); | ||
53 | }; | ||
54 | |||
55 | #endif | ||