4 * Copyright 2012 Samsung Electronics Co., Ltd
6 * Licensed under the Flora License, Version 1.0 (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
10 * http://floralicense.org/license/
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.
20 #ifndef PTS_MAIN_VIEW_H_
21 #define PTS_MAIN_VIEW_H_
25 extern int g_pages_count;
27 struct appdata *pts_get_appdata();
29 void clear_preview_image(pts_core_data_t *ugd);
32 * This function let the app rotate the image by the given landscape
34 * @param[in] ugd the pointer to the main data structure
35 * @param[in] landscape the landscape value
37 void pts_main_view_rotate_image(pts_core_data_t *ugd,
38 app_device_orientation_e orientation);
41 * This function let the app update printer label in the preview view
43 * @param[in] ugd the pointer to the main data structure
45 void pts_main_view_update_printer_label(pts_core_data_t *ugd);
48 * This function let the app load the previewed image
50 * @param[in] ugd the pointer to the main data structure
52 Evas_Object *pts_main_view_load_preview_img(pts_core_data_t *ugd);
55 * This function let the app create the main screen view
57 * @param[in] win the pointer to the main window
58 * @param[in] filepath the pointer to the path of files
60 Evas_Object *pts_create_main_view(pts_core_data_t *ugd);
63 void pts_main_view_search_printer(pts_core_data_t *ugd);
66 int pts_main_view_load_print_files(pts_core_data_t *ugd, pts_printing_data_t *pt_files);
69 void __pts_event_cb(pt_event_e event, void *user_data, pt_progress_info_t *progress_info);
71 void __pts_print_progress_popup(pts_core_data_t *ugd, int job_id, int page_count);
73 void __pts_print_dummy_popup(pts_core_data_t *ugd, char *files, int page_count);
75 #endif /* PTS_MAIN_VIEW_H_ */