void ServerObject::disconnect(const QString& str, const QThread* thr) { if (((Thread*)thr)->getInfo()) { jobs->renderFailed(((Thread*)thr)->getInfo()); } emit connectChange(str); threadlist.removeRef((Thread*)thr); }
void ServerObject::connected(const QString& str, const QThread* thr) { emit connectChange(str); Thread* thread = (Thread*)thr; WorkItem *nextItem; if (started) { thread->setReady(true); uint jobid; nextItem = jobs->getItem(&jobid); if (nextItem) { thread->setJobId(jobid); thread->setJobName(nextItem->getJob()->getJobName()); thread->setInfo(nextItem); thread->start(); } } else thread->setReady(true); }
void AstManager::connectAst(QString host, int port) { emit connectChange(host,port); }