Diffstat (limited to 'noncore/settings/usermanager/usermanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/usermanager/usermanager.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/settings/usermanager/usermanager.h b/noncore/settings/usermanager/usermanager.h index 9909242..6782923 100644 --- a/noncore/settings/usermanager/usermanager.h +++ b/noncore/settings/usermanager/usermanager.h | |||
@@ -1,65 +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 | 9 | ||
10 | #ifndef USERCONFIG_H | 10 | #ifndef USERCONFIG_H |
11 | #define USERCONFIG_H | 11 | #define USERCONFIG_H |
12 | 12 | ||
13 | #include <qmainwindow.h> | 13 | #include <qmainwindow.h> |
14 | #include <qtabwidget.h> | 14 | #include <qtabwidget.h> |
15 | #include <qlistview.h> | 15 | #include <qlistview.h> |
16 | //#include <qiconview.h> | ||
17 | |||
18 | #include <qpe/qpemenubar.h> | ||
19 | #include <qpopupmenu.h> | 16 | #include <qpopupmenu.h> |
20 | #include <qpe/qpetoolbar.h> | ||
21 | #include <qtoolbutton.h> | 17 | #include <qtoolbutton.h> |
22 | 18 | ||
19 | #include <qpe/qpetoolbar.h> | ||
20 | |||
23 | #include "userdialog.h" | 21 | #include "userdialog.h" |
24 | #include "groupdialog.h" | 22 | #include "groupdialog.h" |
25 | #include "passwd.h" | 23 | #include "passwd.h" |
26 | 24 | ||
27 | class UserConfig : public QMainWindow | 25 | class UserConfig : public QMainWindow |
28 | { | 26 | { |
29 | Q_OBJECT | 27 | Q_OBJECT |
30 | 28 | ||
31 | public: | 29 | public: |
32 | UserConfig( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 30 | UserConfig( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
33 | ~UserConfig(); | 31 | ~UserConfig(); |
34 | 32 | ||
35 | private: | 33 | private: |
36 | QToolButton *adduserToolButton; | 34 | QToolButton *adduserToolButton; |
37 | QToolButton *edituserToolButton; | 35 | QToolButton *edituserToolButton; |
38 | QToolButton *deleteuserToolButton; | 36 | QToolButton *deleteuserToolButton; |
39 | QToolButton *addgroupToolButton; | 37 | QToolButton *addgroupToolButton; |
40 | QToolButton *editgroupToolButton; | 38 | QToolButton *editgroupToolButton; |
41 | QToolButton *deletegroupToolButton; | 39 | QToolButton *deletegroupToolButton; |
42 | QTabWidget *myTabWidget; | 40 | QTabWidget *myTabWidget; |
43 | QListView *usersIconView; | 41 | QListView *usersIconView; |
44 | QListView *usersListView; | 42 | QListView *usersListView; |
45 | QListView *groupsListView; | 43 | QListView *groupsListView; |
44 | QPopupMenu userPopupMenu; | ||
45 | QPopupMenu groupPopupMenu; | ||
46 | int availableUID; | 46 | int availableUID; |
47 | int availableGID; | 47 | int availableGID; |
48 | void setupTabAccounts(); | 48 | void setupTabAccounts(); |
49 | void setupTabAllUsers(); | 49 | void setupTabAllUsers(); |
50 | void setupTabAllGroups(); | 50 | void setupTabAllGroups(); |
51 | void setupTabPrefs(); | 51 | void setupTabPrefs(); |
52 | void setupTabAbout(); | 52 | void setupTabAbout(); |
53 | void getUsers(); | 53 | void getUsers(); |
54 | void getGroups(); | 54 | void getGroups(); |
55 | 55 | ||
56 | private slots: | 56 | private slots: |
57 | void addUser(); | 57 | void addUser(); |
58 | void editUser(); | 58 | void editUser(); |
59 | void delUser(); | 59 | void delUser(); |
60 | void addGroup(); | 60 | void addGroup(); |
61 | void editGroup(); | 61 | void editGroup(); |
62 | void delGroup(); | 62 | void delGroup(); |
63 | void showUserMenu(QListViewItem *item); | ||
63 | }; | 64 | }; |
64 | 65 | ||
65 | #endif // USERCONFIG_H | 66 | #endif // USERCONFIG_H |