connectionutilities/ConnectionDialogs/cconndlg/src/SelectConnectionDialog.cpp
changeset 0 5a93021fdf25
child 1 40cb640ef159
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Implementation of class CSelectConnectionDialog.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "SelectConnectionDialog.h"
       
    21 #include "ConnectionInfo.h"
       
    22 #include "ConnectionInfoArray.h"
       
    23 #include "ConnectionDialogsLogger.h"
       
    24 #include "ActiveSelectExplicit.h"
       
    25 #include "ExpiryTimer.h"
       
    26 #include "ConnectionDialogs.hrh"
       
    27 
       
    28 
       
    29 #include "ConnDlgPlugin.h"
       
    30 #include <CConnDlgPlugin.rsg>
       
    31 
       
    32 #include <uikon/eiksrvui.h>
       
    33 
       
    34 #include <AknsFrameBackgroundControlContext.h>
       
    35 #include <aknsoundsystem.h>
       
    36 #include <AknsDrawUtils.h>
       
    37 #include <aknnotewrappers.h>
       
    38 #include <StringLoader.h>
       
    39 #include <eiklbi.h>
       
    40 
       
    41 // CONST DECLARATIONS
       
    42 
       
    43 #if defined(_DEBUG)
       
    44 _LIT( KErrNullPointer, "NULL pointer" );
       
    45 _LIT( KErrActiveObjectNull, "iActiveSelectExplicit not NULL" );
       
    46 #endif
       
    47 
       
    48 
       
    49 
       
    50 // ================= MEMBER FUNCTIONS =======================
       
    51 //
       
    52 // ---------------------------------------------------------
       
    53 // CSelectConnectionDialog::CSelectConnectionDialog
       
    54 // ---------------------------------------------------------
       
    55 //
       
    56 CSelectConnectionDialog::CSelectConnectionDialog( 
       
    57                                         MEikSrvNotifierBase2* aPlugin,
       
    58                                         TInt aRefreshInterval,
       
    59                                         TUint32 aBearerSet, 
       
    60                                         TBool aIsWLANFeatureSupported,
       
    61                                         TUint aDefaultCMId )
       
    62 : CAknListQueryDialog( &iDummy ),
       
    63   iPlugin( ( CConnDlgSelectConnectionPlugin* )aPlugin ),
       
    64   iFromOkToExit( EFalse ),
       
    65   iActiveSelectExplicit( NULL ),
       
    66   iRefreshInterval( aRefreshInterval ),
       
    67   iBearerSet( aBearerSet ),
       
    68   iIsWLANFeatureSupported( aIsWLANFeatureSupported ),
       
    69   iDefaultCMId( aDefaultCMId )
       
    70     {
       
    71     }
       
    72 
       
    73 
       
    74 // ---------------------------------------------------------
       
    75 // CSelectConnectionDialog::NewL
       
    76 // ---------------------------------------------------------
       
    77 //
       
    78 CSelectConnectionDialog* CSelectConnectionDialog::NewL( 
       
    79                                                 MEikSrvNotifierBase2* aPlugin,
       
    80                                                 TInt aRefreshInterval,
       
    81                                                 TUint32 aBearerSet, 
       
    82                                                 TBool aIsWLANFeatureSupported, 
       
    83                                                 TUint aDefaultCMId )
       
    84     {
       
    85     CSelectConnectionDialog* self = new( ELeave ) CSelectConnectionDialog( 
       
    86                                                     aPlugin,
       
    87                                                     aRefreshInterval,
       
    88                                                     aBearerSet, 
       
    89                                                     aIsWLANFeatureSupported, 
       
    90                                                     aDefaultCMId );
       
    91     CleanupStack::PushL( self );
       
    92     self->ConstructL();
       
    93     CleanupStack::Pop( self );
       
    94 
       
    95     return self;
       
    96     }
       
    97 
       
    98 
       
    99 // ---------------------------------------------------------
       
   100 // CSelectConnectionDialog::ConstructL()
       
   101 // ---------------------------------------------------------
       
   102 //
       
   103 void CSelectConnectionDialog::ConstructL()
       
   104     {
       
   105     }
       
   106 
       
   107 
       
   108 // ---------------------------------------------------------
       
   109 // CSelectConnectionDialog::~CSelectConnectionDialog()
       
   110 // ---------------------------------------------------------
       
   111 //
       
   112 CSelectConnectionDialog::~CSelectConnectionDialog()
       
   113     {
       
   114     CLOG_ENTERFN( "CSelectConnectionDialog::~CSelectConnectionDialog " );
       
   115     iIapIDs.Close();
       
   116     iDestIDs.Close();
       
   117     STATIC_CAST( CEikServAppUi*, 
       
   118                 CCoeEnv::Static()->AppUi() )->SuppressAppSwitching( EFalse );
       
   119     delete iExpiryTimer;
       
   120     CLOG_LEAVEFN( "CSelectConnectionDialog::~CSelectConnectionDialog " );
       
   121     }
       
   122 
       
   123 
       
   124 // ---------------------------------------------------------
       
   125 // CSelectConnectionDialog::PreLayoutDynInitL()
       
   126 // ---------------------------------------------------------
       
   127 //
       
   128 void CSelectConnectionDialog::PreLayoutDynInitL()
       
   129     {
       
   130     CLOG_ENTERFN( "CSelectConnectionDialog::PreLayoutDynInitL " );  
       
   131     
       
   132     CAknListQueryDialog::PreLayoutDynInitL();
       
   133 
       
   134     SetOwnershipType( ELbmDoesNotOwnItemArray );
       
   135     SetIconArrayL( iIcons );
       
   136 
       
   137     STATIC_CAST( CEikServAppUi*, 
       
   138                 CCoeEnv::Static()->AppUi() )->SuppressAppSwitching( ETrue );
       
   139 
       
   140     iExpiryTimer = CExpiryTimer::NewL( *this );
       
   141     iExpiryTimer->Start();
       
   142     
       
   143     CLOG_LEAVEFN( "CSelectConnectionDialog::PreLayoutDynInitL " );      
       
   144     }
       
   145 
       
   146 
       
   147 // ---------------------------------------------------------
       
   148 // CSelectConnectionDialog::OkToExitL
       
   149 // ---------------------------------------------------------
       
   150 //
       
   151 TBool CSelectConnectionDialog::OkToExitL( TInt aButtonId )
       
   152     {
       
   153     CLOG_ENTERFN( "CSelectConnectionDialog::OkToExitL " );      
       
   154     
       
   155     TBool result( EFalse );
       
   156     TInt completeCode( KErrNone );
       
   157     
       
   158     if ( aButtonId == EAknSoftkeySelect || aButtonId == EAknSoftkeyOk ||
       
   159          aButtonId == EAknSoftkeyDone )
       
   160         {
       
   161         CLOG_WRITE( "OkToExitL Ok-ed" );  
       
   162         TInt index = ListBox()->CurrentItemIndex();
       
   163         if ( iIapIDs[index] == 0 && iDestIDs[index] == 0 ) 
       
   164             {      // Uncategorized
       
   165             ProcessCommandL( ESelectConnectionCmdChooseMethod );
       
   166             }
       
   167         else
       
   168             {
       
   169             iPlugin->SetElementIDL( iIapIDs[index], iDestIDs[index] );
       
   170             result = ETrue;
       
   171             }
       
   172         }
       
   173     else if ( aButtonId == EAknSoftkeyCancel )
       
   174         {
       
   175         CLOG_WRITE( "OkToExitL Cancel" );  
       
   176         completeCode = KErrCancel;
       
   177         result = ETrue;
       
   178         }
       
   179     else if ( aButtonId == EAknSoftkeyOptions )
       
   180         {
       
   181         if ( !( ListBox()->View()->ItemDrawer()->Flags() 
       
   182                & CListItemDrawer::EDisableHighlight ) )
       
   183             {
       
   184             DisplayMenuL();
       
   185             }
       
   186         else
       
   187             {
       
   188             ListBox()->View()->ItemDrawer()->ClearFlags(
       
   189                CListItemDrawer::EDisableHighlight );
       
   190             DrawNow();
       
   191             }
       
   192         }
       
   193         
       
   194     if ( result )
       
   195         {
       
   196         iFromOkToExit = ETrue;        
       
   197         
       
   198         __ASSERT_DEBUG( iPlugin, User::Panic( KErrNullPointer, KErrNone ) );
       
   199         CLOG_WRITE( "OkToExitL Going to CompleteL" );  
       
   200         iPlugin->CompleteL( completeCode );
       
   201         CLOG_WRITE( "OkToExitL Returned from CompleteL" );  
       
   202         }
       
   203 
       
   204     CLOG_LEAVEFN( "CSelectConnectionDialog::OkToExitL " );      
       
   205 
       
   206     return result;
       
   207     }
       
   208 
       
   209 
       
   210 // ---------------------------------------------------------
       
   211 // CSelectConnectionDialog::PrepareAndRunLD
       
   212 // ---------------------------------------------------------
       
   213 //    
       
   214 void CSelectConnectionDialog::PrepareAndRunLD( CConnectionInfoArray* aIAP,
       
   215                                                CArrayPtr< CGulIcon >* aIcons,
       
   216                                                TBool aIsReallyRefreshing,
       
   217                                                const TInt aHighlightedItem )
       
   218     {
       
   219     PrepareLC( R_SELECT_CONNECTION_QUERY );
       
   220     RefreshDialogL( aIAP, aIcons, aIsReallyRefreshing, aHighlightedItem );
       
   221     RunLD();
       
   222     }
       
   223 
       
   224 
       
   225 // ---------------------------------------------------------
       
   226 // CSelectConnectionDialog::RefreshDialogL
       
   227 // ---------------------------------------------------------
       
   228 //    
       
   229 void CSelectConnectionDialog::RefreshDialogL( CConnectionInfoArray* aIAP, 
       
   230                                               CArrayPtr< CGulIcon >* aIcons,
       
   231                                               TBool aIsReallyRefreshing,
       
   232                                               const TInt aHighlightedItem )
       
   233     {  
       
   234     CLOG_ENTERFN( "CSelectConnectionDialog::RefreshDialogL " );  
       
   235      
       
   236     if ( aIAP->Count() == 0 )
       
   237         {
       
   238         ListBox()->Reset();	
       
   239         }
       
   240     else
       
   241         {
       
   242         SetItemTextArray( aIAP );	
       
   243         } 
       
   244     
       
   245     iIcons = aIcons;
       
   246 
       
   247     iIapIDs.Reset();
       
   248     iDestIDs.Reset();
       
   249 
       
   250     // Determine the preferred IAP
       
   251     TInt numAPs = aIAP->Count();
       
   252     for( TInt ii = 0; ii < numAPs; ii++ )
       
   253         {
       
   254         iIapIDs.AppendL( aIAP->At( ii )->Id() );
       
   255         iDestIDs.AppendL( aIAP->At( ii )->DestinationId() );
       
   256         }
       
   257 
       
   258     if ( aHighlightedItem >= 0 && aHighlightedItem < numAPs )
       
   259         {
       
   260         ListBox()->SetCurrentItemIndex( aHighlightedItem );
       
   261         if ( aHighlightedItem == 1 )
       
   262             {
       
   263             // To have the Search for Wlan also visible. But this is valid only
       
   264             // if the highlighted item can be the first or the second, 
       
   265             // otherwise we risk to hide the highlighted item!
       
   266             ListBox()->ScrollToMakeItemVisible( 0 );    
       
   267             }
       
   268         }
       
   269 
       
   270     ListBox()->HandleItemAdditionL();
       
   271 
       
   272     if ( aHighlightedItem >= 0 && aHighlightedItem < numAPs )
       
   273         {
       
   274         CEikButtonGroupContainer& cba = ButtonGroupContainer();
       
   275         HBufC* label;
       
   276 
       
   277         if ( iIapIDs[aHighlightedItem] != 0 )
       
   278             {       // Easy Wlan
       
   279             label = StringLoader::LoadL( R_QTN_MSK_SELECT );
       
   280             }
       
   281         else if ( iDestIDs[aHighlightedItem] != 0 )
       
   282             {       // Destination
       
   283             label = StringLoader::LoadL( R_QTN_MSK_CONNECT );
       
   284             }
       
   285         else        // if ( iIapIDs[aHighlightedItem] == 0 && iDestIDs[aHighlightedItem] == 0 )
       
   286             {      // Uncategorized
       
   287             label = StringLoader::LoadL( R_QTN_MSK_OPEN );
       
   288             }
       
   289 
       
   290         CleanupStack::PushL( label );
       
   291         cba.SetCommandL( EAknSoftkeyDone, label->Des() );
       
   292         CleanupStack::PopAndDestroy(); // label
       
   293         }
       
   294 
       
   295     if ( aIsReallyRefreshing )
       
   296         {   // If we are really making a refresh, we need to recalculate the 
       
   297             // layout, because the number of items could be different and the
       
   298             // dialog should be resized accordingly
       
   299         Layout();   
       
   300         SizeChanged();
       
   301         DrawDeferred();
       
   302         }
       
   303 
       
   304     CLOG_LEAVEFN( "CSelectConnectionDialog::RefreshDialogL " );  
       
   305     }
       
   306     
       
   307 
       
   308 // ----------------------------------------------------------------------------
       
   309 // CSelectConnectionDialog::DynInitMenuPaneL
       
   310 // ----------------------------------------------------------------------------
       
   311 //
       
   312 void CSelectConnectionDialog::DynInitMenuPaneL( TInt aResourceId, 
       
   313                                              CEikMenuPane* aMenuPane )
       
   314     {
       
   315     CAknListQueryDialog::DynInitMenuPaneL( aResourceId, aMenuPane );
       
   316 
       
   317     if ( aResourceId == R_SELECT_CONNECTION_MENU_PANE )
       
   318         {
       
   319         if ( aMenuPane )
       
   320             {
       
   321             TInt index = ListBox()->CurrentItemIndex();
       
   322 
       
   323             if ( iIapIDs[index] != 0 )   
       
   324                 {      // Easy Wlan
       
   325                 aMenuPane->DeleteMenuItem( ESelectConnectionCmdChooseMethod );
       
   326                 aMenuPane->DeleteMenuItem( ESelectConnectionCmdConnect );
       
   327                 }
       
   328             else if ( iDestIDs[index] != 0 )
       
   329                 {       // Destination
       
   330                 aMenuPane->DeleteMenuItem( ESelectConnectionCmdSelect );
       
   331                 }
       
   332             else // if ( iIapIDs[index] == 0 && iDestIDs[index] == 0 ) 
       
   333                 {      // Uncategorized
       
   334                 aMenuPane->DeleteMenuItem( ESelectConnectionCmdSelect );
       
   335                 aMenuPane->DeleteMenuItem( ESelectConnectionCmdConnect );
       
   336                 }
       
   337             }
       
   338         }
       
   339     }
       
   340 
       
   341 
       
   342 // ----------------------------------------------------------------------------
       
   343 // CSelectConnectionDialog::ProcessCommandL
       
   344 // ----------------------------------------------------------------------------
       
   345 //
       
   346 void CSelectConnectionDialog::ProcessCommandL( TInt aCommand )
       
   347     {
       
   348     CLOG_ENTERFN( "CSelectConnectionDialog::ProcessCommandL" );  
       
   349     if ( MenuShowing() )
       
   350         {
       
   351         HideMenu();
       
   352         }
       
   353 
       
   354     switch( aCommand )
       
   355         {
       
   356         case ESelectConnectionCmdSelect:
       
   357         case ESelectConnectionCmdConnect:
       
   358             {
       
   359             TryExitL( EAknSoftkeySelect );
       
   360             break;
       
   361             }
       
   362 
       
   363         case ESelectConnectionCmdChooseMethod:
       
   364             {
       
   365             __ASSERT_DEBUG( !iActiveSelectExplicit, 
       
   366                             User::Panic( KErrActiveObjectNull, KErrNone ) );
       
   367 
       
   368             iActiveSelectExplicit = CActiveSelectExplicit::NewL( this, 
       
   369                                     iDestIDs[ListBox()->CurrentItemIndex()],
       
   370                                     iRefreshInterval,
       
   371                                     iBearerSet, 
       
   372                                     iIsWLANFeatureSupported,
       
   373                                     iDefaultCMId );
       
   374             iActiveSelectExplicit->ShowSelectExplicitL();
       
   375 
       
   376             break;
       
   377             }
       
   378 
       
   379         default:
       
   380             {
       
   381             break;
       
   382             }
       
   383         }
       
   384     CLOG_LEAVEFN( "CSelectConnectionDialog::ProcessCommandL" );  
       
   385     }
       
   386 
       
   387 
       
   388 // ---------------------------------------------------------
       
   389 // CNetworksViewContainer::OfferKeyEventL
       
   390 // ---------------------------------------------------------
       
   391 //
       
   392 TKeyResponse CSelectConnectionDialog::OfferKeyEventL( 
       
   393                                                    const TKeyEvent& aKeyEvent,
       
   394                                                    TEventCode aType )
       
   395     {
       
   396     CLOG_ENTERFN( "CSelectConnectionDialog::OfferKeyEventL" );
       
   397 
       
   398     TKeyResponse result( EKeyWasNotConsumed );
       
   399     TInt indexBefore = -1;
       
   400     TInt indexAfter = -1;
       
   401 
       
   402     if ( aKeyEvent.iScanCode == EStdKeyDownArrow || 
       
   403          aKeyEvent.iScanCode == EStdKeyUpArrow )
       
   404         {
       
   405         CLOG_WRITE( "Arrow pressed" );
       
   406         indexBefore = ListBox()->CurrentItemIndex();
       
   407         }
       
   408 
       
   409     result = CAknListQueryDialog::OfferKeyEventL( aKeyEvent, aType );
       
   410 
       
   411     CLOG_WRITEF( _L ( "Returned from CAknListQueryDialog::OfferKeyEventL: %d" ), result );
       
   412 
       
   413     if ( aKeyEvent.iScanCode == EStdKeyDownArrow || 
       
   414          aKeyEvent.iScanCode == EStdKeyUpArrow )
       
   415         {
       
   416         indexAfter = ListBox()->CurrentItemIndex();
       
   417         }
       
   418 
       
   419     if ( indexBefore != indexAfter )
       
   420         {
       
   421         CLOG_WRITEF( _L ( "IndexBefore = %d, IndexAfter = %d" ), indexBefore, indexAfter );
       
   422         CEikButtonGroupContainer& cba = ButtonGroupContainer();
       
   423         HBufC* label;
       
   424         if ( iIapIDs[indexAfter] != 0 )
       
   425             {       // Easy Wlan
       
   426             label = StringLoader::LoadL( R_QTN_MSK_SELECT );
       
   427             }
       
   428         else if ( iDestIDs[indexAfter] != 0 )
       
   429             {       // Destination
       
   430             label = StringLoader::LoadL( R_QTN_MSK_CONNECT );
       
   431             }
       
   432         else        // if ( iIapIDs[indexAfter] == 0 && iDestIDs[indexAfter] == 0 )
       
   433             {      // Uncategorized
       
   434             label = StringLoader::LoadL( R_QTN_MSK_OPEN );
       
   435             }
       
   436         CleanupStack::PushL( label );
       
   437         cba.SetCommandL( EAknSoftkeyDone, label->Des() );
       
   438         CleanupStack::PopAndDestroy(); // label
       
   439         cba.DrawDeferred();
       
   440         }
       
   441 
       
   442     CLOG_LEAVEFN( "CSelectConnectionDialog::OfferKeyEventL" );  
       
   443 
       
   444     return result;
       
   445     }
       
   446 
       
   447 
       
   448 // ----------------------------------------------------------------------------
       
   449 // CSelectConnectionDialog::RunLD
       
   450 // ----------------------------------------------------------------------------
       
   451 //
       
   452 TInt CSelectConnectionDialog::RunLD()
       
   453     {
       
   454     CLOG_ENTERFN( "CSelectConnectionDialog::RunLD" );  
       
   455     CAknDialog::ConstructL( R_SELECT_CONNECTION_MENUBAR );
       
   456     User::ResetInactivityTime();
       
   457 
       
   458     CAknKeySoundSystem* soundSystem = NULL;
       
   459     if ( iSoundSystem )
       
   460         {
       
   461         iSoundSystem->PushContextL( R_AVKON_DEFAULT_SKEY_LIST );
       
   462         // Need to store local copy of iSoundSystem, since it will have been
       
   463         // destroyed when RunLD returns
       
   464         soundSystem = iSoundSystem;
       
   465         }
       
   466 
       
   467     CAknsFrameBackgroundControlContext* cc = 
       
   468         ( CAknsFrameBackgroundControlContext* )AknsDrawUtils::ControlContext(
       
   469                                                                         this );
       
   470     cc->SetCenter( KAknsIIDQsnFrPopupCenterQuery );
       
   471 
       
   472     TInt ret = CAknDialog::RunLD();
       
   473     if ( soundSystem )
       
   474         {
       
   475         soundSystem->PopContext();
       
   476         }
       
   477     CLOG_LEAVEFN( "CSelectConnectionDialog::RunLD" );  
       
   478     return ret;
       
   479     }
       
   480 
       
   481 
       
   482 // ---------------------------------------------------------
       
   483 // CSelectConnectionDialog::SetElementIDL
       
   484 // ---------------------------------------------------------
       
   485 //    
       
   486 void CSelectConnectionDialog::SetElementIDL( TUint32 aIAPId )
       
   487     {
       
   488     iPlugin->SetElementIDL( aIAPId, 0 );
       
   489     }
       
   490 
       
   491 
       
   492 // ---------------------------------------------------------
       
   493 // void CSelectConnectionDialog::CompleteL
       
   494 // ---------------------------------------------------------
       
   495 //
       
   496 void CSelectConnectionDialog::CompleteL( TInt aStatus )
       
   497     {
       
   498     CLOG_ENTERFN( "CSelectConnectionDialog::CompleteL" );  
       
   499     delete iActiveSelectExplicit;
       
   500     iActiveSelectExplicit = NULL;
       
   501     iPlugin->CompleteL( aStatus );
       
   502     CLOG_LEAVEFN( "CSelectConnectionDialog::CompleteL" );  
       
   503     }
       
   504 
       
   505 void CSelectConnectionDialog::HandleTimedOut()
       
   506     {
       
   507     TRAP_IGNORE( TryExitL(EAknSoftkeyCancel) );
       
   508     }
       
   509 
       
   510 // ---------------------------------------------------------
       
   511 // void CSelectConnectionDialog::HandleListBoxEventL
       
   512 // ---------------------------------------------------------
       
   513 //    
       
   514 void CSelectConnectionDialog::HandleListBoxEventL(CEikListBox* aListBox, 
       
   515 												TListBoxEvent aEventType)
       
   516 	{	
       
   517     if( aEventType == EEventItemClicked )
       
   518         {
       
   519         // Do not forward to the base class. 
       
   520         // The first click must only select the item.        
       
   521         return;
       
   522         }
       
   523     else if( aEventType == EEventItemDoubleClicked )
       
   524         {
       
   525         // Forward as EEventItemClicked to open the item on the second click.
       
   526         CAknListQueryDialog::HandleListBoxEventL( aListBox, EEventItemClicked );
       
   527         }
       
   528 	else
       
   529         {
       
   530         // normal forward
       
   531         CAknListQueryDialog::HandleListBoxEventL( aListBox, aEventType );
       
   532         }
       
   533     }
       
   534 
       
   535 // ---------------------------------------------------------
       
   536 // void CSelectConnectionDialog::HandlePointerEventL
       
   537 // ---------------------------------------------------------
       
   538 //    
       
   539 void CSelectConnectionDialog::HandlePointerEventL(const TPointerEvent& aPointerEvent)
       
   540     {
       
   541     if( ListBox()->Rect().Contains( aPointerEvent.iPosition ) )
       
   542         {
       
   543         if ( aPointerEvent.iType == TPointerEvent::EButton1Down )
       
   544             {
       
   545             TInt index;
       
   546             TInt oldIndex = ListBox()->CurrentItemIndex();
       
   547             if ( ListBox()->View()->XYPosToItemIndex( aPointerEvent.iPosition, index ) &&
       
   548                    ( index == oldIndex ) )
       
   549                 {
       
   550                 // Pressed Down Effect
       
   551                 ListBox()->View()->ItemDrawer()->SetFlags( CListItemDrawer::EPressedDownState );
       
   552                 }
       
   553             }
       
   554         CAknControl::HandlePointerEventL(aPointerEvent);
       
   555         }
       
   556     else
       
   557         {
       
   558         CAknListQueryDialog::HandlePointerEventL( aPointerEvent );
       
   559         }
       
   560     }
       
   561 
       
   562 // End of File