email/imap4mtm/imapprotocolcontroller/inc/cimapupdateflagoperation.h
changeset 0 72b543305e3a
child 25 fa1df4b99609
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 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 #ifndef __CIMAPUPDATEFLAGOPERATION_H__
       
    20 #define __CIMAPUPDATEFLAGOPERATION_H__
       
    21 
       
    22 #include "cimapcompoundbase.h"
       
    23 #include "cimapsession.h"
       
    24 #include "cimapsessionconsts.h"
       
    25 #include "cimaplogger.h"
       
    26 #include "imappaniccodes.h"
       
    27 
       
    28 
       
    29 
       
    30 
       
    31 /**
       
    32 Sends updated Read/unread mail status to server
       
    33 
       
    34 @internalTechnology
       
    35 @released
       
    36 */
       
    37  NONSHARABLE_CLASS (CImapUpdateFlagOperation) : public CImapCompoundBase
       
    38 	{
       
    39 public:
       
    40 	~CImapUpdateFlagOperation();
       
    41 	
       
    42 	static CImapUpdateFlagOperation* NewL(CImapSyncManager& aSyncManager,
       
    43 						 			  CMsvServerEntry& aServerEntry,
       
    44 						 			  CImapSettings& aImapSettings
       
    45 						 			  );
       
    46 	virtual void StartOperation(TRequestStatus& aStatus, CImapSession& aSession);
       
    47 	
       
    48 ////////////	virtual void StartOperation(TRequestStatus& aStatus);//
       
    49 	virtual void Progress(TImap4CompoundProgress& aCompoundProgress);
       
    50 	// Support for Bearer Mobility
       
    51 	virtual void ResumeOperationL(TRequestStatus& aStatus, CImapSession& aSession);
       
    52 	
       
    53 private:
       
    54 	CImapUpdateFlagOperation(CImapSyncManager& aSyncManager,
       
    55 						 CMsvServerEntry& aServerEntry,
       
    56 						 CImapSettings& aImapSettings
       
    57 						 );
       
    58 	void ConstructL();
       
    59 
       
    60 	TBool DoRunLoopL();
       
    61 	void DoCancel();
       
    62 
       
    63 	virtual TInt ProcessNegativeServerResponse();
       
    64 						 
       
    65 private:
       
    66 
       
    67 	RArray<TUint> iMessageUids;
       
    68 	
       
    69 	RArrayMessageFlagInfo iFlagInfoResponseArray;
       
    70 	};
       
    71 
       
    72 #endif	// __CIMAPUPDATEFLAGOPERATION_H__