summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/nfs/nfsentry.h
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/nfs/nfsentry.h
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/nfs/nfsentry.h')
-rw-r--r--filesharing/advanced/nfs/nfsentry.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/filesharing/advanced/nfs/nfsentry.h b/filesharing/advanced/nfs/nfsentry.h
index 42f3c5c5..43071504 100644
--- a/filesharing/advanced/nfs/nfsentry.h
+++ b/filesharing/advanced/nfs/nfsentry.h
@@ -21,14 +21,14 @@
#define NFSENTRY_H
-#include <qstring.h>
-#include <qptrlist.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
class NFSHost
{
public:
- NFSHost(const QString & hostString);
+ NFSHost(const TQString & hostString);
~NFSHost();
NFSHost();
@@ -45,55 +45,55 @@ public:
int anonuid;
int anongid;
- QString name;
+ TQString name;
- QString paramString() const;
- QString toString() const;
+ TQString paramString() const;
+ TQString toString() const;
bool isPublic() const;
/** returns a copy of this host */
NFSHost* copy() const;
protected:
- void parseParamsString(const QString &);
- void setParam(const QString &);
+ void parseParamsString(const TQString &);
+ void setParam(const TQString &);
void initParams();
};
-typedef QPtrList<NFSHost> HostList;
-typedef QPtrListIterator<NFSHost> HostIterator;
+typedef TQPtrList<NFSHost> HostList;
+typedef TQPtrListIterator<NFSHost> HostIterator;
class NFSLine {
public:
- virtual QString toString() const = 0;
+ virtual TQString toString() const = 0;
};
-typedef QPtrList<NFSLine> NFSLineList;
-typedef QPtrListIterator<NFSLine> NFSLineIterator;
+typedef TQPtrList<NFSLine> NFSLineList;
+typedef TQPtrListIterator<NFSLine> NFSLineIterator;
class NFSEmptyLine : public NFSLine {
public:
- virtual QString toString() const { return QString::fromLatin1("\n"); }
+ virtual TQString toString() const { return TQString::fromLatin1("\n"); }
virtual ~NFSEmptyLine() {};
};
class NFSComment : public NFSLine {
public:
- NFSComment(const QString & s) { comment = s; }
+ NFSComment(const TQString & s) { comment = s; }
virtual ~NFSComment() {};
- QString comment;
- virtual QString toString() const { return comment; }
+ TQString comment;
+ virtual TQString toString() const { return comment; }
};
class NFSEntry : public NFSLine {
public:
- NFSEntry(const QString & path);
+ NFSEntry(const TQString & path);
virtual ~NFSEntry();
void addHost(NFSHost * host);
void removeHost(NFSHost * host);
- NFSHost* getHostByName(const QString & name) const;
+ NFSHost* getHostByName(const TQString & name) const;
NFSHost* getPublicHost() const;
HostIterator getHosts() const;
@@ -107,14 +107,14 @@ public:
/** removes all hosts */
void clear();
- QString path() const;
- void setPath(const QString &);
+ TQString path() const;
+ void setPath(const TQString &);
- virtual QString toString() const;
+ virtual TQString toString() const;
protected:
HostList _hosts;
- QString _path;
+ TQString _path;
};
#endif