亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? minisipmainwindowwidget.cxx

?? 這是一個(gè)開源碼的sip用戶代理 寫的都很清楚是用C++語(yǔ)言開發(fā)的 對(duì)于研究sip協(xié)議的朋友絕對(duì)是有很好的參考價(jià)值
?? CXX
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU Library General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *//* Copyright (C) 2004  * * Authors: Erik Eliasson <eliasson@it.kth.se> *          Johan Bilien <jobi@via.ecp.fr>*/#include"MinisipMainWindowWidget.h"#include"qtguistarter.h"#include<qapplication.h>#include<qvbox.h>#include<qpopupmenu.h>#if (QT_VERSION > 0x030000)#include<qkeysequence.h>#endif#include<qmainwindow.h>#include<qstatusbar.h>#include<qpushbutton.h>#include<qhbox.h>#include<qlayout.h>#include<qlineedit.h>#include<qheader.h>#include<qlistview.h>#include<qmenubar.h>#include<qevent.h>#include<qmessagebox.h>//#include"../../../sip/state_machines/SMCommand.h"#ifdef OPIE#include <qcopchannel_qws.h>#endif#include"SettingsDialog.h"#include<libmutil/itoa.h>#include<libmutil/trim.h>#include<fstream>#include<libmutil/XMLParser.h>#include<libmnetutil/IP4ServerSocket.h>#include<libmnetutil/TCPSocket.h>#include<libmsip/SipMessageTransport.h>#include<libmsip/SipCommandString.h>#include"../../../sip/DefaultDialogHandler.h"MinisipMainWindowWidget::MinisipMainWindowWidget(TimeoutProvider<string> *tp,		QWidget *parent, 		const char *name ): QWidget( parent, name ),			callboxlayout(), 			settingsDialog(this), #if (QT_VERSION < 0x030000)			tabCount(1),#endif			tabs(this),			phonebooktabw(&tabs), 			phonebookvlayout(&phonebooktabw), 			text(&phonebooktabw), 			vlayout( this ), 			statusBar(NULL),			timeoutProvider(tp){		setMinimumSize( 180, 200 );	setCaption("Minisip");	callboxlayout.addWidget(&text);		QPushButton *call = new QPushButton( "Call", &phonebooktabw, "call" );	callboxlayout.addWidget(call);		listView = new QListView(&phonebooktabw);	listView->setAllColumnsShowFocus(true);	listView->setRootIsDecorated(true);	listView->header()->hide();	listView->addColumn("Phone books");#if (QT_VERSION > 0x030000)	listView->setResizeMode(QListView::AllColumns);#endif//	this->addWidget(&tabs);//	phonebookvlayout.addWidget(&tabs);		//vlayout.addLayout(&bottombox);        phonebookvlayout.addWidget(listView);        phonebookvlayout.addLayout(&callboxlayout);	        	//tabs.insertTab(listView, "Phone books"/*title.c_str()*/,0);        	vlayout.addWidget(&tabs);                tabs.insertTab(&phonebooktabw, "Phone books",0);	                tabs.showPage(&phonebooktabw);		connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));	connect(call, SIGNAL(clicked()), this, SLOT(callPressed()));	connect(&text, SIGNAL(returnPressed()), this, SLOT(callPressed()));	connect(listView, SIGNAL(selectionChanged()), this, SLOT(phoneBookSelect()));	connect(listView, SIGNAL(doubleClicked(QListViewItem *, const QPoint &, int)), this, SLOT(userDoubleClicked(QListViewItem *, const QPoint &, int)));/*	list<string> phonebooks = sipphone->getPhoneConfig()->phonebooks;	for (list<string>::iterator i=phonebooks.begin(); i!=phonebooks.end(); i++){			addPhoneBook(*i);	}*/	#ifdef MINISIP_AUTOCALL		if (sipphoneconfig->autoCall.size()>0)		tp->request_timeout(5000,this, "autocall");#endif#ifdef OPIE	setCaption("minisip");#ifndef QT_NO_COP	QPEApplication::grabKeyboard();#endif#endif	#ifdef OPIE	IP4ServerSocket *update_serversock = new IP4ServerSocket(5034,1);	update_socket.connectToHost("127.0.0.1",5034);	do_update_socket = update_serversock->do_accept();	connect(&update_socket, SIGNAL(readyRead()), this, SLOT(readChar));#endif}void MinisipMainWindowWidget::displayErrorMessage(string m){	QMessageBox msg("Error message", m.c_str(), QMessageBox::Warning,QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton,this);	msg.exec();}void MinisipMainWindowWidget::setSipSoftPhoneConfiguration(MRef<SipSoftPhoneConfiguration*> sipphoneconfig){	this->sipphoneconfig = sipphoneconfig;        	settingsDialog.setConfig(sipphoneconfig);	list<string> phonebooks = sipphoneconfig->phonebooks;	for (list<string>::iterator i=phonebooks.begin(); i!=phonebooks.end(); i++){			addPhoneBook(*i);	}}MRef<SipSoftPhoneConfiguration *>MinisipMainWindowWidget::getSipSoftPhoneConfiguration(){    return sipphoneconfig;}void MinisipMainWindowWidget::readChar(){#ifdef OPIE	update_socket.getch();#endif}#ifdef OPIEvoid MinisipMainWindowWidget::updateGui(){	char *str="X";	void *buf = (void *)str;	do_update_socket->do_write(buf,1);}#endifvoid MinisipMainWindowWidget::phoneBookSelect(){//#if (QT_VERSION > 0x030000)//	QListViewItem *sel = listView->selectedItem();//	if (sel->rtti()==PersonListItem::RTTI_VAL){//		text.setText(((PersonListItem *)sel)->getUri().c_str());//		text.setText("");//	}else{//		text.setText("");//	}//	//#else	QListViewItem *sel = listView->selectedItem();	if (sel->childCount()==0){		text.setText(((PersonListItem *)sel)->getUri().c_str());	}else{		text.setText("");	}//#endif		/*if (dynamic_cast<PersonListItem *>(sel)!=NULL){		text.setText(((PersonListItem *)sel)->getUri().c_str());	}else{		text.setText("");	}*/}void MinisipMainWindowWidget::userDoubleClicked(QListViewItem *item,const QPoint &, int){	/*if (dynamic_cast<PersonListItem *>(item)!=NULL){		text.setText(((PersonListItem *)item)->getUri().c_str());		doCall();	}else{		text.setText("");	}*/}#ifdef MINISIP_AUTOCALLvoid MinisipMainWindowWidget::timeout(string command){	//	if (command=="tst_error_message"){//		handleCommand(CommandString("","error_message","This is an example error message!"));//		return;//	}	assert(command=="autocall");	handleCommand(CommandString("","autocall"));}#endifvoid MinisipMainWindowWidget::createRegisterDialog(string title, string callId, string proxy){	RegCallDialog *regdialog = new RegCallDialog(callId, this, timeoutProvider, proxy);//	tabs.addTab(regdialog, title.c_str());//	#if (QT_VERSION < 0x030000)	tabCount++;#endif	tabs.insertTab(regdialog, title.c_str()/*,0*/);	//tabs.setCurrentPage(0);	tabs.show();	addCallDialog(regdialog);	#if (QT_VERSION < 0x030000)	tabs.setCurrentPage(tabCount - 1);#else	tabs.setCurrentPage(tabs.count() - 1);#endif	}void MinisipMainWindowWidget::createCallDialog(string title, string callId, string from="", string secured=""){	CallDialog *calldialog;#if (QT_VERSION < 0x030000)		tabCount++;#endif	if (from.length()>0 || secured.length()>0){		calldialog = new CallDialog(callId, this, timeoutProvider, from, secured);		tabs.insertTab(calldialog, title.c_str());				tabs.showPage( calldialog );	}else{		calldialog = new CallDialog(callId, this, timeoutProvider);		tabs.insertTab(calldialog, title.c_str());		tabs.showPage( calldialog );	}	addCallDialog(calldialog);}void MinisipMainWindowWidget::doCall(){	string uri=text.text().ascii();	if (uri.length()>0){						string id=callback->guicb_doInvite( uri );  //NOTE: callback is a protected member from the                                                             //      superclass "GUI".		if (id=="malformed"){			QMessageBox::warning(this,"Minisip","The SIP address you specified is not valid",  QMessageBox::Ok, QMessageBox::NoButton);			return;		}		createCallDialog("Call",id);//		log(LOG_INFO, "MinisipMainWindowWidget::callPressed(): id of new call is "+id);	}}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品视频一区二区不卡| 色老汉av一区二区三区| 欧美人狂配大交3d怪物一区| 亚洲欧洲美洲综合色网| 国产激情91久久精品导航 | 日韩欧美三级在线| 天堂精品中文字幕在线| 色婷婷综合视频在线观看| 一区二区高清在线| 色欧美日韩亚洲| 国产91综合一区在线观看| 中文字幕av在线一区二区三区| 国产成人丝袜美腿| 免费av成人在线| 国产日产精品一区| 91在线精品一区二区| 亚洲综合男人的天堂| 欧美一区二区美女| 国产乱码精品1区2区3区| 国产精品久久久久久妇女6080| 欧美做爰猛烈大尺度电影无法无天| 亚洲成人av一区二区| 日韩欧美精品在线视频| 在线91免费看| 成人国产精品免费观看视频| 一区二区理论电影在线观看| 日本一区二区三区高清不卡| 精品久久久网站| 99在线精品一区二区三区| 香蕉加勒比综合久久| 1024成人网| 国产精品灌醉下药二区| 国产精品欧美久久久久无广告 | 精品一区二区免费| 国产精品久久久久一区二区三区共| 精品国产一区a| 91美女蜜桃在线| 激情久久五月天| 亚洲国产wwwccc36天堂| 欧美激情中文字幕一区二区| 久久嫩草精品久久久精品| 欧美性生活一区| 懂色av一区二区夜夜嗨| 成人精品鲁一区一区二区| 午夜免费欧美电影| 中文字幕制服丝袜成人av| 国产精品麻豆久久久| 亚洲欧美日韩在线播放| 欧美成人女星排名| 久久久久久久久久久久电影| 国产亚洲精品资源在线26u| 8v天堂国产在线一区二区| 欧美精品tushy高清| 日本韩国一区二区| 欧美日韩国产影片| 精品国产乱子伦一区| 欧美国产日韩在线观看| 亚洲最新视频在线观看| 轻轻草成人在线| 国产一区二区女| 日韩av在线发布| 亚洲一区二区美女| 日本不卡视频一二三区| 国产精品1024久久| 91啪亚洲精品| 日韩午夜三级在线| 欧美一级欧美一级在线播放| 欧美成人aa大片| 国产成人精品亚洲午夜麻豆| 91麻豆精品国产91久久久久久久久| 久久精品72免费观看| 在线播放中文字幕一区| 欧美成人一区二区三区在线观看| 久久久噜噜噜久久中文字幕色伊伊| 久久久久久免费毛片精品| 亚洲少妇30p| 中文字幕一区视频| 亚洲主播在线观看| 激情av综合网| 日本高清不卡在线观看| 精品国产一区二区精华| 亚洲免费在线播放| 午夜精品一区二区三区电影天堂 | 日韩欧美色综合网站| 国产精品麻豆99久久久久久| 午夜视频在线观看一区| eeuss鲁片一区二区三区在线观看| 欧美日韩免费不卡视频一区二区三区| 欧美精品一区二区在线观看| 亚洲男人的天堂在线观看| 国模冰冰炮一区二区| 欧美视频一区在线| 国产精品毛片大码女人| 久久精品72免费观看| 欧美在线色视频| 国产三级精品在线| 久久精品免费看| 欧美视频一区二区三区在线观看| 欧美韩国日本一区| 久久99精品视频| 欧美喷潮久久久xxxxx| 一色桃子久久精品亚洲| 国产麻豆午夜三级精品| 91精品国产手机| 一区二区三区在线视频免费 | 欧美一区二区私人影院日本| 日韩理论在线观看| 国产成人亚洲综合a∨婷婷图片| 91精品国产91久久综合桃花 | 国产成人av电影| 日韩欧美一区二区视频| 亚洲6080在线| 色拍拍在线精品视频8848| 中文字幕中文乱码欧美一区二区| 国内久久婷婷综合| 日韩精品一区二区三区视频| 午夜影视日本亚洲欧洲精品| 色系网站成人免费| 亚洲人成精品久久久久| 成人a区在线观看| 国产精品污网站| 成人免费电影视频| 国产香蕉久久精品综合网| 国产一区二区视频在线播放| 日韩欧美激情在线| 麻豆成人av在线| 99视频超级精品| 欧美国产一区在线| 成人一区二区三区视频| 欧美经典一区二区三区| 福利电影一区二区| 亚洲国产精品t66y| 成人免费视频视频在线观看免费 | 精品免费一区二区三区| 久久黄色级2电影| 久久久久国产精品麻豆| 国产成人自拍网| 国产精品人人做人人爽人人添 | 成人精品国产一区二区4080| 国产精品电影一区二区| av电影在线不卡| 亚洲人亚洲人成电影网站色| 91蜜桃网址入口| 亚洲一区二区精品视频| 欧美精品国产精品| 经典三级一区二区| 日本一区二区高清| 91麻豆国产精品久久| 亚洲国产一二三| 精品久久久久久久人人人人传媒| 国内精品久久久久影院色 | 亚洲国产欧美在线| 欧美一区二区三区免费| 久久激五月天综合精品| 国产女主播视频一区二区| 9色porny自拍视频一区二区| 一区二区三区四区视频精品免费| 欧美亚洲综合久久| 美女网站色91| 中文字幕第一区| 欧美性xxxxxx少妇| 老司机免费视频一区二区三区| 久久久噜噜噜久久中文字幕色伊伊| 成人av在线资源网| 偷窥少妇高潮呻吟av久久免费| 欧美大片免费久久精品三p| 成人高清免费在线播放| 亚洲午夜电影在线观看| 欧美r级在线观看| 91蜜桃免费观看视频| 免费在线观看一区| 1024成人网色www| 91精品欧美一区二区三区综合在| 国产一区在线精品| 亚洲一区二区三区四区中文字幕 | 亚洲成人午夜电影| 久久精品免费在线观看| 色狠狠av一区二区三区| 国产在线一区观看| 一区二区视频免费在线观看| 精品福利在线导航| 欧美日韩一区高清| caoporn国产精品| 精品一区二区av| 亚洲国产毛片aaaaa无费看 | 亚洲国产一区视频| 欧美激情在线一区二区| 欧美一区二区视频观看视频| eeuss影院一区二区三区| 久久不见久久见中文字幕免费| 亚洲精品中文字幕在线观看| 在线免费观看成人短视频| 国产一区免费电影| 午夜日韩在线电影| 亚洲日本中文字幕区| 久久麻豆一区二区| 日韩一区二区视频在线观看| 在线亚洲高清视频| 91网站在线观看视频| 大胆亚洲人体视频|