* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef COMMUNICATIONNETMANAGEREXT_STATS_CONSTANT_H
#define COMMUNICATIONNETMANAGEREXT_STATS_CONSTANT_H
#include <string_view>
namespace OHOS {
namespace NetManagerStandard {
constexpr int32_t PARAM_NONE = 0;
constexpr int32_t PARAM_JUST_OPTIONS = 1;
constexpr int32_t PARAM_JUST_CALLBACK = 1;
constexpr int32_t PARAM_DOUBLE_OPTIONS = 2;
constexpr int32_t PARAM_TRIPLE_OPTIONS = 3;
constexpr int32_t PARAM_FOUR_OPTIONS = 4;
constexpr int32_t PARAM_OPTIONS_AND_CALLBACK = 2;
constexpr int32_t PARAM_DOUBLE_OPTIONS_AND_CALLBACK = 3;
constexpr int32_t PARAM_TRIPLE_OPTIONS_AND_CALLBACK = 4;
constexpr int32_t PARAM_FOUR_OPTIONS_AND_CALLBACK = 5;
constexpr std::string_view EVENT_SHARE_STATE_CHANGE = "sharingStateChange";
constexpr std::string_view EVENT_IFACE_SHARE_STATE_CHANGE = "interfaceSharingStateChange";
constexpr std::string_view EVENT_SHARE_UPSTREAM_CHANGE = "sharingUpstreamChange";
constexpr int KEY_UID_ARG = -1;
enum {
ARG_NUM_0 = 0,
ARG_NUM_1,
ARG_NUM_2,
};
enum {
ARG_INDEX_0 = 0,
ARG_INDEX_1,
ARG_INDEX_2,
ARG_INDEX_3,
ARG_INDEX_4,
};
}
}
#endif