22#if !defined(__F32FILE_H__)
25#if !defined(__E32BASE_H__)
29#ifndef SYMBIAN_ENABLE_PUBLIC_PLATFORM_HEADER_SPLIT
31#if !defined(__E32SVR_H__)
1406 IMPORT_C TBool
IsDir()
const;
1416 inline void Copy(
const TEntry& aEntry);
1417 inline void Unpack();
1488 IMPORT_C TInt
Count()
const;
1494 TBuf8<KEntryArraySize> iBuf;
1646 TUint16 i16Reserved1;
1647 TUint32 i32Reserved1;
1648 TUint32 i32Reserved2;
1675 inline operator TInt()
const;
1715 struct SField {TUint8 pos;TUint8 len;TUint8 present;TUint8 filler;};
1716 enum TField {EDrive,EPath,EName,EExt,EMaxFields};
1717 enum TWild {EWildName=0x01,EWildExt=0x02,EWildEither=0x04,EIsRoot=0x08,EWildIsKMatchOne=0x10,EWildIsKMatchAny=0x20};
1734 IMPORT_C TBool
IsRoot()
const;
1735 IMPORT_C TBool
IsWild()
const;
1743 TInt
Set(
const TDesC* aName,
const TDesC* aRelated,
const TDesC* aDefault,TBool allowWild);
1745 TInt ParseDrive(
TLex& aName,TBool& aDone);
1746 TInt ParsePath(
TLex& aName,TBool& aDone);
1747 TInt ParseName(
TLex& aName,TBool& aDone);
1748 TInt ParseExt(
TLex& aName,TBool& aDone);
1753 SField iField[EMaxFields];
1865 IMPORT_C
virtual ~CDir();
1866 IMPORT_C TInt
Count()
const;
1868 IMPORT_C TInt
Sort(TUint aEntrySortKey);
1882#if defined SYMBIAN_PRIVATE_EFSRV
1883 #define EFSRV_EXPORT_C
1884 #define EFSRV_IMPORT_C
1886 #define EFSRV_EXPORT_C EXPORT_C
1887 #define EFSRV_IMPORT_C IMPORT_C
2021 EFSRV_IMPORT_C TInt ReadFileSection_RESERVED(
const TDesC& aName,TInt aPos,TDes8& aDes,TInt aLength)
const;
2109 {
return(DoMountProxyDrive(
TIpcArgs(aDrive, &aName, a0, a1))); }
2141 TBool iUseSessionPath;
2142 TUint iInvalidCharPos;
2186 void GetDirL(
const TDesC& aMatchName,TUint anEntryAttMask,TUint anEntrySortKey,
CDir*& anEntryList,
CDir*& aDirList,
RDir& aDir)
const;
2187 void GetDirL(
const TDesC& aMatchName,TUint anEntryAttMask,TUint anEntrySortKey,
CDir*& anEntryList,
RDir& aDir)
const;
2188 void GetDirL(
const TDesC& aMatchName,
const TUidType& aUidType,TUint anEntrySortKey,
CDir*& anEntryList,
RDir& aDir)
const;
2189 void DoGetDirL(TUint anEntrySortKey,
CDir*& anEntryList,
RDir& aDir)
const;
2192 IMPORT_C TInt DoMountProxyDrive(
const TIpcArgs& ipcArgs);
2236 inline void SetVal(TUint aIndex, TUint32 aVal);
2241 enum {
KUId = 0x820116A2};
2250 TUint32 iFSysNameHash;
2251 TBool iParamsSet : 1;
2264#ifndef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
2452 TInt
Clamp(RFileClamp& aHandle);
2465#ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
2466#include <f32file64.h>
2511 TInt SendReceive(TInt aFunction,
const TIpcArgs& aArgs)
const;
2533 IMPORT_C TInt
Open(
RFs& aFs,
const TDesC& aName,TUint aFormatMode,TInt& aCount);
2534 IMPORT_C TInt
Open(
RFs& aFs,
const TDesC& aName,TUint aFormatMode,TInt& aCount,
const TDesC8& anInfo);
2558 IMPORT_C TInt
Read(TInt64 aPos,TDes8& aDes);
2559 IMPORT_C TInt
Write(TInt64 aPos,TDesC8& aDes);
2603 IMPORT_C
static CDirScan* NewL(
RFs& aFs);
2604 IMPORT_C
static CDirScan* NewLC(
RFs& aFs);
2605 IMPORT_C ~CDirScan();
2606 IMPORT_C
void SetScanDataL(
const TDesC& aMatchName,TUint anEntryAttMask,TUint anEntrySortMask,TScanDirection aScanDir=EScanDownTree);
2607 IMPORT_C
void NextL(
CDir*& aDirEntries);
2608 IMPORT_C
TPtrC AbbreviatedPath();
2609 IMPORT_C
TPtrC FullPath();
2614 void UpdateAbbreviatedPath();
2615 void ScanUpTreeL(
CDir*& aDirEntries);
2616 void ScanDownTreeL(
CDir*& aDirEntries);
2617 void GetDirEntriesL(
CDir*& aDirEntries);
2622 TInt iAbbreviatedPathPos;
2623 TUint iEntryAttMask;
2624 TUint iEntrySortMask;
2626 TScanDirection iScanDir;
2782 IMPORT_C
void RunL();
2938 ERenameInvalidEntry,
2970 IMPORT_C
static CFileMan* NewL(
RFs& aFs);
2973 IMPORT_C TAction CurrentAction();
2974 IMPORT_C
void GetCurrentTarget(
TFileName& aFile);
2975 IMPORT_C
void GetCurrentSource(
TFileName& aFile);
2976 IMPORT_C TInt BytesTransferredByCopyStep();
2978 IMPORT_C TInt Attribs(
const TDesC& aName,TUint aSetMask,TUint aClearMask,
const TTime& aTime,TUint aSwitch=0);
2979 IMPORT_C TInt Attribs(
const TDesC& aName,TUint aSetMask,TUint aClearMask,
const TTime& aTime,TUint aSwitch,
TRequestStatus& aStatus);
2980 IMPORT_C TInt Copy(
const TDesC& anOld,
const TDesC& aNew,TUint aSwitch=EOverWrite);
2982 IMPORT_C TInt Delete(
const TDesC& aName,TUint aSwitch=0);
2984 IMPORT_C TInt Move(
const TDesC& anOld,
const TDesC& aNew,TUint aSwitch=EOverWrite);
2986 IMPORT_C TInt Rename(
const TDesC& anOld,
const TDesC& aNew,TUint aSwitch=EOverWrite);
2988 IMPORT_C TInt RmDir(
const TDesC& aDirName);
2990 IMPORT_C TInt Copy(
const RFile& anOld,
const TDesC& aNew,TUint aSwitches=EOverWrite);
3003 enum TInternalAction
3033 EInternalCopyForMove,
3040 EInternalRenameForMove,
3058 EInternalRenameInvalidEntry,
3064 EInternalCopyFromHandle,
3067 void CompleteOperationL();
3068 void DoOperationL();
3069 void CheckForDirectory();
3070 void SetFlags(TBool aOverWrite,TBool aRecurse,TBool aScanDirection,TBool aMoveRename);
3072 void DoSynchronize(TInt aRetVal);
3073 TInt CheckRenameAllowed(
const TDesC& aSrcName,
const TDesC& aTrgName);
3074 TInt SetupMoveOnSameDrive(TUint aSwitches, TBool& aComplete);
3075 TInt SetupMoveAcrossDrives(TUint aSwitches);
3076 TInt SetupTargetDirectory(TBool aOverWrite, TBool& aComplete);
3077 TBool SrcTrgDrivesIdentical();
3078 TInt SetupDirectoryForMove(TBool& aSrcIsDir);
3081 void DoCopyOrMoveL();
3085 void DoCopyFromHandleL();
3086#ifndef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
3087 TInt DoCopy(
const RFile& aSrcFile,
RFile& aDstFile, TInt& aRet);
3089 TInt DoCopy(
const RFile64& aSrcFile, RFile64& aDstFile, TInt& aRet);
3093 TInternalAction iAction;
3097 TInt iBytesTransferred;
3098#ifndef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
3099 RFile iSrcFileHandle;
3101 RFile64 iSrcFileHandle;
3103 TBool iMovingContents;
3109friend void RenameInvalidEntryL(
RFs& aFs,
TParse& aSrcFile);
3148 IMPORT_C TInt
Find();
3156 TInt DoFindByPath(
const TDesC& aFileName,
const TDesC* aPathList);
3157 TInt DoFindByDir(
const TDesC& aFileName,
const TDesC& aDir);
3159 TInt DoFindNextInPath();
3160 TInt DoFindNextInDriveList();
3161 TInt CallSafe(TInt aResult);
3242 TInt CheckForTerminator(TBool& anAnswer);
3248#ifndef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
3253 TBuf8<0x100> iReadBuf;
3271class TFsMntHelperImpl;
3276 IMPORT_C ~CFsMountHelper();
3277 IMPORT_C
static CFsMountHelper* New(
RFs& aFs, TInt aDrvNum);
3280 enum TFsDismountMode
3293 IMPORT_C TInt GetMountProperties();
3294 IMPORT_C TInt MountFileSystem()
const;
3295 IMPORT_C
void DismountFileSystem(
TRequestStatus& aStat, TFsDismountMode aDismountMode=ENormal)
const;
3296 IMPORT_C TInt DismountFileSystem()
const;
3299 inline CFsMountHelper();
3300 CFsMountHelper(
const CFsMountHelper&);
3301 CFsMountHelper& operator=(
const CFsMountHelper&);
3306 TFsMntHelperImpl* ipImpl;
3328#include <f32file.inl>
3329#ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
3330#include <f32file64.inl>
3333#ifdef SYMBIAN_F32_ENHANCED_CHANGE_NOTIFICATION
3334#include <f32notification.h>
3337#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
3338#include <f32file_private.h>
Array of variable length objects packed into a flat buffer.
Array of directory entries that has been read into memory from the file system.
IMPORT_C TInt Count() const
Gets the number of entries in the array of directory entries.
IMPORT_C TInt Sort(TUint aEntrySortKey)
Sorts the array of directory entries.
CArrayPakFlat< TEntry > * iArray
IMPORT_C void Compress()
Compresses the directory.
IMPORT_C const TEntry & operator[](TInt anIndex) const
Gets an entry from the array of directory entries.
IMPORT_C void AddL(const TEntry &anEntry)
Adds the specified entry to the directory.
IMPORT_C CDir()
Default constructor.
IMPORT_C void ExtractL(TBool aRemove, CDir *&aDir)
Copies all directory entries from this directory array, and adds them to a new directory array.
virtual IMPORT_C ~CDir()
Destructor.
static IMPORT_C CDir * NewL()
Allocates and constructs a directory object.
Abstract base class for file management.
IMPORT_C TFileManError GetMoreInfoAboutError()
Gets additional information about the latest error returned during a CFileMan operation.
IMPORT_C void RunInSeparateThreadL(TThreadFunction aThreadFunction)
Creates a separate thread to run the command.
virtual void DoOperationL()=0
Called from RunL to perform the requested operation.
IMPORT_C void RunL()
Executes a command.
IMPORT_C TPtrC FullPath()
Gets the full path of the file or directory currently being processed.
friend TInt FManBaseThreadFunction(TAny *aPtr)
IMPORT_C ~CFileBase()
Destructor.
IMPORT_C const TEntry & CurrentEntry()
Gets the entry currently being processed.
IMPORT_C void ConstructL()
Second phase constructor.
virtual void CompleteOperationL()
Called from RunL to perform tidy up after an operation.
friend void DoFManBaseOperationL(TAny *aPtr)
IMPORT_C void SetObserver(MFileManObserver *anObserver)
Sets the observer.
MFileManObserver * iObserver
IMPORT_C TInt GetLastError()
Gets the latest error code returned during a CFileMan operation.
TInt iNumberOfFilesProcessed
IMPORT_C TPtrC AbbreviatedPath()
Gets the abbreviated path of the file or directory currently being processed.
Provides notification of the progress of synchronous or asynchronous file management operations.
TControl
Control for the current CFileMan operation.
@ EAbort
Abort operation, causes function to return KErrCancel.
@ ERetry
Retry processing the previous entry.
@ ECancel
Cancel processing the current entry.
@ EContinue
Proceed with the current or the next entry.
virtual IMPORT_C TControl NotifyFileManOperation()
Informs the observer that an operation, i.e.
virtual IMPORT_C TControl NotifyFileManEnded()
Informs the observer that an operation is complete.
virtual IMPORT_C TControl NotifyFileManStarted()
Inform the observer that an operation is about to start.
Reads the entries contained in a directory.
EFSRV_IMPORT_C TInt Open(RFs &aFs, const TDesC &aMatchName, const TUidType &aUidType)
Opens a directory using the specified UID type to filter the directory entry types that will subseque...
EFSRV_IMPORT_C TInt Read(TEntryArray &anArray) const
Reads all filtered directory entries into the specified array.
EFSRV_IMPORT_C void Close()
Closes the directory.
Creates and opens a file, and performs all operations on a single open file.
EFSRV_IMPORT_C void Close()
Closes the file.
EFSRV_IMPORT_C void ReadCancel() const
Cancels all outstanding asynchronous read requests for this subsession.
EFSRV_IMPORT_C TInt Flush()
Commits data to the storage device and flushes internal buffers without closing the file.
EFSRV_IMPORT_C TInt BlockMap(SBlockMapInfo &aInfo, TInt64 &aStartPos, TInt64 aEndPos=-1, TInt aBlockMapusage=EBlockMapUsagePaging) const
Fetches the Block Map of a file.
TInt DuplicateHandle(TInt &aSubSessionHandle) const
EFSRV_IMPORT_C TInt Modified(TTime &aTime) const
Gets local date and time the file was last modified, in universal time.
EFSRV_IMPORT_C TInt TransferToServer(TIpcArgs &aIpcArgs, TInt aFsHandleIndex, TInt aFileHandleIndex) const
Transfers an already open file to a server.
EFSRV_IMPORT_C TInt Rename(const TDesC &aNewName)
Renames a file.
EFSRV_IMPORT_C TInt SetModified(const TTime &aTime)
Sets the date and time the file was last modified.
EFSRV_IMPORT_C TInt Name(TDes &aName) const
Gets the final part of a filename.
EFSRV_IMPORT_C TInt Set(const TTime &aTime, TUint aSetAttMask, TUint aClearAttMask)
Sets the file s attributes, and the date and time it was last modified.
EFSRV_IMPORT_C TInt AdoptFromCreator(TInt aFsIndex, TInt aFileHandleIndex)
Allows a server to adopt an already open file from a client process.
EFSRV_IMPORT_C TInt Open(RFs &aFs, const TDesC &aName, TUint aFileMode)
Opens an existing file for reading or writing.
EFSRV_IMPORT_C TInt AdoptFromServer(TInt aFsHandle, TInt aFileHandle)
Allows a client to adopt an already open file from a server.
EFSRV_IMPORT_C TInt FullName(TDes &aName) const
Gets the full filename.
EFSRV_IMPORT_C TInt Drive(TInt &aDriveNumber, TDriveInfo &aDriveInfo) const
Gets information about the drive on which this file resides.
void CloseSubSession(TInt aFunction)
EFSRV_IMPORT_C TInt Att(TUint &aAttValue) const
Gets the file's attributes.
EFSRV_IMPORT_C TInt Read(TDes8 &aDes) const
Reads from the file at the current position.
EFSRV_IMPORT_C TInt Lock(TInt aPos, TInt aLength) const
Locks a region within the file as defined by a range of bytes.
EFSRV_IMPORT_C TInt SetAtt(TUint aSetAttMask, TUint aClearAttMask)
Sets or clears file attributes using two bitmasks.
EFSRV_IMPORT_C TInt AdoptFromClient(const RMessage2 &aMsg, TInt aFsHandleIndex, TInt aFileHandleIndex)
Allows a server to adopt an already open file from a client.
TInt Clamp(RFileClamp &aHandle)
Instructs the File Server that the file is not to be modified on storage media.
EFSRV_IMPORT_C TInt TransferToProcess(RProcess &aProcess, TInt aFsHandleIndex, TInt aFileHandleIndex) const
Transfers an already open file to another process.
TInt SendReceive(TInt aFunction, const TIpcArgs &aArgs) const
Sends a message to the server and waits synchronously for a reply.
EFSRV_IMPORT_C TInt Size(TInt &aSize) const
Gets the current file size.
EFSRV_IMPORT_C TInt TransferToClient(const RMessage2 &aMsg, TInt aFileHandleIndex) const
Transfers an already open file from a server to a client.
TInt CreateSubSession(const RSessionBase &aSession, TInt aFunction, const TIpcArgs &aArgs)
Creates a new sub-session within an existing session.
EFSRV_IMPORT_C TInt Temp(RFs &aFs, const TDesC &aPath, TFileName &aName, TUint aFileMode)
Creates and opens a temporary file with a unique name for writing and reading.
EFSRV_IMPORT_C TInt Seek(TSeek aMode, TInt &aPos) const
Sets the the current file position.
EFSRV_IMPORT_C TInt Replace(RFs &aFs, const TDesC &aName, TUint aFileMode)
Opens a file for writing, replacing the content of any existing file of the same name if it exists,...
EFSRV_IMPORT_C TInt Create(RFs &aFs, const TDesC &aName, TUint aFileMode)
Creates and opens a new file for writing.
EFSRV_IMPORT_C TInt Duplicate(const RFile &aFile, TOwnerType aType=EOwnerProcess)
Make a duplicate of the passed file handle in the same thread.
EFSRV_IMPORT_C TInt SetSize(TInt aSize)
Sets the file size.
EFSRV_IMPORT_C TInt Write(const TDesC8 &aDes)
Writes to the file at the current offset within the file.
EFSRV_IMPORT_C TInt UnLock(TInt aPos, TInt aLength) const
Unlocks a region within the file as defined by a range of bytes.
EFSRV_IMPORT_C TInt ChangeMode(TFileMode aNewMode)
Switches an open file's access mode between EFileShareExclusive and EFileShareReadersOnly.
EFSRV_IMPORT_C TInt Adopt(RFs &aFs, TInt aHandle)
Adopts an already open file.
This class is used to for returning meaningful error code values to users of RFs::IsValidName(const T...
TError ErrorCode() const
returns the error code.
TUint InvalidCharPos() const
if the error code returned by TNameValidParam::ErrorCode() is TError::ErrBadCharacter,...
friend class TFsIsValidName
TError
possible error codes
@ ErrBadCharacter
aName contains a bad character; and its position is in iInvalidCharPos.
@ ErrBadName
aName isn't a valid file or directory name.
@ ErrNameTooLong
aName length or aName + session path length (see iUseSessionPath) is longer than 256 characters.
void UseSessionPath(TBool aUseSessionPath)
Allows the user to set, whether he wants to use the session path for filling up missing parts of the ...
A handle to a file server session.
EFSRV_IMPORT_C TInt GetLongName(const TDesC &aShortName, TDes &aLongName) const
Gets the long filename associated with a short (8.3) filename.
EFSRV_IMPORT_C TInt SessionPath(TDes &aPath) const
Gets the session path.
EFSRV_IMPORT_C TInt ResourceCount() const
Gets the number of currently open resources.
EFSRV_IMPORT_C TUint8 * IsFileInRom(const TDesC &aFileName) const
Gets a pointer to the specified file, if it is in ROM.
static EFSRV_IMPORT_C TBool IsRomAddress(TAny *aAny)
Tests whether the specified address is in ROM.
TInt Unclamp(const RFileClamp &aHandle)
Makes available for paging-out the media space occupied by the file identified by the supplied handle...
EFSRV_IMPORT_C TInt ExtensionName(TDes &aExtensionName, TInt aDrive, TInt aPos)
Gets the name of the extension on the specified drive at the specified position in the extension hier...
EFSRV_IMPORT_C TBool IsValidName(const TDesC &anEntryName) const
Tests whether a filename and path are syntactically correct.
EFSRV_IMPORT_C void ResourceCountMarkStart() const
Marks the start of resource count checking.
EFSRV_IMPORT_C TInt GetDir(const TDesC &aName, TUint anEntryAttMask, TUint anEntrySortKey, CDir *&anEntryList) const
Gets a filtered list of a directory's contents.
EFSRV_IMPORT_C TBool GetNotifyUser()
Tests whether user notification of file read or write failure is in effect.
IMPORT_C TInt RemoveProxyDrive(const TDesC &aDriveName)
Removes the specified extension.
EFSRV_IMPORT_C TInt AddPlugin(const TDesC &aFileName) const
Loads a specified Plugin.
EFSRV_IMPORT_C TInt PluginName(TDes &aPluginName, TInt aDrive, TInt aPos)
Gets the name of the plugin on the specified drive at the specified position in the plugin hierarchy.
EFSRV_IMPORT_C TInt AddExtension(const TDesC &aFileName)
Loads the specified extension.
EFSRV_IMPORT_C TInt RemoveExtension(const TDesC &aExtensionName)
Removes the specified extension.
EFSRV_IMPORT_C TInt SetAtt(const TDesC &aName, TUint aSetAttMask, TUint aClearAttMask)
Sets or clears the attributes of a single file or directory.
EFSRV_IMPORT_C TInt GetDriveName(TInt aDrive, TDes &aDriveName) const
Gets the name of a drive.
EFSRV_IMPORT_C TInt SetSystemDrive(TDriveNumber aSystemDrive)
Set a specified drive as a "System Drive", see RFs::GetSystemDrive().
static EFSRV_IMPORT_C TBool IsValidDrive(TInt aDrive)
Tests whether the specified drive number is valid.
EFSRV_IMPORT_C void ResourceCountMarkEnd() const
Ends resource count checking.
EFSRV_IMPORT_C TInt Att(const TDesC &aName, TUint &aAttValue) const
Gets a file's attributes.
TFinaliseDrvMode
specifies drive finalisation modes
@ EFinal_RW
after successful finalisation the drive remains writable and will become "not finalised" after the fi...
@ EForceUnfinalise
Internal component API. mark the drive as "not finalised" can result in KErrAbort if the dive is in i...
@ EFinal_RO
after successful finalisation the drive becomes read-only
EFSRV_IMPORT_C TInt AddCompositeMount(const TDesC &aFileSystemName, TInt aLocalDriveToMount, TInt aCompositeDrive, TBool aSync) const
Adds a local drive to the composite filesystem.
EFSRV_IMPORT_C TInt Entry(const TDesC &aName, TEntry &anEntry) const
Gets the entry details for a file or directory.
EFSRV_IMPORT_C TInt LockDrive(TInt aDrv, const TMediaPassword &aOld, const TMediaPassword &aNew, TBool aStr)
Sets the password for the media in the specified drive.
EFSRV_IMPORT_C TInt Connect(TInt aMessageSlots=KFileServerDefaultMessageSlots)
Connects a client to the file server.
EFSRV_IMPORT_C TInt SwapFileSystem(const TDesC &aOldFileSystemName, const TDesC &aNewFileSystemName, TInt aDrive) const
Dismount aOldFileSystemName and mount aNewFileSystemName in an atomic operation.
EFSRV_IMPORT_C void NotifyDiskSpace(TInt64 aThreshold, TInt aDrive, TRequestStatus &aStat)
Requests notification when the free disk space on the specified drive crosses the specified threshold...
EFSRV_IMPORT_C TInt FinaliseDrives()
Makes the best effort to finalise all drives in the system.
EFSRV_IMPORT_C TInt RmDir(const TDesC &aPath)
Removes a directory.
EFSRV_IMPORT_C TInt MountPlugin(const TDesC &aPluginName) const
Mounts a specified plugin.
EFSRV_IMPORT_C void StartupInitComplete(TRequestStatus &aStat)
Noifies the file server that startup initialisation is complete.
EFSRV_IMPORT_C TInt SetNotifyChange(TBool aNotifyChange)
Enables/Disables change notification on a per-session basis.
EFSRV_IMPORT_C void NotifyDiskSpaceCancel()
Cancels all outstanding requests for free disk space notification.
TInt MountProxyDrive(const TUint aDrive, const TDesC &aName, T0 a0, T1 a1)
EFSRV_IMPORT_C TInt ReserveDriveSpace(TInt aDriveNo, TInt aSpace)
Reserves an area of a drive.
EFSRV_IMPORT_C TInt Delete(const TDesC &aName)
Deletes a single file.
EFSRV_IMPORT_C TInt CreatePrivatePath(TInt aDrive)
Creates the private path for a process on the specified drive.
static EFSRV_IMPORT_C TDriveNumber GetSystemDrive()
Obtain the system drive number.
EFSRV_IMPORT_C TInt SetSubst(const TDesC &aPath, TInt aDrive=KDefaultDrive)
Assigns a path to a drive letter.
IMPORT_C TInt SetErrorCondition(TInt anError, TInt aCount=0)
Sets the failure condition.
EFSRV_IMPORT_C TInt ReleaseReserveAccess(TInt aDriveNo)
Release exclusive access for this session to overwrite a specific disk area.
EFSRV_IMPORT_C void NotifyChangeCancel()
Cancels all outstanding requests for notification of change to files or directories.
EFSRV_IMPORT_C TInt Drive(TDriveInfo &anInfo, TInt aDrive=KDefaultDrive) const
Gets information about a drive and the medium mounted on it.
EFSRV_IMPORT_C TInt GetShortName(const TDesC &aLongName, TDes &aShortName) const
Gets the short filename associated with a VFAT long filename.
EFSRV_IMPORT_C TInt RemoveFileSystem(const TDesC &aFileSystemName) const
Removes the specified file system.
EFSRV_IMPORT_C TInt RealName(const TDesC &aName, TDes &aResult) const
Gets the real name of a file.
EFSRV_IMPORT_C TInt Rename(const TDesC &anOldName, const TDesC &aNewName)
Renames a single file or directory.
EFSRV_IMPORT_C TInt InitialisePropertiesFile(const TPtrC8 &aPtr) const
Sets the F32 properties file - Can only be called from the ESTART process.
EFSRV_IMPORT_C TInt SetVolumeLabel(const TDesC &aName, TInt aDrive=KDefaultDrive)
Sets the label for a volume.
EFSRV_IMPORT_C TInt GetReserveAccess(TInt aDriveNo)
Get exclusive access for this session to overwrite a specific disk area, which has previously been re...
EFSRV_IMPORT_C TInt FileSystemName(TDes &aName, TInt aDrive) const
Gets the name of the file system mounted on the specified drive.
IMPORT_C TInt DismountProxyDrive(const TUint aDrive)
Dismounts a proxy drive.
EFSRV_IMPORT_C TInt PrivatePath(TDes &aPath)
Creates the text defining the private path for a process.
EFSRV_IMPORT_C TInt AddFileSystem(const TDesC &aFileName) const
Adds a file system to the file server.
EFSRV_IMPORT_C TInt SetDebugRegister(TInt aVal)
Sets the debug register to the given value.
EFSRV_IMPORT_C TInt Replace(const TDesC &anOldName, const TDesC &aNewName)
Replaces a single file with another.
EFSRV_IMPORT_C TInt ErasePassword(TInt aDrv)
Erase the password from the locked MultiMedia card in the specified drive.
EFSRV_IMPORT_C TInt MkDir(const TDesC &aPath)
Makes a directory.
EFSRV_IMPORT_C TInt AllowDismount(TInt aDrive) const
Used by a client to indicate that it is safe to dismount the file system.
EFSRV_IMPORT_C TInt SetLocalDriveMapping(const TDesC8 &aMapping)
EFSRV_IMPORT_C TInt GetMediaSerialNumber(TMediaSerialNumber &aSerialNum, TInt aDrive)
Gets the serial number of media.
static EFSRV_IMPORT_C TChar GetSystemDriveChar()
This is a wrapper around GetSystemDrive() function.
EFSRV_IMPORT_C TInt UnlockDrive(TInt aDrv, const TMediaPassword &Pswd, TBool aStr)
Unlocks the media in the specified drive.
EFSRV_IMPORT_C void NotifyDismount(TInt aDrive, TRequestStatus &aStat, TNotifyDismountMode aMode=EFsDismountRegisterClient) const
Controls file system dismounting on the specified drive, the way of control depends on the parameter ...
EFSRV_IMPORT_C TInt SetSessionPath(const TDesC &aPath)
Sets the session path for the current file server client.
EFSRV_IMPORT_C TInt Modified(const TDesC &aName, TTime &aTime) const
Gets the last modification date and time of a file or a directory, in UTC.
EFSRV_IMPORT_C TInt FileSystemSubType(TInt aDriveNo, TDes &aName) const
This function queries the sub type of the file system mounted on the specified volume.
EFSRV_IMPORT_C TInt MkDirAll(const TDesC &aPath)
Makes one or more directories.
EFSRV_IMPORT_C TInt RemountDrive(TInt aDrive, const TDesC8 *aMountInfo=NULL, TUint aFlags=0)
Forces a remount of the specified drive.
EFSRV_IMPORT_C TInt LoaderHeapFunction(TInt aFunction, TAny *aArg1=NULL, TAny *aArg2=NULL)
This member function is not implemented in this version of Symbian OS.
EFSRV_IMPORT_C TInt MountFileSystem(const TDesC &aFileSystemName, TInt aDrive) const
Mounts a file system on a drive.
static EFSRV_IMPORT_C TInt CharToDrive(TChar aChar, TInt &aDrive)
Maps a drive character to a drive number.
EFSRV_IMPORT_C void Close()
EFSRV_IMPORT_C TInt DriveList(TDriveList &aList) const
Gets a list of the available (not remote and non hidden) drives.
EFSRV_IMPORT_C TInt DismountPlugin(const TDesC &aPluginName) const
Dismounts the specified plugin from all drives on which it is mounted.
EFSRV_IMPORT_C void SetNotifyUser(TBool aValue)
Sets whether the user should be notified of file read or write failure.
EFSRV_IMPORT_C TInt IsFileOpen(const TDesC &aFile, TBool &anAnswer) const
Tests whether a file is open.
EFSRV_IMPORT_C TInt SupportedFileSystemName(TDes &aName, TInt aDrive, TInt aFsEnumerator) const
Get one of the supported file system names on a specified drive.
EFSRV_IMPORT_C TInt DismountExtension(const TDesC &aExtensionName, TInt aDrive)
Dismounts the specified extension.
EFSRV_IMPORT_C TInt MountFileSystemAndScan(const TDesC &aFileSystemName, TInt aDrive, TBool &aIsMountSuccess) const
Mounts a file system on a drive, and performs a scan on that drive.
TInt SendReceive(TInt aFunction, const TIpcArgs &aArgs) const
Issues a synchronous request to the server with the specified function number and arguments.
EFSRV_IMPORT_C TInt VolumeIOParam(TInt aDriveNo, TVolumeIOParamInfo &aParamInfo) const
This function queries a set of I/O parameters on the specified volume, this includes the block size o...
EFSRV_IMPORT_C void NotifyChange(TNotifyType aType, TRequestStatus &aStat)
Requests a notification of change to files or directories.
EFSRV_IMPORT_C TInt SetModified(const TDesC &aName, const TTime &aTime)
Sets the date and time that the contents of a file or directory were modified, in UTC.
EFSRV_IMPORT_C TInt ClearPassword(TInt aDrv, const TMediaPassword &aPswd)
Clears the password from the locked MultiMedia card in the specified drive.
IMPORT_C TInt AddProxyDrive(const TDesC &aFileName)
Loads the specified extension.
EFSRV_IMPORT_C TInt SetSessionToPrivate(TInt aDrive)
Sets the session path to point to the private path on the specified drive.
EFSRV_IMPORT_C TInt CheckDisk(const TDesC &aDrive) const
Checks the integrity of the File System mounted on the specified drive.
EFSRV_IMPORT_C TInt Volume(TVolumeInfo &aVol, TInt aDrive=KDefaultDrive) const
Gets volume information for a formatted device.
TForceMediaChangeFlags
A set of special flags passed directly to the media driver via RFs::RemountDrive() API.
@ KMediaRemountForceMediaChange
This flag is used to simulate ejecting and re-inserting the media.
@ KForceMediaChangeReOpenMediaDriver
This flag is used to force the media driver for the specified logical drive to be closed and reopened...
@ KForceMediaChangeReOpenAllMediaDrivers
Passing this flag to RFs::RemountDrive() API results in all media drivers associated with the primary...
EFSRV_IMPORT_C TInt SetAllocFailure(TInt aAllocNum)
Fails an allocation after aAllocNum successes.
EFSRV_IMPORT_C void NotifyDismountCancel() const
Cancels all oustanding dismount notifiers for this session, completing with KErrCancel.
EFSRV_IMPORT_C TVersion Version() const
Gets the client side version number.
EFSRV_IMPORT_C TInt FinaliseDrive(TInt aDriveNo, TFinaliseDrvMode aMode) const
Finalise the given drive.
EFSRV_IMPORT_C void DebugNotify(TInt aDrive, TUint aNotifyType, TRequestStatus &aStat)
Request notification of a file server event - file system specific.
EFSRV_IMPORT_C TInt QueryVolumeInfoExt(TInt aDrive, TQueryVolumeInfoExtCmd aCommand, TDes8 &aInfo) const
Queries specific information on volumes by commands.
EFSRV_IMPORT_C TInt SetDriveName(TInt aDrive, const TDesC &aDriveName)
Sets the name of a drive.
EFSRV_IMPORT_C TInt SetEntry(const TDesC &aName, const TTime &aTime, TUint aSetAttMask, TUint aClearAttMask)
Sets both the attributes and the last modified date and time for a file or directory.
EFSRV_IMPORT_C TInt ScanDrive(const TDesC &aDrive) const
Checks the integrity of the File System mounted on the specified drive and attempts to correct some k...
EFSRV_IMPORT_C TInt Subst(TDes &aPath, TInt aDrive=KDefaultDrive) const
Gets the path assigned to a drive letter by an earlier call to SetSubst().
static EFSRV_IMPORT_C TInt DriveToChar(TInt aDrive, TChar &aChar)
Maps a drive number to the corresponding character.
EFSRV_IMPORT_C TInt ControlIo(TInt aDrive, TInt aCommand)
General purpose test interface - file system specific.
EFSRV_IMPORT_C TInt RemovePlugin(const TDesC &aPluginName) const
Removes the specified plugin.
EFSRV_IMPORT_C TInt MountExtension(const TDesC &aExtensionName, TInt aDrive)
Mounts the the specified extension.
EFSRV_IMPORT_C TInt Parse(const TDesC &aName, TParse &aParse) const
Parses a filename specification.
@ KRootFileSystem
specifies "root" file system. The result will be the same as for FileSystemName() API call
@ KFirstChildFileSystem
specifies the first child file system number, the second will be KFirstChildFileSystem+1 etc.
EFSRV_IMPORT_C TInt SetStartupConfiguration(TInt aCommand, TAny *aParam1, TAny *aParam2) const
Only can be called in estart.
EFSRV_IMPORT_C TInt ReadFileSection(const TDesC &aName, TInt64 aPos, TDes8 &aDes, TInt aLength) const
Reads data from a file without opening it.
EFSRV_IMPORT_C TInt DismountFileSystem(const TDesC &aFileSystemName, TInt aDrive) const
Dismounts the file system from the specified drive.
An object that encapsulates the details of a client request.
Enables direct disk access.
IMPORT_C TInt Open(RFs &aFs, TInt aDrive)
Opens a direct access channel to the disk.
IMPORT_C TInt Write(TInt64 aPos, TDesC8 &aDes)
Writes directly to the disk.
IMPORT_C void Close()
Closes the direct access channel to the disk, and allows other resources to access the disk.
IMPORT_C TInt Read(TInt64 aPos, TDes8 &aDes)
Reads directly from the disk.
Client-side handle to a session with a server.
Client-side handle to a sub-session.
IMPORT_C void SetNumberOfBlocks(TUint aNumberOfBlocks)
IMPORT_C TBlockMapEntry()
IMPORT_C void SetStartBlock(TUint aStartBlock)
A build-independent non-modifiable buffer descriptor.
A build-independent modifiable buffer descriptor.
Holds a character value and provides a number of utility functions to manipulate it and test its prop...
Contains drive information.
TBatteryState iBattery
Indicates whether the drive supports a battery, and if so, its state.
TConnectionBusType iConnectionBusType
The type of interface used to connect to the media.
TMediaType iType
The type of media mounted on the drive.
TUint iMediaAtt
The attributes of the media mounted on the drive.
TUint iDriveAtt
The drive attributes.
Drive numbers and letters.
IMPORT_C TDriveName Name() const
Gets the drive unit as text.
IMPORT_C TDriveUnit & operator=(TInt aDrive)
Assigns the drive number to the drive unit.
Array of directory entries.
IMPORT_C TInt Count() const
Gets the number of entries in the array.
friend class TRawEntryArray
IMPORT_C const TEntry & operator[](TInt anIndex) const
Gets the directory entry at the specified index.
IMPORT_C TEntryArray()
Default constructor.
Encapsulates an entry in a directory, which can be another (nested) directory, a file or a volume lab...
TBool IsUidPresent(TUid aUid) const
Tests whether the specified UID matches any of the UIDs in the UID type.
TUidType iType
The file's UIDtype.
TUid MostDerivedUid() const
Gets the most derived (i.e.
IMPORT_C TInt64 FileSize() const
IMPORT_C TBool IsArchive() const
Tests whether the file is an archive file.
TBufC< KMaxFileName > iName
The name of the file relative to the owning directory, with a maximum of KMaxFileName characters.
TTime iModified
The local time of last modification.
TBool IsTypeValid() const
Test whether the file has a valid UID.
IMPORT_C TBool IsReadOnly() const
Tests whether the file or directory is read-only.
IMPORT_C TBool IsSystem() const
Tests whether the file or directory has the system attribute set.
IMPORT_C TEntry()
Default constructor.
TInt iSize
The size of the file in bytes.
IMPORT_C TBool IsDir() const
Tests whether the entry is a directory.
IMPORT_C TBool IsHidden() const
Tests whether the file or directory is hidden.
void SetFileSize(TInt64 aFileSize)
Sets 64 bit file size.
IMPORT_C TEntry & operator=(const TEntry &aEntry)
Assignment operator.
TUint iAtt
The individual bits within this byte indicate which attributes have been set.
const TUid & operator[](TInt anIndex) const
Gets any one of the file's three UIDs.
Reads and writes single lines of text to or from a Unicode file.
IMPORT_C TFileText()
Default constructor.
IMPORT_C TInt Read(TDes &aDes)
Reads single line text record from a Unicode file into the specified descriptor.
IMPORT_C TInt Seek(TSeek aMode)
Seeks to start or end of file.
IMPORT_C TInt Write(const TDesC &aDes)
Writes the contents of a descriptor to the end of a Unicode file.
IMPORT_C void Set(RFile &aFile)
Sets the Unicode file to be read from, or written to.
Searches for files and directories.
IMPORT_C TInt Find()
Searches for the next file/directory.
IMPORT_C TInt SetFindMask(TUint aMask)
Can be used in order to specify a combination of drive attributes that the drives to be searched must...
IMPORT_C TInt FindWild(CDir *&aDirList)
Searches for the next file/directory.
IMPORT_C TInt FindWildByPath(const TDesC &aFileName, const TDesC *aPathList, CDir *&aDirList)
Searches for one or more files/directories in the directories contained in a path list.
IMPORT_C TInt FindByPath(const TDesC &aFileName, const TDesC *aPathList)
Searches for a file/directory in one or more directories in the path.
IMPORT_C TInt FindWildByDir(const TDesC &aFileName, const TDesC &aDirPath, CDir *&aDir)
Searches, using wildcards, for one or more files/directories in a specified directory.
const TDesC & File() const
Gets the full file specification of a file which was found by a successful call to any of the search ...
IMPORT_C TInt FindByDir(const TDesC &aFileName, const TDesC &aDirPath)
Searches for a file/directory in a directory on all available drives.
A Version 2 client/server class that clients use to package the arguments to be sent to a server.
Provides general string-parsing functions suitable for numeric format conversions and syntactical-ele...
Scans open files to get a list of the entries for all files which are currently open in a particular ...
IMPORT_C TThreadId ThreadId() const
Gets the ID of the thread that opened the files retrieved by NextL().
IMPORT_C void NextL(CFileList *&aFileList)
Gets a list of entries for the open files in the file server session.
Base class for file name parsing.
IMPORT_C TPtrC DriveAndPath() const
Gets the drive letter and path.
IMPORT_C TPtrC Ext() const
Gets the extension.
IMPORT_C TBool NamePresent() const
Tests whether a file name is present.
IMPORT_C TBool DrivePresent() const
Tests whether a drive is present.
IMPORT_C TPtrC Drive() const
Gets the drive letter.
IMPORT_C TInt PopDir()
Removes the last directory from the path in the fully parsed specification.
IMPORT_C TBool PathPresent() const
Tests whether a path is present.
IMPORT_C TInt AddDir(const TDesC &aName)
Adds a single directory onto the end of the path in the fully parsed specification.
IMPORT_C TPtrC Path() const
Gets the path.
IMPORT_C const TDesC & FullName() const
Gets the complete file specification.
IMPORT_C TBool ExtPresent() const
Tests whether an extension is present.
IMPORT_C TBool NameOrExtPresent() const
Tests whether a filename or an extension are present.
IMPORT_C TPtrC Name() const
Gets the filename.
virtual TDes & NameBuf()=0
IMPORT_C TBool IsKMatchAny() const
Tests whether the name or the extension contains asterisk wildcards.
IMPORT_C TBool IsRoot() const
Tests whether the path in the fully parsed specification is the root directory.
IMPORT_C TParseBase()
Default constructor.
TInt Set(const TDesC *aName, const TDesC *aRelated, const TDesC *aDefault, TBool allowWild)
virtual const TDesC & NameBufC() const =0
IMPORT_C TBool IsNameWild() const
Tests whether the filename in the fully parsed specification contains one or more wildcard characters...
IMPORT_C TBool IsWild() const
Tests whether the filename or the extension in the fully parsed specification contains one or more wi...
IMPORT_C TBool IsExtWild() const
Tests whether the extension in the fully parsed specification contains one or more wildcard character...
IMPORT_C TPtrC NameAndExt() const
Gets the filename and extension.
IMPORT_C TBool IsKMatchOne() const
Tests whether the name or the extension contains a question mark wildcard.
Parses, but cannot modify, filenames using less space on the stack than TParse.
IMPORT_C const TDesC & NameBufC() const
Gets a const reference to the descriptor containing the filename passed to the constructor of this ob...
IMPORT_C TDes & NameBuf()
Gets a reference to the descriptor containing the filename passed to the constructor of this object.
Parses filenames using less space on the stack than TParse.
IMPORT_C TDes & NameBuf()
Gets a reference to the descriptor containing the filename passed to the constructor of this object.
IMPORT_C const TDesC & NameBufC() const
Gets a const reference to the descriptor containing the filename passed to the constructor of this ob...
IMPORT_C const TDesC & NameBufC() const
Gets a const reference to the descriptor containing the file specification passed to the constructor ...
IMPORT_C TInt SetNoWild(const TDesC &aName, const TDesC *aRelated, const TDesC *aDefault)
Parses a file specification; disallows wildcards in any part of the file name or extension.
IMPORT_C TDes & NameBuf()
Gets a reference to the descriptor containing the file specification passed to the constructor of thi...
IMPORT_C TParse()
Default constructor.
IMPORT_C TInt Set(const TDesC &aName, const TDesC *aRelated, const TDesC *aDefault)
Parses a file specification, allowing wildcards in the filename and extension.
Packages an object into a modifiable buffer descriptor.
Packages a modifiable pointer descriptor which represents an object of specific type.
Indicates the completion status of a request made to a service provider.
Encapsulates the Id of a thread.
Stores and manipulates the date and time.
Encapsulates a set of three unique identifiers (UIDs) which, in combination, identify a system object...
A globally unique 32-bit number.
Contains version information.
Volume IO parameter information.
TInt iBlockSize
The size of a media block in bytes.
TInt iRecReadBufSize
The recommended buffer size for optimised reading performance.
TInt iRecWriteBufSize
The recommended buffer size for optimised writing performance.
TUint64 iMaxSupportedFileSize
The maximum file size that is supported by the file system mounted on this volume.
TInt iClusterSize
The size in bytes of a single file system cluster.
Contains information about a volume mounted on a drive.
IMPORT_C TVolumeInfo()
Default constructor.
TDriveInfo iDrive
Information about the drive on which the volume is mounted.
TBufC< KMaxFileName > iName
Name of the volume, with a maximum of KMaxFileName characters.
TFileCacheFlags iFileCacheFlags
Flags which define the default file-caching behaviour for this volume.
TUint iUniqueID
The volume’s unique identifying number.
TInt64 iFree
The amount of free space on the volume in bytes.
TInt64 iSize
The maximum size of the volume in bytes.
HBufC8 HBufC
Defines a build-independent heap descriptor.
TPtr8 TPtr
Defines a build-independent modifiable pointer descriptor.
TBuf8< KMaxSerialNumLength > TMediaSerialNumber
TDes8 TDes
Defines a build-independent modifiable descriptor.
TPtrC8 TPtrC
Defines a build-independent non-modifiable pointer descriptor.
TDesC8 TDesC
Defines a build-independent non-modifiable descriptor.
TBuf8< KMaxMediaPassword > TMediaPassword
Defines an 8-bit modifiable buffer descriptor to contain passwords when dealing with password securit...
const TUint KEntryAttReadOnly
File/directory attribute: read-only file or directory.
TFileManError
A list of CFileMan error codes.
@ ENoExtraInformation
No additional error information is available, either because the latest CFileMan operation did not re...
@ ESrcOpenFailed
Error occurred when attempting to open the source file for a file copy or move.
@ EScanNextDirectoryFailed
A leave occurred while scanning the next directory in the course of a file management function.
@ EInitializationFailed
A leave occurred while setting up the initial scan.
@ ENoFilesProcessed
The operation completed without processing any files because no matching files were found.
@ ETrgOpenFailed
Error occurred while attempting to create, or, if overwriting is in effect, replace the target file f...
const TUint KEntryAttMatchExclusive
Bit mask for matching file and directory entries.
const TInt KExtDelimiter
The character used to separate the filename from the extension.
TNotifyDismountMode
Notification modes for safe media removal notification API.
@ EFsDismountForceDismount
Used to forcibly dismount the file system without notifying clients.
@ EFsDismountRegisterClient
Used by a client to register for notification of pending dismount.
@ EFsDismountNotifyClients
Used for graceful file system dismounting with notifying clients of a pending dismount.
const TUint KEntryAttSystem
File/directory attribute: system file.
TBuf8< KMaxDrives > TDriveList
Defines a modifiable buffer descriptor to contain a drive list.
const TUint KEntryAttMatchExclude
Bit mask for matching file and directory entries.
const TUint KEntryAttMatchMask
Bit mask for matching file and directory entries.
TBuf< KMaxDriveName > TDriveName
Defines a modifiable buffer descriptor to contain a drive name.
TQueryVolumeInfoExtCmd
Commands to query specific volume information.
@ EIOParamInfo
Queries the I/O parameters of a specificed volume.
@ EIsDriveSync
This command determines whether the volume is synchronous or asynchronous.
@ EFSysExtensionsSupported
Query the volume to ascertain whether File system extensions are supported on this volume.
@ EIsDriveFinalised
Query if the given drive is finalised.
@ EFileSystemSubType
Queries the sub type of the file system mounted on a specified volume.
const TInt KMaxProxyDrives
The maximum number of available proxy drives.
const TInt KMaxDriveName
The maximum length of a drivename.
const TUint KEntryAttPacked
Indicates that a TEntry (that is generally returned from a TEntryArray) is stored in packed format wh...
const TUint KEntryAttArchive
File/directory attribute: an archive file.
const TUint KEntryAttNormal
File/directory attribute: any file without the hidden or system attribute.
TBuf< KMaxFSNameLength > TFSName
Defines a modifiable buffer descriptor to contain a file system or file system sub type name.
TFileMode
Access and share modes available when opening a file.
@ EFileWriteDirectIO
Disables write buffering.
@ EFileStream
For files to be opened in binary mode.
@ EFileReadAheadOn
Enables read ahead.
@ EFileRead
The file may be read from but not written to.
@ EFileShareReadersOrWriters
Shared access for reading and writing.
@ EFileReadBuffered
Enables read buffering.
@ EFileShareAny
Shared access for reading and writing.
@ EFileReadDirectIO
Disables read buffering.
@ EFileStreamText
For files to be opened in text mode.
@ EFileShareExclusive
Exclusive access for the program opening the file.
@ EFileSequential
Using this flag implies that the client is making large sequential reads and/or writes and it is inte...
@ EFileReadAsyncAll
Specifies that an asynchronous read request should not be completed until all requested data becomes ...
@ EFileWrite
The file may be read from and written to.
@ EFileWriteBuffered
Enables write buffering.
@ EDeleteOnClose
Enable delete on close.
@ EFileReadAheadOff
Disables read ahead.
@ EFileShareReadersOnly
Read-only sharing.
const TInt KEntryArraySize
The size of the array of TEntry items contained in a TEntryArray object.
const TInt KFileServerDefaultMessageSlots
The default value for the number of message slots passed to RFs::Connect().
const TUint KEntryAttDir
File/directory attribute: a directory without the hidden or system attribute.
const TUint KEntryAttXIP
File/directory attribute: ROM eXecute In Place file.
TFormatMode
The format method.
@ EFullFormat
Performs a full format, erasing whole media content and creating new file system layout.
@ ESpecialFormat
Indicates a custom formatting mode.
@ EQuickFormat
Performs a quick media format, erasing only required minimum media content.
@ EHighDensity
Indicates a high density floppy disk to be formatted.
@ EForceErase
Forced erase of locked media.
@ ELowDensity
Indicates a low density floppy disk to be formatted.
@ EForceFormat
This flag enables formatting the volume even if it has files or directories opened on it.
const TUint KEntryAttUnique
Bit mask for feature manager file entries.
const TUint KEntryAttAllowUid
Bit mask for matching file and directory entries.
const TUint KMaxMapsPerCall
const TInt KFileServerUidValue
The UID of the File Server process.
NONSHARABLE_CLASS(CDirScan)
Scans a directory structure.
CDir CFileList
Contains a list of entries for the files which were opened in a file server session.
const TUint KEntryAttMaskSupported
Bit mask for matching file and directory entries.
const TInt KMaxFSNameLength
The maximum length of a file system name or file system sub type name.
const TInt KDriveDelimiter
The character used to separate the drive letter from the path.
const TUint KEntryAttHidden
File/directory attribute: hidden file or directory.
const TInt KDefaultDrive
The session default drive.
const TUint KEntryAttVolume
File/directory attribute: volume name directory.
const TUint KEntryAttRemote
This file attribute bit is set if the file exists only on a remote file system and is not locally cac...
TEntryKey
Flags indicating the order in which directory entries are to be sorted.
@ EDirDescending
Qualifies the sort order; directories are sorted in descending order, i.e.
@ ESortByDate
Sort according to files' last modified time and date.
@ EDirsFirst
Qualifies the sort order; if set, directories come before files in sort order.
@ ESortByUid
Sort according to file UID.
@ ESortByExt
Sort according to alphabetic order of file extension.
@ ESortByName
Sort according to alphabetic order of file and directory name.
@ ESortBySize
Sort according to file size.
@ EDirsAnyOrder
Qualifies the sort order; if set, directories are listed in the order in which they occur.
@ EDescending
Qualifies the sort order; files are sorted in descending order, i.e.
@ ESortNone
The default; no sorting takes place.
@ EAscending
Qualifies the sort order; files are sorted in ascending order, i.e.
@ EDirsLast
Qualifies the sort order; if set, files come before directories in sort order.
const TInt KPathDelimiter
The character used to separate directories in the path name.
TDriveNumber
The drive number enumeration.
const TInt KMaxDrives
The maximum number of available drives.
const TUint KFileShareMask
Bit mask provided for retrieving a file's share mode.
NONSHARABLE_CLASS(CFsMountHelper) IMPORT_C TBool FileNamesIdentical(const TDesC &aFileName1, const TDesC &aFileName2)
const TInt KDriveAbsent
Indicates a drive letter which is not in use.
TSeek
Flags indicating the destination of a seek operation.
@ ESeekCurrent
Destination is the current position in file.
@ ESeekStart
Destination is the start of file.
@ ESeekAddress
This can only be used for file systems with execute-in-place facilities, such as the ROM file system:...
@ ESeekEnd
Destination is the end of file.
TBuf8< KMaxMapsPerCall *sizeof(TBlockMapEntry)> TBlockArrayDes
TNotifyType
A set of change notification flags.
@ ENotifyAll
Any change, including mounting and unmounting drives.
@ ENotifyAttributes
Change resulting from: RFs::SetEntry(), RFile::Set(), RFile::SetAtt(), RFile::SetModified() and RFile...
@ ENotifyDisk
Change resulting from the RRawDisk::Write() request.
@ ENotifyFile
Change resulting from file requests: RFile::Create(), RFile::Replace(), RFile::Rename(),...
@ ENotifyEntry
Addition or deletion of a directory entry, or changing or formatting a disk.
@ ENotifyDir
Change resulting from directory requests: RFs::MkDir(), RFs::RmDir(), and RFs::Rename().
@ ENotifyWrite
Change resulting from the RFile::Write() request.
TPckgBuf< TVolFormatParam > TVolFormatParamBuf
package buffer for the objects of class TVolFormatParamBuf
const TUint KEntryAttMaskFileSystemSpecific
The range of entry attributes reserved for file-system specific meanings.
TFileCacheFlags
Flags used to enable file server drive-specific caching.
@ EFileCacheReadAheadEnabled
Enable read-ahead caching - if file explicitly opened in EFileReadAheadOn mode.
@ EFileCacheReadEnabled
Enable read caching - if file explicitly opened in EFileReadBuffered mode.
@ EFileCacheReadAheadOn
Enable read-ahead caching, regardless of file open mode.
@ EFileCacheWriteEnabled
Enable write caching, if file explicitly opened in EFileWriteBuffered mode.
@ EFileCacheReadOn
Enable read caching for all files, regardless of file open mode.
@ EFileCacheWriteOn
Enable write caching for all files, regardless of file open mode.
__ASSERT_COMPILE(HAL::ENumHalAttributes< 256)