sl@0: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32\include\k32keys.inl sl@0: // sl@0: // WARNING: This file contains some APIs which are internal and are subject sl@0: // to change without noticed. Such APIs should therefore not be used sl@0: // outside the Kernel and Hardware Services package. sl@0: // sl@0: sl@0: /** sl@0: @internalComponent sl@0: @released sl@0: */ sl@0: inline TBool MatchesMaskedValue(TInt aModifiers,const TMaskedModifiers &aMaskedModifiers) sl@0: { sl@0: return (TBool)((aModifiers&aMaskedModifiers.iMask)==aMaskedModifiers.iValue); sl@0: } sl@0: sl@0: /** sl@0: @internalComponent sl@0: @released sl@0: */ sl@0: inline void MergeModifiers(TInt &aModifiers,const TMaskedModifiers &aMaskedModifiers) sl@0: // Set the masked bits only of the parameter sl@0: { sl@0: aModifiers&=~aMaskedModifiers.iMask; sl@0: aModifiers|=(aMaskedModifiers.iMask&aMaskedModifiers.iValue); sl@0: } sl@0: sl@0: inline void TCtrlDigits::SetRadix(TRadix aRadix) sl@0: {iRadix=aRadix;} sl@0: sl@0: inline void TCtrlDigits::SetMaxCount(TInt aMaxCount) sl@0: {iMaxCount=Min(aMaxCount, iMaximumCtrlDigitsMaxCount);} sl@0: sl@0: inline TRadix TCtrlDigits::GetRadix() const sl@0: {return iRadix;} sl@0: sl@0: inline TBool TCtrlDigits::WithinLimits() const sl@0: {return (TBool)(iDigits<=0xffffL);} sl@0: sl@0: inline TUint TCtrlDigits::GetDigits() const sl@0: {return iDigits;} sl@0: sl@0: inline TBool TCtrlDigits::Error() const sl@0: {return iErrorFlag;} sl@0: sl@0: inline TUint TConvTable::FirstScanCode() const sl@0: {return iFirstScanCode;} sl@0: sl@0: inline TUint TConvTable::LastScanCode() const sl@0: {return iLastScanCode;} sl@0: sl@0: inline TCharExtended::TCharExtended(): sl@0: TChar(0) sl@0: {} sl@0: sl@0: inline TCharExtended::TCharExtended(TUint aChar): sl@0: TChar(aChar) sl@0: {} sl@0: