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 CELLULAR_DATA_ROAMING_OBSERVER_H
172d43be4eSopenharmony_ci#define CELLULAR_DATA_ROAMING_OBSERVER_H
182d43be4eSopenharmony_ci
192d43be4eSopenharmony_ci#include "data_ability_observer_stub.h"
202d43be4eSopenharmony_ci#include "tel_event_handler.h"
212d43be4eSopenharmony_ci
222d43be4eSopenharmony_cinamespace OHOS {
232d43be4eSopenharmony_cinamespace Telephony {
242d43be4eSopenharmony_ciclass CellularDataRoamingObserver : public AAFwk::DataAbilityObserverStub {
252d43be4eSopenharmony_cipublic:
262d43be4eSopenharmony_ci    explicit CellularDataRoamingObserver(std::weak_ptr<TelEventHandler> &&cellularDataHandler, int32_t slotId);
272d43be4eSopenharmony_ci    ~CellularDataRoamingObserver();
282d43be4eSopenharmony_ci    void OnChange() override;
292d43be4eSopenharmony_ci
302d43be4eSopenharmony_ciprivate:
312d43be4eSopenharmony_ci    std::weak_ptr<TelEventHandler> cellularDataHandler_;
322d43be4eSopenharmony_ci    const int32_t slotId_;
332d43be4eSopenharmony_ci};
342d43be4eSopenharmony_ci} // namespace Telephony
352d43be4eSopenharmony_ci} // namespace OHOS
362d43be4eSopenharmony_ci#endif // CELLULAR_DATA_ROAMING_OBSERVER_H
37