windowing/windowserver/nga/SERVER/PRIKEY.H
changeset 0 5d03bc08d59c
child 116 171fae344dd4
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Definition of classes for priority keys
       
    15 // 
       
    16 //
       
    17 
       
    18 #if !defined(__PRIKEY_H__)
       
    19 #define __PRIKEY_H__
       
    20 
       
    21 #if !defined(__E32STD_H__)
       
    22 #include <e32std.h>
       
    23 #endif
       
    24 #if !defined(__E32BASE_H__)
       
    25 #include <e32base.h>
       
    26 #endif
       
    27 #if !defined(__E32SVR_H__)
       
    28 #include <e32svr.h>
       
    29 #endif
       
    30 #if !defined(__EVQUEUE_H__)
       
    31 #include "EVQUEUE.H"
       
    32 #endif
       
    33 
       
    34 
       
    35 class TPriorityKey
       
    36 	{
       
    37 public:
       
    38 	TPriorityKey(TUint aKeycode,TUint aModifierMask,TUint aModifiers,TPriorityKey *aPriorityKeys);
       
    39 	TInt Equals(TUint aKeycode,TUint aModifierMask,TUint aModifiers);
       
    40 	TInt KeyMatches(const TKeyData &aKey);
       
    41 public:
       
    42 	TPriorityKey *iNext;
       
    43 private:
       
    44 	TUint iKeyCode;
       
    45 	TUint iModifiers;
       
    46 	TUint iModifierMask;
       
    47 	};
       
    48 
       
    49 class CPriorityKey : public CEventBase
       
    50 	{
       
    51 public:
       
    52 	CPriorityKey(CWsClient *aOwner);
       
    53 	void PriorityKey(TInt aHandle, const TKeyData &aKey, TInt aScanCode);
       
    54 	void GetData();
       
    55 private:
       
    56 	TInt iPriorityKeyHandle;
       
    57 	TKeyData iPriorityKey;
       
    58 	TInt iScanCode;
       
    59 	};
       
    60 
       
    61 #endif