email/imap4mtm/imapsession/inc/cimapservergreeting.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 __CIMAPSERVERGREETING_H__
       
    17 #define __CIMAPSERVERGREETING_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 
       
    21 #include "cimapcommand.h"
       
    22 
       
    23 // Forward Declaration
       
    24 class CImapServerGreetingInfo;
       
    25 
       
    26 /**
       
    27 The CImapServerGreeting class encapsulates the receipt of the inital server greeting that
       
    28 is sent from the remote server when a client connection is made.
       
    29 
       
    30 Data received in the server greeting is stored in the CImapServerGreetingInfo object that
       
    31 is passed into this class on construction.
       
    32 
       
    33 This class does not send any messages.  It's SendMessageL() implementation is empty.
       
    34 
       
    35 @internalTechnology
       
    36 @prototype
       
    37 */
       
    38 class CImapServerGreeting : public CImapCommandEx
       
    39 	{
       
    40 public:
       
    41 	// Construction and Destruction
       
    42 	static CImapServerGreeting* NewL(CImapFolderInfo* aSelectedFolderData, TInt aLogId, CImapServerGreetingInfo& aServerGreetingInfo);
       
    43 	~CImapServerGreeting();
       
    44 	
       
    45 private:
       
    46 	CImapServerGreeting(CImapFolderInfo* aSelectedFolderData, TInt aLogId, CImapServerGreetingInfo& aServerGreetingInfo);
       
    47 	void ConstructL();
       
    48 	
       
    49 	// Implements CImapCommand
       
    50 	void SendMessageL(TInt aTagId, MOutputStream& aStream);
       
    51 	TParseBlockResult ParseUntaggedResponseL();
       
    52 	
       
    53 private:
       
    54 	CImapServerGreetingInfo& iServerGreetingInfo;
       
    55 	};
       
    56 			 
       
    57 #endif // __CIMAPSERVERGREETING_H__