multimediacommsengine/tsrc/testdriver/siptester/src/TCmdSetHttpDigestObserver2.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Implementation
       
    15 *
       
    16 */
       
    17 
       
    18 #include "CTcSIPContext.h"
       
    19 #include "SIPConstants.h"
       
    20 #include "CTcSIPHttpDigestContainer.h"
       
    21 #include "TCmdSetHttpDigestObserver2.h"
       
    22 
       
    23 /**
       
    24  * INPUT:
       
    25  *   Headers:		-
       
    26  *   Parameters:	-
       
    27  *   IDs:			-
       
    28  *
       
    29  * OUTPUT:
       
    30  *   Parameters:	-
       
    31  *   IDs:			-
       
    32  */
       
    33 void TCmdSetHttpDigestObserver2::ExecuteL()
       
    34 	{
       
    35 	CTcSIPHttpDigestContainer& digestContainer = iContext.DigestContainerL();
       
    36 	
       
    37 	digestContainer.HttpDigest().SetObserver( 
       
    38 	    static_cast< MSIPHttpDigestChallengeObserver2& > ( digestContainer ) );
       
    39 	}
       
    40 
       
    41 TBool TCmdSetHttpDigestObserver2::Match( const TTcIdentifier& aId )
       
    42 	{
       
    43 	return TTcSIPCommandBase::Match( aId, _L8("SetHttpDigestObserver2") );
       
    44 	}
       
    45 
       
    46 TTcCommandBase* TCmdSetHttpDigestObserver2::CreateL( MTcTestContext& aContext )
       
    47 	{
       
    48 	return new( ELeave ) TCmdSetHttpDigestObserver2( aContext );
       
    49 	}