#include <CDataStructures.h>
Inheritance diagram for CCalendar::
Public Methods | |
CCalendar (void) | |
~CCalendar (void) | |
CDate * | getItem (void) |
Returns the internal pointer. More... | |
CDate * | getItem (int number) |
Returns the item that is in position number, where the head is 1. More... | |
bool | gotoDate (int day, int month, int year) |
Sets m_current to earliest CDate occuring on specified date. More... | |
bool | nextEventYear (void) |
Gets first event in the next year or after than current. More... | |
bool | nextEventMonth (void) |
bool | nextEventDay (void) |
bool | nextEventOnCurrentDay (void) |
Sets m_current ptr to the next CDate occuring on the same day. More... | |
bool | prevEventYear (void) |
Gets the earliest event in the first previous year before current. More... | |
bool | prevEventMonth (void) |
bool | prevEventDay (void) |
bool | prevEventOnCurrentDay (void) |
Sets m_current ptr to the previous CDate occuring on the same day. More... | |
void | insertItem (CDate *appt) |
Use only this for all CDate inserts into the Calendar. More... | |
void | inputData (string inputdata) |
string | outputData (void) |
|
|
|
|
|
Returns the item that is in position number, where the head is 1. Returns NULL if the number is out of range for the list. Reimplemented from CList. |
|
Returns the internal pointer.
Reimplemented from CList. |
|
Sets m_current to earliest CDate occuring on specified date. Returns true if such a date exists in CCalendar Returns false if no such a date exists in CCalendar |
|
|
|
Use only this for all CDate inserts into the Calendar. Will not allow overlapping events except for 1) all day events 2) an event 1 may have same endtime as event 2's start time 3) if an event has same start time and end time, it may share that time with the starting or ending time of other events but cannot lie between the start and end time of an event Returns true on successful entry Returns false if date conflicts with previously entered dates |
|
|
|
|
|
Sets m_current ptr to the next CDate occuring on the same day. Returns true if successful and sets m_current Returns false if there are no other CDate items on m_current's date which are after or the same time as m_current |
|
Gets first event in the next year or after than current. Goes to the first next event in the CCalendar that is beyond the the year of the CDate that m_current is pointing to. Returns true if there is such a date and sets internal current ptr to it. Else returns false and leaves internal current pointer as is. nextEventMonth() and nextEventDay work similarly |
|
|
|
|
|
|
|
Sets m_current ptr to the previous CDate occuring on the same day. Returns true if successful and sets m_current Returns false if there are no other CDate items on m_current's date which are before or the same time as m_current |
|
Gets the earliest event in the first previous year before current. Goes to the next event in the CCalendar that is before the the year of the CDate that m_current is pointing to. Though if there are multiple dates before the current one and they are of the same year, it goes to the earliest occuring of these. Returns true if there is such a date and sets internal current ptr to it. Else returns false and leaves internal current pointer as is. nextEventMonth() and nextEventDay work similarly |