LeviLamina
Loading...
Searching...
No Matches
RemoteStorageProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/StorageResult.h"
7#include "mc/util/CallbackTokenContext.h"
8
9// auto generated forward declare list
10// clang-format off
11class CallbackToken;
12namespace Core { class RemoteStorageManifest; }
13namespace Core { class Result; }
14// clang-format on
15
16namespace Core {
17
19public:
20 // member variables
21 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 0
35 virtual ~RemoteStorageProvider() = default;
36
37 // vIndex: 1
38 virtual void shutdown();
39
40 // vIndex: 2
41 virtual ::std::string const& getWorldsPrefix() const = 0;
42
43 // vIndex: 3
44 virtual ::std::string encodeWorldName(::std::string const&) = 0;
45
46 // vIndex: 4
47 virtual ::std::string encodeFileName(::std::string const&) = 0;
48
49 // vIndex: 5
50 virtual float getSyncProgress() = 0;
51
52 // vIndex: 6
53 virtual void tick() = 0;
54
55 // vIndex: 7
56 virtual void onAppSuspend() = 0;
57
58 // vIndex: 8
59 virtual void onAppResume() = 0;
60
61 // vIndex: 9
62 virtual void onSignOut() = 0;
63
64 // vIndex: 10
65 virtual ::CallbackToken
66 onSignIn(::std::shared_ptr<::CallbackTokenContext<::std::function<void(::Core::Result)>>>) = 0;
67
68 // vIndex: 11
69 virtual ::CallbackToken
70 deleteContainer(::std::shared_ptr<::CallbackTokenContext<::std::function<void(::Core::Result)>>>, ::std::string const&) = 0;
71
72 // vIndex: 12
73 virtual ::CallbackToken commit(
74 ::std::shared_ptr<::CallbackTokenContext<::std::function<void(::Core::Result, ::Core::StorageResult)>>>,
75 ::std::string const&,
76 ::std::set<::std::string> const&,
77 ::std::set<::std::string>&,
78 ::std::set<::std::string>&,
79 bool
80 ) = 0;
81
82 // vIndex: 13
83 virtual ::CallbackToken
84 sync(::std::string const&, ::std::string const&, ::std::shared_ptr<::CallbackTokenContext<::std::function<void(::Core::Result)>>>, ::std::function<void(::std::string const&, bool)>) = 0;
85
86 // vIndex: 14
87 virtual ::CallbackToken
88 syncMeta(::std::string const&, ::std::string const&, ::std::shared_ptr<::CallbackTokenContext<::std::function<void(::Core::Result)>>>) = 0;
89
90 // vIndex: 15
91 virtual ::CallbackToken
92 syncContainerManifest(::std::string const&, ::std::string const&, ::std::shared_ptr<::CallbackTokenContext<::std::function<void(::Core::Result)>>>) = 0;
93
94 // vIndex: 16
95 virtual ::Core::RemoteStorageManifest getManifest(::std::string const&) = 0;
96 // NOLINTEND
97
98public:
99 // destructor thunk
100 // NOLINTBEGIN
101
102 // NOLINTEND
103
104public:
105 // virtual function thunks
106 // NOLINTBEGIN
107
108 // NOLINTEND
109};
110
111} // namespace Core
Definition CallbackTokenContext.h:6
Definition CallbackToken.h:5
Definition RemoteStorageProvider.h:18
Definition Result.h:17
Definition Result.h:6
Definition Alias.h:14