int iNet::TcpSocket::Impl::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QTcpSocket::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: SendDataSignal((*reinterpret_cast< QByteArray(*)>(_a[1]))); break;
        case 1: ConnectToHostSignal((*reinterpret_cast< Utils::HostInf(*)>(_a[1]))); break;
        case 2: DisconnectFromHostSignal(); break;
        case 3: DeleteSignal((*reinterpret_cast< boost::shared_ptr<Utils::ThreadSyncEvent>(*)>(_a[1]))); break;
        case 4: ConnectToHostSlot((*reinterpret_cast< const Utils::HostInf(*)>(_a[1]))); break;
        case 5: ConnectedSlot(); break;
        case 6: SendDataSlot((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        case 7: ReceiveData(); break;
        case 8: DisconnectFromHostSlot(); break;
        case 9: DisconnectedSlot(); break;
        case 10: SocketErrorOccur((*reinterpret_cast< QAbstractSocket::SocketError(*)>(_a[1]))); break;
        case 11: DeleteSlot((*reinterpret_cast< boost::shared_ptr<Utils::ThreadSyncEvent>(*)>(_a[1]))); break;
        default: ;
        }
        _id -= 12;
    }
    return _id;
}
void ConnectionManagerImpl::UnregisterSignal(const int type, const QObject *obj, const QString &signal)
{
    Q_ASSERT(obj != NULL);
    Q_ASSERT(!signal.isEmpty());
    if(obj == NULL || signal.isEmpty())
    {
        return;
    }

    connection_locker_.lock();
    DisconnectSignal(type, obj, signal);
    DeleteSignal(type, obj, signal);
    connection_locker_.unlock();
}
void PriceDisplayBoardWindowBoxList::DeleteSlot(int index)
{
	int count = m_PriceDisplayBoardWindowBoxList.count();
	QString tradingCode = m_PriceDisplayBoardWindowBoxList[index]->GetPriceDisplayBoard()->GetTradingCode();
	for(int i=0;i<m_ItemList.count();i++)
	{
		if(tradingCode==m_ItemList[i].m_TradingCode)
		{
			m_ItemList.removeAt(i);
			break;
		}
	}
	m_PriceDisplayBoardWindowBoxList[index]->deleteLater();
	m_PriceDisplayBoardWindowBoxList.removeAt(index);
	if(index<count-1)
	{
		for(int i = index;i<count-1;i++)
			m_PriceDisplayBoardWindowBoxList[i]->SetOrderIndex(i);
	}
	this->Resize();
	emit DeleteSignal(index);
}
void DSPSignalHandler(SignalType *signal)
{
    /* No DSP when running on the host*/
  DeleteSignal(signal);
}
Example #5
0
void TradeTable::Delete()
{
	emit DeleteSignal(m_SelectedIndex);	
}