summaryrefslogtreecommitdiffstats
path: root/libkcal/dummyscheduler.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkcal/dummyscheduler.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 '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("");
}