Merge "Apply thread list options and create split view"
[apps/core/preloaded/message-app.git] / main / message.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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 #ifndef __DEF_message_H_
18 #define __DEF_message_H_
19
20 #include <stdio.h>
21 #include <glib.h>
22 #include <msg.h>
23 #include <msg_storage.h>
24 #include <msg_transport.h>
25
26 #include <libintl.h>
27 #include <bundle.h>
28 #include <app.h>
29 #include <Ecore.h>
30 #include <Elementary.h>
31 #include <ui-gadget-module.h>
32 #include <utilX.h>
33 #include "msg-ui-util.h"
34 #include <aul.h>
35 #include <appsvc.h>
36
37 #define POPUP_DELAY (1)
38 #define DEF_NUM_LEN     (64)
39
40 #define MSG_UI_CAPTURE_IMAGE    "com.samsung.message"
41
42 typedef enum {
43         MSG_COMPOSER_UG_TYPE_NONE = 0,
44         MSG_COMPOSER_UG_TYPE_COMPOSER,
45         MSG_COMPOSER_UG_TYPE_VIEWER,
46 } MessageComposerUgType;
47
48 struct appdata
49 {
50         Evas_Object *win_main;
51         Evas_Object *layout_main;
52
53         struct ug_cbs cbs;
54         ui_gadget_h composer_ug;
55         MessageComposerUgType ug_type;
56
57
58         msg_handle_t msgHandle;
59         void *thread_data;
60 };
61
62 int msg_ui_load_composer_ug(service_h svc_handle, MessageComposerUgType ug_type);
63 Evas_Object *msg_ui_get_composer_ug_viewer_layout(void);
64 void msg_ui_destroy_composer_ug(void);
65
66 #endif /* __DEF_message_H__ */
67
68