karm

#include <timekard.h>

Public Member Functions

 Week ()
 
 Week (TQDate from)
 
TQDate start () const
 
TQDate end () const
 
TQValueList< TQDate > days () const
 
TQString name () const
 

Static Public Member Functions

static TQValueList< WeekweeksFromDateRange (const TQDate &from, const TQDate &to)
 

Detailed Description

Seven consecutive days.

The timecard report prints out one table for each week of data. The first day of the week should be read from the KControlPanel. Currently, it is hardcoded to Sunday.

Definition at line 46 of file timekard.h.

Constructor & Destructor Documentation

◆ Week()

Week::Week ( )

Need an empty constructor to use in a TQValueList.

Definition at line 337 of file timekard.cpp.

Member Function Documentation

◆ name()

TQString Week::name ( ) const

Return the name of the week.

Uses whatever the user has set up for the long date format in KControlPanel, prefixed by "Week of".

Definition at line 354 of file timekard.cpp.

◆ weeksFromDateRange()

TQValueList< Week > Week::weeksFromDateRange ( const TQDate &  from,
const TQDate &  to 
)
static

Returns a list of weeks for the given date range.

The first day of the week is picked up from the settings in the KontrolPanel.

The list is inclusive; for example, if you pass in a date range of two days, one being a Sunday and the other being a Monday, you will get two weeks back in the list.

Definition at line 359 of file timekard.cpp.


The documentation for this class was generated from the following files: