1 /* 2 * Copyright (c) 2021 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 #include "icontroller.h" 17 18 namespace OHOS { 19 namespace Camera { IController()20IController::IController() {} 21 IController(std::string hardwareName)22IController::IController(std::string hardwareName) : hardwareName_(hardwareName) {} 23 ~IController()24IController::~IController() {} 25 GetPowerOnState()26bool IController::GetPowerOnState() 27 { 28 std::lock_guard<std::mutex> l(powerOnStatelock_); 29 return powerOnState_; 30 } 31 SetPowerOnState(bool powerOnState)32void IController::SetPowerOnState(bool powerOnState) 33 { 34 std::lock_guard<std::mutex> l(powerOnStatelock_); 35 powerOnState_ = powerOnState; 36 } 37 SetMetaDataFlag(bool metaDataFlag)38void IController::SetMetaDataFlag(bool metaDataFlag) 39 { 40 (void)metaDataFlag; 41 return; 42 } 43 SetMetaDataCallBack(const MetaDataCb cb)44void IController::SetMetaDataCallBack(const MetaDataCb cb) 45 { 46 (void)cb; 47 return; 48 } 49 } // namespace Camera 50 } // namespace OHOS