bearermanagement/mpm/src/mpmcommsdataccess.cpp
changeset 47 cb7afde124a3
parent 46 95d45f234cf3
child 61 8b0c979bbe8c
equal deleted inserted replaced
46:95d45f234cf3 47:cb7afde124a3
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2007-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".
  2151     CleanupStack::PopAndDestroy( snapAPr );
  2151     CleanupStack::PopAndDestroy( snapAPr );
  2152     return ret;
  2152     return ret;
  2153     }
  2153     }
  2154 
  2154 
  2155 // -----------------------------------------------------------------------------
  2155 // -----------------------------------------------------------------------------
       
  2156 // CMPMCommsDatAccess::IsIntranetSnapL
       
  2157 // -----------------------------------------------------------------------------
       
  2158 //
       
  2159 TBool CMPMCommsDatAccess::IsIntranetSnapL( TUint32 aSnapId )
       
  2160     {
       
  2161     MPMLOGSTRING( "CMPMCommsDatAccess::IsIntranetSnapL" )
       
  2162 
       
  2163     RCmManager rCmManager;
       
  2164     rCmManager.OpenLC();
       
  2165 
       
  2166     RCmDestination dest = rCmManager.DestinationL( aSnapId );
       
  2167     CleanupClosePushL(dest);
       
  2168     TInt snapMetadata = dest.MetadataL( CMManager::ESnapMetadataPurpose );
       
  2169     CleanupStack::PopAndDestroy( &dest );
       
  2170     CleanupStack::PopAndDestroy( &rCmManager );
       
  2171     
       
  2172     if ( snapMetadata == CMManager::ESnapPurposeIntranet )
       
  2173         {
       
  2174         return ETrue;
       
  2175         }
       
  2176     
       
  2177     return EFalse;            
       
  2178     }
       
  2179 
       
  2180 // -----------------------------------------------------------------------------
  2156 // CMPMCommsDatAccess::GetBearerTypeL
  2181 // CMPMCommsDatAccess::GetBearerTypeL
  2157 // -----------------------------------------------------------------------------
  2182 // -----------------------------------------------------------------------------
  2158 //
  2183 //
  2159 TMPMBearerType CMPMCommsDatAccess::GetBearerTypeL( TUint32 aIapId )
  2184 TMPMBearerType CMPMCommsDatAccess::GetBearerTypeL( TUint32 aIapId )
  2160     {
  2185     {