This section describes the initial steps to be performed to write a Client MTM. It does not explain the implementation of all Client MTM functionality . You can refer the Client MTM example for detailed implementation steps
The main function of the Client MTM is to load the entry currently referred to by the MTM’s context, and save it once any changes have been made to it. An individual entry’s store is represented by the CMsvStore class. Finally, after any changes are made to a store that stores the message body, CMsvStore::CommitL() must be called to commit those changes.
// // CTextMtmClient // Implements CBaseMtm to provide Client-side Text MTM // EXPORT_C CTextMtmClient* CTextMtmClient::NewL(CRegisteredMtmDll& aRegisteredMtmDll, CMsvSession& aMsvSession) // Factory function { CTextMtmClient* self = new (ELeave) CTextMtmClient(aRegisteredMtmDll,aMsvSession); CleanupStack::PushL(self); self->ConstructL(); CleanupStack::Pop(); return self; }
For more details on implementing all Client MTM functions, see example code .
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.