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