summaryrefslogtreecommitdiffstats
path: root/libkcal/recurrence.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/recurrence.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/recurrence.h')
-rw-r--r--libkcal/recurrence.h82
1 files changed, 41 insertions, 41 deletions
diff --git a/libkcal/recurrence.h b/libkcal/recurrence.h
index 773a9d63..ec696597 100644
--- a/libkcal/recurrence.h
+++ b/libkcal/recurrence.h
@@ -24,9 +24,9 @@
#ifndef KCAL_RECURRENCE_H
#define KCAL_RECURRENCE_H
-#include <qstring.h>
-#include <qbitarray.h>
-#include <qptrlist.h>
+#include <tqstring.h>
+#include <tqbitarray.h>
+#include <tqptrlist.h>
#include "libkcal_export.h"
#include "recurrencerule.h"
@@ -111,17 +111,17 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
/** Return the start date/time of the recurrence (Time for floating incidences will be 0:00).
@return the current start/time of the recurrence. */
- QDateTime startDateTime() const;
+ TQDateTime startDateTime() const;
/** Return the start date/time of the recurrence */
- QDate startDate() const { return mStartDateTime.date(); }
+ TQDate startDate() const { return mStartDateTime.date(); }
/** Set start of recurrence, as a date and time. Also sets the incidence to non-floating.
@param start the new start date/time of the incidence.
*/
- void setStartDateTime( const QDateTime &start );
+ void setStartDateTime( const TQDateTime &start );
/** Set start of recurrence, as a date. Also sets the incidence to floating.
@param start The new start date of the incidence.
*/
- void setStartDate( const QDate &start );
+ void setStartDate( const TQDate &start );
/** Set whether the recurrence has no time, just a date.
* Floating means -- according to rfc2445 -- that the event has no time
@@ -150,10 +150,10 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
static ushort recurrenceType( const RecurrenceRule *rrule );
/** Returns true if the date specified is one on which the event will
* recur. */
- bool recursOn( const QDate &qd ) const;
+ bool recursOn( const TQDate &qd ) const;
/** Returns true if the date/time specified is one at which the event will
* recur. Times are rounded down to the nearest minute to determine the result. */
- bool recursAt( const QDateTime & ) const;
+ bool recursAt( const TQDateTime & ) const;
/** Removes all recurrence rules. Recurrence dates and exceptions are
not removed. */
void unsetRecurs();
@@ -164,21 +164,21 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
* recurrence will occur.
* @param date the date for which to find the recurrence times.
*/
- QValueList<QTime> recurTimesOn(const QDate &date) const;
+ TQValueList<TQTime> recurTimesOn(const TQDate &date) const;
/** Returns the date and time of the next recurrence, after the specified date/time.
* If the recurrence has no time, the next date after the specified date is returned.
* @param preDateTime the date/time after which to find the recurrence.
* @return date/time of next recurrence (strictly later than the given QDateTiem), or invalid date if none.
*/
- QDateTime getNextDateTime( const QDateTime& preDateTime ) const;
+ TQDateTime getNextDateTime( const TQDateTime& preDateTime ) const;
/** Returns the date and time of the last previous recurrence, before the specified date/time.
* If a time later than 00:00:00 is specified and the recurrence has no time, 00:00:00 on
* the specified date is returned if that date recurs.
* @param afterDateTime the date/time before which to find the recurrence.
- * @return date/time of previous recurrence (strictly earlier than the given QDateTime), or invalid date if none.
+ * @return date/time of previous recurrence (strictly earlier than the given TQDateTime), or invalid date if none.
*/
- QDateTime getPreviousDateTime( const QDateTime& afterDateTime ) const;
+ TQDateTime getPreviousDateTime( const TQDateTime& afterDateTime ) const;
/** Returns frequency of recurrence, in terms of the recurrence time period type. */
int frequency() const;
@@ -194,25 +194,25 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
* first and last. */
void setDuration(int duration);
/** Returns the number of recurrences up to and including the date/time specified. */
- int durationTo(const QDateTime &) const;
+ int durationTo(const TQDateTime &) const;
/** Returns the number of recurrences up to and including the date specified. */
- int durationTo( const QDate &date ) const { return durationTo( QDateTime( date, QTime( 23, 59, 59 ) ) ); }
+ int durationTo( const TQDate &date ) const { return durationTo( TQDateTime( date, TQTime( 23, 59, 59 ) ) ); }
/** Returns the date/time of the last recurrence.
* An invalid date is returned if the recurrence has no end.
*/
- QDateTime endDateTime() const;
+ TQDateTime endDateTime() const;
/** Returns the date of the last recurrence.
* An invalid date is returned if the recurrence has no end.
*/
- QDate endDate() const;
+ TQDate endDate() const;
/** Sets the date of the last recurrence. The end time is set to the recurrence start time.
* @param endDate the ending date after which to stop recurring. If the
* incidence is not floating, the end time will be 23:59.*/
- void setEndDate( const QDate &endDate );
+ void setEndDate( const TQDate &endDate );
/** Sets the date and time of the last recurrence.
* @param endDateTime the ending date/time after which to stop recurring. */
- void setEndDateTime( const QDateTime &endDateTime );
+ void setEndDateTime( const TQDateTime &endDateTime );
@@ -282,11 +282,11 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
* @param days a 7 bit array indicating which days on which to recur (bit 0 = Monday).
* @param weekStart the first day of the week (Monday=1 .. Sunday=7, default is Monday).
*/
- void setWeekly( int freq, const QBitArray &days, int weekStart = 1 );
+ void setWeekly( int freq, const TQBitArray &days, int weekStart = 1 );
/** Adds days to the weekly day recurrence list.
* @param days a 7 bit array indicating which days on which to recur (bit 0 = Monday).
*/
- void addWeeklyDays( const QBitArray &days );
+ void addWeeklyDays( const TQBitArray &days );
/** Returns the first day of the week. Uses only the
* first RRULE if present (i.e. a second RRULE as well as all EXRULES are
* ignored!
@@ -294,7 +294,7 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
*/
int weekStart() const;
/** Returns week day mask (bit 0 = Monday). */
- QBitArray days() const; // Emulate the old behavior
+ TQBitArray days() const; // Emulate the old behavior
/** Sets an event to recur monthly. By default infinite recurrence is used.
The date of the monthly recurrence will be taken from the start date
@@ -318,7 +318,7 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
* Example: pos = 2, and bits 0 and 2 are set in days:
* the rule is to repeat every 2nd Monday and Wednesday in the month.
*/
- void addMonthlyPos( short pos, const QBitArray &days );
+ void addMonthlyPos( short pos, const TQBitArray &days );
void addMonthlyPos( short pos, ushort day );
/** Adds a date (e.g. the 15th of each month) to the monthly day
* recurrence list.
@@ -326,10 +326,10 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
*/
void addMonthlyDate( short day );
/** Returns list of day positions in months. */
- QValueList<RecurrenceRule::WDayPos> monthPositions() const;
+ TQValueList<RecurrenceRule::WDayPos> monthPositions() const;
/** Returns list of day numbers of a month. */
// Emulate old behavior
- QValueList<int> monthDays() const;
+ TQValueList<int> monthDays() const;
/** Sets an event to recur yearly. By default, this will recur every year
* on the same date (e.g. every year on April 15 if the start date was
@@ -392,14 +392,14 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
* If no months are specified, the fule is to repeat every year on the
* 2nd Monday and Wednesday of the year.
*/
- void addYearlyPos( short pos, const QBitArray &days );
+ void addYearlyPos( short pos, const TQBitArray &days );
/** Returns the day numbers within a yearly recurrence.
* @return the days of the year for the event. E.g. if the list contains
* 60, this means the recurrence happens on day 60 of the year, i.e.
* on Feb 29 in leap years and March 1 in non-leap years.
*/
- QValueList<int> yearDays() const;
+ TQValueList<int> yearDays() const;
/** Returns the dates within a yearly recurrence.
* @return the days of the month for the event. E.g. if the list contains
* 13, this means the recurrence happens on the 13th of the month.
@@ -407,7 +407,7 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
* yearlyMonths(). If this list is empty, the month of the start
* date is used.
*/
- QValueList<int> yearDates() const;
+ TQValueList<int> yearDates() const;
/** Returns the months within a yearly recurrence.
* @return the months for the event. E.g. if the list contains
* 11, this means the recurrence happens in November.
@@ -416,7 +416,7 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
* through yearlyPositions() if they are given as positions within the
* month. If none is specified, the date of the start date is used.
*/
- QValueList<int> yearMonths() const;
+ TQValueList<int> yearMonths() const;
/** Returns the positions within a yearly recurrence.
* @return the positions for the event, either within a month (if months
* are set through addYearlyMonth()) or within the year.
@@ -426,10 +426,10 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
* year.
*/
/** Returns list of day positions in months, for a recursYearlyPos recurrence rule. */
- QValueList<RecurrenceRule::WDayPos> yearPositions() const;
+ TQValueList<RecurrenceRule::WDayPos> yearPositions() const;
/** Upper date limit for recurrences */
- static const QDate MAX_DATE;
+ static const TQDate MAX_DATE;
/**
Debug output.
@@ -451,16 +451,16 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
DateList rDates() const;
void setRDateTimes( const DateTimeList &rdates);
void setRDates( const DateList &rdates);
- void addRDateTime( const QDateTime &rdate );
- void addRDate( const QDate &rdate );
+ void addRDateTime( const TQDateTime &rdate );
+ void addRDate( const TQDate &rdate );
// ExDATE
DateTimeList exDateTimes() const;
DateList exDates() const;
void setExDateTimes( const DateTimeList &exdates);
void setExDates( const DateList &exdates);
- void addExDateTime( const QDateTime &exdate );
- void addExDate( const QDate &exdate );
+ void addExDateTime( const TQDateTime &exdate );
+ void addExDate( const TQDate &exdate );
RecurrenceRule *defaultRRule( bool create = false ) const;
RecurrenceRule *defaultRRuleConst() const;
@@ -490,19 +490,19 @@ class LIBKCAL_EXPORT Recurrence : public RecurrenceRule::Observer
private:
RecurrenceRule::List mExRules;
RecurrenceRule::List mRRules;
- QValueList<QDateTime>mRDateTimes;
- QValueList<QDate> mRDates;
- QValueList<QDateTime> mExDateTimes;
- QValueList<QDate> mExDates;
+ TQValueList<TQDateTime>mRDateTimes;
+ TQValueList<TQDate> mRDates;
+ TQValueList<TQDateTime> mExDateTimes;
+ TQValueList<TQDate> mExDates;
- QDateTime mStartDateTime; // date/time of first recurrence
+ TQDateTime mStartDateTime; // date/time of first recurrence
bool mFloating; // the recurrence has no time, just a date
bool mRecurReadOnly;
// Cache the type of the recurrence with the old system (e.g. MonthlyPos)
mutable ushort mCachedType;
- QValueList<Observer*> mObservers;
+ TQValueList<Observer*> mObservers;
class Private;
Private *d;