summaryrefslogtreecommitdiffabout
path: root/libkcal/dummyscheduler.cpp
Side-by-side diff
Diffstat (limited to 'libkcal/dummyscheduler.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/dummyscheduler.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/libkcal/dummyscheduler.cpp b/libkcal/dummyscheduler.cpp
index ae40e6d..73eb3d0 100644
--- a/libkcal/dummyscheduler.cpp
+++ b/libkcal/dummyscheduler.cpp
@@ -25,3 +25,5 @@
#include <qfile.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
+//Added by qt3to4:
+#include <Q3PtrList>
@@ -70,4 +72,4 @@ bool DummyScheduler::saveMessage(const QString &message)
QFile f("dummyscheduler.store");
- if (f.open(IO_WriteOnly | IO_Append)) {
- QTextStream t(&f);
+ if (f.open(QIODevice::WriteOnly | QIODevice::Append)) {
+ Q3TextStream t(&f);
t << message << endl;
@@ -80,8 +82,8 @@ bool DummyScheduler::saveMessage(const QString &message)
-QPtrList<ScheduleMessage> DummyScheduler::retrieveTransactions()
+Q3PtrList<ScheduleMessage> DummyScheduler::retrieveTransactions()
{
- QPtrList<ScheduleMessage> messageList;
+ Q3PtrList<ScheduleMessage> messageList;
QFile f("dummyscheduler.store");
- if (!f.open(IO_ReadOnly)) {
+ if (!f.open(QIODevice::ReadOnly)) {
kdDebug(5800) << "DummyScheduler::retrieveTransactions(): Can't open file"
@@ -89,3 +91,3 @@ QPtrList<ScheduleMessage> DummyScheduler::retrieveTransactions()
} else {
- QTextStream t(&f);
+ Q3TextStream t(&f);
QString messageString;