Tizen 2.1 release
[platform/core/uifw/e17.git] / src / modules / wizard / page_200.c
1 /* Delete previous copy of config profile and save new one */
2 #include "e.h"
3 #include "e_mod_main.h"
4
5 EAPI int
6 wizard_page_init(E_Wizard_Page *pg __UNUSED__)
7 {
8    return 1;
9 }
10
11 EAPI int
12 wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
13 {
14    return 1;
15 }
16
17 EAPI int
18 wizard_page_show(E_Wizard_Page *pg __UNUSED__)
19 {
20    return 0; /* 1 == show ui, and wait for user, 0 == just continue */
21 }
22
23 EAPI int
24 wizard_page_hide(E_Wizard_Page *pg __UNUSED__)
25 {
26    return 1;
27 }
28
29 EAPI int
30 wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
31 {
32    // save the config now everyone has modified it
33    e_config_save();
34    // diusable restart env so we actually start a whole new session properly
35    e_util_env_set("E_RESTART", NULL);
36    // restart e
37    e_sys_action_do(E_SYS_RESTART, NULL);
38    return 1;
39 }
40