diff options
Diffstat (limited to 'libkcal/calendarresources.h')
-rw-r--r-- | libkcal/calendarresources.h | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/libkcal/calendarresources.h b/libkcal/calendarresources.h index a9e0fa808..ad6ace739 100644 --- a/libkcal/calendarresources.h +++ b/libkcal/calendarresources.h @@ -29,8 +29,8 @@ #ifndef KCAL_CALENDARRESOURCES_H #define KCAL_CALENDARRESOURCES_H -#include <qintdict.h> -#include <qmap.h> +#include <tqintdict.h> +#include <tqmap.h> #include "calendar.h" #include "resourcecalendar.h" @@ -74,12 +74,12 @@ class LIBKCAL_EXPORT CalendarResources : { public: DestinationPolicy( CalendarResourceManager *manager, - QWidget *parent = 0 ) : + TQWidget *parent = 0 ) : mManager( manager ), mParent( parent ) {} virtual ResourceCalendar *destination( Incidence *incidence ) = 0; - virtual QWidget *parent() { return mParent; } - virtual void setParent( QWidget *newparent ) { mParent = newparent; } + virtual TQWidget *parent() { return mParent; } + virtual void setParent( TQWidget *newparent ) { mParent = newparent; } protected: CalendarResourceManager *resourceManager() @@ -87,7 +87,7 @@ class LIBKCAL_EXPORT CalendarResources : private: CalendarResourceManager *mManager; - QWidget *mParent; + TQWidget *mParent; }; /** @@ -97,7 +97,7 @@ class LIBKCAL_EXPORT CalendarResources : { public: StandardDestinationPolicy( CalendarResourceManager *manager, - QWidget *parent = 0 ) : + TQWidget *parent = 0 ) : DestinationPolicy( manager, parent ) {} ResourceCalendar *destination( Incidence *incidence ); @@ -114,7 +114,7 @@ class LIBKCAL_EXPORT CalendarResources : { public: AskDestinationPolicy( CalendarResourceManager *manager, - QWidget *parent = 0 ) : + TQWidget *parent = 0 ) : DestinationPolicy( manager, parent ) {} ResourceCalendar *destination( Incidence *incidence ); @@ -157,11 +157,11 @@ class LIBKCAL_EXPORT CalendarResources : Do Not pass an empty timeZoneId string as this may cause unintended consequences when storing Incidences into the Calendar. - @param family is any QString representing a unique name. + @param family is any TQString representing a unique name. */ CalendarResources( - const QString &timeZoneId, - const QString &family = QString::fromLatin1( "calendar" ) ); + const TQString &timeZoneId, + const TQString &family = TQString::fromLatin1( "calendar" ) ); /** Destructor @@ -180,7 +180,7 @@ class LIBKCAL_EXPORT CalendarResources : * @par tz The timezone to set. * @return success or failure */ - bool reload( const QString &tz ); + bool reload( const TQString &tz ); /** Clear out the current Calendar, freeing all used memory etc. @@ -262,14 +262,14 @@ class LIBKCAL_EXPORT CalendarResources : Afterwards we need to reset it (to avoid pointers to widgets that are already deleted) so we also need the accessor */ - QWidget *dialogParentWidget(); + TQWidget *dialogParentWidget(); /** Set the widget parent for new dialogs. This is a bad hack, but we need to properly set the parent for the resource selection dialog. Otherwise the dialog will not be modal to the editor dialog in korganizer and the user can still work in the editor dialog (and thus crash korganizer). */ - void setDialogParentWidget( QWidget *parent ); + void setDialogParentWidget( TQWidget *parent ); /** Request ticket for saving the Calendar. If a ticket is returned the @@ -390,12 +390,12 @@ class LIBKCAL_EXPORT CalendarResources : 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. */ - Event::List rawEventsForDate( const QDateTime &qdt ); + Event::List rawEventsForDate( const TQDateTime &qdt ); /** Return an unfiltered list of all Events occurring within a date range. @@ -408,7 +408,7 @@ class LIBKCAL_EXPORT CalendarResources : @return the list of unfiltered Events occurring within the specified date range. */ - Event::List rawEvents( const QDate &start, const QDate &end, + Event::List rawEvents( const TQDate &start, const TQDate &end, bool inclusive = false ); /** @@ -416,14 +416,14 @@ class LIBKCAL_EXPORT CalendarResources : 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. */ Event::List rawEventsForDate( - const QDate &date, + const TQDate &date, EventSortField sortField = EventSortUnsorted, SortDirection sortDirection = SortDirectionAscending ); @@ -435,7 +435,7 @@ class LIBKCAL_EXPORT CalendarResources : @return a pointer to the Event. A null pointer is returned if no such Event exists. */ - Event *event( const QString &uid ); + Event *event( const TQString &uid ); // Todo Specific Methods // @@ -491,11 +491,11 @@ class LIBKCAL_EXPORT CalendarResources : Return an unfiltered list of all Todos which are 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. */ - Todo::List rawTodosForDate( const QDate &date ); + Todo::List rawTodosForDate( const TQDate &date ); /** Returns the Todo associated with the given unique identifier. @@ -505,7 +505,7 @@ class LIBKCAL_EXPORT CalendarResources : @return a pointer to the Todo. A null pointer is returned if no such Todo exists. */ - Todo *todo( const QString &uid ); + Todo *todo( const TQString &uid ); // Journal Specific Methods // @@ -561,11 +561,11 @@ class LIBKCAL_EXPORT CalendarResources : /** 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. */ - Journal::List rawJournalsForDate( const QDate &date ); + Journal::List rawJournalsForDate( const TQDate &date ); /** Returns the Journal associated with the given unique identifier. @@ -575,7 +575,7 @@ class LIBKCAL_EXPORT CalendarResources : @return a pointer to the Journal. A null pointer is returned if no such Journal exists. */ - Journal *journal( const QString &uid ); + Journal *journal( const TQString &uid ); // Alarm Specific Methods // @@ -587,16 +587,16 @@ class LIBKCAL_EXPORT CalendarResources : @return the list of Alarms for the for the specified time range. */ - Alarm::List alarms( const QDateTime &from, const QDateTime &to ); + Alarm::List alarms( const TQDateTime &from, const TQDateTime &to ); /** Return a list of Alarms that occur before the specified timestamp. @param to is the ending timestamp. - @return the list of Alarms occurring before the specified QDateTime. + @return the list of Alarms occurring before the specified TQDateTime. */ - Alarm::List alarmsTo( const QDateTime &to ); + Alarm::List alarmsTo( const TQDateTime &to ); /** * Set the viewing time zone, which requires that all resources are saved, @@ -605,7 +605,7 @@ class LIBKCAL_EXPORT CalendarResources : * If you want to change the times of the contents of the resources, use * setTimeZoneId */ - void setTimeZoneIdViewOnly( const QString& tz ); + void setTimeZoneIdViewOnly( const TQString& tz ); signals: /** @@ -626,7 +626,7 @@ class LIBKCAL_EXPORT CalendarResources : /** Signal an error message. */ - void signalErrorMessage( const QString &err ); + void signalErrorMessage( const TQString &err ); protected: void connectResource( ResourceCalendar *resource ); @@ -645,7 +645,7 @@ class LIBKCAL_EXPORT CalendarResources : 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 ); /** Increment the number of times this Resource has been changed by 1. @@ -666,26 +666,26 @@ class LIBKCAL_EXPORT CalendarResources : int decrementChangeCount( ResourceCalendar *resource ); protected slots: - void slotLoadError( ResourceCalendar *resource, const QString &err ); - void slotSaveError( ResourceCalendar *resource, const QString &err ); + void slotLoadError( ResourceCalendar *resource, const TQString &err ); + void slotSaveError( ResourceCalendar *resource, const TQString &err ); private: /** Initialize the Resource object with starting values. */ - void init( const QString &family ); + void init( const TQString &family ); bool mOpen; KRES::Manager<ResourceCalendar>* mManager; - QMap <Incidence*, ResourceCalendar*> mResourceMap; + TQMap <Incidence*, ResourceCalendar*> mResourceMap; DestinationPolicy *mDestinationPolicy; StandardDestinationPolicy *mStandardPolicy; AskDestinationPolicy *mAskPolicy; - QMap<ResourceCalendar *, Ticket *> mTickets; - QMap<ResourceCalendar *, int> mChangeCounts; + TQMap<ResourceCalendar *, Ticket *> mTickets; + TQMap<ResourceCalendar *, int> mChangeCounts; class Private; Private *d; |