Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

userdialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  ***************************************************************************/
00009 #ifndef USERDIALOG_H
00010 #define USERDIALOG_H
00011 
00012 #include <qdialog.h>
00013 #include <qimage.h>
00014 #include <qlineedit.h>
00015 #include <qcombobox.h>
00016 #include <qlistview.h>
00017 #include <qtabwidget.h>
00018 #include <qpushbutton.h>
00019 #include <qcheckbox.h>
00020 #include <qlabel.h>
00021 
00022 #include <opie2/ofiledialog.h>
00023 
00024 class UserDialog : public QDialog
00025 {
00026     Q_OBJECT
00027 private:
00028     QTabWidget *myTabWidget;
00029     QPushButton *picturePushButton;
00030     QLineEdit *loginLineEdit;
00031     QLineEdit *uidLineEdit;
00032     QLineEdit *gecosLineEdit;
00033     QLineEdit *passwordLineEdit;
00034     QComboBox *shellComboBox;
00035     QComboBox *groupComboBox;
00036     QLabel *skelLabel;
00037     QCheckBox *skelCheckBox;
00038     QListView *groupsListView;
00039 
00040     QStringList groupMembers;
00041     QString pictureLocation;
00042     QImage userImage;
00043     int groupID;
00044     int userID;
00045     int vm;
00046     enum VIEWMODE {
00047         VIEWMODE_NEW,
00048         VIEWMODE_EDIT
00049     };
00050 
00051     void setupTab1(void);
00052     void setupTab2(void);
00053     void accept(void);
00054 
00055 private slots:
00056     void clickedPicture(void);
00057 
00058 public:
00059     UserDialog( int viewmode=VIEWMODE_NEW, QWidget* parent = 0, const char* name = 0, bool modal=true, WFlags fl = 0 );
00060     ~UserDialog();
00061     static bool addUser(int uid, int gid);
00062     static bool editUser(const char *username);
00063     static bool delUser(const char *username);
00064 };
00065 
00066 #endif

Generated on Sat Nov 5 16:17:58 2005 for OPIE by  doxygen 1.4.2