void TagsDBJobsThread::tagsListing(const TagsDBJobInfo& info) { TagsJob* const j = new TagsJob(info); connectFinishAndErrorSignals(j); if (info.isFoldersJob()) { connect(j, SIGNAL(foldersData(QMap<int,int>)), this, SIGNAL(foldersData(QMap<int,int>))); } else if (info.isFaceFoldersJob()) { connect(j, SIGNAL(faceFoldersData(QMap<QString,QMap<int,int> >)), // krazy:exclude=normalize this, SIGNAL(faceFoldersData(QMap<QString,QMap<int,int> >))); // krazy:exclude=normalize } else { connect(j, SIGNAL(data(QList<ItemListerRecord>)), this, SIGNAL(data(QList<ItemListerRecord>))); } ActionJobCollection collection; collection.insert(j, 0); appendJobs(collection); }
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 SearchesDBJobsThread::searchesListing(const SearchesDBJobInfo& info) { SearchesJob* const j = new SearchesJob(info); connectFinishAndErrorSignals(j); if (info.isDuplicatesJob()) { connect(j, SIGNAL(totalSize(int)), this, SIGNAL(totalSize(int))); connect(j, SIGNAL(processedSize(int)), this, SIGNAL(processedSize(int))); }
void AlbumsDBJobsThread::albumsListing(const AlbumsDBJobInfo& info) { AlbumsJob* const j = new AlbumsJob(info); connectFinishAndErrorSignals(j); if (info.isFoldersJob()) { connect(j, SIGNAL(foldersData(QMap<int,int>)), this, SIGNAL(foldersData(QMap<int,int>))); } else { connect(j, SIGNAL(data(QList<ItemListerRecord>)), this, SIGNAL(data(QList<ItemListerRecord>))); } ActionJobCollection collection; collection.insert(j, 0); appendJobs(collection); }
void GPSDBJobsThread::GPSListing(const GPSDBJobInfo& info) { GPSJob* const j = new GPSJob(info); connectFinishAndErrorSignals(j); if (info.isDirectQuery()) { connect(j, SIGNAL(directQueryData(QList<QVariant>)), this, SIGNAL(directQueryData(QList<QVariant>))); } else { connect(j, SIGNAL(data(QList<ItemListerRecord>)), this, SIGNAL(data(QList<ItemListerRecord>))); } ActionJobCollection collection; collection.insert(j, 0); appendJobs(collection); }