Diffstat (limited to 'noncore/settings/usermanager/userdialog.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/usermanager/userdialog.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/settings/usermanager/userdialog.h b/noncore/settings/usermanager/userdialog.h index 133b35d..b7b925d 100644 --- a/noncore/settings/usermanager/userdialog.h +++ b/noncore/settings/usermanager/userdialog.h | |||
@@ -33,29 +33,34 @@ private: | |||
33 | QLineEdit *passwordLineEdit; | 33 | QLineEdit *passwordLineEdit; |
34 | QComboBox *shellComboBox; | 34 | QComboBox *shellComboBox; |
35 | QComboBox *groupComboBox; | 35 | QComboBox *groupComboBox; |
36 | QLabel *skelLabel; | 36 | QLabel *skelLabel; |
37 | QCheckBox *skelCheckBox; | 37 | QCheckBox *skelCheckBox; |
38 | QListView *groupsListView; | 38 | QListView *groupsListView; |
39 | 39 | ||
40 | QStringList groupMembers; | 40 | QStringList groupMembers; |
41 | QString pictureLocation; | 41 | QString pictureLocation; |
42 | QImage userImage; | 42 | QImage userImage; |
43 | int groupID; | 43 | int groupID; |
44 | int userID; | 44 | int userID; |
45 | int vm; | ||
46 | enum VIEWMODE { | ||
47 | VIEWMODE_NEW, | ||
48 | VIEWMODE_EDIT | ||
49 | }; | ||
45 | 50 | ||
46 | void setupTab1(void); | 51 | void setupTab1(void); |
47 | void setupTab2(void); | 52 | void setupTab2(void); |
48 | void accept(void); | 53 | void accept(void); |
49 | 54 | ||
50 | private slots: | 55 | private slots: |
51 | void clickedPicture(void); | 56 | void clickedPicture(void); |
52 | 57 | ||
53 | public: | 58 | public: |
54 | UserDialog( QWidget* parent = 0, const char* name = 0, bool modal=true, WFlags fl = 0 ); | 59 | UserDialog( int viewmode=VIEWMODE_NEW, QWidget* parent = 0, const char* name = 0, bool modal=true, WFlags fl = 0 ); |
55 | ~UserDialog(); | 60 | ~UserDialog(); |
56 | static bool addUser(int uid, int gid); | 61 | static bool addUser(int uid, int gid); |
57 | static bool editUser(const char *username); | 62 | static bool editUser(const char *username); |
58 | static bool delUser(const char *username); | 63 | static bool delUser(const char *username); |
59 | }; | 64 | }; |
60 | 65 | ||
61 | #endif | 66 | #endif |