omaprovisioning/provisioning/ProvisioningEngine/Src/CWPAdapterManager.cpp
branchRCL_3
changeset 25 b183ec05bd8c
parent 16 915074efc433
child 26 19bba8228ff0
equal deleted inserted replaced
24:13d7c31c74e0 25:b183ec05bd8c
    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 #include <mmf/common/mmfcontrollerpluginresolver.h>
    28 
    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);
       
   243     a->GetSavingInfoL( index, savingInfo );
   242     a->GetSavingInfoL( index, savingInfo );
   244 
   243 
   245     // If the adapter had something to tell to the other adapters...
   244     // If the adapter had something to tell to the other adapters...
   246     if( ( savingInfo.Count() == 3 ) && ( savingInfo[ 1 ]->Length() > 0) )
   245     if( ( savingInfo.Count() == 3 ) && ( savingInfo[ 1 ]->Length() > 0) )
   247         {
   246         {
   277                     }// if
   276                     }// if
   278                 }// for
   277                 }// for
   279 
   278 
   280             }// if
   279             }// if
   281 	    }// if
   280 	    }// if
   282 		
   281 	savingInfo.ResetAndDestroy();
   283 	CleanupStack :: PopAndDestroy(1); //savingInfo
   282     savingInfo.Close();
   284     
   283     
   285     // Tell the adapters that all the settings have been now saved.
   284     // Tell the adapters that all the settings have been now saved.
   286     TInt quantityOfAdapter( iAdapters->Count() );
   285     TInt quantityOfAdapter( iAdapters->Count() );
   287     CWPAdapter* tmpAdapter = NULL;
   286     CWPAdapter* tmpAdapter = NULL;
   288     if (  aItem == ( iItemCount - 1 ))
   287     if (  aItem == ( iItemCount - 1 ))