×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    76

    How can i read SMS from temporary folders?

    hi guys
    my application can read SMS from inbox, outbox, sent and draft as we know the predefined folder ids.
    entry = iSession->GetEntryL(aFolderID);

    where as folder id is one of these:
    const TMsvId KInbox = KMsvGlobalInBoxIndexEntryId;
    const TMsvId KOutbox = KMsvGlobalOutBoxIndexEntryId;
    const TMsvId KDrafts = KMsvDraftEntryId;
    const TMsvId KSent = KMsvSentEntryId;

    but if one has created his own folder other than these then how can we we know the folderid in order to read the SMS from that temporary folder.

    thanks in advance.
    Thanx a lot

    With Best Regards

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: How can i read SMS from temporary folders?

    CMsvEntry::ChildrenWithTypeL can help you in listing folders (KUidMsvFolderEntry).

  3. #3
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    76

    Re: How can i read SMS from temporary folders?

    i have solved my problem
    {
    CMsvEntry *localServiceEntry = iSession->GetEntryL(KMsvLocalServiceIndexEntryId);
    CleanupStack::PushL(localServiceEntry);
    CMsvEntrySelection *folders = localServiceEntry->ChildrenWithTypeL(KUidMsvFolderEntry);
    CleanupStack::PushL(folders);

    for (TInt i = 0;i < count;i++)
    {
    TMsvEntry entry = localServiceEntry->ChildDataL((*folders)[i]);

    foldername.Zero();
    foldername.Format(KFolderName, (&entry.iDetails) );

    GetMessageCountFromFolderL(entry.Id(), 0);
    }
    CleanupStack::PopAndDestroy(2);
    }
    Thanx a lot

    With Best Regards

Similar Threads

  1. How to read SMS using AT commands
    By rajuk_2004 in forum General Messaging
    Replies: 7
    Last Post: 2009-04-23, 07:23
  2. IMEI no and read incoming sms from inbox ??
    By Neelakantan in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-07-20, 08:59
  3. Transferring SMS archive folders from 6680 to E61
    By tostaky10 in forum General Messaging
    Replies: 0
    Last Post: 2006-08-27, 13:22
  4. socket read hangs until socket is closed
    By camroe in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-07-21, 09:44
  5. Read class Zero SMS (via RS232)
    By Vir@s in forum General Messaging
    Replies: 1
    Last Post: 2005-02-02, 08:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×