libkcal

KCal::FreeBusy Class Reference

This class provides information about free/busy time of a calendar user. More...

#include <freebusy.h>

Inheritance diagram for KCal::FreeBusy:
KCal::IncidenceBase KCal::CustomProperties

List of all members.

Public Member Functions

 FreeBusy (const TQDateTime &start, const TQDateTime &end)
 FreeBusy (Calendar *calendar, const TQDateTime &start, const TQDateTime &end)
 FreeBusy (PeriodList busyPeriods)
TQCString type () const
virtual TQDateTime dtEnd () const
bool setDtEnd (const TQDateTime &end)
PeriodList busyPeriods () const
void addPeriod (const TQDateTime &start, const TQDateTime &end)
void addPeriod (const TQDateTime &start, const Duration &dur)
void addPeriods (const PeriodList &)
void sortList ()
void merge (FreeBusy *freebusy)
bool operator== (const FreeBusy &freebusy) const

Detailed Description

This class provides information about free/busy time of a calendar user.

Definition at line 40 of file freebusy.h.


Member Function Documentation

void FreeBusy::addPeriod ( const TQDateTime &  start,
const TQDateTime &  end 
)

Adds a period to the freebusy list and sorts the list.

Definition at line 200 of file freebusy.cpp.

void FreeBusy::addPeriods ( const PeriodList &  list  ) 

Adds a list of periods to the freebusy object and then sorts that list.

Use this if you are adding many items, instead of the addPeriod method, to avoid sorting repeatedly.

Definition at line 194 of file freebusy.cpp.

bool FreeBusy::operator== ( const FreeBusy freebusy  )  const

Compare this with freebusy for equality.

Parameters:
freebusy is the FreeBusy to compare.

Definition at line 226 of file freebusy.cpp.


The documentation for this class was generated from the following files: