summaryrefslogtreecommitdiffstats
path: root/libkcal/calendar.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/calendar.h')
-rw-r--r--libkcal/calendar.h104
1 files changed, 52 insertions, 52 deletions
diff --git a/libkcal/calendar.h b/libkcal/calendar.h
index bfcf4c8ad..4c6c0f988 100644
--- a/libkcal/calendar.h
+++ b/libkcal/calendar.h
@@ -31,11 +31,11 @@
#ifndef KCAL_CALENDAR_H
#define KCAL_CALENDAR_H
-#include <qobject.h>
-#include <qstring.h>
-#include <qdatetime.h>
-#include <qptrlist.h>
-#include <qdict.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqdatetime.h>
+#include <tqptrlist.h>
+#include <tqdict.h>
#include <kdepimmacros.h>
#include "customproperties.h"
@@ -164,7 +164,7 @@ enum JournalSortField
- Depending on the LocalTime setting, all loaded Incidences are stored
either in UTC or without a time zone (floating time zone).
*/
-class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
+class LIBKCAL_EXPORT Calendar : public TQObject, public CustomProperties,
public IncidenceBase::Observer
{
Q_OBJECT
@@ -185,7 +185,7 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
Do Not pass an empty timeZoneId string as this may cause unintended
consequences when storing Incidences into the Calendar.
*/
- Calendar( const QString &timeZoneId );
+ Calendar( const TQString &timeZoneId );
/**
Destructor
@@ -195,16 +195,16 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
/**
Set the Calendar Product ID.
- @param productId is a QString containing the Product ID.
+ @param productId is a TQString containing the Product ID.
*/
- void setProductId( const QString &productId );
+ void setProductId( const TQString &productId );
/**
Get the Calendar's Product ID.
@return the string containing the Product ID
*/
- QString productId();
+ TQString productId();
/**
Set the owner of the Calendar.
@@ -234,7 +234,7 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
Do Not pass an empty timeZoneId string as this may cause unintended
consequences when storing Incidences into the Calendar.
*/
- void setTimeZoneId( const QString &timeZoneId );
+ void setTimeZoneId( const TQString &timeZoneId );
/**
* Set the timezone used for viewing the incidences in this calendar. In
@@ -242,14 +242,14 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
* retain their absolute time (in UTC).
* @ref setTimeZoneId
*/
- virtual void setTimeZoneIdViewOnly( const QString &timeZoneId ) = 0;
+ virtual void setTimeZoneIdViewOnly( const TQString &timeZoneId ) = 0;
/**
Get the Time Zone ID for the Calendar.
@return the string containg the Time Zone ID.
*/
- QString timeZoneId() const;
+ TQString timeZoneId() const;
/**
Set to store calendar Incidences without a time zone.
@@ -294,7 +294,7 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
* once before, in other words initialized.
* @par tz The timezone to use for loading.
*/
- virtual bool reload( const QString &tz ) = 0;
+ virtual bool reload( const TQString &tz ) = 0;
/**
Determine if the Calendar is currently being saved.
@@ -306,9 +306,9 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
/**
Return a list of all categories used by Incidences in this Calendar.
- @return a QStringList containing all the categories.
+ @return a TQStringList containing all the categories.
*/
- QStringList categories();
+ TQStringList categories();
// Incidence Specific Methods //
@@ -340,11 +340,11 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
/**
Return a filtered list of all Incidences which occur on the given date.
- @param date request filtered Incidence list for this QDate only.
+ @param date request filtered Incidence list for this TQDate only.
@return the list of filtered Incidences occurring on the specified date.
*/
- virtual Incidence::List incidences( const QDate &date );
+ virtual Incidence::List incidences( const TQDate &date );
/**
Return an unfiltered list of all Incidences for this Calendar.
@@ -361,7 +361,7 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
@return a pointer to the Incidence.
A null pointer is returned if no such Incidence exists.
*/
- Incidence *incidence( const QString &uid );
+ Incidence *incidence( const TQString &uid );
/**
Returns the Incidence associated with the given scheduling identifier.
@@ -371,13 +371,13 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
@return a pointer to the Incidence.
A null pointer is returned if no such Incidence exists.
*/
- Incidence *incidenceFromSchedulingID( const QString &sid );
+ Incidence *incidenceFromSchedulingID( const TQString &sid );
/**
* Searches all events and todos for (an incidence with this
* scheduling ID. Returns a list of matching results.
**/
- Incidence::List incidencesFromSchedulingID( const QString &UID );
+ Incidence::List incidencesFromSchedulingID( const TQString &UID );
/**
Create a merged list of Events, Todos, and Journals.
@@ -415,14 +415,14 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
will have all recurrences past the @a date.
@param incidence is a pointer to a recurring Incidence.
- @param date is the QDate within the recurring Incidence on which
+ @param date is the TQDate within the recurring Incidence on which
the dissociation will be performed.
@param single is a flag meaning that a new Incidence should be created
from the recurring Incidences after @a date.
@return a pointer to a new recurring Incidence if @a single is false.
*/
- Incidence *dissociateOccurrence( Incidence *incidence, QDate date,
+ Incidence *dissociateOccurrence( Incidence *incidence, TQDate date,
bool single = true );
// Event Specific Methods //
@@ -472,11 +472,11 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
/**
Return a filtered list of all Events which occur on the given timestamp.
- @param qdt request filtered Event list for this QDateTime only.
+ @param qdt request filtered Event list for this TQDateTime only.
@return the list of filtered Events occurring on the specified timestamp.
*/
- Event::List events( const QDateTime &qdt );
+ Event::List events( const TQDateTime &qdt );
/**
Return a filtered list of all Events occurring within a date range.
@@ -489,7 +489,7 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
@return the list of filtered Events occurring within the specified
date range.
*/
- Event::List events( const QDate &start, const QDate &end,
+ Event::List events( const TQDate &start, const TQDate &end,
bool inclusive = false);
/**
@@ -497,14 +497,14 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
date. The Events are sorted according to @a sortField and
@a sortDirection.
- @param date request filtered Event list for this QDate only.
+ @param date request filtered Event list for this TQDate only.
@param sortField specifies the EventSortField.
@param sortDirection specifies the SortDirection.
@return the list of sorted, filtered Events occurring on @a date.
*/
Event::List events(
- const QDate &date,
+ const TQDate &date,
EventSortField sortField = EventSortUnsorted,
SortDirection sortDirection = SortDirectionAscending );
@@ -524,12 +524,12 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
Return an unfiltered list of all Events which occur on the given
timestamp.
- @param qdt request unfiltered Event list for this QDateTime only.
+ @param qdt request unfiltered Event list for this TQDateTime only.
@return the list of unfiltered Events occurring on the specified
timestamp.
*/
- virtual Event::List rawEventsForDate( const QDateTime &qdt ) = 0;
+ virtual Event::List rawEventsForDate( const TQDateTime &qdt ) = 0;
/**
Return an unfiltered list of all Events occurring within a date range.
@@ -542,7 +542,7 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
@return the list of unfiltered Events occurring within the specified
date range.
*/
- virtual Event::List rawEvents( const QDate &start, const QDate &end,
+ virtual Event::List rawEvents( const TQDate &start, const TQDate &end,
bool inclusive = false ) = 0;
/**
@@ -550,14 +550,14 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
date. The Events are sorted according to @a sortField and
@a sortDirection.
- @param date request unfiltered Event list for this QDate only.
+ @param date request unfiltered Event list for this TQDate only.
@param sortField specifies the EventSortField.
@param sortDirection specifies the SortDirection.
@return the list of sorted, unfiltered Events occurring on @a date.
*/
virtual Event::List rawEventsForDate(
- const QDate &date,
+ const TQDate &date,
EventSortField sortField = EventSortUnsorted,
SortDirection sortDirection = SortDirectionAscending ) = 0;
@@ -569,7 +569,7 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
@return a pointer to the Event.
A null pointer is returned if no such Event exists.
*/
- virtual Event *event( const QString &uid ) = 0;
+ virtual Event *event( const TQString &uid ) = 0;
// Todo Specific Methods //
@@ -619,11 +619,11 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
/**
Return a filtered list of all Todos which are due on the specified date.
- @param date request filtered Todos due on this QDate.
+ @param date request filtered Todos due on this TQDate.
@return the list of filtered Todos due on the specified date.
*/
- virtual Todo::List todos( const QDate &date );
+ virtual Todo::List todos( const TQDate &date );
/**
Return a sorted, unfiltered list of all Todos for this Calendar.
@@ -640,11 +640,11 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
/**
Return an unfiltered list of all Todos which due on the specified date.
- @param date request unfiltered Todos due on this QDate.
+ @param date request unfiltered Todos due on this TQDate.
@return the list of unfiltered Todos due on the specified date.
*/
- virtual Todo::List rawTodosForDate( const QDate &date ) = 0;
+ virtual Todo::List rawTodosForDate( const TQDate &date ) = 0;
/**
Returns the Todo associated with the given unique identifier.
@@ -654,7 +654,7 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
@return a pointer to the Todo.
A null pointer is returned if no such Todo exists.
*/
- virtual Todo *todo( const QString &uid ) = 0;
+ virtual Todo *todo( const TQString &uid ) = 0;
// Journal Specific Methods //
@@ -703,11 +703,11 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
/**
Return a filtered list of all Journals for on the specifed date.
- @param date request filtered Journals for this QDate only.
+ @param date request filtered Journals for this TQDate only.
@return the list of filtered Journals for the specified date.
*/
- virtual Journal::List journals( const QDate &date );
+ virtual Journal::List journals( const TQDate &date );
/**
Return a sorted, unfiltered list of all Journals for this Calendar.
@@ -724,11 +724,11 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
/**
Return an unfiltered list of all Journals for on the specifed date.
- @param date request unfiltered Journals for this QDate only.
+ @param date request unfiltered Journals for this TQDate only.
@return the list of unfiltered Journals for the specified date.
*/
- virtual Journal::List rawJournalsForDate( const QDate &date ) = 0;
+ virtual Journal::List rawJournalsForDate( const TQDate &date ) = 0;
/**
Returns the Journal associated with the given unique identifier.
@@ -738,7 +738,7 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
@return a pointer to the Journal.
A null pointer is returned if no such Journal exists.
*/
- virtual Journal *journal( const QString &uid ) = 0;
+ virtual Journal *journal( const TQString &uid ) = 0;
// Relations Specific Methods //
@@ -786,8 +786,8 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
@return the list of Alarms for the for the specified time range.
*/
- virtual Alarm::List alarms( const QDateTime &from,
- const QDateTime &to ) = 0;
+ virtual Alarm::List alarms( const TQDateTime &from,
+ const TQDateTime &to ) = 0;
// Observer Specific Methods //
@@ -884,7 +884,7 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
Do Not pass an empty timeZoneId string as this may cause unintended
consequences when storing Incidences into the Calendar.
*/
- virtual void doSetTimeZoneId( const QString &/*timeZoneId*/ ) {}
+ virtual void doSetTimeZoneId( const TQString &/*timeZoneId*/ ) {}
/**
Let Calendar subclasses notify that they inserted an Incidence.
@@ -931,9 +931,9 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
*/
void init();
- QString mProductId;
+ TQString mProductId;
Person mOwner;
- QString mTimeZoneId;
+ TQString mTimeZoneId;
bool mLocalTime;
bool mModified;
@@ -941,13 +941,13 @@ class LIBKCAL_EXPORT Calendar : public QObject, public CustomProperties,
CalFilter *mFilter;
CalFilter *mDefaultFilter;
- QPtrList<Observer> mObservers;
+ TQPtrList<Observer> mObservers;
bool mNewObserver;
bool mObserversEnabled;
// This list is used to put together related Todos
- QDict<Incidence> mOrphans;
- QDict<Incidence> mOrphanUids;
+ TQDict<Incidence> mOrphans;
+ TQDict<Incidence> mOrphanUids;
class Private;
Private *d;