1. Changed license year
[apps/home/mobileprint.git] / mobileprint / preview_engine / include / preview_task_model.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 _PREVIEW_TASK_MODEL_H_INCLUDED_
21 #define _PREVIEW_TASK_MODEL_H_INCLUDED_
22
23 //#define MAX_PREVIEW_TASK_COUNT        3 /* TODO: autodetection */
24 #define PREVIEW_EMPTY_PAGE_FNAME        PREVIEW_TEMP_DIR "/empty_page.ppm"
25
26 struct preview_task_model;
27 struct preview_conf;
28
29 #include <Ecore.h>
30 #include <previewgen.h> /* PREVIEW_TEMP_DIR definition */
31
32 struct preview_task_model {
33         Eina_List *task_list;
34         Ecore_Exe *previewgen_handle;
35         Ecore_Event_Handler *event_handler;
36
37         int is_stop_processing;
38
39         struct preview_engine *engine;
40 };
41
42 #include "preview_model.h"
43
44
45 #define PREVIEW_EMPTY_PAGE_FNAME        PREVIEW_TEMP_DIR "/empty_page.ppm"
46
47
48 int init_preview_task_model(struct preview_task_model *model,
49                                                         struct preview_engine *engine);
50 int preview_task_stop_processing(struct preview_task_model *task_model);
51 int add_preview_task_initial(struct preview_task_model *model,
52                                                          const struct preview_conf *conf);
53 int add_preview_task_empty_page(struct preview_task_model *model,
54                                          struct preview_model *pmodel);
55 int add_preview_task(struct preview_task_model *model, int page,
56                                          struct preview_model *pmodel);
57
58
59 #endif /* _PREVIEW_TASK_MODEL_H_INCLUDED_ */
60