messagingappbase/obexmtms/TObexMTM/testutils/msgth/inc/parsers.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 // Copyright (c) 2003-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 #ifndef __PARSERS_H
       
    17 #define __PARSERS_H
       
    18 
       
    19 #include "testframeparse.h"
       
    20 #include "harness.h"
       
    21 #include <COMMDB.H>	    // CCommsDatabase
       
    22 
       
    23 //
       
    24 //
       
    25 // CMainSectionParser
       
    26 //
       
    27 
       
    28 class CMainSectionParser : public CBaseSectionParser
       
    29 	{
       
    30 public:
       
    31 	IMPORT_C static CMainSectionParser* NewL(CMainTestHarness& aMainTest, CTestScript& aScript);
       
    32 
       
    33 protected:
       
    34 	IMPORT_C void ConstructL();
       
    35 	IMPORT_C CMainSectionParser(CMainTestHarness& aMainTest, CTestScript& aScript);
       
    36 	IMPORT_C void LogCommentL(const TDesC& aComment);
       
    37 
       
    38 private:
       
    39 	CMainTestHarness& iMainTest;
       
    40 	};
       
    41 
       
    42 
       
    43 
       
    44 //
       
    45 //
       
    46 // CMsvUtilitiesParser
       
    47 //
       
    48 
       
    49 class CMsvUtilitiesParser : public CBaseCommandParser
       
    50 	{
       
    51 public:
       
    52 	IMPORT_C void ProcessL();
       
    53 	IMPORT_C static CMsvUtilitiesParser* NewL(CMsvClientTest& iMsvClientTest);
       
    54 private:
       
    55 	void ConstructL();
       
    56 	CMsvUtilitiesParser(CMsvClientTest& aMsvClientTest);
       
    57 	CMsvClientTest& iMsvClientTest;
       
    58 	};
       
    59 
       
    60 
       
    61 
       
    62 
       
    63 //
       
    64 //
       
    65 // CMsvSelectParser
       
    66 //
       
    67 
       
    68 class CMsvSelectParser : public CBaseCommandParser
       
    69 	{
       
    70 public:
       
    71 	IMPORT_C void ProcessL();
       
    72 	IMPORT_C static CMsvSelectParser* NewL(CMsvClientTest& iMsvClientTest);
       
    73 private:
       
    74 	void ConstructL();
       
    75 	CMsvSelectParser(CMsvClientTest& aMsvClientTest);
       
    76 	CMsvClientTest& iMsvClientTest;
       
    77 	};
       
    78 
       
    79 
       
    80 
       
    81 //
       
    82 //
       
    83 // CMsvOperationParser
       
    84 //
       
    85 
       
    86 class CMsvOperationParser : public CBaseCommandParser
       
    87 	{
       
    88 public:
       
    89 	IMPORT_C void ProcessL();
       
    90 	IMPORT_C static CMsvOperationParser* NewL(CMsvClientTest& iMsvClientTest);
       
    91 private:
       
    92 	void ConstructL();
       
    93 	CMsvOperationParser(CMsvClientTest& aMsvClientTest);
       
    94 	CMsvClientTest& iMsvClientTest;
       
    95 	};
       
    96 
       
    97 
       
    98 
       
    99 //
       
   100 //
       
   101 // CMsvTestEntryCommandParser
       
   102 //
       
   103 
       
   104 class CMsvTestEntry;
       
   105 
       
   106 class CMsvTestEntryCommandParser : public CBaseCommandParser
       
   107 	{
       
   108 public:
       
   109 	IMPORT_C void ProcessL();
       
   110 	IMPORT_C static CMsvTestEntryCommandParser* NewL(CMsvTestEntry& aTestEntry);
       
   111 
       
   112 private:
       
   113 	void ConstructL();
       
   114 	CMsvTestEntryCommandParser(CMsvTestEntry& aTestEntry);
       
   115 
       
   116 	TBool GetBooleanArgumentL(); // Leaves if arguments consist of anything apart for a single boolean
       
   117 
       
   118 private:
       
   119 	CMsvTestEntry& iTestEntry;
       
   120 	};
       
   121 
       
   122 //
       
   123 //
       
   124 // CMsvTestEntrySectionParser
       
   125 //
       
   126 
       
   127 class CMsvTestEntrySectionParser : public CBaseSectionParser
       
   128 	{
       
   129 public:
       
   130 	IMPORT_C static CMsvTestEntrySectionParser* NewL(const TDesC& aSectionName, CTestScript& aScript, CMsvTestEntry& aTestState);
       
   131 	IMPORT_C ~CMsvTestEntrySectionParser();
       
   132 	IMPORT_C void LogCommentL(const TDesC& aComment);
       
   133 
       
   134 protected:
       
   135 	IMPORT_C void ConstructL(const TDesC& aSectionName);
       
   136 	IMPORT_C CMsvTestEntrySectionParser(CTestScript& aScript, CMsvTestEntry& aTestState);
       
   137 
       
   138 protected:
       
   139 	CMsvTestEntry& iTestState;
       
   140 	};
       
   141 
       
   142 
       
   143 
       
   144 #endif