TAppMngr2DriveUtils Class Reference

class TAppMngr2DriveUtils

Utility functions to get TAppMngr2Location values and to construct resource and bitmap file names.

appmngr2pluginapi.lib
Since
S60 v5.1
Public Member Functions
IMPORT_C HBufC * FullBitmapFileNameLC (const TDesC &, RFs &)
IMPORT_C TAppMngr2Location LocationFromDriveL ( TInt , RFs &)
IMPORT_C TAppMngr2Location LocationFromFileNameL (const TDesC &, RFs &)
IMPORT_C TFileName * NearestResourceFileLC (const TDesC &, RFs &)

Member Functions Documentation

FullBitmapFileNameLC(const TDesC &, RFs &)

IMPORT_C HBufC * FullBitmapFileNameLC ( const TDesC & aBitmapFile,
RFs & aFs
) [static]

Returns full bitmap file name. Constructs file name using EDefaultRom drive, KDC_APP_BITMAP_DIR directory, and given MBM/MIF file name.

Full file name is allocated on heap and it is left in the cleanup stack. The caller of this method is responsible to delete the allocated HBufC object.

Parameters

const TDesC & aBitmapFile MBM or MIF file name
RFs & aFs

LocationFromDriveL(TInt, RFs &)

IMPORT_C TAppMngr2Location LocationFromDriveL ( TInt aDrive,
RFs & aFs
) [static]

Returns location info (TAppMngr2Location) based on given drive (aDrive).

Parameters

TInt aDrive Drive which location is needed
RFs & aFs File server session

LocationFromFileNameL(const TDesC &, RFs &)

IMPORT_C TAppMngr2Location LocationFromFileNameL ( const TDesC & aFileName,
RFs & aFs
) [static]

Returns location info (TAppMngr2Location) based on given file name (aFileName).

Parameters

const TDesC & aFileName File which location is needed
RFs & aFs File server session

NearestResourceFileLC(const TDesC &, RFs &)

IMPORT_C TFileName * NearestResourceFileLC ( const TDesC & aFileName,
RFs & aFs
) [static]

Returns the nearest resource file using for given file (aFileName) using EDefaultRom drive, KDC_RESOURCE_FILES_DIR, and BaflUtils::NearestLanguageFile() .

TFileName object is allocated on heap and it is left in the cleanup stack. The caller of this method is responsible to delete the allocated TFileName object.

Parameters

const TDesC & aFileName Resource file name
RFs & aFs File server session