messagingfw/msgtest/integration/email/inc/poptestparsers.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 1999-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 __POPTESTPARSERS_H
       
    17 #define __POPTESTPARSERS_H
       
    18 
       
    19 #include "emailsmokeparse.h"
       
    20 #include "poptests.h"
       
    21 
       
    22 //
       
    23 //
       
    24 // CNewPop3TestCommandParser
       
    25 //
       
    26 
       
    27 class CNewPop3TestCommandParser : public CBaseCommandParser
       
    28 	{
       
    29 public:
       
    30 	void ProcessL();
       
    31 	static CNewPop3TestCommandParser* NewL(CTestScript& aScript, CEmailClientTest& aEmailClientTest);
       
    32 private:
       
    33 	void ConstructL();
       
    34 	CNewPop3TestCommandParser(CTestScript& aScript, CEmailClientTest& CEmailClientTest);
       
    35 	CEmailClientTest& iEmailClientTest;
       
    36 	CTestScript& iScript;
       
    37 	};
       
    38 
       
    39 
       
    40 
       
    41 //
       
    42 //
       
    43 // CPop3ClientSectionParser
       
    44 //
       
    45 
       
    46 class CPop3ClientSectionParser : public CEmailClientSectionParser
       
    47 	{
       
    48 public:
       
    49 	static CPop3ClientSectionParser* NewL(CPop3ClientTest& aPop3Test, CTestScript& aScript, const TDesC& aNewSectionName);
       
    50 
       
    51 protected:
       
    52 	void ConstructL(const TDesC& aNewSectionName);
       
    53 	CPop3ClientSectionParser(CPop3ClientTest& aPop3Test, CTestScript& aScript);
       
    54 
       
    55 private:
       
    56 	CPop3ClientTest& iPop3Test;
       
    57 	};
       
    58 
       
    59 
       
    60 
       
    61 //
       
    62 //
       
    63 // CPop3ServiceCommandParser
       
    64 //
       
    65 
       
    66 class CPop3ServiceCommandParser : public CBaseCommandParser
       
    67 	{
       
    68 public:
       
    69 	void ProcessL();
       
    70 	static CPop3ServiceCommandParser* NewL(CTestScript& aScript, CPop3ClientTest& aPop3ClientTest);
       
    71 private:
       
    72 	void ConstructL();
       
    73 	CPop3ServiceCommandParser(CTestScript& aScript, CPop3ClientTest& aPop3ClientTest);
       
    74 	CPop3ClientTest& iPop3ClientTest;
       
    75 	CTestScript& iScript;
       
    76 	};
       
    77 
       
    78 
       
    79 
       
    80 //
       
    81 //
       
    82 // CPop3ServiceSectionParser
       
    83 //
       
    84 
       
    85 class CImPop3Settings;
       
    86 
       
    87 class CPop3ServiceSectionParser : public CEmailServiceSectionParser
       
    88 	{
       
    89 public:
       
    90 	static CPop3ServiceSectionParser* NewL(CTestScript& aScript, CEmailClientTest& aTestHarness, const TDesC& aSectionName);
       
    91 	~CPop3ServiceSectionParser();
       
    92 
       
    93 protected:
       
    94 	void ConstructL(const TDesC& aSectionName);
       
    95 	CPop3ServiceSectionParser(CTestScript& aScript, CEmailClientTest& aTestHarness);
       
    96 	};
       
    97 
       
    98 
       
    99 
       
   100 //
       
   101 //
       
   102 // CPop3ServiceCommands
       
   103 //
       
   104 
       
   105 class CCreatePop3Service;
       
   106 
       
   107 class CPop3ServiceCommands : public CBaseCommandParser
       
   108 	{
       
   109 public:
       
   110 	static CPop3ServiceCommands* NewL(CCreatePop3Service& aTestState);
       
   111 	void ProcessL();
       
   112 
       
   113 private:
       
   114 	CPop3ServiceCommands(CCreatePop3Service& aTestState);
       
   115 	void ConstructL();
       
   116 
       
   117 private:
       
   118 	CCreatePop3Service& iTestState;
       
   119 	};
       
   120 
       
   121 
       
   122 
       
   123 
       
   124 //
       
   125 //
       
   126 // CPop3OperationParser
       
   127 //
       
   128 
       
   129 class CPop3OperationParser : public CBaseCommandParser
       
   130 	{
       
   131 public:
       
   132 	void ProcessL();
       
   133 	static CPop3OperationParser* NewL(CPop3ClientTest& iPop3ClientTest);
       
   134 private:
       
   135 	void ConstructL();
       
   136 	CPop3OperationParser(CPop3ClientTest& aPop3ClientTest);
       
   137 	CPop3ClientTest& iPop3ClientTest;
       
   138 	};
       
   139 
       
   140 
       
   141 
       
   142 
       
   143 
       
   144 //
       
   145 //
       
   146 // CPop3CheckStatusParser
       
   147 //
       
   148 
       
   149 class CPop3CheckStatusParser : public CBaseCommandParser
       
   150 	{
       
   151 public:
       
   152 	static CPop3CheckStatusParser* NewL(CPop3ClientTest& aPop3TestHarness);
       
   153 	void ProcessL();
       
   154 
       
   155 private:
       
   156 	CPop3CheckStatusParser(CPop3ClientTest& aPop3TestHarness);
       
   157 	void ConstructL();
       
   158 
       
   159 private:
       
   160 	CPop3ClientTest& iTestHarness;
       
   161 	};
       
   162 
       
   163 
       
   164 
       
   165 
       
   166 #endif
       
   167