13 * |
13 * |
14 * Description: Implementation of detailsview plugin menu handler |
14 * Description: Implementation of detailsview plugin menu handler |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #include "cvimpstdetailsviewmenuhandler.h" |
19 #include "cvimpstdetailsviewmenuhandler.h" |
20 |
20 |
21 #include "cvimpstdetailsviewlistboxmodel.h" |
21 #include "cvimpstdetailsviewlistboxmodel.h" |
22 #include "cvimpstdetailsviewcontainer.h" |
22 #include "cvimpstdetailsviewcontainer.h" |
23 #include "cvimpstdetailsviewplugin.h" |
23 #include "cvimpstdetailsviewplugin.h" |
82 // --------------------------------------------------------------------------- |
82 // --------------------------------------------------------------------------- |
83 // |
83 // |
84 void CVIMPSTDetailsViewMenuHandler::DynInitMenuPaneL(TInt aResourceId, |
84 void CVIMPSTDetailsViewMenuHandler::DynInitMenuPaneL(TInt aResourceId, |
85 CEikMenuPane* aMenuPane ) |
85 CEikMenuPane* aMenuPane ) |
86 { |
86 { |
87 if (iAiwServiceHandler && iAiwServiceHandler->HandleSubmenuL(*aMenuPane)) |
87 if (iAiwServiceHandler) |
88 { |
88 { |
89 return; |
89 if ( iAiwServiceHandler->HandleSubmenuL(*aMenuPane)) |
90 } |
90 { |
|
91 return; |
|
92 } |
|
93 } |
91 switch (aResourceId) |
94 switch (aResourceId) |
92 { |
95 { |
93 case R_VIMPSTDETAILSVIEW_MENUPANE: |
96 case R_VIMPSTDETAILSVIEW_MENUPANE: |
94 { |
97 { |
95 TInt pos = 0; |
98 TInt pos = 0; |
96 if ( iAiwServiceHandler->IsAiwMenu(aResourceId)) |
99 if ( iAiwServiceHandler ) |
97 { |
100 { |
98 iAiwServiceHandler->InitializeMenuPaneL( *aMenuPane, |
101 if ( iAiwServiceHandler->IsAiwMenu(aResourceId)) |
99 aResourceId, ECCAppDetailsViewAiwBaseCmd, |
102 { |
100 iAiwServiceHandler->InParamListL() ); |
103 iAiwServiceHandler->InitializeMenuPaneL( *aMenuPane, |
101 } |
104 aResourceId, ECCAppDetailsViewAiwBaseCmd, |
|
105 iAiwServiceHandler->InParamListL() ); |
|
106 } |
|
107 } |
102 if ( aMenuPane->MenuItemExists(ECCAppDetailsViewSetTopContactCmd, pos) ) |
108 if ( aMenuPane->MenuItemExists(ECCAppDetailsViewSetTopContactCmd, pos) ) |
103 { |
109 { |
104 aMenuPane->SetItemDimmed(ECCAppDetailsViewSetTopContactCmd, ETrue ); |
110 aMenuPane->SetItemDimmed(ECCAppDetailsViewSetTopContactCmd, ETrue ); |
105 } |
111 } |
106 if( aMenuPane->MenuItemExists(ECCAppDetailsViewRemoveTopContactCmd, pos) ) |
112 if( aMenuPane->MenuItemExists(ECCAppDetailsViewRemoveTopContactCmd, pos) ) |