multimediacommsengine/tsrc/testdriver/siptester/src/TCmdCreateProfile.h
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:  See class definition below.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __TCMDCREATEPROFILE_H__
       
    19 #define __TCMDCREATEPROFILE_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include "TTcSIPCommandBase.h"
       
    23 #include <sipprofile.h>
       
    24 
       
    25 // CLASS DEFINITION
       
    26 /**
       
    27  * Command class responsible for "CreateProfile" functionality.
       
    28  */
       
    29 class TCmdCreateProfile
       
    30 	: public TTcSIPCommandBase
       
    31 	{
       
    32 	public:	// Constructors and destructor
       
    33 
       
    34 		/**
       
    35 		 * Constructor.
       
    36 		 *
       
    37 		 * @param aContext SIP Test case context
       
    38 		 */
       
    39 		TCmdCreateProfile( MTcTestContext& aContext )
       
    40 						   : TTcSIPCommandBase( aContext ) {};
       
    41 
       
    42 	public: // From TTcSIPCommandBase
       
    43 
       
    44 		void ExecuteL();
       
    45 
       
    46 	public: // New methods
       
    47 
       
    48 		/**
       
    49 		 * Static function for matching the name of this command to
       
    50 		 * a function identifier.
       
    51 		 *
       
    52 		 * @param aId An initialized identifier containing a function name.
       
    53 		 * @return ETrue if this command matches the specified name.
       
    54 		 */
       
    55 		static TBool Match( const TTcIdentifier& aId );
       
    56 
       
    57 		/**
       
    58 		 * static function for creating an instance of this class
       
    59 		 *
       
    60 		 * @param aContext SIP Test case context
       
    61 		 * @return An initialized instance of this class.
       
    62 		 */
       
    63 		static TTcCommandBase* CreateL( MTcTestContext& aContext );
       
    64 		
       
    65 		/**
       
    66 		 * Function for inquiring profile type info
       
    67 		 *
       
    68 		 * @param aStruct Incoming SIP profile structure
       
    69 		 * @return type info
       
    70 		 */
       
    71 		 static TSIPProfileTypeInfo ProfileTypeInfoL( CTcStructure* aStruct );
       
    72 		 
       
    73 		 /**
       
    74 		 * Function for inquiring profile type info class
       
    75 		 *
       
    76 		 * @param aStruct Incoming SIP profile structure
       
    77 		 * @return type info
       
    78 		 */
       
    79 		 static TSIPProfileTypeInfo::TSIPProfileClass ProfileTypeClassL( CTcStructure* aStruct );
       
    80 
       
    81 	protected: // New methods
       
    82 		/**
       
    83 		 * Function for setting profile parameters
       
    84 		 *
       
    85 		 * @param aProfile Incoming profile
       
    86 		 */
       
    87 		void SetProfileParamsL( CSIPManagedProfile* aProfile );
       
    88 
       
    89 		/**
       
    90 		 * Function for inquiring server type
       
    91 		 *
       
    92 		 * @param aStruct Incoming SIP profile structure
       
    93 		 * @return server type
       
    94 		 */
       
    95 		TUint32 ServerL( CTcStructure* aStruct );
       
    96 
       
    97 		/**
       
    98 		 * Function for inquiring server type
       
    99 		 *
       
   100 		 * @param aStruct Incoming SIP profile structure
       
   101 		 * @return server parameter
       
   102 		 */
       
   103 		TUint32 ServerParameterL( CTcStructure* aStruct );
       
   104 
       
   105 	};
       
   106 
       
   107 #endif // __TCMDCREATEPROFILE_H__