DJI Onboard SDK  4.0
dji_file_mgr.hpp
Go to the documentation of this file.
1 
29 #ifndef DJI_FILE_MGR_HPP
30 #define DJI_FILE_MGR_HPP
31 
32 #include "dji_error.hpp"
33 #include "dji_file_mgr_define.hpp"
34 
35 
36 namespace DJI {
37 namespace OSDK {
38 
39 // Forward Declaration
40 class Linker;
41 class FileMgrImpl;
42 
43 class FileMgr {
44  public:
45  FileMgr(Linker *linker, uint8_t type, uint8_t index);
46  ~FileMgr();
47 
48  typedef void (*FileListReqCBType)(E_OsdkStat ret_code, const FilePackage file_list, void* userData);
49  typedef void (*FileDataReqCBType)(E_OsdkStat ret_code, void* userData);
50 
51  ErrorCode::ErrorCodeType startReqFileList(FileListReqCBType cb, void* userData);
52  ErrorCode::ErrorCodeType startReqFileData(int fileIndex, std::string localPath, FileDataReqCBType cb, void* userData);
53 
54  private:
55  FileMgrImpl *impl;
56  uint8_t type;
57  uint8_t index;
58 };
59 }
60 }
61 
62 #endif // DJI_FILE_MGR_HPP
int64_t ErrorCodeType
Unified error type.
Definition: dji_error.hpp:144
handle array of characters
Definition: commondatarangehandler.h:14
All DJI OSDK OpenProtocol ACK Error Codes.