email/pop3andsmtpmtm/clientmtms/inc/IMCMUTIL.H
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 // Copyright (c) 1998-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 // Client MTM utilities for POP3, SMTP and IMAP4 protocols
       
    15 // 
       
    16 //
       
    17 /**
       
    18  * @file 
       
    19  * @publishedPartner
       
    20  * @released
       
    21  */
       
    22 
       
    23 #if !defined (__IMCMUTIL_H__)
       
    24 #define __IMCMUTIL_H__
       
    25 
       
    26 #if !defined (__MSVFTEXT_H__)
       
    27 #include <msvftext.h>
       
    28 #endif
       
    29 
       
    30 #if !defined (__MIUTHDR_H__)
       
    31 #include <miuthdr.h>
       
    32 #endif
       
    33 
       
    34 #if !defined (__MIUTDEF_H__)
       
    35 #include <miutdef.h>
       
    36 #endif
       
    37 
       
    38 class CImClientMTMUtils : public CBase
       
    39 /**
       
    40 Utilities for use by email client MTMs for searching a message.
       
    41 @publishedPartner
       
    42 @released
       
    43 */
       
    44 	{
       
    45 public:
       
    46 	IMPORT_C static CImClientMTMUtils* NewL();
       
    47 	IMPORT_C ~CImClientMTMUtils();
       
    48 
       
    49 	IMPORT_C void FindL(const TDesC& aTextToFind, CRichText& aRichText, CImHeader& aHeader, TMsvPartList aPartList, TMsvPartList& rReturnList);
       
    50 	IMPORT_C TMsvPartList FindInHeaderL(const TDesC& aTextToFind, CImHeader& aHeader, TMsvPartList aPartList);
       
    51 	IMPORT_C TMsvPartList FindInBodyL(const TDesC& aTextToFind, CRichText& aRichText, TMsvPartList aPartList);
       
    52 private:
       
    53 	void ConstructL();
       
    54 	TBool FindInMessagePartRecipientL(const TDesC& aTextToFind,TMsvPartList aPartList,CDesCArray& aRecipients);
       
    55 
       
    56 private:
       
    57 	CMsvFindText* iFindText;
       
    58 	};
       
    59 
       
    60 #endif