QueuePoolItemsList QueuePool::totalPendingItemsList() { QueuePoolItemsList qpool; for (int i = 0; i < count(); ++i) { QueueListView* queue = dynamic_cast<QueueListView*>(widget(i)); ImageInfoList list = queue->pendingItemsList(); for (ImageInfoList::const_iterator it = list.constBegin() ; it != list.constEnd() ; ++it) { ImageInfo info = *it; ItemInfoSet set(i, info); qpool.append(set); } } return qpool; }
QueuePoolItemsList QueuePool::queueItemsList(int index) const { QueuePoolItemsList qpool; QueueListView* const queue = dynamic_cast<QueueListView*>(widget(index)); if (queue) { ImageInfoList list = queue->pendingItemsList(); for (ImageInfoList::const_iterator it = list.constBegin() ; it != list.constEnd() ; ++it) { ImageInfo info = *it; ItemInfoSet set(index, info); qpool.append(set); } } return qpool; }