libkcal

KCal::Period Class Reference

This class represents a period of time. More...

#include <period.h>

List of all members.


Public Member Functions

 Period (const TQDateTime &start, const TQDateTime &end)
 Period (const TQDateTime &start, const Duration &duration)
bool operator< (const Period &other)
bool operator== (const Period &other) const
bool operator!= (const Period &other) const
TQDateTime start () const
TQDateTime end () const
Duration duration ()
bool hasDuration () const
TQString summary () const
void setSummary (const TQString &summary)
TQString location () const
void setLocation (const TQString &location)

Detailed Description

This class represents a period of time.

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 35 of file period.h.


Member Function Documentation

bool Period::operator< ( const Period other  ) 

Returns true if this element is smaller than the.

Parameters:
other one

Definition at line 49 of file period.cpp.

bool Period::operator== ( const Period other  )  const

Returns true if this period is equal to the other one.

Even if their start and end times are the same, two periods are considered not equal if one is defined in terms of a duration and the other in terms of a start and end time.

Parameters:
other the other period to compare

Definition at line 54 of file period.cpp.

bool KCal::Period::operator!= ( const Period other  )  const [inline]

Returns true if this period is not equal to the other one.

Parameters:
other the other period to compare
See also:
operator==()

Definition at line 61 of file period.h.


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