epoc32/include/mw/biocmtm.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@4
     2
// All rights reserved.
williamr@4
     3
// This component and the accompanying materials are made available
williamr@4
     4
// under the terms of "Eclipse Public License v1.0"
williamr@4
     5
// which accompanies this distribution, and is available
williamr@4
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@4
     7
//
williamr@4
     8
// Initial Contributors:
williamr@4
     9
// Nokia Corporation - initial contribution.
williamr@4
    10
//
williamr@4
    11
// Contributors:
williamr@4
    12
//
williamr@4
    13
// Description:
williamr@4
    14
//
williamr@4
    15
williamr@4
    16
#if !defined(__CIOCMTM_H__)
williamr@4
    17
#define __BIOCMTM_H__
williamr@4
    18
#if !defined(__E32BASE_H__)
williamr@4
    19
#include <e32base.h>
williamr@4
    20
#endif
williamr@4
    21
#if !defined(__MTCLBASE_H__)
williamr@4
    22
#include <mtclbase.h>
williamr@4
    23
#endif
williamr@4
    24
williamr@4
    25
#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS  
williamr@4
    26
#include <bsp.h>
williamr@4
    27
#endif
williamr@4
    28
williamr@4
    29
williamr@4
    30
williamr@4
    31
// forward declarations
williamr@4
    32
class CBIODatabase;
williamr@4
    33
williamr@4
    34
williamr@4
    35
class CBIOClientMtm : public CBaseMtm
williamr@4
    36
/** BIO client MTM interface.
williamr@4
    37
williamr@4
    38
The BIO client MTM is simply responsible for requesting BIO message parser 
williamr@4
    39
operations to the BIO Server MTM through InvokeAsyncFunctionL(). Many of the 
williamr@4
    40
other base class functions are implemented to do nothing. 
williamr@4
    41
@publishedPartner
williamr@4
    42
@released
williamr@4
    43
*/
williamr@4
    44
	{
williamr@4
    45
public:
williamr@4
    46
	IMPORT_C static CBIOClientMtm* NewL(CRegisteredMtmDll& aRegisteredMtmDll, CMsvSession& aSession);
williamr@4
    47
	~CBIOClientMtm();
williamr@4
    48
	// from MMsvEntryObserver
williamr@4
    49
	void HandleEntryEvent(TMsvEntryEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3);
williamr@4
    50
	//
williamr@4
    51
	// from CBaseMtm
williamr@4
    52
	void SaveMessageL(); 
williamr@4
    53
	void LoadMessageL();
williamr@4
    54
	CMsvOperation* ReplyL  (TMsvId aDestination, TMsvPartList aPartlist, TRequestStatus& aCompletionStatus);
williamr@4
    55
	CMsvOperation* ForwardL(TMsvId aDestination, TMsvPartList aPartList, TRequestStatus& aCompletionStatus);
williamr@4
    56
	TMsvPartList ValidateMessage(TMsvPartList aPartList);
williamr@4
    57
	TMsvPartList Find(const TDesC& aTextToFind, TMsvPartList aPartList);
williamr@4
    58
	void AddAddresseeL(const TDesC& aRealAddress);
williamr@4
    59
	void AddAddresseeL(const TDesC& aRealAddress, const TDesC& aAlias);
williamr@4
    60
	void RemoveAddressee(TInt aIndex);
williamr@4
    61
	// --- RTTI functions ---
williamr@4
    62
	TInt QueryCapability(TUid aCapability, TInt& aResponse);
williamr@4
    63
	void InvokeSyncFunctionL(TInt aFunctionId,const CMsvEntrySelection& aSelection, TDes8& aParameter);
williamr@4
    64
	CMsvOperation*  InvokeAsyncFunctionL(TInt aFunctionId,const CMsvEntrySelection& aSelection, TDes8& aParameter, TRequestStatus& aCompletionStatus);
williamr@4
    65
protected:
williamr@4
    66
	//
williamr@4
    67
	// from CBaseMtm
williamr@4
    68
	void ContextEntrySwitched();
williamr@4
    69
	//
williamr@4
    70
private:
williamr@4
    71
	CBIOClientMtm(CRegisteredMtmDll& aRegisteredMtmDll, CMsvSession& aSession);
williamr@4
    72
	void ConstructL();
williamr@4
    73
	//
williamr@4
    74
	void FindInDescriptionL(const TDesC& aTextToFind, TMsvPartList aPartList,TMsvPartList& aFoundList);
williamr@4
    75
	void FindInOriginatorL(const TDesC& aTextToFind, TMsvPartList aPartList,TMsvPartList& aFoundList);
williamr@4
    76
	void FindInBodyL(const TDesC& aTextToFind, TMsvPartList aPartList,TMsvPartList& aFoundList);
williamr@4
    77
private:
williamr@4
    78
	RFs					iFs;
williamr@4
    79
	CBIODatabase*		iBioDatabase;
williamr@4
    80
	};
williamr@4
    81
williamr@4
    82
williamr@4
    83
#endif