author | umopapisdn <umopapisdn> | 2002-11-01 21:29:35 (UTC) |
---|---|---|
committer | umopapisdn <umopapisdn> | 2002-11-01 21:29:35 (UTC) |
commit | 7ccfa11a1ccbb4cfb047bd1fa1eb19402d9c8dd6 (patch) (unidiff) | |
tree | bb2d0b7a66a188ffd7ad6f9729b9691aa8452682 /noncore/settings/usermanager/userdialog.h | |
parent | 89567519b98853932093e06af4a28f6cc4cc8fd9 (diff) | |
download | opie-7ccfa11a1ccbb4cfb047bd1fa1eb19402d9c8dd6.zip opie-7ccfa11a1ccbb4cfb047bd1fa1eb19402d9c8dd6.tar.gz opie-7ccfa11a1ccbb4cfb047bd1fa1eb19402d9c8dd6.tar.bz2 |
* "Copy /etc/skel" option is now only available when adding a user.
* Documented some more of the source code.
Diffstat (limited to 'noncore/settings/usermanager/userdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/usermanager/userdialog.h | 9 |
1 files changed, 7 insertions, 2 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 | |||
@@ -1,61 +1,66 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * * | 2 | * * |
3 | * This program is free software; you can redistribute it and/or modify * | 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 * | 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 * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * (at your option) any later version. * | 6 | * (at your option) any later version. * |
7 | * * | 7 | * * |
8 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | #ifndef USERDIALOG_H | 9 | #ifndef USERDIALOG_H |
10 | #define USERDIALOG_H | 10 | #define USERDIALOG_H |
11 | 11 | ||
12 | #include <qdialog.h> | 12 | #include <qdialog.h> |
13 | #include <qlineedit.h> | 13 | #include <qlineedit.h> |
14 | #include <qcombobox.h> | 14 | #include <qcombobox.h> |
15 | #include <qlistview.h> | 15 | #include <qlistview.h> |
16 | #include <qtabwidget.h> | 16 | #include <qtabwidget.h> |
17 | #include <qpushbutton.h> | 17 | #include <qpushbutton.h> |
18 | #include <qcheckbox.h> | 18 | #include <qcheckbox.h> |
19 | 19 | ||
20 | #include <qpe/resource.h> | 20 | #include <qpe/resource.h> |
21 | 21 | ||
22 | #include <opie/ofiledialog.h> | 22 | #include <opie/ofiledialog.h> |
23 | 23 | ||
24 | class UserDialog : public QDialog | 24 | class UserDialog : public QDialog |
25 | { | 25 | { |
26 | Q_OBJECT | 26 | Q_OBJECT |
27 | private: | 27 | private: |
28 | QTabWidget *myTabWidget; | 28 | QTabWidget *myTabWidget; |
29 | QPushButton *picturePushButton; | 29 | QPushButton *picturePushButton; |
30 | QLineEdit *loginLineEdit; | 30 | QLineEdit *loginLineEdit; |
31 | QLineEdit *uidLineEdit; | 31 | QLineEdit *uidLineEdit; |
32 | QLineEdit *gecosLineEdit; | 32 | QLineEdit *gecosLineEdit; |
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 | 45 | int vm; | |
46 | enum VIEWMODE { | ||
47 | VIEWMODE_NEW, | ||
48 | VIEWMODE_EDIT | ||
49 | }; | ||
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 |