author | umopapisdn <umopapisdn> | 2002-10-15 11:25:36 (UTC) |
---|---|---|
committer | umopapisdn <umopapisdn> | 2002-10-15 11:25:36 (UTC) |
commit | b6fb59110629634056be3dd5c3091e6ed3271fd0 (patch) (unidiff) | |
tree | e5ea61782d46b6fbc599d4b27e443d5002035958 /noncore/settings/usermanager/userdialog.cpp | |
parent | 42ff9036e791321b4938d80c5d8386a76391f56b (diff) | |
download | opie-b6fb59110629634056be3dd5c3091e6ed3271fd0.zip opie-b6fb59110629634056be3dd5c3091e6ed3271fd0.tar.gz opie-b6fb59110629634056be3dd5c3091e6ed3271fd0.tar.bz2 |
System checking for OpenZaurus is now done through libopie (ODevice::system)
Diffstat (limited to 'noncore/settings/usermanager/userdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/usermanager/userdialog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/settings/usermanager/userdialog.cpp b/noncore/settings/usermanager/userdialog.cpp index 42a9144..36bcf86 100644 --- a/noncore/settings/usermanager/userdialog.cpp +++ b/noncore/settings/usermanager/userdialog.cpp | |||
@@ -21,12 +21,16 @@ | |||
21 | #include <sys/wait.h> | 21 | #include <sys/wait.h> |
22 | #include <unistd.h> | 22 | #include <unistd.h> |
23 | #include <signal.h> | 23 | #include <signal.h> |
24 | 24 | ||
25 | #include "passwd.h" | 25 | #include "passwd.h" |
26 | 26 | ||
27 | #include <opie/odevice.h> | ||
28 | using namespace Opie; | ||
29 | |||
30 | |||
27 | /** | 31 | /** |
28 | * UserDialog constructor. Setup the dialog, fill the groupComboBox & groupsListView with all groups. | 32 | * UserDialog constructor. Setup the dialog, fill the groupComboBox & groupsListView with all groups. |
29 | * | 33 | * |
30 | */ | 34 | */ |
31 | UserDialog::UserDialog(QWidget* parent, const char* name, bool modal, WFlags fl) : QDialog(parent, name, modal, fl) { | 35 | UserDialog::UserDialog(QWidget* parent, const char* name, bool modal, WFlags fl) : QDialog(parent, name, modal, fl) { |
32 | QVBoxLayout *layout = new QVBoxLayout(this); | 36 | QVBoxLayout *layout = new QVBoxLayout(this); |
@@ -187,13 +191,14 @@ void UserDialog::setupTab2() { | |||
187 | * @return <code>true</code> if the user was successfully added, otherwise <code>false</code>. | 191 | * @return <code>true</code> if the user was successfully added, otherwise <code>false</code>. |
188 | * | 192 | * |
189 | */ | 193 | */ |
190 | bool UserDialog::addUser(int uid, int gid) { | 194 | bool UserDialog::addUser(int uid, int gid) { |
191 | QCheckListItem *temp; | 195 | QCheckListItem *temp; |
192 | QFile ozTest; | 196 | QFile ozTest; |
193 | int oz=ozTest.exists("/etc/oz_version"); | 197 | int oz=false; |
198 | if(ODevice::inst()->system()==System_OpenZaurus) oz=true; | ||
194 | UserDialog *adduserDialog=new UserDialog(); | 199 | UserDialog *adduserDialog=new UserDialog(); |
195 | adduserDialog->setCaption(tr("Add User")); | 200 | adduserDialog->setCaption(tr("Add User")); |
196 | adduserDialog->userID=uid;// Set next available UID as default uid. | 201 | adduserDialog->userID=uid;// Set next available UID as default uid. |
197 | adduserDialog->groupID=gid;// Set next available GID as default gid. | 202 | adduserDialog->groupID=gid;// Set next available GID as default gid. |
198 | // Insert default group into groupComboBox | 203 | // Insert default group into groupComboBox |
199 | adduserDialog->groupComboBox->insertItem("<create new group>",0); | 204 | adduserDialog->groupComboBox->insertItem("<create new group>",0); |