libkcal

KCal::FreeBusy Class Reference

#include <freebusy.h>

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

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
- Public Member Functions inherited from KCal::IncidenceBase
 IncidenceBase (const IncidenceBase &)
IncidenceBaseoperator= (const IncidenceBase &i)
bool operator== (const IncidenceBase &) const
virtual bool accept (Visitor &)
void setUid (const TQString &)
TQString uid () const
void setLastModified (const TQDateTime &lm)
TQDateTime lastModified () const
void setOrganizer (const Person &o)
void setOrganizer (const TQString &o)
Person organizer () const
virtual void setReadOnly (bool)
bool isReadOnly () const
virtual void setDtStart (const TQDateTime &dtStart)
virtual TQDateTime dtStart () const
virtual KDE_DEPRECATED TQString dtStartTimeStr () const
virtual KDE_DEPRECATED TQString dtStartDateStr (bool shortfmt=true) const
virtual KDE_DEPRECATED TQString dtStartStr () const
virtual void setDuration (int seconds)
int duration () const
void setHasDuration (bool)
bool hasDuration () const
bool doesFloat () const
void setFloats (bool f)
void addComment (const TQString &comment)
bool removeComment (const TQString &comment)
void clearComments ()
TQStringList comments () const
void addAttendee (Attendee *attendee, bool doUpdate=true)
void clearAttendees ()
const Attendee::Listattendees () const
int attendeeCount () const
AttendeeattendeeByMail (const TQString &) const
AttendeeattendeeByMails (const TQStringList &, const TQString &email=TQString()) const
AttendeeattendeeByUid (const TQString &uid) const
void setSyncStatus (int status)
void setSyncStatusSilent (int status)
int syncStatus () const
void setPilotId (unsigned long id)
unsigned long pilotId () const
void registerObserver (Observer *)
void unRegisterObserver (Observer *)
void updated ()
void updatedSilent ()
- Public Member Functions inherited from KCal::CustomProperties
 CustomProperties ()
 CustomProperties (const CustomProperties &)
bool operator== (const CustomProperties &) const
void setCustomProperty (const TQCString &app, const TQCString &key, const TQString &value)
void removeCustomProperty (const TQCString &app, const TQCString &key)
TQString customProperty (const TQCString &app, const TQCString &key) const
void setNonKDECustomProperty (const TQCString &name, const TQString &value)
void removeNonKDECustomProperty (const TQCString &name)
TQString nonKDECustomProperty (const TQCString &name) const
void setCustomProperties (const TQMap< TQCString, TQString > &properties)
TQMap< TQCString, TQString > customProperties () const

Additional Inherited Members

- Public Types inherited from KCal::IncidenceBase
enum  { SYNCNONE = 0, SYNCMOD = 1, SYNCDEL = 3 }
- Protected Member Functions inherited from KCal::IncidenceBase
virtual void customPropertyUpdated ()
- Protected Attributes inherited from KCal::IncidenceBase
bool mReadOnly

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
freebusyis the FreeBusy to compare.

Definition at line 226 of file freebusy.cpp.


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