1 | /*************************************************************************** |
2 | report.h - Report document class |
3 | ------------------- |
4 | begin : fri aug 13 15:29:46 CEST 2004 |
5 | |
6 | copyright : (C) 2004 Emiliano Gulmini |
7 | email : emi_barbarossa@yahoo.it |
8 | ***************************************************************************/ |
9 | |
10 | /*************************************************************************** |
11 | * * |
12 | * This program is free software; you can redistribute it and/or modify * |
13 | * it under the terms of the GNU General Public License as published by * |
14 | * the Free Software Foundation; either version 2 of the License, or * |
15 | * (at your option) any later version. * |
16 | * * |
17 | ***************************************************************************/ |
18 | |
19 | #ifndef REPORT_H |
20 | #define REPORT_H |
21 | |
22 | // QT |
23 | class QString; |
24 | |
25 | // KDE |
26 | #include <klocale.h> |
27 | #include "configurationclasses.h" |
28 | class K3ListView; |
29 | |
30 | /** Report class is used to create a pair of files (a xml and a css file) which are |
31 | * a short statistical report of the operations. |
32 | */ |
33 | |
34 | class Report |
35 | { |
36 | private: |
37 | K3ListView* m_stringsView, |
38 | * m_resultsView; |
39 | QString m_docPath; |
40 | bool m_isSearchFlag; |
41 | RCOptions* m_option; |
42 | |
43 | public: |
44 | Report(RCOptions* info, K3ListView* rv, K3ListView* sv) { m_option = info; |
45 | m_resultsView = rv; |
46 | m_stringsView = sv; |
47 | m_isSearchFlag = m_option->m_searchingOnlyMode; |
48 | } |
49 | ~Report() { m_option = 0; } |
50 | private: |
51 | void createReportFile(); |
52 | void createStyleSheet(); |
53 | |
54 | public: |
55 | void createDocument(const QString& docPath); |
56 | }; |
57 | |
58 | #endif // REPORT_H |
59 | |