diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
commit | aa3a1ca934bc541bddd3fa136a85f106f7da266e (patch) | |
tree | 9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kuser/kgroup.cpp | |
parent | b10cf7066791a2f362495890cd50c984e8025412 (diff) | |
download | tdeadmin-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/kgroup.cpp')
-rw-r--r-- | kuser/kgroup.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kuser/kgroup.cpp b/kuser/kgroup.cpp index 44fc31c..77fcc91 100644 --- a/kuser/kgroup.cpp +++ b/kuser/kgroup.cpp @@ -18,7 +18,7 @@ * Boston, MA 02110-1301, USA. **/ -#include <qstring.h> +#include <tqstring.h> #include <kdebug.h> @@ -28,7 +28,7 @@ KU::KGroup::KGroup() { - pwd = QString::fromLatin1("*"); + pwd = TQString::fromLatin1("*"); gid = 0; type = 2; caps = 0; @@ -68,12 +68,12 @@ int KU::KGroup::getCaps() return caps; } -const QString &KU::KGroup::getName() const +const TQString &KU::KGroup::getName() const { return name; } -const QString &KU::KGroup::getPwd() const +const TQString &KU::KGroup::getPwd() const { return pwd; } @@ -93,22 +93,22 @@ int KU::KGroup::getType() const return type; } -const QString &KU::KGroup::getDisplayName() const +const TQString &KU::KGroup::getDisplayName() const { return displayname; } -const QString &KU::KGroup::getDesc() const +const TQString &KU::KGroup::getDesc() const { return desc; } -void KU::KGroup::setName(const QString &data) +void KU::KGroup::setName(const TQString &data) { name = data; } -void KU::KGroup::setPwd(const QString &data) +void KU::KGroup::setPwd(const TQString &data) { pwd = data; } @@ -128,22 +128,22 @@ void KU::KGroup::setType(int data) type = data; } -void KU::KGroup::setDisplayName(const QString &data) +void KU::KGroup::setDisplayName(const TQString &data) { displayname = data; } -void KU::KGroup::setDesc(const QString &data) +void KU::KGroup::setDesc(const TQString &data) { desc = data; } -bool KU::KGroup::lookup_user(const QString &name) +bool KU::KGroup::lookup_user(const TQString &name) { return (u.find(name) != u.end()); } -bool KU::KGroup::addUser(const QString &name) +bool KU::KGroup::addUser(const TQString &name) { if (!lookup_user(name)) { u.append(name); @@ -152,7 +152,7 @@ bool KU::KGroup::addUser(const QString &name) return false; } -bool KU::KGroup::removeUser(const QString &name) +bool KU::KGroup::removeUser(const TQString &name) { return ( u.remove(name) > 0 ); } @@ -162,7 +162,7 @@ uint KU::KGroup::count() const return u.count(); } -QString KU::KGroup::user(uint i) +TQString KU::KGroup::user(uint i) { return u[i]; } @@ -178,10 +178,10 @@ KU::KGroups::KGroups(KUserPrefsBase *cfg) mCfg = cfg; } -KU::KGroup *KU::KGroups::lookup(const QString &name) +KU::KGroup *KU::KGroups::lookup(const TQString &name) { KU::KGroup *group; - QPtrListIterator<KU::KGroup> it( mGroups ); + TQPtrListIterator<KU::KGroup> it( mGroups ); while ( (group = it.current()) != 0 && group->getName() != name ) ++it; return group; @@ -190,7 +190,7 @@ KU::KGroup *KU::KGroups::lookup(const QString &name) KU::KGroup *KU::KGroups::lookup(gid_t gid) { KU::KGroup *group; - QPtrListIterator<KU::KGroup> it( mGroups ); + TQPtrListIterator<KU::KGroup> it( mGroups ); while ( (group = it.current()) != 0 && group->getGID() != gid ) ++it; return group; @@ -199,16 +199,16 @@ KU::KGroup *KU::KGroups::lookup(gid_t gid) KU::KGroup *KU::KGroups::lookup_sam( const SID &sid ) { KU::KGroup *group; - QPtrListIterator<KU::KGroup> it( mGroups ); + TQPtrListIterator<KU::KGroup> it( mGroups ); while ( (group = it.current()) != 0 && group->getSID() != sid ) ++it; return group; } -KU::KGroup *KU::KGroups::lookup_sam( const QString &sid ) +KU::KGroup *KU::KGroups::lookup_sam( const TQString &sid ) { KU::KGroup *group; - QPtrListIterator<KU::KGroup> it( mGroups ); + TQPtrListIterator<KU::KGroup> it( mGroups ); while ( (group = it.current()) != 0 && group->getSID().getSID() != sid ) ++it; return group; @@ -217,7 +217,7 @@ KU::KGroup *KU::KGroups::lookup_sam( const QString &sid ) KU::KGroup *KU::KGroups::lookup_sam( uint rid ) { KU::KGroup *group; - QPtrListIterator<KU::KGroup> it( mGroups ); + TQPtrListIterator<KU::KGroup> it( mGroups ); while ( (group = it.current()) != 0 && group->getSID().getRID() != rid ) ++it; return group; @@ -270,7 +270,7 @@ uint KU::KGroups::count() const return mGroups.count(); } -const QString &KU::KGroups::getDOMSID() const +const TQString &KU::KGroups::getDOMSID() const { return domsid; } |