⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phonestateidle.cpp

📁 基于sipfoundy 公司开发的sipx协议API
💻 CPP
字号:
//// Copyright (C) 2004, 2005 Pingtel Corp.// //// $$////////////////////////////////////////////////////////////////////////// SYSTEM INCLUDES// APPLICATION INCLUDES#include "../stdwx.h"#include "../sipXmgr.h"#include "PhoneStateIdle.h"#include "PhoneStateDialing.h"#include "PhoneStateRinging.h"#include "../sipXezPhoneApp.h"// EXTERNAL FUNCTIONS// EXTERNAL VARIABLESextern sipXezPhoneApp* thePhoneApp;// CONSTANTS// STATIC VARIABLE INITIALIZATIONS// MACRO CALLSPhoneStateIdle::PhoneStateIdle(void){}PhoneStateIdle::~PhoneStateIdle(void){}PhoneState* PhoneStateIdle::OnDial(const wxString number){   PhoneState* nextState = new PhoneStateDialing(number);      return nextState;}PhoneState* PhoneStateIdle::OnRinging(SIPX_CALL hCall){   PhoneState* nextState = new PhoneStateRinging(hCall);      return nextState;}PhoneState* PhoneStateIdle::Execute(){   thePhoneApp->setStatusMessage("Idle.");   return this;}PhoneState* PhoneStateIdle::OnOffer(SIPX_CALL hCall){    SIPX_VIDEO_DISPLAY display;        display.handle = sipXmgr::getInstance().getVideoWindow();    display.type = SIPX_WINDOW_HANDLE_TYPE;        sipxCallAccept(hCall, &display);                             // just accept the call                            // We don't need to explicitly change state,                            // because sipXtapi should now send us                            // an ALERTING event, which will cause a state                            // change.                                                        return this;}

⌨️ 快捷键说明

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