summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf/passwd.cpp
diff options
context:
space:
mode:
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;
}