summaryrefslogtreecommitdiffstats
path: root/lib/qextfileinfo.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /lib/qextfileinfo.h
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/qextfileinfo.h')
-rw-r--r--lib/qextfileinfo.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/lib/qextfileinfo.h b/lib/qextfileinfo.h
index dd05cb41..96d418fb 100644
--- a/lib/qextfileinfo.h
+++ b/lib/qextfileinfo.h
@@ -17,10 +17,10 @@
#include <kurl.h>
#include <kfileitem.h>
-#include <qobject.h>
-#include <qptrlist.h>
-#include <qdict.h>
-#include <qregexp.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
+#include <tqdict.h>
+#include <tqregexp.h>
class QExtFileInfo:public QObject
{
@@ -30,7 +30,7 @@ public:
~QExtFileInfo() {};
/**
- * Works like QDir::canonicalPath, but it does not return an empty
+ * Works like TQDir::canonicalPath, but it does not return an empty
* string if the path does not exists, but tries to find if there
* is a part of the path which exists and resolv the symlinks for
* that part. The ending slash is kept in the result.
@@ -42,36 +42,36 @@ public:
* @param path the path to resolve
* @return the canonical path (symlinks resolved)
*/
- static QString canonicalPath(const QString& path);
+ static TQString canonicalPath(const TQString& path);
/**
- * Similar to QDir::homeDirPath(), but returns a resolved path.
+ * Similar to TQDir::homeDirPath(), but returns a resolved path.
*
*/
- static QString homeDirPath();
+ static TQString homeDirPath();
/** Returns the relative url of urlToConvert to baseURL. */
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 QString &mask, QWidget *window);
+ 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.
The returned urls are relative to path.
*/
- static KURL::List allFilesRelative( const KURL& path, const QString &mask, QWidget *window, bool resolveSymlinks = true);
+ 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.
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 QDict<KFileItem> allFilesDetailed(const KURL& path, const QString &mask, QWidget *window);
+ static TQDict<KFileItem> allFilesDetailed(const KURL& path, const TQString &mask, TQWidget *window);
/** Creates a dir if don't exists. */
- static bool createDir(const KURL & path, QWidget *window);
+ static bool createDir(const KURL & path, TQWidget *window);
/** Returns the parent directory of dir. */
static KURL cdUp(const KURL &dir);
/** Returns the filename from a path string. */
- static QString shortName(const QString &fname );
+ static TQString shortName(const TQString &fname );
/** Returns the path to the url. */
static KURL path(const KURL &);
/** Returns the user's home directory as an url. */
@@ -79,31 +79,31 @@ public:
/** A slightly better working alternative of KIO::NetAccess::exists().
Checks for the existance of the url. readingOnly is true if we check if
the url is readable, and false if we check if it is writable.*/
- static bool exists(const KURL& url, bool readingOnly, QWidget *window);
+ static bool exists(const KURL& url, bool readingOnly, TQWidget *window);
/** 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, QWidget* window = 0L );
+ bool overwrite=false, bool resume=false, TQWidget* window = 0L );
/** Reenters the event loop. You must call qApp->exit_loop() to exit it. */
void enter_loop();
private:
/** Internal methods called by the above ones. They start their own event loop and
exit when the even loop is exited */
- bool internalExists(const KURL& url, bool readingOnly, QWidget *window);
+ bool internalExists(const KURL& url, bool readingOnly, TQWidget *window);
bool internalCopy(const KURL& src, const KURL& target, int permissions,
- bool overwrite, bool resume, QWidget* window);
- KURL::List allFilesInternal(const KURL& startURL, const QString& mask, QWidget *window);
- QDict<KFileItem> allFilesDetailedInternal(const KURL& startURL, const QString& mask, QWidget *window);
- KURL::List allLocalFiles(const QString& startPath, const QString& mask);
+ bool overwrite, bool resume, TQWidget* window);
+ KURL::List allFilesInternal(const KURL& startURL, const TQString& mask, TQWidget *window);
+ TQDict<KFileItem> allFilesDetailedInternal(const KURL& startURL, const TQString& mask, TQWidget *window);
+ KURL::List allLocalFiles(const TQString& startPath, const TQString& mask);
bool bJobOK;
- static QString lastErrorMsg;
+ static TQString lastErrorMsg;
KIO::UDSEntry m_entry;
KURL::List dirListItems;
- QDict<KFileItem> detailedDirListItems;
- QPtrList<QRegExp> lstFilters;
+ TQDict<KFileItem> detailedDirListItems;
+ TQPtrList<TQRegExp> lstFilters;
int m_listJobCount;
- QString m_listStartURL;
+ TQString m_listStartURL;
private slots:
void slotListResult(KIO::Job *job);