summaryrefslogtreecommitdiffstats
path: root/korganizer/mailscheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/mailscheduler.cpp')
-rw-r--r--korganizer/mailscheduler.cpp50
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" );
}