email/imap4mtm/imapprotocolcontroller/inc/cimapcompoundsynctree.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 //
       
    15 
       
    16 #ifndef __CIMAPCOMPOUNDSYNCTREE_H__
       
    17 #define __CIMAPCOMPOUNDSYNCTREE_H__
       
    18 
       
    19 #include "cimapcompoundbase.h"
       
    20 
       
    21 // Forward declarations
       
    22 class CImapFolder;
       
    23 class CImapSession;
       
    24 
       
    25 /**
       
    26 Compound operation object for performing the necessary sequence of commands
       
    27 to synchronise the local mirror of the remote mailbox tree.
       
    28 
       
    29 @internalTechnology
       
    30 @prototype
       
    31 */
       
    32 class CImapCompoundSyncTree : public CImapCompoundBase
       
    33 	{
       
    34 public:
       
    35 	~CImapCompoundSyncTree();
       
    36 	
       
    37 	static CImapCompoundSyncTree* NewL(CImapSyncManager& aSyncManager, CMsvServerEntry& aServerEntry, CImapSettings& aImapSettings );
       
    38 
       
    39 	virtual void StartOperation(TRequestStatus& aStatus, CImapSession& aSession);
       
    40 	virtual void Progress(TImap4CompoundProgress& aCompoundProgress);
       
    41 	
       
    42 	// Support for Bearer Mobility
       
    43 	virtual void ResumeOperationL(TRequestStatus& aStatus, CImapSession& aSession);
       
    44 
       
    45 private:
       
    46 	CImapCompoundSyncTree(CImapSyncManager& aSyncManager, CMsvServerEntry& aServerEntry, CImapSettings& aImapSettings );
       
    47 	void ConstructL();
       
    48 
       
    49 	TBool DoRunLoopL();
       
    50 	void DoCancel();
       
    51 
       
    52 	virtual TInt ProcessNegativeServerResponse();
       
    53 private:
       
    54 	};
       
    55 
       
    56 #endif	// __CIMAPCOMPOUNDSYNCTREE_H__