~ubuntu-branches/ubuntu/precise/akonadi/precise

« back to all changes in this revision

Viewing changes to server/src/storage/itemretriever.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Rohan Garg
  • Date: 2011-01-09 16:19:52 UTC
  • mfrom: (1.1.24 upstream)
  • Revision ID: james.westby@ubuntu.com-20110109161952-ykgmvjj5l8r97ava
Tags: 1.4.95-0ubuntu1
* New upstream release
  - Fix install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
}
170
170
 
171
171
 
172
 
void ItemRetriever::exec()
 
172
bool ItemRetriever::exec()
173
173
{
174
174
  if ( mParts.isEmpty() && !mFullPayload )
175
 
    return;
 
175
    return true;
176
176
 
177
177
  QSqlQuery query = buildQuery();
178
178
  ItemRetrievalRequest* lastRequest = 0;
179
179
  QList<ItemRetrievalRequest*> requests;
180
180
 
181
181
  QStringList parts;
182
 
  foreach ( const QString part, mParts ) {
 
182
  foreach ( const QString &part, mParts ) {
183
183
    if ( part.startsWith( QLatin1String( "PLD:" ) ) ) {
184
184
      parts << part.mid(4);
185
185
    }
234
234
      ItemRetrievalManager::instance()->requestItemDelivery( request );
235
235
    } catch ( const ItemRetrieverException &e ) {
236
236
      akError() << e.type() << ": " << e.what();
 
237
      return false;
237
238
    }
238
239
  }
239
240
 
247
248
      retriever.exec();
248
249
    }
249
250
  }
 
251
 
 
252
  return true;
250
253
}
251
254
 
252
255
QString ItemRetriever::driverName()