mirror of
https://gitee.com/openharmony/telephony_core_service
synced 2024-11-27 18:20:48 +00:00
commit
4721ea2eda
@ -1,38 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include "ims_sms_callback_proxy.h"
|
||||
|
||||
namespace OHOS {
|
||||
namespace Telephony {
|
||||
ImsSmsCallbackProxy::ImsSmsCallbackProxy(const sptr<IRemoteObject> &impl)
|
||||
: IRemoteProxy<ImsSmsCallback>(impl)
|
||||
{}
|
||||
int32_t ImsSmsCallbackProxy::OnImsStateCallback(const ImsRegInfo &info)
|
||||
{
|
||||
TELEPHONY_LOGI("ImsSmsCallbackProxy ENTER!! ");
|
||||
MessageParcel data;
|
||||
MessageOption option;
|
||||
MessageParcel replyParcel;
|
||||
sptr<IRemoteObject> remote = Remote();
|
||||
if (remote == nullptr) {
|
||||
TELEPHONY_LOGE("remote is null!");
|
||||
}
|
||||
data.WriteInt32(static_cast<int32_t>(info.imsRegState));
|
||||
data.WriteInt32(static_cast<int32_t>(info.imsRegTech));
|
||||
return remote->SendRequest(IMS_SMS, data, replyParcel, option);
|
||||
}
|
||||
} // namespace Telephony
|
||||
} // namespace OHOS
|
@ -1,38 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include "ims_ut_callback_proxy.h"
|
||||
|
||||
namespace OHOS {
|
||||
namespace Telephony {
|
||||
ImsUtCallbackProxy::ImsUtCallbackProxy(const sptr<IRemoteObject> &impl)
|
||||
: IRemoteProxy<ImsUtCallback>(impl)
|
||||
{}
|
||||
int32_t ImsUtCallbackProxy::OnImsStateCallback(const ImsRegInfo &info)
|
||||
{
|
||||
TELEPHONY_LOGI("ImsUtCallbackProxy ENTER!! ");
|
||||
MessageParcel data;
|
||||
MessageOption option;
|
||||
MessageParcel replyParcel;
|
||||
sptr<IRemoteObject> remote = Remote();
|
||||
if (remote == nullptr) {
|
||||
TELEPHONY_LOGE("remote is null!");
|
||||
}
|
||||
data.WriteInt32(static_cast<int32_t>(info.imsRegState));
|
||||
data.WriteInt32(static_cast<int32_t>(info.imsRegTech));
|
||||
return remote->SendRequest(IMS_UT, data, replyParcel, option);
|
||||
}
|
||||
} // namespace Telephony
|
||||
} // namespace OHOS
|
@ -1,38 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include "ims_video_callback_proxy.h"
|
||||
|
||||
namespace OHOS {
|
||||
namespace Telephony {
|
||||
ImsVideoCallbackProxy::ImsVideoCallbackProxy(const sptr<IRemoteObject> &impl)
|
||||
: IRemoteProxy<ImsVideoCallback>(impl)
|
||||
{}
|
||||
int32_t ImsVideoCallbackProxy::OnImsStateCallback(const ImsRegInfo &info)
|
||||
{
|
||||
TELEPHONY_LOGI("ImsVideoCallbackProxy ENTER!! ");
|
||||
MessageParcel data;
|
||||
MessageOption option;
|
||||
MessageParcel replyParcel;
|
||||
sptr<IRemoteObject> remote = Remote();
|
||||
if (remote == nullptr) {
|
||||
TELEPHONY_LOGE("remote is null!");
|
||||
}
|
||||
data.WriteInt32(static_cast<int32_t>(info.imsRegState));
|
||||
data.WriteInt32(static_cast<int32_t>(info.imsRegTech));
|
||||
return remote->SendRequest(IMS_VIDEO, data, replyParcel, option);
|
||||
}
|
||||
} // namespace Telephony
|
||||
} // namespace OHOS
|
Loading…
Reference in New Issue
Block a user