epoc32/include/imcmutil.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.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 #if !defined (__IMCMUTIL_H__)
    19 #define __IMCMUTIL_H__
    20 
    21 #if !defined (__MSVFTEXT_H__)
    22 #include <msvftext.h>
    23 #endif
    24 
    25 #if !defined (__MIUTHDR_H__)
    26 #include <miuthdr.h>
    27 #endif
    28 
    29 #if !defined (__MIUTDEF_H__)
    30 #include <miutdef.h>
    31 #endif
    32 
    33 _LIT(KMsvAutoSendExe, "Autosend.exe");
    34 const TUid KMsvAutoSendExeUid = {0x1000A402}; //268477442
    35 
    36 class CClientMtmRegistry;
    37 class CImClientMTMUtils : public CBase
    38 /**
    39 Utilities for use by email client MTMs for searching a message.
    40 @publishedPartner
    41 @released
    42 */
    43 	{
    44 public:
    45 	IMPORT_C static CImClientMTMUtils* NewL();
    46 	IMPORT_C ~CImClientMTMUtils();
    47 
    48 	IMPORT_C void FindL(const TDesC& aTextToFind, CRichText& aRichText, CImHeader& aHeader, TMsvPartList aPartList, TMsvPartList& rReturnList);
    49 	IMPORT_C TMsvPartList FindInHeaderL(const TDesC& aTextToFind, CImHeader& aHeader, TMsvPartList aPartList);
    50 	IMPORT_C TMsvPartList FindInBodyL(const TDesC& aTextToFind, CRichText& aRichText, TMsvPartList aPartList);
    51 private:
    52 	void ConstructL();
    53 	TBool FindInMessagePartRecipientL(const TDesC& aTextToFind,TMsvPartList aPartList,CDesCArray& aRecipients);
    54 
    55 private:
    56 	CMsvFindText* iFindText;
    57 	};
    58 
    59 class CImEmailAutoSend : public CActive
    60 /**
    61 @internalTechnology
    62 @released
    63 */
    64 	{
    65 public:
    66 	static CImEmailAutoSend* NewL(CMsvSession& aSession,TMsvId aServiceId);
    67 	static CImEmailAutoSend* NewLC(CMsvSession& aSession,TMsvId aServiceId);
    68 	~CImEmailAutoSend();
    69 	void SendOnNextConnectionL();
    70 	TMsvId Service();
    71 	void ChangeService(TMsvId aServiceId);
    72 private:
    73 	CImEmailAutoSend(CMsvSession& aSession,TMsvId aServiceId);
    74 	void ConstructL();
    75 	void RunL();
    76 	void DoCancel();
    77 	void LoadSMTPClientMtmL();
    78 	void Reset();
    79 private:
    80 	CMsvSession& iSession;
    81 	CClientMtmRegistry*	iClientRegistry;
    82 	CBaseMtm* iBaseMtm;
    83 	CMsvOperation* iOperation;
    84 	CMsvEntrySelection* iSelection;
    85 	TMsvId iServiceId;
    86 	};
    87 
    88 #endif