4 * Copyright 2013 Samsung Electronics Co., Ltd
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
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 _PREVIEW_TASK_MODEL_H_INCLUDED_
21 #define _PREVIEW_TASK_MODEL_H_INCLUDED_
23 //#define MAX_PREVIEW_TASK_COUNT 3 /* TODO: autodetection */
24 #define PREVIEW_EMPTY_PAGE_FNAME PREVIEW_TEMP_DIR "/empty_page.ppm"
26 struct preview_task_model;
30 #include <previewgen.h> /* PREVIEW_TEMP_DIR definition */
32 struct preview_task_model {
34 Ecore_Exe *previewgen_handle;
35 Ecore_Event_Handler *event_handler;
37 int is_stop_processing;
39 struct preview_engine *engine;
42 #include "preview_model.h"
45 #define PREVIEW_EMPTY_PAGE_FNAME PREVIEW_TEMP_DIR "/empty_page.ppm"
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);
59 #endif /* _PREVIEW_TASK_MODEL_H_INCLUDED_ */