natfw/natfwstunturnclient/src/cstunsharedsecretstate.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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 
       
    20 
       
    21 #include "stunassert.h"
       
    22 #include "cstunsharedsecretstate.h"
       
    23 
       
    24 
       
    25 // ======== MEMBER FUNCTIONS ========
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CSTUNSharedSecretState::CSTUNSharedSecretState
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 CSTUNSharedSecretState::CSTUNSharedSecretState()
       
    32     {
       
    33     }
       
    34 
       
    35 // ---------------------------------------------------------------------------
       
    36 // CSTUNSharedSecretState::CSTUNSharedSecretState
       
    37 // Dummy implementation, as copy constructor is declared private and not used.
       
    38 // ---------------------------------------------------------------------------
       
    39 //
       
    40 CSTUNSharedSecretState::CSTUNSharedSecretState(
       
    41     const CSTUNSharedSecretState& /*aState*/ ) :
       
    42     CBase()
       
    43     {    
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // CSTUNSharedSecretState::~CSTUNSharedSecretState
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 CSTUNSharedSecretState::~CSTUNSharedSecretState()
       
    51     {    
       
    52     }
       
    53     
       
    54 // ---------------------------------------------------------------------------
       
    55 // CSTUNSharedSecretState::TlsConnectedL
       
    56 // ---------------------------------------------------------------------------
       
    57 //
       
    58 void
       
    59 CSTUNSharedSecretState::TlsConnectedL( CSTUNSharedSecret& /*aContext*/ ) const
       
    60     {
       
    61     __STUN_FAILURE_L( KErrGeneral );
       
    62     }
       
    63 
       
    64 // ---------------------------------------------------------------------------
       
    65 // CSTUNSharedSecretState::IncomingMessageL
       
    66 // ---------------------------------------------------------------------------
       
    67 //
       
    68 void CSTUNSharedSecretState::IncomingMessageL( CSTUNSharedSecret& /*aContext*/,
       
    69                                                CNATFWUNSAFMessage* aMessage ) const
       
    70     {
       
    71     __STUN_ASSERT_L( aMessage != NULL, KErrArgument );
       
    72     __STUN_FAILURE_L( KErrGeneral );
       
    73     }
       
    74 
       
    75 // ---------------------------------------------------------------------------
       
    76 // CSTUNSharedSecretState::ErrorOccured
       
    77 // ---------------------------------------------------------------------------
       
    78 //
       
    79 void CSTUNSharedSecretState::ErrorOccured( CSTUNSharedSecret& /*aContext*/,
       
    80                                            TInt aError ) const
       
    81     {
       
    82     __STUN_ASSERT_RETURN( aError != KErrNone, KErrArgument );
       
    83     __STUN_FAILURE_RETURN( KErrGeneral );
       
    84     }
       
    85 
       
    86 // ---------------------------------------------------------------------------
       
    87 // CSTUNSharedSecretState::TimerExpiredL
       
    88 // ---------------------------------------------------------------------------
       
    89 //
       
    90 void
       
    91 CSTUNSharedSecretState::TimerExpiredL( CSTUNSharedSecret& /*aContext*/ ) const
       
    92     {
       
    93     __STUN_FAILURE_L( KErrGeneral );
       
    94     }