|
1 /* |
|
2 * Copyright (c) 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: UniBaseHeader.inl* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 // ========== INLINE METHODS =============================== |
|
20 |
|
21 // --------------------------------------------------------- |
|
22 // CUniBaseHeader::AddressControl |
|
23 // --------------------------------------------------------- |
|
24 // |
|
25 inline CMsgAddressControl* CUniBaseHeader::AddressControl( THeaderFields aType ) const |
|
26 { |
|
27 return static_cast<CMsgAddressControl*>( iHeaders[aType].iControl ); |
|
28 } |
|
29 |
|
30 // --------------------------------------------------------- |
|
31 // CUniBaseHeader::AddressControlId |
|
32 // --------------------------------------------------------- |
|
33 // |
|
34 inline TMsgControlId CUniBaseHeader::AddressControlId( THeaderFields aType ) const |
|
35 { |
|
36 return iHeaders[aType].iControlType; |
|
37 } |
|
38 |
|
39 // --------------------------------------------------------- |
|
40 // CUniBaseHeader::SubjectControl |
|
41 // --------------------------------------------------------- |
|
42 // |
|
43 inline CMsgExpandableControl* CUniBaseHeader::SubjectControl() const |
|
44 { |
|
45 return iHeaders[EHeaderSubject].iControl; |
|
46 } |
|
47 |
|
48 // --------------------------------------------------------- |
|
49 // CUniBaseHeader::AttachmentControl |
|
50 // --------------------------------------------------------- |
|
51 // |
|
52 inline CMsgAttachmentControl* CUniBaseHeader::AttachmentControl() const |
|
53 { |
|
54 return static_cast<CMsgAttachmentControl*>( iHeaders[EHeaderAttachment].iControl ); |
|
55 } |
|
56 |
|
57 // --------------------------------------------------------- |
|
58 // CUniBaseHeader::AddHeadersVariation |
|
59 // --------------------------------------------------------- |
|
60 // |
|
61 inline TInt CUniBaseHeader::AddHeadersVariation() const |
|
62 { |
|
63 return iAddHeadersVariation & ( EUniFeatureSubject | |
|
64 EUniFeatureCc | |
|
65 EUniFeatureSubjectConfigurable | |
|
66 EUniFeatureBcc ); |
|
67 } |
|
68 |
|
69 // End of File |