23 #ifndef KARM_TIMEKARD_H
24 #define KARM_TIMEKARD_H
26 #undef Color // X11 headers
27 #undef GrayScale // X11 headers
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);
129 #endif // KARM_TIMEKARD_H
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.
static TQValueList< Week > weeksFromDateRange(const TQDate &from, const TQDate &to) Returns a list of weeks for the given date range.
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 name() const Return the name of the week.
Container and interface for the tasks.
A class representing a task.
Week() Need an empty constructor to use in a TQValueList.
|