Пример #1
0
std::string ZLNetworkManager::downloadFile(const std::string &url, const std::string &fileName, shared_ptr<ZLNetworkRequest::Listener> listener) const {
	shared_ptr<ZLNetworkRequest> data = createDownloadRequest(url, fileName);
	if (listener.isNull()) {
		return perform(data);
	}
	data->setListener(listener);
	return performAsync(data);
}
Пример #2
0
std::string ZLNetworkManager::performAsync(shared_ptr<ZLNetworkRequest> request) const {
	ZLNetworkRequest::Vector requestVector;
	requestVector.push_back(request);
	return performAsync(requestVector);
}
Пример #3
0
 void LocalLibrary::loadLibraryAsync() {
     performAsync(LibraryLoaderWorker::Load);
 }