summaryrefslogtreecommitdiffstats
path: root/kresources/exchange/resourceexchange.h
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/exchange/resourceexchange.h')
-rw-r--r--kresources/exchange/resourceexchange.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/kresources/exchange/resourceexchange.h b/kresources/exchange/resourceexchange.h
index 721e3666..d3492cf0 100644
--- a/kresources/exchange/resourceexchange.h
+++ b/kresources/exchange/resourceexchange.h
@@ -20,9 +20,9 @@
#ifndef KPIM_EXCHANGECALENDAR_H
#define KPIM_EXCHANGECALENDAR_H
-#include <qmap.h>
-#include <qdict.h>
-#include <qintdict.h>
+#include <tqmap.h>
+#include <tqdict.h>
+#include <tqintdict.h>
#include <libkcal/calendar.h>
#include <libkcal/calendarlocal.h>
@@ -60,7 +60,7 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer
/** constructs a new calendar, with variables initialized to sane values. */
// ExchangeCalendar( KPIM::ExchangeAccount* account );
/** constructs a new calendar, with variables initialized to sane values. */
-// ExchangeCalendar( KPIM::ExchangeAccount* account, const QString &timeZoneId );
+// ExchangeCalendar( KPIM::ExchangeAccount* account, const TQString &timeZoneId );
// virtual ~ExchangeCalendar();
/**
@@ -70,14 +70,14 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer
@return true, if successful, false on error.
@param fileName the name of the calendar on disk.
*/
-// bool load( const QString &fileName );
+// bool load( const TQString &fileName );
/**
Writes out the calendar to disk in the specified \a format.
ExchangeCalendar takes ownership of the CalFormat object.
@return true, if successful, false on error.
@param fileName the name of the file
*/
-// bool save( const QString &fileName, CalFormat *format = 0 );
+// bool save( const TQString &fileName, CalFormat *format = 0 );
/** clears out the current calendar, freeing all used memory etc. etc. */
// void close();
@@ -93,7 +93,7 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer
/**
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.
*/
@@ -104,7 +104,7 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer
*/
Event::List rawEvents();
- virtual void subscribeEvents( const QDate& start, const QDate& end );
+ virtual void subscribeEvents( const TQDate& start, const TQDate& end );
/**
Stop receiving event signals for the given period (inclusive). After this call,
@@ -113,7 +113,7 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer
MAY delete the Events objects. The application MUST NOT dereference pointers
to the relevant Events after this call.
*/
- virtual void unsubscribeEvents( const QDate& start, const QDate& end );
+ virtual void unsubscribeEvents( const TQDate& start, const TQDate& end );
/**
Add a todo to the todolist.
@@ -127,7 +127,7 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer
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.
*/
@@ -135,26 +135,26 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer
/**
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 */
virtual bool addJournal(Journal *);
/** deletes an event from this calendar. */
virtual bool deleteJournal(Journal *);
/** Return Journals for given date */
- virtual Journal::List journals(const QDate &);
+ virtual Journal::List journals(const TQDate &);
/** Return Journal with given UID */
- virtual Journal *journal(const QString &UID);
+ virtual Journal *journal(const TQString &UID);
/** Return list of all Journals stored in calendar */
Journal::List rawJournals( JournalSortField sortField = JournalSortUnsorted, SortDirection sortDirection = SortDirectionAscending );
/** Return journals for the given date. */
- Journal::List rawJournalsForDate( const QDate & );
+ Journal::List rawJournalsForDate( const TQDate & );
/** 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 );
friend class ResourceExchangeConfig;
@@ -178,19 +178,19 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer
date specified. useful for dayView, etc. etc.
*/
Event::List rawEventsForDate(
- const QDate &date,
+ 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 );
/**
Get unfiltered events in sorted order.
@@ -206,20 +206,20 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer
/** Append alarms of incidence in interval to list of alarms. */
// void appendAlarms( Alarm::List &alarms, Incidence *incidence,
-// const QDateTime &from, const QDateTime &to );
+// const TQDateTime &from, const TQDateTime &to );
/** Append alarms of recurring events in interval to list of alarms. */
// void appendRecurringAlarms( Alarm::List &alarms, Incidence *incidence,
-// const QDateTime &from, const QDateTime &to );
+// const TQDateTime &from, const TQDateTime &to );
bool uploadEvent( Event *event );
- void setTimeZoneId( const QString &tzid );
+ void setTimeZoneId( const TQString &tzid );
protected slots:
- void slotMonitorNotify( const QValueList<long>& IDs, const QValueList<KURL>& urls);
- void slotMonitorError( int errorCode, const QString& moreInfo );
- void slotDownloadFinished( int result, const QString& moreinfo );
+ void slotMonitorNotify( const TQValueList<long>& IDs, const TQValueList<KURL>& urls);
+ void slotMonitorError( int errorCode, const TQString& moreInfo );
+ void slotDownloadFinished( int result, const TQString& moreinfo );
void downloadedEvent( KCal::Event*, const KURL& );
private:
@@ -228,14 +228,14 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer
KPIM::ExchangeClient* mClient;
KPIM::ExchangeMonitor* mMonitor;
CalendarLocal* mCache;
- QDict<EventInfo> mEventDict; // maps UIDS to EventInfo records
- QIntDict<EventInfo> mWatchDict; // maps Watch IDs to EventInfo records
+ TQDict<EventInfo> mEventDict; // maps UIDS to EventInfo records
+ TQIntDict<EventInfo> mWatchDict; // maps Watch IDs to EventInfo records
DateSet* mDates;
- QMap<Event, QDateTime>* mEventDates;
- QMap<QDate, QDateTime>* mCacheDates;
+ TQMap<Event, TQDateTime>* mEventDates;
+ TQMap<TQDate, TQDateTime>* mCacheDates;
int mCachedSeconds;
bool mAutoMailbox;
- QString mTimeZoneId;
+ TQString mTimeZoneId;
KABC::Lock *mLock;