summaryrefslogtreecommitdiffstats
path: root/kalarm/alarmcalendar.h
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/alarmcalendar.h')
-rw-r--r--kalarm/alarmcalendar.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/kalarm/alarmcalendar.h b/kalarm/alarmcalendar.h
index 87abc2d13..be96c3879 100644
--- a/kalarm/alarmcalendar.h
+++ b/kalarm/alarmcalendar.h
@@ -21,7 +21,7 @@
#ifndef ALARMCALENDAR_H
#define ALARMCALENDAR_H
-#include <qobject.h>
+#include <tqobject.h>
#include <kurl.h>
#include <libkcal/calendarlocal.h>
#include "alarmevent.h"
@@ -47,21 +47,21 @@ class AlarmCalendar : public QObject
void close();
void startUpdate();
bool endUpdate();
- KCal::Event* event(const QString& uniqueID);
+ KCal::Event* event(const TQString& uniqueID);
KCal::Event::List events();
- KCal::Event::List eventsWithAlarms(const QDateTime& from, const QDateTime& to);
+ KCal::Event::List eventsWithAlarms(const TQDateTime& from, const TQDateTime& to);
KCal::Event* addEvent(KAEvent&, bool useEventID = false);
void updateEvent(const KAEvent&);
- bool deleteEvent(const QString& eventID, bool save = false);
+ bool deleteEvent(const TQString& eventID, bool save = false);
void emitEmptyStatus();
void purgeAll() { purge(0); }
void setPurgeDays(int days);
void purgeIfQueued(); // must only be called from KAlarmApp::processQueue()
bool isOpen() const { return mOpen; }
- QString path() const { return mUrl.prettyURL(); }
- QString urlString() const { return mUrl.url(); }
+ TQString path() const { return mUrl.prettyURL(); }
+ TQString urlString() const { return mUrl.url(); }
- static QString icalProductId();
+ static TQString icalProductId();
static bool initialiseCalendars();
static void terminateCalendars();
static AlarmCalendar* activeCalendar() { return mCalendars[ACTIVE]; }
@@ -72,8 +72,8 @@ class AlarmCalendar : public QObject
static AlarmCalendar* expiredCalendarOpen() { return calendarOpen(EXPIRED); }
static AlarmCalendar* displayCalendarOpen() { return calendarOpen(DISPLAY); }
static AlarmCalendar* templateCalendarOpen() { return calendarOpen(TEMPLATE); }
- static bool importAlarms(QWidget*);
- static const KCal::Event* getEvent(const QString& uniqueID);
+ static bool importAlarms(TQWidget*);
+ static const KCal::Event* getEvent(const TQString& uniqueID);
enum CalID { ACTIVE, EXPIRED, DISPLAY, TEMPLATE, NCALS };
@@ -86,13 +86,13 @@ class AlarmCalendar : public QObject
void slotPurge();
private:
- AlarmCalendar(const QString& file, CalID, const QString& icalFile = QString::null,
- const QString& configKey = QString::null);
+ AlarmCalendar(const TQString& file, CalID, const TQString& icalFile = TQString::null,
+ const TQString& configKey = TQString::null);
bool create();
- bool saveCal(const QString& newFile = QString::null);
+ bool saveCal(const TQString& newFile = TQString::null);
void purge(int daysToKeep);
void startPurgeTimer();
- static AlarmCalendar* createCalendar(CalID, KConfig*, QString& writePath, const QString& configKey = QString::null);
+ static AlarmCalendar* createCalendar(CalID, KConfig*, TQString& writePath, const TQString& configKey = TQString::null);
static AlarmCalendar* calendarOpen(CalID);
static AlarmCalendar* mCalendars[NCALS]; // the calendars
@@ -100,8 +100,8 @@ class AlarmCalendar : public QObject
KCal::CalendarLocal* mCalendar;
KURL mUrl; // URL of current calendar file
KURL mICalUrl; // URL of iCalendar file
- QString mLocalFile; // calendar file, or local copy if it's a remote file
- QString mConfigKey; // config file key for this calendar's URL
+ TQString mLocalFile; // calendar file, or local copy if it's a remote file
+ TQString mConfigKey; // config file key for this calendar's URL
KAEvent::Status mType; // what type of events the calendar file is for
int mPurgeDays; // how long to keep alarms, 0 = don't keep, -1 = keep indefinitely
bool mOpen; // true if the calendar file is open