How to programtically hide and unhide a SMS??
| Thu, 2005-08-11 17:05 | |
|
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. |
|






Forum posts: 404
> 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.
http://symbiangeek.blogspot.com
Forum posts: 1918
Thanks for posting the solution !
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 18
Thanks in advance!
beover1984
Forum posts: 147
aSelectionOrdering.SetSorting(EMsvSortByDateReverse);
aSelectionOrdering.SetShowInvisibleEntries(ETrue);// we want to handle also the invisible entries
aFilter->SetOrder(aSelectionOrdering);
iSession->GetChildIdsL.......
Forum posts: 18
beover1984
Forum posts: 235
Forum posts: 235