voipplugins/voipadapters/cpvoipadapter/src/CWPVoIPAdapter.cpp
branchRCL_3
changeset 15 43658d24f35d
parent 12 876a3df1f464
child 20 65a3ef1d5bd0
equal deleted inserted replaced
14:be41ab7b952f 15:43658d24f35d
     1 /*
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    33 #include <cmconnectionmethoddef.h>
    33 #include <cmconnectionmethoddef.h>
    34 #include <crcseprofileentry.h>
    34 #include <crcseprofileentry.h>
    35 #include <crcseprofileregistry.h>
    35 #include <crcseprofileregistry.h>
    36 #include <crcseaudiocodecentry.h>
    36 #include <crcseaudiocodecentry.h>
    37 #include <crcseaudiocodecregistry.h>
    37 #include <crcseaudiocodecregistry.h>
       
    38 #include <mmf/common/mmfcontrollerpluginresolver.h>
    38 
    39 
    39 #include "CWPVoIPAdapter.h"
    40 #include "CWPVoIPAdapter.h"
    40 #include "CWPVoIPItem.h"
    41 #include "CWPVoIPItem.h"
    41 
    42 
    42 // The following four includes are because of SIP User Agent Header.
    43 // The following four includes are because of SIP User Agent Header.
   409 // ---------------------------------------------------------------------------
   410 // ---------------------------------------------------------------------------
   410 //
   411 //
   411 void CWPVoIPAdapter::GetSavingInfoL( TInt aIndex, 
   412 void CWPVoIPAdapter::GetSavingInfoL( TInt aIndex, 
   412     RPointerArray<HBufC8>& aSavingInfo )
   413     RPointerArray<HBufC8>& aSavingInfo )
   413     {
   414     {
       
   415     CleanupResetAndDestroyPushL( aSavingInfo );
       
   416     
   414     // APPID into place [0].
   417     // APPID into place [0].
   415     aSavingInfo.AppendL( KVoIPAppID8().AllocL() );
   418     HBufC8* temp = KVoIPAppID8().AllocLC();
       
   419     aSavingInfo.AppendL( temp );
       
   420     CleanupStack::Pop();
       
   421     
   416     // APPREF into place [1].
   422     // APPREF into place [1].
   417     aSavingInfo.AppendL( iDatas[aIndex]->AppRef()->AllocL() );
   423     temp = iDatas[aIndex]->AppRef()->AllocLC();
       
   424     aSavingInfo.AppendL( temp );
       
   425     CleanupStack::Pop();
       
   426     
   418     // Profile id into place [2].
   427     // Profile id into place [2].
   419     aSavingInfo.AppendL( iDatas[aIndex]->SaveData().AllocL() );
   428     temp = iDatas[aIndex]->SaveData().AllocLC();
       
   429     aSavingInfo.AppendL( temp );
       
   430     CleanupStack::Pop();
       
   431     
       
   432     CleanupStack::Pop( &aSavingInfo );
   420     }
   433     }
   421 
   434 
   422 // ---------------------------------------------------------------------------
   435 // ---------------------------------------------------------------------------
   423 // CWPVoIPAdapter::VisitL
   436 // CWPVoIPAdapter::VisitL
   424 // ---------------------------------------------------------------------------
   437 // ---------------------------------------------------------------------------