22#ifndef KCAL_FREEBUSY_H
23#define KCAL_FREEBUSY_H
25#include <tqdatetime.h>
26#include <tqvaluelist.h>
32#include "incidencebase.h"
36 typedef TQValueList<Period> PeriodList;
40class LIBKCAL_EXPORT FreeBusy : public IncidenceBase
44 FreeBusy( const TQDateTime &start, const TQDateTime &end );
45 FreeBusy( Calendar *calendar, const TQDateTime &start,
46 const TQDateTime &end );
47 FreeBusy( PeriodList busyPeriods );
51 TQCString type() const { return "FreeBusy"; }
53 virtual TQDateTime dtEnd() const;
54 bool setDtEnd( const TQDateTime &end );
56 PeriodList busyPeriods() const;
59 void addPeriod( const TQDateTime &start, const TQDateTime &end );
67 void merge( FreeBusy *freebusy );
74 bool operator==( const FreeBusy &freebusy ) const;
79 bool addLocalPeriod( const TQDateTime &start, const TQDateTime &end );
82 PeriodList mBusyPeriods;
Provides the main "calendar" object class.
This is the main "calendar" object class.
This class represents a duration.
void addPeriod(const TQDateTime &start, const TQDateTime &end) Adds a period to the freebusy list and sorts the list.
void addPeriods(const PeriodList &) Adds a list of periods to the freebusy object and then sorts that list.
bool operator==(const FreeBusy &freebusy) const Compare this with freebusy for equality.
This class provides the interface for a visitor of calendar components.
virtual bool visit(Event *) Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on a...
Namespace KCal is for global classes, objects and/or functions in libkcal.
|