diff options
Diffstat (limited to 'kalarm/alarmcalendar.h')
-rw-r--r-- | kalarm/alarmcalendar.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/kalarm/alarmcalendar.h b/kalarm/alarmcalendar.h index be96c3879..47d59f3ed 100644 --- a/kalarm/alarmcalendar.h +++ b/kalarm/alarmcalendar.h @@ -33,13 +33,14 @@ class KConfig; * Either vCalendar or iCalendar files may be read, but the calendar is saved * only in iCalendar format to avoid information loss. */ -class AlarmCalendar : public QObject +class AlarmCalendar : public TQObject { Q_OBJECT + TQ_OBJECT public: virtual ~AlarmCalendar(); bool valid() const { return mUrl.isValid(); } - KAEvent::Status type() const { return mType; } + KAEvent::tqStatus type() const { return mType; } bool open(); int load(); bool reload(); @@ -53,7 +54,7 @@ class AlarmCalendar : public QObject KCal::Event* addEvent(KAEvent&, bool useEventID = false); void updateEvent(const KAEvent&); bool deleteEvent(const TQString& eventID, bool save = false); - void emitEmptyStatus(); + void emitEmptytqStatus(); void purgeAll() { purge(0); } void setPurgeDays(int days); void purgeIfQueued(); // must only be called from KAlarmApp::processQueue() @@ -80,19 +81,19 @@ class AlarmCalendar : public QObject signals: void calendarSaved(AlarmCalendar*); void purged(); - void emptyStatus(bool empty); + void emptytqStatus(bool empty); private slots: void slotPurge(); private: - AlarmCalendar(const TQString& file, CalID, const TQString& icalFile = TQString::null, - const TQString& configKey = TQString::null); + AlarmCalendar(const TQString& file, CalID, const TQString& icalFile = TQString(), + const TQString& configKey = TQString()); bool create(); - bool saveCal(const TQString& newFile = TQString::null); + bool saveCal(const TQString& newFile = TQString()); void purge(int daysToKeep); void startPurgeTimer(); - static AlarmCalendar* createCalendar(CalID, KConfig*, TQString& writePath, const TQString& configKey = TQString::null); + static AlarmCalendar* createCalendar(CalID, KConfig*, TQString& writePath, const TQString& configKey = TQString()); static AlarmCalendar* calendarOpen(CalID); static AlarmCalendar* mCalendars[NCALS]; // the calendars @@ -102,7 +103,7 @@ class AlarmCalendar : public QObject KURL mICalUrl; // URL of iCalendar file 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 + KAEvent::tqStatus 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 int mPurgeDaysQueued; // >= 0 to purge the calendar when called from KAlarmApp::processLoop() |