summaryrefslogtreecommitdiffstats
path: root/libkcal/resourcecached.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkcal/resourcecached.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkcal/resourcecached.h')
-rw-r--r--libkcal/resourcecached.h62
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;