×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    42

    Exclamation Delete message from Sent Item ( Online Mode )

    Hi all

    I am developing sms based application i try to delete sent items i got code from wiki http://wiki.forum.nokia.com/index.php/SMS_Operations

    i want to delete sent messages only send from my application? problem is when i compose a message from default Messaging app this code delete that mesasges also.

    Code:
    case EMsvEntriesMoved:
    {
    	// Entry id is obtained from the session event arguments.
                TMsvId* entryId = STATIC_CAST( TMsvId*, aArg2 );
     
    	// We are interested in messages that are moved to Sent Item Folder
    	if ( *entryId == KMsvSentEntryId )
                {
    		TMsvSelectionOrdering sort;
                    sort.SetSorting(EMsvSortByDateReverse);
    		sort.SetShowInvisibleEntries(ETrue); // we want to handle also the invisible entries
     
    		CMsvEntry* parentEntry = CMsvEntry::NewL(*iSession, KMsvSentEntryId, sort);
    		CleanupStack::PushL(parentEntry);
    	
    		CMsvEntrySelection* entries = parentEntry->ChildrenL();
    		CleanupStack::PushL(entries);
    		
    		for(TInt i = 0; i < entries->Count(); i++)
    		{
    			 if( parentEntry->ChildDataL(entries->At(i)).iMtmData3 != KUidMsgTypeSMS.iUid )
    			 {
    				 parentEntry->DeleteL(entries->At(i));
    				 break;
    			 }
    		}
    		CleanupStack::PopAndDestroy( entries );
    		CleanupStack::PopAndDestroy( parentEntry );
    		}
    		break;
    	}
    }

    Regards
    jey_

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

    Re: Delete message from Sent Item ( Online Mode )

    you might want to debug and see what happenes inside the code, anyway, I would assume something goes wrong on identifying your own messages..

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    42

    Re: Delete message from Sent Item ( Online Mode )

    Hi symbianyucca

    how to identifying my Own Messages My app got notification when user create a messages in default (Messages) application. when i debug my app its working fine Am using this sample MTM


    Thanks & Regards
    Jey_

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

    Re: Delete message from Sent Item ( Online Mode )

    you have to make your own method for identifying your own messages, I quess you are trying to use iMtmData3 for that purpose, so see what you are doing with it.

  5. #5
    Registered User
    Join Date
    Dec 2008
    Posts
    42

    Arrow Re: Delete message from Sent Item ( Online Mode )

    Hi all


    Still i could not identify my own messages any code samples is there?

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

    Re: Delete message from Sent Item ( Online Mode )

    If I remember right SMS does not use iMtmData3, so you could put your own identifier on it, and look for it in the message.

  7. #7
    Registered User
    Join Date
    Dec 2008
    Posts
    42

    Arrow Re: Delete message from Sent Item ( Online Mode )

    hi symbianyucca

    i am using RsendAs api to send sms where can i add identifier for my sms?


    thanx & ragards
    _jey

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

    Re: Delete message from Sent Item ( Online Mode )

    Ok, that API makes it very easy to send messages, but it lacks any additional functionality, thus if you want to do more than that API can do, then you need to change the API, and instead start using the MTM way on doing messaging.

  9. #9
    Registered User
    Join Date
    Nov 2011
    Posts
    136

    Re: Delete message from Sent Item ( Online Mode )

    hello Friends , even i am facing same problem... sms sent by app are getting deleted but if i am sending sms from phone to any no then my app crashes ...

    can anyone help me plz????

    Thanks in advance

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

    Re: Delete message from Sent Item ( Online Mode )

    Quote Originally Posted by cholker View Post
    hello Friends , even i am facing same problem... sms sent by app are getting deleted but if i am sending sms from phone to any no then my app crashes ...

    can anyone help me plz????

    Thanks in advance
    please do no hijack thread with non-related questions. Also when you make a new thread, please check the panic code for the crash. it probably would help on solving the problem

Similar Threads

  1. Replies: 0
    Last Post: 2009-01-15, 04:10
  2. problem to send a service loading message push for 8310
    By alinesimon in forum General Messaging
    Replies: 1
    Last Post: 2002-05-06, 12:39
  3. Problem to send a service loading push message for 8310
    By alinesimon in forum General Messaging
    Replies: 1
    Last Post: 2002-05-06, 11:19
  4. Problem to send a service loadinfd push message for 8310
    By alinesimon in forum Smart Messaging
    Replies: 1
    Last Post: 2002-05-03, 10:49

Posting Permissions

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