×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    411

    questions about sending SMS/mms

    hi,guys:
    I want to get the time when sms/mms has been sent.
    my code is below, But it seems that when it finished sending sms/mms, "do something" happened twice. anyone have any idea?

    if (*(static_cast<TMsvId*>(aArg2)) == KMsvGlobalOutBoxIndexEntryId)
    {
    CMsvEntrySelection* entries = static_cast<CMsvEntrySelection*>(aArg1);
    iNewSentedMessageId = entries->At(0);
    TMsvEntry msgEntry; /* class that represents the entry (a local cache) */
    TMsvId ownerServiceId; /* TInt32 */
    if (iSession->GetEntry(iNewSentedMessageId, ownerServiceId, msgEntry)
    == KErrNone)
    {
    if (KMsvSendStateSent == msgEntry.SendingState())
    {
    // do something
    }
    }
    }

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: questions about sending SMS/mms

    Maybe you should check the state in there, there is propably events for messages greated, changed etc.

  3. #3
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    411

    Re: questions about sending SMS/mms

    Quote Originally Posted by symbianyucca View Post
    Maybe you should check the state in there, there is propably events for messages greated, changed etc.
    Thank you, and by the way, i found that this code work for sending MMS,but for SMS, it does not work, because when it sending sms, (*(static_cast<TMsvId*>(aArg2)) is not equal to KMsvGlobalOutBoxIndexEntryId at all. Can anyone help me?

  4. #4
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    183

    Re: questions about sending SMS/mms

    i meet the same problem as you,
    when i get the result of send msg,i get twice report

    confuse

Similar Threads

  1. Sending SMS/MMS from PC
    By soq2000 in forum General Messaging
    Replies: 11
    Last Post: 2007-12-17, 12:21
  2. Sending Vcards through sms/mms from python
    By federico2929 in forum Symbian
    Replies: 0
    Last Post: 2007-01-27, 18:01
  3. Sending SMS/MMS using PC Suite
    By anjanesh in forum General Development Questions
    Replies: 8
    Last Post: 2006-04-19, 19:19
  4. disable the security questions when sending sms?
    By barfoos in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-10-21, 22:40
  5. Forced SMS/MMS Sending
    By alvin_jdc in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-06-03, 09:23

Posting Permissions

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