summaryrefslogtreecommitdiffstats
path: root/kioslaves/imap4/mimeio.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kioslaves/imap4/mimeio.cc')
-rw-r--r--kioslaves/imap4/mimeio.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/kioslaves/imap4/mimeio.cc b/kioslaves/imap4/mimeio.cc
index 5adf28f98..971cd0a9c 100644
--- a/kioslaves/imap4/mimeio.cc
+++ b/kioslaves/imap4/mimeio.cc
@@ -83,7 +83,7 @@ mimeIO::outputMimeLine (const TQCString & inLine)
{
int start, end, offset;
start = 0;
- end = aLine.find ('\n', start);
+ end = aLine.tqfind ('\n', start);
while (end >= 0)
{
offset = 1;
@@ -94,7 +94,7 @@ mimeIO::outputMimeLine (const TQCString & inLine)
}
outputLine (aLine.mid (start, end - start) + theCRLF, end - start + crlfLen);
start = end + offset;
- end = aLine.find ('\n', start);
+ end = aLine.tqfind ('\n', start);
}
outputLine (aLine.mid (start, len - start) + theCRLF, len - start + crlfLen);
}
@@ -127,26 +127,26 @@ mimeIO::setCRLF (const char *aCRLF)
crlfLen = strlen(aCRLF);
}
-mimeIOQFile::mimeIOQFile (const TQString & aName):
+mimeIOTQFile::mimeIOTQFile (const TQString & aName):
mimeIO (),
myFile (aName)
{
myFile.open (IO_ReadOnly);
}
-mimeIOQFile::~mimeIOQFile ()
+mimeIOTQFile::~mimeIOTQFile ()
{
myFile.close ();
}
int
-mimeIOQFile::outputLine (const TQCString &, int)
+mimeIOTQFile::outputLine (const TQCString &, int)
{
return 0;
}
int
-mimeIOQFile::inputLine (TQCString & data)
+mimeIOTQFile::inputLine (TQCString & data)
{
data.resize( 1024 );
myFile.readLine (data.data(), 1024);
@@ -154,16 +154,16 @@ mimeIOQFile::inputLine (TQCString & data)
return data.length ();
}
-mimeIOQString::mimeIOQString ()
+mimeIOTQString::mimeIOTQString ()
{
}
-mimeIOQString::~mimeIOQString ()
+mimeIOTQString::~mimeIOTQString ()
{
}
int
-mimeIOQString::outputLine (const TQCString & _str, int len)
+mimeIOTQString::outputLine (const TQCString & _str, int len)
{
if (len == -1) {
len = _str.length();
@@ -173,12 +173,12 @@ mimeIOQString::outputLine (const TQCString & _str, int len)
}
int
-mimeIOQString::inputLine (TQCString & _str)
+mimeIOTQString::inputLine (TQCString & _str)
{
if (theString.isEmpty ())
return 0;
- int i = theString.find ('\n');
+ int i = theString.tqfind ('\n');
if (i == -1)
return 0;