23 #ifndef KARM_TIMEKARD_H
24 #define KARM_TIMEKARD_H
31 #include "karmstorage.h"
54 TQValueList<TQDate> days() const;
75 TQString name() const;
90 enum WhichTime { TotalTime, SessionTime };
112 const TQDate& to, bool justThisTask, bool perWeek, bool totalsOnly);
115 void printTask( Task *t, TQString &s, int level, WhichTime which);
117 void printTaskHistory( const Task *t, const TQMap<TQString, long>& datamap,
118 TQMap<TQString, long>& daytotals,
119 const TQDate& from, const TQDate& to,
120 const int level, TQString& retval, bool totalsOnly);
122 TQString sectionHistoryAsText( TaskView* taskview,
123 const TQDate& sectionFrom, const TQDate& sectionTo,
124 const TQDate& from, const TQDate& to,
125 const TQString& name,
126 bool justThisTask, bool totalsOnly);
Container and interface for the tasks.
A class representing a task.
Routines to output timecard data.
TQString totalsAsText(TaskView *taskview, bool justThisTask, WhichTime which) Generates ascii text of task totals, for current task on down.
TQString historyAsText(TaskView *taskview, const TQDate &from, const TQDate &to, bool justThisTask, bool perWeek, bool totalsOnly) Generates ascii text of weekly task history, for current task on down.
TQString name() const Return the name of the week.
Week() Need an empty constructor to use in a TQValueList.
static TQValueList< Week > weeksFromDateRange(const TQDate &from, const TQDate &to) Returns a list of weeks for the given date range.
|