4 * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #include "popup-common.h"
22 static const struct popup_ops cooldown_poweroff_ops = {
23 .name = "cooldown_poweroff",
24 .pattern = FEEDBACK_PATTERN_LOWBATT,
25 .show = load_simple_popup,
26 .title = "IDS_ST_HEADER_POWER_OFF_ABB",
27 .content = "IDS_QP_POP_YOUR_DEVICE_IS_OVERHEATING_IT_WILL_NOW_POWER_OFF_TO_COOL_DOWN",
28 .left_text = "IDS_QP_BUTTON_DO_NOT_POWER_OFF_ABB",
31 static const struct popup_ops cooldown_ops = {
33 .pattern = FEEDBACK_PATTERN_LOWBATT,
34 .show = load_simple_popup,
35 .title = "IDS_IDLE_HEADER_PHONE_COOLING_DOWN_ABB",
36 .content = "IDS_IDLE_POP_YOUR_PHONE_IS_OVERHEATING_STEPS_WILL_BE_TAKEN_TO_COOL_IT_DOWN_N_NYOU_CAN_STILL_USE_YOUR_PHONE_MSG",
37 .left_text = "IDS_COM_SK_OK",
40 static const struct popup_ops cooled_down_ops = {
41 .name = "cooled_down",
42 .pattern = FEEDBACK_PATTERN_LOWBATT,
43 .show = load_simple_popup,
44 .title = "IDS_IDLE_HEADER_PHONE_COOLED_DOWN",
45 .content = "IDS_IDLE_POP_YOUR_PHONE_IS_NOW_READY_TO_USE",
46 .left_text = "IDS_COM_SK_OK",
49 /* Constructor to register cooldown button */
50 static __attribute__ ((constructor)) void cooldown_register_popup(void)
52 register_popup(&cooldown_poweroff_ops);
53 register_popup(&cooldown_ops);
54 register_popup(&cooled_down_ops);