1. Changed license year
[apps/home/mobileprint.git] / mobileprint / include / pts_main_view.h
1 /*
2 *  Mobileprint
3 *
4 * Copyright 2012  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 PTS_MAIN_VIEW_H_
21 #define PTS_MAIN_VIEW_H_
22
23 #include <app.h>
24
25 extern int g_pages_count;
26
27 struct appdata *pts_get_appdata();
28
29 void clear_preview_image(pts_appdata_t *ad);
30
31 /**
32  *      This function let the app rotate the image by the given landscape
33  *      @return   void
34  *      @param[in] ugd the pointer to the main data structure
35  *      @param[in] landscape the landscape value
36  */
37 void pts_main_view_rotate_image(pts_appdata_t *ad,
38                                                                 app_device_orientation_e orientation);
39
40 /**
41  *      This function let the app update printer label in the preview view
42  *      @return  void
43  *      @param[in] ugd the pointer to the main data structure
44  */
45 void pts_main_view_update_printer_label(pts_appdata_t *ad);
46
47 /**
48  *      This function let the app load the previewed image
49  *      @return  Evas_Object
50  *      @param[in] ugd the pointer to the main data structure
51  */
52 Evas_Object *pts_main_view_load_preview_img(pts_appdata_t *ad);
53
54 /**
55  *      This function let the app create the main screen view
56  *      @return  Evas_Object
57  *      @param[in] win the pointer to the main window
58  *      @param[in] filepath the pointer to the path of files
59  */
60 Evas_Object *pts_create_main_view(pts_appdata_t *ad);
61
62
63 void pts_main_view_search_printer(pts_appdata_t *ad);
64
65
66 int pts_main_view_load_printing_data(pts_appdata_t *ad, pts_printing_data_t *pt_files);
67
68
69 void __pts_event_cb(pt_event_e event, void *user_data, pt_progress_info_t *progress_info);
70
71 void __pts_print_progress_popup(pts_appdata_t *ad, int job_id, int page_count);
72
73 void __pts_print_dummy_popup(pts_appdata_t *ad, char *files, int page_count);
74
75 #endif /* PTS_MAIN_VIEW_H_ */