189
189
* Only dates with any planned effort is returned.
190
190
* If start or end is not valid, startTime.date() respectivly endTime().date() is used.
192
EffortCostMap plannedPrDay(const QDate& start, const QDate& end) const;
192
EffortCostMap plannedPrDay(const QDate& start, const QDate& end, EffortCostCalculationType type = ECCT_All) const;
194
194
/// Returns the planned effort from start to end
195
Duration effort(const DateTime &start, const DateTime &end) const;
195
Duration effort(const DateTime &start, const DateTime &end, EffortCostCalculationType type = ECCT_All) const;
196
196
/// Returns the planned effort from start for the duration
197
Duration effort(const DateTime &start, const Duration &duration) const;
197
Duration effort(const DateTime &start, const Duration &duration, EffortCostCalculationType type = ECCT_All) const;
198
198
/// Returns the planned effort from time onwards
199
Duration effortFrom(const QDate &time) const;
199
Duration effortFrom(const QDate &time, EffortCostCalculationType type = ECCT_All) const;
201
201
/// Returns the total planned effort for this appointment
202
Duration plannedEffort() const;
202
Duration plannedEffort(EffortCostCalculationType type = ECCT_All) const;
203
203
/// Returns the planned effort on the date
204
Duration plannedEffort(const QDate &date) const;
204
Duration plannedEffort(const QDate &date, EffortCostCalculationType type = ECCT_All) const;
205
205
/// Returns the planned effort upto and including date
206
Duration plannedEffortTo(const QDate &date) const;
206
Duration plannedEffortTo(const QDate &date, EffortCostCalculationType type = ECCT_All) const;
208
208
/// Calculates the total planned cost for this appointment
209
EffortCost plannedCost() const;
209
EffortCost plannedCost(EffortCostCalculationType type = ECCT_All) const;
210
210
/// Calculates the planned cost on date
211
double plannedCost(const QDate &date);
211
double plannedCost(const QDate &date, EffortCostCalculationType type = ECCT_All);
212
212
/// Calculates the planned cost upto and including date
213
double plannedCostTo(const QDate &date);
213
double plannedCostTo(const QDate &date, EffortCostCalculationType type = ECCT_All);
215
215
Appointment &operator=(const Appointment &app);
216
216
Appointment &operator+=(const Appointment &app);