email/imap4mtm/imapsession/inc/cimapselect.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 
       
    17 #ifndef __CIMAPSELECT_H__
       
    18 #define __CIMAPSELECT_H__
       
    19 
       
    20 #include <e32std.h>
       
    21 #include "cimapcommand.h"
       
    22 
       
    23 // Forward Declaration
       
    24 class CImapFolderInfo;
       
    25 
       
    26 /**
       
    27 The CImapSelect class encapsulates the sending of the IMAP select
       
    28 command to the remote server. It will also parse the response data from
       
    29 the remote server.
       
    30 @internalTechnology
       
    31 @prototype
       
    32 */
       
    33 class CImapSelect : public CImapCommandEx
       
    34 	{
       
    35 public:
       
    36 	// Construction and Destruction
       
    37 	static CImapSelect* NewL(CImapFolderInfo* aSelectedFolderData, TInt aLogId);
       
    38 	~CImapSelect();
       
    39 	
       
    40 protected:
       
    41 	// Constructors need to be accessible from CImapExamine
       
    42 	CImapSelect(CImapFolderInfo* aSelectedFolderData, TInt aLogId);
       
    43 	void ConstructL();
       
    44 	
       
    45 	// Implements CImapCommand
       
    46 	void SendMessageL(TInt aTagId, MOutputStream& aStream);
       
    47 	TBool ParseTaggedResponseL(TInt aTagId);
       
    48 	TParseBlockResult ParseUntaggedResponseL();
       
    49 	
       
    50 private:
       
    51 	void ParseFlagsL(TDesC8& aFlags);
       
    52 	void ParseUntaggedOkL();
       
    53 	};
       
    54 			 
       
    55 #endif // __CIMAPSELECT_H__