uiservicetab/vimpstui/src/cvimpstuiblockview.cpp
branchRCL_3
changeset 14 9fdee5e1da30
parent 11 bef90b82da71
child 20 6b620215f837
equal deleted inserted replaced
13:796276a1bdcc 14:9fdee5e1da30
    38 #include <eikmenup.h>
    38 #include <eikmenup.h>
    39 #include <AiwCommon.hrh>
    39 #include <AiwCommon.hrh>
    40 //resource
    40 //resource
    41 #include <vimpstuires.rsg>
    41 #include <vimpstuires.rsg>
    42 #include <ExtensionManagerRes.rsg>
    42 #include <ExtensionManagerRes.rsg>
       
    43 #include "uiservicetabtracer.h"
    43 
    44 
    44 using namespace Phonebook2;
    45 using namespace Phonebook2;
    45 
    46 
    46 // ================= MEMBER FUNCTIONS =======================
    47 // ================= MEMBER FUNCTIONS =======================
    47 
    48 
    70 // CVIMPSTUiBlockView::ConstructL
    71 // CVIMPSTUiBlockView::ConstructL
    71 // --------------------------------------------------------------------------
    72 // --------------------------------------------------------------------------
    72 //
    73 //
    73 void CVIMPSTUiBlockView::ConstructL()
    74 void CVIMPSTUiBlockView::ConstructL()
    74     {
    75     {
       
    76 	TRACER_AUTO;
    75     ViewBaseConstructL( KIMCONTACTSEXTNIMPLEMENTATIONUID, iBlockViewId );
    77     ViewBaseConstructL( KIMCONTACTSEXTNIMPLEMENTATIONUID, iBlockViewId );
    76 
    78 
    77     iPresenceSubService = iEngine.GetPreseceSubService();
    79     iPresenceSubService = iEngine.GetPreseceSubService();
    78     if(iPresenceSubService)
    80     if(iPresenceSubService)
    79         {
    81         {
    93 			    CPbk2UIExtensionView& aView,
    95 			    CPbk2UIExtensionView& aView,
    94 			    CVIMPSTUIExtensionService& aServiceData,
    96 			    CVIMPSTUIExtensionService& aServiceData,
    95 			    MVIMPSTEngine& aEngine ,
    97 			    MVIMPSTEngine& aEngine ,
    96 			    MVIMPSTCmdHandler& aCommandHandler)
    98 			    MVIMPSTCmdHandler& aCommandHandler)
    97     {
    99     {
       
   100 	TRACER_AUTO;
    98     CVIMPSTUiBlockView* self = new(ELeave) CVIMPSTUiBlockView( aMapper, 
   101     CVIMPSTUiBlockView* self = new(ELeave) CVIMPSTUiBlockView( aMapper, 
    99             aContactManager,
   102             aContactManager,
   100             aBlockViewId,
   103             aBlockViewId,
   101             aView, 
   104             aView, 
   102             aServiceData,
   105             aServiceData,
   125 // This class handles all commands from menu
   128 // This class handles all commands from menu
   126 // ---------------------------------------------------------
   129 // ---------------------------------------------------------
   127 //
   130 //
   128 void CVIMPSTUiBlockView::HandleCommandL( TInt aCommand )
   131 void CVIMPSTUiBlockView::HandleCommandL( TInt aCommand )
   129     {
   132     {
   130 	
   133 	TRACER_AUTO;
   131    	switch ( aCommand ) 
   134    	switch ( aCommand ) 
   132 		{
   135 		{
   133 		//Next two commands have same function
   136 		//Next two commands have same function
   134 		case EAknSoftkeyBack:
   137 		case EAknSoftkeyBack:
   135 			{
   138 			{
   182 // ---------------------------------------------------------
   185 // ---------------------------------------------------------
   183 //
   186 //
   184 void CVIMPSTUiBlockView::DynInitMenuPaneL( TInt aResourceId,
   187 void CVIMPSTUiBlockView::DynInitMenuPaneL( TInt aResourceId,
   185                                      CEikMenuPane* aMenuPane )
   188                                      CEikMenuPane* aMenuPane )
   186     {
   189     {
       
   190 	TRACER_AUTO;
   187     //using the existing menu resource as it contains unblock item
   191     //using the existing menu resource as it contains unblock item
   188     if( aResourceId == R_EXTENSION_MANAGER_MENU)
   192     if( aResourceId == R_EXTENSION_MANAGER_MENU)
   189         {
   193         {
   190         //add search view menu items 
   194         //add search view menu items 
   191         aMenuPane->AddMenuItemsL( R_SERVTAB_TABBED_VIEW_MENU ); 
   195         aMenuPane->AddMenuItemsL( R_SERVTAB_TABBED_VIEW_MENU ); 
   217 //
   221 //
   218 void CVIMPSTUiBlockView::DoActivateViewL( const TVwsViewId& aPrevViewId,
   222 void CVIMPSTUiBlockView::DoActivateViewL( const TVwsViewId& aPrevViewId,
   219         									TUid /*aCustomMessageId*/, 
   223         									TUid /*aCustomMessageId*/, 
   220         									const TDesC8&  /*aCustomMessage*/ )
   224         									const TDesC8&  /*aCustomMessage*/ )
   221     {
   225     {
   222  
   226 	TRACER_AUTO;
   223     HBufC* titleText = StringLoader::LoadLC( R_QTN_SERVTAB_TITLE_BLOCKEDLIST );
   227     HBufC* titleText = StringLoader::LoadLC( R_QTN_SERVTAB_TITLE_BLOCKEDLIST );
   224     
   228     
   225     //to set the icon ( context pane image) as in tabbed view
   229     //to set the icon ( context pane image) as in tabbed view
   226     MPbk2ViewActivationTransaction* viewActivationTransaction =
   230     MPbk2ViewActivationTransaction* viewActivationTransaction =
   227         Pbk2AppUi()->Pbk2ViewExplorer()->HandleViewActivationLC(
   231         Pbk2AppUi()->Pbk2ViewExplorer()->HandleViewActivationLC(
   284 // CVIMPSTUiBlockView::UpdateNaviPaneTextL()
   288 // CVIMPSTUiBlockView::UpdateNaviPaneTextL()
   285 // ---------------------------------------------------------
   289 // ---------------------------------------------------------
   286 //
   290 //
   287 void CVIMPSTUiBlockView::UpdateNaviPaneTextL( )
   291 void CVIMPSTUiBlockView::UpdateNaviPaneTextL( )
   288 	{
   292 	{
       
   293 	TRACER_AUTO;
   289 	// Change the navigation pane from tabs to text label    
   294 	// Change the navigation pane from tabs to text label    
   290     CEikStatusPane* sp = CEikonEnv::Static()->AppUiFactory()->StatusPane();
   295     CEikStatusPane* sp = CEikonEnv::Static()->AppUiFactory()->StatusPane();
   291     CAknNavigationControlContainer* np =
   296     CAknNavigationControlContainer* np =
   292     						static_cast<CAknNavigationControlContainer*>(
   297     						static_cast<CAknNavigationControlContainer*>(
   293     									sp->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ) );
   298     									sp->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ) );