Symbian C++ - Series 60 - How can i extract details for an SMS message?

Login to reply to this topic.
Tue, 2005-08-02 10:38
Joined: 2005-04-12
Forum posts: 58
Hi,

Need to loop thru SMS Inbox and for each message, need to extract DETAILS of the message. Managed to loop thru the messages. But..., Need to extract SMS message details(viz. From, Subject, Date, Time & Type) for each read SMS message(TMsvId aMessageId). What i have is the message id(TMsvId aMessageId) and need to extract message details. How can i do this?

Pls do help.

Thanks in advance.

Regards,
Peri


Mon, 2005-08-08 10:04
Joined: 2005-03-04
Forum posts: 12
Re: Symbian C++ - Series 60 - How can i extract details for an S
hi i need the same what class/method does this i have only found how to send/create sms nothing to read with,
please help us
Mon, 2005-08-08 13:04
Joined: 2004-12-23
Forum posts: 239
Re: Symbian C++ - Series 60 - How can i extract details for an S
Quote
Hi,

Need to loop thru SMS Inbox and for each message, need to extract DETAILS of the message. Managed to loop thru the messages. But..., Need to extract SMS message details(viz. From, Subject, Date, Time & Type) for each read SMS message(TMsvId aMessageId). What i have is the message id(TMsvId aMessageId) and need to extract message details. How can i do this?

Pls do help.

Thanks in advance.

Regards,
Peri



Hi u can read the entries like this//this is for sentfolder


iSession=CMsvSession::OpenSyncL(*this);
CMsvEntry* entry = iSession->GetEntryL(KMsvSentEntryId);
CleanupStack::PushL(entry);                                   
CMsvEntrySelection* entries = entry->ChildrenL();     
CleanupStack::PopAndDestroy(entry) ;
  //entry = NULL ;
   TInt nCount = entries->Count();
 if(nCount>0)
 {
  for(TInt index = 0; index < nCount; index++)
    {
   
       TMsvId entryID = entries->At(index);       
       entry = iSession->GetEntryL(entryID);       
       CleanupStack::PushL(entry);
      TMsvEntry msvEntry = entry->Entry();     
      TPtrC nn = msvEntry.iDescription;
      TBuf<1000> tempBuf;
      tempBuf.Zero();
      tempBuf.Format(_L("%S"),&nn);
     
     
    entry->DeleteL(entryID);
      CleanupStack::PopAndDestroy(entry); // entry
   
}
}





Hope this will help u

---------------
Bhatt Kavita

Mon, 2005-08-08 15:11
Joined: 2004-12-03
Forum posts: 192
Re: Symbian C++ - Series 60 - How can i extract details for an S
 Cheezy
Wed, 2005-08-10 09:56
Joined: 2005-04-12
Forum posts: 58
Re: Symbian C++ - Series 60 - How can i extract details for an S
Thanks, mesweetie.

Regards,
Peri

  • Login to reply to this topic.