12d43be4eSopenharmony_ci/* 22d43be4eSopenharmony_ci * Copyright (C) 2021 Huawei Device Co., Ltd. 32d43be4eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 42d43be4eSopenharmony_ci * you may not use this file except in compliance with the License. 52d43be4eSopenharmony_ci * You may obtain a copy of the License at 62d43be4eSopenharmony_ci * 72d43be4eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 82d43be4eSopenharmony_ci * 92d43be4eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 102d43be4eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 112d43be4eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 122d43be4eSopenharmony_ci * See the License for the specific language governing permissions and 132d43be4eSopenharmony_ci * limitations under the License. 142d43be4eSopenharmony_ci */ 152d43be4eSopenharmony_ci 162d43be4eSopenharmony_ci#ifndef STATE_NOTIFICATION_H 172d43be4eSopenharmony_ci#define STATE_NOTIFICATION_H 182d43be4eSopenharmony_ci 192d43be4eSopenharmony_ci#include "cellular_data_constant.h" 202d43be4eSopenharmony_ci 212d43be4eSopenharmony_cinamespace OHOS { 222d43be4eSopenharmony_cinamespace Telephony { 232d43be4eSopenharmony_ciclass StateNotification { 242d43be4eSopenharmony_cipublic: 252d43be4eSopenharmony_ci static StateNotification &GetInstance(); 262d43be4eSopenharmony_ci void UpdateCellularDataConnectState(int32_t slotId, ApnProfileState dataState, int32_t networkType); 272d43be4eSopenharmony_ci void OnUpDataFlowtype(int32_t slotId, CellDataFlowType flowType); 282d43be4eSopenharmony_ci 292d43be4eSopenharmony_ciprivate: 302d43be4eSopenharmony_ci StateNotification() = default; 312d43be4eSopenharmony_ci ~StateNotification() = default; 322d43be4eSopenharmony_ci 332d43be4eSopenharmony_ciprivate: 342d43be4eSopenharmony_ci static StateNotification stateNotification_; 352d43be4eSopenharmony_ci}; 362d43be4eSopenharmony_ci} // namespace Telephony 372d43be4eSopenharmony_ci} // namespace OHOS 382d43be4eSopenharmony_ci#endif // STATE_NOTIFICATION_H 39