libkcal
KCal::Period Class Reference
#include <period.h>
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.
Public Member Functions | |
Period (const QDateTime &start, const QDateTime &end) | |
Period (const QDateTime &start, const Duration &duration) | |
bool | operator< (const Period &other) |
bool | operator== (const Period &other) const |
bool | operator!= (const Period &other) const |
QDateTime | start () const |
QDateTime | end () const |
Duration | duration () |
bool | hasDuration () const |
QString | summary () const |
void | setSummary (const QString &summary) |
QString | location () const |
void | setLocation (const QString &location) |
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==()
The documentation for this class was generated from the following files: