diff options
Diffstat (limited to 'libkcal/resourcecached.h')
-rw-r--r-- | libkcal/resourcecached.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/libkcal/resourcecached.h b/libkcal/resourcecached.h index bd997da53..efda5a232 100644 --- a/libkcal/resourcecached.h +++ b/libkcal/resourcecached.h @@ -29,10 +29,10 @@ #include <kconfig.h> -#include <qptrlist.h> -#include <qstring.h> -#include <qdatetime.h> -#include <qtimer.h> +#include <tqptrlist.h> +#include <tqstring.h> +#include <tqdatetime.h> +#include <tqtimer.h> #include <kdepimmacros.h> @@ -123,12 +123,12 @@ class KDE_EXPORT ResourceCached : public ResourceCalendar, /** Return time of last load. */ - QDateTime lastLoad() const; + TQDateTime lastLoad() const; /** Return time of last save. */ - QDateTime lastSave() const; + TQDateTime lastSave() const; /** Add event to calendar. @@ -142,7 +142,7 @@ class KDE_EXPORT ResourceCached : public ResourceCalendar, /** Retrieves an event on the basis of the unique string ID. */ - Event *event(const QString &UniqueStr); + Event *event(const TQString &UniqueStr); /** Return filtered list of all events in calendar. */ @@ -155,17 +155,17 @@ class KDE_EXPORT ResourceCached : public ResourceCalendar, Builds and then returns a list of all events that match for the date specified. useful for dayView, etc. etc. */ - Event::List rawEventsForDate( const QDate &date, EventSortField sortField = EventSortUnsorted, SortDirection sortDirection = SortDirectionAscending ); + Event::List rawEventsForDate( const TQDate &date, EventSortField sortField = EventSortUnsorted, SortDirection sortDirection = SortDirectionAscending ); /** Get unfiltered events for date \a qdt. */ - Event::List rawEventsForDate( const QDateTime &qdt ); + Event::List rawEventsForDate( const TQDateTime &qdt ); /** Get unfiltered events in a range of dates. If inclusive is set to true, only events are returned, which are completely included in the range. */ - Event::List rawEvents( const QDate &start, const QDate &end, + Event::List rawEvents( const TQDate &start, const TQDate &end, bool inclusive = false ); /** @@ -180,7 +180,7 @@ class KDE_EXPORT ResourceCached : public ResourceCalendar, Searches todolist for an event with this unique string identifier, returns a pointer or null. */ - Todo *todo( const QString &uid ); + Todo *todo( const TQString &uid ); /** Return list of all todos. */ @@ -188,7 +188,7 @@ class KDE_EXPORT ResourceCached : public ResourceCalendar, /** Returns list of todos due on the specified date. */ - Todo::List rawTodosForDate( const QDate &date ); + Todo::List rawTodosForDate( const TQDate &date ); /** Add a Journal entry to calendar */ @@ -200,7 +200,7 @@ class KDE_EXPORT ResourceCached : public ResourceCalendar, /** Return Journal with given unique id. */ - virtual Journal *journal( const QString &uid ); + virtual Journal *journal( const TQString &uid ); /** Return list of all journals. */ @@ -208,24 +208,24 @@ class KDE_EXPORT ResourceCached : public ResourceCalendar, /** Return list of journals for the given date. */ - Journal::List rawJournalsForDate( const QDate &date ); + Journal::List rawJournalsForDate( const TQDate &date ); /** Return all alarms, which ocur in the given time interval. */ - Alarm::List alarms( const QDateTime &from, const QDateTime &to ); + Alarm::List alarms( const TQDateTime &from, const TQDateTime &to ); /** Return all alarms, which ocur before given date. */ - Alarm::List alarmsTo( const QDateTime &to ); + Alarm::List alarmsTo( const TQDateTime &to ); /** Set id of timezone, e.g. "Europe/Berlin" */ - void setTimeZoneId( const QString &timeZoneId ); + void setTimeZoneId( const TQString &timeZoneId ); - QString timeZoneId() const; + TQString timeZoneId() const; /** Return the owner of the calendar's full name. @@ -240,7 +240,7 @@ class KDE_EXPORT ResourceCached : public ResourceCalendar, void disableChangeNotification(); void clearChange( Incidence * ); - void clearChange( const QString &uid ); + void clearChange( const TQString &uid ); void clearChanges(); @@ -304,7 +304,7 @@ class KDE_EXPORT ResourceCached : public ResourceCalendar, void checkForAutomaticSave(); - void addInfoText( QString & ) const; + void addInfoText( TQString & ) const; void setupSaveTimer(); void setupReloadTimer(); @@ -313,15 +313,15 @@ class KDE_EXPORT ResourceCached : public ResourceCalendar, This method is used by loadCache() and saveCache(), reimplement it to change the location of the cache. */ - virtual QString cacheFile() const; + virtual TQString cacheFile() const; /** Functions for keeping the changes persistent. */ - virtual QString changesCacheFile( const QString& ) const; - void loadChangesCache( QMap<Incidence*, bool>&, const QString& ); + virtual TQString changesCacheFile( const TQString& ) const; + void loadChangesCache( TQMap<Incidence*, bool>&, const TQString& ); void loadChangesCache(); - void saveChangesCache( const QMap<Incidence*, bool>&, const QString& ); + void saveChangesCache( const TQMap<Incidence*, bool>&, const TQString& ); void saveChangesCache(); protected slots: @@ -333,19 +333,19 @@ class KDE_EXPORT ResourceCached : public ResourceCalendar, private: int mReloadPolicy; int mReloadInterval; - QTimer mReloadTimer; + TQTimer mReloadTimer; bool mReloaded; int mSavePolicy; int mSaveInterval; - QTimer mSaveTimer; + TQTimer mSaveTimer; - QDateTime mLastLoad; - QDateTime mLastSave; + TQDateTime mLastLoad; + TQDateTime mLastSave; - QMap<KCal::Incidence *,bool> mAddedIncidences; - QMap<KCal::Incidence *,bool> mChangedIncidences; - QMap<KCal::Incidence *,bool> mDeletedIncidences; + TQMap<KCal::Incidence *,bool> mAddedIncidences; + TQMap<KCal::Incidence *,bool> mChangedIncidences; + TQMap<KCal::Incidence *,bool> mDeletedIncidences; KPIM::IdMapper mIdMapper; |