epoc32/include/mw/ptidefs.inl
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h) This is the epoc32/include tree with the "platform" subtrees removed, and all but a selected few mbg and rsg files removed.

/*
* 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