How to read Inbox

Login to reply to this topic.
Wed, 2005-03-23 08:47
Joined: 2005-03-21
Forum posts: 45
Hi,

I want to read the SMS in my Inbox as plain text. How do i do it?

Thanks in advance.

Regards,
Prabhu.

Thu, 2005-03-24 13:38
Joined: 2004-05-21
Forum posts: 49
How to read Inbox
Derive from MMsvSessionObserver since you pass your this-pointer to OpenSyncL

Code:
int e;
CMsvSession *pMsv = CMsvSession::OpenSyncL(*this);
CMsvEntry *pMsvEntry = pMsv->GetEntryL(KMsvGlobalInBoxIndexEntryId);
for(e=0;e<pMsvEntry->Count();e++){
iEikonEnv->AlertWin(
(*pMsvEntry)[e].iDetails,
(*pMsvEntry)[e].iDescription
);
}
delete pMsv;
Mon, 2005-03-28 06:47
Joined: 2005-03-21
Forum posts: 45
How to read Inbox
Hi blond_girl,

Thanks a lot Cheezy .

Is it possible to test SMS in emulator. Iam basically from j2me background where we open 2 instance of emulator each will have its own phone number and we can send and receive SMS using the phone numbers.

Is this possible in symbian. Or how do i do testing of SMS applications.

Regards,
Prabhu.
Wed, 2005-05-11 18:18
Joined: 2005-04-22
Forum posts: 9
How to read Inbox
instead of KMsvGlobalInBoxIndexEntryId you can use KMsvDraftEntryId for the emulator code. That is, feed your program with fake sms's that you create in the emulator's messaging app by creating a new sms and then cancel sending it, thus pushing it into the drafts folder.

- - - - - - -

simon b

  • Login to reply to this topic.