12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208 |
- #ifndef __INTERACTIVECONTROL_SERVER_G_H
- #define __INTERACTIVECONTROL_SERVER_G_H
- #pragma once
- // This code is generated by spgen tool!
- #include "InteractiveControl_def_g.h"
- namespace InteractiveControl {
- class UIService_ServerSessionBase : public CServerSessionBase
- {
- public:
- UIService_ServerSessionBase()
- {
- /// override by user
- }
- virtual ~UIService_ServerSessionBase()
- {
- /// override by user
- }
- virtual bool IsExclusive() { return false; }
- virtual bool IsSessionOverlap() { return true; }
- virtual ErrorCodeEnum GetMessageAttr(DWORD dwMessageID, DWORD dwSignature, bool &bOverlap)
- {
- ErrorCodeEnum Error = Error_Succeed;
- switch (dwMessageID) {
- case UIService_Method_SetUIState:
- if (dwSignature == UIService_MethodSignature_SetUIState) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SendAgentText:
- if (dwSignature == UIService_MethodSignature_SendAgentText) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SetMenuTree:
- if (dwSignature == UIService_MethodSignature_SetMenuTree) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SetMenuPath:
- if (dwSignature == UIService_MethodSignature_SetMenuPath) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SendFrontSyncData:
- if (dwSignature == UIService_MethodSignature_SendFrontSyncData) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartRecordVideo:
- if (dwSignature == UIService_MethodSignature_StartRecordVideo) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopRecordVideo:
- if (dwSignature == UIService_MethodSignature_StopRecordVideo) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_ShowVideo:
- if (dwSignature == UIService_MethodSignature_ShowVideo) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SaveVideo:
- if (dwSignature == UIService_MethodSignature_SaveVideo) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_DeleteVideo:
- if (dwSignature == UIService_MethodSignature_DeleteVideo) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartPlayVideo:
- if (dwSignature == UIService_MethodSignature_StartPlayVideo) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartPlayAudio:
- if (dwSignature == UIService_MethodSignature_StartPlayAudio) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartPlayImage:
- if (dwSignature == UIService_MethodSignature_StartPlayImage) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopPlayVideo:
- if (dwSignature == UIService_MethodSignature_StopPlayVideo) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopPlayAudio:
- if (dwSignature == UIService_MethodSignature_StopPlayAudio) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopPlayImage:
- if (dwSignature == UIService_MethodSignature_StopPlayImage) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartPhotograph:
- if (dwSignature == UIService_MethodSignature_StartPhotograph) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopPhotograph:
- if (dwSignature == UIService_MethodSignature_StopPhotograph) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SendOperateState:
- if (dwSignature == UIService_MethodSignature_SendOperateState) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_CheckContinuRecord:
- if (dwSignature == UIService_MethodSignature_CheckContinuRecord) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartContinuRecord:
- if (dwSignature == UIService_MethodSignature_StartContinuRecord) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopContinuRecord:
- if (dwSignature == UIService_MethodSignature_StopContinuRecord) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartEchoContinuRecord:
- if (dwSignature == UIService_MethodSignature_StartEchoContinuRecord) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopEchoContinuRecord:
- if (dwSignature == UIService_MethodSignature_StopEchoContinuRecord) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_HideOnlineVideo:
- if (dwSignature == UIService_MethodSignature_HideOnlineVideo) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_ShowOnlineVideo:
- if (dwSignature == UIService_MethodSignature_ShowOnlineVideo) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_AnswerPacket:
- if (dwSignature == UIService_MethodSignature_AnswerPacket) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_GetLocalVideoVolume:
- if (dwSignature == UIService_MethodSignature_GetLocalVideoVolume) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SetLocalVideoVolume:
- if (dwSignature == UIService_MethodSignature_SetLocalVideoVolume) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SendBusinessDesktopCmd:
- if (dwSignature == UIService_MethodSignature_SendBusinessDesktopCmd) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_HideLocalVideo:
- if (dwSignature == UIService_MethodSignature_HideLocalVideo) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_ShowLocalVideo:
- if (dwSignature == UIService_MethodSignature_ShowLocalVideo) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_HidePersonArea:
- if (dwSignature == UIService_MethodSignature_HidePersonArea) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_ShowPersonArea:
- if (dwSignature == UIService_MethodSignature_ShowPersonArea) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_VideoAppendWaterMark:
- if (dwSignature == UIService_MethodSignature_VideoAppendWaterMark) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_GetLocalAudioVolume:
- if (dwSignature == UIService_MethodSignature_GetLocalAudioVolume) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SetLocalAudioVolume:
- if (dwSignature == UIService_MethodSignature_SetLocalAudioVolume) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartRemoteRecord:
- if (dwSignature == UIService_MethodSignature_StartRemoteRecord) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopRemoteRecord:
- if (dwSignature == UIService_MethodSignature_StopRemoteRecord) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartSalesRecord:
- if (dwSignature == UIService_MethodSignature_StartSalesRecord) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartRecordPreview:
- if (dwSignature == UIService_MethodSignature_StartRecordPreview) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartSalesVideoRecord:
- if (dwSignature == UIService_MethodSignature_StartSalesVideoRecord) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_AjustVideoPreviewSize:
- if (dwSignature == UIService_MethodSignature_AjustVideoPreviewSize) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopShowVideo:
- if (dwSignature == UIService_MethodSignature_StopShowVideo) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartPlaySalesRecord:
- if (dwSignature == UIService_MethodSignature_StartPlaySalesRecord) {
- bOverlap = true;
- } else {
- Error = Error_MethodSignatureFailed;
- }
- break;
- default:
- Error = Error_MethodNotFound;
- break;
- }
- return Error;
- }
- int CheckMessageSignature(DWORD dwMessageID, DWORD dwSignature)
- {
- ErrorCodeEnum Error = Error_Succeed;
- switch (dwMessageID) {
- case UIService_Method_SetUIState:
- if (dwSignature != UIService_MethodSignature_SetUIState) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SendAgentText:
- if (dwSignature != UIService_MethodSignature_SendAgentText) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SetMenuTree:
- if (dwSignature != UIService_MethodSignature_SetMenuTree) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SetMenuPath:
- if (dwSignature != UIService_MethodSignature_SetMenuPath) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SendFrontSyncData:
- if (dwSignature != UIService_MethodSignature_SendFrontSyncData) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartRecordVideo:
- if (dwSignature != UIService_MethodSignature_StartRecordVideo) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopRecordVideo:
- if (dwSignature != UIService_MethodSignature_StopRecordVideo) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_ShowVideo:
- if (dwSignature != UIService_MethodSignature_ShowVideo) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SaveVideo:
- if (dwSignature != UIService_MethodSignature_SaveVideo) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_DeleteVideo:
- if (dwSignature != UIService_MethodSignature_DeleteVideo) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartPlayVideo:
- if (dwSignature != UIService_MethodSignature_StartPlayVideo) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartPlayAudio:
- if (dwSignature != UIService_MethodSignature_StartPlayAudio) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartPlayImage:
- if (dwSignature != UIService_MethodSignature_StartPlayImage) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopPlayVideo:
- if (dwSignature != UIService_MethodSignature_StopPlayVideo) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopPlayAudio:
- if (dwSignature != UIService_MethodSignature_StopPlayAudio) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopPlayImage:
- if (dwSignature != UIService_MethodSignature_StopPlayImage) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartPhotograph:
- if (dwSignature != UIService_MethodSignature_StartPhotograph) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopPhotograph:
- if (dwSignature != UIService_MethodSignature_StopPhotograph) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SendOperateState:
- if (dwSignature != UIService_MethodSignature_SendOperateState) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_CheckContinuRecord:
- if (dwSignature != UIService_MethodSignature_CheckContinuRecord) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartContinuRecord:
- if (dwSignature != UIService_MethodSignature_StartContinuRecord) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopContinuRecord:
- if (dwSignature != UIService_MethodSignature_StopContinuRecord) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartEchoContinuRecord:
- if (dwSignature != UIService_MethodSignature_StartEchoContinuRecord) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopEchoContinuRecord:
- if (dwSignature != UIService_MethodSignature_StopEchoContinuRecord) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_HideOnlineVideo:
- if (dwSignature != UIService_MethodSignature_HideOnlineVideo) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_ShowOnlineVideo:
- if (dwSignature != UIService_MethodSignature_ShowOnlineVideo) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_AnswerPacket:
- if (dwSignature != UIService_MethodSignature_AnswerPacket) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_GetLocalVideoVolume:
- if (dwSignature != UIService_MethodSignature_GetLocalVideoVolume) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SetLocalVideoVolume:
- if (dwSignature != UIService_MethodSignature_SetLocalVideoVolume) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SendBusinessDesktopCmd:
- if (dwSignature != UIService_MethodSignature_SendBusinessDesktopCmd) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_HideLocalVideo:
- if (dwSignature != UIService_MethodSignature_HideLocalVideo) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_ShowLocalVideo:
- if (dwSignature != UIService_MethodSignature_ShowLocalVideo) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_HidePersonArea:
- if (dwSignature != UIService_MethodSignature_HidePersonArea) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_ShowPersonArea:
- if (dwSignature != UIService_MethodSignature_ShowPersonArea) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_VideoAppendWaterMark:
- if (dwSignature != UIService_MethodSignature_VideoAppendWaterMark) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_GetLocalAudioVolume:
- if (dwSignature != UIService_MethodSignature_GetLocalAudioVolume) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_SetLocalAudioVolume:
- if (dwSignature != UIService_MethodSignature_SetLocalAudioVolume) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartRemoteRecord:
- if (dwSignature != UIService_MethodSignature_StartRemoteRecord) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopRemoteRecord:
- if (dwSignature != UIService_MethodSignature_StopRemoteRecord) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartSalesRecord:
- if (dwSignature != UIService_MethodSignature_StartSalesRecord) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartRecordPreview:
- if (dwSignature != UIService_MethodSignature_StartRecordPreview) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartSalesVideoRecord:
- if (dwSignature != UIService_MethodSignature_StartSalesVideoRecord) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_AjustVideoPreviewSize:
- if (dwSignature != UIService_MethodSignature_AjustVideoPreviewSize) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StopShowVideo:
- if (dwSignature != UIService_MethodSignature_StopShowVideo) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- case UIService_Method_StartPlaySalesRecord:
- if (dwSignature != UIService_MethodSignature_StartPlaySalesRecord) {
- Error = Error_MethodSignatureFailed;
- }
- break;
- default:
- Error = Error_MethodNotFound;
- break;
- }
- return Error;
- }
- virtual void Handle_SetUIState(SpOnewayCallContext<UIService_SetUIState_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_SendAgentText(SpReqAnsContext<UIService_SendAgentText_Req, UIService_SendAgentText_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_SetMenuTree(SpOnewayCallContext<UIService_SetMenuTree_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_SetMenuPath(SpOnewayCallContext<UIService_SetMenuPath_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_SendFrontSyncData(SpOnewayCallContext<UIService_SendFrontSyncData_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StartRecordVideo(SpReqAnsContext<UIService_StartRecordVideo_Req, UIService_StartRecordVideo_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StopRecordVideo(SpReqAnsContext<UIService_StopRecordVideo_Req, UIService_StopRecordVideo_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_ShowVideo(SpReqAnsContext<UIService_ShowVideo_Req, UIService_ShowVideo_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_SaveVideo(SpReqAnsContext<UIService_SaveVideo_Req, UIService_SaveVideo_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_DeleteVideo(SpReqAnsContext<UIService_DeleteVideo_Req, UIService_DeleteVideo_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StartPlayVideo(SpReqAnsContext<UIService_StartPlayVideo_Req, UIService_StartPlayVideo_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StartPlayAudio(SpReqAnsContext<UIService_StartPlayAudio_Req, UIService_StartPlayAudio_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StartPlayImage(SpReqAnsContext<UIService_StartPlayImage_Req, UIService_StartPlayImage_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StopPlayVideo(SpReqAnsContext<UIService_StopPlayVideo_Req, UIService_StopPlayVideo_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StopPlayAudio(SpReqAnsContext<UIService_StopPlayAudio_Req, UIService_StopPlayAudio_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StopPlayImage(SpReqAnsContext<UIService_StopPlayImage_Req, UIService_StopPlayImage_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StartPhotograph(SpOnewayCallContext<UIService_StartPhotograph_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StopPhotograph(SpOnewayCallContext<UIService_StopPhotograph_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_SendOperateState(SpOnewayCallContext<UIService_SendOperateState_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_CheckContinuRecord(SpReqAnsContext<UIService_CheckContinuRecord_Req, UIService_CheckContinuRecord_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StartContinuRecord(SpReqAnsContext<UIService_StartContinuRecord_Req, UIService_StartContinuRecord_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StopContinuRecord(SpReqAnsContext<UIService_StopContinuRecord_Req, UIService_StopContinuRecord_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StartEchoContinuRecord(SpReqAnsContext<UIService_StartEchoContinuRecord_Req, UIService_StartEchoContinuRecord_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StopEchoContinuRecord(SpReqAnsContext<UIService_StopEchoContinuRecord_Req, UIService_StopEchoContinuRecord_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_HideOnlineVideo(SpOnewayCallContext<UIService_HideOnlineVideo_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_ShowOnlineVideo(SpOnewayCallContext<UIService_ShowOnlineVideo_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_AnswerPacket(SpReqAnsContext<UIService_AnswerPacket_Req, UIService_AnswerPacket_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_GetLocalVideoVolume(SpReqAnsContext<UIService_GetLocalVideoVolume_Req, UIService_GetLocalVideoVolume_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_SetLocalVideoVolume(SpReqAnsContext<UIService_SetLocalVideoVolume_Req, UIService_SetLocalVideoVolume_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_SendBusinessDesktopCmd(SpReqAnsContext<UIService_SendBusinessDesktopCmd_Req, UIService_SendBusinessDesktopCmd_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_HideLocalVideo(SpOnewayCallContext<UIService_HideLocalVideo_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_ShowLocalVideo(SpOnewayCallContext<UIService_ShowLocalVideo_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_HidePersonArea(SpOnewayCallContext<UIService_HidePersonArea_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_ShowPersonArea(SpOnewayCallContext<UIService_ShowPersonArea_Info>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_VideoAppendWaterMark(SpReqAnsContext<UIService_VideoAppendWaterMark_Req, UIService_VideoAppendWaterMark_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_GetLocalAudioVolume(SpReqAnsContext<UIService_GetLocalAudioVolume_Req, UIService_GetLocalAudioVolume_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_SetLocalAudioVolume(SpReqAnsContext<UIService_SetLocalAudioVolume_Req, UIService_SetLocalAudioVolume_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StartRemoteRecord(SpReqAnsContext<UIService_StartRemoteRecord_Req, UIService_StartRemoteRecord_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StopRemoteRecord(SpReqAnsContext<UIService_StopRemoteRecord_Req, UIService_StopRemoteRecord_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StartSalesRecord(SpReqAnsContext<UIService_StartSalesRecord_Req, UIService_StartSalesRecord_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StartRecordPreview(SpReqAnsContext<UIService_StartRecordPreview_Req, UIService_StartRecordPreview_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StartSalesVideoRecord(SpReqAnsContext<UIService_StartSalesVideoRecord_Req, UIService_StartSalesVideoRecord_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_AjustVideoPreviewSize(SpReqAnsContext<UIService_AjustVideoPreviewSize_Req, UIService_AjustVideoPreviewSize_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StopShowVideo(SpReqAnsContext<UIService_StopShowVideo_Req, UIService_StopShowVideo_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void Handle_StartPlaySalesRecord(SpReqAnsContext<UIService_StartPlaySalesRecord_Req, UIService_StartPlaySalesRecord_Ans>::Pointer ctx)
- {
- /// override by user
- }
- virtual void OnRequest(CSmartPointer<ITransactionContext> pTransactionContext)
- {
- CAutoBuffer Buf;
- DWORD dwMessageID;
- DWORD dwMessageSignature;
- ErrorCodeEnum Error = pTransactionContext->GetReceiveBuffer(dwMessageID, dwMessageSignature, Buf);
- if (Error == Error_Succeed) {
- #ifdef DEBUG
- assert(CheckMessageSignature(dwMessageID, dwMessageSignature) == Error_Succeed);
- #else
- if (CheckMessageSignature(dwMessageID, dwMessageSignature) != Error_Succeed) {
- pTransactionContext->SendAnswer(Error_MethodSignatureFailed);
- return;
- }
- #endif
- switch (dwMessageID) {
- case UIService_Method_SetUIState:
- {
- SpOnewayCallContext<UIService_SetUIState_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_SetUIState_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_SetUIState(ctx);
- }
- break;
- case UIService_Method_SendAgentText:
- {
- SpReqAnsContext<UIService_SendAgentText_Req,UIService_SendAgentText_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_SendAgentText_Req,UIService_SendAgentText_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_SendAgentText(ctx);
- }
- break;
- case UIService_Method_SetMenuTree:
- {
- SpOnewayCallContext<UIService_SetMenuTree_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_SetMenuTree_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_SetMenuTree(ctx);
- }
- break;
- case UIService_Method_SetMenuPath:
- {
- SpOnewayCallContext<UIService_SetMenuPath_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_SetMenuPath_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_SetMenuPath(ctx);
- }
- break;
- case UIService_Method_SendFrontSyncData:
- {
- SpOnewayCallContext<UIService_SendFrontSyncData_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_SendFrontSyncData_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_SendFrontSyncData(ctx);
- }
- break;
- case UIService_Method_StartRecordVideo:
- {
- SpReqAnsContext<UIService_StartRecordVideo_Req,UIService_StartRecordVideo_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StartRecordVideo_Req,UIService_StartRecordVideo_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StartRecordVideo(ctx);
- }
- break;
- case UIService_Method_StopRecordVideo:
- {
- SpReqAnsContext<UIService_StopRecordVideo_Req,UIService_StopRecordVideo_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StopRecordVideo_Req,UIService_StopRecordVideo_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StopRecordVideo(ctx);
- }
- break;
- case UIService_Method_ShowVideo:
- {
- SpReqAnsContext<UIService_ShowVideo_Req,UIService_ShowVideo_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_ShowVideo_Req,UIService_ShowVideo_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_ShowVideo(ctx);
- }
- break;
- case UIService_Method_SaveVideo:
- {
- SpReqAnsContext<UIService_SaveVideo_Req,UIService_SaveVideo_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_SaveVideo_Req,UIService_SaveVideo_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_SaveVideo(ctx);
- }
- break;
- case UIService_Method_DeleteVideo:
- {
- SpReqAnsContext<UIService_DeleteVideo_Req,UIService_DeleteVideo_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_DeleteVideo_Req,UIService_DeleteVideo_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_DeleteVideo(ctx);
- }
- break;
- case UIService_Method_StartPlayVideo:
- {
- SpReqAnsContext<UIService_StartPlayVideo_Req,UIService_StartPlayVideo_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StartPlayVideo_Req,UIService_StartPlayVideo_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StartPlayVideo(ctx);
- }
- break;
- case UIService_Method_StartPlayAudio:
- {
- SpReqAnsContext<UIService_StartPlayAudio_Req,UIService_StartPlayAudio_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StartPlayAudio_Req,UIService_StartPlayAudio_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StartPlayAudio(ctx);
- }
- break;
- case UIService_Method_StartPlayImage:
- {
- SpReqAnsContext<UIService_StartPlayImage_Req,UIService_StartPlayImage_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StartPlayImage_Req,UIService_StartPlayImage_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StartPlayImage(ctx);
- }
- break;
- case UIService_Method_StopPlayVideo:
- {
- SpReqAnsContext<UIService_StopPlayVideo_Req,UIService_StopPlayVideo_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StopPlayVideo_Req,UIService_StopPlayVideo_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StopPlayVideo(ctx);
- }
- break;
- case UIService_Method_StopPlayAudio:
- {
- SpReqAnsContext<UIService_StopPlayAudio_Req,UIService_StopPlayAudio_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StopPlayAudio_Req,UIService_StopPlayAudio_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StopPlayAudio(ctx);
- }
- break;
- case UIService_Method_StopPlayImage:
- {
- SpReqAnsContext<UIService_StopPlayImage_Req,UIService_StopPlayImage_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StopPlayImage_Req,UIService_StopPlayImage_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StopPlayImage(ctx);
- }
- break;
- case UIService_Method_StartPhotograph:
- {
- SpOnewayCallContext<UIService_StartPhotograph_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_StartPhotograph_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_StartPhotograph(ctx);
- }
- break;
- case UIService_Method_StopPhotograph:
- {
- SpOnewayCallContext<UIService_StopPhotograph_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_StopPhotograph_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_StopPhotograph(ctx);
- }
- break;
- case UIService_Method_SendOperateState:
- {
- SpOnewayCallContext<UIService_SendOperateState_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_SendOperateState_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_SendOperateState(ctx);
- }
- break;
- case UIService_Method_CheckContinuRecord:
- {
- SpReqAnsContext<UIService_CheckContinuRecord_Req,UIService_CheckContinuRecord_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_CheckContinuRecord_Req,UIService_CheckContinuRecord_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_CheckContinuRecord(ctx);
- }
- break;
- case UIService_Method_StartContinuRecord:
- {
- SpReqAnsContext<UIService_StartContinuRecord_Req,UIService_StartContinuRecord_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StartContinuRecord_Req,UIService_StartContinuRecord_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StartContinuRecord(ctx);
- }
- break;
- case UIService_Method_StopContinuRecord:
- {
- SpReqAnsContext<UIService_StopContinuRecord_Req,UIService_StopContinuRecord_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StopContinuRecord_Req,UIService_StopContinuRecord_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StopContinuRecord(ctx);
- }
- break;
- case UIService_Method_StartEchoContinuRecord:
- {
- SpReqAnsContext<UIService_StartEchoContinuRecord_Req,UIService_StartEchoContinuRecord_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StartEchoContinuRecord_Req,UIService_StartEchoContinuRecord_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StartEchoContinuRecord(ctx);
- }
- break;
- case UIService_Method_StopEchoContinuRecord:
- {
- SpReqAnsContext<UIService_StopEchoContinuRecord_Req,UIService_StopEchoContinuRecord_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StopEchoContinuRecord_Req,UIService_StopEchoContinuRecord_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StopEchoContinuRecord(ctx);
- }
- break;
- case UIService_Method_HideOnlineVideo:
- {
- SpOnewayCallContext<UIService_HideOnlineVideo_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_HideOnlineVideo_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_HideOnlineVideo(ctx);
- }
- break;
- case UIService_Method_ShowOnlineVideo:
- {
- SpOnewayCallContext<UIService_ShowOnlineVideo_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_ShowOnlineVideo_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_ShowOnlineVideo(ctx);
- }
- break;
- case UIService_Method_AnswerPacket:
- {
- SpReqAnsContext<UIService_AnswerPacket_Req,UIService_AnswerPacket_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_AnswerPacket_Req,UIService_AnswerPacket_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_AnswerPacket(ctx);
- }
- break;
- case UIService_Method_GetLocalVideoVolume:
- {
- SpReqAnsContext<UIService_GetLocalVideoVolume_Req,UIService_GetLocalVideoVolume_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_GetLocalVideoVolume_Req,UIService_GetLocalVideoVolume_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_GetLocalVideoVolume(ctx);
- }
- break;
- case UIService_Method_SetLocalVideoVolume:
- {
- SpReqAnsContext<UIService_SetLocalVideoVolume_Req,UIService_SetLocalVideoVolume_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_SetLocalVideoVolume_Req,UIService_SetLocalVideoVolume_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_SetLocalVideoVolume(ctx);
- }
- break;
- case UIService_Method_SendBusinessDesktopCmd:
- {
- SpReqAnsContext<UIService_SendBusinessDesktopCmd_Req,UIService_SendBusinessDesktopCmd_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_SendBusinessDesktopCmd_Req,UIService_SendBusinessDesktopCmd_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_SendBusinessDesktopCmd(ctx);
- }
- break;
- case UIService_Method_HideLocalVideo:
- {
- SpOnewayCallContext<UIService_HideLocalVideo_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_HideLocalVideo_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_HideLocalVideo(ctx);
- }
- break;
- case UIService_Method_ShowLocalVideo:
- {
- SpOnewayCallContext<UIService_ShowLocalVideo_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_ShowLocalVideo_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_ShowLocalVideo(ctx);
- }
- break;
- case UIService_Method_HidePersonArea:
- {
- SpOnewayCallContext<UIService_HidePersonArea_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_HidePersonArea_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_HidePersonArea(ctx);
- }
- break;
- case UIService_Method_ShowPersonArea:
- {
- SpOnewayCallContext<UIService_ShowPersonArea_Info>::Pointer ctx;
- ctx.Attach(new SpOnewayCallContext<UIService_ShowPersonArea_Info>());
- SpBuffer2Object(Buf, ctx->Info);
- Handle_ShowPersonArea(ctx);
- }
- break;
- case UIService_Method_VideoAppendWaterMark:
- {
- SpReqAnsContext<UIService_VideoAppendWaterMark_Req,UIService_VideoAppendWaterMark_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_VideoAppendWaterMark_Req,UIService_VideoAppendWaterMark_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_VideoAppendWaterMark(ctx);
- }
- break;
- case UIService_Method_GetLocalAudioVolume:
- {
- SpReqAnsContext<UIService_GetLocalAudioVolume_Req,UIService_GetLocalAudioVolume_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_GetLocalAudioVolume_Req,UIService_GetLocalAudioVolume_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_GetLocalAudioVolume(ctx);
- }
- break;
- case UIService_Method_SetLocalAudioVolume:
- {
- SpReqAnsContext<UIService_SetLocalAudioVolume_Req,UIService_SetLocalAudioVolume_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_SetLocalAudioVolume_Req,UIService_SetLocalAudioVolume_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_SetLocalAudioVolume(ctx);
- }
- break;
- case UIService_Method_StartRemoteRecord:
- {
- SpReqAnsContext<UIService_StartRemoteRecord_Req,UIService_StartRemoteRecord_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StartRemoteRecord_Req,UIService_StartRemoteRecord_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StartRemoteRecord(ctx);
- }
- break;
- case UIService_Method_StopRemoteRecord:
- {
- SpReqAnsContext<UIService_StopRemoteRecord_Req,UIService_StopRemoteRecord_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StopRemoteRecord_Req,UIService_StopRemoteRecord_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StopRemoteRecord(ctx);
- }
- break;
- case UIService_Method_StartSalesRecord:
- {
- SpReqAnsContext<UIService_StartSalesRecord_Req,UIService_StartSalesRecord_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StartSalesRecord_Req,UIService_StartSalesRecord_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StartSalesRecord(ctx);
- }
- break;
- case UIService_Method_StartRecordPreview:
- {
- SpReqAnsContext<UIService_StartRecordPreview_Req,UIService_StartRecordPreview_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StartRecordPreview_Req,UIService_StartRecordPreview_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StartRecordPreview(ctx);
- }
- break;
- case UIService_Method_StartSalesVideoRecord:
- {
- SpReqAnsContext<UIService_StartSalesVideoRecord_Req,UIService_StartSalesVideoRecord_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StartSalesVideoRecord_Req,UIService_StartSalesVideoRecord_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StartSalesVideoRecord(ctx);
- }
- break;
- case UIService_Method_AjustVideoPreviewSize:
- {
- SpReqAnsContext<UIService_AjustVideoPreviewSize_Req,UIService_AjustVideoPreviewSize_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_AjustVideoPreviewSize_Req,UIService_AjustVideoPreviewSize_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_AjustVideoPreviewSize(ctx);
- }
- break;
- case UIService_Method_StopShowVideo:
- {
- SpReqAnsContext<UIService_StopShowVideo_Req,UIService_StopShowVideo_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StopShowVideo_Req,UIService_StopShowVideo_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StopShowVideo(ctx);
- }
- break;
- case UIService_Method_StartPlaySalesRecord:
- {
- SpReqAnsContext<UIService_StartPlaySalesRecord_Req,UIService_StartPlaySalesRecord_Ans>::Pointer ctx;
- ctx.Attach(new SpReqAnsContext<UIService_StartPlaySalesRecord_Req,UIService_StartPlaySalesRecord_Ans>(pTransactionContext));
- SpBuffer2Object(Buf, ctx->Req);
- Handle_StartPlaySalesRecord(ctx);
- }
- break;
- default:
- assert(0);
- break;
- }
-
- } else {
- pTransactionContext->SendAnswer(Error);
- }
- }
- };
- ///////////////////////////
- } // namespace InteractiveControl
- #endif // __INTERACTIVECONTROL_SERVER_G_H
|