summaryrefslogtreecommitdiffstats
path: root/libkcal/freebusy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/freebusy.cpp')
-rw-r--r--libkcal/freebusy.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/libkcal/freebusy.cpp b/libkcal/freebusy.cpp
index 71f05b35..75d0e7db 100644
--- a/libkcal/freebusy.cpp
+++ b/libkcal/freebusy.cpp
@@ -30,13 +30,13 @@ FreeBusy::FreeBusy()
{
}
-FreeBusy::FreeBusy(const QDateTime &start, const QDateTime &end)
+FreeBusy::FreeBusy(const TQDateTime &start, const TQDateTime &end)
{
setDtStart(start);
setDtEnd(end);
}
-FreeBusy::FreeBusy( Calendar *calendar, const QDateTime &start, const QDateTime &end )
+FreeBusy::FreeBusy( Calendar *calendar, const TQDateTime &start, const TQDateTime &end )
{
kdDebug(5800) << "FreeBusy::FreeBusy" << endl;
mCalendar = calendar;
@@ -49,9 +49,9 @@ FreeBusy::FreeBusy( Calendar *calendar, const QDateTime &start, const QDateTime
int extraDays, i, x, duration;
duration = start.daysTo(end);
- QDate day;
- QDateTime tmpStart;
- QDateTime tmpEnd;
+ TQDate day;
+ TQDateTime tmpStart;
+ TQDateTime tmpEnd;
// Loops through every event in the calendar
Event::List::ConstIterator it;
for( it = eventList.begin(); it != eventList.end(); ++it ) {
@@ -68,8 +68,8 @@ FreeBusy::FreeBusy( Calendar *calendar, const QDateTime &start, const QDateTime
floatingEvent = new Event( *event );
// Set the start and end times to be on midnight
- QDateTime start( floatingEvent->dtStart().date(), QTime( 0, 0 ) );
- QDateTime end( floatingEvent->dtEnd().date(), QTime( 23, 59, 59, 999 ) );
+ TQDateTime start( floatingEvent->dtStart().date(), TQTime( 0, 0 ) );
+ TQDateTime end( floatingEvent->dtEnd().date(), TQTime( 23, 59, 59, 999 ) );
floatingEvent->setFloats( false );
floatingEvent->setDtStart( start );
floatingEvent->setDtEnd( end );
@@ -134,13 +134,13 @@ FreeBusy::~FreeBusy()
{
}
-bool FreeBusy::setDtEnd( const QDateTime &end )
+bool FreeBusy::setDtEnd( const TQDateTime &end )
{
mDtEnd = end;
return true;
}
-QDateTime FreeBusy::dtEnd() const
+TQDateTime FreeBusy::dtEnd() const
{
return mDtEnd;
}
@@ -150,9 +150,9 @@ PeriodList FreeBusy::busyPeriods() const
return mBusyPeriods;
}
-bool FreeBusy::addLocalPeriod(const QDateTime &eventStart, const QDateTime &eventEnd ) {
- QDateTime tmpStart;
- QDateTime tmpEnd;
+bool FreeBusy::addLocalPeriod(const TQDateTime &eventStart, const TQDateTime &eventEnd ) {
+ TQDateTime tmpStart;
+ TQDateTime tmpEnd;
//Check to see if the start *or* end of the event is
//between the start and end of the freebusy dates.
@@ -197,13 +197,13 @@ void FreeBusy::addPeriods(const PeriodList &list )
sortList();
}
-void FreeBusy::addPeriod(const QDateTime &start, const QDateTime &end)
+void FreeBusy::addPeriod(const TQDateTime &start, const TQDateTime &end)
{
mBusyPeriods.append( Period(start, end) );
sortList();
}
-void FreeBusy::addPeriod( const QDateTime &start, const Duration &dur )
+void FreeBusy::addPeriod( const TQDateTime &start, const Duration &dur )
{
mBusyPeriods.append( Period(start, dur) );
sortList();
@@ -217,8 +217,8 @@ void FreeBusy::merge( FreeBusy *freeBusy )
if ( freeBusy->dtEnd() > dtEnd() )
setDtEnd( freeBusy->dtEnd() );
- QValueList<Period> periods = freeBusy->busyPeriods();
- QValueList<Period>::ConstIterator it;
+ TQValueList<Period> periods = freeBusy->busyPeriods();
+ TQValueList<Period>::ConstIterator it;
for ( it = periods.begin(); it != periods.end(); ++it )
addPeriod( (*it).start(), (*it).end() );
}