Esempio n. 1
0
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);
}
Esempio n. 2
0
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);
}