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:

List of all members.


Public Member Functions

void addPeriod (const QDateTime &start, const Duration &dur)
void addPeriod (const QDateTime &start, const QDateTime &end)
void addPeriods (const PeriodList &)
PeriodList busyPeriods () const
virtual QDateTime dtEnd () const
 FreeBusy (PeriodList busyPeriods)
 FreeBusy (Calendar *calendar, const QDateTime &start, const QDateTime &end)
 FreeBusy (const QDateTime &start, const QDateTime &end)
 FreeBusy ()
void merge (FreeBusy *freebusy)
bool setDtEnd (const QDateTime &end)
void sortList ()
QCString type () const
 ~FreeBusy ()

Detailed Description

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

Definition at line 40 of file freebusy.h.


Constructor & Destructor Documentation

FreeBusy::FreeBusy (  ) 

Definition at line 29 of file freebusy.cpp.

FreeBusy::FreeBusy ( const QDateTime start,
const QDateTime end 
)

Definition at line 33 of file freebusy.cpp.

FreeBusy::FreeBusy ( Calendar calendar,
const QDateTime start,
const QDateTime end 
)

Definition at line 39 of file freebusy.cpp.

FreeBusy::FreeBusy ( PeriodList  busyPeriods  ) 

Definition at line 183 of file freebusy.cpp.

FreeBusy::~FreeBusy (  ) 

Definition at line 133 of file freebusy.cpp.


Member Function Documentation

void FreeBusy::addPeriod ( const QDateTime start,
const Duration dur 
)

Definition at line 206 of file freebusy.cpp.

void FreeBusy::addPeriod ( const QDateTime start,
const QDateTime 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.

PeriodList FreeBusy::busyPeriods (  )  const

Definition at line 148 of file freebusy.cpp.

QDateTime FreeBusy::dtEnd (  )  const [virtual]

Definition at line 143 of file freebusy.cpp.

void FreeBusy::merge ( FreeBusy freebusy  ) 

Definition at line 212 of file freebusy.cpp.

bool FreeBusy::setDtEnd ( const QDateTime end  ) 

Definition at line 137 of file freebusy.cpp.

void FreeBusy::sortList (  ) 

Definition at line 188 of file freebusy.cpp.

QCString KCal::FreeBusy::type (  )  const [inline, virtual]

Implements KCal::IncidenceBase.

Definition at line 51 of file freebusy.h.


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