multimediacommsengine/tsrc/testdriver/siptester/src/TCmdGetProfile.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 __TCMDGETPROFILE_H__
       
    19 #define __TCMDGETPROFILE_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include "TCmdCreateProfile.h"
       
    23 #include <sipprofile.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CSIPManagedProfile;
       
    27 class TSIPProfileTypeInfo;
       
    28 
       
    29 // CLASS DEFINITION
       
    30 /**
       
    31  * Command class responsible for "GetProfile" functionality.
       
    32  */
       
    33 class TCmdGetProfile
       
    34 	: public TCmdCreateProfile
       
    35 	{
       
    36 	public:	// Constructors and destructor
       
    37 
       
    38 		/**
       
    39 		 * Constructor.
       
    40 		 *
       
    41 		 * @param aContext SIP Test case context
       
    42 		 */
       
    43 		TCmdGetProfile( MTcTestContext& aContext )
       
    44 						: TCmdCreateProfile( aContext ) {};
       
    45 
       
    46 	public: // From TTcSIPCommandBase
       
    47 
       
    48 		void ExecuteL();
       
    49 
       
    50 	public: // New methods
       
    51 
       
    52 		/**
       
    53 		 * Static function for matching the name of this command to
       
    54 		 * a function identifier.
       
    55 		 *
       
    56 		 * @param aId An initialized identifier containing a function name.
       
    57 		 * @return ETrue if this command matches the specified name.
       
    58 		 */
       
    59 		static TBool Match( const TTcIdentifier& aId );
       
    60 
       
    61 		/**
       
    62 		 * static function for creating an instance of this class
       
    63 		 *
       
    64 		 * @param aContext SIP Test case context
       
    65 		 * @return An initialized instance of this class.
       
    66 		 */
       
    67 		static TTcCommandBase* CreateL( MTcTestContext& aContext );
       
    68 
       
    69 	protected: // New methods
       
    70 		
       
    71 		/**
       
    72 		 * Function for getting profile parameters
       
    73 		 *
       
    74 		 * @param aContainer Profile container of the profile
       
    75 		 * @param aProfile Incoming profile
       
    76 		 */
       
    77 		void GetProfileParamsL( CTcSIPProfileContainer& aContainer,
       
    78 		                        CSIPManagedProfile* aProfile );
       
    79 
       
    80 		/**
       
    81 		 * Function for inquiring profile type
       
    82 		 *
       
    83 		 * @param aServer Incoming server type
       
    84 		 * @param aServerParameter Incoming server paramater
       
    85 		 * @param aProfile Incoming profile
       
    86 		 * @return type info
       
    87 		 */
       
    88 		void ServerParameterL( TUint32 aServer,
       
    89 							   TUint32 aServerParameter,
       
    90 							   const CSIPProfile* aSipProfile );
       
    91 		
       
    92 		/**
       
    93 		 * Function for converting server type to string
       
    94 		 *
       
    95 		 * @param aServer Incoming server type
       
    96 		 * @return server type as string
       
    97 		 */		
       
    98 		TPtrC8 ServerToString( TUint32 aServer );
       
    99 
       
   100 	};
       
   101 
       
   102 #endif // __TCMDGETPROFILE_H__