datacommsserver/esockserver/test/TE_EsockTestSteps/inc/Commsdat.TestSteps.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 /**
       
     2 * Copyright (c) 2006-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 
       
    19 
       
    20 /**
       
    21  @file Commsdat.TestSteps.h
       
    22 */
       
    23 
       
    24 #if (!defined COMMSDAT_TESTSTEPS_H)
       
    25 #define COMMSDAT_TESTSTEPS_H
       
    26 
       
    27 //#include <e32base.h>
       
    28 #include <metadatabase.h>
       
    29 #include <commsdat.h>
       
    30 #include <commsdattypesv1_1.h>
       
    31 //#include <commsdattypeinfov1_1.h> // TODO_CDG needed?
       
    32 
       
    33 #include <test/testexecutestepbase.h>
       
    34 #include "Te_EsockStepBase.h"
       
    35 
       
    36 // Test step classes
       
    37 //------------------
       
    38 
       
    39 /**
       
    40 Class implementing CreateRConnectionServStep
       
    41 
       
    42 @internalComponent
       
    43 */
       
    44 class CCommsdatTestStep : public CTe_EsockStepBase
       
    45 	{
       
    46 public:
       
    47 	CCommsdatTestStep(CCEsockTestBase*& aEsockTest) : CTe_EsockStepBase(aEsockTest) {}
       
    48 
       
    49 protected:
       
    50 	};
       
    51 
       
    52 
       
    53 /**
       
    54 Class implementing CUpdateCommsdatRecordStep
       
    55 
       
    56 @internalComponent
       
    57 */
       
    58 class CUpdateCommsdatRecordStep : public CCommsdatTestStep
       
    59 	{
       
    60 public:
       
    61 	CUpdateCommsdatRecordStep(CCEsockTestBase*& aEsockTest);
       
    62 	TVerdict doTestStepPreambleL();
       
    63 	TVerdict doSingleTestStep();
       
    64 	TInt ConfigureFromIni();
       
    65 
       
    66 private:
       
    67 	TInt iRecordId;
       
    68 	TPtrC iRecordTypeName;
       
    69 	};
       
    70 
       
    71 _LIT(KUpdateCommsdatRecordStep, "UpdateCommsdatRecordStep");
       
    72 
       
    73 
       
    74 /**
       
    75 Class implementing CDeleteCommsdatRecordStep
       
    76 
       
    77 @internalComponent
       
    78 */
       
    79 class CDeleteCommsdatRecordStep : public CCommsdatTestStep
       
    80 	{
       
    81 public:
       
    82 	CDeleteCommsdatRecordStep(CCEsockTestBase*& aEsockTest);
       
    83 	TVerdict doTestStepPreambleL();
       
    84 	TVerdict doSingleTestStep();
       
    85 	TInt ConfigureFromIni();
       
    86 
       
    87 private:
       
    88 	TInt iRecordId;
       
    89 	TPtrC iRecordTypeName;
       
    90 	};
       
    91 
       
    92 _LIT(KDeleteCommsdatRecordStep, "DeleteCommsdatRecordStep");
       
    93 
       
    94 
       
    95 /**
       
    96 Class implementing CCreateCommsdatRecordStep
       
    97 
       
    98 @internalComponent
       
    99 */
       
   100 class CCreateCommsdatRecordStep : public CCommsdatTestStep
       
   101 	{
       
   102 public:
       
   103 	CCreateCommsdatRecordStep(CCEsockTestBase*& aEsockTest);
       
   104 	TVerdict doTestStepPreambleL();
       
   105 	TVerdict doSingleTestStep();
       
   106 	TInt ConfigureFromIni();
       
   107 
       
   108 private:
       
   109 	TInt iRecordId;
       
   110 	TPtrC iRecordTypeName;
       
   111 	};
       
   112 
       
   113 _LIT(KCreateCommsdatRecordStep, "CreateCommsdatRecordStep");
       
   114 
       
   115 
       
   116 
       
   117 #endif // COMMSDAT_TESTSTEPS_H
       
   118