ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
-INCLUDE_DIRECTORIES(
- ${CMAKE_SOURCE_DIR}/include
-)
-
FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -Wall -g")
ENDFOREACH(flag)
+++ /dev/null
-Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- 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.
-
--- /dev/null
+Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ 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.
+
+++ /dev/null
-/*
- * telephony-syspopup
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Ja-young Gu <jygu@samsung.com>
- *
- * 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.
- */
-
-/* pop-up string */
-/* Title */
-#define TELEPHONY_SYSPOPUP_STMS_TITLE_NO_SIM "IDS_ST_HEADER_NO_SIM_CARD_ABB"
-#define TELEPHONY_SYSPOPUP_STMS_TITLE_RESTART "IDS_ST_HEADER_RESTART_DEVICE"
-#define TELEPHONY_SYSPOPUP_STMS_TITLE_NO_SIM_INSERTED "IDS_SIM_POP_NO_SIM_CARD_INSERTED"
-#define TELEPHONY_SYSPOPUP_STMS_TITLE_DATA_ROAMING "IDS_ST_HEADER_NO_NETWORK_CONNECTION_ABB"
-
-/* Body */
-#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_NOT_PRESENTED_EMERGENCY_CALL_POSSIBLE "IDS_WMGR_POP_UNABLE_TO_DETECT_A_SIM_CARD_ONLY_EMERGENCY_CALLS_CAN_BE_MADE_MSG"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_NOT_PRESENTED_EMERGENCY_CALL_IMPOSSIBLE "IDS_WMGR_POP_UNABLE_TO_DETECT_A_SIM_CARD_TO_CHECK_FOR_YOUR_SIM_CARD_AGAIN_TAP_RESTART_TO_PROTECT_AGAINST_WATER_DAMAGE_FIRMLY_SEAL_THE_SIM_CARD_COVER_BEFORE_USE"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_NOT_PRESENTED_AUS_NZL "IDS_WNOTI_POP_UNABLE_TO_DETECT_A_SIM_CARD_EMERGENCY_CALLS_MAY_BE_AVAILABLE_DEPENDING_ON_WHERE_YOU_ARE_TO_PROTECT_AGAINST_WATER_DAMAGE_FIRMLY_SEAL_THE_SIM_CARD_COVER_BEFORE_USE"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_NO_SIM "IDS_COM_POP_INSERT_SIM_CARD"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_CRASH "IDS_SIM_BODY_INVALID_SIM_CARD"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_ERROR "IDS_LCKSCN_NPBODY_INVALID_SIM_CARD_INSERTED"
-
-#define TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING_2 "IDS_ST_BODY_USING_MOBILE_DATA_WHEN_ROAMING_WILL_INCUR_EXTRA_CHARGES"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING_ATT "IDS_COM_BODY_ALLOW_DATA_ROAMING_Q_INTERNATIONAL_DATA_ROAMING_CHARGES_APPLY_TO_DATA_USAGE_NOTI_MSG_ATNT"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_MANUAL_SELECTION_FAILED "IDS_ST_POP_SELECTED_NETWORK_NOT_AVAILABLE_SCAN_FOR_NETWORKS_Q"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_MANUAL_SELECTION_FAILED_NA "IDS_ST_POP_SEARCHING_FOR_AVAILABLE_NETWORK_Q_US"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_NITZ_UPDATE "IDS_ST_POP_AUTO_UPDATE_OF_TIME_AND_DATE"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_NITZ_MANUAL_DATE_AND_TIME "IDS_ST_POP_YOUR_NETWORK_DOES_NOT_PROVIDE_DATE_AND_TIME_INFORMATION_TO_SET_THEM_MANUALLY_GO_TO_DATE_AND_TIME_SETTINGS"
-
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
-#define TELEPHONY_SYSPOPUP_STMS_BODY_EMERGENCY_CALL "WDS_LOGS_MBODY_EMERGENCY_CALL_ABB"
-#endif /* TIZEN_FEATURE_DEVICE_TYPE_WEARABLE */
-
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
-#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_REMOVAL "IDS_IDLE_POP_UNABLE_TO_DETECT_YOUR_SIM_CARD_YOUR_DEVICE_WILL_RESTART_TO_CHECK_FOR_YOUR_SIM_CARD"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING "IDS_COM_POP_DATA_ROAMING_IS_DISABLED_CONNECT_TO_WI_FI_NETWORK_INSTEAD_OR_ENABLE_DATA_ROAMING_AND_TRY_AGAIN"
-#else
-#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_REMOVAL "IDS_IDLE_POP_UNABLE_TO_DETECT_A_SIM_CARD_TO_CHECK_FOR_YOUR_SIM_CARD_AGAIN_YOUR_DEVICE_WILL_RESTART_MSG"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING "IDS_SM_POP_DATA_ROAMING_IS_DISABLED_CONNECT_TO_A_WI_FI_NETWORK_INSTEAD_OR_ENABLE_DATA_ROAMING_AND_TRY_AGAIN"
-#endif
-
-#define TELEPHONY_SYSPOPUP_STMS_BODY_EMERGENCY_CALL "WDS_LOGS_MBODY_EMERGENCY_CALL_ABB"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING "IDS_COM_POP_DATA_ROAMING_IS_DISABLED_CONNECT_TO_WI_FI_NETWORK_INSTEAD_OR_ENABLE_DATA_ROAMING_AND_TRY_AGAIN"
-
-
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
-#define TELEPHONY_SYSPOPUP_STMS_BODY_IMEI_CERTI_FAIL_TITLE "Security Error"
-#define TELEPHONY_SYSPOPUP_STMS_BODY_IMEI_CERTI_FAIL_PROMPT "This phone has been flashed with unauthorized software & is locked. Call your mobile operator for additional support. Please note that repair/return for this issue may have additional cost. Gear will reboot."
-#define TELEPHONY_SYSPOPUP_STMS_BODY_IMS_403_ERROR "IDS_PROV_PO_FAILED_TO_REGISTER_TO_NETWORK_POWER_OFF_YOUR_DEVICE_MSG_KOR_SKT"
-#endif
-/* Button */
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
-#define TELEPHONY_SYSPOPUP_STMS_BTN_OK "IDS_ST_SK_OK"
-#define TELEPHONY_SYSPOPUP_STMS_BTN_COM_RESTART "IDS_COM_SK_RESTART"
-#define TELEPHONY_SYSPOPUP_STMS_BTN_COM_CANCEL "IDS_COM_SK_CANCEL"
-#else
-#define TELEPHONY_SYSPOPUP_STMS_BTN_OK "WDS_ST_BUTTON_OK_ABB"
-#endif
-/* Check box */
-#define TELEPHONY_SYSPOPUP_STMS_CHECKBOX_DONT_REPEAT "IDS_CLOCK_BODY_DONT_REPEAT_ABB"
-#define TELEPHONY_SYSPOPUP_STMS_CHECKBOX_ENABLE_ROAMING "IDS_COM_POP_ENABLE_DATA_ROAMING"
-
-#define IPC_MSG_PARAM1 "param1"
-
-/* SIM */
-#define IPC_MSG_SIM_NOT_PRESENTED "SimNotPresented"
-#define IPC_MSG_SIM_CARD_REMOVED "SimRemoved"
-#define IPC_MSG_SIM_CARD_ERROR "SimError"
-#define IPC_MSG_SIM_CARD_CRASHED "SimCrashed"
-
-/* NETWORK - Display Network LU Reject Cause */
-#define IPC_MSG_DISPLAY_NETWORK_LU_REJECT_CAUSE "DisplayNetworkLuRejectCause"
-#define IPC_MSG_DISMISS_NETWORK_LU_REJECT_CAUSE "DismissNetworkLuRejectCause"
-#define IPC_MSG_DISPLAY_PDP_ACTIVATE_REJECT_CAUSE "display_pdp_activate_reject_cause"
-
-/* NETWORK - Display MIP ERROR Cause */
-#define IPC_MSG_DISPLAY_MIP_ERROR_CAUSE "DisplayMIPErrorCause"
-
-/* NETWORK - Emergency cb mode */
-#define IPC_MSG_NETWORK_EMERGENCY_CB_MODE_ENTER "NetworkEmergencyCbModeEnter"
-#define IPC_MSG_NETWORK_EMERGENCY_CB_MODE_EXIT "NetworkEmergencyCbModeExit"
-#define IPC_MSG_NETWORK_EMERGENCY_CB_MODE_READY "NetworkEmergencyCbModeReady"
-
-/* NETWORK - No Svc after manual network selection */
-#define IPC_MSG_NETWORK_MANUAL_FAIL_POPUP "network_manual_fail_popup"
-
-/* NETWORK - data roaming */
-#define IPC_MSG_NETWORK_DATA_ROAMING_POPUP "network_data_roaming_popup"
-#define IPC_MSG_NETWORK_DATA_ROAMING_POPUP_DELETE "del_network_data_roaming"
-
-/* NETWORK - Fail to get service after successful manual selection */
-#define IPC_MSG_NETWORK_ADD_SIM1_MANUAL_FAIL_NOTI "add_sim1_manual_network_fail_noti"
-#define IPC_MSG_NETWORK_DEL_SIM1_MANUAL_FAIL_NOTI "del_sim1_manual_network_fail_noti"
-#define IPC_MSG_NETWORK_ADD_SIM2_MANUAL_FAIL_NOTI "add_sim2_manual_network_fail_noti"
-#define IPC_MSG_NETWORK_DEL_SIM2_MANUAL_FAIL_NOTI "del_sim2_manual_network_fail_noti"
-
-/* CALL - OTASP */
-#define IPC_CALL_OTASP_OK_SPL_UNLOCKED_NOTI "SPL_unlocked"
-#define IPC_CALL_OTASP_OK_AKEY_EXCESS_NOTI "OK_AKEY_EXCESS_NOTI"
-#define IPC_CALL_OTASP_OK_SSD_UPDATE_NOTI "OK_SSD_UPDATE_NOTI"
-#define IPC_CALL_OTASP_OK_NAM_DWNLD_NOTI "NAM_dwnld_OK!"
-#define IPC_CALL_OTASP_OK_MDN_DWNLD_NOTI "MDN_dwnld_OK!"
-#define IPC_CALL_OTASP_OK_IMSI_DWNLD_NOTI "IMSI_dwnld_OK!"
-#define IPC_CALL_OTASP_OK_PRL_DWNLD_NOTI "PRL_dwnld_OK!"
-#define IPC_CALL_OTASP_OK_COMMIT_NOTI "Commit_Successful"
-#define IPC_CALL_OTASP_OK_PROGRAMMING_NOTI "OK_PROGRAMMING_NOTI"
-#define IPC_CALL_OTASP_SUCCESS_NOTI "Programming_Successful!"
-#define IPC_CALL_OTASP_UNSUCCESS_NOTI "Programming_Unsuccessful!"
-#define IPC_CALL_OTASP_OK_OTAPA_VERIFY_NOTI "OK_OTAPA_VERIFY_NOTI"
-#define IPC_CALL_OTASP_PROGRESS_NOTI "Programming_in_progress"
-#define IPC_CALL_OTASP_FAILURES_EXCESS_SPC_NOTI "FAILURES_EXCESS_SPC_NOTI"
-#define IPC_CALL_OTASP_LOCK_CODE_PW_SET_NOTI "Lock_Code_password_set"
-
-/* CALL - display information */
-#define IPC_CALL_DISPLAY_INFORMATION "DisplayInformation"
-
-/* ACTIVATION */
-#define IPC_MSG_NETWORK_ACTIVATION_MODE "Network_Activation_Mode"
-#define IPC_MSG_NETWORK_ACTIVATION_PASS "Network_Activation_Pass"
-#define IPC_MSG_NETWORK_ACTIVATION_FAIL "Network_Activation_Fail"
-#define IPC_MSG_NETWORK_ACTIVATION_FAIL_3TIMES "Network_Activation_Fail_3Times"
-#define IPC_MSG_NETWORK_ACTIVATION_OTAPA_COMMITTED "Network_Activation_Otapa_Committed"
-#define IPC_MSG_NETWORK_ACTIVATION_CANCEL "Network_Activation_Cancel"
-
-#define IPC_MSG_NETWORK_SKT_ACTIVATION_MODE "Network_SKT_Activation_Mode"
-#define IPC_MSG_NETWORK_SKT_ACTIVATION_ONGOING "Network_SKT_Activation_Ongoing"
-#define IPC_MSG_NETWORK_SKT_ACTIVATION_PASS "Network_SKT_Activation_Pass"
-#define IPC_MSG_NETWORK_SKT_ACTIVATION_FAIL "Network_SKT_Activation_Fail"
-#define IPC_MSG_NETWORK_SKT_ACTIVATION_NOT_ACTIVATED_SIM "Network_SKT_Activation_Not_Activated_SIM"
-#define IPC_MSG_NETWORK_VZW_ACTIVATED_SIM "Network_VZW_Activated_SIM"
-#define IPC_MSG_NETWORK_VZW_NOT_ACTIVATED_SIM "Network_VZW_Not_Activated_SIM"
-#define IPC_MSG_NETWORK_VZW_ACTIVATION_MODE "Network_Vzw_Activation_Mode"
-
-/*E-SIM*/
-#define IPC_MSG_ESIM_PROFILE_ACTIVATION_ONGOING "ESIM_Profile_Activation_Ongoing"
-#define IPC_MSG_ESIM_PROFILE_ACTIVATION_PASS "ESIM_Profile_Activation_Pass"
-#define IPC_MSG_ESIM_PROFILE_ACTIVATION_FAIL "ESIM_Profile_Activation_Fail"
-#define IPC_MSG_ESIM_PROFILE_NEW_PROFILE_DETECT "ESIM_Profile_New_Profile_detect"
-#define IPC_MSG_ESIM_PROFILE_ENABLE_ONGOING "ESIM_Profile_Enable_Ongoing"
-#define IPC_MSG_ESIM_PROFILE_RESET_SAMSUNGPHASE0 "ESIM_Profile_Reset_SamsungPhase0"
-
-/*IMEI*/
-#define IPC_MSG_IMEI_CERTI_FAIL "IMEI_Certi_Fail"
-
-/* NITZ */
-#define IPC_MSG_DISPLAY_NITZ_TIME_UPDATE "DisplayNitzTimeUpdate"
-#define IPC_MSG_NITZ_MANUL_DATE_AND_TIME "nitz_manual_date_and_time"
-
-/* IMS */
-#define IPC_MSG_DISPLAY_IMS_403_ERROR_MESSAGE "display_ims_403_error_message"
-
-/* VCONF */
-#define VCONFKEY_PRIVATE_TELEPHONY_NO_SIM_POPUP_CHECKBOX "db/private/telephony/no_sim_popup_checkbox"
-#define VCONFKEY_PRIVATE_TELEPHONY_DATA_ROAMING_POPUP_CHECKBOX "db/private/telephony/data_roaming_popup_checkbox"
-
-/* Image resource directory */
-#define TELEPHONY_SYSPOPUP_IMAGE_DIR "/usr/apps/org.tizen.telephony-syspopup/res/images/"
-#define DELETE_BUTTON_IMAGE TELEPHONY_SYSPOPUP_IMAGE_DIR"tw_ic_popup_btn_delete.png"
-#define CHECK_BUTTON_IMAGE TELEPHONY_SYSPOPUP_IMAGE_DIR"tw_ic_popup_btn_check.png"
-
-#define MAX_BUF_LEN 1024
-
-typedef enum {
- TPOPUP_PRIORITY_NONE = 0,
- TPOPUP_PRIORITY_LOW,
- TPOPUP_PRIORITY_MID,
- TPOPUP_PRIORITY_HIGH,
- TPOPUP_PRIORITY_TOP, // for directly showing.
- TPOPUP_PRIORITY_ALWAYS_TOP,
-} tpopup_priority;
-
-enum tpopup_operator_group {
- TPOPUP_OPERATOR_GROUP_NONE = 0,
- TPOPUP_OPERATOR_GROUP_ATT,
- TPOPUP_OPERATOR_GROUP_NORTH_AMERICA,
- TPOPUP_OPERATOR_GROUP_AUSTRALIA_NEWZEALAND,
- TPOPUP_OPERATOR_GROUP_JAPAN,
- TPOPUP_OPERATOR_GROUP_VERIZON,
- TPOPUP_OPERATOR_GROUP_USCC,
- TPOPUP_OPERATOR_GROUP_SKT,
- TPOPUP_OPERATOR_GROUP_KT,
- TPOPUP_OPERATOR_GROUP_LGU,
-};
-
-
-typedef enum {
- POPUP_MASK_NONE = 0,
- POPUP_MASK_TITLE = 0x1,
- POPUP_MASK_TEXT = 0x2,
- POPUP_MASK_1BUTTON = 0x4,
- POPUP_MASK_2BUTTON = 0x8,
- POPUP_MASK_ECALL_BODYBUTTON = 0x10,
- POPUP_MASK_CHECKBUTTON = 0x20,
- POPUP_MASK_TOAST = 0x40,
- POPUP_MASK_PROGRESS = 0x80,
- POPUP_MASK_TIMEOUT = 0x100,
- POPUP_MASK_ALARM_CB = 0x200,
- POPUP_MASK_BTN_IMAGE = 0x400,
- POPUP_MASK_BTN_TEXT = 0x800,
- POPUP_MASK_CHECKBUTTON_MIDDLE = 0x1000,
-} tpopup_property_mask;
-
-typedef struct {
- tpopup_event_t event;
- char *ipc_msg;
- tpopup_priority priority;
- tpopup_property_mask mask;
- char *title;
- char *text;
- char *checkbox_text;
- void (*_btn_cb1)(void *, Evas_Object *, void *);
- void (*_btn_cb2)(void *, Evas_Object *, void *);
- double timeout;
- int (*alarm_cb)(alarm_id_t, void *);
- char *btn1_info;
- char *btn2_info;
- void (*_checkbox_change_cb)(void *, Evas_Object *, void *);
-} popup_config_map;
-
-gboolean handle_event(appdata_t *ad);
-tpopup_event_t parse_msg(const char *msg);
-tpopup_priority get_priority(tpopup_event_t event);
-
-gboolean init_alarm(void);
-void deinit_alarm(void);
-void remove_alarm(alarm_id_t timer_id);
-void popup_resp(void *data, Evas_Object *obj, void *event_info);
-void load_text_string(tpopup_event_t event, char *param, char** text);
-void set_alarm_timeout(appdata_t **data, double timeout, int (*alarm_cb)(alarm_id_t, void *));
-gboolean is_valid_event(appdata_t *ad, tpopup_event_t event);
-tpopup_priority get_priority(tpopup_event_t event);
-tpopup_event_t parse_msg(const char *msg);
-/* callback function */
-void sim_not_present_clicked_cb1(void *data, Evas_Object *obj, void *event_info);
-gboolean handle_event(appdata_t *ad);
-void sim_removed_clicked_cb1(void *data, Evas_Object *obj, void *event_info);
-void sim_removed_clicked_cb2(void *data, Evas_Object *obj, void *event_info);
-void nitz_manual_date_time_cb1(void *data, Evas_Object *obj, void *event_info);
-void nitz_manual_date_time_cb2(void *data, Evas_Object *obj, void *event_info);
-void network_manual_fail_cb1(void *data, Evas_Object *obj, void *event_info);
-void network_manual_fail_cb2(void *data, Evas_Object *obj, void *event_info);
-void network_data_roaming_cb1(void *data, Evas_Object *obj, void *event_info);
-void network_data_roaming_cb2(void *data, Evas_Object *obj, void *event_info);
-void display_network_lu_reject_cb1(void *data, Evas_Object *obj, void *event_info);
-
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
-void sim_not_present_clicked_cb1(void *data, Evas_Object *obj, void *event_info);
-void network_manual_fail_cb1(void *data, Evas_Object *obj, void *event_info);
-void network_manual_fail_cb2(void *data, Evas_Object *obj, void *event_info);
-void network_data_roaming_cb1(void *data, Evas_Object *obj, void *event_info);
-void network_data_roaming_cb2(void *data, Evas_Object *obj, void *event_info);
-void nitz_manual_date_time_cb1(void *data, Evas_Object *obj, void *event_info);
-void nitz_manual_date_time_cb2(void *data, Evas_Object *obj, void *event_info);
-void display_network_lu_reject_cb1(void *data, Evas_Object *obj, void *event_info);
-void imei_certi_fail_clicked_cb1(void *data, Evas_Object *obj, void *event_info);
-void display_ims_403_error_message_cb1(void *data, Evas_Object *obj, void *event_info);
-#endif
-
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
-void mobile_network_data_roaming_cb1(void *data, Evas_Object *obj, void *event_info);
-#endif
-
-void unlock_power_lcd_on();
-gboolean is_valid_event(appdata_t *ad, tpopup_event_t event);
-
-#define NUM_POPUP_CONFIGS (sizeof(g_popup_configs) / sizeof(g_popup_configs[0]))
-
-static const popup_config_map g_popup_configs[] = {
- /* 0 */
- { TPOPUP_EVENT_NONE, "", },
-
- /* 1 */
- { TPOPUP_EVENT_SIM_NOT_PRESENTED, IPC_MSG_SIM_NOT_PRESENTED,
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
- TPOPUP_PRIORITY_MID,
- POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_1BUTTON|POPUP_MASK_CHECKBUTTON|POPUP_MASK_BTN_TEXT,
- TELEPHONY_SYSPOPUP_STMS_TITLE_NO_SIM,
- TELEPHONY_SYSPOPUP_STMS_BODY_SIM_NOT_PRESENTED_EMERGENCY_CALL_POSSIBLE,
- TELEPHONY_SYSPOPUP_STMS_CHECKBOX_DONT_REPEAT,
- sim_not_present_clicked_cb1,
- NULL,
- 0,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BTN_OK,
- NULL,
- NULL
-#endif
- },
-
- /* 2 */
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
- { TPOPUP_EVENT_SIM_REMOVED, IPC_MSG_SIM_CARD_REMOVED,
- TPOPUP_PRIORITY_TOP,
- POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_TEXT,
- TELEPHONY_SYSPOPUP_STMS_TITLE_RESTART,
- TELEPHONY_SYSPOPUP_STMS_BODY_SIM_REMOVAL,
- NULL,
- sim_removed_clicked_cb1,
- sim_removed_clicked_cb2,
- 0,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BTN_COM_CANCEL,
- TELEPHONY_SYSPOPUP_STMS_BTN_COM_RESTART,
- NULL
- },
-#else
- { TPOPUP_EVENT_SIM_REMOVED, IPC_MSG_SIM_CARD_REMOVED,
- TPOPUP_PRIORITY_TOP,
- POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_IMAGE,
- TELEPHONY_SYSPOPUP_STMS_TITLE_NO_SIM,
- TELEPHONY_SYSPOPUP_STMS_BODY_SIM_REMOVAL,
- NULL,
- sim_removed_clicked_cb1,
- sim_removed_clicked_cb2,
- 0,
- NULL,
- DELETE_BUTTON_IMAGE,
- CHECK_BUTTON_IMAGE,
- NULL
- },
-#endif
-
- /* 3 */
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
- { TPOPUP_EVENT_SIM_ERROR, IPC_MSG_SIM_CARD_ERROR,
- TPOPUP_PRIORITY_MID,
- POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_TEXT,
- TELEPHONY_SYSPOPUP_STMS_TITLE_RESTART,
- TELEPHONY_SYSPOPUP_STMS_BODY_SIM_CRASH,
- NULL,
- sim_removed_clicked_cb1,
- sim_removed_clicked_cb2,
- 0,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BTN_COM_CANCEL,
- TELEPHONY_SYSPOPUP_STMS_BTN_COM_RESTART,
- NULL
- },
-#else
- { TPOPUP_EVENT_SIM_ERROR, IPC_MSG_SIM_CARD_ERROR,
- TPOPUP_PRIORITY_MID,
- POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_IMAGE,
- TELEPHONY_SYSPOPUP_STMS_TITLE_RESTART,
- TELEPHONY_SYSPOPUP_STMS_BODY_SIM_ERROR,
- NULL,
- sim_removed_clicked_cb1,
- sim_removed_clicked_cb2,
- 0,
- NULL,
- DELETE_BUTTON_IMAGE,
- CHECK_BUTTON_IMAGE,
- NULL
- },
-#endif
-
- /* 4 */
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
- { TPOPUP_EVENT_SIM_CRASHED, IPC_MSG_SIM_CARD_CRASHED,
- TPOPUP_PRIORITY_TOP,
- POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_TEXT,
- TELEPHONY_SYSPOPUP_STMS_TITLE_RESTART,
- TELEPHONY_SYSPOPUP_STMS_BODY_SIM_CRASH,
- NULL,
- sim_removed_clicked_cb1,
- sim_removed_clicked_cb2,
- 0,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BTN_COM_CANCEL,
- TELEPHONY_SYSPOPUP_STMS_BTN_COM_RESTART,
- NULL
- },
-#else
- { TPOPUP_EVENT_SIM_CRASHED, IPC_MSG_SIM_CARD_CRASHED,
- TPOPUP_PRIORITY_TOP,
- POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_IMAGE,
- TELEPHONY_SYSPOPUP_STMS_TITLE_RESTART,
- TELEPHONY_SYSPOPUP_STMS_BODY_SIM_ERROR,
- NULL,
- sim_removed_clicked_cb1,
- sim_removed_clicked_cb2,
- 0,
- NULL,
- DELETE_BUTTON_IMAGE,
- CHECK_BUTTON_IMAGE,
- NULL
- },
-#endif
-
- /* 5 */
- { TPOPUP_EVENT_NETWORK_MANUAL_FAIL_POPUP, IPC_MSG_NETWORK_MANUAL_FAIL_POPUP,
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
- TPOPUP_PRIORITY_MID,
- POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_IMAGE,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BODY_MANUAL_SELECTION_FAILED,
- NULL,
- network_manual_fail_cb1,
- network_manual_fail_cb2,
- 0,
- NULL,
- DELETE_BUTTON_IMAGE,
- CHECK_BUTTON_IMAGE,
- NULL
-#endif
- },
-
- /* 6 */
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
- { TPOPUP_EVENT_NETWORK_DATA_ROAMING_POPUP, IPC_MSG_NETWORK_DATA_ROAMING_POPUP,
- TPOPUP_PRIORITY_MID,
- POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_CHECKBUTTON|POPUP_MASK_1BUTTON|POPUP_MASK_BTN_TEXT,
- TELEPHONY_SYSPOPUP_STMS_TITLE_DATA_ROAMING,
- TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING,
- TELEPHONY_SYSPOPUP_STMS_CHECKBOX_ENABLE_ROAMING,
- mobile_network_data_roaming_cb1,
- NULL,
- 0,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BTN_OK,
- NULL,
- NULL},
-#else
- { TPOPUP_EVENT_NETWORK_DATA_ROAMING_POPUP, IPC_MSG_NETWORK_DATA_ROAMING_POPUP,
- TPOPUP_PRIORITY_MID,
- POPUP_MASK_TEXT|POPUP_MASK_CHECKBUTTON|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_IMAGE,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING,
- TELEPHONY_SYSPOPUP_STMS_CHECKBOX_DONT_REPEAT,
- network_data_roaming_cb1,
- network_data_roaming_cb2,
- 0,
- NULL,
- DELETE_BUTTON_IMAGE,
- CHECK_BUTTON_IMAGE,
- NULL
- },
-#endif
-
- /* 7 */
- { TPOPUP_EVENT_NITZ_TIME_UPDATE, IPC_MSG_DISPLAY_NITZ_TIME_UPDATE,
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
- TPOPUP_PRIORITY_MID,
- POPUP_MASK_TOAST|POPUP_MASK_TEXT|POPUP_MASK_TIMEOUT,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BODY_NITZ_UPDATE,
- NULL,
- NULL,
- NULL,
- 4.0,
- NULL,
- NULL,
- NULL,
- NULL
-#endif
- },
-
- /* 8 */
- { TPOPUP_EVENT_NITZ_MANUAL_DATE_AND_TIME, IPC_MSG_NITZ_MANUL_DATE_AND_TIME,
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
- TPOPUP_PRIORITY_MID,
- POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_IMAGE,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BODY_NITZ_MANUAL_DATE_AND_TIME,
- NULL,
- nitz_manual_date_time_cb1,
- nitz_manual_date_time_cb2,
- 0,
- NULL,
- DELETE_BUTTON_IMAGE,
- CHECK_BUTTON_IMAGE,
- NULL
-#endif
- },
-
- /* 9 */
- { TPOPUP_EVENT_DISPLAY_NETWORK_LU_REJECT_CAUSE, IPC_MSG_DISPLAY_NETWORK_LU_REJECT_CAUSE,
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
- TPOPUP_PRIORITY_MID,
- POPUP_MASK_TEXT|POPUP_MASK_1BUTTON|POPUP_MASK_TIMEOUT|POPUP_MASK_BTN_TEXT,
- NULL,
- NULL,
- NULL,
- display_network_lu_reject_cb1,
- NULL,
- 120.0,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BTN_OK,
- NULL,
- NULL
-#endif
- },
-
- /* 10 */
- { TPOPUP_EVENT_NETWORK_EMERGENCY_CB_MODE_ENTER, IPC_MSG_NETWORK_EMERGENCY_CB_MODE_ENTER, },
-
- /* 11 */
- { TPOPUP_EVENT_NETWORK_EMERGENCY_CB_MODE_EXIT, IPC_MSG_NETWORK_EMERGENCY_CB_MODE_EXIT, },
-
- /* 12 */
- { TPOPUP_EVENT_NETWORK_EMERGENCY_CB_MODE_READY, IPC_MSG_NETWORK_EMERGENCY_CB_MODE_READY, },
-
- /* 13 */
- { TPOPUP_EVENT_CALL_DISPLAY_INFORMATION, IPC_CALL_DISPLAY_INFORMATION, },
-
- /* 14 */
- { TPOPUP_EVENT_MSG_DISPLAY_MIP_ERROR_CAUSE, IPC_MSG_DISPLAY_MIP_ERROR_CAUSE, },
-
- /* 15 */
- { TPOPUP_EVENT_NETWORK_ACTIVATION_MODE, IPC_MSG_NETWORK_ACTIVATION_MODE, },
-
- /* 16 */
- { TPOPUP_EVENT_NETWORK_ACTIVATION_PASS, IPC_MSG_NETWORK_ACTIVATION_PASS, },
-
- /* 17 */
- { TPOPUP_EVENT_NETWORK_ACTIVATION_CANCEL, "", },
-
- /* 18 */
- { TPOPUP_EVENT_NETWORK_ACTIVATION_FAIL, IPC_MSG_NETWORK_ACTIVATION_FAIL, },
-
- /* 19*/
- { TPOPUP_EVENT_NETWORK_ACTIVATION_FAIL_3TIMES, IPC_MSG_NETWORK_ACTIVATION_FAIL_3TIMES, },
-
- /* 20 */
- { TPOPUP_EVENT_NETWORK_ACTIVATION_OTAPA_COMMITTED, IPC_MSG_NETWORK_ACTIVATION_OTAPA_COMMITTED, },
-
- /* 21 */
- { TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_MODE, IPC_MSG_NETWORK_SKT_ACTIVATION_MODE,
- },
-
-
- /* 22 */
- { TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_ONGOING, IPC_MSG_NETWORK_SKT_ACTIVATION_ONGOING,
- },
-
- /* 23 */
- { TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_PASS, IPC_MSG_NETWORK_SKT_ACTIVATION_PASS,
- },
-
- /* 24 */
- { TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_FAIL, IPC_MSG_NETWORK_SKT_ACTIVATION_FAIL,
- },
- /* 25 */
- { TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_NOT_ACTIAVTED_SIM, IPC_MSG_NETWORK_SKT_ACTIVATION_NOT_ACTIVATED_SIM,
- },
-
- /* 26 */
- { TPOPUP_EVENT_NETWORK_ACTIVATION_ACTIVATING, "", },
-
- /* 27 */
- { TPOPUP_EVENT_ESIM_PROFILE_ACTIVATION_ONGOING, IPC_MSG_ESIM_PROFILE_ACTIVATION_ONGOING, },
-
- /* 28 */
- { TPOPUP_EVENT_ESIM_PROFILE_ACTIVATION_PASS, IPC_MSG_ESIM_PROFILE_ACTIVATION_PASS, },
-
- /* 29 */
- { TPOPUP_EVENT_ESIM_PROFILE_ACTIVATION_FAIL, IPC_MSG_ESIM_PROFILE_ACTIVATION_FAIL, },
-
- /* 30 */
- { TPOPUP_EVENT_ESIM_PROFILE_NEW_PROFILE_DETECT, IPC_MSG_ESIM_PROFILE_NEW_PROFILE_DETECT, },
-
- /* 31 */
- { TPOPUP_EVENT_ESIM_PROFILE_ENABLE_PROFILE_FAIL, IPC_MSG_ESIM_PROFILE_ACTIVATION_FAIL, },
-
- /* 32 */
- { TPOPUP_EVENT_ESIM_PROFILE_ENABLE_PROFILE_ONGOING, IPC_MSG_ESIM_PROFILE_ENABLE_ONGOING, },
-
- /* 33 */
- { TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0, IPC_MSG_ESIM_PROFILE_RESET_SAMSUNGPHASE0, },
-
- /* 34 */
- { TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_CONTINUE, "", },
-
- /* 35 */
- { TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_INITIALIZING_ONGOING, "", },
-
- /* 36 */
- { TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_RESET_FAIL, "", },
-
- /* 37 */
- { TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_RESET_SUCCESS, "", },
-
-
- /* 38 */
- { TPOPUP_EVENT_IMEI_CERTI_FAIL, IPC_MSG_IMEI_CERTI_FAIL,
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
- TPOPUP_PRIORITY_ALWAYS_TOP,
- POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_1BUTTON|POPUP_MASK_BTN_TEXT,
- TELEPHONY_SYSPOPUP_STMS_BODY_IMEI_CERTI_FAIL_TITLE,
- TELEPHONY_SYSPOPUP_STMS_BODY_IMEI_CERTI_FAIL_PROMPT,
- NULL,
- imei_certi_fail_clicked_cb1,
- NULL,
- 0,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BTN_OK,
- NULL,
- NULL
-#endif
- },
- /* 39 */
- { TPOPUP_EVENT_NETWORK_VZW_ACTIVATING_SIM, IPC_MSG_NETWORK_VZW_ACTIVATION_MODE, },
- /* 40 */
- { TPOPUP_EVENT_NETWORK_VZW_ACTIVATED_SIM, IPC_MSG_NETWORK_VZW_ACTIVATED_SIM, },
- /* 41 */
- { TPOPUP_EVENT_NETWORK_VZW_NOT_ACTIVATED_SIM, IPC_MSG_NETWORK_VZW_NOT_ACTIVATED_SIM, },
-
- /* 42 */
- { TPOPUP_EVENT_DISMISS_NETWORK_LU_REJECT_CAUSE, IPC_MSG_DISMISS_NETWORK_LU_REJECT_CAUSE,
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
- TPOPUP_PRIORITY_HIGH,
-#endif
- },
-
- /* 43 */
- { TPOPUP_EVENT_NETWORK_LGU_ACTIVATION_FAIL_MOBILE_OFF, "",
- },
-
- /* 44 */
- { TPOPUP_EVENT_NETWORK_LGU_ACTIVATION_FAIL_ROAM_NETWORK, "",
- },
-
- /* 45 */
- { TPOPUP_EVENT_DISPLAY_PDP_ACTIVATE_REJECT_CAUSE, IPC_MSG_DISPLAY_PDP_ACTIVATE_REJECT_CAUSE,
- },
- /* 46 */
- { TPOPUP_EVENT_DISPLAY_IMS_403_ERROR_MESSAGE, IPC_MSG_DISPLAY_IMS_403_ERROR_MESSAGE,
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
- TPOPUP_PRIORITY_MID,
- POPUP_MASK_TEXT|POPUP_MASK_1BUTTON|POPUP_MASK_BTN_TEXT,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BODY_IMS_403_ERROR,
- NULL,
- display_ims_403_error_message_cb1,
- NULL,
- 0,
- NULL,
- TELEPHONY_SYSPOPUP_STMS_BTN_OK,
- NULL,
- NULL
-#endif
- },
- /* 99 */
- { TPOPUP_EVENT_MAX, "", },
-};
+++ /dev/null
-/*
- * telephony-syspopup
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Ja-young Gu <jygu@samsung.com>
- *
- * 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.
- */
-
-
-gboolean draw_popup(appdata_t *ad);
-Evas_Object *create_win(appdata_t *ad, const char *name);
-void terminate_win(Evas_Object *win_main);
-void remove_cur_popup(appdata_t *ad);
-gboolean set_window_property(appdata_t *ad);
+++ /dev/null
-/*
- * telephony-syspopup
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Ja-young Gu <jygu@samsung.com>
- *
- * 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.
- */
-
-#ifndef __TELEPHONY_SYSPOPUP_H_
-#define __TELEPHONY_SYSPOPUP_H_
-
-#include <Elementary.h>
-#include <dlog.h>
-#include <stdio.h>
-#include <appcore-efl.h>
-#include <glib.h>
-#include <alarm.h>
-#include <bundle_internal.h>
-
-
-
-#define EXPORT __attribute__((visibility("default")))
-
-#if !defined(PACKAGE)
-#define PACKAGE "org.tizen.telephony-syspopup"
-#endif
-
-#if !defined(LOCALEDIR)
-#define LOCALEDIR "/usr/apps/org.tizen.telephony-syspopup/res/locale"
-#endif
-
-#if !defined(EDJDIR)
-#define EDJDIR "/usr/apps/org.tizen.telephony-syspopup/res/edje/"
-#endif
-
-#if !defined(PREFIX)
-#define PREFIX "/usr/apps/"PACKAGE
-#endif
-
-#ifdef _
-#undef _
-#endif
-#define _(str) dgettext(PACKAGE, str)
-
-#undef LOG_TAG
-#define LOG_TAG "TELEPHONY_SYSPOPUP"
-#define DBG(format, args...) LOGD(format, ##args)
-#define INFO(format, args...) LOGI(format, ##args)
-#define WARN(format, args...) LOGW(format, ##args)
-#define ERR(format, args...) LOGE(format, ##args)
-
-
-
-typedef enum {
- TPOPUP_EVENT_NONE = 0,
- TPOPUP_EVENT_SIM_NOT_PRESENTED, // intialliy NO SIM card
- TPOPUP_EVENT_SIM_REMOVED, // run-time SIM card removal
- TPOPUP_EVENT_SIM_ERROR, // initially SIM card error
- TPOPUP_EVENT_SIM_CRASHED, // run-time SIM card error
-
- TPOPUP_EVENT_NETWORK_MANUAL_FAIL_POPUP = 5,
- TPOPUP_EVENT_NETWORK_DATA_ROAMING_POPUP,
- TPOPUP_EVENT_NITZ_TIME_UPDATE,
- TPOPUP_EVENT_NITZ_MANUAL_DATE_AND_TIME,
- TPOPUP_EVENT_DISPLAY_NETWORK_LU_REJECT_CAUSE,
-
- TPOPUP_EVENT_NETWORK_EMERGENCY_CB_MODE_ENTER = 10,
- TPOPUP_EVENT_NETWORK_EMERGENCY_CB_MODE_EXIT,
- TPOPUP_EVENT_NETWORK_EMERGENCY_CB_MODE_READY,
- TPOPUP_EVENT_CALL_DISPLAY_INFORMATION,
- TPOPUP_EVENT_MSG_DISPLAY_MIP_ERROR_CAUSE,
-
- TPOPUP_EVENT_NETWORK_ACTIVATION_MODE = 15,
- TPOPUP_EVENT_NETWORK_ACTIVATION_PASS,
- TPOPUP_EVENT_NETWORK_ACTIVATION_CANCEL,
- TPOPUP_EVENT_NETWORK_ACTIVATION_FAIL,
- TPOPUP_EVENT_NETWORK_ACTIVATION_FAIL_3TIMES,
-
- TPOPUP_EVENT_NETWORK_ACTIVATION_OTAPA_COMMITTED = 20,
- TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_MODE,
- TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_ONGOING,
- TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_PASS,
- TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_FAIL,
-
- TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_NOT_ACTIAVTED_SIM = 25,
- TPOPUP_EVENT_NETWORK_ACTIVATION_ACTIVATING,
- TPOPUP_EVENT_ESIM_PROFILE_ACTIVATION_ONGOING,
- TPOPUP_EVENT_ESIM_PROFILE_ACTIVATION_PASS,
- TPOPUP_EVENT_ESIM_PROFILE_ACTIVATION_FAIL,
- TPOPUP_EVENT_ESIM_PROFILE_NEW_PROFILE_DETECT = 30,
- TPOPUP_EVENT_ESIM_PROFILE_ENABLE_PROFILE_FAIL,
- TPOPUP_EVENT_ESIM_PROFILE_ENABLE_PROFILE_ONGOING,
- TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0,
- TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_CONTINUE,
- TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_INITIALIZING_ONGOING = 35,
- TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_RESET_FAIL,
- TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_RESET_SUCCESS,
- TPOPUP_EVENT_IMEI_CERTI_FAIL,
- TPOPUP_EVENT_NETWORK_VZW_ACTIVATING_SIM,
- TPOPUP_EVENT_NETWORK_VZW_ACTIVATED_SIM = 40,
- TPOPUP_EVENT_NETWORK_VZW_NOT_ACTIVATED_SIM,
- TPOPUP_EVENT_DISMISS_NETWORK_LU_REJECT_CAUSE,
- TPOPUP_EVENT_NETWORK_LGU_ACTIVATION_FAIL_MOBILE_OFF,
- TPOPUP_EVENT_NETWORK_LGU_ACTIVATION_FAIL_ROAM_NETWORK,
- TPOPUP_EVENT_DISPLAY_PDP_ACTIVATE_REJECT_CAUSE = 45,
- TPOPUP_EVENT_DISPLAY_IMS_403_ERROR_MESSAGE,
- TPOPUP_EVENT_MAX = 99
-} tpopup_event_t;
-
-#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
-typedef enum {
- TNOTI_EVENT_NONE = 0,
- TNOTI_EVENT_SIM_NOT_PRESENTED, // intialliy NO SIM card
- TNOTI_EVENT_ADD_DATA_ROAMING,
- TNOTI_EVENT_DEL_DATA_ROAMING,
- TNOTI_EVENT_ADD_SIM1_NO_SERVICE,
- TNOTI_EVENT_DEL_SIM1_NO_SERVICE,
- TNOTI_EVENT_ADD_SIM2_NO_SERVICE,
- TNOTI_EVENT_DEL_SIM2_NO_SERVICE,
-
- TNOTI_EVENT_MAX = 99
-} tnoti_event_t;
-#endif
-
-typedef struct {
- tpopup_event_t event;
- char *param;
-} tpopup_popup_t;
-
-typedef struct {
- gboolean is_showing;
- Evas_Object *win_main;
- Evas_Object *popup;
- Evas_Object *layout_main;
- Evas_Object *layout_inner;
- Evas_Object *scroller;
- Evas_Object *label;
- Evas_Object *checkbox;
- Evas_Object *btn1;
- Evas_Object *btn2;
- Evas_Object *btn_icon1;
- Evas_Object *btn_icon2;
- Evas_Object *btn_body;
- tpopup_event_t event;
- char *param;
- bundle *b;
-
- GQueue *q;
- alarm_id_t timer_id;
- Ecore_Event_Handler *keyup_handler;
-} appdata_t;
-
-
-
-
-
-
-void process_queue(appdata_t *ad);
-void add_popup(appdata_t *ad, tpopup_event_t new_event, const char *param);
-
-
-#endif /* __TELEPHONY_SYSPOPUP_H_ */
+++ /dev/null
-/*
- * telephony-syspopup
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Ja-young Gu <jygu@samsung.com>
- *
- * 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 <Ecore_X.h>
-//#include <utilX.h>
-#include <notification.h>
-#include <notification_internal.h>
-#include <notification_text_domain.h>
-
-#define DOMAIN_NAME PACKAGE
-#define LOCALE_DIR PREFIX"/res/locale/"
-
-#define NOTI_RETRY_INTERVAL_SECOND 2
-#define NOTI_RETRY_MAX_COUNT 5
-
-
-/* PKGNAME */
-#define PKGNAME_SIM_NOT_PRESENTED "org.tizen.telephony-syspopup.sim_not_presented"
-#define PKGNAME_DATA_ROAMING "org.tizen.telephony-syspopup.network_data_roaming_popup"
-#define PKGNAME_SIM1_NOSVC_AFTER_MANUAL_SEL "org.tizen.telephony-syspopup.network_sim1_nosvc_after_manual_sel"
-#define PKGNAME_SIM2_NOSVC_AFTER_MANUAL_SEL "org.tizen.telephony-syspopup.network_sim2_nosvc_after_manual_sel"
-
-/* IMAGE */
-#define QP_PRELOAD_NOTI_ICON_PATH "/usr/apps/org.tizen.quickpanel/shared/res/noti_icons"
-#define INDICATOR_PRELOAD_INDI_ICON_PATH "/usr/apps/org.tizen.indicator/res/icons/RSSI"
-
-
-#define NOTI_ERROR_IMAGE QP_PRELOAD_NOTI_ICON_PATH"/Etc/noti_error.png"
-#define INDI_NO_SIM_IMAGE INDICATOR_PRELOAD_INDI_ICON_PATH"/B03_RSSI_NoSim.png"
-#define NOTI_NO_SIM_IMAGE QP_PRELOAD_NOTI_ICON_PATH"/Multi SIM/noti_no_sim.png"
-#define NOTI_SIM1_IMAGE QP_PRELOAD_NOTI_ICON_PATH"/No service/noti_no_service_01.png"
-#define NOTI_SIM2_IMAGE QP_PRELOAD_NOTI_ICON_PATH"/No service/noti_no_service_02.png"
-
-#define SETTINGS_APP_MOBILE_NETWORK "http://samsung.com/appcontrol/operation/setting/mobile_network"
-#define SETTINGS_DEFAULT_APP_ID "setting-network-efl"
-#define SETTINGS_MOBILE_NETWORK_APP_ID "org.tizen.setting.network"
-#define SETTINGS_MOBILE_NETWORK_SERVICE_PROVIDERS_APP_ID "org.tizen.setting.network-operator"
-
-#define TELEPHONY_SYSPOPUP_STMS_NOTI_DATA_ROAMING "IDS_COM_BODY_DATA_ROAMING"
-#define TELEPHONY_SYSPOPUP_STMS_NOTI_TAP_HERE_TO_ENABLE "IDS_QP_SBODY_TAP_HERE_TO_ENABLE_ABB"
-#define TELEPHONY_SYSPOPUP_STMS_NOTI_NO_SERVICE "IDS_ST_MBODY_NO_SERVICE"
-#define TELEPHONY_SYSPOPUP_STMS_NOTI_SELECTed_NETWORK_UNAVAILABLE "IDS_ST_SBODY_SELECTED_NETWORK_NOT_AVAILABLE_M_STATUS_ABB"
-
-typedef enum {
- NOTI_MASK_NONE = 0,
- NOTI_MASK_ADD = 0x1,
- NOTI_MASK_DEL = 0x2,
- NOTI_MASK_TITLE = 0x10,
- NOTI_MASK_TEXT = 0x20,
- NOTI_MASK_INDI_ICON = 0x40,
- NOTI_MASK_NOTI_ICON = 0x80,
- NOTI_MASK_APP_LAUNCH = 0x100,
- NOTI_MASK_TIMESTAMP = 0x200,
-} tnoti_property_mask;
-
-typedef struct {
- tnoti_event_t event;
- char *ipc_msg;
- tnoti_property_mask mask;
- notification_type_e type;
- char *pkgname;
- char *title;
- char *text;
- enum _notification_display_applist applist;
- char *app_id;
- char *noti_icon_path;
- char *indi_icon_path;
- time_t timestamp;
-} noti_config_map;
-
-typedef struct {
- tnoti_event_t event;
- char *param;
- int count;
- appdata_t *ad;
-} tpopup_noti_t;
-
-tnoti_event_t find_noti_msg(const char *msg);
-gboolean process_new_noti(appdata_t *ad, tnoti_event_t new_event, const char *param);
-gboolean add_notification(appdata_t *ad, tnoti_event_t event, const char *param);
-gboolean check_duplicated_noti(tnoti_event_t event);
-
-
-
-#define NUM_NOTI_CONFIGS (sizeof(g_noti_configs) / sizeof(g_noti_configs[0]))
-
-static const noti_config_map g_noti_configs[] = {
- /* 0 */
- { TNOTI_EVENT_NONE, "", },
-
- /* 1 */
- { TNOTI_EVENT_SIM_NOT_PRESENTED, IPC_MSG_SIM_NOT_PRESENTED,
- NOTI_MASK_ADD|NOTI_MASK_TITLE|NOTI_MASK_TEXT|NOTI_MASK_INDI_ICON|NOTI_MASK_NOTI_ICON|NOTI_MASK_TIMESTAMP,
- NOTIFICATION_TYPE_ONGOING,
- PKGNAME_SIM_NOT_PRESENTED,
- TELEPHONY_SYSPOPUP_STMS_TITLE_NO_SIM_INSERTED,
- TELEPHONY_SYSPOPUP_STMS_BODY_NO_SIM,
- NOTIFICATION_DISPLAY_APP_ALL,
- NULL,
- NOTI_NO_SIM_IMAGE,
- INDI_NO_SIM_IMAGE,
- 0
- },
-
- /* 2 */
- { TNOTI_EVENT_ADD_DATA_ROAMING, "",
- NOTI_MASK_ADD|NOTI_MASK_TITLE|NOTI_MASK_TEXT|NOTI_MASK_NOTI_ICON|NOTI_MASK_TIMESTAMP|NOTI_MASK_APP_LAUNCH,
- NOTIFICATION_TYPE_ONGOING,
- PKGNAME_DATA_ROAMING,
- TELEPHONY_SYSPOPUP_STMS_NOTI_DATA_ROAMING,
- TELEPHONY_SYSPOPUP_STMS_NOTI_TAP_HERE_TO_ENABLE,
- NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY,
- SETTINGS_MOBILE_NETWORK_APP_ID,
- NOTI_ERROR_IMAGE,
- NULL,
- 0
- },
-
- /* 3 */
- { TNOTI_EVENT_DEL_DATA_ROAMING, IPC_MSG_NETWORK_DATA_ROAMING_POPUP_DELETE,
- NOTI_MASK_DEL,
- NOTIFICATION_TYPE_ONGOING,
- PKGNAME_DATA_ROAMING,
- NULL,
- NULL,
- 0,
- SETTINGS_MOBILE_NETWORK_APP_ID,
- NULL,
- NULL,
- 0
- },
-
- /* 4 */
- { TNOTI_EVENT_ADD_SIM1_NO_SERVICE, IPC_MSG_NETWORK_ADD_SIM1_MANUAL_FAIL_NOTI,
- NOTI_MASK_ADD|NOTI_MASK_TITLE|NOTI_MASK_TEXT|NOTI_MASK_NOTI_ICON|NOTI_MASK_TIMESTAMP|NOTI_MASK_APP_LAUNCH,
- NOTIFICATION_TYPE_NOTI,
- PKGNAME_SIM1_NOSVC_AFTER_MANUAL_SEL,
- TELEPHONY_SYSPOPUP_STMS_NOTI_NO_SERVICE,
- TELEPHONY_SYSPOPUP_STMS_NOTI_SELECTed_NETWORK_UNAVAILABLE,
- NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY,
- SETTINGS_MOBILE_NETWORK_SERVICE_PROVIDERS_APP_ID,
- NOTI_SIM1_IMAGE,
- NULL,
- -1 /* -1 : do not display time stamp in notification */
- },
-
- /* 5 */
- { TNOTI_EVENT_DEL_SIM1_NO_SERVICE, IPC_MSG_NETWORK_DEL_SIM1_MANUAL_FAIL_NOTI,
- NOTI_MASK_DEL,
- NOTIFICATION_TYPE_NOTI,
- PKGNAME_SIM1_NOSVC_AFTER_MANUAL_SEL,
- NULL,
- NULL,
- 0,
- SETTINGS_MOBILE_NETWORK_SERVICE_PROVIDERS_APP_ID,
- NULL,
- NULL,
- 0
- },
-
- /* 6 */
- { TNOTI_EVENT_ADD_SIM2_NO_SERVICE, IPC_MSG_NETWORK_ADD_SIM2_MANUAL_FAIL_NOTI,
- NOTI_MASK_ADD|NOTI_MASK_TITLE|NOTI_MASK_TEXT|NOTI_MASK_NOTI_ICON|NOTI_MASK_TIMESTAMP|NOTI_MASK_APP_LAUNCH,
- NOTIFICATION_TYPE_NOTI,
- PKGNAME_SIM2_NOSVC_AFTER_MANUAL_SEL,
- TELEPHONY_SYSPOPUP_STMS_NOTI_NO_SERVICE,
- TELEPHONY_SYSPOPUP_STMS_NOTI_SELECTed_NETWORK_UNAVAILABLE,
- NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY,
- SETTINGS_MOBILE_NETWORK_SERVICE_PROVIDERS_APP_ID,
- NOTI_SIM2_IMAGE,
- NULL,
- -1 /* -1 : do not display time stamp in notification */
- },
-
- /* 7 */
- { TNOTI_EVENT_DEL_SIM2_NO_SERVICE, IPC_MSG_NETWORK_DEL_SIM2_MANUAL_FAIL_NOTI,
- NOTI_MASK_DEL,
- NOTIFICATION_TYPE_NOTI,
- PKGNAME_SIM2_NOSVC_AFTER_MANUAL_SEL,
- NULL,
- NULL,
- 0,
- SETTINGS_MOBILE_NETWORK_SERVICE_PROVIDERS_APP_ID,
- NULL,
- NULL,
- 0
- },
-};
-
+++ /dev/null
-<manifest>
- <request>
- <domain name="_"/>
- </request>
-</manifest>
\ No newline at end of file
--- /dev/null
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
\ No newline at end of file
-%define major 0
-%define minor 1
-%define patchlevel 11
-
-%define _usrdir /usr
-%define _appdir %{_usrdir}/apps
-
-Name: org.tizen.telephony-syspopup
-Version: %{major}.%{minor}.%{patchlevel}
-Release: 1
-License: Apache-2.0
-Summary: Telephony System pop-up
-Group: TO_BE/FILLED_IN
-Source0: %{name}-%{version}.tar.gz
-BuildRequires: cmake
-BuildRequires: gettext-devel
-BuildRequires: python-xml
-BuildRequires: python
-BuildRequires: pkgconfig(aul)
-BuildRequires: pkgconfig(appcore-efl)
-BuildRequires: pkgconfig(appsvc)
-BuildRequires: pkgconfig(bundle)
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(ecore-input)
-BuildRequires: pkgconfig(elementary)
-BuildRequires: pkgconfig(ethumb)
-BuildRequires: pkgconfig(feedback)
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(notification)
-BuildRequires: pkgconfig(syspopup)
-BuildRequires: pkgconfig(syspopup-caller)
-BuildRequires: pkgconfig(capi-ui-efl-util)
-BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(tapi)
-BuildRequires: pkgconfig(alarm-service)
-BuildRequires: pkgconfig(capi-appfw-application)
-BuildRequires: pkgconfig(capi-appfw-app-control)
-BuildRequires: pkgconfig(capi-system-device)
-BuildRequires: pkgconfig(deviced)
-BuildRequires: pkgconfig(capi-appfw-app-manager)
-BuildRequires: efl-extension-devel
-BuildRequires: edje-bin
+Name: org.tizen.telephony-syspopup
+Version: 0.1.11
+Release: 1
+License: Apache-2.0
+Summary: Telephony System pop-up
+Group: Applications/Telephony
+Source0: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+BuildRequires: cmake
+BuildRequires: gettext-devel
+BuildRequires: python-xml
+BuildRequires: python
+BuildRequires: pkgconfig(aul)
+BuildRequires: pkgconfig(appcore-efl)
+BuildRequires: pkgconfig(appsvc)
+BuildRequires: pkgconfig(bundle)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(ecore-input)
+BuildRequires: pkgconfig(elementary)
+BuildRequires: pkgconfig(ethumb)
+BuildRequires: pkgconfig(feedback)
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(notification)
+BuildRequires: pkgconfig(syspopup)
+BuildRequires: pkgconfig(syspopup-caller)
+BuildRequires: pkgconfig(capi-ui-efl-util)
+BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(tapi)
+BuildRequires: pkgconfig(alarm-service)
+BuildRequires: pkgconfig(capi-appfw-application)
+BuildRequires: pkgconfig(capi-appfw-app-control)
+BuildRequires: pkgconfig(capi-system-device)
+BuildRequires: pkgconfig(deviced)
+BuildRequires: pkgconfig(capi-appfw-app-manager)
+BuildRequires: efl-extension-devel
+BuildRequires: edje-bin
%description
Telephony System pop-up
+%global _appdir %{_prefix}/apps
+
%prep
%setup -q
+cp %{SOURCE1001} ./%{name}.manifest
%build
-%if 0%{?tizen_build_binary_release_type_eng}
-export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
-export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
-%endif
-
-%cmake -DCMAKE_INSTALL_PREFIX=%{_appdir}/org.tizen.telephony-syspopup . \
+%cmake . -DCMAKE_VERBOSE_MAKEFILE=OFF \
+ -DCMAKE_INSTALL_PREFIX=%{_appdir}/%{name} \
%if "%{?sec_product_feature_display_resolution}" == "1080x1920"
-DDISPLAY_RESOLUTION=HD \
%endif
make %{?_smp_mflags}
-%post
-/sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
%install
%make_install
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
%files
-%defattr(-,root,root,-)
%manifest %{name}.manifest
-%{_usrdir}/share/packages/%{name}.xml
-%{_appdir}/org.tizen.telephony-syspopup/bin/telephony-syspopup
-%{_appdir}/org.tizen.telephony-syspopup/res/locale/*/*/org.tizen.telephony-syspopup.mo
-%{_appdir}/org.tizen.telephony-syspopup/res/images/*.png
-%{_appdir}/org.tizen.telephony-syspopup/res/edje/*
-%license LICENSE
+%{_datadir}/packages/%{name}.xml
+%{_appdir}/%{name}/bin/telephony-syspopup
+%{_appdir}/%{name}/res/locale/*/*/%{name}.mo
+%{_appdir}/%{name}/res/images/*.png
+%{_appdir}/%{name}/res/edje/*
+%license LICENSE.APLv2
#include "telephony_syspopup_noti.h"
#endif
-syspopup_handler handler = {
+static syspopup_handler handler = {
.def_term_fn = NULL,
.def_timeout_fn = NULL
};
--- /dev/null
+/*
+ * telephony-syspopup
+ *
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Ja-young Gu <jygu@samsung.com>
+ *
+ * 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.
+ */
+
+/* pop-up string */
+/* Title */
+#define TELEPHONY_SYSPOPUP_STMS_TITLE_NO_SIM "IDS_ST_HEADER_NO_SIM_CARD_ABB"
+#define TELEPHONY_SYSPOPUP_STMS_TITLE_RESTART "IDS_ST_HEADER_RESTART_DEVICE"
+#define TELEPHONY_SYSPOPUP_STMS_TITLE_NO_SIM_INSERTED "IDS_SIM_POP_NO_SIM_CARD_INSERTED"
+#define TELEPHONY_SYSPOPUP_STMS_TITLE_DATA_ROAMING "IDS_ST_HEADER_NO_NETWORK_CONNECTION_ABB"
+
+/* Body */
+#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_NOT_PRESENTED_EMERGENCY_CALL_POSSIBLE "IDS_WMGR_POP_UNABLE_TO_DETECT_A_SIM_CARD_ONLY_EMERGENCY_CALLS_CAN_BE_MADE_MSG"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_NOT_PRESENTED_EMERGENCY_CALL_IMPOSSIBLE "IDS_WMGR_POP_UNABLE_TO_DETECT_A_SIM_CARD_TO_CHECK_FOR_YOUR_SIM_CARD_AGAIN_TAP_RESTART_TO_PROTECT_AGAINST_WATER_DAMAGE_FIRMLY_SEAL_THE_SIM_CARD_COVER_BEFORE_USE"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_NOT_PRESENTED_AUS_NZL "IDS_WNOTI_POP_UNABLE_TO_DETECT_A_SIM_CARD_EMERGENCY_CALLS_MAY_BE_AVAILABLE_DEPENDING_ON_WHERE_YOU_ARE_TO_PROTECT_AGAINST_WATER_DAMAGE_FIRMLY_SEAL_THE_SIM_CARD_COVER_BEFORE_USE"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_NO_SIM "IDS_COM_POP_INSERT_SIM_CARD"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_CRASH "IDS_SIM_BODY_INVALID_SIM_CARD"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_ERROR "IDS_LCKSCN_NPBODY_INVALID_SIM_CARD_INSERTED"
+
+#define TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING_2 "IDS_ST_BODY_USING_MOBILE_DATA_WHEN_ROAMING_WILL_INCUR_EXTRA_CHARGES"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING_ATT "IDS_COM_BODY_ALLOW_DATA_ROAMING_Q_INTERNATIONAL_DATA_ROAMING_CHARGES_APPLY_TO_DATA_USAGE_NOTI_MSG_ATNT"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_MANUAL_SELECTION_FAILED "IDS_ST_POP_SELECTED_NETWORK_NOT_AVAILABLE_SCAN_FOR_NETWORKS_Q"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_MANUAL_SELECTION_FAILED_NA "IDS_ST_POP_SEARCHING_FOR_AVAILABLE_NETWORK_Q_US"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_NITZ_UPDATE "IDS_ST_POP_AUTO_UPDATE_OF_TIME_AND_DATE"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_NITZ_MANUAL_DATE_AND_TIME "IDS_ST_POP_YOUR_NETWORK_DOES_NOT_PROVIDE_DATE_AND_TIME_INFORMATION_TO_SET_THEM_MANUALLY_GO_TO_DATE_AND_TIME_SETTINGS"
+
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
+#define TELEPHONY_SYSPOPUP_STMS_BODY_EMERGENCY_CALL "WDS_LOGS_MBODY_EMERGENCY_CALL_ABB"
+#endif /* TIZEN_FEATURE_DEVICE_TYPE_WEARABLE */
+
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
+#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_REMOVAL "IDS_IDLE_POP_UNABLE_TO_DETECT_YOUR_SIM_CARD_YOUR_DEVICE_WILL_RESTART_TO_CHECK_FOR_YOUR_SIM_CARD"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING "IDS_COM_POP_DATA_ROAMING_IS_DISABLED_CONNECT_TO_WI_FI_NETWORK_INSTEAD_OR_ENABLE_DATA_ROAMING_AND_TRY_AGAIN"
+#else
+#define TELEPHONY_SYSPOPUP_STMS_BODY_SIM_REMOVAL "IDS_IDLE_POP_UNABLE_TO_DETECT_A_SIM_CARD_TO_CHECK_FOR_YOUR_SIM_CARD_AGAIN_YOUR_DEVICE_WILL_RESTART_MSG"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING "IDS_SM_POP_DATA_ROAMING_IS_DISABLED_CONNECT_TO_A_WI_FI_NETWORK_INSTEAD_OR_ENABLE_DATA_ROAMING_AND_TRY_AGAIN"
+#endif
+
+#define TELEPHONY_SYSPOPUP_STMS_BODY_EMERGENCY_CALL "WDS_LOGS_MBODY_EMERGENCY_CALL_ABB"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING "IDS_COM_POP_DATA_ROAMING_IS_DISABLED_CONNECT_TO_WI_FI_NETWORK_INSTEAD_OR_ENABLE_DATA_ROAMING_AND_TRY_AGAIN"
+
+
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
+#define TELEPHONY_SYSPOPUP_STMS_BODY_IMEI_CERTI_FAIL_TITLE "Security Error"
+#define TELEPHONY_SYSPOPUP_STMS_BODY_IMEI_CERTI_FAIL_PROMPT "This phone has been flashed with unauthorized software & is locked. Call your mobile operator for additional support. Please note that repair/return for this issue may have additional cost. Gear will reboot."
+#define TELEPHONY_SYSPOPUP_STMS_BODY_IMS_403_ERROR "IDS_PROV_PO_FAILED_TO_REGISTER_TO_NETWORK_POWER_OFF_YOUR_DEVICE_MSG_KOR_SKT"
+#endif
+/* Button */
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
+#define TELEPHONY_SYSPOPUP_STMS_BTN_OK "IDS_ST_SK_OK"
+#define TELEPHONY_SYSPOPUP_STMS_BTN_COM_RESTART "IDS_COM_SK_RESTART"
+#define TELEPHONY_SYSPOPUP_STMS_BTN_COM_CANCEL "IDS_COM_SK_CANCEL"
+#else
+#define TELEPHONY_SYSPOPUP_STMS_BTN_OK "WDS_ST_BUTTON_OK_ABB"
+#endif
+/* Check box */
+#define TELEPHONY_SYSPOPUP_STMS_CHECKBOX_DONT_REPEAT "IDS_CLOCK_BODY_DONT_REPEAT_ABB"
+#define TELEPHONY_SYSPOPUP_STMS_CHECKBOX_ENABLE_ROAMING "IDS_COM_POP_ENABLE_DATA_ROAMING"
+
+#define IPC_MSG_PARAM1 "param1"
+
+/* SIM */
+#define IPC_MSG_SIM_NOT_PRESENTED "SimNotPresented"
+#define IPC_MSG_SIM_CARD_REMOVED "SimRemoved"
+#define IPC_MSG_SIM_CARD_ERROR "SimError"
+#define IPC_MSG_SIM_CARD_CRASHED "SimCrashed"
+
+/* NETWORK - Display Network LU Reject Cause */
+#define IPC_MSG_DISPLAY_NETWORK_LU_REJECT_CAUSE "DisplayNetworkLuRejectCause"
+#define IPC_MSG_DISMISS_NETWORK_LU_REJECT_CAUSE "DismissNetworkLuRejectCause"
+#define IPC_MSG_DISPLAY_PDP_ACTIVATE_REJECT_CAUSE "display_pdp_activate_reject_cause"
+
+/* NETWORK - Display MIP ERROR Cause */
+#define IPC_MSG_DISPLAY_MIP_ERROR_CAUSE "DisplayMIPErrorCause"
+
+/* NETWORK - Emergency cb mode */
+#define IPC_MSG_NETWORK_EMERGENCY_CB_MODE_ENTER "NetworkEmergencyCbModeEnter"
+#define IPC_MSG_NETWORK_EMERGENCY_CB_MODE_EXIT "NetworkEmergencyCbModeExit"
+#define IPC_MSG_NETWORK_EMERGENCY_CB_MODE_READY "NetworkEmergencyCbModeReady"
+
+/* NETWORK - No Svc after manual network selection */
+#define IPC_MSG_NETWORK_MANUAL_FAIL_POPUP "network_manual_fail_popup"
+
+/* NETWORK - data roaming */
+#define IPC_MSG_NETWORK_DATA_ROAMING_POPUP "network_data_roaming_popup"
+#define IPC_MSG_NETWORK_DATA_ROAMING_POPUP_DELETE "del_network_data_roaming"
+
+/* NETWORK - Fail to get service after successful manual selection */
+#define IPC_MSG_NETWORK_ADD_SIM1_MANUAL_FAIL_NOTI "add_sim1_manual_network_fail_noti"
+#define IPC_MSG_NETWORK_DEL_SIM1_MANUAL_FAIL_NOTI "del_sim1_manual_network_fail_noti"
+#define IPC_MSG_NETWORK_ADD_SIM2_MANUAL_FAIL_NOTI "add_sim2_manual_network_fail_noti"
+#define IPC_MSG_NETWORK_DEL_SIM2_MANUAL_FAIL_NOTI "del_sim2_manual_network_fail_noti"
+
+/* CALL - OTASP */
+#define IPC_CALL_OTASP_OK_SPL_UNLOCKED_NOTI "SPL_unlocked"
+#define IPC_CALL_OTASP_OK_AKEY_EXCESS_NOTI "OK_AKEY_EXCESS_NOTI"
+#define IPC_CALL_OTASP_OK_SSD_UPDATE_NOTI "OK_SSD_UPDATE_NOTI"
+#define IPC_CALL_OTASP_OK_NAM_DWNLD_NOTI "NAM_dwnld_OK!"
+#define IPC_CALL_OTASP_OK_MDN_DWNLD_NOTI "MDN_dwnld_OK!"
+#define IPC_CALL_OTASP_OK_IMSI_DWNLD_NOTI "IMSI_dwnld_OK!"
+#define IPC_CALL_OTASP_OK_PRL_DWNLD_NOTI "PRL_dwnld_OK!"
+#define IPC_CALL_OTASP_OK_COMMIT_NOTI "Commit_Successful"
+#define IPC_CALL_OTASP_OK_PROGRAMMING_NOTI "OK_PROGRAMMING_NOTI"
+#define IPC_CALL_OTASP_SUCCESS_NOTI "Programming_Successful!"
+#define IPC_CALL_OTASP_UNSUCCESS_NOTI "Programming_Unsuccessful!"
+#define IPC_CALL_OTASP_OK_OTAPA_VERIFY_NOTI "OK_OTAPA_VERIFY_NOTI"
+#define IPC_CALL_OTASP_PROGRESS_NOTI "Programming_in_progress"
+#define IPC_CALL_OTASP_FAILURES_EXCESS_SPC_NOTI "FAILURES_EXCESS_SPC_NOTI"
+#define IPC_CALL_OTASP_LOCK_CODE_PW_SET_NOTI "Lock_Code_password_set"
+
+/* CALL - display information */
+#define IPC_CALL_DISPLAY_INFORMATION "DisplayInformation"
+
+/* ACTIVATION */
+#define IPC_MSG_NETWORK_ACTIVATION_MODE "Network_Activation_Mode"
+#define IPC_MSG_NETWORK_ACTIVATION_PASS "Network_Activation_Pass"
+#define IPC_MSG_NETWORK_ACTIVATION_FAIL "Network_Activation_Fail"
+#define IPC_MSG_NETWORK_ACTIVATION_FAIL_3TIMES "Network_Activation_Fail_3Times"
+#define IPC_MSG_NETWORK_ACTIVATION_OTAPA_COMMITTED "Network_Activation_Otapa_Committed"
+#define IPC_MSG_NETWORK_ACTIVATION_CANCEL "Network_Activation_Cancel"
+
+#define IPC_MSG_NETWORK_SKT_ACTIVATION_MODE "Network_SKT_Activation_Mode"
+#define IPC_MSG_NETWORK_SKT_ACTIVATION_ONGOING "Network_SKT_Activation_Ongoing"
+#define IPC_MSG_NETWORK_SKT_ACTIVATION_PASS "Network_SKT_Activation_Pass"
+#define IPC_MSG_NETWORK_SKT_ACTIVATION_FAIL "Network_SKT_Activation_Fail"
+#define IPC_MSG_NETWORK_SKT_ACTIVATION_NOT_ACTIVATED_SIM "Network_SKT_Activation_Not_Activated_SIM"
+#define IPC_MSG_NETWORK_VZW_ACTIVATED_SIM "Network_VZW_Activated_SIM"
+#define IPC_MSG_NETWORK_VZW_NOT_ACTIVATED_SIM "Network_VZW_Not_Activated_SIM"
+#define IPC_MSG_NETWORK_VZW_ACTIVATION_MODE "Network_Vzw_Activation_Mode"
+
+/*E-SIM*/
+#define IPC_MSG_ESIM_PROFILE_ACTIVATION_ONGOING "ESIM_Profile_Activation_Ongoing"
+#define IPC_MSG_ESIM_PROFILE_ACTIVATION_PASS "ESIM_Profile_Activation_Pass"
+#define IPC_MSG_ESIM_PROFILE_ACTIVATION_FAIL "ESIM_Profile_Activation_Fail"
+#define IPC_MSG_ESIM_PROFILE_NEW_PROFILE_DETECT "ESIM_Profile_New_Profile_detect"
+#define IPC_MSG_ESIM_PROFILE_ENABLE_ONGOING "ESIM_Profile_Enable_Ongoing"
+#define IPC_MSG_ESIM_PROFILE_RESET_SAMSUNGPHASE0 "ESIM_Profile_Reset_SamsungPhase0"
+
+/*IMEI*/
+#define IPC_MSG_IMEI_CERTI_FAIL "IMEI_Certi_Fail"
+
+/* NITZ */
+#define IPC_MSG_DISPLAY_NITZ_TIME_UPDATE "DisplayNitzTimeUpdate"
+#define IPC_MSG_NITZ_MANUL_DATE_AND_TIME "nitz_manual_date_and_time"
+
+/* IMS */
+#define IPC_MSG_DISPLAY_IMS_403_ERROR_MESSAGE "display_ims_403_error_message"
+
+/* VCONF */
+#define VCONFKEY_PRIVATE_TELEPHONY_NO_SIM_POPUP_CHECKBOX "db/private/telephony/no_sim_popup_checkbox"
+#define VCONFKEY_PRIVATE_TELEPHONY_DATA_ROAMING_POPUP_CHECKBOX "db/private/telephony/data_roaming_popup_checkbox"
+
+/* Image resource directory */
+#define TELEPHONY_SYSPOPUP_IMAGE_DIR "/usr/apps/org.tizen.telephony-syspopup/res/images/"
+#define DELETE_BUTTON_IMAGE TELEPHONY_SYSPOPUP_IMAGE_DIR"tw_ic_popup_btn_delete.png"
+#define CHECK_BUTTON_IMAGE TELEPHONY_SYSPOPUP_IMAGE_DIR"tw_ic_popup_btn_check.png"
+
+#define MAX_BUF_LEN 1024
+
+typedef enum {
+ TPOPUP_PRIORITY_NONE = 0,
+ TPOPUP_PRIORITY_LOW,
+ TPOPUP_PRIORITY_MID,
+ TPOPUP_PRIORITY_HIGH,
+ TPOPUP_PRIORITY_TOP, // for directly showing.
+ TPOPUP_PRIORITY_ALWAYS_TOP,
+} tpopup_priority;
+
+enum tpopup_operator_group {
+ TPOPUP_OPERATOR_GROUP_NONE = 0,
+ TPOPUP_OPERATOR_GROUP_ATT,
+ TPOPUP_OPERATOR_GROUP_NORTH_AMERICA,
+ TPOPUP_OPERATOR_GROUP_AUSTRALIA_NEWZEALAND,
+ TPOPUP_OPERATOR_GROUP_JAPAN,
+ TPOPUP_OPERATOR_GROUP_VERIZON,
+ TPOPUP_OPERATOR_GROUP_USCC,
+ TPOPUP_OPERATOR_GROUP_SKT,
+ TPOPUP_OPERATOR_GROUP_KT,
+ TPOPUP_OPERATOR_GROUP_LGU,
+};
+
+
+typedef enum {
+ POPUP_MASK_NONE = 0,
+ POPUP_MASK_TITLE = 0x1,
+ POPUP_MASK_TEXT = 0x2,
+ POPUP_MASK_1BUTTON = 0x4,
+ POPUP_MASK_2BUTTON = 0x8,
+ POPUP_MASK_ECALL_BODYBUTTON = 0x10,
+ POPUP_MASK_CHECKBUTTON = 0x20,
+ POPUP_MASK_TOAST = 0x40,
+ POPUP_MASK_PROGRESS = 0x80,
+ POPUP_MASK_TIMEOUT = 0x100,
+ POPUP_MASK_ALARM_CB = 0x200,
+ POPUP_MASK_BTN_IMAGE = 0x400,
+ POPUP_MASK_BTN_TEXT = 0x800,
+ POPUP_MASK_CHECKBUTTON_MIDDLE = 0x1000,
+} tpopup_property_mask;
+
+typedef struct {
+ tpopup_event_t event;
+ char *ipc_msg;
+ tpopup_priority priority;
+ tpopup_property_mask mask;
+ char *title;
+ char *text;
+ char *checkbox_text;
+ void (*_btn_cb1)(void *, Evas_Object *, void *);
+ void (*_btn_cb2)(void *, Evas_Object *, void *);
+ double timeout;
+ int (*alarm_cb)(alarm_id_t, void *);
+ char *btn1_info;
+ char *btn2_info;
+ void (*_checkbox_change_cb)(void *, Evas_Object *, void *);
+} popup_config_map;
+
+gboolean handle_event(appdata_t *ad);
+tpopup_event_t parse_msg(const char *msg);
+tpopup_priority get_priority(tpopup_event_t event);
+
+gboolean init_alarm(void);
+void deinit_alarm(void);
+void remove_alarm(alarm_id_t timer_id);
+void popup_resp(void *data, Evas_Object *obj, void *event_info);
+void load_text_string(tpopup_event_t event, char *param, char** text);
+void set_alarm_timeout(appdata_t **data, double timeout, int (*alarm_cb)(alarm_id_t, void *));
+gboolean is_valid_event(appdata_t *ad, tpopup_event_t event);
+tpopup_priority get_priority(tpopup_event_t event);
+tpopup_event_t parse_msg(const char *msg);
+/* callback function */
+void sim_not_present_clicked_cb1(void *data, Evas_Object *obj, void *event_info);
+gboolean handle_event(appdata_t *ad);
+void sim_removed_clicked_cb1(void *data, Evas_Object *obj, void *event_info);
+void sim_removed_clicked_cb2(void *data, Evas_Object *obj, void *event_info);
+void nitz_manual_date_time_cb1(void *data, Evas_Object *obj, void *event_info);
+void nitz_manual_date_time_cb2(void *data, Evas_Object *obj, void *event_info);
+void network_manual_fail_cb1(void *data, Evas_Object *obj, void *event_info);
+void network_manual_fail_cb2(void *data, Evas_Object *obj, void *event_info);
+void network_data_roaming_cb1(void *data, Evas_Object *obj, void *event_info);
+void network_data_roaming_cb2(void *data, Evas_Object *obj, void *event_info);
+void display_network_lu_reject_cb1(void *data, Evas_Object *obj, void *event_info);
+
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
+void sim_not_present_clicked_cb1(void *data, Evas_Object *obj, void *event_info);
+void network_manual_fail_cb1(void *data, Evas_Object *obj, void *event_info);
+void network_manual_fail_cb2(void *data, Evas_Object *obj, void *event_info);
+void network_data_roaming_cb1(void *data, Evas_Object *obj, void *event_info);
+void network_data_roaming_cb2(void *data, Evas_Object *obj, void *event_info);
+void nitz_manual_date_time_cb1(void *data, Evas_Object *obj, void *event_info);
+void nitz_manual_date_time_cb2(void *data, Evas_Object *obj, void *event_info);
+void display_network_lu_reject_cb1(void *data, Evas_Object *obj, void *event_info);
+void imei_certi_fail_clicked_cb1(void *data, Evas_Object *obj, void *event_info);
+void display_ims_403_error_message_cb1(void *data, Evas_Object *obj, void *event_info);
+#endif
+
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
+void mobile_network_data_roaming_cb1(void *data, Evas_Object *obj, void *event_info);
+#endif
+
+void unlock_power_lcd_on();
+gboolean is_valid_event(appdata_t *ad, tpopup_event_t event);
+
+#define NUM_POPUP_CONFIGS (sizeof(g_popup_configs) / sizeof(g_popup_configs[0]))
+
+static const popup_config_map g_popup_configs[] = {
+ /* 0 */
+ { TPOPUP_EVENT_NONE, "", },
+
+ /* 1 */
+ { TPOPUP_EVENT_SIM_NOT_PRESENTED, IPC_MSG_SIM_NOT_PRESENTED,
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
+ TPOPUP_PRIORITY_MID,
+ POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_1BUTTON|POPUP_MASK_CHECKBUTTON|POPUP_MASK_BTN_TEXT,
+ TELEPHONY_SYSPOPUP_STMS_TITLE_NO_SIM,
+ TELEPHONY_SYSPOPUP_STMS_BODY_SIM_NOT_PRESENTED_EMERGENCY_CALL_POSSIBLE,
+ TELEPHONY_SYSPOPUP_STMS_CHECKBOX_DONT_REPEAT,
+ sim_not_present_clicked_cb1,
+ NULL,
+ 0,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BTN_OK,
+ NULL,
+ NULL
+#endif
+ },
+
+ /* 2 */
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
+ { TPOPUP_EVENT_SIM_REMOVED, IPC_MSG_SIM_CARD_REMOVED,
+ TPOPUP_PRIORITY_TOP,
+ POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_TEXT,
+ TELEPHONY_SYSPOPUP_STMS_TITLE_RESTART,
+ TELEPHONY_SYSPOPUP_STMS_BODY_SIM_REMOVAL,
+ NULL,
+ sim_removed_clicked_cb1,
+ sim_removed_clicked_cb2,
+ 0,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BTN_COM_CANCEL,
+ TELEPHONY_SYSPOPUP_STMS_BTN_COM_RESTART,
+ NULL
+ },
+#else
+ { TPOPUP_EVENT_SIM_REMOVED, IPC_MSG_SIM_CARD_REMOVED,
+ TPOPUP_PRIORITY_TOP,
+ POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_IMAGE,
+ TELEPHONY_SYSPOPUP_STMS_TITLE_NO_SIM,
+ TELEPHONY_SYSPOPUP_STMS_BODY_SIM_REMOVAL,
+ NULL,
+ sim_removed_clicked_cb1,
+ sim_removed_clicked_cb2,
+ 0,
+ NULL,
+ DELETE_BUTTON_IMAGE,
+ CHECK_BUTTON_IMAGE,
+ NULL
+ },
+#endif
+
+ /* 3 */
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
+ { TPOPUP_EVENT_SIM_ERROR, IPC_MSG_SIM_CARD_ERROR,
+ TPOPUP_PRIORITY_MID,
+ POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_TEXT,
+ TELEPHONY_SYSPOPUP_STMS_TITLE_RESTART,
+ TELEPHONY_SYSPOPUP_STMS_BODY_SIM_CRASH,
+ NULL,
+ sim_removed_clicked_cb1,
+ sim_removed_clicked_cb2,
+ 0,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BTN_COM_CANCEL,
+ TELEPHONY_SYSPOPUP_STMS_BTN_COM_RESTART,
+ NULL
+ },
+#else
+ { TPOPUP_EVENT_SIM_ERROR, IPC_MSG_SIM_CARD_ERROR,
+ TPOPUP_PRIORITY_MID,
+ POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_IMAGE,
+ TELEPHONY_SYSPOPUP_STMS_TITLE_RESTART,
+ TELEPHONY_SYSPOPUP_STMS_BODY_SIM_ERROR,
+ NULL,
+ sim_removed_clicked_cb1,
+ sim_removed_clicked_cb2,
+ 0,
+ NULL,
+ DELETE_BUTTON_IMAGE,
+ CHECK_BUTTON_IMAGE,
+ NULL
+ },
+#endif
+
+ /* 4 */
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
+ { TPOPUP_EVENT_SIM_CRASHED, IPC_MSG_SIM_CARD_CRASHED,
+ TPOPUP_PRIORITY_TOP,
+ POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_TEXT,
+ TELEPHONY_SYSPOPUP_STMS_TITLE_RESTART,
+ TELEPHONY_SYSPOPUP_STMS_BODY_SIM_CRASH,
+ NULL,
+ sim_removed_clicked_cb1,
+ sim_removed_clicked_cb2,
+ 0,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BTN_COM_CANCEL,
+ TELEPHONY_SYSPOPUP_STMS_BTN_COM_RESTART,
+ NULL
+ },
+#else
+ { TPOPUP_EVENT_SIM_CRASHED, IPC_MSG_SIM_CARD_CRASHED,
+ TPOPUP_PRIORITY_TOP,
+ POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_IMAGE,
+ TELEPHONY_SYSPOPUP_STMS_TITLE_RESTART,
+ TELEPHONY_SYSPOPUP_STMS_BODY_SIM_ERROR,
+ NULL,
+ sim_removed_clicked_cb1,
+ sim_removed_clicked_cb2,
+ 0,
+ NULL,
+ DELETE_BUTTON_IMAGE,
+ CHECK_BUTTON_IMAGE,
+ NULL
+ },
+#endif
+
+ /* 5 */
+ { TPOPUP_EVENT_NETWORK_MANUAL_FAIL_POPUP, IPC_MSG_NETWORK_MANUAL_FAIL_POPUP,
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
+ TPOPUP_PRIORITY_MID,
+ POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_IMAGE,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BODY_MANUAL_SELECTION_FAILED,
+ NULL,
+ network_manual_fail_cb1,
+ network_manual_fail_cb2,
+ 0,
+ NULL,
+ DELETE_BUTTON_IMAGE,
+ CHECK_BUTTON_IMAGE,
+ NULL
+#endif
+ },
+
+ /* 6 */
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
+ { TPOPUP_EVENT_NETWORK_DATA_ROAMING_POPUP, IPC_MSG_NETWORK_DATA_ROAMING_POPUP,
+ TPOPUP_PRIORITY_MID,
+ POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_CHECKBUTTON|POPUP_MASK_1BUTTON|POPUP_MASK_BTN_TEXT,
+ TELEPHONY_SYSPOPUP_STMS_TITLE_DATA_ROAMING,
+ TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING,
+ TELEPHONY_SYSPOPUP_STMS_CHECKBOX_ENABLE_ROAMING,
+ mobile_network_data_roaming_cb1,
+ NULL,
+ 0,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BTN_OK,
+ NULL,
+ NULL},
+#else
+ { TPOPUP_EVENT_NETWORK_DATA_ROAMING_POPUP, IPC_MSG_NETWORK_DATA_ROAMING_POPUP,
+ TPOPUP_PRIORITY_MID,
+ POPUP_MASK_TEXT|POPUP_MASK_CHECKBUTTON|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_IMAGE,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BODY_DATA_ROAMING,
+ TELEPHONY_SYSPOPUP_STMS_CHECKBOX_DONT_REPEAT,
+ network_data_roaming_cb1,
+ network_data_roaming_cb2,
+ 0,
+ NULL,
+ DELETE_BUTTON_IMAGE,
+ CHECK_BUTTON_IMAGE,
+ NULL
+ },
+#endif
+
+ /* 7 */
+ { TPOPUP_EVENT_NITZ_TIME_UPDATE, IPC_MSG_DISPLAY_NITZ_TIME_UPDATE,
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
+ TPOPUP_PRIORITY_MID,
+ POPUP_MASK_TOAST|POPUP_MASK_TEXT|POPUP_MASK_TIMEOUT,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BODY_NITZ_UPDATE,
+ NULL,
+ NULL,
+ NULL,
+ 4.0,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+#endif
+ },
+
+ /* 8 */
+ { TPOPUP_EVENT_NITZ_MANUAL_DATE_AND_TIME, IPC_MSG_NITZ_MANUL_DATE_AND_TIME,
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
+ TPOPUP_PRIORITY_MID,
+ POPUP_MASK_TEXT|POPUP_MASK_2BUTTON|POPUP_MASK_BTN_IMAGE,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BODY_NITZ_MANUAL_DATE_AND_TIME,
+ NULL,
+ nitz_manual_date_time_cb1,
+ nitz_manual_date_time_cb2,
+ 0,
+ NULL,
+ DELETE_BUTTON_IMAGE,
+ CHECK_BUTTON_IMAGE,
+ NULL
+#endif
+ },
+
+ /* 9 */
+ { TPOPUP_EVENT_DISPLAY_NETWORK_LU_REJECT_CAUSE, IPC_MSG_DISPLAY_NETWORK_LU_REJECT_CAUSE,
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
+ TPOPUP_PRIORITY_MID,
+ POPUP_MASK_TEXT|POPUP_MASK_1BUTTON|POPUP_MASK_TIMEOUT|POPUP_MASK_BTN_TEXT,
+ NULL,
+ NULL,
+ NULL,
+ display_network_lu_reject_cb1,
+ NULL,
+ 120.0,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BTN_OK,
+ NULL,
+ NULL
+#endif
+ },
+
+ /* 10 */
+ { TPOPUP_EVENT_NETWORK_EMERGENCY_CB_MODE_ENTER, IPC_MSG_NETWORK_EMERGENCY_CB_MODE_ENTER, },
+
+ /* 11 */
+ { TPOPUP_EVENT_NETWORK_EMERGENCY_CB_MODE_EXIT, IPC_MSG_NETWORK_EMERGENCY_CB_MODE_EXIT, },
+
+ /* 12 */
+ { TPOPUP_EVENT_NETWORK_EMERGENCY_CB_MODE_READY, IPC_MSG_NETWORK_EMERGENCY_CB_MODE_READY, },
+
+ /* 13 */
+ { TPOPUP_EVENT_CALL_DISPLAY_INFORMATION, IPC_CALL_DISPLAY_INFORMATION, },
+
+ /* 14 */
+ { TPOPUP_EVENT_MSG_DISPLAY_MIP_ERROR_CAUSE, IPC_MSG_DISPLAY_MIP_ERROR_CAUSE, },
+
+ /* 15 */
+ { TPOPUP_EVENT_NETWORK_ACTIVATION_MODE, IPC_MSG_NETWORK_ACTIVATION_MODE, },
+
+ /* 16 */
+ { TPOPUP_EVENT_NETWORK_ACTIVATION_PASS, IPC_MSG_NETWORK_ACTIVATION_PASS, },
+
+ /* 17 */
+ { TPOPUP_EVENT_NETWORK_ACTIVATION_CANCEL, "", },
+
+ /* 18 */
+ { TPOPUP_EVENT_NETWORK_ACTIVATION_FAIL, IPC_MSG_NETWORK_ACTIVATION_FAIL, },
+
+ /* 19*/
+ { TPOPUP_EVENT_NETWORK_ACTIVATION_FAIL_3TIMES, IPC_MSG_NETWORK_ACTIVATION_FAIL_3TIMES, },
+
+ /* 20 */
+ { TPOPUP_EVENT_NETWORK_ACTIVATION_OTAPA_COMMITTED, IPC_MSG_NETWORK_ACTIVATION_OTAPA_COMMITTED, },
+
+ /* 21 */
+ { TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_MODE, IPC_MSG_NETWORK_SKT_ACTIVATION_MODE,
+ },
+
+
+ /* 22 */
+ { TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_ONGOING, IPC_MSG_NETWORK_SKT_ACTIVATION_ONGOING,
+ },
+
+ /* 23 */
+ { TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_PASS, IPC_MSG_NETWORK_SKT_ACTIVATION_PASS,
+ },
+
+ /* 24 */
+ { TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_FAIL, IPC_MSG_NETWORK_SKT_ACTIVATION_FAIL,
+ },
+ /* 25 */
+ { TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_NOT_ACTIAVTED_SIM, IPC_MSG_NETWORK_SKT_ACTIVATION_NOT_ACTIVATED_SIM,
+ },
+
+ /* 26 */
+ { TPOPUP_EVENT_NETWORK_ACTIVATION_ACTIVATING, "", },
+
+ /* 27 */
+ { TPOPUP_EVENT_ESIM_PROFILE_ACTIVATION_ONGOING, IPC_MSG_ESIM_PROFILE_ACTIVATION_ONGOING, },
+
+ /* 28 */
+ { TPOPUP_EVENT_ESIM_PROFILE_ACTIVATION_PASS, IPC_MSG_ESIM_PROFILE_ACTIVATION_PASS, },
+
+ /* 29 */
+ { TPOPUP_EVENT_ESIM_PROFILE_ACTIVATION_FAIL, IPC_MSG_ESIM_PROFILE_ACTIVATION_FAIL, },
+
+ /* 30 */
+ { TPOPUP_EVENT_ESIM_PROFILE_NEW_PROFILE_DETECT, IPC_MSG_ESIM_PROFILE_NEW_PROFILE_DETECT, },
+
+ /* 31 */
+ { TPOPUP_EVENT_ESIM_PROFILE_ENABLE_PROFILE_FAIL, IPC_MSG_ESIM_PROFILE_ACTIVATION_FAIL, },
+
+ /* 32 */
+ { TPOPUP_EVENT_ESIM_PROFILE_ENABLE_PROFILE_ONGOING, IPC_MSG_ESIM_PROFILE_ENABLE_ONGOING, },
+
+ /* 33 */
+ { TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0, IPC_MSG_ESIM_PROFILE_RESET_SAMSUNGPHASE0, },
+
+ /* 34 */
+ { TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_CONTINUE, "", },
+
+ /* 35 */
+ { TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_INITIALIZING_ONGOING, "", },
+
+ /* 36 */
+ { TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_RESET_FAIL, "", },
+
+ /* 37 */
+ { TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_RESET_SUCCESS, "", },
+
+
+ /* 38 */
+ { TPOPUP_EVENT_IMEI_CERTI_FAIL, IPC_MSG_IMEI_CERTI_FAIL,
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
+ TPOPUP_PRIORITY_ALWAYS_TOP,
+ POPUP_MASK_TITLE|POPUP_MASK_TEXT|POPUP_MASK_1BUTTON|POPUP_MASK_BTN_TEXT,
+ TELEPHONY_SYSPOPUP_STMS_BODY_IMEI_CERTI_FAIL_TITLE,
+ TELEPHONY_SYSPOPUP_STMS_BODY_IMEI_CERTI_FAIL_PROMPT,
+ NULL,
+ imei_certi_fail_clicked_cb1,
+ NULL,
+ 0,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BTN_OK,
+ NULL,
+ NULL
+#endif
+ },
+ /* 39 */
+ { TPOPUP_EVENT_NETWORK_VZW_ACTIVATING_SIM, IPC_MSG_NETWORK_VZW_ACTIVATION_MODE, },
+ /* 40 */
+ { TPOPUP_EVENT_NETWORK_VZW_ACTIVATED_SIM, IPC_MSG_NETWORK_VZW_ACTIVATED_SIM, },
+ /* 41 */
+ { TPOPUP_EVENT_NETWORK_VZW_NOT_ACTIVATED_SIM, IPC_MSG_NETWORK_VZW_NOT_ACTIVATED_SIM, },
+
+ /* 42 */
+ { TPOPUP_EVENT_DISMISS_NETWORK_LU_REJECT_CAUSE, IPC_MSG_DISMISS_NETWORK_LU_REJECT_CAUSE,
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
+ TPOPUP_PRIORITY_HIGH,
+#endif
+ },
+
+ /* 43 */
+ { TPOPUP_EVENT_NETWORK_LGU_ACTIVATION_FAIL_MOBILE_OFF, "",
+ },
+
+ /* 44 */
+ { TPOPUP_EVENT_NETWORK_LGU_ACTIVATION_FAIL_ROAM_NETWORK, "",
+ },
+
+ /* 45 */
+ { TPOPUP_EVENT_DISPLAY_PDP_ACTIVATE_REJECT_CAUSE, IPC_MSG_DISPLAY_PDP_ACTIVATE_REJECT_CAUSE,
+ },
+ /* 46 */
+ { TPOPUP_EVENT_DISPLAY_IMS_403_ERROR_MESSAGE, IPC_MSG_DISPLAY_IMS_403_ERROR_MESSAGE,
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_WEARABLE
+ TPOPUP_PRIORITY_MID,
+ POPUP_MASK_TEXT|POPUP_MASK_1BUTTON|POPUP_MASK_BTN_TEXT,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BODY_IMS_403_ERROR,
+ NULL,
+ display_ims_403_error_message_cb1,
+ NULL,
+ 0,
+ NULL,
+ TELEPHONY_SYSPOPUP_STMS_BTN_OK,
+ NULL,
+ NULL
+#endif
+ },
+ /* 99 */
+ { TPOPUP_EVENT_MAX, "", },
+};
--- /dev/null
+/*
+ * telephony-syspopup
+ *
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Ja-young Gu <jygu@samsung.com>
+ *
+ * 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.
+ */
+
+
+gboolean draw_popup(appdata_t *ad);
+Evas_Object *create_win(appdata_t *ad, const char *name);
+void terminate_win(Evas_Object *win_main);
+void remove_cur_popup(appdata_t *ad);
+gboolean set_window_property(appdata_t *ad);
--- /dev/null
+/*
+ * telephony-syspopup
+ *
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Ja-young Gu <jygu@samsung.com>
+ *
+ * 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.
+ */
+
+#ifndef __TELEPHONY_SYSPOPUP_H_
+#define __TELEPHONY_SYSPOPUP_H_
+
+#include <Elementary.h>
+#include <dlog.h>
+#include <stdio.h>
+#include <appcore-efl.h>
+#include <glib.h>
+#include <alarm.h>
+#include <bundle_internal.h>
+
+
+
+#define EXPORT __attribute__((visibility("default")))
+
+#if !defined(PACKAGE)
+#define PACKAGE "org.tizen.telephony-syspopup"
+#endif
+
+#if !defined(LOCALEDIR)
+#define LOCALEDIR "/usr/apps/org.tizen.telephony-syspopup/res/locale"
+#endif
+
+#if !defined(EDJDIR)
+#define EDJDIR "/usr/apps/org.tizen.telephony-syspopup/res/edje/"
+#endif
+
+#if !defined(PREFIX)
+#define PREFIX "/usr/apps/"PACKAGE
+#endif
+
+#ifdef _
+#undef _
+#endif
+#define _(str) dgettext(PACKAGE, str)
+
+#undef LOG_TAG
+#define LOG_TAG "TELEPHONY_SYSPOPUP"
+#define DBG(format, args...) LOGD(format, ##args)
+#define INFO(format, args...) LOGI(format, ##args)
+#define WARN(format, args...) LOGW(format, ##args)
+#define ERR(format, args...) LOGE(format, ##args)
+
+
+
+typedef enum {
+ TPOPUP_EVENT_NONE = 0,
+ TPOPUP_EVENT_SIM_NOT_PRESENTED, // intialliy NO SIM card
+ TPOPUP_EVENT_SIM_REMOVED, // run-time SIM card removal
+ TPOPUP_EVENT_SIM_ERROR, // initially SIM card error
+ TPOPUP_EVENT_SIM_CRASHED, // run-time SIM card error
+
+ TPOPUP_EVENT_NETWORK_MANUAL_FAIL_POPUP = 5,
+ TPOPUP_EVENT_NETWORK_DATA_ROAMING_POPUP,
+ TPOPUP_EVENT_NITZ_TIME_UPDATE,
+ TPOPUP_EVENT_NITZ_MANUAL_DATE_AND_TIME,
+ TPOPUP_EVENT_DISPLAY_NETWORK_LU_REJECT_CAUSE,
+
+ TPOPUP_EVENT_NETWORK_EMERGENCY_CB_MODE_ENTER = 10,
+ TPOPUP_EVENT_NETWORK_EMERGENCY_CB_MODE_EXIT,
+ TPOPUP_EVENT_NETWORK_EMERGENCY_CB_MODE_READY,
+ TPOPUP_EVENT_CALL_DISPLAY_INFORMATION,
+ TPOPUP_EVENT_MSG_DISPLAY_MIP_ERROR_CAUSE,
+
+ TPOPUP_EVENT_NETWORK_ACTIVATION_MODE = 15,
+ TPOPUP_EVENT_NETWORK_ACTIVATION_PASS,
+ TPOPUP_EVENT_NETWORK_ACTIVATION_CANCEL,
+ TPOPUP_EVENT_NETWORK_ACTIVATION_FAIL,
+ TPOPUP_EVENT_NETWORK_ACTIVATION_FAIL_3TIMES,
+
+ TPOPUP_EVENT_NETWORK_ACTIVATION_OTAPA_COMMITTED = 20,
+ TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_MODE,
+ TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_ONGOING,
+ TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_PASS,
+ TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_FAIL,
+
+ TPOPUP_EVENT_NETWORK_SKT_ACTIVATION_NOT_ACTIAVTED_SIM = 25,
+ TPOPUP_EVENT_NETWORK_ACTIVATION_ACTIVATING,
+ TPOPUP_EVENT_ESIM_PROFILE_ACTIVATION_ONGOING,
+ TPOPUP_EVENT_ESIM_PROFILE_ACTIVATION_PASS,
+ TPOPUP_EVENT_ESIM_PROFILE_ACTIVATION_FAIL,
+ TPOPUP_EVENT_ESIM_PROFILE_NEW_PROFILE_DETECT = 30,
+ TPOPUP_EVENT_ESIM_PROFILE_ENABLE_PROFILE_FAIL,
+ TPOPUP_EVENT_ESIM_PROFILE_ENABLE_PROFILE_ONGOING,
+ TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0,
+ TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_CONTINUE,
+ TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_INITIALIZING_ONGOING = 35,
+ TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_RESET_FAIL,
+ TPOPUP_EVENT_ESIM_PROFILE_RESET_SAMSUNGPHASE0_RESET_SUCCESS,
+ TPOPUP_EVENT_IMEI_CERTI_FAIL,
+ TPOPUP_EVENT_NETWORK_VZW_ACTIVATING_SIM,
+ TPOPUP_EVENT_NETWORK_VZW_ACTIVATED_SIM = 40,
+ TPOPUP_EVENT_NETWORK_VZW_NOT_ACTIVATED_SIM,
+ TPOPUP_EVENT_DISMISS_NETWORK_LU_REJECT_CAUSE,
+ TPOPUP_EVENT_NETWORK_LGU_ACTIVATION_FAIL_MOBILE_OFF,
+ TPOPUP_EVENT_NETWORK_LGU_ACTIVATION_FAIL_ROAM_NETWORK,
+ TPOPUP_EVENT_DISPLAY_PDP_ACTIVATE_REJECT_CAUSE = 45,
+ TPOPUP_EVENT_DISPLAY_IMS_403_ERROR_MESSAGE,
+ TPOPUP_EVENT_MAX = 99
+} tpopup_event_t;
+
+#ifdef TIZEN_FEATURE_DEVICE_TYPE_MOBILE
+typedef enum {
+ TNOTI_EVENT_NONE = 0,
+ TNOTI_EVENT_SIM_NOT_PRESENTED, // intialliy NO SIM card
+ TNOTI_EVENT_ADD_DATA_ROAMING,
+ TNOTI_EVENT_DEL_DATA_ROAMING,
+ TNOTI_EVENT_ADD_SIM1_NO_SERVICE,
+ TNOTI_EVENT_DEL_SIM1_NO_SERVICE,
+ TNOTI_EVENT_ADD_SIM2_NO_SERVICE,
+ TNOTI_EVENT_DEL_SIM2_NO_SERVICE,
+
+ TNOTI_EVENT_MAX = 99
+} tnoti_event_t;
+#endif
+
+typedef struct {
+ tpopup_event_t event;
+ char *param;
+} tpopup_popup_t;
+
+typedef struct {
+ gboolean is_showing;
+ Evas_Object *win_main;
+ Evas_Object *popup;
+ Evas_Object *layout_main;
+ Evas_Object *layout_inner;
+ Evas_Object *scroller;
+ Evas_Object *label;
+ Evas_Object *checkbox;
+ Evas_Object *btn1;
+ Evas_Object *btn2;
+ Evas_Object *btn_icon1;
+ Evas_Object *btn_icon2;
+ Evas_Object *btn_body;
+ tpopup_event_t event;
+ char *param;
+ bundle *b;
+
+ GQueue *q;
+ alarm_id_t timer_id;
+ Ecore_Event_Handler *keyup_handler;
+} appdata_t;
+
+
+
+
+
+
+void process_queue(appdata_t *ad);
+void add_popup(appdata_t *ad, tpopup_event_t new_event, const char *param);
+
+
+#endif /* __TELEPHONY_SYSPOPUP_H_ */
--- /dev/null
+/*
+ * telephony-syspopup
+ *
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Ja-young Gu <jygu@samsung.com>
+ *
+ * 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 <Ecore_X.h>
+//#include <utilX.h>
+#include <notification.h>
+#include <notification_internal.h>
+#include <notification_text_domain.h>
+
+#define DOMAIN_NAME PACKAGE
+#define LOCALE_DIR PREFIX"/res/locale/"
+
+#define NOTI_RETRY_INTERVAL_SECOND 2
+#define NOTI_RETRY_MAX_COUNT 5
+
+
+/* PKGNAME */
+#define PKGNAME_SIM_NOT_PRESENTED "org.tizen.telephony-syspopup.sim_not_presented"
+#define PKGNAME_DATA_ROAMING "org.tizen.telephony-syspopup.network_data_roaming_popup"
+#define PKGNAME_SIM1_NOSVC_AFTER_MANUAL_SEL "org.tizen.telephony-syspopup.network_sim1_nosvc_after_manual_sel"
+#define PKGNAME_SIM2_NOSVC_AFTER_MANUAL_SEL "org.tizen.telephony-syspopup.network_sim2_nosvc_after_manual_sel"
+
+/* IMAGE */
+#define QP_PRELOAD_NOTI_ICON_PATH "/usr/apps/org.tizen.quickpanel/shared/res/noti_icons"
+#define INDICATOR_PRELOAD_INDI_ICON_PATH "/usr/apps/org.tizen.indicator/res/icons/RSSI"
+
+
+#define NOTI_ERROR_IMAGE QP_PRELOAD_NOTI_ICON_PATH"/Etc/noti_error.png"
+#define INDI_NO_SIM_IMAGE INDICATOR_PRELOAD_INDI_ICON_PATH"/B03_RSSI_NoSim.png"
+#define NOTI_NO_SIM_IMAGE QP_PRELOAD_NOTI_ICON_PATH"/Multi SIM/noti_no_sim.png"
+#define NOTI_SIM1_IMAGE QP_PRELOAD_NOTI_ICON_PATH"/No service/noti_no_service_01.png"
+#define NOTI_SIM2_IMAGE QP_PRELOAD_NOTI_ICON_PATH"/No service/noti_no_service_02.png"
+
+#define SETTINGS_APP_MOBILE_NETWORK "http://samsung.com/appcontrol/operation/setting/mobile_network"
+#define SETTINGS_DEFAULT_APP_ID "setting-network-efl"
+#define SETTINGS_MOBILE_NETWORK_APP_ID "org.tizen.setting.network"
+#define SETTINGS_MOBILE_NETWORK_SERVICE_PROVIDERS_APP_ID "org.tizen.setting.network-operator"
+
+#define TELEPHONY_SYSPOPUP_STMS_NOTI_DATA_ROAMING "IDS_COM_BODY_DATA_ROAMING"
+#define TELEPHONY_SYSPOPUP_STMS_NOTI_TAP_HERE_TO_ENABLE "IDS_QP_SBODY_TAP_HERE_TO_ENABLE_ABB"
+#define TELEPHONY_SYSPOPUP_STMS_NOTI_NO_SERVICE "IDS_ST_MBODY_NO_SERVICE"
+#define TELEPHONY_SYSPOPUP_STMS_NOTI_SELECTed_NETWORK_UNAVAILABLE "IDS_ST_SBODY_SELECTED_NETWORK_NOT_AVAILABLE_M_STATUS_ABB"
+
+typedef enum {
+ NOTI_MASK_NONE = 0,
+ NOTI_MASK_ADD = 0x1,
+ NOTI_MASK_DEL = 0x2,
+ NOTI_MASK_TITLE = 0x10,
+ NOTI_MASK_TEXT = 0x20,
+ NOTI_MASK_INDI_ICON = 0x40,
+ NOTI_MASK_NOTI_ICON = 0x80,
+ NOTI_MASK_APP_LAUNCH = 0x100,
+ NOTI_MASK_TIMESTAMP = 0x200,
+} tnoti_property_mask;
+
+typedef struct {
+ tnoti_event_t event;
+ char *ipc_msg;
+ tnoti_property_mask mask;
+ notification_type_e type;
+ char *pkgname;
+ char *title;
+ char *text;
+ enum _notification_display_applist applist;
+ char *app_id;
+ char *noti_icon_path;
+ char *indi_icon_path;
+ time_t timestamp;
+} noti_config_map;
+
+typedef struct {
+ tnoti_event_t event;
+ char *param;
+ int count;
+ appdata_t *ad;
+} tpopup_noti_t;
+
+tnoti_event_t find_noti_msg(const char *msg);
+gboolean process_new_noti(appdata_t *ad, tnoti_event_t new_event, const char *param);
+gboolean add_notification(appdata_t *ad, tnoti_event_t event, const char *param);
+gboolean check_duplicated_noti(tnoti_event_t event);
+
+
+
+#define NUM_NOTI_CONFIGS (sizeof(g_noti_configs) / sizeof(g_noti_configs[0]))
+
+static const noti_config_map g_noti_configs[] = {
+ /* 0 */
+ { TNOTI_EVENT_NONE, "", },
+
+ /* 1 */
+ { TNOTI_EVENT_SIM_NOT_PRESENTED, IPC_MSG_SIM_NOT_PRESENTED,
+ NOTI_MASK_ADD|NOTI_MASK_TITLE|NOTI_MASK_TEXT|NOTI_MASK_INDI_ICON|NOTI_MASK_NOTI_ICON|NOTI_MASK_TIMESTAMP,
+ NOTIFICATION_TYPE_ONGOING,
+ PKGNAME_SIM_NOT_PRESENTED,
+ TELEPHONY_SYSPOPUP_STMS_TITLE_NO_SIM_INSERTED,
+ TELEPHONY_SYSPOPUP_STMS_BODY_NO_SIM,
+ NOTIFICATION_DISPLAY_APP_ALL,
+ NULL,
+ NOTI_NO_SIM_IMAGE,
+ INDI_NO_SIM_IMAGE,
+ 0
+ },
+
+ /* 2 */
+ { TNOTI_EVENT_ADD_DATA_ROAMING, "",
+ NOTI_MASK_ADD|NOTI_MASK_TITLE|NOTI_MASK_TEXT|NOTI_MASK_NOTI_ICON|NOTI_MASK_TIMESTAMP|NOTI_MASK_APP_LAUNCH,
+ NOTIFICATION_TYPE_ONGOING,
+ PKGNAME_DATA_ROAMING,
+ TELEPHONY_SYSPOPUP_STMS_NOTI_DATA_ROAMING,
+ TELEPHONY_SYSPOPUP_STMS_NOTI_TAP_HERE_TO_ENABLE,
+ NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY,
+ SETTINGS_MOBILE_NETWORK_APP_ID,
+ NOTI_ERROR_IMAGE,
+ NULL,
+ 0
+ },
+
+ /* 3 */
+ { TNOTI_EVENT_DEL_DATA_ROAMING, IPC_MSG_NETWORK_DATA_ROAMING_POPUP_DELETE,
+ NOTI_MASK_DEL,
+ NOTIFICATION_TYPE_ONGOING,
+ PKGNAME_DATA_ROAMING,
+ NULL,
+ NULL,
+ 0,
+ SETTINGS_MOBILE_NETWORK_APP_ID,
+ NULL,
+ NULL,
+ 0
+ },
+
+ /* 4 */
+ { TNOTI_EVENT_ADD_SIM1_NO_SERVICE, IPC_MSG_NETWORK_ADD_SIM1_MANUAL_FAIL_NOTI,
+ NOTI_MASK_ADD|NOTI_MASK_TITLE|NOTI_MASK_TEXT|NOTI_MASK_NOTI_ICON|NOTI_MASK_TIMESTAMP|NOTI_MASK_APP_LAUNCH,
+ NOTIFICATION_TYPE_NOTI,
+ PKGNAME_SIM1_NOSVC_AFTER_MANUAL_SEL,
+ TELEPHONY_SYSPOPUP_STMS_NOTI_NO_SERVICE,
+ TELEPHONY_SYSPOPUP_STMS_NOTI_SELECTed_NETWORK_UNAVAILABLE,
+ NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY,
+ SETTINGS_MOBILE_NETWORK_SERVICE_PROVIDERS_APP_ID,
+ NOTI_SIM1_IMAGE,
+ NULL,
+ -1 /* -1 : do not display time stamp in notification */
+ },
+
+ /* 5 */
+ { TNOTI_EVENT_DEL_SIM1_NO_SERVICE, IPC_MSG_NETWORK_DEL_SIM1_MANUAL_FAIL_NOTI,
+ NOTI_MASK_DEL,
+ NOTIFICATION_TYPE_NOTI,
+ PKGNAME_SIM1_NOSVC_AFTER_MANUAL_SEL,
+ NULL,
+ NULL,
+ 0,
+ SETTINGS_MOBILE_NETWORK_SERVICE_PROVIDERS_APP_ID,
+ NULL,
+ NULL,
+ 0
+ },
+
+ /* 6 */
+ { TNOTI_EVENT_ADD_SIM2_NO_SERVICE, IPC_MSG_NETWORK_ADD_SIM2_MANUAL_FAIL_NOTI,
+ NOTI_MASK_ADD|NOTI_MASK_TITLE|NOTI_MASK_TEXT|NOTI_MASK_NOTI_ICON|NOTI_MASK_TIMESTAMP|NOTI_MASK_APP_LAUNCH,
+ NOTIFICATION_TYPE_NOTI,
+ PKGNAME_SIM2_NOSVC_AFTER_MANUAL_SEL,
+ TELEPHONY_SYSPOPUP_STMS_NOTI_NO_SERVICE,
+ TELEPHONY_SYSPOPUP_STMS_NOTI_SELECTed_NETWORK_UNAVAILABLE,
+ NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY,
+ SETTINGS_MOBILE_NETWORK_SERVICE_PROVIDERS_APP_ID,
+ NOTI_SIM2_IMAGE,
+ NULL,
+ -1 /* -1 : do not display time stamp in notification */
+ },
+
+ /* 7 */
+ { TNOTI_EVENT_DEL_SIM2_NO_SERVICE, IPC_MSG_NETWORK_DEL_SIM2_MANUAL_FAIL_NOTI,
+ NOTI_MASK_DEL,
+ NOTIFICATION_TYPE_NOTI,
+ PKGNAME_SIM2_NOSVC_AFTER_MANUAL_SEL,
+ NULL,
+ NULL,
+ 0,
+ SETTINGS_MOBILE_NETWORK_SERVICE_PROVIDERS_APP_ID,
+ NULL,
+ NULL,
+ 0
+ },
+};
+