1 /*
2  * Copyright (C) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef I_SATELLITE_SMS_CALLBACK_H
17 #define I_SATELLITE_SMS_CALLBACK_H
18 
19 #include "tel_ril_types.h"
20 #include "iremote_proxy.h"
21 #include "tel_event_handler.h"
22 
23 namespace OHOS {
24 namespace Telephony {
25 using namespace AppExecFwk;
26 
27 class ISatelliteSmsCallback : public IRemoteBroker {
28 public:
29     DECLARE_INTERFACE_DESCRIPTOR(u"ohos.telephony.ISatelliteSmsCallback");
30 
31 public:
32     /**
33      * @brief SendSmsResponse.
34      *
35      * @param event event which contains the response data.
36      * @return Returns {@code TELEPHONY_SUCCESS} on success, others on failure.
37      */
38     virtual int32_t SendSmsResponse(InnerEvent::Pointer &event) = 0;
39 
40     /**
41      * @brief SmsStatusReportNotify.
42      *
43      * @param event event which contains the report data.
44      * @return Returns {@code TELEPHONY_SUCCESS} on success, others on failure.
45      */
46     virtual int32_t SmsStatusReportNotify(InnerEvent::Pointer &event) = 0;
47 
48     /**
49      * @brief NewSmsNotify.
50      *
51      * @param event event which contains the sms data.
52      * @return Returns {@code TELEPHONY_SUCCESS} on success, others on failure.
53      */
54     virtual int32_t NewSmsNotify(InnerEvent::Pointer &event) = 0;
55 };
56 
57 } // namespace Telephony
58 } // namespace OHOS
59 #endif // I_SATELLITE_SMS_CALLBACK_H