PictBridgeStruct.h
8.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2007
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*****************************************************************************
*
* Filename:
* ---------
* PictBridgeStruct.h
*
* Project:
* --------
* MAUI
*
* Description:
* ------------
* This file is intended for PictBridge appliction.
*
* Author:
* -------
* -------
*
*==============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
#ifndef __PICT_BRIDGE_STRUCT_H__
#define __PICT_BRIDGE_STRUCT_H__
#include "MMI_features.h"
#ifdef __MMI_PICT_BRIDGE_SUPPORT__
#ifdef __MMI_PICT_BRIDGE_COMPLIANCE_TEST__
#include "XML_def.h"
#endif
/* auto add by kw_check begin */
#include "MMIDataType.h"
#include "wgui_categories_list.h"
#include "fs_type.h"
#include "FileMgrSrvGProt.h"
#include "PictBridgeDef.h"
/* auto add by kw_check end */
#define PICT_MAX_CAPABILITY_NUM 10 /* total capability count */
#define PICT_PERCENT_STR_SIZE 32 /* printing information string size */
#define PICT_MODIS_BUF_SIZE 20480 /* encoding buffer size in MoDIS */
typedef struct
{
S8 *xml_operation_cmd;
S8 *xml_event_cmd;
U32 xml_operation_cmd_size;
U32 xml_event_cmd_size;
U32 xml_start_job_cmd_size; /* special size for start job command */
U8 xml_capability_index;
U8 xml_layout_index;
U8 dps_status; /* 0: idle, 1: busy */
U8 printing; /* 0: not, 1: printing now, 2: error */
U16 error_string_id;
#ifdef __MMI_PICT_BRIDGE_CROPPING__
S32 image_width;
S32 image_height;
#endif /* __MMI_PICT_BRIDGE_CROPPING__ */
FuncPtr next_operation_request;
FuncPtr next_event_request;
#ifdef __DRM_SUPPORT__
FS_DOSDirEntry printing_file_info;
#endif
U8 printing_capability[PICT_MAX_CAPABILITY_NUM]; /* IOT: HP cannot support all capabilities, 0: supported, 1: not */
U8 printing_percentage[PICT_PERCENT_STR_SIZE * ENCODING_LENGTH]; /* with null terminator */
U8 printing_curr_page;
U8 printing_total_page;
U8 printing_filepath[(SRV_FMGR_PATH_MAX_LEN + 1) * ENCODING_LENGTH]; /* with null terminator */
#ifdef __MMI_FMGR_MULTI_SELECT_SUPPORT__
U8 bad_file_cnt; /* not JPG file */
U8 drm_file_cnt; /* JPG file with DRM */
U8 inv_file_cnt; /* JPG file but invalid format */
U8 jpg_file_cnt; /* JPG file */
U8 *file_stat_buffer;
U8 multi_file_select; /* selected image number */
U8 multi_file_path[PICT_MAX_MULTI_FILES][(SRV_FMGR_PATH_MAX_FILE_NAME_LEN + 1) * ENCODING_LENGTH];
FS_DOSDateTime multi_file_date[PICT_MAX_MULTI_FILES];
U32 multi_file_size[PICT_MAX_MULTI_FILES];
#ifdef __DRM_SUPPORT__
U8 multi_file_consume[PICT_MAX_MULTI_FILES];
#endif
#else
FS_DOSDateTime printing_filedate; /* 2007/12/25 */
#ifdef __DRM_SUPPORT__
U8 drm_consume_cnt;
#endif
#endif /* __MMI_FMGR_MULTI_SELECT_SUPPORT__ */
#ifndef __MTK_TARGET__
U8 xml_modis_buffer[PICT_MODIS_BUF_SIZE];
#endif
#ifdef __MMI_PICT_BRIDGE_COMPLIANCE_TEST__
XML_PARSER_STRUCT *parser;
#endif
U8 user_abort;
U8 curr_index;
U8 error_index;
} pict_bridge_context_struct;
typedef struct
{
U32 xml_result;
U8 xml_cmd;
U8 xml_attr;
/* configurePrintService */
/* ignore vendorName, vendorSpecificVersion, and serialNo*/
pBOOL service_available;
S8 dps_version[PICT_MAX_DPS_VERSION_LEN + 1]; /* 1.0 + NULL */
S8 product_name[PICT_MAX_PRODUCT_NAME_LEN + 1]; /* 31 words + NULL */
/* getCapability */
U8 qualities;
U8 paper_sizes;
U8 file_types;
U8 date_prints;
U8 filename_prints;
U8 image_optimizes;
U8 croppings;
U8 paper_types[PICT_PAPER_MAX]; /* default, postcard, 4x6, letter, A4 */
U8 layouts[PICT_PAPER_MAX]; /* default, postcard, 4x6, letter, A4 */
/* notifyDeviceStatus */
#ifdef __MMI_PICT_BRIDGE_COMPLIANCE_TEST__
U32 nds_service_status;
U32 nds_error_status;
U32 nds_error_reason;
#endif /* __MMI_PICT_BRIDGE_COMPLIANCE_TEST__ */
} pict_bridge_xml_struct;
typedef struct
{
S32 paper_size;
S32 number_of_copies;
S32 page_format;
S32 layout;
S32 border;
S32 date_print;
S32 filename_print;
S32 cropping;
S32 fixed_size;
#ifdef __MMI_PICT_BRIDGE_CROPPING__
S32 x_coordinate;
S32 y_coordinate;
S32 x_arix;
S32 y_arix;
U8 x_coordinate_display[(PICT_MAX_IMAGE_LEN + 1) * ENCODING_LENGTH];
U8 y_coordinate_display[(PICT_MAX_IMAGE_LEN + 1) * ENCODING_LENGTH];
U8 x_arix_display[(PICT_MAX_IMAGE_LEN + 1) * ENCODING_LENGTH];
U8 y_arix_display[(PICT_MAX_IMAGE_LEN + 1) * ENCODING_LENGTH];
#endif
U16 paper_list[PICT_PAPER_MAX]; /* default, postcard, 4x6, letter, A4 */
U16 copies_list[10]; /* 1 ~ 10 */
U16 format_list[3]; /* standard, multiple, index */
U16 layout_list[4]; /* 1, 2, 4, All(ifdef __MMI_PICT_BRIDGE_INDEX_PRINT__) */
U16 border_list[3]; /* default, on, off */
U16 date_list[3]; /* default, on, off */
U16 filename_list[3]; /* default, on, off */
U16 fixed_list[1]; /* disable */
U16 cropping_list[3]; /* default, on, off */
U8 if_prefer_invalid;
} pict_bridge_setting_struct;
typedef struct
{
U32 flag; /* we can check @paper_size value too, but here we set this par. */
U32 paper_size; /* save really value, not index */
U32 copies;
U32 page_format;
U32 layout;
U32 border;
U32 date_print;
U32 filename_print;
U32 cropping;
U32 fixed_size;
} pict_bridge_preference_nvram_struct;
#endif /* __MMI_PICT_BRIDGE_SUPPORT__ */
#endif /* __PICT_BRIDGE_STRUCT_H__ */