summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf/passwd.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /filesharing/advanced/kcm_sambaconf/passwd.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'filesharing/advanced/kcm_sambaconf/passwd.cpp')
-rw-r--r--filesharing/advanced/kcm_sambaconf/passwd.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/passwd.cpp b/filesharing/advanced/kcm_sambaconf/passwd.cpp
index 78e9c8ad..eb3fe5b1 100644
--- a/filesharing/advanced/kcm_sambaconf/passwd.cpp
+++ b/filesharing/advanced/kcm_sambaconf/passwd.cpp
@@ -57,16 +57,16 @@ UnixUserList getUnixUserList()
return list;
}
-QStringList getUnixUsers()
+TQStringList getUnixUsers()
{
- QStringList list;
+ TQStringList list;
struct passwd* p;
while ((p = getpwent()))
{
if (p)
- list.append(QString(p->pw_name));
+ list.append(TQString(p->pw_name));
}
endpwent();
@@ -76,16 +76,16 @@ QStringList getUnixUsers()
return list;
}
-QStringList getUnixGroups()
+TQStringList getUnixGroups()
{
- QStringList list;
+ TQStringList list;
struct group* g;
while ((g = getgrent()))
{
if (g)
- list.append(QString(g->gr_name));
+ list.append(TQString(g->gr_name));
}
endgrent();
@@ -95,7 +95,7 @@ QStringList getUnixGroups()
return list;
}
-int getUserUID(const QString & name)
+int getUserUID(const TQString & name)
{
if (name.isNull()) return -1;
@@ -109,7 +109,7 @@ int getUserUID(const QString & name)
return -1;
}
-int getUserGID(const QString & name)
+int getUserGID(const TQString & name)
{
if (name.isNull()) return -1;
@@ -123,7 +123,7 @@ int getUserGID(const QString & name)
return -1;
}
-int getGroupGID(const QString & name)
+int getGroupGID(const TQString & name)
{
if (name.isNull()) return -1;
@@ -137,19 +137,19 @@ int getGroupGID(const QString & name)
return -1;
}
-bool isUserInGroup(const QString & user, const QString & group) {
+bool isUserInGroup(const TQString & user, const TQString & group) {
struct group* g;
while ((g = getgrent()))
{
- if (g && QString(g->gr_name) == group) {
+ if (g && TQString(g->gr_name) == group) {
char** names = g->gr_mem;
int i = 0;
char* name = names[0];
while (name != 0L) {
i++;
- if (QString(name) == user) {
+ if (TQString(name) == user) {
endgrent();
return true;
}