KPlato::AppointmentInterval Class Reference

#include <kptappointment.h>

List of all members.

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 DateTimestartTime () const
void setStartTime (const DateTime &time)
const DateTimeendTime () 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


Detailed Description

Definition at line 53 of file kptappointment.h.


Constructor & Destructor Documentation

KPlato::AppointmentInterval::AppointmentInterval (  ) 

Definition at line 36 of file kptappointment.cc.

References m_load.

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 ( const DateTime start,
const DateTime  end,
double  load = 100 
)

Definition at line 45 of file kptappointment.cc.

References m_end, m_load, and m_start.

KPlato::AppointmentInterval::~AppointmentInterval (  ) 

Definition at line 51 of file kptappointment.cc.


Member Function Documentation

void KPlato::AppointmentInterval::set ( DateTime start,
DateTime end,
double  load = 100 
)

void KPlato::AppointmentInterval::set ( DateTime start,
Duration duration,
double  load = 100 
)

Duration KPlato::AppointmentInterval::effort (  )  const [inline]

Definition at line 63 of file kptappointment.h.

References m_end, m_load, and m_start.

Duration KPlato::AppointmentInterval::effort ( const DateTime start,
const DateTime  end 
) const

Definition at line 55 of file kptappointment.cc.

References m_end, m_load, m_start, and KPlato::Duration::zeroDuration.

Duration KPlato::AppointmentInterval::effort ( const DateTime time,
bool  upto 
) const

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

Definition at line 94 of file kptappointment.cc.

References m_end, m_load, and m_start.

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]

Definition at line 71 of file kptappointment.h.

References m_start.

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]

Definition at line 73 of file kptappointment.h.

References m_end.

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]

Definition at line 75 of file kptappointment.h.

References m_load.

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  ) 


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Wed Nov 22 23:21:43 2006 for KPlato by  doxygen 1.5.1-p1