equal
deleted
inserted
replaced
1828 #else |
1828 #else |
1829 #define EFSRV_EXPORT_C EXPORT_C |
1829 #define EFSRV_EXPORT_C EXPORT_C |
1830 #define EFSRV_IMPORT_C IMPORT_C |
1830 #define EFSRV_IMPORT_C IMPORT_C |
1831 #endif |
1831 #endif |
1832 |
1832 |
|
1833 // forward declarations from e32ldr_private.h |
|
1834 class RFileClamp; |
1833 |
1835 |
1834 class RFs : public RSessionBase |
1836 class RFs : public RSessionBase |
1835 /** |
1837 /** |
1836 @publishedAll |
1838 @publishedAll |
1837 @released |
1839 @released |
2165 TBool iParamsSet : 1; ///< ETrue if any parameter was set (SetVal() called). Gets reset to EFalse by Init() |
2167 TBool iParamsSet : 1; ///< ETrue if any parameter was set (SetVal() called). Gets reset to EFalse by Init() |
2166 TUint32 iData[KMaxDataSlots]; ///< used as a pool for various data. The derived classes are free to use it by SetVal()/GetVal() |
2168 TUint32 iData[KMaxDataSlots]; ///< used as a pool for various data. The derived classes are free to use it by SetVal()/GetVal() |
2167 }; |
2169 }; |
2168 |
2170 |
2169 __ASSERT_COMPILE(_FOFF(TVolFormatParam, iUId) == 0); |
2171 __ASSERT_COMPILE(_FOFF(TVolFormatParam, iUId) == 0); |
2170 __ASSERT_COMPILE(sizeof(TVolFormatParam) != sizeof(TLDFormatInfo)); |
|
2171 |
2172 |
2172 |
2173 |
2173 /** package buffer for the objects of class TVolFormatParamBuf */ |
2174 /** package buffer for the objects of class TVolFormatParamBuf */ |
2174 typedef TPckgBuf<TVolFormatParam> TVolFormatParamBuf; |
2175 typedef TPckgBuf<TVolFormatParam> TVolFormatParamBuf; |
2175 |
2176 |
3026 }; |
3027 }; |
3027 |
3028 |
3028 |
3029 |
3029 |
3030 |
3030 |
3031 |
3031 class TFindFile |
3032 |
3032 /** |
3033 /** |
3033 @publishedAll |
3034 @publishedAll |
3034 @released |
3035 @released |
3035 |
3036 |
3036 Searches for files and directories. |
3037 Searches for files and directories. |
3053 excluding the remote ones, will be searched. Using function SetFindMask it is |
3054 excluding the remote ones, will be searched. Using function SetFindMask it is |
3054 possible to specify a combination of drive attributes(aMask) that the drives to |
3055 possible to specify a combination of drive attributes(aMask) that the drives to |
3055 be searched must match. |
3056 be searched must match. |
3056 |
3057 |
3057 */ |
3058 */ |
|
3059 class TFindFile |
3058 { |
3060 { |
3059 public: |
3061 public: |
3060 IMPORT_C TFindFile(RFs& aFs); |
3062 IMPORT_C TFindFile(RFs& aFs); |
3061 IMPORT_C TInt FindByPath(const TDesC& aFileName,const TDesC* aPathList); |
3063 IMPORT_C TInt FindByPath(const TDesC& aFileName,const TDesC* aPathList); |
3062 IMPORT_C TInt FindByDir(const TDesC& aFileName,const TDesC& aDirPath); |
3064 IMPORT_C TInt FindByDir(const TDesC& aFileName,const TDesC& aDirPath); |
3071 TInt DoFindByPath(const TDesC& aFileName,const TDesC* aPathList); |
3073 TInt DoFindByPath(const TDesC& aFileName,const TDesC* aPathList); |
3072 TInt DoFindByDir(const TDesC& aFileName,const TDesC& aDir); |
3074 TInt DoFindByDir(const TDesC& aFileName,const TDesC& aDir); |
3073 TInt DoFindInDir(); |
3075 TInt DoFindInDir(); |
3074 TInt DoFindNextInPath(); |
3076 TInt DoFindNextInPath(); |
3075 TInt DoFindNextInDriveList(); |
3077 TInt DoFindNextInDriveList(); |
|
3078 TInt CallSafe(TInt aResult); |
3076 private: |
3079 private: |
3077 RFs* const iFs; |
3080 RFs* const iFs; |
3078 TParse iFile; |
3081 TParse iFile; |
3079 TInt iPathPos; |
3082 TInt iPathPos; |
3080 TInt iCurrentDrive; |
3083 TInt iCurrentDrive; |