1 /* 2 * Copyright (C) 2022 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_WIFI_SCAN_STUB_LITE_H 17 #define OHOS_WIFI_SCAN_STUB_LITE_H 18 19 #include <map> 20 #include "i_wifi_scan.h" 21 #include "i_wifi_scan_callback.h" 22 #include "serializer.h" 23 24 namespace OHOS { 25 namespace Wifi { 26 class WifiScanStub : public IWifiScan { 27 public: 28 WifiScanStub(); 29 virtual ~WifiScanStub() override; 30 31 virtual int OnRemoteRequest(uint32_t code, IpcIo *req, IpcIo *reply); 32 33 private: 34 int CheckInterfaceToken(uint32_t code, IpcIo *req); 35 int OnSetScanControlInfo(uint32_t code, IpcIo *req, IpcIo *reply); 36 int OnScan(uint32_t code, IpcIo *req, IpcIo *reply); 37 int OnScanByParams(uint32_t code, IpcIo *req, IpcIo *reply); 38 int OnIsWifiClosedScan(uint32_t code, IpcIo *req, IpcIo *reply); 39 int OnGetScanInfoList(uint32_t code, IpcIo *req, IpcIo *reply); 40 int OnRegisterCallBack(uint32_t code, IpcIo *req, IpcIo *reply); 41 int OnGetSupportedFeatures(uint32_t code, IpcIo *req, IpcIo *reply); 42 43 protected: 44 int m_instId{0}; 45 }; 46 } // namespace Wifi 47 } // namespace OHOS 48 #endif 49