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

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

?? fxmainwindow.cpp

?? linux-下的fetion-0.8.1。包括所有源代碼
?? CPP
?? 第 1 頁 / 共 4 頁
字號:
	if(!item)		return NULL;	if(!item->parent()) 		return NULL;#if MS_VC6	Qun_Info *qun_info =(Qun_Info*)(item->data(0, Qt::UserRole).toUInt());#else	Qun_Info *qun_info =item->data(0, Qt::UserRole).value<Qun_Info*>();#endif	return qun_info;}void FxMainWindow::setImpresa(){	bool ok;	QString text = QInputDialog::getText(this, tr("setImpresa"),			tr("please input newImpresa"), QLineEdit::Normal,			"", &ok);	if (ok)	{		if (text.isEmpty())			fx_set_user_impresa(NULL, NULL, NULL);		else			fx_set_user_impresa(text.toUtf8().data(), NULL, NULL); 	}	setUINiceName();}void FxMainWindow::addGroup(){	bool ok;	QString text = QInputDialog::getText(this, tr("addGroup"),			tr("please input group name"), QLineEdit::Normal,			"", &ok);	if (ok && !text.isEmpty())		fx_add_buddylist(text.toUtf8().data(), NULL, NULL); }void FxMainWindow::deleteGroup(){	QTreeWidgetItem *item = view->currentItem ();	if(!item)		return;	if(item->childCount() > 0)	{		QMessageBox::warning(this, tr("can not delete group"), tr("group is not null"),QMessageBox::Yes);		return;		}	Group_Info* group_info = getGp_InfoOfCurrentItem();	if(!group_info)		return;	QString msg = tr("are you sure to delete group") + group_info->groupName;	int ret = QMessageBox::warning(this, tr("delete group"), msg,			QMessageBox::Yes, QMessageBox::Cancel);	if (ret == QMessageBox::Yes)		fx_delete_buddylist(group_info->groupID, NULL, NULL);}void FxMainWindow::renameGroup(){	Group_Info* group_info = getGp_InfoOfCurrentItem();	if(!group_info)		return;	bool ok;	QString text = QInputDialog::getText(this, tr("renameGroup"),			tr("please input new group name"), QLineEdit::Normal,			"", &ok);	if (ok && !text.isEmpty())		fx_rename_buddylist(group_info->groupID, text.toUtf8().data(), NULL, NULL); }void FxMainWindow::renameBuddy(){	Account_Info *ac_info =getAc_InfoOfCurrentItem();	if(!ac_info)		return;	bool ok;	QString text = QInputDialog::getText(this, tr("renamebudd"),			tr("please input new buddy name"), QLineEdit::Normal,			"", &ok);	if (ok && !text.isEmpty())		fx_set_buddyinfo(ac_info->accountID, text.toUtf8().data(), NULL, NULL); }void FxMainWindow::imQun(){	Qun_Info* qun_info = getQun_InfoOfCurrentItem();	if(!qun_info)		return;	msgwin->addQunWin(qun_info->qunID);}void FxMainWindow::smsQun(){	Qun_Info* qun_info = getQun_InfoOfCurrentItem();	if(!qun_info)		return;	msgwin->addQunWin(qun_info->qunID, true);}void FxMainWindow::getInfoQun(){	Qun_Info* qun_info = getQun_InfoOfCurrentItem();	if(!qun_info)		return;	this->setVisible( true);	this->activateWindow();	QDialog *window = new QDialog(this);	window->setWindowTitle(tr("see qun info"));	QTextEdit *AcInfo = new QTextEdit(window);	QDialogButtonBox *buttonBox = new QDialogButtonBox(window);	buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);	QVBoxLayout *layout = new QVBoxLayout;	layout->addWidget(AcInfo);	layout->addWidget(buttonBox);	window->setLayout(layout);	setQunInfo(AcInfo, qun_info->qunID);	connect(buttonBox, SIGNAL(accepted()), window, SLOT(accept()));	connect(buttonBox, SIGNAL(rejected()), window, SLOT(reject()));	window->exec();	delete window;}void FxMainWindow::imBuddy(){	Account_Info *ac_info =getAc_InfoOfCurrentItem();	if(!ac_info)		return;	showMsgWindow(ac_info->accountID);	//msgwin->addAccount(ac_info->accountID);}void FxMainWindow::smsBuddy(){	Account_Info *ac_info =getAc_InfoOfCurrentItem();	if(!ac_info)		return;	msgwin->addAccount(ac_info->accountID, true);}void FxMainWindow::getInfoBuddy(){	Account_Info *ac_info =getAc_InfoOfCurrentItem();	if(!ac_info) return;	const Fetion_Account *account =fx_get_account_by_id(ac_info->accountID);	if(!account) return;	FxShowAccountInfo * showInfo = new FxShowAccountInfo(account, this); 	showInfo->exec();	delete showInfo;}void FxMainWindow::updataInfoBuddy(){	Account_Info *ac_info =getAc_InfoOfCurrentItem();	if(!ac_info)		return;	fx_updata_account_info_by_id (ac_info->accountID);}void FxMainWindow::deleteBuddy(){	Account_Info *ac_info =getAc_InfoOfCurrentItem();	if(!ac_info)		return;	QString msg = tr("are you sure to delete buddy")+ ac_info->accountName;	int ret = QMessageBox::warning(this, tr("delete buddy"),msg,			QMessageBox::Yes,QMessageBox::Cancel);	if (ret == QMessageBox::Yes)	{		msg = tr("delete buddy can not stop it send message to you,") + "\r\n" +			tr("shoud you want to add it to blacklist") ;		ret = QMessageBox::warning(this, tr("add to black"),msg,				QMessageBox::Yes,QMessageBox::Cancel);		if(ret == QMessageBox::Yes)			fx_addto_blacklist_by_id(ac_info->accountID, NULL, NULL);		fx_delete_buddy_by_id(ac_info->accountID, NULL, NULL);	}}void FxMainWindow::addBlackBuddy(){	Account_Info *ac_info =getAc_InfoOfCurrentItem();	if(!ac_info)		return;	fx_addto_blacklist_by_id(ac_info->accountID, NULL, NULL);}void FxMainWindow::removeBlackBuddy(){	Account_Info *ac_info =getAc_InfoOfCurrentItem();	if(!ac_info)		return;	fx_removefrom_blacklist_by_id(ac_info->accountID, NULL, NULL);}void FxMainWindow::tmp_exit(){	isQuit = true;	close();}void FxMainWindow::setOnlineStatus(){	fx_set_user_state(FX_STATUS_ONLINE, NULL, NULL, NULL);}void FxMainWindow::setOfflineStatus(){	fx_set_user_state(FX_STATUS_OFFLINE, NULL, NULL, NULL);}void FxMainWindow::setBusyStatus(){	fx_set_user_state(FX_STATUS_BUSY, NULL, NULL, NULL);}void FxMainWindow::setAwayStatus(){	fx_set_user_state(FX_STATUS_AWAY, NULL, NULL, NULL);}void FxMainWindow::setacceptSMS(){	fx_set_user_refuse_sms_day(0, NULL, NULL);}void FxMainWindow::setrefuseSMS(){	this->show();	FxRefuseSMS * xx = new FxRefuseSMS(this);	xx->exec();	delete xx;}void FxMainWindow::setQunInfo(QTextEdit *AcInfo, qlonglong qun_id){	QString info;	Fetion_QunInfo *quninfo = NULL;	const Fetion_Qun *fx_qun = fx_get_qun_by_id(qun_id);	if(fx_qun)		quninfo = fx_qun->quninfo;	if (!quninfo)	{		AcInfo->append(tr("qun name:"));		AcInfo->append(tr("qun introduce:"));		AcInfo->append(tr("qun bulletin:"));		return;	}	info = tr("qun name:");	info += "<b style=\"color:red; \">" + 		QString::fromUtf8(quninfo->name) 		+"</b>";	AcInfo->append(info);	info = tr("qun introduce:");	info += "<b style=\"color:red; \">" + 		QString::fromUtf8(quninfo->introduce) 		+"</b>";	AcInfo->append(info);	info = tr("qun bulletin:");	info += "<b style=\"color:red; \">" + 		QString::fromUtf8(quninfo->bulletin) 		+"</b>";	AcInfo->append(info);}void FxMainWindow::setPersonalInfo(QTextEdit *AcInfo, const Fetion_Personal *personal){	bool hP = false;	if(personal)		hP = true;	QString info;	info += tr("mobile_no:");	if(hP)		info += "<b style=\"color:red; \">" + 			QString::fromUtf8(fx_get_usr_mobilenum()) 			+"</b>";	else 		info += "<b style=\"color:red; \"> </b>"; 	AcInfo->append(info);	info = tr("fetion_no:");	info += "<b style=\"color:red; \">"+QString::fromUtf8(fx_get_usr_uid()) +"</b>";	AcInfo->append(info);	//AcInfo->append(<b style=\"color:red; \">" + tr("personal infomation")+"</b>");	info = tr("nickname:");	if(hP)		info += "<b style=\"color:red; \">" + 			QString::fromUtf8(personal->nickname) 			+"</b>";	else 		info += "<b style=\"color:red; \"> </b>"; 	AcInfo->append(info);	info = tr("name:");	if(hP)		info += "<b style=\"color:red; \">" + 			QString::fromUtf8(personal->name) 			+"</b>";	else 		info += "<b style=\"color:red; \"> </b>"; 	AcInfo->append(info);	info = tr("gender:");	if(hP)		switch(personal->gender)		{			case 2:				info += "<b style=\"color:red; \">" + tr("girl") +"</b>";				break;			case 1:				info += "<b style=\"color:red; \">" + tr("boy") +"</b>";				break;			case 0:				info += "<b style=\"color:red; \">" + tr("unknow") +"</b>";				break;		}	else		info += "<b style=\"color:red; \">" + tr("unknow") +"</b>";	AcInfo->append(info);	info = tr("score:");	info += "<b style=\"color:red; \">" + QString("%1").arg(fx_get_usr_score()) +"</b>";	AcInfo->append(info);	info = tr("impresa:");	if(hP)		info += "<b style=\"color:red; \">" + 			QString::fromUtf8(personal->impresa) 			+"</b>";	else 		info += "<b style=\"color:red; \"> </b>"; 	AcInfo->append(info);}void FxMainWindow::personlInfo(){	this->setVisible( true);	this->activateWindow();	QDialog *window = new QDialog(this);	window->setWindowTitle(tr("see personal info"));	QTextEdit *AcInfo = new QTextEdit(window);	QDialogButtonBox *buttonBox = new QDialogButtonBox(window);	buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);	QVBoxLayout *layout = new QVBoxLayout;	layout->addWidget(AcInfo);	layout->addWidget(buttonBox);	window->setLayout(layout);	setPersonalInfo(AcInfo, fx_data_get_PersonalInfo());	connect(buttonBox, SIGNAL(accepted()), window, SLOT(accept()));	connect(buttonBox, SIGNAL(rejected()), window, SLOT(reject()));	window->exec();	delete window;}void FxMainWindow::checkNewVersion(){	this->show();	QString info;	if (newVersion > CURRENT_VERSION)		info = 	tr("LibFetion Have New Version,"		"access http://www.libfetion.cn for more infomation");	else		info = 	tr("the current Version is the new Version");	QMessageBox::about(this,tr("LibFetion"), info);}void FxMainWindow::reportBugAct(){	QDesktopServices::openUrl(QUrl("http://www.libfetion.cn/bbs"));}void FxMainWindow::aboutLibFetion(){	this->show();	QMessageBox::about(this, tr("About LibFetion"),			tr(	"Application Current Version"  ) + VERSION_NO +			tr(	"<br>This application is based on LibFetion library to writing, for more infomation access<a href=\"http://www.libfetion.cn\"> www.libfetion.cn </a> <br>"				"Copyright @ 2008 <b> <a href=\"mailto:dedodong@163.com\">DDD</a> (dedodong@163.com)</b>. All Rights reserved."));}void FxMainWindow::aboutCM(){	this->show();	QMessageBox::about(this, tr("About CHINA Mobile"),			tr("<a href=\"http://www.fetion.com.cn\"> China Mobile Fetion</a>"				"China Mobile Fetion introduce"));}void FxMainWindow::menu_setmute(){	bool currentIsMute = Settings::instance().isMute();	Settings::instance().setMute (!currentIsMute);	if (currentIsMute)		MuteAct->setIcon(getMenuIcon(CancelIcon));	else 		MuteAct->setIcon(getMenuIcon(ApplyIcon));}void FxMainWindow::saveMsgHistroy(){	this->show();	bool ok;	QString text = QInputDialog::getText(this, tr("saveMsgHistroy"),			tr("please input password"), QLineEdit::Password,			"", &ok);	if (ok && !text.isEmpty())	{		if (text == QString(fx_get_usr_passwd()))		{			QString fileName = QFileDialog::getSaveFileName(this,					tr("saveMsgHistroy"),					QDir::homePath(),					tr("Text Files (*.htm)"));			if (!fileName.isEmpty())			{				int ret = export_history ((qlonglong)strtol(fx_get_usr_uid(), NULL, 10), 						fileName.toUtf8().data());				if (ret == 2 )					QMessageBox::critical(this, tr("save file error"), tr("the path of file can't write") ); 			}		} else 			QMessageBox::critical(this, tr("error"), tr("the password error") ); 	}}void FxMainWindow::cleanMsgHistroy(){	this->show();	bool ok;	QString text = QInputDialog::getText(this, tr("cleanMsgHistroy"),			tr("please input password"), QLineEdit::Password,			"", &ok);	if (ok && !text.isEmpty())	{		if (text == QString(fx_get_usr_passwd()))			clean_history ((qlonglong)strtol(fx_get_usr_uid(), NULL, 10));		else 			QMessageBox::critical(this, tr("error"), tr("the password error") ); 	}}void FxMainWindow::showConfigDlg(){	show();	FxConfigDia * configdia= new FxConfigDia(this, this);	configdia->show();}void FxMainWindow::menu_setautoshowmsg(){	bool currentIsAutoShowMsg = Settings::instance().isAutoShowMsg();	Settings::instance().setAutoShowMsg (!currentIsAutoShowMsg);	if (currentIsAutoShowMsg)		IsAutoShowMsgAct->setIcon(getMenuIcon(ApplyIcon));	else 		IsAutoShowMsgAct->setIcon(getMenuIcon(CancelIcon));}void FxMainWindow::menu_setundgemsg(){	QMessageBox::critical(this, ("setundgemsg"), ("setundgemsg") ); 	fx_send_nudge(630352708L);}void FxMainWindow::menu_setlongsms(){	bool currentIsEnableLongSMS = Settings::instance().isEnableLongSMS();	Settings::instance().setEnableLongSMS (!currentIsEnableLongSMS);	if (currentIsEnableLongSMS)		SetLongSMSAct->setIcon(getMenuIcon(CancelIcon));	else 		SetLongSMSAct->setIcon(getMenuIcon(ApplyIcon));}void FxMainWindow::menu_setAutoLogin(){	bool currentIsAutoLogin = Settings::instance().isAutoLogin();	Settings::instance().setAutoLogin(!currentIsAutoLogin);	if (currentIsAutoLogin)		AutoLoginAct->setIcon(getMenuIcon(CancelIcon));	else 		AutoLoginAct->setIcon(getMenuIcon(ApplyIcon));}void FxMainWindow::initTrayIcon(){	isHaveTray = QSystemTrayIcon::isSystemTrayAvailable();	if(isHaveTray)	{		trayIcon = new QSystemTrayIcon(this);		trayIcon->setContextMenu(trayIconMenu);		trayIcon->setIcon(getSysTrayIcon (fx_get_user_state()));		trayIcon->show();#if WIN32		trayIcon->setToolTip (QString::fromUtf8(fx_get_usr_show_name()) + " Win Fetion");#else#if MAC_OS		trayIcon->setToolTip (QString::fromUtf8(fx_get_usr_show_name()) + " Mac Fetion");#else		trayIcon->setToolTip (QString::fromUtf8(fx_get_usr_show_name()) + " Linux Fetion");#endif#endif	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美精品电影三级在线| 国产精品一级二级三级| 国产乱人伦偷精品视频不卡| 日韩免费观看2025年上映的电影| 亚洲男帅同性gay1069| 懂色av一区二区三区免费观看 | 中文字幕日韩欧美一区二区三区| 成人综合婷婷国产精品久久 | 久久99精品国产麻豆婷婷| 欧美精品色一区二区三区| 国产精品久久久久久一区二区三区 | 国产最新精品免费| 国产精品第一页第二页第三页| av在线不卡免费看| 亚洲精品亚洲人成人网| 91精品国产入口在线| 国产成人av一区二区三区在线观看| 国产欧美精品区一区二区三区| 国产一区二区不卡在线| 三级不卡在线观看| 欧美经典一区二区| 色婷婷亚洲婷婷| 日韩国产精品久久| 一区二区三区国产| 久久久国产精华| 欧美电影影音先锋| av高清不卡在线| 国产在线视视频有精品| 亚洲一区二区3| 国产精品理伦片| 久久久久久免费网| 日韩精品一区二区三区老鸭窝| 国产一区二区看久久| 亚洲永久免费av| 亚洲色图一区二区| 亚洲国产高清在线观看视频| 欧美一卡二卡三卡四卡| 在线视频一区二区三区| 波多野结衣欧美| 国产精品99久久久久久似苏梦涵| 久久疯狂做爰流白浆xx| 蜜臀av一级做a爰片久久| 亚洲永久免费av| 亚洲sss视频在线视频| 亚洲精品中文在线影院| 亚洲人一二三区| 亚洲国产中文字幕| 久久精品国产99国产| 久久99国产精品成人| 精品亚洲免费视频| 狠狠色伊人亚洲综合成人| 国产在线一区观看| 男女男精品网站| 捆绑变态av一区二区三区| 久久精品国产精品青草| 国产+成+人+亚洲欧洲自线| 国产·精品毛片| 99久久精品国产观看| 精品国产成人在线影院| 26uuu亚洲综合色欧美| 亚洲欧美一区二区三区极速播放| 日韩国产精品大片| 欧美乱妇23p| 亚洲精品老司机| 成人aa视频在线观看| 欧美一级在线免费| 香蕉成人伊视频在线观看| 99久久er热在这里只有精品66| 欧美另类久久久品| 日韩综合小视频| 欧美日韩一本到| 亚洲乱码国产乱码精品精98午夜| 久久精品国产77777蜜臀| 欧美日韩视频第一区| 久久免费国产精品| 久久激情综合网| 91精品国产黑色紧身裤美女| 亚洲免费观看高清完整| 91免费视频观看| 亚洲你懂的在线视频| 欧洲av在线精品| 亚洲美女在线国产| 91国产福利在线| 亚洲精品成人少妇| 制服丝袜中文字幕一区| 天天色天天操综合| 精品三级在线看| 精品一区二区三区不卡 | av在线不卡免费看| 国产精品久久久久婷婷| 国产精品一二三四五| 久久一留热品黄| 国产999精品久久久久久| 精品国内片67194| 成人精品视频.| 欧美国产97人人爽人人喊| 国产91在线|亚洲| 一区二区三区鲁丝不卡| 在线观看日韩电影| 蜜臀av性久久久久蜜臀aⅴ流畅 | 激情文学综合网| 中文字幕国产精品一区二区| 国产91丝袜在线播放九色| 国产激情91久久精品导航| 天天av天天翘天天综合网色鬼国产| 日韩中文字幕不卡| 亚洲成a人v欧美综合天堂| 亚洲福利视频导航| 伊人夜夜躁av伊人久久| 午夜精品久久久久久久99樱桃| 亚洲人成精品久久久久久| 国产精品久久久久久妇女6080| 日韩理论片一区二区| 亚洲色图视频网| 中文字幕亚洲一区二区va在线| 国产日韩精品久久久| 国产精品久久久久久久裸模 | 国产日韩精品视频一区| 日本高清不卡视频| 欧美日韩免费视频| 91精品国产欧美一区二区18| 26uuu久久综合| 洋洋成人永久网站入口| 久久成人久久鬼色| 国产成人精品免费看| 欧美在线观看18| 2023国产一二三区日本精品2022| 国产肉丝袜一区二区| 亚洲欧美日韩在线| 精品一区二区三区免费视频| 91在线国内视频| 欧美三级电影精品| 中文字幕在线免费不卡| 美女视频免费一区| 国产成人av网站| 26uuu精品一区二区三区四区在线| 日韩欧美不卡一区| 亚洲一二三专区| 色综合一个色综合亚洲| 国产网站一区二区| 国模冰冰炮一区二区| 欧美日韩免费电影| 亚洲国产va精品久久久不卡综合| 久久精品国产澳门| 欧美日韩电影一区| 亚洲老司机在线| 国产一区二区三区在线观看精品| 欧美日韩中文另类| 一区二区三区在线视频播放| 欧美日韩在线播放三区| 国产精品夫妻自拍| 国产精品中文字幕欧美| 国产精品人人做人人爽人人添| 看电影不卡的网站| 国产日韩欧美不卡在线| 99久久婷婷国产综合精品电影| 亚洲精品视频在线看| 国产二区国产一区在线观看| 欧美一区二区日韩一区二区| 丝袜诱惑制服诱惑色一区在线观看 | 中文字幕字幕中文在线中不卡视频| 日av在线不卡| 欧美在线视频不卡| 日韩国产欧美在线播放| 欧美精品乱码久久久久久按摩| 尤物在线观看一区| 在线91免费看| 亚洲欧美电影院| 欧美最猛性xxxxx直播| 一区二区高清视频在线观看| 欧美一区二视频| 激情文学综合丁香| 午夜激情一区二区三区| 国产午夜精品福利| 67194成人在线观看| 成人中文字幕在线| 看国产成人h片视频| 一区二区视频免费在线观看| 欧美中文字幕亚洲一区二区va在线 | 国产精品一区二区久激情瑜伽| 亚洲欧美日韩在线不卡| 日韩欧美一二三四区| 国产成人精品亚洲午夜麻豆| 夜夜嗨av一区二区三区| 久久人人爽人人爽| 欧美日韩高清一区| av电影在线观看不卡| 久久99精品国产麻豆不卡| 亚洲成av人**亚洲成av**| 国产亚洲va综合人人澡精品| 欧美久久久久中文字幕| 91在线精品一区二区三区| 国产在线视视频有精品| 国产馆精品极品| 国产馆精品极品| 国产一区二区三区电影在线观看| 日韩国产欧美一区二区三区| 午夜欧美视频在线观看| 亚洲夂夂婷婷色拍ww47| 亚洲欧美另类图片小说|