phonestatedisconnectrequested.cpp
来自「基于sipfoundy 公司开发的sipx协议API」· C++ 代码 · 共 47 行
CPP
47 行
//// Copyright (C) 2004, 2005 Pingtel Corp.// //// $$////////////////////////////////////////////////////////////////////////// SYSTEM INCLUDES// APPLICATION INCLUDES#include "../stdwx.h"#include "../sipXmgr.h"#include "PhoneStateDisconnectRequested.h"#include "PhoneStateIdle.h"#include "PhoneStateMachine.h"// EXTERNAL FUNCTIONS// EXTERNAL VARIABLES// CONSTANTS// STATIC VARIABLE INITIALIZATIONS// MACRO CALLSPhoneStateDisconnectRequested::PhoneStateDisconnectRequested(){}PhoneStateDisconnectRequested::~PhoneStateDisconnectRequested(void){}PhoneState* PhoneStateDisconnectRequested::OnFlashButton(){ // try to disconnect again, then force the state to IDLE sipXmgr::getInstance().disconnect(); // SHOULD cause the DISCONNECT sipXtapiEvent to occur return (new PhoneStateIdle()); }PhoneState* PhoneStateDisconnectRequested::Execute(){ sipXmgr::getInstance().disconnect(); // should cause the DISCONNECT sipXtapiEvent to occur // now, force a transition to the Idle state PhoneStateMachine::getInstance().setState(new PhoneStateIdle()); return this;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?