summaryrefslogtreecommitdiffstats
path: root/kuser/kusersystem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kuser/kusersystem.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kuser/kusersystem.cpp')
-rw-r--r--kuser/kusersystem.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kuser/kusersystem.cpp b/kuser/kusersystem.cpp
index ef0247f..8c67fcb 100644
--- a/kuser/kusersystem.cpp
+++ b/kuser/kusersystem.cpp
@@ -25,7 +25,7 @@
#include <shadow.h>
#endif
-#include <qstring.h>
+#include <tqstring.h>
#include <kmessagebox.h>
#include <kdebug.h>
@@ -70,25 +70,25 @@ bool KUserSystem::loadpwd()
{
passwd *p;
KU::KUser *tmpKU = 0;
- QString tmp;
+ TQString tmp;
setpwent(); //This should be enough for BSDs
while ((p = getpwent()) != NULL) {
tmpKU = new KU::KUser();
tmpKU->setUID(p->pw_uid);
tmpKU->setGID(p->pw_gid);
- tmpKU->setName(QString::fromLocal8Bit(p->pw_name));
- tmp = QString::fromLocal8Bit( p->pw_passwd );
+ tmpKU->setName(TQString::fromLocal8Bit(p->pw_name));
+ tmp = TQString::fromLocal8Bit( p->pw_passwd );
if ( tmp != "x" && tmp != "*" && !tmp.startsWith("!") )
tmpKU->setDisabled( false );
else
tmpKU->setDisabled( true );
if ( tmp.startsWith("!") ) tmp.remove(0, 1);
tmpKU->setPwd( tmp );
- tmpKU->setHomeDir(QString::fromLocal8Bit(p->pw_dir));
- tmpKU->setShell(QString::fromLocal8Bit(p->pw_shell));
+ tmpKU->setHomeDir(TQString::fromLocal8Bit(p->pw_dir));
+ tmpKU->setShell(TQString::fromLocal8Bit(p->pw_shell));
#if defined(__FreeBSD__) || defined(__bsdi__)
- tmpKU->setClass(QString::fromLatin1(p->pw_class));
+ tmpKU->setClass(TQString::fromLatin1(p->pw_class));
tmpKU->setLastChange(p->pw_change);
tmpKU->setExpire(p->pw_expire);
#endif
@@ -109,16 +109,16 @@ bool KUserSystem::loadsdw()
#ifdef HAVE_SHADOW
struct spwd *spw;
KU::KUser *up = NULL;
- QString tmp;
+ TQString tmp;
setspent();
while ((spw = getspent())) { // read a shadow password structure
- if ((up = lookup(QString::fromLocal8Bit(spw->sp_namp))) == NULL) {
+ if ((up = lookup(TQString::fromLocal8Bit(spw->sp_namp))) == NULL) {
continue;
}
- tmp = QString::fromLocal8Bit( spw->sp_pwdp );
+ tmp = TQString::fromLocal8Bit( spw->sp_pwdp );
if ( tmp.startsWith("!!") || tmp == "*" ) {
up->setDisabled( true );
tmp.remove( 0, 2 );