Main thread runner. This just basically starts up the event queue. Everything else is done via events signaled from the main thread.
| 62 | // Main thread runner. This just basically starts up the event queue. Everything else |
| 63 | // is done via events signaled from the main thread. |
| 64 | void IndexRunner::initialize() { |
| 65 | //moveToThread(this); |
| 66 | keepRunning = true; |
| 67 | pauseIndexing = false; |
| 68 | enableIndexing = global.enableIndexing; |
| 69 | init = true; |
| 70 | iAmBusy = false; |
| 71 | QLOG_DEBUG() << "Starting IndexRunner"; |
| 72 | db = new DatabaseConnection("indexrunner"); |
| 73 | //indexTimer = new QTimer(); |
| 74 | //indexTimer->setInterval(global.minIndexInterval); |
| 75 | //connect(indexTimer, SIGNAL(timeout()), this, SLOT(index())); |
| 76 | //indexTimer->start(); |
| 77 | textDocument = new QTextDocument(); |
| 78 | indexHash = new QHash<qint32, IndexRecord*>(); |
| 79 | QLOG_DEBUG() << "Indexrunner initialized."; |
| 80 | } |
| 81 | |
| 82 | |
| 83 |
no outgoing calls
no test coverage detected