karm

reportcriteria.h
1 /*
2  * Copyright (C) 2004 Mark Bucciarelli <mark@hubcapconsulting.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the
16  * Free Software Foundation, Inc.
17  * 51 Franklin Street, Fifth Floor
18  * Boston, MA 02110-1301 USA.
19  *
20  */
21 #ifndef REPORTCRITERIA_H
22 #define REPORTCRITERIA_H
23 
24 #include <tqdatetime.h>
25 #include <kurl.h>
26 class TQString;
27 
39 {
40  public:
41 
45  enum REPORTTYPE { CSVTotalsExport = 0, CSVHistoryExport = 1 };
46 
51 
55  KURL url;
56 
60  TQDate from;
61 
65  TQDate to;
66 
72  bool allTasks;
73 
79 
83  TQString delimiter;
84 
88  TQString quote;
89 };
90 
91 #endif
Stores entries from export dialog.
bool decimalMinutes
True if the durations should be output in decimal hours.
REPORTTYPE
The different report types.
TQString quote
The quote to use for text fields when outputting comma-seperated reports.
TQDate to
For history reports, the upper bound of the date range to report on.
bool allTasks
True if the report should contain all tasks in Karm.
KURL url
For reports that write to a file, the filename to write to.
TQString delimiter
The delimiter to use when outputting comma-seperated value reports.
REPORTTYPE reportType
The type of report we are running.
TQDate from
For history reports, the lower bound of the date range to report on.