OSDN Git Service

adjust integer's signedness
[tjqt4port/tj2qt4.git] / taskjuggler / CSVReport.h
1 /*
2  * CSVReport.h - TaskJuggler
3  *
4  * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of version 2 of the GNU General Public License as
8  * published by the Free Software Foundation.
9  *
10  * $Id$
11  */
12
13 #ifndef _CSVReport_h_
14 #define _CSVReport_h_
15
16 #include "CSVReportElement.h"
17 #include "ElementHolder.h"
18
19 /**
20  * @short Stores all information about an CSV report.
21  * @author Chris Schlaeger <cs@kde.org>
22  */
23 class CSVReport : public Report, public CSVPrimitives, public ElementHolder
24 {
25 public:
26     CSVReport(Project* p, const QString& f, const QString& df, int dl) :
27         Report(p, f, df, dl),
28         CSVPrimitives()
29     { }
30
31     virtual ~CSVReport() { }
32
33     virtual const char* getType() const { return "CSVReport"; }
34
35     virtual bool generate()
36     {
37         if (!open())
38             return false;
39
40         bool ok = getTable()->generate();
41
42         return close() && ok;
43     }
44 } ;
45
46 #endif