void CPollingThread::doPoll() { //qDebug() << state; switch (state) { case CSerialPortPrivate::STATE_REQUESTING: requesting(); break; case CSerialPortPrivate::STATE_WRITING: writing(); break; case CSerialPortPrivate::STATE_POLLING: polling(); break; case CSerialPortPrivate::STATE_READING: reading(); break; case CSerialPortPrivate::STATE_NOTIFY_DATA: notifying(); break; case CSerialPortPrivate::STATE_NOTIFY_TIMEOUT: notifyingTimeout(); break; default: break; } usleep(100); }
void FileTransferHandler::ft_accepted() { d->offset = d->ft->offset(); d->length = d->ft->length(); d->c = d->ft->bsConnection(); if (dynamic_cast<S5BConnection*>(d->c)) { connect(d->c, SIGNAL(proxyQuery()), SLOT(s5b_proxyQuery())); connect(d->c, SIGNAL(proxyResult(bool)), SLOT(s5b_proxyResult(bool))); connect(d->c, SIGNAL(requesting()), SLOT(s5b_requesting())); connect(d->c, SIGNAL(accepted()), SLOT(s5b_accepted())); connect(d->c, SIGNAL(tryingHosts(const StreamHostList &)), SLOT(s5b_tryingHosts(const StreamHostList &))); connect(d->c, SIGNAL(proxyConnect()), SLOT(s5b_proxyConnect())); connect(d->c, SIGNAL(waitingForActivation()), SLOT(s5b_waitingForActivation())); }