multimediacommsengine/tsrc/testdriver/siptester/src/TCmdSetUNSAFTimers.h
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:  See class definition below.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TCMDSETUNSAFTIMERS_H
       
    19 #define TCMDSETUNSAFTIMERS_H
       
    20 
       
    21 // INCLUDES
       
    22 #include "TCmdUNSAFTimers.h"
       
    23 
       
    24 // CLASS DEFINITION
       
    25 /**
       
    26  * Command class responsible for setting the UNSAF timer values.
       
    27  */
       
    28 class TCmdSetUNSAFTimers
       
    29 	: public TCmdUNSAFTimers
       
    30 	{
       
    31 	public:	// Constructors and destructor
       
    32 
       
    33 		/**
       
    34 		 * Constructor.
       
    35 		 *
       
    36 		 * @param aContext SIP Test case context
       
    37 		 */
       
    38 		TCmdSetUNSAFTimers( MTcTestContext& aContext ) :
       
    39 			TCmdUNSAFTimers( aContext ) {}
       
    40 
       
    41 	public: // From TTcSIPCommandBase
       
    42 
       
    43 		void ExecuteL();
       
    44 
       
    45 	public: // New methods
       
    46 
       
    47 		/**
       
    48 		 * Static function for matching the name of this command to
       
    49 		 * a function identifier.
       
    50 		 *
       
    51 		 * @param aId An initialized identifier containing a function name.
       
    52 		 * @return ETrue if this command matches the specified name.
       
    53 		 */
       
    54 		static TBool Match( const TTcIdentifier& aId );
       
    55 
       
    56 		/**
       
    57 		 * Static fuction for creating an instance of this class
       
    58 		 *
       
    59 		 * @param aContext SIP Test case context
       
    60 		 * @return An initialized instance of this class.
       
    61 		 */
       
    62 		static TTcCommandBase* CreateL( MTcTestContext& aContext );
       
    63 
       
    64 	private: // New functions, for internal use		
       
    65 
       
    66 		/**
       
    67 		 * Extract the parameters.
       
    68 		 *		 
       
    69 		 * @return ETrue At least one parameter was specified, write them to
       
    70 		 *		   repository.
       
    71 		 *		   EFalse No parameters were given, indicating the configuration
       
    72 		 *		   should be removed from repository.
       
    73 		 */
       
    74 		TBool ReadInputParametersL( TInt& aBindingRequestInterval,
       
    75 							  	    TInt& aUdpKeepAliveInterval,
       
    76 							  	    TInt& aTcpKeepAliveInterval ) const;
       
    77 
       
    78 		void SetValuesToRepositoryL( CRepository& aRepository,
       
    79 									 TInt aStatus,
       
    80 									 TUint32 aKey,
       
    81 									 TInt aBindingRequestInterval,
       
    82 									 TInt aUdpKeepAliveInterval,
       
    83 									 TInt aTcpKeepAliveInterval );
       
    84 
       
    85 		void WriteIapParamsL( CRepository& aRepository,
       
    86 							  TUint32 aKey,
       
    87 							  TInt aBindingRequestInterval,
       
    88 							  TInt aUdpKeepAliveInterval,
       
    89 							  TInt aTcpKeepAliveInterval );		
       
    90 
       
    91 		void WriteDomainParamsL( CRepository& aRepository, 
       
    92 							     TUint32 aKey,
       
    93 							     TInt aUdpKeepAliveInterval,
       
    94 							     TInt aTcpKeepAliveInterval );
       
    95 	};
       
    96 
       
    97 #endif // TCMDSETUNSAFTIMERS_H