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 DISTRIBUTEDDATAFWK_IOBJECT_SERVICE_H
177418042dSoh_ci#define DISTRIBUTEDDATAFWK_IOBJECT_SERVICE_H
187418042dSoh_ci
197418042dSoh_ci#include <string>
207418042dSoh_ci
217418042dSoh_ci#include <iremote_broker.h>
227418042dSoh_ci#include "object_service.h"
237418042dSoh_ci#include "distributeddata_object_store_ipc_interface_code.h"
247418042dSoh_ci
257418042dSoh_cinamespace OHOS::DistributedObject {
267418042dSoh_ciclass IObjectService : public ObjectService, public IRemoteBroker {
277418042dSoh_cipublic:
287418042dSoh_ci    DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.DistributedObject.IObjectService");
297418042dSoh_ci};
307418042dSoh_ci
317418042dSoh_ciclass IKvStoreDataService : public IRemoteBroker {
327418042dSoh_cipublic:
337418042dSoh_ci    DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.DistributedKv.IKvStoreDataService");
347418042dSoh_ci
357418042dSoh_ci    virtual sptr<IRemoteObject> GetFeatureInterface(const std::string &name) = 0;
367418042dSoh_ci
377418042dSoh_ci    virtual uint32_t RegisterClientDeathObserver(const std::string &appId, sptr<IRemoteObject> observer) = 0;
387418042dSoh_ci};
397418042dSoh_ci} // namespace OHOS::DistributedObject
407418042dSoh_ci#endif
41