application/src/PodcastSettingsView.cpp
branchnewlist
changeset 347 b8d687bb7ca1
parent 164 000f9fc147b2
child 348 bd7f3de17443
equal deleted inserted replaced
346:a0eb6aaed052 347:b8d687bb7ca1
    22 #include <aknlists.h>
    22 #include <aknlists.h>
    23 #include <aknsettingitemlist.h>
    23 #include <aknsettingitemlist.h>
    24 #include <aknnavide.h> 
    24 #include <aknnavide.h> 
    25 #include <podcast.rsg>
    25 #include <podcast.rsg>
    26 #include "SettingsEngine.h"
    26 #include "SettingsEngine.h"
       
    27 #include <akntitle.h>
    27 
    28 
    28 #include <akncommondialogsdynmem.h> 
    29 #include <akncommondialogsdynmem.h> 
    29 #include <pathinfo.h>
    30 #include <pathinfo.h>
    30 #include <aknquerydialog.h>
    31 #include <aknquerydialog.h>
    31 
    32 
   485 	iListbox->ActivateL();   
   486 	iListbox->ActivateL();   
   486 	
   487 	
   487 	DP("Creating navipane");
   488 	DP("Creating navipane");
   488 	iNaviPane =( CAknNavigationControlContainer * ) StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) );
   489 	iNaviPane =( CAknNavigationControlContainer * ) StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) );
   489 		
   490 		
   490 	HBufC *titleBuffer = iEikonEnv->AllocReadResourceL(R_SETTINGS_TITLE);
   491 	CAknTitlePane* titlePane = static_cast<CAknTitlePane*>
   491 	iNaviDecorator  = iNaviPane->CreateNavigationLabelL(*titleBuffer);
   492 			  ( StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) );
   492 	delete titleBuffer;
   493 		 
   493 
   494 	HBufC *titleBuffer = iEikonEnv->AllocReadResourceLC(R_SETTINGS_TITLE);
       
   495 	titlePane->SetTextL(*titleBuffer);
       
   496 	CleanupStack::PopAndDestroy(titleBuffer);
       
   497 	
   494 	DP("Updating listbox");
   498 	DP("Updating listbox");
   495 	AppUi()->AddToStackL(*this, iListbox);
   499 	AppUi()->AddToStackL(*this, iListbox);
   496 	iListbox->UpdateSettingVisibility();
   500 	iListbox->UpdateSettingVisibility();
   497 	iListbox->MakeVisible(ETrue);
   501 	iListbox->MakeVisible(ETrue);
   498 	iListbox->DrawNow();
   502 	iListbox->DrawNow();
   499 	iListbox->SetFocus(ETrue);
   503 	iListbox->SetFocus(ETrue);
   500 	
   504 	
   501 	if(iNaviDecorator && iNaviPane)
   505 	if(iNaviDecorator && iNaviPane)
   502 		{
   506 		{
   503 		iNaviPane->PushL(*iNaviDecorator);
   507 		iNaviPane->PushL(*iNaviDecorator);
   504 		}
   508 	}
   505 
   509 
       
   510 	((CPodcastAppUi*)AppUi())->SetTabsDimmed(ETrue);
   506 	DP("CPodcastSettingsView::DoActivateL END");
   511 	DP("CPodcastSettingsView::DoActivateL END");
   507 }
   512 }
   508 
   513 
   509 void CPodcastSettingsView::DoDeactivate()
   514 void CPodcastSettingsView::DoDeactivate()
   510 	{
   515 	{
   520 		{
   525 		{
   521 		iNaviPane->Pop(iNaviDecorator);
   526 		iNaviPane->Pop(iNaviDecorator);
   522 		delete iNaviDecorator;
   527 		delete iNaviDecorator;
   523 		iNaviDecorator = NULL;
   528 		iNaviDecorator = NULL;
   524 		}
   529 		}
       
   530 	
       
   531 	((CPodcastAppUi*)AppUi())->SetTabsDimmed(EFalse);
   525 	DP("CPodcastSettingsView::DoDeactivate END");
   532 	DP("CPodcastSettingsView::DoDeactivate END");
   526 	}
   533 	}
   527 
   534 
   528 /** 
   535 /** 
   529 * Command handling function intended for overriding by sub classes. 
   536 * Command handling function intended for overriding by sub classes.