📄 command.cpp
字号:
theApp.m_bCessionOn = FALSE;
DestroyWindow ();
::PostQuitMessage (0);
return;
}
void CMainWind::OnDestroy()
{
CFrameWnd::OnDestroy();
OnAbortstream ();
theApp.m_bCessionOn = FALSE;
}
void CMainWind::SetMyDeviceID (CString StrDeviceID)
{
if (myDeviceId == "")
myDeviceId = StrDeviceID;
}
void CMainWind::SetHeldCallID (long callID)
{
heldCallID.Format("%ld", callID);
}
void CMainWind::SetMainCallID (long callID)
{
mainCallID.Format("%ld", callID);
}
void CMainWind::OnRouteregister() {
CSTARouteRegisterReq();
}
void CMainWind::OnUpdateRouteregister(CCmdUI* pCmdUI) {
pCmdUI->Enable (theApp.m_bPhoneOn);
}
void CMainWind::OnRouteregistercancel() {
CSTARouteRegisterCancel();
}
void CMainWind::OnUpdateRouteregistercancel(CCmdUI* pCmdUI) {
pCmdUI->Enable (theApp.m_bPhoneOn);
}
void CMainWind::OnRouteselect() {
CSTARouteSelect();
}
void CMainWind::OnUpdateRouteselect(CCmdUI* pCmdUI) {
pCmdUI->Enable (theApp.m_bPhoneOn);
}
void CMainWind::OnRouteend() {
CSTARouteEnd();
}
void CMainWind::OnUpdateRouteend(CCmdUI* pCmdUI) {
pCmdUI->Enable (theApp.m_bPhoneOn);
}
// Added by G.L. 23 March 98
void CMainWind::OnSendDTMFTones()
{
CstaSendDTMFTones();
}
void CMainWind::OnUpdateSendDTMFTones(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnSingleStepConference()
{
CstaSingleStepConference ();
}
void CMainWind::OnUpdateSingleStepConference(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnStop()
{
CstaStop();
}
void CMainWind::OnUpdateStop(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnRecordMessage()
{
CstaRecordMessage();
}
void CMainWind::OnUpdateRecordMessage(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnConsultationCallV2()
{
CstaConsultationCallV2 ();
return;
}
void CMainWind::OnUpdateConsultationCallV2(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnEscapeserviceint()
{
CstaEscapeServiceInter ();
return;
}
void CMainWind::OnUpdateEscapeserviceint(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnEscapesetdeviceinservice()
{
CstaEscapeSetDeviceInService();
return;
}
void CMainWind::OnUpdateEscapesetdeviceinservice(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnAssociatedata()
{
CstaAssociateData();
return;
}
void CMainWind::OnUpdateAssociatedata(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnEscapehostinformation()
{
CstaHostIdentification();
return;
}
void CMainWind::OnUpdateEscapehostinformation(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnSuperAssistRequest()
{
CstaSupervisorAssistRequest();
return;
}
void CMainWind::OnUpdateSuperAssistRequest(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnSuperAssistCancel()
{
CstaSupervisorAssistCancel();
return;
}
void CMainWind::OnUpdateSuperAssistCancel(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnAutoKeepAlive()
{
AutoKeepalive();
return;
}
void CMainWind::OnUpdateAutoKeepAlive(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck (m_bAutoKeepAlive);
return;
}
void CMainWind::OnEscapeOtherOperation()
{
CstaEscOtherOperation();
return;
}
void CMainWind::OnUpdateEscapeOtherOperation(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnServiceRegisterRequest()
{
CstaEcsServiceRegisterRequest();
return;
}
void CMainWind::OnUpdateServiceRegisterRequest(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnServiceRegisterCancel()
{
CstaEcsServiceRegisterCancel();
return;
}
void CMainWind::OnUpdateServiceRegisterCancel(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
/*RA CDHva54067+*/
/*void CMainWind::OnSetDate()
{
CstaEcsSetDateAndTime();
return;
}
void CMainWind::OnUpdateSetDate(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}*/
/*RA CDHva54067-*/
void CMainWind::OnStartListening()
{
CstaEcsStartListening();
return;
}
void CMainWind::OnUpdateStartListening(CCmdUI* pCmdUI)
{
/*RA CDHva54067+*/
#ifdef PREMIUM
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
#endif
/*RA CDHva54067-*/
pCmdUI->Enable (FALSE);
}
void CMainWind::OnStopListening()
{
CstaEcsStopListening();
return;
}
void CMainWind::OnUpdateStopListening(CCmdUI* pCmdUI)
{
/*RA CDHva54067+*/
#ifdef PREMIUM
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
#endif
/*RA CDHva54067-*/
pCmdUI->Enable (FALSE);
}
void CMainWind::OnBipTone()
{
CstaEcsBipTone();
return;
}
void CMainWind::OnUpdateBipTone(CCmdUI* pCmdUI)
{
/*RA CDHva54067+*/
#ifdef PREMIUM
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
#endif
/*RA CDHva54067-*/
pCmdUI->Enable (FALSE);
}
void CMainWind::OnCctreatmentRequest()
{
CctreatmentRequest();
return;
}
void CMainWind::OnUpdateCctreatmentRequest(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnPermanentListening()
{
CcPermanentListening();
return;
}
void CMainWind::OnUpdatePermanentListening(CCmdUI* pCmdUI)
{
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
pCmdUI->Enable (FALSE);
}
void CMainWind::OnParkcall()
{
CstaParkCall();
return;
}
void CMainWind::OnUpdateParkcall(CCmdUI* pCmdUI)
{
pCmdUI->Enable(theApp.m_bPhoneOn);
return;
}
void CMainWind::OnGeneratetone()
{
CstaGenerateTone();
return;
}
void CMainWind::OnUpdateGeneratetone(CCmdUI* pCmdUI)
{
#ifdef PREMIUM
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
#endif
pCmdUI->Enable (FALSE);
}
void CMainWind::OnCanceltone()
{
CstaCancelTone();
return;
}
void CMainWind::OnUpdateCanceltone(CCmdUI* pCmdUI)
{
#ifdef PREMIUM
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
#endif
pCmdUI->Enable (FALSE);
}
void CMainWind::OnStartdatacoll()
{
CstaStartDataCollection();
return;
}
void CMainWind::OnUpdateStartdatacoll(CCmdUI* pCmdUI)
{
#ifdef PREMIUM
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
#endif
pCmdUI->Enable (FALSE);
}
void CMainWind::OnStopdatacoll()
{
CstaStopDataCollection();
}
void CMainWind::OnUpdateStopdatacoll(CCmdUI* pCmdUI)
{
#ifdef PREMIUM
if (theApp.my_streamType == ST_CSTA2)
pCmdUI->Enable (theApp.m_bPhoneOn);
else
#endif
pCmdUI->Enable (FALSE);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -