1686862fbSopenharmony_ci/* 2686862fbSopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd. 3686862fbSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4686862fbSopenharmony_ci * you may not use this file except in compliance with the License. 5686862fbSopenharmony_ci * You may obtain a copy of the License at 6686862fbSopenharmony_ci * 7686862fbSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8686862fbSopenharmony_ci * 9686862fbSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10686862fbSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11686862fbSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12686862fbSopenharmony_ci * See the License for the specific language governing permissions and 13686862fbSopenharmony_ci * limitations under the License. 14686862fbSopenharmony_ci */ 15686862fbSopenharmony_ci 16686862fbSopenharmony_ci#ifndef OHOS_IDMS_INTERACTIVE_ADAPTER_H 17686862fbSopenharmony_ci#define OHOS_IDMS_INTERACTIVE_ADAPTER_H 18686862fbSopenharmony_ci 19686862fbSopenharmony_ci#include <string> 20686862fbSopenharmony_ci 21686862fbSopenharmony_ci#include "caller_info.h" 22686862fbSopenharmony_ci#include "dm_device_info.h" 23686862fbSopenharmony_ci#include "message_parcel.h" 24686862fbSopenharmony_ci#include "want.h" 25686862fbSopenharmony_ci 26686862fbSopenharmony_cinamespace OHOS { 27686862fbSopenharmony_cinamespace DistributedSchedule { 28686862fbSopenharmony_citypedef struct { 29686862fbSopenharmony_ci int32_t (*StartRemoteAbilityAdapter)(const OHOS::AAFwk::Want& want, int32_t callerUid, int32_t requestCode, 30686862fbSopenharmony_ci uint32_t accessToken); 31686862fbSopenharmony_ci int32_t (*StartAbilityFromRemoteAdapter)(MessageParcel& data, MessageParcel& reply); 32686862fbSopenharmony_ci 33686862fbSopenharmony_ci int32_t (*StopAbilityFromRemoteAdapter)(MessageParcel& data, MessageParcel& reply); 34686862fbSopenharmony_ci 35686862fbSopenharmony_ci int32_t (*ConnectRemoteAbilityAdapter)(const OHOS::AAFwk::Want& want, const sptr<IRemoteObject>& connect, 36686862fbSopenharmony_ci int32_t callerUid, int32_t callerPid, uint32_t accessToken); 37686862fbSopenharmony_ci int32_t (*ConnectAbilityFromRemoteAdapter)(MessageParcel& data, MessageParcel& reply); 38686862fbSopenharmony_ci 39686862fbSopenharmony_ci int32_t (*DisconnectRemoteAbilityAdapter)(const sptr<IRemoteObject>& connect, int32_t callerUid, 40686862fbSopenharmony_ci uint32_t accessToken); 41686862fbSopenharmony_ci int32_t (*DisconnectAbilityFromRemoteAdapter)(MessageParcel& data, MessageParcel& reply); 42686862fbSopenharmony_ci 43686862fbSopenharmony_ci int32_t (*NotifyAbilityLifecycleChangedFromRemoteAdapter)(MessageParcel& data, MessageParcel& reply); 44686862fbSopenharmony_ci 45686862fbSopenharmony_ci void (*OnDeviceOnlineEx)(const OHOS::DistributedHardware::DmDeviceInfo& deviceInfo); 46686862fbSopenharmony_ci void (*OnDeviceOfflineEx)(const OHOS::DistributedHardware::DmDeviceInfo& deviceInfo); 47686862fbSopenharmony_ci void (*OnDeviceInfoChangedEx)(const OHOS::DistributedHardware::DmDeviceInfo& deviceInfo); 48686862fbSopenharmony_ci} IDmsInteractiveAdapter; 49686862fbSopenharmony_ci} // namespace DistributedSchedule 50686862fbSopenharmony_ci} // namespace OHOS 51686862fbSopenharmony_ci#endif // OHOS_IDMS_INTERACTIVE_ADAPTER_H 52