CacheServerData.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #if !defined(Q_MOC_RUN)
  10. #include <native/utilities/AssetUtilEBusHelper.h>
  11. #include <native/utilities/PlatformConfiguration.h>
  12. #include <AzCore/IO/Path/Path.h>
  13. #endif
  14. namespace AssetProcessor
  15. {
  16. struct CacheServerData
  17. {
  18. enum class StatusLevel
  19. {
  20. None, // uninitialized or no state
  21. Notice, // a notification to inform the user about state changes
  22. Error, // system is configured wrong
  23. Active // the system is active as a Client or Server
  24. };
  25. bool m_dirty = false;
  26. AssetServerMode m_cachingMode = AssetServerMode::Inactive;
  27. AZStd::string m_serverAddress = "";
  28. RecognizerContainer m_patternContainer;
  29. StatusLevel m_statusLevel = StatusLevel::None;
  30. AZStd::string m_statusMessage;
  31. bool m_updateStatus = false;
  32. void Reset();
  33. bool Save(const AZ::IO::Path& projectPath);
  34. };
  35. }