|
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: |
|
15 * CUniMimeInfo, Storage for objects mime headers. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // --------------------------------------------------------- |
|
22 // ContentType |
|
23 // NOTE: 8 bit. |
|
24 // --------------------------------------------------------- |
|
25 inline const TPtrC8 CUniMimeInfo::ContentType() const |
|
26 { |
|
27 return iContentType ? TPtrC8( *iContentType ) : TPtrC8(); |
|
28 } |
|
29 |
|
30 // --------------------------------------------------------- |
|
31 // Charset |
|
32 // --------------------------------------------------------- |
|
33 inline TUint CUniMimeInfo::Charset() const |
|
34 { |
|
35 return iContentTypeCharset; |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------- |
|
39 // SetCharset |
|
40 // --------------------------------------------------------- |
|
41 inline void CUniMimeInfo::SetCharset( TUint aCharset ) |
|
42 { |
|
43 iContentTypeCharset = aCharset; |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // ContentLocation |
|
48 // NOTE: 16 bit. |
|
49 // --------------------------------------------------------- |
|
50 inline const TPtrC CUniMimeInfo::ContentLocation() const |
|
51 { |
|
52 return iContentLocation ? TPtrC( *iContentLocation ) : TPtrC(); |
|
53 } |
|
54 |
|
55 // --------------------------------------------------------- |
|
56 // ContentId |
|
57 // NOTE: 8 bit. |
|
58 // --------------------------------------------------------- |
|
59 inline const TPtrC8 CUniMimeInfo::ContentId() const |
|
60 { |
|
61 return iContentId ? TPtrC8( *iContentId ) : TPtrC8(); |
|
62 } |
|
63 |
|
64 // --------------------------------------------------------- |
|
65 // ContentBaseL |
|
66 // NOTE: 8 bit. |
|
67 // --------------------------------------------------------- |
|
68 inline const TPtrC8 CUniMimeInfo::ContentBase() const |
|
69 { |
|
70 return iContentBase ? TPtrC8( *iContentBase ) : TPtrC8(); |
|
71 } |
|
72 |
|
73 // --------------------------------------------------------- |
|
74 // ContentDescription |
|
75 // NOTE: 8 bit. |
|
76 // --------------------------------------------------------- |
|
77 inline const TPtrC8 CUniMimeInfo::ContentDescription() const |
|
78 { |
|
79 return iContentDescription ? TPtrC8( *iContentDescription ) : TPtrC8(); |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------- |
|
83 // ContentDisposition |
|
84 // NOTE: 8 bit. |
|
85 // --------------------------------------------------------- |
|
86 inline const TPtrC8 CUniMimeInfo::ContentDisposition() const |
|
87 { |
|
88 return iContentDisposition ? TPtrC8( *iContentDisposition ) : TPtrC8(); |
|
89 } |
|
90 |