Namespaces
Variants
Actions
Revision as of 06:59, 26 July 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Using File Server Handle provided by Application Framework.

Jump to: navigation, search
Article Metadata

Article
Created: vasant21 (07 May 2007)
Last edited: hamishwillee (26 Jul 2012)

The Control Environment (CONE), which forms part of the application framework for UI applications, provides a permanent handle to the File Server to help reduce the number of connected File Server Sessions needed.

You don’t need to open a file server session, since the control environment already has an open RFs, to access it, we need to invoke FsSession() on the iCoeEnv member of the View class.


	RFs aFs = iCoeEnv->FsSession();	
RFile file;
TInt iErr;
 
iErr = file.Open(aFs,aFilename,EFileRead) ;
 
if( iErr == KErrNone)
{
// Do Something...
}
 
file.Close();
40 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