email/email/pop/inc/t_cpop3clientmtm.h
author Maciej Seroka <maciejs@symbian.org>
Fri, 05 Mar 2010 11:15:10 +0000
branchSymbian3
changeset 18 147b85a37c23
permissions -rw-r--r--
Fixed Email Smoke Test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     1
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     2
// All rights reserved.
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     3
// This component and the accompanying materials are made available
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     5
// which accompanies this distribution, and is available
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     7
//
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     8
// Initial Contributors:
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    10
//
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    11
// Contributors:
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    12
//
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    13
// Description:
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    14
//
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    15
 
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    16
#ifndef __T_CPOP3CLIENTMTM_H__
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    17
#define __T_CPOP3CLIENTMTM_H__
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    18
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    19
/* User includes */
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    20
#include "T_MsgSyncStepPop.h"
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    21
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    22
/* Literals Used */
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    23
_LIT(KUnitTestCPop3ClientMtm,"UnitTestCPop3ClientMtm");
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    24
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    25
/*
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    26
 * A Unit test case to check the functionality of the API's of class CImap4ClientMtm 
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    27
 */
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    28
class CT_CPop3ClientMtm : public CT_MsgSyncStepPOP, MMsvSessionObserver
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    29
	{
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    30
public:
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    31
	CT_CPop3ClientMtm(CT_MsgSharedDataPop& aSharedDataPOP);
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    32
	~CT_CPop3ClientMtm();
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    33
	void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3);
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    34
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    35
private:
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    36
	void DisplayMsgEntryList(const RArray<TMsvEntry>& aMessageEntries);
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    37
	void TestValidateMessageL();
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    38
	void TestReplyL();
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    39
	void TestKErrNotSupportedAPI();
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    40
	void TestAddAddresseeL();
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    41
	void TestRemoveAddresseeL();
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    42
	/* CTestStep implementation */
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    43
	virtual TVerdict doTestStepL();	
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    44
	TMsvId CreateMessageL();
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    45
private:
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    46
	CMsvSession *iSession;
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    47
	};
147b85a37c23 Fixed Email Smoke Test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    48
#endif /*__T_CPOP3CLIENTMTM_H__*/