inputmethods_pub/ptiengine_iti_api/inc/PtiDefs.inl
changeset 0 eb1f2e154e89
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethods_pub/ptiengine_iti_api/inc/PtiDefs.inl	Tue Feb 02 01:02:04 2010 +0200
@@ -0,0 +1,202 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0""
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:               Inline methods for PtiDefs.h files
+*
+*/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::WordCompletion
+// 
+// ---------------------------------------------------------------------------
+//
+inline TBool TPtiCoreInfo::WordCompletion() const
+	{
+	return ((iCapsBits & EWordCompletion) != 0);
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::Reordering
+// 
+// ---------------------------------------------------------------------------
+//
+inline TBool TPtiCoreInfo::Reordering() const
+	{
+	return ((iCapsBits & EReordering) != 0);
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::MaximumWordLength
+// 
+// ---------------------------------------------------------------------------
+//
+inline TInt TPtiCoreInfo::MaximumWordLength() const
+	{
+	return iMaxWordLength;  
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::NextWordPrediction
+// 
+// ---------------------------------------------------------------------------
+//
+inline TBool TPtiCoreInfo::NextWordPrediction() const
+	{
+	return ((iCapsBits & ENextWordPrediction) != 0);
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::VendorString
+// 
+// ---------------------------------------------------------------------------
+//
+inline TPtrC TPtiCoreInfo::VendorString() const
+	{
+	return iVendorIdStr;
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::CapsBits
+// 
+// ---------------------------------------------------------------------------
+//
+inline TUint32 TPtiCoreInfo::CapsBits() const
+	{
+	return iCapsBits;
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::SetCapsBits
+// 
+// ---------------------------------------------------------------------------
+//
+inline void TPtiCoreInfo::SetCapsBits(TUint32 aBits)
+	{
+	iCapsBits |= aBits;
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::SetVendorString
+// 
+// ---------------------------------------------------------------------------
+//
+inline void TPtiCoreInfo::SetVendorString(const TDesC& aStr)
+	{
+	iVendorIdStr.Set(aStr);
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::SetMaxWordLength
+// 
+// ---------------------------------------------------------------------------
+//
+inline void TPtiCoreInfo::SetMaxWordLength(TInt aMaxLen) 
+	{
+	iMaxWordLength = aMaxLen;
+	}
+	
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::Uid
+// 
+// ---------------------------------------------------------------------------
+//
+inline TInt32 TPtiCoreInfo::Uid() const
+	{
+	return iUid;
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::SetUid
+// 
+// ---------------------------------------------------------------------------
+//
+inline void TPtiCoreInfo::SetUid(TInt32 aUid)
+	{
+	iUid = aUid;
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::MaximumNumberOfCandidates
+// 
+// ---------------------------------------------------------------------------
+//	
+inline TInt TPtiCoreInfo::MaximumNumberOfCandidates() const
+	{
+	return iMaxNumberOfCandidates;
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::SetMaxNumberOfCandidates
+// 
+// ---------------------------------------------------------------------------
+//
+inline void TPtiCoreInfo::SetMaxNumberOfCandidates(TInt aMax)
+	{
+	iMaxNumberOfCandidates = aMax;
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::CharConversions
+// 
+// ---------------------------------------------------------------------------
+//
+inline TUint32 TPtiCoreInfo::CharConversions() const
+	{
+	return iCharConversions;
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::SetCharConversions
+// 
+// ---------------------------------------------------------------------------
+//
+inline void TPtiCoreInfo::SetCharConversions(TUint32 aConvs)
+	{
+	iCharConversions = aConvs;
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::SetSpellings
+// 
+// ---------------------------------------------------------------------------
+//
+inline void TPtiCoreInfo::SetSpellings(TUint32 aSpellings)
+	{
+	iSpellings = aSpellings;
+	}
+
+// ---------------------------------------------------------------------------
+// PtiCoreInfo::Spellings
+// 
+// ---------------------------------------------------------------------------
+//
+inline TUint32 TPtiCoreInfo::Spellings() const
+	{
+	return iSpellings;
+	}
+
+// End of file