multimediacommsengine/tsrc/testdriver/siptester/src/TCmdIsCancelAllowed.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2004 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 <sipclienttransaction.h>
       
    19 
       
    20 #include "TCmdIsCancelAllowed.h"
       
    21 #include "SIPConstants.h"
       
    22 
       
    23 /**
       
    24  * INPUT:
       
    25  *   Headers:		-
       
    26  *   Parameters:	-
       
    27  *   IDs:			TransactionId
       
    28  *
       
    29  * OUTPUT:
       
    30  *   Parameters:	Boolean
       
    31  *   IDs:			-
       
    32  */
       
    33 void TCmdIsCancelAllowed::ExecuteL()
       
    34 	{
       
    35 	// -- Setup ---------------------------------------------------------------
       
    36 
       
    37 	// Get SIP objects from registry
       
    38 	CSIPClientTransaction* transaction = GetClientTransactionL();
       
    39 
       
    40 	// -- Execution -----------------------------------------------------------
       
    41 
       
    42 	TBool allowed = transaction->CancelAllowed();
       
    43 
       
    44 	// -- Response creation ---------------------------------------------------
       
    45 
       
    46 	AddBooleanResponseL( KParamBoolean, allowed );
       
    47 	}
       
    48 
       
    49 TBool TCmdIsCancelAllowed::Match( const TTcIdentifier& aId )
       
    50 	{
       
    51 	return TTcSIPCommandBase::Match( aId, _L8("IsCancelAllowed") );
       
    52 	}
       
    53 
       
    54 TTcCommandBase* TCmdIsCancelAllowed::CreateL( MTcTestContext& aContext )
       
    55 	{
       
    56 	return new( ELeave ) TCmdIsCancelAllowed( aContext );
       
    57 	}
       
    58