tizen 2.3 release
[framework/base/syspopup.git] / include / syspopup_db.h
1 /*
2  * syspopup
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>,
7  * Jaeho Lee <jaeho81.lee@samsung.com>
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  */
22
23
24 #ifndef __SYSPOPUP_DB_H__
25 #define __SYSPOPUP_DB_H__
26
27 enum _def_term_action_t {
28         SYSPOPUP_TERM,
29         SYSPOPUP_HIDE,
30         SYSPOPUP_IGNORE
31 };
32
33 typedef enum _def_term_action_t def_term_action_t;
34
35 enum _def_endkey_action_t {
36         SYSPOPUP_KEYEND_TERM,
37         SYSPOPUP_KEYEND_HIDE,
38         SYSPOPUP_KEYEND_IGNORE
39 };
40
41 typedef enum _def_endkey_action_t def_endkey_action_t;
42
43 struct _syspopup_info_t {
44         char *name;             /* system popup name */
45         int prio;               /* sys popup priority :
46                                          cf - Utilx_Notification_Level */
47         int focus;              /* sys popup focus : ecore_x_icccm_hints_set */
48         unsigned int timeout;   /* default system popup timeout */
49         def_term_action_t term_act;     /* default terminate act */
50         def_endkey_action_t endkey_act; /* default terminate act */
51         char *pkgname;          /* package name to be launched */
52 };
53
54 typedef struct _syspopup_info_t syspopup_info_t;
55
56 syspopup_info_t *_syspopup_info_get(const char *popup_name);
57 void _syspopup_info_free(syspopup_info_t *pinfo);
58
59 #endif
60