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 &)
IncidenceBase & operator= (const IncidenceBase &i)
bool operator== (const IncidenceBase &) const
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 TDE_DEPRECATED TQString dtStartTimeStr () const
virtual TDE_DEPRECATED TQString dtStartDateStr (bool shortfmt=true) const
virtual TDE_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::List & attendees () 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.

Constructor & Destructor Documentation

◆ FreeBusy() [1/4]

FreeBusy::FreeBusy ( )

Definition at line 29 of file freebusy.cpp.

◆ FreeBusy() [2/4]

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

Definition at line 33 of file freebusy.cpp.

◆ FreeBusy() [3/4]

FreeBusy::FreeBusy ( Calendar * calendar,
const TQDateTime & start,
const TQDateTime & end )

Definition at line 39 of file freebusy.cpp.

◆ FreeBusy() [4/4]

FreeBusy::FreeBusy ( PeriodList busyPeriods)

Definition at line 183 of file freebusy.cpp.

◆ ~FreeBusy()

FreeBusy::~FreeBusy ( )

Definition at line 133 of file freebusy.cpp.

Member Function Documentation

◆ addPeriod() [1/2]

void FreeBusy::addPeriod ( const TQDateTime & start,
const Duration & dur )

Definition at line 206 of file freebusy.cpp.

◆ addPeriod() [2/2]

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.

◆ addPeriods()

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.

◆ busyPeriods()

PeriodList FreeBusy::busyPeriods ( ) const

Definition at line 148 of file freebusy.cpp.

◆ dtEnd()

TQDateTime FreeBusy::dtEnd ( ) const
virtual

Definition at line 143 of file freebusy.cpp.

◆ merge()

void FreeBusy::merge ( FreeBusy * freebusy)

Definition at line 212 of file freebusy.cpp.

◆ operator==()

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.

◆ setDtEnd()

bool FreeBusy::setDtEnd ( const TQDateTime & end)

Definition at line 137 of file freebusy.cpp.

◆ sortList()

void FreeBusy::sortList ( )

Definition at line 188 of file freebusy.cpp.

◆ type()

TQCString KCal::FreeBusy::type ( ) const
inlinevirtual

Implements KCal::IncidenceBase.

Definition at line 51 of file freebusy.h.


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