kplato
KPlato::CalendarDay Class Reference
List of all members.Detailed Description
Definition at line 42 of file kptcalendar.h.
Public Member Functions | |
CalendarDay () | |
CalendarDay (int state) | |
CalendarDay (QDate date, int state=0) | |
CalendarDay (CalendarDay *day) | |
~CalendarDay () | |
bool | load (QDomElement &element) |
void | save (QDomElement &element) const |
const QPtrList< QPair< QTime, QTime > > & | workingIntervals () const |
void | addInterval (QPair< QTime, QTime > *interval) |
void | addInterval (QPair< QTime, QTime > interval) |
void | clearIntervals () |
void | setIntervals (QPtrList< QPair< QTime, QTime > > intervals) |
QTime | startOfDay () const |
QTime | endOfDay () const |
QDate | date () const |
void | setDate (QDate date) |
int | state () const |
void | setState (int state) |
bool | operator== (const CalendarDay *day) const |
bool | operator== (const CalendarDay &day) const |
bool | operator!= (const CalendarDay *day) const |
bool | operator!= (const CalendarDay &day) const |
Duration | effort (const QTime &start, const QTime &end) |
QPair< QTime, QTime > | interval (const QTime &start, const QTime &end) const |
bool | hasInterval () const |
bool | hasInterval (const QTime &start, const QTime &end) const |
Duration | duration () const |
const CalendarDay & | copy (const CalendarDay &day) |
void | printDebug (QCString indent="") |
Member Function Documentation
|
Returns the amount of 'worktime' that can be done on this day between the times start and end.
Definition at line 217 of file kptcalendar.cc. |
|
Returns true if at least a part of a 'work interval' exists for the interval start to end.
Definition at line 266 of file kptcalendar.cc. |
|
Returns the actual 'work interval' 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 244 of file kptcalendar.cc. |
The documentation for this class was generated from the following files: