×

Discussion Board

Results 1 to 3 of 3

Threaded View

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    60

    How to read templates on Templates folder?

    Hello every body, i am developing an application that want to read Templates on My folders.
    But i can not read the templates on the Templates folder.
    Please help me.

    Code:
           // Take a handle to the My folders entry
            CMsvEntry *myFoldersEntry = iSession->GetEntryL(KMsvMyFoldersEntryId);
            CleanupStack::PushL(myFoldersEntry);
            CMsvEntrySelection *folders = myFoldersEntry->ChildrenWithTypeL(KUidMsvFolderEntry);
            CleanupStack::PushL(folders);
    
            int found = -1;
            for(TInt i = 0; i < folders->Count(); i++)
            {
                TMsvEntry entry = myFoldersEntry->ChildDataL((*folders)[i]);
                if (entry.iDetails.Compare(_L("Templates")) == 0)
                {
                    found = i;
                    qDebug() << "Templates found" << found;
                }
            }
            if(found == -1)
            {
                CleanupStack::PopAndDestroy(2); //myFoldersEntry, folders
                return ETrue; // Folder name templates not exists.
            }
            else
            {
                TMsvEntry entry = myFoldersEntry->ChildDataL((*folders)[found]);
    
                CMsvEntry* boxEntry = iSession->GetEntryL(entry.Id());
                CleanupStack::PushL(boxEntry);
                qDebug() << "boxEntry->Count()" << boxEntry->Count(); // return 0
                iSelection = boxEntry->ChildrenWithTypeL(entry.iType);
                qDebug() << "iSelection->Count()" << iSelection->Count(); // return 0
                CleanupStack::PopAndDestroy(3); //myFoldersEntry, folders, boxEntry
            }
    Last edited by hamideh_tavakoli; 2012-07-22 at 09:59.

Similar Threads

  1. 6610 - Delete Messages In Templates Folder
    By dgrunited in forum Symbian
    Replies: 0
    Last Post: 2004-10-26, 18:02
  2. 6610 - Delete Messages In Templates Folder
    By dgrunited in forum Mobile Java General
    Replies: 0
    Last Post: 2004-10-26, 18:01
  3. 6610 - Delete Messages In Templates Folder
    By dgrunited in forum General Development Questions
    Replies: 0
    Last Post: 2004-10-26, 18:00
  4. Read SMS Default Templates
    By ramupc in forum General Messaging
    Replies: 0
    Last Post: 2004-04-19, 03:10
  5. Read SMS Default Templates
    By ramupc in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2004-04-19, 03:10

Posting Permissions

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