diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kalarm/alarmcalendar.h | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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() |