karm Library API Documentation

TimeKard Class Reference

Routines to output timecard data. More...

#include <timekard.h>

List of all members.

Public Member Functions

QString totalsAsText (TaskView *taskview, bool justThisTask=true)
QString historyAsText (TaskView *taskview, const QDate &from, const QDate &to, bool justThisTask=true)
void printTask (Task *t, QString &s, int level)
void printWeekTask (const Task *t, const QMap< QString, long > &datamap, QMap< QString, long > &daytotals, const Week &week, const int level, QString &retval)


Detailed Description

Routines to output timecard data.

Definition at line 85 of file timekard.h.


Member Function Documentation

QString TimeKard::totalsAsText TaskView taskview,
bool  justThisTask = true
 

Generates ascii text of task totals, for current task on down.

Formatted for pasting into clipboard.

Parameters:
justThisTask Only useful when user has picked a root task. We use this parameter to distinguish between when a user just wants to print the task subtree for a root task and when they want to print all tasks.

Definition at line 48 of file timekard.cpp.

References TaskView::current_item().

Referenced by TaskView::clipTotals().

QString TimeKard::historyAsText TaskView taskview,
const QDate from,
const QDate to,
bool  justThisTask = true
 

Generates ascii text of weekly task history, for current task on down.

Formatted for pasting into clipboard.

Definition at line 175 of file timekard.cpp.

References TaskView::current_item(), TaskView::getHistory(), Task::nextSibling(), and Week::weeksFromDateRange().

Referenced by TaskView::clipHistory().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for karm Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu May 3 20:21:37 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003