diff options
Diffstat (limited to 'lib/kio-msits/msits.cpp')
-rwxr-xr-x | lib/kio-msits/msits.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/kio-msits/msits.cpp b/lib/kio-msits/msits.cpp index cf7cf27..bea4d79 100755 --- a/lib/kio-msits/msits.cpp +++ b/lib/kio-msits/msits.cpp @@ -29,9 +29,9 @@ #include <kurl.h> #include <kmimemagic.h> -#include <qfile.h> -#include <qbitarray.h> -#include <qvaluevector.h> +#include <tqfile.h> +#include <tqbitarray.h> +#include <tqvaluevector.h> #include "msits.h" #include "libchmurlfactory.h" @@ -60,7 +60,7 @@ extern "C" } } -ProtocolMSITS::ProtocolMSITS (const QCString &pool_socket, const QCString &app_socket) +ProtocolMSITS::ProtocolMSITS (const TQCString &pool_socket, const TQCString &app_socket) : SlaveBase ("kio_msits", pool_socket, app_socket) { m_chmFile = 0; @@ -76,7 +76,7 @@ ProtocolMSITS::~ProtocolMSITS() } // A simple stat() wrapper -static bool isDirectory ( const QString & filename ) +static bool isDirectory ( const TQString & filename ) { return filename[filename.length() - 1] == '/'; } @@ -84,9 +84,9 @@ static bool isDirectory ( const QString & filename ) void ProtocolMSITS::get( const KURL& url ) { - QString htmdata, fileName; + TQString htmdata, fileName; chmUnitInfo ui; - QByteArray buf; + TQByteArray buf; kdDebug() << "kio_msits::get() " << url.path() << endl; @@ -137,11 +137,11 @@ void ProtocolMSITS::get( const KURL& url ) } -bool ProtocolMSITS::parseLoadAndLookup ( const KURL& url, QString& abspath ) +bool ProtocolMSITS::parseLoadAndLookup ( const KURL& url, TQString& abspath ) { kdDebug() << "ProtocolMSITS::parseLoadAndLookup (const KURL&) " << url.path() << endl; - int pos = url.path().find ("::"); + int pos = url.path().tqfind ("::"); if ( pos == -1 ) { @@ -149,7 +149,7 @@ bool ProtocolMSITS::parseLoadAndLookup ( const KURL& url, QString& abspath ) return false; } - QString filename = url.path().left (pos); + TQString filename = url.path().left (pos); abspath = url.path().mid (pos + 2); // skip :: // Some buggy apps add ms-its:/ to the path as well @@ -173,7 +173,7 @@ bool ProtocolMSITS::parseLoadAndLookup ( const KURL& url, QString& abspath ) // First try to open a temporary file chmFile * tmpchm; - if ( (tmpchm = chm_open ( QFile::encodeName (filename))) == 0 ) + if ( (tmpchm = chm_open ( TQFile::encodeName (filename))) == 0 ) { error( KIO::ERR_COULD_NOT_READ, url.prettyURL() ); return false; @@ -193,7 +193,7 @@ bool ProtocolMSITS::parseLoadAndLookup ( const KURL& url, QString& abspath ) /* * Shamelessly stolen from a KDE KIO tutorial */ -static void app_entry(UDSEntry& e, unsigned int uds, const QString& str) +static void app_entry(UDSEntry& e, unsigned int uds, const TQString& str) { UDSAtom a; a.m_uds = uds; @@ -212,7 +212,7 @@ static void app_entry(UDSEntry& e, unsigned int uds, const QString& str) // internal function // fills a directory item with its name and size -static void app_dir(UDSEntry& e, const QString & name) +static void app_dir(UDSEntry& e, const TQString & name) { e.clear(); app_entry(e, KIO::UDS_NAME, name); @@ -222,7 +222,7 @@ static void app_dir(UDSEntry& e, const QString & name) // internal function // fills a file item with its name and size -static void app_file(UDSEntry& e, const QString & name, size_t size) +static void app_file(UDSEntry& e, const TQString & name, size_t size) { e.clear(); app_entry(e, KIO::UDS_NAME, name); @@ -232,7 +232,7 @@ static void app_file(UDSEntry& e, const QString & name, size_t size) void ProtocolMSITS::stat (const KURL & url) { - QString fileName; + TQString fileName; chmUnitInfo ui; kdDebug() << "kio_msits::stat (const KURL& url) " << url.path() << endl; @@ -263,14 +263,14 @@ void ProtocolMSITS::stat (const KURL & url) // A local CHMLIB enumerator static int chmlib_enumerator (struct chmFile *, struct chmUnitInfo *ui, void *context) { - ((QValueVector<QString> *) context)->push_back (QString::fromLocal8Bit (ui->path)); + ((TQValueVector<TQString> *) context)->push_back (TQString::fromLocal8Bit (ui->path)); return CHM_ENUMERATOR_CONTINUE; } void ProtocolMSITS::listDir (const KURL & url) { - QString filepath; + TQString filepath; kdDebug() << "kio_msits::listDir (const KURL& url) " << url.path() << endl; @@ -287,7 +287,7 @@ void ProtocolMSITS::listDir (const KURL & url) kdDebug() << "kio_msits::listDir: enumerating directory " << filepath << endl; - QValueVector<QString> listing; + TQValueVector<TQString> listing; if ( chm_enumerate_dir ( m_chmFile, filepath.local8Bit(), @@ -305,7 +305,7 @@ void ProtocolMSITS::listDir (const KURL & url) for ( unsigned int i = 0; i < listing.size(); i++ ) { // Strip the direcroty name - QString ename = listing[i].mid (striplength); + TQString ename = listing[i].mid (striplength); if ( isDirectory ( ename ) ) app_dir(entry, ename); |