Custom MTM questions

Login to reply to this topic.
Wed, 2005-11-30 03:16
Joined: 2005-02-17
Forum posts: 26

Hello,

I have a few questions regarding creating a custom MTM. Would someone please answer some (or all) of these questions.

1. I have a resource file with the MTM_INFO_FILE resource id. In this resource I have defined mtm_type_uid = 0x10001028;
technology_type_uid = 0x10001671;
Does the mtm_type_uid need to match one of the 4 MTM UID contants as shown below?
Or does it have to be a unique UID to represent my MTM?
0x10001028 SMTP type
0x10001029 POP3 type.
0x1000102B Fax type
0x1000102C SMS type

2. I have created the four dlls that contain classes derived from the 4 MTM base classes. Client, Server, MTM Ui and Ui Data. From a test application, I am creating an instance of my client MTM with this code:

iClientMtm = static_cast<CSenderMtmClient*>( iClientMtmRegistry->NewMtmL( KUidSenderMtm ) ); // KUidSenderMtm is a unique UID 0x10000019

I get a Leave. If I use one of the 4 defined MTM UIDs like 0x10001028, the same code does not leave but the actual Client MTM CSenderMtmClient NewL is never called. I think I am only building the base class. Even the exported E32Dll of my client MTM is never called. I am expecting this to be called when it is loaded because the client's lib file is listed in the test program's mmp file.

// Is this called?   
EXPORT_C TInt E32Dll( TDllReason ) // main function called by E32
    {   
   return KErrNone; // and return
    }

Thanks for any help you can give.


Niimidan


Mon, 2005-12-05 07:47
Joined: 2005-02-17
Forum posts: 26
Re: Custom MTM questions
I have done some searching and the UIQ SDK's TextMTm example uses this UID in its rss file. 0x10005247 This does not match any of those 4 constants so there is the first question.

Also I got around the leave by passing a different UID. In case anyone is wondering, the framework uses the UID specified in NewMtmL to determine what NewL to call.

The appropriate E32DLL is called by the framework as well.

Niimidan

Thu, 2006-01-12 08:10
Joined: 2006-01-09
Forum posts: 8
Re: Custom MTM questions
Hi ,
          Well your custom MTM UID need not match any of those you have mentioned here.It should be unique UID .You may obtain UID's from Symbian 's DevNet.Plus your other UID's shd be  matching the UID's of the DLL's you have created for the four MTM's client ,UI,UIData and server .
There is a Text MTM example on Forum Nokia .Please refer that.

Regs,
Geek !!
Thu, 2008-05-15 07:20
Joined: 2007-11-16
Forum posts: 24
Re: Custom MTM questions

Hi

can some one help with SMS MTM Example....

Pramod Murthy


"Nobody will believe in you unless you believe in yourself."

Mon, 2008-05-19 12:26
Joined: 2007-11-16
Forum posts: 24
Re: Custom MTM questions

I have a SMS application which is very similar to native SMS application.It is able to recieve notificaton of New Message, view messages in the inbox,drafts & sent Items. I also have my own editor to type messages.
I want to integrate this app with native app with an option of selecting either the native or my sms application while viewing and composing a message. I want to use MTM to customize menu for the same. I have gone through similarn Text MTM Example for email in S60 3rd Edition. But it differs a lot for SMS ?

Can anyone suggest something.


"Nobody will believe in you unless you believe in yourself."

Mon, 2008-05-19 19:30
Joined: 2005-11-20
Forum posts: 1058
Re: Custom MTM questions

On the one hand I don't know exactly what a custom MTM can or can't do.

But on the other hand, questions very similar to yours now have come up repeatedly on this forum already, and as far as I remember the answers so far all have been either "not possible", or then only little better "looks like possible somehow but nobody who knows is ready to tell".


René Brunner

Tue, 2008-05-20 05:54
Joined: 2007-11-16
Forum posts: 24
Re: Custom MTM questions


Thanks rbrunner for ur intrest in seeing at the post....

hope someone post here who knows.... Smiling


"Nobody will believe in you unless you believe in yourself."

  • Login to reply to this topic.