Commit c21c2a86 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

deprecated--

svn path=/trunk/KDE/kdebase/kioslave/; revision=506335
parent e98fc68e
......@@ -35,7 +35,7 @@ using namespace KIO;
CgiProtocol::CgiProtocol( const QByteArray &pool, const QByteArray &app )
: SlaveBase( "cgi", pool, app )
{
kdDebug(7124) << "CgiProtocol::CgiProtocol" << endl;
kDebug(7124) << "CgiProtocol::CgiProtocol" << endl;
KConfig cfg( "kcmcgirc" );
cfg.setGroup( "General" );
......@@ -44,18 +44,18 @@ CgiProtocol::CgiProtocol( const QByteArray &pool, const QByteArray &app )
CgiProtocol::~CgiProtocol()
{
kdDebug(7124) << "CgiProtocol::~CgiProtocol" << endl;
kDebug(7124) << "CgiProtocol::~CgiProtocol" << endl;
}
void CgiProtocol::get( const KUrl& url )
{
kdDebug(7124) << "CgiProtocol::get()" << endl;
kdDebug(7124) << " URL: " << url.url() << endl;
kDebug(7124) << "CgiProtocol::get()" << endl;
kDebug(7124) << " URL: " << url.url() << endl;
#if 0
kdDebug(7124) << " Path: " << url.path() << endl;
kdDebug(7124) << " Query: " << url.query() << endl;
kdDebug(7124) << " Protocol: " << url.protocol() << endl;
kdDebug(7124) << " Filename: " << url.filename() << endl;
kDebug(7124) << " Path: " << url.path() << endl;
kDebug(7124) << " Query: " << url.query() << endl;
kDebug(7124) << " Protocol: " << url.protocol() << endl;
kDebug(7124) << " Filename: " << url.filename() << endl;
#endif
QByteArray protocol = "SERVER_PROTOCOL=HTTP";
putenv( protocol.data() );
......@@ -96,24 +96,24 @@ void CgiProtocol::get( const KUrl& url )
FILE *fd;
if ( forwardFile ) {
kdDebug(7124) << "Forwarding to '" << path << "'" << endl;
kDebug(7124) << "Forwarding to '" << path << "'" << endl;
QByteArray filepath = QFile::encodeName( path );
fd = fopen( filepath.data(), "r" );
if ( !fd ) {
kdDebug(7124) << "Error opening '" << filepath << "'" << endl;
kDebug(7124) << "Error opening '" << filepath << "'" << endl;
error( KIO::ERR_CANNOT_OPEN_FOR_READING, filepath );
return;
}
} else {
kdDebug(7124) << "Cmd: " << cmd << endl;
kDebug(7124) << "Cmd: " << cmd << endl;
fd = popen( QFile::encodeName(KProcess::quote( cmd )).data(), "r" );
if ( !fd ) {
kdDebug(7124) << "Error running '" << cmd << "'" << endl;
kDebug(7124) << "Error running '" << cmd << "'" << endl;
error( KIO::ERR_CANNOT_OPEN_FOR_READING, cmd );
return;
}
......@@ -148,17 +148,17 @@ void CgiProtocol::get( const KUrl& url )
else end = semicolon;
#if 0
kdDebug(7124) << " colon: " << colon << endl;
kdDebug(7124) << " newline: " << newline << endl;
kdDebug(7124) << " semicolon: " << semicolon << endl;
kdDebug(7124) << " end: " << end << endl;
kDebug(7124) << " colon: " << colon << endl;
kDebug(7124) << " newline: " << newline << endl;
kDebug(7124) << " semicolon: " << semicolon << endl;
kDebug(7124) << " end: " << end << endl;
#endif
QByteArray contentType = output.mid( colon + 1, end - colon - 1 );
contentType = contentType.trimmed();
kdDebug(7124) << "ContentType: '" << contentType << "'" << endl;
kDebug(7124) << "ContentType: '" << contentType << "'" << endl;
mimeType( contentType );
......@@ -189,7 +189,7 @@ void CgiProtocol::get( const KUrl& url )
finished();
kdDebug(7124) << "CgiProtocol::get - done" << endl;
kDebug(7124) << "CgiProtocol::get - done" << endl;
}
extern "C" { int KDE_EXPORT kdemain( int argc, char **argv ); }
......@@ -201,7 +201,7 @@ int kdemain( int argc, char **argv )
{
KInstance instance( "kio_cgi" );
kdDebug(7124) << "kio_cgi starting " << getpid() << endl;
kDebug(7124) << "kio_cgi starting " << getpid() << endl;
if (argc != 4)
{
......
......@@ -37,7 +37,7 @@ int kdemain( int argc, char ** argv)
{
KInstance instance( "kio_filter" );
kdDebug(7110) << "Starting " << getpid() << endl;
kDebug(7110) << "Starting " << getpid() << endl;
if (argc != 4)
{
......@@ -48,7 +48,7 @@ int kdemain( int argc, char ** argv)
FilterProtocol slave(argv[1], argv[2], argv[3]);
slave.dispatchLoop();
kdDebug(7110) << "Done" << endl;
kDebug(7110) << "Done" << endl;
return 0;
}
......@@ -90,7 +90,7 @@ void FilterProtocol::get( const KUrl & )
{
dataReq(); // Request data
result = readData( inputBuffer);
kdDebug(7110) << "requestData: got " << result << endl;
kDebug(7110) << "requestData: got " << result << endl;
if (result <= 0)
{
bError = true;
......@@ -108,7 +108,7 @@ void FilterProtocol::get( const KUrl & )
result = filter->uncompress();
if ((filter->outBufferAvailable() == 0) || (result == KFilterBase::END))
{
kdDebug(7110) << "avail_out = " << filter->outBufferAvailable() << endl;
kDebug(7110) << "avail_out = " << filter->outBufferAvailable() << endl;
if (filter->outBufferAvailable() != 0)
{
// Discard unused space :-)
......@@ -117,7 +117,7 @@ void FilterProtocol::get( const KUrl & )
if (bNeedMimetype)
{
KMimeMagicResult * result = KMimeMagic::self()->findBufferFileType( outputBuffer, subURL.fileName() );
kdDebug(7110) << "Emitting mimetype " << result->mimeType() << endl;
kDebug(7110) << "Emitting mimetype " << result->mimeType() << endl;
mimeType( result->mimeType() );
bNeedMimetype = false;
}
......@@ -137,7 +137,7 @@ void FilterProtocol::get( const KUrl & )
{
dataReq(); // Request data
result = readData( inputBuffer);
kdDebug(7110) << "requestData: got " << result << "(expecting 0)" << endl;
kDebug(7110) << "requestData: got " << result << "(expecting 0)" << endl;
data( QByteArray() ); // Send EOF
}
......
......@@ -47,7 +47,7 @@ extern "C"
{
KInstance instance( "kio_finger" );
//kdDebug() << "*** Starting kio_finger " << getpid() << endl;
//kDebug() << "*** Starting kio_finger " << getpid() << endl;
if (argc != 4)
{
......@@ -58,7 +58,7 @@ extern "C"
FingerProtocol slave(argv[2], argv[3]);
slave.dispatchLoop();
//kdDebug() << "*** kio_finger Done" << endl;
//kDebug() << "*** kio_finger Done" << endl;
return 0;
}
}
......@@ -80,7 +80,7 @@ FingerProtocol::FingerProtocol(const QByteArray &pool_socket, const QByteArray &
FingerProtocol::~FingerProtocol()
{
//kdDebug() << "FingerProtocol::~FingerProtocol()" << endl;
//kDebug() << "FingerProtocol::~FingerProtocol()" << endl;
delete myURL;
delete myPerlPath;
delete myFingerPath;
......@@ -95,11 +95,11 @@ FingerProtocol::~FingerProtocol()
void FingerProtocol::get(const KUrl& url )
{
//kdDebug() << "kio_finger::get(const KUrl& url)" << endl ;
//kDebug() << "kio_finger::get(const KUrl& url)" << endl ;
this->parseCommandLine(url);
//kdDebug() << "myURL: " << myURL->prettyURL() << endl;
//kDebug() << "myURL: " << myURL->prettyURL() << endl;
// Reset the stream
*myStdStream="";
......@@ -107,19 +107,19 @@ void FingerProtocol::get(const KUrl& url )
QString query = myURL->query();
QString refreshRate = defaultRefreshRate;
//kdDebug() << "query: " << query << endl;
//kDebug() << "query: " << query << endl;
// Check the validity of the query
QRegExp regExp("?refreshRate=[0-9][0-9]*", true, true);
if (query.contains(regExp)) {
//kdDebug() << "looks like a valid query" << endl;
//kDebug() << "looks like a valid query" << endl;
QRegExp regExp( "([0-9]+)" );
regExp.search(query);
refreshRate = regExp.cap(0);
}
//kdDebug() << "Refresh rate: " << refreshRate << endl;
//kDebug() << "Refresh rate: " << refreshRate << endl;
myKProcess = new KProcess();
*myKProcess << *myPerlPath << *myFingerPerlScript
......@@ -149,7 +149,7 @@ void FingerProtocol::get(const KUrl& url )
void FingerProtocol::slotGetStdOutput(KProcess* /* p */, char *s, int len)
{
//kdDebug() << "void FingerProtocol::slotGetStdoutOutput()" << endl;
//kDebug() << "void FingerProtocol::slotGetStdoutOutput()" << endl;
*myStdStream += QString::fromLocal8Bit(s, len);
}
......@@ -169,57 +169,57 @@ void FingerProtocol::mimetype(const KUrl & /*url*/)
void FingerProtocol::getProgramPath()
{
//kdDebug() << "kfingerMainWindow::getProgramPath()" << endl;
//kDebug() << "kfingerMainWindow::getProgramPath()" << endl;
// Not to sure wether I'm using the right error number here. - schlpbch -
myPerlPath = new QString(KGlobal::dirs()->findExe("perl"));
if (myPerlPath->isEmpty())
{
//kdDebug() << "Perl command not found" << endl;
//kDebug() << "Perl command not found" << endl;
this->error(ERR_CANNOT_LAUNCH_PROCESS,
i18n("Could not find the Perl program on your system, please install."));
exit();
}
else
{
//kdDebug() << "Perl command found:" << *myPerlPath << endl;
//kDebug() << "Perl command found:" << *myPerlPath << endl;
}
myFingerPath = new QString(KGlobal::dirs()->findExe("finger"));
if ((myFingerPath->isEmpty()))
{
//kdDebug() << "Finger command not found" << endl;
//kDebug() << "Finger command not found" << endl;
this->error(ERR_CANNOT_LAUNCH_PROCESS,
i18n("Could not find the Finger program on your system, please install."));
exit();
}
else
{
//kdDebug() << "Finger command found:" << *myFingerPath << endl;
//kDebug() << "Finger command found:" << *myFingerPath << endl;
}
myFingerPerlScript = new QString(locate("data","kio_finger/kio_finger.pl"));
if (myFingerPerlScript->isEmpty())
{
//kdDebug() << "kio_finger.pl script not found" << endl;
//kDebug() << "kio_finger.pl script not found" << endl;
this->error(ERR_CANNOT_LAUNCH_PROCESS,
i18n("kio_finger Perl script not found."));
exit();
}
else
{
//kdDebug() << "kio_finger perl script found: " << *myFingerPerlScript << endl;
//kDebug() << "kio_finger perl script found: " << *myFingerPerlScript << endl;
}
myFingerCSSFile = new QString(locate("data","kio_finger/kio_finger.css"));
if (myFingerCSSFile->isEmpty())
{
//kdDebug() << "kio_finger.css file not found" << endl;
//kDebug() << "kio_finger.css file not found" << endl;
this->warning(i18n("kio_finger CSS script not found. Output will look ugly."));
}
else
{
//kdDebug() << "kio_finger CSS file found: " << *myFingerCSSFile << endl;
//kDebug() << "kio_finger CSS file found: " << *myFingerCSSFile << endl;
}
}
......
......@@ -83,7 +83,7 @@
#include "fishcode.h"
#ifndef NDEBUG
#define myDebug(x) kdDebug(7127) << __LINE__ << ": " x
#define myDebug(x) kDebug(7127) << __LINE__ << ": " x
#define connected() do{myDebug( << "_______ emitting connected()" << endl); connected();}while(0)
#define dataReq() do{myDebug( << "_______ emitting dataReq()" << endl); dataReq();}while(0)
#define needSubURLData() do{myDebug( << "_______ emitting needSubURLData()" << endl); needSubURLData();}while(0)
......
......@@ -61,7 +61,7 @@ int kdemain( int argc, char **argv )
fprintf(stderr, "Usage: kio_floppy protocol domain-socket1 domain-socket2\n");
exit(-1);
}
kdDebug(7101) << "Floppy: kdemain: starting" << endl;
kDebug(7101) << "Floppy: kdemain: starting" << endl;
FloppyProtocol slave(argv[2], argv[3]);
slave.dispatchLoop();
......@@ -90,7 +90,7 @@ FloppyProtocol::FloppyProtocol (const QByteArray &pool, const QByteArray &app )
,m_stdoutSize(0)
,m_stderrSize(0)
{
kdDebug(7101)<<"Floppy::Floppy: -"<<pool<<"-"<<endl;
kDebug(7101)<<"Floppy::Floppy: -"<<pool<<"-"<<endl;
}
FloppyProtocol::~FloppyProtocol()
......@@ -105,7 +105,7 @@ FloppyProtocol::~FloppyProtocol()
int FloppyProtocol::readStdout()
{
//kdDebug(7101)<<"Floppy::readStdout"<<endl;
//kDebug(7101)<<"Floppy::readStdout"<<endl;
if (m_mtool==0) return 0;
char buffer[16*1024];
......@@ -114,7 +114,7 @@ int FloppyProtocol::readStdout()
//+1 gives us room for a terminating 0
char *newBuffer=new char[length+m_stdoutSize+1];
kdDebug(7101)<<"Floppy::readStdout(): length: "<<length<<" m_tsdoutSize: "<<m_stdoutSize<<" +1="<<length+m_stdoutSize+1<<endl;
kDebug(7101)<<"Floppy::readStdout(): length: "<<length<<" m_tsdoutSize: "<<m_stdoutSize<<" +1="<<length+m_stdoutSize+1<<endl;
if (m_stdoutBuffer!=0)
{
memcpy(newBuffer, m_stdoutBuffer, m_stdoutSize);
......@@ -125,15 +125,15 @@ int FloppyProtocol::readStdout()
delete [] m_stdoutBuffer;
m_stdoutBuffer=newBuffer;
//kdDebug(7101)<<"Floppy::readStdout(): -"<<m_stdoutBuffer<<"-"<<endl;
//kDebug(7101)<<"Floppy::readStdout(): -"<<m_stdoutBuffer<<"-"<<endl;
//kdDebug(7101)<<"Floppy::readStdout ends"<<endl;
//kDebug(7101)<<"Floppy::readStdout ends"<<endl;
return length;
}
int FloppyProtocol::readStderr()
{
//kdDebug(7101)<<"Floppy::readStderr"<<endl;
//kDebug(7101)<<"Floppy::readStderr"<<endl;
if (m_mtool==0) return 0;
/*struct timeval tv;
......@@ -143,7 +143,7 @@ int FloppyProtocol::readStderr()
char buffer[16*1024];
int length=::read(m_mtool->stderrFD(),buffer,16*1024);
kdDebug(7101)<<"Floppy::readStderr(): read "<<length<<" bytes"<<endl;
kDebug(7101)<<"Floppy::readStderr(): read "<<length<<" bytes"<<endl;
if (length==0) return 0;
//+1 gives us room for a terminating 0
......@@ -154,26 +154,26 @@ int FloppyProtocol::readStderr()
newBuffer[m_stderrSize]='\0';
delete [] m_stderrBuffer;
m_stderrBuffer=newBuffer;
kdDebug(7101)<<"Floppy::readStderr(): -"<<m_stderrBuffer<<"-"<<endl;
kDebug(7101)<<"Floppy::readStderr(): -"<<m_stderrBuffer<<"-"<<endl;
return length;
}
void FloppyProtocol::clearBuffers()
{
kdDebug(7101)<<"Floppy::clearBuffers()"<<endl;
kDebug(7101)<<"Floppy::clearBuffers()"<<endl;
m_stdoutSize=0;
m_stderrSize=0;
delete [] m_stdoutBuffer;
m_stdoutBuffer=0;
delete [] m_stderrBuffer;
m_stderrBuffer=0;
//kdDebug(7101)<<"Floppy::clearBuffers() ends"<<endl;
//kDebug(7101)<<"Floppy::clearBuffers() ends"<<endl;
}
void FloppyProtocol::terminateBuffers()
{
//kdDebug(7101)<<"Floppy::terminateBuffers()"<<endl;
//kDebug(7101)<<"Floppy::terminateBuffers()"<<endl;
//append a terminating 0 to be sure
if (m_stdoutBuffer!=0)
{
......@@ -183,7 +183,7 @@ void FloppyProtocol::terminateBuffers()
{
m_stderrBuffer[m_stderrSize]='\0';
}
//kdDebug(7101)<<"Floppy::terminateBuffers() ends"<<endl;
//kDebug(7101)<<"Floppy::terminateBuffers() ends"<<endl;
}
bool FloppyProtocol::stopAfterError(const KUrl& url, const QString& drive)
......@@ -195,7 +195,7 @@ bool FloppyProtocol::stopAfterError(const KUrl& url, const QString& drive)
QString outputString(m_stderrBuffer);
QTextIStream output(&outputString);
QString line=output.readLine();
kdDebug(7101)<<"line: -"<<line<<"-"<<endl;
kDebug(7101)<<"line: -"<<line<<"-"<<endl;
if (line.indexOf("resource busy") > -1)
{
error( KIO::ERR_SLAVE_DEFINED, i18n("Could not access drive %1.\nThe drive is still busy.\nWait until it is inactive and then try again.").arg(drive));
......@@ -254,7 +254,7 @@ bool FloppyProtocol::stopAfterError(const KUrl& url, const QString& drive)
void FloppyProtocol::listDir( const KUrl& _url)
{
kdDebug(7101)<<"Floppy::listDir() "<<_url.path()<<endl;
kDebug(7101)<<"Floppy::listDir() "<<_url.path()<<endl;
KUrl url(_url);
QString path(url.path());
......@@ -330,13 +330,13 @@ void FloppyProtocol::listDir( const KUrl& _url)
while (!output.atEnd())
{
line=output.readLine();
kdDebug(7101)<<"Floppy::listDir(): line: -"<<line<<"- length: "<<line.length()<<endl;
kDebug(7101)<<"Floppy::listDir(): line: -"<<line<<"- length: "<<line.length()<<endl;
if (mode==0)
{
if (line.isEmpty())
{
kdDebug(7101)<<"Floppy::listDir(): switching to mode 1"<<endl;
kDebug(7101)<<"Floppy::listDir(): switching to mode 1"<<endl;
mode=1;
}
}
......@@ -344,7 +344,7 @@ void FloppyProtocol::listDir( const KUrl& _url)
{
if (line[0]==' ')
{
kdDebug(7101)<<"Floppy::listDir(): ende"<<endl;
kDebug(7101)<<"Floppy::listDir(): ende"<<endl;
totalSize(totalNumber);
break;
}
......@@ -353,7 +353,7 @@ void FloppyProtocol::listDir( const KUrl& _url)
if (info.isValid)
{
createUDSEntry(info,entry);
//kdDebug(7101)<<"Floppy::listDir(): creating UDSEntry"<<endl;
//kDebug(7101)<<"Floppy::listDir(): creating UDSEntry"<<endl;
listEntry( entry, false);
totalNumber++;
}
......@@ -361,7 +361,7 @@ void FloppyProtocol::listDir( const KUrl& _url)
}
listEntry( entry, true ); // ready
finished();
//kdDebug(7101)<<"Floppy::listDir() ends"<<endl;
//kDebug(7101)<<"Floppy::listDir() ends"<<endl;
}
void FloppyProtocol::errorMissingMToolsProgram(const QString& name)
......@@ -380,7 +380,7 @@ void FloppyProtocol::createUDSEntry(const StatInfo& info, UDSEntry& entry)
StatInfo FloppyProtocol::createStatInfo(const QString line, bool makeStat, const QString& dirName)
{
//kdDebug(7101)<<"Floppy::createUDSEntry()"<<endl;
//kDebug(7101)<<"Floppy::createUDSEntry()"<<endl;
QString name;
QString size;
bool isDir(false);
......@@ -391,7 +391,7 @@ StatInfo FloppyProtocol::createStatInfo(const QString line, bool makeStat, const
if (line.length()==41)
{
int nameLength=line.indexOf(' ');
kdDebug(7101)<<"Floppy::createStatInfo: line find: "<<nameLength <<"= -"<<line<<"-"<<endl;
kDebug(7101)<<"Floppy::createStatInfo: line find: "<<nameLength <<"= -"<<line<<"-"<<endl;
if (nameLength>0)
{
name=line.mid(0,nameLength);
......@@ -400,12 +400,12 @@ StatInfo FloppyProtocol::createStatInfo(const QString line, bool makeStat, const
if (!ext.isEmpty())
name+="."+ext;
}
kdDebug(7101)<<"Floppy::createStatInfo() name 8.3= -"<<name<<"-"<<endl;
kDebug(7101)<<"Floppy::createStatInfo() name 8.3= -"<<name<<"-"<<endl;
}
else if (line.length()>41)
{
name=line.mid(42);
kdDebug(7101)<<"Floppy::createStatInfo() name vfat: -"<<name<<"-"<<endl;
kDebug(7101)<<"Floppy::createStatInfo() name vfat: -"<<name<<"-"<<endl;
}
if ((name==".") || (name==".."))
{
......@@ -420,14 +420,14 @@ StatInfo FloppyProtocol::createStatInfo(const QString line, bool makeStat, const
if (line.mid(13,5)=="<DIR>")
{
//kdDebug(7101)<<"Floppy::createUDSEntry() isDir"<<endl;
//kDebug(7101)<<"Floppy::createUDSEntry() isDir"<<endl;
size="1024";
isDir=true;
}
else
{
size=line.mid(13,9);
//kdDebug(7101)<<"Floppy::createUDSEntry() size: -"<<size<<"-"<<endl;
//kDebug(7101)<<"Floppy::createUDSEntry() size: -"<<size<<"-"<<endl;
}
//TEEKANNE JPG 70796 01-02-2003 17:47 Teekanne.jpg
......@@ -445,7 +445,7 @@ StatInfo FloppyProtocol::createStatInfo(const QString line, bool makeStat, const
}
hour=line.mid(35,2);
minute=line.mid(38,2);
//kdDebug(7101)<<"Floppy::createUDSEntry() day: -"<<day<<"-"<<month<<"-"<<year<<"- -"<<hour<<"-"<<minute<<"-"<<endl;
//kDebug(7101)<<"Floppy::createUDSEntry() day: -"<<day<<"-"<<month<<"-"<<year<<"- -"<<hour<<"-"<<minute<<"-"<<endl;
if (name.isEmpty())
{
......@@ -467,7 +467,7 @@ StatInfo FloppyProtocol::createStatInfo(const QString line, bool makeStat, const
info.isDir=isDir;
info.isValid=true;
//kdDebug(7101)<<"Floppy::createUDSEntry() ends"<<endl;
//kDebug(7101)<<"Floppy::createUDSEntry() ends"<<endl;
return info;
}
......@@ -482,7 +482,7 @@ StatInfo FloppyProtocol::_stat(const KUrl& url)
if (floppyPath.isEmpty())
{
kdDebug(7101)<<"Floppy::_stat(): floppyPath.isEmpty()"<<endl;
kDebug(7101)<<"Floppy::_stat(): floppyPath.isEmpty()"<<endl;
info.name=path;
info.size=1024;
info.time=0;
......@@ -493,14 +493,14 @@ StatInfo FloppyProtocol::_stat(const KUrl& url)
return info;
}
//kdDebug(7101)<<"Floppy::_stat(): delete m_mtool"<<endl;
//kDebug(7101)<<"Floppy::_stat(): delete m_mtool"<<endl;
if (m_mtool!=0)
delete m_mtool;
QStringList args;
args<<"mdir"<<"-a"<<(drive+floppyPath);
//kdDebug(7101)<<"Floppy::_stat(): create m_mtool"<<endl;
//kDebug(7101)<<"Floppy::_stat(): create m_mtool"<<endl;
m_mtool=new Program(args);
if (!m_mtool->start())
......@@ -538,7 +538,7 @@ StatInfo FloppyProtocol::_stat(const KUrl& url)
}
} while (!loopFinished);
//kdDebug(7101)<<"Floppy::_stat(): delete m_mtool"<<endl;
//kDebug(7101)<<"Floppy::_stat(): delete m_mtool"<<endl;
delete m_mtool;
m_mtool=0;
//now mdir has finished
......@@ -558,7 +558,7 @@ StatInfo FloppyProtocol::_stat(const KUrl& url)
return info;
}
kdDebug(7101)<<"Floppy::_stat(): parse stuff"<<endl;
kDebug(7101)<<"Floppy::_stat(): parse stuff"<<endl;
QString outputString(m_stdoutBuffer);
QTextIStream output(&outputString);
QString line;
......@@ -584,14 +584,14 @@ int FloppyProtocol::freeSpace(const KUrl& url)
QString floppyPath;
getDriveAndPath(path,drive,floppyPath);
//kdDebug(7101)<<"Floppy::freeSpace(): delete m_mtool"<<endl;
//kDebug(7101)<<"Floppy::freeSpace(): delete m_mtool"<<endl;
if (m_mtool!=0)
delete m_mtool;
QStringList args;
args<<"mdir"<<"-a"<<drive;
//kdDebug(7101)<<"Floppy::freeSpace(): create m_mtool"<<endl;
//kDebug(7101)<<"Floppy::freeSpace(): create m_mtool"<<endl;
m_mtool=new Program(args);
if (!m_mtool->start())
......@@ -629,7 +629,7 @@ int FloppyProtocol::freeSpace(const KUrl& url)
}
} while (!loopFinished);
//kdDebug(7101)<<"Floppy::freeSpace(): delete m_mtool"<<endl;
//kDebug(7101)<<"Floppy::freeSpace(): delete m_mtool"<<endl;
delete m_mtool;
m_mtool=0;
//now mdir has finished
......@@ -647,7 +647,7 @@ int FloppyProtocol::freeSpace(const KUrl& url)
return -1;
}
kdDebug(7101)<<"Floppy::freeSpace(): parse stuff"<<endl;
kDebug(7101)<<"Floppy::freeSpace(): parse stuff"<<endl;
QString outputString(m_stdoutBuffer);
QTextIStream output(&outputString);
QString line;
......@@ -673,7 +673,7 @@ int FloppyProtocol::freeSpace(const KUrl& url)
void FloppyProtocol::stat( const KUrl & _url)
{
kdDebug(7101)<<"Floppy::stat() "<<_url.path()<<endl;
kDebug(7101)<<"Floppy::stat() "<<_url.path()<<endl;
KUrl url(_url);
QString path(url.path());
......@@ -691,7 +691,7 @@ void FloppyProtocol::stat( const KUrl & _url)
createUDSEntry(info,entry);
statEntry( entry );
finished();
//kdDebug(7101)<<"Floppy::stat(): ends"<<endl;
//kDebug(7101)<<"Floppy::stat(): ends"<<endl;
return;
}
//otherwise the error() was already reported in _stat()
......@@ -699,7 +699,7 @@ void FloppyProtocol::stat( const KUrl & _url)
void FloppyProtocol::mkdir( const KUrl& url, int)
{
kdDebug(7101)<<"FloppyProtocol::mkdir()"<<endl;
kDebug(7101)<<"FloppyProtocol::mkdir()"<<endl;
QString path(url.path());
if ((path.isEmpty()) || (path=="/"))
......@@ -720,11 +720,11 @@ void FloppyProtocol::mkdir( const KUrl& url, int)
}
if (m_mtool!=0)
delete m_mtool;
//kdDebug(7101)<<"Floppy::stat(): create args"<<endl;