natfw/natfwstunturnclient/src/cstunbindingstate.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 "cstunbindingstate.h"
       
    23 
       
    24 
       
    25 // ======== MEMBER FUNCTIONS ========
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CSTUNBindingState::CSTUNBindingState
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 CSTUNBindingState::CSTUNBindingState()
       
    32     {
       
    33     }
       
    34 
       
    35 // ---------------------------------------------------------------------------
       
    36 // CSTUNBindingState::CSTUNBindingState
       
    37 // Dummy implementation, as copy constructor is declared private and not used.
       
    38 // ---------------------------------------------------------------------------
       
    39 //
       
    40 CSTUNBindingState::CSTUNBindingState( const CSTUNBindingState& /*aState*/ ) :
       
    41     CBase()
       
    42     {    
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------------------------
       
    46 // CSTUNBindingState::~CSTUNBindingState
       
    47 // ---------------------------------------------------------------------------
       
    48 //
       
    49 CSTUNBindingState::~CSTUNBindingState()
       
    50     {    
       
    51     }
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 // CSTUNBindingState::SharedSecretObtainedL
       
    55 // ---------------------------------------------------------------------------
       
    56 //
       
    57 void CSTUNBindingState::SharedSecretObtainedL(
       
    58     CBindingImplementation& /*aContext*/,
       
    59     const TDesC8& /*aUsername*/,
       
    60     const TDesC8& /*aPassword*/ ) const
       
    61     {
       
    62     __STUN_FAILURE_L( KErrGeneral );
       
    63     }
       
    64 
       
    65 // ---------------------------------------------------------------------------
       
    66 // CSTUNBindingState::PublicAddressReceivedL
       
    67 // ---------------------------------------------------------------------------
       
    68 //
       
    69 void CSTUNBindingState::PublicAddressReceivedL(
       
    70     CBindingImplementation& /*aContext*/,
       
    71     const TInetAddr& /*aPublicAddress*/ ) const
       
    72     {
       
    73     __STUN_FAILURE_L( KErrGeneral );
       
    74     }
       
    75 
       
    76 // ---------------------------------------------------------------------------
       
    77 // CSTUNBindingState::PublicAddressReceivedL
       
    78 // ---------------------------------------------------------------------------
       
    79 //
       
    80 void CSTUNBindingState::PublicAddressReceivedL(
       
    81     CBindingImplementation& /*aContext*/,
       
    82     const TInetAddr& /*aReflexiveAddr*/,
       
    83     const TInetAddr& /*aRelayAddr*/ ) const
       
    84     {
       
    85     __STUN_FAILURE_L( KErrGeneral );
       
    86     }
       
    87 
       
    88 // ---------------------------------------------------------------------------
       
    89 // CSTUNBindingState::TransactionError
       
    90 // ---------------------------------------------------------------------------
       
    91 //
       
    92 void
       
    93 CSTUNBindingState::TransactionError( CBindingImplementation& /*aContext*/,
       
    94                                      TInt aError )
       
    95     {
       
    96     __STUN_ASSERT_RETURN( aError != KErrNone, KErrArgument );
       
    97     __STUN_FAILURE_RETURN( KErrGeneral );
       
    98     }
       
    99 
       
   100 // ---------------------------------------------------------------------------
       
   101 // CSTUNBindingState::TimerExpiredL
       
   102 // ---------------------------------------------------------------------------
       
   103 //
       
   104 void CSTUNBindingState::TimerExpiredL(
       
   105     CBindingImplementation& /*aContext*/ ) const
       
   106     {
       
   107     __STUN_FAILURE_L( KErrGeneral );
       
   108     }
       
   109 
       
   110 // ---------------------------------------------------------------------------
       
   111 // CSTUNBindingState::SendRequestL
       
   112 // ---------------------------------------------------------------------------
       
   113 //
       
   114 void CSTUNBindingState::SendRequestL(
       
   115     CBindingImplementation& /*aContext*/ ) const
       
   116     {
       
   117     __STUN_FAILURE_L( KErrGeneral );
       
   118     }
       
   119 
       
   120 
       
   121 // ---------------------------------------------------------------------------
       
   122 // CSTUNBindingState::CancelRequest
       
   123 // ---------------------------------------------------------------------------
       
   124 //
       
   125 void CSTUNBindingState::CancelRequest(
       
   126     CBindingImplementation& /*aContext*/ ) const
       
   127     {
       
   128     __STUN_FAILURE_RETURN( KErrGeneral );
       
   129     }