epoc32/include/imcmutil.h
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/imcmutil.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,88 @@
     1.4 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// 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
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// Client MTM utilities for POP3, SMTP and IMAP4 protocols
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#if !defined (__IMCMUTIL_H__)
    1.22 +#define __IMCMUTIL_H__
    1.23 +
    1.24 +#if !defined (__MSVFTEXT_H__)
    1.25 +#include <msvftext.h>
    1.26 +#endif
    1.27 +
    1.28 +#if !defined (__MIUTHDR_H__)
    1.29 +#include <miuthdr.h>
    1.30 +#endif
    1.31 +
    1.32 +#if !defined (__MIUTDEF_H__)
    1.33 +#include <miutdef.h>
    1.34 +#endif
    1.35 +
    1.36 +_LIT(KMsvAutoSendExe, "Autosend.exe");
    1.37 +const TUid KMsvAutoSendExeUid = {0x1000A402}; //268477442
    1.38 +
    1.39 +class CClientMtmRegistry;
    1.40 +class CImClientMTMUtils : public CBase
    1.41 +/**
    1.42 +Utilities for use by email client MTMs for searching a message.
    1.43 +@publishedPartner
    1.44 +@released
    1.45 +*/
    1.46 +	{
    1.47 +public:
    1.48 +	IMPORT_C static CImClientMTMUtils* NewL();
    1.49 +	IMPORT_C ~CImClientMTMUtils();
    1.50 +
    1.51 +	IMPORT_C void FindL(const TDesC& aTextToFind, CRichText& aRichText, CImHeader& aHeader, TMsvPartList aPartList, TMsvPartList& rReturnList);
    1.52 +	IMPORT_C TMsvPartList FindInHeaderL(const TDesC& aTextToFind, CImHeader& aHeader, TMsvPartList aPartList);
    1.53 +	IMPORT_C TMsvPartList FindInBodyL(const TDesC& aTextToFind, CRichText& aRichText, TMsvPartList aPartList);
    1.54 +private:
    1.55 +	void ConstructL();
    1.56 +	TBool FindInMessagePartRecipientL(const TDesC& aTextToFind,TMsvPartList aPartList,CDesCArray& aRecipients);
    1.57 +
    1.58 +private:
    1.59 +	CMsvFindText* iFindText;
    1.60 +	};
    1.61 +
    1.62 +class CImEmailAutoSend : public CActive
    1.63 +/**
    1.64 +@internalTechnology
    1.65 +@released
    1.66 +*/
    1.67 +	{
    1.68 +public:
    1.69 +	static CImEmailAutoSend* NewL(CMsvSession& aSession,TMsvId aServiceId);
    1.70 +	static CImEmailAutoSend* NewLC(CMsvSession& aSession,TMsvId aServiceId);
    1.71 +	~CImEmailAutoSend();
    1.72 +	void SendOnNextConnectionL();
    1.73 +	TMsvId Service();
    1.74 +	void ChangeService(TMsvId aServiceId);
    1.75 +private:
    1.76 +	CImEmailAutoSend(CMsvSession& aSession,TMsvId aServiceId);
    1.77 +	void ConstructL();
    1.78 +	void RunL();
    1.79 +	void DoCancel();
    1.80 +	void LoadSMTPClientMtmL();
    1.81 +	void Reset();
    1.82 +private:
    1.83 +	CMsvSession& iSession;
    1.84 +	CClientMtmRegistry*	iClientRegistry;
    1.85 +	CBaseMtm* iBaseMtm;
    1.86 +	CMsvOperation* iOperation;
    1.87 +	CMsvEntrySelection* iSelection;
    1.88 +	TMsvId iServiceId;
    1.89 +	};
    1.90 +
    1.91 +#endif