Namespaces
Variants
Actions

CMPFileManager:

Jump to: navigation, search
Article Metadata

Article
Created: samiudd (29 Jun 2007)
Last edited: hamishwillee (30 May 2013)

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();
}
This page was last modified on 30 May 2013, at 07:36.
76 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved