• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025-2026 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 NETWORKSLICE_PROXY_H
17 #define NETWORKSLICE_PROXY_H
18 
19 #include "i_networkslice_service.h"
20 #include "iremote_broker.h"
21 #include "iremote_proxy.h"
22 #include "refbase.h"
23 
24 namespace OHOS {
25 namespace NetManagerStandard {
26 class NetworkSliceProxy : public IRemoteProxy<INetworkSliceService> {
27 public:
28     explicit NetworkSliceProxy(const sptr<IRemoteObject> &impl);
29     virtual ~NetworkSliceProxy();
30     int32_t SetNetworkSliceUePolicy(std::vector<uint8_t> buffer) override;
31     int32_t NetworkSliceInitUePolicy() override;
32     int32_t NetworkSliceAllowedNssaiRpt(std::vector<uint8_t> buffer) override;
33     int32_t NetworkSliceEhplmnRpt(std::vector<uint8_t> buffer) override;
34     int32_t GetRouteSelectionDescriptorByDNN(std::string dnn, std::string& snssai, uint8_t& sscMode) override;
35     int32_t GetRSDByNetCap(int32_t netcap, std::map<std::string, std::string>& networkSliceParas) override;
36     int32_t SetSaState(bool isSaState) override;
37 private:
38     static inline BrokerDelegator<NetworkSliceProxy> delegator_;
39 };
40 } // namespace NetManagerStandard
41 } // namespace OHOS
42 #endif /* NETWORKSLICE_PROXY_H */
43