summaryrefslogtreecommitdiff
path: root/noncore/settings/usermanager/userdialog.h
Unidiff
Diffstat (limited to 'noncore/settings/usermanager/userdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/usermanager/userdialog.h9
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
24class UserDialog : public QDialog 24class UserDialog : public QDialog
25{ 25{
26 Q_OBJECT 26 Q_OBJECT
27private: 27private:
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
50private slots: 55private slots:
51 void clickedPicture(void); 56 void clickedPicture(void);
52 57
53public: 58public:
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