45a8e46034184c58cf4fa728e8b4ee80cc1ad4e2
[apps/home/mobileprint.git] / mobileprint / include / preview_task_model.h
1 /*
2 *  Mobileprint
3 *
4 * Copyright 2012  Samsung Electronics Co., Ltd
5
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
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
25 struct preview_task_model;
26 struct preview_conf;
27
28 #include <Ecore.h>
29
30 struct preview_task_model {
31         Eina_List *task_list;
32         Ecore_Thread *thread;
33
34         int is_stop_processing;
35
36         struct preview_engine *engine;
37 };
38
39 #include "preview_model.h"
40
41 int init_preview_task_model(struct preview_task_model *model,
42                                                         struct preview_engine *engine);
43 int preview_task_stop_processing(struct preview_task_model *task_model);
44 int add_preview_task_initial(struct preview_task_model *model,
45                                                          const struct preview_conf *conf);
46 int add_preview_task(struct preview_task_model *model, int page,
47                                          struct preview_model *pmodel);
48
49
50 #endif /* _PREVIEW_TASK_MODEL_H_INCLUDED_ */
51