OSDN Git Service

adjust integer's signedness
[tjqt4port/tj2qt4.git] / taskjuggler / HTMLSingleReport.h
1 /*
2  * HTMLSingleReport.h - TaskJuggler
3  *
4  * Copyright (c) 2007 by Andreas Scherer <andreas_hacker@freenet.de>
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 _HTMLSingleReport_h_
14 #define _HTMLSingleReport_h_
15
16 #include "HTMLReport.h"
17 #include "HTMLReportElement.h"
18 #include "ElementHolder.h"
19
20 /**
21  * @short Stores the common "m_element" data member.
22  * @author Andreas Scherer <andreas_hacker@freenet.de>
23  */
24 class HTMLSingleReport : public HTMLReport, public ElementHolder
25 {
26 public:
27     HTMLSingleReport(Project* p, const QString& f, const QString& df, int dl) :
28         HTMLReport(p, f, df, dl)
29     { }
30
31     virtual ~HTMLSingleReport() { }
32
33     virtual bool generate()
34     {
35         if (!open())
36             return false;
37
38         generateHeader();
39         bool ok = getTable()->generate();
40         generateFooter();
41
42         return close() && ok;
43     }
44 } ;
45
46 #endif