ExportJobProcessingHandler.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. /*
  3. * Copyright (c) Contributors to the Open 3D Engine Project.
  4. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. *
  6. * SPDX-License-Identifier: Apache-2.0 OR MIT
  7. *
  8. */
  9. #if !defined(Q_MOC_RUN)
  10. #include <SceneAPI/SceneUI/Handlers/ProcessingHandlers/ProcessingHandler.h>
  11. #include <AzCore/std/containers/vector.h>
  12. #include <AzCore/std/containers/list.h>
  13. #include <AzCore/std/string/string.h>
  14. #include <AzCore/std/smart_ptr/unique_ptr.h>
  15. #include <SceneAPI/SceneUI/SceneUIConfiguration.h>
  16. #include <SceneAPI/SceneUI/CommonWidgets/JobWatcher.h>
  17. #endif
  18. namespace AZ
  19. {
  20. namespace SceneAPI
  21. {
  22. namespace SceneUI
  23. {
  24. class SCENE_UI_API ExportJobProcessingHandler : public ProcessingHandler
  25. {
  26. Q_OBJECT
  27. public:
  28. ExportJobProcessingHandler(Uuid traceTag, const AZStd::string& sourceAssetPath, QObject* parent = nullptr);
  29. ~ExportJobProcessingHandler() override = default;
  30. void BeginProcessing() override;
  31. private slots:
  32. void OnJobQueryFailed(const char* message);
  33. void OnJobProcessingComplete(const AZStd::string& platform, AZ::u64 jobId, bool success, const AZStd::string& fullLogText);
  34. void OnAllJobsComplete();
  35. private:
  36. AZ_PUSH_DISABLE_DLL_EXPORT_MEMBER_WARNING
  37. AZStd::string m_sourceAssetPath;
  38. AZStd::unique_ptr<JobWatcher> m_jobWatcher;
  39. AZ_POP_DISABLE_DLL_EXPORT_MEMBER_WARNING
  40. };
  41. } // namespace SceneUI
  42. } // namespace SceneAPI
  43. } // namespace AZ