diff -r 000000000000 -r 1bce908db942 natfw/natfwstunturnclient/src/cstunbindingstate.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/natfw/natfwstunturnclient/src/cstunbindingstate.cpp Tue Feb 02 01:04:58 2010 +0200 @@ -0,0 +1,129 @@ +/* +* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + + +#include "stunassert.h" +#include "cstunbindingstate.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CSTUNBindingState::CSTUNBindingState +// --------------------------------------------------------------------------- +// +CSTUNBindingState::CSTUNBindingState() + { + } + +// --------------------------------------------------------------------------- +// CSTUNBindingState::CSTUNBindingState +// Dummy implementation, as copy constructor is declared private and not used. +// --------------------------------------------------------------------------- +// +CSTUNBindingState::CSTUNBindingState( const CSTUNBindingState& /*aState*/ ) : + CBase() + { + } + +// --------------------------------------------------------------------------- +// CSTUNBindingState::~CSTUNBindingState +// --------------------------------------------------------------------------- +// +CSTUNBindingState::~CSTUNBindingState() + { + } + +// --------------------------------------------------------------------------- +// CSTUNBindingState::SharedSecretObtainedL +// --------------------------------------------------------------------------- +// +void CSTUNBindingState::SharedSecretObtainedL( + CBindingImplementation& /*aContext*/, + const TDesC8& /*aUsername*/, + const TDesC8& /*aPassword*/ ) const + { + __STUN_FAILURE_L( KErrGeneral ); + } + +// --------------------------------------------------------------------------- +// CSTUNBindingState::PublicAddressReceivedL +// --------------------------------------------------------------------------- +// +void CSTUNBindingState::PublicAddressReceivedL( + CBindingImplementation& /*aContext*/, + const TInetAddr& /*aPublicAddress*/ ) const + { + __STUN_FAILURE_L( KErrGeneral ); + } + +// --------------------------------------------------------------------------- +// CSTUNBindingState::PublicAddressReceivedL +// --------------------------------------------------------------------------- +// +void CSTUNBindingState::PublicAddressReceivedL( + CBindingImplementation& /*aContext*/, + const TInetAddr& /*aReflexiveAddr*/, + const TInetAddr& /*aRelayAddr*/ ) const + { + __STUN_FAILURE_L( KErrGeneral ); + } + +// --------------------------------------------------------------------------- +// CSTUNBindingState::TransactionError +// --------------------------------------------------------------------------- +// +void +CSTUNBindingState::TransactionError( CBindingImplementation& /*aContext*/, + TInt aError ) + { + __STUN_ASSERT_RETURN( aError != KErrNone, KErrArgument ); + __STUN_FAILURE_RETURN( KErrGeneral ); + } + +// --------------------------------------------------------------------------- +// CSTUNBindingState::TimerExpiredL +// --------------------------------------------------------------------------- +// +void CSTUNBindingState::TimerExpiredL( + CBindingImplementation& /*aContext*/ ) const + { + __STUN_FAILURE_L( KErrGeneral ); + } + +// --------------------------------------------------------------------------- +// CSTUNBindingState::SendRequestL +// --------------------------------------------------------------------------- +// +void CSTUNBindingState::SendRequestL( + CBindingImplementation& /*aContext*/ ) const + { + __STUN_FAILURE_L( KErrGeneral ); + } + + +// --------------------------------------------------------------------------- +// CSTUNBindingState::CancelRequest +// --------------------------------------------------------------------------- +// +void CSTUNBindingState::CancelRequest( + CBindingImplementation& /*aContext*/ ) const + { + __STUN_FAILURE_RETURN( KErrGeneral ); + }