summaryrefslogtreecommitdiffstats
path: root/libkcal/dummyscheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/dummyscheduler.cpp')
-rw-r--r--libkcal/dummyscheduler.cpp38
1 files changed, 19 insertions, 19 deletions
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 <qfile.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <kstandarddirs.h>
@@ -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<ScheduleMessage> DummyScheduler::retrieveTransactions()
+TQPtrList<ScheduleMessage> DummyScheduler::retrieveTransactions()
{
- QPtrList<ScheduleMessage> messageList;
+ TQPtrList<ScheduleMessage> 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<ScheduleMessage> DummyScheduler::retrieveTransactions()
if (message) {
messageList.append(message);
} else {
- QString errorMessage;
+ TQString errorMessage;
if (mFormat->exception()) {
errorMessage = mFormat->exception()->message();
}
@@ -120,8 +120,8 @@ QPtrList<ScheduleMessage> 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("");
}