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 TAppMngr2LocationLocationFromDriveL(TInt, RFs &)
IMPORT_C TAppMngr2LocationLocationFromFileNameL(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 & aBitmapFileMBM or MIF file name
RFs & aFs

LocationFromDriveL(TInt, RFs &)

IMPORT_C TAppMngr2LocationLocationFromDriveL(TIntaDrive,
RFs &aFs
)[static]

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

Parameters

TInt aDriveDrive which location is needed
RFs & aFsFile server session

LocationFromFileNameL(const TDesC &, RFs &)

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

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

Parameters

const TDesC & aFileNameFile which location is needed
RFs & aFsFile 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 & aFileNameResource file name
RFs & aFsFile server session