• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KCal Library

  • KCal
  • FreeBusyPeriod
Public Types | Public Member Functions | List of all members
KCal::FreeBusyPeriod Class Reference

#include <freebusyperiod.h>

Inheritance diagram for KCal::FreeBusyPeriod:
KCal::Period

Public Types

typedef QList< FreeBusyPeriod > List
 
- Public Types inherited from KCal::Period
typedef QList< Period > List
 

Public Member Functions

 FreeBusyPeriod ()
 
 FreeBusyPeriod (const FreeBusyPeriod &period)
 
 FreeBusyPeriod (const KDateTime &start, const Duration &duration)
 
 FreeBusyPeriod (const KDateTime &start, const KDateTime &end)
 
 FreeBusyPeriod (const Period &period)
 
 ~FreeBusyPeriod ()
 
QString location () const
 
FreeBusyPeriod & operator= (const FreeBusyPeriod &other)
 
void setLocation (const QString &location)
 
void setSummary (const QString &summary)
 
QString summary () const
 
- Public Member Functions inherited from KCal::Period
 Period ()
 
 Period (const KDateTime &start, const Duration &duration)
 
 Period (const KDateTime &start, const KDateTime &end)
 
 Period (const Period &period)
 
 ~Period ()
 
Duration duration () const
 
Duration duration (Duration::Type type) const
 
KDateTime end () const
 
bool hasDuration () const
 
bool operator!= (const Period &other) const
 
bool operator< (const Period &other) const
 
Period & operator= (const Period &other)
 
bool operator== (const Period &other) const
 
bool operator> (const Period &other) const
 
void shiftTimes (const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
 
KDateTime 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 48 of file freebusyperiod.h.

Member Typedef Documentation

◆ List

typedef QList<FreeBusyPeriod> KCal::FreeBusyPeriod::List

List of periods.

Definition at line 54 of file freebusyperiod.h.

Constructor & Destructor Documentation

◆ FreeBusyPeriod() [1/5]

FreeBusyPeriod::FreeBusyPeriod ( )

Constructs a period without a duration.

Definition at line 51 of file freebusyperiod.cpp.

◆ FreeBusyPeriod() [2/5]

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

Constructs a period from start to end.

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

Definition at line 55 of file freebusyperiod.cpp.

◆ FreeBusyPeriod() [3/5]

FreeBusyPeriod::FreeBusyPeriod ( const KDateTime &  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 60 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 65 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 70 of file freebusyperiod.cpp.

◆ ~FreeBusyPeriod()

FreeBusyPeriod::~FreeBusyPeriod ( )

Destroys a period.

Definition at line 75 of file freebusyperiod.cpp.

Member Function Documentation

◆ location()

QString FreeBusyPeriod::location ( ) const

Definition at line 102 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 80 of file freebusyperiod.cpp.

◆ setLocation()

void FreeBusyPeriod::setLocation ( const QString &  location)

Definition at line 107 of file freebusyperiod.cpp.

◆ setSummary()

void FreeBusyPeriod::setSummary ( const QString &  summary)

Definition at line 97 of file freebusyperiod.cpp.

◆ summary()

QString FreeBusyPeriod::summary ( ) const

Definition at line 92 of file freebusyperiod.cpp.


The documentation for this class was generated from the following files:
  • freebusyperiod.h
  • freebusyperiod.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal