class BaflUtils |
Provides simple-to-use file system utilities.
The functions listed in "Copying, renaming, and deleting files" create and use a CFileMan object. They are useful for one-off calls, but for repeated use it is more efficient to use CFileMan directly.
Note that there is a very similiar group of functions available in EikFileUtils, which may be easier to use in GUI applications, as they do not require a file server session to be passed.
EikFileUtils
Private Member Functions | |
---|---|
void | DoCopyFileL(RFs &, const TDesC &, const TDesC &, TUint) |
void | DoDeleteFileL(RFs &, const TDesC &, TUint) |
void | DoRenameFileL(RFs &, const TDesC &, const TDesC &, TUint) |
IMPORT_C void | AbbreviateFileName | ( | const TFileName & | aOriginalFileName, |
TDes & | aAbbreviatedFileName | |||
) | [static] |
IMPORT_C TInt | CheckFolder | ( | RFs & | aFs, |
const TDesC & | aFolderName | |||
) | [static] |
IMPORT_C TInt | CheckWhetherFullNameRefersToFolder | ( | const TDesC & | aFullName, |
TBool & | aIsFolder | |||
) | [static] |
IMPORT_C TInt | CopyFile | ( | RFs & | aFs, |
const TDesC & | aSourceFullName, | |||
const TDesC & | aTargetFullName, | |||
TUint | aSwitch = CFileMan::EOverWrite | |||
) | [static] |
IMPORT_C void | CopyWithTruncation | ( | TDes & | aDest, |
const TDesC & | aSrc, | |||
TChar | aTruncationSymbol = KBaflCharTruncation | |||
) | [static] |
TDes & aDest | |
const TDesC & aSrc | |
TChar aTruncationSymbol = KBaflCharTruncation |
IMPORT_C TInt | DeleteFile | ( | RFs & | aFs, |
const TDesC & | aSourceFullName, | |||
TUint | aSwitch = 0 | |||
) | [static] |
IMPORT_C TInt | DiskIsReadOnly | ( | RFs & | aFs, |
const TDesC & | aFullName, | |||
TBool & | aIsReadOnly | |||
) | [static] |
void | DoCopyFileL | ( | RFs & | aFs, |
const TDesC & | aSourceFullName, | |||
const TDesC & | aTargetFullName, | |||
TUint | aSwitch | |||
) | [private, static] |
void | DoDeleteFileL | ( | RFs & | aFs, |
const TDesC & | aSourceFullName, | |||
TUint | aSwitch | |||
) | [private, static] |
void | DoRenameFileL | ( | RFs & | aFs, |
const TDesC & | aOldFullName, | |||
const TDesC & | aNewFullName, | |||
TUint | aSwitch | |||
) | [private, static] |
IMPORT_C TFileName | DriveAndPathFromFullName | ( | const TDesC & | aFullName | ) | [static] |
const TDesC & aFullName |
IMPORT_C TInt | DriveIsReadOnlyInternal | ( | RFs & | aFs, |
const TDesC & | aFullName, | |||
TBool & | aIsReadOnlyInternal | |||
) | [static] |
IMPORT_C void | EnsurePathExistsL | ( | RFs & | aFs, |
const TDesC & | aFileName | |||
) | [static] |
IMPORT_C TPtrC | ExtractAppNameFromFullName | ( | const TFullName & | aName | ) | [static] |
const TFullName & aName |
IMPORT_C TBool | FileExists | ( | const RFs & | aFs, |
const TDesC & | aFileName | |||
) | [static] |
IMPORT_C TBool | FolderExists | ( | RFs & | aFs, |
const TDesC & | aFolderName | |||
) | [static] |
IMPORT_C TFileName | FolderNameFromFullName | ( | const TDesC & | aFullName | ) | [static] |
const TDesC & aFullName |
IMPORT_C void | GetDiskListL | ( | const RFs & | aFs, |
CDesCArray & | aArray | |||
) | [static] |
const RFs & aFs | |
CDesCArray & aArray |
IMPORT_C void | GetDowngradePathL | ( | const RFs & | aFs, |
const TLanguage | aCurrentLanguage, | |||
RArray< TLanguage > & | aLanguageArray | |||
) | [static] |
IMPORT_C void | GetEquivalentLanguageList | ( | TLanguage | aLang, |
TLanguagePath & | aEquivalents | |||
) | [static] |
TLanguage aLang | |
TLanguagePath & aEquivalents |
IMPORT_C TInt | GetSystemDrive | ( | TDriveNumber & | aDriveNumber | ) | [static] |
TDriveNumber & aDriveNumber |
IMPORT_C void | InitialiseScreenCalibration | ( | RFs & | aFs | ) | [static] |
RFs & aFs |
IMPORT_C TBool | IsFirstDriveForSocket | ( | TDriveUnit | aDriveUnit | ) | [static] |
TDriveUnit aDriveUnit |
IMPORT_C TInt | IsFolder | ( | const RFs & | aFs, |
const TDesC & | aFullName, | |||
TBool & | aIsFolder | |||
) | [static] |
IMPORT_C TInt | MostSignificantPartOfFullName | ( | const TDesC & | aFullName, |
TFileName & | aMostSignificantPart | |||
) | [static] |
IMPORT_C void | NearestLanguageFile | ( | const RFs & | aFs, |
TFileName & | aName | |||
) | [static] |
IMPORT_C void | NearestLanguageFile | ( | const RFs & | aFs, |
TFileName & | aName, | |||
TLanguage & | aLanguage | |||
) | [static] |
IMPORT_C void | NearestLanguageFileV2 | ( | const RFs & | aFs, |
TFileName & | aName, | |||
TLanguage & | aLanguage | |||
) | [static] |
IMPORT_C TBool | PathExists | ( | RFs & | aFs, |
const TDesC & | aFileName | |||
) | [static] |
IMPORT_C void | PersistScreenCalibration | ( | const TDigitizerCalibration & | aScreenCalibration | ) | [static] |
const TDigitizerCalibration & aScreenCalibration |
IMPORT_C void | RemoveSystemDirectory | ( | CDir & | aDir | ) | [static] |
CDir & aDir |
IMPORT_C TInt | RenameFile | ( | RFs & | aFs, |
const TDesC & | aOldFullName, | |||
const TDesC & | aNewFullName, | |||
TUint | aSwitch = CFileMan::EOverWrite | |||
) | [static] |
IMPORT_C TFileName | RootFolderPath | ( | const TBuf< 1 > | aDriveLetter | ) | [static] |
const TBuf< 1 > aDriveLetter |
IMPORT_C TInt | SetIdealLanguage | ( | TLanguage | aLanguage | ) | [static] |
TLanguage aLanguage |
IMPORT_C TInt | SortByTable | ( | CDir & | aDir, |
CBaflFileSortTable * | aTable | |||
) | [static] |
CDir & aDir | |
CBaflFileSortTable * aTable |
IMPORT_C TBool | UidTypeMatches | ( | const TUidType & | aFileUid, |
const TUidType & | aMatchUid | |||
) | [static] |
IMPORT_C void | UpdateDiskListL | ( | const RFs & | aFs, |
CDesCArray & | aArray, | |||
TBool | aIncludeRom, | |||
TDriveNumber | aDriveNumber | |||
) | [static] |
const RFs & aFs | |
CDesCArray & aArray | |
TBool aIncludeRom | |
TDriveNumber aDriveNumber |