void DatesDBJobsThread::datesListing(const DatesDBJobInfo& info) { DatesJob* const j = new DatesJob(info); connectFinishAndErrorSignals(j); if (info.isFoldersJob()) { connect(j, SIGNAL(foldersData(const QMap<QDateTime, int>&)), this, SIGNAL(foldersData(const QMap<QDateTime, int>&))); }
void DatesDBJobsThread::datesListing(const DatesDBJobInfo& info) { DatesJob* const j = new DatesJob(info); connectFinishAndErrorSignals(j); if (info.isFoldersJob()) { connect(j, SIGNAL(foldersData(QMap<QDateTime,int>)), this, SIGNAL(foldersData(QMap<QDateTime,int>))); } else { connect(j, SIGNAL(data(QList<ItemListerRecord>)), this, SIGNAL(data(QList<ItemListerRecord>))); } ActionJobCollection collection; collection.insert(j, 0); appendJobs(collection); }