diff options
Diffstat (limited to 'libkcal/resourcecalendar.h')
-rw-r--r-- | libkcal/resourcecalendar.h | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/libkcal/resourcecalendar.h b/libkcal/resourcecalendar.h index 4cd4d91e7..3fea84a1b 100644 --- a/libkcal/resourcecalendar.h +++ b/libkcal/resourcecalendar.h @@ -25,9 +25,9 @@ #ifndef KCAL_RESOURCECALENDAR_H #define KCAL_RESOURCECALENDAR_H -#include <qstring.h> -#include <qdatetime.h> -#include <qptrlist.h> +#include <tqstring.h> +#include <tqdatetime.h> +#include <tqptrlist.h> #include <kconfig.h> @@ -68,7 +68,7 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource Return rich text with info about the resource. Adds standard info and then calls addInfoText() to add info about concrete resources. */ - virtual QString infoText() const; + virtual TQString infoText() const; /** Load resource data. After calling this function all data is accessible by @@ -135,7 +135,7 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource Return incidence with given unique id. If there is no incidence with that uid, return 0. */ - Incidence *incidence( const QString &uid ); + Incidence *incidence( const TQString &uid ); /** Add event to resource. @@ -150,7 +150,7 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource /** Retrieves an event on the basis of the unique string ID. */ - virtual Event *event( const QString &uid ) = 0; + virtual Event *event( const TQString &uid ) = 0; /** Return unfiltered list of all events in calendar. Use with care, @@ -162,18 +162,18 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource Builds and then returns a list of all events that match the date specified. Useful for dayView, etc. etc. */ - virtual Event::List rawEventsForDate( const QDate &date, EventSortField sortField = EventSortUnsorted, SortDirection sortDirection = SortDirectionAscending ) = 0; + virtual Event::List rawEventsForDate( const TQDate &date, EventSortField sortField = EventSortUnsorted, SortDirection sortDirection = SortDirectionAscending ) = 0; /** Get unfiltered events for date \a qdt. */ - virtual Event::List rawEventsForDate( const QDateTime &qdt ) = 0; + virtual Event::List rawEventsForDate( const TQDateTime &qdt ) = 0; /** Get unfiltered events in a range of dates. If inclusive is set to true, only events which are completely included in the range are returned. */ - virtual Event::List rawEvents( const QDate &start, const QDate &end, + virtual Event::List rawEvents( const TQDate &start, const TQDate &end, bool inclusive = false ) = 0; /** @@ -195,7 +195,7 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource manager->add( res ); } */ - virtual bool setValue( const QString &key, const QString &value ); + virtual bool setValue( const TQString &key, const TQString &value ); signals: /** @@ -220,23 +220,23 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource /** This signal is emitted when an error occurs during loading. */ - void resourceLoadError( ResourceCalendar *, const QString &error ); + void resourceLoadError( ResourceCalendar *, const TQString &error ); /** This signal is emitted when an error occurs during saving. */ - void resourceSaveError( ResourceCalendar *, const QString &error ); + void resourceSaveError( ResourceCalendar *, const TQString &error ); /** This signal is emitted when a subresource is added. */ - void signalSubresourceAdded( ResourceCalendar *, const QString& type, - const QString& subresource, const QString& label ); + void signalSubresourceAdded( ResourceCalendar *, const TQString& type, + const TQString& subresource, const TQString& label ); /** This signal is emitted when a subresource is removed. */ - void signalSubresourceRemoved( ResourceCalendar *, const QString &, - const QString & ); + void signalSubresourceRemoved( ResourceCalendar *, const TQString &, + const TQString & ); public: /** @@ -252,7 +252,7 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource @return pointer to todo or 0 if todo wasn't found */ - virtual Todo *todo( const QString &uid ) = 0; + virtual Todo *todo( const TQString &uid ) = 0; /** Return list of all todos. */ @@ -260,7 +260,7 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource /** Returns list of todos due on the specified date. */ - virtual Todo::List rawTodosForDate( const QDate &date ) = 0; + virtual Todo::List rawTodosForDate( const TQDate &date ) = 0; /** @@ -276,7 +276,7 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource /** Return Journal with given unique id. */ - virtual Journal *journal( const QString &uid ) = 0; + virtual Journal *journal( const TQString &uid ) = 0; /** Return list of all journals. */ @@ -284,18 +284,18 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource /** Returns list of journals for the given date. */ - virtual Journal::List rawJournalsForDate( const QDate &date ) = 0; + virtual Journal::List rawJournalsForDate( const TQDate &date ) = 0; /** Return all alarms which occur in the given time interval. */ - virtual Alarm::List alarms( const QDateTime &from, - const QDateTime &to ) = 0; + virtual Alarm::List alarms( const TQDateTime &from, + const TQDateTime &to ) = 0; /** Return all alarms which occur before given date. */ - virtual Alarm::List alarmsTo( const QDateTime &to ) = 0; + virtual Alarm::List alarmsTo( const TQDateTime &to ) = 0; /** Returns a list of all incideces */ @@ -304,14 +304,14 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource /** Set time zone id used by this resource, e.g. "Europe/Berlin". */ - virtual void setTimeZoneId( const QString &timeZoneId ) = 0; + virtual void setTimeZoneId( const TQString &timeZoneId ) = 0; /** - If this resource has subresources, return a QStringList of them. + If this resource has subresources, return a TQStringList of them. In most cases, resources do not have subresources, so this is by default just empty. */ - virtual QStringList subresources() const { return QStringList(); } + virtual TQStringList subresources() const { return TQStringList(); } /** Is this subresource capable of having subresources or not? @@ -321,12 +321,12 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource /** Is this subresource active or not? */ - virtual bool subresourceActive( const QString& ) const { return true; } + virtual bool subresourceActive( const TQString& ) const { return true; } /** What is the label for this subresource? */ - virtual const QString labelForSubresource( const QString& resource ) const + virtual const TQString labelForSubresource( const TQString& resource ) const { // the resource identifier is a sane fallback return resource; @@ -338,33 +338,33 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource @return the identifier of the subresource or an empty string. */ - virtual QString subresourceIdentifier( Incidence *incidence ) - { Q_UNUSED( incidence ); return QString(); } + virtual TQString subresourceIdentifier( Incidence *incidence ) + { Q_UNUSED( incidence ); return TQString(); } /** * Remove a subresource with the id @param resource */ - virtual bool removeSubresource( const QString& resource ); + virtual bool removeSubresource( const TQString& resource ); /** * Add a subresource with the name @param resource and the parent * id @param parent. */ - virtual bool addSubresource( const QString& resource, const QString& parent ); + virtual bool addSubresource( const TQString& resource, const TQString& parent ); /** * Returns the type of the subresource: "event", "todo" or "journal", - * QString() if unknown/mixed. + * TQString() if unknown/mixed. */ - virtual QString subresourceType( const QString &resource ); + virtual TQString subresourceType( const TQString &resource ); public slots: /** (De-)activate a subresource. */ - virtual void setSubresourceActive( const QString &, bool active ); + virtual void setSubresourceActive( const TQString &, bool active ); protected: @@ -387,16 +387,16 @@ class LIBKCAL_EXPORT ResourceCalendar : public KRES::Resource /** Add info text for concrete resources. Called by infoText(). */ - virtual void addInfoText( QString & ) const {}; + virtual void addInfoText( TQString & ) const {}; /** A resource should call this function if a load error happens. */ - void loadError( const QString &errorMessage = QString::null ); + void loadError( const TQString &errorMessage = TQString::null ); /** A resource should call this function if a save error happens. */ - void saveError( const QString &errorMessage = QString::null ); + void saveError( const TQString &errorMessage = TQString::null ); private: bool mReceivedLoadError; |