messagingfw/msgtest/integration/email/inc/smtptests.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 __SMTPTESTS_H
       
    17 #define __SMTPTESTS_H
       
    18 
       
    19 #include "emailsmoke.h"
       
    20 #include "emailsmokecommands.h"
       
    21 
       
    22 //
       
    23 //
       
    24 // CSmtpClientTest
       
    25 //
       
    26 
       
    27 class CSmtpClientTest : public CEmailClientTest
       
    28 	{
       
    29 public:
       
    30 	static CSmtpClientTest* NewL(CEmailTestUtils& aTestUtils, RTest& aTest);
       
    31 	virtual ~CSmtpClientTest();
       
    32 
       
    33 protected:
       
    34 	virtual void ConstructL();
       
    35 	CSmtpClientTest(CEmailTestUtils& aTestUtils, RTest& aTest);
       
    36 	};
       
    37 
       
    38 
       
    39 //
       
    40 //
       
    41 // CCreateSmtpClientMtm
       
    42 //
       
    43 
       
    44 class CCreateSmtpClientMtm : public CBase, public MBaseTestState
       
    45 	{
       
    46 public:
       
    47 	void StartL(TRequestStatus& aStatus);
       
    48 	CCreateSmtpClientMtm(CEmailClientTest& aTest);
       
    49 
       
    50 private:
       
    51 	CEmailClientTest& iTest;
       
    52 	};
       
    53 
       
    54 
       
    55 
       
    56 
       
    57 //
       
    58 //
       
    59 // CCreateSmtpService
       
    60 //
       
    61 
       
    62 class CCreateSmtpService : public CCreateEmailService
       
    63 	{
       
    64 public:
       
    65 	static CCreateSmtpService* NewL(CEmailClientTest& aTestHarness);
       
    66 	void StartL(TRequestStatus& aStatus);
       
    67 	~CCreateSmtpService();
       
    68 	CImSmtpSettings& Settings();
       
    69 
       
    70 private:
       
    71 	void ConstructL();
       
    72 	CCreateSmtpService(CEmailClientTest& aTestHarness);
       
    73 
       
    74 private:
       
    75 	CEmailClientTest& iTestHarness;
       
    76 	CImSmtpSettings* iSettings;
       
    77 	};
       
    78 
       
    79 
       
    80 //
       
    81 //
       
    82 // CCheckSmtpOperation
       
    83 //
       
    84 
       
    85 class CCheckSmtpOperation : public CBase, public MBaseTestState
       
    86 	{
       
    87 public:
       
    88 	CCheckSmtpOperation(TInt aExpectedStatus, CSmtpClientTest& aTestHarness);
       
    89 	void StartL(TRequestStatus& aStatus);
       
    90 
       
    91 private:
       
    92 	CSmtpClientTest& iTestHarness;
       
    93 	TInt iExpectedStatus;
       
    94 	};
       
    95 
       
    96 
       
    97 //
       
    98 //
       
    99 // CSmtpUseService
       
   100 //
       
   101 
       
   102 class CSmtpUseService : public CBase, public MBaseTestState
       
   103 	{
       
   104 public:
       
   105 	CSmtpUseService(CSmtpClientTest& aTestHarness);
       
   106 	void StartL(TRequestStatus& aStatus);
       
   107 
       
   108 private:
       
   109 	CSmtpClientTest& iTestHarness;
       
   110 	};
       
   111 
       
   112 
       
   113 //
       
   114 //
       
   115 // CImapConnectAndMonitor
       
   116 //
       
   117 
       
   118 class CCopySelectionAndMonitor : public CActive, public MBaseTestState
       
   119 	{
       
   120 public:
       
   121 	CCopySelectionAndMonitor(CEmailClientTest& aParentTestHarness, TBool aSynchronise = EFalse);
       
   122 	void StartL(TRequestStatus& aStatus);
       
   123 	void RunL();
       
   124 	void DoCancel();
       
   125 	~CCopySelectionAndMonitor();
       
   126 
       
   127 private:
       
   128 	void LogCommentFormat(TRefByValue<const TDesC> format,...);
       
   129 
       
   130 private:
       
   131 	CEmailClientTest& iParentTestHarness;
       
   132 	TRequestStatus* iReportStatus;
       
   133 	TBool iSynchronise;
       
   134 	TBool iConnectionError;
       
   135 	};
       
   136 
       
   137 
       
   138 
       
   139 #endif