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 #include "ohos.bluetooth.hfp.proj.hpp" 17 #include "ohos.bluetooth.hfp.impl.hpp" 18 #include "taihe/runtime.hpp" 19 #include "stdexcept" 20 21 using namespace taihe; 22 using namespace ohos::bluetooth::hfp; 23 24 namespace { 25 // To be implemented. 26 27 class HandsFreeAudioGatewayProfileImpl { 28 public: HandsFreeAudioGatewayProfileImpl()29 HandsFreeAudioGatewayProfileImpl() 30 { 31 // Don't forget to implement the constructor. 32 } 33 }; 34 CreateHfpAgProfile()35HandsFreeAudioGatewayProfile CreateHfpAgProfile() 36 { 37 // The parameters in the make_holder function should be of the same type 38 // as the parameters in the constructor of the actual implementation class. 39 return make_holder<HandsFreeAudioGatewayProfileImpl, HandsFreeAudioGatewayProfile>(); 40 } 41 } // namespace 42 43 // Since these macros are auto-generate, lint will cause false positive. 44 // NOLINTBEGIN 45 TH_EXPORT_CPP_API_CreateHfpAgProfile(CreateHfpAgProfile); 46 // NOLINTEND 47