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.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/settings/usermanager/userdialog.h b/noncore/settings/usermanager/userdialog.h
index a94e49b..78cd608 100644
--- a/noncore/settings/usermanager/userdialog.h
+++ b/noncore/settings/usermanager/userdialog.h
@@ -1,67 +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 <qimage.h>
13#include <qlineedit.h> 14#include <qlineedit.h>
14#include <qcombobox.h> 15#include <qcombobox.h>
15#include <qlistview.h> 16#include <qlistview.h>
16#include <qtabwidget.h> 17#include <qtabwidget.h>
17#include <qpushbutton.h> 18#include <qpushbutton.h>
18#include <qcheckbox.h> 19#include <qcheckbox.h>
19#include <qlabel.h> 20#include <qlabel.h>
20 21
21#include <qpe/resource.h>
22
23#include <opie2/ofiledialog.h> 22#include <opie2/ofiledialog.h>
24 23
25class UserDialog : public QDialog 24class UserDialog : public QDialog
26{ 25{
27 Q_OBJECT 26 Q_OBJECT
28private: 27private:
29 QTabWidget *myTabWidget; 28 QTabWidget *myTabWidget;
30 QPushButton *picturePushButton; 29 QPushButton *picturePushButton;
31 QLineEdit *loginLineEdit; 30 QLineEdit *loginLineEdit;
32 QLineEdit *uidLineEdit; 31 QLineEdit *uidLineEdit;
33 QLineEdit *gecosLineEdit; 32 QLineEdit *gecosLineEdit;
34 QLineEdit *passwordLineEdit; 33 QLineEdit *passwordLineEdit;
35 QComboBox *shellComboBox; 34 QComboBox *shellComboBox;
36 QComboBox *groupComboBox; 35 QComboBox *groupComboBox;
37 QLabel *skelLabel; 36 QLabel *skelLabel;
38 QCheckBox *skelCheckBox; 37 QCheckBox *skelCheckBox;
39 QListView *groupsListView; 38 QListView *groupsListView;
40 39
41 QStringList groupMembers; 40 QStringList groupMembers;
42 QString pictureLocation; 41 QString pictureLocation;
43 QImage userImage; 42 QImage userImage;
44 int groupID; 43 int groupID;
45 int userID; 44 int userID;
46 int vm; 45 int vm;
47 enum VIEWMODE { 46 enum VIEWMODE {
48 VIEWMODE_NEW, 47 VIEWMODE_NEW,
49 VIEWMODE_EDIT 48 VIEWMODE_EDIT
50 }; 49 };
51 50
52 void setupTab1(void); 51 void setupTab1(void);
53 void setupTab2(void); 52 void setupTab2(void);
54 void accept(void); 53 void accept(void);
55 54
56private slots: 55private slots:
57 void clickedPicture(void); 56 void clickedPicture(void);
58 57
59public: 58public:
60 UserDialog( int viewmode=VIEWMODE_NEW, 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 );
61 ~UserDialog(); 60 ~UserDialog();
62 static bool addUser(int uid, int gid); 61 static bool addUser(int uid, int gid);
63 static bool editUser(const char *username); 62 static bool editUser(const char *username);
64 static bool delUser(const char *username); 63 static bool delUser(const char *username);
65}; 64};
66 65
67#endif 66#endif