KCalendarCore::FreeBusyPeriod

Search for usage in LXR

KCalendarCore::FreeBusyPeriod Class Reference

#include <freebusyperiod.h>

Inheritance diagram for KCalendarCore::FreeBusyPeriod:

Public Types

enum  FreeBusyType {
  Free , Busy , BusyUnavailable , BusyTentative ,
  Unknown
}
 
typedef QList< FreeBusyPeriodList
 
- Public Types inherited from KCalendarCore::Period
typedef QList< PeriodList
 

Public Member Functions

 FreeBusyPeriod ()
 
 FreeBusyPeriod (const FreeBusyPeriod &period)
 
 FreeBusyPeriod (const Period &period)
 
 FreeBusyPeriod (const QDateTime &start, const Duration &duration)
 
 FreeBusyPeriod (const QDateTime &start, const QDateTime &end)
 
 ~FreeBusyPeriod ()
 
QString location () const
 
FreeBusyPeriodoperator= (const FreeBusyPeriod &other)
 
void setLocation (const QString &location)
 
void setSummary (const QString &summary)
 
void setType (FreeBusyType type)
 
QString summary () const
 
FreeBusyType type () const
 
- Public Member Functions inherited from KCalendarCore::Period
 Period ()
 
 Period (const Period &period)
 
 Period (const QDateTime &start, const Duration &duration)
 
 Period (const QDateTime &start, const QDateTime &end)
 
 ~Period ()
 
Duration duration () const
 
Duration duration (Duration::Type type) const
 
QDateTime end () const
 
bool hasDuration () const
 
bool isValid () const
 
bool operator!= (const Period &other) const
 
bool operator< (const Period &other) const
 
Periodoperator= (const Period &other)
 
bool operator== (const Period &other) const
 
bool operator> (const Period &other) const
 
void shiftTimes (const QTimeZone &oldZone, const QTimeZone &newZone)
 
QDateTime start () const
 

Detailed Description

The period can be defined by either a start time and an end time or by a start time and a duration.

Definition at line 33 of file freebusyperiod.h.

Member Typedef Documentation

◆ List

List of periods.

Definition at line 47 of file freebusyperiod.h.

Member Enumeration Documentation

◆ FreeBusyType

enum KCalendarCore::FreeBusyPeriod::FreeBusyType

Definition at line 36 of file freebusyperiod.h.

Constructor & Destructor Documentation

◆ FreeBusyPeriod() [1/5]

FreeBusyPeriod::FreeBusyPeriod ( )

Constructs a period without a duration.

Definition at line 39 of file freebusyperiod.cpp.

◆ FreeBusyPeriod() [2/5]

FreeBusyPeriod::FreeBusyPeriod ( const QDateTime & start,
const QDateTime & end )

Constructs a period from start to end.

Parameters
startthe time the period begins.
endthe time the period ends.

Definition at line 45 of file freebusyperiod.cpp.

◆ FreeBusyPeriod() [3/5]

FreeBusyPeriod::FreeBusyPeriod ( const QDateTime & start,
const Duration & duration )

Constructs a period from start and lasting duration.

Parameters
startthe time when the period starts.
durationhow long the period lasts.

Definition at line 51 of file freebusyperiod.cpp.

◆ FreeBusyPeriod() [4/5]

FreeBusyPeriod::FreeBusyPeriod ( const FreeBusyPeriod & period)

Constructs a period by copying another period object.

Parameters
periodthe period to copy

Definition at line 57 of file freebusyperiod.cpp.

◆ FreeBusyPeriod() [5/5]

FreeBusyPeriod::FreeBusyPeriod ( const Period & period)

Constructs a period by copying another period object.

Parameters
periodthe period to copy

Definition at line 63 of file freebusyperiod.cpp.

◆ ~FreeBusyPeriod()

FreeBusyPeriod::~FreeBusyPeriod ( )

Destroys a period.

Definition at line 69 of file freebusyperiod.cpp.

Member Function Documentation

◆ location()

QString FreeBusyPeriod::location ( ) const

Returns the period location.

See also
setLocation()

Definition at line 96 of file freebusyperiod.cpp.

◆ operator=()

FreeBusyPeriod & FreeBusyPeriod::operator= ( const FreeBusyPeriod & other)

Sets this period equal to the other one.

Parameters
otheris the other period to compare.

Definition at line 74 of file freebusyperiod.cpp.

◆ setLocation()

void FreeBusyPeriod::setLocation ( const QString & location)

Sets the period location.

Parameters
locationis the period location string.
See also
location().

Definition at line 101 of file freebusyperiod.cpp.

◆ setSummary()

void FreeBusyPeriod::setSummary ( const QString & summary)

Sets the period summary.

Parameters
summaryis the period summary string.
See also
summary().

Definition at line 91 of file freebusyperiod.cpp.

◆ setType()

void FreeBusyPeriod::setType ( FreeBusyPeriod::FreeBusyType type)

Sets the free/busy type.

Parameters
typeis the type of free/busy period
See also
type().
Since
5.0

Definition at line 111 of file freebusyperiod.cpp.

◆ summary()

QString FreeBusyPeriod::summary ( ) const

Returns the period summary.

See also
setSummary()

Definition at line 86 of file freebusyperiod.cpp.

◆ type()

FreeBusyPeriod::FreeBusyType FreeBusyPeriod::type ( ) const

Returns free/busy type.

See also
setType().
Since
5.0

Definition at line 106 of file freebusyperiod.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:47 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.