#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.
Constructor & Destructor Documentation
◆ Period() [1/3]
Period::Period | ( | ) |
Definition at line 29 of file period.cpp.
◆ Period() [2/3]
Period::Period | ( | const TQDateTime & | start, |
const TQDateTime & | end | ||
) |
Definition at line 34 of file period.cpp.
◆ Period() [3/3]
Period::Period | ( | const TQDateTime & | start, |
const Duration & | duration | ||
) |
Definition at line 41 of file period.cpp.
Member Function Documentation
◆ duration()
Duration Period::duration | ( | ) |
Definition at line 72 of file period.cpp.
◆ end()
TQDateTime Period::end | ( | ) | const |
Definition at line 67 of file period.cpp.
◆ hasDuration()
bool Period::hasDuration | ( | ) | const |
Definition at line 77 of file period.cpp.
◆ location()
TQString KCal::Period::location | ( | ) | const |
Definition at line 92 of file period.cpp.
◆ 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.
◆ setLocation()
void KCal::Period::setLocation | ( | const TQString & | location | ) |
Definition at line 97 of file period.cpp.
◆ setSummary()
void KCal::Period::setSummary | ( | const TQString & | summary | ) |
Definition at line 87 of file period.cpp.
◆ start()
TQDateTime Period::start | ( | ) | const |
Definition at line 62 of file period.cpp.
◆ summary()
TQString KCal::Period::summary | ( | ) | const |
Definition at line 82 of file period.cpp.
The documentation for this class was generated from the following files: