a75e822f8f90b2d686dd65fcad6b971accc7cac8
[apps/home/quickpanel.git] / daemon / notifications / noti.h
1 /*
2  * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18
19 #ifndef __NOTI_H__
20 #define __NOTI_H__
21
22 #include "quickpanel-ui.h"
23 #include "noti_node.h"
24
25 #define NOTI_PRESS_BG 0
26 #define NOTI_PRESS_BUTTON_1 1
27
28 #define QP_PRELOAD_NOTI_ICON_PATH "/usr/apps/org.tizen.quickpanel/shared/res/noti_icons"
29
30 char *quickpanel_noti_get_time(time_t t, char *buf, int buf_len);
31 int quickpanel_noti_get_count(void);
32 int quickpanel_noti_get_geometry(int *limit_h, int *limit_partial_h, int *limit_partial_w);
33 void quickpanel_noti_closing_trigger_set(void);
34
35 noti_node_item *quickpanel_noti_node_get_by_priv_id(int priv_id);
36 noti_node_item *quickpanel_noti_node_get_first_noti(void);
37
38 void quickpanel_noti_set_clear_all_status();
39
40 void on_clear_all_clicked(void *data, Evas_Object *obj, void *info);
41 int quickpanel_noti_get_type_count(notification_type_e noti_type);
42
43 void quickpanel_noti_init_noti_section(void);
44
45 #endif