diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kioslaves/mbox/readmbox.cc | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslaves/mbox/readmbox.cc')
-rw-r--r-- | kioslaves/mbox/readmbox.cc | 28 |
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 ); } |