common/tools/ats/smoketest/email/email/pop/inc/T_PopInvokeAsyncFunction.h
changeset 719 d5603c08781b
child 872 17498133d9ad
equal deleted inserted replaced
718:b18be44be852 719:d5603c08781b
       
     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 the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file
       
    24 */
       
    25 
       
    26 #ifndef __T_POP_INVOKE_ASYNC_FUNCTION_H__
       
    27 #define __T_POP_INVOKE_ASYNC_FUNCTION_H__
       
    28 
       
    29 // User includes
       
    30 #include "T_MsgAsyncStepPOP.h"
       
    31 #include "T_MsgSharedDataPop.h"
       
    32 
       
    33 
       
    34 // Epoc includes
       
    35 #include <pop3set.h>
       
    36 
       
    37 // Forward Declaration
       
    38 class CMsvOperation;
       
    39 class CT_MsgPopServer;
       
    40 
       
    41 // Literals Used
       
    42 _LIT(KPopInvokeAsyncFunction,"PopInvokeAsyncFunction");
       
    43 
       
    44 
       
    45 /**
       
    46 Implements a test step to populate the messages from the POP server
       
    47 */
       
    48 class CT_MsgPopInvokeAsyncFunction : public CT_MsgAsyncStepPOP
       
    49 	{
       
    50 public:
       
    51 	static CT_MsgPopInvokeAsyncFunction* NewL(CT_MsgSharedDataPop& aSharedDataPOP);
       
    52 	~CT_MsgPopInvokeAsyncFunction();
       
    53 
       
    54 	//	CTestStep implementation
       
    55 	virtual TVerdict doTestStepL();
       
    56 
       
    57 private:
       
    58 	CT_MsgPopInvokeAsyncFunction(CT_MsgSharedDataPop& aSharedDataPOP);
       
    59 
       
    60 	//	CT_MsgAsyncStep implementation
       
    61 	virtual void ProgressL(TBool bFinal);
       
    62 
       
    63 	//	MT_MsgActiveCallback implementation
       
    64 	virtual void	CancelStep();
       
    65 
       
    66 private:
       
    67 	// For the async operation
       
    68 	CMsvOperation* iOperation;
       
    69 	// For the mail populate options
       
    70 	TImPop3PopulateOptions iMailInfo;
       
    71 	};
       
    72 #endif //__T_POP_INVOKE_ASYNC_FUNCTION_H__