diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kpf/src/Resource.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-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 'kpf/src/Resource.cpp')
-rw-r--r-- | kpf/src/Resource.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kpf/src/Resource.cpp b/kpf/src/Resource.cpp index d5e77072..6c3dad91 100644 --- a/kpf/src/Resource.cpp +++ b/kpf/src/Resource.cpp @@ -21,11 +21,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include <qstringlist.h> -#include <qdir.h> -#include <qfile.h> -#include <qfileinfo.h> -#include <qregexp.h> +#include <tqstringlist.h> +#include <tqdir.h> +#include <tqfile.h> +#include <tqfileinfo.h> +#include <tqregexp.h> #include <kglobal.h> #include <kmimetype.h> @@ -50,17 +50,17 @@ namespace KPF { } - QString root; + TQString root; FileType fileType; - QString path; - QFile file; - QFileInfo fileInfo; - QDir dir; + TQString path; + TQFile file; + TQFileInfo fileInfo; + TQDir dir; uint size; bool sizeCalculated; uint offset; - QByteArray html; + TQByteArray html; }; Resource::Resource() @@ -75,7 +75,7 @@ namespace KPF } void - Resource::setPath(const QString & root, const QString & relativePath) + Resource::setPath(const TQString & root, const TQString & relativePath) { kpfDebug << "setPath(`" << root << "',`" << relativePath << "'" << endl; @@ -99,13 +99,13 @@ namespace KPF // Does the path actually point to a directory ? - if (QFileInfo(d->root + d->path).isDir()) + if (TQFileInfo(d->root + d->path).isDir()) { kpfDebug << "Path points to directory" << endl; // Does an index.html exist in that directory ? - if (QFileInfo(d->root + d->path + "index.html").exists()) + if (TQFileInfo(d->root + d->path + "index.html").exists()) { kpfDebug << "Found index.html" << endl; @@ -129,7 +129,7 @@ namespace KPF kpfDebug << "NOT Directory requested" << endl; } - kpfDebug << "QFileInfo::setFile(`" << d->root << "' + `" << d->path << "'" << endl; + kpfDebug << "TQFileInfo::setFile(`" << d->root << "' + `" << d->path << "'" << endl; d->fileInfo.setFile(d->root + d->path); } @@ -296,18 +296,18 @@ namespace KPF if (d->fileInfo.isSymLink()) return true; - QString path(d->fileInfo.dirPath()); + TQString path(d->fileInfo.dirPath()); - QStringList l(QStringList::split('/', path)); + TQStringList l(TQStringList::split('/', path)); - QString testPath; + TQString testPath; - for (QStringList::ConstIterator it(l.begin()); it != l.end(); ++it) + for (TQStringList::ConstIterator it(l.begin()); it != l.end(); ++it) { testPath += '/'; testPath += *it; - if (QFileInfo(testPath).isSymLink()) + if (TQFileInfo(testPath).isSymLink()) return true; } |