commsconfig/cscengine/src/cscengcchhandler.cpp
branchRCL_3
changeset 33 2989b291cac7
parent 28 d38647835c2e
equal deleted inserted replaced
31:5886d40bb3de 33:2989b291cac7
     1 /*
     1 /*
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2007-2007 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".
   138 // ---------------------------------------------------------------------------
   138 // ---------------------------------------------------------------------------
   139 //
   139 //
   140 EXPORT_C void CCSCEngCCHHandler::SupportedSubServicesL( 
   140 EXPORT_C void CCSCEngCCHHandler::SupportedSubServicesL( 
   141     TInt aServiceId, TSupportedSubServices& aSupSubServices )
   141     TInt aServiceId, TSupportedSubServices& aSupSubServices )
   142     {
   142     {
   143     // Create new cch client for access the latest service info data.
   143     CCchService* service = 
   144     CCchService* service = 
   144                iCchClientApi->GetService( aServiceId );
   145         CCch::NewLC()->GetService( aServiceId );
   145         
   146 
       
   147     TBool supported( EFalse );
   146     TBool supported( EFalse );
   148     
   147     
   149     if ( service )
   148     if ( service )
   150         {
   149         {
   151         service->IsSupported( ECCHVoIPSub, supported );
   150         service->IsSupported( ECCHVoIPSub, supported );
   158         aSupSubServices.iIm = supported;
   157         aSupSubServices.iIm = supported;
   159         
   158         
   160         service->IsSupported( ECCHVMBxSub, supported );
   159         service->IsSupported( ECCHVMBxSub, supported );
   161         aSupSubServices.iVmbx = supported;
   160         aSupSubServices.iVmbx = supported;
   162         }
   161         }
   163     
   162         
   164     CleanupStack::PopAndDestroy(); // cch
       
   165     
       
   166     CSCENGDEBUG2( 
   163     CSCENGDEBUG2( 
   167             "CCSCEngCCHHandler::SupportedSubServicesL VoIP=%d", 
   164             "CCSCEngCCHHandler::SupportedSubServicesL VoIP=%d", 
   168                 aSupSubServices.iVoIP );
   165                 aSupSubServices.iVoIP );
   169     CSCENGDEBUG2( 
   166     CSCENGDEBUG2( 
   170             "CCSCEngCCHHandler::SupportedSubServicesL Presence=%d", 
   167             "CCSCEngCCHHandler::SupportedSubServicesL Presence=%d",