Git init
[apps/home/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
32         int group_id;           /* Group ID */
33         int internal_group_id;  /* Internal Group ID */
34         int priv_id;            /* Private ID */
35
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. */
40
41         bundle *b_execute_option;
42         bundle *b_service_responding;
43         bundle *b_service_single_launch;
44         bundle *b_service_multi_launch;
45
46         char *domain;           /* Text domain for localization */
47         char *dir;              /* Text dir for localization */
48
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 */
53
54         bundle *b_image_path;   /* image path */
55
56         notification_sound_type_e sound_type;
57         char *sound_path;
58         notification_vibration_type_e vibration_type;
59         char *vibration_path;
60
61         time_t time;            /* time set by application */
62         time_t insert_time;     /* insert time */
63
64         int flags_for_property; /* property NOTIFICATION_PROP_XXX */
65         int display_applist;    /* display app list  NOTIFICATION_DISPLAY_APP_XXX */
66
67         double progress_size;   /* size of progress */
68         double progress_percentage;     /* percentage of progress */
69
70         char *app_icon_path;    /* Temporary stored app icon path from AIL */
71         char *app_name;         /* Temporary stored app name from AIL */
72         char *temp_title;
73         char *temp_content;
74 };
75
76 #endif                          /* __NOTIFICATION_INTERNAL_H__ */