email/pop3andsmtpmtm/popservermtm/inc/PopsDele.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // popservermtm module header
       
    15 // @internalComponent
       
    16 // @released
       
    17 // 
       
    18 //
       
    19 
       
    20 #ifndef __POPSDELE_H__
       
    21 #define __POPSDELE_H__
       
    22 
       
    23 #include <pop3set.h>
       
    24 #include <mentact.h>
       
    25 #include <popsmtm.h>
       
    26 
       
    27 class CImPop3Session;
       
    28 class CImPop3Dele;
       
    29 
       
    30 //
       
    31 // CImPop3RefreshOperation
       
    32 // Pop3 delete from mailbox
       
    33 // 
       
    34 //
       
    35 //
       
    36 class CImPop3Delete : public  CMsgActive
       
    37 	{
       
    38 public:
       
    39 	static CImPop3Delete *NewL(CMsvServerEntry&, const CMsvEntrySelection&, CImPop3Session*, TMsvId aServiceId);
       
    40 	~CImPop3Delete();
       
    41 
       
    42 	void Start(TRequestStatus& aStatus);
       
    43 	TPop3Progress Progress();
       
    44 	void Pause();
       
    45 	void ResumeL(CImPop3Session* aPopSession, TRequestStatus& aStatus);
       
    46 	void CancelAllowResume();
       
    47 	
       
    48 private:
       
    49 	CImPop3Delete(CMsvServerEntry&, CImPop3Session*, TMsvId aServiceId);
       
    50 	void ConstructL(const CMsvEntrySelection&);
       
    51 
       
    52 	void DoDelete();
       
    53 
       
    54 	void DoRunL();
       
    55 	void DoCancel();
       
    56 
       
    57 private:
       
    58 	CMsvEntrySelection*				iSource;
       
    59 	CMsvServerEntry&				iRemoteEntry;
       
    60 	CImPop3Session*					iPopSession;
       
    61 	CImPop3Dele*					iPopDelete;
       
    62 
       
    63 	TPop3Progress					iProgress;
       
    64 	TInt							iMsgCtr;
       
    65 	TBool							iMigratingToNewBearer;
       
    66 	TBool							iCancelToMigrate;
       
    67 	TMsvId iServiceId;
       
    68 	};
       
    69 
       
    70 #endif