|
1 /* |
|
2 * Copyright (c) 2003-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: |
|
15 * global definitions for mmscodec |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MMSCODEC_H |
|
22 #define MMSCODEC_H |
|
23 |
|
24 #include <mmsconst.h> |
|
25 |
|
26 // |
|
27 // The following is a gapless table where the corresponding |
|
28 // assigned numbers must run from 0 to KMmsUnAssigned - 1. |
|
29 // If new content types are added to the table, and the assigned |
|
30 // numbers are not contiguous dummy entries must be inserted, but |
|
31 // if these would become too numerous, a two-table system must be |
|
32 // constructed. |
|
33 // At the moment one table is enough, as all well-known content types |
|
34 // have contiguous assigned numbers. |
|
35 // |
|
36 const TUint8 KMmsUnAssigned = 0x37; |
|
37 const TInt KNumberContentTypes = KMmsUnAssigned; |
|
38 |
|
39 static const TText8* const KContentTypeTable[] = |
|
40 { |
|
41 _S8( "*/*" ), //0x00 |
|
42 _S8( "text/*" ), //0x01 |
|
43 _S8( "text/html" ), //0x02 |
|
44 _S8( "text/plain" ), //0x03 |
|
45 _S8( "text/x-hdml" ), //0x04 |
|
46 _S8( "text/x-ttml" ), //0x05 |
|
47 _S8( "text/x-vCalendar" ), //0x06 |
|
48 _S8( "text/x-vCard" ), //0x07 |
|
49 _S8( "text/vnd.wap.wml" ), //0x08 |
|
50 _S8( "text/vnd.wap.wmlscript" ), //0x09 |
|
51 _S8( "text/vnd.wap.channel" ), //0x0A |
|
52 _S8( "Multipart/*" ), //0x0B |
|
53 _S8( "Multipart/mixed" ), //0x0C |
|
54 _S8( "Multipart/form-data" ), //0x0D |
|
55 _S8( "Multipart/byteranges" ), //0x0E |
|
56 _S8( "multipart/alternative" ), //0x0F |
|
57 _S8( "application/*" ), //0x10 |
|
58 _S8( "application/java-vm" ), //0x11 |
|
59 _S8( "application/x-www-form-urlencoded" ), //0x12 |
|
60 _S8( "application/x-hdmlc" ), //0x13 |
|
61 _S8( "application/vnd.wap.wmlc" ), //0x14 |
|
62 _S8( "application/vnd.wap.vmlscriptc" ), //0x15 |
|
63 _S8( "application/vnd.wap.channelc" ), //0x16 |
|
64 _S8( "application/vnd.wap.uaprof" ), //0x17 |
|
65 _S8( "application/vnd.wap.wtls-ca-certificate" ), //0x18 |
|
66 _S8( "application/vnd.wap.wtls-user-certificate" ), //0x19 |
|
67 _S8( "application/x-x509-ca-cert" ), //0x1A |
|
68 _S8( "application/x-x509-user-cert" ), //0x1B |
|
69 _S8( "image/*" ), //0x1C |
|
70 _S8( "image/gif" ), //0x1D |
|
71 _S8( "image/jpeg"), //0x1E |
|
72 _S8( "image/tiff" ), //0x1F |
|
73 _S8( "image/png" ), //0x20 |
|
74 _S8( "image/vnd.wap.wbmp" ), //0x21 |
|
75 _S8( "application/vnd.wap.multipart.*" ), //0x22 |
|
76 _S8( "application/vnd.wap.multipart.mixed" ), //0x23 |
|
77 _S8( "application/vnd.wap.multipart.form-data" ), //0x24 |
|
78 _S8( "application/vnd.wap.multipart.byteranges" ), //0x25 |
|
79 _S8( "application/vnd.wap.multipart.alternative" ), //0x26 |
|
80 _S8( "application/xml" ), //0x27 |
|
81 _S8( "text/xml" ), //0x28 |
|
82 _S8( "application/vnd.wap.wbxml" ), //0x29 |
|
83 _S8( "application/x-x968-cross-cert" ), //0x2A |
|
84 _S8( "application/x-x968-ca-cert" ), //0x2B |
|
85 _S8( "application/x-x968-user-cert" ), //0x2C |
|
86 _S8( "text/vnd.wap.si" ), //0x2D |
|
87 _S8( "application/vnd.wap.sic" ), //0x2E |
|
88 _S8( "text/vnd.wap.sl" ), //0x2F |
|
89 _S8( "text/vnd.wap.slc" ), //0x30 |
|
90 _S8( "text/vnd.wap.co" ), //0x31 |
|
91 _S8( "application/vnd.wap.coc" ), //0x32 |
|
92 _S8( "application/vnd.wap.multipart.related" ), //0x33 |
|
93 _S8( "application/vnd.wap.sia" ), //0x34 |
|
94 _S8( "text/vnd.wap.connectivity-xml" ), //0x35 |
|
95 _S8( "application/vnd.wap.connectivity-wbxml" ), //0x36 |
|
96 // This must always be the last one. |
|
97 // This is the type that all unassigned numbers get: |
|
98 // Even if we have an actual assigned number for |
|
99 // application/octet-stream some day, there must be |
|
100 // this duplicate entry at the end of the table to |
|
101 // handle mapping of unknown assigned numbers |
|
102 _S8( "application/octet-stream" ) //KMmsUnAssigned |
|
103 }; |
|
104 |
|
105 #endif |