karm

ReportCriteria Class Reference

#include <reportcriteria.h>

Public Types

enum  REPORTTYPE { CSVTotalsExport = 0 , CSVHistoryExport = 1 }
 

Public Attributes

REPORTTYPE reportType
 
KURL url
 
TQDate from
 
TQDate to
 
bool allTasks
 
bool decimalMinutes
 
TQString delimiter
 
TQString 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 38 of file reportcriteria.h.

Member Enumeration Documentation

◆ REPORTTYPE

The different report types.

Definition at line 45 of file reportcriteria.h.

Member Data Documentation

◆ allTasks

bool ReportCriteria::allTasks

True if the report should contain all tasks in Karm.

Defaults to true.

Definition at line 72 of file reportcriteria.h.

◆ decimalMinutes

bool ReportCriteria::decimalMinutes

True if the durations should be output in decimal hours.

Otherwise, output durations as HH24:MI

Definition at line 78 of file reportcriteria.h.

◆ delimiter

TQString ReportCriteria::delimiter

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

Definition at line 83 of file reportcriteria.h.

◆ from

TQDate ReportCriteria::from

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

Definition at line 60 of file reportcriteria.h.

◆ quote

TQString ReportCriteria::quote

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

Definition at line 88 of file reportcriteria.h.

◆ reportType

REPORTTYPE ReportCriteria::reportType

The type of report we are running.

Definition at line 50 of file reportcriteria.h.

◆ to

TQDate ReportCriteria::to

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

Definition at line 65 of file reportcriteria.h.

◆ url

KURL ReportCriteria::url

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

Definition at line 55 of file reportcriteria.h.


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