IWwiseBrowserDataSource.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*******************************************************************************
  2. The content of this file includes portions of the proprietary AUDIOKINETIC Wwise
  3. Technology released in source code form as part of the game integration package.
  4. The content of this file may not be used without valid licenses to the
  5. AUDIOKINETIC Wwise Technology.
  6. Note that the use of the game engine is subject to the Unreal(R) Engine End User
  7. License Agreement at https://www.unrealengine.com/en-US/eula/unreal
  8. License Usage
  9. Licensees holding valid licenses to the AUDIOKINETIC Wwise Technology may use
  10. this file in accordance with the end user license agreement provided with the
  11. software or, alternatively, in accordance with the terms contained
  12. in a written agreement between you and Audiokinetic Inc.
  13. Copyright (c) 2023 Audiokinetic Inc.
  14. *******************************************************************************/
  15. #pragma once
  16. #include "WwiseItemType.h"
  17. #include "Misc/TextFilter.h"
  18. #include "WwiseBrowser/WwiseBrowserForwards.h"
  19. typedef TTextFilter< const FString& > StringFilter;
  20. class IWwiseBrowserDataSource
  21. {
  22. public:
  23. virtual ~IWwiseBrowserDataSource() = default;
  24. virtual bool Init() = 0;
  25. virtual void ConstructTree(bool bShouldRefresh) = 0;
  26. // Constructs the top-level root for the given type, along with its direct children
  27. virtual FWwiseTreeItemPtr ConstructTreeRoot(EWwiseItemType::Type Type) = 0;
  28. // Loads children for the item matching first InParentId, then InParentPath
  29. virtual int32 LoadChildren(const FGuid& InParentId, const FString& InParentPath, TArray<FWwiseTreeItemPtr>& OutChildren) = 0;
  30. // Loads children for the item
  31. virtual int32 LoadChildren(FWwiseTreeItemPtr ParentTreeItem) = 0;
  32. virtual int32 GetChildItemCount(const FWwiseTreeItemPtr& InParentItem) = 0;
  33. virtual FWwiseTreeItemPtr GetRootItem(EWwiseItemType::Type RootType) = 0;
  34. virtual FWwiseTreeItemPtr LoadFilteredRootItem(EWwiseItemType::Type Type, TSharedPtr<StringFilter> CurrentFilterText) = 0;
  35. };