convergedcallengine/serviceselector/src/cssconnectionhandler.cpp
changeset 12 ae8abd0db65c
parent 0 ff3b6d0fd310
child 15 d7fc66ccd6fb
equal deleted inserted replaced
0:ff3b6d0fd310 12:ae8abd0db65c
    55 // Symbian 2nd phase constructor can leave.
    55 // Symbian 2nd phase constructor can leave.
    56 // -----------------------------------------------------------------------------
    56 // -----------------------------------------------------------------------------
    57 //
    57 //
    58 void CSsConnectionHandler::ConstructL()
    58 void CSsConnectionHandler::ConstructL()
    59     {
    59     {
    60     iCch = CCch::NewL(); 
    60     // <-- QT PHONE START -->
       
    61     //iCch = CCch::NewL(); 
       
    62     // <-- QT PHONE END -->
       
    63 
    61     }
    64     }
    62 
    65 
    63 // Destructor
    66 // Destructor
    64 CSsConnectionHandler::~CSsConnectionHandler()
    67 CSsConnectionHandler::~CSsConnectionHandler()
    65     {
    68     {
    66     delete iCch;
    69     // <-- QT PHONE START -->
       
    70     //delete iCch;
       
    71     // <-- QT PHONE END-->
       
    72 
    67     }
    73     }
    68 
    74 
    69 // -----------------------------------------------------------------------------
    75 // -----------------------------------------------------------------------------
    70 // CSsServiceUtilities::IsVoipServiceRegistered
    76 // CSsServiceUtilities::IsVoipServiceRegistered
    71 // Checks is the service registered
    77 // Checks is the service registered
    72 // -----------------------------------------------------------------------------
    78 // -----------------------------------------------------------------------------
    73 //
    79 //
    74 TBool CSsConnectionHandler::IsVoipServiceRegistered
    80 TBool CSsConnectionHandler::IsVoipServiceRegistered
    75         ( 
    81         ( 
    76         TUint aServiceId 
    82         TUint /*aServiceId */
    77         ) const
    83         ) const
    78     {
    84     {
       
    85    
       
    86     TBool registered( EFalse );
       
    87     // <-- QT PHONE START -->
       
    88 /*
    79     TCchServiceStatus serviceStatus;
    89     TCchServiceStatus serviceStatus;
    80     TBool registered( EFalse );
       
    81     CCchService* service = iCch->GetService( aServiceId );
    90     CCchService* service = iCch->GetService( aServiceId );
    82     if ( service )
    91     if ( service )
    83         {
    92         {
    84         service->GetStatus( ECCHVoIPSub, serviceStatus );
    93         service->GetStatus( ECCHVoIPSub, serviceStatus );
    85         registered = ( KErrNone == serviceStatus.Error() ) && 
    94         registered = ( KErrNone == serviceStatus.Error() ) && 
    88     
    97     
    89     CSSLOGSTRING4("CSSelector::IsRegistered: id:%d ,enabled:%d ,error:%d",
    98     CSSLOGSTRING4("CSSelector::IsRegistered: id:%d ,enabled:%d ,error:%d",
    90                 (TInt) aServiceId,
    99                 (TInt) aServiceId,
    91                 (TInt) ECCHEnabled == serviceStatus.State(),
   100                 (TInt) ECCHEnabled == serviceStatus.State(),
    92                 (TInt) serviceStatus.Error());
   101                 (TInt) serviceStatus.Error());
       
   102                 */
       
   103                 
       
   104     // <-- QT PHONE END-->
       
   105 
    93      
   106      
    94     return registered;        
   107     return registered;        
    95     }
   108     }
    96 
   109 
    97 // ================= OTHER EXPORTED FUNCTIONS ===============================
   110 // ================= OTHER EXPORTED FUNCTIONS ===============================