×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    May 2008
    Posts
    139

    Multiple recepients in CSmsHeader::Recipients

    I am capturing outgoing SMS in HandleSessionEventL. I am able to extract outgoing message and recepiant.

    However, if there are multiple recepients in an outgoing message, CSmsHeader::Recipients only returns one receipients.

    Pls help

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,673

    Re: Multiple recepients in CSmsHeader::Recipients

    Note that when you send an SMS to multiple recipients, you will end up in having multiple SMS-s with one recipient per each. You can check that in the Sent folder. So multiple-recipient support of SMS-s is just a comfort function towards the user, the underlying system supports one recipient per SMS.

  3. #3
    Regular Contributor
    Join Date
    May 2008
    Posts
    139

    Re: Multiple recepients in CSmsHeader::Recipients

    Quote Originally Posted by wizard_hu_ View Post
    Note that when you send an SMS to multiple recipients, you will end up in having multiple SMS-s with one recipient per each. You can check that in the Sent folder. So multiple-recipient support of SMS-s is just a comfort function towards the user, the underlying system supports one recipient per SMS.
    Thanks and agreed. However, in this case there are two possibilities, neither of which happens. I capture outgoing SMS in HandleSessionEventL. So I expected either of below possibilities:

    1) Multiple event in HandleSessionEventL for each recepients SMS entry, OR
    2) Single event in HandleSessionEventL in which entry contains all the recepients

    However, only one event occurs for outbox entry in HandleSessionEventL with single receipent.

    Any idea.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,673

    Re: Multiple recepients in CSmsHeader::Recipients

    Hmm, this might happen to be a case when aArg1 (the CMsvEntrySelection) contains multiple entries, could you check it?

  5. #5
    Regular Contributor
    Join Date
    May 2008
    Posts
    139

    Re: Multiple recepients in CSmsHeader::Recipients

    Quote Originally Posted by wizard_hu_ View Post
    Hmm, this might happen to be a case when aArg1 (the CMsvEntrySelection) contains multiple entries, could you check it?
    Can you please elaborate so that i can check and post results

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,673

    Re: Multiple recepients in CSmsHeader::Recipients

    CMsvEntrySelection is an array you know. It has a method called Count() for example.

  7. #7
    Regular Contributor
    Join Date
    May 2008
    Posts
    139

    Re: Multiple recepients in CSmsHeader::Recipients

    Quote Originally Posted by wizard_hu_ View Post
    CMsvEntrySelection is an array you know. It has a method called Count() for example.
    Thanks Wiz. Count() returns one and entry is of the last receipient added. For example, if I added three receipents A, then B and then C and send a message - I get HandleSessionEventL and following code is executed

    CMsvEntrySelection* newEntries = static_cast<CMsvEntrySelection*>( aArg1 );

    TInt msgCount = newEntries->Count();

    Here I get msgCount 1 and if the receipent of that entry is 'C' (and not A or B)

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,673

    Re: Multiple recepients in CSmsHeader::Recipients

    Hmm, I am running out of ideas :-)

    A last one: it can happen that first the framework creates the messages (thus you get 3 consecutive EMsvEntriesCreated), then modifies them (thus you get 3 consecutive EMsvEntriesChanged). However the "traditional" "iNewEntryId" approach is prepared to handle one message at a time, so it is going to remember only the last message (since iNewEntryId is going to be overwritten in EMsvEntriesCreated), so the EMsvEntriesChanged events for the other two messages are simply dropped.

  9. #9
    Registered User
    Join Date
    Oct 2008
    Posts
    3

    Re: Multiple recepients in CSmsHeader::Recipients

    http://discussion.forum.nokia.com/fo...d.php?t=182860
    This thread has code showing handling of multiple recipients.

Similar Threads

  1. Replies: 3
    Last Post: 2012-06-20, 11:48
  2. multiple target patterns
    By ukelady in forum Symbian
    Replies: 5
    Last Post: 2009-07-23, 09:03
  3. Replies: 1
    Last Post: 2007-12-31, 16:56
  4. Replies: 5
    Last Post: 2007-04-09, 19:08
  5. Multiple D211?
    By ElvinChong in forum Multimodecards
    Replies: 1
    Last Post: 2003-05-09, 11:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×