#include </home/clem/local/src/opie/noncore/settings/usermanager/userdialog.h>
Collaboration diagram for UserDialog:

Public Member Functions | |
| UserDialog (int viewmode=VIEWMODE_NEW, QWidget *parent=0, const char *name=0, bool modal=true, WFlags fl=0) | |
| ~UserDialog () | |
Static Public Member Functions | |
| static bool | addUser (int uid, int gid) |
| static bool | editUser (const char *username) |
| static bool | delUser (const char *username) |
Private Types | |
| enum | VIEWMODE { VIEWMODE_NEW, VIEWMODE_EDIT } |
Private Slots | |
| void | clickedPicture (void) |
Private Member Functions | |
| void | setupTab1 (void) |
| void | setupTab2 (void) |
| void | accept (void) |
Private Attributes | |
| QTabWidget * | myTabWidget |
| QPushButton * | picturePushButton |
| QLineEdit * | loginLineEdit |
| QLineEdit * | uidLineEdit |
| QLineEdit * | gecosLineEdit |
| QLineEdit * | passwordLineEdit |
| QComboBox * | shellComboBox |
| QComboBox * | groupComboBox |
| QLabel * | skelLabel |
| QCheckBox * | skelCheckBox |
| QListView * | groupsListView |
| QStringList | groupMembers |
| QString | pictureLocation |
| QImage | userImage |
| int | groupID |
| int | userID |
| int | vm |
|
|
Definition at line 46 of file userdialog.h. |
|
||||||||||||||||||||||||
|
UserDialog constructor. Setup the dialog, fill the groupComboBox & groupsListView with all groups. Definition at line 37 of file userdialog.cpp. References accounts, QValueList< T >::begin(), QValueList< T >::end(), QString::find(), Passwd::gr_name, groupComboBox, groupsListView, Passwd::groupStringList, myTabWidget, setupTab1(), setupTab2(), QPEApplication::showDialog(), QStringList::sort(), Passwd::splitGroupEntry(), and vm. Referenced by addUser(), and editUser(). |
|
|
Empty destructor. Definition at line 64 of file userdialog.cpp. |
|
|
"OK" has been clicked. Verify some information before closing the dialog. Definition at line 455 of file userdialog.cpp. References loginLineEdit. |
|
||||||||||||
|
Static function that creates the userinfo dialog. The user will be prompted to add a user.
Definition at line 211 of file userdialog.cpp. References accounts, Passwd::addGroupMember(), Passwd::addUser(), d, QDir::exists(), Passwd::findGroup(), Passwd::findUser(), gecosLineEdit, Passwd::gr_gid, groupComboBox, groupID, groupsListView, Opie::ODevice::inst(), QString::latin1(), loginLineEdit, QDir::mkdir(), QString::number(), oendl, owarn, passwordLineEdit, Passwd::pw_dir, Passwd::pw_gid, Passwd::pw_name, Passwd::pw_uid, QPEApplication::qpeDir(), shellComboBox, skelCheckBox, QString::sprintf(), Opie::Core::System_OpenZaurus, tr, uidLineEdit, UserDialog(), userID, userImage, and VIEWMODE_NEW. Referenced by UserConfig::addUser(). |
|
|
This slot is called when the usericon is clicked, this loads (should) the iconselector. Definition at line 470 of file userdialog.cpp. References OFileSelector::EXTENDED, OFileDialog::getOpenFileName(), QString::isEmpty(), QString::null, picturePushButton, and userImage. Referenced by setupTab1(). |
|
|
Deletes the user account.
Definition at line 305 of file userdialog.cpp. References accounts, Passwd::delUser(), and Passwd::findUser(). Referenced by UserConfig::delUser(). |
|
|
This displays a confirmation dialog wether a user should be deleted or not. (And also deletes the account)
Definition at line 331 of file userdialog.cpp. References accounts, Passwd::addGroupMember(), QValueList< T >::begin(), crypt(), Passwd::crypt_make_salt(), d, Passwd::delGroupMember(), QValueList< T >::end(), QDir::exists(), Passwd::findGroup(), Passwd::findUser(), gecosLineEdit, Passwd::gr_gid, Passwd::gr_name, QStringList::grep(), groupComboBox, groupsListView, Passwd::groupStringList, i, loginLineEdit, QDir::mkdir(), QString::number(), oendl, owarn, passwordLineEdit, Passwd::pw_gecos, Passwd::pw_gid, Passwd::pw_name, Passwd::pw_passwd, Passwd::pw_shell, Passwd::pw_uid, QPEApplication::qpeDir(), shellComboBox, tr, uidLineEdit, Passwd::updateUser(), UserDialog(), userImage, and VIEWMODE_EDIT. Referenced by UserConfig::editUser(). |
|
|
Creates the first tab, all userinfo is here. Definition at line 71 of file userdialog.cpp. References clickedPicture(), gecosLineEdit, groupComboBox, Opie::Core::OResource::loadPixmap(), loginLineEdit, myTabWidget, passwordLineEdit, picturePushButton, shellComboBox, skelCheckBox, skelLabel, uidLineEdit, VIEWMODE_NEW, and vm. Referenced by UserDialog(). |
|
|
Creates the second tab containing additional groups for the user. Definition at line 181 of file userdialog.cpp. References groupsListView, and myTabWidget. Referenced by UserDialog(). |
|
|
Definition at line 32 of file userdialog.h. Referenced by addUser(), editUser(), and setupTab1(). |
|
|
Definition at line 35 of file userdialog.h. Referenced by addUser(), editUser(), setupTab1(), and UserDialog(). |
|
|
Definition at line 43 of file userdialog.h. Referenced by addUser(). |
|
|
Definition at line 40 of file userdialog.h. |
|
|
Definition at line 38 of file userdialog.h. Referenced by addUser(), editUser(), setupTab2(), and UserDialog(). |
|
|
Definition at line 30 of file userdialog.h. Referenced by accept(), addUser(), editUser(), and setupTab1(). |
|
|
Definition at line 26 of file userdialog.h. Referenced by setupTab1(), setupTab2(), and UserDialog(). |
|
|
Definition at line 33 of file userdialog.h. Referenced by addUser(), editUser(), and setupTab1(). |
|
|
Definition at line 41 of file userdialog.h. |
|
|
Definition at line 29 of file userdialog.h. Referenced by clickedPicture(), and setupTab1(). |
|
|
Definition at line 34 of file userdialog.h. Referenced by addUser(), editUser(), and setupTab1(). |
|
|
Definition at line 37 of file userdialog.h. Referenced by addUser(), and setupTab1(). |
|
|
Definition at line 36 of file userdialog.h. Referenced by setupTab1(). |
|
|
Definition at line 31 of file userdialog.h. Referenced by addUser(), editUser(), and setupTab1(). |
|
|
Definition at line 44 of file userdialog.h. Referenced by addUser(). |
|
|
Definition at line 42 of file userdialog.h. Referenced by addUser(), clickedPicture(), and editUser(). |
|
|
Definition at line 45 of file userdialog.h. Referenced by setupTab1(), and UserDialog(). |
1.4.2