#ifndef _FishIDE_NetTools_h_
#define _FishIDE_NetTools_h_

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

class NetTools
{
	private:
	
	protected:
	
	public:
	
		// download a file from url
		static String Download(String const &url, uint32_t timeout = 1000, Event<int, int> progress = Event<int, int>());
		
		// download a file with a progress meter popup
		static String Download(String const &prompt, String const &url, uint32_t timeout);
	
};

#endif
