messagingfw/msgtestfw/TestActions/Email/Imap4/inc/CMtfDoInvokeAsyncFunctionWithSelectionTestAction.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_WITH_SELECTION_TEST_ACTION_H__
       
    27 #define __CMTF_TEST_ACTION_DO_INVOKE_ASYNC_FUNCTION_WITH_SELECTION_TEST_ACTION_H__
       
    28 
       
    29 
       
    30 // User include
       
    31 #include "CMtfDoInvokeAsyncFunctionTestAction.h"
       
    32 
       
    33 
       
    34 
       
    35 /**
       
    36   Abstrast base class for Test Actions that invoke IMAP4 commands related
       
    37   to for copying, moving or populating a selection of messages.
       
    38   
       
    39   The parameters requried for the CImap4ClientMtm::InvokeAsyncFucntionL() are 
       
    40   obtained and the call to CImap4ClientMtm::InvokeAsyncFucntionL() is made by calling
       
    41   the base class CMtfDoInvokeAsyncFunctionTestAction::InvokeAsyncImap4PopulateCommandL()
       
    42   function.
       
    43   
       
    44   Derived class need to override ExecuteActionL() and RunL() functions.
       
    45   DoCancel() function need not be overridden.
       
    46 
       
    47   @internalTechnology
       
    48 */
       
    49 class CMtfDoInvokeAsyncFunctionWithSelectionTestAction : 
       
    50 							public CMtfDoInvokeAsyncFunctionTestAction
       
    51 	{
       
    52 private:
       
    53 	void DoCancel();
       
    54 protected:	
       
    55 	// Constructor
       
    56 	CMtfDoInvokeAsyncFunctionWithSelectionTestAction(CMtfTestCase& aTestCase);
       
    57 	// Destructor
       
    58 	virtual ~CMtfDoInvokeAsyncFunctionWithSelectionTestAction();
       
    59 
       
    60 	// Invokes asynchronous IMAP4 command
       
    61 	void ExecuteIMAP4CommandL(TImap4Cmds aImap4Command);
       
    62 	
       
    63 protected:
       
    64 	CMsvEntrySelection* iMailSelection;
       
    65 	};
       
    66 
       
    67 #endif  //__CMTF_TEST_ACTION_DO_INVOKE_ASYNC_FUNCTION_WITH_SELECTION_TEST_ACTION_H__