1. Changed license year
[apps/home/mobileprint.git] / mobileprint / smsc / include / smsc_widget.h
1 /*
2 *  Mobileprint
3 *
4 * Copyright 2013  Samsung Electronics Co., Ltd
5
6 * Licensed under the Flora License, Version 1.1 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9
10 * http://floralicense.org/license/
11
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20 #ifndef _SMSC_WIDGET_H_INCLUDED_
21 #define _SMSC_WIDGET_H_INCLUDED_
22
23
24 #include <Elementary.h>
25 #include <Eina.h>
26
27 #include <preview_engine.h>
28
29 #include "smsc_control.h"
30 #include "smsc_position.h"
31
32
33 struct smsc_page_data {
34         int num;
35         Evas_Object *page_obj;
36 };
37
38 struct smsc_widget {
39         int is_ready;
40         Eina_List *pages_list;
41
42         struct smsc_position position;
43         struct smsc_control control;
44
45         Evas_Object *loading_animation;
46         Evas_Object *parent;
47         Evas_Object *layout;
48
49         Evas *canvas;
50
51         int posy;
52
53         int off_x;
54         int off_y;
55
56         struct preview_engine engine;
57 };
58
59
60 int init_smsc_widget(struct smsc_widget *widget, Evas_Object *parent);
61 int clear_smsc_position_settings(struct smsc_position *position);
62
63 int clear_smsc_widget(struct smsc_widget *widget);
64 int hide_smsc_widget(struct smsc_widget *widget);
65 int show_smsc_widget(struct smsc_widget *widget);
66 int smsc_widget_set_layout(struct smsc_widget *widget, Evas_Object *layout);
67
68 int move_smsc_widget_pages(struct smsc_widget *widget);
69
70
71 #endif /* _SMSC_WIDGET_H_INCLUDED_ */
72