sync with tizen 2.0
[apps/core/preloaded/tickernoti.git] / src / tickernoti-syspopup.h
1 /*
2  * tickernoti
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18
19
20 #ifndef __TICKERNOTI_SYSPOPUP_APP_H__
21 #define __TICKERNOTI_SYSPOPUP_APP_H__
22
23 #if !defined(PACKAGE)
24 #define PACKAGE "tickernoti_syspopup"
25 #endif
26 //TODO: what is the path?
27 #define EDJ_PATH PREFIX"/res/edje"
28 #define TICKERNOTI_EDJ EDJ_PATH"/tickernoti.edj"
29 #define TICKERNOTI_DEFAULT_BG_MIN_HEIGHT "98"
30 #define TICKERNOTI_INFO_BG_MIN_HEIGHT "50"
31
32 enum syspopup_param {
33         SYSPOPUP_STYLE = 0,
34         SYSPOPUP_TEXT,
35         SYSPOPUP_ORIENT,
36         SYSPOPUP_TIMEOUT
37         /* When we need to deliver other parameters to tickernoti-syspopup
38          * add the types of parameters */
39 };
40
41 typedef enum
42 {
43         //TODO: ENUM name
44         _ELM_TICKERNOTI_ORIENT_TOP = 0,
45         _ELM_TICKERNOTI_ORIENT_BOTTOM,
46         _ELM_TICKERNOTI_ORIENT_LAST
47 }  _Elm_Tickernoti_Orient;
48
49 typedef enum
50 {
51         _ELM_TICKERNOTI_DEFAULT,
52         _ELM_TICKERNOTI_DETAILVIEW
53 } _Elm_Tickernoti_Mode;
54
55 struct appdata {
56         Evas_Object             *win;
57         bundle                  *b;
58         const char*             style;
59         const char*             text;
60         int                             timeout;
61         Ecore_Timer             *e_timer;
62
63    Evas_Object *layout;
64    Ecore_Event_Handler *rotation_event_handler;
65    int noti_height;
66    int angle;
67    _Elm_Tickernoti_Mode mode;
68    _Elm_Tickernoti_Orient orient;
69
70         /* add more variables here */
71 };
72
73 #endif                    /* __TICKERNOTI_SYSPOPUP_APP_H__ */
74