datacommsserver/esockserver/test/CapTests/Resolver/Common/CStep.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef PARAM_MESS_NAME_H_
       
    22 #define PARAM_MESS_NAME_H_
       
    23 
       
    24 //Include the suite header
       
    25 #include "CSuite.h"
       
    26 #include <ss_std.h>
       
    27 
       
    28 #include <nifman.h>
       
    29 #include <CommDbConnPref.h>
       
    30 #include <dns_qry.h>
       
    31 
       
    32 #include <comms-infras/SOCKMES.H>
       
    33 #include <comms-infras/es_config.h>
       
    34 #include <es_enum_internal.h>
       
    35 #include <es_sock_internal.h>
       
    36 #include <comms-infras/RConfigDaemonMess.h>
       
    37 #include <rsshared.h>
       
    38 
       
    39 
       
    40 PARAM_FOREACH_LIST_BEGIN
       
    41 #include "PARAM_SVR_LISTHEADERFILE"
       
    42 PARAM_FOREACH_LIST_END
       
    43 
       
    44 
       
    45 class CPARAM_MESS_NAMEStep: public CCapabilityTestStep
       
    46 	{
       
    47 
       
    48 public:
       
    49 
       
    50 	//Get the version of the server to be called
       
    51 	TVersion Version()
       
    52 	{
       
    53 		return TVersion(PARAM_SVR_MAJORNAME, PARAM_SVR_MINORNAME, PARAM_SVR_BUILDNAME);
       
    54 	}
       
    55 
       
    56 
       
    57 	//Constructor called from the respective Suite.cpp from their "AddTestStep" function
       
    58 	CPARAM_MESS_NAMEStep(TBool aUpsAuthorisationGranted);
       
    59 
       
    60 	//Always clean your mess
       
    61 	~CPARAM_MESS_NAMEStep()
       
    62 	{
       
    63 		tChildThread.Close();
       
    64 	}
       
    65 
       
    66 	//This is the Function called from "doTestStepL" by the test Suite,and it creates an
       
    67 	//child thread which internally calls the corresponding Exec_SendReceive_SERVERNAME fn.
       
    68 	TVerdict MainThread();
       
    69 
       
    70 	//Here's where the connection and testing the message takes place
       
    71 	TInt Exec_SendReceive();
       
    72 
       
    73 private:
       
    74 	TInt iSSRef;
       
    75 	TInt iSSRes;
       
    76 
       
    77 	TInt do_execute(Int2Type<EHRCreate>);
       
    78 	TInt do_execute(Int2Type<EHRCreateWithConnection>);
       
    79 	TInt do_execute(Int2Type<EHRGetByName>);
       
    80 	TInt do_execute(Int2Type<EHRNext>);
       
    81 	TInt do_execute(Int2Type<EHRGetByAddress>);
       
    82 	TInt do_execute(Int2Type<EHRGetHostName>);
       
    83 	TInt do_execute(Int2Type<EHRSetHostName>);
       
    84 	TInt do_execute(Int2Type<EHRCancel>);
       
    85 	TInt do_execute(Int2Type<EHRClose>);
       
    86 	TInt do_execute(Int2Type<EHrQuery>);
       
    87 	TInt do_execute(Int2Type<EHrQueryNext>);
       
    88 
       
    89 	TInt do_execute(Int2Type<ESRCreate>);
       
    90     TInt do_execute(Int2Type<ESRGetByName>);
       
    91     TInt do_execute(Int2Type<ESRGetByNumber>);
       
    92     TInt do_execute(Int2Type<ESRRegisterService>);
       
    93     TInt do_execute(Int2Type<ESRRemoveService>);
       
    94 	TInt do_execute(Int2Type<ESRClose>);
       
    95 
       
    96     TInt do_execute(Int2Type<ESSNumProtocols>);
       
    97     TInt do_execute(Int2Type<ESSProtocolInfo>);
       
    98     TInt do_execute(Int2Type<ESSProtocolInfoByName>);
       
    99     TInt do_execute(Int2Type<ESSProtocolStart>);
       
   100     TInt do_execute(Int2Type<ESSProtocolStop>);
       
   101     TInt do_execute(Int2Type<ESSInstallExtension>);
       
   102 	TInt do_execute(Int2Type<ESSExclusiveMode>);
       
   103 	TInt do_execute(Int2Type<ESSClearExclusiveMode>);
       
   104 
       
   105     TInt CreateConnection();
       
   106 	TInt CreateStartDefaultConnection();
       
   107 	TInt CloseConnection();
       
   108     TInt StopCloseConnection();
       
   109 
       
   110     TInt ConnectionControl(TUint aOptionLevel, TUint aOptionName, TDes8& aOption);
       
   111 	TInt ConnectionControl(TUint aOptionLevel, TUint aOptionName, TInt aOption);
       
   112 
       
   113     TInt test_KConnGetInterfaceName();
       
   114     TInt test_KConnDisableTimers();
       
   115     TInt test_KCoEnumerateConnectionClients();
       
   116     TInt test_KCoGetConnectionClientInfo();
       
   117     TInt test_KCoEnumerateConnectionSockets();
       
   118     TInt test_KCoGetConnectionSocketInfo();
       
   119 
       
   120     TInt test_KCOLInterface();
       
   121     TInt test_KCOLAgent();
       
   122 
       
   123     TInt test_RConfigDaemon();
       
   124     TInt OpenHostResolver();
       
   125     TInt OpenServiceResolver();
       
   126 
       
   127 
       
   128     };
       
   129 
       
   130 #endif
       
   131 
       
   132