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
61 MCNAPI void _scanFileCache();
62 // NOLINTEND
63
64public:
65 // static variables
66 // NOLINTBEGIN
67 MCNAPI static ::std::string_view const& SERVICE_NAME();
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCNAPI void* $ctor(::Editor::ServiceProviderCollection& serviceProviders);
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCNAPI ::Scripting::Result_deprecated<void> $init();
80
81 MCNAPI ::Scripting::Result_deprecated<void> $quit();
82
83 MCNAPI ::std::string_view $getServiceName() const;
84
85 MCNAPI bool $remove(::mce::UUID id, ::std::optional<uint> hash);
86
87
88 // NOLINTEND
89};
90
91} // 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