Download_msg_g.h 821 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef __DOWNLOAD_MSG_G_H
  2. #define __DOWNLOAD_MSG_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace Download {
  7. #define eMsg_DownloadResult 0
  8. #define eMsg_DownloadProgress 1
  9. #define eMsgSig_DownloadResult -2132294259
  10. #define eMsgSig_DownloadProgress 847324670
  11. struct DownloadResult
  12. {
  13. CSimpleStringA strFileName;
  14. unsigned int errorCode;
  15. CSimpleStringA errorMsg;
  16. void Serialize(SpBuffer &Buf)
  17. {
  18. auto & buf = Buf & strFileName & errorCode & errorMsg;
  19. }
  20. };
  21. ///////////////////////////
  22. struct DownloadProgress
  23. {
  24. CSimpleStringA currentFile;
  25. unsigned int progress;
  26. unsigned int fileNum;
  27. void Serialize(SpBuffer &Buf)
  28. {
  29. auto & buf = Buf & currentFile & progress & fileNum;
  30. }
  31. };
  32. ///////////////////////////
  33. } // namespace Download
  34. #endif // __DOWNLOAD_MSG_G_H