• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 INTERFACES_INNERKITS_DISC_CLIENT_PROXY_STANDARD_H_
17 #define INTERFACES_INNERKITS_DISC_CLIENT_PROXY_STANDARD_H_
18 
19 #include "if_softbus_client.h"
20 #include "softbus_error_code.h"
21 
22 namespace OHOS {
23 class DiscClientProxy : public IRemoteProxy<ISoftBusClient> {
24 public:
25     explicit DiscClientProxy(const sptr<IRemoteObject> &impl);
26     ~DiscClientProxy() override;
27 
28     void OnDeviceFound(const DeviceInfo *device) override;
29     void OnDiscoverFailed(int subscribeId, int failReason) override;
30     void OnDiscoverySuccess(int subscribeId) override;
31     void OnPublishSuccess(int publishId) override;
32     void OnPublishFail(int publishId, int reason) override;
33 
34 private:
35     static inline BrokerDelegator<DiscClientProxy> delegator_;
36 };
37 }
38 #endif