Initialize Tizen 2.3
[platform/core/api/notification.git] / include / notification_internal.h
1 /*
2  *  libnotification
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Seungtaek Chung <seungtaek.chung@samsung.com>, Mi-Ju Lee <miju52.lee@samsung.com>, Xi Zhichan <zhichan.xi@samsung.com>
7  *
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
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
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.
19  *
20  */
21
22 #ifndef __NOTIFICATION_INTERNAL_H__
23 #define __NOTIFICATION_INTERNAL_H__
24
25 #ifndef EXPORT_API
26 #define EXPORT_API __attribute__ ((visibility("default")))
27 #endif
28
29 struct _notification {
30         notification_type_e type;
31         notification_ly_type_e layout;
32
33         int group_id;           /* Group ID */
34         int internal_group_id;  /* Internal Group ID */
35         int priv_id;            /* Private ID */
36
37         char *caller_pkgname;   /* Caller App package name */
38         char *launch_pkgname;   /* Launch App package name. It will be from appsvc_set_pkgname */
39         bundle *args;           /* Will be removed. */
40         bundle *group_args;     /* Will be removed. */
41
42         bundle *b_execute_option;
43         bundle *b_service_responding;
44         bundle *b_service_single_launch;
45         bundle *b_service_multi_launch;
46
47         char *domain;           /* Text domain for localization */
48         char *dir;              /* Text dir for localization */
49
50         bundle *b_text;         /* basic text */
51         bundle *b_key;          /* key for localized text */
52         bundle *b_format_args;  /* args type and value for format string */
53         int num_format_args;    /* number of format string args */
54
55         bundle *b_image_path;   /* image path */
56
57         notification_sound_type_e sound_type;
58         char *sound_path;
59         notification_vibration_type_e vibration_type;
60         char *vibration_path;
61         notification_led_op_e led_operation;
62         int led_argb;
63         int led_on_ms;
64         int led_off_ms;
65
66         time_t time;            /* time set by application */
67         time_t insert_time;     /* insert time */
68
69         int flags_for_property; /* property NOTIFICATION_PROP_XXX */
70         int display_applist;    /* display app list  NOTIFICATION_DISPLAY_APP_XXX */
71
72         double progress_size;   /* size of progress */
73         double progress_percentage;     /* percentage of progress */
74
75         char *app_icon_path;    /* Temporary stored app icon path from AIL */
76         char *app_name;         /* Temporary stored app name from AIL */
77         char *temp_title;
78         char *temp_content;
79 };
80
81 #endif                          /* __NOTIFICATION_INTERNAL_H__ */