Add chage remote app
[apps/agl-service-windowmanager.git] / policy_manager / stm / zipc / StateTransitionor / rse2 / layer / apps / Zrse2_apps_rse2_apps_func.c
1 /************************************************************/
2 /*     Zrse2_apps_rse2_apps_func.c                          */
3 /*     Function and variable source file                    */
4 /*     ZIPC Designer Version 1.2.1                          */
5 /************************************************************/
6 #include "../../../ZST_include.h"
7
8 /*************************************************************
9     Function definition
10 *************************************************************/
11
12 /**
13  *  stm_rse2_apps_initialize_variable
14  */
15 void stm_rse2_apps_initialize_variable() {
16     g_stm_prv_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
17     g_stm_prv_state.layer[StmLayerNoApps].changed = STM_FALSE;
18
19     g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
20     g_stm_crr_state.layer[StmLayerNoApps].changed = STM_FALSE;
21 }
22
23 /**
24  *  stm_rse2_apps_start_stm
25  */
26 void stm_rse2_apps_start_stm() {
27     if (g_stm_event == StmEvtNoUndo) {
28         // nop
29     }
30     else {
31         g_stm_prv_state.layer[StmLayerNoApps].state = g_stm_crr_state.layer[StmLayerNoApps].state;
32     }
33     g_stm_crr_state.layer[StmLayerNoApps].changed = STM_FALSE;
34 }
35
36 /*
37  * @name stm_rse2_apps_start_activity_none
38  */
39 void stm_rse2_apps_start_activity_none() {
40     g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoNone;
41     g_stm_crr_state.layer[StmLayerNoApps].changed = STM_TRUE;
42 }
43
44 /**
45  *  stm_rse2_apps_start_activity_general
46  */
47 void stm_rse2_apps_start_activity_general(){
48     g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
49     g_stm_crr_state.layer[StmLayerNoApps].changed = STM_TRUE;
50 }