summaryrefslogtreecommitdiffstats
path: root/lanbrowsing/kio_lan/kio_lan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lanbrowsing/kio_lan/kio_lan.cpp')
-rw-r--r--lanbrowsing/kio_lan/kio_lan.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/lanbrowsing/kio_lan/kio_lan.cpp b/lanbrowsing/kio_lan/kio_lan.cpp
index 89de40da..c1d79695 100644
--- a/lanbrowsing/kio_lan/kio_lan.cpp
+++ b/lanbrowsing/kio_lan/kio_lan.cpp
@@ -28,7 +28,7 @@
#include <kglobal.h>
#include <kprocess.h>
-#include <qfile.h>
+#include <tqfile.h>
#include <iostream>
#include <string.h>
@@ -87,7 +87,7 @@ int kdemain( int argc, char **argv )
return 0;
}
-LANProtocol::LANProtocol(int isLanIoslave, const QCString &pool, const QCString &app )
+LANProtocol::LANProtocol(int isLanIoslave, const TQCString &pool, const TQCString &app )
:TCPSlaveBase(7741,isLanIoslave?"lan":"rlan", pool, app)
,m_currentHost("")
,m_port(7741)
@@ -275,7 +275,7 @@ int LANProtocol::rlanReadDataFromServer()
sockaddr_un addr;
memset((char*)&addr,0,sizeof(addr));
addr.sun_family=AF_LOCAL;
- QCString socketname="/tmp/resLisa-";
+ TQCString socketname="/tmp/resLisa-";
struct passwd *user = getpwuid( getuid() );
if ( user )
@@ -441,11 +441,11 @@ int LANProtocol::rlanReadDataFromServer()
return 1;
}
-int LANProtocol::checkHost(const QString& host)
+int LANProtocol::checkHost(const TQString& host)
{
kdDebug(7101)<<"LAN::checkHost() "<<host<<endl;
- QString hostUpper=host.upper();
+ TQString hostUpper=host.upper();
HostInfo* hostInfo=m_hostInfoCache[hostUpper];
if (hostInfo!=0)
{
@@ -559,7 +559,7 @@ int LANProtocol::checkHost(const QString& host)
// by checking all the ports in '_ports', using a non-blocking connect.
// Right now -- assume if *any* of these ports are active,
// the service is active.
-int LANProtocol::checkPort( QValueVector<int>& _ports, in_addr ip )
+int LANProtocol::checkPort( TQValueVector<int>& _ports, in_addr ip )
{
int _port=0;
struct sockaddr_in to_scan;
@@ -567,7 +567,7 @@ int LANProtocol::checkPort( QValueVector<int>& _ports, in_addr ip )
to_scan.sin_family = AF_INET;
to_scan.sin_addr = ip;
- for (QValueVector<int>::iterator i= _ports.begin(); i != _ports.end(); i++)
+ for (TQValueVector<int>::iterator i= _ports.begin(); i != _ports.end(); i++)
{
_port=(*i);
kdDebug(7101)<<"LANProtocol::checkPort: "<<_port<<endl;
@@ -624,7 +624,7 @@ int LANProtocol::checkPort( QValueVector<int>& _ports, in_addr ip )
}
-void LANProtocol::setHost( const QString& host, int port, const QString& , const QString& )
+void LANProtocol::setHost( const TQString& host, int port, const TQString& , const TQString& )
{
if (m_isLanIoslave)
{
@@ -645,8 +645,8 @@ void LANProtocol::setHost( const QString& host, int port, const QString& , const
void LANProtocol::mimetype( const KURL& url)
{
kdDebug(7101)<<"LANProtocol::mimetype -"<<url.prettyURL()<<"-"<<endl;
- QString path( QFile::encodeName(url.path()));
- QStringList pathList=QStringList::split( "/",path);
+ TQString path( TQFile::encodeName(url.path()));
+ TQStringList pathList=TQStringList::split( "/",path);
if ((pathList.count()==2) && (pathList[1].upper()=="HTTP"))
{
//kdDebug(7101)<<"LANProtocol::mimeType text/html"<<endl;
@@ -663,7 +663,7 @@ void LANProtocol::mimetype( const KURL& url)
void LANProtocol::listDir( const KURL& _url)
{
KURL url(_url);
- QString path( QFile::encodeName(url.path()));
+ TQString path( TQFile::encodeName(url.path()));
if (path.isEmpty())
{
url.setPath("/");
@@ -679,9 +679,9 @@ void LANProtocol::listDir( const KURL& _url)
return;
}
kdDebug(7101)<<"LANProtocol::listDir: host: "<<m_currentHost<<" port: "<<m_port<<" path: "<<path<<endl;
- QStringList pathList=QStringList::split("/", path);
+ TQStringList pathList=TQStringList::split("/", path);
kdDebug(7101)<<"parts are: "<<endl;
- for (QStringList::Iterator it=pathList.begin(); it !=pathList.end(); it++)
+ for (TQStringList::Iterator it=pathList.begin(); it !=pathList.end(); it++)
kdDebug(7101)<<"-"<<(*it)<<"-"<<endl;
if (pathList.count()>2)
{
@@ -745,8 +745,8 @@ void LANProtocol::stat( const KURL & url)
entry.append(atom);
- QString path( QFile::encodeName(url.path()));
- QStringList pathList=QStringList::split( "/",path);
+ TQString path( TQFile::encodeName(url.path()));
+ TQStringList pathList=TQStringList::split( "/",path);
if ((pathList.count()==2) && (pathList[1].upper()=="HTTP"))
{
atom.m_uds = KIO::UDS_FILE_TYPE;
@@ -774,12 +774,12 @@ void LANProtocol::stat( const KURL & url)
void LANProtocol::get(const KURL& url )
{
- QString path(QFile::encodeName(url.path()));
+ TQString path(TQFile::encodeName(url.path()));
kdDebug(7101)<<"LANProtocol::get: "<<path<<endl;
- QStringList pathList=QStringList::split("/", path);
+ TQStringList pathList=TQStringList::split("/", path);
kdDebug(7101)<<"parts are: "<<endl;
- for (QStringList::Iterator it=pathList.begin(); it !=pathList.end(); it++)
+ for (TQStringList::Iterator it=pathList.begin(); it !=pathList.end(); it++)
kdDebug(7101)<<"-"<<(*it)<<"-"<<endl;
if ((pathList.count()!=2) || (pathList[1].upper()!="HTTP"))
{