How to programtically hide and unhide a SMS??

Login to reply to this topic.
Thu, 2005-08-11 17:05
Joined: 2004-06-11
Forum posts: 404
Hi,
I am trying to make an application which lets you SMS so that
they are not visible in the default 'Messaging' application.
I tried to do the same using the TMsvEntry::SetVisible function
but that seems to have no effect as the SMS is still visible in the
default 'Messaging' application.
How do I make the SMS to hide frm the messagin app??
I have seen apps do that and hope that this functionality is not
restricted to only some private sdk??
Thanks.
--Mayur.


Fri, 2005-08-12 11:11
Joined: 2004-06-11
Forum posts: 404
Re: How to programtically hide and unhide a SMS??
Got this from the newsgroup :
> CMsvEntry* mail = iSession.GetEntryL( aMessageId );
> CleanupStack::PushL(mail);
> TMsvEntry tEntry = mail->Entry();
> tEntry.SetInPreparation( EFalse );
> tEntry.SetVisible( ETrue );
> mail->ChangeL( tEntry );
> CleanupStack::PopAndDestroy( mail ) ;
This should do the trick.
--Mayur.

Sat, 2005-08-13 09:43
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 1918
Re: How to programtically hide and unhide a SMS??
Hi Mayur,
Thanks for posting the solution !

Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Tue, 2006-06-27 04:47
Joined: 2005-11-09
Forum posts: 18
Re: How to programtically hide and unhide a SMS??
I use TMsvEntry::SetVisible() to hide a entry under a folder,after that I use CMsvEntry::ChildrenL() to get it, but get nothing.Please give me some advises.
Thanks in advance!

beover1984

Tue, 2006-06-27 07:54
Joined: 2004-06-08
Forum posts: 147
Re: How to programtically hide and unhide a SMS??
TMsvSelectionOrdering aSelectionOrdering;
aSelectionOrdering.SetSorting(EMsvSortByDateReverse);
aSelectionOrdering.SetShowInvisibleEntries(ETrue);// we want to handle also the invisible entries
aFilter->SetOrder(aSelectionOrdering);
iSession->GetChildIdsL.......
Tue, 2006-06-27 08:45
Joined: 2005-11-09
Forum posts: 18
Re: How to programtically hide and unhide a SMS??
filio, thank you very much!I got it!

beover1984

Thu, 2006-06-29 11:01
Joined: 2004-09-06
Forum posts: 235
Re: How to programtically hide and unhide a SMS??
Is this applicable for MMS hiding also?
Fri, 2006-06-30 03:14
Joined: 2004-09-06
Forum posts: 235
Re: How to programtically hide and unhide a SMS??
yes
  • Login to reply to this topic.