virtual void error(U32 statusNum, const std::string& reason) { llwarns << "Error: " << reason << llendl; LLUpdateTaskInventoryResponder::error(statusNum, reason); LLAssetUploadQueue *queue = mSupplier->get(); if (queue) { queue->request(&mSupplier); } }
virtual void httpFailure() { // Parent class will spam the failure. //LL_WARNS() << dumpResponse() << LL_ENDL; LLUpdateTaskInventoryResponder::httpFailure(); LLAssetUploadQueue *queue = mSupplier->get(); if (queue) { queue->request(&mSupplier); } }
virtual void httpSuccess() { LLUpdateTaskInventoryResponder::httpSuccess(); LLAssetUploadQueue *queue = mSupplier->get(); if (queue) { // Responder is reused across 2 phase upload, // so only start next upload after 2nd phase complete. const std::string& state = getContent()["state"].asStringRef(); if(state == "complete") { queue->request(&mSupplier); } } }
virtual void result(const LLSD& content) { LLUpdateTaskInventoryResponder::result(content); LLAssetUploadQueue *queue = mSupplier->get(); if (queue) { // Responder is reused across 2 phase upload, // so only start next upload after 2nd phase complete. std::string state = content["state"]; if(state == "complete") { queue->request(&mSupplier); } } }
void queue(LLAssetUploadQueue& q, const std::string& filename) { LLUUID task_id; LLUUID item_id; BOOL is_running = FALSE; BOOL is_target_mono = TRUE; LLUUID queue_id; q.queue(filename, task_id, item_id, is_running, is_target_mono, queue_id); }