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 HFP_AG_MESSAGE_H 17 #define HFP_AG_MESSAGE_H 18 19 #include <string> 20 21 #include "hfp_ag_defines.h" 22 #include "message.h" 23 24 namespace OHOS { 25 namespace bluetooth { 26 typedef struct { 27 bool service {false}; 28 bool roam {false}; 29 bool signal {false}; 30 bool battery {false}; 31 } HfpAgTransferData; 32 33 class HfpAgMessage : public utility::Message { 34 public: 35 explicit HfpAgMessage(int what, int arg1 = 0, void *arg2 = nullptr) : utility::Message(what, arg1, arg2) 36 {} 37 ~HfpAgMessage() = default; 38 int arg3_ {0}; 39 int type_ {0}; 40 std::string str_ {""}; 41 std::string dev_ {""}; 42 HfpAgTransferData data_ {}; 43 HfpAgPhoneState state_ {}; 44 HfpAgCallList call_ {}; 45 }; 46 } // namespace bluetooth 47 } // namespace OHOS 48 #endif // HFP_AG_MESSAGE_H 49