stifui/avkon/uitestserverstarter/src/AknUiEnvProxy.cpp
branchRCL_3
changeset 18 48060abbbeaf
parent 17 d40e813b23c0
child 19 b3cee849fa46
equal deleted inserted replaced
17:d40e813b23c0 18:48060abbbeaf
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 * 
       
    14 * Description: This module contains the implementation of 
       
    15 * CAknUiEnvProxy class member functions.
       
    16 *
       
    17 */
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "AknUiEnvProxy.h"
       
    21 #include "UITestServerStarterAppUi.h"
       
    22 #include "EventUtil.h"
       
    23 
       
    24 #include <coeaui.h>
       
    25 #include <eikenv.h>
       
    26 #include <apgtask.h>
       
    27 #include <w32std.h>
       
    28 
       
    29 // EXTERNAL DATA STRUCTURES
       
    30 // None
       
    31 
       
    32 // EXTERNAL FUNCTION PROTOTYPES  
       
    33 // None
       
    34 
       
    35 // CONSTANTS
       
    36 // None
       
    37 
       
    38 // MACROS
       
    39 // None
       
    40 
       
    41 // LOCAL CONSTANTS AND MACROS
       
    42 // None
       
    43 
       
    44 // MODULE DATA STRUCTURES
       
    45 // None
       
    46 
       
    47 // LOCAL FUNCTION PROTOTYPES
       
    48 // None
       
    49 
       
    50 // FORWARD DECLARATIONS
       
    51 // None
       
    52 
       
    53 // ================= MEMBER FUNCTIONS =========================================
       
    54 
       
    55 /*
       
    56 -------------------------------------------------------------------------------
       
    57 
       
    58      Class: CAknUiEnvProxy
       
    59 
       
    60      Method: NewL
       
    61 
       
    62      Description: NewL is first phase of two-phased constructor.
       
    63 
       
    64      NewL is first phase of two-phased constructor.
       
    65 
       
    66      Parameters: CUITestServerStarterAppUi* aAppUi: in: Pointer to CUITestServerStarterAppUi.
       
    67      
       
    68      Return Values: Pointer to new CAknUiEnvProxy object.
       
    69 
       
    70      Errors/Exceptions: Leaves if new or ConstructL leaves.
       
    71 
       
    72      Status: Draft
       
    73     
       
    74 -------------------------------------------------------------------------------
       
    75 */
       
    76 CAknUiEnvProxy* CAknUiEnvProxy::NewL( CUITestServerStarterAppUi* aAppUi )
       
    77 	{
       
    78 	CAknUiEnvProxy* self = new(ELeave)CAknUiEnvProxy();
       
    79 	CleanupStack::PushL( self );
       
    80 	self->ConstructL( aAppUi );
       
    81 	CleanupStack::Pop( self );
       
    82 	return self;
       
    83 	}
       
    84 
       
    85 /*
       
    86 -------------------------------------------------------------------------------
       
    87 
       
    88      Class: CAknUiEnvProxy
       
    89 
       
    90      Method: ConstructL
       
    91 
       
    92      Description: ConstructL is second phase of two-phased constructor.
       
    93 
       
    94      Performs construction of CAknUiEnvProxy object.
       
    95 
       
    96      Parameters: CUITestServerStarterAppUi* aAppUi: in: Pointer to CUITestServerStarterAppUi.
       
    97      
       
    98      Return Values: None.
       
    99 
       
   100      Errors/Exceptions: None.
       
   101 
       
   102      Status: Draft
       
   103     
       
   104 -------------------------------------------------------------------------------
       
   105 */
       
   106 void CAknUiEnvProxy::ConstructL( CUITestServerStarterAppUi* aAppUi )
       
   107 	{	
       
   108 	iAppUi = aAppUi;
       
   109 	}
       
   110 
       
   111 /*
       
   112 -------------------------------------------------------------------------------
       
   113 
       
   114      Class: CAknUiEnvProxy
       
   115 
       
   116      Method: BringToForeground
       
   117 
       
   118      Description: Brings UI component container to foreground.
       
   119 
       
   120      Brings UI component container to foreground. 
       
   121 
       
   122      Parameters: None.
       
   123      
       
   124      Return Values: None.
       
   125 
       
   126      Errors/Exceptions: None.
       
   127 
       
   128      Status: Draft
       
   129     
       
   130 -------------------------------------------------------------------------------
       
   131 */
       
   132 void CAknUiEnvProxy::BringToForeground()
       
   133 	{
       
   134 	TApaTask task( CCoeEnv::Static()->WsSession() );
       
   135 	task.SetWgId( CCoeEnv::Static()->RootWin().Identifier() );
       
   136 	task.BringToForeground();	
       
   137 	}
       
   138 
       
   139 /*
       
   140 -------------------------------------------------------------------------------
       
   141 
       
   142      Class: CAknUiEnvProxy
       
   143 
       
   144      Method: SendToBackground
       
   145 
       
   146      Description: Sends UI component container to background.
       
   147 
       
   148      Sends UI component container to background.
       
   149 
       
   150      Parameters: None.
       
   151      
       
   152      Return Values: None.
       
   153 
       
   154      Errors/Exceptions: None.
       
   155 
       
   156      Status: Draft
       
   157     
       
   158 -------------------------------------------------------------------------------
       
   159 */
       
   160 void CAknUiEnvProxy::SendToBackground(  )
       
   161 	{
       
   162 	TApaTask task( CCoeEnv::Static()->WsSession() );
       
   163 	task.SetWgId( CCoeEnv::Static()->RootWin().Identifier() ); 
       
   164 	task.SendToBackground();		
       
   165 	}
       
   166 
       
   167 /*
       
   168 -------------------------------------------------------------------------------
       
   169 
       
   170      Class: CAknUiEnvProxy
       
   171 
       
   172      Method: PressKeyL
       
   173 
       
   174      Description: Sends local key press event to UI component.
       
   175 
       
   176      Sends key press event to UI component. UI component must be first added to 
       
   177      AppUi stack to be able to recive this key event. 
       
   178 
       
   179      Parameters: TRequestStatus* aStatus: out: Pointer to request status used to notify that
       
   180      										   key event was recived.
       
   181      			 TUint aKeyCode: in: Key code.
       
   182      			 TInt aKeyScanCode: in: Key scan code.
       
   183      			 TUint aKeyModifiers: in: Key modifiers
       
   184      			 TInt aKeyRepeats: in: Key press repeats count.
       
   185      
       
   186      Return Values: None.
       
   187 
       
   188      Errors/Exceptions: Leaves if some error occurs during key event sending.
       
   189 
       
   190      Status: Draft
       
   191     
       
   192 -------------------------------------------------------------------------------
       
   193 */
       
   194 void CAknUiEnvProxy::PressKeyL( TRequestStatus* aStatus, TUint aKeyCode, TInt aKeyScanCode, 
       
   195 							   TUint aKeyModifiers, TInt aKeyRepeats )
       
   196 	{
       
   197 	// Fill key event structure
       
   198 	TWsEvent wsEvent;
       
   199 	wsEvent.SetType(EEventKey);
       
   200 	TKeyEvent* keyEvent = wsEvent.Key();
       
   201 	keyEvent->iCode = aKeyCode;
       
   202 	keyEvent->iScanCode = aKeyScanCode;
       
   203 	keyEvent->iModifiers = aKeyModifiers;
       
   204 	keyEvent->iRepeats = aKeyRepeats;
       
   205 		
       
   206 	// Send info to AppUi that we are going to send key event
       
   207 	iAppUi->PrepareToPressKey();
       
   208 	
       
   209 	RWsSession& wsSession = CCoeEnv::Static()->WsSession();
       
   210 	TInt wgId = CCoeEnv::Static()->RootWin().Identifier();	
       
   211 	// Send key event
       
   212 	TInt ret = wsSession.SendEventToWindowGroup( wgId, wsEvent );
       
   213 	User::LeaveIfError( ret );
       
   214 	
       
   215 	wsSession.Flush();
       
   216 	
       
   217 	// Request notification when key press is handled
       
   218 	*aStatus = KRequestPending;
       
   219 	iAppUi->NotifyAboutHandledKeyPress( aStatus );
       
   220 	}
       
   221 
       
   222 /*
       
   223 -------------------------------------------------------------------------------
       
   224 
       
   225      Class: CAknUiEnvProxy
       
   226 
       
   227      Method: PressKeyL
       
   228 
       
   229      Description: Sends global key press event to UI component.
       
   230 
       
   231      Sends key press event to UI component which is currently focuused. 
       
   232 
       
   233      Parameters: TUint aKeyCode: in: Key code.
       
   234      			 TInt aKeyScanCode: in: Key scan code.
       
   235      			 TUint aKeyModifiers: in: Key modifiers
       
   236      			 TInt aKeyRepeats: in: Key press repeats count.
       
   237      
       
   238      Return Values: None.
       
   239 
       
   240      Errors/Exceptions: Leaves if some error occurs during key event sending.
       
   241 
       
   242      Status: Draft
       
   243     
       
   244 -------------------------------------------------------------------------------
       
   245 */
       
   246 void CAknUiEnvProxy::PressKeyL( TUint aKeyCode, TInt aKeyScanCode, 
       
   247 							   TUint aKeyModifiers, TInt aKeyRepeats )
       
   248 	{	
       
   249 	// Fill key event structure
       
   250 	TWsEvent wsEvent;
       
   251 	wsEvent.SetType(EEventKey);
       
   252 	TKeyEvent* keyEvent = wsEvent.Key();
       
   253 	keyEvent->iCode = aKeyCode;
       
   254 	keyEvent->iScanCode = aKeyScanCode;
       
   255 	keyEvent->iModifiers = aKeyModifiers;
       
   256 	keyEvent->iRepeats = aKeyRepeats;
       
   257 		
       
   258 	RWsSession& wsSession = CCoeEnv::Static()->WsSession();	
       
   259 	TInt wgId = wsSession.GetFocusWindowGroup();	
       
   260 	TInt ret = wsSession.SendEventToWindowGroup( wgId, wsEvent );	
       
   261 	User::LeaveIfError( ret );
       
   262 	wsSession.Flush();
       
   263 	}
       
   264 
       
   265 
       
   266 /*
       
   267 -------------------------------------------------------------------------------
       
   268 
       
   269      Class: CAknUiEnvProxy
       
   270 
       
   271      Method: TypeTextL
       
   272 
       
   273      Description: Sends text to UI component.
       
   274 
       
   275      Sends text to UI component. UI component must be first added to 
       
   276      AppUi stack to be able to recive this key event. 
       
   277 
       
   278      Parameters: TRequestStatus* aStatus: out: Pointer to request status used to notify that
       
   279      										   key event was recived.
       
   280     			 TPtrC aText: in: Text which will be send to UI component. 
       
   281      
       
   282      Return Values: None.
       
   283 
       
   284      Errors/Exceptions: Leaves if some error occurs during key event sending.
       
   285 
       
   286      Status: Draft
       
   287     
       
   288 -------------------------------------------------------------------------------
       
   289 */
       
   290 void CAknUiEnvProxy::TypeTextL( TRequestStatus* aStatus, const TDesC& aText )
       
   291 	{
       
   292 	TLex textParser( aText );
       
   293 
       
   294 	// Send info to AppUi that we are going to send text
       
   295 	iAppUi->PrepareToTypeText( aText.Length() );
       
   296 	
       
   297 	TInt wgId = CCoeEnv::Static()->RootWin().Identifier();
       
   298 	RWsSession& wsSession = CCoeEnv::Static()->WsSession();
       
   299 
       
   300 	TChar character = 0;
       
   301 	while ( ( character = textParser.Get() ) != 0 )
       
   302 		{
       
   303 		// Fill key event structure
       
   304 		TWsEvent wsEvent;
       
   305 		wsEvent.SetType(EEventKey);
       
   306 		TKeyEvent* keyEvent = wsEvent.Key();
       
   307 		keyEvent->iCode = character;
       
   308 		keyEvent->iScanCode = 0;
       
   309 		keyEvent->iModifiers = 0;
       
   310 		keyEvent->iRepeats = 0;
       
   311 		
       
   312 		// Send single character from text to UI component
       
   313 		TInt ret = wsSession.SendEventToWindowGroup( wgId, wsEvent );
       
   314 		User::LeaveIfError( ret );
       
   315 		wsSession.Flush();
       
   316 		}
       
   317 		
       
   318 	// Request notification when send text is recived
       
   319 	*aStatus = KRequestPending;
       
   320 	iAppUi->NotifyAboutHandledTextType( aStatus );	
       
   321 	}
       
   322 
       
   323 /*
       
   324 -------------------------------------------------------------------------------
       
   325 
       
   326      Class: CAknUiEnvProxy
       
   327 
       
   328      Method: TypeTextL
       
   329 
       
   330      Description: Sends global text to UI component.
       
   331 
       
   332      Sends global text to UI component. UI component must be focused to receive that event. 
       
   333 
       
   334      Parameters: TPtrC aText: in: Text which will be send to UI component. 
       
   335      
       
   336      Return Values: None.
       
   337 
       
   338      Errors/Exceptions: None.
       
   339 
       
   340      Status: Draft
       
   341     
       
   342 -------------------------------------------------------------------------------
       
   343 */
       
   344 void CAknUiEnvProxy::TypeTextL( const TDesC& aText )
       
   345 	{
       
   346 	TLex textParser( aText );
       
   347 
       
   348 	RWsSession& wsSession = CCoeEnv::Static()->WsSession();
       
   349 	TInt wgId = wsSession.GetFocusWindowGroup();
       
   350 
       
   351 	TChar character = 0;	
       
   352 	while ( ( character = textParser.Get() ) != 0 )
       
   353 		{
       
   354 		// Fill key event structure
       
   355 		TWsEvent wsEvent;
       
   356 		wsEvent.SetType(EEventKey);
       
   357 		TKeyEvent* keyEvent = wsEvent.Key();
       
   358 		keyEvent->iCode = character;
       
   359 		keyEvent->iScanCode = 0;
       
   360 		keyEvent->iModifiers = 0;
       
   361 		keyEvent->iRepeats = 0;
       
   362 		
       
   363 		// Send single character from text to UI component
       
   364 		TInt ret = wsSession.SendEventToWindowGroup( wgId, wsEvent );			
       
   365 		User::LeaveIfError( ret );
       
   366 		wsSession.Flush();
       
   367 		}
       
   368 	}
       
   369 
       
   370 /*
       
   371 -------------------------------------------------------------------------------
       
   372 
       
   373      Class: CAknUiEnvProxy
       
   374 
       
   375      Method: SendPointerEventL
       
   376 
       
   377      Description: Send pointer event
       
   378 
       
   379      Send pointer event.
       
   380 
       
   381      Parameters: TUint aType: in: KEvent type.
       
   382      			 const TPoint& aPosition: in: Position.
       
   383      			      
       
   384      Return Values: None.
       
   385 
       
   386      Errors/Exceptions: None.
       
   387 
       
   388      Status: Draft
       
   389     
       
   390 -------------------------------------------------------------------------------
       
   391 */
       
   392 void CAknUiEnvProxy::SendPointerEventL( TUint aType, const TPoint& aPosition )
       
   393 	{
       
   394 	RWsSession& wsSession = CCoeEnv::Static()->WsSession();
       
   395 	TRawEvent pointerEvent;
       
   396 
       
   397 	if ( aType < TEventUtil::EButton1 ) {
       
   398 		pointerEvent.Set( ( TRawEvent::TType )aType, aPosition.iX, aPosition.iY );
       
   399 		wsSession.SimulateRawEvent( pointerEvent );
       
   400 		} 
       
   401 	else if ( ( aType >= TEventUtil::EButton1 ) && ( aType <= TEventUtil::EButton3 ) )
       
   402 		{
       
   403 		TRawEvent pointerEventDown;
       
   404 		TRawEvent pointerEventUp;
       
   405 		
       
   406 		switch ( aType )
       
   407 			{
       
   408 			case TEventUtil::EButton1:
       
   409 				{
       
   410 				pointerEventDown.Set( TRawEvent::EButton1Down, aPosition.iX, aPosition.iY );
       
   411 				pointerEventUp.Set( TRawEvent::EButton1Up, aPosition.iX, aPosition.iY );
       
   412 				}
       
   413 				break;
       
   414 			case TEventUtil::EButton2:
       
   415 				{
       
   416 				pointerEventDown.Set( TRawEvent::EButton2Down, aPosition.iX, aPosition.iY );
       
   417 				pointerEventUp.Set( TRawEvent::EButton2Up, aPosition.iX, aPosition.iY );
       
   418 				}
       
   419 				break;
       
   420 			case TEventUtil::EButton3:
       
   421 				{
       
   422 				pointerEventDown.Set( TRawEvent::EButton3Down, aPosition.iX, aPosition.iY );
       
   423 				pointerEventUp.Set( TRawEvent::EButton3Up, aPosition.iX, aPosition.iY );
       
   424 				}
       
   425 				break;
       
   426 			default:
       
   427 				User::Leave( KErrArgument );
       
   428 			}
       
   429 		wsSession.SimulateRawEvent( pointerEventDown );
       
   430 		wsSession.Flush();
       
   431 		wsSession.SimulateRawEvent( pointerEventUp );
       
   432 		wsSession.Flush();
       
   433 		}
       
   434 	else
       
   435 		{
       
   436 		User::Leave( KErrArgument );
       
   437 		}	
       
   438 	}
       
   439 
       
   440 /*
       
   441 -------------------------------------------------------------------------------
       
   442 
       
   443      Class: CAknUiEnvProxy
       
   444 
       
   445      Method: SendPointerEventL
       
   446 
       
   447      Description: Send pointer event
       
   448 
       
   449      Send pointer event.
       
   450 
       
   451      Parameters: TRequestStatus* aStatus: in: Pointer to request status used to notify that
       
   452      										  pointer event was recived.
       
   453      			 TUint aType: in: KEvent type.
       
   454      			 const TPoint& aPosition: in: Position.
       
   455      			      
       
   456      Return Values: None.
       
   457 
       
   458      Errors/Exceptions: None.
       
   459 
       
   460      Status: Draft
       
   461     
       
   462 -------------------------------------------------------------------------------
       
   463 */
       
   464 void CAknUiEnvProxy::SendPointerEventL( TRequestStatus* aStatus, TUint aType, const TPoint& aPosition )
       
   465 	{
       
   466 	RWsSession& wsSession = CCoeEnv::Static()->WsSession();
       
   467 
       
   468 	if ( aType < TEventUtil::EButton1 ) {
       
   469 		TRawEvent pointerEvent;
       
   470 		pointerEvent.Set( ( TRawEvent::TType )aType, aPosition.iX, aPosition.iY );
       
   471 		// Send info to AppUi that we are going to send key event
       
   472 		iAppUi->PrepareToPointerEvent();
       
   473 		wsSession.SimulateRawEvent( pointerEvent );
       
   474 		// Request notification when key press is handled
       
   475 		*aStatus = KRequestPending;
       
   476 		iAppUi->NotifyAboutHandledPointerEvent( aStatus );	
       
   477 		} 
       
   478 	else if ( ( aType >= TEventUtil::EButton1 ) && ( aType <= TEventUtil::EButton3 ) )
       
   479 		{
       
   480 		TRawEvent pointerEventDown;
       
   481 		TRawEvent pointerEventUp;
       
   482 		switch ( aType )
       
   483 			{
       
   484 			case TEventUtil::EButton1:
       
   485 				{
       
   486 				pointerEventDown.Set( TRawEvent::EButton1Down, aPosition.iX, aPosition.iY );
       
   487 				pointerEventUp.Set( TRawEvent::EButton1Up, aPosition.iX, aPosition.iY );
       
   488 				}
       
   489 				break;
       
   490 			case TEventUtil::EButton2:
       
   491 				{
       
   492 				pointerEventDown.Set( TRawEvent::EButton2Down, aPosition.iX, aPosition.iY );
       
   493 				pointerEventUp.Set( TRawEvent::EButton2Up, aPosition.iX, aPosition.iY );
       
   494 				}
       
   495 				break;
       
   496 			case TEventUtil::EButton3:
       
   497 				{
       
   498 				pointerEventDown.Set( TRawEvent::EButton3Down, aPosition.iX, aPosition.iY );
       
   499 				pointerEventUp.Set( TRawEvent::EButton3Up, aPosition.iX, aPosition.iY );
       
   500 				}
       
   501 				break;
       
   502 			default:
       
   503 				User::Leave( KErrArgument );
       
   504 			}
       
   505 		
       
   506 			CCoeEnv::Static()->RootWin().SimulatePointerEvent( pointerEventDown );
       
   507 			wsSession.Flush();
       
   508 			
       
   509 			// Send info to AppUi that we are going to send key event
       
   510 			iAppUi->PrepareToPointerEvent();
       
   511 	
       
   512 			CCoeEnv::Static()->RootWin().SimulatePointerEvent( pointerEventUp );
       
   513 			wsSession.Flush();
       
   514 	
       
   515 			// Request notification when key press is handled
       
   516 			*aStatus = KRequestPending;
       
   517 			iAppUi->NotifyAboutHandledPointerEvent( aStatus );	
       
   518 		} 
       
   519 	else
       
   520 		{
       
   521 		User::Leave( KErrArgument );
       
   522 		}
       
   523 	}
       
   524 
       
   525 /*
       
   526 -------------------------------------------------------------------------------
       
   527 
       
   528      Class: CAknUiEnvProxy
       
   529 
       
   530      Method: ParseKeyCode
       
   531 
       
   532      Description: Parses key code.
       
   533 
       
   534      Parses key code.
       
   535 
       
   536      Parameters: TDesC& aKeyCodeName: in: Key code name.
       
   537      			 TUint& aKeyCode: out: Parsed key code.
       
   538      
       
   539      Return Values: KErrNone if no error occures during parsing.
       
   540 
       
   541      Errors/Exceptions: None.
       
   542 
       
   543      Status: Draft
       
   544     
       
   545 -------------------------------------------------------------------------------
       
   546 */
       
   547 TInt CAknUiEnvProxy::ParseKeyCode( const TDesC& aKeyCodeName, TUint& aKeyCode ) const
       
   548 	{
       
   549 	return TEventUtil::ParseKeyCode( aKeyCodeName, aKeyCode );
       
   550 	}
       
   551 
       
   552 /*
       
   553 -------------------------------------------------------------------------------
       
   554 
       
   555      Class: CAknUiEnvProxy
       
   556 
       
   557      Method: ParseKeyScanCode
       
   558 
       
   559      Description: Parses key scan code.
       
   560 
       
   561      Parses key scan code.
       
   562 
       
   563      Parameters: TDesC& aKeyScanCodeName: in: Key scan code name.
       
   564      			 TUint& aKeyScanCode: out: Parsed key scan code.
       
   565      
       
   566      Return Values: KErrNone if no error occures during parsing.
       
   567 
       
   568      Errors/Exceptions: None.
       
   569 
       
   570      Status: Draft
       
   571     
       
   572 -------------------------------------------------------------------------------
       
   573 */
       
   574 TInt CAknUiEnvProxy::ParseKeyScanCode( const TDesC& aKeyScanCodeName, TInt& aKeyScanCode ) const
       
   575 	{
       
   576 	return TEventUtil::ParseKeyScanCode( aKeyScanCodeName, aKeyScanCode );
       
   577 	}
       
   578 
       
   579 /*
       
   580 -------------------------------------------------------------------------------
       
   581 
       
   582      Class: CAknUiEnvProxy
       
   583 
       
   584      Method: ParseModifier
       
   585 
       
   586      Description: Parses key modifier.
       
   587 
       
   588      Parses key modifier.
       
   589 
       
   590      Parameters: TDesC& aModifierName: in: Key modifier.
       
   591      			 TUint& aModifier: out: Parsed key modifier.
       
   592      
       
   593      Return Values: KErrNone if no error occures during parsing.
       
   594 
       
   595      Errors/Exceptions: None.
       
   596 
       
   597      Status: Draft
       
   598     
       
   599 -------------------------------------------------------------------------------
       
   600 */
       
   601 TInt CAknUiEnvProxy::ParseModifier( const TDesC& aModifierName, TUint& aModifier ) const
       
   602 	{
       
   603 	return TEventUtil::ParseModifier( aModifierName, aModifier );
       
   604 	}
       
   605 
       
   606 /*
       
   607 -------------------------------------------------------------------------------
       
   608 
       
   609      Class: CAknUiEnvProxy
       
   610 
       
   611      Method: ParsePointerEventType
       
   612 
       
   613      Description: Parses pointer event type.
       
   614 
       
   615      Parses key modifier.
       
   616 
       
   617      Parameters: const TDesC& aPointerEventTypeName: in: Pointer event type.
       
   618      			 TUint& aModifier: out: Parsed pointer event type.
       
   619      
       
   620      Return Values: KErrNone if no error occures during parsing.
       
   621 
       
   622      Errors/Exceptions: None.
       
   623 
       
   624      Status: Draft
       
   625     
       
   626 -------------------------------------------------------------------------------
       
   627 */
       
   628 TInt CAknUiEnvProxy::ParsePointerEventType( const TDesC& aPointerEventTypeName, TUint& aPointerEventType ) const
       
   629 	{
       
   630 	return TEventUtil::ParsePointerEventType( aPointerEventTypeName, aPointerEventType );
       
   631 	}
       
   632 
       
   633 /*
       
   634 -------------------------------------------------------------------------------
       
   635 
       
   636      Class: CAknUiEnvProxy
       
   637 
       
   638      Method: CAknUiEnvProxy
       
   639 
       
   640      Description: C++ constructor.
       
   641 
       
   642      C++ constructor.
       
   643 
       
   644      Parameters: None
       
   645      
       
   646      Return Values: None
       
   647 
       
   648      Errors/Exceptions: None
       
   649 
       
   650      Status: Draft
       
   651     
       
   652 -------------------------------------------------------------------------------
       
   653 */
       
   654 CAknUiEnvProxy::CAknUiEnvProxy()
       
   655 	{	
       
   656 	}
       
   657 
       
   658 /*
       
   659 -------------------------------------------------------------------------------
       
   660 
       
   661      Class: CAknUiEnvProxy
       
   662 
       
   663      Method: ~CAknUiEnvProxy
       
   664 
       
   665      Description: C++ destructor.
       
   666 
       
   667      C++ destructor.
       
   668 
       
   669      Parameters: None
       
   670      
       
   671      Return Values: None
       
   672 
       
   673      Errors/Exceptions: None
       
   674 
       
   675      Status: Draft
       
   676     
       
   677 -------------------------------------------------------------------------------
       
   678 */
       
   679 CAknUiEnvProxy::~CAknUiEnvProxy()
       
   680 	{	
       
   681 	}
       
   682 
       
   683 // End of File