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 #ifndef AVRCP_TG_GAP_H 17 #define AVRCP_TG_GAP_H 18 19 namespace OHOS { 20 namespace bluetooth { 21 /** 22 * @brief This class provides a set of methods for registering/unregistering the security requirements into the GAP. 23 * @see Audio/Video Remote Control 1.6.2 Section 12 -> 12.2 Security aspects. 24 */ 25 class AvrcTgGapManager { 26 public: 27 /** 28 * @brief A constructor used to create an <b>AvrcCtGapManager</b> instance. 29 */ 30 AvrcTgGapManager(); 31 32 /** 33 * @brief A destructor used to delete the <b>AvrcCtGapManager</b> instance. 34 */ 35 ~AvrcTgGapManager(); 36 37 /** 38 * @brief Registers security requirements into the GAP. 39 * 40 * @return The result of the method execution. 41 * @retval BT_SUCCESS Execute success. 42 * @retval RET_BAD_STATUS Execute failure. 43 */ 44 static int RegisterSecurity(void); 45 46 /** 47 * @brief Unregisters security requirements from the GAP. 48 * 49 * @return The result of the method execution. 50 * @retval BT_SUCCESS Execute success. 51 * @retval RET_BAD_STATUS Execute failure. 52 */ 53 static int UnregisterSecurity(void); 54 }; 55 } // namespace bluetooth 56 } // namespace OHOS 57 58 #endif // !AVRCP_TG_GAP_H 59