|
|
User login
Feeds |
Symbian C++ - Series 60 - How can i extract details for an SMS message?
|
|||||
| Tue, 2005-08-02 10:38 | |
|
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 |
|
Forum posts: 12
please help us
Forum posts: 239
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
Forum posts: 192
Forum posts: 58
Regards,
Peri