MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / initialize

Method initialize

threads/indexrunner.cpp:64–80  ·  view source on GitHub ↗

Main thread runner. This just basically starts up the event queue. Everything else is done via events signaled from the main thread.

Source from the content-addressed store, hash-verified

62// Main thread runner. This just basically starts up the event queue. Everything else
63// is done via events signaled from the main thread.
64void 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

Callers 3

indexThreadStartedMethod · 0.45
newWebcamNoteMethod · 0.45
foreachFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected