equal
deleted
inserted
replaced
27 |
27 |
28 #include "cimcvmenuextensionmanager.h" |
28 #include "cimcvmenuextensionmanager.h" |
29 #include "cimcvcommandinfo.h" |
29 #include "cimcvcommandinfo.h" |
30 |
30 |
31 #include "cvmenucommandinfo.hrh" |
31 #include "cvmenucommandinfo.hrh" |
|
32 #include "vimpstcustomcleanupapi.h" |
32 |
33 |
33 |
34 |
34 // ================= MEMBER FUNCTIONS ======================= |
35 // ================= MEMBER FUNCTIONS ======================= |
35 |
36 |
36 // --------------------------------------------------------------------------- |
37 // --------------------------------------------------------------------------- |
101 // |
102 // |
102 void CIMCVMenuExtensionManager::LoadPluginL( ) |
103 void CIMCVMenuExtensionManager::LoadPluginL( ) |
103 { |
104 { |
104 // plugininfo array, Owned |
105 // plugininfo array, Owned |
105 RImplInfoPtrArray pluginInfo; |
106 RImplInfoPtrArray pluginInfo; |
|
107 CustomCleanupResetAndDestroyPushL(pluginInfo); |
106 iPlugins.ResetAndDestroy(); |
108 iPlugins.ResetAndDestroy(); |
107 REComSession::ListImplementationsL( KMenuCustomisationInterfaceUid,pluginInfo ); |
109 REComSession::ListImplementationsL( KMenuCustomisationInterfaceUid,pluginInfo ); |
108 TInt pluginCount = pluginInfo.Count(); |
110 TInt pluginCount = pluginInfo.Count(); |
109 |
111 |
110 for ( TInt pluginIndex(0); pluginIndex < pluginCount; ++pluginIndex ) |
112 for ( TInt pluginIndex(0); pluginIndex < pluginCount; ++pluginIndex ) |
137 |
139 |
138 CleanupStack::Pop( plugin ); |
140 CleanupStack::Pop( plugin ); |
139 } |
141 } |
140 |
142 |
141 } |
143 } |
142 pluginInfo.ResetAndDestroy(); |
144 |
143 pluginInfo.Close(); |
145 CleanupStack::PopAndDestroy(); |
|
146 |
144 } |
147 } |
145 |
148 |
146 |
149 |
147 // ---------------------------------------------------------------------------- |
150 // ---------------------------------------------------------------------------- |
148 // CIMCVMenuExtensionManager::OfferMenuPaneToPluginsL |
151 // CIMCVMenuExtensionManager::OfferMenuPaneToPluginsL |