cgiCalendar Class Reference

#include <cgiCalendar.h>

Inheritance diagram for cgiCalendar:

Inheritance graph
[legend]
Collaboration diagram for cgiCalendar:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cgiCalendar (aString &year, aString &month, aString day="")
virtual ~cgiCalendar ()
cgiCalendarsetHeaderPos (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 ()
cgiCalendarsetHeaderPos (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


Detailed Description

Definition at line 40 of file cgiCalendar.h.


Constructor & Destructor Documentation

cgiCalendar::cgiCalendar ( aString year,
aString month,
aString  day = "" 
)

cgiCalendar::~cgiCalendar (  )  [virtual]

Definition at line 300 of file cgiCalendar.cpp.

cgiCalendar::cgiCalendar ( aString year,
aString month,
aString  day = "" 
)

virtual cgiCalendar::~cgiCalendar (  )  [virtual]


Member Function Documentation

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]

Definition at line 247 of file cgiCalendar.cpp.

References m_tm.

Referenced by fillDays().

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]

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]

Definition at line 75 of file cgiCalendar.h.

References headerPos.

bool cgiCalendar::fill ( dayItems items,
const char *  url = NULL 
)

bool cgiCalendar::fill ( timeItems items,
const char *  url = NULL 
)

Definition at line 71 of file cgiCalendar.cpp.

References fillHalfHours(), fixTime(), fmtTime(), header, headerPos, m_tm, posBoth, posBottom, and posTop.

string & cgiCalendar::strYear ( void   ) 

Definition at line 274 of file cgiCalendar.cpp.

References fmtTime(), m_formatted, and m_tm.

string & cgiCalendar::strMonth ( void   ) 

Definition at line 282 of file cgiCalendar.cpp.

References fmtTime(), m_formatted, and m_tm.

int cgiCalendar::year ( void   ) 

Definition at line 290 of file cgiCalendar.cpp.

References m_tm.

int cgiCalendar::month ( void   ) 

Definition at line 295 of file cgiCalendar.cpp.

References m_tm.

void cgiCalendar::WeekDayHeader ( string  newWeekDayHeader  ) 

Definition at line 66 of file cgiCalendar.cpp.

References weekDayHeader.

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]

Definition at line 75 of file cgiCalendar.h.

References headerPos.

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  ) 


Member Data Documentation

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]

Definition at line 45 of file cgiCalendar.h.

Referenced by strMonth(), and strYear().

string cgiCalendar::header [protected]

Definition at line 46 of file cgiCalendar.h.

Referenced by fill().

Definition at line 47 of file cgiCalendar.h.

Referenced by fill(), and setHeaderPos().

string cgiCalendar::weekDayHeader [protected]

Definition at line 48 of file cgiCalendar.h.

Referenced by cgiCalendar(), fill(), and WeekDayHeader().

bool cgiCalendar::isDayMode [protected]

Definition at line 49 of file cgiCalendar.h.

Referenced by cgiCalendar().

for changing the day number on the (month view) calendar - default:

$day

Definition at line 61 of file cgiCalendar.h.

Referenced by fillDays().

for changing the time on the (day view) calendar - default:

$time
also, additional replacement key $time24

Definition at line 64 of file cgiCalendar.h.

Referenced by fillHalfHour().

Definition at line 66 of file cgiCalendar.h.

Referenced by fillHalfHours().

Definition at line 68 of file cgiCalendar.h.

Referenced by fillHalfHours().

Definition at line 70 of file cgiCalendar.h.

Referenced by fill().


The documentation for this class was generated from the following files:

Generated on Sat Aug 15 12:48:09 2009 for w3systemsDevelopment by  doxygen 1.5.5