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 BASE_NOTIFICATION_ANS_STANDARD_FRAMEWORKS_ANS_CORE_INCLUDE_ANS_LOCAL_LIVE_VIEW_SUBSCRIBER_INTERFACE_H
17 #define BASE_NOTIFICATION_ANS_STANDARD_FRAMEWORKS_ANS_CORE_INCLUDE_ANS_LOCAL_LIVE_VIEW_SUBSCRIBER_INTERFACE_H
18 
19 #include "iremote_broker.h"
20 
21 #include "badge_number_callback_data.h"
22 #include "enabled_notification_callback_data.h"
23 #include "notification.h"
24 #include "notification_constant.h"
25 #include "notification_do_not_disturb_date.h"
26 #include "notification_request.h"
27 #include "notification_sorting.h"
28 #include "notification_sorting_map.h"
29 
30 namespace OHOS {
31 namespace Notification {
32 class AnsSubscriberLocalLiveViewInterface : public IRemoteBroker {
33 public:
34     AnsSubscriberLocalLiveViewInterface() = default;
35     virtual ~AnsSubscriberLocalLiveViewInterface() override = default;
36     DISALLOW_COPY_AND_MOVE(AnsSubscriberLocalLiveViewInterface);
37 
38     DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.Notification.AnsSubscriberLocalLiveViewInterface");
39 
40     /**
41      * @brief The callback function for the subscriber to establish a connection.
42      */
43     virtual void OnConnected() = 0;
44 
45     /**
46      * @brief The callback function for subscriber disconnected.
47      */
48     virtual void OnDisconnected() = 0;
49 
50     virtual void OnResponse(int32_t notificationId, sptr<NotificationButtonOption> buttonOption) = 0;
51 };
52 }  // namespace Notification
53 }  // namespace OHOS
54 
55 #endif  // BASE_NOTIFICATION_ANS_STANDARD_FRAMEWORKS_ANS_CORE_INCLUDE_ANS_LOCAL_LIVE_VIEW_SUBSCRIBER_INTERFACE_H
56