Пример #1
0
void RSpatialIndex::bulkLoadSimple(const QList<int>& ids, const QList<RBox>& bbs) {
    QList<QList<RBox> > list;
    for (int i=0; i<bbs.length(); i++) {
        list.append(QList<RBox>() << bbs[i]);
    }
    bulkLoad(ids, list);
}
Пример #2
0
void BulkLoad::addBulkLoad(quint64 seq, NewsGroup* ng, HeaderList* headerList)
{
	BulkLoadDetails* j = new BulkLoadDetails;
	j->seq = seq;
	j->ng  = ng;
	j->headerList = headerList;

    jobList.append(j);

	if (!running)
	{
		running = true;
	    bulkLoad();
	}
}