#include <cgiCalendar.h>


Public Member Functions | |
| cgiCalendar (aString &year, aString &month, aString day="") | |
| virtual | ~cgiCalendar () |
| cgiCalendar & | setHeaderPos (eHeaderPos inPos) |
| bool | fill (dayItems &items, const char *url=NULL) |
| bool | fill (timeItems &items, const char *url=NULL) |
| string & | strYear (void) |
| string & | strMonth (void) |
| int | year (void) |
| int | month (void) |
| void | WeekDayHeader (string newWeekDayHeader) |
| cgiCalendar (aString &year, aString &month, aString day="") | |
| virtual | ~cgiCalendar () |
| cgiCalendar & | setHeaderPos (eHeaderPos inPos) |
| bool | fill (dayItems &items, const char *url=NULL) |
| bool | fill (timeItems &items, const char *url=NULL) |
| string & | strYear (void) |
| string & | strMonth (void) |
| int | year (void) |
| int | month (void) |
| void | WeekDayHeader (string newWeekDayHeader) |
Public Attributes | |
| aString | dayTemplate |
| for changing the day number on the (month view) calendar - default: $day | |
| aString | timeTemplate |
| int | iHourStart |
| int | iHourEnd |
| string | addedCriteria |
Protected Member Functions | |
| bool | fillDays (dayItems &items) |
| bool | fillDay (dayItems &items) |
| bool | fillHalfHours (timeItems &items) |
| bool | fillHalfHour (timeItems &items, string &key) |
| bool | dayAdd (void) |
| bool | fillDays (dayItems &items) |
| bool | fillDay (dayItems &items) |
| bool | fillHalfHours (timeItems &items) |
| bool | fillHalfHour (timeItems &items, string &key) |
| bool | dayAdd (void) |
Protected Attributes | |
| tm | m_tm |
| string | m_formatted |
| string | header |
| eHeaderPos | headerPos |
| string | weekDayHeader |
| bool | isDayMode |
Definition at line 40 of file cgiCalendar.h.
Definition at line 30 of file cgiCalendar.cpp.
References aString::c_str(), currentTime(), fixTime(), isDayMode, aString::length(), m_tm, aString::str(), and weekDayHeader.
| cgiCalendar::~cgiCalendar | ( | ) | [virtual] |
Definition at line 300 of file cgiCalendar.cpp.
| virtual cgiCalendar::~cgiCalendar | ( | ) | [virtual] |
| bool cgiCalendar::fillDays | ( | dayItems & | items | ) | [protected] |
Definition at line 212 of file cgiCalendar.cpp.
References ocString::append(), dayAdd(), dayTemplate, fillDay(), m_tm, and aString::replaceFoundWith().
Referenced by fill().
| bool cgiCalendar::fillDay | ( | dayItems & | items | ) | [protected] |
| bool cgiCalendar::fillHalfHours | ( | timeItems & | items | ) | [protected] |
Definition at line 112 of file cgiCalendar.cpp.
References fillHalfHour(), iHourEnd, and iHourStart.
Referenced by fill().
| bool cgiCalendar::fillHalfHour | ( | timeItems & | items, | |
| string & | key | |||
| ) | [protected] |
Definition at line 126 of file cgiCalendar.cpp.
References aString::c_str(), time_date::format(), time_date::parse(), ocString::regExMatch(), ocString::replaceAll(), and timeTemplate.
Referenced by fillHalfHours().
| bool cgiCalendar::dayAdd | ( | void | ) | [protected] |
Definition at line 261 of file cgiCalendar.cpp.
References fixTime(), and m_tm.
Referenced by fillDays().
| cgiCalendar& cgiCalendar::setHeaderPos | ( | eHeaderPos | inPos | ) | [inline] |
| bool cgiCalendar::fill | ( | dayItems & | items, | |
| const char * | url = NULL | |||
| ) |
Definition at line 152 of file cgiCalendar.cpp.
References addedCriteria, fillDays(), fixTime(), fmtTime(), header, headerPos, m_tm, posBoth, posBottom, posTop, and weekDayHeader.
| bool cgiCalendar::fill | ( | timeItems & | items, | |
| const char * | url = NULL | |||
| ) |
| string & cgiCalendar::strYear | ( | void | ) |
| string & cgiCalendar::strMonth | ( | void | ) |
| int cgiCalendar::year | ( | void | ) |
| int cgiCalendar::month | ( | void | ) |
| void cgiCalendar::WeekDayHeader | ( | string | newWeekDayHeader | ) |
| bool cgiCalendar::fillDays | ( | dayItems & | items | ) | [protected] |
| bool cgiCalendar::fillDay | ( | dayItems & | items | ) | [protected] |
| bool cgiCalendar::fillHalfHours | ( | timeItems & | items | ) | [protected] |
| bool cgiCalendar::fillHalfHour | ( | timeItems & | items, | |
| string & | key | |||
| ) | [protected] |
| bool cgiCalendar::dayAdd | ( | void | ) | [protected] |
| cgiCalendar& cgiCalendar::setHeaderPos | ( | eHeaderPos | inPos | ) | [inline] |
| bool cgiCalendar::fill | ( | dayItems & | items, | |
| const char * | url = NULL | |||
| ) |
| bool cgiCalendar::fill | ( | timeItems & | items, | |
| const char * | url = NULL | |||
| ) |
| string& cgiCalendar::strYear | ( | void | ) |
| string& cgiCalendar::strMonth | ( | void | ) |
| int cgiCalendar::year | ( | void | ) |
| int cgiCalendar::month | ( | void | ) |
| void cgiCalendar::WeekDayHeader | ( | string | newWeekDayHeader | ) |
tm cgiCalendar::m_tm [protected] |
Definition at line 44 of file cgiCalendar.h.
Referenced by cgiCalendar(), dayAdd(), fill(), fillDay(), fillDays(), month(), strMonth(), strYear(), and year().
string cgiCalendar::m_formatted [protected] |
string cgiCalendar::header [protected] |
eHeaderPos cgiCalendar::headerPos [protected] |
string cgiCalendar::weekDayHeader [protected] |
Definition at line 48 of file cgiCalendar.h.
Referenced by cgiCalendar(), fill(), and WeekDayHeader().
bool cgiCalendar::isDayMode [protected] |
for changing the day number on the (month view) calendar - default:
Definition at line 61 of file cgiCalendar.h.
Referenced by fillDays().
for changing the time on the (day view) calendar - default:
Definition at line 64 of file cgiCalendar.h.
Referenced by fillHalfHour().
| string cgiCalendar::addedCriteria |
1.5.5