#include <kptappointment.h>
Public Member Functions | |
| AppointmentInterval () | |
| AppointmentInterval (const AppointmentInterval &AppointmentInterval) | |
| AppointmentInterval (const DateTime &start, const DateTime end, double load=100) | |
| ~AppointmentInterval () | |
| void | set (DateTime &start, DateTime &end, double load=100) |
| void | set (DateTime &start, Duration &duration, double load=100) |
| Duration | effort () const |
| Duration | effort (const DateTime &start, const DateTime end) const |
| Duration | effort (const DateTime &time, bool upto) const |
| bool | loadXML (QDomElement &element) |
| void | saveXML (QDomElement &element) const |
| const DateTime & | startTime () const |
| void | setStartTime (const DateTime &time) |
| const DateTime & | endTime () const |
| void | setEndTime (const DateTime &time) |
| double | load () const |
| void | setLoad (double load) |
| bool | isValid () const |
| AppointmentInterval | firstInterval (const AppointmentInterval &interval, const DateTime &from) const |
| void | inSort (AppointmentInterval *a) |
Private Attributes | |
| DateTime | m_start |
| DateTime | m_end |
| double | m_load |
Definition at line 53 of file kptappointment.h.
| KPlato::AppointmentInterval::AppointmentInterval | ( | ) |
| KPlato::AppointmentInterval::AppointmentInterval | ( | const AppointmentInterval & | AppointmentInterval | ) |
Definition at line 39 of file kptappointment.cc.
References endTime(), load(), m_end, m_load, m_start, and startTime().
| KPlato::AppointmentInterval::~AppointmentInterval | ( | ) |
Definition at line 51 of file kptappointment.cc.
| Duration KPlato::AppointmentInterval::effort | ( | ) | const [inline] |
Definition at line 55 of file kptappointment.cc.
References m_end, m_load, m_start, and KPlato::Duration::zeroDuration.
Definition at line 64 of file kptappointment.cc.
References m_end, m_load, m_start, and KPlato::Duration::zeroDuration.
| bool KPlato::AppointmentInterval::loadXML | ( | QDomElement & | element | ) |
Definition at line 80 of file kptappointment.cc.
References KPlato::DateTime::fromString(), m_end, m_load, and m_start.
| void KPlato::AppointmentInterval::saveXML | ( | QDomElement & | element | ) | const |
| const DateTime& KPlato::AppointmentInterval::startTime | ( | ) | const [inline] |
Definition at line 70 of file kptappointment.h.
References m_start.
Referenced by AppointmentInterval(), KPlato::AppointmentIntervalList::compareItems(), firstInterval(), and KPlato::Appointment::operator+().
| void KPlato::AppointmentInterval::setStartTime | ( | const DateTime & | time | ) | [inline] |
| const DateTime& KPlato::AppointmentInterval::endTime | ( | ) | const [inline] |
Definition at line 72 of file kptappointment.h.
References m_end.
Referenced by AppointmentInterval(), KPlato::AppointmentIntervalList::compareItems(), firstInterval(), and KPlato::Appointment::operator+().
| void KPlato::AppointmentInterval::setEndTime | ( | const DateTime & | time | ) | [inline] |
| double KPlato::AppointmentInterval::load | ( | ) | const [inline] |
Definition at line 74 of file kptappointment.h.
References m_load.
Referenced by AppointmentInterval(), firstInterval(), and KPlato::Appointment::operator+().
| void KPlato::AppointmentInterval::setLoad | ( | double | load | ) | [inline] |
| bool KPlato::AppointmentInterval::isValid | ( | ) | const |
Definition at line 103 of file kptappointment.cc.
References m_end, and m_start.
Referenced by KPlato::Appointment::operator+().
| AppointmentInterval KPlato::AppointmentInterval::firstInterval | ( | const AppointmentInterval & | interval, | |
| const DateTime & | from | |||
| ) | const |
Definition at line 107 of file kptappointment.cc.
References endTime(), load(), m_end, m_load, m_start, and startTime().
Referenced by KPlato::Appointment::operator+().
| void KPlato::AppointmentInterval::inSort | ( | AppointmentInterval * | a | ) |
DateTime KPlato::AppointmentInterval::m_start [private] |
Definition at line 83 of file kptappointment.h.
Referenced by AppointmentInterval(), effort(), firstInterval(), isValid(), loadXML(), saveXML(), setStartTime(), and startTime().
DateTime KPlato::AppointmentInterval::m_end [private] |
Definition at line 84 of file kptappointment.h.
Referenced by AppointmentInterval(), effort(), endTime(), firstInterval(), isValid(), loadXML(), saveXML(), and setEndTime().
double KPlato::AppointmentInterval::m_load [private] |
Definition at line 85 of file kptappointment.h.
Referenced by AppointmentInterval(), effort(), firstInterval(), load(), loadXML(), saveXML(), and setLoad().
1.5.1-p1