SIPPhone_def_g.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  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_Method_GetHandfreeOutVolume 10
  28. #define PhoneService_Method_SetHandfreeOutVolume 11
  29. #define PhoneService_Method_SetPickupOutVolume 12
  30. #define PhoneService_Method_GetPickupOutVolume 13
  31. #define PhoneService_Method_StartVideoRender 14
  32. #define PhoneService_Method_StopVideoRender 15
  33. #define PhoneService_Method_GetHandfreeInVolume 16
  34. #define PhoneService_Method_SetHandfreeInVolume 17
  35. #define PhoneService_Method_SetPickupInVolume 18
  36. #define PhoneService_Method_GetPickupInVolume 19
  37. #define PhoneService_Method_GetAudioDevices 20
  38. #define PhoneService_Method_StartCameraRender 21
  39. #define PhoneService_Method_StopCameraRender 22
  40. #define PhoneService_Method_IsCameraRender 23
  41. #define PhoneService_Method_StartBothCameraRender 24
  42. #define PhoneService_MethodSignature_MakeCall -1045574280
  43. #define PhoneService_MethodSignature_HangupCall 507892508
  44. #define PhoneService_MethodSignature_StartVideo -1701170457
  45. #define PhoneService_MethodSignature_StopVideo 1247090087
  46. #define PhoneService_MethodSignature_RealErrorCheck -834081006
  47. #define PhoneService_MethodSignature_ReleaseCall 1003966534
  48. #define PhoneService_MethodSignature_BeginState -700260089
  49. #define PhoneService_MethodSignature_EndState -1780469139
  50. #define PhoneService_MethodSignature_PhoneState -731514138
  51. #define PhoneService_MethodSignature_SetCallingParam 36667377
  52. #define PhoneService_MethodSignature_GetHandfreeOutVolume 1306483555
  53. #define PhoneService_MethodSignature_SetHandfreeOutVolume 2042464727
  54. #define PhoneService_MethodSignature_SetPickupOutVolume -1088342808
  55. #define PhoneService_MethodSignature_GetPickupOutVolume 1201465844
  56. #define PhoneService_MethodSignature_StartVideoRender 570775603
  57. #define PhoneService_MethodSignature_StopVideoRender -1920889093
  58. #define PhoneService_MethodSignature_GetHandfreeInVolume -973146972
  59. #define PhoneService_MethodSignature_SetHandfreeInVolume -1471315400
  60. #define PhoneService_MethodSignature_SetPickupInVolume 35636029
  61. #define PhoneService_MethodSignature_GetPickupInVolume -735373015
  62. #define PhoneService_MethodSignature_GetAudioDevices -271351251
  63. #define PhoneService_MethodSignature_StartCameraRender -1962833445
  64. #define PhoneService_MethodSignature_StopCameraRender 6416978
  65. #define PhoneService_MethodSignature_IsCameraRender 325255993
  66. #define PhoneService_MethodSignature_StartBothCameraRender -1631336261
  67. #define PhoneService_LogCode_MakeCall "QLR040230100"
  68. #define PhoneService_LogCode_HangupCall "QLR040230101"
  69. #define PhoneService_LogCode_StartVideo "QLR040230102"
  70. #define PhoneService_LogCode_StopVideo "QLR040230103"
  71. #define PhoneService_LogCode_RealErrorCheck "QLR040230104"
  72. #define PhoneService_LogCode_ReleaseCall "QLR040230105"
  73. #define PhoneService_LogCode_SetCallingParam "QLR040230109"
  74. #define PhoneService_LogCode_GetHandfreeOutVolume "QLR040230110"
  75. #define PhoneService_LogCode_SetHandfreeOutVolume "QLR040230111"
  76. #define PhoneService_LogCode_SetPickupOutVolume "QLR040230112"
  77. #define PhoneService_LogCode_GetPickupOutVolume "QLR040230113"
  78. #define PhoneService_LogCode_StartVideoRender "QLR040230114"
  79. #define PhoneService_LogCode_StopVideoRender "QLR040230115"
  80. #define PhoneService_LogCode_GetHandfreeInVolume "QLR040230116"
  81. #define PhoneService_LogCode_SetHandfreeInVolume "QLR040230117"
  82. #define PhoneService_LogCode_SetPickupInVolume "QLR040230118"
  83. #define PhoneService_LogCode_GetPickupInVolume "QLR040230119"
  84. #define PhoneService_LogCode_GetAudioDevices "QLR040230120"
  85. #define PhoneService_LogCode_StartCameraRender "QLR040230121"
  86. #define PhoneService_LogCode_StopCameraRender "QLR040230122"
  87. #define PhoneService_LogCode_IsCameraRender "QLR040230123"
  88. #define PhoneService_LogCode_StartBothCameraRender "QLR040230124"
  89. struct PhoneService_MakeCall_Req
  90. {
  91. CSimpleStringA to_uri;
  92. CSimpleStringA from_uri;
  93. CSimpleStringA call_id;
  94. void Serialize(SpBuffer &Buf)
  95. {
  96. auto & buf = Buf & to_uri & from_uri & call_id;
  97. }
  98. };
  99. struct PhoneService_MakeCall_Ans
  100. {
  101. void Serialize(SpBuffer &Buf)
  102. {
  103. }
  104. };
  105. struct PhoneService_HangupCall_Req
  106. {
  107. CSimpleStringA session_num;
  108. CSimpleStringA branch_server_ip;
  109. int branch_server_port;
  110. void Serialize(SpBuffer &Buf)
  111. {
  112. auto & buf = Buf & session_num & branch_server_ip & branch_server_port;
  113. }
  114. };
  115. struct PhoneService_HangupCall_Ans
  116. {
  117. void Serialize(SpBuffer &Buf)
  118. {
  119. }
  120. };
  121. struct PhoneService_StartVideo_Info
  122. {
  123. CSimpleStringA remote_ip;
  124. int remote_port;
  125. int remote_width;
  126. int remote_height;
  127. int remote_fps;
  128. int local_view_x;
  129. int local_view_y;
  130. int local_view_cx;
  131. int local_view_cy;
  132. int remote_view_x;
  133. int remote_view_y;
  134. int remote_view_cx;
  135. int remote_view_cy;
  136. int local_hwd_move;
  137. int remote_hwd_move;
  138. void Serialize(SpBuffer &Buf)
  139. {
  140. 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;
  141. }
  142. };
  143. struct PhoneService_StopVideo_Info
  144. {
  145. void Serialize(SpBuffer &Buf)
  146. {
  147. }
  148. };
  149. struct PhoneService_RealErrorCheck_Info
  150. {
  151. void Serialize(SpBuffer &Buf)
  152. {
  153. }
  154. };
  155. struct PhoneService_ReleaseCall_Req
  156. {
  157. int type;
  158. void Serialize(SpBuffer &Buf)
  159. {
  160. auto & buf = Buf & type;
  161. }
  162. };
  163. struct PhoneService_ReleaseCall_Ans
  164. {
  165. void Serialize(SpBuffer &Buf)
  166. {
  167. }
  168. };
  169. struct PhoneService_BeginState_Sub
  170. {
  171. void Serialize(SpBuffer &Buf)
  172. {
  173. }
  174. };
  175. struct PhoneService_EndState_Info
  176. {
  177. void Serialize(SpBuffer &Buf)
  178. {
  179. }
  180. };
  181. struct PhoneService_PhoneState_Info
  182. {
  183. int state;
  184. CSimpleStringA status;
  185. void Serialize(SpBuffer &Buf)
  186. {
  187. auto & buf = Buf & state & status;
  188. }
  189. };
  190. struct PhoneService_SetCallingParam_Info
  191. {
  192. int CallType;
  193. CSimpleStringA connect_session;
  194. CSimpleStringA connect_ip;
  195. int connect_port;
  196. void Serialize(SpBuffer &Buf)
  197. {
  198. auto & buf = Buf & CallType & connect_session & connect_ip & connect_port;
  199. }
  200. };
  201. struct PhoneService_GetHandfreeOutVolume_Req
  202. {
  203. void Serialize(SpBuffer &Buf)
  204. {
  205. }
  206. };
  207. struct PhoneService_GetHandfreeOutVolume_Ans
  208. {
  209. int Volume;
  210. void Serialize(SpBuffer &Buf)
  211. {
  212. auto & buf = Buf & Volume;
  213. }
  214. };
  215. struct PhoneService_SetHandfreeOutVolume_Req
  216. {
  217. int Volume;
  218. void Serialize(SpBuffer &Buf)
  219. {
  220. auto & buf = Buf & Volume;
  221. }
  222. };
  223. struct PhoneService_SetHandfreeOutVolume_Ans
  224. {
  225. void Serialize(SpBuffer &Buf)
  226. {
  227. }
  228. };
  229. struct PhoneService_SetPickupOutVolume_Req
  230. {
  231. int Volume;
  232. void Serialize(SpBuffer &Buf)
  233. {
  234. auto & buf = Buf & Volume;
  235. }
  236. };
  237. struct PhoneService_SetPickupOutVolume_Ans
  238. {
  239. void Serialize(SpBuffer &Buf)
  240. {
  241. }
  242. };
  243. struct PhoneService_GetPickupOutVolume_Req
  244. {
  245. void Serialize(SpBuffer &Buf)
  246. {
  247. }
  248. };
  249. struct PhoneService_GetPickupOutVolume_Ans
  250. {
  251. int Volume;
  252. void Serialize(SpBuffer &Buf)
  253. {
  254. auto & buf = Buf & Volume;
  255. }
  256. };
  257. struct PhoneService_StartVideoRender_Info
  258. {
  259. int render_type;
  260. int local_view_x;
  261. int local_view_y;
  262. int local_view_cx;
  263. int local_view_cy;
  264. int remote_view_x;
  265. int remote_view_y;
  266. int remote_view_cx;
  267. int remote_view_cy;
  268. int local_hwd_move;
  269. int remote_hwd_move;
  270. void Serialize(SpBuffer &Buf)
  271. {
  272. auto & buf = Buf & render_type & 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;
  273. }
  274. };
  275. struct PhoneService_StopVideoRender_Info
  276. {
  277. void Serialize(SpBuffer &Buf)
  278. {
  279. }
  280. };
  281. struct PhoneService_GetHandfreeInVolume_Req
  282. {
  283. void Serialize(SpBuffer &Buf)
  284. {
  285. }
  286. };
  287. struct PhoneService_GetHandfreeInVolume_Ans
  288. {
  289. int Volume;
  290. void Serialize(SpBuffer &Buf)
  291. {
  292. auto & buf = Buf & Volume;
  293. }
  294. };
  295. struct PhoneService_SetHandfreeInVolume_Req
  296. {
  297. int Volume;
  298. void Serialize(SpBuffer &Buf)
  299. {
  300. auto & buf = Buf & Volume;
  301. }
  302. };
  303. struct PhoneService_SetHandfreeInVolume_Ans
  304. {
  305. void Serialize(SpBuffer &Buf)
  306. {
  307. }
  308. };
  309. struct PhoneService_SetPickupInVolume_Req
  310. {
  311. int Volume;
  312. void Serialize(SpBuffer &Buf)
  313. {
  314. auto & buf = Buf & Volume;
  315. }
  316. };
  317. struct PhoneService_SetPickupInVolume_Ans
  318. {
  319. void Serialize(SpBuffer &Buf)
  320. {
  321. }
  322. };
  323. struct PhoneService_GetPickupInVolume_Req
  324. {
  325. void Serialize(SpBuffer &Buf)
  326. {
  327. }
  328. };
  329. struct PhoneService_GetPickupInVolume_Ans
  330. {
  331. int Volume;
  332. void Serialize(SpBuffer &Buf)
  333. {
  334. auto & buf = Buf & Volume;
  335. }
  336. };
  337. struct PhoneService_GetAudioDevices_Req
  338. {
  339. void Serialize(SpBuffer &Buf)
  340. {
  341. }
  342. };
  343. struct PhoneService_GetAudioDevices_Ans
  344. {
  345. int retCode;
  346. CSimpleStringA strHandfreeIn;
  347. CSimpleStringA strHandfreeOut;
  348. CSimpleStringA strPickupIn;
  349. CSimpleStringA strPickupOut;
  350. void Serialize(SpBuffer &Buf)
  351. {
  352. auto & buf = Buf & retCode & strHandfreeIn & strHandfreeOut & strPickupIn & strPickupOut;
  353. }
  354. };
  355. struct PhoneService_StartCameraRender_Req
  356. {
  357. int icameraid;
  358. int video_view_x;
  359. int video_view_y;
  360. int video_view_cx;
  361. int video_view_cy;
  362. void Serialize(SpBuffer &Buf)
  363. {
  364. auto & buf = Buf & icameraid & video_view_x & video_view_y & video_view_cx & video_view_cy;
  365. }
  366. };
  367. struct PhoneService_StartCameraRender_Ans
  368. {
  369. int result;
  370. void Serialize(SpBuffer &Buf)
  371. {
  372. auto & buf = Buf & result;
  373. }
  374. };
  375. struct PhoneService_StopCameraRender_Req
  376. {
  377. void Serialize(SpBuffer &Buf)
  378. {
  379. }
  380. };
  381. struct PhoneService_StopCameraRender_Ans
  382. {
  383. int result;
  384. void Serialize(SpBuffer &Buf)
  385. {
  386. auto & buf = Buf & result;
  387. }
  388. };
  389. struct PhoneService_IsCameraRender_Req
  390. {
  391. void Serialize(SpBuffer &Buf)
  392. {
  393. }
  394. };
  395. struct PhoneService_IsCameraRender_Ans
  396. {
  397. bool result;
  398. void Serialize(SpBuffer &Buf)
  399. {
  400. auto & buf = Buf & result;
  401. }
  402. };
  403. struct PhoneService_StartBothCameraRender_Req
  404. {
  405. int env_view_x;
  406. int env_view_y;
  407. int env_view_cx;
  408. int env_view_cy;
  409. int opt_view_x;
  410. int opt_view_y;
  411. int opt_view_cx;
  412. int opt_view_cy;
  413. void Serialize(SpBuffer &Buf)
  414. {
  415. auto & buf = Buf & env_view_x & env_view_y & env_view_cx & env_view_cy & opt_view_x & opt_view_y & opt_view_cx & opt_view_cy;
  416. }
  417. };
  418. struct PhoneService_StartBothCameraRender_Ans
  419. {
  420. int result;
  421. void Serialize(SpBuffer &Buf)
  422. {
  423. auto & buf = Buf & result;
  424. }
  425. };
  426. ///////////////////////////
  427. } // namespace SIPPhone
  428. #endif // __SIPPHONE_DEF_G_H