|
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: implementation of inline function of CTruiEngine |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // --------------------------------------------------------------------------- |
|
20 // Get enum ID of the current language script |
|
21 // --------------------------------------------------------------------------- |
|
22 // |
|
23 inline TInt CTruiEngine::CurrentLanguageScript() const |
|
24 { |
|
25 return iCurrentScript; |
|
26 } |
|
27 |
|
28 // --------------------------------------------------------------------------- |
|
29 // Get name list of all supported character range |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 inline CDesCArray* CTruiEngine::GetCharacterRangeName() |
|
33 { |
|
34 return iRangeName; |
|
35 } |
|
36 |
|
37 // --------------------------------------------------------------------------- |
|
38 // Get enum ID of the current character range |
|
39 // --------------------------------------------------------------------------- |
|
40 // |
|
41 inline TInt CTruiEngine::GetCurrentCharacterRange() |
|
42 { |
|
43 return iCurrentRange; |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------------------------- |
|
47 // Get enum ID of the supported character ranges |
|
48 // --------------------------------------------------------------------------- |
|
49 // |
|
50 inline const RArray<TInt>& CTruiEngine::GetCurrentSupportedRangesId() |
|
51 { |
|
52 return iSupportedRange; |
|
53 } |
|
54 |
|
55 // --------------------------------------------------------------------------- |
|
56 // Get current character set |
|
57 // --------------------------------------------------------------------------- |
|
58 // |
|
59 inline const HBufC* CTruiEngine::CharacterSet() |
|
60 { |
|
61 return iCharacterSet; |
|
62 } |
|
63 |
|
64 // --------------------------------------------------------------------------- |
|
65 // Get current edited shortcut |
|
66 // --------------------------------------------------------------------------- |
|
67 // |
|
68 inline TDes& CTruiEngine::Shortcut() |
|
69 { |
|
70 return iShortcut; |
|
71 } |
|
72 |
|
73 inline const RArray<TInt>& CTruiEngine::SupportedLanguageScript() |
|
74 { |
|
75 return iSupportedScript; |
|
76 } |
|
77 |
|
78 // --------------------------------------------------------------------------- |
|
79 // Set edit state |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 inline void CTruiEngine::NewShortcut( TBool aNew ) |
|
83 { |
|
84 iNewShortcut = aNew; |
|
85 } |
|
86 |
|
87 // --------------------------------------------------------------------------- |
|
88 // Get edit state |
|
89 // --------------------------------------------------------------------------- |
|
90 // |
|
91 inline TBool CTruiEngine::NewShortcut() |
|
92 { |
|
93 return iNewShortcut; |
|
94 } |
|
95 |
|
96 // --------------------------------------------------------------------------- |
|
97 // Set if display shortcut wizard view. |
|
98 // --------------------------------------------------------------------------- |
|
99 // |
|
100 inline void CTruiEngine::SetDisplayWizard( TBool aIsDisplay ) |
|
101 { |
|
102 iIsDisplay = aIsDisplay; |
|
103 } |
|
104 |
|
105 // --------------------------------------------------------------------------- |
|
106 // Get if display shortcut wizard view |
|
107 // --------------------------------------------------------------------------- |
|
108 // |
|
109 inline TBool CTruiEngine::DisplayWizard() const |
|
110 { |
|
111 return iIsDisplay; |
|
112 } |
|
113 |
|
114 // --------------------------------------------------------------------------- |
|
115 // Set the current selected index |
|
116 // --------------------------------------------------------------------------- |
|
117 // |
|
118 inline void CTruiEngine::SetCurrentSelectedIndex( TInt aSelectedIndex ) |
|
119 { |
|
120 iSelectedShortcut = aSelectedIndex; |
|
121 } |
|
122 |
|
123 // --------------------------------------------------------------------------- |
|
124 // Get the current selected index |
|
125 // --------------------------------------------------------------------------- |
|
126 // |
|
127 inline TInt CTruiEngine::CurrentSelectedIndex() |
|
128 { |
|
129 return iSelectedShortcut; |
|
130 } |
|
131 |
|
132 // --------------------------------------------------------------------------- |
|
133 // Get shortcut list |
|
134 // --------------------------------------------------------------------------- |
|
135 // |
|
136 inline CDesCArray* CTruiEngine::ShortcutTextList() |
|
137 { |
|
138 return iShortcutList; |
|
139 } |
|
140 |
|
141 // --------------------------------------------------------------------------- |
|
142 // Get the current input language |
|
143 // --------------------------------------------------------------------------- |
|
144 // |
|
145 inline TLanguage CTruiEngine::InputLanguage() const |
|
146 { |
|
147 return iInputLanguage; |
|
148 } |