email/imap4mtm/imapsession/inc/cimapstore.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 __CIMAPSTORE_H__
       
    17 #define __CIMAPSTORE_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 
       
    21 #include "cimapfetchflags.h"
       
    22 
       
    23 /**
       
    24 The CImapStore class encapsulates the sending of the IMAP STORE
       
    25 command to the remote server. It parses the response data from
       
    26 the remote server.
       
    27 It derives from CImapFetchFlags because it receives exactly the same 
       
    28 information - i.e. Fetch Flags - and stores in exacely the same way.
       
    29 @internalTechnology
       
    30 @prototype
       
    31 */
       
    32 class CImapStore : public CImapFetchFlags
       
    33 	{
       
    34 public:
       
    35 	// Construction and Destruction
       
    36 	static CImapStore* NewL(CImapFolderInfo* aSelectedFolderData, TInt aLogId, const TDesC8& aSequenceSet, const TDesC8& aMessageDataItems, const TDesC8& aValue, TBool aUseSilent, RArrayMessageFlagInfo& aOutMessageFlagInfo);
       
    37 	~CImapStore();
       
    38 			
       
    39 private:
       
    40 	CImapStore(CImapFolderInfo* aSelectedFolderData, TInt aLogId, RArrayMessageFlagInfo& aOutMessageFlagInfo);
       
    41 	void ConstructL(const TDesC8& aSequenceSet, const TDesC8& aMessageDataItems, const TDesC8& aValue, TBool aUseSilent);
       
    42 
       
    43 	// Implements CImapCommand
       
    44 	void SendMessageL(TInt aTagId, MOutputStream& aStream);
       
    45 
       
    46 private:
       
    47 	// data for send
       
    48 	HBufC8* iMessageDataItems;
       
    49 	HBufC8* iValue;
       
    50 	TBool iUseSilent;
       
    51 	};
       
    52 		 
       
    53 #endif // __CIMAPSTORE_H__