1 /*
2  * Copyright (C) 2023 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 #ifndef OHOS_BLUETOOTH_STANDARD_MAP_MSE_INTERFACE_H
16 #define OHOS_BLUETOOTH_STANDARD_MAP_MSE_INTERFACE_H
17 
18 #include "bluetooth_service_ipc_interface_code.h"
19 #include "i_bluetooth_map_mse_observer.h"
20 #include "../parcel/bluetooth_raw_address.h"
21 
22 namespace OHOS {
23 namespace Bluetooth {
24 class IBluetoothMapMse : public OHOS::IRemoteBroker {
25 public:
26     DECLARE_INTERFACE_DESCRIPTOR(u"ohos.ipc.IBluetoothMapMse");
27 
28     virtual int32_t GetDeviceState(const BluetoothRawAddress &device, int32_t &state) = 0;
29     virtual int32_t GetDevicesByStates(const std::vector<int32_t> &states,
30         std::vector<BluetoothRawAddress> &rawDevices) = 0;
31     virtual int32_t Disconnect(const BluetoothRawAddress &device) = 0;
32     virtual int32_t SetConnectionStrategy(const BluetoothRawAddress &device, int32_t strategy) = 0;
33     virtual int32_t GetConnectionStrategy(const BluetoothRawAddress &device, int32_t &strategy) = 0;
34     virtual int32_t SetMessageAccessAuthorization(const BluetoothRawAddress &device, int32_t accessAuthorization) = 0;
35     virtual int32_t GetMessageAccessAuthorization(const BluetoothRawAddress &device, int32_t &accessAuthorization) = 0;
36     virtual void RegisterObserver(const sptr<IBluetoothMapMseObserver> &observer) = 0;
37     virtual void DeregisterObserver(const sptr<IBluetoothMapMseObserver> &observer) = 0;
38 };
39 }  // namespace Bluetooth
40 }  // namespace OHOS
41 #endif  // OHOS_BLUETOOTH_STANDARD_MAP_MSE_INTERFACE_H