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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #if !defined(__CIOCMTM_H__)
18 #if !defined(__E32BASE_H__)
21 #if !defined(__MTCLBASE_H__)
25 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
31 // forward declarations
35 class CBIOClientMtm : public CBaseMtm
36 /** BIO client MTM interface.
38 The BIO client MTM is simply responsible for requesting BIO message parser
39 operations to the BIO Server MTM through InvokeAsyncFunctionL(). Many of the
40 other base class functions are implemented to do nothing.
46 IMPORT_C static CBIOClientMtm* NewL(CRegisteredMtmDll& aRegisteredMtmDll, CMsvSession& aSession);
48 // from MMsvEntryObserver
49 void HandleEntryEvent(TMsvEntryEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3);
54 CMsvOperation* ReplyL (TMsvId aDestination, TMsvPartList aPartlist, TRequestStatus& aCompletionStatus);
55 CMsvOperation* ForwardL(TMsvId aDestination, TMsvPartList aPartList, TRequestStatus& aCompletionStatus);
56 TMsvPartList ValidateMessage(TMsvPartList aPartList);
57 TMsvPartList Find(const TDesC& aTextToFind, TMsvPartList aPartList);
58 void AddAddresseeL(const TDesC& aRealAddress);
59 void AddAddresseeL(const TDesC& aRealAddress, const TDesC& aAlias);
60 void RemoveAddressee(TInt aIndex);
61 // --- RTTI functions ---
62 TInt QueryCapability(TUid aCapability, TInt& aResponse);
63 void InvokeSyncFunctionL(TInt aFunctionId,const CMsvEntrySelection& aSelection, TDes8& aParameter);
64 CMsvOperation* InvokeAsyncFunctionL(TInt aFunctionId,const CMsvEntrySelection& aSelection, TDes8& aParameter, TRequestStatus& aCompletionStatus);
68 void ContextEntrySwitched();
71 CBIOClientMtm(CRegisteredMtmDll& aRegisteredMtmDll, CMsvSession& aSession);
74 void FindInDescriptionL(const TDesC& aTextToFind, TMsvPartList aPartList,TMsvPartList& aFoundList);
75 void FindInOriginatorL(const TDesC& aTextToFind, TMsvPartList aPartList,TMsvPartList& aFoundList);
76 void FindInBodyL(const TDesC& aTextToFind, TMsvPartList aPartList,TMsvPartList& aFoundList);
79 CBIODatabase* iBioDatabase;