You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

47 rivejä
1.1 KiB

  1. #ifndef TESTREPORT_H
  2. #define TESTREPORT_H
  3. #include "GlobalDefine.h"
  4. #include "VisualInspectionResult.h"
  5. #include "CableParametersData.h"
  6. #include "TestBenchVersion.h"
  7. #include "AutomatedTestReport.h"
  8. #include <QObject>
  9. class CTestBenchSettings;
  10. class CTestReport : public QObject
  11. {
  12. Q_OBJECT
  13. public:
  14. CTestReport();
  15. CVisualInspectionResult* GetInspectionResult();
  16. CCableParametersData *GetReportCableParameters();
  17. CAutomatedTestReport *GetAutomatedTestReport();
  18. int CreateNewTestReport();
  19. int AddLogEntry(QString NewEntry,bool IncludeTime = true,bool Propagate = true);
  20. bool IsAutoTestReportReady();
  21. bool GetGlobalAutoTestResult();
  22. int SaveReportToFile(CTestBenchSettings *BenchSettings);
  23. QString GetLastReportFileName();
  24. private:
  25. CVisualInspectionResult mVisualInspectionResultReport;
  26. CCableParametersData mCableParameters;
  27. CAutomatedTestReport mAutomatedTestReport;
  28. QString mSoftwareVersion;
  29. QString mTestLog;
  30. QString mReportFileDirectory;
  31. QString mLastReportName;
  32. signals:
  33. void NewTestLogEntry(QString NewEntry);
  34. };
  35. #endif // TESTREPORT_H