diff options
Diffstat (limited to 'kalarm/kalarmd/adcalendar.h')
-rw-r--r-- | kalarm/kalarmd/adcalendar.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kalarm/kalarmd/adcalendar.h b/kalarm/kalarmd/adcalendar.h index 656070bef..67e2fac92 100644 --- a/kalarm/kalarmd/adcalendar.h +++ b/kalarm/kalarmd/adcalendar.h @@ -31,12 +31,12 @@ class ADCalendar : public KCal::CalendarLocal { Q_OBJECT public: - typedef QValueList<ADCalendar*>::ConstIterator ConstIterator; + typedef TQValueList<ADCalendar*>::ConstIterator ConstIterator; ~ADCalendar(); - const QString& urlString() const { return mUrlString; } - const QCString& appName() const { return mAppName; } + const TQString& urlString() const { return mUrlString; } + const TQCString& appName() const { return mAppName; } void setEnabled(bool enabled) { mEnabled = enabled; } bool enabled() const { return mEnabled && !unregistered(); } @@ -47,10 +47,10 @@ class ADCalendar : public KCal::CalendarLocal void setUnregistered(bool u) { mUnregistered = u; } bool unregistered() const { return mUnregistered; } - void setEventPending(const KCal::Event*, const QValueList<QDateTime>&); - void setEventHandled(const QString& eventID); + void setEventPending(const KCal::Event*, const TQValueList<TQDateTime>&); + void setEventHandled(const TQString& eventID); void clearEventsHandled(bool nonexistentOnly = false); - bool eventHandled(const KCal::Event*, const QValueList<QDateTime>&); + bool eventHandled(const KCal::Event*, const TQValueList<TQDateTime>&); bool loadFile(bool reset); bool setLoadedConnected(); // check status of mLoadedConnected and set it to true @@ -60,7 +60,7 @@ class ADCalendar : public KCal::CalendarLocal static ConstIterator begin() { return mCalendars.begin(); } static ConstIterator end() { return mCalendars.end(); } - static ADCalendar* getCalendar(const QString& calendarURL); + static ADCalendar* getCalendar(const TQString& calendarURL); signals: void loaded(ADCalendar*, bool success); @@ -68,7 +68,7 @@ class ADCalendar : public KCal::CalendarLocal protected: // Only ClientInfo can construct ADCalendar objects friend class ClientInfo; - ADCalendar(const QString& url, const QCString& appname); + ADCalendar(const TQString& url, const TQCString& appname); private slots: void slotDownloadJobResult(KIO::Job*); @@ -77,39 +77,39 @@ class ADCalendar : public KCal::CalendarLocal struct EventKey { EventKey() : calendarIndex(-1) { } - EventKey(const QString& id, int cal) : eventID(id), calendarIndex(cal) { } + EventKey(const TQString& id, int cal) : eventID(id), calendarIndex(cal) { } bool operator<(const EventKey& k) const { return (calendarIndex == k.calendarIndex) ? (eventID < k.eventID) : (calendarIndex < k.calendarIndex); } - QString eventID; + TQString eventID; int calendarIndex; }; struct EventItem { EventItem() : eventSequence(0) { } - EventItem(int seqno, const QValueList<QDateTime>& alarmtimes) + EventItem(int seqno, const TQValueList<TQDateTime>& alarmtimes) : eventSequence(seqno), alarmTimes(alarmtimes) {} int eventSequence; - QValueList<QDateTime> alarmTimes; + TQValueList<TQDateTime> alarmTimes; }; - typedef QMap<EventKey, EventItem> EventsMap; // calendar/event ID, event sequence num + typedef TQMap<EventKey, EventItem> EventsMap; // calendar/event ID, event sequence num static EventsMap mEventsHandled; // IDs of already triggered events which have been processed by KAlarm static EventsMap mEventsPending; // IDs of already triggered events not yet processed by KAlarm - static QStringList mCalendarUrls; // URLs of all calendars ever opened - static QValueList<ADCalendar*> mCalendars; // list of all constructed calendars + static TQStringList mCalendarUrls; // URLs of all calendars ever opened + static TQValueList<ADCalendar*> mCalendars; // list of all constructed calendars ADCalendar(const ADCalendar&); // prohibit copying ADCalendar& operator=(const ADCalendar&); // prohibit copying - void loadLocalFile(const QString& filename); + void loadLocalFile(const TQString& filename); void clearEventMap(EventsMap&, bool nonexistentOnly); - void setEventInMap(EventsMap&, const EventKey&, const QValueList<QDateTime>& alarmtimes, int sequence); + void setEventInMap(EventsMap&, const EventKey&, const TQValueList<TQDateTime>& alarmtimes, int sequence); - QString mUrlString; // calendar file URL - QCString mAppName; // name of application owning this calendar - QString mTempFileName; // temporary file used if currently downloading, else null + TQString mUrlString; // calendar file URL + TQCString mAppName; // name of application owning this calendar + TQString mTempFileName; // temporary file used if currently downloading, else null int mUrlIndex; // unique index to URL in mCalendarUrls bool mLoaded; // true if calendar file is currently loaded bool mLoadedConnected; // true if the loaded() signal has been connected to AlarmDaemon |