email/imap4mtm/imapsession/src/cimaplsub.cpp
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 #include "cimaplsub.h"
       
    17 #include "cimapsessionconsts.h"
       
    18 
       
    19 // IMAP LSUB command
       
    20 _LIT8(KTxtCommandFormatLSub, "%d LSUB %S %S\r\n");
       
    21 
       
    22 CImapLsub* CImapLsub::NewL(CImapFolderInfo* aSelectedFolderData, TInt aLogId, const TDesC& aReferenceName, const TDesC& aMailboxName, RArrayImapListFolderInfo& aFolderList, const CImapSettings& aImapSettings)
       
    23 	{
       
    24 	CImapLsub* self = new (ELeave) CImapLsub(aSelectedFolderData, aLogId, aFolderList, aImapSettings);
       
    25 	CleanupStack::PushL(self);
       
    26 	self->ConstructL(aReferenceName, aMailboxName);
       
    27 	CleanupStack::Pop();
       
    28 	return self;		
       
    29 	}	
       
    30 
       
    31 CImapLsub::CImapLsub(CImapFolderInfo* aSelectedFolderData, TInt aLogId, RArrayImapListFolderInfo& aFolderList, const CImapSettings& aImapSettings) 
       
    32 	: CImapListBase(aSelectedFolderData, aLogId, aFolderList, aImapSettings, KTxtCommandFormatLSub, KImapTxtLSub)
       
    33 	{}