diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kioslave/info | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/info')
-rw-r--r-- | kioslave/info/info.cc | 28 | ||||
-rw-r--r-- | kioslave/info/info.h | 16 |
2 files changed, 22 insertions, 22 deletions
diff --git a/kioslave/info/info.cc b/kioslave/info/info.cc index 6b829ec1c..ab35f282b 100644 --- a/kioslave/info/info.cc +++ b/kioslave/info/info.cc @@ -2,10 +2,10 @@ #include <stdlib.h> #include <sys/stat.h> -#include <qdir.h> -#include <qfile.h> -#include <qtextstream.h> -#include <qregexp.h> +#include <tqdir.h> +#include <tqfile.h> +#include <tqtextstream.h> +#include <tqregexp.h> #include <kdebug.h> #include <kprocess.h> @@ -18,7 +18,7 @@ using namespace KIO; -InfoProtocol::InfoProtocol( const QCString &pool, const QCString &app ) +InfoProtocol::InfoProtocol( const TQCString &pool, const TQCString &app ) : SlaveBase( "info", pool, app ) , m_page( "" ) , m_node( "" ) @@ -31,11 +31,11 @@ InfoProtocol::InfoProtocol( const QCString &pool, const QCString &app ) if( m_perl.isNull() || m_infoScript.isNull() || m_infoConf.isNull() ) { kdError( 7108 ) << "Critical error: Cannot locate files for HTML-conversion" << endl; - QString errorStr; + TQString errorStr; if ( m_perl.isNull() ) { errorStr = "perl."; } else { - QString missing =m_infoScript.isNull() ? "kio_info/kde-info2html" : "kio_info/kde-info2html.conf"; + TQString missing =m_infoScript.isNull() ? "kio_info/kde-info2html" : "kio_info/kde-info2html.conf"; errorStr = "kde-info2html" + i18n( "\nUnable to locate file %1 which is necessary to run this service. " "Please check your software installation" ).arg( missing ); } @@ -70,7 +70,7 @@ void InfoProtocol::get( const KURL& url ) if (!url.host().isEmpty()) { KURL newURl(url); newURl.setPath(url.host()+url.path()); - newURl.setHost(QString::null); + newURl.setHost(TQString::null); redirection(newURl); finished(); return; @@ -80,7 +80,7 @@ void InfoProtocol::get( const KURL& url ) { // Trailing / are not supported, so we need to remove them. KURL newUrl( url ); - QString newPath( url.path() ); + TQString newPath( url.path() ); newPath.truncate( newPath.length()-1 ); newUrl.setPath( newPath ); redirection( newUrl ); @@ -92,11 +92,11 @@ void InfoProtocol::get( const KURL& url ) // extract the path and node from url decodeURL( url ); - QString path = KGlobal::iconLoader()->iconPath("up", KIcon::Toolbar, true); + TQString path = KGlobal::iconLoader()->iconPath("up", KIcon::Toolbar, true); int revindex = path.findRev('/'); path = path.left(revindex); - QString cmd = KProcess::quote(m_perl); + TQString cmd = KProcess::quote(m_perl); cmd += " "; cmd += KProcess::quote(m_infoScript); cmd += " "; @@ -110,7 +110,7 @@ void InfoProtocol::get( const KURL& url ) kdDebug( 7108 ) << "cmd: " << cmd << endl; - FILE *file = popen( QFile::encodeName(cmd), "r" ); + FILE *file = popen( TQFile::encodeName(cmd), "r" ); if ( !file ) { kdDebug( 7108 ) << "InfoProtocol::get popen failed" << endl; error( ERR_CANNOT_LAUNCH_PROCESS, cmd ); @@ -118,7 +118,7 @@ void InfoProtocol::get( const KURL& url ) } char buffer[ 4096 ]; - QByteArray array; + TQByteArray array; bool empty = true; while ( !feof( file ) ) @@ -192,7 +192,7 @@ void InfoProtocol::decodeURL( const KURL &url ) kdDebug( 7108 ) << "InfoProtocol::decodeURL - done" << endl; } -void InfoProtocol::decodePath( QString path ) +void InfoProtocol::decodePath( TQString path ) { kdDebug( 7108 ) << "InfoProtocol::decodePath(-" <<path<<"-)"<< endl; diff --git a/kioslave/info/info.h b/kioslave/info/info.h index ccf41fc5e..20c142cf3 100644 --- a/kioslave/info/info.h +++ b/kioslave/info/info.h @@ -1,7 +1,7 @@ #ifndef __info_h__ #define __info_h__ -#include <qobject.h> +#include <tqobject.h> #include <kio/slavebase.h> @@ -11,7 +11,7 @@ class InfoProtocol : public KIO::SlaveBase { public: - InfoProtocol( const QCString &pool, const QCString &app ); + InfoProtocol( const TQCString &pool, const TQCString &app ); virtual ~InfoProtocol(); virtual void get( const KURL& url ); @@ -21,16 +21,16 @@ public: protected: void decodeURL( const KURL &url ); - void decodePath( QString path ); + void decodePath( TQString path ); private: - QString m_page; - QString m_node; + TQString m_page; + TQString m_node; - QString m_perl; - QString m_infoScript; - QString m_infoConf; + TQString m_perl; + TQString m_infoScript; + TQString m_infoConf; }; #endif // __info_h__ |