|
1 /* |
|
2 * Copyright (c) 2006-2007 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: UPnP Object-related constant definitions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // System includes |
|
20 #include <e32base.h> |
|
21 |
|
22 // mime types <-> files ext |
|
23 |
|
24 // XHTML |
|
25 _LIT8( KXHtmlMime, "application/xhtml+xml" ); |
|
26 _LIT( KXHtmlExt, ".xhtml" ); |
|
27 |
|
28 // HTML |
|
29 _LIT8( KHtmlMime, "text/html" ); |
|
30 _LIT( KHtmlExt, ".html" ); |
|
31 |
|
32 // XML |
|
33 _LIT8( KXmlMime1, "text/xml" ); |
|
34 _LIT8( KXmlMime2, "application/xml" ); |
|
35 _LIT8( KXmlMime3, "application/x-xml"); |
|
36 _LIT( KXmlExt, ".xml" ); |
|
37 |
|
38 // TXT |
|
39 _LIT8( KTxtMime, "text/plain" ); |
|
40 _LIT8( KTxtMime2, "application/txt" ); |
|
41 _LIT8( KTxtMime3, "browser/internal" ); |
|
42 _LIT8( KTxtMime4, "text/anytext" ); |
|
43 _LIT8( KTxtMime5, "widetext/plain" ); |
|
44 _LIT8( KTxtMime6, "widetext/paragraph" ); |
|
45 _LIT( KTxtExt, ".txt" ); |
|
46 |
|
47 // JPEG |
|
48 _LIT8( KJpegMime, "image/jpeg" ); |
|
49 _LIT( KJpegExt, ".jpeg" ); |
|
50 |
|
51 // JPG |
|
52 _LIT8( KJpegMime2, "image/jpg" ); |
|
53 _LIT8( KJpegMime3, "image/jpe_" ); |
|
54 _LIT8( KJpegMime4, "image/pjpeg" ); |
|
55 _LIT8( KJpegMime5, "image/vnd.swiftview-jpeg" ); |
|
56 _LIT( KJpgExt, ".jpg" ); |
|
57 |
|
58 // GIF |
|
59 _LIT8( KGifMime, "image/gif" ); |
|
60 _LIT8( KGifMime2, "image/x-xbitmap" ); |
|
61 _LIT8( KGifMime3, "image/gi_" ); |
|
62 _LIT( KGifExt, ".gif" ); |
|
63 |
|
64 // PNG |
|
65 _LIT8( KPngMime, "image/png" ); |
|
66 _LIT8( KPngMime2, "application/png" ); |
|
67 _LIT8( KPngMime3, "application/x-png" ); |
|
68 _LIT( KPngExt, ".png" ); |
|
69 |
|
70 // MPG |
|
71 _LIT8( KMpgMime1, "video/mpeg"); |
|
72 _LIT8( KMpgMime2, "video/mpg"); |
|
73 _LIT8( KMpgMime3, "video/x-mpg"); |
|
74 _LIT8( KMpgMime4, "video/mpeg2" ); |
|
75 _LIT8( KMpgMime5, "application/x-pn-mpg" ); |
|
76 _LIT8( KMpgMime6, "video/x-mpeg" ); |
|
77 _LIT8( KMpgMime7, "video/x-mpeg2a"); |
|
78 _LIT8( KMpgMime10, "image/mpg" ); |
|
79 _LIT( KMpgExt1, ".mpg" ); |
|
80 |
|
81 // MPEG4 |
|
82 _LIT8( KMpeg4Mime, "video/mpeg4" ); |
|
83 _LIT( KMpeg4Ext, ".mpeg4" ); |
|
84 |
|
85 // MP4 |
|
86 _LIT8( KMp4Mime, "video/mp4" ); |
|
87 _LIT8( KMp4Mime2, "video/mp4v-es" ); |
|
88 _LIT8( KMp4Mime3, "audio/mp4" ); |
|
89 _LIT( KMp4Ext, ".mp4" ); |
|
90 |
|
91 // AVI |
|
92 _LIT8( KAviMime1, "video/avi" ); |
|
93 _LIT8( KAviMime2, "video/msvideo" ); |
|
94 _LIT8( KAviMime3, "video/x-msvideo" ); |
|
95 _LIT8( KAviMime4, "image/avi" ); |
|
96 _LIT8( KAviMime5, "video/xmpg2" ); |
|
97 _LIT8( KAviMime6, "application/x-troff-msvideo" ); |
|
98 _LIT8( KAviMime7, "audio/aiff" ); |
|
99 _LIT8( KAviMime8, "audio/avi" ); |
|
100 _LIT8( KAviMime9, "video/x-ms-avi" ); |
|
101 _LIT( KAviExt, ".avi" ); |
|
102 |
|
103 // MP3 |
|
104 _LIT8( KMp3Mime1, "audio/x-mpeg-3"); |
|
105 _LIT8( KMp3Mime2, "audio/mpeg3" ); |
|
106 _LIT8( KMp3Mime3, "audio/mpeg" ); |
|
107 _LIT8( KMp3Mime4, "audio/x-mpeg" ); |
|
108 _LIT8( KMp3Mime5, "audio/mp3" ); |
|
109 _LIT8( KMp3Mime6, "audio/x-mp3" ); |
|
110 _LIT8( KMp3Mime7, "audio/x-mpeg3" ); |
|
111 _LIT8( KMp3Mime8, "audio/mpg" ); |
|
112 _LIT8( KMp3Mime9, "audio/x-mpg" ); |
|
113 _LIT8( KMp3Mime10, "audio/x-mpegaudio" ); |
|
114 _LIT( KMp3Ext, ".mp3" ); |
|
115 |
|
116 //M4A |
|
117 _LIT8( KM4aMime, "audio/x-m4a" ); |
|
118 _LIT( KM4aExt, ".m4a" ); |
|
119 // AAC |
|
120 _LIT8( KAacMime, "audio/aac" ); |
|
121 _LIT8( KAacMime2, "audio/vnd.dlna.adts" ); |
|
122 _LIT8( KAacMime3, "audio/adts" ); |
|
123 _LIT8( KAacMime4, "audio/x-aac" ); |
|
124 _LIT( KAacExt, ".aac" ); |
|
125 |
|
126 // WMA |
|
127 _LIT8( KWmaMime, "audio/x-ms-wma" ); |
|
128 _LIT8( KWmaMime2, "video/x-ms-asf" ); |
|
129 _LIT( KWmaExt, ".wma" ); |
|
130 |
|
131 // WMV |
|
132 _LIT8( KWmvMime, "video/x-ms-wmv" ); |
|
133 _LIT( KWmvExt, ".wmv" ); |
|
134 |
|
135 // BMP |
|
136 _LIT8( KBmpMime, "image/bmp" ); |
|
137 _LIT8( KBmpMime2, "image/x-bmp" ); |
|
138 _LIT8( KBmpMime3, "image/x-bitmap" ); |
|
139 _LIT8( KBmpMime4, "image/x-xbitmap" ); |
|
140 _LIT8( KBmpMime5, "image/x-ms-bmp" ); |
|
141 _LIT8( KBmpMime6, "application/bmp" ); |
|
142 _LIT8( KBmpMime7, "application/x-bmp" ); |
|
143 _LIT8( KBmpMime8, "application/x-win-bitmap" ); |
|
144 _LIT8( KBmpMime9, "application/preview" ); |
|
145 _LIT( KBmpExt, ".bmp" ); |
|
146 |
|
147 // WAV |
|
148 _LIT8( KAudioXWav, "audio/x-wav" ); |
|
149 _LIT8( KAudioWav, "audio/wav" ); |
|
150 _LIT8( KAudioL16, "audio/L16" ); |
|
151 _LIT( KWavExt, ".wav" ); |
|
152 |
|
153 // 3GP |
|
154 _LIT8( KAudio3gpp, "audio/3gpp" ); |
|
155 _LIT8( KVideo3gpp, "video/3gpp" ); |
|
156 _LIT( K3gpExt, ".3gp" ); |
|
157 |
|
158 // AMR |
|
159 _LIT8( KAudioAMR, "audio/AMR" ); |
|
160 _LIT( KAmrExt, ".amr" ); |
|
161 |
|
162 // Real audio |
|
163 _LIT8( KRAMime8, "audio/x-pn-realaudio" ); |
|
164 _LIT( KRAExt, ".ra" ); |
|
165 |
|
166 // DLNA |
|
167 _LIT8( KVideoTts, "video/vnd.dlna.mpeg-tts" ); |
|
168 _LIT( KTtsExt, ".tts" ); |
|
169 |
|
170 |
|
171 |