Discussion Board

Results 1 to 4 of 4
  1. #1
    Super Contributor shmoove's Avatar
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    I'm in the process of porting my custom MTM from 3rd edition to 3nd edition. When my background listener application receives a message, I create a new entry in the message server like this:
    Code:
    	clientMtm->CreateMessageL(KMsvGlobalInBoxIndexEntryId);
    	iReceivingId = clientMtm->Entry().Entry().Id();
    	clientMtm->SetMessage(*message); // custom function
    	clientMtm->SaveMessageL();
    	
    	CMsvEntry & msventry = clientMtm->Entry();
    	
    	TMsvEntry entry = msventry.Entry();
    
    	entry.SetInPreparation(EFalse);
    	entry.SetVisible(ETrue);
    	entry.iServiceId = KMsvLocalServiceIndexEntryId;
    	entry.SetReadOnly(ETrue);
    	entry.SetUnread(ETrue);
    	entry.SetNew(ETrue);
    
    	msventry.ChangeL(entry);
    On 3rd edition phones after calling CMsvEntry::ChangeL() I get a new message popup with sound. On 2nd edition phones I only get the popup, but no sound is played.

    Am I doing something wrong here?

    Or alternatively, as a workaround, how can I find the default incoming message sound so I can play it myself?

    shmoove

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    You can try if a SetComplete helps.

  3. #3
    Super Contributor shmoove's Avatar
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    SetComplete didn't do the trick either.

    Any idea where to look for for the default sound? That would at least give me a workaround?

    shmoove

  4. #4
    Regular Contributor Mark070508's Avatar
    Join Date
    Apr 2008
    Posts
    68
    hi,

    i have a problem about custom MTM, i use the example form wiki. why i have created a local TXTMTM, i can't get the new message popup?

    can u give me some hint or code??

    thanks!



    Quote Originally Posted by shmoove View Post
    I'm in the process of porting my custom MTM from 3rd edition to 3nd edition. When my background listener application receives a message, I create a new entry in the message server like this:
    Code:
    	clientMtm->CreateMessageL(KMsvGlobalInBoxIndexEntryId);
    	iReceivingId = clientMtm->Entry().Entry().Id();
    	clientMtm->SetMessage(*message); // custom function
    	clientMtm->SaveMessageL();
    	
    	CMsvEntry & msventry = clientMtm->Entry();
    	
    	TMsvEntry entry = msventry.Entry();
    
    	entry.SetInPreparation(EFalse);
    	entry.SetVisible(ETrue);
    	entry.iServiceId = KMsvLocalServiceIndexEntryId;
    	entry.SetReadOnly(ETrue);
    	entry.SetUnread(ETrue);
    	entry.SetNew(ETrue);
    
    	msventry.ChangeL(entry);
    On 3rd edition phones after calling CMsvEntry::ChangeL() I get a new message popup with sound. On 2nd edition phones I only get the popup, but no sound is played.

    Am I doing something wrong here?

    Or alternatively, as a workaround, how can I find the default incoming message sound so I can play it myself?

    shmoove

Similar Threads

  1. MTM: trying to create subfolder structures
    By blizzz in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2008-05-06, 18:17
  2. Creating a custom MTM account in s60
    By tbernard1 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-06-28, 14:18
  3. Sending and Receiving SMS Series 60 C++
    By jpuopolo67 in forum Symbian Networking & Messaging (Closed)
    Replies: 29
    Last Post: 2006-12-12, 05:31
  4. create a new Text MTM
    By kstang in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2006-10-24, 16:02
  5. Why I cann't send message? HelP!
    By starryshen in forum Symbian C++
    Replies: 4
    Last Post: 2004-03-21, 07:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved