CMPFileManager:
Article Metadata
CMPFileManager deals with all file operations, such as copying the file from source to sink, during copy user can always cancel copy, allowing to move a file instead of copy if needed, etc.
Below is the example code which demostrate CMPFileManager usuage.
_LIT(oldFile,"Old File Name");
_LIT(newFile,"New File Name");
void CTestMPFileManagerAppUi::ContructL()
{
...
CMPFileManager * iFileMgr = CMPFileManager::NewL();
...
}
void CTestMPFileManagerAppUi::StartCopyOperationL()
{
//Starts asynchronous copy operation
iFileMgr->StartCopyOperationL(this,oldFile,newFile);
}
void CTestMPFileManagerAppUi::CancelCopy()
{
//Cancels asynchronous copy operation
iFileMgr->CancelCopy();
}


(no comments yet)