email/imap4mtm/imapsession/inc/cimapcapabilityinfo.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 __CIMAPCAPABILITYINFO_H__
       
    17 #define __CIMAPCAPABILITYINFO_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 /**
       
    22 Stores the capability information provided by the server.
       
    23 @internalTechnology
       
    24 @prototype
       
    25 */
       
    26 class CImapCapabilityInfo : public CBase
       
    27 	{
       
    28 public:
       
    29 	enum TImapCapabilityFlags {	
       
    30 
       
    31 				EVersion4Rev1	= 0x1,
       
    32 				EStartTls		= 0x2,	
       
    33 				ELoginDisabled	= 0x4,
       
    34 				EIdle			= 0x8,
       
    35 				EAuthPlain		= 0x10,
       
    36 #if (defined SYMBIAN_EMAIL_CAPABILITY_SUPPORT)
       
    37 				EBinaryCap		= 0x20,
       
    38 				EAuthCramMd5	= 0x40,
       
    39 				EAuthLogin		= 0x80,
       
    40 #endif
       
    41 				};
       
    42 
       
    43 	IMPORT_C static CImapCapabilityInfo* NewL();
       
    44 	~CImapCapabilityInfo();
       
    45    
       
    46 	IMPORT_C void SetFlag(TImapCapabilityFlags aFlagId, TBool aValue);
       
    47 	IMPORT_C TBool QueryFlag(const TImapCapabilityFlags aFlagId) const;
       
    48 
       
    49 	// Not exported.
       
    50 	void Reset();
       
    51 
       
    52 private:
       
    53 	CImapCapabilityInfo();
       
    54 
       
    55 private:
       
    56 	/**
       
    57 	Bitwise combinaton of TImapCapabilityFlags.
       
    58 	*/
       
    59 	TUint8	iFlags;
       
    60 	};
       
    61 	
       
    62 #endif // __CIMAPCAPABILITYINFO_H__