commsconfig/cscengine/src/cscengcchhandler.cpp
branchRCL_3
changeset 20 65a3ef1d5bd0
parent 0 a4daefaec16c
equal deleted inserted replaced
18:8c9c07ad8b6b 20:65a3ef1d5bd0
     1 /*
     1 /*
     2 * Copyright (c) 2007-2007 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".
   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     CCchService* service = 
   143     // Create new cch client for access the latest service info data.
   144                iCchClientApi->GetService( aServiceId );
   144     CCchService* service = 
   145         
   145         CCch::NewLC()->GetService( aServiceId );
       
   146 
   146     TBool supported( EFalse );
   147     TBool supported( EFalse );
   147     
   148     
   148     if ( service )
   149     if ( service )
   149         {
   150         {
   150         service->IsSupported( ECCHVoIPSub, supported );
   151         service->IsSupported( ECCHVoIPSub, supported );
   157         aSupSubServices.iIm = supported;
   158         aSupSubServices.iIm = supported;
   158         
   159         
   159         service->IsSupported( ECCHVMBxSub, supported );
   160         service->IsSupported( ECCHVMBxSub, supported );
   160         aSupSubServices.iVmbx = supported;
   161         aSupSubServices.iVmbx = supported;
   161         }
   162         }
   162         
   163     
       
   164     CleanupStack::PopAndDestroy(); // cch
       
   165     
   163     CSCENGDEBUG2( 
   166     CSCENGDEBUG2( 
   164             "CCSCEngCCHHandler::SupportedSubServicesL VoIP=%d", 
   167             "CCSCEngCCHHandler::SupportedSubServicesL VoIP=%d", 
   165                 aSupSubServices.iVoIP );
   168                 aSupSubServices.iVoIP );
   166     CSCENGDEBUG2( 
   169     CSCENGDEBUG2( 
   167             "CCSCEngCCHHandler::SupportedSubServicesL Presence=%d", 
   170             "CCSCEngCCHHandler::SupportedSubServicesL Presence=%d",