merge tizen_3.0 to tizen branch
[platform/core/system/system-popup.git] / src / cooldown / cooldown-mobile.c
1 /*
2  *  system-popup
3  *
4  * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
5  *
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
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
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.
17  *
18 */
19
20 #include "popup-common.h"
21
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",
29 };
30
31 static const struct popup_ops cooldown_ops = {
32         .name           = "cooldown",
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",
38 };
39
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",
47 };
48
49 /* Constructor to register cooldown button */
50 static __attribute__ ((constructor)) void cooldown_register_popup(void)
51 {
52         register_popup(&cooldown_poweroff_ops);
53         register_popup(&cooldown_ops);
54         register_popup(&cooled_down_ops);
55 }