1 /*
2  * Copyright (c) 2021-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 FOUNDATION_EVENT_CESFWK_KITS_NATIVE_INCLUDE_COMMON_EVENT_SUPPORT_H
17 #define FOUNDATION_EVENT_CESFWK_KITS_NATIVE_INCLUDE_COMMON_EVENT_SUPPORT_H
18 
19 #include <string>
20 #include <vector>
21 
22 namespace OHOS {
23 namespace EventFwk {
24 class CommonEventSupport {
25 public:
26     /**
27      * Indicates the action of a common event that the user has finished booting and the system has been loaded.
28      * To subscribe to this common event, your application must have the ohos.permission.RECEIVER_STARTUP_COMPLETED
29      * permission.
30      * This common event can only be published by the system.
31      */
32     static const std::string COMMON_EVENT_BOOT_COMPLETED;
33     /**
34      * Indicates the action of a common event that the user has finished booting and the system has been loaded but the
35      * screen is still locked.
36      * To subscribe to this common event, your application must have the ohos.permission.RECEIVER_STARTUP_COMPLETED
37      * permission.
38      * This common event can only be published by the system.
39      */
40     static const std::string COMMON_EVENT_LOCKED_BOOT_COMPLETED;
41     /**
42      * Indicates the action of a common event that the device is being shut down and the final shutdown will proceed.
43      * This is different from sleeping. All unsaved data will be lost after shut down.
44      * This common event can only be published by the system.
45      */
46     static const std::string COMMON_EVENT_SHUTDOWN;
47     /**
48      * Indicates the action of a common event that the charging state, level, and other information about the battery
49      * have changed.
50      * This common event can only be published by the system.
51      */
52     static const std::string COMMON_EVENT_BATTERY_CHANGED;
53     /**
54      * Indicates the action of a common event that the battery level is low.
55      * This common event can only be published by the system.
56      */
57     static const std::string COMMON_EVENT_BATTERY_LOW;
58     /**
59      * Indicates the action of a common event that the battery exit the low state.
60      * This common event can only be published by the system.
61      */
62     static const std::string COMMON_EVENT_BATTERY_OKAY;
63     /**
64      * Indicates the action of a common event that the device is connected to the external power.
65      * This common event can only be published by the system.
66      */
67     static const std::string COMMON_EVENT_POWER_CONNECTED;
68     /**
69      * Indicates the action of a common event that the device is disconnected from the external power.
70      * This common event can only be published by the system.
71      */
72     static const std::string COMMON_EVENT_POWER_DISCONNECTED;
73 
74     /**
75      * Indicates the action of a common event that the device screen is off and the device is sleeping.
76      * This common event can only be published by the system.
77      */
78     static const std::string COMMON_EVENT_SCREEN_OFF;
79     /**
80      * Indicates the action of a common event that the device screen is on and the device is interactive.
81      * This common event can only be published by the system.
82      */
83     static const std::string COMMON_EVENT_SCREEN_ON;
84     /**
85      * Indicates the action of a common event that the thermal level changed.
86      * This common event can only be published by the system.
87      */
88     static const std::string COMMON_EVENT_THERMAL_LEVEL_CHANGED;
89     /**
90      * Indicates the action of a common event that the device is about to enter the force sleep mode.
91      * This common event can only be published by the system.
92      */
93     static const std::string COMMON_EVENT_ENTER_FORCE_SLEEP;
94     /**
95      * Indicates the action of a common event that the device exits the force sleep mode.
96      * This common event can only be published by the system.
97      */
98     static const std::string COMMON_EVENT_EXIT_FORCE_SLEEP;
99     /**
100      * Indicates the action of a common event that the device is idle and charging,
101      * services can do some business on the background.
102      * This common event can only be published by the system.
103      */
104     static const std::string COMMON_EVENT_CHARGE_IDLE_MODE_CHANGED;
105     /**
106      * Indicates the action of a common event that the user unlocks the device.
107      * This common event can only be published by the system.
108      */
109     static const std::string COMMON_EVENT_USER_PRESENT;
110 
111     /**
112      * Indicates the action of a common event that the system time has changed.
113      * This common event can only be published by the system.
114      */
115     static const std::string COMMON_EVENT_TIME_TICK;
116     /**
117      * Indicates the action of a common event that the system time is set.
118      * This common event can only be published by the system.
119      */
120     static const std::string COMMON_EVENT_TIME_CHANGED;
121     /**
122      * Indicates the action of a common event that the system date has changed.
123      * This common event can only be published by the system.
124      */
125     static const std::string COMMON_EVENT_DATE_CHANGED;
126     /**
127      * Indicates the action of a common event that the system time zone has changed.
128      * This common event can only be published by the system.
129      */
130     static const std::string COMMON_EVENT_TIMEZONE_CHANGED;
131 
132     /**
133      * Indicates the action of a common event that a user closes a temporary system dialog box.
134      * This common event can only be published by the system.
135      */
136     static const std::string COMMON_EVENT_CLOSE_SYSTEM_DIALOGS;
137 
138     /**
139      * Indicates the action of a common event that bundle scan has finished.
140      * This common event can only be published by the system.
141      */
142     static const std::string COMMON_EVENT_BUNDLE_SCAN_FINISHED;
143     /**
144      * Indicates the action of a common event that a new application package has been installed on the device.
145      * This common event can only be published by the system.
146      */
147     static const std::string COMMON_EVENT_PACKAGE_ADDED;
148     /**
149      * This commonEvent means when a new application package start to install on the device.
150      * This is a protected common event that can only be sent by system.
151     */
152     static const std::string COMMON_EVENT_PACKAGE_INSTALLATION_STARTED;
153     /**
154      * This common event means an application package enables or disables a dynamic icon.
155      * This is a protected common event that can only be sent by system.
156     */
157     static const std::string COMMON_EVENT_DYNAMIC_ICON_CHANGED;
158     /**
159      * Indicates the action of a common event that a new version of an installed application package has replaced
160      * the previous one on the device.
161      * This common event can only be published by the system.
162      */
163     static const std::string COMMON_EVENT_PACKAGE_REPLACED;
164     /**
165      * Indicates the action of a common event that a new version of your application package has replaced
166      * the previous one. This common event is sent only to the application that was replaced.
167      * This common event can only be published by the system.
168      */
169     static const std::string COMMON_EVENT_MY_PACKAGE_REPLACED;
170     /**
171      * Indicates the action of a common event that an installed application has been uninstalled from the device
172      * with the application data remained.
173      * This common event can only be published by the system.
174      */
175     static const std::string COMMON_EVENT_PACKAGE_REMOVED;
176     /**
177      * Indicates the action of a common event that an installed bundle has been uninstalled from the device with the
178      * application data remained.
179      * This common event can only be published by the system.
180      */
181     static const std::string COMMON_EVENT_BUNDLE_REMOVED;
182     /**
183      * Indicates the action of a common event that an installed application, including both the application data and
184      * code, have been completely uninstalled from the device.
185      * This common event can only be published by the system.
186      */
187     static const std::string COMMON_EVENT_PACKAGE_FULLY_REMOVED;
188     /**
189      * Indicates the action of a common event that an application package has been changed
190      * (for example, a component in the package has been enabled or disabled).
191      * This common event can only be published by the system.
192      */
193     static const std::string COMMON_EVENT_PACKAGE_CHANGED;
194     /**
195      * Indicates the action of a common event that the user has restarted the application package and killed all its
196      * processes.
197      * This common event can only be published by the system.
198      */
199     static const std::string COMMON_EVENT_PACKAGE_RESTARTED;
200     /**
201      * Indicates the action of a common event that the user has cleared the application package data.
202      * This common event is published after COMMON_EVENT_PACKAGE_RESTARTED is triggered and the data has been cleared.
203      * This common event can only be published by the system.
204      */
205     static const std::string COMMON_EVENT_PACKAGE_DATA_CLEARED;
206     /**
207      * Indicates the action of a common event that the user has cleared the application package cache.
208      * This common event can only be published by the system.
209      */
210     static const std::string COMMON_EVENT_PACKAGE_CACHE_CLEARED;
211     /**
212      * Indicates the action of a common event that application packages have been suspended.
213      * This common event can only be published by the system.
214      */
215     static const std::string COMMON_EVENT_PACKAGES_SUSPENDED;
216     /**
217      * Indicates the action of a common event that application packages have not been suspended.
218      * This common event can only be published by the system.
219      */
220     static const std::string COMMON_EVENT_PACKAGES_UNSUSPENDED;
221     /**
222      * Indicates the action of a common event that an application package has been suspended.
223      * This common event can only be published by the system.
224      */
225     static const std::string COMMON_EVENT_MY_PACKAGE_SUSPENDED;
226     /**
227      * Indicates the action of a common event that an application package has not been suspended.
228      * This common event can only be published by the system.
229      */
230     static const std::string COMMON_EVENT_MY_PACKAGE_UNSUSPENDED;
231     /**
232      * Indicates the action of a common event that a user ID has been removed from the system.
233      * This common event can only be published by the system.
234      */
235     static const std::string COMMON_EVENT_UID_REMOVED;
236     /**
237      * Indicates the action of a common event that an installed application is started for the first time.
238      * This common event can only be published by the system.
239      */
240     static const std::string COMMON_EVENT_PACKAGE_FIRST_LAUNCH;
241     /**
242      * Indicates the action of a common event that an application requires system verification.
243      * This common event can only be published by the system.
244      */
245     static const std::string COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION;
246     /**
247      * Indicates the action of a common event that an application has been verified by the system.
248      * This common event can only be published by the system.
249      */
250     static const std::string COMMON_EVENT_PACKAGE_VERIFIED;
251 
252     /**
253      * Indicates the action of a common event that applications installed on the external storage become
254      * available for the system.
255      * This common event can only be published by the system.
256      */
257     static const std::string COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE;
258     /**
259      * Indicates the action of a common event that applications installed on the external storage become unavailable for
260      * the system.
261      * This common event can only be published by the system.
262      */
263     static const std::string COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE;
264 
265     /**
266      * Indicates the action of a common event that the device state (for example, orientation and locale) has changed.
267      * This common event can only be published by the system.
268      */
269     static const std::string COMMON_EVENT_CONFIGURATION_CHANGED;
270     /**
271      * Indicates the action of a common event that the device locale has changed.
272      * This common event can only be published by the system.
273      */
274     static const std::string COMMON_EVENT_LOCALE_CHANGED;
275 
276     /**
277      * Indicates the action of a common event that the device storage is insufficient.
278      */
279     static const std::string COMMON_EVENT_MANAGE_PACKAGE_STORAGE;
280 
281     /**
282      * Indicates the action of a common event that one sandbox package is installed.
283      */
284     static const std::string COMMON_EVENT_SANDBOX_PACKAGE_ADDED;
285     /**
286      * Indicates the action of a common event that one sandbox package is uninstalled.
287      */
288     static const std::string COMMON_EVENT_SANDBOX_PACKAGE_REMOVED;
289     /**
290      * Indicates the action of a common event that the system is in driving mode.
291      * This is a protected common event, which can be sent only by the system.
292      */
293     static const std::string COMMON_EVENT_DRIVE_MODE;
294     /**
295      * Indicates the action of a common event that the system is in home mode.
296      * This is a protected common event, which can be sent only by the system.
297      */
298     static const std::string COMMON_EVENT_HOME_MODE;
299     /**
300      * Indicates the action of a common event that the system is in office mode.
301      * This is a protected common event, which can be sent only by the system.
302      */
303     static const std::string COMMON_EVENT_OFFICE_MODE;
304 
305     /**
306     * Indicates the action of a common event that the window mode is split screen.
307     * This is a protected common event, which can be sent only by the system.
308     */
309     static const std::string COMMON_EVENT_SPLIT_SCREEN;
310 
311     /**
312      * Indicates the action of a common event that the user has been started.
313      */
314     static const std::string COMMON_EVENT_USER_STARTED;
315     /**
316      * Indicates the action of a common event that the user has been brought to the background.
317      */
318     static const std::string COMMON_EVENT_USER_BACKGROUND;
319     /**
320      * Indicates the action of a common event that the user has been brought to the foreground.
321      */
322     static const std::string COMMON_EVENT_USER_FOREGROUND;
323     /**
324      * Indicates the action of a common event that a user switch is happening.
325      * To subscribe to this common event, your application must have the ohos.permission.MANAGE_LOCAL_ACCOUNTS
326      * permission.
327      */
328     static const std::string COMMON_EVENT_USER_SWITCHED;
329     /**
330      * Indicates the action of a common event that the user is going to be started.
331      * To subscribe to this common event, your application must have the ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
332      * permission.
333      */
334     static const std::string COMMON_EVENT_USER_STARTING;
335     /**
336      * Indicates the action of a common event that the credential-encrypted storage has become unlocked
337      * for the current user when the device is unlocked after being restarted.
338      */
339     static const std::string COMMON_EVENT_USER_UNLOCKED;
340     /**
341      * Indicates the action of a common event that the user is going to be stopped.
342      * To subscribe to this common event, your application must have the ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
343      * permission.
344      */
345     static const std::string COMMON_EVENT_USER_STOPPING;
346     /**
347      * Indicates the action of a common event that the user has been stopped.
348      */
349     static const std::string COMMON_EVENT_USER_STOPPED;
350     /**
351      * Indicates the action of a common event about a login of a user with account ID.
352      * This is a protected common event, which can be sent only by the system.
353      */
354     static const std::string COMMON_EVENT_HWID_LOGIN;
355     /**
356      * Indicates the action of a common event about a logout of a user with account ID.
357      * This is a protected common event, which can be sent only by the system.
358      */
359     static const std::string COMMON_EVENT_HWID_LOGOUT;
360     /**
361      * Indicates the action of a common event that the account ID is invalid.
362      * This is a protected common event, which can be sent only by the system.
363      */
364     static const std::string COMMON_EVENT_HWID_TOKEN_INVALID;
365     /**
366      * Indicates the action of a common event about a logoff of a account ID.
367      * This is a protected common event, which can be sent only by the system.
368      */
369     static const std::string COMMON_EVENT_HWID_LOGOFF;
370 
371     /**
372      * Indicates the action of a common event about the Wi-Fi state, such as enabled and disabled.
373      */
374     static const std::string COMMON_EVENT_WIFI_POWER_STATE;
375 
376     /**
377      * Indicates the action of a common event that the Wi-Fi access point has been scanned and proven to be available.
378      * To subscribe to this common event, your application must have the ohos.permission.LOCATION permission.
379      */
380     static const std::string COMMON_EVENT_WIFI_SCAN_FINISHED;
381 
382     /**
383      * Indicates the action of a common event that the Wi-Fi signal strength (RSSI) has changed.
384      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
385      */
386     static const std::string COMMON_EVENT_WIFI_RSSI_VALUE;
387 
388     /**
389      * Indicates the action of a common event that the Wi-Fi connection state has changed.
390      */
391     static const std::string COMMON_EVENT_WIFI_CONN_STATE;
392 
393     /**
394      * Indicates the action of a common event about the Wi-Fi hotspot state, such as enabled or disabled.
395      */
396     static const std::string COMMON_EVENT_WIFI_HOTSPOT_STATE;
397 
398     /**
399      * Indicates the action of a common event that a client has joined the Wi-Fi hotspot of the current device. You can
400      * register this common event to listen for information about the clients joining your hotspot.
401      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
402      */
403     static const std::string COMMON_EVENT_WIFI_AP_STA_JOIN;
404 
405     /**
406      * Indicates the action of a common event that a client has dropped connection to the Wi-Fi hotspot of the current
407      * device. You can register this common event to listen for information about the clients leaving your hotspot.
408      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
409      */
410     static const std::string COMMON_EVENT_WIFI_AP_STA_LEAVE;
411 
412     /**
413      * Indicates the action of a common event that the state of MPLink (an enhanced Wi-Fi feature) has changed.
414      * To subscribe to this common event, your application must have the ohos.permission.MPLINK_CHANGE_STATE permission.
415      */
416     static const std::string COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE;
417 
418     /**
419      * Indicates the action of a common event that the Wi-Fi P2P connection state has changed.
420      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO and
421      * ohos.permission.LOCATION permissions.
422      */
423     static const std::string COMMON_EVENT_WIFI_P2P_CONN_STATE;
424 
425     /**
426      * Indicates the action of a common event about the Wi-Fi P2P state, such as enabled and disabled.
427      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
428      */
429     static const std::string COMMON_EVENT_WIFI_P2P_STATE_CHANGED;
430 
431     /**
432      * Indicates that the Wi-Fi P2P peers state change.
433      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
434      */
435     static const std::string COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED;
436 
437     /**
438      * Indicates that the Wi-Fi P2P discovery state change.
439      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
440      */
441     static const std::string COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED;
442 
443     /**
444      * Indicates that the Wi-Fi P2P current device state change.
445      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
446      */
447     static const std::string COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED;
448 
449     /**
450      * Indicates that the Wi-Fi P2P group info is changed.
451      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
452      */
453     static const std::string COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED;
454 
455     /**
456      * Indicates that network traffic statistics have been updated.
457      */
458     static const std::string COMMON_EVENT_NETMANAGER_NETSTATES_UPDATED;
459 
460     /**
461      * Indicates that the network traffic has exceeded the limit.
462      */
463     static const std::string COMMON_EVENT_NETMANAGER_NETSTATES_LIMITED;
464 
465     /**
466      * Indicates the action of a common event about the connection state of Bluetooth handsfree communication.
467      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
468      */
469     static const std::string COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE;
470 
471     /**
472      * Indicates the action of a common event that the device connected to the Bluetooth handsfree is active.
473      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
474      */
475     static const std::string COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE;
476 
477     /**
478      * Indicates the action of a common event that the connection state of Bluetooth A2DP has changed.
479      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
480      */
481     static const std::string COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE;
482 
483     /**
484      * Indicates the action of a common event about the connection state of Bluetooth A2DP.
485      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
486      */
487     static const std::string COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE;
488 
489     /**
490      * Indicates the action of a common event that the device connected using Bluetooth A2DP is active.
491      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
492      */
493     static const std::string COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE;
494 
495     /**
496      * Indicates the action of a common event that the playing state of Bluetooth A2DP has changed.
497      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
498      */
499     static const std::string COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE;
500 
501     /**
502      * Indicates the action of a common event that the AVRCP connection state of Bluetooth A2DP has changed.
503      */
504     static const std::string COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE;
505 
506     /**
507      * Indicates the action of a common event that the audio codec state of Bluetooth A2DP has changed.
508      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
509      */
510     static const std::string COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE;
511 
512     /**
513      * Indicates the action of a common event that a remote Bluetooth device has been discovered.
514      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH and
515      * ohos.permission.LOCATION permissions.
516      */
517     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED;
518 
519     /**
520      * Indicates the action of a common event that the Bluetooth class of a remote Bluetooth device has changed.
521      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
522      */
523     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE;
524 
525     /**
526      * Indicates the action of a common event that a low level (ACL) connection has been established with a remote
527      * Bluetooth device.
528      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
529      */
530     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED;
531 
532     /**
533      * Indicates the action of a common event that a low level (ACL) connection has been disconnected from a remote
534      * Bluetooth device.
535      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
536      */
537     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED;
538 
539     /**
540      * Indicates the action of a common event that the friendly name of a remote Bluetooth device has been retrieved for
541      * the first time or has been changed since the last retrieval.
542      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
543      */
544     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE;
545 
546     /**
547      * Indicates the action of a common event that the connection state of a remote Bluetooth device has changed.
548      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
549      */
550     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE;
551 
552     /**
553      * Indicates the action of a common event that the battery level of a remote Bluetooth device has been retrieved
554      * for the first time or has been changed since the last retrieval.
555      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
556      */
557     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE;
558 
559     /**
560      * Indicates the action of a common event about the SDP state of a remote Bluetooth device.
561      */
562     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT;
563 
564     /**
565      * Indicates the action of a common event about the UUID connection state of a remote Bluetooth device.
566      * To subscribe to this common event, your application must have the ohos.permission.DISCOVER_BLUETOOTH permission.
567      */
568     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE;
569 
570     /**
571      * Indicates the action of a common event about the pairing request from a remote Bluetooth device.
572      * To subscribe to this common event, your application must have the ohos.permission.DISCOVER_BLUETOOTH permission.
573      */
574     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ;
575 
576     /**
577      * Indicates the action of a common event that Bluetooth pairing is canceled.
578      */
579     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL;
580 
581     /**
582      * Indicates the action of a common event about the connection request from a remote Bluetooth device.
583      */
584     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ;
585 
586     /**
587      * Indicates the action of a common event about the response to the connection request from a remote Bluetooth
588      * device.
589      */
590     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY;
591 
592     /**
593      * Indicates the action of a common event that the connection to a remote Bluetooth device has been canceled.
594      */
595     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL;
596 
597     /**
598      * Indicates the action of a common event that the connection state of a Bluetooth handsfree has changed.
599      */
600     static const std::string COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE;
601 
602     /**
603      * Indicates the action of a common event that the audio state of a Bluetooth handsfree has changed.
604      */
605     static const std::string COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE;
606 
607     /**
608      * Indicates the action of a common event that the audio gateway state of a Bluetooth handsfree has changed.
609      */
610     static const std::string COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT;
611 
612     /**
613      * Indicates the action of a common event that the calling state of a Bluetooth handsfree has changed.
614      */
615     static const std::string COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE;
616 
617     /**
618      * Indicates the action of a common event that the state of a Bluetooth adapter has been changed, for example,
619      * Bluetooth has been turned on or off.
620      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
621      */
622     static const std::string COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE;
623 
624     /**
625      * Indicates the action of a common event about the requests for the user to allow Bluetooth to be scanned.
626      */
627     static const std::string COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE;
628 
629     /**
630      * Indicates the action of a common event about the requests for the user to turn on Bluetooth.
631      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
632      */
633     static const std::string COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE;
634 
635     /**
636      * Indicates the action of a common event about the requests for the user to turn off Bluetooth.
637      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
638      */
639     static const std::string COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE;
640 
641     /**
642      * Indicates the action of a common event that the Bluetooth scanning mode of a device has changed.
643      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
644      */
645     static const std::string COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE;
646 
647     /**
648      * Indicates the action of a common event that the Bluetooth scanning has been started on the device.
649      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
650      */
651     static const std::string COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED;
652 
653     /**
654      * Indicates the action of a common event that the Bluetooth scanning is finished on the device.
655      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
656      */
657     static const std::string COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED;
658 
659     /**
660      * Indicates the action of a common event that the Bluetooth adapter name of the device has changed.
661      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
662      */
663     static const std::string COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE;
664 
665     /**
666      * Indicates the action of a common event that the connection state of Bluetooth A2DP Sink has changed.
667      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
668      */
669     static const std::string COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE;
670 
671     /**
672      * Indicates the action of a common event that the playing state of Bluetooth A2DP Sink has changed.
673      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
674      */
675     static const std::string COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE;
676 
677     /**
678      * Indicates the action of a common event that the audio state of Bluetooth A2DP Sink has changed.
679      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
680      */
681     static const std::string COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE;
682 
683      /**
684      * Indicates the status of the Bluetooth device connect status has been changed.
685      */
686     static const std::string COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_STATUS_VALUE;
687 
688     /**
689      * Indicates the action of a common event that the state of the device NFC adapter has changed.
690      * This is a protected common event, which can be sent only by the system.
691      */
692     static const std::string COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED;
693 
694     /**
695      * Indicates the action of a common event that the NFC RF field is detected to be in the enabled state.
696      * To subscribe to this common event, your application must have the ohos.permission.MANAGE_SECURE_SETTINGS
697      * permission.
698      * This is a protected common event, which can be sent only by the system.
699      */
700     static const std::string COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED;
701 
702     /**
703      * Indicates the action of a common event that the NFC RF field is detected to be in the disabled state.
704      * To subscribe to this common event, your application must have the ohos.permission.MANAGE_SECURE_SETTINGS
705      * permission.
706      * This is a protected common event, which can be sent only by the system.
707      */
708     static const std::string COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED;
709 
710     /**
711      * Indicates the action of a common event that the system stops charging the battery.
712      * This is a protected common event, which can be sent only by the system.
713      */
714     static const std::string COMMON_EVENT_DISCHARGING;
715 
716     /**
717      * Indicates the action of a common event that the system starts charging the battery.
718      * This is a protected common event, which can be sent only by the system.
719      */
720     static const std::string COMMON_EVENT_CHARGING;
721 
722     /**
723      * Indicates the action of a common event that a charge type has been updated.
724      * This is a protected common event, which can be sent only by the system.
725      */
726     static const std::string COMMON_EVENT_CHARGE_TYPE_CHANGED;
727 
728     /**
729      * Indicates the action of a common event that the system idle mode has changed.
730      * This is a protected common event, which can be sent only by the system.
731      */
732     static const std::string COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED;
733 
734     /**
735      * Indicates the action of a common event that the list of exempt applications is updated in the idle mode.
736      * This is a protected common event, which can be sent only by the system.
737      */
738     static const std::string COMMON_EVENT_DEVICE_IDLE_EXEMPTION_LIST_UPDATED;
739 
740     /**
741      * Indicates the action of a common event that the power save mode of the system has changed.
742      * This is a protected common event, which can be sent only by the system.
743      */
744     static const std::string COMMON_EVENT_POWER_SAVE_MODE_CHANGED;
745 
746     /**
747      * Indicates the action of a common event that a user has been added to the system.
748      * To subscribe to this common event, your application must have the ohos.permission.MANAGE_LOCAL_ACCOUNTS
749      * permission.
750      */
751     static const std::string COMMON_EVENT_USER_ADDED;
752     /**
753      * Indicates the action of a common event that a user has been removed from the system.
754      * To subscribe to this common event, your application must have the ohos.permission.MANAGE_LOCAL_ACCOUNTS
755      * permission.
756      */
757     static const std::string COMMON_EVENT_USER_REMOVED;
758 
759     /**
760      * Indicates the action of a common event that an ability has been added.
761      * To subscribe to this common event, your application must have the ohos.permission.LISTEN_BUNDLE_CHANGE
762      * permission.
763      * This is a protected common event, which can be sent only by the system.
764      */
765     static const std::string COMMON_EVENT_ABILITY_ADDED;
766 
767     /**
768      * Indicates the action of a common event that an ability has been removed.
769      * To subscribe to this common event, your application must have the ohos.permission.LISTEN_BUNDLE_CHANGE
770      * permission.
771      * This is a protected common event, which can be sent only by the system.
772      */
773     static const std::string COMMON_EVENT_ABILITY_REMOVED;
774 
775     /**
776      * Indicates the action of a common event that an ability has been updated.
777      * To subscribe to this common event, your application must have the ohos.permission.LISTEN_BUNDLE_CHANGE
778      * permission.
779      * This is a protected common event, which can be sent only by the system.
780      */
781     static const std::string COMMON_EVENT_ABILITY_UPDATED;
782 
783     /**
784      * Indicates the action of a common event that the location mode of the system has changed.
785      * This is a protected common event, which can be sent only by the system.
786      */
787     static const std::string COMMON_EVENT_LOCATION_MODE_STATE_CHANGED;
788 
789     /**
790      * Indicates the action of a common event that the in-vehicle infotainment (IVI) system of a vehicle is sleeping.
791      * This is a protected common event, which can be sent only by the system.
792      */
793     static const std::string COMMON_EVENT_IVI_SLEEP;
794 
795     /**
796      * The ivi is slept and notify the app stop playing.
797      * This is a protected common event that can only be sent by system.
798      */
799     static const std::string COMMON_EVENT_IVI_PAUSE;
800 
801     /**
802      * Indicates the action of a common event that a third-party application is instructed to pause the current work.
803      * This is a protected common event, which can be sent only by the system.
804      */
805     static const std::string COMMON_EVENT_IVI_STANDBY;
806 
807     /**
808      * Indicates the action of a common event that a third-party application is instructed to save its last mode.
809      * This is a protected common event, which can be sent only by the system.
810      */
811     static const std::string COMMON_EVENT_IVI_LASTMODE_SAVE;
812 
813     /**
814      * Indicates the action of a common event that the voltage of the vehicle power system is abnormal.
815      * This is a protected common event, which can be sent only by the system.
816      */
817     static const std::string COMMON_EVENT_IVI_VOLTAGE_ABNORMAL;
818 
819     /**
820      * The ivi temperature is too high.
821      * This is a protected common event that can only be sent by system.
822      * This common event will be delete later, please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL.
823      */
824     static const std::string COMMON_EVENT_IVI_HIGH_TEMPERATURE;
825 
826     /**
827      * The ivi temperature is extreme high.
828      * This is a protected common event that can only be sent by system.
829      * This common event will be delete later, please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL.
830      */
831     static const std::string COMMON_EVENT_IVI_EXTREME_TEMPERATURE;
832 
833     /**
834      * Indicates the action of a common event that the in-vehicle system has an extreme temperature.
835      * This is a protected common event, which can be sent only by the system.
836      */
837     static const std::string COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL;
838 
839     /**
840      * Indicates the action of a common event that the voltage of the vehicle power system is restored to normal.
841      * This is a protected common event, which can be sent only by the system.
842      */
843     static const std::string COMMON_EVENT_IVI_VOLTAGE_RECOVERY;
844 
845     /**
846      * Indicates the action of a common event that the temperature of the in-vehicle system is restored to normal.
847      * This is a protected common event, which can be sent only by the system.
848      */
849     static const std::string COMMON_EVENT_IVI_TEMPERATURE_RECOVERY;
850 
851     /**
852      * Indicates the action of a common event that the battery service is active.
853      * This is a protected common event, which can be sent only by the system.
854      */
855     static const std::string COMMON_EVENT_IVI_ACTIVE;
856 
857     /**
858      * The usb state changed.
859      * This is a protected common event that can only be sent by system.
860      */
861     static const std::string COMMON_EVENT_USB_STATE;
862 
863     /**
864      * The usb port changed.
865      * This is a protected common event that can only be sent by system.
866      */
867     static const std::string COMMON_EVENT_USB_PORT_CHANGED;
868 
869     /**
870      * Indicates the action of a common event that a USB device has been attached when the user device functions as a
871      * USB host.
872      * This is a protected common event, which can be sent only by the system.
873      */
874     static const std::string COMMON_EVENT_USB_DEVICE_ATTACHED;
875 
876     /**
877      * Indicates the action of a common event that a USB device has been detached when the user device functions as a
878      * USB host.
879      * This is a protected common event, which can be sent only by the system.
880      */
881     static const std::string COMMON_EVENT_USB_DEVICE_DETACHED;
882 
883     /**
884      * Indicates the action of a common event that a USB accessory has been attached.
885      * This is a protected common event, which can be sent only by the system.
886      */
887     static const std::string COMMON_EVENT_USB_ACCESSORY_ATTACHED;
888 
889     /**
890      * Indicates the action of a common event that a USB accessory has been detached.
891      * This is a protected common event, which can be sent only by the system.
892      */
893     static const std::string COMMON_EVENT_USB_ACCESSORY_DETACHED;
894 
895     /**
896      * The storage space is low.
897      * This is a protected common event that can only be sent by system.
898      */
899     static const std::string COMMON_EVENT_DEVICE_STORAGE_LOW;
900 
901     /**
902      * The storage space is normal.
903      * This is a protected common event that can only be sent by system.
904      */
905     static const std::string COMMON_EVENT_DEVICE_STORAGE_OK;
906 
907     /**
908      * The storage space is full.
909      * This is a protected common event that can only be sent by system.
910      */
911     static const std::string COMMON_EVENT_DEVICE_STORAGE_FULL;
912 
913     /**
914      * The network connection was changed.
915      * This is a protected common event that can only be sent by system.
916      */
917     static const std::string COMMON_EVENT_CONNECTIVITY_CHANGE;
918 
919     /**
920      * The global http proxy was changed.
921      * This is a protected common event that can only be sent by system.
922      */
923     static const std::string COMMON_EVENT_HTTP_PROXY_CHANGE;
924 
925     /**
926      * Indicates the action of a common event that an external storage device was removed.
927      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
928      * This common event can be published only by system applications.
929      */
930     static const std::string COMMON_EVENT_DISK_REMOVED;
931 
932     /**
933      * Indicates the action of a common event that an external storage device was unmounted.
934      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
935      * This common event can be published only by system applications.
936      */
937     static const std::string COMMON_EVENT_DISK_UNMOUNTED;
938 
939     /**
940      * Indicates the action of a common event that an external storage device was mounted.
941      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
942      * This common event can be published only by system applications.
943      */
944     static const std::string COMMON_EVENT_DISK_MOUNTED;
945 
946     /**
947      * Indicates the action of a common event that an external storage device was removed without being unmounted.
948      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
949      * This common event can be published only by system applications.
950      */
951     static const std::string COMMON_EVENT_DISK_BAD_REMOVAL;
952 
953     /**
954      * Indicates the action of a common event that an external storage device becomes unmountable.
955      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
956      * This common event can be published only by system applications.
957      */
958     static const std::string COMMON_EVENT_DISK_UNMOUNTABLE;
959 
960     /**
961      * Indicates the action of a common event that an external storage device was ejected.
962      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
963      * This common event can be published only by system applications.
964      */
965     static const std::string COMMON_EVENT_DISK_EJECT;
966 
967     /**
968      * Indicates the action of a common event that an external storage device was removed.
969      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
970      * This common event can be published only by system applications.
971      */
972     static const std::string COMMON_EVENT_VOLUME_REMOVED;
973 
974     /**
975      * Indicates the action of a common event that an external storage device was unmounted.
976      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
977      * This common event can be published only by system applications.
978      */
979     static const std::string COMMON_EVENT_VOLUME_UNMOUNTED;
980 
981     /**
982      * Indicates the action of a common event that an external storage device was mounted.
983      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
984      * This common event can be published only by system applications.
985      */
986     static const std::string COMMON_EVENT_VOLUME_MOUNTED;
987 
988     /**
989      * Indicates the action of a common event that an external storage device was removed without being unmounted.
990      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
991      * This common event can be published only by system applications.
992      */
993     static const std::string COMMON_EVENT_VOLUME_BAD_REMOVAL;
994 
995     /**
996      * Indicates the action of a common event that an external storage device was ejected.
997      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
998      * This common event can be published only by system applications.
999      */
1000     static const std::string COMMON_EVENT_VOLUME_EJECT;
1001 
1002     /**
1003      * Indicates the action of a common event that the account visible changed.
1004      * To subscribe to this common event, your application must have the ohos.permission.GET_APP_ACCOUNTS permission.
1005      * This is a protected common event, which can be sent only by the system.
1006      */
1007     static const std::string COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED;
1008 
1009     /**
1010      * Indicates the action of a common event that the account is deleted.
1011      * To subscribe to this common event, your application must have the ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
1012      * permission.
1013      * This is a protected common event, which can be sent only by the system.
1014      */
1015     static const std::string COMMON_EVENT_ACCOUNT_DELETED;
1016 
1017     /**
1018      * Indicates the action of a common event that the foundation is ready.
1019      * To subscribe to this common event, your application must have the ohos.permission.RECEIVER_STARTUP_COMPLETED
1020      * permission.
1021      * This is a protected common event, which can be sent only by the system.
1022      */
1023     static const std::string COMMON_EVENT_FOUNDATION_READY;
1024 
1025     /**
1026      * Indicates the action of a common event that the default voice subscription has changed.
1027      * This is a protected common event that can only be sent by system.
1028      */
1029     static const std::string COMMON_EVENT_SIM_CARD_DEFAULT_VOICE_SUBSCRIPTION_CHANGED;
1030 
1031     /**
1032      * Indicates the action of a common event that the phone SIM card state has changed.
1033      * This is a protected common event that can only be sent by system.
1034      */
1035     static const std::string COMMON_EVENT_SIM_STATE_CHANGED;
1036 
1037     /**
1038      * Indicates the action of a common event that the airplane mode of the device has changed.
1039      * This common event can be triggered only by system applications.
1040      */
1041     static const std::string COMMON_EVENT_AIRPLANE_MODE_CHANGED;
1042 
1043     /**
1044      * Indicates the action of a common event that a new sms bas been received by the device.
1045      * To subscribe to this common event, your application must have the ohos.permission.RECEIVE_SMS permission.
1046      * This common event can be triggered only by system.
1047      */
1048     static const std::string COMMON_EVENT_SMS_RECEIVE_COMPLETED;
1049 
1050     /**
1051      * Indicates the action of a common event that a new sms emergency cell broadcast bas been received by the device.
1052      * This common event can be triggered only by system.
1053      */
1054     static const std::string COMMON_EVENT_SMS_EMERGENCY_CB_RECEIVE_COMPLETED;
1055 
1056     /**
1057      * Indicates the action of a common event that a new sms normal cell broadcast bas been received by the device.
1058      * This common event can be triggered only by system.
1059      */
1060     static const std::string COMMON_EVENT_SMS_CB_RECEIVE_COMPLETED;
1061 
1062     /**
1063      * Indicates the action of a common event that a STK command has been received by the device.
1064      * This common event can be triggered only by system.
1065      */
1066     static const std::string COMMON_EVENT_STK_COMMAND;
1067 
1068     /**
1069      * Indicates the action of a common event that STK session end.
1070      * This common event can be triggered only by system.
1071      */
1072     static const std::string COMMON_EVENT_STK_SESSION_END;
1073 
1074     /**
1075      * Indicates the action of a common event that the STK phone card state has changed.
1076      * This common event can be triggered only by system.
1077      */
1078     static const std::string COMMON_EVENT_STK_CARD_STATE_CHANGED;
1079 
1080     /**
1081      * Indicates the action of a common event that an alpha string during call control  has been received by the device.
1082      * This common event can be triggered only by system.
1083      */
1084     static const std::string COMMON_EVENT_STK_ALPHA_IDENTIFIER;
1085 
1086     /**
1087      * Indicates the action of a common event that the spn display information has been updated.
1088      * This common event can be triggered only by system.
1089      */
1090     static const std::string COMMON_EVENT_SPN_INFO_CHANGED;
1091 
1092     /**
1093      * Indicates the action of a common event that the NITZ time has been updated.
1094      * This is a protected common event that can only be sent by system.
1095      */
1096     static const std::string COMMON_EVENT_NITZ_TIME_CHANGED;
1097 
1098     /**
1099      * Indicates the action of a common event that the NITZ time zone has been updated.
1100      * This is a protected common event that can only be sent by system.
1101      */
1102     static const std::string COMMON_EVENT_NITZ_TIMEZONE_CHANGED;
1103 
1104     /**
1105      * Indicates the action of a common event that a new sms wappush has been received by the device.
1106      * This is a protected common event that can only be sent by system.
1107      */
1108     static const std::string COMMON_EVENT_SMS_WAPPUSH_RECEIVE_COMPLETED;
1109 
1110     /**
1111      * Indicates the action of a common event that the operator config has been updated.
1112      * This is a protected common event that can only be sent by system.
1113      */
1114     static const std::string COMMON_EVENT_OPERATOR_CONFIG_CHANGED;
1115 
1116     /**
1117      * Indicates the action of a common event that the notification slot has been updated.
1118      * This is a protected common event that can only be sent by system.
1119      */
1120     static const std::string COMMON_EVENT_SLOT_CHANGE;
1121 
1122     /**
1123      * Only for test case.
1124      */
1125     static const std::string COMMON_EVENT_TEST_ACTION1;
1126 
1127     /**
1128      * Only for test case.
1129      */
1130     static const std::string COMMON_EVENT_TEST_ACTION2;
1131 
1132     /**
1133      * Indicates the action of a common event that the default SMS subscription has been changed.
1134      * This is a protected common event that can only be sent by system.
1135      */
1136     static const std::string COMMON_EVENT_SIM_CARD_DEFAULT_SMS_SUBSCRIPTION_CHANGED;
1137 
1138     /**
1139      * Indicates the action of a common event that the default data subscription has been changed.
1140      * This is a protected common event that can only be sent by system.
1141      */
1142     static const std::string COMMON_EVENT_SIM_CARD_DEFAULT_DATA_SUBSCRIPTION_CHANGED;
1143 
1144     /**
1145      * Indicates the action of a common event that the call state has been changed.
1146      * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE
1147      * permission.
1148      * This is a protected common event that can only be sent by system.
1149      */
1150     static const std::string COMMON_EVENT_CALL_STATE_CHANGED;
1151 
1152     /**
1153      * Indicates the action of a common event that the default main subscription has been changed.
1154      * This is a protected common event that can only be sent by system.
1155      */
1156     static const std::string COMMON_EVENT_SIM_CARD_DEFAULT_MAIN_SUBSCRIPTION_CHANGED;
1157 
1158     /**
1159      * Indicates the action of a common event that the status of setting primary slot has been changed.
1160      * This is a protected common event that can only be sent by system.
1161      */
1162     static const std::string COMMON_EVENT_SET_PRIMARY_SLOT_STATUS;
1163 
1164     /**
1165      * Indicates the action of a common event that the roaming status of main card has been changed.
1166      * This is a protected common event that can only be sent by system.
1167      */
1168     static const std::string COMMON_EVENT_PRIMARY_SLOT_ROAMING;
1169 
1170     /**
1171      * Indicates the action of a common event that the cellular data state has been changed.
1172      * This is a protected common event that can only be sent by system.
1173      */
1174     static const std::string COMMON_EVENT_CELLULAR_DATA_STATE_CHANGED;
1175 
1176     /**
1177      * Indicates the action of a common event that the signal info has been changed.
1178      * This is a protected common event that can only be sent by system.
1179      */
1180     static const std::string COMMON_EVENT_SIGNAL_INFO_CHANGED;
1181 
1182     /**
1183      * Indicates the action of a common event that the network state has been changed.
1184      * This is a protected common event that can only be sent by system.
1185      */
1186     static const std::string COMMON_EVENT_NETWORK_STATE_CHANGED;
1187 
1188     /**
1189      * Indicates the action of a common event that the incoming call has been missed.
1190      * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE
1191      * permission.
1192      * This is a protected common event that can only be sent by system.
1193      */
1194     static const std::string COMMON_EVENT_INCOMING_CALL_MISSED;
1195 
1196     /**
1197      * Indicate the result of quick fix apply.
1198      * This common event can be triggered only by system.
1199      */
1200     static const std::string COMMON_EVENT_QUICK_FIX_APPLY_RESULT;
1201 
1202     /**
1203      * Indicate the result of quick fix revoke.
1204      * This common event can be triggered only by system.
1205      */
1206     static const std::string COMMON_EVENT_QUICK_FIX_REVOKE_RESULT;
1207 
1208     /**
1209      * Indicates the action of a common event that radio state change.
1210      * To subscribe to this protected common event that can only be sent by system.
1211      */
1212     static const std::string COMMON_EVENT_RADIO_STATE_CHANGE;
1213 
1214     /**
1215     * Indicates the action of a common event about a login of a distributed account.
1216     * This is a protected common event that can only be sent by system.
1217     */
1218     static const std::string COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN;
1219 
1220     /**
1221     * Indicates the action of a common event about a logout of a distributed account.
1222     * This is a protected common event that can only be sent by system.
1223     */
1224     static const std::string COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT;
1225 
1226     /**
1227     * Indicates the action of a common event that the token of a distributed account is invalid.
1228     * This is a protected common event that can only be sent by system.
1229     */
1230     static const std::string COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID;
1231 
1232     /**
1233     * Indicates the action of a common event about a logoff of a distributed account.
1234     * This is a protected common event that can only be sent by system.
1235     */
1236     static const std::string COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF;
1237 
1238     /**
1239     * Indicates the action of a common event that the user information has been updated.
1240     * This is a protected common event that can only be sent by system.
1241     */
1242     static const std::string COMMON_EVENT_USER_INFO_UPDATED;
1243 
1244     /**
1245     * Indicate the action of a common event that domain account status has been changed.
1246     * This is a protected common event that can only be sent by system.
1247     */
1248     static const std::string COMMON_EVENT_DOMAIN_ACCOUNT_STATUS_CHANGED;
1249 
1250     /**
1251      * Indicates the action of a common event that the screen lock.
1252      * This is a protected common event that can only be sent by system.
1253      */
1254     static const std::string COMMON_EVENT_SCREEN_LOCKED;
1255 
1256     /**
1257      * Indicates the action of a common event that the screen unlock.
1258      * This is a protected common event that can only be sent by system.
1259      */
1260     static const std::string COMMON_EVENT_SCREEN_UNLOCKED;
1261 
1262     /**
1263     * Indicates the action of a common event that the call audio quality information has been updated.
1264     * This is a protected common event that can only be sent by system.
1265     */
1266     static const std::string COMMON_EVENT_AUDIO_QUALITY_CHANGE;
1267 
1268     /**
1269     * Indicates the action of a common event about special code.
1270     * This is a protected common event that can only be sent by system.
1271     */
1272     static const std::string COMMON_EVENT_SPECIAL_CODE;
1273 
1274     /**
1275      * Indicates the action of a common event about reminder
1276      * When the user clicks the button and the application (creator)
1277      * is in the foreground, a event is sent. event data is: button type,reminder id
1278      */
1279     static const std::string COMMON_EVENT_REMINDER_STATUS_CHANGE;
1280 
1281     /**
1282      * Indicates that the privacy status is changed.
1283      * This is a protected common event that can only be sent by system.
1284      */
1285     static const std::string COMMON_EVENT_PRIVACY_STATE_CHANGED;
1286 
1287     /**
1288      * This common event means that minors mode is enabled.
1289      * This is a protected common event that can only be sent by system.
1290      */
1291     static const std::string COMMON_EVENT_MINORSMODE_ON;
1292 
1293     /**
1294      * This common event means that minors mode is disabled.
1295      * This is a protected common event that can only be sent by system.
1296      */
1297     static const std::string COMMON_EVENT_MINORSMODE_OFF;
1298 
1299     /**
1300      * Indicates the action of a common event that the bundle resources have been changed.
1301      * To subscribe to this common event, your application must have the ohos.permission.GET_BUNDLE_RESOURCES
1302      * permission.
1303      * This is a protected common event, which can be sent only by the system.
1304      */
1305     static const std::string COMMON_EVENT_BUNDLE_RESOURCES_CHANGED;
1306 
1307     /**
1308      * Indicates that the file access state is changed.
1309      * This is a protected common event that can only be sent by system.
1310      */
1311     static const std::string COMMON_EVENT_SCREEN_LOCK_FILE_ACCESS_STATE_CHANGED;
1312 
1313     /**
1314      * This common event means that datashare is ready.
1315      * This is a protected common event that can only be sent by system.
1316      */
1317     static const std::string COMMON_EVENT_DATA_SHARE_READY;
1318 
1319     /**
1320     * This common event means that overlay package is added.
1321     * This is a protected common event that can only be sent by system.
1322     */
1323     static const std::string COMMON_EVENT_OVERLAY_PACKAGE_ADDED;
1324 
1325     /**
1326     * This common event means that overlay package is changed.
1327     * This is a protected common event that can only be sent by system.
1328     */
1329     static const std::string COMMON_EVENT_OVERLAY_PACKAGE_CHANGED;
1330 
1331     /**
1332     * This common event means that disposed rule is added.
1333     * This is a protected common event that can only be sent by system.
1334     */
1335     static const std::string COMMON_EVENT_DISPOSED_RULE_ADDED;
1336 
1337     /**
1338     * This common event means that disposed rule is deleted.
1339     * This is a protected common event that can only be sent by system.
1340     */
1341     static const std::string COMMON_EVENT_DISPOSED_RULE_DELETED;
1342 
1343     /**
1344     * This common event means that the second mount is ready.
1345     * This is a protected common event that can only be sent by system.
1346     */
1347     static const std::string COMMON_EVENT_SECOND_MOUNTED;
1348 
1349     /**
1350     * Indicates that an application begins to restored.
1351     * This is a protected common event that can only be sent by system.
1352     */
1353     static const std::string COMMON_EVENT_RESTORE_START;
1354 
1355     /**
1356     * This common event means that vpn connection status has been changed.
1357     * This is a protected common event that can only be sent by system.
1358     */
1359     static const std::string COMMON_EVENT_VPN_CONNECTION_STATUS_CHANGED;
1360 
1361 public:
1362     CommonEventSupport();
1363 
1364     virtual ~CommonEventSupport();
1365 
1366     /**
1367      * Checks whether the current common event is a system common event.
1368      * @param str Indicates the action of a common event.
1369      * @return Returns whether the current common event is a system common event or not.
1370      */
1371     bool IsSystemEvent(std::string &str);
1372 
1373 private:
1374     void Init();
1375 
1376 private:
1377     std::vector<std::string> commonEventSupport_;
1378 };
1379 }  // namespace EventFwk
1380 }  // namespace OHOS
1381 
1382 #endif  // FOUNDATION_EVENT_CESFWK_KITS_NATIVE_INCLUDE_COMMON_EVENT_SUPPORT_H