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
}[/CODE]
Re: How to read templates on Templates folder?
Is it possible to found a file that templates are saved on it? (Reading this file --> getting templates)
I have no idea how to solve my problem, please help me.
Re: How to read templates on Templates folder?
I'm still hoping someone give me the answer...
please help me.