/* * Copyright (C) 2021 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 TELEPHONY_OBSERVER_PROXY_H #define TELEPHONY_OBSERVER_PROXY_H #include "iremote_proxy.h" #include "telephony_log_wrapper.h" #include "telephony_observer_broker.h" namespace OHOS { namespace Telephony { class TelephonyObserverProxy : public IRemoteProxy { public: explicit TelephonyObserverProxy(const sptr &impl); virtual ~TelephonyObserverProxy() = default; void OnCallStateUpdated( int32_t slotId, int32_t callState, const std::u16string &phoneNumber); void OnSignalInfoUpdated( int32_t slotId, const std::vector> &vec); void OnNetworkStateUpdated( int32_t slotId, const sptr &networkState); void OnCellInfoUpdated( int32_t slotId, const std::vector> &vec); void OnSimStateUpdated( int32_t slotId, CardType type, SimState state, LockReason reason); void OnCellularDataConnectStateUpdated( int32_t slotId, int32_t dataState, int32_t networkType); void OnCellularDataFlowUpdated( int32_t slotId, int32_t dataFlowType); void OnCfuIndicatorUpdated(int32_t slotId, bool cfuResult); void OnVoiceMailMsgIndicatorUpdated(int32_t slotId, bool voiceMailMsgResult); void OnIccAccountUpdated(); private: static inline BrokerDelegator delegator_; }; } // namespace Telephony } // namespace OHOS #endif // TELEPHONY_OBSERVER_PROXY_H