diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/imcmutil.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/imcmutil.h Tue Mar 16 16:12:26 2010 +0000 @@ -0,0 +1,88 @@ +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// 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 +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Client MTM utilities for POP3, SMTP and IMAP4 protocols +// +// + +#if !defined (__IMCMUTIL_H__) +#define __IMCMUTIL_H__ + +#if !defined (__MSVFTEXT_H__) +#include +#endif + +#if !defined (__MIUTHDR_H__) +#include +#endif + +#if !defined (__MIUTDEF_H__) +#include +#endif + +_LIT(KMsvAutoSendExe, "Autosend.exe"); +const TUid KMsvAutoSendExeUid = {0x1000A402}; //268477442 + +class CClientMtmRegistry; +class CImClientMTMUtils : public CBase +/** +Utilities for use by email client MTMs for searching a message. +@publishedPartner +@released +*/ + { +public: + IMPORT_C static CImClientMTMUtils* NewL(); + IMPORT_C ~CImClientMTMUtils(); + + IMPORT_C void FindL(const TDesC& aTextToFind, CRichText& aRichText, CImHeader& aHeader, TMsvPartList aPartList, TMsvPartList& rReturnList); + IMPORT_C TMsvPartList FindInHeaderL(const TDesC& aTextToFind, CImHeader& aHeader, TMsvPartList aPartList); + IMPORT_C TMsvPartList FindInBodyL(const TDesC& aTextToFind, CRichText& aRichText, TMsvPartList aPartList); +private: + void ConstructL(); + TBool FindInMessagePartRecipientL(const TDesC& aTextToFind,TMsvPartList aPartList,CDesCArray& aRecipients); + +private: + CMsvFindText* iFindText; + }; + +class CImEmailAutoSend : public CActive +/** +@internalTechnology +@released +*/ + { +public: + static CImEmailAutoSend* NewL(CMsvSession& aSession,TMsvId aServiceId); + static CImEmailAutoSend* NewLC(CMsvSession& aSession,TMsvId aServiceId); + ~CImEmailAutoSend(); + void SendOnNextConnectionL(); + TMsvId Service(); + void ChangeService(TMsvId aServiceId); +private: + CImEmailAutoSend(CMsvSession& aSession,TMsvId aServiceId); + void ConstructL(); + void RunL(); + void DoCancel(); + void LoadSMTPClientMtmL(); + void Reset(); +private: + CMsvSession& iSession; + CClientMtmRegistry* iClientRegistry; + CBaseMtm* iBaseMtm; + CMsvOperation* iOperation; + CMsvEntrySelection* iSelection; + TMsvId iServiceId; + }; + +#endif