KCal::Period Class Reference
#include <period.h>
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.
Member Function Documentation
◆ operator!=()
|
inline |
Returns true if this period is not equal to the other
one.
- Parameters
-
other the other period to compare
- See also
- operator==()
◆ operator<()
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.
◆ operator==()
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.
The documentation for this class was generated from the following files: