Merge "Add widget viewer operation key" into tizen
[platform/core/appfw/aul-1.git] / include / aul_cmd.h
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #pragma once
19
20 enum app_cmd {
21         APP_START = 0,
22         APP_OPEN,
23         APP_RESUME,
24         APP_RESUME_BY_PID,
25         APP_TERM_BY_PID,
26         APP_TERM_BY_PID_WITHOUT_RESTART,
27         APP_RESULT,
28         APP_START_RES,
29         APP_CANCEL,
30         APP_KILL_BY_PID,
31         APP_ADD_HISTORY,
32         APP_REMOVE_HISTORY,
33         APP_RUNNING_INFO,
34         APP_RUNNING_INFO_RESULT,
35         APP_IS_RUNNING,
36         APP_GET_APPID_BYPID,
37         APP_GET_PKGID_BYPID,
38         APP_GET_INFO_OK,
39         APP_GET_INFO_ERROR,
40         APP_KEY_EVENT,
41         APP_KEY_RESERVE,
42         APP_KEY_RELEASE,
43         APP_STATUS_UPDATE,
44         APP_RUNNING_LIST_UPDATE,
45         APP_TERM_REQ_BY_PID,
46         APP_TERM_BY_PID_ASYNC,
47         APP_TERM_BGAPP_BY_PID,
48         APP_PAUSE,
49         APP_PAUSE_BY_PID,
50         APP_GROUP_GET_WINDOW,
51         APP_GROUP_SET_WINDOW,
52         APP_GROUP_GET_FG,
53         APP_GROUP_GET_LEADER_PID,
54         APP_GROUP_GET_LEADER_PIDS,
55         APP_GROUP_GET_GROUP_PIDS,
56         APP_GROUP_GET_IDLE_PIDS,
57         APP_GROUP_LOWER,
58         APP_GROUP_CLEAR_TOP,
59         APP_GROUP_ACTIVATE_BELOW,
60         APP_GET_STATUS,
61         APP_ADD_LOADER,
62         APP_REMOVE_LOADER,
63         APP_GET_PID,
64
65         /* for data-control */
66         APP_GET_DC_SOCKET_PAIR,
67
68         /* for message-port */
69         APP_GET_MP_SOCKET_PAIR,
70
71         APP_COM_CREATE,
72         APP_COM_JOIN,
73         APP_COM_SEND,
74         APP_COM_LEAVE,
75         APP_COM_MESSAGE,
76
77         APP_REGISTER_PID,
78
79         /* background category */
80         APP_WAKE,
81         APP_SUSPEND,
82
83         /* for special purpose */
84         AMD_RELOAD_APPINFO,
85         /* reserved for AMD Agent */
86         AGENT_DEAD_SIGNAL,
87
88         APP_ALL_RUNNING_INFO,
89         APP_SET_APP_CONTROL_DEFAULT_APP,
90         APP_UNSET_APP_CONTROL_DEFAULT_APP,
91         APP_START_ASYNC,
92         APP_SET_PROCESS_GROUP,
93         APP_CMD_MAX
94 };
95
96