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 /korganizer/mailscheduler.cpp | |
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 'korganizer/mailscheduler.cpp')
-rw-r--r-- | korganizer/mailscheduler.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/korganizer/mailscheduler.cpp b/korganizer/mailscheduler.cpp index bbd3daee5..0c0ddb966 100644 --- a/korganizer/mailscheduler.cpp +++ b/korganizer/mailscheduler.cpp @@ -22,9 +22,9 @@ without including the source code for Qt in the source distribution. */ -#include <qdir.h> -#include <qfile.h> -#include <qregexp.h> +#include <tqdir.h> +#include <tqfile.h> +#include <tqregexp.h> #include <klocale.h> #include <kstandarddirs.h> @@ -52,9 +52,9 @@ MailScheduler::~MailScheduler() } bool MailScheduler::publish( IncidenceBase *incidence, - const QString &recipients ) + const TQString &recipients ) { - QString messageText = mFormat->createScheduleMessage( incidence, + TQString messageText = mFormat->createScheduleMessage( incidence, Scheduler::Publish ); KOMailClient mailer; return mailer.mailTo( incidence, recipients, messageText ); @@ -62,9 +62,9 @@ bool MailScheduler::publish( IncidenceBase *incidence, bool MailScheduler::performTransaction( IncidenceBase *incidence, Method method, - const QString &recipients ) + const TQString &recipients ) { - QString messageText = mFormat->createScheduleMessage( incidence, method ); + TQString messageText = mFormat->createScheduleMessage( incidence, method ); KOMailClient mailer; return mailer.mailTo( incidence, recipients, messageText ); @@ -73,7 +73,7 @@ bool MailScheduler::performTransaction( IncidenceBase *incidence, bool MailScheduler::performTransaction( IncidenceBase *incidence, Method method ) { - QString messageText = mFormat->createScheduleMessage( incidence, method ); + TQString messageText = mFormat->createScheduleMessage( incidence, method ); KOMailClient mailer; bool status; @@ -83,7 +83,7 @@ bool MailScheduler::performTransaction( IncidenceBase *incidence, method == Declinecounter ) { status = mailer.mailAttendees( incidence, messageText ); } else { - QString subject; + TQString subject; Incidence *inc = dynamic_cast<Incidence*>( incidence ); if ( inc && method == Counter ) subject = i18n( "Counter proposal: %1" ).arg( inc->summary() ); @@ -92,23 +92,23 @@ bool MailScheduler::performTransaction( IncidenceBase *incidence, return status; } -QPtrList<ScheduleMessage> MailScheduler::retrieveTransactions() +TQPtrList<ScheduleMessage> MailScheduler::retrieveTransactions() { - QString incomingDirName = locateLocal( "data", "korganizer/income" ); + TQString incomingDirName = locateLocal( "data", "korganizer/income" ); kdDebug(5850) << "MailScheduler::retrieveTransactions: dir: " << incomingDirName << endl; - QPtrList<ScheduleMessage> messageList; + TQPtrList<ScheduleMessage> messageList; - QDir incomingDir( incomingDirName ); - QStringList incoming = incomingDir.entryList( QDir::Files ); - QStringList::ConstIterator it; + TQDir incomingDir( incomingDirName ); + TQStringList incoming = incomingDir.entryList( TQDir::Files ); + TQStringList::ConstIterator it; for( it = incoming.begin(); it != incoming.end(); ++it ) { kdDebug(5850) << "-- File: " << (*it) << endl; - QFile f( incomingDirName + "/" + (*it) ); + TQFile f( incomingDirName + "/" + (*it) ); bool inserted = false; - QMap<IncidenceBase*, QString>::Iterator iter; + TQMap<IncidenceBase*, TQString>::Iterator iter; for ( iter = mEventMap.begin(); iter != mEventMap.end(); ++iter ) { if ( iter.data() == incomingDirName + "/" + (*it) ) inserted = true; @@ -119,11 +119,11 @@ QPtrList<ScheduleMessage> MailScheduler::retrieveTransactions() << "MailScheduler::retrieveTransactions(): Can't open file'" << (*it) << "'" << endl; } else { - QTextStream t( &f ); - t.setEncoding( QTextStream::Latin1 ); - QString messageString = t.read(); - messageString.replace( QRegExp( "\n[ \t]"), "" ); - messageString = QString::fromUtf8( messageString.latin1() ); + TQTextStream t( &f ); + t.setEncoding( TQTextStream::Latin1 ); + TQString messageString = t.read(); + messageString.replace( TQRegExp( "\n[ \t]"), "" ); + messageString = TQString::fromUtf8( messageString.latin1() ); ScheduleMessage *mess = mFormat->parseScheduleMessage( mCalendar, messageString ); if ( mess) { @@ -133,7 +133,7 @@ QPtrList<ScheduleMessage> MailScheduler::retrieveTransactions() messageList.append( mess ); mEventMap[ mess->event() ] = incomingDirName + "/" + (*it); } else { - QString errorMessage; + TQString errorMessage; if ( mFormat->exception() ) { errorMessage = mFormat->exception()->message(); } @@ -151,7 +151,7 @@ QPtrList<ScheduleMessage> MailScheduler::retrieveTransactions() bool MailScheduler::deleteTransaction( IncidenceBase *incidence ) { bool status; - QFile f( mEventMap[incidence] ); + TQFile f( mEventMap[incidence] ); mEventMap.remove( incidence ); if ( !f.exists() ) { status = false; @@ -161,7 +161,7 @@ bool MailScheduler::deleteTransaction( IncidenceBase *incidence ) return status; } -QString MailScheduler::freeBusyDir() +TQString MailScheduler::freeBusyDir() { return locateLocal( "data", "korganizer/freebusy" ); } |