email/imap4mtm/imapsession/inc/cimapsearch.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 
       
    17 #ifndef __CIMAPSEARCH_H__
       
    18 #define __CIMAPSEARCH_H__
       
    19 
       
    20 #include <e32std.h>
       
    21 #include "cimapcommand.h"
       
    22 
       
    23 
       
    24 /**
       
    25 The CImapSearch class encapsulates the sending of the IMAP SEARCH
       
    26 command to the remote server. It will also parse the response data from
       
    27 the remote server.
       
    28 @internalTechnology
       
    29 @prototype
       
    30 */
       
    31 class CImapSearch : public CImapCommandEx
       
    32 	{
       
    33 public:
       
    34 	// Construction and Destruction
       
    35 	static CImapSearch* NewL(CImapFolderInfo* aSelectedFolderData, TInt aLogId, const TDesC8& aSearchCriteria, RArray<TUint>& aMatchingMessageIds);
       
    36 	~CImapSearch();
       
    37 		
       
    38 private:
       
    39 	CImapSearch(CImapFolderInfo* aSelectedFolderData, TInt aLogId, RArray<TUint>& aMatchingMessageIds);
       
    40 	void ConstructL(const TDesC8& aSearchCriteria);
       
    41 
       
    42 	// Implements CImapCommand
       
    43 	void SendMessageL(TInt aTagId, MOutputStream& aStream);
       
    44 	TParseBlockResult ParseUntaggedResponseL();
       
    45 
       
    46 	void ParseSearchResponseL();
       
    47 
       
    48 private:
       
    49 	// data for send
       
    50 	HBufC8* iSearchCriteria;
       
    51 	
       
    52 	// data for receive
       
    53 	RArray<TUint>& iMatchingMessageIds;
       
    54 	};
       
    55 			 
       
    56 #endif // __CIMAPSEARCH_H__