Download_def_g.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #ifndef __DOWNLOAD_DEF_G_H
  2. #define __DOWNLOAD_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace Download {
  7. //
  8. // const goes here
  9. //
  10. #define DownloadService_Method_DownloadFile 0
  11. #define DownloadService_Method_IsDownloading 1
  12. #define DownloadService_Method_CancelDownloadFile 2
  13. #define DownloadService_Method_QueryDownloadState 3
  14. #define DownloadService_MethodSignature_DownloadFile 1681898988
  15. #define DownloadService_MethodSignature_IsDownloading 772750151
  16. #define DownloadService_MethodSignature_CancelDownloadFile -1360464111
  17. #define DownloadService_MethodSignature_QueryDownloadState 754956501
  18. struct DownloadService_DownloadFile_Req
  19. {
  20. CSimpleStringA strFileName;
  21. unsigned int dwExpireTime;
  22. void Serialize(SpBuffer &Buf)
  23. {
  24. auto & buf = Buf & strFileName & dwExpireTime;
  25. }
  26. };
  27. struct DownloadService_DownloadFile_Ans
  28. {
  29. void Serialize(SpBuffer &Buf)
  30. {
  31. }
  32. };
  33. struct DownloadService_IsDownloading_Req
  34. {
  35. void Serialize(SpBuffer &Buf)
  36. {
  37. }
  38. };
  39. struct DownloadService_IsDownloading_Ans
  40. {
  41. bool bDownloading;
  42. void Serialize(SpBuffer &Buf)
  43. {
  44. auto & buf = Buf & bDownloading;
  45. }
  46. };
  47. struct DownloadService_CancelDownloadFile_Req
  48. {
  49. CSimpleStringA strFileName;
  50. void Serialize(SpBuffer &Buf)
  51. {
  52. auto & buf = Buf & strFileName;
  53. }
  54. };
  55. struct DownloadService_CancelDownloadFile_Ans
  56. {
  57. void Serialize(SpBuffer &Buf)
  58. {
  59. }
  60. };
  61. struct DownloadService_QueryDownloadState_Req
  62. {
  63. CSimpleStringA strFileName;
  64. void Serialize(SpBuffer &Buf)
  65. {
  66. auto & buf = Buf & strFileName;
  67. }
  68. };
  69. struct DownloadService_QueryDownloadState_Ans
  70. {
  71. unsigned int iDownloadState;
  72. void Serialize(SpBuffer &Buf)
  73. {
  74. auto & buf = Buf & iDownloadState;
  75. }
  76. };
  77. ///////////////////////////
  78. } // namespace Download
  79. #endif // __DOWNLOAD_DEF_G_H