|
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: Inline methods implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // --------------------------------------------------------------------------- |
|
20 // CNcsAifEditor::SetPopupList |
|
21 // --------------------------------------------------------------------------- |
|
22 // |
|
23 inline void CNcsAifEditor::SetPopupList( MNcsAddressPopupList* aPopupList ) |
|
24 { |
|
25 iAddressPopupList = aPopupList; |
|
26 } |
|
27 |
|
28 // --------------------------------------------------------------------------- |
|
29 // CNcsAifEntry::DisplayLength |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 inline TInt CNcsAifEntry::DisplayLength() const |
|
33 { |
|
34 return iDisplayString->Length(); |
|
35 } |
|
36 |
|
37 // --------------------------------------------------------------------------- |
|
38 // CNcsAifEntry::DisplayString |
|
39 // --------------------------------------------------------------------------- |
|
40 // |
|
41 inline const TDesC& CNcsAifEntry::DisplayString() const |
|
42 { |
|
43 return *iDisplayString; |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------------------------- |
|
47 // CNcsAifEntry::SetPos |
|
48 // --------------------------------------------------------------------------- |
|
49 // |
|
50 inline TInt CNcsAifEntry::SetPos( TInt aPos ) |
|
51 { |
|
52 iCursorPos = aPos; |
|
53 iAnchorPos = aPos + DisplayLength(); |
|
54 return iAnchorPos; |
|
55 } |
|
56 |
|
57 // --------------------------------------------------------------------------- |
|
58 // CNcsAifEntry::Includes |
|
59 // --------------------------------------------------------------------------- |
|
60 // |
|
61 inline TBool CNcsAifEntry::Includes( TInt aPos ) const |
|
62 { |
|
63 return ( aPos >= LowerPos() && aPos < HigherPos() ); |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // CNcsAifEntry::Start |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 inline TInt CNcsAifEntry::Start() const |
|
71 { |
|
72 return LowerPos(); |
|
73 } |
|
74 |
|
75 // --------------------------------------------------------------------------- |
|
76 // CNcsAifEntry::End |
|
77 // --------------------------------------------------------------------------- |
|
78 // |
|
79 inline TInt CNcsAifEntry::End() const |
|
80 { |
|
81 return HigherPos(); |
|
82 } |
|
83 |
|
84 // --------------------------------------------------------------------------- |
|
85 // CNcsAifEntry::Address |
|
86 // --------------------------------------------------------------------------- |
|
87 // |
|
88 inline const CNcsEmailAddressObject& CNcsAifEntry::Address() const |
|
89 { |
|
90 return *iAddress; |
|
91 } |
|
92 |
|
93 // --------------------------------------------------------------------------- |
|
94 // CNcsAifEntry::IsDup |
|
95 // --------------------------------------------------------------------------- |
|
96 // |
|
97 inline TBool CNcsAifEntry::IsDup() const |
|
98 { |
|
99 return iIsDup; |
|
100 } |