emailuis/emailui/src/FreestyleEmailUiSettingsListView.cpp
changeset 0 8466d47a6819
child 2 5253a20d2a1e
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Freestyle Email source file
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // SYSTEM INCLUDES
       
    20 #include "emailtrace.h"
       
    21 #include <aknViewAppUi.h>
       
    22 #include <eikmenub.h>
       
    23 #include <avkon.hrh>
       
    24 #include <barsread.h>
       
    25 #include <StringLoader.h>
       
    26 #include <aknlists.h>
       
    27 #include <eikenv.h>
       
    28 #include <AknIconArray.h>
       
    29 #include <eikclbd.h>
       
    30 #include <akncontext.h>
       
    31 #include <akntitle.h>
       
    32 #include <FreestyleEmailUi.rsg>
       
    33 //<cmail>
       
    34 #include <featmgr.h>
       
    35 //</cmail>
       
    36 
       
    37 #include "CFSMailCommon.h"
       
    38 #include "CFSMailBox.h"
       
    39 #include "ESMailSettingsPlugin.h"
       
    40 #include "ESMailSettingsPluginUids.hrh"
       
    41 //</cmail>
       
    42 #include <gsfwviewuids.h> // Uids for general settings activation
       
    43 // <cmail> 
       
    44 #include <csxhelp/cmail.hlp.hrh>
       
    45 // </cmail>
       
    46 
       
    47 // LOCAL INCLUDES
       
    48 #include "FreestyleEmailUiUtilities.h"
       
    49 #include "FreestyleEmailUiSettingsListView.h"
       
    50 #include "FreestyleEmailUiSettingsList.h"
       
    51 #include "FreestyleEmailUi.hrh"
       
    52 #include "FreestyleEmailUiSettings.hrh"
       
    53 #include "FreestyleEmailUiConstants.h"
       
    54 #include "FreestyleEmailUiAppui.h"
       
    55 #include "FreestyleEmailUiShortcutBinding.h"
       
    56 #include "FreestyleEmailUiLauncherGridVisualiser.h"
       
    57 
       
    58 
       
    59 // ---------------------------------------------------------------------------
       
    60 // First phase of Symbian two-phase construction. Should not contain any
       
    61 // code that could leave.
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 CFsEmailSettingsListView::CFsEmailSettingsListView( CAlfControlGroup& aControlGroup, 
       
    65         CFreestyleEmailUiAppUi& aAppUi, CFSMailClient& aMailClient  )
       
    66     : CFsEmailUiViewBase( aControlGroup, aAppUi ), iMailClient( aMailClient )
       
    67 	{
       
    68     FUNC_LOG;
       
    69 
       
    70 	iFsEmailSettingsList = NULL;
       
    71 	iMailboxSettings = EFalse;
       
    72 
       
    73 	}
       
    74 
       
    75 // ---------------------------------------------------------------------------
       
    76 // ~CFsEmailSettingsListView
       
    77 // ---------------------------------------------------------------------------
       
    78 //
       
    79 CFsEmailSettingsListView::~CFsEmailSettingsListView()
       
    80 	{
       
    81     FUNC_LOG;
       
    82    	if ( iAsyncCallback )
       
    83 		{
       
    84 		iAsyncCallback->Cancel();
       
    85 		delete iAsyncCallback;
       
    86 		}
       
    87 	}
       
    88 
       
    89 
       
    90 // ---------------------------------------------------------------------------
       
    91 // Symbian two-phase constructor.
       
    92 // This creates an instance then calls the second-phase constructor
       
    93 // without leaving the instance on the cleanup stack.
       
    94 // @return new instance of CFsEmailSettingsListView
       
    95 // ---------------------------------------------------------------------------
       
    96 //
       
    97 CFsEmailSettingsListView* CFsEmailSettingsListView::NewL( 
       
    98 		CFSMailClient& aMailClient,
       
    99 		CFreestyleEmailUiAppUi* aAppUi, 
       
   100 		CAlfControlGroup& aControlGroup )
       
   101 	{
       
   102     FUNC_LOG;
       
   103 
       
   104 	CFsEmailSettingsListView* self = CFsEmailSettingsListView::NewLC( aMailClient, aAppUi, aControlGroup );
       
   105 	CleanupStack::Pop( self );
       
   106 
       
   107 	return self;
       
   108 	}
       
   109 
       
   110 // ---------------------------------------------------------------------------
       
   111 // Symbian two-phase constructor.
       
   112 // This creates an instance, pushes it on the cleanup stack,
       
   113 // then calls the second-phase constructor.
       
   114 // @return new instance of CFsEmailSettingsListView
       
   115 // ---------------------------------------------------------------------------
       
   116 //
       
   117 CFsEmailSettingsListView* CFsEmailSettingsListView::NewLC( 
       
   118 		CFSMailClient& aMailClient,
       
   119 		CFreestyleEmailUiAppUi* aAppUi, 
       
   120 		CAlfControlGroup& aControlGroup )
       
   121 	{
       
   122     FUNC_LOG;
       
   123 
       
   124 	CFsEmailSettingsListView* self = 
       
   125 	    new ( ELeave ) CFsEmailSettingsListView( aControlGroup, *aAppUi, aMailClient );
       
   126 	CleanupStack::PushL( self );
       
   127 	self->ConstructL();
       
   128 
       
   129 	return self;
       
   130 	}
       
   131 
       
   132 
       
   133 /**
       
   134  * Second-phase constructor for view.  
       
   135  * Initialize contents from resource.
       
   136  */ 
       
   137 void CFsEmailSettingsListView::ConstructL()
       
   138 	{
       
   139     FUNC_LOG;
       
   140 
       
   141 	BaseConstructL( R_FS_EMAIL_SETTINGS_LIST_VIEW );
       
   142 
       
   143 	iAsyncCallback = new (ELeave) CAsyncCallBack( CActive::EPriorityStandard );
       
   144 	iAsyncCallback->Set( TCallBack( DisplayCreateQuery, this ) ); 
       
   145 	
       
   146 	}
       
   147 
       
   148 // -----------------------------------------------------------------------------
       
   149 // CFsEmailSettingsListView::DisplayCreateQuery
       
   150 // -----------------------------------------------------------------------------
       
   151 void CFsEmailSettingsListView::StartMailboxAsyncQueryL()
       
   152 	{
       
   153     FUNC_LOG;
       
   154 	if ( iAsyncCallback )
       
   155 		{
       
   156 		iAsyncCallback->CallBack();
       
   157 		}
       
   158 	}
       
   159 
       
   160 
       
   161 // -----------------------------------------------------------------------------
       
   162 // CFsEmailSettingsListView::DisplayCreateQuery
       
   163 // -----------------------------------------------------------------------------
       
   164 TInt CFsEmailSettingsListView::DisplayCreateQuery( TAny* aViewPtr )
       
   165     {
       
   166     FUNC_LOG;
       
   167     CFsEmailSettingsListView* self = static_cast<CFsEmailSettingsListView*>( aViewPtr ); 
       
   168 	TRAPD( err, self->DisplayCreateMailboxNoteIfNeededL() );
       
   169     return err;
       
   170     }
       
   171 
       
   172 // -----------------------------------------------------------------------------
       
   173 // CFsEmailSettingsListView::DisplayCreateQueryL
       
   174 // -----------------------------------------------------------------------------
       
   175 void CFsEmailSettingsListView::DisplayCreateMailboxNoteIfNeededL()
       
   176     {
       
   177     FUNC_LOG;
       
   178     User::LeaveIfNull( iFsEmailSettingsList );
       
   179     iFsEmailSettingsList->DisplayCreateMailboxNoteIfNeededL();
       
   180     }
       
   181 	
       
   182 /**
       
   183  * @return The UID for this view
       
   184  */
       
   185 TUid CFsEmailSettingsListView::Id() const
       
   186 	{
       
   187     FUNC_LOG;
       
   188 	return SettingsViewId;
       
   189 	}
       
   190 
       
   191 /**
       
   192  * Handle a command for this view (override)
       
   193  * @param aCommand command id to be handled
       
   194  */
       
   195 void CFsEmailSettingsListView::HandleCommandL( TInt aCommand )
       
   196 	{
       
   197     FUNC_LOG;
       
   198 	
       
   199 	switch ( aCommand )
       
   200 		{
       
   201 		case EAknSoftkeyBack:
       
   202 			{
       
   203 			if ( iFsEmailSettingsList->Get2ndLevelListIndicator() 
       
   204 			     && !iMailboxSettings )
       
   205 			    {
       
   206 			    // return from sub view
       
   207 			    iFsEmailSettingsList->CreateAccountListL();
       
   208 			    // when returning to mailboxlist set sublistindex to zero to avoid 
       
   209 			    // wrong indexin when creating the sublistviews
       
   210 			    iFsEmailSettingsList->SetSelectedSubListIndex(0);
       
   211 	            SetupStatusPaneL();
       
   212 			    }
       
   213 			else
       
   214 			    {
       
   215 			    // navigate away from settings
       
   216 	            NavigateBackL();
       
   217 			    }
       
   218 			break;
       
   219 			}
       
   220 		case EAknSoftkeyOpen:	
       
   221 		case EFsEmailUiCmdOpen:
       
   222 			{
       
   223 			iFsEmailSettingsList->HandleUserSelectionsL();
       
   224 			SetupStatusPaneL();
       
   225 			break;
       
   226 			}
       
   227 		case EFsEmailUiCmdSettingsAddAccount:
       
   228 			iFsEmailSettingsList->AddAccountL();
       
   229 			break;
       
   230 		case EFsEmailUiCmdSettingsRemoveAccount:
       
   231 			iFsEmailSettingsList->RemoveAccountL();
       
   232 			break;	
       
   233 		case EFsEmailUiCmdHelp:
       
   234 			TFsEmailUiUtility::LaunchHelpL( KFSE_HLP_LAUNCHER_GRID );
       
   235             break;
       
   236 		case EFsEmailUiCmdExit:
       
   237 			AppUi()->HandleCommandL( EEikCmdExit );
       
   238 			break;
       
   239 		case EFsEmailUiCmdGoToTop:
       
   240 		    iFsEmailSettingsList->GoToTop();
       
   241 		    break;
       
   242 		case EFsEmailUiCmdGoToBottom:
       
   243 		    iFsEmailSettingsList->GoToBottom();
       
   244 		    break;
       
   245         case EFsEmailUiCmdPageUp:
       
   246             iFsEmailSettingsList->PageUp();
       
   247             break;
       
   248         case EFsEmailUiCmdPageDown:
       
   249             iFsEmailSettingsList->PageDown();
       
   250             break;
       
   251 		default:
       
   252 			break;
       
   253 		}
       
   254 	}
       
   255 
       
   256 /**
       
   257  *	Handles user actions during activation of the view, 
       
   258  *	such as initializing the content.
       
   259  */
       
   260 // <cmail> Toolbar
       
   261 /*void CFsEmailSettingsListView::DoActivateL(
       
   262         const TVwsViewId& aPrevViewId,
       
   263         TUid aCustomMessageId,
       
   264         const TDesC8& aCustomMessage )*/
       
   265 void CFsEmailSettingsListView::ChildDoActivateL(
       
   266         const TVwsViewId& aPrevViewId,
       
   267         TUid aCustomMessageId,
       
   268         const TDesC8& aCustomMessage )
       
   269 // </cmail> Toolbar
       
   270 	{
       
   271     FUNC_LOG;
       
   272     
       
   273     if ( aCustomMessageId.iUid != KMailSettingsReturnToPrevious &&
       
   274          aCustomMessageId.iUid != KMailSettingsReturnFromPluginSettings )
       
   275         {
       
   276         ViewEntered( aPrevViewId );
       
   277         }
       
   278     
       
   279 	// create view control
       
   280 	if ( iFsEmailSettingsList == NULL )
       
   281 		{
       
   282 		TPckgBuf<CESMailSettingsPlugin::TSubViewActivationData> subViewData;
       
   283 		subViewData.Copy( aCustomMessage );
       
   284 		CESMailSettingsPlugin::TSubViewActivationData subView = subViewData();
       
   285 					
       
   286 		iFsEmailSettingsList = CFsEmailSettingsList::NewL( ClientRect(), NULL, iAppUi, iMailClient, *this );
       
   287 		iFsEmailSettingsList->SetMopParent( this );
       
   288 		AppUi()->AddToStackL( *this, iFsEmailSettingsList );
       
   289 		} // no else
       
   290 
       
   291 	if ( iFsEmailSettingsList )
       
   292 		{
       
   293 		
       
   294 		// Opened from launcher grid
       
   295 		if ( aCustomMessageId == TUid::Uid( KMailSettingsOpenMainList ) )
       
   296 			{
       
   297 			iFsEmailSettingsList->CreateAccountListL();
       
   298 			} // no else
       
   299 
       
   300 		// Opened from S60 general settings
       
   301 		if ( aCustomMessageId == TUid::Uid( KOpenMailSettingsFromGS ) )
       
   302 			{
       
   303 			iFsEmailSettingsList->CreateAccountListL();
       
   304 			} // no else
       
   305 
       
   306 		// Returning from global settings
       
   307 		if ( aCustomMessageId == TUid::Uid( KMailSettingsReturnToPrevious ) )
       
   308 			{
       
   309 			iFsEmailSettingsList->CreateAccountListL();
       
   310 			} // no else
       
   311 				
       
   312 		// open specific mailbox settings directly from mail list
       
   313 		if ( aCustomMessageId == TUid::Uid( KMailSettingsOpenMailboxSettings ) )
       
   314 			{
       
   315 			// save previous view
       
   316 			iMailboxSettings = ETrue;
       
   317 
       
   318 			TMailListActivationData mailboxData;
       
   319 			TPckgBuf<TMailListActivationData> mailboxPkgData( mailboxData );
       
   320 			mailboxPkgData.Copy( aCustomMessage );
       
   321 			mailboxData = mailboxPkgData();
       
   322 
       
   323 			CFSMailBox* mailbox = iFsEmailSettingsList->GetMailBoxByIdL( mailboxData.iMailBoxId.Id() );
       
   324 			if ( mailbox )
       
   325 				{
       
   326 				CleanupStack::PushL( mailbox );
       
   327 				TUid settingsPluginId = mailbox->GetSettingsUid();
       
   328 				iFsEmailSettingsList->SetPluginSettingsUid( settingsPluginId );
       
   329 				iFsEmailSettingsList->SetSelectedAccountInfo( mailbox->GetId() );
       
   330 				CleanupStack::PopAndDestroy( mailbox );
       
   331 				iFsEmailSettingsList->ActivateMailSettingsPluginSubViewL( mailboxData.iRequestRefresh );
       
   332 				}
       
   333 			else // Mailbox fetching failed, create account list instead
       
   334 				{
       
   335 				iFsEmailSettingsList->CreateAccountListL();
       
   336 				}
       
   337 			} // no else
       
   338 
       
   339 		// opening specific plugin caption list outside email ui
       
   340 		if ( aCustomMessageId == TUid::Uid( KMailSettingsOpenPluginSettings ) )
       
   341 			{
       
   342 			CESMailSettingsPlugin::TSubViewActivationData subView;
       
   343 			TPckgBuf<CESMailSettingsPlugin::TSubViewActivationData> SubViewData( subView );
       
   344 			SubViewData.Copy( aCustomMessage );
       
   345 			subView = SubViewData();
       
   346 	
       
   347 			CFSMailBox* mailbox = iFsEmailSettingsList->GetMailBoxByIdL( subView.iAccount.Id() );
       
   348 			if ( mailbox )
       
   349 				{
       
   350 				CleanupStack::PushL( mailbox );
       
   351 				iFsEmailSettingsList->SetSelectedAccountInfo( subView.iAccount );
       
   352 				TUid settingsPluginId = mailbox->GetSettingsUid();
       
   353 				CleanupStack::PopAndDestroy( mailbox );
       
   354 				iFsEmailSettingsList->CreatePluginSubviewListL( settingsPluginId );				
       
   355 				}
       
   356 			else // Mailbox fetching failed, create account list instead
       
   357 				{
       
   358 				iFsEmailSettingsList->CreateAccountListL();
       
   359 				}
       
   360 			} // no else
       
   361 		
       
   362 		// coming from plugin settings
       
   363 		if ( aCustomMessageId == TUid::Uid( KMailSettingsReturnFromPluginSettings ) )
       
   364 			{
       
   365 	    	// Better to refresh launcher grid view because mailbox branding might be changed.
       
   366 			iAppUi.LauncherGrid().SetRefreshNeeded();
       
   367 			CESMailSettingsPlugin::TSubViewActivationData subView;
       
   368 			TPckgBuf<CESMailSettingsPlugin::TSubViewActivationData> SubViewData( subView );
       
   369 			SubViewData.Copy( aCustomMessage );
       
   370 			subView = SubViewData();
       
   371 			
       
   372 			// if subview was selected from list then return to subview list
       
   373 			// otherwise return to account list
       
   374 			if ( subView.iSubviewId > -1 )
       
   375 				{
       
   376 				CFSMailBox* mailbox = iFsEmailSettingsList->GetMailBoxByIdL( subView.iAccount.Id() );
       
   377 				if ( mailbox ) // Malbox pointer can be null
       
   378 					{
       
   379 					CleanupStack::PushL( mailbox );
       
   380 					iFsEmailSettingsList->SetSelectedAccountInfo( subView.iAccount );
       
   381 					iFsEmailSettingsList->SetSelectedSubListIndex( subView.iSubviewId );
       
   382 					
       
   383 					TUid settingsPluginId = mailbox->GetSettingsUid();
       
   384 					CleanupStack::PopAndDestroy( mailbox );
       
   385 					if(subView.iPimAccount)
       
   386 						{
       
   387 						iFsEmailSettingsList->CreatePluginPIMListL( settingsPluginId );
       
   388 						iFsEmailSettingsList->SetPimListActivation(ETrue);
       
   389 						}
       
   390 					else
       
   391 						{
       
   392 						iFsEmailSettingsList->CreatePluginSubviewListL( settingsPluginId );
       
   393 						}					
       
   394 					}
       
   395 				// If mailbox id was null after returning from plugin settings
       
   396 				// the only thing left to do is create account list once again
       
   397 				// instead of goinf to subview.
       
   398 				else 
       
   399 	 				{
       
   400 					iFsEmailSettingsList->CreateAccountListL();				
       
   401 					}
       
   402 				}
       
   403 			else
       
   404 				{
       
   405 				iFsEmailSettingsList->CreateAccountListL();
       
   406 				}
       
   407 			} // no else
       
   408 
       
   409 		if ( aCustomMessageId == TUid::Null() )
       
   410 			{
       
   411 			iFsEmailSettingsList->CreateAccountListL();
       
   412 			}
       
   413 		}
       
   414 	// setup status pane title
       
   415     SetupStatusPaneL();
       
   416 	
       
   417 	// Make a deferred call to show the "create mailbox" query if we opened the main settings list
       
   418 	if ( aCustomMessageId.iUid == KMailSettingsOpenMainList ||
       
   419 	        aCustomMessageId.iUid == KOpenMailSettingsFromGS )
       
   420 	    {
       
   421 	    StartMailboxAsyncQueryL();
       
   422 	    }
       
   423 	iAppUi.HideTitlePaneConnectionStatus();
       
   424 	}
       
   425 
       
   426 // ---------------------------------------------------------------------------
       
   427 // ChildDoDeactivate
       
   428 // From CFsEmailUiViewBase
       
   429 // ---------------------------------------------------------------------------
       
   430 //
       
   431 void CFsEmailSettingsListView::ChildDoDeactivate()
       
   432 	{
       
   433     FUNC_LOG;
       
   434 
       
   435 	if ( iFsEmailSettingsList != NULL )
       
   436 		{
       
   437 		AppUi()->RemoveFromViewStack( *this, iFsEmailSettingsList );
       
   438 		delete iFsEmailSettingsList;
       
   439 		iFsEmailSettingsList = NULL;
       
   440 		}
       
   441 
       
   442 	}
       
   443 
       
   444 // ---------------------------------------------------------------------------
       
   445 // SetSelectedMainListIndex
       
   446 // ---------------------------------------------------------------------------
       
   447 //
       
   448 void CFsEmailSettingsListView::SetSelectedMainListIndex( TInt aIndex )
       
   449 	{
       
   450     FUNC_LOG;
       
   451 	iContainerListIndex = aIndex;
       
   452 	}
       
   453 
       
   454 // ---------------------------------------------------------------------------
       
   455 // GetSelectedMainListIndex
       
   456 // ---------------------------------------------------------------------------
       
   457 //
       
   458 TInt CFsEmailSettingsListView::GetSelectedMainListIndex() const
       
   459 	{
       
   460     FUNC_LOG;
       
   461 	return iContainerListIndex;
       
   462 	}
       
   463 
       
   464 // ---------------------------------------------------------------------------
       
   465 // DynInitMenuPaneL
       
   466 // From aknview
       
   467 // ---------------------------------------------------------------------------
       
   468 //
       
   469 void CFsEmailSettingsListView::DynInitMenuPaneL( 
       
   470 		TInt aResourceId, 
       
   471 		CEikMenuPane* aMenuPane )
       
   472 	{
       
   473     FUNC_LOG;
       
   474 
       
   475 	if ( iFsEmailSettingsList && aResourceId == R_FS_EMAIL_SETTINGS_LIST_MENU_PANE )
       
   476 		{
       
   477 		
       
   478 	    if ( FeatureManager::FeatureSupported( KFeatureIdFfCmailIntegration ) )
       
   479 		   {
       
   480 		   // remove help support in pf5250
       
   481 		   aMenuPane->SetItemDimmed( EFsEmailUiCmdHelp, ETrue);      
       
   482 		   }
       
   483 	    		
       
   484         TInt lastIndex = iFsEmailSettingsList->Count()-1;
       
   485 		// Dimm add/remove in 2nd level
       
   486         if ( iFsEmailSettingsList->Get2ndLevelListIndicator() )
       
   487             {
       
   488             aMenuPane->SetItemDimmed(EFsEmailUiCmdSettingsAddAccount, ETrue );
       
   489             aMenuPane->SetItemDimmed( EFsEmailUiCmdSettingsRemoveAccount, ETrue );
       
   490             }
       
   491 		// Else dimm remove mailbox if no mailbox selected 
       
   492 		else if ( iFsEmailSettingsList->ListBox()->CurrentItemIndex() == 0
       
   493 			|| ( iFsEmailSettingsList->ListBox()->CurrentItemIndex() == lastIndex
       
   494 			&& iFsEmailSettingsList->PIMSyncItemVisible())  )
       
   495 			{
       
   496 			aMenuPane->SetItemDimmed( EFsEmailUiCmdSettingsRemoveAccount, ETrue );
       
   497 			}
       
   498 		}
       
   499 
       
   500 	// Add shortcut hints
       
   501 	iAppUi.ShortcutBinding().AppendShortcutHintsL( *aMenuPane, 
       
   502 	                             CFSEmailUiShortcutBinding::EContextSettings );	
       
   503 	}
       
   504 
       
   505 /**
       
   506  * SetupStatusPaneL
       
   507  * 
       
   508  * 
       
   509  */
       
   510 void CFsEmailSettingsListView::SetupStatusPaneL()
       
   511 	{
       
   512     FUNC_LOG;
       
   513 
       
   514 	// reset the context pane
       
   515 	TUid contextPaneUid = TUid::Uid( EEikStatusPaneUidContext );
       
   516 	CEikStatusPaneBase::TPaneCapabilities subPaneContext = 
       
   517 		StatusPane()->PaneCapabilities( contextPaneUid );
       
   518 	if ( subPaneContext.IsPresent() && subPaneContext.IsAppOwned() )
       
   519 		{
       
   520 		CAknContextPane* context = static_cast< CAknContextPane* > ( 
       
   521 			StatusPane()->ControlL( contextPaneUid ) );
       
   522 		context->SetPictureToDefaultL();
       
   523 		}
       
   524 	
       
   525 	// setup the title pane
       
   526 	HBufC* text = iFsEmailSettingsList->CreateTitlePaneTextLC();
       
   527 	iAppUi.SetTitlePaneTextL( *text );
       
   528 	CleanupStack::PopAndDestroy( text );
       
   529 
       
   530 	}
       
   531 
       
   532 /** 
       
   533  * Sets application default title when leaving this view
       
   534  */
       
   535 void CFsEmailSettingsListView::CleanupStatusPaneL()
       
   536 	{
       
   537     FUNC_LOG;
       
   538     iAppUi.ResetTitlePaneTextL();
       
   539 	}
       
   540 
       
   541 
       
   542 /** 
       
   543  * Handle status pane size change for this view (override)
       
   544  */
       
   545 void CFsEmailSettingsListView::HandleStatusPaneSizeChange()
       
   546 	{
       
   547     FUNC_LOG;
       
   548 	if ( IsForeground() )
       
   549 		{
       
   550 		CAknView::HandleStatusPaneSizeChange();
       
   551 		
       
   552 		// this may fail, but we're not able to propagate exceptions here
       
   553 		TInt result;
       
   554 		TRAP( result, SetupStatusPaneL() ); 
       
   555 		}
       
   556 	}
       
   557 
       
   558