#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; case UIService_Method_SendH5SyncData: if (dwSignature == UIService_MethodSignature_SendH5SyncData) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetHandfreeOutVolume: if (dwSignature == UIService_MethodSignature_GetHandfreeOutVolume) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_SetHandfreeOutVolume: if (dwSignature == UIService_MethodSignature_SetHandfreeOutVolume) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetPickupOutVolume: if (dwSignature == UIService_MethodSignature_GetPickupOutVolume) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_SetPickupOutVolume: if (dwSignature == UIService_MethodSignature_SetPickupOutVolume) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_StartPlayNotice: if (dwSignature == UIService_MethodSignature_StartPlayNotice) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_StopPlayNotice: if (dwSignature == UIService_MethodSignature_StopPlayNotice) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetRecordMode: if (dwSignature == UIService_MethodSignature_GetRecordMode) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_StartTransactionRecord: if (dwSignature == UIService_MethodSignature_StartTransactionRecord) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_StopTransactionRecord: if (dwSignature == UIService_MethodSignature_StopTransactionRecord) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetCallState: if (dwSignature == UIService_MethodSignature_GetCallState) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_HangupCall: if (dwSignature == UIService_MethodSignature_HangupCall) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetTransactionRecordState: if (dwSignature == UIService_MethodSignature_GetTransactionRecordState) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetHandfreeInVolume: if (dwSignature == UIService_MethodSignature_GetHandfreeInVolume) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_SetHandfreeInVolume: if (dwSignature == UIService_MethodSignature_SetHandfreeInVolume) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetPickupInVolume: if (dwSignature == UIService_MethodSignature_GetPickupInVolume) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_SetPickupInVolume: if (dwSignature == UIService_MethodSignature_SetPickupInVolume) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetAudioInDevices: if (dwSignature == UIService_MethodSignature_GetAudioInDevices) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetAudioOutDevices: if (dwSignature == UIService_MethodSignature_GetAudioOutDevices) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetCameraInfo: if (dwSignature == UIService_MethodSignature_GetCameraInfo) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetMediaDeviceInfo: if (dwSignature == UIService_MethodSignature_GetMediaDeviceInfo) { bOverlap = true; } else { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetPickUpStatus: if (dwSignature == UIService_MethodSignature_GetPickUpStatus) { 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; case UIService_Method_SendH5SyncData: if (dwSignature != UIService_MethodSignature_SendH5SyncData) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetHandfreeOutVolume: if (dwSignature != UIService_MethodSignature_GetHandfreeOutVolume) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_SetHandfreeOutVolume: if (dwSignature != UIService_MethodSignature_SetHandfreeOutVolume) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetPickupOutVolume: if (dwSignature != UIService_MethodSignature_GetPickupOutVolume) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_SetPickupOutVolume: if (dwSignature != UIService_MethodSignature_SetPickupOutVolume) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_StartPlayNotice: if (dwSignature != UIService_MethodSignature_StartPlayNotice) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_StopPlayNotice: if (dwSignature != UIService_MethodSignature_StopPlayNotice) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetRecordMode: if (dwSignature != UIService_MethodSignature_GetRecordMode) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_StartTransactionRecord: if (dwSignature != UIService_MethodSignature_StartTransactionRecord) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_StopTransactionRecord: if (dwSignature != UIService_MethodSignature_StopTransactionRecord) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetCallState: if (dwSignature != UIService_MethodSignature_GetCallState) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_HangupCall: if (dwSignature != UIService_MethodSignature_HangupCall) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetTransactionRecordState: if (dwSignature != UIService_MethodSignature_GetTransactionRecordState) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetHandfreeInVolume: if (dwSignature != UIService_MethodSignature_GetHandfreeInVolume) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_SetHandfreeInVolume: if (dwSignature != UIService_MethodSignature_SetHandfreeInVolume) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetPickupInVolume: if (dwSignature != UIService_MethodSignature_GetPickupInVolume) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_SetPickupInVolume: if (dwSignature != UIService_MethodSignature_SetPickupInVolume) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetAudioInDevices: if (dwSignature != UIService_MethodSignature_GetAudioInDevices) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetAudioOutDevices: if (dwSignature != UIService_MethodSignature_GetAudioOutDevices) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetCameraInfo: if (dwSignature != UIService_MethodSignature_GetCameraInfo) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetMediaDeviceInfo: if (dwSignature != UIService_MethodSignature_GetMediaDeviceInfo) { Error = Error_MethodSignatureFailed; } break; case UIService_Method_GetPickUpStatus: if (dwSignature != UIService_MethodSignature_GetPickUpStatus) { Error = Error_MethodSignatureFailed; } break; default: Error = Error_MethodNotFound; break; } return Error; } virtual void Handle_SetUIState(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_SendAgentText(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_SetMenuTree(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_SetMenuPath(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_SendFrontSyncData(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_StartRecordVideo(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StopRecordVideo(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_ShowVideo(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_SaveVideo(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_DeleteVideo(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartPlayVideo(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartPlayAudio(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartPlayImage(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StopPlayVideo(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StopPlayAudio(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StopPlayImage(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartPhotograph(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_StopPhotograph(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_SendOperateState(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_CheckContinuRecord(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartContinuRecord(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StopContinuRecord(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartEchoContinuRecord(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StopEchoContinuRecord(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_HideOnlineVideo(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_ShowOnlineVideo(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_AnswerPacket(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_GetLocalVideoVolume(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_SetLocalVideoVolume(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_SendBusinessDesktopCmd(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_HideLocalVideo(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_ShowLocalVideo(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_HidePersonArea(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_ShowPersonArea(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_VideoAppendWaterMark(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_GetLocalAudioVolume(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_SetLocalAudioVolume(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartRemoteRecord(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StopRemoteRecord(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartSalesRecord(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartRecordPreview(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartSalesVideoRecord(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_AjustVideoPreviewSize(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StopShowVideo(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartPlaySalesRecord(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_SendH5SyncData(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_GetHandfreeOutVolume(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_SetHandfreeOutVolume(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_GetPickupOutVolume(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_SetPickupOutVolume(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartPlayNotice(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StopPlayNotice(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_GetRecordMode(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StartTransactionRecord(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_StopTransactionRecord(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_GetCallState(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_HangupCall(SpOnewayCallContext::Pointer ctx) { /// override by user } virtual void Handle_GetTransactionRecordState(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_GetHandfreeInVolume(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_SetHandfreeInVolume(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_GetPickupInVolume(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_SetPickupInVolume(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_GetAudioInDevices(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_GetAudioOutDevices(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_GetCameraInfo(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_GetMediaDeviceInfo(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void Handle_GetPickUpStatus(SpReqAnsContext::Pointer ctx) { /// override by user } virtual void OnRequest(CSmartPointer 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::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SetUIState(ctx); } break; case UIService_Method_SendAgentText: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SendAgentText(ctx); } break; case UIService_Method_SetMenuTree: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SetMenuTree(ctx); } break; case UIService_Method_SetMenuPath: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SetMenuPath(ctx); } break; case UIService_Method_SendFrontSyncData: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SendFrontSyncData(ctx); } break; case UIService_Method_StartRecordVideo: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartRecordVideo(ctx); } break; case UIService_Method_StopRecordVideo: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StopRecordVideo(ctx); } break; case UIService_Method_ShowVideo: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_ShowVideo(ctx); } break; case UIService_Method_SaveVideo: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SaveVideo(ctx); } break; case UIService_Method_DeleteVideo: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_DeleteVideo(ctx); } break; case UIService_Method_StartPlayVideo: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartPlayVideo(ctx); } break; case UIService_Method_StartPlayAudio: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartPlayAudio(ctx); } break; case UIService_Method_StartPlayImage: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartPlayImage(ctx); } break; case UIService_Method_StopPlayVideo: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StopPlayVideo(ctx); } break; case UIService_Method_StopPlayAudio: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StopPlayAudio(ctx); } break; case UIService_Method_StopPlayImage: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StopPlayImage(ctx); } break; case UIService_Method_StartPhotograph: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartPhotograph(ctx); } break; case UIService_Method_StopPhotograph: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StopPhotograph(ctx); } break; case UIService_Method_SendOperateState: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SendOperateState(ctx); } break; case UIService_Method_CheckContinuRecord: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_CheckContinuRecord(ctx); } break; case UIService_Method_StartContinuRecord: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartContinuRecord(ctx); } break; case UIService_Method_StopContinuRecord: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StopContinuRecord(ctx); } break; case UIService_Method_StartEchoContinuRecord: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartEchoContinuRecord(ctx); } break; case UIService_Method_StopEchoContinuRecord: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StopEchoContinuRecord(ctx); } break; case UIService_Method_HideOnlineVideo: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_HideOnlineVideo(ctx); } break; case UIService_Method_ShowOnlineVideo: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_ShowOnlineVideo(ctx); } break; case UIService_Method_AnswerPacket: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_AnswerPacket(ctx); } break; case UIService_Method_GetLocalVideoVolume: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetLocalVideoVolume(ctx); } break; case UIService_Method_SetLocalVideoVolume: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SetLocalVideoVolume(ctx); } break; case UIService_Method_SendBusinessDesktopCmd: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SendBusinessDesktopCmd(ctx); } break; case UIService_Method_HideLocalVideo: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_HideLocalVideo(ctx); } break; case UIService_Method_ShowLocalVideo: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_ShowLocalVideo(ctx); } break; case UIService_Method_HidePersonArea: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_HidePersonArea(ctx); } break; case UIService_Method_ShowPersonArea: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_ShowPersonArea(ctx); } break; case UIService_Method_VideoAppendWaterMark: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_VideoAppendWaterMark(ctx); } break; case UIService_Method_GetLocalAudioVolume: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetLocalAudioVolume(ctx); } break; case UIService_Method_SetLocalAudioVolume: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SetLocalAudioVolume(ctx); } break; case UIService_Method_StartRemoteRecord: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartRemoteRecord(ctx); } break; case UIService_Method_StopRemoteRecord: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StopRemoteRecord(ctx); } break; case UIService_Method_StartSalesRecord: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartSalesRecord(ctx); } break; case UIService_Method_StartRecordPreview: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartRecordPreview(ctx); } break; case UIService_Method_StartSalesVideoRecord: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartSalesVideoRecord(ctx); } break; case UIService_Method_AjustVideoPreviewSize: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_AjustVideoPreviewSize(ctx); } break; case UIService_Method_StopShowVideo: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StopShowVideo(ctx); } break; case UIService_Method_StartPlaySalesRecord: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartPlaySalesRecord(ctx); } break; case UIService_Method_SendH5SyncData: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SendH5SyncData(ctx); } break; case UIService_Method_GetHandfreeOutVolume: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetHandfreeOutVolume(ctx); } break; case UIService_Method_SetHandfreeOutVolume: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SetHandfreeOutVolume(ctx); } break; case UIService_Method_GetPickupOutVolume: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetPickupOutVolume(ctx); } break; case UIService_Method_SetPickupOutVolume: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SetPickupOutVolume(ctx); } break; case UIService_Method_StartPlayNotice: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartPlayNotice(ctx); } break; case UIService_Method_StopPlayNotice: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StopPlayNotice(ctx); } break; case UIService_Method_GetRecordMode: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetRecordMode(ctx); } break; case UIService_Method_StartTransactionRecord: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StartTransactionRecord(ctx); } break; case UIService_Method_StopTransactionRecord: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_StopTransactionRecord(ctx); } break; case UIService_Method_GetCallState: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetCallState(ctx); } break; case UIService_Method_HangupCall: { SpOnewayCallContext::Pointer ctx; ctx.Attach(new SpOnewayCallContext()); SpBuffer2Object(Buf, ctx->Info); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_HangupCall(ctx); } break; case UIService_Method_GetTransactionRecordState: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetTransactionRecordState(ctx); } break; case UIService_Method_GetHandfreeInVolume: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetHandfreeInVolume(ctx); } break; case UIService_Method_SetHandfreeInVolume: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SetHandfreeInVolume(ctx); } break; case UIService_Method_GetPickupInVolume: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetPickupInVolume(ctx); } break; case UIService_Method_SetPickupInVolume: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_SetPickupInVolume(ctx); } break; case UIService_Method_GetAudioInDevices: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetAudioInDevices(ctx); } break; case UIService_Method_GetAudioOutDevices: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetAudioOutDevices(ctx); } break; case UIService_Method_GetCameraInfo: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetCameraInfo(ctx); } break; case UIService_Method_GetMediaDeviceInfo: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetMediaDeviceInfo(ctx); } break; case UIService_Method_GetPickUpStatus: { SpReqAnsContext::Pointer ctx; ctx.Attach(new SpReqAnsContext(pTransactionContext)); SpBuffer2Object(Buf, ctx->Req); pTransactionContext->GetLinkContext(ctx->link); EntityResource::setLink(ctx->link); Handle_GetPickUpStatus(ctx); } break; default: assert(0); break; } } else { pTransactionContext->SendAnswer(Error); } } }; /////////////////////////// } // namespace InteractiveControl #endif // __INTERACTIVECONTROL_SERVER_G_H