realtimenetprots/sipfw/Test/CapTests/ProfileAgent/Common/CStep.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PARAM_MESS_NAME_H_
       
    19 #define PARAM_MESS_NAME_H_
       
    20 
       
    21 //Include the suite header
       
    22 #include "CSuite.h"
       
    23 
       
    24 PARAM_FOREACH_LIST_BEGIN
       
    25 #include "PARAM_SVR_LISTHEADERFILE"
       
    26 PARAM_FOREACH_LIST_END
       
    27 
       
    28 
       
    29 class CPARAM_MESS_NAMEStep: public CCapabilityTestStep
       
    30 	{
       
    31 
       
    32 public:
       
    33 
       
    34 	//Get the version of the server to be called
       
    35 	TVersion Version()
       
    36 	{
       
    37 		return TVersion(PARAM_SVR_MAJORNAME, PARAM_SVR_MINORNAME, PARAM_SVR_BUILDNAME);
       
    38 	}	
       
    39 	
       
    40 	
       
    41 	//Constructor called from the respective Suite.cpp from their "AddTestStep" function
       
    42 	CPARAM_MESS_NAMEStep() ;
       
    43 
       
    44 	//Always clean your mess
       
    45 	~CPARAM_MESS_NAMEStep()
       
    46 	{
       
    47 		tChildThread.Close();
       
    48 	}		
       
    49 	
       
    50 	//This is the Function called from "doTestStepL" by the test Suite,and it creates an 
       
    51 	//child thread which internally calls the corresponding Exec_SendReceive_SERVERNAME fn.
       
    52 	TVerdict MainThread();
       
    53 
       
    54 	//Here's where the connection and testing the message takes place
       
    55 	TInt Exec_SendReceive();
       
    56 	
       
    57 	};
       
    58 
       
    59 #endif