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 COMMUNICATIONNETMANAGEREXT_STATS_CONSTANT_H
17 #define COMMUNICATIONNETMANAGEREXT_STATS_CONSTANT_H
18 
19 #include <string_view>
20 
21 namespace OHOS {
22 namespace NetManagerStandard {
23 constexpr int32_t PARAM_NONE = 0;
24 constexpr int32_t PARAM_JUST_OPTIONS = 1;
25 constexpr int32_t PARAM_JUST_CALLBACK = 1;
26 constexpr int32_t PARAM_DOUBLE_OPTIONS = 2;
27 constexpr int32_t PARAM_TRIPLE_OPTIONS = 3;
28 constexpr int32_t PARAM_FOUR_OPTIONS = 4;
29 constexpr int32_t PARAM_OPTIONS_AND_CALLBACK = 2;
30 constexpr int32_t PARAM_DOUBLE_OPTIONS_AND_CALLBACK = 3;
31 constexpr int32_t PARAM_TRIPLE_OPTIONS_AND_CALLBACK = 4;
32 constexpr int32_t PARAM_FOUR_OPTIONS_AND_CALLBACK = 5;
33 
34 // state change of register
35 constexpr std::string_view EVENT_SHARE_STATE_CHANGE = "sharingStateChange";
36 constexpr std::string_view EVENT_IFACE_SHARE_STATE_CHANGE = "interfaceSharingStateChange";
37 constexpr std::string_view EVENT_SHARE_UPSTREAM_CHANGE = "sharingUpstreamChange";
38 
39 constexpr int KEY_UID_ARG = -1;
40 
41 enum {
42     ARG_NUM_0 = 0,
43     ARG_NUM_1,
44     ARG_NUM_2,
45 };
46 
47 enum {
48     ARG_INDEX_0 = 0,
49     ARG_INDEX_1,
50     ARG_INDEX_2,
51     ARG_INDEX_3,
52     ARG_INDEX_4,
53 };
54 } // namespace NetManagerStandard
55 } // namespace OHOS
56 #endif // COMMUNICATIONNETMANAGEREXT_STATS_CONSTANT_H
57