void MapWidget::showCoordinates(double lat, double lon) { center=osmscout::GeoCoord(lat,lon); this->magnification=osmscout::Magnification::magVeryClose; DBThread* dbThread = DBThread::GetInstance(); if(!dbThread->IsRendering()) TriggerMapRendering(); }
//------------------------------------------------------------------------------------- thread::TPThread* DBThreadPool::createThread(int threadWaitSecond, bool threadStartsImmediately) { DBThread* tptd = new DBThread(dbinterfaceName_, this, threadWaitSecond); if (threadStartsImmediately) tptd->createThread(); return tptd; }
void DBConnector::RunConnect(){ DBThread* thread = new DBThread(); thread->setConnectionData(m_connData); QObject::connect(thread, SIGNAL(started()), MyApplication::TheApp(), SIGNAL(startBusy())); QObject::connect(thread, SIGNAL(finished()), MyApplication::TheApp(), SIGNAL(finishBusy())); QObject::connect(thread, SIGNAL(fireResult(bool)), this, SLOT(obtainThreadResult(bool))); thread->start(); }
//------------------------------------------------------------------------------------- thread::TPThread* DBThreadPool::createThread(int threadWaitSecond) { DBThread* tptd = new DBThread(this, threadWaitSecond); tptd->createThread(); return tptd; }