diff -r 000000000000 -r 72b543305e3a email/imum/Mtms/Inc/SmtpCancelSendingOp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/email/imum/Mtms/Inc/SmtpCancelSendingOp.h Thu Dec 17 08:44:11 2009 +0200 @@ -0,0 +1,94 @@ +/* +* Copyright (c) 2006 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: +* SMTP Cancel Sending operation +* +*/ + +#ifndef __SMTPCANCELSENDINGOP_H__ +#define __SMTPCANCELSENDINGOP_H__ + +#include // CImumInternalApi + +#include "SelectionOperationBase.h" + + +class CMsvEmailConnectionProgressProvider; +class CMtmStore; + +/** +* SMTP Cancel Sending operation +*/ +class CSmtpCancelSendingOp : public CSelectionOperationBase + { + public: + /** + * + */ + static CSmtpCancelSendingOp* NewL( + CImumInternalApi& aMailboxApi, + TRequestStatus& aObserverRequestStatus, + CMsvEntrySelection* aEntrySelection ); + + /** + * Destructor + */ + virtual ~CSmtpCancelSendingOp(); + + /** + * + */ + virtual const TDesC8& ProgressL(); + private: + + /** + * C++ constructor + */ + CSmtpCancelSendingOp( + CImumInternalApi& aMailboxApi, + TRequestStatus& aObserverRequestStatus, + CMsvEntrySelection* aEntrySelection ); + + /** + * Symbian OS constructor + */ + void ConstructL(); + + /** + * + */ + virtual CMsvOperation* CreateOperationL(TMsvId aMsvId); + + /** + * + */ + virtual TBool StopOnError(TInt aErrorCode); + + /** + * + */ + virtual void OpRunError(TInt aErrorCode); + + /** + * + */ + virtual TInt CheckForError(const TDesC8& aProgress); + + private: // Data + TPckgBuf iProgress; + CMsvEntry* iEntry; + }; + + +#endif