Commit 4ff2c2eb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Adapt to new KWarning/kFatal/kDebug api

svn path=/trunk/KDE/kdebase/runtime/; revision=695876
parent 276c846e
......@@ -36,7 +36,7 @@ using namespace KIO;
CgiProtocol::CgiProtocol( const QByteArray &pool, const QByteArray &app )
: SlaveBase( "cgi", pool, app )
{
kDebug(7124) << "CgiProtocol::CgiProtocol" << endl;
kDebug(7124) << "CgiProtocol::CgiProtocol";
KConfig _cfg( "kcmcgirc" );
KConfigGroup cfg(&_cfg, "General" );
......@@ -45,18 +45,18 @@ CgiProtocol::CgiProtocol( const QByteArray &pool, const QByteArray &app )
CgiProtocol::~CgiProtocol()
{
kDebug(7124) << "CgiProtocol::~CgiProtocol" << endl;
kDebug(7124) << "CgiProtocol::~CgiProtocol";
}
void CgiProtocol::get( const KUrl& url )
{
kDebug(7124) << "CgiProtocol::get()" << endl;
kDebug(7124) << " URL: " << url.url() << endl;
kDebug(7124) << "CgiProtocol::get()";
kDebug(7124) << " URL: " << url.url();
#if 0
kDebug(7124) << " Path: " << url.path() << endl;
kDebug(7124) << " Query: " << url.query() << endl;
kDebug(7124) << " Protocol: " << url.protocol() << endl;
kDebug(7124) << " Filename: " << url.filename() << endl;
kDebug(7124) << " Path: " << url.path();
kDebug(7124) << " Query: " << url.query();
kDebug(7124) << " Protocol: " << url.protocol();
kDebug(7124) << " Filename: " << url.filename();
#endif
QByteArray protocol = "SERVER_PROTOCOL=HTTP";
putenv( protocol.data() );
......@@ -97,24 +97,24 @@ void CgiProtocol::get( const KUrl& url )
FILE *fd;
if ( forwardFile ) {
kDebug(7124) << "Forwarding to '" << path << "'" << endl;
kDebug(7124) << "Forwarding to '" << path << "'";
QByteArray filepath = QFile::encodeName( path );
fd = fopen( filepath.data(), "r" );
if ( !fd ) {
kDebug(7124) << "Error opening '" << filepath << "'" << endl;
kDebug(7124) << "Error opening '" << filepath << "'";
error( KIO::ERR_CANNOT_OPEN_FOR_READING, filepath );
return;
}
} else {
kDebug(7124) << "Cmd: " << cmd << endl;
kDebug(7124) << "Cmd: " << cmd;
fd = popen( QFile::encodeName(KShell::quoteArg( cmd )).data(), "r" );
if ( !fd ) {
kDebug(7124) << "Error running '" << cmd << "'" << endl;
kDebug(7124) << "Error running '" << cmd << "'";
error( KIO::ERR_CANNOT_OPEN_FOR_READING, cmd );
return;
}
......@@ -149,17 +149,17 @@ void CgiProtocol::get( const KUrl& url )
else end = semicolon;
#if 0
kDebug(7124) << " colon: " << colon << endl;
kDebug(7124) << " newline: " << newline << endl;
kDebug(7124) << " semicolon: " << semicolon << endl;
kDebug(7124) << " end: " << end << endl;
kDebug(7124) << " colon: " << colon;
kDebug(7124) << " newline: " << newline;
kDebug(7124) << " semicolon: " << semicolon;
kDebug(7124) << " end: " << end;
#endif
QByteArray contentType = output.mid( colon + 1, end - colon - 1 );
contentType = contentType.trimmed();
kDebug(7124) << "ContentType: '" << contentType << "'" << endl;
kDebug(7124) << "ContentType: '" << contentType << "'";
mimeType( contentType );
......@@ -187,7 +187,7 @@ void CgiProtocol::get( const KUrl& url )
finished();
kDebug(7124) << "CgiProtocol::get - done" << endl;
kDebug(7124) << "CgiProtocol::get - done";
}
extern "C" { int KDE_EXPORT kdemain( int argc, char **argv ); }
......@@ -199,7 +199,7 @@ int kdemain( int argc, char **argv )
{
KComponentData componentData( "kio_cgi" );
kDebug(7124) << "kio_cgi starting " << getpid() << endl;
kDebug(7124) << "kio_cgi starting " << getpid();
if (argc != 4)
{
......
......@@ -37,7 +37,7 @@ int kdemain( int argc, char ** argv)
{
KComponentData componentData( "kio_filter" );
kDebug(7110) << "Starting " << getpid() << endl;
kDebug(7110) << "Starting " << getpid();
if (argc != 4)
{
......@@ -48,7 +48,7 @@ int kdemain( int argc, char ** argv)
FilterProtocol slave(argv[1], argv[2], argv[3]);
slave.dispatchLoop();
kDebug(7110) << "Done" << endl;
kDebug(7110) << "Done";
return 0;
}
......@@ -91,7 +91,7 @@ void FilterProtocol::get( const KUrl & )
{
dataReq(); // Request data
result = readData( inputBuffer);
kDebug(7110) << "requestData: got " << result << endl;
kDebug(7110) << "requestData: got " << result;
if (result <= 0)
{
bError = true;
......@@ -109,7 +109,7 @@ void FilterProtocol::get( const KUrl & )
result = filter->uncompress();
if ((filter->outBufferAvailable() == 0) || (result == KFilterBase::End))
{
kDebug(7110) << "avail_out = " << filter->outBufferAvailable() << endl;
kDebug(7110) << "avail_out = " << filter->outBufferAvailable();
if (filter->outBufferAvailable() != 0)
{
// Discard unused space :-)
......@@ -118,7 +118,7 @@ void FilterProtocol::get( const KUrl & )
if (bNeedMimetype)
{
KMimeType::Ptr mime = KMimeType::findByNameAndContent( subURL.fileName(), outputBuffer );
kDebug(7110) << "Emitting mimetype " << mime->name() << endl;
kDebug(7110) << "Emitting mimetype " << mime->name();
mimeType( mime->name() );
bNeedMimetype = false;
}
......@@ -138,7 +138,7 @@ void FilterProtocol::get( const KUrl & )
{
dataReq(); // Request data
result = readData( inputBuffer);
kDebug(7110) << "requestData: got " << result << "(expecting 0)" << endl;
kDebug(7110) << "requestData: got " << result << "(expecting 0)";
data( QByteArray() ); // Send EOF
}
......
......@@ -47,7 +47,7 @@ extern "C"
{
KComponentData componentData( "kio_finger" );
//kDebug() << "*** Starting kio_finger " << getpid() << endl;
//kDebug() << "*** Starting kio_finger " << getpid();
if (argc != 4)
{
......@@ -58,7 +58,7 @@ extern "C"
FingerProtocol slave(argv[2], argv[3]);
slave.dispatchLoop();
//kDebug() << "*** kio_finger Done" << endl;
//kDebug() << "*** kio_finger Done";
return 0;
}
}
......@@ -80,7 +80,7 @@ FingerProtocol::FingerProtocol(const QByteArray &pool_socket, const QByteArray &
FingerProtocol::~FingerProtocol()
{
//kDebug() << "FingerProtocol::~FingerProtocol()" << endl;
//kDebug() << "FingerProtocol::~FingerProtocol()";
delete myURL;
delete myPerlPath;
delete myFingerPath;
......@@ -95,11 +95,11 @@ FingerProtocol::~FingerProtocol()
void FingerProtocol::get(const KUrl& url )
{
//kDebug() << "kio_finger::get(const KUrl& url)" << endl ;
//kDebug() << "kio_finger::get(const KUrl& url)";
this->parseCommandLine(url);
//kDebug() << "myURL: " << myURL->prettyUrl() << endl;
//kDebug() << "myURL: " << myURL->prettyUrl();
// Reset the stream
*myStdStream="";
......@@ -107,19 +107,19 @@ void FingerProtocol::get(const KUrl& url )
QString query = myURL->query();
QString refreshRate = defaultRefreshRate;
//kDebug() << "query: " << query << endl;
//kDebug() << "query: " << query;
// Check the validity of the query
QRegExp regExp("?refreshRate=[0-9][0-9]*", Qt::CaseSensitive, QRegExp::Wildcard);
if (query.contains(regExp)) {
//kDebug() << "looks like a valid query" << endl;
//kDebug() << "looks like a valid query";
QRegExp regExp( "([0-9]+)" );
regExp.indexIn(query);
refreshRate = regExp.cap(0);
}
//kDebug() << "Refresh rate: " << refreshRate << endl;
//kDebug() << "Refresh rate: " << refreshRate;
myKProcess = new K3Process();
*myKProcess << *myPerlPath << *myFingerPerlScript
......@@ -149,7 +149,7 @@ void FingerProtocol::get(const KUrl& url )
void FingerProtocol::slotGetStdOutput(K3Process* /* p */, char *s, int len)
{
//kDebug() << "void FingerProtocol::slotGetStdoutOutput()" << endl;
//kDebug() << "void FingerProtocol::slotGetStdoutOutput()";
*myStdStream += QString::fromLocal8Bit(s, len);
}
......@@ -169,57 +169,57 @@ void FingerProtocol::mimetype(const KUrl & /*url*/)
void FingerProtocol::getProgramPath()
{
//kDebug() << "kfingerMainWindow::getProgramPath()" << endl;
//kDebug() << "kfingerMainWindow::getProgramPath()";
// Not to sure wether I'm using the right error number here. - schlpbch -
myPerlPath = new QString(KGlobal::dirs()->findExe("perl"));
if (myPerlPath->isEmpty())
{
//kDebug() << "Perl command not found" << endl;
//kDebug() << "Perl command not found";
this->error(ERR_CANNOT_LAUNCH_PROCESS,
i18n("Could not find the Perl program on your system, please install."));
exit();
}
else
{
//kDebug() << "Perl command found:" << *myPerlPath << endl;
//kDebug() << "Perl command found:" << *myPerlPath;
}
myFingerPath = new QString(KGlobal::dirs()->findExe("finger"));
if ((myFingerPath->isEmpty()))
{
//kDebug() << "Finger command not found" << endl;
//kDebug() << "Finger command not found";
this->error(ERR_CANNOT_LAUNCH_PROCESS,
i18n("Could not find the Finger program on your system, please install."));
exit();
}
else
{
//kDebug() << "Finger command found:" << *myFingerPath << endl;
//kDebug() << "Finger command found:" << *myFingerPath;
}
myFingerPerlScript = new QString(KStandardDirs::locate("data","kio_finger/kio_finger.pl"));
if (myFingerPerlScript->isEmpty())
{
//kDebug() << "kio_finger.pl script not found" << endl;
//kDebug() << "kio_finger.pl script not found";
this->error(ERR_CANNOT_LAUNCH_PROCESS,
i18n("kio_finger Perl script not found."));
exit();
}
else
{
//kDebug() << "kio_finger perl script found: " << *myFingerPerlScript << endl;
//kDebug() << "kio_finger perl script found: " << *myFingerPerlScript;
}
myFingerCSSFile = new QString(KStandardDirs::locate("data","kio_finger/kio_finger.css"));
if (myFingerCSSFile->isEmpty())
{
//kDebug() << "kio_finger.css file not found" << endl;
//kDebug() << "kio_finger.css file not found";
this->warning(i18n("kio_finger CSS script not found. Output will look ugly."));
}
else
{
//kDebug() << "kio_finger CSS file found: " << *myFingerCSSFile << endl;
//kDebug() << "kio_finger CSS file found: " << *myFingerCSSFile;
}
}
......
......@@ -59,7 +59,7 @@ int kdemain( int argc, char **argv )
fprintf(stderr, "Usage: kio_floppy protocol domain-socket1 domain-socket2\n");
exit(-1);
}
kDebug(7101) << "Floppy: kdemain: starting" << endl;
kDebug(7101) << "Floppy: kdemain: starting";
FloppyProtocol slave(argv[2], argv[3]);
slave.dispatchLoop();
......@@ -88,7 +88,7 @@ FloppyProtocol::FloppyProtocol (const QByteArray &pool, const QByteArray &app )
,m_stdoutSize(0)
,m_stderrSize(0)
{
kDebug(7101)<<"Floppy::Floppy: -"<<pool<<"-"<<endl;
kDebug(7101)<<"Floppy::Floppy: -"<<pool<<"-";
}
FloppyProtocol::~FloppyProtocol()
......@@ -103,7 +103,7 @@ FloppyProtocol::~FloppyProtocol()
int FloppyProtocol::readStdout()
{
//kDebug(7101)<<"Floppy::readStdout"<<endl;
//kDebug(7101)<<"Floppy::readStdout";
if (m_mtool==0) return 0;
char buffer[16*1024];
......@@ -112,7 +112,7 @@ int FloppyProtocol::readStdout()
//+1 gives us room for a terminating 0
char *newBuffer=new char[length+m_stdoutSize+1];
kDebug(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;
if (m_stdoutBuffer!=0)
{
memcpy(newBuffer, m_stdoutBuffer, m_stdoutSize);
......@@ -123,15 +123,15 @@ int FloppyProtocol::readStdout()
delete [] m_stdoutBuffer;
m_stdoutBuffer=newBuffer;
//kDebug(7101)<<"Floppy::readStdout(): -"<<m_stdoutBuffer<<"-"<<endl;
//kDebug(7101)<<"Floppy::readStdout(): -"<<m_stdoutBuffer<<"-";
//kDebug(7101)<<"Floppy::readStdout ends"<<endl;
//kDebug(7101)<<"Floppy::readStdout ends";
return length;
}
int FloppyProtocol::readStderr()
{
//kDebug(7101)<<"Floppy::readStderr"<<endl;
//kDebug(7101)<<"Floppy::readStderr";
if (m_mtool==0) return 0;
/*struct timeval tv;
......@@ -141,7 +141,7 @@ int FloppyProtocol::readStderr()
char buffer[16*1024];
int length=::read(m_mtool->stderrFD(),buffer,16*1024);
kDebug(7101)<<"Floppy::readStderr(): read "<<length<<" bytes"<<endl;
kDebug(7101)<<"Floppy::readStderr(): read "<<length<<" bytes";
if (length<=0) return 0;
//+1 gives us room for a terminating 0
......@@ -152,26 +152,26 @@ int FloppyProtocol::readStderr()
newBuffer[m_stderrSize]='\0';
delete [] m_stderrBuffer;
m_stderrBuffer=newBuffer;
kDebug(7101)<<"Floppy::readStderr(): -"<<m_stderrBuffer<<"-"<<endl;
kDebug(7101)<<"Floppy::readStderr(): -"<<m_stderrBuffer<<"-";
return length;
}
void FloppyProtocol::clearBuffers()
{
kDebug(7101)<<"Floppy::clearBuffers()"<<endl;
kDebug(7101)<<"Floppy::clearBuffers()";
m_stdoutSize=0;
m_stderrSize=0;
delete [] m_stdoutBuffer;
m_stdoutBuffer=0;
delete [] m_stderrBuffer;
m_stderrBuffer=0;
//kDebug(7101)<<"Floppy::clearBuffers() ends"<<endl;
//kDebug(7101)<<"Floppy::clearBuffers() ends";
}
void FloppyProtocol::terminateBuffers()
{
//kDebug(7101)<<"Floppy::terminateBuffers()"<<endl;
//kDebug(7101)<<"Floppy::terminateBuffers()";
//append a terminating 0 to be sure
if (m_stdoutBuffer!=0)
{
......@@ -181,7 +181,7 @@ void FloppyProtocol::terminateBuffers()
{
m_stderrBuffer[m_stderrSize]='\0';
}
//kDebug(7101)<<"Floppy::terminateBuffers() ends"<<endl;
//kDebug(7101)<<"Floppy::terminateBuffers() ends";
}
bool FloppyProtocol::stopAfterError(const KUrl& url, const QString& drive)
......@@ -193,7 +193,7 @@ bool FloppyProtocol::stopAfterError(const KUrl& url, const QString& drive)
QString outputString(m_stderrBuffer);
QTextStream output(&outputString, QIODevice::ReadOnly);
QString line=output.readLine();
kDebug(7101)<<"line: -"<<line<<"-"<<endl;
kDebug(7101)<<"line: -"<<line<<"-";
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.", drive));
......@@ -252,7 +252,7 @@ bool FloppyProtocol::stopAfterError(const KUrl& url, const QString& drive)
void FloppyProtocol::listDir( const KUrl& _url)
{
kDebug(7101)<<"Floppy::listDir() "<<_url.path()<<endl;
kDebug(7101)<<"Floppy::listDir() "<<_url.path();
KUrl url(_url);
QString path(url.path());
......@@ -328,13 +328,13 @@ void FloppyProtocol::listDir( const KUrl& _url)
while (!output.atEnd())
{
line=output.readLine();
kDebug(7101)<<"Floppy::listDir(): line: -"<<line<<"- length: "<<line.length()<<endl;
kDebug(7101)<<"Floppy::listDir(): line: -"<<line<<"- length: "<<line.length();
if (mode==0)
{
if (line.isEmpty())
{
kDebug(7101)<<"Floppy::listDir(): switching to mode 1"<<endl;
kDebug(7101)<<"Floppy::listDir(): switching to mode 1";
mode=1;
}
}
......@@ -342,7 +342,7 @@ void FloppyProtocol::listDir( const KUrl& _url)
{
if (line[0]==' ')
{
kDebug(7101)<<"Floppy::listDir(): ende"<<endl;
kDebug(7101)<<"Floppy::listDir(): ende";
totalSize(totalNumber);
break;
}
......@@ -351,7 +351,7 @@ void FloppyProtocol::listDir( const KUrl& _url)
if (info.isValid)
{
createUDSEntry(info,entry);
//kDebug(7101)<<"Floppy::listDir(): creating UDSEntry"<<endl;
//kDebug(7101)<<"Floppy::listDir(): creating UDSEntry";
listEntry( entry, false);
totalNumber++;
}
......@@ -359,7 +359,7 @@ void FloppyProtocol::listDir( const KUrl& _url)
}
listEntry( entry, true ); // ready
finished();
//kDebug(7101)<<"Floppy::listDir() ends"<<endl;
//kDebug(7101)<<"Floppy::listDir() ends";
}
void FloppyProtocol::errorMissingMToolsProgram(const QString& name)
......@@ -378,7 +378,7 @@ void FloppyProtocol::createUDSEntry(const StatInfo& info, UDSEntry& entry)
StatInfo FloppyProtocol::createStatInfo(const QString line, bool makeStat, const QString& dirName)
{
//kDebug(7101)<<"Floppy::createUDSEntry()"<<endl;
//kDebug(7101)<<"Floppy::createUDSEntry()";
QString name;
QString size;
bool isDir(false);
......@@ -389,7 +389,7 @@ StatInfo FloppyProtocol::createStatInfo(const QString line, bool makeStat, const
if (line.length()==41)
{
int nameLength=line.indexOf(' ');
kDebug(7101)<<"Floppy::createStatInfo: line find: "<<nameLength <<"= -"<<line<<"-"<<endl;
kDebug(7101)<<"Floppy::createStatInfo: line find: "<<nameLength <<"= -"<<line<<"-";
if (nameLength>0)
{
name=line.mid(0,nameLength);
......@@ -398,12 +398,12 @@ StatInfo FloppyProtocol::createStatInfo(const QString line, bool makeStat, const
if (!ext.isEmpty())
name+='.'+ext;
}
kDebug(7101)<<"Floppy::createStatInfo() name 8.3= -"<<name<<"-"<<endl;
kDebug(7101)<<"Floppy::createStatInfo() name 8.3= -"<<name<<"-";
}
else if (line.length()>41)
{
name=line.mid(42);
kDebug(7101)<<"Floppy::createStatInfo() name vfat: -"<<name<<"-"<<endl;
kDebug(7101)<<"Floppy::createStatInfo() name vfat: -"<<name<<"-";
}
if ((name==".") || (name==".."))
{
......@@ -418,14 +418,14 @@ StatInfo FloppyProtocol::createStatInfo(const QString line, bool makeStat, const
if (line.mid(13,5)=="<DIR>")
{
//kDebug(7101)<<"Floppy::createUDSEntry() isDir"<<endl;
//kDebug(7101)<<"Floppy::createUDSEntry() isDir";
size="1024";
isDir=true;
}
else
{
size=line.mid(13,9);
//kDebug(7101)<<"Floppy::createUDSEntry() size: -"<<size<<"-"<<endl;
//kDebug(7101)<<"Floppy::createUDSEntry() size: -"<<size<<"-";
}
//TEEKANNE JPG 70796 01-02-2003 17:47 Teekanne.jpg
......@@ -443,7 +443,7 @@ StatInfo FloppyProtocol::createStatInfo(const QString line, bool makeStat, const
}
hour=line.mid(35,2);
minute=line.mid(38,2);
//kDebug(7101)<<"Floppy::createUDSEntry() day: -"<<day<<"-"<<month<<"-"<<year<<"- -"<<hour<<"-"<<minute<<"-"<<endl;
//kDebug(7101)<<"Floppy::createUDSEntry() day: -"<<day<<"-"<<month<<"-"<<year<<"- -"<<hour<<"-"<<minute<<"-";
if (name.isEmpty())
{
......@@ -465,7 +465,7 @@ StatInfo FloppyProtocol::createStatInfo(const QString line, bool makeStat, const
info.isDir=isDir;
info.isValid=true;
//kDebug(7101)<<"Floppy::createUDSEntry() ends"<<endl;
//kDebug(7101)<<"Floppy::createUDSEntry() ends";
return info;
}
......@@ -480,7 +480,7 @@ StatInfo FloppyProtocol::_stat(const KUrl& url)
if (floppyPath.isEmpty())
{
kDebug(7101)<<"Floppy::_stat(): floppyPath.isEmpty()"<<endl;
kDebug(7101)<<"Floppy::_stat(): floppyPath.isEmpty()";
info.name=path;
info.size=1024;
info.time=0;
......@@ -491,14 +491,14 @@ StatInfo FloppyProtocol::_stat(const KUrl& url)
return info;
}
//kDebug(7101)<<"Floppy::_stat(): delete m_mtool"<<endl;
//kDebug(7101)<<"Floppy::_stat(): delete m_mtool";
if (m_mtool!=0)
delete m_mtool;
QStringList args;
args<<"mdir"<<"-a"<<(drive+floppyPath);
//kDebug(7101)<<"Floppy::_stat(): create m_mtool"<<endl;
//kDebug(7101)<<"Floppy::_stat(): create m_mtool";
m_mtool=new Program(args);
if (!m_mtool->start())
......@@ -536,7 +536,7 @@ StatInfo FloppyProtocol::_stat(const KUrl& url)
}
} while (!loopFinished);
//kDebug(7101)<<"Floppy::_stat(): delete m_mtool"<<endl;
//kDebug(7101)<<"Floppy::_stat(): delete m_mtool";
delete m_mtool;
m_mtool=0;
//now mdir has finished
......@@ -556,7 +556,7 @@ StatInfo FloppyProtocol::_stat(const KUrl& url)
return info;
}
kDebug(7101)<<"Floppy::_stat(): parse stuff"<<endl;
kDebug(7101)<<"Floppy::_stat(): parse stuff";
QString outputString(m_stdoutBuffer);
QTextStream output(&outputString, QIODevice::ReadOnly);
QString line;
......@@ -582,14 +582,14 @@ int FloppyProtocol::freeSpace(const KUrl& url)
QString floppyPath;
getDriveAndPath(path,drive,floppyPath);
//kDebug(7101)<<"Floppy::freeSpace(): delete m_mtool"<<endl;
//kDebug(7101)<<"Floppy::freeSpace(): delete m_mtool";
if (m_mtool!=0)
delete m_mtool;
QStringList args;
args<<"mdir"<<"-a"<<drive;
//kDebug(7101)<<"Floppy::freeSpace(): create m_mtool"<<endl;
//kDebug(7101)<<"Floppy::freeSpace(): create m_mtool";
m_mtool=new Program(args);
if (!m_mtool->start())
......@@ -627,7 +627,7 @@ int FloppyProtocol::freeSpace(const KUrl& url)
}
} while (!loopFinished);
//kDebug(7101)<<"Floppy::freeSpace(): delete m_mtool"<<endl;
//kDebug(7101)<<"Floppy::freeSpace(): delete m_mtool";
delete m_mtool;
m_mtool=0;
//now mdir has finished
......@@ -645,7 +645,7 @@ int FloppyProtocol::freeSpace(const KUrl& url)
return -1;
}
kDebug(7101)<<"Floppy::freeSpace(): parse stuff"<<endl;
kDebug(7101)<<"Floppy::freeSpace(): parse stuff";
QString outputString(m_stdoutBuffer);
QTextStream output(&outputString, QIODevice::ReadOnly);
QString line;
......@@ -671,7 +671,7 @@ int FloppyProtocol::freeSpace(const KUrl& url)
void FloppyProtocol::stat( const KUrl & _url)
{
kDebug(7101)<<"Floppy::stat() "<<_url.path()<<endl;
kDebug(7101)<<"Floppy::stat() "<<_url.path();
KUrl url(_url);
QString path(url.path());
......@@ -689,7 +689,7 @@ void FloppyProtocol::stat( const KUrl & _url)
createUDSEntry(info,entry);
statEntry( entry );
finished();
//kDebug(7101)<<"Floppy::stat(): ends"<<endl;
//kDebug(7101)<<"Floppy::stat(): ends";
return;
}
//otherwise the error() was already reported in _stat()
......@@ -697,7 +697,7 @@ void FloppyProtocol::stat( const KUrl & _url)
void FloppyProtocol::mkdir( const KUrl& url, int)
{
kDebug(7101)<<"FloppyProtocol::mkdir()"<<endl;
kDebug(7101)<<"FloppyProtocol::mkdir()";
QString path(url.path());
if ((path.isEmpty()) || (path=="/"))
......@@ -718,11 +718,11 @@ void FloppyProtocol::mkdir( const KUrl& url, int)
}
if (m_mtool!=0)
delete m_mtool;
//kDebug(7101)<<"Floppy::stat(): create args"<<endl;
//kDebug(7101)<<"Floppy::stat(): create args";
QStringList args;
args<<"mmd"<<(drive+floppyPath);
kDebug(7101)<<"Floppy::mkdir(): executing: mmd -"<<(drive+floppyPath)<<"-"<<endl;
kDebug(7101)<<"Floppy::mkdir(): executing: mmd -"<<(drive+floppyPath)<<"-";
m_mtool=new Program(args);
if (!m_mtool->start())
......@@ -769,7 +769,7 @@ void FloppyProtocol::mkdir( const KUrl& url, int)