|
1 /* |
|
2 * Copyright (c) 2009 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 * Version : 2 << Don't touch! Updated by Synergy at check-out. |
|
16 * |
|
17 */ |
|
18 |
|
19 // ----------------------------------------------------------------------------- |
|
20 // |
|
21 // ----------------------------------------------------------------------------- |
|
22 // |
|
23 inline TBool CMmCacheForItem::IsValid() const |
|
24 { |
|
25 return iIsValid; |
|
26 } |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 inline void CMmCacheForItem::SetSubcellsSetupCode( TMmSubcellsSetupCode aSubcellsSetupCode ) |
|
33 { |
|
34 iSubcellsSetupCode = aSubcellsSetupCode; |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 inline TMmSubcellsSetupCode CMmCacheForItem::GetSubcellsSetupCode() const |
|
42 { |
|
43 __ASSERT_DEBUG( iIsValid, User::Invariant() ); |
|
44 return iSubcellsSetupCode; |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 inline void CMmCacheForItem::SetValid( TBool aValid ) |
|
52 { |
|
53 iIsValid = aValid; |
|
54 } |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 inline TBool CMmCacheForItem::IsCurrent() |
|
61 { |
|
62 return iIsCurrent; |
|
63 } |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 // ----------------------------------------------------------------------------- |
|
68 // |
|
69 inline void CMmCacheForItem::SetCurrent( TBool aCurrent ) |
|
70 { |
|
71 iIsCurrent = aCurrent; |
|
72 } |
|
73 |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 inline const TDesC& CMmCacheForItem::GetItemText() const |
|
79 { |
|
80 __ASSERT_DEBUG( iIsValid, User::Invariant() ); |
|
81 return iItemText; |
|
82 } |
|
83 |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 inline RBuf& CMmCacheForItem::GetItemTextForModifications() |
|
89 { |
|
90 return iItemText; |
|
91 } |
|
92 |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 // ----------------------------------------------------------------------------- |
|
96 // |
|
97 inline TSize CMmCacheForItem::GetSize() const |
|
98 { |
|
99 __ASSERT_DEBUG( iIsValid, User::Invariant() ); |
|
100 return iItemSize; |
|
101 } |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 inline void CMmCacheForItem::SetSize( TSize aItemSize ) |
|
108 { |
|
109 iItemSize = aItemSize; |
|
110 } |