From e985f7e545f4739493965aad69bbecb136dc9346 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 16 Jun 2011 19:02:47 +0000 Subject: TQt4 port kdewebdev This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/qextfileinfo.h | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'lib/qextfileinfo.h') diff --git a/lib/qextfileinfo.h b/lib/qextfileinfo.h index 96d418fb..ca51123b 100644 --- a/lib/qextfileinfo.h +++ b/lib/qextfileinfo.h @@ -9,8 +9,8 @@ (at your option) any later version. */ -#ifndef _QEXTFILEINFO_H_ -#define _QEXTFILEINFO_H_ +#ifndef _TQEXTFILEINFO_H_ +#define _TQEXTFILEINFO_H_ #include #include @@ -22,12 +22,13 @@ #include #include -class QExtFileInfo:public QObject +class TQExtFileInfo:public TQObject { Q_OBJECT + TQ_OBJECT public: - QExtFileInfo() {}; - ~QExtFileInfo() {}; + TQExtFileInfo() {}; + ~TQExtFileInfo() {}; /** * Works like TQDir::canonicalPath, but it does not return an empty @@ -37,7 +38,7 @@ public: * Example: * /home/user/foo points to /mnt/foo * /home/user/foo/foo2 does not exists - * QExtFileInfo::canonicalPath("/home/user/foo/foo2/") will return + * TQExtFileInfo::canonicalPath("/home/user/foo/foo2/") will return * /mnt/foo/foo2/ . * @param path the path to resolve * @return the canonical path (symlinks resolved) @@ -54,21 +55,21 @@ public: static KURL toRelative(const KURL& urlToConvert, const KURL& baseURL, bool resolveSymlinks = true); /** Convert relative url to absolute, based on baseURL. */ static KURL toAbsolute(const KURL& urlToConvert, const KURL& baseURL); - /** Returns a recursive list of files under path, matching the specified file mask. */ - static KURL::List allFiles( const KURL& path, const TQString &mask, TQWidget *window); - /** Returns a recursive list of files under path, matching the specified file mask. + /** Returns a recursive list of files under path, matching the specified file tqmask. */ + static KURL::List allFiles( const KURL& path, const TQString &tqmask, TQWidget *window); + /** Returns a recursive list of files under path, matching the specified file tqmask. The returned urls are relative to path. */ - static KURL::List allFilesRelative( const KURL& path, const TQString &mask, TQWidget *window, bool resolveSymlinks = true); - /** Returns a recursive list of files under path, matching the specified file mask. + static KURL::List allFilesRelative( const KURL& path, const TQString &tqmask, TQWidget *window, bool resolveSymlinks = true); + /** Returns a recursive list of files under path, matching the specified file tqmask. The returned list contains detailed information about each url. The user should delete the KFileItems and clear the dict after they are not needed. */ - static TQDict allFilesDetailed(const KURL& path, const TQString &mask, TQWidget *window); + static TQDict allFilesDetailed(const KURL& path, const TQString &tqmask, TQWidget *window); /** Creates a dir if don't exists. */ static bool createDir(const KURL & path, TQWidget *window); - /** Returns the parent directory of dir. */ + /** Returns the tqparent directory of dir. */ static KURL cdUp(const KURL &dir); /** Returns the filename from a path string. */ static TQString shortName(const TQString &fname ); @@ -83,7 +84,7 @@ public: /** Synchronous copy, like NetAccess::file_copy in KDE 3.2, just that it doesn't show a progress dialog */ static bool copy( const KURL& src, const KURL& dest, int permissions=-1, bool overwrite=false, bool resume=false, TQWidget* window = 0L ); - /** Reenters the event loop. You must call qApp->exit_loop() to exit it. */ + /** Reenters the event loop. You must call tqApp->exit_loop() to exit it. */ void enter_loop(); private: @@ -92,9 +93,9 @@ private: bool internalExists(const KURL& url, bool readingOnly, TQWidget *window); bool internalCopy(const KURL& src, const KURL& target, int permissions, bool overwrite, bool resume, TQWidget* window); - KURL::List allFilesInternal(const KURL& startURL, const TQString& mask, TQWidget *window); - TQDict allFilesDetailedInternal(const KURL& startURL, const TQString& mask, TQWidget *window); - KURL::List allLocalFiles(const TQString& startPath, const TQString& mask); + KURL::List allFilesInternal(const KURL& startURL, const TQString& tqmask, TQWidget *window); + TQDict allFilesDetailedInternal(const KURL& startURL, const TQString& tqmask, TQWidget *window); + KURL::List allLocalFiles(const TQString& startPath, const TQString& tqmask); bool bJobOK; static TQString lastErrorMsg; -- cgit v1.2.3