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 MetaReaderThread::readMetadata(const QList<QUrl>& list, const QString& direction) { ActionJobCollection collection; foreach (const QUrl& url, list) { Mytask* const job = new Mytask(); job->url = url; job->direction = direction; collection.insert(job, 0); qDebug() << "Appending file to process " << url; }
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); }