1 /***************************************************************************
2                           tocitemreport.h  -  description
3                              -------------------
4     begin                : Sat Jul 03 2010
5     copyright            : (C) Bernd Gonsior
6     email                : bernd.gonsior@googlemail.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 #ifndef TOCITEMREPORT_H
18 #define TOCITEMREPORT_H
19 
20 // ----------------------------------------------------------------------------
21 // QT Includes
22 
23 
24 // ----------------------------------------------------------------------------
25 // KDE Includes
26 
27 
28 // ----------------------------------------------------------------------------
29 // Project Includes
30 
31 #include "tocitem.h"
32 #include "mymoneyreport.h"
33 
34 /**
35  * Class for report items in reports table of contents (TOC).
36  */
37 class TocItemReport : public TocItem
38 {
39 private:
40 
41   /** Reference to the MyMoneyReport object. */
42   MyMoneyReport m_report;
43 
44 public:
45 
46   /** Constructor.
47    *
48    * @param parent pointer to the parent QWidget
49    * @param report reference to the report associated with this TOC-entry
50    */
51   TocItemReport(QTreeWidgetItem* parent, MyMoneyReport& report);
52 
53   /** Returns the report associated with this TOC-entry. */
54   MyMoneyReport& getReport();
55 };
56 
57 #endif
58