1 /* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef OHOS_CAMERA_ICAMERA_BROKER_H 17 #define OHOS_CAMERA_ICAMERA_BROKER_H 18 19 #include "iremote_broker.h" 20 21 namespace OHOS { 22 namespace CameraStandard { 23 /** 24 * @brief Camera service remote request code for DH IPC. 25 * 26 * @since 1.0 27 * @version 1.0 28 */ 29 enum CameraServiceDHInterfaceCode { 30 CAMERA_SERVICE_ALLOW_OPEN_BY_OHSIDE = 101, 31 CAMERA_SERVICE_NOTIFY_CAMERA_STATE = 102, 32 CAMERA_SERVICE_NOTIFY_CLOSE_CAMERA = 2, 33 CAMERA_SERVICE_NOTIFY_MUTE_CAMERA = 4, 34 CAMERA_SERVICE_SET_PEER_CALLBACK = 104, 35 CAMERA_SERVICE_UNSET_PEER_CALLBACK = 105 36 }; 37 38 class ICameraBroker : public IRemoteBroker { 39 public: 40 DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.Anco.Service.Camera"); 41 42 virtual int32_t NotifyCloseCamera(std::string cameraId) = 0; 43 virtual int32_t NotifyMuteCamera(bool muteMode) = 0; 44 }; 45 46 } // namespace CameraStandard 47 } // namespace OHOS 48 #endif // OHOS_CAMERA_ICAMERA_BROKER_H 49