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 deleteContainer(
70 ::std::shared_ptr<::CallbackTokenContext<::std::function<void(::Core::Result)>>>,
71 ::std::string const&
72 ) = 0;
73
74 // vIndex: 12
75 virtual ::CallbackToken commit(
76 ::std::shared_ptr<::CallbackTokenContext<::std::function<void(::Core::Result, ::Core::StorageResult)>>>,
77 ::std::string const&,
78 ::std::set<::std::string> const&,
79 ::std::set<::std::string>&,
80 ::std::set<::std::string>&,
81 bool
82 ) = 0;
83
84 // vIndex: 13
85 virtual ::CallbackToken sync(
86 ::std::string const&,
87 ::std::string const&,
88 ::std::shared_ptr<::CallbackTokenContext<::std::function<void(::Core::Result)>>>,
89 ::std::function<void(::std::string const&, bool)>
90 ) = 0;
91
92 // vIndex: 14
93 virtual ::CallbackToken syncMeta(
94 ::std::string const&,
95 ::std::string const&,
96 ::std::shared_ptr<::CallbackTokenContext<::std::function<void(::Core::Result)>>>
97 ) = 0;
98
99 // vIndex: 15
100 virtual ::CallbackToken syncContainerManifest(
101 ::std::string const&,
102 ::std::string const&,
103 ::std::shared_ptr<::CallbackTokenContext<::std::function<void(::Core::Result)>>>
104 ) = 0;
105
106 // vIndex: 16
107 virtual ::Core::RemoteStorageManifest getManifest(::std::string const&) = 0;
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113
114 // NOLINTEND
115};
116
117} // namespace Core
Definition CallbackTokenContext.h:6
Definition CallbackToken.h:5
Definition RemoteStorageProvider.h:18
Definition Result.h:13
Definition Alias.h:14