-
Notifications
You must be signed in to change notification settings - Fork 1
/
qDFProjReportCollection.hpp
44 lines (35 loc) · 1.23 KB
/
qDFProjReportCollection.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef qDFProjReportCollection_HPP
#define qDFProjReportCollection_HPP
#include <DF_Report_Collection.hpp>
#include <QObject>
#include <QMap>
#include <QString>
#include "qDFProjReport.hpp"
class qDFProjReportCollection: public QObject, public DFLib::ReportCollection
{
Q_OBJECT;
public:
qDFProjReportCollection();
~qDFProjReportCollection();
int addReport(qDFProjReport *theReport);
QString getReportSummary(const QString &reportName,
const std::vector<std::string>&projArgs) const;
QString getReportName(int reportIndex);
virtual void deleteReports();
QList<QString> getReportNames() { return reportMap_.keys();};
qDFProjReport * getReportPointer(const QString & rN);
private:
QMap<QString,qDFProjReport*> reportMap_;
signals:
void collectionChanged();
void collectionCleared();
void collectionChanged(int i);
public slots:
void reportChanged(qDFProjReport *);
void newReport(qDFProjReport *theReport);
friend QDataStream &operator<<(QDataStream &out,
const qDFProjReportCollection &aCollection);
friend QDataStream &operator>>(QDataStream &in,
qDFProjReportCollection &aCollection);
};
#endif