2104 |
2104 |
2105 IMPORT_C TInt AddProxyDrive(const TDesC& aFileName); |
2105 IMPORT_C TInt AddProxyDrive(const TDesC& aFileName); |
2106 IMPORT_C TInt RemoveProxyDrive(const TDesC& aDriveName); |
2106 IMPORT_C TInt RemoveProxyDrive(const TDesC& aDriveName); |
2107 |
2107 |
2108 template <class T0,class T1> inline TInt MountProxyDrive(const TUint aDrive, const TDesC& aName, T0 a0, T1 a1) |
2108 template <class T0,class T1> inline TInt MountProxyDrive(const TUint aDrive, const TDesC& aName, T0 a0, T1 a1) |
2109 { return(DoMountProxyDrive(TIpcArgs(aDrive, &aName, a0, a1))); }; |
2109 { return(DoMountProxyDrive(TIpcArgs(aDrive, &aName, a0, a1))); } |
2110 IMPORT_C TInt DismountProxyDrive(const TUint aDrive); |
2110 IMPORT_C TInt DismountProxyDrive(const TUint aDrive); |
2111 |
2111 |
2112 TInt Unclamp(const RFileClamp& aHandle); |
2112 TInt Unclamp(const RFileClamp& aHandle); |
2113 |
2113 |
2114 EFSRV_IMPORT_C TInt ReadFileSection(const TDesC& aName,TInt64 aPos,TDes8& aDes,TInt aLength) const; |
2114 EFSRV_IMPORT_C TInt ReadFileSection(const TDesC& aName,TInt64 aPos,TDes8& aDes,TInt aLength) const; |
2149 KRootFileSystem = 0x00800000, ///< specifies "root" file system. The result will be the same as for FileSystemName() API call |
2149 KRootFileSystem = 0x00800000, ///< specifies "root" file system. The result will be the same as for FileSystemName() API call |
2150 KFirstChildFileSystem = 0 ///< specifies the first child file system number, the second will be KFirstChildFileSystem+1 etc. |
2150 KFirstChildFileSystem = 0 ///< specifies the first child file system number, the second will be KFirstChildFileSystem+1 etc. |
2151 }; |
2151 }; |
2152 |
2152 |
2153 EFSRV_IMPORT_C TInt SupportedFileSystemName(TDes& aName, TInt aDrive, TInt aFsEnumerator) const; |
2153 EFSRV_IMPORT_C TInt SupportedFileSystemName(TDes& aName, TInt aDrive, TInt aFsEnumerator) const; |
|
2154 |
|
2155 |
|
2156 |
|
2157 /** |
|
2158 A set of special flags passed directly to the media driver via RFs::RemountDrive() API. |
|
2159 They are used to specify how exactly the drive should be remounted. For more information see RLocalDrive::ForceMediaChange() |
|
2160 @see RFs::RemountDrive() |
|
2161 */ |
|
2162 enum TForceMediaChangeFlags |
|
2163 { |
|
2164 /** |
|
2165 Passing this flag to RFs::RemountDrive() API results in all media drivers associated with the primary media being closed and reopened. |
|
2166 All pending requests on all logical drives associated with the primary media will be cancelled. |
|
2167 */ |
|
2168 KForceMediaChangeReOpenAllMediaDrivers = 0, |
|
2169 |
|
2170 /** |
|
2171 This flag is used to simulate ejecting and re-inserting the media. |
|
2172 All pending requests on all logical drives associated with the primary media will be cancelled. |
|
2173 */ |
|
2174 KMediaRemountForceMediaChange = 0x00000001, |
|
2175 |
|
2176 /** This flag is used to force the media driver for the specified logical drive to be closed and reopened. |
|
2177 It should not affect any pending requests on other logical drives associated with the primary media. |
|
2178 */ |
|
2179 KForceMediaChangeReOpenMediaDriver = 0x80000000 |
|
2180 }; |
2154 |
2181 |
2155 protected: |
2182 protected: |
2156 TInt SendReceive(TInt aFunction,const TIpcArgs& aArgs) const; |
2183 TInt SendReceive(TInt aFunction,const TIpcArgs& aArgs) const; |
2157 |
2184 |
2158 private: |
2185 private: |