×
Namespaces

Variants
Actions
Revision as of 05:10, 20 July 2012 by hamishwillee (Talk | contribs)

CMPFileManager:

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: samiudd (29 Jun 2007)
Last edited: hamishwillee (20 Jul 2012)

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();
}
47 page views in the last 30 days.
×