summaryrefslogtreecommitdiffstats
path: root/kioslave/floppy
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit9a3f0aacd44fb866833ebcb852df3cd31475cb33 (patch)
tree9f699684624f4e78e13e7dd2393a103cc6fa8274 /kioslave/floppy
parent341ad02235b9c85cd31782225181ed475b74eaa3 (diff)
downloadtdebase-9a3f0aacd44fb866833ebcb852df3cd31475cb33.tar.gz
tdebase-9a3f0aacd44fb866833ebcb852df3cd31475cb33.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/floppy')
-rw-r--r--kioslave/floppy/kio_floppy.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kioslave/floppy/kio_floppy.cpp b/kioslave/floppy/kio_floppy.cpp
index bd24aca0c..a0c68a9d2 100644
--- a/kioslave/floppy/kio_floppy.cpp
+++ b/kioslave/floppy/kio_floppy.cpp
@@ -195,51 +195,51 @@ bool FloppyProtocol::stopAfterError(const KURL& url, const TQString& drive)
TQTextIStream output(&outputString);
TQString line=output.readLine();
kdDebug(7101)<<"line: -"<<line<<"-"<<endl;
- if (line.tqfind("resource busy") > -1)
+ if (line.find("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));
}
- else if ((line.tqfind("Disk full") > -1) || (line.tqfind("No free cluster") > -1))
+ else if ((line.find("Disk full") > -1) || (line.find("No free cluster") > -1))
{
error( KIO::ERR_SLAVE_DEFINED, i18n("Could not write to file %1.\nThe disk in drive %2 is probably full.").arg(url.prettyURL(),drive));
}
//file not found
- else if (line.tqfind("not found") > -1)
+ else if (line.find("not found") > -1)
{
error( KIO::ERR_DOES_NOT_EXIST, url.prettyURL());
}
//no disk
- else if (line.tqfind("not configured") > -1)
+ else if (line.find("not configured") > -1)
{
error( KIO::ERR_SLAVE_DEFINED, i18n("Could not access %1.\nThere is probably no disk in the drive %2").arg(url.prettyURL(),drive));
}
- else if (line.tqfind("No such device") > -1)
+ else if (line.find("No such device") > -1)
{
error( KIO::ERR_SLAVE_DEFINED, i18n("Could not access %1.\nThere is probably no disk in the drive %2 or you do not have enough permissions to access the drive.").arg(url.prettyURL(),drive));
}
- else if (line.tqfind("not supported") > -1)
+ else if (line.find("not supported") > -1)
{
error( KIO::ERR_SLAVE_DEFINED, i18n("Could not access %1.\nThe drive %2 is not supported.").arg(url.prettyURL(),drive));
}
//not supported or no such drive
- else if (line.tqfind("Permission denied") > -1)
+ else if (line.find("Permission denied") > -1)
{
error( KIO::ERR_SLAVE_DEFINED, i18n("Could not access %1.\nMake sure the floppy in drive %2 is a DOS-formatted floppy disk \nand that the permissions of the device file (e.g. /dev/fd0) are set correctly (e.g. rwxrwxrwx).").arg(url.prettyURL(),drive));
}
- else if (line.tqfind("non DOS media") > -1)
+ else if (line.find("non DOS media") > -1)
{
error( KIO::ERR_SLAVE_DEFINED, i18n("Could not access %1.\nThe disk in drive %2 is probably not a DOS-formatted floppy disk.").arg(url.prettyURL(),drive));
}
- else if (line.tqfind("Read-only") > -1)
+ else if (line.find("Read-only") > -1)
{
error( KIO::ERR_SLAVE_DEFINED, i18n("Access denied.\nCould not write to %1.\nThe disk in drive %2 is probably write-protected.").arg(url.prettyURL(),drive));
}
- else if ((outputString.tqfind("already exists") > -1) || (outputString.tqfind("Skipping ") > -1))
+ else if ((outputString.find("already exists") > -1) || (outputString.find("Skipping ") > -1))
{
error( KIO::ERR_FILE_ALREADY_EXIST,url.prettyURL());
//return false;
}
- else if (outputString.tqfind("could not read boot sector") > -1)
+ else if (outputString.find("could not read boot sector") > -1)
{
error( KIO::ERR_SLAVE_DEFINED, i18n("Could not read boot sector for %1.\nThere is probably not any disk in drive %2.").arg(url.prettyURL(),drive));
//return false;
@@ -404,7 +404,7 @@ StatInfo FloppyProtocol::createStatInfo(const TQString line, bool makeStat, cons
if (line.length()==41)
{
- int nameLength=line.tqfind(' ');
+ int nameLength=line.find(' ');
kdDebug(7101)<<"Floppy::createStatInfo: line find: "<<nameLength <<"= -"<<line<<"-"<<endl;
if (nameLength>0)
{
@@ -669,7 +669,7 @@ int FloppyProtocol::freeSpace(const KURL& url)
while (!output.atEnd())
{
line=output.readLine();
- if (line.tqfind("bytes free")==36)
+ if (line.find("bytes free")==36)
{
TQString tmp=line.mid(24,3);
tmp=tmp.stripWhiteSpace();