SIPPhone_def_g.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. #ifndef __SIPPHONE_DEF_G_H
  2. #define __SIPPHONE_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace SIPPhone {
  7. //
  8. // const goes here
  9. //
  10. #define ePhone_Init 0
  11. #define ePhone_Calling 1
  12. #define ePhone_Proceeding 2
  13. #define ePhone_Completing 3
  14. #define ePhone_Ready 4
  15. #define ePhone_Terminating 5
  16. #define ePhone_Terminated 6
  17. #define PhoneService_Method_MakeCall 0
  18. #define PhoneService_Method_HangupCall 1
  19. #define PhoneService_Method_StartVideo 2
  20. #define PhoneService_Method_StopVideo 3
  21. #define PhoneService_Method_RealErrorCheck 4
  22. #define PhoneService_Method_ReleaseCall 5
  23. #define PhoneService_Method_BeginState 6
  24. #define PhoneService_Method_EndState 7
  25. #define PhoneService_Method_PhoneState 8
  26. #define PhoneService_Method_SetCallingParam 9
  27. #define PhoneService_MethodSignature_MakeCall -1045574280
  28. #define PhoneService_MethodSignature_HangupCall 507892508
  29. #define PhoneService_MethodSignature_StartVideo -1701170457
  30. #define PhoneService_MethodSignature_StopVideo 1247090087
  31. #define PhoneService_MethodSignature_RealErrorCheck -834081006
  32. #define PhoneService_MethodSignature_ReleaseCall 1003966534
  33. #define PhoneService_MethodSignature_BeginState -700260089
  34. #define PhoneService_MethodSignature_EndState -1780469139
  35. #define PhoneService_MethodSignature_PhoneState -731514138
  36. #define PhoneService_MethodSignature_SetCallingParam 36667377
  37. struct PhoneService_MakeCall_Req
  38. {
  39. CSimpleStringA call_uri;
  40. void Serialize(SpBuffer &Buf)
  41. {
  42. auto & buf = Buf & call_uri;
  43. }
  44. };
  45. struct PhoneService_MakeCall_Ans
  46. {
  47. void Serialize(SpBuffer &Buf)
  48. {
  49. }
  50. };
  51. struct PhoneService_HangupCall_Req
  52. {
  53. CSimpleStringA session_num;
  54. CSimpleStringA branch_server_ip;
  55. int branch_server_port;
  56. void Serialize(SpBuffer &Buf)
  57. {
  58. auto & buf = Buf & session_num & branch_server_ip & branch_server_port;
  59. }
  60. };
  61. struct PhoneService_HangupCall_Ans
  62. {
  63. void Serialize(SpBuffer &Buf)
  64. {
  65. }
  66. };
  67. struct PhoneService_StartVideo_Info
  68. {
  69. CSimpleStringA remote_ip;
  70. int remote_port;
  71. int remote_width;
  72. int remote_height;
  73. int remote_fps;
  74. int local_view_x;
  75. int local_view_y;
  76. int local_view_cx;
  77. int local_view_cy;
  78. int remote_view_x;
  79. int remote_view_y;
  80. int remote_view_cx;
  81. int remote_view_cy;
  82. int local_hwd_move;
  83. int remote_hwd_move;
  84. void Serialize(SpBuffer &Buf)
  85. {
  86. auto & buf = Buf & remote_ip & remote_port & remote_width & remote_height & remote_fps & local_view_x & local_view_y & local_view_cx & local_view_cy & remote_view_x & remote_view_y & remote_view_cx & remote_view_cy & local_hwd_move & remote_hwd_move;
  87. }
  88. };
  89. struct PhoneService_StopVideo_Info
  90. {
  91. void Serialize(SpBuffer &Buf)
  92. {
  93. }
  94. };
  95. struct PhoneService_RealErrorCheck_Info
  96. {
  97. void Serialize(SpBuffer &Buf)
  98. {
  99. }
  100. };
  101. struct PhoneService_ReleaseCall_Req
  102. {
  103. int type;
  104. void Serialize(SpBuffer &Buf)
  105. {
  106. auto & buf = Buf & type;
  107. }
  108. };
  109. struct PhoneService_ReleaseCall_Ans
  110. {
  111. void Serialize(SpBuffer &Buf)
  112. {
  113. }
  114. };
  115. struct PhoneService_BeginState_Sub
  116. {
  117. void Serialize(SpBuffer &Buf)
  118. {
  119. }
  120. };
  121. struct PhoneService_EndState_Info
  122. {
  123. void Serialize(SpBuffer &Buf)
  124. {
  125. }
  126. };
  127. struct PhoneService_PhoneState_Info
  128. {
  129. int state;
  130. CSimpleStringA status;
  131. void Serialize(SpBuffer &Buf)
  132. {
  133. auto & buf = Buf & state & status;
  134. }
  135. };
  136. struct PhoneService_SetCallingParam_Info
  137. {
  138. int CallType;
  139. CSimpleStringA connect_session;
  140. CSimpleStringA connect_ip;
  141. int connect_port;
  142. void Serialize(SpBuffer &Buf)
  143. {
  144. auto & buf = Buf & CallType & connect_session & connect_ip & connect_port;
  145. }
  146. };
  147. ///////////////////////////
  148. } // namespace SIPPhone
  149. #endif // __SIPPHONE_DEF_G_H