libkholidays
KHolidays Class Reference
List of all members.Detailed Description
Definition at line 36 of file kholidays.h.
Public Types | |
enum | { WORKDAY, HOLIDAY } |
Public Member Functions | |
KHolidays (const QString &location) | |
~KHolidays () | |
QString | location () const |
QValueList< KHoliday > | getHolidays (const QDate &) |
KDE_DEPRECATED QString | shortText (const QDate &) |
KDE_DEPRECATED QString | getHoliday (const QDate &) |
KDE_DEPRECATED int | category (const QDate &) |
Static Public Member Functions | |
static QStringList | locations () |
static QString | fileForLocation (const QString &location) |
static QString | userPath (bool create=false) |
static QString | generateFileName (const QString &location) |
Member Function Documentation
QStringList KHolidays::locations | ( | ) | [static] |
Return a list of all available locations which have a holiday definition.
One of these can then be passed to the constructor for a new KHolidays object.
Definition at line 41 of file kholidays.cpp.
QString KHolidays::fileForLocation | ( | const QString & | location | ) | [static] |
Return the file name for the holiday file of the given location.
Definition at line 55 of file kholidays.cpp.
QString KHolidays::userPath | ( | bool | create = false |
) | [static] |
Return the directory for user-specific holiday files (i.e.
somewhere below $KDEDIR/share/apps/). Don't automatically create that path by default.
Definition at line 60 of file kholidays.cpp.
QString KHolidays::generateFileName | ( | const QString & | location | ) | [static] |
Generate the filename (without the path) for a given region.
Definition at line 65 of file kholidays.cpp.
QString KHolidays::location | ( | ) | const |
return the location with which this object was constructed
Definition at line 85 of file kholidays.cpp.
The documentation for this class was generated from the following files: