email/imap4mtm/imapsession/inc/cimapservergreetinginfo.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 __CIMAPSERVERGREETINGINFO_H__
       
    17 #define __CIMAPSERVERGREETINGINFO_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 /**
       
    22 Represents the contents of the initial greeting that
       
    23 is received when a connection is made to the server.
       
    24 @internalTechnology
       
    25 @prototype
       
    26 */
       
    27 class CImapServerGreetingInfo : public CBase
       
    28 	{
       
    29 	public:
       
    30 		enum TResponseTag
       
    31 			{
       
    32 			/**
       
    33 			A server greeting response has not yet been read.
       
    34 			*/
       
    35 			ETagNone,
       
    36 			/**
       
    37 			The server connection initialised in the Non Authenticated state.
       
    38 			*/
       
    39 			ETagOk,
       
    40 			/**
       
    41 			The server connection initialised in the Authenticated state.
       
    42 			*/
       
    43 			ETagPreAuth,
       
    44 			/**
       
    45 			The server has refused the connection.
       
    46 			*/
       
    47 			ETagBye
       
    48 			};
       
    49 	
       
    50 		IMPORT_C static CImapServerGreetingInfo* NewL();
       
    51 		
       
    52 		IMPORT_C TResponseTag ResponseTag() const;
       
    53 		IMPORT_C void SetResponseTag(TResponseTag aResponseTag);
       
    54 		
       
    55 	private:
       
    56 		CImapServerGreetingInfo();
       
    57 		
       
    58 	private:
       
    59 		TResponseTag iResponseTag;
       
    60 	};
       
    61 
       
    62 #endif // __CIMAPSERVERGREETINGINFO_H__