• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

ktimetracker

Public Member Functions | Static Public Member Functions | List of all members
Week Class Reference

#include <timekard.h>

Public Member Functions

 Week ()
 
 Week (const QDate &from)
 
QList< QDate > days () const
 
QDate end () const
 
QString name () const
 
QDate start () const
 

Static Public Member Functions

static QList< Week > weeksFromDateRange (const QDate &from, const QDate &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 45 of file timekard.h.

Constructor & Destructor Documentation

Week::Week ( )

Need an empty constructor to use in a QValueList.

Definition at line 140 of file timekard.cpp.

Week::Week ( const QDate &  from)
explicit

Definition at line 142 of file timekard.cpp.

Member Function Documentation

QList<QDate> Week::days ( ) const
QDate Week::end ( ) const

Definition at line 152 of file timekard.cpp.

QString 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 157 of file timekard.cpp.

QDate Week::start ( ) const

Definition at line 147 of file timekard.cpp.

QList< Week > Week::weeksFromDateRange ( const QDate &  from,
const QDate &  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 162 of file timekard.cpp.


The documentation for this class was generated from the following files:
  • timekard.h
  • timekard.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktimetracker

Skip menu "ktimetracker"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal