Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ServerThumbnailCacheService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/runtime/scripting/Result_deprecated.h"
7#include "mc/editor/serviceproviders/ServerThumbnailCacheServiceProvider.h"
8#include "mc/editor/services/IEditorService.h"
9#include "mc/editor/services/PayloadStoreHelper.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Editor { class ServiceProviderCollection; }
14namespace Editor::Network { class ThumbnailCacheFetchRequestPayload; }
15namespace Editor::Network { class ThumbnailCacheStorePayload; }
16namespace mce { class UUID; }
17// clang-format on
18
19namespace Editor::Services {
20
21class ServerThumbnailCacheService : public ::Editor::Services::IEditorService,
24public:
25 // member variables
26 // NOLINTBEGIN
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 ServerThumbnailCacheService& operator=(ServerThumbnailCacheService const&);
35 ServerThumbnailCacheService(ServerThumbnailCacheService const&);
36 ServerThumbnailCacheService();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual ~ServerThumbnailCacheService() /*override*/ = default;
42
43 virtual ::Scripting::Result_deprecated<void> init() /*override*/;
44
45 virtual ::Scripting::Result_deprecated<void> quit() /*override*/;
46
47 virtual ::std::string_view getServiceName() const /*override*/;
48
49 virtual bool remove(::mce::UUID id, ::std::optional<uint> hash) /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
56
58
60 // NOLINTEND
61
62public:
63 // static variables
64 // NOLINTBEGIN
65 MCNAPI static ::std::string_view const& SERVICE_NAME();
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCNAPI void* $ctor(::Editor::ServiceProviderCollection& serviceProviders);
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCNAPI ::Scripting::Result_deprecated<void> $init();
78
79 MCNAPI ::Scripting::Result_deprecated<void> $quit();
80
81 MCNAPI ::std::string_view $getServiceName() const;
82
83 MCNAPI bool $remove(::mce::UUID id, ::std::optional<uint> hash);
84
85
86 // NOLINTEND
87};
88
89} // namespace Editor::Services
Definition ThumbnailCacheFetchRequestPayload.h:16
Definition ThumbnailCacheStorePayload.h:18
Definition ServiceProviderCollection.h:7
Definition IEditorService.h:11
Definition PayloadStoreHelper.h:7
Definition ServerThumbnailCacheServiceProvider.h:12
MCAPI::std::string_view $getServiceName() const
MCAPI ::Scripting::Result_deprecated< void > $init()
static MCAPI ::std::string_view const & SERVICE_NAME()
MCAPI ::Scripting::Result_deprecated< void > $quit()
MCAPI ServerThumbnailCacheService(::Editor::ServiceProviderCollection &serviceProviders)
MCAPI void _handleFetchRequest(::Editor::Network::ThumbnailCacheFetchRequestPayload const &evt) const
MCAPI bool $remove(::mce::UUID id, ::std::optional< uint > hash)
MCAPI void _handleStoreRequest(::Editor::Network::ThumbnailCacheStorePayload const &evt)
MCAPI void * $ctor(::Editor::ServiceProviderCollection &serviceProviders)
Definition UUID.h:8
Definition Alias.h:14