Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
PackManagerContentSourceImpl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/models/ContentSourceType.h"
7#include "mc/client/gui/screens/models/PackManagerContentSource.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9
10// auto generated forward declare list
11// clang-format off
13class IEntitlementManager;
16struct ContentItem;
17struct PackContentItem;
18struct PackInstanceId;
20// clang-format on
21
23public:
24 // PackManagerContentSourceImpl inner types define
25 using ConstPackContentItemPtr = ::std::shared_ptr<::PackContentItem const>;
26
27 using PackContentItemPtr = ::std::shared_ptr<::PackContentItem>;
28
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentSourceRepository>> mContentSourceRepository;
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 PackManagerContentSourceImpl();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ~PackManagerContentSourceImpl() /*override*/;
43
44 virtual void save() /*override*/;
45
46 virtual void saveAllPacks() /*override*/;
47
48 virtual void deleteContentFiles(::std::vector<::std::shared_ptr<::ContentItem const>> const& items) /*override*/;
49
50 virtual void postDeleteContent(::std::vector<::std::shared_ptr<::ContentItem const>> const& items) /*override*/;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
57 ::ContentSourceType sourceType,
59 ::Bedrock::NotNullNonOwnerPtr<::IContentSourceRepository> contentSourceRepository
60 );
61
62 MCNAPI ::std::vector<::std::shared_ptr<::PackContentItem>> _getAllSelectedItems() const;
63
64 MCNAPI void _save(bool const shouldSaveAll);
65
67 ::std::vector<::PackInstanceId>& modelManagerIdentities,
68 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager
69 );
70
71 MCNAPI void
72 repopulateReports(::Bedrock::NotNullNonOwnerPtr<::IUIDefRepository> uiDefRepo, ::ResourcePackManager& packManager);
73
74 MCNAPI void resetCache();
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCNAPI void* $ctor(
81 ::ContentSourceType sourceType,
83 ::Bedrock::NotNullNonOwnerPtr<::IContentSourceRepository> contentSourceRepository
84 );
85 // NOLINTEND
86
87public:
88 // destructor thunk
89 // NOLINTBEGIN
90 MCNAPI void $dtor();
91 // NOLINTEND
92
93public:
94 // virtual function thunks
95 // NOLINTBEGIN
96 MCNAPI void $save();
97
98 MCNAPI void $saveAllPacks();
99
100 MCNAPI void $deleteContentFiles(::std::vector<::std::shared_ptr<::ContentItem const>> const& items);
101
102 MCNAPI void $postDeleteContent(::std::vector<::std::shared_ptr<::ContentItem const>> const& items);
103 // NOLINTEND
104
105public:
106 // vftables
107 // NOLINTBEGIN
108 MCNAPI static void** $vftable();
109 // NOLINTEND
110};
Definition IContentSourceRepository.h:14
Definition IUIDefRepository.h:5
Definition ResourcePackManager.h:29
Definition ContentItem.h:5
Definition PackContentItem.h:5
Definition PackInstanceId.h:8
Definition PackManagerContentSourceArgs.h:5
Definition PackManagerContentSourceImpl.h:5
MCAPI void repopulateReports(::Bedrock::NotNullNonOwnerPtr<::IUIDefRepository > uiDefRepo, ::ResourcePackManager &packManager)
MCAPI void $deleteContentFiles(::std::vector<::std::shared_ptr<::ContentItem const > > const &items)
MCAPI void * $ctor(::ContentSourceType sourceType, ::PackManagerContentSourceArgs &&args, ::Bedrock::NotNullNonOwnerPtr<::IContentSourceRepository > contentSourceRepository)
MCAPI PackManagerContentSourceImpl(::ContentSourceType sourceType, ::PackManagerContentSourceArgs &&args, ::Bedrock::NotNullNonOwnerPtr<::IContentSourceRepository > contentSourceRepository)
MCAPI ::std::vector<::std::shared_ptr<::PackContentItem > > _getAllSelectedItems() const
MCAPI void _save(bool const shouldSaveAll)
static MCAPI void ** $vftable()
MCAPI void $postDeleteContent(::std::vector<::std::shared_ptr<::ContentItem const > > const &items)
MCAPI void getSortedSelectedContent(::std::vector<::PackInstanceId > &modelManagerIdentities, ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager > entitlementManager)
Definition PackManagerContentSource.h:5