summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/nfs/nfsentry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filesharing/advanced/nfs/nfsentry.cpp')
-rw-r--r--filesharing/advanced/nfs/nfsentry.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/filesharing/advanced/nfs/nfsentry.cpp b/filesharing/advanced/nfs/nfsentry.cpp
index be741d0c..207e0eae 100644
--- a/filesharing/advanced/nfs/nfsentry.cpp
+++ b/filesharing/advanced/nfs/nfsentry.cpp
@@ -21,11 +21,11 @@
#include "nfsentry.h"
-NFSHost::NFSHost(const QString & hostString)
+NFSHost::NFSHost(const TQString & hostString)
{
readonly = true;
- QString s = hostString;
+ TQString s = hostString;
int l = s.find('(');
int r = s.find(')');
@@ -42,7 +42,7 @@ NFSHost::NFSHost(const QString & hostString)
if (l>=0 && r>=0)
{
- QString params = s.mid(l+1,r-l-1);
+ TQString params = s.mid(l+1,r-l-1);
parseParamsString(params);
}
@@ -77,7 +77,7 @@ void NFSHost::initParams()
}
-void NFSHost::parseParamsString(const QString & s)
+void NFSHost::parseParamsString(const TQString & s)
{
if (s.isEmpty())
@@ -85,8 +85,8 @@ void NFSHost::parseParamsString(const QString & s)
int i;
- QString rest = s;
- QString p;
+ TQString rest = s;
+ TQString p;
do
{
@@ -106,9 +106,9 @@ void NFSHost::parseParamsString(const QString & s)
}
-QString NFSHost::paramString() const
+TQString NFSHost::paramString() const
{
- QString s;
+ TQString s;
if (!readonly) s+="rw,";
if (!rootSquash) s+="no_root_squash,";
@@ -125,10 +125,10 @@ QString NFSHost::paramString() const
if (!hide) s+="nohide,";
if (anongid!=65534)
- s+=QString("anongid=%1,").arg(anongid);
+ s+=TQString("anongid=%1,").arg(anongid);
if (anonuid!=65534)
- s+=QString("anonuid=%1,").arg(anonuid);
+ s+=TQString("anonuid=%1,").arg(anonuid);
// get rid of the last ','
s.truncate(s.length()-1);
@@ -136,9 +136,9 @@ QString NFSHost::paramString() const
return s;
}
-QString NFSHost::toString() const
+TQString NFSHost::toString() const
{
- QString s = name;
+ TQString s = name;
s+='(';
s+=paramString();
@@ -173,9 +173,9 @@ bool NFSHost::isPublic() const {
return name == "*";
}
-void NFSHost::setParam(const QString & s)
+void NFSHost::setParam(const TQString & s)
{
- QString p = s.lower();
+ TQString p = s.lower();
if (p=="ro") {
readonly = true;
@@ -256,10 +256,10 @@ void NFSHost::setParam(const QString & s)
// get anongid or anonuid
if (i>-1)
{
- QString name = p.left(i).lower();
+ TQString name = p.left(i).lower();
kdDebug(5009) << name << endl;
- QString value = p.mid(i+1);
+ TQString value = p.mid(i+1);
kdDebug(5009) << value << endl;
if (name=="anongid")
@@ -271,7 +271,7 @@ void NFSHost::setParam(const QString & s)
}
-NFSEntry::NFSEntry(const QString & path)
+NFSEntry::NFSEntry(const TQString & path)
{
_hosts.setAutoDelete(true);
setPath(path);
@@ -302,9 +302,9 @@ void NFSEntry::copyFrom(NFSEntry* entry) {
}
}
-QString NFSEntry::toString() const
+TQString NFSEntry::toString() const
{
- QString s = _path.stripWhiteSpace();
+ TQString s = _path.stripWhiteSpace();
if (_path.find(' ') > -1) {
s = '"'+s+'"';
@@ -338,7 +338,7 @@ void NFSEntry::removeHost(NFSHost * host)
_hosts.remove(host);
}
-NFSHost* NFSEntry::getHostByName(const QString & name) const
+NFSHost* NFSEntry::getHostByName(const TQString & name) const
{
HostIterator it = getHosts();
NFSHost* host;
@@ -360,7 +360,7 @@ NFSHost* NFSEntry::getPublicHost() const
if (result)
return result;
- return getHostByName(QString::null);
+ return getHostByName(TQString::null);
}
@@ -369,12 +369,12 @@ HostIterator NFSEntry::getHosts() const
return HostIterator(_hosts);
}
-QString NFSEntry::path() const
+TQString NFSEntry::path() const
{
return _path;
}
-void NFSEntry::setPath(const QString & path)
+void NFSEntry::setPath(const TQString & path)
{
_path = path;
}