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 }



