stifui/avkon/uitestserverstarter/src/AknUiEnvProxy.cpp
branchRCL_3
changeset 9 404ad6c9bc20
child 11 454d022d514b
equal deleted inserted replaced
8:87e9ebfbe96a 9:404ad6c9bc20
       
     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 	// Request notification when key press is handled
       
   216 	*aStatus = KRequestPending;
       
   217 	iAppUi->NotifyAboutHandledKeyPress( aStatus );
       
   218 	}
       
   219 
       
   220 /*
       
   221 -------------------------------------------------------------------------------
       
   222 
       
   223      Class: CAknUiEnvProxy
       
   224 
       
   225      Method: PressKeyL
       
   226 
       
   227      Description: Sends global key press event to UI component.
       
   228 
       
   229      Sends key press event to UI component which is currently focuused. 
       
   230 
       
   231      Parameters: TUint aKeyCode: in: Key code.
       
   232      			 TInt aKeyScanCode: in: Key scan code.
       
   233      			 TUint aKeyModifiers: in: Key modifiers
       
   234      			 TInt aKeyRepeats: in: Key press repeats count.
       
   235      
       
   236      Return Values: None.
       
   237 
       
   238      Errors/Exceptions: Leaves if some error occurs during key event sending.
       
   239 
       
   240      Status: Draft
       
   241     
       
   242 -------------------------------------------------------------------------------
       
   243 */
       
   244 void CAknUiEnvProxy::PressKeyL( TUint aKeyCode, TInt aKeyScanCode, 
       
   245 							   TUint aKeyModifiers, TInt aKeyRepeats )
       
   246 	{	
       
   247 	// Fill key event structure
       
   248 	TWsEvent wsEvent;
       
   249 	wsEvent.SetType(EEventKey);
       
   250 	TKeyEvent* keyEvent = wsEvent.Key();
       
   251 	keyEvent->iCode = aKeyCode;
       
   252 	keyEvent->iScanCode = aKeyScanCode;
       
   253 	keyEvent->iModifiers = aKeyModifiers;
       
   254 	keyEvent->iRepeats = aKeyRepeats;
       
   255 		
       
   256 	RWsSession& wsSession = CCoeEnv::Static()->WsSession();	
       
   257 	TInt wgId = wsSession.GetFocusWindowGroup();	
       
   258 	TInt ret = wsSession.SendEventToWindowGroup( wgId, wsEvent );	
       
   259 	User::LeaveIfError( ret );
       
   260 	}
       
   261 
       
   262 
       
   263 /*
       
   264 -------------------------------------------------------------------------------
       
   265 
       
   266      Class: CAknUiEnvProxy
       
   267 
       
   268      Method: TypeTextL
       
   269 
       
   270      Description: Sends text to UI component.
       
   271 
       
   272      Sends text to UI component. UI component must be first added to 
       
   273      AppUi stack to be able to recive this key event. 
       
   274 
       
   275      Parameters: TRequestStatus* aStatus: out: Pointer to request status used to notify that
       
   276      										   key event was recived.
       
   277     			 TPtrC aText: in: Text which will be send to UI component. 
       
   278      
       
   279      Return Values: None.
       
   280 
       
   281      Errors/Exceptions: Leaves if some error occurs during key event sending.
       
   282 
       
   283      Status: Draft
       
   284     
       
   285 -------------------------------------------------------------------------------
       
   286 */
       
   287 void CAknUiEnvProxy::TypeTextL( TRequestStatus* aStatus, const TDesC& aText )
       
   288 	{
       
   289 	TLex textParser( aText );
       
   290 
       
   291 	// Send info to AppUi that we are going to send text
       
   292 	iAppUi->PrepareToTypeText( aText.Length() );
       
   293 	
       
   294 	TInt wgId = CCoeEnv::Static()->RootWin().Identifier();
       
   295 	RWsSession& wsSession = CCoeEnv::Static()->WsSession();
       
   296 
       
   297 	TChar character = 0;
       
   298 	while ( ( character = textParser.Get() ) != 0 )
       
   299 		{
       
   300 		// Fill key event structure
       
   301 		TWsEvent wsEvent;
       
   302 		wsEvent.SetType(EEventKey);
       
   303 		TKeyEvent* keyEvent = wsEvent.Key();
       
   304 		keyEvent->iCode = character;
       
   305 		keyEvent->iScanCode = 0;
       
   306 		keyEvent->iModifiers = 0;
       
   307 		keyEvent->iRepeats = 0;
       
   308 		
       
   309 		// Send single character from text to UI component
       
   310 		TInt ret = wsSession.SendEventToWindowGroup( wgId, wsEvent );
       
   311 		User::LeaveIfError( ret );
       
   312 		}
       
   313 		
       
   314 	// Request notification when send text is recived
       
   315 	*aStatus = KRequestPending;
       
   316 	iAppUi->NotifyAboutHandledTextType( aStatus );	
       
   317 	}
       
   318 
       
   319 /*
       
   320 -------------------------------------------------------------------------------
       
   321 
       
   322      Class: CAknUiEnvProxy
       
   323 
       
   324      Method: TypeTextL
       
   325 
       
   326      Description: Sends global text to UI component.
       
   327 
       
   328      Sends global text to UI component. UI component must be focused to receive that event. 
       
   329 
       
   330      Parameters: TPtrC aText: in: Text which will be send to UI component. 
       
   331      
       
   332      Return Values: None.
       
   333 
       
   334      Errors/Exceptions: None.
       
   335 
       
   336      Status: Draft
       
   337     
       
   338 -------------------------------------------------------------------------------
       
   339 */
       
   340 void CAknUiEnvProxy::TypeTextL( const TDesC& aText )
       
   341 	{
       
   342 	TLex textParser( aText );
       
   343 
       
   344 	RWsSession& wsSession = CCoeEnv::Static()->WsSession();
       
   345 	TInt wgId = wsSession.GetFocusWindowGroup();
       
   346 
       
   347 	TChar character = 0;	
       
   348 	while ( ( character = textParser.Get() ) != 0 )
       
   349 		{
       
   350 		// Fill key event structure
       
   351 		TWsEvent wsEvent;
       
   352 		wsEvent.SetType(EEventKey);
       
   353 		TKeyEvent* keyEvent = wsEvent.Key();
       
   354 		keyEvent->iCode = character;
       
   355 		keyEvent->iScanCode = 0;
       
   356 		keyEvent->iModifiers = 0;
       
   357 		keyEvent->iRepeats = 0;
       
   358 		
       
   359 		// Send single character from text to UI component
       
   360 		TInt ret = wsSession.SendEventToWindowGroup( wgId, wsEvent );			
       
   361 		User::LeaveIfError( ret );
       
   362 		}
       
   363 	}
       
   364 
       
   365 /*
       
   366 -------------------------------------------------------------------------------
       
   367 
       
   368      Class: CAknUiEnvProxy
       
   369 
       
   370      Method: SendPointerEventL
       
   371 
       
   372      Description: Send pointer event
       
   373 
       
   374      Send pointer event.
       
   375 
       
   376      Parameters: TUint aType: in: KEvent type.
       
   377      			 const TPoint& aPosition: in: Position.
       
   378      			      
       
   379      Return Values: None.
       
   380 
       
   381      Errors/Exceptions: None.
       
   382 
       
   383      Status: Draft
       
   384     
       
   385 -------------------------------------------------------------------------------
       
   386 */
       
   387 void CAknUiEnvProxy::SendPointerEventL( TUint aType, const TPoint& aPosition )
       
   388 	{
       
   389 	RWsSession& wsSession = CCoeEnv::Static()->WsSession();
       
   390 	TRawEvent pointerEvent;
       
   391 
       
   392 	if ( aType < TEventUtil::EButton1 ) {
       
   393 		pointerEvent.Set( ( TRawEvent::TType )aType, aPosition.iX, aPosition.iY );
       
   394 		wsSession.SimulateRawEvent( pointerEvent );
       
   395 		} 
       
   396 	else if ( ( aType >= TEventUtil::EButton1 ) && ( aType <= TEventUtil::EButton3 ) )
       
   397 		{
       
   398 		TRawEvent pointerEventDown;
       
   399 		TRawEvent pointerEventUp;
       
   400 		
       
   401 		switch ( aType )
       
   402 			{
       
   403 			case TEventUtil::EButton1:
       
   404 				{
       
   405 				pointerEventDown.Set( TRawEvent::EButton1Down, aPosition.iX, aPosition.iY );
       
   406 				pointerEventUp.Set( TRawEvent::EButton1Up, aPosition.iX, aPosition.iY );
       
   407 				}
       
   408 				break;
       
   409 			case TEventUtil::EButton2:
       
   410 				{
       
   411 				pointerEventDown.Set( TRawEvent::EButton2Down, aPosition.iX, aPosition.iY );
       
   412 				pointerEventUp.Set( TRawEvent::EButton2Up, aPosition.iX, aPosition.iY );
       
   413 				}
       
   414 				break;
       
   415 			case TEventUtil::EButton3:
       
   416 				{
       
   417 				pointerEventDown.Set( TRawEvent::EButton3Down, aPosition.iX, aPosition.iY );
       
   418 				pointerEventUp.Set( TRawEvent::EButton3Up, aPosition.iX, aPosition.iY );
       
   419 				}
       
   420 				break;
       
   421 			default:
       
   422 				User::Leave( KErrArgument );
       
   423 			}
       
   424 		wsSession.SimulateRawEvent( pointerEventDown );
       
   425 		wsSession.SimulateRawEvent( pointerEventUp );
       
   426 		}
       
   427 	else
       
   428 		{
       
   429 		User::Leave( KErrArgument );
       
   430 		}	
       
   431 	}
       
   432 
       
   433 /*
       
   434 -------------------------------------------------------------------------------
       
   435 
       
   436      Class: CAknUiEnvProxy
       
   437 
       
   438      Method: SendPointerEventL
       
   439 
       
   440      Description: Send pointer event
       
   441 
       
   442      Send pointer event.
       
   443 
       
   444      Parameters: TRequestStatus* aStatus: in: Pointer to request status used to notify that
       
   445      										  pointer event was recived.
       
   446      			 TUint aType: in: KEvent type.
       
   447      			 const TPoint& aPosition: in: Position.
       
   448      			      
       
   449      Return Values: None.
       
   450 
       
   451      Errors/Exceptions: None.
       
   452 
       
   453      Status: Draft
       
   454     
       
   455 -------------------------------------------------------------------------------
       
   456 */
       
   457 void CAknUiEnvProxy::SendPointerEventL( TRequestStatus* aStatus, TUint aType, const TPoint& aPosition )
       
   458 	{
       
   459 	RWsSession& wsSession = CCoeEnv::Static()->WsSession();
       
   460 
       
   461 	if ( aType < TEventUtil::EButton1 ) {
       
   462 		TRawEvent pointerEvent;
       
   463 		pointerEvent.Set( ( TRawEvent::TType )aType, aPosition.iX, aPosition.iY );
       
   464 		// Send info to AppUi that we are going to send key event
       
   465 		iAppUi->PrepareToPointerEvent();
       
   466 		wsSession.SimulateRawEvent( pointerEvent );
       
   467 		// Request notification when key press is handled
       
   468 		*aStatus = KRequestPending;
       
   469 		iAppUi->NotifyAboutHandledPointerEvent( aStatus );	
       
   470 		} 
       
   471 	else if ( ( aType >= TEventUtil::EButton1 ) && ( aType <= TEventUtil::EButton3 ) )
       
   472 		{
       
   473 		TRawEvent pointerEventDown;
       
   474 		TRawEvent pointerEventUp;
       
   475 		switch ( aType )
       
   476 			{
       
   477 			case TEventUtil::EButton1:
       
   478 				{
       
   479 				pointerEventDown.Set( TRawEvent::EButton1Down, aPosition.iX, aPosition.iY );
       
   480 				pointerEventUp.Set( TRawEvent::EButton1Up, aPosition.iX, aPosition.iY );
       
   481 				}
       
   482 				break;
       
   483 			case TEventUtil::EButton2:
       
   484 				{
       
   485 				pointerEventDown.Set( TRawEvent::EButton2Down, aPosition.iX, aPosition.iY );
       
   486 				pointerEventUp.Set( TRawEvent::EButton2Up, aPosition.iX, aPosition.iY );
       
   487 				}
       
   488 				break;
       
   489 			case TEventUtil::EButton3:
       
   490 				{
       
   491 				pointerEventDown.Set( TRawEvent::EButton3Down, aPosition.iX, aPosition.iY );
       
   492 				pointerEventUp.Set( TRawEvent::EButton3Up, aPosition.iX, aPosition.iY );
       
   493 				}
       
   494 				break;
       
   495 			default:
       
   496 				User::Leave( KErrArgument );
       
   497 			}
       
   498 		
       
   499 			CCoeEnv::Static()->RootWin().SimulatePointerEvent( pointerEventDown );
       
   500 			
       
   501 			// Send info to AppUi that we are going to send key event
       
   502 			iAppUi->PrepareToPointerEvent();
       
   503 	
       
   504 			CCoeEnv::Static()->RootWin().SimulatePointerEvent( pointerEventUp );
       
   505 	
       
   506 			// Request notification when key press is handled
       
   507 			*aStatus = KRequestPending;
       
   508 			iAppUi->NotifyAboutHandledPointerEvent( aStatus );	
       
   509 		} 
       
   510 	else
       
   511 		{
       
   512 		User::Leave( KErrArgument );
       
   513 		}
       
   514 	}
       
   515 
       
   516 /*
       
   517 -------------------------------------------------------------------------------
       
   518 
       
   519      Class: CAknUiEnvProxy
       
   520 
       
   521      Method: ParseKeyCode
       
   522 
       
   523      Description: Parses key code.
       
   524 
       
   525      Parses key code.
       
   526 
       
   527      Parameters: TDesC& aKeyCodeName: in: Key code name.
       
   528      			 TUint& aKeyCode: out: Parsed key code.
       
   529      
       
   530      Return Values: KErrNone if no error occures during parsing.
       
   531 
       
   532      Errors/Exceptions: None.
       
   533 
       
   534      Status: Draft
       
   535     
       
   536 -------------------------------------------------------------------------------
       
   537 */
       
   538 TInt CAknUiEnvProxy::ParseKeyCode( const TDesC& aKeyCodeName, TUint& aKeyCode ) const
       
   539 	{
       
   540 	return TEventUtil::ParseKeyCode( aKeyCodeName, aKeyCode );
       
   541 	}
       
   542 
       
   543 /*
       
   544 -------------------------------------------------------------------------------
       
   545 
       
   546      Class: CAknUiEnvProxy
       
   547 
       
   548      Method: ParseKeyScanCode
       
   549 
       
   550      Description: Parses key scan code.
       
   551 
       
   552      Parses key scan code.
       
   553 
       
   554      Parameters: TDesC& aKeyScanCodeName: in: Key scan code name.
       
   555      			 TUint& aKeyScanCode: out: Parsed key scan code.
       
   556      
       
   557      Return Values: KErrNone if no error occures during parsing.
       
   558 
       
   559      Errors/Exceptions: None.
       
   560 
       
   561      Status: Draft
       
   562     
       
   563 -------------------------------------------------------------------------------
       
   564 */
       
   565 TInt CAknUiEnvProxy::ParseKeyScanCode( const TDesC& aKeyScanCodeName, TInt& aKeyScanCode ) const
       
   566 	{
       
   567 	return TEventUtil::ParseKeyScanCode( aKeyScanCodeName, aKeyScanCode );
       
   568 	}
       
   569 
       
   570 /*
       
   571 -------------------------------------------------------------------------------
       
   572 
       
   573      Class: CAknUiEnvProxy
       
   574 
       
   575      Method: ParseModifier
       
   576 
       
   577      Description: Parses key modifier.
       
   578 
       
   579      Parses key modifier.
       
   580 
       
   581      Parameters: TDesC& aModifierName: in: Key modifier.
       
   582      			 TUint& aModifier: out: Parsed key modifier.
       
   583      
       
   584      Return Values: KErrNone if no error occures during parsing.
       
   585 
       
   586      Errors/Exceptions: None.
       
   587 
       
   588      Status: Draft
       
   589     
       
   590 -------------------------------------------------------------------------------
       
   591 */
       
   592 TInt CAknUiEnvProxy::ParseModifier( const TDesC& aModifierName, TUint& aModifier ) const
       
   593 	{
       
   594 	return TEventUtil::ParseModifier( aModifierName, aModifier );
       
   595 	}
       
   596 
       
   597 /*
       
   598 -------------------------------------------------------------------------------
       
   599 
       
   600      Class: CAknUiEnvProxy
       
   601 
       
   602      Method: ParsePointerEventType
       
   603 
       
   604      Description: Parses pointer event type.
       
   605 
       
   606      Parses key modifier.
       
   607 
       
   608      Parameters: const TDesC& aPointerEventTypeName: in: Pointer event type.
       
   609      			 TUint& aModifier: out: Parsed pointer event type.
       
   610      
       
   611      Return Values: KErrNone if no error occures during parsing.
       
   612 
       
   613      Errors/Exceptions: None.
       
   614 
       
   615      Status: Draft
       
   616     
       
   617 -------------------------------------------------------------------------------
       
   618 */
       
   619 TInt CAknUiEnvProxy::ParsePointerEventType( const TDesC& aPointerEventTypeName, TUint& aPointerEventType ) const
       
   620 	{
       
   621 	return TEventUtil::ParsePointerEventType( aPointerEventTypeName, aPointerEventType );
       
   622 	}
       
   623 
       
   624 /*
       
   625 -------------------------------------------------------------------------------
       
   626 
       
   627      Class: CAknUiEnvProxy
       
   628 
       
   629      Method: CAknUiEnvProxy
       
   630 
       
   631      Description: C++ constructor.
       
   632 
       
   633      C++ constructor.
       
   634 
       
   635      Parameters: None
       
   636      
       
   637      Return Values: None
       
   638 
       
   639      Errors/Exceptions: None
       
   640 
       
   641      Status: Draft
       
   642     
       
   643 -------------------------------------------------------------------------------
       
   644 */
       
   645 CAknUiEnvProxy::CAknUiEnvProxy()
       
   646 	{	
       
   647 	}
       
   648 
       
   649 /*
       
   650 -------------------------------------------------------------------------------
       
   651 
       
   652      Class: CAknUiEnvProxy
       
   653 
       
   654      Method: ~CAknUiEnvProxy
       
   655 
       
   656      Description: C++ destructor.
       
   657 
       
   658      C++ destructor.
       
   659 
       
   660      Parameters: None
       
   661      
       
   662      Return Values: None
       
   663 
       
   664      Errors/Exceptions: None
       
   665 
       
   666      Status: Draft
       
   667     
       
   668 -------------------------------------------------------------------------------
       
   669 */
       
   670 CAknUiEnvProxy::~CAknUiEnvProxy()
       
   671 	{	
       
   672 	}
       
   673 
       
   674 // End of File