email/imap4mtm/imapsession/inc/cimapfetchflags.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 __CIMAPFETCHFLAGS_H__
       
    17 #define __CIMAPFETCHFLAGS_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 #include "cimapcommand.h"
       
    21 #include "tmessageflaginfo.h"
       
    22 
       
    23 /**
       
    24 Sends a FETCH FLAGS command to the IMAP server and processes the response.
       
    25 This is the base class for CImapStore, which can also receive FETCH FLAGS responses.
       
    26 @internalTechnology
       
    27 @prototype
       
    28 */
       
    29 class CImapFetchFlags : public CImapCommandEx
       
    30 	{
       
    31 public:
       
    32 	// Construction and Destruction
       
    33 	static CImapFetchFlags* NewL(CImapFolderInfo* aSelectedFolderData, TInt aLogId, const TDesC8& aSequenceSet, RArrayMessageFlagInfo& aOutMessageFlagInfo);
       
    34 	~CImapFetchFlags();
       
    35 	
       
    36 protected:
       
    37 	CImapFetchFlags(CImapFolderInfo* aSelectedFolderData, TInt aLogId, RArrayMessageFlagInfo& aOutMessageFlagInfo);
       
    38 	void ConstructL(const TDesC8& aSequenceSet);
       
    39 
       
    40 private:
       
    41 	// Implements CImapCommand
       
    42 	void SendMessageL(TInt aTagId, MOutputStream& aStream);
       
    43 	TParseBlockResult ParseUntaggedResponseL();
       
    44 
       
    45 	void ProcessFetchFlagsResponseL();
       
    46 
       
    47 protected:
       
    48 	// data for send
       
    49 	HBufC8* iSequenceSet;
       
    50 	
       
    51 private:
       
    52 	// data for receive
       
    53 	RArrayMessageFlagInfo& iOutMessageFlagInfo;
       
    54 	};
       
    55 			 
       
    56 #endif // __CIMAPFETCHFLAGS_H__