bool MessageReceiverTask::take( Transfer* transfer )
{
	if ( !forMe( transfer ) )
		return false;

	YMSGTransfer *t = 0L;
	t = dynamic_cast<YMSGTransfer*>(transfer);
	if (!t)
		return false;

	if( t->service() == Yahoo::ServiceNotify )
		parseNotify( t );
	else
		parseMessage( t );

	return true;
}
示例#2
0
文件: xtraz.cpp 项目: Anderty/qutim
void XtrazRequestPrivate::parse(const QString &query, const QString &notify)
{
	parseQuery(query);
	if (!pluginId.isEmpty())
		parseNotify(notify);
}