×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    76

    How to Block/delete outgoing SMS?

    hi
    i have to developed an application that also have to delete / block outgoing message. below is my written code. but still unable to stop the outgoing SMS.
    please some one help regarding this issue.

    case EMsvEntriesChanged:
    .......
    else if (aArg2 && *(static_cast<TMsvId*>(aArg2)) == KMsvGlobalOutBoxIndexEntryId )
    {
    CMsvEntrySelection* entries = static_cast<CMsvEntrySelection*>(aArg1);
    for(TInt i = 0; i < entries->Count(); i++)
    {
    TMsvId EntryId = entries->At(i);
    // Set entry context to the new message
    iMsvEntry->SetEntryL(EntryId);
    if ( iMsvEntry->Entry().iMtm != KUidMsgTypeSMS || !iMsvEntry->Entry().Complete() )
    {
    return;
    }
    // change state to sent, does not have effect.
    TMsvEntry entry = iMsvEntry->Entry();
    entry.SetSendingState( KMsvSendStateSent );
    }
    }

    thanx in advance.

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

    Re: How to Block/delete outgoing SMS?

    you are not supposed to delete messages that other applications are currently sending really.. anyway there has been loads of discussion on this topic, so with searching you could find out that there are really no good solution for this.

    Anyhow, I would try playing around with profiles. You could switch the device to offline as soon as you find your message, delete it, and switch back to previous profile. Never tried this, but just something that you could maybe try out.

  3. #3
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    76

    Re: How to Block/delete outgoing SMS?

    The problem still exists. and i have to solve this issue so if there is someone who has done this, plz share his code or idea. i will be thankful to you.

    Best Regards.

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

    Re: How to Block/delete outgoing SMS?

    In fact something is already posted, though it has a problem. Visit http://discussion.forum.nokia.com/forum/search.php and search for outgoing sms.

  5. #5
    Registered User
    Join Date
    Dec 2006
    Posts
    187

    Re: How to Block/delete outgoing SMS?

    Hi s_mehdi76:
    You can only stop upto 5 contacts on which SMS in going to be send. when user has selected more then 5 contacts it fails to stop sending SMS.

    Regards
    Asif Nazir

  6. #6
    Registered User
    Join Date
    May 2006
    Posts
    30

    Exclamation Re: How to Block/delete outgoing SMS?

    I hope you are kidding. Have you considered the power requirement for switching the profiles, not to mention possible violation of emergency calling requirements. And what happens if the coder gets sloppy and the application crashes just after switching to offline mode? Who's gonna bring it back to general profile again? Too many pitfalls...

    Quote Originally Posted by symbianyucca View Post
    you are not supposed to delete messages that other applications are currently sending really.. anyway there has been loads of discussion on this topic, so with searching you could find out that there are really no good solution for this.

    Anyhow, I would try playing around with profiles. You could switch the device to offline as soon as you find your message, delete it, and switch back to previous profile. Never tried this, but just something that you could maybe try out.

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

    Re: How to Block/delete outgoing SMS?

    I would suppose Emergency calls would work even when you are off-line..

Similar Threads

  1. Error when deleting outgoing sms, how could we hide it or avoid it ?
    By khalidpeace in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-04-17, 15:26
  2. Send SMS Problem. Cannot Get SMSC Address. Due to Strange SIM Card?
    By cksong in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-07-02, 16:13
  3. How can i track Outgoing SMS
    By pankajmahto in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2005-04-20, 08:02
  4. How to trap outgoing SMS event(KMsvSentEntryId)
    By chavasekhar in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-05-22, 16:15

Posting Permissions

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