Realm C++ SDK Version v2.2.0

client_reset.hpp

1
2//
3// Copyright 2022 Realm Inc.
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16//
18
19#ifndef CPPREALM_CLIENT_RESET_HPP
20#define CPPREALM_CLIENT_RESET_HPP
21
22#include <cpprealm/internal/bridge/realm.hpp>
23
24namespace realm {
25 struct db;
26
27 namespace client_reset {
34 explicit manual();
35 };
36
48 explicit discard_unsynced_changes(std::function<void(db local)> before,
49 std::function<void(db local, db remote)> after);
50 };
51
70 explicit recover_unsynced_changes(std::function<void(db local)> before,
71 std::function<void(db local, db remote)> after);
72 };
73
91 explicit recover_or_discard_unsynced_changes(std::function<void(db local)> before,
92 std::function<void(db local, db remote)> after);
93 };
94 }
95
96} // namespace realm
97
98
99#endif//CPPREALM_CLIENT_RESET_HPP
Definition: client_reset.hpp:47
Definition: client_reset.hpp:33
Definition: client_reset.hpp:69
Definition: db.hpp:63