messagingfw/msgtestfw/TestActions/Email/Imap4/inc/CMtfDoInvokeAsyncFunctionTestAction.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 /**
       
     2 * Copyright (c) 2004-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 "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file 
       
    22  @internalTechnology 
       
    23 */
       
    24 
       
    25 
       
    26 #ifndef __CMTF_TEST_ACTION_DO_INVOKE_ASYNC_FUNCTION_TEST_ACTION_H__
       
    27 #define __CMTF_TEST_ACTION_DO_INVOKE_ASYNC_FUNCTION_TEST_ACTION_H__
       
    28 
       
    29 
       
    30 // EPOC include
       
    31 #include <impcmtm.h>
       
    32 
       
    33 
       
    34 // User include
       
    35 #include "CMtfTestAction.h"
       
    36 
       
    37 // Forward declaration
       
    38 class CMtfTestParameter;
       
    39 
       
    40 
       
    41 /**
       
    42   Abstract base class which calls the asynchronous IMAP4-specific commands.
       
    43   The class stores the CMsvOperation object which control asynchronous commands 
       
    44   of IMAP4.
       
    45   
       
    46   InvokeAsyncImap4PopulateCommandL() function in the class can be called to 
       
    47   invoke IMAP4 commands related to Populate mails.
       
    48   
       
    49   Derived classes need to override ExecuteActionL() of CMtfTestAction.
       
    50   This class implements the DoCancel() and RunL() methods.
       
    51 
       
    52   @internalTechnology
       
    53 */
       
    54 class CMtfDoInvokeAsyncFunctionTestAction : public CMtfTestAction
       
    55 	{
       
    56 protected:
       
    57 	// Constructor
       
    58 	CMtfDoInvokeAsyncFunctionTestAction(CMtfTestCase& aTestCase);
       
    59 
       
    60 	// Invokes the asynchronous IMAP4 command related to Populate All mails, New mails
       
    61 	// and mail selection
       
    62 	void InvokeAsyncImap4PopulateCommandL(TImap4Cmds			aImap4Command,
       
    63 										  CMsvEntrySelection&	aMailSelection
       
    64 										 );
       
    65 	// Overriding the virtual function from CMtfTestAction
       
    66 	virtual void DoCancel();
       
    67 
       
    68 	// Overriding the virtual function from CMtfTestAction	
       
    69 	virtual void RunL();
       
    70 
       
    71 protected:
       
    72 	/** Interface for controlling asynchronous commands */
       
    73 	CMsvOperation* iOperation;
       
    74 	};
       
    75 
       
    76 #endif //__CMTF_TEST_ACTION_DO_INVOKE_ASYNC_FUNCION_TEST_ACTION_H__