• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_DISTRIBUTED_NOTIFICATION_SERVICE_IPC_INTERFACE_CODE_H
17 #define BASE_NOTIFICATION_ANS_STANDARD_FRAMEWORKS_ANS_CORE_INCLUDE_DISTRIBUTED_NOTIFICATION_SERVICE_IPC_INTERFACE_CODE_H
18 
19 #include "iremote_broker.h"
20 
21 /* SAID: 3203 */
22 namespace OHOS {
23 namespace Notification {
24     enum class NotificationInterfaceCode {
25         // ans_manager_interface
26         PUBLISH_NOTIFICATION = FIRST_CALL_TRANSACTION,
27         PUBLISH_NOTIFICATION_TO_DEVICE, // Obsolete
28         CANCEL_NOTIFICATION,
29         CANCEL_ALL_NOTIFICATIONS,
30         CANCEL_AS_BUNDLE,
31         ADD_SLOT_BY_TYPE,
32         ADD_SLOTS,
33         REMOVE_SLOT_BY_TYPE,
34         REMOVE_ALL_SLOTS,
35         ADD_SLOT_GROUPS,
36         GET_SLOT_BY_TYPE,
37         GET_SLOTS,
38         GET_SLOT_GROUP,
39         GET_SLOT_GROUPS,
40         GET_SLOT_NUM_AS_BUNDLE,
41         REMOVE_SLOT_GROUPS,
42         GET_ACTIVE_NOTIFICATIONS,
43         GET_ACTIVE_NOTIFICATION_NUMS,
44         GET_ALL_ACTIVE_NOTIFICATIONS,
45         GET_SPECIAL_ACTIVE_NOTIFICATIONS,
46         SET_NOTIFICATION_AGENT,
47         GET_NOTIFICATION_AGENT,
48         CAN_PUBLISH_AS_BUNDLE,
49         PUBLISH_AS_BUNDLE,
50         SET_NOTIFICATION_BADGE_NUM,
51         GET_BUNDLE_IMPORTANCE,
52         IS_NOTIFICATION_POLICY_ACCESS_GRANTED,
53         REMOVE_NOTIFICATION,
54         REMOVE_ALL_NOTIFICATIONS,
55         REMOVE_NOTIFICATIONS_BY_KEYS,
56         DELETE_NOTIFICATION,
57         DELETE_NOTIFICATION_BY_BUNDLE,
58         DELETE_ALL_NOTIFICATIONS,
59         GET_SLOTS_BY_BUNDLE,
60         UPDATE_SLOTS,
61         UPDATE_SLOT_GROUPS,
62         REQUEST_ENABLE_NOTIFICATION,
63         SET_NOTIFICATION_ENABLED_FOR_BUNDLE,
64         SET_NOTIFICATION_ENABLED_FOR_ALL_BUNDLE,
65         SET_NOTIFICATION_ENABLED_FOR_SPECIAL_BUNDLE,
66         SET_SHOW_BADGE_ENABLED_FOR_BUNDLE,
67         GET_SHOW_BADGE_ENABLED_FOR_BUNDLE,
68         GET_SHOW_BADGE_ENABLED,
69         SUBSCRIBE_NOTIFICATION,
70         UNSUBSCRIBE_NOTIFICATION,
71         ARE_NOTIFICATION_SUSPENDED, // Obsolete
72         GET_CURRENT_APP_SORTING,    // Obsolete
73         IS_ALLOWED_NOTIFY,
74         IS_ALLOWED_NOTIFY_SELF,
75         IS_SPECIAL_BUNDLE_ALLOWED_NOTIFY,
76         SET_DO_NOT_DISTURB_DATE,
77         GET_DO_NOT_DISTURB_DATE,
78         DOES_SUPPORT_DO_NOT_DISTURB_MODE,
79         CANCEL_GROUP,
80         REMOVE_GROUP_BY_BUNDLE,
81         IS_DISTRIBUTED_ENABLED,
82         ENABLE_DISTRIBUTED,
83         ENABLE_DISTRIBUTED_BY_BUNDLE,
84         ENABLE_DISTRIBUTED_SELF,
85         IS_DISTRIBUTED_ENABLED_BY_BUNDLE,
86         GET_DEVICE_REMIND_TYPE,
87         SHELL_DUMP,
88         PUBLISH_CONTINUOUS_TASK_NOTIFICATION,
89         CANCEL_CONTINUOUS_TASK_NOTIFICATION,
90         PUBLISH_REMINDER,
91         CANCEL_REMINDER,
92         CANCEL_ALL_REMINDERS,
93         GET_ALL_VALID_REMINDERS,
94         IS_SUPPORT_TEMPLATE,
95         IS_SPECIAL_USER_ALLOWED_NOTIFY,
96         SET_NOTIFICATION_ENABLED_BY_USER,
97         DELETE_ALL_NOTIFICATIONS_BY_USER,
98         SET_DO_NOT_DISTURB_DATE_BY_USER,
99         GET_DO_NOT_DISTURB_DATE_BY_USER,
100         SET_ENABLED_FOR_BUNDLE_SLOT,
101         GET_ENABLED_FOR_BUNDLE_SLOT,
102         SET_SYNC_NOTIFICATION_ENABLED_WITHOUT_APP,
103         GET_SYNC_NOTIFICATION_ENABLED_WITHOUT_APP,
104         SET_BADGE_NUMBER,
105         REGISTER_PUSH_CALLBACK,
106         UNREGISTER_PUSH_CALLBACK,
107         // ans_subscriber_interface
108         ON_CONNECTED,
109         ON_DISCONNECTED,
110         ON_CONSUMED, // Obsolete
111         ON_CONSUMED_MAP,
112         ON_CANCELED_MAP,
113         ON_CANCELED_LIST_MAP,
114         ON_UPDATED,
115         ON_DND_DATE_CHANGED,
116         ON_ENABLED_NOTIFICATION_CHANGED,
117         ON_BADGE_CHANGED,
118         // push_callback_interface
119         ON_CHECK_NOTIFICATION,
120     };
121 }
122 }
123 
124 #endif