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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? minisipmainwindowwidget.cxx

?? 這是一個開源碼的sip用戶代理 寫的都很清楚是用C++語言開發的 對于研究sip協議的朋友絕對是有很好的參考價值
?? CXX
?? 第 1 頁 / 共 2 頁
字號:
/* *  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);	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品亚洲一区二区三区免费| 亚洲丝袜美腿综合| 91福利精品视频| 成人午夜电影网站| 国产成人自拍网| 国产精品1区2区3区在线观看| 久久99九九99精品| 捆绑变态av一区二区三区| 日韩国产在线观看一区| 日韩高清一区二区| 久久精品99国产国产精| 韩日欧美一区二区三区| 国产a久久麻豆| www.爱久久.com| 日本黄色一区二区| 欧美精品少妇一区二区三区 | 一本色道久久综合精品竹菊| 99re66热这里只有精品3直播| av激情亚洲男人天堂| 日本福利一区二区| 91精品国产色综合久久| 久久综合久久99| 国产精品久久久久久妇女6080 | 一区二区理论电影在线观看| 亚洲午夜久久久久久久久久久| 首页国产欧美久久| 国产精品1区2区| 色狠狠综合天天综合综合| 777欧美精品| 国产日产欧美一区二区视频| 亚洲精选视频在线| 免费成人深夜小野草| 成人av资源网站| 欧美日韩激情一区二区三区| 欧美精品一区二区三区蜜桃视频| 国产精品电影一区二区三区| 日韩黄色免费电影| 成人一级黄色片| 欧美高清精品3d| 亚洲一区二区在线免费看| 久久se这里有精品| aaa国产一区| 欧美成人a∨高清免费观看| 亚洲欧洲国产日韩| 久久精品久久久精品美女| 99re在线视频这里只有精品| 精品久久免费看| 亚洲二区在线视频| 国产ts人妖一区二区| 欧美一级黄色录像| 亚洲欧美国产高清| 福利视频网站一区二区三区| 欧美一区二区三区小说| 亚洲精品视频免费观看| 成人午夜大片免费观看| 精品国产青草久久久久福利| 亚洲超碰97人人做人人爱| av日韩在线网站| 国产色91在线| 久久成人免费日本黄色| 欧美精品久久天天躁| 一区二区三区在线观看欧美| jlzzjlzz国产精品久久| 久久久久久久精| 韩国三级电影一区二区| 欧美一级理论性理论a| 亚洲国产wwwccc36天堂| 在线观看国产精品网站| 亚洲欧美日韩国产手机在线| 成人免费av资源| 国产精品久线观看视频| 风间由美一区二区av101| 久久久久久久久久美女| 韩国av一区二区三区| 精品国产制服丝袜高跟| 久久成人av少妇免费| 日韩一二三四区| 久久国产福利国产秒拍| 精品1区2区在线观看| 国产毛片精品视频| 国产视频在线观看一区二区三区| 国产精品自在欧美一区| 欧美国产精品一区| 成人午夜看片网址| 亚洲桃色在线一区| 欧美性大战久久久久久久| 亚洲18女电影在线观看| 久久久亚洲精品石原莉奈| 国产精品91一区二区| 国产精品久久久久婷婷| 色94色欧美sute亚洲线路一久 | 欧美日韩国产欧美日美国产精品| 亚洲韩国一区二区三区| 欧美日韩精品欧美日韩精品| 欧美aⅴ一区二区三区视频| 日韩女优电影在线观看| 国产在线一区观看| 中文字幕日韩一区| 欧美亚洲图片小说| 久久99久久久欧美国产| 国产精品私人影院| 在线影院国内精品| 美腿丝袜亚洲三区| 中文字幕一区二区在线观看| 欧美无人高清视频在线观看| 久久国产尿小便嘘嘘尿| 亚洲欧美怡红院| 欧美一区二区三区免费大片 | 国产女人18水真多18精品一级做| 96av麻豆蜜桃一区二区| 日韩专区欧美专区| 亚洲国产精品成人久久综合一区| 色婷婷精品久久二区二区蜜臂av | 丁香激情综合五月| 亚洲午夜电影网| 国产欧美一区在线| 欧美日本韩国一区二区三区视频| 国产精品一区专区| 国产乱一区二区| 亚洲美女视频一区| 久久久精品免费观看| 欧美午夜影院一区| 懂色一区二区三区免费观看 | 欧美一级片在线观看| 成人精品一区二区三区中文字幕| 午夜视频一区二区| 中文字幕av不卡| 日韩欧美高清一区| 欧美婷婷六月丁香综合色| 福利91精品一区二区三区| 青娱乐精品在线视频| 亚洲美女免费视频| 国产欧美一区视频| 欧美videos中文字幕| 欧美图区在线视频| 91视频一区二区三区| 成人精品免费看| 激情五月播播久久久精品| 亚洲午夜久久久久久久久电影网 | 日韩毛片精品高清免费| 精品免费一区二区三区| 欧美视频在线观看一区| 91日韩精品一区| 国产成+人+日韩+欧美+亚洲| 久久99深爱久久99精品| 日韩成人一区二区三区在线观看| 国产精品国产三级国产aⅴ原创| 精品久久国产97色综合| 欧美一区二区精美| 91麻豆精品国产91| 制服丝袜日韩国产| 欧美精品第1页| 欧美蜜桃一区二区三区| 欧美日本视频在线| 欧美精品一级二级三级| 91精品国产一区二区| 欧美日韩一区成人| 在线观看一区日韩| 欧美主播一区二区三区美女| 99国产精品99久久久久久| 97精品久久久久中文字幕| www.亚洲免费av| 色综合久久综合中文综合网| 色婷婷综合五月| 欧美唯美清纯偷拍| 日韩一卡二卡三卡四卡| 日韩欧美国产三级电影视频| 精品国内二区三区| 国产无人区一区二区三区| 国产精品久久99| 亚洲人成影院在线观看| 麻豆国产一区二区| 国产黄色精品视频| 成人av片在线观看| 在线观看成人小视频| 69堂国产成人免费视频| 精品久久久三级丝袜| 中文字幕巨乱亚洲| 一级女性全黄久久生活片免费| 天堂va蜜桃一区二区三区漫画版 | 精品久久久久久久久久久院品网 | 亚洲六月丁香色婷婷综合久久| 一区二区三区四区不卡视频| 日韩国产高清影视| 风间由美一区二区三区在线观看 | 久久免费视频色| 中文字幕一区二区三区在线播放| 亚洲一区国产视频| 久久99国产精品免费网站| av一区二区久久| 欧美日韩五月天| 国产网红主播福利一区二区| 一区二区视频在线| 经典一区二区三区| 91女人视频在线观看| 日韩一级二级三级| 一二三区精品视频| 国产麻豆成人精品| 91精品欧美综合在线观看最新| 国产亚洲短视频|