diff -r d40e813b23c0 -r 48060abbbeaf stifui/avkon/uitestserverstarter/inc/EventUtil.h --- a/stifui/avkon/uitestserverstarter/inc/EventUtil.h Thu Jul 15 18:39:46 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,115 +0,0 @@ -/* -* Copyright (c) 2009 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: This file contains TEventUtil class declaration. -* -*/ - -#ifndef EVENTUTIL_H_ -#define EVENTUTIL_H_ - -// INCLUDES -#include - -// CONSTANTS -// None - -// MACROS -// None - -// DATA TYPES -// None - -// FUNCTION PROTOTYPES -// None - -// FORWARD DECLARATIONS -// None - -// CLASS DECLARATION - -// DESCRIPTION -// Utility class for key codes parsing. -class TEventUtil - { - private: // Enumerations - // none - - public: // Enumerations - enum TCustomPointerEventType { EButton1 = 1000, EButton2, EButton3 }; - - public: // Constructors and destructor - - public: // Constructors and destructor - - public: // New functions - /** - * Returns descriptive key code name. - */ - static TPtrC GetKeyCodeName( TUint aKeyCode ); - - /** - * Parses key code. - */ - static TInt ParseKeyCode( const TDesC& aKeyCodeName, TUint& aKeyCode ); - - /** - * Returns descriptive key scan code name. - */ - static TPtrC GetKeyScanCodeName( TInt aKeyScanCode ); - - /** - * Parses key scan code. - */ - static TInt ParseKeyScanCode( const TDesC& aKeyScanCodeName, TInt& aKeyScanCode ); - - /** - * Returns descriptive key modifier name. - */ - static TPtrC GetModifierName( TUint aModifier ); - - /** - * Parses key modifier. - */ - static TInt ParseModifier( const TDesC& aModifierName, TUint& aModifier ); - - /** - * Parses pointer event type. - */ - static TInt ParsePointerEventType( const TDesC& aPointerEventTypeName, TUint& aPointerEventType ); - - public: // Functions from base classes - - protected: // New functions - - protected: // Functions from base classes - - private: // New functions - - public: // Data - - protected: // Data - - private: // Data - - public: // Friend classes - - protected: // Friend classes - - private: // Friend classes - - }; - -#endif /*EVENTUTIL_H_*/ - -// End of File