QDir().rmpath(CurrentSettings().Directory());
DBBackends::AllBackends allBackends(CurrentSettings());
- EventProcessors::Writer eventWriter(CurrentSettings());
+ NumberToNameLookup lookup; // Prepare the telephone-address book ID lookup.
+ EventProcessors::Writer eventWriter(CurrentSettings(), lookup);
QObject::connect(&eventWriter, SIGNAL(EventProcessed(int,int)), this, SIGNAL(EventProcessed(int,int)));
allBackends.Process(eventWriter);
+ QObject::disconnect(&eventWriter, SIGNAL(EventProcessed(int,int)), this, SIGNAL(EventProcessed(int,int)));
}
else
{
foreach(iHashable::Hash hash, newHashes)
qDebug() << hash << endl;
- // Now an optimisation: group the new hases by the files they come
+ // Now an optimisation: group the new hashes by the files they come
// from. This enables each file to only be parsed once and return
// all the required events from it.
QHash<QString, QList<iHashable::Hash> > newHashesByPath;