equal
deleted
inserted
replaced
23 #include "CWPRoot.h" |
23 #include "CWPRoot.h" |
24 #include "CWPEngine.pan" |
24 #include "CWPEngine.pan" |
25 #include "MWPContextManager.h" |
25 #include "MWPContextManager.h" |
26 #include "MWPContextExtension.h" |
26 #include "MWPContextExtension.h" |
27 #include "ProvisioningDebug.h" |
27 #include "ProvisioningDebug.h" |
28 |
28 #include <mmf\common\mmfcontrollerpluginresolver.h> |
29 // ============================ MEMBER FUNCTIONS =============================== |
29 // ============================ MEMBER FUNCTIONS =============================== |
30 |
30 |
31 // ----------------------------------------------------------------------------- |
31 // ----------------------------------------------------------------------------- |
32 // CWPAdapterManager::NewL |
32 // CWPAdapterManager::NewL |
33 // Two-phased constructor. |
33 // Two-phased constructor. |
237 // Code block based on the APPREF & TO-APPREF parameter handling starts here. |
237 // Code block based on the APPREF & TO-APPREF parameter handling starts here. |
238 |
238 |
239 // Place [0] is reserved for APPID parameter, [1] for APPREF parameter |
239 // Place [0] is reserved for APPID parameter, [1] for APPREF parameter |
240 // and [2] for storage id i.e. id that identifies the saved settings in its storage. |
240 // and [2] for storage id i.e. id that identifies the saved settings in its storage. |
241 RPointerArray< HBufC8 > savingInfo; |
241 RPointerArray< HBufC8 > savingInfo; |
|
242 CleanupResetAndDestroy<RPointerArray<HBufC8> > :: PushL(savingInfo); |
242 a->GetSavingInfoL( index, savingInfo ); |
243 a->GetSavingInfoL( index, savingInfo ); |
243 |
244 |
244 // If the adapter had something to tell to the other adapters... |
245 // If the adapter had something to tell to the other adapters... |
245 if( ( savingInfo.Count() == 3 ) && ( savingInfo[ 1 ]->Length() > 0) ) |
246 if( ( savingInfo.Count() == 3 ) && ( savingInfo[ 1 ]->Length() > 0) ) |
246 { |
247 { |
276 }// if |
277 }// if |
277 }// for |
278 }// for |
278 |
279 |
279 }// if |
280 }// if |
280 }// if |
281 }// if |
281 savingInfo.ResetAndDestroy(); |
282 |
282 savingInfo.Close(); |
283 CleanupStack :: PopAndDestroy(1); //savingInfo |
283 |
284 |
284 // Tell the adapters that all the settings have been now saved. |
285 // Tell the adapters that all the settings have been now saved. |
285 TInt quantityOfAdapter( iAdapters->Count() ); |
286 TInt quantityOfAdapter( iAdapters->Count() ); |
286 CWPAdapter* tmpAdapter = NULL; |
287 CWPAdapter* tmpAdapter = NULL; |
287 if ( aItem == ( iItemCount - 1 )) |
288 if ( aItem == ( iItemCount - 1 )) |