LeviLamina
Loading...
Searching...
No Matches
MinecraftServiceKeyManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/Async.h"
7#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
8
9// auto generated forward declare list
10// clang-format off
12class TaskGroup;
15namespace Bedrock::Http { struct Url; }
16// clang-format on
17
18class MinecraftServiceKeyManager : public ::Bedrock::EnableNonOwnerReferences {
19public:
20 // MinecraftServiceKeyManager inner types declare
21 // clang-format off
23 // clang-format on
24
25 // MinecraftServiceKeyManager inner types define
26 struct BlockingInitRecursiveContext {
27 public:
28 // member variables
29 // NOLINTBEGIN
31 // NOLINTEND
32
33 public:
34 // prevent constructor by default
35 BlockingInitRecursiveContext& operator=(BlockingInitRecursiveContext const&);
36 BlockingInitRecursiveContext(BlockingInitRecursiveContext const&);
37 BlockingInitRecursiveContext();
38 };
39
40public:
41 // member variables
42 // NOLINTBEGIN
56 // NOLINTEND
57
58public:
59 // prevent constructor by default
60 MinecraftServiceKeyManager& operator=(MinecraftServiceKeyManager const&);
61 MinecraftServiceKeyManager(MinecraftServiceKeyManager const&);
62 MinecraftServiceKeyManager();
63
64public:
65 // virtual functions
66 // NOLINTBEGIN
67 virtual ~MinecraftServiceKeyManager() /*override*/;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
74 ::std::unique_ptr<::IMinecraftServiceKeySource> keySource,
75 ::std::function<int64()> timeFn,
77 ::std::function<::Bedrock::Threading::Async<
78 ::std::optional<::MinecraftServiceKeysMetadata>>(::TaskGroup&, ::std::string const&, bool)> metadataFn,
79 ::std::function<::Bedrock::Threading::Async<::std::optional<
80 ::std::unordered_map<::std::string, ::std::string>>>(::TaskGroup&, ::std::string const&, bool)> keysFn
81 );
82
83 MCNAPI_S void _blockingInitRecursive(
84 ::MinecraftServiceKeyInfo keyFetchResult,
85 ::std::shared_ptr<::MinecraftServiceKeyManager::BlockingInitRecursiveContext> context
86 );
87
88 MCNAPI ::Bedrock::Threading::Async<::MinecraftServiceKeyInfo> _fullFetch(bool highPriority);
89
90 MCNAPI bool _saveMetadata(::std::optional<::MinecraftServiceKeysMetadata> const& metadata);
91
92 MCNAPI_S ::std::future<bool> blockingInit();
93
94 MCNAPI ::std::string getKeyFromKeyId(::std::string const& kid) const;
95
96 MCNAPI ::MinecraftServiceKeyInfo getKeyInfo() const;
97 // NOLINTEND
98
99public:
100 // constructor thunks
101 // NOLINTBEGIN
102 MCNAPI void* $ctor(
103 ::std::unique_ptr<::IMinecraftServiceKeySource> keySource,
104 ::std::function<int64()> timeFn,
106 ::std::function<::Bedrock::Threading::Async<
107 ::std::optional<::MinecraftServiceKeysMetadata>>(::TaskGroup&, ::std::string const&, bool)> metadataFn,
108 ::std::function<::Bedrock::Threading::Async<::std::optional<
109 ::std::unordered_map<::std::string, ::std::string>>>(::TaskGroup&, ::std::string const&, bool)> keysFn
110 );
111 // NOLINTEND
112
113public:
114 // destructor thunk
115 // NOLINTBEGIN
116 MCNAPI void $dtor();
117 // NOLINTEND
118
119public:
120 // vftables
121 // NOLINTBEGIN
122 MCNAPI static void** $vftable();
123 // NOLINTEND
124};
Definition EnableNonOwnerReferences.h:7
Definition Async.h:8
Definition IMinecraftServiceKeySource.h:14
MCAPI void * $ctor(::std::unique_ptr<::IMinecraftServiceKeySource > keySource, ::std::function< int64()> timeFn, ::std::function<::Bedrock::Threading::Async<::Bedrock::Http::Url >()> urlFn, ::std::function<::Bedrock::Threading::Async< ::std::optional<::MinecraftServiceKeysMetadata > >(::TaskGroup &, ::std::string const &, bool)> metadataFn, ::std::function<::Bedrock::Threading::Async<::std::optional< ::std::unordered_map<::std::string, ::std::string > > >(::TaskGroup &, ::std::string const &, bool)> keysFn)
MCAPI bool _saveMetadata(::std::optional<::MinecraftServiceKeysMetadata > const &metadata)
MCAPI MinecraftServiceKeyManager(::std::unique_ptr<::IMinecraftServiceKeySource > keySource, ::std::function< int64()> timeFn, ::std::function<::Bedrock::Threading::Async<::Bedrock::Http::Url >()> urlFn, ::std::function<::Bedrock::Threading::Async< ::std::optional<::MinecraftServiceKeysMetadata > >(::TaskGroup &, ::std::string const &, bool)> metadataFn, ::std::function<::Bedrock::Threading::Async<::std::optional< ::std::unordered_map<::std::string, ::std::string > > >(::TaskGroup &, ::std::string const &, bool)> keysFn)
MCAPI::MinecraftServiceKeyInfo getKeyInfo() const
static MCAPI void ** $vftable()
MCAPI ::Bedrock::Threading::Async<::MinecraftServiceKeyInfo > _fullFetch(bool highPriority)
MCAPI::std::string getKeyFromKeyId(::std::string const &kid) const
Definition TaskGroup.h:53
Definition Url.h:7
Definition MinecraftServiceKeyInfo.h:5
Definition MinecraftServiceKeyManager.h:26
Definition MinecraftServiceKeysMetadata.h:5
Definition context.h:5
Definition Alias.h:14