blob: 3d5968563e5058abccdb41ba2f27f8ed50b20b6e
1 | #ifndef _BLOB_FILE_H_ |
2 | #define _BLOB_FILE_H_ |
3 | |
4 | #include "CBlobDevice.h" |
5 | class CBlobDeviceFile: public CBlobDevice |
6 | { |
7 | |
8 | public: |
9 | CBlobDeviceFile(); |
10 | virtual ~CBlobDeviceFile(); |
11 | |
12 | virtual int WriteBytes(int offset, int size, unsigned char *buf); |
13 | virtual int ReadBytes(int offset, int size, unsigned char *buf); |
14 | virtual int EraseAllData(); |
15 | virtual int InitCheck(); |
16 | virtual int OpenDevice(); |
17 | virtual int CloseDevice(); |
18 | |
19 | private: |
20 | int ValidOperateCheck(); |
21 | int CreateNewFile(const char *file_name); |
22 | |
23 | private: |
24 | |
25 | }; |
26 | |
27 | #endif // ANDROID_SSM_FILE_H |
28 |