4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>,
7 * Jaeho Lee <jaeho81.lee@samsung.com>
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
24 #ifndef __SYSPOPUP_CALLER_H__
25 #define __SYSPOPUP_CALLER_H__
35 * @file syspopup_caller.h
36 * @brief Library to launch/destroy System Popup Application
38 * Patched by Knhoon Baik <knhoon.baik@samsung.com>
39 * Patched by Noha Park <noha.park@samsung.com>
43 * @defgroup syspopup_caller Helper Library to launch/destroy system popup application
45 * @brief Helper Library to launch/destroy system popup application
49 * @addtogroup syspopup_caller
54 * @brief This API launch the system popup application with given popup name.
56 * This API launch the system popup application.
57 * This API find system popup application package name with given popup name from system popup infomation DB.\n
58 * And then, launch found application package
60 * @param[in] popup_name system popup application name to launch (not package name)
61 * @param[in] b extra bundle(arguement) to toss the popup application
62 * @return 0 if success, negative value(<0) if fail
64 * @retval -1 - generic error
72 * b = bundle_create();
73 * bundle_add(b, "_SYSPOPUP_TITLE_", "System Popup Title");
74 * bundle_add(b, "_SYSPOPUP_CONTENT_", "System Popup Content");
76 * ret = syspopup_launch("syspopup-app", b);
83 int syspopup_launch(char *popup_name, bundle *b);
86 * @brief This API generate destroy event to all system popup application.
87 * This API can call with proper permission (root or inhouse)
89 * @return 0 if success, negative value(<0) if fail
91 * @retval -1 - generic error
93 int syspopup_destroy_all();