phonestatecallheldlocally.cpp

来自「基于sipfoundy 公司开发的sipx协议API」· C++ 代码 · 共 59 行

CPP
59
字号
//// Copyright (C) 2004, 2005 Pingtel Corp.// //// $$////////////////////////////////////////////////////////////////////////// SYSTEM INCLUDES// APPLICATION INCLUDES#include "../stdwx.h"#include "../sipXmgr.h"#include "PhoneStateCallHeldLocally.h"#include "PhoneStateConnected.h"#include "PhoneStateIdle.h"#include "PhoneStateDisconnectRequested.h"#include "../sipXezPhoneApp.h"// EXTERNAL FUNCTIONS// EXTERNAL VARIABLESextern sipXezPhoneApp* thePhoneApp;// CONSTANTS// STATIC VARIABLE INITIALIZATIONS// MACRO CALLSPhoneStateCallHeldLocally::PhoneStateCallHeldLocally(){}PhoneStateCallHeldLocally::~PhoneStateCallHeldLocally(void){}PhoneState* PhoneStateCallHeldLocally::OnFlashButton(){   return (new PhoneStateDisconnectRequested());}PhoneState* PhoneStateCallHeldLocally::OnDisconnected(){   sipXmgr::getInstance().disconnect();   return (new PhoneStateIdle());}PhoneState* PhoneStateCallHeldLocally::OnHoldButton(){    sipXmgr::getInstance().unholdCurrentCall();    return (new PhoneStateConnected());    }PhoneState* PhoneStateCallHeldLocally::Execute(){    sipXmgr::getInstance().holdCurrentCall();    thePhoneApp->setStatusMessage("Call On Local Hold.");      return this;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?