|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Resource file for MIME type to media type mapping |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // RESOURCE IDENTIFIER |
|
21 NAME MMMM |
|
22 |
|
23 // INCLUDES |
|
24 #include <bldvariant.hrh> |
|
25 #include <eikon.rh> |
|
26 #include "MsgMimeToMediaMapping.rh" |
|
27 #include "MsgMedia.hrh" |
|
28 |
|
29 |
|
30 RESOURCE RSS_SIGNATURE { } |
|
31 |
|
32 |
|
33 // RESOURCE DEFINITIONS |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // R_MSG_MEDIAGROUPS |
|
37 // Notice! All the MIME types must be 8-bit descriptors. |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 RESOURCE MSG_MEDIA_TYPE_LIST r_msg_mediagroups |
|
41 { |
|
42 mediagroups = |
|
43 { |
|
44 MSG_MEDIA_GROUP |
|
45 { |
|
46 // This "black list" group must be kept first! |
|
47 id = EMsgMediaUnknown; |
|
48 mimetypes = |
|
49 { |
|
50 #ifndef RD_SVGT_IN_MESSAGING |
|
51 // SVG-T |
|
52 LBUF { txt = "image/svg+xml"; }, |
|
53 #endif |
|
54 // TIFF images |
|
55 LBUF { txt = "image/tiff"; }, |
|
56 // Audio playlist |
|
57 LBUF { txt = "audio/mpegurl"; }, |
|
58 // Audio streaming URL |
|
59 LBUF { txt = "audio/x-pn-realaudio-plugin"; } |
|
60 }; |
|
61 }, |
|
62 MSG_MEDIA_GROUP |
|
63 { |
|
64 id = EMsgMediaText; |
|
65 mimetypes = |
|
66 { |
|
67 LBUF { txt = "text/plain"; } |
|
68 }; |
|
69 }, |
|
70 MSG_MEDIA_GROUP |
|
71 { |
|
72 id = EMsgMediaXhtml; |
|
73 mimetypes = |
|
74 { |
|
75 LBUF { txt = "text/html"; }, |
|
76 LBUF { txt = "application/xhtml+xml"; }, |
|
77 LBUF { txt = "application/vnd.wap.xhtml+xml"; } |
|
78 }; |
|
79 }, |
|
80 #ifdef RD_SVGT_IN_MESSAGING |
|
81 MSG_MEDIA_GROUP |
|
82 { |
|
83 // This must be before the "image/*" wildcard match |
|
84 id = EMsgMediaSvg; |
|
85 mimetypes = |
|
86 { |
|
87 LBUF { txt = "image/svg+xml"; } |
|
88 }; |
|
89 }, |
|
90 #endif |
|
91 MSG_MEDIA_GROUP |
|
92 { |
|
93 id = EMsgMediaImage; |
|
94 mimetypes = |
|
95 { |
|
96 LBUF { txt = "image/*"; } |
|
97 }; |
|
98 }, |
|
99 // Video group must be before audio group, because there is mime type |
|
100 // 'audio/vnd.rn-realaudio' in this. Otherwise 'audio/*' catches the video type. |
|
101 // 'application/x-pn-realmedia' added also to the list, because |
|
102 // a .ra file is resolved as 'application/x-pn-realmedia' instead of 'audio/vnd.rn-realaudio', |
|
103 // which some tools propose. |
|
104 MSG_MEDIA_GROUP |
|
105 { |
|
106 id = EMsgMediaVideo; |
|
107 mimetypes = |
|
108 { |
|
109 LBUF { txt = "video/*"; }, |
|
110 LBUF { txt = "application/vnd.rn-realmedia"; }, |
|
111 LBUF { txt = "audio/vnd.rn-realaudio"; }, |
|
112 LBUF { txt = "application/x-pn-realmedia"; } |
|
113 }; |
|
114 }, |
|
115 // See comment in video group |
|
116 MSG_MEDIA_GROUP |
|
117 { |
|
118 id = EMsgMediaAudio; |
|
119 mimetypes = |
|
120 { |
|
121 LBUF { txt = "audio/*"; }, |
|
122 LBUF { txt = "application/vnd.nokia.ringing-tone"; } |
|
123 }; |
|
124 } |
|
125 }; |
|
126 } |
|
127 |
|
128 |
|
129 // End of File |