bool EvaSysHistoryViewer::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: historyDoubleClicked((const unsigned short)(*((const unsigned short*)static_QUType_ptr.get(_o+1))),(const unsigned char)(*((const unsigned char*)static_QUType_ptr.get(_o+2))),(const unsigned int)(*((const unsigned int*)static_QUType_ptr.get(_o+3))),(const unsigned int)(*((const unsigned int*)static_QUType_ptr.get(_o+4))),(const QString)static_QUType_QString.get(_o+5),(const unsigned int)(*((const unsigned int*)static_QUType_ptr.get(_o+6))),(const unsigned int)(*((const unsigned int*)static_QUType_ptr.get(_o+7))),(const unsigned char*)static_QUType_ptr.get(_o+8),(const unsigned short)(*((const unsigned short*)static_QUType_ptr.get(_o+9))),(const unsigned char*)static_QUType_ptr.get(_o+10),(const unsigned short)(*((const unsigned short*)static_QUType_ptr.get(_o+11)))); break;
    default:
	return EvaHistoryUIBase::qt_emit(_id,_o);
    }
    return TRUE;
}
Example #2
0
void EvaHistoryViewer::slotTblDisplayDoubleClick(int row)
{
	std::list<EvaUserSetting::chatMessage>::iterator iter;
	int i= 0;	
	for(iter = list.begin(); iter!=list.end(); iter++){
		if(i==row)	break;
		i++;
	}
	if(iter == list.end()) return;
	emit historyDoubleClicked(iter->sender, iter->sNick, iter->receiver, iter->rNick, iter->type, iter->message, 
				iter->time, iter->fontSize,
				((iter->flag)&0x01), ((iter->flag)&0x02), ((iter->flag)&0x04),
				iter->blue, iter->green, iter->red);
}
void EvaSysHistoryViewer::slotTblDisplayDoubleClick(int row)
{
	std::list<EvaUserSetting::sysMessage>::iterator iter;
	int i= 0;	
	for(iter = list.begin(); iter!=list.end(); iter++){
		if(i==row) break;
		i++;
	}
	printf("list.size: %d\n", list.size());
	if(iter == list.end()) return;
	printf("[EvaSysHistoryViewer]im type:%d, id: %d, code len:%d, token len:%d\n",
				iter->messageType, iter->from, iter->codeLen, iter->tokenLen);
	emit historyDoubleClicked(iter->messageType, iter->type, iter->from, iter->to, iter->message,
				iter->internalQunID, iter->commander, iter->code, iter->codeLen,
				iter->token, iter->tokenLen);
	close();
}