voipplugins/sipconnectionprovider/src/scpdisconnecting.cpp
branchRCL_3
changeset 21 f742655b05bf
parent 20 65a3ef1d5bd0
child 22 d38647835c2e
equal deleted inserted replaced
20:65a3ef1d5bd0 21:f742655b05bf
     1 /*
       
     2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "scpdisconnecting.h"
       
    20 #include "scplogger.h"
       
    21 
       
    22 // -----------------------------------------------------------------------------
       
    23 // TScpDisconnecting::TScpDisconnecting
       
    24 // -----------------------------------------------------------------------------
       
    25 //
       
    26 TScpDisconnecting::TScpDisconnecting()
       
    27     {
       
    28     SCPLOGSTRING( "TScpDisconnecting::TScpDisconnecting" );
       
    29     }
       
    30 
       
    31 // -----------------------------------------------------------------------------
       
    32 // TScpDisconnecting::State
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 TCCHSubserviceState TScpDisconnecting::State() const
       
    36     {
       
    37     SCPLOGSTRING( "TScpDisconnecting::State" );
       
    38 
       
    39     return ECCHDisconnecting;
       
    40     }
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // TScpDisconnecting::Disable
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 TInt TScpDisconnecting::Disable( CScpSubService& /*aSubService*/ ) const
       
    47     {
       
    48     SCPLOGSTRING( "TScpDisconnecting::Disable" );
       
    49 
       
    50     // Already disconnecting
       
    51     return KErrNone;
       
    52     }
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // TScpDisconnecting::ServiceDisconnected
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 void TScpDisconnecting::ServiceDisconnected( CScpSubService& aSubService ) const
       
    59     {
       
    60     SCPLOGSTRING( "TScpDisconnecting::ServiceDisconnected" );
       
    61 
       
    62     ChangeState( aSubService, ECCHDisabled, KErrNone );
       
    63     }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // TScpDisconnecting::NetworkLost
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 void TScpDisconnecting::NetworkLost( CScpSubService& aSubService ) const
       
    70     {
       
    71     SCPLOGSTRING( "TScpDisconnecting::NetworkLost" );
       
    72 
       
    73     ChangeState( aSubService, ECCHDisabled, KErrNone );
       
    74     }
       
    75 
       
    76 
       
    77 //  End of File