47 lines
1018 B
C++
47 lines
1018 B
C++
#ifndef REPORTGENERATOR_H
|
|
#define REPORTGENERATOR_H
|
|
#include "ReportSettingsData.h"
|
|
#include <QList>
|
|
#include <QStringList>
|
|
#include <QObject>
|
|
#include <QThread>
|
|
#include "DirParserThread.h"
|
|
#include "ZTData.h"
|
|
|
|
class CZTStats;
|
|
|
|
class CReportGenerator : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
CReportGenerator();
|
|
~CReportGenerator();
|
|
|
|
|
|
int GenerateReport(QString ReportFileName,CReportProgramSettingsData ReportSettings, CReportConfigData ReportFilters);
|
|
int ClearReportData();
|
|
int GenerateExcelReport();
|
|
int AbortReportCreation();
|
|
|
|
CZTStats *mProgramPtr;
|
|
|
|
QThread *mDirParserThread;
|
|
CDirParserThread *mDirParserWorkerThread;
|
|
QList<QList<CLogElement*>*> mReportData;
|
|
QString mReportFilename;
|
|
QStringList mStationNames;
|
|
|
|
CReportConfigData mReportFilters;
|
|
|
|
public slots:
|
|
void ThreadQuit();
|
|
void ThreadTerminated();
|
|
void DirParsingFinished(int Res);
|
|
void ThreadReportStatus(QString status);
|
|
void DirThreadAborted();
|
|
|
|
|
|
};
|
|
|
|
#endif // REPORTGENERATOR_H
|