4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Seungtaek Chung <seungtaek.chung@samsung.com>, Mi-Ju Lee <miju52.lee@samsung.com>, Xi Zhichan <zhichan.xi@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 #ifndef __NOTIFICATION_INTERNAL_H__
23 #define __NOTIFICATION_INTERNAL_H__
26 #define EXPORT_API __attribute__ ((visibility("default")))
29 struct _notification {
30 notification_type_e type;
32 int group_id; /* Group ID */
33 int internal_group_id; /* Internal Group ID */
34 int priv_id; /* Private ID */
36 char *caller_pkgname; /* Caller App package name */
37 char *launch_pkgname; /* Launch App package name. It will be from appsvc_set_pkgname */
38 bundle *args; /* Will be removed. */
39 bundle *group_args; /* Will be removed. */
41 bundle *b_execute_option;
42 bundle *b_service_responding;
43 bundle *b_service_single_launch;
44 bundle *b_service_multi_launch;
46 char *domain; /* Text domain for localization */
47 char *dir; /* Text dir for localization */
49 bundle *b_text; /* basic text */
50 bundle *b_key; /* key for localized text */
51 bundle *b_format_args; /* args type and value for format string */
52 int num_format_args; /* number of format string args */
54 bundle *b_image_path; /* image path */
56 notification_sound_type_e sound_type;
58 notification_vibration_type_e vibration_type;
61 time_t time; /* time set by application */
62 time_t insert_time; /* insert time */
64 int flags_for_property; /* property NOTIFICATION_PROP_XXX */
65 int display_applist; /* display app list NOTIFICATION_DISPLAY_APP_XXX */
67 double progress_size; /* size of progress */
68 double progress_percentage; /* percentage of progress */
70 char *app_icon_path; /* Temporary stored app icon path from AIL */
71 char *app_name; /* Temporary stored app name from AIL */
76 #endif /* __NOTIFICATION_INTERNAL_H__ */