From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcal/dummyscheduler.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'libkcal/dummyscheduler.cpp') diff --git a/libkcal/dummyscheduler.cpp b/libkcal/dummyscheduler.cpp index eeeb73d79..7a824f08a 100644 --- a/libkcal/dummyscheduler.cpp +++ b/libkcal/dummyscheduler.cpp @@ -23,8 +23,8 @@ // DummyScheduler - iMIP implementation of iTIP methods // -#include -#include +#include +#include #include #include @@ -45,33 +45,33 @@ DummyScheduler::~DummyScheduler() { } -bool DummyScheduler::publish (IncidenceBase *incidence,const QString &/*recipients*/) +bool DummyScheduler::publish (IncidenceBase *incidence,const TQString &/*recipients*/) { - QString messageText = mFormat->createScheduleMessage(incidence, + TQString messageText = mFormat->createScheduleMessage(incidence, Scheduler::Publish); return saveMessage(messageText); } -bool DummyScheduler::performTransaction(IncidenceBase *incidence,Method method,const QString &/*recipients*/) +bool DummyScheduler::performTransaction(IncidenceBase *incidence,Method method,const TQString &/*recipients*/) { - QString messageText = mFormat->createScheduleMessage(incidence,method); + TQString messageText = mFormat->createScheduleMessage(incidence,method); return saveMessage(messageText); } bool DummyScheduler::performTransaction(IncidenceBase *incidence,Method method) { - QString messageText = mFormat->createScheduleMessage(incidence,method); + TQString messageText = mFormat->createScheduleMessage(incidence,method); return saveMessage(messageText); } -bool DummyScheduler::saveMessage(const QString &message) +bool DummyScheduler::saveMessage(const TQString &message) { - QFile f("dummyscheduler.store"); + TQFile f("dummyscheduler.store"); if (f.open(IO_WriteOnly | IO_Append)) { - QTextStream t(&f); + TQTextStream t(&f); t << message << endl; f.close(); return true; @@ -80,18 +80,18 @@ bool DummyScheduler::saveMessage(const QString &message) } } -QPtrList DummyScheduler::retrieveTransactions() +TQPtrList DummyScheduler::retrieveTransactions() { - QPtrList messageList; + TQPtrList messageList; - QFile f("dummyscheduler.store"); + TQFile f("dummyscheduler.store"); if (!f.open(IO_ReadOnly)) { kdDebug(5800) << "DummyScheduler::retrieveTransactions(): Can't open file" << endl; } else { - QTextStream t(&f); - QString messageString; - QString messageLine = t.readLine(); + TQTextStream t(&f); + TQString messageString; + TQString messageLine = t.readLine(); while (!messageLine.isNull()) { // kdDebug(5800) << "++++++++" << messageLine << endl; messageString += messageLine + "\n"; @@ -103,7 +103,7 @@ QPtrList DummyScheduler::retrieveTransactions() if (message) { messageList.append(message); } else { - QString errorMessage; + TQString errorMessage; if (mFormat->exception()) { errorMessage = mFormat->exception()->message(); } @@ -120,8 +120,8 @@ QPtrList DummyScheduler::retrieveTransactions() return messageList; } -QString DummyScheduler::freeBusyDir() +TQString DummyScheduler::freeBusyDir() { // the dummy scheduler should never handle freebusy stuff - so it's hardcoded - return QString(""); + return TQString(""); } -- cgit v1.2.1