email/imap4mtm/imapsession/inc/cimapservereventwait.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 __CIMAPSERVEREVENTWAIT_H__
       
    17 #define __CIMAPSERVEREVENTWAIT_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 
       
    21 #include "cimapcommand.h"
       
    22 
       
    23 /**
       
    24 This class wait for and handles unsolicited untagged responses from the server.
       
    25 See section 5.3 of RFC3501.
       
    26 The base class handles receipt of untagged responses.
       
    27 However in our constructor, we set iCompleteOnAnyResponse to ETrue, causing the command 
       
    28 to complete upon receipt of any untagged response.
       
    29 @internalTechnology
       
    30 @prototype
       
    31 */
       
    32 class CImapServerEventWait : public CImapCommandEx
       
    33 	{
       
    34 public:
       
    35 	// Construction and Destruction
       
    36 	static CImapServerEventWait* NewL(CImapFolderInfo* aSelectedFolderData, TInt aLogId);
       
    37 	~CImapServerEventWait();
       
    38 			
       
    39 private:
       
    40 	CImapServerEventWait(CImapFolderInfo* aSelectedFolderData, TInt aLogId);
       
    41 	void ConstructL();
       
    42 	
       
    43 	// Implements CImapCommand
       
    44 	TBool CanCompleteFlushNow() const;
       
    45 	void SendMessageL(TInt aTagId, MOutputStream& aStream);
       
    46 	TBool ParseTaggedResponseL(TInt aTagId);
       
    47 	};
       
    48 			 
       
    49 #endif // __CIMAPSERVEREVENTWAIT_H__