UpgradeManager_msg_g.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef __UPGRADEMANAGER_MSG_G_H
  2. #define __UPGRADEMANAGER_MSG_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace UpgradeManager {
  7. #define eMsg_UpgradeStateEvent 0
  8. #define eMsg_ManualTaskEvent 1
  9. #define eMsg_UpgradeDownloadProgress 2
  10. #define eMsgSig_UpgradeStateEvent -1650087685
  11. #define eMsgSig_ManualTaskEvent 1253338878
  12. #define eMsgSig_UpgradeDownloadProgress -498820347
  13. struct UpgradeStateEvent
  14. {
  15. CSimpleStringA strPackName;
  16. CSimpleStringA strExecID;
  17. char cInstallState;
  18. bool bSysInstall;
  19. bool bLightPack;
  20. CSimpleStringA strNewVersion;
  21. void Serialize(SpBuffer &Buf)
  22. {
  23. auto & buf = Buf & strPackName & strExecID & cInstallState & bSysInstall & bLightPack & strNewVersion;
  24. }
  25. };
  26. ///////////////////////////
  27. struct ManualTaskEvent
  28. {
  29. int nTaskNum;
  30. void Serialize(SpBuffer &Buf)
  31. {
  32. auto & buf = Buf & nTaskNum;
  33. }
  34. };
  35. ///////////////////////////
  36. struct UpgradeDownloadProgress
  37. {
  38. CSimpleStringA currentFile;
  39. unsigned int progress;
  40. unsigned int fileNum;
  41. void Serialize(SpBuffer &Buf)
  42. {
  43. auto & buf = Buf & currentFile & progress & fileNum;
  44. }
  45. };
  46. ///////////////////////////
  47. } // namespace UpgradeManager
  48. #endif // __UPGRADEMANAGER_MSG_G_H