LeviLamina
Loading...
Searching...
No Matches
IContentKeyProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7
8// auto generated forward declare list
9// clang-format off
10class ContentIdentity;
11// clang-format on
12
14public:
15 // virtual functions
16 // NOLINTBEGIN
17 virtual ~IContentKeyProvider() /*override*/ = default;
18
19 virtual ::std::string getContentKey(::ContentIdentity const& contentIdentity) const = 0;
20
21#ifdef LL_PLAT_S
22 virtual ::std::string getAlternateContentKey(::ContentIdentity const&) const;
23#else // LL_PLAT_C
24 virtual ::std::string getAlternateContentKey(::ContentIdentity const& contentIdentity) const;
25#endif
26
27 virtual bool requireEncryptedReads() const;
28
29 virtual void setTempContentKeys(::std::unordered_map<::ContentIdentity, ::std::string> const& keys) = 0;
30
31 virtual void clearTempContentKeys() = 0;
32 // NOLINTEND
33
34public:
35 // virtual function thunks
36 // NOLINTBEGIN
37 MCNAPI ::std::string $getAlternateContentKey(::ContentIdentity const&) const;
38
39 MCNAPI bool $requireEncryptedReads() const;
40
41
42 // NOLINTEND
43};
Definition EnableNonOwnerReferences.h:7
Definition ContentIdentity.h:8
Definition IContentKeyProvider.h:13
MCAPI::std::string $getAlternateContentKey(::ContentIdentity const &) const
MCAPI bool $requireEncryptedReads() const