karm Library API Documentation

ReportCriteria Class Reference

Stores entries from export dialog. More...

#include <reportcriteria.h>

Collaboration diagram for ReportCriteria:

Collaboration graph
[legend]
List of all members.

Public Types

enum  REPORTTYPE { CSVTotalsExport = 0, CSVHistoryExport = 1 }

Public Attributes

REPORTTYPE reportType
QString url
QDate from
QDate to
bool allTasks
bool decimalMinutes
QString delimiter
QString quote

Detailed Description

Stores entries from export dialog.

Keeps details (like CSV export dialog control names) out of the TaskView class, which contains the slot triggered by the export action.

The dialog and the report logic can change all they want and the TaskView logic can stay the same.

Definition at line 37 of file reportcriteria.h.


Member Enumeration Documentation

enum ReportCriteria::REPORTTYPE
 

The different report types.

Definition at line 44 of file reportcriteria.h.


Member Data Documentation

REPORTTYPE ReportCriteria::reportType
 

The type of report we are running.

Definition at line 49 of file reportcriteria.h.

Referenced by KarmStorage::report().

QString ReportCriteria::url
 

For reports that write to a file, the filename to write to.

Definition at line 54 of file reportcriteria.h.

QDate ReportCriteria::from
 

For history reports, the lower bound of the date range to report on.

Definition at line 59 of file reportcriteria.h.

Referenced by KarmStorage::report().

QDate ReportCriteria::to
 

For history reports, the upper bound of the date range to report on.

Definition at line 64 of file reportcriteria.h.

Referenced by KarmStorage::report().

bool ReportCriteria::allTasks
 

True if the report should contain all tasks in Karm.

Defaults to true.

Definition at line 71 of file reportcriteria.h.

bool ReportCriteria::decimalMinutes
 

True if the durations should be output in decimal hours.

Otherwise, output durations as HH24:MI

Definition at line 77 of file reportcriteria.h.

QString ReportCriteria::delimiter
 

The delimiter to use when outputting comma-seperated value reports.

Definition at line 82 of file reportcriteria.h.

QString ReportCriteria::quote
 

The quote to use for text fields when outputting comma-seperated reports.

Definition at line 87 of file reportcriteria.h.


The documentation for this class was generated from the following file:
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 Aug 23 18:20:32 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003