KHolidays::Holiday
#include <holiday.h>
Public Types | |
enum | DayType { Workday , NonWorkday } |
typedef QList< Holiday > | List |
Public Member Functions | |
Holiday () | |
Holiday (const Holiday &other) | |
~Holiday () | |
QStringList | categoryList () const |
DayType | dayType () const |
QString | description () const |
int | duration () const |
QString | name () const |
QDate | observedEndDate () const |
QDate | observedStartDate () const |
bool | operator< (const Holiday &rhs) const |
Holiday & | operator= (const Holiday &other) |
bool | operator> (const Holiday &rhs) const |
Detailed Description
Member Typedef Documentation
◆ List
Member Enumeration Documentation
◆ DayType
Constructor & Destructor Documentation
◆ Holiday() [1/2]
Holiday::Holiday | ( | ) |
Creates an empty holiday.
Definition at line 19 of file holiday.cpp.
◆ Holiday() [2/2]
Holiday::Holiday | ( | const Holiday & | other | ) |
Creates a holiday from an other
holiday.
Definition at line 24 of file holiday.cpp.
◆ ~Holiday()
Holiday::~Holiday | ( | ) |
Destroys the holiday object.
Definition at line 29 of file holiday.cpp.
Member Function Documentation
◆ categoryList()
QStringList Holiday::categoryList | ( | ) | const |
- Since
- 5.8
Returns a QStringList of categories for the Holiday. If the Holiday has no categories then an empty list is returned.
Definition at line 82 of file holiday.cpp.
◆ dayType()
Holiday::DayType Holiday::dayType | ( | ) | const |
Returns the day type of the holiday.
Definition at line 77 of file holiday.cpp.
◆ description()
QString Holiday::description | ( | ) | const |
- Since
- 5.0
Returns the description of the Holiday if available
- Returns
- the description of the Holiday
Definition at line 72 of file holiday.cpp.
◆ duration()
int Holiday::duration | ( | ) | const |
◆ name()
QString Holiday::name | ( | ) | const |
- Since
- 5.0
Returns the name of the Holiday.
- Returns
- the name of the Holiday
Definition at line 67 of file holiday.cpp.
◆ observedEndDate()
QDate Holiday::observedEndDate | ( | ) | const |
◆ observedStartDate()
QDate Holiday::observedStartDate | ( | ) | const |
◆ operator<()
bool Holiday::operator< | ( | const Holiday & | rhs | ) | const |
Definition at line 42 of file holiday.cpp.
◆ operator=()
Definition at line 33 of file holiday.cpp.
◆ operator>()
bool Holiday::operator> | ( | const Holiday & | rhs | ) | const |
Definition at line 47 of file holiday.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.