summaryrefslogtreecommitdiffstats
path: root/kioslaves/mbox/readmbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kioslaves/mbox/readmbox.cc')
-rw-r--r--kioslaves/mbox/readmbox.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/kioslaves/mbox/readmbox.cc b/kioslaves/mbox/readmbox.cc
index c7513c6eb..35b24db45 100644
--- a/kioslaves/mbox/readmbox.cc
+++ b/kioslaves/mbox/readmbox.cc
@@ -26,10 +26,10 @@
#include <kdebug.h>
#include <kio/global.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qstring.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqstring.h>
+#include <tqtextstream.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@@ -41,8 +41,8 @@ ReadMBox::ReadMBox( const UrlInfo* info, MBoxProtocol* parent, bool onlynew, boo
: MBoxFile( info, parent ),
m_file( 0 ),
m_stream( 0 ),
- m_current_line( new QString( QString::null ) ),
- m_current_id( new QString( QString::null ) ),
+ m_current_line( new TQString( TQString::null ) ),
+ m_current_id( new TQString( TQString::null ) ),
m_atend( true ),
m_prev_time( 0 ),
m_only_new( onlynew ),
@@ -69,12 +69,12 @@ ReadMBox::~ReadMBox()
close();
}
-QString ReadMBox::currentLine() const
+TQString ReadMBox::currentLine() const
{
return *m_current_line;
}
-QString ReadMBox::currentID() const
+TQString ReadMBox::currentID() const
{
return *m_current_id;
}
@@ -88,7 +88,7 @@ bool ReadMBox::nextLine()
m_atend = m_current_line->isNull();
if( m_atend ) // Cursor was at EOF
{
- *m_current_id = QString::null;
+ *m_current_id = TQString::null;
m_prev_status = m_status;
return true;
}
@@ -116,7 +116,7 @@ bool ReadMBox::nextLine()
return false;
}
-bool ReadMBox::searchMessage( const QString& id )
+bool ReadMBox::searchMessage( const TQString& id )
{
if( !m_stream )
return false;
@@ -166,7 +166,7 @@ bool ReadMBox::open( bool savetime )
{
if( savetime )
{
- QFileInfo info( m_info->filename() );
+ TQFileInfo info( m_info->filename() );
m_prev_time = new utimbuf;
m_prev_time->actime = info.lastRead().toTime_t();
@@ -176,14 +176,14 @@ bool ReadMBox::open( bool savetime )
if( m_file )
return false; //File already open
- m_file = new QFile( m_info->filename() );
+ m_file = new TQFile( m_info->filename() );
if( !m_file->open( IO_ReadOnly ) )
{
delete m_file;
m_file = 0;
return false;
}
- m_stream = new QTextStream( m_file );
+ m_stream = new TQTextStream( m_file );
skipMessage();
return true;
@@ -199,6 +199,6 @@ void ReadMBox::close()
delete m_file; m_file = 0;
if( m_prev_time )
- utime( QFile::encodeName( m_info->filename() ), m_prev_time );
+ utime( TQFile::encodeName( m_info->filename() ), m_prev_time );
}