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