diff -r 9f5ae1728557 -r db3f5fa34ec7 messagingfw/msgtestfw/TestActions/Email/Imap4/inc/CMtfDoInvokeAsyncFunctionWithSelectionTestAction.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingfw/msgtestfw/TestActions/Email/Imap4/inc/CMtfDoInvokeAsyncFunctionWithSelectionTestAction.h Wed Nov 03 22:41:46 2010 +0530 @@ -0,0 +1,67 @@ +/** +* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + +/** + @file + @internalTechnology +*/ + + +#ifndef __CMTF_TEST_ACTION_DO_INVOKE_ASYNC_FUNCTION_WITH_SELECTION_TEST_ACTION_H__ +#define __CMTF_TEST_ACTION_DO_INVOKE_ASYNC_FUNCTION_WITH_SELECTION_TEST_ACTION_H__ + + +// User include +#include "CMtfDoInvokeAsyncFunctionTestAction.h" + + + +/** + Abstrast base class for Test Actions that invoke IMAP4 commands related + to for copying, moving or populating a selection of messages. + + The parameters requried for the CImap4ClientMtm::InvokeAsyncFucntionL() are + obtained and the call to CImap4ClientMtm::InvokeAsyncFucntionL() is made by calling + the base class CMtfDoInvokeAsyncFunctionTestAction::InvokeAsyncImap4PopulateCommandL() + function. + + Derived class need to override ExecuteActionL() and RunL() functions. + DoCancel() function need not be overridden. + + @internalTechnology +*/ +class CMtfDoInvokeAsyncFunctionWithSelectionTestAction : + public CMtfDoInvokeAsyncFunctionTestAction + { +private: + void DoCancel(); +protected: + // Constructor + CMtfDoInvokeAsyncFunctionWithSelectionTestAction(CMtfTestCase& aTestCase); + // Destructor + virtual ~CMtfDoInvokeAsyncFunctionWithSelectionTestAction(); + + // Invokes asynchronous IMAP4 command + void ExecuteIMAP4CommandL(TImap4Cmds aImap4Command); + +protected: + CMsvEntrySelection* iMailSelection; + }; + +#endif //__CMTF_TEST_ACTION_DO_INVOKE_ASYNC_FUNCTION_WITH_SELECTION_TEST_ACTION_H__