os/kernelhwsrv/kernel/eka/include/k32keys.inl
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// e32\include\k32keys.inl
sl@0
    15
// 
sl@0
    16
// WARNING: This file contains some APIs which are internal and are subject
sl@0
    17
//          to change without noticed. Such APIs should therefore not be used
sl@0
    18
//          outside the Kernel and Hardware Services package.
sl@0
    19
//
sl@0
    20
sl@0
    21
/**
sl@0
    22
 @internalComponent
sl@0
    23
 @released
sl@0
    24
*/
sl@0
    25
inline TBool MatchesMaskedValue(TInt aModifiers,const TMaskedModifiers &aMaskedModifiers)
sl@0
    26
    {
sl@0
    27
    return (TBool)((aModifiers&aMaskedModifiers.iMask)==aMaskedModifiers.iValue);
sl@0
    28
    }
sl@0
    29
sl@0
    30
/**
sl@0
    31
@internalComponent
sl@0
    32
@released
sl@0
    33
*/
sl@0
    34
inline void MergeModifiers(TInt &aModifiers,const TMaskedModifiers &aMaskedModifiers)
sl@0
    35
// Set the masked bits only of the parameter
sl@0
    36
	{
sl@0
    37
	aModifiers&=~aMaskedModifiers.iMask;
sl@0
    38
	aModifiers|=(aMaskedModifiers.iMask&aMaskedModifiers.iValue);
sl@0
    39
	}
sl@0
    40
sl@0
    41
inline void TCtrlDigits::SetRadix(TRadix aRadix)
sl@0
    42
	{iRadix=aRadix;}
sl@0
    43
sl@0
    44
inline void TCtrlDigits::SetMaxCount(TInt aMaxCount)
sl@0
    45
	{iMaxCount=Min(aMaxCount, iMaximumCtrlDigitsMaxCount);}
sl@0
    46
sl@0
    47
inline TRadix TCtrlDigits::GetRadix() const
sl@0
    48
	{return iRadix;}
sl@0
    49
sl@0
    50
inline TBool TCtrlDigits::WithinLimits() const
sl@0
    51
	{return (TBool)(iDigits<=0xffffL);}
sl@0
    52
sl@0
    53
inline TUint TCtrlDigits::GetDigits() const
sl@0
    54
	{return iDigits;}
sl@0
    55
sl@0
    56
inline TBool TCtrlDigits::Error() const
sl@0
    57
	{return iErrorFlag;}
sl@0
    58
sl@0
    59
inline TUint TConvTable::FirstScanCode() const
sl@0
    60
	{return iFirstScanCode;}
sl@0
    61
sl@0
    62
inline TUint TConvTable::LastScanCode() const
sl@0
    63
	{return iLastScanCode;}
sl@0
    64
sl@0
    65
inline TCharExtended::TCharExtended():
sl@0
    66
	TChar(0)
sl@0
    67
	{}
sl@0
    68
sl@0
    69
inline TCharExtended::TCharExtended(TUint aChar):
sl@0
    70
	TChar(aChar)
sl@0
    71
	{}
sl@0
    72