2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Inline methods for PtiDefs.h files
32 // ---------------------------------------------------------------------------
33 // PtiCoreInfo::WordCompletion
35 // ---------------------------------------------------------------------------
37 inline TBool TPtiCoreInfo::WordCompletion() const
39 return ((iCapsBits & EWordCompletion) != 0);
42 // ---------------------------------------------------------------------------
43 // PtiCoreInfo::Reordering
45 // ---------------------------------------------------------------------------
47 inline TBool TPtiCoreInfo::Reordering() const
49 return ((iCapsBits & EReordering) != 0);
52 // ---------------------------------------------------------------------------
53 // PtiCoreInfo::MaximumWordLength
55 // ---------------------------------------------------------------------------
57 inline TInt TPtiCoreInfo::MaximumWordLength() const
59 return iMaxWordLength;
62 // ---------------------------------------------------------------------------
63 // PtiCoreInfo::NextWordPrediction
65 // ---------------------------------------------------------------------------
67 inline TBool TPtiCoreInfo::NextWordPrediction() const
69 return ((iCapsBits & ENextWordPrediction) != 0);
72 // ---------------------------------------------------------------------------
73 // PtiCoreInfo::VendorString
75 // ---------------------------------------------------------------------------
77 inline TPtrC TPtiCoreInfo::VendorString() const
82 // ---------------------------------------------------------------------------
83 // PtiCoreInfo::CapsBits
85 // ---------------------------------------------------------------------------
87 inline TUint32 TPtiCoreInfo::CapsBits() const
92 // ---------------------------------------------------------------------------
93 // PtiCoreInfo::SetCapsBits
95 // ---------------------------------------------------------------------------
97 inline void TPtiCoreInfo::SetCapsBits(TUint32 aBits)
102 // ---------------------------------------------------------------------------
103 // PtiCoreInfo::SetVendorString
105 // ---------------------------------------------------------------------------
107 inline void TPtiCoreInfo::SetVendorString(const TDesC& aStr)
109 iVendorIdStr.Set(aStr);
112 // ---------------------------------------------------------------------------
113 // PtiCoreInfo::SetMaxWordLength
115 // ---------------------------------------------------------------------------
117 inline void TPtiCoreInfo::SetMaxWordLength(TInt aMaxLen)
119 iMaxWordLength = aMaxLen;
122 // ---------------------------------------------------------------------------
125 // ---------------------------------------------------------------------------
127 inline TInt32 TPtiCoreInfo::Uid() const
132 // ---------------------------------------------------------------------------
133 // PtiCoreInfo::SetUid
135 // ---------------------------------------------------------------------------
137 inline void TPtiCoreInfo::SetUid(TInt32 aUid)
142 // ---------------------------------------------------------------------------
143 // PtiCoreInfo::MaximumNumberOfCandidates
145 // ---------------------------------------------------------------------------
147 inline TInt TPtiCoreInfo::MaximumNumberOfCandidates() const
149 return iMaxNumberOfCandidates;
152 // ---------------------------------------------------------------------------
153 // PtiCoreInfo::SetMaxNumberOfCandidates
155 // ---------------------------------------------------------------------------
157 inline void TPtiCoreInfo::SetMaxNumberOfCandidates(TInt aMax)
159 iMaxNumberOfCandidates = aMax;
162 // ---------------------------------------------------------------------------
163 // PtiCoreInfo::CharConversions
165 // ---------------------------------------------------------------------------
167 inline TUint32 TPtiCoreInfo::CharConversions() const
169 return iCharConversions;
172 // ---------------------------------------------------------------------------
173 // PtiCoreInfo::SetCharConversions
175 // ---------------------------------------------------------------------------
177 inline void TPtiCoreInfo::SetCharConversions(TUint32 aConvs)
179 iCharConversions = aConvs;
182 // ---------------------------------------------------------------------------
183 // PtiCoreInfo::SetSpellings
185 // ---------------------------------------------------------------------------
187 inline void TPtiCoreInfo::SetSpellings(TUint32 aSpellings)
189 iSpellings = aSpellings;
192 // ---------------------------------------------------------------------------
193 // PtiCoreInfo::Spellings
195 // ---------------------------------------------------------------------------
197 inline TUint32 TPtiCoreInfo::Spellings() const