Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Calendar Class Reference

The Calendar class provides programmers with an easy to calculate and get information about dates, months and years. More...

#include </home/clem/local/src/opie/library/calendar.h>

List of all members.

Static Public Member Functions

static QString nameOfMonth (int m)
static QString nameOfDay (int d)
static QValueList< DaydaysOfMonth (int year, int month, bool startWithMonday=FALSE)

Classes

struct  Day


Detailed Description

The Calendar class provides programmers with an easy to calculate and get information about dates, months and years.

Definition at line 26 of file calendar.h.


Member Function Documentation

QValueList< Calendar::Day > Calendar::daysOfMonth int  year,
int  month,
bool  startWithMonday = FALSE
[static]
 

Definition at line 82 of file calendar.cpp.

References QValueList< T >::append(), QValueList< T >::count(), QDate::dayOfWeek(), QDate::daysInMonth(), FALSE, i, Calendar::Day::NextMonth, Calendar::Day::PrevMonth, QDate::setYMD(), and Calendar::Day::ThisMonth.

Referenced by DateBookMonthTable::setupTable(), and ODateBookMonthTable::setupTable().

QString Calendar::nameOfDay int  d  )  [static]
 

Returns the name of the day for d. Equivalent to QDate::dayName().

Definition at line 75 of file calendar.cpp.

References QDate::dayName(), and tr.

Referenced by DateBookEvent::differDate(), DateBookWeekView::initNames(), DateBookMonthTable::setupLabels(), and ODateBookMonthTable::setupLabels().

QString Calendar::nameOfMonth int  m  )  [static]
 

Returns the name of the month for m. Equivalent to QDate::monthName().

Definition at line 65 of file calendar.cpp.

References d, QDate::monthName(), and tr.

Referenced by DateBookMonthHeader::DateBookMonthHeader(), DateBookWeekLstHeader::setDate(), and DateBookWeekHeader::setDate().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:27:49 2005 for OPIE by  doxygen 1.4.2