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 OHOS_BLUETOOTH_STANDARD_PARCEL_BT_UUID_H 17 #define OHOS_BLUETOOTH_STANDARD_PARCEL_BT_UUID_H 18 19 #include "../common/bt_uuid.h" 20 #include "message_parcel.h" 21 22 namespace OHOS { 23 namespace Bluetooth { 24 class ParcelBtUuid { 25 public: 26 /** 27 * @brief Write ParcelBtUuid values to parcel. 28 * 29 * @param parcel Parcel which store ParcelBtUuid values. 30 * @return Operation result. 31 * @since 6 32 */ 33 static bool WriteToParcel(MessageParcel &parcel, bluetooth::Uuid &uuid); 34 35 /** 36 * @brief Read ParcelBtUuid values from parcel. 37 * 38 * @param parcel Parcel which bring ParcelBtUuid values. 39 * @return Operation result. 40 * @since 6 41 */ 42 static bluetooth::Uuid ReadFromParcel(MessageParcel &parcel); 43 }; 44 } // namespace Bluetooth 45 } // namespace OHOS 46 #endif // OHOS_BLUETOOTH_STANDARD_PARCEL_BT_UUID_H