|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // HEADER INFO |
|
15 // Describes the converter. |
|
16 // |
|
17 // |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @publishedAll |
|
23 @released |
|
24 */ |
|
25 STRUCT CONARC_RESOURCE_FILE |
|
26 { |
|
27 /** Future use, do not use */ |
|
28 LLINK extension = 0; |
|
29 // |
|
30 LEN WORD STRUCT converter_list[]; // Converter_data |
|
31 } |
|
32 |
|
33 STRUCT CONVERTER_DATA |
|
34 /** Describes a converter within a converter DLL. |
|
35 |
|
36 @publishedAll |
|
37 @released */ |
|
38 { |
|
39 /** Future use, do not use */ |
|
40 LLINK extension = 0; |
|
41 /** The UID of the converter. */ |
|
42 LONG conv_uid; |
|
43 // |
|
44 /** Array of MIME resources describing the data types that the converter can convert. |
|
45 |
|
46 Target type: MIME */ |
|
47 LEN WORD STRUCT from_list[]; // Mime Type |
|
48 /** Array of MIME resources describing the data types to which the converter can convert. |
|
49 |
|
50 Target type: MIME */ |
|
51 LEN WORD STRUCT to_list[]; // Mime Type |
|
52 // |
|
53 } |
|
54 |
|
55 /** |
|
56 @publishedAll |
|
57 @released |
|
58 */ |
|
59 #define KMaxMimeType 256 |
|
60 |
|
61 /** |
|
62 @publishedAll |
|
63 @released |
|
64 */ |
|
65 #define KMaxTranslation 50 |
|
66 |
|
67 STRUCT MIME |
|
68 /** Describes a data type that a converter can convert to or from. |
|
69 |
|
70 @publishedAll |
|
71 @released */ |
|
72 { |
|
73 /** Future use, do not use */ |
|
74 LLINK extension = 0; |
|
75 /** The supported MIME type, e.g. text/html. */ |
|
76 LTEXT8 type(KMaxMimeType); |
|
77 /** Array of LANG_DATA resources giving localised human-readable names for the MIME type. |
|
78 |
|
79 Target type: LANG_DATA */ |
|
80 LEN WORD STRUCT lang_list[] ; //lang_data |
|
81 } |
|
82 |
|
83 STRUCT LANG_DATA |
|
84 /** A localised human-readable name for a MIME type. |
|
85 |
|
86 @publishedAll |
|
87 @released */ |
|
88 { |
|
89 /** Future use, do not use */ |
|
90 LLINK extension = 0; |
|
91 /** The ID of the language being used.Values should be as defined in TLanguage. */ |
|
92 WORD lang_id; |
|
93 /** The human-readable name for the MIME type. */ |
|
94 LTEXT translation(KMaxTranslation); |
|
95 } |