17418042dSoh_ci/* 27418042dSoh_ci * Copyright (c) 2023 Huawei Device Co., Ltd. 37418042dSoh_ci * Licensed under the Apache License, Version 2.0 (the "License"); 47418042dSoh_ci * you may not use this file except in compliance with the License. 57418042dSoh_ci * You may obtain a copy of the License at 67418042dSoh_ci * 77418042dSoh_ci * http://www.apache.org/licenses/LICENSE-2.0 87418042dSoh_ci * 97418042dSoh_ci * Unless required by applicable law or agreed to in writing, software 107418042dSoh_ci * distributed under the License is distributed on an "AS IS" BASIS, 117418042dSoh_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 127418042dSoh_ci * See the License for the specific language governing permissions and 137418042dSoh_ci * limitations under the License. 147418042dSoh_ci */ 157418042dSoh_ci 167418042dSoh_ci#ifndef OBJECT_CALLBACK_H 177418042dSoh_ci#define OBJECT_CALLBACK_H 187418042dSoh_ci 197418042dSoh_ci#include <map> 207418042dSoh_ci#include <string> 217418042dSoh_ci#include <vector> 227418042dSoh_ci 237418042dSoh_cinamespace OHOS { 247418042dSoh_cinamespace DistributedObject { 257418042dSoh_cienum { 267418042dSoh_ci COMPLETED = 0, 277418042dSoh_ci}; 287418042dSoh_ci 297418042dSoh_ciclass IObjectSaveCallback { 307418042dSoh_cipublic: 317418042dSoh_ci virtual void Completed(const std::map<std::string, int32_t> &results) = 0; 327418042dSoh_ci}; 337418042dSoh_ci 347418042dSoh_ciclass IObjectRevokeSaveCallback { 357418042dSoh_cipublic: 367418042dSoh_ci virtual void Completed(int32_t status) = 0; 377418042dSoh_ci}; 387418042dSoh_ci 397418042dSoh_ciclass IObjectRetrieveCallback { 407418042dSoh_cipublic: 417418042dSoh_ci virtual void Completed(const std::map<std::string, std::vector<uint8_t>> &results, bool allReady) = 0; 427418042dSoh_ci}; 437418042dSoh_ci 447418042dSoh_ciclass IObjectChangeCallback { 457418042dSoh_cipublic: 467418042dSoh_ci virtual void Completed(const std::map<std::string, std::vector<uint8_t>> &results, bool allReady) = 0; 477418042dSoh_ci}; 487418042dSoh_ci} // namespace DistributedObject 497418042dSoh_ci} // namespace OHOS 507418042dSoh_ci 517418042dSoh_ci#endif // OBJECT_CALLBACK_H 52