|
- #ifndef TESTREPORT_H
- #define TESTREPORT_H
-
- #include "GlobalDefine.h"
- #include "VisualInspectionResult.h"
- #include "CableParametersData.h"
- #include "TestBenchVersion.h"
- #include "AutomatedTestReport.h"
- #include <QObject>
-
- class CTestReport : public QObject
- {
- Q_OBJECT
- public:
- CTestReport();
-
- CVisualInspectionResult* GetInspectionResult();
- CCableParametersData *GetReportCableParameters();
- CAutomatedTestReport *GetAutomatedTestReport();
-
- int CreateNewTestReport();
- int AddLogEntry(QString NewEntry,bool IncludeTime = true,bool Propagate = true);
- bool IsAutoTestReportReady();
- bool GetGlobalAutoTestResult();
-
- int SaveReportToFile();
-
- QString GetLastReportFileName();
-
- private:
- CVisualInspectionResult mVisualInspectionResultReport;
- CCableParametersData mCableParameters;
- CAutomatedTestReport mAutomatedTestReport;
- QString mSoftwareVersion;
- QString mTestLog;
- QString mReportFileDirectory;
- QString mLastReportName;
-
- signals:
- void NewTestLogEntry(QString NewEntry);
- };
-
- #endif // TESTREPORT_H
|