kplato
KPlato::CalendarWeekdays Class Reference
List of all members.Detailed Description
Definition at line 112 of file kptcalendar.h.
Public Member Functions | |
CalendarWeekdays () | |
CalendarWeekdays (CalendarWeekdays *weekdays) | |
~CalendarWeekdays () | |
bool | load (QDomElement &element) |
void | save (QDomElement &element) const |
void | addWeekday (CalendarDay *day) |
const QPtrList< CalendarDay > & | weekdays () const |
CalendarDay * | weekday (int day) const |
CalendarDay * | weekday (const QDate &date) const |
CalendarDay * | replace (int weekday, CalendarDay *day) |
IntMap | map () |
void | setWeekday (IntMap::iterator it, int state) |
int | state (const QDate &date) const |
int | state (int weekday) const |
void | setState (int weekday, int state) |
const QPtrList< QPair< QTime, QTime > > & | intervals (int weekday) const |
void | setIntervals (int weekday, QPtrList< QPair< QTime, QTime > >intervals) |
void | clearIntervals (int weekday) |
bool | operator== (const CalendarWeekdays *weekdays) const |
bool | operator!= (const CalendarWeekdays *weekdays) const |
Duration | effort (const QDate &date, const QTime &start, const QTime &end) |
QPair< QTime, QTime > | interval (const QDate date, const QTime &start, const QTime &end) const |
bool | hasInterval (const QDate date, const QTime &start, const QTime &end) const |
bool | hasInterval () const |
Duration | duration () const |
Duration | duration (int weekday) const |
QTime | startOfDay (int weekday) const |
QTime | endOfDay (int weekday) const |
const CalendarWeekdays & | copy (const CalendarWeekdays &weekdays) |
void | printDebug (QCString indent="") |
Member Function Documentation
QTime KPlato::CalendarWeekdays::endOfDay | ( | int | weekday | ) | const |
bool KPlato::CalendarWeekdays::hasInterval | ( | const QDate | date, | |
const QTime & | start, | |||
const QTime & | end | |||
) | const |
Returns true if at least a part of a 'work interval' exists on the weekday defined by date for the interval start to end.
Definition at line 444 of file kptcalendar.cc.
QPair< QTime, QTime > KPlato::CalendarWeekdays::interval | ( | const QDate | date, | |
const QTime & | start, | |||
const QTime & | end | |||
) | const |
Returns the actual 'work interval' on the weekday defined by date for the interval start to end.
If no 'work interval' exists, returns the interval start, end. Use hasInterval() to check if a 'work interval' exists.
Definition at line 433 of file kptcalendar.cc.
QTime KPlato::CalendarWeekdays::startOfDay | ( | int | weekday | ) | const |
CalendarDay * KPlato::CalendarWeekdays::weekday | ( | int | day | ) | const |
Returns the pointer to CalendarDay for or 0 if not defined.
day is 0..6.
Definition at line 460 of file kptcalendar.cc.
The documentation for this class was generated from the following files: