InteractiveControl_server_g.h 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208
  1. #ifndef __INTERACTIVECONTROL_SERVER_G_H
  2. #define __INTERACTIVECONTROL_SERVER_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "InteractiveControl_def_g.h"
  6. namespace InteractiveControl {
  7. class UIService_ServerSessionBase : public CServerSessionBase
  8. {
  9. public:
  10. UIService_ServerSessionBase()
  11. {
  12. /// override by user
  13. }
  14. virtual ~UIService_ServerSessionBase()
  15. {
  16. /// override by user
  17. }
  18. virtual bool IsExclusive() { return false; }
  19. virtual bool IsSessionOverlap() { return true; }
  20. virtual ErrorCodeEnum GetMessageAttr(DWORD dwMessageID, DWORD dwSignature, bool &bOverlap)
  21. {
  22. ErrorCodeEnum Error = Error_Succeed;
  23. switch (dwMessageID) {
  24. case UIService_Method_SetUIState:
  25. if (dwSignature == UIService_MethodSignature_SetUIState) {
  26. bOverlap = true;
  27. } else {
  28. Error = Error_MethodSignatureFailed;
  29. }
  30. break;
  31. case UIService_Method_SendAgentText:
  32. if (dwSignature == UIService_MethodSignature_SendAgentText) {
  33. bOverlap = true;
  34. } else {
  35. Error = Error_MethodSignatureFailed;
  36. }
  37. break;
  38. case UIService_Method_SetMenuTree:
  39. if (dwSignature == UIService_MethodSignature_SetMenuTree) {
  40. bOverlap = true;
  41. } else {
  42. Error = Error_MethodSignatureFailed;
  43. }
  44. break;
  45. case UIService_Method_SetMenuPath:
  46. if (dwSignature == UIService_MethodSignature_SetMenuPath) {
  47. bOverlap = true;
  48. } else {
  49. Error = Error_MethodSignatureFailed;
  50. }
  51. break;
  52. case UIService_Method_SendFrontSyncData:
  53. if (dwSignature == UIService_MethodSignature_SendFrontSyncData) {
  54. bOverlap = true;
  55. } else {
  56. Error = Error_MethodSignatureFailed;
  57. }
  58. break;
  59. case UIService_Method_StartRecordVideo:
  60. if (dwSignature == UIService_MethodSignature_StartRecordVideo) {
  61. bOverlap = true;
  62. } else {
  63. Error = Error_MethodSignatureFailed;
  64. }
  65. break;
  66. case UIService_Method_StopRecordVideo:
  67. if (dwSignature == UIService_MethodSignature_StopRecordVideo) {
  68. bOverlap = true;
  69. } else {
  70. Error = Error_MethodSignatureFailed;
  71. }
  72. break;
  73. case UIService_Method_ShowVideo:
  74. if (dwSignature == UIService_MethodSignature_ShowVideo) {
  75. bOverlap = true;
  76. } else {
  77. Error = Error_MethodSignatureFailed;
  78. }
  79. break;
  80. case UIService_Method_SaveVideo:
  81. if (dwSignature == UIService_MethodSignature_SaveVideo) {
  82. bOverlap = true;
  83. } else {
  84. Error = Error_MethodSignatureFailed;
  85. }
  86. break;
  87. case UIService_Method_DeleteVideo:
  88. if (dwSignature == UIService_MethodSignature_DeleteVideo) {
  89. bOverlap = true;
  90. } else {
  91. Error = Error_MethodSignatureFailed;
  92. }
  93. break;
  94. case UIService_Method_StartPlayVideo:
  95. if (dwSignature == UIService_MethodSignature_StartPlayVideo) {
  96. bOverlap = true;
  97. } else {
  98. Error = Error_MethodSignatureFailed;
  99. }
  100. break;
  101. case UIService_Method_StartPlayAudio:
  102. if (dwSignature == UIService_MethodSignature_StartPlayAudio) {
  103. bOverlap = true;
  104. } else {
  105. Error = Error_MethodSignatureFailed;
  106. }
  107. break;
  108. case UIService_Method_StartPlayImage:
  109. if (dwSignature == UIService_MethodSignature_StartPlayImage) {
  110. bOverlap = true;
  111. } else {
  112. Error = Error_MethodSignatureFailed;
  113. }
  114. break;
  115. case UIService_Method_StopPlayVideo:
  116. if (dwSignature == UIService_MethodSignature_StopPlayVideo) {
  117. bOverlap = true;
  118. } else {
  119. Error = Error_MethodSignatureFailed;
  120. }
  121. break;
  122. case UIService_Method_StopPlayAudio:
  123. if (dwSignature == UIService_MethodSignature_StopPlayAudio) {
  124. bOverlap = true;
  125. } else {
  126. Error = Error_MethodSignatureFailed;
  127. }
  128. break;
  129. case UIService_Method_StopPlayImage:
  130. if (dwSignature == UIService_MethodSignature_StopPlayImage) {
  131. bOverlap = true;
  132. } else {
  133. Error = Error_MethodSignatureFailed;
  134. }
  135. break;
  136. case UIService_Method_StartPhotograph:
  137. if (dwSignature == UIService_MethodSignature_StartPhotograph) {
  138. bOverlap = true;
  139. } else {
  140. Error = Error_MethodSignatureFailed;
  141. }
  142. break;
  143. case UIService_Method_StopPhotograph:
  144. if (dwSignature == UIService_MethodSignature_StopPhotograph) {
  145. bOverlap = true;
  146. } else {
  147. Error = Error_MethodSignatureFailed;
  148. }
  149. break;
  150. case UIService_Method_SendOperateState:
  151. if (dwSignature == UIService_MethodSignature_SendOperateState) {
  152. bOverlap = true;
  153. } else {
  154. Error = Error_MethodSignatureFailed;
  155. }
  156. break;
  157. case UIService_Method_CheckContinuRecord:
  158. if (dwSignature == UIService_MethodSignature_CheckContinuRecord) {
  159. bOverlap = true;
  160. } else {
  161. Error = Error_MethodSignatureFailed;
  162. }
  163. break;
  164. case UIService_Method_StartContinuRecord:
  165. if (dwSignature == UIService_MethodSignature_StartContinuRecord) {
  166. bOverlap = true;
  167. } else {
  168. Error = Error_MethodSignatureFailed;
  169. }
  170. break;
  171. case UIService_Method_StopContinuRecord:
  172. if (dwSignature == UIService_MethodSignature_StopContinuRecord) {
  173. bOverlap = true;
  174. } else {
  175. Error = Error_MethodSignatureFailed;
  176. }
  177. break;
  178. case UIService_Method_StartEchoContinuRecord:
  179. if (dwSignature == UIService_MethodSignature_StartEchoContinuRecord) {
  180. bOverlap = true;
  181. } else {
  182. Error = Error_MethodSignatureFailed;
  183. }
  184. break;
  185. case UIService_Method_StopEchoContinuRecord:
  186. if (dwSignature == UIService_MethodSignature_StopEchoContinuRecord) {
  187. bOverlap = true;
  188. } else {
  189. Error = Error_MethodSignatureFailed;
  190. }
  191. break;
  192. case UIService_Method_HideOnlineVideo:
  193. if (dwSignature == UIService_MethodSignature_HideOnlineVideo) {
  194. bOverlap = true;
  195. } else {
  196. Error = Error_MethodSignatureFailed;
  197. }
  198. break;
  199. case UIService_Method_ShowOnlineVideo:
  200. if (dwSignature == UIService_MethodSignature_ShowOnlineVideo) {
  201. bOverlap = true;
  202. } else {
  203. Error = Error_MethodSignatureFailed;
  204. }
  205. break;
  206. case UIService_Method_AnswerPacket:
  207. if (dwSignature == UIService_MethodSignature_AnswerPacket) {
  208. bOverlap = true;
  209. } else {
  210. Error = Error_MethodSignatureFailed;
  211. }
  212. break;
  213. case UIService_Method_GetLocalVideoVolume:
  214. if (dwSignature == UIService_MethodSignature_GetLocalVideoVolume) {
  215. bOverlap = true;
  216. } else {
  217. Error = Error_MethodSignatureFailed;
  218. }
  219. break;
  220. case UIService_Method_SetLocalVideoVolume:
  221. if (dwSignature == UIService_MethodSignature_SetLocalVideoVolume) {
  222. bOverlap = true;
  223. } else {
  224. Error = Error_MethodSignatureFailed;
  225. }
  226. break;
  227. case UIService_Method_SendBusinessDesktopCmd:
  228. if (dwSignature == UIService_MethodSignature_SendBusinessDesktopCmd) {
  229. bOverlap = true;
  230. } else {
  231. Error = Error_MethodSignatureFailed;
  232. }
  233. break;
  234. case UIService_Method_HideLocalVideo:
  235. if (dwSignature == UIService_MethodSignature_HideLocalVideo) {
  236. bOverlap = true;
  237. } else {
  238. Error = Error_MethodSignatureFailed;
  239. }
  240. break;
  241. case UIService_Method_ShowLocalVideo:
  242. if (dwSignature == UIService_MethodSignature_ShowLocalVideo) {
  243. bOverlap = true;
  244. } else {
  245. Error = Error_MethodSignatureFailed;
  246. }
  247. break;
  248. case UIService_Method_HidePersonArea:
  249. if (dwSignature == UIService_MethodSignature_HidePersonArea) {
  250. bOverlap = true;
  251. } else {
  252. Error = Error_MethodSignatureFailed;
  253. }
  254. break;
  255. case UIService_Method_ShowPersonArea:
  256. if (dwSignature == UIService_MethodSignature_ShowPersonArea) {
  257. bOverlap = true;
  258. } else {
  259. Error = Error_MethodSignatureFailed;
  260. }
  261. break;
  262. case UIService_Method_VideoAppendWaterMark:
  263. if (dwSignature == UIService_MethodSignature_VideoAppendWaterMark) {
  264. bOverlap = true;
  265. } else {
  266. Error = Error_MethodSignatureFailed;
  267. }
  268. break;
  269. case UIService_Method_GetLocalAudioVolume:
  270. if (dwSignature == UIService_MethodSignature_GetLocalAudioVolume) {
  271. bOverlap = true;
  272. } else {
  273. Error = Error_MethodSignatureFailed;
  274. }
  275. break;
  276. case UIService_Method_SetLocalAudioVolume:
  277. if (dwSignature == UIService_MethodSignature_SetLocalAudioVolume) {
  278. bOverlap = true;
  279. } else {
  280. Error = Error_MethodSignatureFailed;
  281. }
  282. break;
  283. case UIService_Method_StartRemoteRecord:
  284. if (dwSignature == UIService_MethodSignature_StartRemoteRecord) {
  285. bOverlap = true;
  286. } else {
  287. Error = Error_MethodSignatureFailed;
  288. }
  289. break;
  290. case UIService_Method_StopRemoteRecord:
  291. if (dwSignature == UIService_MethodSignature_StopRemoteRecord) {
  292. bOverlap = true;
  293. } else {
  294. Error = Error_MethodSignatureFailed;
  295. }
  296. break;
  297. case UIService_Method_StartSalesRecord:
  298. if (dwSignature == UIService_MethodSignature_StartSalesRecord) {
  299. bOverlap = true;
  300. } else {
  301. Error = Error_MethodSignatureFailed;
  302. }
  303. break;
  304. case UIService_Method_StartRecordPreview:
  305. if (dwSignature == UIService_MethodSignature_StartRecordPreview) {
  306. bOverlap = true;
  307. } else {
  308. Error = Error_MethodSignatureFailed;
  309. }
  310. break;
  311. case UIService_Method_StartSalesVideoRecord:
  312. if (dwSignature == UIService_MethodSignature_StartSalesVideoRecord) {
  313. bOverlap = true;
  314. } else {
  315. Error = Error_MethodSignatureFailed;
  316. }
  317. break;
  318. case UIService_Method_AjustVideoPreviewSize:
  319. if (dwSignature == UIService_MethodSignature_AjustVideoPreviewSize) {
  320. bOverlap = true;
  321. } else {
  322. Error = Error_MethodSignatureFailed;
  323. }
  324. break;
  325. case UIService_Method_StopShowVideo:
  326. if (dwSignature == UIService_MethodSignature_StopShowVideo) {
  327. bOverlap = true;
  328. } else {
  329. Error = Error_MethodSignatureFailed;
  330. }
  331. break;
  332. case UIService_Method_StartPlaySalesRecord:
  333. if (dwSignature == UIService_MethodSignature_StartPlaySalesRecord) {
  334. bOverlap = true;
  335. } else {
  336. Error = Error_MethodSignatureFailed;
  337. }
  338. break;
  339. default:
  340. Error = Error_MethodNotFound;
  341. break;
  342. }
  343. return Error;
  344. }
  345. int CheckMessageSignature(DWORD dwMessageID, DWORD dwSignature)
  346. {
  347. ErrorCodeEnum Error = Error_Succeed;
  348. switch (dwMessageID) {
  349. case UIService_Method_SetUIState:
  350. if (dwSignature != UIService_MethodSignature_SetUIState) {
  351. Error = Error_MethodSignatureFailed;
  352. }
  353. break;
  354. case UIService_Method_SendAgentText:
  355. if (dwSignature != UIService_MethodSignature_SendAgentText) {
  356. Error = Error_MethodSignatureFailed;
  357. }
  358. break;
  359. case UIService_Method_SetMenuTree:
  360. if (dwSignature != UIService_MethodSignature_SetMenuTree) {
  361. Error = Error_MethodSignatureFailed;
  362. }
  363. break;
  364. case UIService_Method_SetMenuPath:
  365. if (dwSignature != UIService_MethodSignature_SetMenuPath) {
  366. Error = Error_MethodSignatureFailed;
  367. }
  368. break;
  369. case UIService_Method_SendFrontSyncData:
  370. if (dwSignature != UIService_MethodSignature_SendFrontSyncData) {
  371. Error = Error_MethodSignatureFailed;
  372. }
  373. break;
  374. case UIService_Method_StartRecordVideo:
  375. if (dwSignature != UIService_MethodSignature_StartRecordVideo) {
  376. Error = Error_MethodSignatureFailed;
  377. }
  378. break;
  379. case UIService_Method_StopRecordVideo:
  380. if (dwSignature != UIService_MethodSignature_StopRecordVideo) {
  381. Error = Error_MethodSignatureFailed;
  382. }
  383. break;
  384. case UIService_Method_ShowVideo:
  385. if (dwSignature != UIService_MethodSignature_ShowVideo) {
  386. Error = Error_MethodSignatureFailed;
  387. }
  388. break;
  389. case UIService_Method_SaveVideo:
  390. if (dwSignature != UIService_MethodSignature_SaveVideo) {
  391. Error = Error_MethodSignatureFailed;
  392. }
  393. break;
  394. case UIService_Method_DeleteVideo:
  395. if (dwSignature != UIService_MethodSignature_DeleteVideo) {
  396. Error = Error_MethodSignatureFailed;
  397. }
  398. break;
  399. case UIService_Method_StartPlayVideo:
  400. if (dwSignature != UIService_MethodSignature_StartPlayVideo) {
  401. Error = Error_MethodSignatureFailed;
  402. }
  403. break;
  404. case UIService_Method_StartPlayAudio:
  405. if (dwSignature != UIService_MethodSignature_StartPlayAudio) {
  406. Error = Error_MethodSignatureFailed;
  407. }
  408. break;
  409. case UIService_Method_StartPlayImage:
  410. if (dwSignature != UIService_MethodSignature_StartPlayImage) {
  411. Error = Error_MethodSignatureFailed;
  412. }
  413. break;
  414. case UIService_Method_StopPlayVideo:
  415. if (dwSignature != UIService_MethodSignature_StopPlayVideo) {
  416. Error = Error_MethodSignatureFailed;
  417. }
  418. break;
  419. case UIService_Method_StopPlayAudio:
  420. if (dwSignature != UIService_MethodSignature_StopPlayAudio) {
  421. Error = Error_MethodSignatureFailed;
  422. }
  423. break;
  424. case UIService_Method_StopPlayImage:
  425. if (dwSignature != UIService_MethodSignature_StopPlayImage) {
  426. Error = Error_MethodSignatureFailed;
  427. }
  428. break;
  429. case UIService_Method_StartPhotograph:
  430. if (dwSignature != UIService_MethodSignature_StartPhotograph) {
  431. Error = Error_MethodSignatureFailed;
  432. }
  433. break;
  434. case UIService_Method_StopPhotograph:
  435. if (dwSignature != UIService_MethodSignature_StopPhotograph) {
  436. Error = Error_MethodSignatureFailed;
  437. }
  438. break;
  439. case UIService_Method_SendOperateState:
  440. if (dwSignature != UIService_MethodSignature_SendOperateState) {
  441. Error = Error_MethodSignatureFailed;
  442. }
  443. break;
  444. case UIService_Method_CheckContinuRecord:
  445. if (dwSignature != UIService_MethodSignature_CheckContinuRecord) {
  446. Error = Error_MethodSignatureFailed;
  447. }
  448. break;
  449. case UIService_Method_StartContinuRecord:
  450. if (dwSignature != UIService_MethodSignature_StartContinuRecord) {
  451. Error = Error_MethodSignatureFailed;
  452. }
  453. break;
  454. case UIService_Method_StopContinuRecord:
  455. if (dwSignature != UIService_MethodSignature_StopContinuRecord) {
  456. Error = Error_MethodSignatureFailed;
  457. }
  458. break;
  459. case UIService_Method_StartEchoContinuRecord:
  460. if (dwSignature != UIService_MethodSignature_StartEchoContinuRecord) {
  461. Error = Error_MethodSignatureFailed;
  462. }
  463. break;
  464. case UIService_Method_StopEchoContinuRecord:
  465. if (dwSignature != UIService_MethodSignature_StopEchoContinuRecord) {
  466. Error = Error_MethodSignatureFailed;
  467. }
  468. break;
  469. case UIService_Method_HideOnlineVideo:
  470. if (dwSignature != UIService_MethodSignature_HideOnlineVideo) {
  471. Error = Error_MethodSignatureFailed;
  472. }
  473. break;
  474. case UIService_Method_ShowOnlineVideo:
  475. if (dwSignature != UIService_MethodSignature_ShowOnlineVideo) {
  476. Error = Error_MethodSignatureFailed;
  477. }
  478. break;
  479. case UIService_Method_AnswerPacket:
  480. if (dwSignature != UIService_MethodSignature_AnswerPacket) {
  481. Error = Error_MethodSignatureFailed;
  482. }
  483. break;
  484. case UIService_Method_GetLocalVideoVolume:
  485. if (dwSignature != UIService_MethodSignature_GetLocalVideoVolume) {
  486. Error = Error_MethodSignatureFailed;
  487. }
  488. break;
  489. case UIService_Method_SetLocalVideoVolume:
  490. if (dwSignature != UIService_MethodSignature_SetLocalVideoVolume) {
  491. Error = Error_MethodSignatureFailed;
  492. }
  493. break;
  494. case UIService_Method_SendBusinessDesktopCmd:
  495. if (dwSignature != UIService_MethodSignature_SendBusinessDesktopCmd) {
  496. Error = Error_MethodSignatureFailed;
  497. }
  498. break;
  499. case UIService_Method_HideLocalVideo:
  500. if (dwSignature != UIService_MethodSignature_HideLocalVideo) {
  501. Error = Error_MethodSignatureFailed;
  502. }
  503. break;
  504. case UIService_Method_ShowLocalVideo:
  505. if (dwSignature != UIService_MethodSignature_ShowLocalVideo) {
  506. Error = Error_MethodSignatureFailed;
  507. }
  508. break;
  509. case UIService_Method_HidePersonArea:
  510. if (dwSignature != UIService_MethodSignature_HidePersonArea) {
  511. Error = Error_MethodSignatureFailed;
  512. }
  513. break;
  514. case UIService_Method_ShowPersonArea:
  515. if (dwSignature != UIService_MethodSignature_ShowPersonArea) {
  516. Error = Error_MethodSignatureFailed;
  517. }
  518. break;
  519. case UIService_Method_VideoAppendWaterMark:
  520. if (dwSignature != UIService_MethodSignature_VideoAppendWaterMark) {
  521. Error = Error_MethodSignatureFailed;
  522. }
  523. break;
  524. case UIService_Method_GetLocalAudioVolume:
  525. if (dwSignature != UIService_MethodSignature_GetLocalAudioVolume) {
  526. Error = Error_MethodSignatureFailed;
  527. }
  528. break;
  529. case UIService_Method_SetLocalAudioVolume:
  530. if (dwSignature != UIService_MethodSignature_SetLocalAudioVolume) {
  531. Error = Error_MethodSignatureFailed;
  532. }
  533. break;
  534. case UIService_Method_StartRemoteRecord:
  535. if (dwSignature != UIService_MethodSignature_StartRemoteRecord) {
  536. Error = Error_MethodSignatureFailed;
  537. }
  538. break;
  539. case UIService_Method_StopRemoteRecord:
  540. if (dwSignature != UIService_MethodSignature_StopRemoteRecord) {
  541. Error = Error_MethodSignatureFailed;
  542. }
  543. break;
  544. case UIService_Method_StartSalesRecord:
  545. if (dwSignature != UIService_MethodSignature_StartSalesRecord) {
  546. Error = Error_MethodSignatureFailed;
  547. }
  548. break;
  549. case UIService_Method_StartRecordPreview:
  550. if (dwSignature != UIService_MethodSignature_StartRecordPreview) {
  551. Error = Error_MethodSignatureFailed;
  552. }
  553. break;
  554. case UIService_Method_StartSalesVideoRecord:
  555. if (dwSignature != UIService_MethodSignature_StartSalesVideoRecord) {
  556. Error = Error_MethodSignatureFailed;
  557. }
  558. break;
  559. case UIService_Method_AjustVideoPreviewSize:
  560. if (dwSignature != UIService_MethodSignature_AjustVideoPreviewSize) {
  561. Error = Error_MethodSignatureFailed;
  562. }
  563. break;
  564. case UIService_Method_StopShowVideo:
  565. if (dwSignature != UIService_MethodSignature_StopShowVideo) {
  566. Error = Error_MethodSignatureFailed;
  567. }
  568. break;
  569. case UIService_Method_StartPlaySalesRecord:
  570. if (dwSignature != UIService_MethodSignature_StartPlaySalesRecord) {
  571. Error = Error_MethodSignatureFailed;
  572. }
  573. break;
  574. default:
  575. Error = Error_MethodNotFound;
  576. break;
  577. }
  578. return Error;
  579. }
  580. virtual void Handle_SetUIState(SpOnewayCallContext<UIService_SetUIState_Info>::Pointer ctx)
  581. {
  582. /// override by user
  583. }
  584. virtual void Handle_SendAgentText(SpReqAnsContext<UIService_SendAgentText_Req, UIService_SendAgentText_Ans>::Pointer ctx)
  585. {
  586. /// override by user
  587. }
  588. virtual void Handle_SetMenuTree(SpOnewayCallContext<UIService_SetMenuTree_Info>::Pointer ctx)
  589. {
  590. /// override by user
  591. }
  592. virtual void Handle_SetMenuPath(SpOnewayCallContext<UIService_SetMenuPath_Info>::Pointer ctx)
  593. {
  594. /// override by user
  595. }
  596. virtual void Handle_SendFrontSyncData(SpOnewayCallContext<UIService_SendFrontSyncData_Info>::Pointer ctx)
  597. {
  598. /// override by user
  599. }
  600. virtual void Handle_StartRecordVideo(SpReqAnsContext<UIService_StartRecordVideo_Req, UIService_StartRecordVideo_Ans>::Pointer ctx)
  601. {
  602. /// override by user
  603. }
  604. virtual void Handle_StopRecordVideo(SpReqAnsContext<UIService_StopRecordVideo_Req, UIService_StopRecordVideo_Ans>::Pointer ctx)
  605. {
  606. /// override by user
  607. }
  608. virtual void Handle_ShowVideo(SpReqAnsContext<UIService_ShowVideo_Req, UIService_ShowVideo_Ans>::Pointer ctx)
  609. {
  610. /// override by user
  611. }
  612. virtual void Handle_SaveVideo(SpReqAnsContext<UIService_SaveVideo_Req, UIService_SaveVideo_Ans>::Pointer ctx)
  613. {
  614. /// override by user
  615. }
  616. virtual void Handle_DeleteVideo(SpReqAnsContext<UIService_DeleteVideo_Req, UIService_DeleteVideo_Ans>::Pointer ctx)
  617. {
  618. /// override by user
  619. }
  620. virtual void Handle_StartPlayVideo(SpReqAnsContext<UIService_StartPlayVideo_Req, UIService_StartPlayVideo_Ans>::Pointer ctx)
  621. {
  622. /// override by user
  623. }
  624. virtual void Handle_StartPlayAudio(SpReqAnsContext<UIService_StartPlayAudio_Req, UIService_StartPlayAudio_Ans>::Pointer ctx)
  625. {
  626. /// override by user
  627. }
  628. virtual void Handle_StartPlayImage(SpReqAnsContext<UIService_StartPlayImage_Req, UIService_StartPlayImage_Ans>::Pointer ctx)
  629. {
  630. /// override by user
  631. }
  632. virtual void Handle_StopPlayVideo(SpReqAnsContext<UIService_StopPlayVideo_Req, UIService_StopPlayVideo_Ans>::Pointer ctx)
  633. {
  634. /// override by user
  635. }
  636. virtual void Handle_StopPlayAudio(SpReqAnsContext<UIService_StopPlayAudio_Req, UIService_StopPlayAudio_Ans>::Pointer ctx)
  637. {
  638. /// override by user
  639. }
  640. virtual void Handle_StopPlayImage(SpReqAnsContext<UIService_StopPlayImage_Req, UIService_StopPlayImage_Ans>::Pointer ctx)
  641. {
  642. /// override by user
  643. }
  644. virtual void Handle_StartPhotograph(SpOnewayCallContext<UIService_StartPhotograph_Info>::Pointer ctx)
  645. {
  646. /// override by user
  647. }
  648. virtual void Handle_StopPhotograph(SpOnewayCallContext<UIService_StopPhotograph_Info>::Pointer ctx)
  649. {
  650. /// override by user
  651. }
  652. virtual void Handle_SendOperateState(SpOnewayCallContext<UIService_SendOperateState_Info>::Pointer ctx)
  653. {
  654. /// override by user
  655. }
  656. virtual void Handle_CheckContinuRecord(SpReqAnsContext<UIService_CheckContinuRecord_Req, UIService_CheckContinuRecord_Ans>::Pointer ctx)
  657. {
  658. /// override by user
  659. }
  660. virtual void Handle_StartContinuRecord(SpReqAnsContext<UIService_StartContinuRecord_Req, UIService_StartContinuRecord_Ans>::Pointer ctx)
  661. {
  662. /// override by user
  663. }
  664. virtual void Handle_StopContinuRecord(SpReqAnsContext<UIService_StopContinuRecord_Req, UIService_StopContinuRecord_Ans>::Pointer ctx)
  665. {
  666. /// override by user
  667. }
  668. virtual void Handle_StartEchoContinuRecord(SpReqAnsContext<UIService_StartEchoContinuRecord_Req, UIService_StartEchoContinuRecord_Ans>::Pointer ctx)
  669. {
  670. /// override by user
  671. }
  672. virtual void Handle_StopEchoContinuRecord(SpReqAnsContext<UIService_StopEchoContinuRecord_Req, UIService_StopEchoContinuRecord_Ans>::Pointer ctx)
  673. {
  674. /// override by user
  675. }
  676. virtual void Handle_HideOnlineVideo(SpOnewayCallContext<UIService_HideOnlineVideo_Info>::Pointer ctx)
  677. {
  678. /// override by user
  679. }
  680. virtual void Handle_ShowOnlineVideo(SpOnewayCallContext<UIService_ShowOnlineVideo_Info>::Pointer ctx)
  681. {
  682. /// override by user
  683. }
  684. virtual void Handle_AnswerPacket(SpReqAnsContext<UIService_AnswerPacket_Req, UIService_AnswerPacket_Ans>::Pointer ctx)
  685. {
  686. /// override by user
  687. }
  688. virtual void Handle_GetLocalVideoVolume(SpReqAnsContext<UIService_GetLocalVideoVolume_Req, UIService_GetLocalVideoVolume_Ans>::Pointer ctx)
  689. {
  690. /// override by user
  691. }
  692. virtual void Handle_SetLocalVideoVolume(SpReqAnsContext<UIService_SetLocalVideoVolume_Req, UIService_SetLocalVideoVolume_Ans>::Pointer ctx)
  693. {
  694. /// override by user
  695. }
  696. virtual void Handle_SendBusinessDesktopCmd(SpReqAnsContext<UIService_SendBusinessDesktopCmd_Req, UIService_SendBusinessDesktopCmd_Ans>::Pointer ctx)
  697. {
  698. /// override by user
  699. }
  700. virtual void Handle_HideLocalVideo(SpOnewayCallContext<UIService_HideLocalVideo_Info>::Pointer ctx)
  701. {
  702. /// override by user
  703. }
  704. virtual void Handle_ShowLocalVideo(SpOnewayCallContext<UIService_ShowLocalVideo_Info>::Pointer ctx)
  705. {
  706. /// override by user
  707. }
  708. virtual void Handle_HidePersonArea(SpOnewayCallContext<UIService_HidePersonArea_Info>::Pointer ctx)
  709. {
  710. /// override by user
  711. }
  712. virtual void Handle_ShowPersonArea(SpOnewayCallContext<UIService_ShowPersonArea_Info>::Pointer ctx)
  713. {
  714. /// override by user
  715. }
  716. virtual void Handle_VideoAppendWaterMark(SpReqAnsContext<UIService_VideoAppendWaterMark_Req, UIService_VideoAppendWaterMark_Ans>::Pointer ctx)
  717. {
  718. /// override by user
  719. }
  720. virtual void Handle_GetLocalAudioVolume(SpReqAnsContext<UIService_GetLocalAudioVolume_Req, UIService_GetLocalAudioVolume_Ans>::Pointer ctx)
  721. {
  722. /// override by user
  723. }
  724. virtual void Handle_SetLocalAudioVolume(SpReqAnsContext<UIService_SetLocalAudioVolume_Req, UIService_SetLocalAudioVolume_Ans>::Pointer ctx)
  725. {
  726. /// override by user
  727. }
  728. virtual void Handle_StartRemoteRecord(SpReqAnsContext<UIService_StartRemoteRecord_Req, UIService_StartRemoteRecord_Ans>::Pointer ctx)
  729. {
  730. /// override by user
  731. }
  732. virtual void Handle_StopRemoteRecord(SpReqAnsContext<UIService_StopRemoteRecord_Req, UIService_StopRemoteRecord_Ans>::Pointer ctx)
  733. {
  734. /// override by user
  735. }
  736. virtual void Handle_StartSalesRecord(SpReqAnsContext<UIService_StartSalesRecord_Req, UIService_StartSalesRecord_Ans>::Pointer ctx)
  737. {
  738. /// override by user
  739. }
  740. virtual void Handle_StartRecordPreview(SpReqAnsContext<UIService_StartRecordPreview_Req, UIService_StartRecordPreview_Ans>::Pointer ctx)
  741. {
  742. /// override by user
  743. }
  744. virtual void Handle_StartSalesVideoRecord(SpReqAnsContext<UIService_StartSalesVideoRecord_Req, UIService_StartSalesVideoRecord_Ans>::Pointer ctx)
  745. {
  746. /// override by user
  747. }
  748. virtual void Handle_AjustVideoPreviewSize(SpReqAnsContext<UIService_AjustVideoPreviewSize_Req, UIService_AjustVideoPreviewSize_Ans>::Pointer ctx)
  749. {
  750. /// override by user
  751. }
  752. virtual void Handle_StopShowVideo(SpReqAnsContext<UIService_StopShowVideo_Req, UIService_StopShowVideo_Ans>::Pointer ctx)
  753. {
  754. /// override by user
  755. }
  756. virtual void Handle_StartPlaySalesRecord(SpReqAnsContext<UIService_StartPlaySalesRecord_Req, UIService_StartPlaySalesRecord_Ans>::Pointer ctx)
  757. {
  758. /// override by user
  759. }
  760. virtual void OnRequest(CSmartPointer<ITransactionContext> pTransactionContext)
  761. {
  762. CAutoBuffer Buf;
  763. DWORD dwMessageID;
  764. DWORD dwMessageSignature;
  765. ErrorCodeEnum Error = pTransactionContext->GetReceiveBuffer(dwMessageID, dwMessageSignature, Buf);
  766. if (Error == Error_Succeed) {
  767. #ifdef DEBUG
  768. assert(CheckMessageSignature(dwMessageID, dwMessageSignature) == Error_Succeed);
  769. #else
  770. if (CheckMessageSignature(dwMessageID, dwMessageSignature) != Error_Succeed) {
  771. pTransactionContext->SendAnswer(Error_MethodSignatureFailed);
  772. return;
  773. }
  774. #endif
  775. switch (dwMessageID) {
  776. case UIService_Method_SetUIState:
  777. {
  778. SpOnewayCallContext<UIService_SetUIState_Info>::Pointer ctx;
  779. ctx.Attach(new SpOnewayCallContext<UIService_SetUIState_Info>());
  780. SpBuffer2Object(Buf, ctx->Info);
  781. Handle_SetUIState(ctx);
  782. }
  783. break;
  784. case UIService_Method_SendAgentText:
  785. {
  786. SpReqAnsContext<UIService_SendAgentText_Req,UIService_SendAgentText_Ans>::Pointer ctx;
  787. ctx.Attach(new SpReqAnsContext<UIService_SendAgentText_Req,UIService_SendAgentText_Ans>(pTransactionContext));
  788. SpBuffer2Object(Buf, ctx->Req);
  789. Handle_SendAgentText(ctx);
  790. }
  791. break;
  792. case UIService_Method_SetMenuTree:
  793. {
  794. SpOnewayCallContext<UIService_SetMenuTree_Info>::Pointer ctx;
  795. ctx.Attach(new SpOnewayCallContext<UIService_SetMenuTree_Info>());
  796. SpBuffer2Object(Buf, ctx->Info);
  797. Handle_SetMenuTree(ctx);
  798. }
  799. break;
  800. case UIService_Method_SetMenuPath:
  801. {
  802. SpOnewayCallContext<UIService_SetMenuPath_Info>::Pointer ctx;
  803. ctx.Attach(new SpOnewayCallContext<UIService_SetMenuPath_Info>());
  804. SpBuffer2Object(Buf, ctx->Info);
  805. Handle_SetMenuPath(ctx);
  806. }
  807. break;
  808. case UIService_Method_SendFrontSyncData:
  809. {
  810. SpOnewayCallContext<UIService_SendFrontSyncData_Info>::Pointer ctx;
  811. ctx.Attach(new SpOnewayCallContext<UIService_SendFrontSyncData_Info>());
  812. SpBuffer2Object(Buf, ctx->Info);
  813. Handle_SendFrontSyncData(ctx);
  814. }
  815. break;
  816. case UIService_Method_StartRecordVideo:
  817. {
  818. SpReqAnsContext<UIService_StartRecordVideo_Req,UIService_StartRecordVideo_Ans>::Pointer ctx;
  819. ctx.Attach(new SpReqAnsContext<UIService_StartRecordVideo_Req,UIService_StartRecordVideo_Ans>(pTransactionContext));
  820. SpBuffer2Object(Buf, ctx->Req);
  821. Handle_StartRecordVideo(ctx);
  822. }
  823. break;
  824. case UIService_Method_StopRecordVideo:
  825. {
  826. SpReqAnsContext<UIService_StopRecordVideo_Req,UIService_StopRecordVideo_Ans>::Pointer ctx;
  827. ctx.Attach(new SpReqAnsContext<UIService_StopRecordVideo_Req,UIService_StopRecordVideo_Ans>(pTransactionContext));
  828. SpBuffer2Object(Buf, ctx->Req);
  829. Handle_StopRecordVideo(ctx);
  830. }
  831. break;
  832. case UIService_Method_ShowVideo:
  833. {
  834. SpReqAnsContext<UIService_ShowVideo_Req,UIService_ShowVideo_Ans>::Pointer ctx;
  835. ctx.Attach(new SpReqAnsContext<UIService_ShowVideo_Req,UIService_ShowVideo_Ans>(pTransactionContext));
  836. SpBuffer2Object(Buf, ctx->Req);
  837. Handle_ShowVideo(ctx);
  838. }
  839. break;
  840. case UIService_Method_SaveVideo:
  841. {
  842. SpReqAnsContext<UIService_SaveVideo_Req,UIService_SaveVideo_Ans>::Pointer ctx;
  843. ctx.Attach(new SpReqAnsContext<UIService_SaveVideo_Req,UIService_SaveVideo_Ans>(pTransactionContext));
  844. SpBuffer2Object(Buf, ctx->Req);
  845. Handle_SaveVideo(ctx);
  846. }
  847. break;
  848. case UIService_Method_DeleteVideo:
  849. {
  850. SpReqAnsContext<UIService_DeleteVideo_Req,UIService_DeleteVideo_Ans>::Pointer ctx;
  851. ctx.Attach(new SpReqAnsContext<UIService_DeleteVideo_Req,UIService_DeleteVideo_Ans>(pTransactionContext));
  852. SpBuffer2Object(Buf, ctx->Req);
  853. Handle_DeleteVideo(ctx);
  854. }
  855. break;
  856. case UIService_Method_StartPlayVideo:
  857. {
  858. SpReqAnsContext<UIService_StartPlayVideo_Req,UIService_StartPlayVideo_Ans>::Pointer ctx;
  859. ctx.Attach(new SpReqAnsContext<UIService_StartPlayVideo_Req,UIService_StartPlayVideo_Ans>(pTransactionContext));
  860. SpBuffer2Object(Buf, ctx->Req);
  861. Handle_StartPlayVideo(ctx);
  862. }
  863. break;
  864. case UIService_Method_StartPlayAudio:
  865. {
  866. SpReqAnsContext<UIService_StartPlayAudio_Req,UIService_StartPlayAudio_Ans>::Pointer ctx;
  867. ctx.Attach(new SpReqAnsContext<UIService_StartPlayAudio_Req,UIService_StartPlayAudio_Ans>(pTransactionContext));
  868. SpBuffer2Object(Buf, ctx->Req);
  869. Handle_StartPlayAudio(ctx);
  870. }
  871. break;
  872. case UIService_Method_StartPlayImage:
  873. {
  874. SpReqAnsContext<UIService_StartPlayImage_Req,UIService_StartPlayImage_Ans>::Pointer ctx;
  875. ctx.Attach(new SpReqAnsContext<UIService_StartPlayImage_Req,UIService_StartPlayImage_Ans>(pTransactionContext));
  876. SpBuffer2Object(Buf, ctx->Req);
  877. Handle_StartPlayImage(ctx);
  878. }
  879. break;
  880. case UIService_Method_StopPlayVideo:
  881. {
  882. SpReqAnsContext<UIService_StopPlayVideo_Req,UIService_StopPlayVideo_Ans>::Pointer ctx;
  883. ctx.Attach(new SpReqAnsContext<UIService_StopPlayVideo_Req,UIService_StopPlayVideo_Ans>(pTransactionContext));
  884. SpBuffer2Object(Buf, ctx->Req);
  885. Handle_StopPlayVideo(ctx);
  886. }
  887. break;
  888. case UIService_Method_StopPlayAudio:
  889. {
  890. SpReqAnsContext<UIService_StopPlayAudio_Req,UIService_StopPlayAudio_Ans>::Pointer ctx;
  891. ctx.Attach(new SpReqAnsContext<UIService_StopPlayAudio_Req,UIService_StopPlayAudio_Ans>(pTransactionContext));
  892. SpBuffer2Object(Buf, ctx->Req);
  893. Handle_StopPlayAudio(ctx);
  894. }
  895. break;
  896. case UIService_Method_StopPlayImage:
  897. {
  898. SpReqAnsContext<UIService_StopPlayImage_Req,UIService_StopPlayImage_Ans>::Pointer ctx;
  899. ctx.Attach(new SpReqAnsContext<UIService_StopPlayImage_Req,UIService_StopPlayImage_Ans>(pTransactionContext));
  900. SpBuffer2Object(Buf, ctx->Req);
  901. Handle_StopPlayImage(ctx);
  902. }
  903. break;
  904. case UIService_Method_StartPhotograph:
  905. {
  906. SpOnewayCallContext<UIService_StartPhotograph_Info>::Pointer ctx;
  907. ctx.Attach(new SpOnewayCallContext<UIService_StartPhotograph_Info>());
  908. SpBuffer2Object(Buf, ctx->Info);
  909. Handle_StartPhotograph(ctx);
  910. }
  911. break;
  912. case UIService_Method_StopPhotograph:
  913. {
  914. SpOnewayCallContext<UIService_StopPhotograph_Info>::Pointer ctx;
  915. ctx.Attach(new SpOnewayCallContext<UIService_StopPhotograph_Info>());
  916. SpBuffer2Object(Buf, ctx->Info);
  917. Handle_StopPhotograph(ctx);
  918. }
  919. break;
  920. case UIService_Method_SendOperateState:
  921. {
  922. SpOnewayCallContext<UIService_SendOperateState_Info>::Pointer ctx;
  923. ctx.Attach(new SpOnewayCallContext<UIService_SendOperateState_Info>());
  924. SpBuffer2Object(Buf, ctx->Info);
  925. Handle_SendOperateState(ctx);
  926. }
  927. break;
  928. case UIService_Method_CheckContinuRecord:
  929. {
  930. SpReqAnsContext<UIService_CheckContinuRecord_Req,UIService_CheckContinuRecord_Ans>::Pointer ctx;
  931. ctx.Attach(new SpReqAnsContext<UIService_CheckContinuRecord_Req,UIService_CheckContinuRecord_Ans>(pTransactionContext));
  932. SpBuffer2Object(Buf, ctx->Req);
  933. Handle_CheckContinuRecord(ctx);
  934. }
  935. break;
  936. case UIService_Method_StartContinuRecord:
  937. {
  938. SpReqAnsContext<UIService_StartContinuRecord_Req,UIService_StartContinuRecord_Ans>::Pointer ctx;
  939. ctx.Attach(new SpReqAnsContext<UIService_StartContinuRecord_Req,UIService_StartContinuRecord_Ans>(pTransactionContext));
  940. SpBuffer2Object(Buf, ctx->Req);
  941. Handle_StartContinuRecord(ctx);
  942. }
  943. break;
  944. case UIService_Method_StopContinuRecord:
  945. {
  946. SpReqAnsContext<UIService_StopContinuRecord_Req,UIService_StopContinuRecord_Ans>::Pointer ctx;
  947. ctx.Attach(new SpReqAnsContext<UIService_StopContinuRecord_Req,UIService_StopContinuRecord_Ans>(pTransactionContext));
  948. SpBuffer2Object(Buf, ctx->Req);
  949. Handle_StopContinuRecord(ctx);
  950. }
  951. break;
  952. case UIService_Method_StartEchoContinuRecord:
  953. {
  954. SpReqAnsContext<UIService_StartEchoContinuRecord_Req,UIService_StartEchoContinuRecord_Ans>::Pointer ctx;
  955. ctx.Attach(new SpReqAnsContext<UIService_StartEchoContinuRecord_Req,UIService_StartEchoContinuRecord_Ans>(pTransactionContext));
  956. SpBuffer2Object(Buf, ctx->Req);
  957. Handle_StartEchoContinuRecord(ctx);
  958. }
  959. break;
  960. case UIService_Method_StopEchoContinuRecord:
  961. {
  962. SpReqAnsContext<UIService_StopEchoContinuRecord_Req,UIService_StopEchoContinuRecord_Ans>::Pointer ctx;
  963. ctx.Attach(new SpReqAnsContext<UIService_StopEchoContinuRecord_Req,UIService_StopEchoContinuRecord_Ans>(pTransactionContext));
  964. SpBuffer2Object(Buf, ctx->Req);
  965. Handle_StopEchoContinuRecord(ctx);
  966. }
  967. break;
  968. case UIService_Method_HideOnlineVideo:
  969. {
  970. SpOnewayCallContext<UIService_HideOnlineVideo_Info>::Pointer ctx;
  971. ctx.Attach(new SpOnewayCallContext<UIService_HideOnlineVideo_Info>());
  972. SpBuffer2Object(Buf, ctx->Info);
  973. Handle_HideOnlineVideo(ctx);
  974. }
  975. break;
  976. case UIService_Method_ShowOnlineVideo:
  977. {
  978. SpOnewayCallContext<UIService_ShowOnlineVideo_Info>::Pointer ctx;
  979. ctx.Attach(new SpOnewayCallContext<UIService_ShowOnlineVideo_Info>());
  980. SpBuffer2Object(Buf, ctx->Info);
  981. Handle_ShowOnlineVideo(ctx);
  982. }
  983. break;
  984. case UIService_Method_AnswerPacket:
  985. {
  986. SpReqAnsContext<UIService_AnswerPacket_Req,UIService_AnswerPacket_Ans>::Pointer ctx;
  987. ctx.Attach(new SpReqAnsContext<UIService_AnswerPacket_Req,UIService_AnswerPacket_Ans>(pTransactionContext));
  988. SpBuffer2Object(Buf, ctx->Req);
  989. Handle_AnswerPacket(ctx);
  990. }
  991. break;
  992. case UIService_Method_GetLocalVideoVolume:
  993. {
  994. SpReqAnsContext<UIService_GetLocalVideoVolume_Req,UIService_GetLocalVideoVolume_Ans>::Pointer ctx;
  995. ctx.Attach(new SpReqAnsContext<UIService_GetLocalVideoVolume_Req,UIService_GetLocalVideoVolume_Ans>(pTransactionContext));
  996. SpBuffer2Object(Buf, ctx->Req);
  997. Handle_GetLocalVideoVolume(ctx);
  998. }
  999. break;
  1000. case UIService_Method_SetLocalVideoVolume:
  1001. {
  1002. SpReqAnsContext<UIService_SetLocalVideoVolume_Req,UIService_SetLocalVideoVolume_Ans>::Pointer ctx;
  1003. ctx.Attach(new SpReqAnsContext<UIService_SetLocalVideoVolume_Req,UIService_SetLocalVideoVolume_Ans>(pTransactionContext));
  1004. SpBuffer2Object(Buf, ctx->Req);
  1005. Handle_SetLocalVideoVolume(ctx);
  1006. }
  1007. break;
  1008. case UIService_Method_SendBusinessDesktopCmd:
  1009. {
  1010. SpReqAnsContext<UIService_SendBusinessDesktopCmd_Req,UIService_SendBusinessDesktopCmd_Ans>::Pointer ctx;
  1011. ctx.Attach(new SpReqAnsContext<UIService_SendBusinessDesktopCmd_Req,UIService_SendBusinessDesktopCmd_Ans>(pTransactionContext));
  1012. SpBuffer2Object(Buf, ctx->Req);
  1013. Handle_SendBusinessDesktopCmd(ctx);
  1014. }
  1015. break;
  1016. case UIService_Method_HideLocalVideo:
  1017. {
  1018. SpOnewayCallContext<UIService_HideLocalVideo_Info>::Pointer ctx;
  1019. ctx.Attach(new SpOnewayCallContext<UIService_HideLocalVideo_Info>());
  1020. SpBuffer2Object(Buf, ctx->Info);
  1021. Handle_HideLocalVideo(ctx);
  1022. }
  1023. break;
  1024. case UIService_Method_ShowLocalVideo:
  1025. {
  1026. SpOnewayCallContext<UIService_ShowLocalVideo_Info>::Pointer ctx;
  1027. ctx.Attach(new SpOnewayCallContext<UIService_ShowLocalVideo_Info>());
  1028. SpBuffer2Object(Buf, ctx->Info);
  1029. Handle_ShowLocalVideo(ctx);
  1030. }
  1031. break;
  1032. case UIService_Method_HidePersonArea:
  1033. {
  1034. SpOnewayCallContext<UIService_HidePersonArea_Info>::Pointer ctx;
  1035. ctx.Attach(new SpOnewayCallContext<UIService_HidePersonArea_Info>());
  1036. SpBuffer2Object(Buf, ctx->Info);
  1037. Handle_HidePersonArea(ctx);
  1038. }
  1039. break;
  1040. case UIService_Method_ShowPersonArea:
  1041. {
  1042. SpOnewayCallContext<UIService_ShowPersonArea_Info>::Pointer ctx;
  1043. ctx.Attach(new SpOnewayCallContext<UIService_ShowPersonArea_Info>());
  1044. SpBuffer2Object(Buf, ctx->Info);
  1045. Handle_ShowPersonArea(ctx);
  1046. }
  1047. break;
  1048. case UIService_Method_VideoAppendWaterMark:
  1049. {
  1050. SpReqAnsContext<UIService_VideoAppendWaterMark_Req,UIService_VideoAppendWaterMark_Ans>::Pointer ctx;
  1051. ctx.Attach(new SpReqAnsContext<UIService_VideoAppendWaterMark_Req,UIService_VideoAppendWaterMark_Ans>(pTransactionContext));
  1052. SpBuffer2Object(Buf, ctx->Req);
  1053. Handle_VideoAppendWaterMark(ctx);
  1054. }
  1055. break;
  1056. case UIService_Method_GetLocalAudioVolume:
  1057. {
  1058. SpReqAnsContext<UIService_GetLocalAudioVolume_Req,UIService_GetLocalAudioVolume_Ans>::Pointer ctx;
  1059. ctx.Attach(new SpReqAnsContext<UIService_GetLocalAudioVolume_Req,UIService_GetLocalAudioVolume_Ans>(pTransactionContext));
  1060. SpBuffer2Object(Buf, ctx->Req);
  1061. Handle_GetLocalAudioVolume(ctx);
  1062. }
  1063. break;
  1064. case UIService_Method_SetLocalAudioVolume:
  1065. {
  1066. SpReqAnsContext<UIService_SetLocalAudioVolume_Req,UIService_SetLocalAudioVolume_Ans>::Pointer ctx;
  1067. ctx.Attach(new SpReqAnsContext<UIService_SetLocalAudioVolume_Req,UIService_SetLocalAudioVolume_Ans>(pTransactionContext));
  1068. SpBuffer2Object(Buf, ctx->Req);
  1069. Handle_SetLocalAudioVolume(ctx);
  1070. }
  1071. break;
  1072. case UIService_Method_StartRemoteRecord:
  1073. {
  1074. SpReqAnsContext<UIService_StartRemoteRecord_Req,UIService_StartRemoteRecord_Ans>::Pointer ctx;
  1075. ctx.Attach(new SpReqAnsContext<UIService_StartRemoteRecord_Req,UIService_StartRemoteRecord_Ans>(pTransactionContext));
  1076. SpBuffer2Object(Buf, ctx->Req);
  1077. Handle_StartRemoteRecord(ctx);
  1078. }
  1079. break;
  1080. case UIService_Method_StopRemoteRecord:
  1081. {
  1082. SpReqAnsContext<UIService_StopRemoteRecord_Req,UIService_StopRemoteRecord_Ans>::Pointer ctx;
  1083. ctx.Attach(new SpReqAnsContext<UIService_StopRemoteRecord_Req,UIService_StopRemoteRecord_Ans>(pTransactionContext));
  1084. SpBuffer2Object(Buf, ctx->Req);
  1085. Handle_StopRemoteRecord(ctx);
  1086. }
  1087. break;
  1088. case UIService_Method_StartSalesRecord:
  1089. {
  1090. SpReqAnsContext<UIService_StartSalesRecord_Req,UIService_StartSalesRecord_Ans>::Pointer ctx;
  1091. ctx.Attach(new SpReqAnsContext<UIService_StartSalesRecord_Req,UIService_StartSalesRecord_Ans>(pTransactionContext));
  1092. SpBuffer2Object(Buf, ctx->Req);
  1093. Handle_StartSalesRecord(ctx);
  1094. }
  1095. break;
  1096. case UIService_Method_StartRecordPreview:
  1097. {
  1098. SpReqAnsContext<UIService_StartRecordPreview_Req,UIService_StartRecordPreview_Ans>::Pointer ctx;
  1099. ctx.Attach(new SpReqAnsContext<UIService_StartRecordPreview_Req,UIService_StartRecordPreview_Ans>(pTransactionContext));
  1100. SpBuffer2Object(Buf, ctx->Req);
  1101. Handle_StartRecordPreview(ctx);
  1102. }
  1103. break;
  1104. case UIService_Method_StartSalesVideoRecord:
  1105. {
  1106. SpReqAnsContext<UIService_StartSalesVideoRecord_Req,UIService_StartSalesVideoRecord_Ans>::Pointer ctx;
  1107. ctx.Attach(new SpReqAnsContext<UIService_StartSalesVideoRecord_Req,UIService_StartSalesVideoRecord_Ans>(pTransactionContext));
  1108. SpBuffer2Object(Buf, ctx->Req);
  1109. Handle_StartSalesVideoRecord(ctx);
  1110. }
  1111. break;
  1112. case UIService_Method_AjustVideoPreviewSize:
  1113. {
  1114. SpReqAnsContext<UIService_AjustVideoPreviewSize_Req,UIService_AjustVideoPreviewSize_Ans>::Pointer ctx;
  1115. ctx.Attach(new SpReqAnsContext<UIService_AjustVideoPreviewSize_Req,UIService_AjustVideoPreviewSize_Ans>(pTransactionContext));
  1116. SpBuffer2Object(Buf, ctx->Req);
  1117. Handle_AjustVideoPreviewSize(ctx);
  1118. }
  1119. break;
  1120. case UIService_Method_StopShowVideo:
  1121. {
  1122. SpReqAnsContext<UIService_StopShowVideo_Req,UIService_StopShowVideo_Ans>::Pointer ctx;
  1123. ctx.Attach(new SpReqAnsContext<UIService_StopShowVideo_Req,UIService_StopShowVideo_Ans>(pTransactionContext));
  1124. SpBuffer2Object(Buf, ctx->Req);
  1125. Handle_StopShowVideo(ctx);
  1126. }
  1127. break;
  1128. case UIService_Method_StartPlaySalesRecord:
  1129. {
  1130. SpReqAnsContext<UIService_StartPlaySalesRecord_Req,UIService_StartPlaySalesRecord_Ans>::Pointer ctx;
  1131. ctx.Attach(new SpReqAnsContext<UIService_StartPlaySalesRecord_Req,UIService_StartPlaySalesRecord_Ans>(pTransactionContext));
  1132. SpBuffer2Object(Buf, ctx->Req);
  1133. Handle_StartPlaySalesRecord(ctx);
  1134. }
  1135. break;
  1136. default:
  1137. assert(0);
  1138. break;
  1139. }
  1140. } else {
  1141. pTransactionContext->SendAnswer(Error);
  1142. }
  1143. }
  1144. };
  1145. ///////////////////////////
  1146. } // namespace InteractiveControl
  1147. #endif // __INTERACTIVECONTROL_SERVER_G_H