~ubuntu-branches/ubuntu/raring/koffice/raring

« back to all changes in this revision

Viewing changes to kplato/libs/kernel/kptappointment.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-12-06 15:30:09 UTC
  • mfrom: (0.13.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101206153009-yf0dqbp9l7fzwxi8
Tags: 1:2.2.91-0ubuntu1
New upstream RC release

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
191
191
     */
192
 
    EffortCostMap plannedPrDay(const QDate& start, const QDate& end) const;
 
192
    EffortCostMap plannedPrDay(const QDate& start, const QDate& end, EffortCostCalculationType type = ECCT_All) const;
193
193
    
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;
200
200
    
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;
207
207
 
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);
214
214
 
215
215
    Appointment &operator=(const Appointment &app);
216
216
    Appointment &operator+=(const Appointment &app);